@getmicdrop/svelte-components 5.10.1 → 5.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calendar/AboutShow/AboutShow.svelte +172 -172
- package/dist/calendar/Calendar/MiniMonthCalendar.svelte +782 -782
- package/dist/calendar/FAQs/FAQs.svelte +75 -75
- package/dist/calendar/MonthSwitcher/MonthSwitcher.svelte +126 -126
- package/dist/calendar/OrderSummary/OrderSummary.svelte +367 -367
- package/dist/calendar/PublicCard/PublicCard.svelte +146 -146
- package/dist/calendar/ShowCard/ShowCard.svelte +157 -157
- package/dist/calendar/ShowTimeCard/ShowTimeCard.svelte +61 -61
- package/dist/components/Heading.svelte +60 -60
- package/dist/components/Layout/AppShell.svelte +104 -104
- package/dist/components/Layout/ContentSection.svelte +80 -80
- package/dist/components/Layout/Grid.svelte +4 -4
- package/dist/components/Layout/Heading.svelte +81 -81
- package/dist/components/Layout/PageContainer.svelte +69 -69
- package/dist/components/Layout/Responsive.svelte +75 -75
- package/dist/components/Layout/Section.svelte +80 -80
- package/dist/components/Layout/ShowOnDesktop.svelte +37 -37
- package/dist/components/Layout/ShowOnMobile.svelte +37 -37
- package/dist/components/Layout/Sidebar.svelte +108 -108
- package/dist/components/Layout/Stack.svelte +6 -6
- package/dist/components/Layout/Text.svelte +87 -87
- package/dist/components/Layout/TwoColumn.svelte +108 -108
- package/dist/components/Text.svelte +53 -53
- package/dist/constants/validation.js +91 -91
- package/dist/constants/validation.spec.js +64 -64
- package/dist/index.js +51 -51
- package/dist/patterns/data/DataGrid.svelte +45 -45
- package/dist/patterns/data/DataList.svelte +24 -24
- package/dist/patterns/data/DataTable.svelte +36 -36
- package/dist/patterns/forms/FormActions.spec.js +95 -95
- package/dist/patterns/forms/FormActions.stories.svelte +97 -97
- package/dist/patterns/forms/FormActions.svelte +46 -46
- package/dist/patterns/forms/FormGrid.svelte +33 -33
- package/dist/patterns/forms/FormSection.svelte +32 -32
- package/dist/patterns/forms/FormValidationSummary.stories.svelte +83 -83
- package/dist/patterns/forms/FormValidationSummary.svelte +74 -74
- package/dist/patterns/layout/Sidebar.svelte +39 -39
- package/dist/patterns/layout/index.js +29 -29
- package/dist/patterns/navigation/BottomNav.stories.svelte +117 -117
- package/dist/patterns/navigation/BottomNav.svelte +74 -74
- package/dist/patterns/navigation/Header.stories.svelte +77 -77
- package/dist/patterns/navigation/Header.svelte +255 -255
- package/dist/patterns/page/PageHeader.svelte +18 -18
- package/dist/patterns/page/PageLayout.svelte +40 -40
- package/dist/patterns/page/PageLoader.spec.js +57 -57
- package/dist/patterns/page/PageLoader.stories.svelte +137 -137
- package/dist/patterns/page/PageLoader.svelte +24 -24
- package/dist/patterns/page/SectionHeader.svelte +29 -29
- package/dist/presets/badges.js +112 -112
- package/dist/presets/buttons.js +76 -76
- package/dist/presets/index.js +9 -9
- package/dist/primitives/Accordion/Accordion.stories.svelte +75 -75
- package/dist/primitives/Accordion/Accordion.svelte +42 -42
- package/dist/primitives/Accordion/AccordionItem.svelte +95 -95
- package/dist/primitives/Alert/Alert.spec.js +173 -173
- package/dist/primitives/Alert/Alert.stories.svelte +88 -88
- package/dist/primitives/Alert/Alert.svelte +27 -27
- package/dist/primitives/Avatar/Avatar.stories.svelte +94 -94
- package/dist/primitives/Avatar/Avatar.svelte +66 -66
- package/dist/primitives/Badges/Badge.spec.js +144 -144
- package/dist/primitives/Badges/Badge.stories.svelte +86 -86
- package/dist/primitives/Badges/Badge.svelte +99 -99
- package/dist/primitives/BottomSheet/BottomSheet.spec.js +136 -136
- package/dist/primitives/BottomSheet/BottomSheet.stories.svelte +83 -83
- package/dist/primitives/BottomSheet/BottomSheet.svelte +100 -100
- package/dist/primitives/Breadcrumb/Breadcrumb.spec.js +122 -122
- package/dist/primitives/Breadcrumb/Breadcrumb.stories.svelte +23 -23
- package/dist/primitives/Breadcrumb/Breadcrumb.svelte +98 -98
- package/dist/primitives/Button/Button.spec.js +223 -223
- package/dist/primitives/Button/Button.stories.svelte +76 -76
- package/dist/primitives/Button/Button.svelte +283 -283
- package/dist/primitives/Button/ButtonGroup.svelte +50 -50
- package/dist/primitives/Button/ButtonSaveDemo.spec.js +146 -146
- package/dist/primitives/Button/ButtonSaveDemo.svelte +25 -25
- package/dist/primitives/Button/ButtonVariantShowcase.svelte +129 -129
- package/dist/primitives/Card.spec.js +49 -49
- package/dist/primitives/Card.stories.svelte +22 -22
- package/dist/primitives/Card.svelte +28 -28
- package/dist/primitives/Checkbox/Checkbox.stories.svelte +84 -84
- package/dist/primitives/Checkbox/Checkbox.svelte +88 -88
- package/dist/primitives/DarkModeToggle.spec.js +390 -390
- package/dist/primitives/DarkModeToggle.stories.svelte +57 -57
- package/dist/primitives/DarkModeToggle.svelte +136 -136
- package/dist/primitives/Drawer/Drawer.stories.svelte +80 -80
- package/dist/primitives/Drawer/Drawer.svelte +120 -120
- package/dist/primitives/Dropdown/Dropdown.stories.svelte +137 -137
- package/dist/primitives/Dropdown/Dropdown.svelte +170 -170
- package/dist/primitives/Dropdown/DropdownDivider.svelte +9 -9
- package/dist/primitives/Dropdown/DropdownItem.svelte +80 -80
- package/dist/primitives/Helper/Helper.svelte +33 -33
- package/dist/primitives/Icons/ArrowLeft.svelte +8 -8
- package/dist/primitives/Icons/ArrowRight.svelte +8 -8
- package/dist/primitives/Icons/Availability.svelte +14 -14
- package/dist/primitives/Icons/Back.svelte +14 -14
- package/dist/primitives/Icons/CheckCircle.svelte +6 -6
- package/dist/primitives/Icons/CheckCircleOutline.svelte +15 -15
- package/dist/primitives/Icons/ChevronLeft.svelte +4 -4
- package/dist/primitives/Icons/ChevronRight.svelte +4 -4
- package/dist/primitives/Icons/Copy.svelte +15 -15
- package/dist/primitives/Icons/Cross.svelte +5 -5
- package/dist/primitives/Icons/DownArrow.svelte +8 -8
- package/dist/primitives/Icons/ErrorCircle.svelte +6 -6
- package/dist/primitives/Icons/FacebookIcon.svelte +2 -2
- package/dist/primitives/Icons/Home.svelte +15 -15
- package/dist/primitives/Icons/Icon.spec.js +169 -169
- package/dist/primitives/Icons/Icon.stories.svelte +100 -100
- package/dist/primitives/Icons/Icon.svelte +52 -52
- package/dist/primitives/Icons/IconGallery.stories.svelte +235 -235
- package/dist/primitives/Icons/Info.svelte +7 -7
- package/dist/primitives/Icons/InstagramIcon.svelte +4 -4
- package/dist/primitives/Icons/LogoInstagram.svelte +2 -2
- package/dist/primitives/Icons/Message.svelte +15 -15
- package/dist/primitives/Icons/MoonIcon.svelte +5 -5
- package/dist/primitives/Icons/More.svelte +21 -21
- package/dist/primitives/Icons/MoreHori.spec.js +61 -61
- package/dist/primitives/Icons/MoreHori.svelte +22 -22
- package/dist/primitives/Icons/Notification.svelte +14 -14
- package/dist/primitives/Icons/Payment.svelte +14 -14
- package/dist/primitives/Icons/Profile.svelte +21 -21
- package/dist/primitives/Icons/Reload.svelte +29 -29
- package/dist/primitives/Icons/Shows.svelte +21 -21
- package/dist/primitives/Icons/Signout.svelte +21 -21
- package/dist/primitives/Icons/SunIcon.svelte +8 -8
- package/dist/primitives/Icons/TiktokIcon.svelte +2 -2
- package/dist/primitives/Icons/TwitterIcon.svelte +2 -2
- package/dist/primitives/Icons/WarningIcon.spec.js +18 -18
- package/dist/primitives/Icons/WarningIcon.svelte +5 -5
- package/dist/primitives/Input/Input.spec.js +573 -573
- package/dist/primitives/Input/Input.stories.svelte +139 -139
- package/dist/primitives/Input/Input.svelte +423 -423
- package/dist/primitives/Input/Select.spec.js +218 -218
- package/dist/primitives/Input/Select.stories.svelte +112 -112
- package/dist/primitives/Input/Select.svelte +252 -252
- package/dist/primitives/Input/Textarea.stories.svelte +137 -137
- package/dist/primitives/Input/Textarea.svelte +105 -105
- package/dist/primitives/Label/Label.svelte +37 -37
- package/dist/primitives/Modal/Modal.spec.js +99 -99
- package/dist/primitives/Modal/Modal.stories.svelte +86 -86
- package/dist/primitives/Modal/Modal.svelte +157 -157
- package/dist/primitives/Pagination/Pagination.stories.svelte +76 -76
- package/dist/primitives/Pagination/Pagination.svelte +261 -261
- package/dist/primitives/Radio/Radio.stories.svelte +80 -80
- package/dist/primitives/Radio/Radio.svelte +67 -67
- package/dist/primitives/Skeleton/CardPlaceholder.svelte +87 -87
- package/dist/primitives/Skeleton/ImagePlaceholder.svelte +59 -59
- package/dist/primitives/Skeleton/ListPlaceholder.svelte +76 -76
- package/dist/primitives/Skeleton/Skeleton.stories.svelte +151 -151
- package/dist/primitives/Skeleton/Skeleton.svelte +26 -26
- package/dist/primitives/Spinner/Spinner.spec.js +71 -71
- package/dist/primitives/Spinner/Spinner.stories.svelte +29 -29
- package/dist/primitives/Spinner/Spinner.svelte +20 -20
- package/dist/primitives/Tabs/TabItem.svelte +49 -49
- package/dist/primitives/Tabs/Tabs.stories.svelte +112 -112
- package/dist/primitives/Tabs/Tabs.svelte +137 -137
- package/dist/primitives/Toggle.spec.js +146 -146
- package/dist/primitives/Toggle.stories.svelte +92 -92
- package/dist/primitives/Toggle.svelte +131 -131
- package/dist/primitives/Tooltip/Tooltip.svelte +83 -83
- package/dist/primitives/Typography/Typography.svelte +53 -53
- package/dist/primitives/ValidationError.spec.js +103 -103
- package/dist/primitives/ValidationError.stories.svelte +69 -69
- package/dist/primitives/ValidationError.svelte +29 -29
- package/dist/primitives/index.js +92 -92
- package/dist/recipes/CropImage/CropImage.spec.js +208 -208
- package/dist/recipes/CropImage/CropImage.stories.svelte +104 -104
- package/dist/recipes/CropImage/CropImage.svelte +219 -219
- package/dist/recipes/ImageUploader/ImageUploader.stories.svelte +125 -125
- package/dist/recipes/ImageUploader/ImageUploader.svelte +970 -970
- package/dist/recipes/Toaster/Toaster.stories.svelte +62 -62
- package/dist/recipes/feedback/EmptyState/EmptyState.svelte +1 -1
- package/dist/recipes/feedback/ErrorDisplay.spec.js +69 -69
- package/dist/recipes/feedback/ErrorDisplay.stories.svelte +101 -101
- package/dist/recipes/feedback/ErrorDisplay.svelte +1 -1
- package/dist/recipes/feedback/StatusIndicator/StatusIndicator.spec.js +133 -133
- package/dist/recipes/feedback/StatusIndicator/StatusIndicator.svelte +157 -157
- package/dist/recipes/fields/CheckboxField.svelte +85 -85
- package/dist/recipes/fields/FormField.svelte +58 -58
- package/dist/recipes/fields/RadioGroup.svelte +95 -95
- package/dist/recipes/fields/SelectField.svelte +80 -80
- package/dist/recipes/fields/TextareaField.svelte +97 -97
- package/dist/recipes/fields/ToggleField.svelte +60 -60
- package/dist/recipes/fields/index.js +7 -7
- package/dist/recipes/inputs/MultiSelect.spec.js +260 -260
- package/dist/recipes/inputs/MultiSelect.stories.svelte +133 -133
- package/dist/recipes/inputs/MultiSelect.svelte +283 -283
- package/dist/recipes/inputs/OTPInput.spec.js +251 -251
- package/dist/recipes/inputs/OTPInput.stories.svelte +162 -162
- package/dist/recipes/inputs/OTPInput.svelte +117 -117
- package/dist/recipes/inputs/PasswordInput.svelte +22 -22
- package/dist/recipes/inputs/PasswordStrengthIndicator/PasswordStrengthIndicator.svelte +131 -117
- package/dist/recipes/inputs/PasswordStrengthIndicator/PasswordStrengthIndicator.svelte.d.ts.map +1 -1
- package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.stories.svelte +123 -123
- package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.svelte +344 -344
- package/dist/recipes/inputs/Search.svelte +102 -102
- package/dist/recipes/inputs/SelectDropdown.svelte +171 -171
- package/dist/recipes/modals/AlertModal.svelte +130 -130
- package/dist/recipes/modals/ConfirmationModal.spec.js +206 -206
- package/dist/recipes/modals/ConfirmationModal.stories.svelte +119 -119
- package/dist/recipes/modals/ConfirmationModal.svelte +152 -152
- package/dist/recipes/modals/InputModal.svelte +182 -182
- package/dist/recipes/modals/ModalStateManager.spec.js +100 -100
- package/dist/recipes/modals/ModalStateManager.svelte +77 -77
- package/dist/recipes/modals/ModalTestWrapper.svelte +65 -65
- package/dist/recipes/modals/StatusModal.svelte +206 -206
- package/dist/services/EventService.js +75 -75
- package/dist/services/EventService.spec.js +217 -217
- package/dist/services/ShowService.spec.js +345 -345
- package/dist/stores/toaster.js +13 -13
- package/dist/stories/ButtonAuditReview.stories.svelte +14 -14
- package/dist/stories/ButtonAuditReview.svelte +427 -427
- package/dist/stories/PatternsGallery.stories.svelte +19 -19
- package/dist/stories/PatternsGallery.svelte +206 -206
- package/dist/stories/PrimitivesGallery.stories.svelte +19 -19
- package/dist/stories/PrimitivesGallery.svelte +752 -752
- package/dist/stories/RecipesGallery.stories.svelte +19 -19
- package/dist/stories/RecipesGallery.svelte +471 -471
- package/dist/stories/button-audit-manifest.json +11186 -11186
- package/dist/tailwind/preset.cjs +82 -82
- package/dist/telemetry.js +405 -405
- package/dist/telemetry.spec.js +1169 -1169
- package/dist/tokens/tokens.css +87 -87
- package/dist/tokens/typography-base.css +163 -163
- package/dist/tokens/utilities.css +353 -353
- package/dist/utils/apiConfig.spec.js +219 -219
- package/dist/utils/transitions.js +4 -4
- package/dist/utils/utils.js +693 -693
- package/package.json +297 -297
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
fill="none"
|
|
12
12
|
xmlns="http://www.w3.org/2000/svg"
|
|
13
13
|
>
|
|
14
|
-
<path
|
|
15
|
-
d="M12 19L5 12L12 5"
|
|
16
|
-
stroke={color}
|
|
17
|
-
stroke-width="2"
|
|
18
|
-
stroke-linecap="round"
|
|
19
|
-
stroke-linejoin="round"
|
|
20
|
-
/>
|
|
21
|
-
<path
|
|
22
|
-
d="M19 12H5"
|
|
23
|
-
stroke={color}
|
|
24
|
-
stroke-width="2"
|
|
25
|
-
stroke-linecap="round"
|
|
26
|
-
stroke-linejoin="round"
|
|
27
|
-
/>
|
|
14
|
+
<path
|
|
15
|
+
d="M12 19L5 12L12 5"
|
|
16
|
+
stroke={color}
|
|
17
|
+
stroke-width="2"
|
|
18
|
+
stroke-linecap="round"
|
|
19
|
+
stroke-linejoin="round"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
d="M19 12H5"
|
|
23
|
+
stroke={color}
|
|
24
|
+
stroke-width="2"
|
|
25
|
+
stroke-linecap="round"
|
|
26
|
+
stroke-linejoin="round"
|
|
27
|
+
/>
|
|
28
28
|
</svg>
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
fill="none"
|
|
12
12
|
xmlns="http://www.w3.org/2000/svg"
|
|
13
13
|
>
|
|
14
|
-
<path
|
|
15
|
-
fill-rule="evenodd"
|
|
16
|
-
clip-rule="evenodd"
|
|
17
|
-
d="M10 20C12.6522 20 15.1957 18.9464 17.0711 17.0711C18.9464 15.1957 20 12.6522 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0C7.34784 0 4.8043 1.05357 2.92893 2.92893C1.05357 4.8043 0 7.34784 0 10C0 12.6522 1.05357 15.1957 2.92893 17.0711C4.8043 18.9464 7.34784 20 10 20ZM14.6338 8.38375C14.8614 8.148 14.9874 7.83224 14.9846 7.5045C14.9817 7.17675 14.8503 6.86324 14.6185 6.63148C14.3868 6.39972 14.0732 6.26826 13.7455 6.26541C13.4178 6.26256 13.102 6.38855 12.8663 6.61625L8.75 10.7325L7.13375 9.11625C6.898 8.88855 6.58224 8.76256 6.2545 8.76541C5.92675 8.76826 5.61324 8.89972 5.38148 9.13148C5.14972 9.36324 5.01826 9.67675 5.01541 10.0045C5.01256 10.3322 5.13855 10.648 5.36625 10.8837L7.86625 13.3838C8.10066 13.6181 8.41854 13.7497 8.75 13.7497C9.08146 13.7497 9.39934 13.6181 9.63375 13.3838L14.6338 8.38375Z"
|
|
18
|
-
fill={color}
|
|
19
|
-
/>
|
|
14
|
+
<path
|
|
15
|
+
fill-rule="evenodd"
|
|
16
|
+
clip-rule="evenodd"
|
|
17
|
+
d="M10 20C12.6522 20 15.1957 18.9464 17.0711 17.0711C18.9464 15.1957 20 12.6522 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0C7.34784 0 4.8043 1.05357 2.92893 2.92893C1.05357 4.8043 0 7.34784 0 10C0 12.6522 1.05357 15.1957 2.92893 17.0711C4.8043 18.9464 7.34784 20 10 20ZM14.6338 8.38375C14.8614 8.148 14.9874 7.83224 14.9846 7.5045C14.9817 7.17675 14.8503 6.86324 14.6185 6.63148C14.3868 6.39972 14.0732 6.26826 13.7455 6.26541C13.4178 6.26256 13.102 6.38855 12.8663 6.61625L8.75 10.7325L7.13375 9.11625C6.898 8.88855 6.58224 8.76256 6.2545 8.76541C5.92675 8.76826 5.61324 8.89972 5.38148 9.13148C5.14972 9.36324 5.01826 9.67675 5.01541 10.0045C5.01256 10.3322 5.13855 10.648 5.36625 10.8837L7.86625 13.3838C8.10066 13.6181 8.41854 13.7497 8.75 13.7497C9.08146 13.7497 9.39934 13.6181 9.63375 13.3838L14.6338 8.38375Z"
|
|
18
|
+
fill={color}
|
|
19
|
+
/>
|
|
20
20
|
</svg>
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
fill="none"
|
|
12
12
|
xmlns="http://www.w3.org/2000/svg"
|
|
13
13
|
>
|
|
14
|
-
<path
|
|
15
|
-
d="M8.00016 14.6666C11.6821 14.6666 14.6668 11.6818 14.6668 7.99992C14.6668 4.31802 11.6821 1.33325 8.00016 1.33325C4.31826 1.33325 1.3335 4.31802 1.3335 7.99992C1.3335 11.6818 4.31826 14.6666 8.00016 14.6666Z"
|
|
16
|
-
stroke={color}
|
|
17
|
-
stroke-width="1.33333"
|
|
18
|
-
stroke-linecap="round"
|
|
19
|
-
stroke-linejoin="round"
|
|
20
|
-
/>
|
|
21
|
-
<path
|
|
22
|
-
d="M6 8.00008L7.33333 9.33341L10 6.66675"
|
|
23
|
-
stroke={color}
|
|
24
|
-
stroke-width="1.33333"
|
|
25
|
-
stroke-linecap="round"
|
|
26
|
-
stroke-linejoin="round"
|
|
27
|
-
/>
|
|
28
|
-
</svg>
|
|
14
|
+
<path
|
|
15
|
+
d="M8.00016 14.6666C11.6821 14.6666 14.6668 11.6818 14.6668 7.99992C14.6668 4.31802 11.6821 1.33325 8.00016 1.33325C4.31826 1.33325 1.3335 4.31802 1.3335 7.99992C1.3335 11.6818 4.31826 14.6666 8.00016 14.6666Z"
|
|
16
|
+
stroke={color}
|
|
17
|
+
stroke-width="1.33333"
|
|
18
|
+
stroke-linecap="round"
|
|
19
|
+
stroke-linejoin="round"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
d="M6 8.00008L7.33333 9.33341L10 6.66675"
|
|
23
|
+
stroke={color}
|
|
24
|
+
stroke-width="1.33333"
|
|
25
|
+
stroke-linecap="round"
|
|
26
|
+
stroke-linejoin="round"
|
|
27
|
+
/>
|
|
28
|
+
</svg>
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
fill="none"
|
|
12
12
|
xmlns="http://www.w3.org/2000/svg"
|
|
13
13
|
>
|
|
14
|
-
<path
|
|
15
|
-
d="M18.2847 25.7735C17.6953 25.7734 17.1301 25.5202 16.7134 25.0697L7.82356 15.4612C7.40691 15.0107 7.17285 14.3998 7.17285 13.7628C7.17285 13.1259 7.40691 12.515 7.82356 12.0645L16.7134 2.456C16.9184 2.22657 17.1636 2.04357 17.4348 1.91768C17.7059 1.79178 17.9976 1.72552 18.2927 1.72275C18.5878 1.71998 18.8804 1.78075 19.1536 1.90153C19.4267 2.02232 19.6748 2.20068 19.8835 2.42622C20.0922 2.65177 20.2572 2.91997 20.3689 3.21518C20.4807 3.5104 20.5369 3.82671 20.5344 4.14566C20.5318 4.46462 20.4705 4.77983 20.354 5.0729C20.2375 5.36597 20.0682 5.63103 19.8559 5.85262L12.5374 13.7628L19.8559 21.6731C20.1667 22.009 20.3783 22.437 20.464 22.9029C20.5497 23.3688 20.5057 23.8517 20.3375 24.2906C20.1693 24.7294 19.8845 25.1046 19.5192 25.3685C19.1538 25.6325 18.7242 25.7734 18.2847 25.7735Z"
|
|
16
|
-
fill={color}
|
|
17
|
-
/>
|
|
14
|
+
<path
|
|
15
|
+
d="M18.2847 25.7735C17.6953 25.7734 17.1301 25.5202 16.7134 25.0697L7.82356 15.4612C7.40691 15.0107 7.17285 14.3998 7.17285 13.7628C7.17285 13.1259 7.40691 12.515 7.82356 12.0645L16.7134 2.456C16.9184 2.22657 17.1636 2.04357 17.4348 1.91768C17.7059 1.79178 17.9976 1.72552 18.2927 1.72275C18.5878 1.71998 18.8804 1.78075 19.1536 1.90153C19.4267 2.02232 19.6748 2.20068 19.8835 2.42622C20.0922 2.65177 20.2572 2.91997 20.3689 3.21518C20.4807 3.5104 20.5369 3.82671 20.5344 4.14566C20.5318 4.46462 20.4705 4.77983 20.354 5.0729C20.2375 5.36597 20.0682 5.63103 19.8559 5.85262L12.5374 13.7628L19.8559 21.6731C20.1667 22.009 20.3783 22.437 20.464 22.9029C20.5497 23.3688 20.5057 23.8517 20.3375 24.2906C20.1693 24.7294 19.8845 25.1046 19.5192 25.3685C19.1538 25.6325 18.7242 25.7734 18.2847 25.7735Z"
|
|
16
|
+
fill={color}
|
|
17
|
+
/>
|
|
18
18
|
</svg>
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
fill="none"
|
|
12
12
|
xmlns="http://www.w3.org/2000/svg"
|
|
13
13
|
>
|
|
14
|
-
<path
|
|
15
|
-
d="M9.26149 25.7735C8.822 25.7734 8.3924 25.6325 8.02701 25.3685C7.66161 25.1046 7.37682 24.7294 7.20865 24.2906C7.04048 23.8517 6.99647 23.3688 7.08218 22.9029C7.1679 22.437 7.37949 22.009 7.69021 21.6731L15.0088 13.7628L7.69021 5.85262C7.47794 5.63103 7.30863 5.36597 7.19215 5.0729C7.07568 4.77983 7.01437 4.46462 7.0118 4.14566C7.00924 3.82671 7.06547 3.5104 7.17722 3.21518C7.28897 2.91997 7.45399 2.65177 7.66266 2.42622C7.87134 2.20068 8.11948 2.02232 8.39261 1.90153C8.66574 1.78075 8.95839 1.71998 9.25349 1.72275C9.54859 1.72552 9.84022 1.79178 10.1114 1.91768C10.3825 2.04357 10.6278 2.22657 10.8328 2.456L19.7226 12.0645C20.1392 12.515 20.3733 13.1259 20.3733 13.7628C20.3733 14.3998 20.1392 15.0107 19.7226 15.4612L10.8328 25.0697C10.4161 25.5202 9.85087 25.7734 9.26149 25.7735Z"
|
|
16
|
-
fill={color}
|
|
17
|
-
/>
|
|
14
|
+
<path
|
|
15
|
+
d="M9.26149 25.7735C8.822 25.7734 8.3924 25.6325 8.02701 25.3685C7.66161 25.1046 7.37682 24.7294 7.20865 24.2906C7.04048 23.8517 6.99647 23.3688 7.08218 22.9029C7.1679 22.437 7.37949 22.009 7.69021 21.6731L15.0088 13.7628L7.69021 5.85262C7.47794 5.63103 7.30863 5.36597 7.19215 5.0729C7.07568 4.77983 7.01437 4.46462 7.0118 4.14566C7.00924 3.82671 7.06547 3.5104 7.17722 3.21518C7.28897 2.91997 7.45399 2.65177 7.66266 2.42622C7.87134 2.20068 8.11948 2.02232 8.39261 1.90153C8.66574 1.78075 8.95839 1.71998 9.25349 1.72275C9.54859 1.72552 9.84022 1.79178 10.1114 1.91768C10.3825 2.04357 10.6278 2.22657 10.8328 2.456L19.7226 12.0645C20.1392 12.515 20.3733 13.1259 20.3733 13.7628C20.3733 14.3998 20.1392 15.0107 19.7226 15.4612L10.8328 25.0697C10.4161 25.5202 9.85087 25.7734 9.26149 25.7735Z"
|
|
16
|
+
fill={color}
|
|
17
|
+
/>
|
|
18
18
|
</svg>
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
fill="none"
|
|
12
12
|
xmlns="http://www.w3.org/2000/svg"
|
|
13
13
|
>
|
|
14
|
-
<path
|
|
15
|
-
d="M10 4H5C4.44772 4 4 4.44772 4 5V10C4 10.5523 4.44772 11 5 11H10C10.5523 11 11 10.5523 11 10V5C11 4.44772 10.5523 4 10 4Z"
|
|
16
|
-
stroke={color}
|
|
17
|
-
stroke-width="1.33333"
|
|
18
|
-
stroke-linecap="round"
|
|
19
|
-
stroke-linejoin="round"
|
|
20
|
-
/>
|
|
21
|
-
<path
|
|
22
|
-
d="M2 8C1.45 8 1 7.55 1 7V2C1 1.45 1.45 1 2 1H7C7.55 1 8 1.45 8 2"
|
|
23
|
-
stroke={color}
|
|
24
|
-
stroke-width="1.33333"
|
|
25
|
-
stroke-linecap="round"
|
|
26
|
-
stroke-linejoin="round"
|
|
27
|
-
/>
|
|
28
|
-
</svg>
|
|
14
|
+
<path
|
|
15
|
+
d="M10 4H5C4.44772 4 4 4.44772 4 5V10C4 10.5523 4.44772 11 5 11H10C10.5523 11 11 10.5523 11 10V5C11 4.44772 10.5523 4 10 4Z"
|
|
16
|
+
stroke={color}
|
|
17
|
+
stroke-width="1.33333"
|
|
18
|
+
stroke-linecap="round"
|
|
19
|
+
stroke-linejoin="round"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
d="M2 8C1.45 8 1 7.55 1 7V2C1 1.45 1.45 1 2 1H7C7.55 1 8 1.45 8 2"
|
|
23
|
+
stroke={color}
|
|
24
|
+
stroke-width="1.33333"
|
|
25
|
+
stroke-linecap="round"
|
|
26
|
+
stroke-linejoin="round"
|
|
27
|
+
/>
|
|
28
|
+
</svg>
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
fill="none"
|
|
12
12
|
xmlns="http://www.w3.org/2000/svg"
|
|
13
13
|
>
|
|
14
|
-
<path
|
|
15
|
-
d="M7.0885 5.99961L11.1645 1.92359C11.2381 1.85256 11.2967 1.76758 11.3371 1.67363C11.3774 1.57968 11.3987 1.47863 11.3996 1.37638C11.4005 1.27413 11.381 1.17272 11.3423 1.07808C11.3035 0.983445 11.2464 0.897464 11.1741 0.825159C11.1018 0.752855 11.0158 0.695674 10.9211 0.656954C10.8265 0.618234 10.7251 0.59875 10.6228 0.599638C10.5206 0.600527 10.4195 0.621771 10.3256 0.662129C10.2316 0.702488 10.1467 0.761155 10.0756 0.834705L5.99961 4.91072L1.92359 0.834705C1.77835 0.694429 1.58383 0.616809 1.38192 0.618564C1.18001 0.620319 0.986864 0.701307 0.844085 0.844085C0.701307 0.986864 0.620319 1.18001 0.618564 1.38192C0.616809 1.58383 0.694429 1.77835 0.834705 1.92359L4.91072 5.99961L0.834705 10.0756C0.761155 10.1467 0.702488 10.2316 0.662129 10.3256C0.621771 10.4195 0.600527 10.5206 0.599638 10.6228C0.59875 10.7251 0.618234 10.8265 0.656954 10.9211C0.695674 11.0158 0.752855 11.1018 0.825159 11.1741C0.897464 11.2464 0.983445 11.3035 1.07808 11.3423C1.17272 11.381 1.27413 11.4005 1.37638 11.3996C1.47863 11.3987 1.57968 11.3774 1.67363 11.3371C1.76758 11.2967 1.85256 11.2381 1.92359 11.1645L5.99961 7.0885L10.0756 11.1645C10.2209 11.3048 10.4154 11.3824 10.6173 11.3807C10.8192 11.3789 11.0124 11.2979 11.1551 11.1551C11.2979 11.0124 11.3789 10.8192 11.3807 10.6173C11.3824 10.4154 11.3048 10.2209 11.1645 10.0756L7.0885 5.99961Z"
|
|
16
|
-
fill={color}
|
|
17
|
-
/>
|
|
18
|
-
</svg>
|
|
14
|
+
<path
|
|
15
|
+
d="M7.0885 5.99961L11.1645 1.92359C11.2381 1.85256 11.2967 1.76758 11.3371 1.67363C11.3774 1.57968 11.3987 1.47863 11.3996 1.37638C11.4005 1.27413 11.381 1.17272 11.3423 1.07808C11.3035 0.983445 11.2464 0.897464 11.1741 0.825159C11.1018 0.752855 11.0158 0.695674 10.9211 0.656954C10.8265 0.618234 10.7251 0.59875 10.6228 0.599638C10.5206 0.600527 10.4195 0.621771 10.3256 0.662129C10.2316 0.702488 10.1467 0.761155 10.0756 0.834705L5.99961 4.91072L1.92359 0.834705C1.77835 0.694429 1.58383 0.616809 1.38192 0.618564C1.18001 0.620319 0.986864 0.701307 0.844085 0.844085C0.701307 0.986864 0.620319 1.18001 0.618564 1.38192C0.616809 1.58383 0.694429 1.77835 0.834705 1.92359L4.91072 5.99961L0.834705 10.0756C0.761155 10.1467 0.702488 10.2316 0.662129 10.3256C0.621771 10.4195 0.600527 10.5206 0.599638 10.6228C0.59875 10.7251 0.618234 10.8265 0.656954 10.9211C0.695674 11.0158 0.752855 11.1018 0.825159 11.1741C0.897464 11.2464 0.983445 11.3035 1.07808 11.3423C1.17272 11.381 1.27413 11.4005 1.37638 11.3996C1.47863 11.3987 1.57968 11.3774 1.67363 11.3371C1.76758 11.2967 1.85256 11.2381 1.92359 11.1645L5.99961 7.0885L10.0756 11.1645C10.2209 11.3048 10.4154 11.3824 10.6173 11.3807C10.8192 11.3789 11.0124 11.2979 11.1551 11.1551C11.2979 11.0124 11.3789 10.8192 11.3807 10.6173C11.3824 10.4154 11.3048 10.2209 11.1645 10.0756L7.0885 5.99961Z"
|
|
16
|
+
fill={color}
|
|
17
|
+
/>
|
|
18
|
+
</svg>
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
fill="none"
|
|
12
12
|
xmlns="http://www.w3.org/2000/svg"
|
|
13
13
|
>
|
|
14
|
-
<path
|
|
15
|
-
d="M4 6L8 10L12 6"
|
|
16
|
-
stroke={color}
|
|
17
|
-
stroke-width="1.33333"
|
|
18
|
-
stroke-linecap="round"
|
|
19
|
-
stroke-linejoin="round"
|
|
20
|
-
/>
|
|
21
|
-
</svg>
|
|
14
|
+
<path
|
|
15
|
+
d="M4 6L8 10L12 6"
|
|
16
|
+
stroke={color}
|
|
17
|
+
stroke-width="1.33333"
|
|
18
|
+
stroke-linecap="round"
|
|
19
|
+
stroke-linejoin="round"
|
|
20
|
+
/>
|
|
21
|
+
</svg>
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
fill="none"
|
|
12
12
|
xmlns="http://www.w3.org/2000/svg"
|
|
13
13
|
>
|
|
14
|
-
<path
|
|
15
|
-
fill-rule="evenodd"
|
|
16
|
-
clip-rule="evenodd"
|
|
17
|
-
d="M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0ZM7.55055 5.78278C7.06239 5.29463 6.27094 5.29463 5.78278 5.78278C5.29463 6.27094 5.29463 7.06239 5.78278 7.55055L8.23223 10L5.78278 12.4495C5.29463 12.9376 5.29463 13.7291 5.78278 14.2172C6.27094 14.7054 7.06239 14.7054 7.55055 14.2172L10 11.7678L12.4495 14.2172C12.9376 14.7054 13.7291 14.7054 14.2172 14.2172C14.7054 13.7291 14.7054 12.9376 14.2172 12.4495L11.7678 10L14.2172 7.55055C14.7054 7.06239 14.7054 6.27094 14.2172 5.78278C13.7291 5.29463 12.9376 5.29463 12.4495 5.78278L10 8.23223L7.55055 5.78278Z"
|
|
18
|
-
fill={color}
|
|
19
|
-
/>
|
|
14
|
+
<path
|
|
15
|
+
fill-rule="evenodd"
|
|
16
|
+
clip-rule="evenodd"
|
|
17
|
+
d="M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0ZM7.55055 5.78278C7.06239 5.29463 6.27094 5.29463 5.78278 5.78278C5.29463 6.27094 5.29463 7.06239 5.78278 7.55055L8.23223 10L5.78278 12.4495C5.29463 12.9376 5.29463 13.7291 5.78278 14.2172C6.27094 14.7054 7.06239 14.7054 7.55055 14.2172L10 11.7678L12.4495 14.2172C12.9376 14.7054 13.7291 14.7054 14.2172 14.2172C14.7054 13.7291 14.7054 12.9376 14.2172 12.4495L11.7678 10L14.2172 7.55055C14.7054 7.06239 14.7054 6.27094 14.2172 5.78278C13.7291 5.29463 12.9376 5.29463 12.4495 5.78278L10 8.23223L7.55055 5.78278Z"
|
|
18
|
+
fill={color}
|
|
19
|
+
/>
|
|
20
20
|
</svg>
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
fill="none"
|
|
12
12
|
xmlns="http://www.w3.org/2000/svg"
|
|
13
13
|
>
|
|
14
|
-
<path
|
|
15
|
-
d="M12.5 18V11.3333C12.5 11.1123 12.4122 10.9004 12.2559 10.7441C12.0996 10.5878 11.8877 10.5 11.6667 10.5H8.33333C8.11232 10.5 7.90036 10.5878 7.74408 10.7441C7.5878 10.9004 7.5 11.1123 7.5 11.3333V18"
|
|
16
|
-
stroke={color}
|
|
17
|
-
stroke-width="1.66667"
|
|
18
|
-
stroke-linecap="round"
|
|
19
|
-
stroke-linejoin="round"
|
|
20
|
-
/>
|
|
21
|
-
<path
|
|
22
|
-
d="M2.5 8.8342C2.49994 8.59176 2.55278 8.35222 2.65482 8.1323C2.75687 7.91238 2.90566 7.71737 3.09083 7.56087L8.92417 2.5617C9.22499 2.30746 9.60613 2.16797 10 2.16797C10.3939 2.16797 10.775 2.30746 11.0758 2.5617L16.9092 7.56087C17.0943 7.71737 17.2431 7.91238 17.3452 8.1323C17.4472 8.35222 17.5001 8.59176 17.5 8.8342V16.3342C17.5 16.7762 17.3244 17.2002 17.0118 17.5127C16.6993 17.8253 16.2754 18.0009 15.8333 18.0009H4.16667C3.72464 18.0009 3.30072 17.8253 2.98816 17.5127C2.67559 17.2002 2.5 16.7762 2.5 16.3342V8.8342Z"
|
|
23
|
-
stroke={color}
|
|
24
|
-
stroke-width="1.66667"
|
|
25
|
-
stroke-linecap="round"
|
|
26
|
-
stroke-linejoin="round"
|
|
27
|
-
/>
|
|
28
|
-
</svg>
|
|
14
|
+
<path
|
|
15
|
+
d="M12.5 18V11.3333C12.5 11.1123 12.4122 10.9004 12.2559 10.7441C12.0996 10.5878 11.8877 10.5 11.6667 10.5H8.33333C8.11232 10.5 7.90036 10.5878 7.74408 10.7441C7.5878 10.9004 7.5 11.1123 7.5 11.3333V18"
|
|
16
|
+
stroke={color}
|
|
17
|
+
stroke-width="1.66667"
|
|
18
|
+
stroke-linecap="round"
|
|
19
|
+
stroke-linejoin="round"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
d="M2.5 8.8342C2.49994 8.59176 2.55278 8.35222 2.65482 8.1323C2.75687 7.91238 2.90566 7.71737 3.09083 7.56087L8.92417 2.5617C9.22499 2.30746 9.60613 2.16797 10 2.16797C10.3939 2.16797 10.775 2.30746 11.0758 2.5617L16.9092 7.56087C17.0943 7.71737 17.2431 7.91238 17.3452 8.1323C17.4472 8.35222 17.5001 8.59176 17.5 8.8342V16.3342C17.5 16.7762 17.3244 17.2002 17.0118 17.5127C16.6993 17.8253 16.2754 18.0009 15.8333 18.0009H4.16667C3.72464 18.0009 3.30072 17.8253 2.98816 17.5127C2.67559 17.2002 2.5 16.7762 2.5 16.3342V8.8342Z"
|
|
23
|
+
stroke={color}
|
|
24
|
+
stroke-width="1.66667"
|
|
25
|
+
stroke-linecap="round"
|
|
26
|
+
stroke-linejoin="round"
|
|
27
|
+
/>
|
|
28
|
+
</svg>
|
|
@@ -1,175 +1,175 @@
|
|
|
1
|
-
import { render, screen } from "@testing-library/svelte";
|
|
2
|
-
import { expect, describe, test } from "vitest";
|
|
3
|
-
import Icon from "./Icon.svelte";
|
|
4
|
-
|
|
5
|
-
describe("Icon Component Tests", () => {
|
|
6
|
-
test("Renders Home icon", () => {
|
|
7
|
-
const { container } = render(Icon, { props: { name: "Home" } });
|
|
8
|
-
const svg = container.querySelector("svg");
|
|
9
|
-
expect(svg).toBeInTheDocument();
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
test("Renders Shows icon", () => {
|
|
13
|
-
const { container } = render(Icon, { props: { name: "Shows" } });
|
|
14
|
-
const svg = container.querySelector("svg");
|
|
15
|
-
expect(svg).toBeInTheDocument();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
test("Renders Availability icon", () => {
|
|
19
|
-
const { container } = render(Icon, { props: { name: "Availability" } });
|
|
20
|
-
const svg = container.querySelector("svg");
|
|
21
|
-
expect(svg).toBeInTheDocument();
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
test("Renders Profile icon", () => {
|
|
25
|
-
const { container } = render(Icon, { props: { name: "Profile" } });
|
|
26
|
-
const svg = container.querySelector("svg");
|
|
27
|
-
expect(svg).toBeInTheDocument();
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
test("Renders Payment icon", () => {
|
|
31
|
-
const { container } = render(Icon, { props: { name: "Payment" } });
|
|
32
|
-
const svg = container.querySelector("svg");
|
|
33
|
-
expect(svg).toBeInTheDocument();
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
test("Renders Notification icon", () => {
|
|
37
|
-
const { container } = render(Icon, { props: { name: "Notification" } });
|
|
38
|
-
const svg = container.querySelector("svg");
|
|
39
|
-
expect(svg).toBeInTheDocument();
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
test("Renders Signout icon", () => {
|
|
43
|
-
const { container } = render(Icon, { props: { name: "Signout" } });
|
|
44
|
-
const svg = container.querySelector("svg");
|
|
45
|
-
expect(svg).toBeInTheDocument();
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
test("Renders ChevronLeft icon", () => {
|
|
49
|
-
const { container } = render(Icon, { props: { name: "ChevronLeft" } });
|
|
50
|
-
const svg = container.querySelector("svg");
|
|
51
|
-
expect(svg).toBeInTheDocument();
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
test("Renders ChevronRight icon", () => {
|
|
55
|
-
const { container } = render(Icon, { props: { name: "ChevronRight" } });
|
|
56
|
-
const svg = container.querySelector("svg");
|
|
57
|
-
expect(svg).toBeInTheDocument();
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
test("Renders CheckCircle icon", () => {
|
|
61
|
-
const { container } = render(Icon, { props: { name: "CheckCircle" } });
|
|
62
|
-
const svg = container.querySelector("svg");
|
|
63
|
-
expect(svg).toBeInTheDocument();
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
test("Renders ErrorCircle icon", () => {
|
|
67
|
-
const { container } = render(Icon, { props: { name: "ErrorCircle" } });
|
|
68
|
-
const svg = container.querySelector("svg");
|
|
69
|
-
expect(svg).toBeInTheDocument();
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
test("Renders ArrowLeft icon", () => {
|
|
73
|
-
const { container } = render(Icon, { props: { name: "ArrowLeft" } });
|
|
74
|
-
const svg = container.querySelector("svg");
|
|
75
|
-
expect(svg).toBeInTheDocument();
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
test("Renders Back icon", () => {
|
|
79
|
-
const { container } = render(Icon, { props: { name: "Back" } });
|
|
80
|
-
const svg = container.querySelector("svg");
|
|
81
|
-
expect(svg).toBeInTheDocument();
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
test("Shows error message for unknown icon", () => {
|
|
85
|
-
render(Icon, { props: { name: "UnknownIcon" } });
|
|
86
|
-
expect(screen.getByText('Icon "UnknownIcon" not found.')).toBeInTheDocument();
|
|
87
|
-
});
|
|
88
|
-
|
|
1
|
+
import { render, screen } from "@testing-library/svelte";
|
|
2
|
+
import { expect, describe, test } from "vitest";
|
|
3
|
+
import Icon from "./Icon.svelte";
|
|
4
|
+
|
|
5
|
+
describe("Icon Component Tests", () => {
|
|
6
|
+
test("Renders Home icon", () => {
|
|
7
|
+
const { container } = render(Icon, { props: { name: "Home" } });
|
|
8
|
+
const svg = container.querySelector("svg");
|
|
9
|
+
expect(svg).toBeInTheDocument();
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
test("Renders Shows icon", () => {
|
|
13
|
+
const { container } = render(Icon, { props: { name: "Shows" } });
|
|
14
|
+
const svg = container.querySelector("svg");
|
|
15
|
+
expect(svg).toBeInTheDocument();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test("Renders Availability icon", () => {
|
|
19
|
+
const { container } = render(Icon, { props: { name: "Availability" } });
|
|
20
|
+
const svg = container.querySelector("svg");
|
|
21
|
+
expect(svg).toBeInTheDocument();
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
test("Renders Profile icon", () => {
|
|
25
|
+
const { container } = render(Icon, { props: { name: "Profile" } });
|
|
26
|
+
const svg = container.querySelector("svg");
|
|
27
|
+
expect(svg).toBeInTheDocument();
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
test("Renders Payment icon", () => {
|
|
31
|
+
const { container } = render(Icon, { props: { name: "Payment" } });
|
|
32
|
+
const svg = container.querySelector("svg");
|
|
33
|
+
expect(svg).toBeInTheDocument();
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
test("Renders Notification icon", () => {
|
|
37
|
+
const { container } = render(Icon, { props: { name: "Notification" } });
|
|
38
|
+
const svg = container.querySelector("svg");
|
|
39
|
+
expect(svg).toBeInTheDocument();
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
test("Renders Signout icon", () => {
|
|
43
|
+
const { container } = render(Icon, { props: { name: "Signout" } });
|
|
44
|
+
const svg = container.querySelector("svg");
|
|
45
|
+
expect(svg).toBeInTheDocument();
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
test("Renders ChevronLeft icon", () => {
|
|
49
|
+
const { container } = render(Icon, { props: { name: "ChevronLeft" } });
|
|
50
|
+
const svg = container.querySelector("svg");
|
|
51
|
+
expect(svg).toBeInTheDocument();
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
test("Renders ChevronRight icon", () => {
|
|
55
|
+
const { container } = render(Icon, { props: { name: "ChevronRight" } });
|
|
56
|
+
const svg = container.querySelector("svg");
|
|
57
|
+
expect(svg).toBeInTheDocument();
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
test("Renders CheckCircle icon", () => {
|
|
61
|
+
const { container } = render(Icon, { props: { name: "CheckCircle" } });
|
|
62
|
+
const svg = container.querySelector("svg");
|
|
63
|
+
expect(svg).toBeInTheDocument();
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
test("Renders ErrorCircle icon", () => {
|
|
67
|
+
const { container } = render(Icon, { props: { name: "ErrorCircle" } });
|
|
68
|
+
const svg = container.querySelector("svg");
|
|
69
|
+
expect(svg).toBeInTheDocument();
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
test("Renders ArrowLeft icon", () => {
|
|
73
|
+
const { container } = render(Icon, { props: { name: "ArrowLeft" } });
|
|
74
|
+
const svg = container.querySelector("svg");
|
|
75
|
+
expect(svg).toBeInTheDocument();
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
test("Renders Back icon", () => {
|
|
79
|
+
const { container } = render(Icon, { props: { name: "Back" } });
|
|
80
|
+
const svg = container.querySelector("svg");
|
|
81
|
+
expect(svg).toBeInTheDocument();
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
test("Shows error message for unknown icon", () => {
|
|
85
|
+
render(Icon, { props: { name: "UnknownIcon" } });
|
|
86
|
+
expect(screen.getByText('Icon "UnknownIcon" not found.')).toBeInTheDocument();
|
|
87
|
+
});
|
|
88
|
+
|
|
89
89
|
test("Default size is 24", () => {
|
|
90
90
|
const { container } = render(Icon, { props: { name: "Home" } });
|
|
91
91
|
const svg = container.querySelector("svg");
|
|
92
92
|
// Check width or height attribute
|
|
93
93
|
expect(svg).toHaveAttribute("width", "24");
|
|
94
94
|
});
|
|
95
|
-
|
|
96
|
-
test("Accepts custom size prop", () => {
|
|
97
|
-
const { container } = render(Icon, { props: { name: "Home", size: "32" } });
|
|
98
|
-
const svg = container.querySelector("svg");
|
|
99
|
-
expect(svg).toHaveAttribute("width", "32");
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
test("Default color is currentColor", () => {
|
|
103
|
-
const { container } = render(Icon, { props: { name: "Home" } });
|
|
104
|
-
const svg = container.querySelector("svg");
|
|
105
|
-
// Color is typically applied to stroke or fill
|
|
106
|
-
expect(svg).toBeInTheDocument();
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
test("Accepts custom color prop", () => {
|
|
110
|
-
const { container } = render(Icon, { props: { name: "Home", color: "red" } });
|
|
111
|
-
const svg = container.querySelector("svg");
|
|
112
|
-
expect(svg).toBeInTheDocument();
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
test("Renders More icon", () => {
|
|
116
|
-
const { container } = render(Icon, { props: { name: "More" } });
|
|
117
|
-
const svg = container.querySelector("svg");
|
|
118
|
-
expect(svg).toBeInTheDocument();
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
test("Renders Info icon", () => {
|
|
122
|
-
const { container } = render(Icon, { props: { name: "Info" } });
|
|
123
|
-
const svg = container.querySelector("svg");
|
|
124
|
-
expect(svg).toBeInTheDocument();
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
test("Renders Message icon", () => {
|
|
128
|
-
const { container } = render(Icon, { props: { name: "Message" } });
|
|
129
|
-
const svg = container.querySelector("svg");
|
|
130
|
-
expect(svg).toBeInTheDocument();
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
test("Renders Reload icon", () => {
|
|
134
|
-
const { container } = render(Icon, { props: { name: "Reload" } });
|
|
135
|
-
const svg = container.querySelector("svg");
|
|
136
|
-
expect(svg).toBeInTheDocument();
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
test("Renders Copy icon", () => {
|
|
140
|
-
const { container } = render(Icon, { props: { name: "Copy" } });
|
|
141
|
-
const svg = container.querySelector("svg");
|
|
142
|
-
expect(svg).toBeInTheDocument();
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
test("Renders Cross icon", () => {
|
|
146
|
-
const { container } = render(Icon, { props: { name: "Cross" } });
|
|
147
|
-
const svg = container.querySelector("svg");
|
|
148
|
-
expect(svg).toBeInTheDocument();
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
test("Renders ArrowRight icon", () => {
|
|
152
|
-
const { container } = render(Icon, { props: { name: "ArrowRight" } });
|
|
153
|
-
const svg = container.querySelector("svg");
|
|
154
|
-
expect(svg).toBeInTheDocument();
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
test("Renders DownArrow icon", () => {
|
|
158
|
-
const { container } = render(Icon, { props: { name: "DownArrow" } });
|
|
159
|
-
const svg = container.querySelector("svg");
|
|
160
|
-
expect(svg).toBeInTheDocument();
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
test("Renders MoreHori icon", () => {
|
|
164
|
-
const { container } = render(Icon, { props: { name: "MoreHori" } });
|
|
165
|
-
const svg = container.querySelector("svg");
|
|
166
|
-
expect(svg).toBeInTheDocument();
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
test("Renders CheckCircleOutline icon", () => {
|
|
170
|
-
const { container } = render(Icon, { props: { name: "CheckCircleOutline" } });
|
|
171
|
-
const svg = container.querySelector("svg");
|
|
172
|
-
expect(svg).toBeInTheDocument();
|
|
173
|
-
});
|
|
174
|
-
|
|
175
|
-
});
|
|
95
|
+
|
|
96
|
+
test("Accepts custom size prop", () => {
|
|
97
|
+
const { container } = render(Icon, { props: { name: "Home", size: "32" } });
|
|
98
|
+
const svg = container.querySelector("svg");
|
|
99
|
+
expect(svg).toHaveAttribute("width", "32");
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
test("Default color is currentColor", () => {
|
|
103
|
+
const { container } = render(Icon, { props: { name: "Home" } });
|
|
104
|
+
const svg = container.querySelector("svg");
|
|
105
|
+
// Color is typically applied to stroke or fill
|
|
106
|
+
expect(svg).toBeInTheDocument();
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
test("Accepts custom color prop", () => {
|
|
110
|
+
const { container } = render(Icon, { props: { name: "Home", color: "red" } });
|
|
111
|
+
const svg = container.querySelector("svg");
|
|
112
|
+
expect(svg).toBeInTheDocument();
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
test("Renders More icon", () => {
|
|
116
|
+
const { container } = render(Icon, { props: { name: "More" } });
|
|
117
|
+
const svg = container.querySelector("svg");
|
|
118
|
+
expect(svg).toBeInTheDocument();
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
test("Renders Info icon", () => {
|
|
122
|
+
const { container } = render(Icon, { props: { name: "Info" } });
|
|
123
|
+
const svg = container.querySelector("svg");
|
|
124
|
+
expect(svg).toBeInTheDocument();
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
test("Renders Message icon", () => {
|
|
128
|
+
const { container } = render(Icon, { props: { name: "Message" } });
|
|
129
|
+
const svg = container.querySelector("svg");
|
|
130
|
+
expect(svg).toBeInTheDocument();
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
test("Renders Reload icon", () => {
|
|
134
|
+
const { container } = render(Icon, { props: { name: "Reload" } });
|
|
135
|
+
const svg = container.querySelector("svg");
|
|
136
|
+
expect(svg).toBeInTheDocument();
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
test("Renders Copy icon", () => {
|
|
140
|
+
const { container } = render(Icon, { props: { name: "Copy" } });
|
|
141
|
+
const svg = container.querySelector("svg");
|
|
142
|
+
expect(svg).toBeInTheDocument();
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
test("Renders Cross icon", () => {
|
|
146
|
+
const { container } = render(Icon, { props: { name: "Cross" } });
|
|
147
|
+
const svg = container.querySelector("svg");
|
|
148
|
+
expect(svg).toBeInTheDocument();
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
test("Renders ArrowRight icon", () => {
|
|
152
|
+
const { container } = render(Icon, { props: { name: "ArrowRight" } });
|
|
153
|
+
const svg = container.querySelector("svg");
|
|
154
|
+
expect(svg).toBeInTheDocument();
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
test("Renders DownArrow icon", () => {
|
|
158
|
+
const { container } = render(Icon, { props: { name: "DownArrow" } });
|
|
159
|
+
const svg = container.querySelector("svg");
|
|
160
|
+
expect(svg).toBeInTheDocument();
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
test("Renders MoreHori icon", () => {
|
|
164
|
+
const { container } = render(Icon, { props: { name: "MoreHori" } });
|
|
165
|
+
const svg = container.querySelector("svg");
|
|
166
|
+
expect(svg).toBeInTheDocument();
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
test("Renders CheckCircleOutline icon", () => {
|
|
170
|
+
const { container } = render(Icon, { props: { name: "CheckCircleOutline" } });
|
|
171
|
+
const svg = container.querySelector("svg");
|
|
172
|
+
expect(svg).toBeInTheDocument();
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
});
|