Skip to content

Commit

Permalink
[sc-59199] add calendar with X icon;
Browse files Browse the repository at this point in the history
  • Loading branch information
apattersonATX-HB committed Oct 2, 2024
1 parent d4aa774 commit 7b0cf92
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ export const Icon = (props: IconProps) => {
"dollar",
"userCircle",
"calendar",
"calendarError",
"calendarX",
"buildingHouse",
"house",
"bell",
Expand All @@ -122,7 +124,6 @@ export const Icon = (props: IconProps) => {
"chair",
"bolt",
"changeEvent",
"calendarError",
"nested",
"estimate",
"commentItem",
Expand Down
12 changes: 9 additions & 3 deletions src/components/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,6 @@ export const Icons = {
criticalPath: (
<path d="M6.5 20H14.844C15.2 20.753 15.636 21.422 16.093 22H6.5C4.019 22 2 19.981 2 17.5C2 15.019 4.019 13 6.5 13H13.5C14.327 13 15 12.327 15 11.5C15 10.673 14.327 10 13.5 10H7.285C7.771 9.443 8.248 8.771 8.639 8H13.5C15.43 8 17 9.57 17 11.5C17 13.43 15.43 15 13.5 15H6.5C5.121 15 4 16.121 4 17.5C4 18.879 5.121 20 6.5 20ZM2 5C2 3.346 3.346 2 5 2C6.654 2 8 3.346 8 5C8 8.187 5 10 5 10C5 10 2 8.188 2 5ZM3.5 5C3.5 5.828 4.172 6.5 5 6.5C5.828 6.5 6.5 5.828 6.5 5C6.5 4.172 5.828 3.5 5 3.5C4.172 3.5 3.5 4.172 3.5 5ZM16 17C16 15.346 17.346 14 19 14C20.654 14 22 15.346 22 17C22 20.187 19 22 19 22C19 22 16 20.188 16 17ZM17.5 17C17.5 17.828 18.172 18.5 19 18.5C19.828 18.5 20.5 17.828 20.5 17C20.5 16.172 19.828 15.5 19 15.5C18.172 15.5 17.5 16.172 17.5 17Z" />
),
calendarError: (
<path d="M2.99902 8V6C2.99902 4.897 3.89602 4 4.99902 4H6.99902V2H8.99902V4H14.999V2H16.999V4H18.999C20.102 4 20.999 4.897 20.999 6V8V20C20.999 21.103 20.102 22 18.999 22H4.99902C3.89602 22 2.99902 21.103 2.99902 20V8ZM4.99902 20H19.001L18.999 7H4.99902V20ZM13 9H11V15H13V9ZM13 16H11V18H13V16Z" />
),
nested: <path d="M7 6.99994V16.3333L16.3333 16.3333V14.3333H9L9 6.99994H7Z" />,
estimate: (
<path d="M11.4409 2.01586C5.9355 2.32427 1.70744 7.05416 2.01585 12.5595C2.03847 12.9633 2.08488 13.3602 2.15363 13.749L0 14.6172L4.55475 16.5548L6.49234 12L4.06026 12.9804C4.03868 12.8046 4.02277 12.627 4.01272 12.4477C3.766 8.04357 7.14864 4.25944 11.5527 4.01273C13.5759 3.89938 15.4683 4.55199 16.947 5.71769L17.9477 3.96644C16.1361 2.62291 13.8636 1.88014 11.4409 2.01586ZM12 11C10 11 10 10.374 10 9.99996C10 9.51596 10.701 8.99996 12 8.99996C13.185 8.99996 13.386 9.63796 13.4 10.018L14.4 9.99996H15.4C15.4 8.97396 14.734 7.53096 13 7.12096V6.01196H11V7.08496C9.029 7.41596 8 8.71196 8 9.99996C8 11.12 8.52 13 12 13C14 13 14 13.676 14 14C14 14.415 13.38 15 12 15C10.159 15 10.011 14.143 10 14H8C8 14.918 8.661 16.553 11 16.92V18H13V16.915C14.971 16.584 16 15.288 16 14C16 12.88 15.48 11 12 11ZM21.9318 10.9952C22.2403 16.5005 18.0122 21.2304 12.5068 21.5388C10.0841 21.6746 7.81163 20.9318 5.99999 19.5882L7.00071 17.837C8.47939 19.0027 10.3718 19.6553 12.395 19.542C16.7991 19.2952 20.1817 15.5111 19.935 11.107C19.9249 10.9277 19.909 10.75 19.8874 10.5743L17.4554 11.5547L19.3929 6.99994L23.9477 8.93752L21.7941 9.80568C21.8628 10.1944 21.9092 10.5914 21.9318 10.9952Z" />
Expand Down Expand Up @@ -477,6 +474,15 @@ export const Icons = {
calendar: (
<path d="M2.99902 6V8V20C2.99902 21.103 3.89602 22 4.99902 22H18.999C20.102 22 20.999 21.103 20.999 20V8V6C20.999 4.897 20.102 4 18.999 4H16.999V2H14.999V4H8.99902V2H6.99902V4H4.99902C3.89602 4 2.99902 4.897 2.99902 6ZM19.001 20H4.99902V8H18.999L19.001 20Z" />
),
calendarError: (
<path d="M2.99902 8V6C2.99902 4.897 3.89602 4 4.99902 4H6.99902V2H8.99902V4H14.999V2H16.999V4H18.999C20.102 4 20.999 4.897 20.999 6V8V20C20.999 21.103 20.102 22 18.999 22H4.99902C3.89602 22 2.99902 21.103 2.99902 20V8ZM4.99902 20H19.001L18.999 7H4.99902V20ZM13 9H11V15H13V9ZM13 16H11V18H13V16Z" />
),
calendarX: (
<>
<path d="M8.293 16.293L9.707 17.707L12 15.414L14.293 17.707L15.707 16.293L13.414 14L15.707 11.707L14.293 10.293L12 12.586L9.707 10.293L8.293 11.707L10.586 14L8.293 16.293Z" />
<path d="M19 4H17V2H15V4H9V2H7V4H5C3.897 4 3 4.897 3 6V8V20C3 21.103 3.897 22 5 22H19C20.103 22 21 21.103 21 20V8V6C21 4.897 20.103 4 19 4ZM19.002 20H5V8H19L19.002 20Z" />
</>
),
changeEvent: (
<path d="M4 16.5262H6.28841L9.94864 12.4999L6.28841 8.47368H4V6.68421H7.08002L16.0274 16.5263H17.4211V13.842L21 17.4209L17.4211 20.9999V18.3158H15.2358L11.1578 13.8301L7.08002 18.3157H4V16.5262ZM13.36 11.4077L12.1508 10.0776L15.2358 6.68409H17.4211V4L21 7.57895L17.4211 11.1579V8.47357H16.0274L13.36 11.4077Z" />
),
Expand Down

0 comments on commit 7b0cf92

Please sign in to comment.