@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
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export type FontScale = {
|
|
2
|
-
xs: string;
|
|
3
|
-
sm: string;
|
|
4
|
-
base: string;
|
|
5
|
-
lg: string;
|
|
6
|
-
xl: string;
|
|
7
|
-
"2xl": string;
|
|
8
|
-
"3xl": string;
|
|
9
|
-
"4xl": string;
|
|
10
|
-
"5xl": string;
|
|
11
|
-
"6xl": string;
|
|
12
|
-
};
|
|
13
|
-
export declare const fontFamilies: {
|
|
14
|
-
sans: string;
|
|
15
|
-
serif: string;
|
|
16
|
-
mono: string;
|
|
17
|
-
};
|
|
18
|
-
export declare const fontSizes: FontScale;
|
|
19
|
-
export declare const fontWeights: {
|
|
20
|
-
thin: string;
|
|
21
|
-
extralight: string;
|
|
22
|
-
light: string;
|
|
23
|
-
normal: string;
|
|
24
|
-
medium: string;
|
|
25
|
-
semibold: string;
|
|
26
|
-
bold: string;
|
|
27
|
-
extrabold: string;
|
|
28
|
-
black: string;
|
|
29
|
-
};
|
|
30
|
-
export declare const lineHeights: {
|
|
31
|
-
none: string;
|
|
32
|
-
tight: string;
|
|
33
|
-
snug: string;
|
|
34
|
-
normal: string;
|
|
35
|
-
relaxed: string;
|
|
36
|
-
loose: string;
|
|
37
|
-
};
|
|
38
|
-
export declare const letterSpacings: {
|
|
39
|
-
tighter: string;
|
|
40
|
-
tight: string;
|
|
41
|
-
normal: string;
|
|
42
|
-
wide: string;
|
|
43
|
-
wider: string;
|
|
44
|
-
widest: string;
|
|
45
|
-
};
|
package/dist/themes/brand.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { Mode } from '../tokens/colors';
|
|
2
|
-
import { BrandPackage, BrandTheme, BrandValidationResult } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Validate brand package structure
|
|
5
|
-
*
|
|
6
|
-
* @param brand - Brand package to validate
|
|
7
|
-
* @returns Validation result
|
|
8
|
-
*/
|
|
9
|
-
export declare function validateBrand(brand: unknown): BrandValidationResult;
|
|
10
|
-
/**
|
|
11
|
-
* Register a brand package
|
|
12
|
-
*
|
|
13
|
-
* @param brand - Brand package to register
|
|
14
|
-
* @param options - Registration options
|
|
15
|
-
*/
|
|
16
|
-
export declare function registerBrand(brand: BrandPackage, options?: {
|
|
17
|
-
enabled?: boolean;
|
|
18
|
-
loader?: () => Promise<{
|
|
19
|
-
default: BrandPackage;
|
|
20
|
-
}>;
|
|
21
|
-
}): void;
|
|
22
|
-
/**
|
|
23
|
-
* Get brand by ID
|
|
24
|
-
*
|
|
25
|
-
* @param brandId - Brand identifier
|
|
26
|
-
* @returns Brand package or undefined
|
|
27
|
-
*/
|
|
28
|
-
export declare function getBrand(brandId: string): BrandPackage | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* Check if brand exists and is enabled
|
|
31
|
-
*
|
|
32
|
-
* @param brandId - Brand identifier
|
|
33
|
-
* @returns Whether brand exists and is enabled
|
|
34
|
-
*/
|
|
35
|
-
export declare function brandExists(brandId: string): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Load brand package
|
|
38
|
-
* Supports lazy loading via loader function
|
|
39
|
-
*
|
|
40
|
-
* @param brandId - Brand identifier
|
|
41
|
-
* @returns Brand package
|
|
42
|
-
*/
|
|
43
|
-
export declare function loadBrand(brandId: string): Promise<BrandPackage>;
|
|
44
|
-
/**
|
|
45
|
-
* Get all registered brand IDs
|
|
46
|
-
*
|
|
47
|
-
* @returns Array of brand IDs
|
|
48
|
-
*/
|
|
49
|
-
export declare function getAllBrandIds(): string[];
|
|
50
|
-
/**
|
|
51
|
-
* Get all registered brands
|
|
52
|
-
*
|
|
53
|
-
* @returns Array of brand packages
|
|
54
|
-
*/
|
|
55
|
-
export declare function getAllBrands(): BrandPackage[];
|
|
56
|
-
/**
|
|
57
|
-
* Get active brand
|
|
58
|
-
*
|
|
59
|
-
* @returns Active brand package or null
|
|
60
|
-
*/
|
|
61
|
-
export declare function getActiveBrand(): BrandPackage | null;
|
|
62
|
-
/**
|
|
63
|
-
* Get active brand namespace
|
|
64
|
-
*
|
|
65
|
-
* @returns Active brand namespace or null
|
|
66
|
-
*/
|
|
67
|
-
export declare function getActiveBrandNamespace(): string | null;
|
|
68
|
-
/**
|
|
69
|
-
* Set active brand
|
|
70
|
-
* This function is called by the theme system when a brand is applied
|
|
71
|
-
*
|
|
72
|
-
* @param brand - Brand package to set as active
|
|
73
|
-
*/
|
|
74
|
-
export declare function setActiveBrand(brand: BrandPackage | null): void;
|
|
75
|
-
/**
|
|
76
|
-
* Clear active brand
|
|
77
|
-
*/
|
|
78
|
-
export declare function clearActiveBrand(): void;
|
|
79
|
-
/**
|
|
80
|
-
* Clear brand registry
|
|
81
|
-
* This function is primarily for testing purposes to reset the brand registry between tests
|
|
82
|
-
*
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
|
-
export declare function clearBrandRegistry(): void;
|
|
86
|
-
/**
|
|
87
|
-
* Get brand theme for a specific mode
|
|
88
|
-
*
|
|
89
|
-
* @param brand - Brand package
|
|
90
|
-
* @param mode - Theme mode (day or night)
|
|
91
|
-
* @returns Brand theme or undefined
|
|
92
|
-
*/
|
|
93
|
-
export declare function getBrandTheme(brand: BrandPackage, mode: Mode): BrandTheme | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* Apply brand overrides to document
|
|
96
|
-
* This function applies CSS variables with brand namespace isolation
|
|
97
|
-
*
|
|
98
|
-
* @param brand - Brand package to apply
|
|
99
|
-
* @param mode - Theme mode (day or night)
|
|
100
|
-
*/
|
|
101
|
-
export declare function applyBrandOverrides(brand: BrandPackage, mode: Mode): void;
|
|
102
|
-
/**
|
|
103
|
-
* Remove brand overrides from document
|
|
104
|
-
* Cleans up all brand-specific CSS variables
|
|
105
|
-
*
|
|
106
|
-
* @param namespace - Brand namespace to remove
|
|
107
|
-
*/
|
|
108
|
-
export declare function removeBrandOverrides(namespace: string): void;
|
package/dist/themes/dark.d.ts
DELETED
package/dist/themes/default.d.ts
DELETED
package/dist/themes/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Theme Overrides Export
|
|
3
|
-
*
|
|
4
|
-
* Exports all theme configurations and utilities.
|
|
5
|
-
*/
|
|
6
|
-
export { brandTheme } from './brand';
|
|
7
|
-
export { darkTheme } from './dark';
|
|
8
|
-
export { defaultTheme } from './default';
|
|
9
|
-
export * from './types';
|
|
10
|
-
export { minimalBrand } from './minimal';
|
|
11
|
-
export { neonBrand } from './neon';
|
|
12
|
-
export * from './brand_engine';
|
|
13
|
-
/**
|
|
14
|
-
* All available themes
|
|
15
|
-
*/
|
|
16
|
-
export declare const themes: {
|
|
17
|
-
readonly default: () => Promise<import('./types').ThemeOverride>;
|
|
18
|
-
readonly dark: () => Promise<import('./types').ThemeOverride>;
|
|
19
|
-
readonly brand: () => Promise<import('./types').ThemeOverride>;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Get theme by name
|
|
23
|
-
*/
|
|
24
|
-
export declare function getTheme(name: "default" | "dark" | "brand"): Promise<import('./types').ThemeOverride>;
|
package/dist/themes/minimal.d.ts
DELETED
package/dist/themes/neon.d.ts
DELETED
package/dist/themes/types.d.ts
DELETED
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
import { ColorScale, ColorTokens, SemanticColors, SurfaceColors, TextColors } from '../tokens/colors';
|
|
2
|
-
import { BorderRadius, componentRadius } from '../tokens/radius';
|
|
3
|
-
import { accentColoredShadows, elevationShadows, focusRings, glowEffects, primaryColoredShadows } from '../tokens/shadows';
|
|
4
|
-
import { SemanticSpacing } from '../tokens/spacing';
|
|
5
|
-
import { FontFamily, FontSize, FontWeight, LetterSpacing, LineHeight, TextStyle } from '../tokens/typography';
|
|
6
|
-
/**
|
|
7
|
-
* Typography override configuration
|
|
8
|
-
*/
|
|
9
|
-
export interface TypographyOverrides {
|
|
10
|
-
/**
|
|
11
|
-
* Override font families
|
|
12
|
-
*/
|
|
13
|
-
fontFamily?: Partial<Record<FontFamily, string[]>>;
|
|
14
|
-
/**
|
|
15
|
-
* Override font sizes
|
|
16
|
-
*/
|
|
17
|
-
fontSize?: Partial<Record<FontSize, string | [string, {
|
|
18
|
-
lineHeight: string;
|
|
19
|
-
letterSpacing: string;
|
|
20
|
-
}]>>;
|
|
21
|
-
/**
|
|
22
|
-
* Override font weights
|
|
23
|
-
*/
|
|
24
|
-
fontWeight?: Partial<Record<FontWeight, string>>;
|
|
25
|
-
/**
|
|
26
|
-
* Override line heights
|
|
27
|
-
*/
|
|
28
|
-
lineHeight?: Partial<Record<LineHeight, string>>;
|
|
29
|
-
/**
|
|
30
|
-
* Override letter spacing
|
|
31
|
-
*/
|
|
32
|
-
letterSpacing?: Partial<Record<LetterSpacing, string>>;
|
|
33
|
-
/**
|
|
34
|
-
* Override text styles
|
|
35
|
-
*/
|
|
36
|
-
textStyles?: Partial<Record<TextStyle, {
|
|
37
|
-
fontFamily?: string;
|
|
38
|
-
fontSize?: string;
|
|
39
|
-
fontWeight?: string;
|
|
40
|
-
lineHeight?: string;
|
|
41
|
-
letterSpacing?: string;
|
|
42
|
-
}>>;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Spacing override configuration
|
|
46
|
-
*/
|
|
47
|
-
export interface SpacingOverrides {
|
|
48
|
-
/**
|
|
49
|
-
* Override semantic spacing tokens
|
|
50
|
-
*/
|
|
51
|
-
semanticSpacing?: Partial<Record<SemanticSpacing, string>>;
|
|
52
|
-
/**
|
|
53
|
-
* Override layout spacing tokens
|
|
54
|
-
*/
|
|
55
|
-
layoutSpacing?: Partial<{
|
|
56
|
-
section?: Partial<Record<string, string>>;
|
|
57
|
-
container?: Partial<Record<string, string>>;
|
|
58
|
-
grid?: Partial<Record<string, string>>;
|
|
59
|
-
stack?: Partial<Record<string, string>>;
|
|
60
|
-
component?: Partial<Record<string, string>>;
|
|
61
|
-
}>;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Shadow override configuration
|
|
65
|
-
*/
|
|
66
|
-
export interface ShadowOverrides {
|
|
67
|
-
/**
|
|
68
|
-
* Override elevation shadows
|
|
69
|
-
*/
|
|
70
|
-
elevationShadows?: Partial<Record<keyof typeof elevationShadows, string>>;
|
|
71
|
-
/**
|
|
72
|
-
* Override primary colored shadows
|
|
73
|
-
*/
|
|
74
|
-
primaryColoredShadows?: Partial<Record<keyof typeof primaryColoredShadows, string>>;
|
|
75
|
-
/**
|
|
76
|
-
* Override accent colored shadows
|
|
77
|
-
*/
|
|
78
|
-
accentColoredShadows?: Partial<Record<keyof typeof accentColoredShadows, string>>;
|
|
79
|
-
/**
|
|
80
|
-
* Override glow effects
|
|
81
|
-
*/
|
|
82
|
-
glowEffects?: Partial<Record<keyof typeof glowEffects, string>>;
|
|
83
|
-
/**
|
|
84
|
-
* Override focus rings
|
|
85
|
-
*/
|
|
86
|
-
focusRings?: Partial<Record<keyof typeof focusRings, string>>;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Radius override configuration
|
|
90
|
-
*/
|
|
91
|
-
export interface RadiusOverrides {
|
|
92
|
-
/**
|
|
93
|
-
* Override border radius scale
|
|
94
|
-
*/
|
|
95
|
-
borderRadius?: Partial<Record<BorderRadius, string>>;
|
|
96
|
-
/**
|
|
97
|
-
* Override component-specific radius
|
|
98
|
-
*/
|
|
99
|
-
componentRadius?: Partial<{
|
|
100
|
-
button?: Partial<Record<keyof typeof componentRadius.button, string>>;
|
|
101
|
-
card?: Partial<Record<keyof typeof componentRadius.card, string>>;
|
|
102
|
-
input?: Partial<Record<keyof typeof componentRadius.input, string>>;
|
|
103
|
-
badge?: Partial<Record<keyof typeof componentRadius.badge, string>>;
|
|
104
|
-
avatar?: Partial<Record<keyof typeof componentRadius.avatar, string>>;
|
|
105
|
-
modal?: Partial<Record<keyof typeof componentRadius.modal, string>>;
|
|
106
|
-
tooltip?: Partial<Record<keyof typeof componentRadius.tooltip, string>>;
|
|
107
|
-
toast?: Partial<Record<keyof typeof componentRadius.toast, string>>;
|
|
108
|
-
chip?: Partial<Record<keyof typeof componentRadius.chip, string>>;
|
|
109
|
-
image?: Partial<Record<keyof typeof componentRadius.image, string>>;
|
|
110
|
-
}>;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Theme override configuration
|
|
114
|
-
* Allows partial overrides of token subsets
|
|
115
|
-
*/
|
|
116
|
-
export interface ThemeOverride {
|
|
117
|
-
/**
|
|
118
|
-
* Theme name
|
|
119
|
-
*/
|
|
120
|
-
name: string;
|
|
121
|
-
/**
|
|
122
|
-
* Theme description
|
|
123
|
-
*/
|
|
124
|
-
description?: string;
|
|
125
|
-
/**
|
|
126
|
-
* Override primary color scale
|
|
127
|
-
*/
|
|
128
|
-
primaryColors?: Partial<ColorScale>;
|
|
129
|
-
/**
|
|
130
|
-
* Override accent color scale
|
|
131
|
-
*/
|
|
132
|
-
accentColors?: Partial<ColorScale>;
|
|
133
|
-
/**
|
|
134
|
-
* Override secondary color scale
|
|
135
|
-
*/
|
|
136
|
-
secondaryColors?: Partial<ColorScale>;
|
|
137
|
-
/**
|
|
138
|
-
* Override base and related color tokens (for day mode)
|
|
139
|
-
* Uses ColorTokens to allow primary/accent overrides in addition to base colors.
|
|
140
|
-
*/
|
|
141
|
-
baseColorsDay?: Partial<ColorTokens>;
|
|
142
|
-
/**
|
|
143
|
-
* Override base and related color tokens (for night mode)
|
|
144
|
-
* Uses ColorTokens to allow primary/accent overrides in addition to base colors.
|
|
145
|
-
*/
|
|
146
|
-
baseColorsNight?: Partial<ColorTokens>;
|
|
147
|
-
/**
|
|
148
|
-
* Override surface colors (for day mode)
|
|
149
|
-
*/
|
|
150
|
-
surfaceColorsDay?: Partial<SurfaceColors>;
|
|
151
|
-
/**
|
|
152
|
-
* Override surface colors (for night mode)
|
|
153
|
-
*/
|
|
154
|
-
surfaceColorsNight?: Partial<SurfaceColors>;
|
|
155
|
-
/**
|
|
156
|
-
* Override semantic colors (for day mode)
|
|
157
|
-
*/
|
|
158
|
-
semanticColorsDay?: Partial<SemanticColors>;
|
|
159
|
-
/**
|
|
160
|
-
* Override semantic colors (for night mode)
|
|
161
|
-
*/
|
|
162
|
-
semanticColorsNight?: Partial<SemanticColors>;
|
|
163
|
-
/**
|
|
164
|
-
* Override text colors (for day mode)
|
|
165
|
-
*/
|
|
166
|
-
textColorsDay?: Partial<TextColors>;
|
|
167
|
-
/**
|
|
168
|
-
* Override text colors (for night mode)
|
|
169
|
-
*/
|
|
170
|
-
textColorsNight?: Partial<TextColors>;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Brand override configuration
|
|
174
|
-
* Extends ThemeOverride with additional token overrides
|
|
175
|
-
*/
|
|
176
|
-
export interface BrandOverride extends ThemeOverride {
|
|
177
|
-
/**
|
|
178
|
-
* Override typography tokens
|
|
179
|
-
*/
|
|
180
|
-
typography?: Partial<TypographyOverrides>;
|
|
181
|
-
/**
|
|
182
|
-
* Override spacing tokens
|
|
183
|
-
*/
|
|
184
|
-
spacing?: Partial<SpacingOverrides>;
|
|
185
|
-
/**
|
|
186
|
-
* Override shadow tokens
|
|
187
|
-
*/
|
|
188
|
-
shadows?: Partial<ShadowOverrides>;
|
|
189
|
-
/**
|
|
190
|
-
* Override radius tokens
|
|
191
|
-
*/
|
|
192
|
-
radius?: Partial<RadiusOverrides>;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Brand theme configuration
|
|
196
|
-
* Represents a single theme variant within a brand package
|
|
197
|
-
*/
|
|
198
|
-
export interface BrandTheme {
|
|
199
|
-
/**
|
|
200
|
-
* Theme identifier (e.g., "neon-day", "neon-night")
|
|
201
|
-
*/
|
|
202
|
-
id: string;
|
|
203
|
-
/**
|
|
204
|
-
* Theme name (e.g., "Neon Day", "Neon Night")
|
|
205
|
-
*/
|
|
206
|
-
name: string;
|
|
207
|
-
/**
|
|
208
|
-
* Theme description
|
|
209
|
-
*/
|
|
210
|
-
description?: string;
|
|
211
|
-
/**
|
|
212
|
-
* Theme mode (day or night)
|
|
213
|
-
*/
|
|
214
|
-
mode: "day" | "night";
|
|
215
|
-
/**
|
|
216
|
-
* Theme overrides
|
|
217
|
-
*/
|
|
218
|
-
overrides: BrandOverride;
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* Brand package configuration
|
|
222
|
-
* Represents a complete brand package with multiple theme variants
|
|
223
|
-
*/
|
|
224
|
-
export interface BrandPackage {
|
|
225
|
-
/**
|
|
226
|
-
* Brand identifier (e.g., "neon", "minimal")
|
|
227
|
-
*/
|
|
228
|
-
id: string;
|
|
229
|
-
/**
|
|
230
|
-
* Brand name (e.g., "Neon", "Minimal")
|
|
231
|
-
*/
|
|
232
|
-
name: string;
|
|
233
|
-
/**
|
|
234
|
-
* Brand description
|
|
235
|
-
*/
|
|
236
|
-
description?: string;
|
|
237
|
-
/**
|
|
238
|
-
* Brand namespace for CSS variable isolation (e.g., "neon", "minimal")
|
|
239
|
-
*/
|
|
240
|
-
namespace: string;
|
|
241
|
-
/**
|
|
242
|
-
* Brand version (semver)
|
|
243
|
-
*/
|
|
244
|
-
version?: string;
|
|
245
|
-
/**
|
|
246
|
-
* Brand author (optional)
|
|
247
|
-
*/
|
|
248
|
-
author?: string;
|
|
249
|
-
/**
|
|
250
|
-
* Preview image URL (optional)
|
|
251
|
-
*/
|
|
252
|
-
previewImage?: string;
|
|
253
|
-
/**
|
|
254
|
-
* Theme variants within this brand
|
|
255
|
-
*/
|
|
256
|
-
themes: BrandTheme[];
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* Brand validation result
|
|
260
|
-
*/
|
|
261
|
-
export interface BrandValidationResult {
|
|
262
|
-
/**
|
|
263
|
-
* Whether brand is valid
|
|
264
|
-
*/
|
|
265
|
-
valid: boolean;
|
|
266
|
-
/**
|
|
267
|
-
* Validation errors
|
|
268
|
-
*/
|
|
269
|
-
errors: string[];
|
|
270
|
-
/**
|
|
271
|
-
* Validation warnings
|
|
272
|
-
*/
|
|
273
|
-
warnings: string[];
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* Theme name type
|
|
277
|
-
*/
|
|
278
|
-
export type ThemeName = "default" | "dark" | "brand";
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Alert Component Tokens
|
|
3
|
-
*
|
|
4
|
-
* Component-level design tokens for Alert component.
|
|
5
|
-
* Maps foundation tokens (spacing, radius) to alert-specific usage.
|
|
6
|
-
*
|
|
7
|
-
* Includes variant-based token structure for future extensibility.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Alert Component Tokens
|
|
11
|
-
*
|
|
12
|
-
* Defines spacing, sizing, and visual tokens for Alert component.
|
|
13
|
-
* Values are mapped to Tailwind utility classes for direct use.
|
|
14
|
-
*/
|
|
15
|
-
export declare const ALERT_TOKENS: {
|
|
16
|
-
/**
|
|
17
|
-
* Padding for alert content
|
|
18
|
-
*/
|
|
19
|
-
readonly padding: "p-md";
|
|
20
|
-
/**
|
|
21
|
-
* Border radius for alerts
|
|
22
|
-
*/
|
|
23
|
-
readonly radius: "rounded-lg";
|
|
24
|
-
/**
|
|
25
|
-
* Icon size within alerts
|
|
26
|
-
*/
|
|
27
|
-
readonly iconSize: "size-4";
|
|
28
|
-
/**
|
|
29
|
-
* Variant-based token structure
|
|
30
|
-
* Organized by variant for future extensibility
|
|
31
|
-
*/
|
|
32
|
-
readonly variant: {
|
|
33
|
-
readonly default: {
|
|
34
|
-
readonly padding: "p-md";
|
|
35
|
-
readonly radius: "rounded-lg";
|
|
36
|
-
};
|
|
37
|
-
readonly primary: {
|
|
38
|
-
readonly padding: "p-md";
|
|
39
|
-
readonly radius: "rounded-lg";
|
|
40
|
-
};
|
|
41
|
-
readonly secondary: {
|
|
42
|
-
readonly padding: "p-md";
|
|
43
|
-
readonly radius: "rounded-lg";
|
|
44
|
-
};
|
|
45
|
-
readonly accent: {
|
|
46
|
-
readonly padding: "p-md";
|
|
47
|
-
readonly radius: "rounded-lg";
|
|
48
|
-
};
|
|
49
|
-
readonly destructive: {
|
|
50
|
-
readonly padding: "p-md";
|
|
51
|
-
readonly radius: "rounded-lg";
|
|
52
|
-
};
|
|
53
|
-
readonly success: {
|
|
54
|
-
readonly padding: "p-md";
|
|
55
|
-
readonly radius: "rounded-lg";
|
|
56
|
-
};
|
|
57
|
-
readonly warning: {
|
|
58
|
-
readonly padding: "p-md";
|
|
59
|
-
readonly radius: "rounded-lg";
|
|
60
|
-
};
|
|
61
|
-
readonly danger: {
|
|
62
|
-
readonly padding: "p-md";
|
|
63
|
-
readonly radius: "rounded-lg";
|
|
64
|
-
};
|
|
65
|
-
readonly info: {
|
|
66
|
-
readonly padding: "p-md";
|
|
67
|
-
readonly radius: "rounded-lg";
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Type exports for Alert tokens
|
|
73
|
-
*/
|
|
74
|
-
export type AlertVariant = keyof typeof ALERT_TOKENS.variant;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Button Component Tokens
|
|
3
|
-
*
|
|
4
|
-
* Component-level design tokens for Button component.
|
|
5
|
-
* Maps foundation tokens (spacing, typography, radius, shadows) to button-specific usage.
|
|
6
|
-
*
|
|
7
|
-
* All values reference foundation tokens to ensure consistency across the design system.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Button Component Tokens
|
|
11
|
-
*
|
|
12
|
-
* Defines all spacing, sizing, typography, and visual tokens for Button component.
|
|
13
|
-
* Values are mapped to Tailwind utility classes for direct use in component variants.
|
|
14
|
-
*/
|
|
15
|
-
export declare const BUTTON_TOKENS: {
|
|
16
|
-
/**
|
|
17
|
-
* Button heights by size
|
|
18
|
-
* Maps to Tailwind height utilities: h-8, h-9, h-10
|
|
19
|
-
*/
|
|
20
|
-
readonly height: {
|
|
21
|
-
readonly sm: "h-8";
|
|
22
|
-
readonly md: "h-9";
|
|
23
|
-
readonly lg: "h-10";
|
|
24
|
-
readonly icon: "h-9";
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Button padding by size
|
|
28
|
-
* Horizontal and vertical padding values
|
|
29
|
-
*/
|
|
30
|
-
readonly padding: {
|
|
31
|
-
readonly horizontal: {
|
|
32
|
-
readonly sm: "px-sm";
|
|
33
|
-
readonly md: "px-md";
|
|
34
|
-
readonly lg: "px-lg";
|
|
35
|
-
};
|
|
36
|
-
readonly vertical: {
|
|
37
|
-
readonly sm: "py-xs";
|
|
38
|
-
readonly md: "py-sm";
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Gap between icon and text
|
|
43
|
-
*/
|
|
44
|
-
readonly gap: "gap-sm";
|
|
45
|
-
/**
|
|
46
|
-
* Border radius for all button sizes
|
|
47
|
-
*/
|
|
48
|
-
readonly radius: "rounded-md";
|
|
49
|
-
/**
|
|
50
|
-
* Icon size within buttons
|
|
51
|
-
*/
|
|
52
|
-
readonly iconSize: "size-4";
|
|
53
|
-
/**
|
|
54
|
-
* Width tokens
|
|
55
|
-
*/
|
|
56
|
-
readonly width: {
|
|
57
|
-
readonly icon: "w-9";
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Font sizes by button size
|
|
61
|
-
* Maps to foundation typography fontSize tokens
|
|
62
|
-
*/
|
|
63
|
-
readonly fontSize: {
|
|
64
|
-
readonly sm: "text-xs";
|
|
65
|
-
readonly md: "text-sm";
|
|
66
|
-
readonly lg: "text-sm";
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Shadow tokens by variant
|
|
70
|
-
* Maps to foundation elevation shadow tokens
|
|
71
|
-
*/
|
|
72
|
-
readonly shadow: {
|
|
73
|
-
readonly default: "shadow-sm";
|
|
74
|
-
readonly primary: "shadow";
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* Color tokens for button variants
|
|
78
|
-
* Uses semantic color tokens that map to CSS variables
|
|
79
|
-
*/
|
|
80
|
-
readonly variant: {
|
|
81
|
-
readonly primary: {
|
|
82
|
-
readonly background: "bg-primary";
|
|
83
|
-
readonly text: "text-primary-foreground";
|
|
84
|
-
readonly hover: "hover:bg-primary/90";
|
|
85
|
-
};
|
|
86
|
-
readonly secondary: {
|
|
87
|
-
readonly background: "bg-secondary";
|
|
88
|
-
readonly text: "text-secondary-foreground";
|
|
89
|
-
readonly hover: "hover:bg-secondary/80";
|
|
90
|
-
};
|
|
91
|
-
readonly accent: {
|
|
92
|
-
readonly background: "bg-accent";
|
|
93
|
-
readonly text: "text-accent-foreground";
|
|
94
|
-
readonly hover: "hover:bg-accent/90";
|
|
95
|
-
};
|
|
96
|
-
readonly outline: {
|
|
97
|
-
readonly border: "border border-input";
|
|
98
|
-
readonly background: "bg-background";
|
|
99
|
-
readonly hover: {
|
|
100
|
-
readonly background: "hover:bg-accent";
|
|
101
|
-
readonly text: "hover:text-accent-foreground";
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
readonly ghost: {
|
|
105
|
-
readonly hover: {
|
|
106
|
-
readonly background: "hover:bg-accent";
|
|
107
|
-
readonly text: "hover:text-accent-foreground";
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
readonly destructive: {
|
|
111
|
-
readonly background: "bg-destructive";
|
|
112
|
-
readonly text: "text-destructive-foreground";
|
|
113
|
-
readonly hover: "hover:bg-destructive/90";
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* Transition tokens
|
|
118
|
-
*/
|
|
119
|
-
readonly transition: {
|
|
120
|
-
readonly colors: "transition-colors";
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* Type exports for Button tokens
|
|
125
|
-
*/
|
|
126
|
-
export type ButtonHeight = keyof typeof BUTTON_TOKENS.height;
|
|
127
|
-
export type ButtonPaddingHorizontal = keyof typeof BUTTON_TOKENS.padding.horizontal;
|
|
128
|
-
export type ButtonPaddingVertical = keyof typeof BUTTON_TOKENS.padding.vertical;
|
|
129
|
-
export type ButtonFontSize = keyof typeof BUTTON_TOKENS.fontSize;
|
|
130
|
-
export type ButtonShadow = keyof typeof BUTTON_TOKENS.shadow;
|