@getmicdrop/svelte-components 5.5.4 → 5.6.0
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.spec.d.ts +2 -0
- package/dist/calendar/AboutShow/AboutShow.spec.d.ts.map +1 -0
- package/dist/calendar/AboutShow/AboutShow.spec.js +791 -0
- package/dist/calendar/AboutShow/AboutShow.svelte +172 -172
- package/dist/calendar/Calendar/MiniMonthCalendar.spec.d.ts +2 -0
- package/dist/calendar/Calendar/MiniMonthCalendar.spec.d.ts.map +1 -0
- package/dist/calendar/Calendar/MiniMonthCalendar.spec.js +1191 -0
- package/dist/calendar/Calendar/MiniMonthCalendar.svelte +782 -782
- package/dist/calendar/FAQs/FAQs.spec.d.ts +2 -0
- package/dist/calendar/FAQs/FAQs.spec.d.ts.map +1 -0
- package/dist/calendar/FAQs/FAQs.spec.js +238 -0
- package/dist/calendar/FAQs/FAQs.svelte +75 -75
- package/dist/calendar/MonthSwitcher/MonthSwitcher.spec.d.ts +2 -0
- package/dist/calendar/MonthSwitcher/MonthSwitcher.spec.d.ts.map +1 -0
- package/dist/calendar/MonthSwitcher/MonthSwitcher.spec.js +420 -0
- package/dist/calendar/MonthSwitcher/MonthSwitcher.svelte +126 -126
- package/dist/calendar/OrderSummary/OrderSummary.spec.d.ts +2 -0
- package/dist/calendar/OrderSummary/OrderSummary.spec.d.ts.map +1 -0
- package/dist/calendar/OrderSummary/OrderSummary.spec.js +808 -0
- package/dist/calendar/OrderSummary/OrderSummary.svelte +367 -367
- package/dist/calendar/PublicCard/PublicCard.spec.d.ts +2 -0
- package/dist/calendar/PublicCard/PublicCard.spec.d.ts.map +1 -0
- package/dist/calendar/PublicCard/PublicCard.spec.js +301 -0
- package/dist/calendar/PublicCard/PublicCard.svelte +134 -134
- package/dist/calendar/ShowCard/ShowCard.spec.d.ts +2 -0
- package/dist/calendar/ShowCard/ShowCard.spec.d.ts.map +1 -0
- package/dist/calendar/ShowCard/ShowCard.spec.js +714 -0
- package/dist/calendar/ShowCard/ShowCard.svelte +157 -157
- package/dist/calendar/ShowTimeCard/ShowTimeCard.spec.d.ts +2 -0
- package/dist/calendar/ShowTimeCard/ShowTimeCard.spec.d.ts.map +1 -0
- package/dist/calendar/ShowTimeCard/ShowTimeCard.spec.js +241 -0
- package/dist/calendar/ShowTimeCard/ShowTimeCard.svelte +61 -61
- package/dist/components/Layout/AppShell.svelte +104 -0
- package/dist/components/Layout/AppShell.svelte.d.ts +26 -0
- package/dist/components/Layout/AppShell.svelte.d.ts.map +1 -0
- package/dist/components/Layout/ContentSection.svelte +80 -0
- package/dist/components/Layout/ContentSection.svelte.d.ts +23 -0
- package/dist/components/Layout/ContentSection.svelte.d.ts.map +1 -0
- package/dist/components/Layout/Grid.svelte +4 -4
- package/dist/components/Layout/Heading.svelte +81 -0
- package/dist/components/Layout/Heading.svelte.d.ts +24 -0
- package/dist/components/Layout/Heading.svelte.d.ts.map +1 -0
- package/dist/components/Layout/PageContainer.svelte +69 -0
- package/dist/components/Layout/PageContainer.svelte.d.ts +23 -0
- package/dist/components/Layout/PageContainer.svelte.d.ts.map +1 -0
- package/dist/components/Layout/Responsive.svelte +75 -0
- package/dist/components/Layout/Responsive.svelte.d.ts +19 -0
- package/dist/components/Layout/Responsive.svelte.d.ts.map +1 -0
- package/dist/components/Layout/Section.spec.d.ts +2 -0
- package/dist/components/Layout/Section.spec.d.ts.map +1 -0
- package/dist/components/Layout/Section.spec.js +149 -0
- package/dist/components/Layout/Section.svelte +80 -80
- package/dist/components/Layout/ShowOnDesktop.svelte +37 -0
- package/dist/components/Layout/ShowOnDesktop.svelte.d.ts +16 -0
- package/dist/components/Layout/ShowOnDesktop.svelte.d.ts.map +1 -0
- package/dist/components/Layout/ShowOnMobile.svelte +37 -0
- package/dist/components/Layout/ShowOnMobile.svelte.d.ts +16 -0
- package/dist/components/Layout/ShowOnMobile.svelte.d.ts.map +1 -0
- package/dist/components/Layout/Sidebar.spec.d.ts +2 -0
- package/dist/components/Layout/Sidebar.spec.d.ts.map +1 -0
- package/dist/components/Layout/Sidebar.spec.js +186 -0
- package/dist/components/Layout/Sidebar.svelte +108 -108
- package/dist/components/Layout/Stack.spec.js +2 -2
- package/dist/components/Layout/Stack.svelte +6 -6
- package/dist/components/Layout/Text.svelte +87 -0
- package/dist/components/Layout/Text.svelte.d.ts +28 -0
- package/dist/components/Layout/Text.svelte.d.ts.map +1 -0
- package/dist/components/Layout/TwoColumn.svelte +108 -0
- package/dist/components/Layout/TwoColumn.svelte.d.ts +28 -0
- package/dist/components/Layout/TwoColumn.svelte.d.ts.map +1 -0
- package/dist/components/Layout/__tests__/Heading.test.d.ts +2 -0
- package/dist/components/Layout/__tests__/Heading.test.d.ts.map +1 -0
- package/dist/components/Layout/__tests__/Heading.test.js +123 -0
- package/dist/components/Layout/__tests__/ShowOnDesktop.test.d.ts +2 -0
- package/dist/components/Layout/__tests__/ShowOnDesktop.test.d.ts.map +1 -0
- package/dist/components/Layout/__tests__/ShowOnDesktop.test.js +84 -0
- package/dist/components/Layout/__tests__/ShowOnMobile.test.d.ts +2 -0
- package/dist/components/Layout/__tests__/ShowOnMobile.test.d.ts.map +1 -0
- package/dist/components/Layout/__tests__/ShowOnMobile.test.js +80 -0
- package/dist/components/Layout/__tests__/Text.test.d.ts +2 -0
- package/dist/components/Layout/__tests__/Text.test.d.ts.map +1 -0
- package/dist/components/Layout/__tests__/Text.test.js +146 -0
- package/dist/components/Layout/__tests__/TwoColumn.test.d.ts +2 -0
- package/dist/components/Layout/__tests__/TwoColumn.test.d.ts.map +1 -0
- package/dist/components/Layout/__tests__/TwoColumn.test.js +129 -0
- package/dist/constants/formOptions.spec.js +9 -5
- package/dist/constants/validation.js +91 -91
- package/dist/constants/validation.spec.js +64 -64
- package/dist/datetime/__tests__/timezone.test.js +123 -1
- package/dist/forms/createFieldTracker.spec.d.ts +2 -0
- package/dist/forms/createFieldTracker.spec.d.ts.map +1 -0
- package/dist/forms/createFieldTracker.spec.js +343 -0
- package/dist/forms/createFormStore.spec.d.ts +2 -0
- package/dist/forms/createFormStore.spec.d.ts.map +1 -0
- package/dist/forms/createFormStore.spec.js +689 -0
- package/dist/index.d.ts +4 -112
- package/dist/index.js +40 -226
- package/dist/patterns/data/DataGrid.spec.d.ts +2 -0
- package/dist/patterns/data/DataGrid.spec.d.ts.map +1 -0
- package/dist/patterns/data/DataGrid.spec.js +159 -0
- package/dist/patterns/data/DataGrid.svelte +45 -45
- package/dist/patterns/data/DataList.spec.d.ts +2 -0
- package/dist/patterns/data/DataList.spec.d.ts.map +1 -0
- package/dist/patterns/data/DataList.spec.js +158 -0
- package/dist/patterns/data/DataList.svelte +24 -24
- package/dist/patterns/data/DataTable.spec.d.ts +2 -0
- package/dist/patterns/data/DataTable.spec.d.ts.map +1 -0
- package/dist/patterns/data/DataTable.spec.js +196 -0
- package/dist/patterns/data/DataTable.svelte +36 -36
- package/dist/patterns/forms/FormActions.spec.js +95 -88
- package/dist/patterns/forms/FormActions.stories.svelte +97 -97
- package/dist/patterns/forms/FormActions.svelte +46 -46
- package/dist/patterns/forms/FormGrid.spec.d.ts +2 -0
- package/dist/patterns/forms/FormGrid.spec.d.ts.map +1 -0
- package/dist/patterns/forms/FormGrid.spec.js +125 -0
- package/dist/patterns/forms/FormGrid.svelte +33 -33
- package/dist/patterns/forms/FormSection.spec.d.ts +2 -0
- package/dist/patterns/forms/FormSection.spec.d.ts.map +1 -0
- package/dist/patterns/forms/FormSection.spec.js +153 -0
- 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.spec.d.ts +2 -0
- package/dist/patterns/layout/Sidebar.spec.d.ts.map +1 -0
- package/dist/patterns/layout/Sidebar.spec.js +159 -0
- package/dist/patterns/layout/Sidebar.svelte +39 -39
- package/dist/patterns/layout/index.d.ts +9 -0
- package/dist/patterns/layout/index.js +22 -0
- package/dist/patterns/navigation/BottomNav.stories.svelte +117 -117
- package/dist/patterns/navigation/BottomNav.svelte +64 -64
- package/dist/patterns/navigation/Header.spec.js +33 -24
- package/dist/patterns/navigation/Header.stories.svelte +77 -77
- package/dist/patterns/navigation/Header.svelte +193 -193
- package/dist/patterns/page/PageHeader.spec.d.ts +2 -0
- package/dist/patterns/page/PageHeader.spec.d.ts.map +1 -0
- package/dist/patterns/page/PageHeader.spec.js +167 -0
- package/dist/patterns/page/PageHeader.svelte +18 -18
- package/dist/patterns/page/PageLayout.spec.d.ts +2 -0
- package/dist/patterns/page/PageLayout.spec.d.ts.map +1 -0
- package/dist/patterns/page/PageLayout.spec.js +145 -0
- package/dist/patterns/page/PageLayout.svelte +40 -40
- package/dist/patterns/page/PageLoader.spec.js +57 -54
- package/dist/patterns/page/PageLoader.stories.svelte +137 -137
- package/dist/patterns/page/PageLoader.svelte +24 -24
- package/dist/patterns/page/SectionHeader.spec.d.ts +2 -0
- package/dist/patterns/page/SectionHeader.spec.d.ts.map +1 -0
- package/dist/patterns/page/SectionHeader.spec.js +197 -0
- package/dist/patterns/page/SectionHeader.svelte +29 -29
- package/dist/presets/badges.js +112 -112
- package/dist/presets/badges.spec.d.ts +2 -0
- package/dist/presets/badges.spec.d.ts.map +1 -0
- package/dist/presets/badges.spec.js +172 -0
- package/dist/presets/buttons.js +76 -76
- package/dist/presets/buttons.spec.d.ts +2 -0
- package/dist/presets/buttons.spec.d.ts.map +1 -0
- package/dist/presets/buttons.spec.js +135 -0
- package/dist/presets/index.js +9 -9
- package/dist/primitives/Accordion/Accordion.spec.d.ts +2 -0
- package/dist/primitives/Accordion/Accordion.spec.d.ts.map +1 -0
- package/dist/primitives/Accordion/Accordion.spec.js +83 -0
- package/dist/primitives/Accordion/Accordion.stories.svelte +75 -75
- package/dist/primitives/Accordion/Accordion.svelte +42 -42
- package/dist/primitives/Accordion/AccordionItem.spec.d.ts +2 -0
- package/dist/primitives/Accordion/AccordionItem.spec.d.ts.map +1 -0
- package/dist/primitives/Accordion/AccordionItem.spec.js +661 -0
- package/dist/primitives/Accordion/AccordionItem.svelte +95 -95
- package/dist/primitives/Accordion/AccordionItemWrapper.test.svelte +107 -0
- package/dist/primitives/Accordion/AccordionItemWrapper.test.svelte.d.ts +35 -0
- package/dist/primitives/Accordion/AccordionItemWrapper.test.svelte.d.ts.map +1 -0
- package/dist/primitives/Alert/Alert.spec.js +173 -170
- package/dist/primitives/Alert/Alert.stories.svelte +88 -88
- package/dist/primitives/Alert/Alert.svelte +27 -27
- package/dist/primitives/Avatar/Avatar.spec.d.ts +2 -0
- package/dist/primitives/Avatar/Avatar.spec.d.ts.map +1 -0
- package/dist/primitives/Avatar/Avatar.spec.js +211 -0
- 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 -103
- package/dist/primitives/Badges/Badge.stories.svelte +86 -86
- package/dist/primitives/Badges/Badge.svelte +79 -79
- package/dist/primitives/BottomSheet/BottomSheet.spec.js +136 -127
- package/dist/primitives/BottomSheet/BottomSheet.stories.svelte +83 -83
- package/dist/primitives/BottomSheet/BottomSheet.svelte +100 -100
- package/dist/primitives/BottomSheet/BottomSheetWrapper.test.svelte +13 -0
- package/dist/primitives/BottomSheet/BottomSheetWrapper.test.svelte.d.ts +7 -0
- package/dist/primitives/BottomSheet/BottomSheetWrapper.test.svelte.d.ts.map +1 -0
- package/dist/primitives/Breadcrumb/Breadcrumb.spec.js +122 -120
- package/dist/primitives/Breadcrumb/Breadcrumb.stories.svelte +23 -23
- package/dist/primitives/Breadcrumb/Breadcrumb.svelte +89 -89
- package/dist/primitives/Button/Button.spec.js +223 -211
- package/dist/primitives/Button/Button.stories.svelte +76 -76
- package/dist/primitives/Button/Button.svelte +270 -270
- package/dist/primitives/Button/ButtonSaveDemo.spec.js +146 -48
- package/dist/primitives/Button/ButtonSaveDemo.svelte +25 -25
- package/dist/primitives/Button/ButtonVariantShowcase.spec.d.ts +2 -0
- package/dist/primitives/Button/ButtonVariantShowcase.spec.d.ts.map +1 -0
- package/dist/primitives/Button/ButtonVariantShowcase.spec.js +202 -0
- 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.spec.d.ts +2 -0
- package/dist/primitives/Checkbox/Checkbox.spec.d.ts.map +1 -0
- package/dist/primitives/Checkbox/Checkbox.spec.js +252 -0
- package/dist/primitives/Checkbox/Checkbox.stories.svelte +84 -84
- package/dist/primitives/Checkbox/Checkbox.svelte +88 -88
- package/dist/primitives/DarkModeToggle.spec.js +390 -357
- package/dist/primitives/DarkModeToggle.stories.svelte +57 -57
- package/dist/primitives/DarkModeToggle.svelte +136 -136
- package/dist/primitives/Drawer/Drawer.spec.d.ts +2 -0
- package/dist/primitives/Drawer/Drawer.spec.d.ts.map +1 -0
- package/dist/primitives/Drawer/Drawer.spec.js +212 -0
- package/dist/primitives/Drawer/Drawer.stories.svelte +80 -80
- package/dist/primitives/Drawer/Drawer.svelte +120 -120
- package/dist/primitives/Dropdown/Dropdown.spec.d.ts +2 -0
- package/dist/primitives/Dropdown/Dropdown.spec.d.ts.map +1 -0
- package/dist/primitives/Dropdown/Dropdown.spec.js +366 -0
- package/dist/primitives/Dropdown/Dropdown.stories.svelte +137 -137
- package/dist/primitives/Dropdown/Dropdown.svelte +14 -14
- package/dist/primitives/Dropdown/DropdownItem.spec.d.ts +2 -0
- package/dist/primitives/Dropdown/DropdownItem.spec.d.ts.map +1 -0
- package/dist/primitives/Dropdown/DropdownItem.spec.js +182 -0
- package/dist/primitives/Dropdown/DropdownItem.svelte +80 -80
- 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/Icons/iconTestUtils.spec.d.ts +2 -0
- package/dist/primitives/Icons/iconTestUtils.spec.d.ts.map +1 -0
- package/dist/primitives/Icons/iconTestUtils.spec.js +235 -0
- package/dist/primitives/Input/Input.spec.js +573 -573
- package/dist/primitives/Input/Input.stories.svelte +139 -139
- package/dist/primitives/Input/Input.svelte +418 -431
- package/dist/primitives/Input/Input.svelte.d.ts.map +1 -1
- package/dist/primitives/Input/Select.spec.js +212 -218
- package/dist/primitives/Input/Select.stories.svelte +112 -112
- package/dist/primitives/Input/Select.svelte +128 -128
- package/dist/primitives/Input/Textarea.spec.d.ts +2 -0
- package/dist/primitives/Input/Textarea.spec.d.ts.map +1 -0
- package/dist/primitives/Input/Textarea.spec.js +255 -0
- package/dist/primitives/Input/Textarea.stories.svelte +137 -137
- package/dist/primitives/Input/Textarea.svelte +35 -35
- package/dist/primitives/Label/Label.spec.d.ts +2 -0
- package/dist/primitives/Label/Label.spec.d.ts.map +1 -0
- package/dist/primitives/Label/Label.spec.js +157 -0
- package/dist/primitives/Label/Label.svelte +37 -37
- package/dist/primitives/Modal/Modal.spec.js +99 -95
- package/dist/primitives/Modal/Modal.stories.svelte +86 -86
- package/dist/primitives/Modal/Modal.svelte +158 -158
- package/dist/primitives/Modal/ModalTestWrapper.svelte +65 -0
- package/dist/primitives/Modal/ModalTestWrapper.svelte.d.ts +23 -0
- package/dist/primitives/Modal/ModalTestWrapper.svelte.d.ts.map +1 -0
- package/dist/primitives/NumberInput/NumberInput.spec.d.ts +2 -0
- package/dist/primitives/NumberInput/NumberInput.spec.d.ts.map +1 -0
- package/dist/primitives/NumberInput/NumberInput.spec.js +235 -0
- package/dist/primitives/NumberInput/NumberInput.svelte +106 -106
- package/dist/primitives/Pagination/Pagination.spec.d.ts +2 -0
- package/dist/primitives/Pagination/Pagination.spec.d.ts.map +1 -0
- package/dist/primitives/Pagination/Pagination.spec.js +266 -0
- package/dist/primitives/Pagination/Pagination.stories.svelte +76 -76
- package/dist/primitives/Pagination/Pagination.svelte +261 -261
- package/dist/primitives/Radio/Radio.spec.d.ts +2 -0
- package/dist/primitives/Radio/Radio.spec.d.ts.map +1 -0
- package/dist/primitives/Radio/Radio.spec.js +206 -0
- package/dist/primitives/Radio/Radio.stories.svelte +80 -80
- package/dist/primitives/Radio/Radio.svelte +67 -67
- package/dist/primitives/Skeleton/CardPlaceholder.spec.d.ts +2 -0
- package/dist/primitives/Skeleton/CardPlaceholder.spec.d.ts.map +1 -0
- package/dist/primitives/Skeleton/CardPlaceholder.spec.js +156 -0
- package/dist/primitives/Skeleton/CardPlaceholder.svelte +87 -87
- package/dist/primitives/Skeleton/ImagePlaceholder.spec.d.ts +2 -0
- package/dist/primitives/Skeleton/ImagePlaceholder.spec.d.ts.map +1 -0
- package/dist/primitives/Skeleton/ImagePlaceholder.spec.js +120 -0
- package/dist/primitives/Skeleton/ImagePlaceholder.svelte +59 -59
- package/dist/primitives/Skeleton/ListPlaceholder.spec.d.ts +2 -0
- package/dist/primitives/Skeleton/ListPlaceholder.spec.d.ts.map +1 -0
- package/dist/primitives/Skeleton/ListPlaceholder.spec.js +220 -0
- package/dist/primitives/Skeleton/ListPlaceholder.svelte +76 -76
- package/dist/primitives/Skeleton/Skeleton.spec.d.ts +2 -0
- package/dist/primitives/Skeleton/Skeleton.spec.d.ts.map +1 -0
- package/dist/primitives/Skeleton/Skeleton.spec.js +173 -0
- 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 -75
- package/dist/primitives/Spinner/Spinner.stories.svelte +29 -29
- package/dist/primitives/Spinner/Spinner.svelte +20 -20
- package/dist/primitives/Tabs/TabItem.spec.d.ts +2 -0
- package/dist/primitives/Tabs/TabItem.spec.d.ts.map +1 -0
- package/dist/primitives/Tabs/TabItem.spec.js +130 -0
- package/dist/primitives/Tabs/TabItem.svelte +49 -49
- package/dist/primitives/Tabs/Tabs.spec.d.ts +2 -0
- package/dist/primitives/Tabs/Tabs.spec.d.ts.map +1 -0
- package/dist/primitives/Tabs/Tabs.spec.js +295 -0
- package/dist/primitives/Tabs/Tabs.stories.svelte +112 -112
- package/dist/primitives/Tabs/Tabs.svelte +123 -123
- package/dist/primitives/Tabs/TabsWithItems.test.svelte +18 -0
- package/dist/primitives/Tabs/TabsWithItems.test.svelte.d.ts +16 -0
- package/dist/primitives/Tabs/TabsWithItems.test.svelte.d.ts.map +1 -0
- package/dist/primitives/Toggle.spec.js +143 -127
- package/dist/primitives/Toggle.stories.svelte +92 -92
- package/dist/primitives/Toggle.svelte +71 -71
- package/dist/primitives/Typography/Typography.spec.d.ts +2 -0
- package/dist/primitives/Typography/Typography.spec.d.ts.map +1 -0
- package/dist/primitives/Typography/Typography.spec.js +183 -0
- 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.d.ts +1 -0
- package/dist/primitives/index.js +84 -81
- package/dist/recipes/CropImage/CropImage.spec.js +208 -216
- package/dist/recipes/CropImage/CropImage.stories.svelte +104 -104
- package/dist/recipes/CropImage/CropImage.svelte +238 -238
- package/dist/recipes/ImageUploader/ImageUploader.spec.d.ts +2 -0
- package/dist/recipes/ImageUploader/ImageUploader.spec.d.ts.map +1 -0
- package/dist/recipes/ImageUploader/ImageUploader.spec.js +1351 -0
- package/dist/recipes/ImageUploader/ImageUploader.stories.svelte +125 -125
- package/dist/recipes/ImageUploader/ImageUploader.svelte +804 -804
- package/dist/recipes/SuperLogin/SuperLogin.spec.d.ts +2 -0
- package/dist/recipes/SuperLogin/SuperLogin.spec.d.ts.map +1 -0
- package/dist/recipes/SuperLogin/SuperLogin.spec.js +1436 -0
- package/dist/recipes/Toaster/Toaster.stories.svelte +62 -62
- package/dist/recipes/feedback/EmptyState/EmptyState.spec.d.ts +2 -0
- package/dist/recipes/feedback/EmptyState/EmptyState.spec.d.ts.map +1 -0
- package/dist/recipes/feedback/EmptyState/EmptyState.spec.js +202 -0
- 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 -129
- package/dist/recipes/feedback/StatusIndicator/StatusIndicator.svelte +157 -157
- package/dist/recipes/fields/CheckboxField.spec.d.ts +2 -0
- package/dist/recipes/fields/CheckboxField.spec.d.ts.map +1 -0
- package/dist/recipes/fields/CheckboxField.spec.js +135 -0
- package/dist/recipes/fields/CheckboxField.svelte +85 -85
- package/dist/recipes/fields/FormField.spec.d.ts +2 -0
- package/dist/recipes/fields/FormField.spec.d.ts.map +1 -0
- package/dist/recipes/fields/FormField.spec.js +159 -0
- package/dist/recipes/fields/FormField.svelte +58 -58
- package/dist/recipes/fields/RadioGroup.spec.d.ts +2 -0
- package/dist/recipes/fields/RadioGroup.spec.d.ts.map +1 -0
- package/dist/recipes/fields/RadioGroup.spec.js +199 -0
- package/dist/recipes/fields/RadioGroup.svelte +95 -95
- package/dist/recipes/fields/SelectField.spec.d.ts +2 -0
- package/dist/recipes/fields/SelectField.spec.d.ts.map +1 -0
- package/dist/recipes/fields/SelectField.spec.js +188 -0
- package/dist/recipes/fields/SelectField.svelte +80 -80
- package/dist/recipes/fields/TextareaField.spec.d.ts +2 -0
- package/dist/recipes/fields/TextareaField.spec.d.ts.map +1 -0
- package/dist/recipes/fields/TextareaField.spec.js +205 -0
- package/dist/recipes/fields/TextareaField.svelte +97 -97
- package/dist/recipes/fields/ToggleField.spec.d.ts +2 -0
- package/dist/recipes/fields/ToggleField.spec.d.ts.map +1 -0
- package/dist/recipes/fields/ToggleField.spec.js +153 -0
- package/dist/recipes/fields/ToggleField.svelte +60 -60
- package/dist/recipes/fields/index.js +7 -7
- package/dist/recipes/inputs/MultiSelect.spec.js +258 -257
- package/dist/recipes/inputs/MultiSelect.stories.svelte +133 -133
- package/dist/recipes/inputs/MultiSelect.svelte +256 -249
- package/dist/recipes/inputs/MultiSelect.svelte.d.ts +2 -0
- package/dist/recipes/inputs/MultiSelect.svelte.d.ts.map +1 -1
- package/dist/recipes/inputs/OTPInput.spec.js +251 -238
- package/dist/recipes/inputs/OTPInput.stories.svelte +162 -162
- package/dist/recipes/inputs/OTPInput.svelte +29 -29
- package/dist/recipes/inputs/PasswordInput.spec.d.ts +2 -0
- package/dist/recipes/inputs/PasswordInput.spec.d.ts.map +1 -0
- package/dist/recipes/inputs/PasswordInput.spec.js +410 -0
- package/dist/recipes/inputs/PasswordInput.svelte +22 -22
- package/dist/recipes/inputs/PasswordStrengthIndicator/PasswordStrengthIndicator.spec.js +253 -173
- package/dist/recipes/inputs/PasswordStrengthIndicator/PasswordStrengthIndicator.svelte +117 -117
- package/dist/recipes/inputs/PasswordStrengthIndicator/TestWrapper.svelte +71 -0
- package/dist/recipes/inputs/PasswordStrengthIndicator/TestWrapper.svelte.d.ts +9 -0
- package/dist/recipes/inputs/PasswordStrengthIndicator/TestWrapper.svelte.d.ts.map +1 -0
- package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.spec.js +1246 -300
- package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.stories.svelte +123 -123
- package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.svelte +326 -326
- package/dist/recipes/inputs/Search.spec.d.ts +2 -0
- package/dist/recipes/inputs/Search.spec.d.ts.map +1 -0
- package/dist/recipes/inputs/Search.spec.js +177 -0
- package/dist/recipes/inputs/Search.svelte +37 -37
- package/dist/recipes/inputs/SelectDropdown.spec.d.ts +2 -0
- package/dist/recipes/inputs/SelectDropdown.spec.d.ts.map +1 -0
- package/dist/recipes/inputs/SelectDropdown.spec.js +512 -0
- package/dist/recipes/inputs/SelectDropdown.svelte +57 -57
- package/dist/recipes/modals/AlertModal.spec.d.ts +2 -0
- package/dist/recipes/modals/AlertModal.spec.d.ts.map +1 -0
- package/dist/recipes/modals/AlertModal.spec.js +432 -0
- package/dist/recipes/modals/AlertModal.svelte +130 -130
- package/dist/recipes/modals/ConfirmationModal.spec.js +206 -191
- package/dist/recipes/modals/ConfirmationModal.stories.svelte +119 -119
- package/dist/recipes/modals/ConfirmationModal.svelte +152 -152
- package/dist/recipes/modals/InputModal.spec.d.ts +2 -0
- package/dist/recipes/modals/InputModal.spec.d.ts.map +1 -0
- package/dist/recipes/modals/InputModal.spec.js +872 -0
- 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.spec.d.ts +2 -0
- package/dist/recipes/modals/ModalTestWrapper.spec.d.ts.map +1 -0
- package/dist/recipes/modals/ModalTestWrapper.spec.js +502 -0
- package/dist/recipes/modals/ModalTestWrapper.svelte +65 -65
- package/dist/recipes/modals/StatusModal.spec.d.ts +2 -0
- package/dist/recipes/modals/StatusModal.spec.d.ts.map +1 -0
- package/dist/recipes/modals/StatusModal.spec.js +599 -0
- 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 -342
- package/dist/stores/auth.js +36 -36
- package/dist/stores/auth.spec.js +139 -139
- package/dist/stores/toaster.js +13 -13
- package/dist/stories/ButtonAuditDashboard.spec.d.ts +2 -0
- package/dist/stories/ButtonAuditDashboard.spec.d.ts.map +1 -0
- package/dist/stories/ButtonAuditDashboard.spec.js +913 -0
- package/dist/stories/ButtonAuditReview.spec.d.ts +2 -0
- package/dist/stories/ButtonAuditReview.spec.d.ts.map +1 -0
- package/dist/stories/ButtonAuditReview.spec.js +422 -0
- package/dist/stories/ButtonAuditReview.stories.svelte +14 -14
- package/dist/stories/ButtonAuditReview.svelte +427 -427
- package/dist/stories/ButtonGridView.spec.d.ts +2 -0
- package/dist/stories/ButtonGridView.spec.d.ts.map +1 -0
- package/dist/stories/ButtonGridView.spec.js +667 -0
- package/dist/stories/ButtonShowcase.spec.d.ts +2 -0
- package/dist/stories/ButtonShowcase.spec.d.ts.map +1 -0
- package/dist/stories/ButtonShowcase.spec.js +499 -0
- package/dist/stories/PatternsGallery.spec.d.ts +2 -0
- package/dist/stories/PatternsGallery.spec.d.ts.map +1 -0
- package/dist/stories/PatternsGallery.spec.js +514 -0
- package/dist/stories/PatternsGallery.stories.svelte +19 -19
- package/dist/stories/PatternsGallery.svelte +206 -206
- package/dist/stories/PrimitivesGallery.spec.d.ts +2 -0
- package/dist/stories/PrimitivesGallery.spec.d.ts.map +1 -0
- package/dist/stories/PrimitivesGallery.spec.js +813 -0
- package/dist/stories/PrimitivesGallery.stories.svelte +19 -19
- package/dist/stories/PrimitivesGallery.svelte +725 -725
- package/dist/stories/RecipesGallery.spec.d.ts +2 -0
- package/dist/stories/RecipesGallery.spec.d.ts.map +1 -0
- package/dist/stories/RecipesGallery.spec.js +299 -0
- package/dist/stories/RecipesGallery.stories.svelte +19 -19
- package/dist/stories/RecipesGallery.svelte +271 -271
- package/dist/stories/button-audit-manifest.json +11186 -11186
- package/dist/stripe/useStripeTheme.spec.d.ts +2 -0
- package/dist/stripe/useStripeTheme.spec.d.ts.map +1 -0
- package/dist/stripe/useStripeTheme.spec.js +793 -0
- package/dist/tailwind/preset.cjs +82 -82
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +405 -404
- package/dist/telemetry.spec.js +1144 -661
- package/dist/tokens/__tests__/colors.test.d.ts +2 -0
- package/dist/tokens/__tests__/colors.test.d.ts.map +1 -0
- package/dist/tokens/__tests__/colors.test.js +152 -0
- package/dist/tokens/__tests__/radius.test.d.ts +2 -0
- package/dist/tokens/__tests__/radius.test.d.ts.map +1 -0
- package/dist/tokens/__tests__/radius.test.js +118 -0
- package/dist/tokens/__tests__/shadows.test.d.ts +2 -0
- package/dist/tokens/__tests__/shadows.test.d.ts.map +1 -0
- package/dist/tokens/__tests__/shadows.test.js +105 -0
- package/dist/tokens/__tests__/spacing.test.js +11 -8
- package/dist/tokens/__tests__/typography-base.test.d.ts +2 -0
- package/dist/tokens/__tests__/typography-base.test.d.ts.map +1 -0
- package/dist/tokens/__tests__/typography-base.test.js +138 -0
- package/dist/tokens/__tests__/typography.test.d.ts +2 -0
- package/dist/tokens/__tests__/typography.test.d.ts.map +1 -0
- package/dist/tokens/__tests__/typography.test.js +156 -0
- package/dist/tokens/__tests__/z-index.test.d.ts +2 -0
- package/dist/tokens/__tests__/z-index.test.d.ts.map +1 -0
- package/dist/tokens/__tests__/z-index.test.js +121 -0
- package/dist/tokens/tokens.css +87 -87
- package/dist/tokens/typography-base.css +163 -0
- package/dist/utils/apiConfig.spec.js +219 -118
- package/dist/utils/formatters.spec.d.ts +2 -0
- package/dist/utils/formatters.spec.d.ts.map +1 -0
- package/dist/utils/formatters.spec.js +82 -0
- package/dist/utils/transitions.js +62 -62
- package/dist/utils/transitions.spec.d.ts +2 -0
- package/dist/utils/transitions.spec.d.ts.map +1 -0
- package/dist/utils/transitions.spec.js +130 -0
- package/dist/utils/utils.js +354 -354
- package/package.json +292 -286
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { describe, it, expect } from 'vitest';
|
|
2
|
+
import { typography } from '../typography';
|
|
3
|
+
describe('Typography Headings', () => {
|
|
4
|
+
it('h1 has 2xl size and semibold weight', () => {
|
|
5
|
+
expect(typography.h1).toContain('text-2xl');
|
|
6
|
+
expect(typography.h1).toContain('font-semibold');
|
|
7
|
+
expect(typography.h1).toContain('text-gray-900');
|
|
8
|
+
expect(typography.h1).toContain('dark:text-white');
|
|
9
|
+
});
|
|
10
|
+
it('h2 has xl size and semibold weight', () => {
|
|
11
|
+
expect(typography.h2).toContain('text-xl');
|
|
12
|
+
expect(typography.h2).toContain('font-semibold');
|
|
13
|
+
});
|
|
14
|
+
it('h3 has lg size and semibold weight', () => {
|
|
15
|
+
expect(typography.h3).toContain('text-lg');
|
|
16
|
+
expect(typography.h3).toContain('font-semibold');
|
|
17
|
+
});
|
|
18
|
+
it('h4 has base size and semibold weight', () => {
|
|
19
|
+
expect(typography.h4).toContain('text-base');
|
|
20
|
+
expect(typography.h4).toContain('font-semibold');
|
|
21
|
+
});
|
|
22
|
+
it('h5 has sm size and semibold weight', () => {
|
|
23
|
+
expect(typography.h5).toContain('text-sm');
|
|
24
|
+
expect(typography.h5).toContain('font-semibold');
|
|
25
|
+
});
|
|
26
|
+
it('h6 has xs size and semibold weight', () => {
|
|
27
|
+
expect(typography.h6).toContain('text-xs');
|
|
28
|
+
expect(typography.h6).toContain('font-semibold');
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
describe('Typography Body Text', () => {
|
|
32
|
+
it('body has base size and relaxed leading', () => {
|
|
33
|
+
expect(typography.body).toContain('text-base');
|
|
34
|
+
expect(typography.body).toContain('leading-relaxed');
|
|
35
|
+
expect(typography.body).toContain('text-gray-900');
|
|
36
|
+
});
|
|
37
|
+
it('bodyMuted has muted gray color', () => {
|
|
38
|
+
expect(typography.bodyMuted).toContain('text-gray-500');
|
|
39
|
+
expect(typography.bodyMuted).toContain('dark:text-gray-400');
|
|
40
|
+
});
|
|
41
|
+
it('sm has sm size', () => {
|
|
42
|
+
expect(typography.sm).toContain('text-sm');
|
|
43
|
+
expect(typography.sm).toContain('text-gray-900');
|
|
44
|
+
});
|
|
45
|
+
it('smMuted has sm size and muted color', () => {
|
|
46
|
+
expect(typography.smMuted).toContain('text-sm');
|
|
47
|
+
expect(typography.smMuted).toContain('text-gray-500');
|
|
48
|
+
});
|
|
49
|
+
it('xs has xs size', () => {
|
|
50
|
+
expect(typography.xs).toContain('text-xs');
|
|
51
|
+
expect(typography.xs).toContain('text-gray-900');
|
|
52
|
+
});
|
|
53
|
+
it('xsMuted has xs size and muted color', () => {
|
|
54
|
+
expect(typography.xsMuted).toContain('text-xs');
|
|
55
|
+
expect(typography.xsMuted).toContain('text-gray-500');
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
describe('Typography Muted Colors', () => {
|
|
59
|
+
it('textMuted has muted gray color', () => {
|
|
60
|
+
expect(typography.textMuted).toContain('text-gray-500');
|
|
61
|
+
expect(typography.textMuted).toContain('dark:text-gray-400');
|
|
62
|
+
});
|
|
63
|
+
it('iconMuted matches textMuted', () => {
|
|
64
|
+
expect(typography.iconMuted).toBe(typography.textMuted);
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
describe('Typography Labels', () => {
|
|
68
|
+
it('label has sm size and medium weight', () => {
|
|
69
|
+
expect(typography.label).toContain('text-sm');
|
|
70
|
+
expect(typography.label).toContain('font-medium');
|
|
71
|
+
expect(typography.label).toContain('text-gray-900');
|
|
72
|
+
});
|
|
73
|
+
it('labelSpaced includes bottom margin', () => {
|
|
74
|
+
expect(typography.labelSpaced).toContain('mb-2');
|
|
75
|
+
expect(typography.labelSpaced).toContain('text-sm');
|
|
76
|
+
expect(typography.labelSpaced).toContain('font-medium');
|
|
77
|
+
});
|
|
78
|
+
it('helper has muted color', () => {
|
|
79
|
+
expect(typography.helper).toContain('text-sm');
|
|
80
|
+
expect(typography.helper).toContain('text-gray-500');
|
|
81
|
+
});
|
|
82
|
+
it('placeholder has lighter muted color', () => {
|
|
83
|
+
expect(typography.placeholder).toContain('text-sm');
|
|
84
|
+
expect(typography.placeholder).toContain('text-gray-400');
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
describe('Typography Status Text', () => {
|
|
88
|
+
it('error has red color', () => {
|
|
89
|
+
expect(typography.error).toContain('text-sm');
|
|
90
|
+
expect(typography.error).toContain('text-red-500');
|
|
91
|
+
expect(typography.error).toContain('dark:text-red-400');
|
|
92
|
+
});
|
|
93
|
+
it('success has green color', () => {
|
|
94
|
+
expect(typography.success).toContain('text-sm');
|
|
95
|
+
expect(typography.success).toContain('text-green-600');
|
|
96
|
+
});
|
|
97
|
+
it('warning has yellow color', () => {
|
|
98
|
+
expect(typography.warning).toContain('text-sm');
|
|
99
|
+
expect(typography.warning).toContain('text-yellow-600');
|
|
100
|
+
});
|
|
101
|
+
it('info has blue color', () => {
|
|
102
|
+
expect(typography.info).toContain('text-sm');
|
|
103
|
+
expect(typography.info).toContain('text-blue-600');
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
describe('Typography Links', () => {
|
|
107
|
+
it('link has blue color and hover underline', () => {
|
|
108
|
+
expect(typography.link).toContain('text-blue-700');
|
|
109
|
+
expect(typography.link).toContain('hover:underline');
|
|
110
|
+
});
|
|
111
|
+
it('linkMuted has gray color and hover state', () => {
|
|
112
|
+
expect(typography.linkMuted).toContain('text-gray-500');
|
|
113
|
+
expect(typography.linkMuted).toContain('hover:text-gray-700');
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
describe('Typography Special Cases', () => {
|
|
117
|
+
it('price has lg size and semibold weight', () => {
|
|
118
|
+
expect(typography.price).toContain('text-lg');
|
|
119
|
+
expect(typography.price).toContain('font-semibold');
|
|
120
|
+
});
|
|
121
|
+
it('priceLg has 2xl size and bold weight', () => {
|
|
122
|
+
expect(typography.priceLg).toContain('text-2xl');
|
|
123
|
+
expect(typography.priceLg).toContain('font-bold');
|
|
124
|
+
});
|
|
125
|
+
it('badge has xs size and medium weight', () => {
|
|
126
|
+
expect(typography.badge).toContain('text-xs');
|
|
127
|
+
expect(typography.badge).toContain('font-medium');
|
|
128
|
+
});
|
|
129
|
+
it('tableHeader has uppercase tracking', () => {
|
|
130
|
+
expect(typography.tableHeader).toContain('text-xs');
|
|
131
|
+
expect(typography.tableHeader).toContain('uppercase');
|
|
132
|
+
expect(typography.tableHeader).toContain('tracking-wider');
|
|
133
|
+
});
|
|
134
|
+
it('code has mono font', () => {
|
|
135
|
+
expect(typography.code).toContain('font-mono');
|
|
136
|
+
expect(typography.code).toContain('text-sm');
|
|
137
|
+
});
|
|
138
|
+
it('codeMuted has mono font and muted color', () => {
|
|
139
|
+
expect(typography.codeMuted).toContain('font-mono');
|
|
140
|
+
expect(typography.codeMuted).toContain('text-gray-500');
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
describe('Typography Token Type', () => {
|
|
144
|
+
it('all tokens are strings', () => {
|
|
145
|
+
const tokens = ['h1', 'h2', 'body', 'label', 'error', 'link', 'code'];
|
|
146
|
+
tokens.forEach(token => {
|
|
147
|
+
expect(typeof typography[token]).toBe('string');
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
it('all tokens have dark mode variants where applicable', () => {
|
|
151
|
+
const tokensWithDarkMode = ['h1', 'body', 'sm', 'label', 'error'];
|
|
152
|
+
tokensWithDarkMode.forEach(token => {
|
|
153
|
+
expect(typography[token]).toContain('dark:');
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"z-index.test.d.ts","sourceRoot":"","sources":["../../../src/lib/tokens/__tests__/z-index.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { describe, it, expect } from 'vitest';
|
|
2
|
+
import { zIndex, layers } from '../z-index';
|
|
3
|
+
describe('Z-Index Tokens', () => {
|
|
4
|
+
it('has auto value', () => {
|
|
5
|
+
expect(zIndex.auto).toBe('auto');
|
|
6
|
+
});
|
|
7
|
+
it('has base 0 value', () => {
|
|
8
|
+
expect(zIndex['0']).toBe('0');
|
|
9
|
+
});
|
|
10
|
+
it('has 10 value', () => {
|
|
11
|
+
expect(zIndex['10']).toBe('10');
|
|
12
|
+
});
|
|
13
|
+
it('has 20 value', () => {
|
|
14
|
+
expect(zIndex['20']).toBe('20');
|
|
15
|
+
});
|
|
16
|
+
it('has 30 value', () => {
|
|
17
|
+
expect(zIndex['30']).toBe('30');
|
|
18
|
+
});
|
|
19
|
+
it('has 40 value', () => {
|
|
20
|
+
expect(zIndex['40']).toBe('40');
|
|
21
|
+
});
|
|
22
|
+
it('has 50 value', () => {
|
|
23
|
+
expect(zIndex['50']).toBe('50');
|
|
24
|
+
});
|
|
25
|
+
it('has 51 value for modal content', () => {
|
|
26
|
+
expect(zIndex['51']).toBe('51');
|
|
27
|
+
});
|
|
28
|
+
it('has 60 value', () => {
|
|
29
|
+
expect(zIndex['60']).toBe('60');
|
|
30
|
+
});
|
|
31
|
+
it('has 70 value', () => {
|
|
32
|
+
expect(zIndex['70']).toBe('70');
|
|
33
|
+
});
|
|
34
|
+
it('has 100 value for critical', () => {
|
|
35
|
+
expect(zIndex['100']).toBe('100');
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
describe('Layer Aliases', () => {
|
|
39
|
+
it('base is 0', () => {
|
|
40
|
+
expect(layers.base).toBe('0');
|
|
41
|
+
expect(layers.base).toBe(zIndex['0']);
|
|
42
|
+
});
|
|
43
|
+
it('sticky is 10', () => {
|
|
44
|
+
expect(layers.sticky).toBe('10');
|
|
45
|
+
expect(layers.sticky).toBe(zIndex['10']);
|
|
46
|
+
});
|
|
47
|
+
it('navigation is 20', () => {
|
|
48
|
+
expect(layers.navigation).toBe('20');
|
|
49
|
+
expect(layers.navigation).toBe(zIndex['20']);
|
|
50
|
+
});
|
|
51
|
+
it('dropdown is 30', () => {
|
|
52
|
+
expect(layers.dropdown).toBe('30');
|
|
53
|
+
expect(layers.dropdown).toBe(zIndex['30']);
|
|
54
|
+
});
|
|
55
|
+
it('overlay is 40', () => {
|
|
56
|
+
expect(layers.overlay).toBe('40');
|
|
57
|
+
expect(layers.overlay).toBe(zIndex['40']);
|
|
58
|
+
});
|
|
59
|
+
it('modal is 50', () => {
|
|
60
|
+
expect(layers.modal).toBe('50');
|
|
61
|
+
expect(layers.modal).toBe(zIndex['50']);
|
|
62
|
+
});
|
|
63
|
+
it('modalContent is 51 (above modal)', () => {
|
|
64
|
+
expect(layers.modalContent).toBe('51');
|
|
65
|
+
expect(layers.modalContent).toBe(zIndex['51']);
|
|
66
|
+
});
|
|
67
|
+
it('toast is 60', () => {
|
|
68
|
+
expect(layers.toast).toBe('60');
|
|
69
|
+
expect(layers.toast).toBe(zIndex['60']);
|
|
70
|
+
});
|
|
71
|
+
it('tooltip is 70', () => {
|
|
72
|
+
expect(layers.tooltip).toBe('70');
|
|
73
|
+
expect(layers.tooltip).toBe(zIndex['70']);
|
|
74
|
+
});
|
|
75
|
+
it('critical is 100', () => {
|
|
76
|
+
expect(layers.critical).toBe('100');
|
|
77
|
+
expect(layers.critical).toBe(zIndex['100']);
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
describe('Layer Stacking Order', () => {
|
|
81
|
+
it('layers stack in correct order', () => {
|
|
82
|
+
const order = [
|
|
83
|
+
parseInt(layers.base),
|
|
84
|
+
parseInt(layers.sticky),
|
|
85
|
+
parseInt(layers.navigation),
|
|
86
|
+
parseInt(layers.dropdown),
|
|
87
|
+
parseInt(layers.overlay),
|
|
88
|
+
parseInt(layers.modal),
|
|
89
|
+
parseInt(layers.modalContent),
|
|
90
|
+
parseInt(layers.toast),
|
|
91
|
+
parseInt(layers.tooltip),
|
|
92
|
+
parseInt(layers.critical),
|
|
93
|
+
];
|
|
94
|
+
for (let i = 0; i < order.length - 1; i++) {
|
|
95
|
+
expect(order[i + 1]).toBeGreaterThanOrEqual(order[i]);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
it('modal content is above modal', () => {
|
|
99
|
+
expect(parseInt(layers.modalContent)).toBeGreaterThan(parseInt(layers.modal));
|
|
100
|
+
});
|
|
101
|
+
it('toast is above overlay', () => {
|
|
102
|
+
expect(parseInt(layers.toast)).toBeGreaterThan(parseInt(layers.overlay));
|
|
103
|
+
});
|
|
104
|
+
it('tooltip is above toast', () => {
|
|
105
|
+
expect(parseInt(layers.tooltip)).toBeGreaterThan(parseInt(layers.toast));
|
|
106
|
+
});
|
|
107
|
+
it('critical is highest', () => {
|
|
108
|
+
expect(parseInt(layers.critical)).toBeGreaterThanOrEqual(parseInt(layers.tooltip));
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
describe('Z-Index Semantic Meaning', () => {
|
|
112
|
+
it('dropdowns appear above navigation', () => {
|
|
113
|
+
expect(parseInt(layers.dropdown)).toBeGreaterThan(parseInt(layers.navigation));
|
|
114
|
+
});
|
|
115
|
+
it('overlays appear above dropdowns', () => {
|
|
116
|
+
expect(parseInt(layers.overlay)).toBeGreaterThan(parseInt(layers.dropdown));
|
|
117
|
+
});
|
|
118
|
+
it('modals appear above overlays', () => {
|
|
119
|
+
expect(parseInt(layers.modal)).toBeGreaterThan(parseInt(layers.overlay));
|
|
120
|
+
});
|
|
121
|
+
});
|
package/dist/tokens/tokens.css
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--bg-primary: 0 0% 100%;
|
|
3
|
-
--bg-secondary: 220 7% 97%;
|
|
4
|
-
--bg-tertiary: 220 7% 94%;
|
|
5
|
-
--bg-quaternary: 220 6% 91%;
|
|
6
|
-
|
|
7
|
-
--text-primary: 221 50% 10%;
|
|
8
|
-
--text-secondary: 220 20% 18%;
|
|
9
|
-
--text-tertiary: 221 9% 44%;
|
|
10
|
-
--text-head: 221 9% 44%;
|
|
11
|
-
|
|
12
|
-
--brand-primary: 209 99% 50%;
|
|
13
|
-
|
|
14
|
-
--accent-warning: 28 100% 59%;
|
|
15
|
-
--accent-danger: 0 100% 70%;
|
|
16
|
-
--accent-success: 131 77% 35%;
|
|
17
|
-
|
|
18
|
-
--stroke-primary: 216 6% 84%;
|
|
19
|
-
--stroke-secondary: 216 6% 84%;
|
|
20
|
-
--border: 220 13% 91%;
|
|
21
|
-
|
|
22
|
-
--card: 0 0% 100%;
|
|
23
|
-
--card-foreground: 224 71.4% 4.1%;
|
|
24
|
-
--popover: 0 0% 100%;
|
|
25
|
-
--popover-foreground: 224 71.4% 4.1%;
|
|
26
|
-
--muted: 220 14.3% 95.9%;
|
|
27
|
-
--muted-foreground: 220 8.9% 46.1%;
|
|
28
|
-
--hover-primary: 210 20% 96%;
|
|
29
|
-
|
|
30
|
-
--sidebar-background: 0 0% 100%;
|
|
31
|
-
--sidebar-foreground: 220 20% 18%;
|
|
32
|
-
--sidebar-border: 220 13% 91%;
|
|
33
|
-
--sidebar-primary: 221 65% 54%;
|
|
34
|
-
--sidebar-primary-foreground: 221 50% 10%;
|
|
35
|
-
|
|
36
|
-
--BG-Primary: var(--bg-primary);
|
|
37
|
-
--BG-Secondary: var(--bg-secondary);
|
|
38
|
-
--BG-Tertiary: var(--bg-tertiary);
|
|
39
|
-
--BG-Quaternary: var(--bg-quaternary);
|
|
40
|
-
--Text-Primary: var(--text-primary);
|
|
41
|
-
--Text-Secondary: var(--text-secondary);
|
|
42
|
-
--Text-Tartiary: var(--text-tertiary);
|
|
43
|
-
--Text-Head: var(--text-head);
|
|
44
|
-
--Brand-Primary: var(--brand-primary);
|
|
45
|
-
--Accent-Warning: var(--accent-warning);
|
|
46
|
-
--Accent-Danger: var(--accent-danger);
|
|
47
|
-
--Accent-Success: var(--accent-success);
|
|
48
|
-
--Stroke-Primary: var(--stroke-primary);
|
|
49
|
-
--Stroke-Secondary: var(--stroke-secondary);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
[data-theme="dark"],
|
|
53
|
-
.dark {
|
|
54
|
-
--bg-primary: 220 20% 18%;
|
|
55
|
-
--bg-secondary: 221 50% 10%;
|
|
56
|
-
--bg-tertiary: 221 50% 6%;
|
|
57
|
-
--bg-quaternary: 0 0% 0%;
|
|
58
|
-
|
|
59
|
-
--text-primary: 220 7% 97%;
|
|
60
|
-
--text-secondary: 220 7% 94%;
|
|
61
|
-
--text-tertiary: 220 6% 91%;
|
|
62
|
-
--text-head: 220 9% 70%;
|
|
63
|
-
|
|
64
|
-
--brand-primary: 220 89% 63%;
|
|
65
|
-
|
|
66
|
-
--accent-warning: 30 100% 70%;
|
|
67
|
-
--accent-danger: 0 100% 70%;
|
|
68
|
-
--accent-success: 142 71% 45%;
|
|
69
|
-
|
|
70
|
-
--stroke-primary: 220 20% 28%;
|
|
71
|
-
--stroke-secondary: 220 20% 28%;
|
|
72
|
-
--border: 215 27.9% 16.9%;
|
|
73
|
-
|
|
74
|
-
--card: 224 20% 10%;
|
|
75
|
-
--card-foreground: 210 20% 98%;
|
|
76
|
-
--popover: 224 71.4% 4.1%;
|
|
77
|
-
--popover-foreground: 210 20% 98%;
|
|
78
|
-
--muted: 215 27.9% 16.9%;
|
|
79
|
-
--muted-foreground: 217.9 10.6% 64.9%;
|
|
80
|
-
--hover-primary: 222 10% 39%;
|
|
81
|
-
|
|
82
|
-
--sidebar-background: 220 20% 18%;
|
|
83
|
-
--sidebar-foreground: 220 7% 94%;
|
|
84
|
-
--sidebar-border: 215 20% 20%;
|
|
85
|
-
--sidebar-primary: 221 65% 54%;
|
|
86
|
-
--sidebar-primary-foreground: 220 7% 97%;
|
|
87
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--bg-primary: 0 0% 100%;
|
|
3
|
+
--bg-secondary: 220 7% 97%;
|
|
4
|
+
--bg-tertiary: 220 7% 94%;
|
|
5
|
+
--bg-quaternary: 220 6% 91%;
|
|
6
|
+
|
|
7
|
+
--text-primary: 221 50% 10%;
|
|
8
|
+
--text-secondary: 220 20% 18%;
|
|
9
|
+
--text-tertiary: 221 9% 44%;
|
|
10
|
+
--text-head: 221 9% 44%;
|
|
11
|
+
|
|
12
|
+
--brand-primary: 209 99% 50%;
|
|
13
|
+
|
|
14
|
+
--accent-warning: 28 100% 59%;
|
|
15
|
+
--accent-danger: 0 100% 70%;
|
|
16
|
+
--accent-success: 131 77% 35%;
|
|
17
|
+
|
|
18
|
+
--stroke-primary: 216 6% 84%;
|
|
19
|
+
--stroke-secondary: 216 6% 84%;
|
|
20
|
+
--border: 220 13% 91%;
|
|
21
|
+
|
|
22
|
+
--card: 0 0% 100%;
|
|
23
|
+
--card-foreground: 224 71.4% 4.1%;
|
|
24
|
+
--popover: 0 0% 100%;
|
|
25
|
+
--popover-foreground: 224 71.4% 4.1%;
|
|
26
|
+
--muted: 220 14.3% 95.9%;
|
|
27
|
+
--muted-foreground: 220 8.9% 46.1%;
|
|
28
|
+
--hover-primary: 210 20% 96%;
|
|
29
|
+
|
|
30
|
+
--sidebar-background: 0 0% 100%;
|
|
31
|
+
--sidebar-foreground: 220 20% 18%;
|
|
32
|
+
--sidebar-border: 220 13% 91%;
|
|
33
|
+
--sidebar-primary: 221 65% 54%;
|
|
34
|
+
--sidebar-primary-foreground: 221 50% 10%;
|
|
35
|
+
|
|
36
|
+
--BG-Primary: var(--bg-primary);
|
|
37
|
+
--BG-Secondary: var(--bg-secondary);
|
|
38
|
+
--BG-Tertiary: var(--bg-tertiary);
|
|
39
|
+
--BG-Quaternary: var(--bg-quaternary);
|
|
40
|
+
--Text-Primary: var(--text-primary);
|
|
41
|
+
--Text-Secondary: var(--text-secondary);
|
|
42
|
+
--Text-Tartiary: var(--text-tertiary);
|
|
43
|
+
--Text-Head: var(--text-head);
|
|
44
|
+
--Brand-Primary: var(--brand-primary);
|
|
45
|
+
--Accent-Warning: var(--accent-warning);
|
|
46
|
+
--Accent-Danger: var(--accent-danger);
|
|
47
|
+
--Accent-Success: var(--accent-success);
|
|
48
|
+
--Stroke-Primary: var(--stroke-primary);
|
|
49
|
+
--Stroke-Secondary: var(--stroke-secondary);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-theme="dark"],
|
|
53
|
+
.dark {
|
|
54
|
+
--bg-primary: 220 20% 18%;
|
|
55
|
+
--bg-secondary: 221 50% 10%;
|
|
56
|
+
--bg-tertiary: 221 50% 6%;
|
|
57
|
+
--bg-quaternary: 0 0% 0%;
|
|
58
|
+
|
|
59
|
+
--text-primary: 220 7% 97%;
|
|
60
|
+
--text-secondary: 220 7% 94%;
|
|
61
|
+
--text-tertiary: 220 6% 91%;
|
|
62
|
+
--text-head: 220 9% 70%;
|
|
63
|
+
|
|
64
|
+
--brand-primary: 220 89% 63%;
|
|
65
|
+
|
|
66
|
+
--accent-warning: 30 100% 70%;
|
|
67
|
+
--accent-danger: 0 100% 70%;
|
|
68
|
+
--accent-success: 142 71% 45%;
|
|
69
|
+
|
|
70
|
+
--stroke-primary: 220 20% 28%;
|
|
71
|
+
--stroke-secondary: 220 20% 28%;
|
|
72
|
+
--border: 215 27.9% 16.9%;
|
|
73
|
+
|
|
74
|
+
--card: 224 20% 10%;
|
|
75
|
+
--card-foreground: 210 20% 98%;
|
|
76
|
+
--popover: 224 71.4% 4.1%;
|
|
77
|
+
--popover-foreground: 210 20% 98%;
|
|
78
|
+
--muted: 215 27.9% 16.9%;
|
|
79
|
+
--muted-foreground: 217.9 10.6% 64.9%;
|
|
80
|
+
--hover-primary: 222 10% 39%;
|
|
81
|
+
|
|
82
|
+
--sidebar-background: 220 20% 18%;
|
|
83
|
+
--sidebar-foreground: 220 7% 94%;
|
|
84
|
+
--sidebar-border: 215 20% 20%;
|
|
85
|
+
--sidebar-primary: 221 65% 54%;
|
|
86
|
+
--sidebar-primary-foreground: 220 7% 97%;
|
|
87
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typography Base Styles
|
|
3
|
+
*
|
|
4
|
+
* These base styles apply default typography to semantic HTML elements.
|
|
5
|
+
* Import this file in your app's CSS to get consistent typography without
|
|
6
|
+
* needing to add classes to every heading and paragraph.
|
|
7
|
+
*
|
|
8
|
+
* Usage in app.css:
|
|
9
|
+
* @import '@getmicdrop/svelte-components/tokens/typography-base.css';
|
|
10
|
+
*
|
|
11
|
+
* After importing, these elements will have consistent styling:
|
|
12
|
+
* <h1>Page Title</h1> - No classes needed
|
|
13
|
+
* <h2>Section Title</h2> - No classes needed
|
|
14
|
+
* <p>Body text</p> - No classes needed
|
|
15
|
+
*
|
|
16
|
+
* Override when needed:
|
|
17
|
+
* <h1 class="text-3xl">Larger Title</h1>
|
|
18
|
+
* <p class="text-sm text-muted">Smaller muted text</p>
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
@layer base {
|
|
22
|
+
/* ==========================================================================
|
|
23
|
+
* HEADINGS
|
|
24
|
+
* Semantic heading hierarchy with consistent sizing, weight, and colors.
|
|
25
|
+
* Uses semibold weight for all headings to maintain visual hierarchy.
|
|
26
|
+
* ========================================================================== */
|
|
27
|
+
|
|
28
|
+
h1 {
|
|
29
|
+
@apply text-2xl font-semibold text-gray-900 dark:text-white leading-tight;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
h2 {
|
|
33
|
+
@apply text-xl font-semibold text-gray-900 dark:text-white leading-tight;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
h3 {
|
|
37
|
+
@apply text-lg font-semibold text-gray-900 dark:text-white leading-tight;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
h4 {
|
|
41
|
+
@apply text-base font-semibold text-gray-900 dark:text-white leading-tight;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
h5 {
|
|
45
|
+
@apply text-sm font-semibold text-gray-900 dark:text-white leading-tight;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
h6 {
|
|
49
|
+
@apply text-xs font-semibold text-gray-900 dark:text-white leading-tight uppercase tracking-wide;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* ==========================================================================
|
|
53
|
+
* BODY TEXT
|
|
54
|
+
* Default paragraph styling with comfortable reading line height.
|
|
55
|
+
* Uses secondary color (gray-600/gray-300) for body text to create
|
|
56
|
+
* visual hierarchy with headings.
|
|
57
|
+
* ========================================================================== */
|
|
58
|
+
|
|
59
|
+
p {
|
|
60
|
+
@apply text-base text-gray-600 dark:text-gray-300 leading-relaxed;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* ==========================================================================
|
|
64
|
+
* FORM LABELS
|
|
65
|
+
* Form labels are slightly smaller than body text with medium weight
|
|
66
|
+
* to distinguish them from regular text.
|
|
67
|
+
* ========================================================================== */
|
|
68
|
+
|
|
69
|
+
label {
|
|
70
|
+
@apply text-sm font-medium text-gray-900 dark:text-white;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* ==========================================================================
|
|
74
|
+
* LINKS
|
|
75
|
+
* Blue links with hover underline for clear affordance.
|
|
76
|
+
* ========================================================================== */
|
|
77
|
+
|
|
78
|
+
a {
|
|
79
|
+
@apply text-blue-600 dark:text-blue-400 hover:underline;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* ==========================================================================
|
|
83
|
+
* EMPHASIS
|
|
84
|
+
* Strong and emphasis elements inherit color but add weight/style.
|
|
85
|
+
* ========================================================================== */
|
|
86
|
+
|
|
87
|
+
strong, b {
|
|
88
|
+
@apply font-semibold;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
em, i {
|
|
92
|
+
@apply italic;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* ==========================================================================
|
|
96
|
+
* SMALL TEXT
|
|
97
|
+
* For fine print, captions, and secondary information.
|
|
98
|
+
* ========================================================================== */
|
|
99
|
+
|
|
100
|
+
small {
|
|
101
|
+
@apply text-sm text-gray-500 dark:text-gray-400;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* ==========================================================================
|
|
105
|
+
* LISTS
|
|
106
|
+
* Consistent list styling that matches body text.
|
|
107
|
+
* ========================================================================== */
|
|
108
|
+
|
|
109
|
+
ul, ol {
|
|
110
|
+
@apply text-base text-gray-600 dark:text-gray-300 leading-relaxed;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
li {
|
|
114
|
+
@apply mb-1;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* ==========================================================================
|
|
118
|
+
* BLOCKQUOTE
|
|
119
|
+
* Indented with left border for quoted content.
|
|
120
|
+
* ========================================================================== */
|
|
121
|
+
|
|
122
|
+
blockquote {
|
|
123
|
+
@apply pl-4 border-l-4 border-gray-200 dark:border-gray-700 text-gray-600 dark:text-gray-300 italic;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* ==========================================================================
|
|
127
|
+
* CODE
|
|
128
|
+
* Monospace font with subtle background for inline code.
|
|
129
|
+
* ========================================================================== */
|
|
130
|
+
|
|
131
|
+
code {
|
|
132
|
+
@apply font-mono text-sm bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded text-gray-900 dark:text-gray-100;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
pre {
|
|
136
|
+
@apply font-mono text-sm bg-gray-100 dark:bg-gray-800 p-4 rounded-lg overflow-x-auto text-gray-900 dark:text-gray-100;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
pre code {
|
|
140
|
+
@apply bg-transparent p-0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* ==========================================================================
|
|
144
|
+
* MARK/HIGHLIGHT
|
|
145
|
+
* Yellow highlight for marked/highlighted text.
|
|
146
|
+
* ========================================================================== */
|
|
147
|
+
|
|
148
|
+
mark {
|
|
149
|
+
@apply bg-yellow-200 dark:bg-yellow-800 px-1 rounded;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* ==========================================================================
|
|
154
|
+
* NOTE ON UTILITY CLASSES
|
|
155
|
+
*
|
|
156
|
+
* This file intentionally does NOT define utility classes like .text-muted,
|
|
157
|
+
* .text-primary, etc. These are defined in individual app's app.css files
|
|
158
|
+
* because they reference app-specific CSS custom properties (e.g., --Text-Tartiary).
|
|
159
|
+
*
|
|
160
|
+
* For typography utilities, import and use tokens from typography.ts:
|
|
161
|
+
* import { typography } from '@getmicdrop/svelte-components';
|
|
162
|
+
* <span class={typography.smMuted}>Helper text</span>
|
|
163
|
+
* ========================================================================== */
|