@tenerife.music/ui 1.0.8 → 1.0.13
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/README.md +12 -8
- package/dist/{tokens/colors.d.ts → colors-CVA7_16U.d.cts} +21 -19
- package/dist/colors-CVA7_16U.d.ts +289 -0
- package/dist/index-BgXvioll.d.cts +6845 -0
- package/dist/index-Bv4wWj9I.d.ts +6845 -0
- package/dist/index.cjs +16385 -2
- package/dist/index.d.cts +4020 -0
- package/dist/index.d.ts +4020 -39
- package/dist/index.mjs +14502 -6425
- package/dist/preset.cjs +1264 -2
- package/dist/preset.d.cts +21 -0
- package/dist/preset.d.ts +3 -1
- package/dist/preset.mjs +1165 -95
- package/dist/styles.cjs +2 -2
- package/dist/styles.css +87 -1
- package/dist/styles.d.cts +2 -0
- package/dist/styles.d.ts +2 -0
- package/dist/styles.mjs +1 -1
- package/dist/theme/index.cjs +2634 -2
- package/dist/theme/index.d.cts +453 -0
- package/dist/theme/index.d.ts +453 -8
- package/dist/theme/index.mjs +1601 -576
- package/dist/tokens/index.cjs +6203 -5
- package/dist/tokens/index.d.cts +2 -0
- package/dist/tokens/index.d.ts +2 -9
- package/dist/tokens/index.mjs +2601 -155
- package/package.json +10 -9
- package/dist/animation/index.d.ts +0 -8
- package/dist/animation/presets.d.ts +0 -301
- package/dist/animation/tas.d.ts +0 -24
- package/dist/animation/types.d.ts +0 -67
- package/dist/animation/useInView.d.ts +0 -36
- package/dist/animation/utils.d.ts +0 -6
- package/dist/brand-C5R2semX.js +0 -45
- package/dist/brand-DQb18Frh.cjs +0 -2
- package/dist/components/SectionBuilder.d.ts +0 -36
- package/dist/components/SectionBuilder.presets.d.ts +0 -228
- package/dist/components/SectionBuilder.types.d.ts +0 -326
- package/dist/components/admin/Dashboard.d.ts +0 -8
- package/dist/components/admin/UserManagement.d.ts +0 -8
- package/dist/components/auth/LoginForm.d.ts +0 -11
- package/dist/components/auth/ProfileCard.d.ts +0 -9
- package/dist/components/auth/RegisterForm.d.ts +0 -13
- package/dist/components/cards/ArtistCard/ArtistCard.d.ts +0 -22
- package/dist/components/cards/ArtistCard/ArtistCard.types.d.ts +0 -46
- package/dist/components/cards/ArtistCard/ArtistCard.variants.d.ts +0 -83
- package/dist/components/cards/ArtistCard/index.d.ts +0 -8
- package/dist/components/cards/CardBase/CardBase.d.ts +0 -45
- package/dist/components/cards/CardBase/CardBase.types.d.ts +0 -70
- package/dist/components/cards/CardBase/CardBase.variants.d.ts +0 -38
- package/dist/components/cards/CardBase/index.d.ts +0 -8
- package/dist/components/cards/CategoryCard/CategoryCard.d.ts +0 -18
- package/dist/components/cards/CategoryCard/CategoryCard.types.d.ts +0 -38
- package/dist/components/cards/CategoryCard/CategoryCard.variants.d.ts +0 -21
- package/dist/components/cards/CategoryCard/index.d.ts +0 -7
- package/dist/components/cards/EventCard/EventCard.d.ts +0 -19
- package/dist/components/cards/EventCard/EventCard.types.d.ts +0 -47
- package/dist/components/cards/EventCard/EventCard.variants.d.ts +0 -70
- package/dist/components/cards/EventCard/index.d.ts +0 -7
- package/dist/components/cards/PromoCard/PromoCard.d.ts +0 -20
- package/dist/components/cards/PromoCard/PromoCard.types.d.ts +0 -42
- package/dist/components/cards/PromoCard/PromoCard.variants.d.ts +0 -35
- package/dist/components/cards/PromoCard/index.d.ts +0 -7
- package/dist/components/cards/TicketCard/TicketCard.d.ts +0 -19
- package/dist/components/cards/TicketCard/TicketCard.types.d.ts +0 -55
- package/dist/components/cards/TicketCard/TicketCard.variants.d.ts +0 -71
- package/dist/components/cards/TicketCard/index.d.ts +0 -7
- package/dist/components/cards/VenueCard/VenueCard.d.ts +0 -21
- package/dist/components/cards/VenueCard/VenueCard.types.d.ts +0 -46
- package/dist/components/cards/VenueCard/VenueCard.variants.d.ts +0 -60
- package/dist/components/cards/VenueCard/index.d.ts +0 -8
- package/dist/components/cards/index.d.ts +0 -19
- package/dist/components/checkbox/Checkbox.d.ts +0 -22
- package/dist/components/checkbox/Checkbox.types.d.ts +0 -68
- package/dist/components/checkbox/checkbox-variants.d.ts +0 -13
- package/dist/components/checkbox/index.d.ts +0 -3
- package/dist/components/containers/Card.d.ts +0 -75
- package/dist/components/containers/Section.d.ts +0 -31
- package/dist/components/containers/Surface.d.ts +0 -28
- package/dist/components/containers/index.d.ts +0 -9
- package/dist/components/controls/LanguageSelector.d.ts +0 -17
- package/dist/components/data/List.d.ts +0 -12
- package/dist/components/data/Table.d.ts +0 -14
- package/dist/components/data/Timeline.d.ts +0 -13
- package/dist/components/data/data-list/DataList.d.ts +0 -29
- package/dist/components/data/data-list/DataList.types.d.ts +0 -43
- package/dist/components/data/data-list/DataListItem.d.ts +0 -20
- package/dist/components/data/data-list/DataListLabel.d.ts +0 -19
- package/dist/components/data/data-list/DataListValue.d.ts +0 -18
- package/dist/components/data/data-list/index.d.ts +0 -10
- package/dist/components/data/empty-state/EmptyState.d.ts +0 -31
- package/dist/components/data/empty-state/EmptyState.types.d.ts +0 -51
- package/dist/components/data/empty-state/EmptyStateAction.d.ts +0 -17
- package/dist/components/data/empty-state/EmptyStateDescription.d.ts +0 -17
- package/dist/components/data/empty-state/EmptyStateIcon.d.ts +0 -22
- package/dist/components/data/empty-state/EmptyStateTitle.d.ts +0 -17
- package/dist/components/data/empty-state/index.d.ts +0 -10
- package/dist/components/data/index.d.ts +0 -9
- package/dist/components/data/skeleton/Skeleton.d.ts +0 -24
- package/dist/components/data/skeleton/Skeleton.types.d.ts +0 -12
- package/dist/components/data/skeleton/index.d.ts +0 -6
- package/dist/components/data/table/Table.d.ts +0 -33
- package/dist/components/data/table/Table.types.d.ts +0 -264
- package/dist/components/data/table/TableBody.d.ts +0 -13
- package/dist/components/data/table/TableCell.d.ts +0 -13
- package/dist/components/data/table/TableEmpty.d.ts +0 -13
- package/dist/components/data/table/TableExpandableContent.d.ts +0 -14
- package/dist/components/data/table/TableHead.d.ts +0 -13
- package/dist/components/data/table/TableHeader.d.ts +0 -13
- package/dist/components/data/table/TableLoadingState.d.ts +0 -13
- package/dist/components/data/table/TableRow.d.ts +0 -13
- package/dist/components/data/table/TableSortIcon.d.ts +0 -14
- package/dist/components/data/table/index.d.ts +0 -17
- package/dist/components/drawer/Drawer.d.ts +0 -41
- package/dist/components/drawer/Drawer.types.d.ts +0 -75
- package/dist/components/drawer/drawer-variants.d.ts +0 -17
- package/dist/components/drawer/index.d.ts +0 -8
- package/dist/components/dropdown/Dropdown.d.ts +0 -38
- package/dist/components/dropdown/Dropdown.types.d.ts +0 -82
- package/dist/components/dropdown/dropdown-variants.d.ts +0 -33
- package/dist/components/feedback/ConsentBanner.d.ts +0 -8
- package/dist/components/feedback/Progress.d.ts +0 -8
- package/dist/components/feedback/Skeleton.d.ts +0 -6
- package/dist/components/filters/DateRangePicker.d.ts +0 -21
- package/dist/components/filters/FilterBar.d.ts +0 -55
- package/dist/components/filters/FilterSelect.d.ts +0 -23
- package/dist/components/filters/PriceRangeSlider.d.ts +0 -27
- package/dist/components/filters/SearchFilters.d.ts +0 -32
- package/dist/components/filters/SearchInput.d.ts +0 -16
- package/dist/components/filters/types.d.ts +0 -48
- package/dist/components/icon/Icon.d.ts +0 -32
- package/dist/components/icon/Icon.types.d.ts +0 -7
- package/dist/components/icon/index.d.ts +0 -4
- package/dist/components/icons/TrendingIcon.d.ts +0 -6
- package/dist/components/image/Image.d.ts +0 -48
- package/dist/components/input/Input.d.ts +0 -20
- package/dist/components/input/Input.types.d.ts +0 -38
- package/dist/components/input/index.d.ts +0 -3
- package/dist/components/input/input-variants.d.ts +0 -14
- package/dist/components/input/legacy/input.d.ts +0 -11
- package/dist/components/layout/Box.d.ts +0 -111
- package/dist/components/layout/Column.d.ts +0 -6
- package/dist/components/layout/Container.d.ts +0 -31
- package/dist/components/layout/Flex.d.ts +0 -50
- package/dist/components/layout/Footer.d.ts +0 -9
- package/dist/components/layout/Grid.d.ts +0 -60
- package/dist/components/layout/ModeHero.d.ts +0 -10
- package/dist/components/layout/Navbar.d.ts +0 -9
- package/dist/components/layout/Row.d.ts +0 -28
- package/dist/components/layout/Section.d.ts +0 -10
- package/dist/components/layout/Stack.d.ts +0 -38
- package/dist/components/layout/Surface.d.ts +0 -21
- package/dist/components/layout/index.d.ts +0 -22
- package/dist/components/layout/layout.types.d.ts +0 -107
- package/dist/components/menus/DropdownMenu.d.ts +0 -27
- package/dist/components/menus/NavigationMenu.d.ts +0 -12
- package/dist/components/menus/Tabs.d.ts +0 -7
- package/dist/components/menus/context-menu/ContextMenuContent.d.ts +0 -22
- package/dist/components/menus/context-menu/ContextMenuGroup.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuItem.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuLabel.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuRoot.d.ts +0 -47
- package/dist/components/menus/context-menu/ContextMenuSeparator.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuTrigger.d.ts +0 -16
- package/dist/components/menus/context-menu/index.d.ts +0 -12
- package/dist/components/menus/dropdown/DropdownMenuCheckItem.d.ts +0 -18
- package/dist/components/menus/dropdown/DropdownMenuContent.d.ts +0 -15
- package/dist/components/menus/dropdown/DropdownMenuGroup.d.ts +0 -12
- package/dist/components/menus/dropdown/DropdownMenuItem.d.ts +0 -30
- package/dist/components/menus/dropdown/DropdownMenuLabel.d.ts +0 -17
- package/dist/components/menus/dropdown/DropdownMenuRadioGroup.d.ts +0 -24
- package/dist/components/menus/dropdown/DropdownMenuRadioItem.d.ts +0 -18
- package/dist/components/menus/dropdown/DropdownMenuRoot.d.ts +0 -33
- package/dist/components/menus/dropdown/DropdownMenuSeparator.d.ts +0 -13
- package/dist/components/menus/dropdown/DropdownMenuSub.d.ts +0 -10
- package/dist/components/menus/dropdown/DropdownMenuSubContent.d.ts +0 -13
- package/dist/components/menus/dropdown/DropdownMenuSubTrigger.d.ts +0 -13
- package/dist/components/menus/dropdown/DropdownMenuTrigger.d.ts +0 -14
- package/dist/components/menus/dropdown/index.d.ts +0 -18
- package/dist/components/menus/hover-card/HoverCardContent.d.ts +0 -14
- package/dist/components/menus/hover-card/HoverCardRoot.d.ts +0 -20
- package/dist/components/menus/hover-card/HoverCardTrigger.d.ts +0 -13
- package/dist/components/menus/hover-card/index.d.ts +0 -8
- package/dist/components/menus/index.d.ts +0 -9
- package/dist/components/menus/popover/PopoverArrow.d.ts +0 -17
- package/dist/components/menus/popover/PopoverContent.d.ts +0 -24
- package/dist/components/menus/popover/PopoverRoot.d.ts +0 -43
- package/dist/components/menus/popover/PopoverTrigger.d.ts +0 -17
- package/dist/components/menus/popover/index.d.ts +0 -9
- package/dist/components/modal/Modal.d.ts +0 -70
- package/dist/components/modal/modal-variants.d.ts +0 -26
- package/dist/components/modals/ConfirmDialog.d.ts +0 -27
- package/dist/components/modals/CustomDialog.d.ts +0 -10
- package/dist/components/modals/Modal.d.ts +0 -19
- package/dist/components/modals/ModalProvider.d.ts +0 -16
- package/dist/components/modals/SimpleModal.d.ts +0 -11
- package/dist/components/navigation/Breadcrumbs.d.ts +0 -12
- package/dist/components/navigation/Pagination.d.ts +0 -10
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts +0 -52
- package/dist/components/navigation/breadcrumbs/index.d.ts +0 -5
- package/dist/components/navigation/index.d.ts +0 -10
- package/dist/components/navigation/pagination/Pagination.d.ts +0 -60
- package/dist/components/navigation/pagination/index.d.ts +0 -5
- package/dist/components/navigation/segmented-control/SegmentedControl.d.ts +0 -43
- package/dist/components/navigation/segmented-control/index.d.ts +0 -5
- package/dist/components/navigation/stepper/Stepper.d.ts +0 -129
- package/dist/components/navigation/stepper/index.d.ts +0 -5
- package/dist/components/navigation/tabs/Tabs.d.ts +0 -73
- package/dist/components/navigation/tabs/index.d.ts +0 -5
- package/dist/components/notifications/NotificationCenter.DismissAll.d.ts +0 -21
- package/dist/components/notifications/NotificationCenter.GroupHeader.d.ts +0 -23
- package/dist/components/notifications/NotificationCenter.Item.d.ts +0 -24
- package/dist/components/notifications/NotificationCenter.List.d.ts +0 -22
- package/dist/components/notifications/NotificationCenter.Panel.d.ts +0 -32
- package/dist/components/notifications/NotificationCenter.Provider.d.ts +0 -31
- package/dist/components/notifications/NotificationCenter.Trigger.d.ts +0 -15
- package/dist/components/notifications/NotificationCenter.d.ts +0 -27
- package/dist/components/notifications/NotificationCenter.types.d.ts +0 -89
- package/dist/components/notifications/index.d.ts +0 -23
- package/dist/components/notifications/useNotificationCenter.d.ts +0 -47
- package/dist/components/overlays/Backdrop.d.ts +0 -24
- package/dist/components/overlays/Dialog.d.ts +0 -66
- package/dist/components/overlays/Modal.d.ts +0 -60
- package/dist/components/overlays/OverlayPortal.d.ts +0 -22
- package/dist/components/overlays/Popover.d.ts +0 -30
- package/dist/components/overlays/Portal.d.ts +0 -29
- package/dist/components/overlays/Toast.d.ts +0 -36
- package/dist/components/overlays/ToastProvider.d.ts +0 -58
- package/dist/components/overlays/ToastViewport.d.ts +0 -27
- package/dist/components/overlays/Tooltip.d.ts +0 -28
- package/dist/components/overlays/index.d.ts +0 -13
- package/dist/components/overlays/utils/FocusLock.d.ts +0 -30
- package/dist/components/overlays/utils/ScrollLock.d.ts +0 -11
- package/dist/components/overlays/utils/positioning.d.ts +0 -68
- package/dist/components/primitives/Badge.d.ts +0 -9
- package/dist/components/primitives/Button.d.ts +0 -1
- package/dist/components/primitives/Card.d.ts +0 -1
- package/dist/components/primitives/Divider.d.ts +0 -7
- package/dist/components/primitives/Input.d.ts +0 -4
- package/dist/components/primitives/Label.d.ts +0 -1
- package/dist/components/primitives/Link.d.ts +0 -13
- package/dist/components/primitives/ThemeSwitch.d.ts +0 -9
- package/dist/components/radio/Radio.d.ts +0 -23
- package/dist/components/radio/Radio.types.d.ts +0 -63
- package/dist/components/radio/RadioGroup.d.ts +0 -20
- package/dist/components/radio/RadioGroup.types.d.ts +0 -61
- package/dist/components/radio/index.d.ts +0 -5
- package/dist/components/radio/radio-variants.d.ts +0 -13
- package/dist/components/search/SearchBar.d.ts +0 -10
- package/dist/components/sections/ArticlesSection.d.ts +0 -25
- package/dist/components/sections/CTASection.d.ts +0 -37
- package/dist/components/sections/FeatureSection.d.ts +0 -33
- package/dist/components/sections/HeroSection.d.ts +0 -27
- package/dist/components/sections/TrendingSection.d.ts +0 -28
- package/dist/components/select/Select.d.ts +0 -38
- package/dist/components/select/Select.types.d.ts +0 -107
- package/dist/components/select/index.d.ts +0 -5
- package/dist/components/select/legacy/select.d.ts +0 -11
- package/dist/components/select/select-variants.d.ts +0 -32
- package/dist/components/skeletons/EventCardSkeleton.d.ts +0 -6
- package/dist/components/skeletons/VenueCardSkeleton.d.ts +0 -6
- package/dist/components/switch/Switch.d.ts +0 -24
- package/dist/components/switch/Switch.types.d.ts +0 -53
- package/dist/components/switch/index.d.ts +0 -3
- package/dist/components/switch/switch-variants.d.ts +0 -34
- package/dist/components/textarea/Textarea.d.ts +0 -21
- package/dist/components/textarea/Textarea.types.d.ts +0 -40
- package/dist/components/textarea/index.d.ts +0 -3
- package/dist/components/textarea/legacy/textarea.d.ts +0 -11
- package/dist/components/textarea/textarea-variants.d.ts +0 -14
- package/dist/components/toasts/Toast.d.ts +0 -12
- package/dist/components/toasts/ToastProvider.d.ts +0 -26
- package/dist/components/ui/alert.d.ts +0 -9
- package/dist/components/ui/body.d.ts +0 -12
- package/dist/components/ui/button.d.ts +0 -13
- package/dist/components/ui/caption.d.ts +0 -11
- package/dist/components/ui/card.d.ts +0 -8
- package/dist/components/ui/code.d.ts +0 -11
- package/dist/components/ui/dialog.d.ts +0 -19
- package/dist/components/ui/display.d.ts +0 -12
- package/dist/components/ui/field.d.ts +0 -45
- package/dist/components/ui/heading.d.ts +0 -12
- package/dist/components/ui/label.d.ts +0 -12
- package/dist/components/ui/lead.d.ts +0 -11
- package/dist/components/ui/text.d.ts +0 -18
- package/dist/components/ui/toast.d.ts +0 -15
- package/dist/components/ui/toaster.d.ts +0 -1
- package/dist/components/ui/tooltip.d.ts +0 -7
- package/dist/dark-Cvoy1uFT.js +0 -30
- package/dist/dark-OOhiqt1q.cjs +0 -2
- package/dist/default-BKgH1D9-.js +0 -8
- package/dist/default-Ddg7Haf2.cjs +0 -2
- package/dist/hooks/use-toast.d.ts +0 -44
- package/dist/hooks/useDebounce.d.ts +0 -19
- package/dist/hooks/useModal.d.ts +0 -19
- package/dist/hooks/useToast.d.ts +0 -26
- package/dist/icons/IconArrowRight.d.ts +0 -6
- package/dist/icons/IconCalendar.d.ts +0 -6
- package/dist/icons/IconCheck.d.ts +0 -6
- package/dist/icons/IconChevronDown.d.ts +0 -6
- package/dist/icons/IconChevronRight.d.ts +0 -6
- package/dist/icons/IconClose.d.ts +0 -6
- package/dist/icons/IconError.d.ts +0 -6
- package/dist/icons/IconInfo.d.ts +0 -6
- package/dist/icons/IconLocation.d.ts +0 -6
- package/dist/icons/IconMenu.d.ts +0 -6
- package/dist/icons/IconSearch.d.ts +0 -6
- package/dist/icons/IconSuccess.d.ts +0 -6
- package/dist/icons/IconWarning.d.ts +0 -6
- package/dist/icons/icon.types.d.ts +0 -25
- package/dist/icons/index.d.ts +0 -34
- package/dist/lib/a11y.d.ts +0 -15
- package/dist/lib/responsive-props.d.ts +0 -63
- package/dist/lib/utils.d.ts +0 -8
- package/dist/motion-CzQhSEqk.js +0 -738
- package/dist/motion-DJx1TbXJ.cjs +0 -2
- package/dist/theme/ThemeProvider.d.ts +0 -55
- package/dist/theme/applyMode.d.ts +0 -42
- package/dist/theme/colors.d.ts +0 -6
- package/dist/theme/loader.d.ts +0 -63
- package/dist/theme/motion/gestures.d.ts +0 -76
- package/dist/theme/motion/useReducedMotion.d.ts +0 -11
- package/dist/theme/motion.d.ts +0 -127
- package/dist/theme/registry.d.ts +0 -70
- package/dist/theme/schema.d.ts +0 -124
- package/dist/theme/spacing.d.ts +0 -34
- package/dist/theme/typography.d.ts +0 -45
- package/dist/themes/brand.d.ts +0 -6
- package/dist/themes/brand_engine.d.ts +0 -108
- package/dist/themes/dark.d.ts +0 -6
- package/dist/themes/default.d.ts +0 -6
- package/dist/themes/index.d.ts +0 -24
- package/dist/themes/minimal.d.ts +0 -6
- package/dist/themes/neon.d.ts +0 -6
- package/dist/themes/types.d.ts +0 -278
- package/dist/tokens/components/alert.d.ts +0 -74
- package/dist/tokens/components/button.d.ts +0 -130
- package/dist/tokens/components/card.d.ts +0 -91
- package/dist/tokens/components/checkbox.d.ts +0 -161
- package/dist/tokens/components/data.d.ts +0 -227
- package/dist/tokens/components/domain.d.ts +0 -379
- package/dist/tokens/components/dropdown.d.ts +0 -146
- package/dist/tokens/components/icon.d.ts +0 -57
- package/dist/tokens/components/index.d.ts +0 -31
- package/dist/tokens/components/input.d.ts +0 -284
- package/dist/tokens/components/menu.d.ts +0 -114
- package/dist/tokens/components/motion.d.ts +0 -103
- package/dist/tokens/components/navigation.d.ts +0 -181
- package/dist/tokens/components/notifications.d.ts +0 -159
- package/dist/tokens/components/overlay.d.ts +0 -227
- package/dist/tokens/components/popover.d.ts +0 -84
- package/dist/tokens/components/radio.d.ts +0 -149
- package/dist/tokens/components/section.d.ts +0 -41
- package/dist/tokens/components/surface.d.ts +0 -94
- package/dist/tokens/components/switch.d.ts +0 -208
- package/dist/tokens/components/text.d.ts +0 -68
- package/dist/tokens/components/toast.d.ts +0 -146
- package/dist/tokens/components/tooltip.d.ts +0 -52
- package/dist/tokens/css-variables.d.ts +0 -251
- package/dist/tokens/motion/v2.d.ts +0 -342
- package/dist/tokens/motion.d.ts +0 -485
- package/dist/tokens/opacity.d.ts +0 -22
- package/dist/tokens/radius.d.ts +0 -161
- package/dist/tokens/shadows.d.ts +0 -230
- package/dist/tokens/spacing.d.ts +0 -238
- package/dist/tokens/theme.d.ts +0 -119
- package/dist/tokens/typography.d.ts +0 -460
- package/dist/typography-C-Nb4y0o.cjs +0 -2
- package/dist/typography-DHym9KAP.js +0 -1196
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
import { M as Mode, C as ColorScale, B as BaseColorTokens, S as SurfaceColors, a as SemanticColors, T as TextColors } from '../colors-CVA7_16U.cjs';
|
|
2
|
+
export { b as ChartColors, c as ColorTokens, d as cssVariableColorTokens, t as tailwindThemeColors } from '../colors-CVA7_16U.cjs';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Theme Override Types
|
|
8
|
+
*
|
|
9
|
+
* Defines types for theme overrides that can be applied to the token system.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Theme name type
|
|
14
|
+
*/
|
|
15
|
+
type ThemeName = "default" | "dark" | "brand";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Get initial mode from various sources
|
|
19
|
+
* Checks in order: DOM attribute, localStorage, system preference, default
|
|
20
|
+
*/
|
|
21
|
+
declare function getInitialMode(defaultMode?: Mode, storageKey?: string, enableSystem?: boolean): Mode;
|
|
22
|
+
/**
|
|
23
|
+
* Get initial theme from various sources
|
|
24
|
+
*/
|
|
25
|
+
declare function getInitialTheme(defaultTheme?: "default" | "dark" | "brand", storageKey?: string): "default" | "dark" | "brand";
|
|
26
|
+
/**
|
|
27
|
+
* Persist mode to localStorage
|
|
28
|
+
*/
|
|
29
|
+
declare function persistMode(mode: Mode, storageKey?: string): void;
|
|
30
|
+
/**
|
|
31
|
+
* Persist theme to localStorage
|
|
32
|
+
*/
|
|
33
|
+
declare function persistTheme(theme: "default" | "dark" | "brand", storageKey?: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* Get initial brand from various sources
|
|
36
|
+
*/
|
|
37
|
+
declare function getInitialBrand(defaultBrand?: string | null, storageKey?: string): string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Persist brand to localStorage
|
|
40
|
+
*/
|
|
41
|
+
declare function persistBrand(brandId: string | null, storageKey?: string): void;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Theme Schema
|
|
45
|
+
*
|
|
46
|
+
* Strict TypeScript schema for theme objects with validation.
|
|
47
|
+
* Ensures all themes conform to the token system and are type-safe.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Theme metadata
|
|
52
|
+
*/
|
|
53
|
+
interface ThemeMetadata {
|
|
54
|
+
/**
|
|
55
|
+
* Unique theme identifier (kebab-case)
|
|
56
|
+
* Example: "ocean-blue", "sunset-orange"
|
|
57
|
+
*/
|
|
58
|
+
id: string;
|
|
59
|
+
/**
|
|
60
|
+
* Human-readable theme name
|
|
61
|
+
* Example: "Ocean Blue", "Sunset Orange"
|
|
62
|
+
*/
|
|
63
|
+
name: string;
|
|
64
|
+
/**
|
|
65
|
+
* Theme description
|
|
66
|
+
*/
|
|
67
|
+
description?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Theme category
|
|
70
|
+
* - "default": Standard themes
|
|
71
|
+
* - "brand": Brand-specific themes
|
|
72
|
+
* - "seasonal": Seasonal/holiday themes
|
|
73
|
+
* - "custom": User-created themes
|
|
74
|
+
*/
|
|
75
|
+
category?: "default" | "brand" | "seasonal" | "custom";
|
|
76
|
+
/**
|
|
77
|
+
* Theme author (optional)
|
|
78
|
+
*/
|
|
79
|
+
author?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Theme version (semver)
|
|
82
|
+
*/
|
|
83
|
+
version?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Preview image URL (optional)
|
|
86
|
+
*/
|
|
87
|
+
previewImage?: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Complete theme schema
|
|
91
|
+
* Extends ThemeOverride with metadata and validation
|
|
92
|
+
*/
|
|
93
|
+
interface ThemeSchema extends ThemeMetadata {
|
|
94
|
+
/**
|
|
95
|
+
* Override primary color scale
|
|
96
|
+
* Partial override - only specified values override base tokens
|
|
97
|
+
*/
|
|
98
|
+
primaryColors?: Partial<ColorScale>;
|
|
99
|
+
/**
|
|
100
|
+
* Override accent color scale
|
|
101
|
+
*/
|
|
102
|
+
accentColors?: Partial<ColorScale>;
|
|
103
|
+
/**
|
|
104
|
+
* Override secondary color scale
|
|
105
|
+
*/
|
|
106
|
+
secondaryColors?: Partial<ColorScale>;
|
|
107
|
+
/**
|
|
108
|
+
* Override base colors (for day mode)
|
|
109
|
+
*/
|
|
110
|
+
baseColorsDay?: Partial<BaseColorTokens>;
|
|
111
|
+
/**
|
|
112
|
+
* Override base colors (for night mode)
|
|
113
|
+
*/
|
|
114
|
+
baseColorsNight?: Partial<BaseColorTokens>;
|
|
115
|
+
/**
|
|
116
|
+
* Override surface colors (for day mode)
|
|
117
|
+
*/
|
|
118
|
+
surfaceColorsDay?: Partial<SurfaceColors>;
|
|
119
|
+
/**
|
|
120
|
+
* Override surface colors (for night mode)
|
|
121
|
+
*/
|
|
122
|
+
surfaceColorsNight?: Partial<SurfaceColors>;
|
|
123
|
+
/**
|
|
124
|
+
* Override semantic colors (for day mode)
|
|
125
|
+
*/
|
|
126
|
+
semanticColorsDay?: Partial<SemanticColors>;
|
|
127
|
+
/**
|
|
128
|
+
* Override semantic colors (for night mode)
|
|
129
|
+
*/
|
|
130
|
+
semanticColorsNight?: Partial<SemanticColors>;
|
|
131
|
+
/**
|
|
132
|
+
* Override text colors (for day mode)
|
|
133
|
+
*/
|
|
134
|
+
textColorsDay?: Partial<TextColors>;
|
|
135
|
+
/**
|
|
136
|
+
* Override text colors (for night mode)
|
|
137
|
+
*/
|
|
138
|
+
textColorsNight?: Partial<TextColors>;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Theme validation result
|
|
142
|
+
*/
|
|
143
|
+
interface ThemeValidationResult {
|
|
144
|
+
/**
|
|
145
|
+
* Whether theme is valid
|
|
146
|
+
*/
|
|
147
|
+
valid: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Validation errors
|
|
150
|
+
*/
|
|
151
|
+
errors: string[];
|
|
152
|
+
/**
|
|
153
|
+
* Validation warnings
|
|
154
|
+
*/
|
|
155
|
+
warnings: string[];
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Validate theme schema
|
|
159
|
+
*
|
|
160
|
+
* @param theme - Theme to validate
|
|
161
|
+
* @returns Validation result
|
|
162
|
+
*/
|
|
163
|
+
declare function validateThemeSchema(theme: unknown): ThemeValidationResult;
|
|
164
|
+
/**
|
|
165
|
+
* Type guard to check if object is ThemeSchema
|
|
166
|
+
*/
|
|
167
|
+
declare function isThemeSchema(obj: unknown): obj is ThemeSchema;
|
|
168
|
+
/**
|
|
169
|
+
* Create a minimal valid theme schema
|
|
170
|
+
* Useful for CLI scaffolding
|
|
171
|
+
*/
|
|
172
|
+
declare function createMinimalThemeSchema(id: string, name: string): ThemeSchema;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Theme Loader
|
|
176
|
+
*
|
|
177
|
+
* Loads themes from registry with error handling and fallback logic.
|
|
178
|
+
* Provides async loading support for dynamic themes.
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Theme loader options
|
|
183
|
+
*/
|
|
184
|
+
interface ThemeLoaderOptions {
|
|
185
|
+
/**
|
|
186
|
+
* Fallback theme ID if loading fails
|
|
187
|
+
*/
|
|
188
|
+
fallbackThemeId?: string;
|
|
189
|
+
/**
|
|
190
|
+
* Whether to validate theme schema
|
|
191
|
+
*/
|
|
192
|
+
validate?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Whether to throw errors or return fallback
|
|
195
|
+
*/
|
|
196
|
+
throwOnError?: boolean;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Theme loader result
|
|
200
|
+
*/
|
|
201
|
+
interface ThemeLoaderResult {
|
|
202
|
+
/**
|
|
203
|
+
* Loaded theme
|
|
204
|
+
*/
|
|
205
|
+
theme: ThemeSchema;
|
|
206
|
+
/**
|
|
207
|
+
* Whether fallback was used
|
|
208
|
+
*/
|
|
209
|
+
usedFallback: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Validation warnings (if validation enabled)
|
|
212
|
+
*/
|
|
213
|
+
warnings: string[];
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Load theme with error handling
|
|
217
|
+
*
|
|
218
|
+
* @param themeId - Theme ID to load
|
|
219
|
+
* @param options - Loader options
|
|
220
|
+
* @returns Theme loader result
|
|
221
|
+
*/
|
|
222
|
+
declare function loadThemeSafe(themeId: string, options?: ThemeLoaderOptions): Promise<ThemeLoaderResult>;
|
|
223
|
+
/**
|
|
224
|
+
* Preload multiple themes
|
|
225
|
+
* Useful for prefetching themes that might be needed
|
|
226
|
+
*
|
|
227
|
+
* @param themeIds - Array of theme IDs to preload
|
|
228
|
+
*/
|
|
229
|
+
declare function preloadThemes(themeIds: string[]): Promise<void>;
|
|
230
|
+
/**
|
|
231
|
+
* Get all available theme IDs
|
|
232
|
+
*
|
|
233
|
+
* @returns Array of theme IDs
|
|
234
|
+
*/
|
|
235
|
+
declare function getAvailableThemeIds(): string[];
|
|
236
|
+
/**
|
|
237
|
+
* Check if theme can be loaded
|
|
238
|
+
*
|
|
239
|
+
* @param themeId - Theme ID to check
|
|
240
|
+
* @returns Whether theme can be loaded
|
|
241
|
+
*/
|
|
242
|
+
declare function canLoadTheme(themeId: string): Promise<boolean>;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Theme Registry
|
|
246
|
+
*
|
|
247
|
+
* Central registry for all available themes.
|
|
248
|
+
* Provides metadata, dynamic imports, and theme discovery.
|
|
249
|
+
*/
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Theme registry entry
|
|
253
|
+
*/
|
|
254
|
+
interface ThemeRegistryEntry {
|
|
255
|
+
/**
|
|
256
|
+
* Theme metadata
|
|
257
|
+
*/
|
|
258
|
+
metadata: ThemeMetadata;
|
|
259
|
+
/**
|
|
260
|
+
* Dynamic import function for theme
|
|
261
|
+
*/
|
|
262
|
+
loader: () => Promise<{
|
|
263
|
+
default: ThemeSchema;
|
|
264
|
+
}>;
|
|
265
|
+
/**
|
|
266
|
+
* Whether theme is enabled
|
|
267
|
+
*/
|
|
268
|
+
enabled?: boolean;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Theme registry
|
|
272
|
+
* Maps theme IDs to their registry entries
|
|
273
|
+
*/
|
|
274
|
+
declare const themeRegistry: Map<string, ThemeRegistryEntry>;
|
|
275
|
+
/**
|
|
276
|
+
* Register a theme in the registry
|
|
277
|
+
*
|
|
278
|
+
* @param entry - Theme registry entry
|
|
279
|
+
*/
|
|
280
|
+
declare function registerTheme(entry: ThemeRegistryEntry): void;
|
|
281
|
+
/**
|
|
282
|
+
* Get theme metadata by ID
|
|
283
|
+
*
|
|
284
|
+
* @param id - Theme ID
|
|
285
|
+
* @returns Theme metadata or undefined
|
|
286
|
+
*/
|
|
287
|
+
declare function getThemeMetadata(id: string): ThemeMetadata | undefined;
|
|
288
|
+
/**
|
|
289
|
+
* Get all registered themes
|
|
290
|
+
*
|
|
291
|
+
* @returns Array of theme metadata
|
|
292
|
+
*/
|
|
293
|
+
declare function getAllThemes(): ThemeMetadata[];
|
|
294
|
+
/**
|
|
295
|
+
* Get themes by category
|
|
296
|
+
*
|
|
297
|
+
* @param category - Theme category
|
|
298
|
+
* @returns Array of theme metadata
|
|
299
|
+
*/
|
|
300
|
+
declare function getThemesByCategory(category: "default" | "brand" | "seasonal" | "custom"): ThemeMetadata[];
|
|
301
|
+
/**
|
|
302
|
+
* Check if theme exists
|
|
303
|
+
*
|
|
304
|
+
* @param id - Theme ID
|
|
305
|
+
* @returns Whether theme exists
|
|
306
|
+
*/
|
|
307
|
+
declare function themeExists(id: string): boolean;
|
|
308
|
+
/**
|
|
309
|
+
* Load theme by ID
|
|
310
|
+
*
|
|
311
|
+
* @param id - Theme ID
|
|
312
|
+
* @returns Theme schema
|
|
313
|
+
*/
|
|
314
|
+
declare function loadTheme(id: string): Promise<ThemeSchema>;
|
|
315
|
+
/**
|
|
316
|
+
* Initialize default themes
|
|
317
|
+
* Registers built-in themes (default, dark, brand)
|
|
318
|
+
*/
|
|
319
|
+
declare function initializeDefaultThemes(): void;
|
|
320
|
+
|
|
321
|
+
type SpacingScale = {
|
|
322
|
+
none: string;
|
|
323
|
+
xs: string;
|
|
324
|
+
sm: string;
|
|
325
|
+
md: string;
|
|
326
|
+
lg: string;
|
|
327
|
+
xl: string;
|
|
328
|
+
"2xl": string;
|
|
329
|
+
"3xl": string;
|
|
330
|
+
"4xl": string;
|
|
331
|
+
"5xl": string;
|
|
332
|
+
};
|
|
333
|
+
declare const spacing: SpacingScale;
|
|
334
|
+
declare const borderRadius: {
|
|
335
|
+
none: string;
|
|
336
|
+
sm: string;
|
|
337
|
+
base: string;
|
|
338
|
+
md: string;
|
|
339
|
+
lg: string;
|
|
340
|
+
xl: string;
|
|
341
|
+
"2xl": string;
|
|
342
|
+
"3xl": string;
|
|
343
|
+
full: string;
|
|
344
|
+
};
|
|
345
|
+
declare const shadows: {
|
|
346
|
+
none: string;
|
|
347
|
+
sm: string;
|
|
348
|
+
base: string;
|
|
349
|
+
md: string;
|
|
350
|
+
lg: string;
|
|
351
|
+
xl: string;
|
|
352
|
+
"2xl": string;
|
|
353
|
+
inner: string;
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Theme Context
|
|
358
|
+
*/
|
|
359
|
+
interface ThemeContextValue {
|
|
360
|
+
mode: Mode;
|
|
361
|
+
theme: ThemeName;
|
|
362
|
+
brand: string | null;
|
|
363
|
+
reduceMotion: boolean;
|
|
364
|
+
enableAnimations: boolean;
|
|
365
|
+
setMode: (mode: Mode) => void;
|
|
366
|
+
setTheme: (theme: ThemeName) => void;
|
|
367
|
+
setBrand: (brandId: string | null) => Promise<void>;
|
|
368
|
+
toggleMode: () => void;
|
|
369
|
+
setReduceMotion: (reduce: boolean) => void;
|
|
370
|
+
setEnableAnimations: (enable: boolean) => void;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Theme Provider Props
|
|
374
|
+
*/
|
|
375
|
+
interface ThemeProviderProps {
|
|
376
|
+
children: React__default.ReactNode;
|
|
377
|
+
defaultMode?: Mode;
|
|
378
|
+
defaultTheme?: ThemeName;
|
|
379
|
+
defaultBrand?: string | null;
|
|
380
|
+
storageKey?: string;
|
|
381
|
+
themeStorageKey?: string;
|
|
382
|
+
brandStorageKey?: string;
|
|
383
|
+
attribute?: string;
|
|
384
|
+
enableSystem?: boolean;
|
|
385
|
+
/**
|
|
386
|
+
* Override reduced motion preference
|
|
387
|
+
*/
|
|
388
|
+
reduceMotion?: boolean;
|
|
389
|
+
/**
|
|
390
|
+
* Global animation toggle
|
|
391
|
+
*/
|
|
392
|
+
enableAnimations?: boolean;
|
|
393
|
+
}
|
|
394
|
+
declare function ThemeProvider({ children, defaultMode, defaultTheme, defaultBrand, storageKey, themeStorageKey, brandStorageKey, attribute, enableSystem, reduceMotion: reduceMotionOverride, enableAnimations: enableAnimationsOverride, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
395
|
+
/**
|
|
396
|
+
* useTheme Hook
|
|
397
|
+
*
|
|
398
|
+
* Provides access to theme context and theme control functions.
|
|
399
|
+
*
|
|
400
|
+
* @example
|
|
401
|
+
* ```tsx
|
|
402
|
+
* const { mode, theme, brand, setMode, setTheme, setBrand, toggleMode } = useTheme();
|
|
403
|
+
* ```
|
|
404
|
+
*/
|
|
405
|
+
declare function useTheme(): ThemeContextValue;
|
|
406
|
+
|
|
407
|
+
type FontScale = {
|
|
408
|
+
xs: string;
|
|
409
|
+
sm: string;
|
|
410
|
+
base: string;
|
|
411
|
+
lg: string;
|
|
412
|
+
xl: string;
|
|
413
|
+
"2xl": string;
|
|
414
|
+
"3xl": string;
|
|
415
|
+
"4xl": string;
|
|
416
|
+
"5xl": string;
|
|
417
|
+
"6xl": string;
|
|
418
|
+
};
|
|
419
|
+
declare const fontFamilies: {
|
|
420
|
+
sans: string;
|
|
421
|
+
serif: string;
|
|
422
|
+
mono: string;
|
|
423
|
+
};
|
|
424
|
+
declare const fontSizes: FontScale;
|
|
425
|
+
declare const fontWeights: {
|
|
426
|
+
thin: string;
|
|
427
|
+
extralight: string;
|
|
428
|
+
light: string;
|
|
429
|
+
normal: string;
|
|
430
|
+
medium: string;
|
|
431
|
+
semibold: string;
|
|
432
|
+
bold: string;
|
|
433
|
+
extrabold: string;
|
|
434
|
+
black: string;
|
|
435
|
+
};
|
|
436
|
+
declare const lineHeights: {
|
|
437
|
+
none: string;
|
|
438
|
+
tight: string;
|
|
439
|
+
snug: string;
|
|
440
|
+
normal: string;
|
|
441
|
+
relaxed: string;
|
|
442
|
+
loose: string;
|
|
443
|
+
};
|
|
444
|
+
declare const letterSpacings: {
|
|
445
|
+
tighter: string;
|
|
446
|
+
tight: string;
|
|
447
|
+
normal: string;
|
|
448
|
+
wide: string;
|
|
449
|
+
wider: string;
|
|
450
|
+
widest: string;
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
export { type FontScale, Mode, type SpacingScale, type ThemeLoaderOptions, type ThemeLoaderResult, type ThemeMetadata, ThemeProvider, type ThemeProviderProps, type ThemeRegistryEntry, type ThemeSchema, type ThemeValidationResult, borderRadius, canLoadTheme, createMinimalThemeSchema, fontFamilies, fontSizes, fontWeights, getAllThemes, getAvailableThemeIds, getInitialBrand, getInitialMode, getInitialTheme, getThemeMetadata, getThemesByCategory, initializeDefaultThemes, isThemeSchema, letterSpacings, lineHeights, loadTheme, loadThemeSafe, persistBrand, persistMode, persistTheme, preloadThemes, registerTheme, shadows, spacing, themeExists, themeRegistry, useTheme, validateThemeSchema };
|