@getmicdrop/svelte-components 5.21.0 → 5.21.1
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.js +10 -10
- package/dist/calendar/AboutShow/AboutShow.svelte +191 -191
- package/dist/calendar/Calendar/MiniMonthCalendar.spec.js +9 -8
- package/dist/calendar/Calendar/MiniMonthCalendar.svelte +800 -803
- package/dist/calendar/Calendar/MiniMonthCalendar.svelte.d.ts.map +1 -1
- package/dist/calendar/FAQs/FAQs.spec.js +6 -6
- package/dist/calendar/FAQs/FAQs.svelte +88 -88
- package/dist/calendar/MonthSwitcher/MonthSwitcher.svelte +136 -140
- package/dist/calendar/OrderSummary/OrderSummary.svelte +461 -461
- package/dist/calendar/PublicCard/PublicCard.spec.js +3 -3
- package/dist/calendar/PublicCard/PublicCard.svelte +164 -164
- package/dist/calendar/ShowCard/ShowCard.spec.js +8 -8
- package/dist/calendar/ShowCard/ShowCard.svelte +180 -180
- package/dist/calendar/ShowTimeCard/ShowTimeCard.spec.js +4 -4
- package/dist/calendar/ShowTimeCard/ShowTimeCard.svelte +80 -80
- package/dist/calendar/index.js +15 -15
- package/dist/components/Heading.spec.js +89 -89
- package/dist/components/Heading.svelte +66 -66
- package/dist/components/Layout/AppShell.svelte +104 -104
- package/dist/components/Layout/ContentSection.svelte +80 -80
- package/dist/components/Layout/Grid.svelte +101 -101
- 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.spec.js +4 -4
- 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.spec.js +1 -1
- package/dist/components/Layout/Stack.svelte +52 -52
- package/dist/components/Layout/Text.svelte +87 -87
- package/dist/components/Layout/TwoColumn.svelte +108 -108
- package/dist/components/Layout/__tests__/AppShell.test.js +5 -5
- package/dist/components/Layout/__tests__/ContentSection.test.js +1 -1
- package/dist/components/Layout/__tests__/Heading.test.js +3 -3
- package/dist/components/Layout/__tests__/PageContainer.test.js +4 -4
- package/dist/components/Layout/__tests__/Text.test.js +9 -9
- package/dist/components/Text.spec.js +89 -89
- package/dist/components/Text.svelte +64 -64
- package/dist/config.js +160 -160
- package/dist/config.spec.js +29 -29
- package/dist/constants/formOptions.js +48 -48
- package/dist/constants/validation.js +91 -91
- package/dist/constants/validation.spec.js +64 -64
- package/dist/datetime/README.md +323 -323
- package/dist/datetime/__tests__/format.test.js +1 -1
- package/dist/datetime/__tests__/parse.test.js +1 -1
- package/dist/datetime/__tests__/timezone.test.js +1 -1
- package/dist/datetime/parse.js +1 -1
- package/dist/forms/createFormStore.svelte.js +1 -0
- package/dist/forms/createFormStore.svelte.spec.js +1 -0
- package/dist/index.js +85 -85
- package/dist/index.spec.js +369 -369
- package/dist/patterns/chat/ChatActivityNotice.spec.js +59 -59
- package/dist/patterns/chat/ChatActivityNotice.svelte +41 -41
- package/dist/patterns/chat/ChatBubble.spec.js +91 -91
- package/dist/patterns/chat/ChatBubble.svelte +103 -103
- package/dist/patterns/chat/ChatContainer.spec.js +30 -30
- package/dist/patterns/chat/ChatContainer.svelte +46 -46
- package/dist/patterns/chat/ChatDateDivider.spec.js +30 -30
- package/dist/patterns/chat/ChatDateDivider.svelte +27 -27
- package/dist/patterns/chat/ChatInvitationBubble.spec.js +46 -46
- package/dist/patterns/chat/ChatInvitationBubble.svelte +46 -46
- package/dist/patterns/chat/ChatInvitationNotice.spec.js +32 -32
- package/dist/patterns/chat/ChatInvitationNotice.svelte +36 -36
- package/dist/patterns/chat/ChatMessageGroup.spec.js +58 -58
- package/dist/patterns/chat/ChatMessageGroup.svelte +57 -57
- package/dist/patterns/chat/ChatSlotUpdate.spec.js +65 -65
- package/dist/patterns/chat/ChatSlotUpdate.svelte +46 -46
- package/dist/patterns/chat/ChatStatusBadge.spec.js +79 -79
- package/dist/patterns/chat/ChatStatusBadge.svelte +91 -91
- package/dist/patterns/chat/ChatStatusTransition.spec.js +81 -81
- package/dist/patterns/chat/ChatStatusTransition.svelte +64 -64
- package/dist/patterns/chat/ChatTextBubble.spec.js +35 -35
- package/dist/patterns/chat/ChatTextBubble.svelte +41 -41
- package/dist/patterns/chat/index.js +22 -22
- package/dist/patterns/data/DataGrid.svelte +45 -45
- package/dist/patterns/data/DataList.spec.js +5 -5
- package/dist/patterns/data/DataList.svelte +24 -24
- package/dist/patterns/data/DataTable.spec.js +18 -18
- package/dist/patterns/data/DataTable.svelte +45 -45
- package/dist/patterns/data/index.js +4 -4
- 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.spec.js +4 -4
- package/dist/patterns/forms/FormSection.svelte +33 -33
- package/dist/patterns/forms/FormValidationSummary.spec.js +2 -2
- package/dist/patterns/forms/FormValidationSummary.stories.svelte +97 -97
- package/dist/patterns/forms/FormValidationSummary.svelte +82 -82
- package/dist/patterns/forms/index.js +5 -5
- package/dist/patterns/index.js +21 -21
- package/dist/patterns/layout/Sidebar.svelte +39 -39
- package/dist/patterns/layout/SidebarTestWrapper.svelte +34 -34
- package/dist/patterns/layout/Stack.svelte +61 -61
- package/dist/patterns/layout/index.js +29 -29
- package/dist/patterns/navigation/BottomNav.stories.svelte +117 -117
- package/dist/patterns/navigation/BottomNav.svelte +82 -82
- package/dist/patterns/navigation/Header.spec.js +9 -9
- package/dist/patterns/navigation/Header.stories.svelte +77 -77
- package/dist/patterns/navigation/Header.svelte +261 -263
- package/dist/patterns/navigation/Header.svelte.d.ts.map +1 -1
- package/dist/patterns/navigation/index.js +3 -3
- package/dist/patterns/page/PageHeader.svelte +49 -49
- package/dist/patterns/page/PageLayout.spec.js +5 -5
- 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 +62 -62
- package/dist/patterns/page/SectionHeader.spec.js +8 -8
- package/dist/patterns/page/SectionHeader.svelte +51 -51
- package/dist/patterns/page/index.js +5 -5
- package/dist/presets/badges.js +112 -112
- package/dist/presets/buttons.js +76 -76
- package/dist/presets/buttons.spec.js +4 -4
- package/dist/presets/index.js +9 -9
- package/dist/primitives/Accordion/Accordion.spec.js +5 -5
- package/dist/primitives/Accordion/Accordion.stories.svelte +75 -75
- package/dist/primitives/Accordion/Accordion.svelte +62 -62
- package/dist/primitives/Accordion/AccordionItem.spec.js +19 -28
- package/dist/primitives/Accordion/AccordionItem.svelte +103 -103
- package/dist/primitives/Accordion/AccordionItemWrapper.test.svelte +107 -107
- package/dist/primitives/Accordion/AccordionToggleWrapper.test.svelte +28 -28
- package/dist/primitives/Alert/Alert.spec.js +173 -173
- package/dist/primitives/Alert/Alert.stories.svelte +88 -88
- package/dist/primitives/Alert/Alert.svelte +72 -72
- package/dist/primitives/Avatar/Avatar.spec.js +11 -11
- package/dist/primitives/Avatar/Avatar.stories.svelte +95 -94
- package/dist/primitives/Avatar/Avatar.stories.svelte.d.ts.map +1 -1
- package/dist/primitives/Avatar/Avatar.svelte +66 -66
- package/dist/primitives/AvatarButton/AvatarButton.svelte +57 -57
- 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 +238 -238
- package/dist/primitives/BottomSheet/BottomSheet.stories.svelte +83 -83
- package/dist/primitives/BottomSheet/BottomSheet.svelte +115 -115
- package/dist/primitives/BottomSheet/BottomSheetWithActions.test.svelte +20 -20
- package/dist/primitives/Breadcrumb/Breadcrumb.spec.js +125 -123
- package/dist/primitives/Breadcrumb/Breadcrumb.stories.svelte +23 -23
- package/dist/primitives/Breadcrumb/Breadcrumb.svelte +107 -107
- package/dist/primitives/Button/Button.spec.js +225 -225
- package/dist/primitives/Button/Button.stories.svelte +76 -76
- package/dist/primitives/Button/Button.svelte +278 -278
- package/dist/primitives/Button/ButtonGroup.spec.js +44 -44
- 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.spec.js +1 -1
- 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/CardAction/CardAction.svelte +68 -68
- package/dist/primitives/Checkbox/Checkbox.spec.js +16 -16
- 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 +147 -147
- package/dist/primitives/Drawer/Drawer.spec.js +4 -4
- package/dist/primitives/Drawer/Drawer.stories.svelte +100 -100
- package/dist/primitives/Drawer/Drawer.svelte +224 -224
- package/dist/primitives/Drawer/DrawerTestWrapper.svelte +86 -86
- package/dist/primitives/Dropdown/Dropdown.spec.js +9 -9
- package/dist/primitives/Dropdown/Dropdown.stories.svelte +137 -137
- package/dist/primitives/Dropdown/Dropdown.svelte +179 -179
- package/dist/primitives/Dropdown/DropdownDivider.spec.js +30 -30
- package/dist/primitives/Dropdown/DropdownDivider.svelte +9 -9
- package/dist/primitives/Dropdown/DropdownItem.spec.js +8 -15
- package/dist/primitives/Dropdown/DropdownItem.svelte +80 -80
- package/dist/primitives/Dropdown/DropdownItemTestWrapper.svelte +43 -43
- package/dist/primitives/Helper/Helper.spec.js +57 -57
- package/dist/primitives/Helper/Helper.svelte +33 -33
- package/dist/primitives/Icons/ArrowLeft.svelte +21 -21
- package/dist/primitives/Icons/ArrowRight.svelte +21 -21
- package/dist/primitives/Icons/Availability.svelte +27 -27
- package/dist/primitives/Icons/Back.svelte +27 -27
- package/dist/primitives/Icons/CheckCircle.svelte +19 -19
- package/dist/primitives/Icons/CheckCircleOutline.svelte +28 -28
- package/dist/primitives/Icons/ChevronLeft.svelte +17 -17
- package/dist/primitives/Icons/ChevronRight.svelte +17 -17
- package/dist/primitives/Icons/Copy.svelte +28 -28
- package/dist/primitives/Icons/Cross.svelte +18 -18
- package/dist/primitives/Icons/DownArrow.svelte +21 -21
- package/dist/primitives/Icons/ErrorCircle.svelte +19 -19
- package/dist/primitives/Icons/FacebookIcon.svelte +15 -15
- package/dist/primitives/Icons/Home.svelte +28 -28
- package/dist/primitives/Icons/Icon.spec.js +175 -175
- package/dist/primitives/Icons/Icon.stories.svelte +100 -100
- package/dist/primitives/Icons/Icon.svelte +79 -79
- package/dist/primitives/Icons/IconGallery.stories.svelte +235 -235
- package/dist/primitives/Icons/Icons.spec.js +3 -3
- package/dist/primitives/Icons/ImageOutline.svelte +21 -21
- package/dist/primitives/Icons/Info.svelte +20 -20
- package/dist/primitives/Icons/InstagramIcon.svelte +21 -21
- package/dist/primitives/Icons/LogoInstagram.svelte +15 -15
- package/dist/primitives/Icons/Message.svelte +28 -28
- package/dist/primitives/Icons/MoonIcon.svelte +18 -18
- package/dist/primitives/Icons/More.svelte +34 -34
- package/dist/primitives/Icons/MoreHori.spec.js +67 -67
- package/dist/primitives/Icons/MoreHori.svelte +35 -35
- package/dist/primitives/Icons/Notification.svelte +27 -27
- package/dist/primitives/Icons/Payment.svelte +27 -27
- package/dist/primitives/Icons/Profile.svelte +34 -34
- package/dist/primitives/Icons/Reload.svelte +42 -42
- package/dist/primitives/Icons/Shows.svelte +34 -34
- package/dist/primitives/Icons/Signout.svelte +34 -34
- package/dist/primitives/Icons/SunIcon.svelte +21 -21
- package/dist/primitives/Icons/TiktokIcon.svelte +15 -15
- package/dist/primitives/Icons/TrashBinOutline.svelte +21 -21
- package/dist/primitives/Icons/TwitterIcon.svelte +15 -15
- package/dist/primitives/Icons/WarningIcon.spec.js +30 -30
- package/dist/primitives/Icons/WarningIcon.svelte +24 -24
- package/dist/primitives/Input/Input.spec.js +1237 -1237
- package/dist/primitives/Input/Input.stories.svelte +139 -139
- package/dist/primitives/Input/Input.svelte +444 -444
- package/dist/primitives/Input/Select.spec.js +632 -632
- package/dist/primitives/Input/Select.stories.svelte +112 -112
- package/dist/primitives/Input/Select.svelte +252 -252
- package/dist/primitives/Input/Textarea.spec.js +8 -8
- package/dist/primitives/Input/Textarea.stories.svelte +137 -137
- package/dist/primitives/Input/Textarea.svelte +105 -105
- package/dist/primitives/Label/Label.spec.js +20 -21
- package/dist/primitives/Label/Label.svelte +37 -37
- package/dist/primitives/LandingButton/LandingButton.spec.js +61 -61
- package/dist/primitives/LandingButton/LandingButton.svelte +92 -92
- package/dist/primitives/MenuItem/MenuItem.spec.js +130 -130
- package/dist/primitives/MenuItem/MenuItem.svelte +85 -85
- package/dist/primitives/Modal/Modal.spec.js +314 -314
- package/dist/primitives/Modal/Modal.stories.svelte +86 -86
- package/dist/primitives/Modal/Modal.svelte +181 -181
- package/dist/primitives/NavItem/NavItem.spec.js +97 -97
- package/dist/primitives/NavItem/NavItem.svelte +75 -75
- package/dist/primitives/NumberInput/NumberInput.spec.js +17 -17
- package/dist/primitives/NumberInput/NumberInput.svelte +113 -113
- package/dist/primitives/Pagination/DotIndicator.svelte +66 -66
- package/dist/primitives/Pagination/Pagination.spec.js +6 -6
- package/dist/primitives/Pagination/Pagination.stories.svelte +76 -76
- package/dist/primitives/Pagination/Pagination.svelte +275 -275
- package/dist/primitives/Radio/Radio.spec.js +19 -19
- package/dist/primitives/Radio/Radio.stories.svelte +80 -80
- package/dist/primitives/Radio/Radio.svelte +67 -67
- package/dist/primitives/SearchResultItem/SearchResultItem.spec.js +78 -78
- package/dist/primitives/SearchResultItem/SearchResultItem.svelte +109 -109
- package/dist/primitives/SidebarToggle/SidebarToggle.spec.js +61 -61
- package/dist/primitives/SidebarToggle/SidebarToggle.svelte +55 -55
- package/dist/primitives/Skeleton/CardPlaceholder.spec.js +1 -1
- package/dist/primitives/Skeleton/CardPlaceholder.svelte +96 -96
- package/dist/primitives/Skeleton/ImagePlaceholder.spec.js +2 -2
- package/dist/primitives/Skeleton/ImagePlaceholder.svelte +68 -68
- package/dist/primitives/Skeleton/ListPlaceholder.spec.js +2 -2
- package/dist/primitives/Skeleton/ListPlaceholder.svelte +85 -85
- package/dist/primitives/Skeleton/Skeleton.spec.js +7 -7
- package/dist/primitives/Skeleton/Skeleton.stories.svelte +151 -151
- package/dist/primitives/Skeleton/Skeleton.svelte +55 -55
- package/dist/primitives/Spinner/Spinner.spec.js +83 -84
- package/dist/primitives/Spinner/Spinner.stories.svelte +29 -29
- package/dist/primitives/Spinner/Spinner.svelte +52 -52
- package/dist/primitives/Tabs/TabItem.svelte +52 -52
- package/dist/primitives/Tabs/Tabs.spec.js +14 -14
- package/dist/primitives/Tabs/Tabs.stories.svelte +112 -112
- package/dist/primitives/Tabs/Tabs.svelte +137 -137
- package/dist/primitives/Toggle.spec.js +219 -221
- package/dist/primitives/Toggle.stories.svelte +92 -92
- package/dist/primitives/Toggle.svelte +141 -141
- package/dist/primitives/ToggleTestWrapper.svelte +30 -30
- package/dist/primitives/Tooltip/Tooltip.spec.js +126 -126
- 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 +112 -112
- package/dist/primitives/ValidationError.svelte +29 -29
- package/dist/primitives/index.js +114 -114
- package/dist/recipes/CropImage/CropImage.spec.js +208 -208
- package/dist/recipes/CropImage/CropImage.stories.svelte +104 -104
- package/dist/recipes/CropImage/CropImage.svelte +241 -241
- package/dist/recipes/ImageUploader/ImageUploader.spec.js +1 -1
- package/dist/recipes/ImageUploader/ImageUploader.stories.svelte +125 -125
- package/dist/recipes/ImageUploader/ImageUploader.svelte +972 -994
- package/dist/recipes/SuperLogin/SuperLogin.svelte +24 -24
- package/dist/recipes/Toaster/Toaster.stories.svelte +62 -62
- package/dist/recipes/feedback/EmptyState/EmptyState.svelte +75 -75
- package/dist/recipes/feedback/ErrorDisplay.spec.js +69 -69
- package/dist/recipes/feedback/ErrorDisplay.stories.svelte +113 -113
- package/dist/recipes/feedback/ErrorDisplay.svelte +67 -67
- package/dist/recipes/feedback/StatusIndicator/StatusIndicator.spec.js +133 -133
- package/dist/recipes/feedback/StatusIndicator/StatusIndicator.svelte +176 -176
- package/dist/recipes/feedback/index.js +4 -4
- package/dist/recipes/fields/CheckboxField.spec.js +2 -2
- package/dist/recipes/fields/CheckboxField.svelte +85 -85
- package/dist/recipes/fields/FormField.spec.js +4 -4
- package/dist/recipes/fields/FormField.svelte +58 -58
- package/dist/recipes/fields/RadioGroup.spec.js +1 -1
- package/dist/recipes/fields/RadioGroup.svelte +95 -95
- package/dist/recipes/fields/SelectField.spec.js +2 -2
- package/dist/recipes/fields/SelectField.svelte +82 -82
- package/dist/recipes/fields/TextareaField.spec.js +2 -2
- package/dist/recipes/fields/TextareaField.svelte +101 -101
- package/dist/recipes/fields/ToggleField.spec.js +2 -2
- package/dist/recipes/fields/ToggleField.svelte +60 -60
- package/dist/recipes/fields/index.js +7 -7
- package/dist/recipes/index.js +24 -24
- package/dist/recipes/inputs/MultiSelect.spec.js +263 -263
- package/dist/recipes/inputs/MultiSelect.stories.svelte +133 -133
- package/dist/recipes/inputs/MultiSelect.svelte +291 -291
- package/dist/recipes/inputs/OTPInput.spec.js +251 -251
- package/dist/recipes/inputs/OTPInput.stories.svelte +162 -162
- package/dist/recipes/inputs/OTPInput.svelte +128 -128
- package/dist/recipes/inputs/PasswordInput.spec.js +2 -2
- package/dist/recipes/inputs/PasswordInput.svelte +130 -130
- package/dist/recipes/inputs/PasswordStrengthIndicator/PasswordStrengthIndicator.spec.js +14 -14
- package/dist/recipes/inputs/PasswordStrengthIndicator/PasswordStrengthIndicator.svelte +142 -142
- package/dist/recipes/inputs/PasswordStrengthIndicator/TestWrapper.svelte +2 -2
- package/dist/recipes/inputs/PhoneInput.svelte +254 -254
- package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.spec.js +10 -10
- package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.stories.svelte +170 -170
- package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.svelte +346 -349
- package/dist/recipes/inputs/PlaceAutocomplete/PlaceAutocomplete.svelte.d.ts.map +1 -1
- package/dist/recipes/inputs/Search.spec.js +3 -3
- package/dist/recipes/inputs/Search.svelte +110 -110
- package/dist/recipes/inputs/index.js +8 -8
- package/dist/recipes/inputs/phoneInput/CountrySelector.svelte +240 -240
- package/dist/recipes/modals/AlertModal.spec.js +36 -36
- package/dist/recipes/modals/AlertModal.svelte +139 -139
- package/dist/recipes/modals/ConfirmationModal.spec.js +396 -396
- package/dist/recipes/modals/ConfirmationModal.stories.svelte +119 -119
- package/dist/recipes/modals/ConfirmationModal.svelte +169 -169
- package/dist/recipes/modals/FeedbackModal.svelte +205 -205
- package/dist/recipes/modals/InputModal.spec.js +17 -17
- package/dist/recipes/modals/InputModal.svelte +194 -194
- 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.spec.js +7 -7
- package/dist/recipes/modals/StatusModal.svelte +216 -216
- package/dist/recipes/modals/index.js +8 -8
- package/dist/schemas/__tests__/order.test.js +1 -1
- package/dist/schemas/auth.d.ts +107 -17
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/common.d.ts +41 -13
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/common.js +1 -1
- package/dist/schemas/event.d.ts +147 -41
- package/dist/schemas/event.d.ts.map +1 -1
- package/dist/schemas/event.js +1 -1
- package/dist/schemas/order.d.ts +208 -51
- package/dist/schemas/order.d.ts.map +1 -1
- package/dist/schemas/order.js +1 -0
- package/dist/schemas/performer.d.ts +199 -44
- package/dist/schemas/performer.d.ts.map +1 -1
- package/dist/schemas/performer.js +1 -1
- package/dist/schemas/promo.d.ts +221 -55
- package/dist/schemas/promo.d.ts.map +1 -1
- package/dist/schemas/promo.js +2 -2
- package/dist/schemas/ticket.d.ts +187 -61
- package/dist/schemas/ticket.d.ts.map +1 -1
- package/dist/schemas/ticket.js +1 -1
- package/dist/schemas/user.d.ts +114 -54
- package/dist/schemas/user.d.ts.map +1 -1
- package/dist/schemas/user.js +2 -1
- package/dist/schemas/venue.d.ts +238 -20
- package/dist/schemas/venue.d.ts.map +1 -1
- package/dist/services/show.service.d.ts +46 -46
- package/dist/stores/auth.d.ts +8 -8
- package/dist/stores/auth.svelte.spec.js +1 -1
- package/dist/stores/index.js +9 -9
- package/dist/stores/toaster.d.ts +3 -3
- package/dist/stores/toaster.js +13 -13
- package/dist/stores/toaster.spec.js +59 -59
- package/dist/stories/ButtonAuditDashboard.spec.js +12 -12
- package/dist/stories/ButtonAuditDashboard.svelte +55 -55
- package/dist/stories/ButtonAuditReview.spec.js +8 -8
- package/dist/stories/ButtonAuditReview.stories.svelte +14 -14
- package/dist/stories/ButtonAuditReview.svelte +427 -427
- package/dist/stories/ButtonGridView.spec.js +27 -27
- package/dist/stories/ButtonGridView.svelte +22 -22
- package/dist/stories/ButtonShowcase.spec.js +4 -4
- package/dist/stories/ButtonShowcase.svelte +119 -119
- package/dist/stories/ComponentConsolidation.stories.svelte +453 -453
- package/dist/stories/DesignSystemAudit.stories.svelte +127 -127
- package/dist/stories/PatternsGallery.spec.js +3 -3
- package/dist/stories/PatternsGallery.stories.svelte +19 -19
- package/dist/stories/PatternsGallery.svelte +399 -399
- package/dist/stories/PrimitivesGallery.spec.js +9 -9
- package/dist/stories/PrimitivesGallery.stories.svelte +19 -19
- package/dist/stories/PrimitivesGallery.svelte +756 -756
- package/dist/stories/RecipesGallery.stories.svelte +19 -19
- package/dist/stories/RecipesGallery.svelte +454 -454
- package/dist/stories/button-audit-manifest.json +11186 -11186
- package/dist/tailwind/preset.cjs +87 -87
- package/dist/telemetry.js +401 -401
- package/dist/telemetry.server.js +212 -212
- package/dist/telemetry.server.spec.js +437 -437
- package/dist/telemetry.spec.js +1273 -1273
- package/dist/tokens/__tests__/typography-base.test.js +5 -5
- package/dist/tokens/__tests__/typography.test.js +32 -36
- package/dist/tokens/__tests__/variants.test.js +63 -78
- package/dist/tokens/tokens.css +87 -87
- package/dist/tokens/typography-base.css +163 -163
- package/dist/tokens/typography.d.ts +29 -29
- package/dist/tokens/typography.js +29 -29
- package/dist/tokens/utilities.css +418 -430
- package/dist/tokens/variants.d.ts +32 -32
- package/dist/tokens/variants.js +32 -32
- package/dist/utils/__tests__/auth.test.js +431 -431
- package/dist/utils/apiConfig.d.ts +29 -29
- package/dist/utils/apiConfig.js +142 -142
- package/dist/utils/auth.d.ts +46 -46
- package/dist/utils/auth.js +195 -195
- package/dist/utils/greetings.js +187 -187
- package/dist/utils/greetings.spec.js +337 -337
- package/dist/utils/haptic.spec.js +1 -1
- package/dist/utils/imageValidation.js +121 -121
- package/dist/utils/imageValidation.spec.js +223 -223
- package/dist/utils/portal.d.ts +11 -11
- package/dist/utils/portal.js +25 -25
- package/dist/utils/portal.spec.js +143 -143
- package/dist/utils/transitions.js +16 -16
- package/dist/utils/utils/utils.d.ts +2 -2
- package/dist/utils/utils/utils.js +3 -3
- package/dist/utils/utils/utils.spec.js +698 -698
- package/dist/utils/utils.d.ts +41 -41
- package/dist/utils/utils.js +59 -59
- package/dist/utils/utils.spec.js +643 -643
- package/package.json +306 -306
|
@@ -34,7 +34,7 @@ describe('Typography Base CSS', () => {
|
|
|
34
34
|
it('headings have dark mode support', () => {
|
|
35
35
|
const headingMatches = cssContent.match(/h[1-6]\s*\{[^}]+\}/g) || [];
|
|
36
36
|
headingMatches.forEach(match => {
|
|
37
|
-
expect(match).toContain('
|
|
37
|
+
expect(match).toContain('');
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
});
|
|
@@ -45,8 +45,8 @@ describe('Typography Base CSS', () => {
|
|
|
45
45
|
it('paragraph uses secondary color for visual hierarchy', () => {
|
|
46
46
|
const pMatch = cssContent.match(/p\s*\{[^}]+\}/);
|
|
47
47
|
expect(pMatch).toBeTruthy();
|
|
48
|
-
expect(pMatch[0]).toContain('text-
|
|
49
|
-
expect(pMatch[0]).toContain('
|
|
48
|
+
expect(pMatch[0]).toContain('text-text-secondary');
|
|
49
|
+
expect(pMatch[0]).toContain('');
|
|
50
50
|
});
|
|
51
51
|
it('paragraph has relaxed line height', () => {
|
|
52
52
|
const pMatch = cssContent.match(/p\s*\{[^}]+\}/);
|
|
@@ -70,7 +70,7 @@ describe('Typography Base CSS', () => {
|
|
|
70
70
|
it('links have blue color and hover underline', () => {
|
|
71
71
|
const aMatch = cssContent.match(/a\s*\{[^}]+\}/);
|
|
72
72
|
expect(aMatch).toBeTruthy();
|
|
73
|
-
expect(aMatch[0]).toContain('text-
|
|
73
|
+
expect(aMatch[0]).toContain('text-brand-primary');
|
|
74
74
|
expect(aMatch[0]).toContain('hover:underline');
|
|
75
75
|
});
|
|
76
76
|
});
|
|
@@ -132,7 +132,7 @@ describe('Typography Base CSS Consistency with typography.ts', () => {
|
|
|
132
132
|
it('documents the intentional difference between CSS <p> and typography.body', () => {
|
|
133
133
|
// This test exists to document the design decision
|
|
134
134
|
const pMatch = cssContent.match(/p\s*\{[^}]+\}/);
|
|
135
|
-
expect(pMatch[0]).toContain('text-
|
|
135
|
+
expect(pMatch[0]).toContain('text-text-secondary'); // CSS uses secondary
|
|
136
136
|
// typography.body uses gray-900 (primary) - verified in typography.test.ts
|
|
137
137
|
});
|
|
138
138
|
});
|
|
@@ -4,8 +4,7 @@ describe('Typography Headings', () => {
|
|
|
4
4
|
it('h1 has 2xl size and semibold weight', () => {
|
|
5
5
|
expect(typography.h1).toContain('text-2xl');
|
|
6
6
|
expect(typography.h1).toContain('font-semibold');
|
|
7
|
-
expect(typography.h1).toContain('text-
|
|
8
|
-
expect(typography.h1).toContain('dark:text-white');
|
|
7
|
+
expect(typography.h1).toContain('text-text-primary');
|
|
9
8
|
});
|
|
10
9
|
it('h2 has xl size and semibold weight', () => {
|
|
11
10
|
expect(typography.h2).toContain('text-xl');
|
|
@@ -32,33 +31,31 @@ describe('Typography Body Text', () => {
|
|
|
32
31
|
it('body has base size and relaxed leading', () => {
|
|
33
32
|
expect(typography.body).toContain('text-base');
|
|
34
33
|
expect(typography.body).toContain('leading-relaxed');
|
|
35
|
-
expect(typography.body).toContain('text-
|
|
34
|
+
expect(typography.body).toContain('text-text-primary');
|
|
36
35
|
});
|
|
37
|
-
it('bodyMuted has muted
|
|
38
|
-
expect(typography.bodyMuted).toContain('text-
|
|
39
|
-
expect(typography.bodyMuted).toContain('dark:text-gray-400');
|
|
36
|
+
it('bodyMuted has muted token color', () => {
|
|
37
|
+
expect(typography.bodyMuted).toContain('text-muted-foreground');
|
|
40
38
|
});
|
|
41
39
|
it('sm has sm size', () => {
|
|
42
40
|
expect(typography.sm).toContain('text-sm');
|
|
43
|
-
expect(typography.sm).toContain('text-
|
|
41
|
+
expect(typography.sm).toContain('text-text-primary');
|
|
44
42
|
});
|
|
45
43
|
it('smMuted has sm size and muted color', () => {
|
|
46
44
|
expect(typography.smMuted).toContain('text-sm');
|
|
47
|
-
expect(typography.smMuted).toContain('text-
|
|
45
|
+
expect(typography.smMuted).toContain('text-muted-foreground');
|
|
48
46
|
});
|
|
49
47
|
it('xs has xs size', () => {
|
|
50
48
|
expect(typography.xs).toContain('text-xs');
|
|
51
|
-
expect(typography.xs).toContain('text-
|
|
49
|
+
expect(typography.xs).toContain('text-text-primary');
|
|
52
50
|
});
|
|
53
51
|
it('xsMuted has xs size and muted color', () => {
|
|
54
52
|
expect(typography.xsMuted).toContain('text-xs');
|
|
55
|
-
expect(typography.xsMuted).toContain('text-
|
|
53
|
+
expect(typography.xsMuted).toContain('text-muted-foreground');
|
|
56
54
|
});
|
|
57
55
|
});
|
|
58
56
|
describe('Typography Muted Colors', () => {
|
|
59
|
-
it('textMuted has muted
|
|
60
|
-
expect(typography.textMuted).toContain('text-
|
|
61
|
-
expect(typography.textMuted).toContain('dark:text-gray-400');
|
|
57
|
+
it('textMuted has muted token color', () => {
|
|
58
|
+
expect(typography.textMuted).toContain('text-muted-foreground');
|
|
62
59
|
});
|
|
63
60
|
it('iconMuted matches textMuted', () => {
|
|
64
61
|
expect(typography.iconMuted).toBe(typography.textMuted);
|
|
@@ -68,7 +65,7 @@ describe('Typography Labels', () => {
|
|
|
68
65
|
it('label has sm size and medium weight', () => {
|
|
69
66
|
expect(typography.label).toContain('text-sm');
|
|
70
67
|
expect(typography.label).toContain('font-medium');
|
|
71
|
-
expect(typography.label).toContain('text-
|
|
68
|
+
expect(typography.label).toContain('text-text-primary');
|
|
72
69
|
});
|
|
73
70
|
it('labelSpaced includes bottom margin', () => {
|
|
74
71
|
expect(typography.labelSpaced).toContain('mb-2');
|
|
@@ -77,40 +74,39 @@ describe('Typography Labels', () => {
|
|
|
77
74
|
});
|
|
78
75
|
it('helper has muted color', () => {
|
|
79
76
|
expect(typography.helper).toContain('text-sm');
|
|
80
|
-
expect(typography.helper).toContain('text-
|
|
77
|
+
expect(typography.helper).toContain('text-muted-foreground');
|
|
81
78
|
});
|
|
82
|
-
it('placeholder has
|
|
79
|
+
it('placeholder has muted color', () => {
|
|
83
80
|
expect(typography.placeholder).toContain('text-sm');
|
|
84
|
-
expect(typography.placeholder).toContain('text-
|
|
81
|
+
expect(typography.placeholder).toContain('text-muted-foreground');
|
|
85
82
|
});
|
|
86
83
|
});
|
|
87
84
|
describe('Typography Status Text', () => {
|
|
88
|
-
it('error has
|
|
85
|
+
it('error has danger token color', () => {
|
|
89
86
|
expect(typography.error).toContain('text-sm');
|
|
90
|
-
expect(typography.error).toContain('text-
|
|
91
|
-
expect(typography.error).toContain('dark:text-red-400');
|
|
87
|
+
expect(typography.error).toContain('text-accent-danger');
|
|
92
88
|
});
|
|
93
|
-
it('success has
|
|
89
|
+
it('success has success token color', () => {
|
|
94
90
|
expect(typography.success).toContain('text-sm');
|
|
95
|
-
expect(typography.success).toContain('text-
|
|
91
|
+
expect(typography.success).toContain('text-accent-success');
|
|
96
92
|
});
|
|
97
|
-
it('warning has
|
|
93
|
+
it('warning has warning token color', () => {
|
|
98
94
|
expect(typography.warning).toContain('text-sm');
|
|
99
|
-
expect(typography.warning).toContain('text-
|
|
95
|
+
expect(typography.warning).toContain('text-accent-warning');
|
|
100
96
|
});
|
|
101
|
-
it('info has
|
|
97
|
+
it('info has brand token color', () => {
|
|
102
98
|
expect(typography.info).toContain('text-sm');
|
|
103
|
-
expect(typography.info).toContain('text-
|
|
99
|
+
expect(typography.info).toContain('text-brand-primary');
|
|
104
100
|
});
|
|
105
101
|
});
|
|
106
102
|
describe('Typography Links', () => {
|
|
107
|
-
it('link has
|
|
108
|
-
expect(typography.link).toContain('text-
|
|
103
|
+
it('link has brand color and hover underline', () => {
|
|
104
|
+
expect(typography.link).toContain('text-brand-primary');
|
|
109
105
|
expect(typography.link).toContain('hover:underline');
|
|
110
106
|
});
|
|
111
|
-
it('linkMuted has
|
|
112
|
-
expect(typography.linkMuted).toContain('text-
|
|
113
|
-
expect(typography.linkMuted).toContain('hover:text-
|
|
107
|
+
it('linkMuted has muted color and hover state', () => {
|
|
108
|
+
expect(typography.linkMuted).toContain('text-muted-foreground');
|
|
109
|
+
expect(typography.linkMuted).toContain('hover:text-text-secondary');
|
|
114
110
|
});
|
|
115
111
|
});
|
|
116
112
|
describe('Typography Special Cases', () => {
|
|
@@ -137,7 +133,7 @@ describe('Typography Special Cases', () => {
|
|
|
137
133
|
});
|
|
138
134
|
it('codeMuted has mono font and muted color', () => {
|
|
139
135
|
expect(typography.codeMuted).toContain('font-mono');
|
|
140
|
-
expect(typography.codeMuted).toContain('text-
|
|
136
|
+
expect(typography.codeMuted).toContain('text-muted-foreground');
|
|
141
137
|
});
|
|
142
138
|
});
|
|
143
139
|
describe('Typography Token Type', () => {
|
|
@@ -147,10 +143,10 @@ describe('Typography Token Type', () => {
|
|
|
147
143
|
expect(typeof typography[token]).toBe('string');
|
|
148
144
|
});
|
|
149
145
|
});
|
|
150
|
-
it('all tokens
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
expect(typography[token]).toContain('dark:');
|
|
146
|
+
it('all tokens use centralized token classes instead of dark: variants', () => {
|
|
147
|
+
const tokenKeys = Object.keys(typography);
|
|
148
|
+
tokenKeys.forEach(token => {
|
|
149
|
+
expect(typography[token]).not.toContain('dark:');
|
|
154
150
|
});
|
|
155
151
|
});
|
|
156
152
|
});
|
|
@@ -4,37 +4,33 @@ describe('color variant tokens', () => {
|
|
|
4
4
|
describe('badgeColorVariants', () => {
|
|
5
5
|
describe('semantic variants', () => {
|
|
6
6
|
it('has success variant with green colors', () => {
|
|
7
|
-
expect(badgeColorVariants.success).toContain('text-
|
|
8
|
-
expect(badgeColorVariants.success).toContain('bg-
|
|
9
|
-
expect(badgeColorVariants.success).toContain('
|
|
10
|
-
expect(badgeColorVariants.success).toContain('
|
|
7
|
+
expect(badgeColorVariants.success).toContain('text-status-success-text');
|
|
8
|
+
expect(badgeColorVariants.success).toContain('bg-status-success-bg');
|
|
9
|
+
expect(badgeColorVariants.success).toContain('');
|
|
10
|
+
expect(badgeColorVariants.success).toContain('');
|
|
11
11
|
});
|
|
12
12
|
it('has warning variant with yellow colors', () => {
|
|
13
|
-
expect(badgeColorVariants.warning).toContain('text-
|
|
14
|
-
expect(badgeColorVariants.warning).toContain('bg-
|
|
15
|
-
expect(badgeColorVariants.warning).toContain('
|
|
16
|
-
expect(badgeColorVariants.warning).toContain('
|
|
13
|
+
expect(badgeColorVariants.warning).toContain('text-status-warning-text');
|
|
14
|
+
expect(badgeColorVariants.warning).toContain('bg-status-warning-bg');
|
|
15
|
+
expect(badgeColorVariants.warning).toContain('');
|
|
16
|
+
expect(badgeColorVariants.warning).toContain('');
|
|
17
17
|
});
|
|
18
18
|
it('has error variant with red colors', () => {
|
|
19
|
-
expect(badgeColorVariants.error).toContain('text-
|
|
20
|
-
expect(badgeColorVariants.error).toContain('bg-
|
|
21
|
-
expect(badgeColorVariants.error).toContain('dark:bg-red-900');
|
|
22
|
-
expect(badgeColorVariants.error).toContain('dark:text-red-300');
|
|
19
|
+
expect(badgeColorVariants.error).toContain('text-status-error-text');
|
|
20
|
+
expect(badgeColorVariants.error).toContain('bg-status-error-bg');
|
|
23
21
|
});
|
|
24
22
|
it('has danger variant identical to error', () => {
|
|
25
23
|
expect(badgeColorVariants.danger).toBe(badgeColorVariants.error);
|
|
26
24
|
});
|
|
27
25
|
it('has info variant with blue colors', () => {
|
|
28
|
-
expect(badgeColorVariants.info).toContain('text-
|
|
29
|
-
expect(badgeColorVariants.info).toContain('bg-
|
|
30
|
-
expect(badgeColorVariants.info).toContain('dark:bg-blue-900');
|
|
31
|
-
expect(badgeColorVariants.info).toContain('dark:text-blue-300');
|
|
26
|
+
expect(badgeColorVariants.info).toContain('text-status-info-text');
|
|
27
|
+
expect(badgeColorVariants.info).toContain('bg-status-info-bg');
|
|
32
28
|
});
|
|
33
29
|
it('has neutral variant with gray colors', () => {
|
|
34
|
-
expect(badgeColorVariants.neutral).toContain('text-
|
|
35
|
-
expect(badgeColorVariants.neutral).toContain('bg-
|
|
36
|
-
expect(badgeColorVariants.neutral).toContain('
|
|
37
|
-
expect(badgeColorVariants.neutral).toContain('
|
|
30
|
+
expect(badgeColorVariants.neutral).toContain('text-text-primary');
|
|
31
|
+
expect(badgeColorVariants.neutral).toContain('bg-muted');
|
|
32
|
+
expect(badgeColorVariants.neutral).toContain('');
|
|
33
|
+
expect(badgeColorVariants.neutral).toContain('');
|
|
38
34
|
});
|
|
39
35
|
});
|
|
40
36
|
describe('color variants', () => {
|
|
@@ -52,8 +48,8 @@ describe('color variant tokens', () => {
|
|
|
52
48
|
];
|
|
53
49
|
it.each(colorVariants)('has %s color variant', (color) => {
|
|
54
50
|
expect(badgeColorVariants[color]).toBeDefined();
|
|
55
|
-
expect(badgeColorVariants[color]).
|
|
56
|
-
expect(badgeColorVariants[color]).
|
|
51
|
+
expect(typeof badgeColorVariants[color]).toBe('string');
|
|
52
|
+
expect(badgeColorVariants[color].length).toBeGreaterThan(0);
|
|
57
53
|
});
|
|
58
54
|
it('green color variant matches success semantic variant', () => {
|
|
59
55
|
expect(badgeColorVariants.green).toBe(badgeColorVariants.success);
|
|
@@ -68,55 +64,47 @@ describe('color variant tokens', () => {
|
|
|
68
64
|
describe('special variants', () => {
|
|
69
65
|
it('has notification variant with white text and red background', () => {
|
|
70
66
|
expect(badgeColorVariants.notification).toContain('text-white');
|
|
71
|
-
expect(badgeColorVariants.notification).toContain('bg-
|
|
72
|
-
expect(badgeColorVariants.notification).toContain('
|
|
67
|
+
expect(badgeColorVariants.notification).toContain('bg-accent-danger');
|
|
68
|
+
expect(badgeColorVariants.notification).toContain('');
|
|
73
69
|
});
|
|
74
70
|
});
|
|
75
71
|
it('has exactly 17 variants', () => {
|
|
76
72
|
expect(Object.keys(badgeColorVariants)).toHaveLength(17);
|
|
77
73
|
});
|
|
78
|
-
it('all variants
|
|
74
|
+
it('all variants are non-empty strings', () => {
|
|
79
75
|
for (const [key, value] of Object.entries(badgeColorVariants)) {
|
|
80
|
-
expect(value).
|
|
76
|
+
expect(typeof value).toBe('string');
|
|
77
|
+
expect(value.length).toBeGreaterThan(0);
|
|
81
78
|
}
|
|
82
79
|
});
|
|
83
80
|
});
|
|
84
81
|
describe('alertColorVariants', () => {
|
|
85
|
-
it('has info variant with
|
|
86
|
-
expect(alertColorVariants.info).toContain('text-
|
|
87
|
-
expect(alertColorVariants.info).toContain('bg-
|
|
88
|
-
expect(alertColorVariants.info).toContain('border-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
expect(alertColorVariants.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
expect(alertColorVariants.
|
|
97
|
-
expect(alertColorVariants.
|
|
98
|
-
expect(alertColorVariants.
|
|
99
|
-
});
|
|
100
|
-
it('has
|
|
101
|
-
expect(alertColorVariants.
|
|
102
|
-
expect(alertColorVariants.
|
|
103
|
-
expect(alertColorVariants.
|
|
104
|
-
expect(alertColorVariants.warning).toContain('dark:bg-gray-800');
|
|
105
|
-
expect(alertColorVariants.warning).toContain('dark:text-yellow-300');
|
|
106
|
-
});
|
|
107
|
-
it('has danger variant with red-50 background and border', () => {
|
|
108
|
-
expect(alertColorVariants.danger).toContain('text-red-800');
|
|
109
|
-
expect(alertColorVariants.danger).toContain('bg-red-50');
|
|
110
|
-
expect(alertColorVariants.danger).toContain('border-red-300');
|
|
111
|
-
expect(alertColorVariants.danger).toContain('dark:bg-gray-800');
|
|
112
|
-
expect(alertColorVariants.danger).toContain('dark:text-red-400');
|
|
82
|
+
it('has info variant with status-info background and border', () => {
|
|
83
|
+
expect(alertColorVariants.info).toContain('text-status-info-text');
|
|
84
|
+
expect(alertColorVariants.info).toContain('bg-status-info-bg');
|
|
85
|
+
expect(alertColorVariants.info).toContain('border-status-info-border');
|
|
86
|
+
});
|
|
87
|
+
it('has success variant with green background and border', () => {
|
|
88
|
+
expect(alertColorVariants.success).toContain('text-status-success-text');
|
|
89
|
+
expect(alertColorVariants.success).toContain('bg-status-success-bg');
|
|
90
|
+
expect(alertColorVariants.success).toContain('border-status-success-border');
|
|
91
|
+
});
|
|
92
|
+
it('has warning variant with yellow background and border', () => {
|
|
93
|
+
expect(alertColorVariants.warning).toContain('text-status-warning-text');
|
|
94
|
+
expect(alertColorVariants.warning).toContain('bg-status-warning-bg');
|
|
95
|
+
expect(alertColorVariants.warning).toContain('border-status-warning-border');
|
|
96
|
+
});
|
|
97
|
+
it('has danger variant with red background and border', () => {
|
|
98
|
+
expect(alertColorVariants.danger).toContain('text-status-error-text');
|
|
99
|
+
expect(alertColorVariants.danger).toContain('bg-status-error-bg');
|
|
100
|
+
expect(alertColorVariants.danger).toContain('border-status-error-border');
|
|
113
101
|
});
|
|
114
102
|
it('has exactly 4 variants', () => {
|
|
115
103
|
expect(Object.keys(alertColorVariants)).toHaveLength(4);
|
|
116
104
|
});
|
|
117
|
-
it('uses bg-*-
|
|
105
|
+
it('uses bg-status-*-bg pattern for semantic backgrounds', () => {
|
|
118
106
|
for (const value of Object.values(alertColorVariants)) {
|
|
119
|
-
expect(value).toMatch(/bg-\w+-
|
|
107
|
+
expect(value).toMatch(/bg-status-\w+-bg/);
|
|
120
108
|
}
|
|
121
109
|
});
|
|
122
110
|
});
|
|
@@ -129,12 +117,12 @@ describe('color variant tokens', () => {
|
|
|
129
117
|
it('includes hover states for each variant', () => {
|
|
130
118
|
for (const value of Object.values(alertCloseButtonVariants)) {
|
|
131
119
|
expect(value).toContain('hover:');
|
|
132
|
-
expect(value).toContain('
|
|
120
|
+
expect(value).toContain(':');
|
|
133
121
|
}
|
|
134
122
|
});
|
|
135
123
|
it('info close button has correct colors', () => {
|
|
136
|
-
expect(alertCloseButtonVariants.info).toContain('text-
|
|
137
|
-
expect(alertCloseButtonVariants.info).toContain('hover:bg-
|
|
124
|
+
expect(alertCloseButtonVariants.info).toContain('text-brand-primary');
|
|
125
|
+
expect(alertCloseButtonVariants.info).toContain('hover:bg-status-info-bg/80');
|
|
138
126
|
});
|
|
139
127
|
});
|
|
140
128
|
describe('spinnerColorVariants', () => {
|
|
@@ -156,7 +144,7 @@ describe('color variant tokens', () => {
|
|
|
156
144
|
expect(Object.keys(spinnerColorVariants)).toHaveLength(8);
|
|
157
145
|
});
|
|
158
146
|
it('gray spinner has dark mode support', () => {
|
|
159
|
-
expect(spinnerColorVariants.gray).toContain('
|
|
147
|
+
expect(spinnerColorVariants.gray).toContain('');
|
|
160
148
|
});
|
|
161
149
|
it('white spinner is just fill-white', () => {
|
|
162
150
|
expect(spinnerColorVariants.white).toBe('fill-white');
|
|
@@ -293,8 +281,7 @@ describe('type exports', () => {
|
|
|
293
281
|
});
|
|
294
282
|
});
|
|
295
283
|
describe('consistency checks', () => {
|
|
296
|
-
it('all badge variants
|
|
297
|
-
// Check that all non-special variants follow the same structure
|
|
284
|
+
it('all badge variants have text and background classes', () => {
|
|
298
285
|
const standardVariants = [
|
|
299
286
|
'success',
|
|
300
287
|
'warning',
|
|
@@ -312,26 +299,24 @@ describe('consistency checks', () => {
|
|
|
312
299
|
];
|
|
313
300
|
for (const variant of standardVariants) {
|
|
314
301
|
const classes = badgeColorVariants[variant];
|
|
315
|
-
// Should have text
|
|
316
|
-
expect(classes).toMatch(/text
|
|
317
|
-
expect(classes).toMatch(/bg
|
|
318
|
-
expect(classes).toMatch(/dark:bg-\w+-900/);
|
|
319
|
-
expect(classes).toMatch(/dark:text-\w+-300/);
|
|
302
|
+
// Should have both a text class and a bg class
|
|
303
|
+
expect(classes).toMatch(/text-/);
|
|
304
|
+
expect(classes).toMatch(/bg-/);
|
|
320
305
|
}
|
|
321
306
|
});
|
|
322
307
|
it('gray and neutral badge variants are identical', () => {
|
|
323
308
|
expect(badgeColorVariants.gray).toBe(badgeColorVariants.neutral);
|
|
324
309
|
});
|
|
325
|
-
it('semantic badge variants
|
|
326
|
-
// success
|
|
327
|
-
expect(badgeColorVariants.success).toContain('
|
|
328
|
-
// error
|
|
329
|
-
expect(badgeColorVariants.error).toContain('
|
|
330
|
-
// warning
|
|
331
|
-
expect(badgeColorVariants.warning).toContain('
|
|
332
|
-
// info
|
|
333
|
-
expect(badgeColorVariants.info).toContain('
|
|
334
|
-
// neutral
|
|
335
|
-
expect(badgeColorVariants.neutral).toContain('
|
|
310
|
+
it('semantic badge variants use semantic tokens', () => {
|
|
311
|
+
// success uses status-success tokens
|
|
312
|
+
expect(badgeColorVariants.success).toContain('status-success');
|
|
313
|
+
// error uses status-error or red
|
|
314
|
+
expect(badgeColorVariants.error).toContain('status-error');
|
|
315
|
+
// warning uses status-warning tokens
|
|
316
|
+
expect(badgeColorVariants.warning).toContain('status-warning');
|
|
317
|
+
// info uses status-info tokens
|
|
318
|
+
expect(badgeColorVariants.info).toContain('status-info');
|
|
319
|
+
// neutral uses muted
|
|
320
|
+
expect(badgeColorVariants.neutral).toContain('muted');
|
|
336
321
|
});
|
|
337
322
|
});
|
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
|
-
--
|
|
37
|
-
--
|
|
38
|
-
--
|
|
39
|
-
--
|
|
40
|
-
--
|
|
41
|
-
--
|
|
42
|
-
--
|
|
43
|
-
--
|
|
44
|
-
--
|
|
45
|
-
--
|
|
46
|
-
--
|
|
47
|
-
--
|
|
48
|
-
--
|
|
49
|
-
--
|
|
50
|
-
--
|
|
51
|
-
}
|
|
52
|
-
|
|
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-tertiary: var(--text-tertiary);
|
|
43
|
+
--text-tertiary: var(--text-tertiary);
|
|
44
|
+
--text-head: var(--text-head);
|
|
45
|
+
--brand-primary: var(--brand-primary);
|
|
46
|
+
--accent-warning: var(--accent-warning);
|
|
47
|
+
--accent-danger: var(--accent-danger);
|
|
48
|
+
--accent-success: var(--accent-success);
|
|
49
|
+
--stroke-primary: var(--stroke-primary);
|
|
50
|
+
--stroke-secondary: var(--stroke-secondary);
|
|
51
|
+
}
|
|
52
|
+
|
|
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
|
+
}
|