@tenerife.music/ui 1.0.8 → 1.0.12
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/{tokens/colors.d.ts → colors-DPNI96bB.d.cts} +21 -19
- package/dist/colors-DPNI96bB.d.ts +289 -0
- package/dist/index.cjs +15605 -2
- package/dist/index.d.cts +3726 -0
- package/dist/index.d.ts +3726 -39
- package/dist/index.mjs +12883 -5567
- 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 +2647 -2
- package/dist/theme/index.d.cts +528 -0
- package/dist/theme/index.d.ts +528 -8
- package/dist/theme/index.mjs +1610 -575
- package/dist/tokens/index.cjs +5678 -5
- package/dist/tokens/index.d.cts +5488 -0
- package/dist/tokens/index.d.ts +5488 -9
- package/dist/tokens/index.mjs +2076 -154
- package/package.json +3 -3
- 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
package/dist/index.d.ts
CHANGED
|
@@ -1,39 +1,3726 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
export { B as BaseColorTokens, c as ChartColors, C as ColorScale, a as ColorTokens, M as Mode, b as SemanticColors, S as SurfaceColors, T as TextColors, e as accentColors, j as baseColors, h as chartColors, k as colorCSSVariables, d as cssVariableColorTokens, p as primaryColors, s as secondaryColors, g as semanticColors, f as surfaceColors, t as tailwindThemeColors, i as textColors } from './colors-DPNI96bB.js';
|
|
2
|
+
import { spacing, semanticSpacing, borderRadius } from './tokens/index.js';
|
|
3
|
+
export { ALERT_TOKENS, AlertVariant, Animation, BUTTON_TOKENS, BorderRadius, ButtonFontSize, ButtonHeight, ButtonPaddingHorizontal, ButtonPaddingVertical, ButtonShadow, CARD_TOKENS, CHECKBOX_TOKENS, CanonicalFontSize, CanonicalFontWeight, CanonicalLetterSpacing, CanonicalLineHeight, CanonicalTextColor, CardPadding, CardRadius, CardShadow, CardSize, CardSpacingVertical, CheckboxSize, CheckboxState, CheckboxVariant, ColoredShadow, ComponentRadius, ComponentSpacing, ContainerSpacing, DATA_TOKENS, DOMAIN_TOKENS, DROPDOWN_TOKENS, DataListLabelWidth, DataListRowPadding, DomainCardBadge, DomainCardImage, DomainCardLayout, DomainCardMetadata, DomainCardMotion, DomainCardPriceCapacity, DomainCardSkeleton, DomainCardSkeletonContentWidth, DomainCardSurface, DropdownItemSize, DropdownMenuSize, DropdownTriggerSize, DropdownVariant, Duration, Easing, ElevationShadow, EmptyStateIconSize, FocusRing, FontFamily, FontSize, FontWeight, GlowEffect, GridSpacing, ICON_TOKENS, INPUT_TOKENS, IconColor, IconSize, IconStroke, InputFontSize, InputHeight, InputPaddingHorizontal, InputPaddingVertical, InputRadius, InputSize, Keyframe, LetterSpacing, LineHeight, MENU_TOKENS, MOTION_TOKENS, MenuContentMinWidth, MenuContentPadding, MenuContentRadius, MenuContentShadow, MenuIndicatorOffset, MenuIndicatorSize, MenuItemGap, MenuItemHeight, MenuItemPadding, MenuItemRadius, MenuLabelPadding, MenuSeparatorMargin, MotionAnimation, MotionDuration, MotionEasing, MotionTransition, MotionTransitionPreset, MotionV2CombinedType, MotionV2Duration, MotionV2Easing, MotionV2SlideDirection, MotionV2Transition, NAVIGATION_TOKENS, NOTIFICATION_TOKENS, NavigationItemPadding, NavigationListGap, NavigationRadius, NavigationShadow, NavigationSize, NavigationState, NotificationPanelWidth, OVERLAY_TOKENS, OverlayBackdropVariant, OverlayModalSize, POPOVER_TOKENS, PopoverArrowOffset, PopoverArrowSize, PopoverContentPadding, PopoverContentRadius, PopoverContentShadow, PopoverContentWidth, RADIO_TOKENS, RadioSize, RadioState, RadioVariant, SECTION_TOKENS, SURFACE_TOKENS, SWITCH_TOKENS, SectionGap, SectionPadding, SectionSpacing, SemanticSpacing, SkeletonAnimation, SkeletonBackground, SkeletonVariant, Spacing, Spring, StackSpacing, SurfacePadding, SurfaceRadius, SurfaceShadow, SurfaceVariant, SwitchSize, SwitchState, SwitchVariant, TEXT_TOKENS, TOAST_TOKENS, TOOLTIP_TOKENS, TableCellPadding, TableGap, TableHeaderPadding, TableRowHeight, TableShadow, TextFontSize, TextFontWeight, TextLetterSpacing, TextLineHeight, TextStyle, ToastVariant, TooltipContentRadius, TooltipContentShadow, Transition, UI_COLORS, accentColoredShadows, allCSSVariables, allCSSVariablesCSS, animations, componentRadius, componentShadowMapping, durations, easings, elevationShadows, focusRings, fontFamily, fontSize, fontSizeWithMd, fontWeight, generateCSSVariablesCSS, glowEffects, keyframes, layoutSpacing, letterSpacing, lineHeight, motionCSSVariables, motionV2CSSVariables, motionV2Combined, motionV2Durations, motionV2Easings, motionV2Fade, motionV2Scale, motionV2Slide, motionV2TailwindConfig, motionV2Transitions, primaryColoredShadows, radiusCSSVariables, reducedMotion, shadowBase, shadowCSSVariables, shadowOpacity, spacingCSSVariables, springs, tailwindMotionConfig, tailwindRadiusConfig, tailwindShadowConfig, tailwindSpacingConfig, tailwindTypographyConfig, textStyles, tokenSystemSummary, transitions, typographyCSSVariables } from './tokens/index.js';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import * as React$1 from 'react';
|
|
7
|
+
import { ReactNode } from 'react';
|
|
8
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
10
|
+
import { Placement } from '@floating-ui/react-dom';
|
|
11
|
+
|
|
12
|
+
declare const buttonVariants: (props?: ({
|
|
13
|
+
variant?: "primary" | "secondary" | "accent" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
14
|
+
size?: "sm" | "md" | "lg" | "icon" | null | undefined;
|
|
15
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
16
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
17
|
+
asChild?: boolean;
|
|
18
|
+
leftIcon?: React$1.ReactNode;
|
|
19
|
+
rightIcon?: React$1.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
|
|
23
|
+
declare const textVariants: (props?: ({
|
|
24
|
+
size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
25
|
+
weight?: "normal" | "medium" | "semibold" | "bold" | null | undefined;
|
|
26
|
+
muted?: boolean | null | undefined;
|
|
27
|
+
variant?: "primary" | "secondary" | "muted" | "accent" | "destructive" | "outline" | "ghost" | "link" | null | undefined;
|
|
28
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
29
|
+
interface TextProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof textVariants> {
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Use muted prop or semantic text colors instead
|
|
32
|
+
*/
|
|
33
|
+
variant?: "primary" | "secondary" | "accent" | "outline" | "ghost" | "link" | "destructive" | "muted";
|
|
34
|
+
}
|
|
35
|
+
declare const Text: React$1.ForwardRefExoticComponent<TextProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
36
|
+
type TextSize = VariantProps<typeof textVariants>["size"];
|
|
37
|
+
type TextWeight = VariantProps<typeof textVariants>["weight"];
|
|
38
|
+
|
|
39
|
+
declare const alertVariants: (props?: ({
|
|
40
|
+
variant?: "primary" | "secondary" | "accent" | "destructive" | "default" | "success" | "warning" | "danger" | "info" | null | undefined;
|
|
41
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
42
|
+
interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
|
|
43
|
+
}
|
|
44
|
+
declare const Alert: React$1.ForwardRefExoticComponent<AlertProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
|
|
46
|
+
declare const bodyVariants: (props?: ({
|
|
47
|
+
size?: "md" | "lg" | null | undefined;
|
|
48
|
+
weight?: "normal" | "medium" | "semibold" | "bold" | null | undefined;
|
|
49
|
+
muted?: boolean | null | undefined;
|
|
50
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
51
|
+
interface BodyProps extends React$1.HTMLAttributes<HTMLParagraphElement>, VariantProps<typeof bodyVariants> {
|
|
52
|
+
as?: "p" | "span" | "div";
|
|
53
|
+
}
|
|
54
|
+
declare const Body: React$1.ForwardRefExoticComponent<BodyProps & React$1.RefAttributes<HTMLElement>>;
|
|
55
|
+
|
|
56
|
+
declare const captionVariants: (props?: ({
|
|
57
|
+
weight?: "normal" | "medium" | null | undefined;
|
|
58
|
+
muted?: boolean | null | undefined;
|
|
59
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
60
|
+
interface CaptionProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof captionVariants> {
|
|
61
|
+
as?: "span" | "p" | "div";
|
|
62
|
+
}
|
|
63
|
+
declare const Caption: React$1.ForwardRefExoticComponent<CaptionProps & React$1.RefAttributes<HTMLElement>>;
|
|
64
|
+
|
|
65
|
+
declare const codeVariants: (props?: ({
|
|
66
|
+
variant?: "inline" | "block" | null | undefined;
|
|
67
|
+
muted?: boolean | null | undefined;
|
|
68
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
69
|
+
interface CodeProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof codeVariants> {
|
|
70
|
+
as?: "code" | "pre";
|
|
71
|
+
}
|
|
72
|
+
declare const Code: React$1.ForwardRefExoticComponent<CodeProps & React$1.RefAttributes<HTMLElement>>;
|
|
73
|
+
|
|
74
|
+
declare const displayVariants: (props?: ({
|
|
75
|
+
size?: "2xl" | "3xl" | "4xl" | "xl" | null | undefined;
|
|
76
|
+
weight?: "normal" | "medium" | "semibold" | "bold" | null | undefined;
|
|
77
|
+
muted?: boolean | null | undefined;
|
|
78
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
79
|
+
interface DisplayProps extends React$1.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof displayVariants> {
|
|
80
|
+
as?: "h1" | "h2" | "div";
|
|
81
|
+
}
|
|
82
|
+
declare const Display: React$1.ForwardRefExoticComponent<DisplayProps & React$1.RefAttributes<HTMLElement>>;
|
|
83
|
+
|
|
84
|
+
declare const headingVariants: (props?: ({
|
|
85
|
+
level?: 1 | 2 | 4 | 6 | 3 | 5 | null | undefined;
|
|
86
|
+
weight?: "normal" | "medium" | "semibold" | "bold" | null | undefined;
|
|
87
|
+
muted?: boolean | null | undefined;
|
|
88
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
89
|
+
interface HeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof headingVariants> {
|
|
90
|
+
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
91
|
+
}
|
|
92
|
+
declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
93
|
+
|
|
94
|
+
declare const leadVariants: (props?: ({
|
|
95
|
+
size?: "lg" | "xl" | null | undefined;
|
|
96
|
+
muted?: boolean | null | undefined;
|
|
97
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
98
|
+
interface LeadProps extends React$1.HTMLAttributes<HTMLParagraphElement>, VariantProps<typeof leadVariants> {
|
|
99
|
+
as?: "p" | "span" | "div";
|
|
100
|
+
}
|
|
101
|
+
declare const Lead: React$1.ForwardRefExoticComponent<LeadProps & React$1.RefAttributes<HTMLElement>>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Checkbox Variants
|
|
105
|
+
*
|
|
106
|
+
* CVA-based variant system for Checkbox component.
|
|
107
|
+
* Supports variants (primary, secondary, outline, ghost, destructive),
|
|
108
|
+
* sizes (xs, sm, md, lg, xl), and states (default, checked, disabled, error, indeterminate).
|
|
109
|
+
* All styling uses token-based values with CSS variable references.
|
|
110
|
+
*/
|
|
111
|
+
declare const checkboxVariants: (props?: ({
|
|
112
|
+
variant?: "primary" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
113
|
+
size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
114
|
+
state?: "disabled" | "default" | "error" | "checked" | "indeterminate" | null | undefined;
|
|
115
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Checkbox Component Props
|
|
119
|
+
*
|
|
120
|
+
* Extends native button HTML attributes with variant props, checked state, and accessibility props.
|
|
121
|
+
* Uses button role="checkbox" pattern for full keyboard accessibility.
|
|
122
|
+
*/
|
|
123
|
+
interface CheckboxProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "size" | "onChange">, VariantProps<typeof checkboxVariants> {
|
|
124
|
+
/**
|
|
125
|
+
* Checkbox variant style
|
|
126
|
+
* @default "outline"
|
|
127
|
+
*/
|
|
128
|
+
variant?: "primary" | "secondary" | "outline" | "ghost" | "destructive";
|
|
129
|
+
/**
|
|
130
|
+
* Checkbox size
|
|
131
|
+
* @default "md"
|
|
132
|
+
*/
|
|
133
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
134
|
+
/**
|
|
135
|
+
* Checkbox state
|
|
136
|
+
* @default "default"
|
|
137
|
+
*/
|
|
138
|
+
state?: "default" | "checked" | "indeterminate" | "error" | "disabled";
|
|
139
|
+
/**
|
|
140
|
+
* Whether checkbox is checked (controlled)
|
|
141
|
+
*/
|
|
142
|
+
checked?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Whether checkbox is in indeterminate state
|
|
145
|
+
* When true, overrides checked state visually
|
|
146
|
+
*/
|
|
147
|
+
indeterminate?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Whether checkbox is disabled
|
|
150
|
+
*/
|
|
151
|
+
disabled?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Callback fired when checked state changes
|
|
154
|
+
*/
|
|
155
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
156
|
+
/**
|
|
157
|
+
* Custom icon to display when checked
|
|
158
|
+
* Defaults to IconCheck from icon system
|
|
159
|
+
*/
|
|
160
|
+
icon?: React$1.ReactNode;
|
|
161
|
+
/**
|
|
162
|
+
* Custom icon to display when indeterminate
|
|
163
|
+
* Defaults to horizontal line indicator
|
|
164
|
+
*/
|
|
165
|
+
indeterminateIcon?: React$1.ReactNode;
|
|
166
|
+
/**
|
|
167
|
+
* ARIA label for the checkbox
|
|
168
|
+
* Required if no visible label is present
|
|
169
|
+
*/
|
|
170
|
+
"aria-label"?: string;
|
|
171
|
+
/**
|
|
172
|
+
* ARIA labelledby reference
|
|
173
|
+
* Points to the ID of the element that labels this checkbox
|
|
174
|
+
*/
|
|
175
|
+
"aria-labelledby"?: string;
|
|
176
|
+
/**
|
|
177
|
+
* ARIA describedby reference
|
|
178
|
+
* Points to the ID of the element that describes this checkbox
|
|
179
|
+
*/
|
|
180
|
+
"aria-describedby"?: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Checkbox Component
|
|
185
|
+
*
|
|
186
|
+
* A fully accessible, theme-aware checkbox component with variant support,
|
|
187
|
+
* keyboard navigation, and comprehensive state management.
|
|
188
|
+
* Uses button role="checkbox" pattern for full accessibility.
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* ```tsx
|
|
192
|
+
* <Checkbox
|
|
193
|
+
* variant="outline"
|
|
194
|
+
* size="md"
|
|
195
|
+
* checked={isChecked}
|
|
196
|
+
* onCheckedChange={setIsChecked}
|
|
197
|
+
* aria-label="Accept terms"
|
|
198
|
+
* />
|
|
199
|
+
* ```
|
|
200
|
+
*/
|
|
201
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Input Variants
|
|
205
|
+
*
|
|
206
|
+
* CVA-based variant system for Input component.
|
|
207
|
+
* Supports variants (primary, secondary, outline, ghost, destructive),
|
|
208
|
+
* sizes (xs, sm, md, lg, xl), and states (default, disabled, error, success).
|
|
209
|
+
* All styling uses token-based values with CSS variable references.
|
|
210
|
+
*/
|
|
211
|
+
declare const inputVariants: (props?: ({
|
|
212
|
+
variant?: "primary" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
213
|
+
size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
214
|
+
state?: "disabled" | "default" | "success" | "error" | null | undefined;
|
|
215
|
+
fullWidth?: boolean | null | undefined;
|
|
216
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Input Component Props
|
|
220
|
+
*
|
|
221
|
+
* Extends native input HTML attributes with variant props, icon slots, and accessibility props.
|
|
222
|
+
*/
|
|
223
|
+
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof inputVariants> {
|
|
224
|
+
/**
|
|
225
|
+
* Input variant style
|
|
226
|
+
* @default "outline"
|
|
227
|
+
*/
|
|
228
|
+
variant?: "primary" | "secondary" | "outline" | "ghost" | "destructive";
|
|
229
|
+
/**
|
|
230
|
+
* Input size
|
|
231
|
+
* @default "md"
|
|
232
|
+
*/
|
|
233
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
234
|
+
/**
|
|
235
|
+
* Input state
|
|
236
|
+
* @default "default"
|
|
237
|
+
*/
|
|
238
|
+
state?: "default" | "disabled" | "error" | "success";
|
|
239
|
+
/**
|
|
240
|
+
* Whether input should take full width
|
|
241
|
+
* @default true
|
|
242
|
+
*/
|
|
243
|
+
fullWidth?: boolean;
|
|
244
|
+
/**
|
|
245
|
+
* Icon to display on the left side of the input
|
|
246
|
+
*/
|
|
247
|
+
iconLeft?: React$1.ReactNode;
|
|
248
|
+
/**
|
|
249
|
+
* Icon to display on the right side of the input
|
|
250
|
+
*/
|
|
251
|
+
iconRight?: React$1.ReactNode;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Input Component
|
|
256
|
+
*
|
|
257
|
+
* A fully accessible, theme-aware input component with variant support,
|
|
258
|
+
* icon slots, and comprehensive state management.
|
|
259
|
+
*
|
|
260
|
+
* @example
|
|
261
|
+
* ```tsx
|
|
262
|
+
* <Input
|
|
263
|
+
* variant="outline"
|
|
264
|
+
* size="md"
|
|
265
|
+
* placeholder="Enter text..."
|
|
266
|
+
* iconLeft={<Icon name="search" />}
|
|
267
|
+
* />
|
|
268
|
+
* ```
|
|
269
|
+
*/
|
|
270
|
+
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Radio Variants
|
|
274
|
+
*
|
|
275
|
+
* CVA-based variant system for Radio component.
|
|
276
|
+
* Supports variants (primary, secondary, outline, ghost, destructive),
|
|
277
|
+
* sizes (xs, sm, md, lg, xl), and states (default, checked, disabled, error).
|
|
278
|
+
* All styling uses token-based values with CSS variable references.
|
|
279
|
+
*/
|
|
280
|
+
declare const radioVariants: (props?: ({
|
|
281
|
+
variant?: "primary" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
282
|
+
size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
283
|
+
state?: "disabled" | "default" | "error" | "checked" | null | undefined;
|
|
284
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Radio Component Props
|
|
288
|
+
*
|
|
289
|
+
* Extends native button HTML attributes with variant props, checked state, and accessibility props.
|
|
290
|
+
* Uses button role="radio" pattern for full keyboard accessibility.
|
|
291
|
+
*/
|
|
292
|
+
interface RadioProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "size" | "onChange">, VariantProps<typeof radioVariants> {
|
|
293
|
+
/**
|
|
294
|
+
* Radio variant style
|
|
295
|
+
* @default "outline"
|
|
296
|
+
*/
|
|
297
|
+
variant?: "primary" | "secondary" | "outline" | "ghost" | "destructive";
|
|
298
|
+
/**
|
|
299
|
+
* Radio size
|
|
300
|
+
* @default "md"
|
|
301
|
+
*/
|
|
302
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
303
|
+
/**
|
|
304
|
+
* Radio state
|
|
305
|
+
* @default "default"
|
|
306
|
+
*/
|
|
307
|
+
state?: "default" | "checked" | "disabled" | "error";
|
|
308
|
+
/**
|
|
309
|
+
* Whether radio is checked (controlled)
|
|
310
|
+
*/
|
|
311
|
+
checked?: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* Whether radio is disabled
|
|
314
|
+
*/
|
|
315
|
+
disabled?: boolean;
|
|
316
|
+
/**
|
|
317
|
+
* Value of this radio button
|
|
318
|
+
* Required when used within RadioGroup
|
|
319
|
+
*/
|
|
320
|
+
value?: string;
|
|
321
|
+
/**
|
|
322
|
+
* Callback fired when radio is selected
|
|
323
|
+
*/
|
|
324
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
325
|
+
/**
|
|
326
|
+
* Custom icon to display when checked
|
|
327
|
+
* Defaults to filled circle dot
|
|
328
|
+
*/
|
|
329
|
+
icon?: React$1.ReactNode;
|
|
330
|
+
/**
|
|
331
|
+
* ARIA label for the radio
|
|
332
|
+
* Required if no visible label is present
|
|
333
|
+
*/
|
|
334
|
+
"aria-label"?: string;
|
|
335
|
+
/**
|
|
336
|
+
* ARIA labelledby reference
|
|
337
|
+
* Points to the ID of the element that labels this radio
|
|
338
|
+
*/
|
|
339
|
+
"aria-labelledby"?: string;
|
|
340
|
+
/**
|
|
341
|
+
* ARIA describedby reference
|
|
342
|
+
* Points to the ID of the element that describes this radio
|
|
343
|
+
*/
|
|
344
|
+
"aria-describedby"?: string;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Radio Component
|
|
349
|
+
*
|
|
350
|
+
* A fully accessible, theme-aware radio button component with variant support,
|
|
351
|
+
* keyboard navigation, and comprehensive state management.
|
|
352
|
+
* Uses button role="radio" pattern for full accessibility.
|
|
353
|
+
* Can be used standalone or within RadioGroup for group behavior.
|
|
354
|
+
*
|
|
355
|
+
* @example
|
|
356
|
+
* ```tsx
|
|
357
|
+
* <RadioGroup value={value} onValueChange={setValue}>
|
|
358
|
+
* <Radio value="option1" aria-label="Option 1" />
|
|
359
|
+
* <Radio value="option2" aria-label="Option 2" />
|
|
360
|
+
* </RadioGroup>
|
|
361
|
+
* ```
|
|
362
|
+
*/
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Radio component
|
|
366
|
+
*/
|
|
367
|
+
declare const Radio: React$1.ForwardRefExoticComponent<RadioProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* RadioGroup Component Props
|
|
371
|
+
*
|
|
372
|
+
* Container component for Radio buttons with keyboard navigation and state management.
|
|
373
|
+
*/
|
|
374
|
+
interface RadioGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
375
|
+
/**
|
|
376
|
+
* Controlled value
|
|
377
|
+
*/
|
|
378
|
+
value?: string;
|
|
379
|
+
/**
|
|
380
|
+
* Default value for uncontrolled usage
|
|
381
|
+
*/
|
|
382
|
+
defaultValue?: string;
|
|
383
|
+
/**
|
|
384
|
+
* Callback when value changes
|
|
385
|
+
*/
|
|
386
|
+
onValueChange?: (value: string) => void;
|
|
387
|
+
/**
|
|
388
|
+
* Name attribute for the radio group
|
|
389
|
+
*/
|
|
390
|
+
name?: string;
|
|
391
|
+
/**
|
|
392
|
+
* Orientation of the radio group
|
|
393
|
+
* @default "vertical"
|
|
394
|
+
*/
|
|
395
|
+
orientation?: "horizontal" | "vertical";
|
|
396
|
+
/**
|
|
397
|
+
* Size for all radios in the group
|
|
398
|
+
* Can be overridden by individual Radio components
|
|
399
|
+
*/
|
|
400
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* RadioGroup Component
|
|
405
|
+
*
|
|
406
|
+
* Container component for Radio buttons with keyboard navigation and state management.
|
|
407
|
+
* Supports horizontal and vertical orientations, controlled/uncontrolled modes,
|
|
408
|
+
* and full keyboard accessibility with ArrowUp/ArrowDown navigation.
|
|
409
|
+
*/
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* RadioGroup - Container component that manages state and keyboard navigation
|
|
413
|
+
*/
|
|
414
|
+
declare const RadioGroup: React$1.ForwardRefExoticComponent<RadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Select Variants
|
|
418
|
+
*
|
|
419
|
+
* CVA-based variant system for Select component.
|
|
420
|
+
* Supports variants (primary, secondary, outline, ghost),
|
|
421
|
+
* sizes (xs, sm, md, lg), and states (open, closed, disabled).
|
|
422
|
+
* All styling uses token-based values with CSS variable references.
|
|
423
|
+
*/
|
|
424
|
+
/**
|
|
425
|
+
* Select Trigger Variants
|
|
426
|
+
* Button element that opens/closes the dropdown
|
|
427
|
+
*/
|
|
428
|
+
declare const selectTriggerVariants: (props?: ({
|
|
429
|
+
variant?: "primary" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
430
|
+
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
431
|
+
state?: "disabled" | "closed" | "open" | null | undefined;
|
|
432
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
433
|
+
/**
|
|
434
|
+
* Select Listbox Variants
|
|
435
|
+
* Container for the dropdown options
|
|
436
|
+
*/
|
|
437
|
+
declare const selectListboxVariants: (props?: ({
|
|
438
|
+
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
439
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
440
|
+
/**
|
|
441
|
+
* Select Option Variants
|
|
442
|
+
* Individual option item in the listbox
|
|
443
|
+
*/
|
|
444
|
+
declare const selectOptionVariants: (props?: ({
|
|
445
|
+
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
446
|
+
state?: "disabled" | "default" | "selected" | null | undefined;
|
|
447
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Select Variant Props
|
|
451
|
+
*/
|
|
452
|
+
type SelectVariant = VariantProps<typeof selectTriggerVariants>["variant"];
|
|
453
|
+
type SelectSize = VariantProps<typeof selectTriggerVariants>["size"];
|
|
454
|
+
/**
|
|
455
|
+
* Select Root Props
|
|
456
|
+
*/
|
|
457
|
+
interface SelectRootProps {
|
|
458
|
+
/**
|
|
459
|
+
* Current value (controlled mode)
|
|
460
|
+
*/
|
|
461
|
+
value?: string;
|
|
462
|
+
/**
|
|
463
|
+
* Default value (uncontrolled mode)
|
|
464
|
+
*/
|
|
465
|
+
defaultValue?: string;
|
|
466
|
+
/**
|
|
467
|
+
* Callback when value changes
|
|
468
|
+
*/
|
|
469
|
+
onValueChange?: (value: string) => void;
|
|
470
|
+
/**
|
|
471
|
+
* Whether the select is disabled
|
|
472
|
+
*/
|
|
473
|
+
disabled?: boolean;
|
|
474
|
+
/**
|
|
475
|
+
* Whether the select is open (controlled mode)
|
|
476
|
+
*/
|
|
477
|
+
open?: boolean;
|
|
478
|
+
/**
|
|
479
|
+
* Callback when open state changes
|
|
480
|
+
*/
|
|
481
|
+
onOpenChange?: (open: boolean) => void;
|
|
482
|
+
/**
|
|
483
|
+
* Default open state (uncontrolled mode)
|
|
484
|
+
*/
|
|
485
|
+
defaultOpen?: boolean;
|
|
486
|
+
/**
|
|
487
|
+
* Variant style (applies to trigger)
|
|
488
|
+
*/
|
|
489
|
+
variant?: SelectVariant;
|
|
490
|
+
/**
|
|
491
|
+
* Size (applies to trigger, listbox, and options)
|
|
492
|
+
*/
|
|
493
|
+
size?: SelectSize;
|
|
494
|
+
/**
|
|
495
|
+
* Children
|
|
496
|
+
*/
|
|
497
|
+
children: React.ReactNode;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* Select Trigger Props
|
|
501
|
+
*/
|
|
502
|
+
interface SelectTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
503
|
+
/**
|
|
504
|
+
* Variant style
|
|
505
|
+
*/
|
|
506
|
+
variant?: SelectVariant;
|
|
507
|
+
/**
|
|
508
|
+
* Size
|
|
509
|
+
*/
|
|
510
|
+
size?: SelectSize;
|
|
511
|
+
/**
|
|
512
|
+
* Placeholder text when no value is selected
|
|
513
|
+
*/
|
|
514
|
+
placeholder?: string;
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Select Listbox Props
|
|
518
|
+
*/
|
|
519
|
+
interface SelectListboxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
520
|
+
/**
|
|
521
|
+
* Size (should match trigger size)
|
|
522
|
+
*/
|
|
523
|
+
size?: SelectSize;
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Select Option Props
|
|
527
|
+
*/
|
|
528
|
+
interface SelectOptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
529
|
+
/**
|
|
530
|
+
* Option value
|
|
531
|
+
*/
|
|
532
|
+
value: string;
|
|
533
|
+
/**
|
|
534
|
+
* Option label
|
|
535
|
+
*/
|
|
536
|
+
label?: string;
|
|
537
|
+
/**
|
|
538
|
+
* Whether the option is disabled
|
|
539
|
+
*/
|
|
540
|
+
disabled?: boolean;
|
|
541
|
+
/**
|
|
542
|
+
* Size (should match trigger size)
|
|
543
|
+
*/
|
|
544
|
+
size?: SelectSize;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Select Root Component
|
|
549
|
+
* Manages state and provides context for all Select sub-components
|
|
550
|
+
*/
|
|
551
|
+
declare function SelectRoot({ value: controlledValue, defaultValue, onValueChange, disabled, open: controlledOpen, onOpenChange, defaultOpen, children, variant, size, }: SelectRootProps & {
|
|
552
|
+
variant?: SelectRootProps["variant"];
|
|
553
|
+
size?: SelectRootProps["size"];
|
|
554
|
+
}): react_jsx_runtime.JSX.Element;
|
|
555
|
+
declare namespace SelectRoot {
|
|
556
|
+
var displayName: string;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* Select Trigger Component
|
|
560
|
+
* Button that opens/closes the dropdown and displays the selected value
|
|
561
|
+
*/
|
|
562
|
+
declare const SelectTrigger: React$1.ForwardRefExoticComponent<SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
563
|
+
/**
|
|
564
|
+
* Select Listbox Component
|
|
565
|
+
* Container for options with keyboard navigation
|
|
566
|
+
*/
|
|
567
|
+
declare const SelectListbox: React$1.ForwardRefExoticComponent<SelectListboxProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
568
|
+
/**
|
|
569
|
+
* Select Option Component
|
|
570
|
+
* Individual option in the listbox
|
|
571
|
+
*/
|
|
572
|
+
declare const SelectOption: React$1.ForwardRefExoticComponent<SelectOptionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
573
|
+
/**
|
|
574
|
+
* Select Component (Compound)
|
|
575
|
+
* Main export that combines all sub-components
|
|
576
|
+
*/
|
|
577
|
+
declare const Select: {
|
|
578
|
+
Root: typeof SelectRoot;
|
|
579
|
+
Trigger: React$1.ForwardRefExoticComponent<SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
580
|
+
Listbox: React$1.ForwardRefExoticComponent<SelectListboxProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
581
|
+
Option: React$1.ForwardRefExoticComponent<SelectOptionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Textarea Variants
|
|
586
|
+
*
|
|
587
|
+
* CVA-based variant system for Textarea component.
|
|
588
|
+
* Supports variants (primary, secondary, outline, ghost, destructive),
|
|
589
|
+
* sizes (xs, sm, md, lg, xl), and states (default, disabled, error, success).
|
|
590
|
+
* All styling uses token-based values with CSS variable references.
|
|
591
|
+
*/
|
|
592
|
+
declare const textareaVariants: (props?: ({
|
|
593
|
+
variant?: "primary" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
594
|
+
size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
595
|
+
state?: "disabled" | "default" | "success" | "error" | null | undefined;
|
|
596
|
+
fullWidth?: boolean | null | undefined;
|
|
597
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Textarea Component Props
|
|
601
|
+
*
|
|
602
|
+
* Extends native textarea HTML attributes with variant props, character counter, and accessibility props.
|
|
603
|
+
*/
|
|
604
|
+
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textareaVariants> {
|
|
605
|
+
/**
|
|
606
|
+
* Textarea variant style
|
|
607
|
+
* @default "outline"
|
|
608
|
+
*/
|
|
609
|
+
variant?: "primary" | "secondary" | "outline" | "ghost" | "destructive";
|
|
610
|
+
/**
|
|
611
|
+
* Textarea size
|
|
612
|
+
* @default "md"
|
|
613
|
+
*/
|
|
614
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
615
|
+
/**
|
|
616
|
+
* Textarea state
|
|
617
|
+
* @default "default"
|
|
618
|
+
*/
|
|
619
|
+
state?: "default" | "disabled" | "error" | "success";
|
|
620
|
+
/**
|
|
621
|
+
* Whether textarea should take full width
|
|
622
|
+
* @default true
|
|
623
|
+
*/
|
|
624
|
+
fullWidth?: boolean;
|
|
625
|
+
/**
|
|
626
|
+
* Maximum character length (for character counter)
|
|
627
|
+
*/
|
|
628
|
+
maxLength?: number;
|
|
629
|
+
/**
|
|
630
|
+
* Show character counter
|
|
631
|
+
* Only displays when both showCharacterCount and maxLength are provided
|
|
632
|
+
* @default false
|
|
633
|
+
*/
|
|
634
|
+
showCharacterCount?: boolean;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Textarea Component
|
|
639
|
+
*
|
|
640
|
+
* A fully accessible, theme-aware textarea component with variant support,
|
|
641
|
+
* character counter, and comprehensive state management.
|
|
642
|
+
*
|
|
643
|
+
* @example
|
|
644
|
+
* ```tsx
|
|
645
|
+
* <Textarea
|
|
646
|
+
* variant="outline"
|
|
647
|
+
* size="md"
|
|
648
|
+
* placeholder="Enter text..."
|
|
649
|
+
* showCharacterCount
|
|
650
|
+
* maxLength={200}
|
|
651
|
+
* />
|
|
652
|
+
* ```
|
|
653
|
+
*/
|
|
654
|
+
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
655
|
+
|
|
656
|
+
declare const labelVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
657
|
+
interface LabelProps extends React$1.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
|
|
658
|
+
/**
|
|
659
|
+
* Whether the field is required (shows asterisk)
|
|
660
|
+
*/
|
|
661
|
+
required?: boolean;
|
|
662
|
+
}
|
|
663
|
+
declare const Label: React$1.ForwardRefExoticComponent<LabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* Field Container Component
|
|
667
|
+
* Provides spacing between field elements using Stack
|
|
668
|
+
*/
|
|
669
|
+
interface FieldProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
670
|
+
}
|
|
671
|
+
declare const Field: React$1.ForwardRefExoticComponent<FieldProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
672
|
+
/**
|
|
673
|
+
* Field Label Component
|
|
674
|
+
* Wraps Label component with proper styling
|
|
675
|
+
*/
|
|
676
|
+
interface FieldLabelProps extends React$1.ComponentProps<typeof Label> {
|
|
677
|
+
}
|
|
678
|
+
declare const FieldLabel: React$1.ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
679
|
+
/**
|
|
680
|
+
* Field Control Component
|
|
681
|
+
* Wrapper for input/textarea/select controls
|
|
682
|
+
*/
|
|
683
|
+
interface FieldControlProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
684
|
+
}
|
|
685
|
+
declare const FieldControl: React$1.ForwardRefExoticComponent<FieldControlProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
686
|
+
/**
|
|
687
|
+
* Field Description Component
|
|
688
|
+
* Helper text displayed below the control
|
|
689
|
+
*/
|
|
690
|
+
interface FieldDescriptionProps extends React$1.ComponentProps<typeof Text> {
|
|
691
|
+
}
|
|
692
|
+
declare const FieldDescription: React$1.ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
693
|
+
/**
|
|
694
|
+
* Field Error Component
|
|
695
|
+
* Error message displayed below the control
|
|
696
|
+
*/
|
|
697
|
+
interface FieldErrorProps extends React$1.ComponentProps<typeof Text> {
|
|
698
|
+
}
|
|
699
|
+
declare const FieldError: React$1.ForwardRefExoticComponent<Omit<FieldErrorProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
700
|
+
declare const FieldRoot: typeof Field & {
|
|
701
|
+
Label: typeof FieldLabel;
|
|
702
|
+
Control: typeof FieldControl;
|
|
703
|
+
Description: typeof FieldDescription;
|
|
704
|
+
Error: typeof FieldError;
|
|
705
|
+
};
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Responsive value type - can be a single value or an object with breakpoint keys
|
|
709
|
+
*/
|
|
710
|
+
type ResponsiveValue<T> = T | {
|
|
711
|
+
base?: T;
|
|
712
|
+
sm?: T;
|
|
713
|
+
md?: T;
|
|
714
|
+
lg?: T;
|
|
715
|
+
xl?: T;
|
|
716
|
+
"2xl"?: T;
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Spacing token values
|
|
721
|
+
* Supports numeric keys (0-96) and semantic keys (xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl)
|
|
722
|
+
*/
|
|
723
|
+
type SpacingValue = number | keyof typeof spacing | keyof typeof semanticSpacing;
|
|
724
|
+
/**
|
|
725
|
+
* Border radius token values
|
|
726
|
+
*/
|
|
727
|
+
type RadiusValue = keyof typeof borderRadius;
|
|
728
|
+
/**
|
|
729
|
+
* Color token values
|
|
730
|
+
* Supports CSS variable names (e.g., "background", "primary", "card")
|
|
731
|
+
*/
|
|
732
|
+
type ColorValue = "background" | "foreground" | "card" | "card-foreground" | "popover" | "popover-foreground" | "primary" | "primary-foreground" | "secondary" | "secondary-foreground" | "muted" | "muted-foreground" | "accent" | "accent-foreground" | "destructive" | "destructive-foreground" | "border" | "input" | "ring" | string;
|
|
733
|
+
/**
|
|
734
|
+
* Alignment values for flexbox/grid
|
|
735
|
+
*/
|
|
736
|
+
type AlignmentValue = "start" | "end" | "center" | "baseline" | "stretch";
|
|
737
|
+
/**
|
|
738
|
+
* Justify content values for flexbox/grid
|
|
739
|
+
*/
|
|
740
|
+
type JustifyValue = "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
741
|
+
/**
|
|
742
|
+
* Flex direction values
|
|
743
|
+
*/
|
|
744
|
+
type FlexDirectionValue = "row" | "column" | "row-reverse" | "column-reverse";
|
|
745
|
+
/**
|
|
746
|
+
* Flex wrap values
|
|
747
|
+
*/
|
|
748
|
+
type FlexWrapValue = "nowrap" | "wrap" | "wrap-reverse";
|
|
749
|
+
/**
|
|
750
|
+
* Grid column values
|
|
751
|
+
*/
|
|
752
|
+
type ColumnValue = 1 | 2 | 3 | 4 | 5 | 6 | 12 | "none";
|
|
753
|
+
/**
|
|
754
|
+
* Grid row values
|
|
755
|
+
*/
|
|
756
|
+
type RowValue = 1 | 2 | 3 | 4 | 5 | 6 | "none";
|
|
757
|
+
/**
|
|
758
|
+
* Grid flow values
|
|
759
|
+
*/
|
|
760
|
+
type FlowValue = "row" | "col" | "dense" | "row-dense" | "col-dense";
|
|
761
|
+
/**
|
|
762
|
+
* Shadow token values (elevation shadows)
|
|
763
|
+
*/
|
|
764
|
+
type ShadowValue = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
765
|
+
/**
|
|
766
|
+
* Display type values
|
|
767
|
+
*/
|
|
768
|
+
type DisplayValue = "block" | "inline" | "inline-block" | "flex" | "grid" | "inline-flex" | "inline-grid" | "none";
|
|
769
|
+
/**
|
|
770
|
+
* Responsive spacing prop type
|
|
771
|
+
*/
|
|
772
|
+
type ResponsiveSpacing = ResponsiveValue<SpacingValue>;
|
|
773
|
+
/**
|
|
774
|
+
* Responsive radius prop type
|
|
775
|
+
*/
|
|
776
|
+
type ResponsiveRadius = ResponsiveValue<RadiusValue>;
|
|
777
|
+
/**
|
|
778
|
+
* Responsive color prop type
|
|
779
|
+
*/
|
|
780
|
+
type ResponsiveColor = ResponsiveValue<ColorValue>;
|
|
781
|
+
/**
|
|
782
|
+
* Responsive alignment prop type
|
|
783
|
+
*/
|
|
784
|
+
type ResponsiveAlignment = ResponsiveValue<AlignmentValue>;
|
|
785
|
+
/**
|
|
786
|
+
* Responsive justify prop type
|
|
787
|
+
*/
|
|
788
|
+
type ResponsiveJustify = ResponsiveValue<JustifyValue>;
|
|
789
|
+
/**
|
|
790
|
+
* Responsive direction prop type
|
|
791
|
+
*/
|
|
792
|
+
type ResponsiveFlexDirection = ResponsiveValue<FlexDirectionValue>;
|
|
793
|
+
/**
|
|
794
|
+
* Responsive wrap prop type
|
|
795
|
+
*/
|
|
796
|
+
type ResponsiveFlexWrap = ResponsiveValue<FlexWrapValue>;
|
|
797
|
+
/**
|
|
798
|
+
* Responsive column prop type
|
|
799
|
+
*/
|
|
800
|
+
type ResponsiveColumns = ResponsiveValue<ColumnValue>;
|
|
801
|
+
/**
|
|
802
|
+
* Responsive row prop type
|
|
803
|
+
*/
|
|
804
|
+
type ResponsiveRows = ResponsiveValue<RowValue>;
|
|
805
|
+
/**
|
|
806
|
+
* Responsive flow prop type
|
|
807
|
+
*/
|
|
808
|
+
type ResponsiveFlow = ResponsiveValue<FlowValue>;
|
|
809
|
+
/**
|
|
810
|
+
* Surface variant values
|
|
811
|
+
*/
|
|
812
|
+
type SurfaceVariant = "flat" | "raised" | "sunken";
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Box Primitive Component
|
|
816
|
+
*
|
|
817
|
+
* Token-driven base container component with support for padding, margin,
|
|
818
|
+
* display, flex, grid, radius, and shadow. All styling uses token-based
|
|
819
|
+
* Tailwind classes only (no raw numeric values).
|
|
820
|
+
*/
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Box component props
|
|
824
|
+
*/
|
|
825
|
+
interface BoxProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
826
|
+
/**
|
|
827
|
+
* Render as different HTML element
|
|
828
|
+
*/
|
|
829
|
+
as?: keyof React$1.JSX.IntrinsicElements;
|
|
830
|
+
/**
|
|
831
|
+
* Padding (all sides) - token-based (xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl)
|
|
832
|
+
*/
|
|
833
|
+
p?: ResponsiveSpacing;
|
|
834
|
+
/**
|
|
835
|
+
* Padding horizontal (left + right)
|
|
836
|
+
*/
|
|
837
|
+
px?: ResponsiveSpacing;
|
|
838
|
+
/**
|
|
839
|
+
* Padding vertical (top + bottom)
|
|
840
|
+
*/
|
|
841
|
+
py?: ResponsiveSpacing;
|
|
842
|
+
/**
|
|
843
|
+
* Padding top
|
|
844
|
+
*/
|
|
845
|
+
pt?: ResponsiveSpacing;
|
|
846
|
+
/**
|
|
847
|
+
* Padding right
|
|
848
|
+
*/
|
|
849
|
+
pr?: ResponsiveSpacing;
|
|
850
|
+
/**
|
|
851
|
+
* Padding bottom
|
|
852
|
+
*/
|
|
853
|
+
pb?: ResponsiveSpacing;
|
|
854
|
+
/**
|
|
855
|
+
* Padding left
|
|
856
|
+
*/
|
|
857
|
+
pl?: ResponsiveSpacing;
|
|
858
|
+
/**
|
|
859
|
+
* Margin (all sides) - token-based
|
|
860
|
+
*/
|
|
861
|
+
m?: ResponsiveSpacing;
|
|
862
|
+
/**
|
|
863
|
+
* Margin horizontal (left + right)
|
|
864
|
+
*/
|
|
865
|
+
mx?: ResponsiveSpacing;
|
|
866
|
+
/**
|
|
867
|
+
* Margin vertical (top + bottom)
|
|
868
|
+
*/
|
|
869
|
+
my?: ResponsiveSpacing;
|
|
870
|
+
/**
|
|
871
|
+
* Margin top
|
|
872
|
+
*/
|
|
873
|
+
mt?: ResponsiveSpacing;
|
|
874
|
+
/**
|
|
875
|
+
* Margin right
|
|
876
|
+
*/
|
|
877
|
+
mr?: ResponsiveSpacing;
|
|
878
|
+
/**
|
|
879
|
+
* Margin bottom
|
|
880
|
+
*/
|
|
881
|
+
mb?: ResponsiveSpacing;
|
|
882
|
+
/**
|
|
883
|
+
* Margin left
|
|
884
|
+
*/
|
|
885
|
+
ml?: ResponsiveSpacing;
|
|
886
|
+
/**
|
|
887
|
+
* Display type
|
|
888
|
+
*/
|
|
889
|
+
display?: DisplayValue;
|
|
890
|
+
/**
|
|
891
|
+
* Flex direction (when display is flex)
|
|
892
|
+
*/
|
|
893
|
+
flexDirection?: FlexDirectionValue;
|
|
894
|
+
/**
|
|
895
|
+
* Border radius - token-based (none, xs, sm, md, lg, xl, 2xl, 3xl, full)
|
|
896
|
+
*/
|
|
897
|
+
radius?: ResponsiveRadius;
|
|
898
|
+
/**
|
|
899
|
+
* Shadow - token-based (none, xs, sm, md, lg, xl, 2xl)
|
|
900
|
+
*/
|
|
901
|
+
shadow?: ShadowValue;
|
|
902
|
+
/**
|
|
903
|
+
* Background color - token-based
|
|
904
|
+
*/
|
|
905
|
+
bg?: ResponsiveColor;
|
|
906
|
+
/**
|
|
907
|
+
* Gap (for flex/grid layouts) - token-based
|
|
908
|
+
*/
|
|
909
|
+
gap?: ResponsiveSpacing;
|
|
910
|
+
/**
|
|
911
|
+
* Align items (for flex/grid layouts)
|
|
912
|
+
*/
|
|
913
|
+
align?: "start" | "end" | "center" | "baseline" | "stretch";
|
|
914
|
+
/**
|
|
915
|
+
* Justify content (for flex/grid layouts)
|
|
916
|
+
*/
|
|
917
|
+
justify?: "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* Box component
|
|
921
|
+
*/
|
|
922
|
+
declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Stack Primitive Component
|
|
926
|
+
*
|
|
927
|
+
* Token-driven vertical layout component (flex column). Uses Box internally
|
|
928
|
+
* with flex display and column direction. All spacing uses token-based values.
|
|
929
|
+
*/
|
|
930
|
+
|
|
931
|
+
interface StackProps extends Omit<BoxProps, "display" | "flexDirection" | "gap"> {
|
|
932
|
+
/**
|
|
933
|
+
* Stack direction - vertical (column) or horizontal (row)
|
|
934
|
+
*/
|
|
935
|
+
direction?: "vertical" | "horizontal";
|
|
936
|
+
/**
|
|
937
|
+
* Spacing between stack items - token-based (xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl)
|
|
938
|
+
* Alias for gap prop
|
|
939
|
+
*/
|
|
940
|
+
spacing?: ResponsiveSpacing;
|
|
941
|
+
/**
|
|
942
|
+
* Gap between stack items - token-based (xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl)
|
|
943
|
+
* Alias for spacing prop
|
|
944
|
+
*/
|
|
945
|
+
gap?: ResponsiveSpacing;
|
|
946
|
+
/**
|
|
947
|
+
* Align items
|
|
948
|
+
*/
|
|
949
|
+
align?: "start" | "end" | "center" | "baseline" | "stretch";
|
|
950
|
+
/**
|
|
951
|
+
* Justify content
|
|
952
|
+
*/
|
|
953
|
+
justify?: "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* Stack component - vertical layout using flex column by default
|
|
957
|
+
*/
|
|
958
|
+
declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Column component - alias for Stack (semantic name)
|
|
962
|
+
*/
|
|
963
|
+
declare const Column: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Container Layout Primitive Component
|
|
967
|
+
*
|
|
968
|
+
* Token-driven container component for constraining content width and centering.
|
|
969
|
+
* Uses CSS-layer class .tm-container with token-based padding and max-width.
|
|
970
|
+
*/
|
|
971
|
+
|
|
972
|
+
interface ContainerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
973
|
+
/**
|
|
974
|
+
* Maximum width of the container
|
|
975
|
+
* Supports: spacing tokens, container sizes (sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl, 7xl, full), or CSS values
|
|
976
|
+
*/
|
|
977
|
+
maxWidth?: string | ResponsiveSpacing;
|
|
978
|
+
/**
|
|
979
|
+
* Padding (horizontal) - token-based
|
|
980
|
+
* Supports: spacing tokens or container spacing tokens (container-xs, container-sm, container-md, etc.)
|
|
981
|
+
* Default: container-md (24px)
|
|
982
|
+
*/
|
|
983
|
+
padding?: ResponsiveSpacing;
|
|
984
|
+
/**
|
|
985
|
+
* Center the container horizontally with auto margins
|
|
986
|
+
* Default: true
|
|
987
|
+
*/
|
|
988
|
+
center?: boolean;
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* Container component - layout primitive for constraining content width
|
|
992
|
+
*/
|
|
993
|
+
declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
* Flex Primitive Component
|
|
997
|
+
*
|
|
998
|
+
* Token-driven flexbox container with full control over direction, wrap,
|
|
999
|
+
* grow, shrink, basis, alignment, and spacing. Uses Box internally.
|
|
1000
|
+
* All spacing values use tokens only.
|
|
1001
|
+
*/
|
|
1002
|
+
|
|
1003
|
+
interface FlexProps extends Omit<BoxProps, "display" | "flexDirection" | "align" | "justify"> {
|
|
1004
|
+
/**
|
|
1005
|
+
* Flex direction
|
|
1006
|
+
*/
|
|
1007
|
+
direction?: ResponsiveFlexDirection;
|
|
1008
|
+
/**
|
|
1009
|
+
* Flex wrap
|
|
1010
|
+
*/
|
|
1011
|
+
wrap?: ResponsiveFlexWrap;
|
|
1012
|
+
/**
|
|
1013
|
+
* Flex grow (0 or 1, or use Tailwind flex-grow-*)
|
|
1014
|
+
*/
|
|
1015
|
+
grow?: 0 | 1 | boolean;
|
|
1016
|
+
/**
|
|
1017
|
+
* Flex shrink (0 or 1, or use Tailwind flex-shrink-*)
|
|
1018
|
+
*/
|
|
1019
|
+
shrink?: 0 | 1 | boolean;
|
|
1020
|
+
/**
|
|
1021
|
+
* Flex basis (CSS value or Tailwind class)
|
|
1022
|
+
* Note: For token-based approach, use spacing tokens via className
|
|
1023
|
+
*/
|
|
1024
|
+
basis?: string;
|
|
1025
|
+
/**
|
|
1026
|
+
* Align items
|
|
1027
|
+
*/
|
|
1028
|
+
align?: ResponsiveAlignment;
|
|
1029
|
+
/**
|
|
1030
|
+
* Justify content
|
|
1031
|
+
*/
|
|
1032
|
+
justify?: ResponsiveJustify;
|
|
1033
|
+
/**
|
|
1034
|
+
* Gap between flex items - token-based
|
|
1035
|
+
*/
|
|
1036
|
+
gap?: ResponsiveSpacing;
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* Flex component
|
|
1040
|
+
*/
|
|
1041
|
+
declare const Flex: React$1.ForwardRefExoticComponent<FlexProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* Grid Primitive Component
|
|
1045
|
+
*
|
|
1046
|
+
* Token-driven CSS Grid container with support for columns, rows, gap,
|
|
1047
|
+
* flow, and alignment. Uses Box internally. All spacing values use tokens only.
|
|
1048
|
+
*/
|
|
1049
|
+
|
|
1050
|
+
interface GridProps extends Omit<BoxProps, "display" | "align" | "justify"> {
|
|
1051
|
+
/**
|
|
1052
|
+
* Number of columns (1-6, 12, or none)
|
|
1053
|
+
*/
|
|
1054
|
+
cols?: ResponsiveColumns;
|
|
1055
|
+
/**
|
|
1056
|
+
* Number of columns at sm breakpoint
|
|
1057
|
+
*/
|
|
1058
|
+
sm?: 1 | 2 | 3 | 4 | 5 | 6 | 12 | "none";
|
|
1059
|
+
/**
|
|
1060
|
+
* Number of columns at md breakpoint
|
|
1061
|
+
*/
|
|
1062
|
+
md?: 1 | 2 | 3 | 4 | 5 | 6 | 12 | "none";
|
|
1063
|
+
/**
|
|
1064
|
+
* Number of columns at lg breakpoint
|
|
1065
|
+
*/
|
|
1066
|
+
lg?: 1 | 2 | 3 | 4 | 5 | 6 | 12 | "none";
|
|
1067
|
+
/**
|
|
1068
|
+
* Number of columns at xl breakpoint
|
|
1069
|
+
*/
|
|
1070
|
+
xl?: 1 | 2 | 3 | 4 | 5 | 6 | 12 | "none";
|
|
1071
|
+
/**
|
|
1072
|
+
* Number of columns at 2xl breakpoint
|
|
1073
|
+
*/
|
|
1074
|
+
"2xl"?: 1 | 2 | 3 | 4 | 5 | 6 | 12 | "none";
|
|
1075
|
+
/**
|
|
1076
|
+
* Number of rows (1-6 or none)
|
|
1077
|
+
*/
|
|
1078
|
+
rows?: ResponsiveRows;
|
|
1079
|
+
/**
|
|
1080
|
+
* Gap between grid items - token-based (xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl)
|
|
1081
|
+
*/
|
|
1082
|
+
gap?: ResponsiveSpacing;
|
|
1083
|
+
/**
|
|
1084
|
+
* Grid flow direction
|
|
1085
|
+
*/
|
|
1086
|
+
flow?: ResponsiveFlow;
|
|
1087
|
+
/**
|
|
1088
|
+
* Align items
|
|
1089
|
+
*/
|
|
1090
|
+
align?: ResponsiveAlignment;
|
|
1091
|
+
/**
|
|
1092
|
+
* Justify content
|
|
1093
|
+
*/
|
|
1094
|
+
justify?: ResponsiveJustify;
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* Grid component
|
|
1098
|
+
*/
|
|
1099
|
+
declare const Grid: React$1.ForwardRefExoticComponent<GridProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* Row Primitive Component
|
|
1103
|
+
*
|
|
1104
|
+
* Token-driven horizontal layout component (flex row). Uses Box internally
|
|
1105
|
+
* with flex display and row direction. All spacing uses token-based values.
|
|
1106
|
+
*/
|
|
1107
|
+
|
|
1108
|
+
interface RowProps extends Omit<BoxProps, "display" | "flexDirection"> {
|
|
1109
|
+
/**
|
|
1110
|
+
* Gap between row items - token-based (xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl)
|
|
1111
|
+
*/
|
|
1112
|
+
gap?: ResponsiveSpacing;
|
|
1113
|
+
/**
|
|
1114
|
+
* Align items
|
|
1115
|
+
*/
|
|
1116
|
+
align?: "start" | "end" | "center" | "baseline" | "stretch";
|
|
1117
|
+
/**
|
|
1118
|
+
* Justify content
|
|
1119
|
+
*/
|
|
1120
|
+
justify?: "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
1121
|
+
}
|
|
1122
|
+
/**
|
|
1123
|
+
* Row component - horizontal layout using flex row
|
|
1124
|
+
*/
|
|
1125
|
+
declare const Row: React$1.ForwardRefExoticComponent<RowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1126
|
+
|
|
1127
|
+
declare const surfaceVariants$1: (props?: ({
|
|
1128
|
+
variant?: "flat" | "raised" | "sunken" | null | undefined;
|
|
1129
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1130
|
+
interface SurfaceProps$1 extends Omit<BoxProps, "bg" | "shadow"> {
|
|
1131
|
+
/**
|
|
1132
|
+
* Surface variant
|
|
1133
|
+
*/
|
|
1134
|
+
variant?: SurfaceVariant;
|
|
1135
|
+
/**
|
|
1136
|
+
* Border radius - token-based
|
|
1137
|
+
*/
|
|
1138
|
+
radius?: BoxProps["radius"];
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
* Surface component - elevation variant component
|
|
1142
|
+
*/
|
|
1143
|
+
declare const Surface$1: React$1.ForwardRefExoticComponent<SurfaceProps$1 & React$1.RefAttributes<HTMLDivElement>>;
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* Card Container Component
|
|
1147
|
+
*
|
|
1148
|
+
* Token-driven card component with Header, Body, and Footer subcomponents.
|
|
1149
|
+
* Uses SURFACE_TOKENS + CARD_TOKENS for styling.
|
|
1150
|
+
* All styling uses tokens exclusively (no raw CSS values).
|
|
1151
|
+
*/
|
|
1152
|
+
|
|
1153
|
+
interface CardProps extends Omit<BoxProps, "radius" | "shadow" | "p"> {
|
|
1154
|
+
/**
|
|
1155
|
+
* Card size - maps to CARD_TOKENS.size
|
|
1156
|
+
*/
|
|
1157
|
+
size?: "sm" | "md" | "lg";
|
|
1158
|
+
/**
|
|
1159
|
+
* Border radius - token-based (overrides size default)
|
|
1160
|
+
*/
|
|
1161
|
+
radius?: ResponsiveRadius;
|
|
1162
|
+
/**
|
|
1163
|
+
* Shadow - token-based (overrides size default)
|
|
1164
|
+
*/
|
|
1165
|
+
shadow?: ShadowValue;
|
|
1166
|
+
/**
|
|
1167
|
+
* Padding - token-based (overrides size default)
|
|
1168
|
+
*/
|
|
1169
|
+
p?: ResponsiveSpacing;
|
|
1170
|
+
}
|
|
1171
|
+
/**
|
|
1172
|
+
* Card component - main container
|
|
1173
|
+
*/
|
|
1174
|
+
declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1175
|
+
/**
|
|
1176
|
+
* CardHeader component - uses Stack for vertical spacing
|
|
1177
|
+
*/
|
|
1178
|
+
interface CardHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1179
|
+
/**
|
|
1180
|
+
* Card size - determines padding from CARD_TOKENS
|
|
1181
|
+
*/
|
|
1182
|
+
size?: "sm" | "md" | "lg";
|
|
1183
|
+
/**
|
|
1184
|
+
* Padding - token-based (overrides size default)
|
|
1185
|
+
*/
|
|
1186
|
+
p?: ResponsiveSpacing;
|
|
1187
|
+
}
|
|
1188
|
+
declare const CardHeader: React$1.ForwardRefExoticComponent<CardHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1189
|
+
/**
|
|
1190
|
+
* CardBody component - main content area
|
|
1191
|
+
*/
|
|
1192
|
+
interface CardBodyProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1193
|
+
/**
|
|
1194
|
+
* Card size - determines padding from CARD_TOKENS
|
|
1195
|
+
*/
|
|
1196
|
+
size?: "sm" | "md" | "lg";
|
|
1197
|
+
/**
|
|
1198
|
+
* Padding - token-based (overrides size default)
|
|
1199
|
+
*/
|
|
1200
|
+
p?: ResponsiveSpacing;
|
|
1201
|
+
}
|
|
1202
|
+
declare const CardBody: React$1.ForwardRefExoticComponent<CardBodyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1203
|
+
/**
|
|
1204
|
+
* CardFooter component - uses Row for horizontal layout
|
|
1205
|
+
*/
|
|
1206
|
+
interface CardFooterProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1207
|
+
/**
|
|
1208
|
+
* Card size - determines padding from CARD_TOKENS
|
|
1209
|
+
*/
|
|
1210
|
+
size?: "sm" | "md" | "lg";
|
|
1211
|
+
/**
|
|
1212
|
+
* Padding - token-based (overrides size default)
|
|
1213
|
+
*/
|
|
1214
|
+
p?: ResponsiveSpacing;
|
|
1215
|
+
}
|
|
1216
|
+
declare const CardFooter: React$1.ForwardRefExoticComponent<CardFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* Section Container Component
|
|
1220
|
+
*
|
|
1221
|
+
* Token-driven section component for page/landing layout composition.
|
|
1222
|
+
* Uses SECTION_TOKENS for padding and spacing.
|
|
1223
|
+
* Uses Stack internally for content block composition.
|
|
1224
|
+
* All styling uses tokens exclusively (no raw CSS values).
|
|
1225
|
+
*/
|
|
1226
|
+
|
|
1227
|
+
interface SectionProps extends Omit<StackProps, "py" | "gap"> {
|
|
1228
|
+
/**
|
|
1229
|
+
* Vertical padding - token-based (sm, md, lg, xl)
|
|
1230
|
+
* Maps to SECTION_TOKENS.padding
|
|
1231
|
+
*/
|
|
1232
|
+
padding?: "sm" | "md" | "lg" | "xl";
|
|
1233
|
+
/**
|
|
1234
|
+
* Gap spacing for content blocks - token-based (sm, md, lg, xl)
|
|
1235
|
+
* Maps to SECTION_TOKENS.spacing
|
|
1236
|
+
*/
|
|
1237
|
+
gap?: "sm" | "md" | "lg" | "xl";
|
|
1238
|
+
/**
|
|
1239
|
+
* Render as different HTML element
|
|
1240
|
+
*/
|
|
1241
|
+
as?: keyof React$1.JSX.IntrinsicElements;
|
|
1242
|
+
}
|
|
1243
|
+
/**
|
|
1244
|
+
* Section component - page/landing layout container
|
|
1245
|
+
*/
|
|
1246
|
+
declare const Section: React$1.ForwardRefExoticComponent<SectionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1247
|
+
|
|
1248
|
+
declare const surfaceVariants: (props?: ({
|
|
1249
|
+
variant?: "outline" | "flat" | "raised" | "sunken" | "subtle" | null | undefined;
|
|
1250
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1251
|
+
interface SurfaceProps extends Omit<BoxProps, "bg" | "shadow" | "radius" | "p">, VariantProps<typeof surfaceVariants> {
|
|
1252
|
+
/**
|
|
1253
|
+
* Surface variant
|
|
1254
|
+
*/
|
|
1255
|
+
variant?: "flat" | "raised" | "sunken" | "outline" | "subtle";
|
|
1256
|
+
/**
|
|
1257
|
+
* Padding - token-based (sm, md, lg, xl)
|
|
1258
|
+
* Overrides default variant padding
|
|
1259
|
+
*/
|
|
1260
|
+
p?: ResponsiveSpacing;
|
|
1261
|
+
/**
|
|
1262
|
+
* Border radius - token-based (sm, md, lg, xl, 2xl, 3xl, full)
|
|
1263
|
+
* Overrides default variant radius
|
|
1264
|
+
*/
|
|
1265
|
+
radius?: ResponsiveRadius;
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
* Surface component - elevation variant container
|
|
1269
|
+
*/
|
|
1270
|
+
declare const Surface: React$1.ForwardRefExoticComponent<SurfaceProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Portal Component
|
|
1274
|
+
*
|
|
1275
|
+
* SSR-safe portal component for rendering children outside the DOM hierarchy.
|
|
1276
|
+
* Mounts to document.body by default, with optional custom container support.
|
|
1277
|
+
*/
|
|
1278
|
+
|
|
1279
|
+
interface PortalProps {
|
|
1280
|
+
/**
|
|
1281
|
+
* Children to portal
|
|
1282
|
+
*/
|
|
1283
|
+
children: React$1.ReactNode;
|
|
1284
|
+
/**
|
|
1285
|
+
* Container element to portal into (defaults to document.body)
|
|
1286
|
+
*/
|
|
1287
|
+
container?: Element | null;
|
|
1288
|
+
/**
|
|
1289
|
+
* Additional CSS classes
|
|
1290
|
+
*/
|
|
1291
|
+
className?: string;
|
|
1292
|
+
/**
|
|
1293
|
+
* Additional inline styles
|
|
1294
|
+
*/
|
|
1295
|
+
style?: React$1.CSSProperties;
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
* Portal component - SSR-safe portal rendering
|
|
1299
|
+
*/
|
|
1300
|
+
declare const Portal: React$1.ForwardRefExoticComponent<PortalProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1301
|
+
|
|
1302
|
+
declare const backdropVariants: (props?: ({
|
|
1303
|
+
variant?: "default" | "transparent" | "blurred" | null | undefined;
|
|
1304
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1305
|
+
interface BackdropProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof backdropVariants> {
|
|
1306
|
+
/**
|
|
1307
|
+
* Backdrop variant
|
|
1308
|
+
*/
|
|
1309
|
+
variant?: "default" | "blurred" | "transparent";
|
|
1310
|
+
/**
|
|
1311
|
+
* Whether backdrop is visible (for animation)
|
|
1312
|
+
*/
|
|
1313
|
+
isVisible?: boolean;
|
|
1314
|
+
/**
|
|
1315
|
+
* Click handler for backdrop dismiss
|
|
1316
|
+
*/
|
|
1317
|
+
onClick?: (event: React$1.MouseEvent<HTMLDivElement>) => void;
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* Backdrop component - overlay background
|
|
1321
|
+
*/
|
|
1322
|
+
declare const Backdrop: React$1.ForwardRefExoticComponent<BackdropProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1323
|
+
|
|
1324
|
+
declare const modalVariants: (props?: ({
|
|
1325
|
+
size?: "sm" | "md" | "lg" | "fullscreen" | null | undefined;
|
|
1326
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1327
|
+
interface ModalProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onClick" | "role" | "aria-modal" | "aria-labelledby" | "aria-describedby">, VariantProps<typeof modalVariants> {
|
|
1328
|
+
/**
|
|
1329
|
+
* Whether modal is open
|
|
1330
|
+
*/
|
|
1331
|
+
open: boolean;
|
|
1332
|
+
/**
|
|
1333
|
+
* Callback when modal should close
|
|
1334
|
+
*/
|
|
1335
|
+
onClose: () => void;
|
|
1336
|
+
/**
|
|
1337
|
+
* Modal size variant
|
|
1338
|
+
*/
|
|
1339
|
+
size?: "sm" | "md" | "lg" | "fullscreen";
|
|
1340
|
+
/**
|
|
1341
|
+
* Backdrop variant
|
|
1342
|
+
*/
|
|
1343
|
+
backdropVariant?: "default" | "blurred" | "transparent";
|
|
1344
|
+
/**
|
|
1345
|
+
* Whether to close on backdrop click
|
|
1346
|
+
*/
|
|
1347
|
+
closeOnBackdropClick?: boolean;
|
|
1348
|
+
/**
|
|
1349
|
+
* Whether to close on escape key
|
|
1350
|
+
*/
|
|
1351
|
+
closeOnEscape?: boolean;
|
|
1352
|
+
/**
|
|
1353
|
+
* Element to return focus to when modal closes
|
|
1354
|
+
*/
|
|
1355
|
+
returnFocusRef?: React$1.RefObject<HTMLElement>;
|
|
1356
|
+
}
|
|
1357
|
+
/**
|
|
1358
|
+
* Modal Header - Header section with spacing
|
|
1359
|
+
*/
|
|
1360
|
+
interface ModalHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1361
|
+
}
|
|
1362
|
+
declare const ModalHeader: React$1.ForwardRefExoticComponent<ModalHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1363
|
+
/**
|
|
1364
|
+
* Modal Body - Main content area
|
|
1365
|
+
*/
|
|
1366
|
+
interface ModalBodyProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1367
|
+
}
|
|
1368
|
+
declare const ModalBody: React$1.ForwardRefExoticComponent<ModalBodyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1369
|
+
/**
|
|
1370
|
+
* Modal Footer - Footer section with layout
|
|
1371
|
+
*/
|
|
1372
|
+
interface ModalFooterProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1373
|
+
}
|
|
1374
|
+
declare const ModalFooter: React$1.ForwardRefExoticComponent<ModalFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1375
|
+
declare const Modal: React$1.ForwardRefExoticComponent<ModalProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
1376
|
+
Content: React$1.ForwardRefExoticComponent<ModalProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1377
|
+
Header: React$1.ForwardRefExoticComponent<ModalHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1378
|
+
Body: React$1.ForwardRefExoticComponent<ModalBodyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1379
|
+
Footer: React$1.ForwardRefExoticComponent<ModalFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* Dialog Component
|
|
1384
|
+
*
|
|
1385
|
+
* Semantic modal wrapper built on Modal component.
|
|
1386
|
+
* Provides Dialog.Header, Dialog.Title, Dialog.Description, Dialog.Body, Dialog.Footer subcomponents.
|
|
1387
|
+
* Full A11y compliance with aria-labelledby and aria-describedby.
|
|
1388
|
+
*/
|
|
1389
|
+
|
|
1390
|
+
interface DialogProps extends Omit<ModalProps, "role" | "aria-modal"> {
|
|
1391
|
+
/**
|
|
1392
|
+
* ID for the dialog title (for aria-labelledby)
|
|
1393
|
+
*/
|
|
1394
|
+
titleId?: string;
|
|
1395
|
+
/**
|
|
1396
|
+
* ID for the dialog description (for aria-describedby)
|
|
1397
|
+
*/
|
|
1398
|
+
descriptionId?: string;
|
|
1399
|
+
}
|
|
1400
|
+
/**
|
|
1401
|
+
* Dialog Root - Main dialog wrapper
|
|
1402
|
+
*/
|
|
1403
|
+
declare const DialogRoot: React$1.ForwardRefExoticComponent<DialogProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1404
|
+
/**
|
|
1405
|
+
* Dialog Header - Header section with spacing
|
|
1406
|
+
*/
|
|
1407
|
+
interface DialogHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1408
|
+
titleId?: string;
|
|
1409
|
+
descriptionId?: string;
|
|
1410
|
+
}
|
|
1411
|
+
declare const DialogHeader: React$1.ForwardRefExoticComponent<DialogHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1412
|
+
/**
|
|
1413
|
+
* Dialog Title - h2 with aria-labelledby
|
|
1414
|
+
*/
|
|
1415
|
+
interface DialogTitleProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
1416
|
+
titleId?: string;
|
|
1417
|
+
}
|
|
1418
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1419
|
+
/**
|
|
1420
|
+
* Dialog Description - p with aria-describedby
|
|
1421
|
+
*/
|
|
1422
|
+
interface DialogDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
1423
|
+
descriptionId?: string;
|
|
1424
|
+
}
|
|
1425
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1426
|
+
/**
|
|
1427
|
+
* Dialog Body - Main content area
|
|
1428
|
+
*/
|
|
1429
|
+
interface DialogBodyProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1430
|
+
}
|
|
1431
|
+
declare const DialogBody: React$1.ForwardRefExoticComponent<DialogBodyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1432
|
+
/**
|
|
1433
|
+
* Dialog Footer - Footer section with Row layout
|
|
1434
|
+
*/
|
|
1435
|
+
interface DialogFooterProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1436
|
+
}
|
|
1437
|
+
declare const DialogFooter: React$1.ForwardRefExoticComponent<DialogFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1438
|
+
declare const Dialog: React$1.ForwardRefExoticComponent<DialogProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
1439
|
+
Root: React$1.ForwardRefExoticComponent<DialogProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1440
|
+
Header: React$1.ForwardRefExoticComponent<DialogHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1441
|
+
Title: React$1.ForwardRefExoticComponent<DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1442
|
+
Description: React$1.ForwardRefExoticComponent<DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1443
|
+
Body: React$1.ForwardRefExoticComponent<DialogBodyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1444
|
+
Footer: React$1.ForwardRefExoticComponent<DialogFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1445
|
+
};
|
|
1446
|
+
|
|
1447
|
+
declare const toastVariants: (props?: ({
|
|
1448
|
+
variant?: "default" | "success" | "warning" | "danger" | "info" | null | undefined;
|
|
1449
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1450
|
+
interface ToastAction {
|
|
1451
|
+
label: string;
|
|
1452
|
+
onClick: () => void;
|
|
1453
|
+
}
|
|
1454
|
+
interface ToastData {
|
|
1455
|
+
id: string;
|
|
1456
|
+
title?: string;
|
|
1457
|
+
description?: string;
|
|
1458
|
+
variant?: "default" | "success" | "info" | "warning" | "danger";
|
|
1459
|
+
action?: ToastAction;
|
|
1460
|
+
duration?: number;
|
|
1461
|
+
}
|
|
1462
|
+
interface ToastProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof toastVariants> {
|
|
1463
|
+
/**
|
|
1464
|
+
* Toast data
|
|
1465
|
+
*/
|
|
1466
|
+
toast: ToastData;
|
|
1467
|
+
/**
|
|
1468
|
+
* Callback when toast is dismissed
|
|
1469
|
+
*/
|
|
1470
|
+
onDismiss: (id: string) => void;
|
|
1471
|
+
/**
|
|
1472
|
+
* Whether toast is visible (for animation)
|
|
1473
|
+
*/
|
|
1474
|
+
isVisible?: boolean;
|
|
1475
|
+
}
|
|
1476
|
+
/**
|
|
1477
|
+
* Toast component - notification toast
|
|
1478
|
+
*/
|
|
1479
|
+
declare const Toast: React$1.ForwardRefExoticComponent<ToastProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* ToastViewport Component
|
|
1483
|
+
*
|
|
1484
|
+
* Fixed positioning container for toast notifications.
|
|
1485
|
+
* Supports position variants (top-right, bottom-left, etc.).
|
|
1486
|
+
* Uses Portal for rendering outside DOM hierarchy.
|
|
1487
|
+
*/
|
|
1488
|
+
|
|
1489
|
+
type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
1490
|
+
interface ToastViewportProps {
|
|
1491
|
+
/**
|
|
1492
|
+
* Position of toast viewport
|
|
1493
|
+
*/
|
|
1494
|
+
position?: ToastPosition;
|
|
1495
|
+
/**
|
|
1496
|
+
* Children to render in viewport
|
|
1497
|
+
*/
|
|
1498
|
+
children: React$1.ReactNode;
|
|
1499
|
+
/**
|
|
1500
|
+
* Additional CSS classes
|
|
1501
|
+
*/
|
|
1502
|
+
className?: string;
|
|
1503
|
+
}
|
|
1504
|
+
/**
|
|
1505
|
+
* ToastViewport component - container for toast notifications
|
|
1506
|
+
*/
|
|
1507
|
+
declare const ToastViewport: React$1.ForwardRefExoticComponent<ToastViewportProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1508
|
+
|
|
1509
|
+
interface ToastOptions {
|
|
1510
|
+
title?: string;
|
|
1511
|
+
description?: string;
|
|
1512
|
+
variant?: "default" | "success" | "info" | "warning" | "danger";
|
|
1513
|
+
action?: ToastAction;
|
|
1514
|
+
duration?: number;
|
|
1515
|
+
}
|
|
1516
|
+
interface ToastContextType {
|
|
1517
|
+
toast: (options: ToastOptions) => string;
|
|
1518
|
+
dismiss: (id: string) => void;
|
|
1519
|
+
dismissAll: () => void;
|
|
1520
|
+
updateToast: (id: string, updates: Partial<ToastData>) => void;
|
|
1521
|
+
getQueue: () => ToastData[];
|
|
1522
|
+
getGrouped: () => Record<string, ToastData[]>;
|
|
1523
|
+
}
|
|
1524
|
+
type GroupByFunction$1 = (toast: ToastData) => string;
|
|
1525
|
+
interface ToastProviderProps {
|
|
1526
|
+
/**
|
|
1527
|
+
* Children to render
|
|
1528
|
+
*/
|
|
1529
|
+
children: React$1.ReactNode;
|
|
1530
|
+
/**
|
|
1531
|
+
* Position of toast viewport
|
|
1532
|
+
*/
|
|
1533
|
+
position?: ToastPosition;
|
|
1534
|
+
/**
|
|
1535
|
+
* Maximum number of toasts to show (default: 5)
|
|
1536
|
+
*/
|
|
1537
|
+
maxToasts?: number;
|
|
1538
|
+
/**
|
|
1539
|
+
* Maximum number of visible toasts (default: 3)
|
|
1540
|
+
* Overflow notifications are queued
|
|
1541
|
+
*/
|
|
1542
|
+
maxVisible?: number;
|
|
1543
|
+
/**
|
|
1544
|
+
* Function to group toasts (by date, type, or custom)
|
|
1545
|
+
*/
|
|
1546
|
+
groupBy?: GroupByFunction$1;
|
|
1547
|
+
}
|
|
1548
|
+
/**
|
|
1549
|
+
* ToastProvider component - context provider for toast notifications
|
|
1550
|
+
*/
|
|
1551
|
+
declare function ToastProvider({ children, position, maxVisible, groupBy, }: ToastProviderProps): react_jsx_runtime.JSX.Element;
|
|
1552
|
+
/**
|
|
1553
|
+
* Hook to use toast context
|
|
1554
|
+
*/
|
|
1555
|
+
declare function useToast(): ToastContextType;
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* NotificationCenter.DismissAll Component
|
|
1559
|
+
*
|
|
1560
|
+
* Button component to clear all notifications.
|
|
1561
|
+
* Located in Panel header.
|
|
1562
|
+
*/
|
|
1563
|
+
|
|
1564
|
+
interface NotificationCenterDismissAllProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1565
|
+
/**
|
|
1566
|
+
* Show confirmation before clearing
|
|
1567
|
+
*/
|
|
1568
|
+
confirm?: boolean;
|
|
1569
|
+
/**
|
|
1570
|
+
* Confirmation message
|
|
1571
|
+
*/
|
|
1572
|
+
confirmMessage?: string;
|
|
1573
|
+
}
|
|
1574
|
+
/**
|
|
1575
|
+
* NotificationCenter.DismissAll component - clear all notifications button
|
|
1576
|
+
*/
|
|
1577
|
+
declare const NotificationCenterDismissAll: React$1.ForwardRefExoticComponent<NotificationCenterDismissAllProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1578
|
+
|
|
1579
|
+
interface NotificationCenterGroupHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1580
|
+
/**
|
|
1581
|
+
* Group label text
|
|
1582
|
+
*/
|
|
1583
|
+
label: string;
|
|
1584
|
+
/**
|
|
1585
|
+
* Whether the group is collapsed
|
|
1586
|
+
*/
|
|
1587
|
+
collapsed?: boolean;
|
|
1588
|
+
/**
|
|
1589
|
+
* Callback when collapse/expand is toggled
|
|
1590
|
+
*/
|
|
1591
|
+
onToggleCollapse?: () => void;
|
|
1592
|
+
/**
|
|
1593
|
+
* Show collapse/expand button
|
|
1594
|
+
*/
|
|
1595
|
+
collapsible?: boolean;
|
|
1596
|
+
}
|
|
1597
|
+
/**
|
|
1598
|
+
* NotificationCenter.GroupHeader component - group section header
|
|
1599
|
+
*/
|
|
1600
|
+
declare const NotificationCenterGroupHeader: React$1.ForwardRefExoticComponent<NotificationCenterGroupHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1601
|
+
|
|
1602
|
+
/**
|
|
1603
|
+
* Notification Center Types
|
|
1604
|
+
*
|
|
1605
|
+
* Type definitions for Notification Center components.
|
|
1606
|
+
*/
|
|
1607
|
+
|
|
1608
|
+
/**
|
|
1609
|
+
* Notification channel types
|
|
1610
|
+
*/
|
|
1611
|
+
type NotificationChannel = "success" | "error" | "info" | "warning" | "system" | "log";
|
|
1612
|
+
/**
|
|
1613
|
+
* Notification variant (extends toast variants)
|
|
1614
|
+
*/
|
|
1615
|
+
type NotificationVariant = "default" | "success" | "info" | "warning" | "danger" | "system" | "log";
|
|
1616
|
+
/**
|
|
1617
|
+
* Notification data structure
|
|
1618
|
+
*/
|
|
1619
|
+
interface NotificationData {
|
|
1620
|
+
id: string;
|
|
1621
|
+
title?: string;
|
|
1622
|
+
description?: string;
|
|
1623
|
+
variant?: NotificationVariant;
|
|
1624
|
+
channel?: NotificationChannel;
|
|
1625
|
+
action?: ToastAction;
|
|
1626
|
+
duration?: number;
|
|
1627
|
+
persistent?: boolean;
|
|
1628
|
+
timestamp: number;
|
|
1629
|
+
read?: boolean;
|
|
1630
|
+
}
|
|
1631
|
+
/**
|
|
1632
|
+
* Notification options for creating notifications
|
|
1633
|
+
*/
|
|
1634
|
+
interface NotificationOptions {
|
|
1635
|
+
title?: string;
|
|
1636
|
+
description?: string;
|
|
1637
|
+
variant?: NotificationVariant;
|
|
1638
|
+
channel?: NotificationChannel;
|
|
1639
|
+
action?: ToastAction;
|
|
1640
|
+
duration?: number;
|
|
1641
|
+
persistent?: boolean;
|
|
1642
|
+
}
|
|
1643
|
+
/**
|
|
1644
|
+
* Group by function type
|
|
1645
|
+
*/
|
|
1646
|
+
type GroupByFunction = (notification: NotificationData) => string;
|
|
1647
|
+
/**
|
|
1648
|
+
* Notification context type
|
|
1649
|
+
*/
|
|
1650
|
+
interface NotificationContextType {
|
|
1651
|
+
/**
|
|
1652
|
+
* Push a new notification
|
|
1653
|
+
*/
|
|
1654
|
+
push: (notification: NotificationOptions) => string;
|
|
1655
|
+
/**
|
|
1656
|
+
* Remove a specific notification by ID
|
|
1657
|
+
*/
|
|
1658
|
+
remove: (id: string) => void;
|
|
1659
|
+
/**
|
|
1660
|
+
* Clear all notifications
|
|
1661
|
+
*/
|
|
1662
|
+
clearAll: () => void;
|
|
1663
|
+
/**
|
|
1664
|
+
* Clear notifications by channel
|
|
1665
|
+
*/
|
|
1666
|
+
clearChannel: (channel: NotificationChannel) => void;
|
|
1667
|
+
/**
|
|
1668
|
+
* Group notifications by function
|
|
1669
|
+
*/
|
|
1670
|
+
groupBy: (fn: GroupByFunction) => Record<string, NotificationData[]>;
|
|
1671
|
+
/**
|
|
1672
|
+
* Get persistent history
|
|
1673
|
+
*/
|
|
1674
|
+
getHistory: () => NotificationData[];
|
|
1675
|
+
/**
|
|
1676
|
+
* Get notifications by channel
|
|
1677
|
+
*/
|
|
1678
|
+
getByChannel: (channel: NotificationChannel) => NotificationData[];
|
|
1679
|
+
/**
|
|
1680
|
+
* Get all notifications
|
|
1681
|
+
*/
|
|
1682
|
+
getAll: () => NotificationData[];
|
|
1683
|
+
/**
|
|
1684
|
+
* Mark notification as read
|
|
1685
|
+
*/
|
|
1686
|
+
markAsRead: (id: string) => void;
|
|
1687
|
+
/**
|
|
1688
|
+
* Mark all as read
|
|
1689
|
+
*/
|
|
1690
|
+
markAllAsRead: () => void;
|
|
1691
|
+
/**
|
|
1692
|
+
* Get unread count
|
|
1693
|
+
*/
|
|
1694
|
+
getUnreadCount: () => number;
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
interface NotificationCenterItemProps extends Omit<React$1.HTMLAttributes<HTMLLIElement>, "onClick"> {
|
|
1698
|
+
/**
|
|
1699
|
+
* Notification data
|
|
1700
|
+
*/
|
|
1701
|
+
notification: NotificationData;
|
|
1702
|
+
/**
|
|
1703
|
+
* Callback when notification is dismissed
|
|
1704
|
+
*/
|
|
1705
|
+
onDismiss?: (id: string) => void;
|
|
1706
|
+
/**
|
|
1707
|
+
* Callback when notification is clicked
|
|
1708
|
+
*/
|
|
1709
|
+
onClick?: (id: string) => void;
|
|
1710
|
+
/**
|
|
1711
|
+
* Show expandable details
|
|
1712
|
+
*/
|
|
1713
|
+
expandable?: boolean;
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* NotificationCenter.Item component - individual notification item
|
|
1717
|
+
*/
|
|
1718
|
+
declare const NotificationCenterItem: React$1.ForwardRefExoticComponent<NotificationCenterItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* NotificationCenter.List Component
|
|
1722
|
+
*
|
|
1723
|
+
* Vertical list container for notifications.
|
|
1724
|
+
* Uses Stack component with token-based spacing.
|
|
1725
|
+
* Provides proper ARIA roles for accessibility.
|
|
1726
|
+
*/
|
|
1727
|
+
|
|
1728
|
+
interface NotificationCenterListProps extends React$1.HTMLAttributes<HTMLUListElement> {
|
|
1729
|
+
/**
|
|
1730
|
+
* Children to render (notification items)
|
|
1731
|
+
*/
|
|
1732
|
+
children: React$1.ReactNode;
|
|
1733
|
+
/**
|
|
1734
|
+
* ARIA label for the list
|
|
1735
|
+
*/
|
|
1736
|
+
"aria-label"?: string;
|
|
1737
|
+
}
|
|
1738
|
+
/**
|
|
1739
|
+
* NotificationCenter.List component - vertical list container
|
|
1740
|
+
*/
|
|
1741
|
+
declare const NotificationCenterList: React$1.ForwardRefExoticComponent<NotificationCenterListProps & React$1.RefAttributes<HTMLUListElement>>;
|
|
1742
|
+
|
|
1743
|
+
interface NotificationCenterTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1744
|
+
/**
|
|
1745
|
+
* Callback when trigger is clicked
|
|
1746
|
+
*/
|
|
1747
|
+
onClick?: () => void;
|
|
1748
|
+
/**
|
|
1749
|
+
* Show unread badge
|
|
1750
|
+
*/
|
|
1751
|
+
showBadge?: boolean;
|
|
1752
|
+
}
|
|
1753
|
+
/**
|
|
1754
|
+
* NotificationCenter.Trigger component - open panel button
|
|
1755
|
+
*/
|
|
1756
|
+
declare const NotificationCenterTrigger: React$1.ForwardRefExoticComponent<NotificationCenterTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1757
|
+
|
|
1758
|
+
interface NotificationCenterPanelProps {
|
|
1759
|
+
/**
|
|
1760
|
+
* Whether panel is open
|
|
1761
|
+
*/
|
|
1762
|
+
isOpen: boolean;
|
|
1763
|
+
/**
|
|
1764
|
+
* Callback when panel should close
|
|
1765
|
+
*/
|
|
1766
|
+
onClose: () => void;
|
|
1767
|
+
/**
|
|
1768
|
+
* Function to group notifications (by date, type, or custom)
|
|
1769
|
+
*/
|
|
1770
|
+
groupBy?: GroupByFunction;
|
|
1771
|
+
/**
|
|
1772
|
+
* Panel width variant
|
|
1773
|
+
*/
|
|
1774
|
+
width?: "sm" | "md" | "lg";
|
|
1775
|
+
/**
|
|
1776
|
+
* Auto-collapse older notifications
|
|
1777
|
+
*/
|
|
1778
|
+
autoCollapse?: boolean;
|
|
1779
|
+
/**
|
|
1780
|
+
* Element to return focus to when panel closes
|
|
1781
|
+
*/
|
|
1782
|
+
returnFocusRef?: React$1.RefObject<HTMLElement>;
|
|
1783
|
+
}
|
|
1784
|
+
/**
|
|
1785
|
+
* NotificationCenter.Panel component - side drawer notification panel
|
|
1786
|
+
*/
|
|
1787
|
+
declare const NotificationCenterPanel: React$1.ForwardRefExoticComponent<NotificationCenterPanelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1788
|
+
|
|
1789
|
+
interface NotificationCenterProviderProps {
|
|
1790
|
+
/**
|
|
1791
|
+
* Children to render
|
|
1792
|
+
*/
|
|
1793
|
+
children: React$1.ReactNode;
|
|
1794
|
+
/**
|
|
1795
|
+
* Maximum number of notifications to keep in history
|
|
1796
|
+
*/
|
|
1797
|
+
maxHistory?: number;
|
|
1798
|
+
/**
|
|
1799
|
+
* Enable persistent history (in-memory, can be extended to localStorage)
|
|
1800
|
+
*/
|
|
1801
|
+
persistent?: boolean;
|
|
1802
|
+
}
|
|
1803
|
+
/**
|
|
1804
|
+
* NotificationCenter.Provider component - global notification state management
|
|
1805
|
+
*/
|
|
1806
|
+
declare function NotificationCenterProvider({ children, maxHistory, persistent, }: NotificationCenterProviderProps): react_jsx_runtime.JSX.Element;
|
|
1807
|
+
/**
|
|
1808
|
+
* Hook to use notification center context
|
|
1809
|
+
*/
|
|
1810
|
+
declare function useNotificationCenterContext(): NotificationContextType;
|
|
1811
|
+
|
|
1812
|
+
interface NotificationAPI {
|
|
1813
|
+
/**
|
|
1814
|
+
* Show success notification
|
|
1815
|
+
*/
|
|
1816
|
+
success: (message: string, options?: Omit<NotificationOptions, "variant" | "channel">) => string;
|
|
1817
|
+
/**
|
|
1818
|
+
* Show error notification
|
|
1819
|
+
*/
|
|
1820
|
+
error: (message: string, options?: Omit<NotificationOptions, "variant" | "channel">) => string;
|
|
1821
|
+
/**
|
|
1822
|
+
* Show info notification
|
|
1823
|
+
*/
|
|
1824
|
+
info: (message: string, options?: Omit<NotificationOptions, "variant" | "channel">) => string;
|
|
1825
|
+
/**
|
|
1826
|
+
* Show warning notification
|
|
1827
|
+
*/
|
|
1828
|
+
warning: (message: string, options?: Omit<NotificationOptions, "variant" | "channel">) => string;
|
|
1829
|
+
/**
|
|
1830
|
+
* Show system notification
|
|
1831
|
+
*/
|
|
1832
|
+
system: (message: string, options?: Omit<NotificationOptions, "variant" | "channel">) => string;
|
|
1833
|
+
/**
|
|
1834
|
+
* Show log notification
|
|
1835
|
+
*/
|
|
1836
|
+
log: (message: string, options?: Omit<NotificationOptions, "variant" | "channel">) => string;
|
|
1837
|
+
/**
|
|
1838
|
+
* Push custom notification
|
|
1839
|
+
*/
|
|
1840
|
+
push: (options: NotificationOptions) => string;
|
|
1841
|
+
/**
|
|
1842
|
+
* Remove notification by ID
|
|
1843
|
+
*/
|
|
1844
|
+
remove: (id: string) => void;
|
|
1845
|
+
/**
|
|
1846
|
+
* Clear all notifications
|
|
1847
|
+
*/
|
|
1848
|
+
clearAll: () => void;
|
|
1849
|
+
/**
|
|
1850
|
+
* Clear notifications by channel
|
|
1851
|
+
*/
|
|
1852
|
+
clearChannel: (channel: "success" | "error" | "info" | "warning" | "system" | "log") => void;
|
|
1853
|
+
}
|
|
1854
|
+
/**
|
|
1855
|
+
* useNotificationCenter hook - multi-channel notification API
|
|
1856
|
+
*/
|
|
1857
|
+
declare function useNotificationCenter(): NotificationAPI;
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* NotificationCenter compound component
|
|
1861
|
+
*/
|
|
1862
|
+
declare const NotificationCenter: {
|
|
1863
|
+
Provider: typeof NotificationCenterProvider;
|
|
1864
|
+
Panel: React$1.ForwardRefExoticComponent<NotificationCenterPanelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1865
|
+
Trigger: React$1.ForwardRefExoticComponent<NotificationCenterTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1866
|
+
List: React$1.ForwardRefExoticComponent<NotificationCenterListProps & React$1.RefAttributes<HTMLUListElement>>;
|
|
1867
|
+
Item: React$1.ForwardRefExoticComponent<NotificationCenterItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
1868
|
+
GroupHeader: React$1.ForwardRefExoticComponent<NotificationCenterGroupHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1869
|
+
DismissAll: React$1.ForwardRefExoticComponent<NotificationCenterDismissAllProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1870
|
+
};
|
|
1871
|
+
|
|
1872
|
+
/**
|
|
1873
|
+
* Popover Arrow Component
|
|
1874
|
+
*
|
|
1875
|
+
* Arrow indicator pointing to the trigger element.
|
|
1876
|
+
* Uses POPOVER_TOKENS for sizing and positioning.
|
|
1877
|
+
*/
|
|
1878
|
+
|
|
1879
|
+
interface PopoverArrowProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1880
|
+
/**
|
|
1881
|
+
* Arrow size
|
|
1882
|
+
*/
|
|
1883
|
+
size?: "sm" | "md";
|
|
1884
|
+
}
|
|
1885
|
+
/**
|
|
1886
|
+
* Popover Arrow component
|
|
1887
|
+
*/
|
|
1888
|
+
declare const PopoverArrow: React$1.ForwardRefExoticComponent<PopoverArrowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1889
|
+
|
|
1890
|
+
declare const popoverContentVariants: (props?: ({
|
|
1891
|
+
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
1892
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1893
|
+
interface PopoverContentProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onAnimationEnd">, VariantProps<typeof popoverContentVariants> {
|
|
1894
|
+
/**
|
|
1895
|
+
* Placement preference
|
|
1896
|
+
*/
|
|
1897
|
+
placement?: Placement;
|
|
1898
|
+
/**
|
|
1899
|
+
* Offset between trigger and content (in pixels)
|
|
1900
|
+
*/
|
|
1901
|
+
offset?: number;
|
|
1902
|
+
/**
|
|
1903
|
+
* Whether to close on outside click
|
|
1904
|
+
*/
|
|
1905
|
+
closeOnInteractOutside?: boolean;
|
|
1906
|
+
}
|
|
1907
|
+
/**
|
|
1908
|
+
* Popover Content component
|
|
1909
|
+
*/
|
|
1910
|
+
declare const PopoverContent: React$1.ForwardRefExoticComponent<PopoverContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1911
|
+
|
|
1912
|
+
interface PopoverRootProps {
|
|
1913
|
+
/**
|
|
1914
|
+
* Whether the popover is open (controlled mode)
|
|
1915
|
+
*/
|
|
1916
|
+
open?: boolean;
|
|
1917
|
+
/**
|
|
1918
|
+
* Callback when open state changes
|
|
1919
|
+
*/
|
|
1920
|
+
onOpenChange?: (open: boolean) => void;
|
|
1921
|
+
/**
|
|
1922
|
+
* Default open state (uncontrolled mode)
|
|
1923
|
+
*/
|
|
1924
|
+
defaultOpen?: boolean;
|
|
1925
|
+
/**
|
|
1926
|
+
* Whether the popover is modal (blocks interaction with other elements)
|
|
1927
|
+
*/
|
|
1928
|
+
modal?: boolean;
|
|
1929
|
+
/**
|
|
1930
|
+
* Children
|
|
1931
|
+
*/
|
|
1932
|
+
children: React$1.ReactNode;
|
|
1933
|
+
}
|
|
1934
|
+
/**
|
|
1935
|
+
* Popover Root component
|
|
1936
|
+
*/
|
|
1937
|
+
declare function PopoverRoot({ open: controlledOpen, onOpenChange, defaultOpen, children, }: PopoverRootProps): react_jsx_runtime.JSX.Element;
|
|
1938
|
+
declare namespace PopoverRoot {
|
|
1939
|
+
var displayName: string;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
/**
|
|
1943
|
+
* Popover Trigger Component
|
|
1944
|
+
*
|
|
1945
|
+
* Trigger element that opens/closes the popover.
|
|
1946
|
+
* Supports asChild pattern for composition.
|
|
1947
|
+
*/
|
|
1948
|
+
|
|
1949
|
+
interface PopoverTriggerProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
1950
|
+
/**
|
|
1951
|
+
* Render as child element (composition pattern)
|
|
1952
|
+
*/
|
|
1953
|
+
asChild?: boolean;
|
|
1954
|
+
}
|
|
1955
|
+
/**
|
|
1956
|
+
* Popover Trigger component
|
|
1957
|
+
*/
|
|
1958
|
+
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverTriggerProps & React$1.RefAttributes<HTMLElement>>;
|
|
1959
|
+
|
|
1960
|
+
/**
|
|
1961
|
+
* DropdownMenu Item Component
|
|
1962
|
+
*
|
|
1963
|
+
* Menu item with keyboard navigation support (roving tabindex).
|
|
1964
|
+
* Uses MENU_TOKENS for styling.
|
|
1965
|
+
*/
|
|
1966
|
+
|
|
1967
|
+
interface DropdownMenuItemProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onSelect"> {
|
|
1968
|
+
/**
|
|
1969
|
+
* Whether the item is disabled
|
|
1970
|
+
*/
|
|
1971
|
+
disabled?: boolean;
|
|
1972
|
+
/**
|
|
1973
|
+
* Whether the item is selected
|
|
1974
|
+
*/
|
|
1975
|
+
selected?: boolean;
|
|
1976
|
+
/**
|
|
1977
|
+
* Callback when item is selected
|
|
1978
|
+
* Receives native Event (not SyntheticEvent)
|
|
1979
|
+
*/
|
|
1980
|
+
onSelect?: (event: Event) => void;
|
|
1981
|
+
/**
|
|
1982
|
+
* Whether item has inset padding (for nested items)
|
|
1983
|
+
*/
|
|
1984
|
+
inset?: boolean;
|
|
1985
|
+
}
|
|
1986
|
+
/**
|
|
1987
|
+
* DropdownMenu Item component
|
|
1988
|
+
*/
|
|
1989
|
+
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1990
|
+
|
|
1991
|
+
/**
|
|
1992
|
+
* DropdownMenu CheckItem Component
|
|
1993
|
+
*
|
|
1994
|
+
* Menu item with checkbox indicator.
|
|
1995
|
+
* Uses MENU_TOKENS for styling.
|
|
1996
|
+
*/
|
|
1997
|
+
|
|
1998
|
+
interface DropdownMenuCheckItemProps extends Omit<DropdownMenuItemProps, "selected"> {
|
|
1999
|
+
/**
|
|
2000
|
+
* Whether the item is checked
|
|
2001
|
+
*/
|
|
2002
|
+
checked?: boolean;
|
|
2003
|
+
}
|
|
2004
|
+
/**
|
|
2005
|
+
* DropdownMenu CheckItem component
|
|
2006
|
+
*/
|
|
2007
|
+
declare const DropdownMenuCheckItem: React$1.ForwardRefExoticComponent<DropdownMenuCheckItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2008
|
+
|
|
2009
|
+
/**
|
|
2010
|
+
* DropdownMenu Content Component
|
|
2011
|
+
*
|
|
2012
|
+
* Content container for dropdown menu.
|
|
2013
|
+
* Wraps PopoverContent with menu-specific styling and role.
|
|
2014
|
+
* Handles keyboard navigation (Arrow keys, Home/End, Escape).
|
|
2015
|
+
*/
|
|
2016
|
+
|
|
2017
|
+
interface DropdownMenuContentProps extends PopoverContentProps {
|
|
2018
|
+
}
|
|
2019
|
+
/**
|
|
2020
|
+
* DropdownMenu Content component
|
|
2021
|
+
*/
|
|
2022
|
+
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2023
|
+
|
|
2024
|
+
/**
|
|
2025
|
+
* DropdownMenu Group Component
|
|
2026
|
+
*
|
|
2027
|
+
* Group container for related menu items.
|
|
2028
|
+
*/
|
|
2029
|
+
|
|
2030
|
+
interface DropdownMenuGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2031
|
+
}
|
|
2032
|
+
/**
|
|
2033
|
+
* DropdownMenu Group component
|
|
2034
|
+
*/
|
|
2035
|
+
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2036
|
+
|
|
2037
|
+
/**
|
|
2038
|
+
* DropdownMenu Label Component
|
|
2039
|
+
*
|
|
2040
|
+
* Label/section header for menu items.
|
|
2041
|
+
* Uses MENU_TOKENS for styling.
|
|
2042
|
+
*/
|
|
2043
|
+
|
|
2044
|
+
interface DropdownMenuLabelProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2045
|
+
/**
|
|
2046
|
+
* Whether label has inset padding (for nested items)
|
|
2047
|
+
*/
|
|
2048
|
+
inset?: boolean;
|
|
2049
|
+
}
|
|
2050
|
+
/**
|
|
2051
|
+
* DropdownMenu Label component
|
|
2052
|
+
*/
|
|
2053
|
+
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* DropdownMenu RadioGroup Component
|
|
2057
|
+
*
|
|
2058
|
+
* Radio group container for radio menu items.
|
|
2059
|
+
*/
|
|
2060
|
+
|
|
2061
|
+
interface DropdownMenuRadioGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2062
|
+
/**
|
|
2063
|
+
* Selected value
|
|
2064
|
+
*/
|
|
2065
|
+
value?: string;
|
|
2066
|
+
/**
|
|
2067
|
+
* Callback when value changes
|
|
2068
|
+
*/
|
|
2069
|
+
onValueChange?: (value: string) => void;
|
|
2070
|
+
}
|
|
2071
|
+
/**
|
|
2072
|
+
* DropdownMenu RadioGroup component
|
|
2073
|
+
*/
|
|
2074
|
+
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2075
|
+
|
|
2076
|
+
/**
|
|
2077
|
+
* DropdownMenu RadioItem Component
|
|
2078
|
+
*
|
|
2079
|
+
* Menu item with radio indicator.
|
|
2080
|
+
* Uses MENU_TOKENS for styling.
|
|
2081
|
+
*/
|
|
2082
|
+
|
|
2083
|
+
interface DropdownMenuRadioItemProps extends Omit<DropdownMenuItemProps, "selected"> {
|
|
2084
|
+
/**
|
|
2085
|
+
* Radio item value
|
|
2086
|
+
*/
|
|
2087
|
+
value: string;
|
|
2088
|
+
}
|
|
2089
|
+
/**
|
|
2090
|
+
* DropdownMenu RadioItem component
|
|
2091
|
+
*/
|
|
2092
|
+
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2093
|
+
|
|
2094
|
+
interface DropdownMenuRootProps extends PopoverRootProps {
|
|
2095
|
+
}
|
|
2096
|
+
/**
|
|
2097
|
+
* DropdownMenu Root component
|
|
2098
|
+
*/
|
|
2099
|
+
declare function DropdownMenuRoot(props: DropdownMenuRootProps): react_jsx_runtime.JSX.Element;
|
|
2100
|
+
declare namespace DropdownMenuRoot {
|
|
2101
|
+
var displayName: string;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
/**
|
|
2105
|
+
* DropdownMenu Separator Component
|
|
2106
|
+
*
|
|
2107
|
+
* Visual separator between menu items.
|
|
2108
|
+
* Uses MENU_TOKENS for styling.
|
|
2109
|
+
*/
|
|
2110
|
+
|
|
2111
|
+
interface DropdownMenuSeparatorProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2112
|
+
}
|
|
2113
|
+
/**
|
|
2114
|
+
* DropdownMenu Separator component
|
|
2115
|
+
*/
|
|
2116
|
+
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2117
|
+
|
|
2118
|
+
interface DropdownMenuSubProps extends PopoverRootProps {
|
|
2119
|
+
}
|
|
2120
|
+
/**
|
|
2121
|
+
* DropdownMenu Sub component
|
|
2122
|
+
*/
|
|
2123
|
+
declare function DropdownMenuSub(props: DropdownMenuSubProps): react_jsx_runtime.JSX.Element;
|
|
2124
|
+
declare namespace DropdownMenuSub {
|
|
2125
|
+
var displayName: string;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
/**
|
|
2129
|
+
* DropdownMenu SubContent Component
|
|
2130
|
+
*
|
|
2131
|
+
* Content container for submenu.
|
|
2132
|
+
*/
|
|
2133
|
+
|
|
2134
|
+
interface DropdownMenuSubContentProps extends DropdownMenuContentProps {
|
|
2135
|
+
}
|
|
2136
|
+
/**
|
|
2137
|
+
* DropdownMenu SubContent component
|
|
2138
|
+
*/
|
|
2139
|
+
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2140
|
+
|
|
2141
|
+
/**
|
|
2142
|
+
* DropdownMenu SubTrigger Component
|
|
2143
|
+
*
|
|
2144
|
+
* Trigger for submenu items.
|
|
2145
|
+
*/
|
|
2146
|
+
|
|
2147
|
+
interface DropdownMenuSubTriggerProps extends DropdownMenuItemProps {
|
|
2148
|
+
}
|
|
2149
|
+
/**
|
|
2150
|
+
* DropdownMenu SubTrigger component
|
|
2151
|
+
*/
|
|
2152
|
+
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2153
|
+
|
|
2154
|
+
/**
|
|
2155
|
+
* DropdownMenu Trigger Component
|
|
2156
|
+
*
|
|
2157
|
+
* Trigger element for dropdown menu.
|
|
2158
|
+
* Wraps PopoverTrigger with menu-specific ARIA attributes.
|
|
2159
|
+
*/
|
|
2160
|
+
|
|
2161
|
+
interface DropdownMenuTriggerProps extends PopoverTriggerProps {
|
|
2162
|
+
}
|
|
2163
|
+
/**
|
|
2164
|
+
* DropdownMenu Trigger component
|
|
2165
|
+
*/
|
|
2166
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuTriggerProps & React$1.RefAttributes<HTMLElement>>;
|
|
2167
|
+
|
|
2168
|
+
/**
|
|
2169
|
+
* HoverCard Content Component
|
|
2170
|
+
*
|
|
2171
|
+
* Content container for HoverCard.
|
|
2172
|
+
* Wraps PopoverContent with hover-specific behavior.
|
|
2173
|
+
*/
|
|
2174
|
+
|
|
2175
|
+
interface HoverCardContentProps extends PopoverContentProps {
|
|
2176
|
+
}
|
|
2177
|
+
/**
|
|
2178
|
+
* HoverCard Content component
|
|
2179
|
+
*/
|
|
2180
|
+
declare const HoverCardContent: React$1.ForwardRefExoticComponent<HoverCardContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2181
|
+
|
|
2182
|
+
interface HoverCardRootProps extends Omit<PopoverRootProps, "open" | "onOpenChange"> {
|
|
2183
|
+
/**
|
|
2184
|
+
* Delay before opening (in milliseconds)
|
|
2185
|
+
* @default 0
|
|
2186
|
+
*/
|
|
2187
|
+
openDelay?: number;
|
|
2188
|
+
/**
|
|
2189
|
+
* Delay before closing (in milliseconds)
|
|
2190
|
+
* @default 300
|
|
2191
|
+
*/
|
|
2192
|
+
closeDelay?: number;
|
|
2193
|
+
}
|
|
2194
|
+
/**
|
|
2195
|
+
* HoverCard Root component
|
|
2196
|
+
*/
|
|
2197
|
+
declare function HoverCardRoot({ openDelay, closeDelay, defaultOpen, ...props }: HoverCardRootProps): react_jsx_runtime.JSX.Element;
|
|
2198
|
+
declare namespace HoverCardRoot {
|
|
2199
|
+
var displayName: string;
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2202
|
+
/**
|
|
2203
|
+
* HoverCard Trigger Component
|
|
2204
|
+
*
|
|
2205
|
+
* Trigger element that opens HoverCard on hover/focus.
|
|
2206
|
+
*/
|
|
2207
|
+
|
|
2208
|
+
interface HoverCardTriggerProps extends PopoverTriggerProps {
|
|
2209
|
+
}
|
|
2210
|
+
/**
|
|
2211
|
+
* HoverCard Trigger component
|
|
2212
|
+
*/
|
|
2213
|
+
declare const HoverCardTrigger: React$1.ForwardRefExoticComponent<HoverCardTriggerProps & React$1.RefAttributes<HTMLElement>>;
|
|
2214
|
+
|
|
2215
|
+
/**
|
|
2216
|
+
* ContextMenu Content Component
|
|
2217
|
+
*
|
|
2218
|
+
* Content container for context menu.
|
|
2219
|
+
* Uses cursor position for initial placement.
|
|
2220
|
+
*/
|
|
2221
|
+
|
|
2222
|
+
interface ContextMenuContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2223
|
+
/**
|
|
2224
|
+
* Placement preference (if position is not set)
|
|
2225
|
+
*/
|
|
2226
|
+
placement?: Placement;
|
|
2227
|
+
/**
|
|
2228
|
+
* Offset between trigger and content (in pixels)
|
|
2229
|
+
*/
|
|
2230
|
+
offset?: number;
|
|
2231
|
+
}
|
|
2232
|
+
/**
|
|
2233
|
+
* ContextMenu Content component
|
|
2234
|
+
*/
|
|
2235
|
+
declare const ContextMenuContent: React$1.ForwardRefExoticComponent<ContextMenuContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2236
|
+
|
|
2237
|
+
/**
|
|
2238
|
+
* ContextMenu Group Component
|
|
2239
|
+
*
|
|
2240
|
+
* Group container for context menu.
|
|
2241
|
+
* Reuses DropdownMenuGroup.
|
|
2242
|
+
*/
|
|
2243
|
+
|
|
2244
|
+
interface ContextMenuGroupProps extends DropdownMenuGroupProps {
|
|
2245
|
+
}
|
|
2246
|
+
/**
|
|
2247
|
+
* ContextMenu Group component
|
|
2248
|
+
*/
|
|
2249
|
+
declare const ContextMenuGroup: React$1.ForwardRefExoticComponent<ContextMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2250
|
+
|
|
2251
|
+
/**
|
|
2252
|
+
* ContextMenu Item Component
|
|
2253
|
+
*
|
|
2254
|
+
* Menu item for context menu.
|
|
2255
|
+
* Reuses DropdownMenuItem logic.
|
|
2256
|
+
*/
|
|
2257
|
+
|
|
2258
|
+
interface ContextMenuItemProps extends DropdownMenuItemProps {
|
|
2259
|
+
}
|
|
2260
|
+
/**
|
|
2261
|
+
* ContextMenu Item component
|
|
2262
|
+
*/
|
|
2263
|
+
declare const ContextMenuItem: React$1.ForwardRefExoticComponent<ContextMenuItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2264
|
+
|
|
2265
|
+
/**
|
|
2266
|
+
* ContextMenu Label Component
|
|
2267
|
+
*
|
|
2268
|
+
* Label for context menu.
|
|
2269
|
+
* Reuses DropdownMenuLabel.
|
|
2270
|
+
*/
|
|
2271
|
+
|
|
2272
|
+
interface ContextMenuLabelProps extends DropdownMenuLabelProps {
|
|
2273
|
+
}
|
|
2274
|
+
/**
|
|
2275
|
+
* ContextMenu Label component
|
|
2276
|
+
*/
|
|
2277
|
+
declare const ContextMenuLabel: React$1.ForwardRefExoticComponent<ContextMenuLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2278
|
+
|
|
2279
|
+
interface ContextMenuRootProps extends Omit<PopoverRootProps, "open" | "onOpenChange"> {
|
|
2280
|
+
}
|
|
2281
|
+
/**
|
|
2282
|
+
* ContextMenu Root component
|
|
2283
|
+
*/
|
|
2284
|
+
declare function ContextMenuRoot(props: ContextMenuRootProps): react_jsx_runtime.JSX.Element;
|
|
2285
|
+
declare namespace ContextMenuRoot {
|
|
2286
|
+
var displayName: string;
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* ContextMenu Separator Component
|
|
2291
|
+
*
|
|
2292
|
+
* Visual separator for context menu.
|
|
2293
|
+
* Reuses DropdownMenuSeparator.
|
|
2294
|
+
*/
|
|
2295
|
+
|
|
2296
|
+
interface ContextMenuSeparatorProps extends DropdownMenuSeparatorProps {
|
|
2297
|
+
}
|
|
2298
|
+
/**
|
|
2299
|
+
* ContextMenu Separator component
|
|
2300
|
+
*/
|
|
2301
|
+
declare const ContextMenuSeparator: React$1.ForwardRefExoticComponent<ContextMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2302
|
+
|
|
2303
|
+
/**
|
|
2304
|
+
* ContextMenu Trigger Component
|
|
2305
|
+
*
|
|
2306
|
+
* Trigger element that opens context menu on right-click.
|
|
2307
|
+
*/
|
|
2308
|
+
|
|
2309
|
+
interface ContextMenuTriggerProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2310
|
+
/**
|
|
2311
|
+
* Render as child element (composition pattern)
|
|
2312
|
+
*/
|
|
2313
|
+
asChild?: boolean;
|
|
2314
|
+
}
|
|
2315
|
+
/**
|
|
2316
|
+
* ContextMenu Trigger component
|
|
2317
|
+
*/
|
|
2318
|
+
declare const ContextMenuTrigger: React$1.ForwardRefExoticComponent<ContextMenuTriggerProps & React$1.RefAttributes<HTMLElement>>;
|
|
2319
|
+
|
|
2320
|
+
declare const skeletonVariants: (props?: ({
|
|
2321
|
+
variant?: "text" | "circle" | "inline" | "block" | "card" | null | undefined;
|
|
2322
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2323
|
+
interface SkeletonProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
|
|
2324
|
+
/**
|
|
2325
|
+
* Whether to hide from screen readers
|
|
2326
|
+
* @default true
|
|
2327
|
+
*/
|
|
2328
|
+
"aria-hidden"?: boolean;
|
|
2329
|
+
}
|
|
2330
|
+
/**
|
|
2331
|
+
* Skeleton component for loading states
|
|
2332
|
+
*
|
|
2333
|
+
* @example
|
|
2334
|
+
* ```tsx
|
|
2335
|
+
* <Skeleton variant="text" />
|
|
2336
|
+
* <Skeleton variant="circle" />
|
|
2337
|
+
* <Skeleton variant="card" />
|
|
2338
|
+
* ```
|
|
2339
|
+
*/
|
|
2340
|
+
declare const Skeleton: React$1.ForwardRefExoticComponent<SkeletonProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2341
|
+
|
|
2342
|
+
/**
|
|
2343
|
+
* EmptyState Component
|
|
2344
|
+
*
|
|
2345
|
+
* Token-driven empty state component for displaying empty or no-data states.
|
|
2346
|
+
* Uses DATA_TOKENS for all spacing and sizing.
|
|
2347
|
+
* Integrates with Surface and Stack components.
|
|
2348
|
+
*/
|
|
2349
|
+
|
|
2350
|
+
interface EmptyStateProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2351
|
+
/**
|
|
2352
|
+
* Unique ID for accessibility (auto-generated if not provided)
|
|
2353
|
+
*/
|
|
2354
|
+
id?: string;
|
|
2355
|
+
}
|
|
2356
|
+
/**
|
|
2357
|
+
* EmptyState root component
|
|
2358
|
+
*
|
|
2359
|
+
* @example
|
|
2360
|
+
* ```tsx
|
|
2361
|
+
* <EmptyState>
|
|
2362
|
+
* <EmptyState.Icon>📭</EmptyState.Icon>
|
|
2363
|
+
* <EmptyState.Title>No items found</EmptyState.Title>
|
|
2364
|
+
* <EmptyState.Description>Try adjusting your filters</EmptyState.Description>
|
|
2365
|
+
* <EmptyState.Action>
|
|
2366
|
+
* <Button>Create Item</Button>
|
|
2367
|
+
* </EmptyState.Action>
|
|
2368
|
+
* </EmptyState>
|
|
2369
|
+
* ```
|
|
2370
|
+
*/
|
|
2371
|
+
declare const EmptyState: React$1.ForwardRefExoticComponent<EmptyStateProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2372
|
+
|
|
2373
|
+
/**
|
|
2374
|
+
* EmptyState Action Component
|
|
2375
|
+
*
|
|
2376
|
+
* Action subcomponent for EmptyState (typically contains Button).
|
|
2377
|
+
*/
|
|
2378
|
+
|
|
2379
|
+
interface EmptyStateActionProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2380
|
+
/**
|
|
2381
|
+
* Action button or link (typically Button component)
|
|
2382
|
+
*/
|
|
2383
|
+
children: React$1.ReactNode;
|
|
2384
|
+
}
|
|
2385
|
+
/**
|
|
2386
|
+
* EmptyState Action component
|
|
2387
|
+
*/
|
|
2388
|
+
declare const EmptyStateAction: React$1.ForwardRefExoticComponent<EmptyStateActionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2389
|
+
|
|
2390
|
+
/**
|
|
2391
|
+
* EmptyState Description Component
|
|
2392
|
+
*
|
|
2393
|
+
* Description subcomponent for EmptyState.
|
|
2394
|
+
*/
|
|
2395
|
+
|
|
2396
|
+
interface EmptyStateDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
2397
|
+
/**
|
|
2398
|
+
* Description text
|
|
2399
|
+
*/
|
|
2400
|
+
children: React$1.ReactNode;
|
|
2401
|
+
}
|
|
2402
|
+
/**
|
|
2403
|
+
* EmptyState Description component
|
|
2404
|
+
*/
|
|
2405
|
+
declare const EmptyStateDescription: React$1.ForwardRefExoticComponent<EmptyStateDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
2406
|
+
|
|
2407
|
+
/**
|
|
2408
|
+
* EmptyState Icon Component
|
|
2409
|
+
*
|
|
2410
|
+
* Icon subcomponent for EmptyState.
|
|
2411
|
+
*/
|
|
2412
|
+
|
|
2413
|
+
interface EmptyStateIconProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2414
|
+
/**
|
|
2415
|
+
* Icon content (any ReactNode)
|
|
2416
|
+
*/
|
|
2417
|
+
children: React$1.ReactNode;
|
|
2418
|
+
/**
|
|
2419
|
+
* Icon size
|
|
2420
|
+
* @default "md"
|
|
2421
|
+
*/
|
|
2422
|
+
size?: "sm" | "md" | "lg";
|
|
2423
|
+
}
|
|
2424
|
+
/**
|
|
2425
|
+
* EmptyState Icon component
|
|
2426
|
+
*/
|
|
2427
|
+
declare const EmptyStateIcon: React$1.ForwardRefExoticComponent<EmptyStateIconProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2428
|
+
|
|
2429
|
+
/**
|
|
2430
|
+
* EmptyState Title Component
|
|
2431
|
+
*
|
|
2432
|
+
* Title subcomponent for EmptyState.
|
|
2433
|
+
*/
|
|
2434
|
+
|
|
2435
|
+
interface EmptyStateTitleProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
2436
|
+
/**
|
|
2437
|
+
* Title text
|
|
2438
|
+
*/
|
|
2439
|
+
children: React$1.ReactNode;
|
|
2440
|
+
}
|
|
2441
|
+
/**
|
|
2442
|
+
* EmptyState Title component
|
|
2443
|
+
*/
|
|
2444
|
+
declare const EmptyStateTitle: React$1.ForwardRefExoticComponent<EmptyStateTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* DataList Root Component
|
|
2448
|
+
*
|
|
2449
|
+
* Mobile-first data list component for displaying key-value pairs.
|
|
2450
|
+
* Uses Stack for vertical layout and DATA_TOKENS for spacing.
|
|
2451
|
+
*/
|
|
2452
|
+
|
|
2453
|
+
interface DataListRootProps extends React$1.HTMLAttributes<HTMLDListElement> {
|
|
2454
|
+
/**
|
|
2455
|
+
* Label width for desktop layout
|
|
2456
|
+
* @default "md"
|
|
2457
|
+
*/
|
|
2458
|
+
labelWidth?: "sm" | "md" | "lg";
|
|
2459
|
+
}
|
|
2460
|
+
/**
|
|
2461
|
+
* DataList Root component
|
|
2462
|
+
*
|
|
2463
|
+
* @example
|
|
2464
|
+
* ```tsx
|
|
2465
|
+
* <DataList.Root>
|
|
2466
|
+
* <DataList.Item>
|
|
2467
|
+
* <DataList.Label>Name</DataList.Label>
|
|
2468
|
+
* <DataList.Value>John Doe</DataList.Value>
|
|
2469
|
+
* </DataList.Item>
|
|
2470
|
+
* </DataList.Root>
|
|
2471
|
+
* ```
|
|
2472
|
+
*/
|
|
2473
|
+
declare const DataListRoot: React$1.ForwardRefExoticComponent<DataListRootProps & React$1.RefAttributes<HTMLDListElement>>;
|
|
2474
|
+
|
|
2475
|
+
/**
|
|
2476
|
+
* DataList Item Component
|
|
2477
|
+
*
|
|
2478
|
+
* Individual item in DataList (contains Label and Value).
|
|
2479
|
+
*/
|
|
2480
|
+
|
|
2481
|
+
interface DataListItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2482
|
+
/**
|
|
2483
|
+
* Row padding
|
|
2484
|
+
* @default "md"
|
|
2485
|
+
*/
|
|
2486
|
+
padding?: "sm" | "md" | "lg";
|
|
2487
|
+
}
|
|
2488
|
+
/**
|
|
2489
|
+
* DataList Item component
|
|
2490
|
+
* Mobile: vertical layout (label above value)
|
|
2491
|
+
* Desktop: horizontal layout (label left, value right)
|
|
2492
|
+
*/
|
|
2493
|
+
declare const DataListItem: React$1.ForwardRefExoticComponent<DataListItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2494
|
+
|
|
2495
|
+
/**
|
|
2496
|
+
* DataList Label Component
|
|
2497
|
+
*
|
|
2498
|
+
* Label subcomponent for DataList items.
|
|
2499
|
+
*/
|
|
2500
|
+
|
|
2501
|
+
interface DataListLabelProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2502
|
+
/**
|
|
2503
|
+
* Label text
|
|
2504
|
+
*/
|
|
2505
|
+
children: React$1.ReactNode;
|
|
2506
|
+
}
|
|
2507
|
+
/**
|
|
2508
|
+
* DataList Label component
|
|
2509
|
+
* Mobile: full width
|
|
2510
|
+
* Desktop: fixed width (from tokens)
|
|
2511
|
+
*/
|
|
2512
|
+
declare const DataListLabel: React$1.ForwardRefExoticComponent<DataListLabelProps & React$1.RefAttributes<HTMLElement>>;
|
|
2513
|
+
|
|
2514
|
+
/**
|
|
2515
|
+
* DataList Value Component
|
|
2516
|
+
*
|
|
2517
|
+
* Value subcomponent for DataList items.
|
|
2518
|
+
*/
|
|
2519
|
+
|
|
2520
|
+
interface DataListValueProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2521
|
+
/**
|
|
2522
|
+
* Value content
|
|
2523
|
+
*/
|
|
2524
|
+
children: React$1.ReactNode;
|
|
2525
|
+
}
|
|
2526
|
+
/**
|
|
2527
|
+
* DataList Value component
|
|
2528
|
+
* Flex-grow to fill remaining space on desktop
|
|
2529
|
+
*/
|
|
2530
|
+
declare const DataListValue: React$1.ForwardRefExoticComponent<DataListValueProps & React$1.RefAttributes<HTMLElement>>;
|
|
2531
|
+
|
|
2532
|
+
/**
|
|
2533
|
+
* Table Component Types
|
|
2534
|
+
*
|
|
2535
|
+
* TypeScript interfaces and types for Table component.
|
|
2536
|
+
*/
|
|
2537
|
+
|
|
2538
|
+
/**
|
|
2539
|
+
* Table column definition
|
|
2540
|
+
*/
|
|
2541
|
+
interface TableColumn<T = Record<string, unknown>> {
|
|
2542
|
+
/**
|
|
2543
|
+
* Column key (must match a key in the data object)
|
|
2544
|
+
*/
|
|
2545
|
+
key: keyof T;
|
|
2546
|
+
/**
|
|
2547
|
+
* Column header title
|
|
2548
|
+
*/
|
|
2549
|
+
title: string;
|
|
2550
|
+
/**
|
|
2551
|
+
* Custom render function for cell content
|
|
2552
|
+
*/
|
|
2553
|
+
render?: (value: T[keyof T], item: T, index: number) => ReactNode;
|
|
2554
|
+
/**
|
|
2555
|
+
* Column alignment
|
|
2556
|
+
* @default "left"
|
|
2557
|
+
*/
|
|
2558
|
+
align?: "left" | "center" | "right";
|
|
2559
|
+
/**
|
|
2560
|
+
* Column width (CSS value or Tailwind class)
|
|
2561
|
+
*/
|
|
2562
|
+
width?: string;
|
|
2563
|
+
/**
|
|
2564
|
+
* Whether column is sortable
|
|
2565
|
+
* @default false
|
|
2566
|
+
*/
|
|
2567
|
+
sortable?: boolean;
|
|
2568
|
+
/**
|
|
2569
|
+
* Cell size
|
|
2570
|
+
* @default "md"
|
|
2571
|
+
*/
|
|
2572
|
+
size?: "sm" | "md" | "lg";
|
|
2573
|
+
}
|
|
2574
|
+
/**
|
|
2575
|
+
* Sort direction
|
|
2576
|
+
*/
|
|
2577
|
+
type SortDirection = "asc" | "desc" | null;
|
|
2578
|
+
/**
|
|
2579
|
+
* Sort state
|
|
2580
|
+
*/
|
|
2581
|
+
interface SortState {
|
|
2582
|
+
/**
|
|
2583
|
+
* Column key being sorted
|
|
2584
|
+
*/
|
|
2585
|
+
column: string | null;
|
|
2586
|
+
/**
|
|
2587
|
+
* Sort direction
|
|
2588
|
+
*/
|
|
2589
|
+
direction: SortDirection;
|
|
2590
|
+
}
|
|
2591
|
+
/**
|
|
2592
|
+
* Table context value
|
|
2593
|
+
*/
|
|
2594
|
+
interface TableContextValue {
|
|
2595
|
+
/**
|
|
2596
|
+
* Current sort state
|
|
2597
|
+
*/
|
|
2598
|
+
sortState: SortState;
|
|
2599
|
+
/**
|
|
2600
|
+
* Set sort state
|
|
2601
|
+
*/
|
|
2602
|
+
setSortState: (state: SortState) => void;
|
|
2603
|
+
/**
|
|
2604
|
+
* Expanded rows (for expandable rows)
|
|
2605
|
+
*/
|
|
2606
|
+
expandedRows: Set<string | number>;
|
|
2607
|
+
/**
|
|
2608
|
+
* Toggle row expansion
|
|
2609
|
+
*/
|
|
2610
|
+
toggleRow: (rowKey: string | number) => void;
|
|
2611
|
+
/**
|
|
2612
|
+
* Whether table has expandable rows
|
|
2613
|
+
*/
|
|
2614
|
+
expandable?: boolean;
|
|
2615
|
+
/**
|
|
2616
|
+
* Render function for expandable content
|
|
2617
|
+
*/
|
|
2618
|
+
renderExpandableContent?: (item: unknown, index: number) => ReactNode;
|
|
2619
|
+
}
|
|
2620
|
+
/**
|
|
2621
|
+
* Table Root component props
|
|
2622
|
+
*/
|
|
2623
|
+
interface TableRootProps<T = Record<string, unknown>> extends React.HTMLAttributes<HTMLTableElement> {
|
|
2624
|
+
/**
|
|
2625
|
+
* Table data array
|
|
2626
|
+
*/
|
|
2627
|
+
data: T[];
|
|
2628
|
+
/**
|
|
2629
|
+
* Column definitions
|
|
2630
|
+
*/
|
|
2631
|
+
columns: TableColumn<T>[];
|
|
2632
|
+
/**
|
|
2633
|
+
* Key to use for row identification
|
|
2634
|
+
*/
|
|
2635
|
+
rowKey: keyof T | ((item: T, index: number) => string | number);
|
|
2636
|
+
/**
|
|
2637
|
+
* Whether table supports sorting
|
|
2638
|
+
* @default false
|
|
2639
|
+
*/
|
|
2640
|
+
sortable?: boolean;
|
|
2641
|
+
/**
|
|
2642
|
+
* Whether table supports expandable rows
|
|
2643
|
+
* @default false
|
|
2644
|
+
*/
|
|
2645
|
+
expandable?: boolean;
|
|
2646
|
+
/**
|
|
2647
|
+
* Render function for expandable content
|
|
2648
|
+
*/
|
|
2649
|
+
renderExpandableContent?: (item: T, index: number) => ReactNode;
|
|
2650
|
+
/**
|
|
2651
|
+
* Whether table is in loading state
|
|
2652
|
+
* @default false
|
|
2653
|
+
*/
|
|
2654
|
+
loading?: boolean;
|
|
2655
|
+
/**
|
|
2656
|
+
* Empty state message (shown when data is empty)
|
|
2657
|
+
*/
|
|
2658
|
+
emptyMessage?: string;
|
|
2659
|
+
/**
|
|
2660
|
+
* Whether header is sticky
|
|
2661
|
+
* @default false
|
|
2662
|
+
*/
|
|
2663
|
+
stickyHeader?: boolean;
|
|
2664
|
+
/**
|
|
2665
|
+
* Row size
|
|
2666
|
+
* @default "md"
|
|
2667
|
+
*/
|
|
2668
|
+
rowSize?: "sm" | "md" | "lg";
|
|
2669
|
+
}
|
|
2670
|
+
/**
|
|
2671
|
+
* Table Header component props
|
|
2672
|
+
*/
|
|
2673
|
+
interface TableHeaderProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
2674
|
+
/**
|
|
2675
|
+
* Whether header is sticky
|
|
2676
|
+
* @default false
|
|
2677
|
+
*/
|
|
2678
|
+
sticky?: boolean;
|
|
2679
|
+
}
|
|
2680
|
+
/**
|
|
2681
|
+
* Table Head component props
|
|
2682
|
+
*/
|
|
2683
|
+
interface TableHeadProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
2684
|
+
/**
|
|
2685
|
+
* Column alignment
|
|
2686
|
+
* @default "left"
|
|
2687
|
+
*/
|
|
2688
|
+
align?: "left" | "center" | "right";
|
|
2689
|
+
/**
|
|
2690
|
+
* Whether column is sortable
|
|
2691
|
+
* @default false
|
|
2692
|
+
*/
|
|
2693
|
+
sortable?: boolean;
|
|
2694
|
+
/**
|
|
2695
|
+
* Column key (for sorting)
|
|
2696
|
+
*/
|
|
2697
|
+
columnKey?: string;
|
|
2698
|
+
/**
|
|
2699
|
+
* Cell size
|
|
2700
|
+
* @default "md"
|
|
2701
|
+
*/
|
|
2702
|
+
size?: "sm" | "md" | "lg";
|
|
2703
|
+
}
|
|
2704
|
+
/**
|
|
2705
|
+
* Table Body component props
|
|
2706
|
+
*/
|
|
2707
|
+
interface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
2708
|
+
}
|
|
2709
|
+
/**
|
|
2710
|
+
* Table Row component props
|
|
2711
|
+
*/
|
|
2712
|
+
interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
2713
|
+
/**
|
|
2714
|
+
* Whether row is selected
|
|
2715
|
+
* @default false
|
|
2716
|
+
*/
|
|
2717
|
+
selected?: boolean;
|
|
2718
|
+
/**
|
|
2719
|
+
* Whether row is expandable
|
|
2720
|
+
* @default false
|
|
2721
|
+
*/
|
|
2722
|
+
expandable?: boolean;
|
|
2723
|
+
/**
|
|
2724
|
+
* Row key (for expansion tracking)
|
|
2725
|
+
*/
|
|
2726
|
+
rowKey?: string | number;
|
|
2727
|
+
/**
|
|
2728
|
+
* Whether row is expanded
|
|
2729
|
+
* @default false
|
|
2730
|
+
*/
|
|
2731
|
+
expanded?: boolean;
|
|
2732
|
+
}
|
|
2733
|
+
/**
|
|
2734
|
+
* Table Cell component props
|
|
2735
|
+
*/
|
|
2736
|
+
interface TableCellProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
2737
|
+
/**
|
|
2738
|
+
* Cell alignment
|
|
2739
|
+
* @default "left"
|
|
2740
|
+
*/
|
|
2741
|
+
align?: "left" | "center" | "right";
|
|
2742
|
+
/**
|
|
2743
|
+
* Cell size
|
|
2744
|
+
* @default "md"
|
|
2745
|
+
*/
|
|
2746
|
+
size?: "sm" | "md" | "lg";
|
|
2747
|
+
}
|
|
2748
|
+
/**
|
|
2749
|
+
* Table SortIcon component props
|
|
2750
|
+
*/
|
|
2751
|
+
interface TableSortIconProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
2752
|
+
/**
|
|
2753
|
+
* Sort direction
|
|
2754
|
+
*/
|
|
2755
|
+
direction: SortDirection;
|
|
2756
|
+
}
|
|
2757
|
+
/**
|
|
2758
|
+
* Table Empty component props
|
|
2759
|
+
*/
|
|
2760
|
+
interface TableEmptyProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
2761
|
+
/**
|
|
2762
|
+
* Number of columns to span
|
|
2763
|
+
*/
|
|
2764
|
+
colSpan: number;
|
|
2765
|
+
/**
|
|
2766
|
+
* Empty message
|
|
2767
|
+
*/
|
|
2768
|
+
message?: string;
|
|
2769
|
+
}
|
|
2770
|
+
/**
|
|
2771
|
+
* Table LoadingState component props
|
|
2772
|
+
*/
|
|
2773
|
+
interface TableLoadingStateProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
2774
|
+
/**
|
|
2775
|
+
* Number of columns to span
|
|
2776
|
+
*/
|
|
2777
|
+
colSpan: number;
|
|
2778
|
+
/**
|
|
2779
|
+
* Number of skeleton rows to show
|
|
2780
|
+
* @default 5
|
|
2781
|
+
*/
|
|
2782
|
+
rows?: number;
|
|
2783
|
+
}
|
|
2784
|
+
/**
|
|
2785
|
+
* Table ExpandableContent component props
|
|
2786
|
+
*/
|
|
2787
|
+
interface TableExpandableContentProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
2788
|
+
/**
|
|
2789
|
+
* Number of columns to span
|
|
2790
|
+
*/
|
|
2791
|
+
colSpan: number;
|
|
2792
|
+
/**
|
|
2793
|
+
* Whether content is expanded
|
|
2794
|
+
*/
|
|
2795
|
+
expanded: boolean;
|
|
2796
|
+
/**
|
|
2797
|
+
* Content to render
|
|
2798
|
+
*/
|
|
2799
|
+
children: ReactNode;
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
declare function useTableContext(): TableContextValue;
|
|
2803
|
+
/**
|
|
2804
|
+
* Table Root component
|
|
2805
|
+
*
|
|
2806
|
+
* @example
|
|
2807
|
+
* ```tsx
|
|
2808
|
+
* <Table.Root
|
|
2809
|
+
* data={users}
|
|
2810
|
+
* columns={columns}
|
|
2811
|
+
* rowKey="id"
|
|
2812
|
+
* sortable
|
|
2813
|
+
* >
|
|
2814
|
+
* <Table.Header>
|
|
2815
|
+
* <Table.Row>
|
|
2816
|
+
* <Table.Head>Name</Table.Head>
|
|
2817
|
+
* </Table.Row>
|
|
2818
|
+
* </Table.Header>
|
|
2819
|
+
* <Table.Body>
|
|
2820
|
+
* {users.map((user) => (
|
|
2821
|
+
* <Table.Row key={user.id}>
|
|
2822
|
+
* <Table.Cell>{user.name}</Table.Cell>
|
|
2823
|
+
* </Table.Row>
|
|
2824
|
+
* ))}
|
|
2825
|
+
* </Table.Body>
|
|
2826
|
+
* </Table.Root>
|
|
2827
|
+
* ```
|
|
2828
|
+
*/
|
|
2829
|
+
declare function TableRoot<T extends Record<string, unknown>>({ data: _data, columns: _columns, rowKey: _rowKey, sortable: _sortable, expandable, renderExpandableContent, loading: _loading, emptyMessage: _emptyMessage, stickyHeader: _stickyHeader, rowSize: _rowSize, className, children, ...props }: TableRootProps<T>): react_jsx_runtime.JSX.Element;
|
|
2830
|
+
declare namespace TableRoot {
|
|
2831
|
+
var displayName: string;
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
/**
|
|
2835
|
+
* Table Body Component
|
|
2836
|
+
*
|
|
2837
|
+
* Body section for table (tbody element).
|
|
2838
|
+
*/
|
|
2839
|
+
|
|
2840
|
+
/**
|
|
2841
|
+
* Table Body component
|
|
2842
|
+
*/
|
|
2843
|
+
declare const TableBody: React$1.ForwardRefExoticComponent<TableBodyProps & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
2844
|
+
|
|
2845
|
+
/**
|
|
2846
|
+
* Table Cell Component
|
|
2847
|
+
*
|
|
2848
|
+
* Table cell component with alignment and size support.
|
|
2849
|
+
*/
|
|
2850
|
+
|
|
2851
|
+
/**
|
|
2852
|
+
* Table Cell component
|
|
2853
|
+
*/
|
|
2854
|
+
declare const TableCell: React$1.ForwardRefExoticComponent<TableCellProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
2855
|
+
|
|
2856
|
+
/**
|
|
2857
|
+
* Table Empty Component
|
|
2858
|
+
*
|
|
2859
|
+
* Empty state row for table (uses EmptyState component).
|
|
2860
|
+
*/
|
|
2861
|
+
|
|
2862
|
+
/**
|
|
2863
|
+
* Table Empty component
|
|
2864
|
+
*/
|
|
2865
|
+
declare const TableEmpty: React$1.ForwardRefExoticComponent<TableEmptyProps & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
2866
|
+
|
|
2867
|
+
/**
|
|
2868
|
+
* Table ExpandableContent Component
|
|
2869
|
+
*
|
|
2870
|
+
* Expandable content cell with CSS height transitions.
|
|
2871
|
+
*/
|
|
2872
|
+
|
|
2873
|
+
/**
|
|
2874
|
+
* Table ExpandableContent component
|
|
2875
|
+
* Uses CSS height transitions (no framer-motion)
|
|
2876
|
+
*/
|
|
2877
|
+
declare const TableExpandableContent: React$1.ForwardRefExoticComponent<TableExpandableContentProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
2878
|
+
|
|
2879
|
+
/**
|
|
2880
|
+
* Table Head Component
|
|
2881
|
+
*
|
|
2882
|
+
* Header cell component with sorting support.
|
|
2883
|
+
*/
|
|
2884
|
+
|
|
2885
|
+
/**
|
|
2886
|
+
* Table Head component
|
|
2887
|
+
*/
|
|
2888
|
+
declare const TableHead: React$1.ForwardRefExoticComponent<TableHeadProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
2889
|
+
|
|
2890
|
+
/**
|
|
2891
|
+
* Table Header Component
|
|
2892
|
+
*
|
|
2893
|
+
* Header section for table (thead element).
|
|
2894
|
+
*/
|
|
2895
|
+
|
|
2896
|
+
/**
|
|
2897
|
+
* Table Header component
|
|
2898
|
+
*/
|
|
2899
|
+
declare const TableHeader: React$1.ForwardRefExoticComponent<TableHeaderProps & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
2900
|
+
|
|
2901
|
+
/**
|
|
2902
|
+
* Table LoadingState Component
|
|
2903
|
+
*
|
|
2904
|
+
* Loading state row for table (uses Skeleton component).
|
|
2905
|
+
*/
|
|
2906
|
+
|
|
2907
|
+
/**
|
|
2908
|
+
* Table LoadingState component
|
|
2909
|
+
*/
|
|
2910
|
+
declare const TableLoadingState: React$1.ForwardRefExoticComponent<TableLoadingStateProps & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
2911
|
+
|
|
2912
|
+
/**
|
|
2913
|
+
* Table Row Component
|
|
2914
|
+
*
|
|
2915
|
+
* Table row component with hover and selected states.
|
|
2916
|
+
*/
|
|
2917
|
+
|
|
2918
|
+
/**
|
|
2919
|
+
* Table Row component
|
|
2920
|
+
*/
|
|
2921
|
+
declare const TableRow: React$1.ForwardRefExoticComponent<TableRowProps & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
2922
|
+
|
|
2923
|
+
/**
|
|
2924
|
+
* Table SortIcon Component
|
|
2925
|
+
*
|
|
2926
|
+
* Sort indicator icon with rotation animation.
|
|
2927
|
+
*/
|
|
2928
|
+
|
|
2929
|
+
/**
|
|
2930
|
+
* Table SortIcon component
|
|
2931
|
+
* Uses CSS rotation animation (no framer-motion)
|
|
2932
|
+
*/
|
|
2933
|
+
declare const TableSortIcon: React$1.ForwardRefExoticComponent<TableSortIconProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2934
|
+
|
|
2935
|
+
declare const tabsListVariants: (props?: ({
|
|
2936
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
2937
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
2938
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2939
|
+
declare const tabsTriggerVariants: (props?: ({
|
|
2940
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
2941
|
+
state?: "default" | "selected" | null | undefined;
|
|
2942
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2943
|
+
interface TabsRootProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2944
|
+
/**
|
|
2945
|
+
* Controlled value for the active tab
|
|
2946
|
+
*/
|
|
2947
|
+
value?: string;
|
|
2948
|
+
/**
|
|
2949
|
+
* Default value for uncontrolled usage
|
|
2950
|
+
*/
|
|
2951
|
+
defaultValue?: string;
|
|
2952
|
+
/**
|
|
2953
|
+
* Callback when the active tab changes
|
|
2954
|
+
*/
|
|
2955
|
+
onValueChange?: (value: string) => void;
|
|
2956
|
+
/**
|
|
2957
|
+
* Orientation of the tabs
|
|
2958
|
+
* @default "horizontal"
|
|
2959
|
+
*/
|
|
2960
|
+
orientation?: "horizontal" | "vertical";
|
|
2961
|
+
}
|
|
2962
|
+
interface TabsListProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "role">, VariantProps<typeof tabsListVariants> {
|
|
2963
|
+
/**
|
|
2964
|
+
* Gap between tab items
|
|
2965
|
+
*/
|
|
2966
|
+
gap?: "xs" | "sm" | "md" | "lg";
|
|
2967
|
+
}
|
|
2968
|
+
interface TabsTriggerProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "role">, VariantProps<typeof tabsTriggerVariants> {
|
|
2969
|
+
/**
|
|
2970
|
+
* Value of this tab (must be unique)
|
|
2971
|
+
*/
|
|
2972
|
+
value: string;
|
|
2973
|
+
/**
|
|
2974
|
+
* Whether this tab is disabled
|
|
2975
|
+
*/
|
|
2976
|
+
disabled?: boolean;
|
|
2977
|
+
}
|
|
2978
|
+
interface TabsContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2979
|
+
/**
|
|
2980
|
+
* Value of the tab this content belongs to
|
|
2981
|
+
*/
|
|
2982
|
+
value: string;
|
|
2983
|
+
/**
|
|
2984
|
+
* Force mount the content (useful for SSR)
|
|
2985
|
+
*/
|
|
2986
|
+
forceMount?: boolean;
|
|
2987
|
+
}
|
|
2988
|
+
/**
|
|
2989
|
+
* Tabs.List - Container for tab triggers
|
|
2990
|
+
*/
|
|
2991
|
+
interface TabsListPropsInternal extends TabsListProps {
|
|
2992
|
+
onSizeChange?: (size: "sm" | "md" | "lg") => void;
|
|
2993
|
+
}
|
|
2994
|
+
/**
|
|
2995
|
+
* Tabs.Trigger - Individual tab button
|
|
2996
|
+
*/
|
|
2997
|
+
interface TabsTriggerPropsInternal extends TabsTriggerProps {
|
|
2998
|
+
}
|
|
2999
|
+
declare const Tabs: React$1.ForwardRefExoticComponent<TabsRootProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
3000
|
+
Root: React$1.ForwardRefExoticComponent<TabsRootProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3001
|
+
List: React$1.ForwardRefExoticComponent<TabsListPropsInternal & React$1.RefAttributes<HTMLDivElement>>;
|
|
3002
|
+
Trigger: React$1.ForwardRefExoticComponent<TabsTriggerPropsInternal & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3003
|
+
Content: React$1.ForwardRefExoticComponent<TabsContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3004
|
+
};
|
|
3005
|
+
|
|
3006
|
+
declare const segmentedControlRootVariants: (props?: ({
|
|
3007
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
3008
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3009
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
3010
|
+
declare const segmentedControlItemVariants: (props?: ({
|
|
3011
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3012
|
+
state?: "default" | "selected" | null | undefined;
|
|
3013
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
3014
|
+
interface SegmentedControlRootProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "role">, VariantProps<typeof segmentedControlRootVariants> {
|
|
3015
|
+
/**
|
|
3016
|
+
* Controlled value
|
|
3017
|
+
*/
|
|
3018
|
+
value?: string;
|
|
3019
|
+
/**
|
|
3020
|
+
* Default value for uncontrolled usage
|
|
3021
|
+
*/
|
|
3022
|
+
defaultValue?: string;
|
|
3023
|
+
/**
|
|
3024
|
+
* Callback when value changes
|
|
3025
|
+
*/
|
|
3026
|
+
onValueChange?: (value: string) => void;
|
|
3027
|
+
/**
|
|
3028
|
+
* Name for the radio group
|
|
3029
|
+
*/
|
|
3030
|
+
name?: string;
|
|
3031
|
+
}
|
|
3032
|
+
interface SegmentedControlItemProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "role">, VariantProps<typeof segmentedControlItemVariants> {
|
|
3033
|
+
/**
|
|
3034
|
+
* Value of this item
|
|
3035
|
+
*/
|
|
3036
|
+
value: string;
|
|
3037
|
+
/**
|
|
3038
|
+
* Whether this item is disabled
|
|
3039
|
+
*/
|
|
3040
|
+
disabled?: boolean;
|
|
3041
|
+
}
|
|
3042
|
+
declare const SegmentedControl: React$1.ForwardRefExoticComponent<SegmentedControlRootProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
3043
|
+
Root: React$1.ForwardRefExoticComponent<SegmentedControlRootProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3044
|
+
Item: React$1.ForwardRefExoticComponent<SegmentedControlItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3045
|
+
};
|
|
3046
|
+
|
|
3047
|
+
interface BreadcrumbItem {
|
|
3048
|
+
/**
|
|
3049
|
+
* Label text for the breadcrumb item
|
|
3050
|
+
*/
|
|
3051
|
+
label: string;
|
|
3052
|
+
/**
|
|
3053
|
+
* Optional href for clickable items
|
|
3054
|
+
*/
|
|
3055
|
+
href?: string;
|
|
3056
|
+
/**
|
|
3057
|
+
* Whether this item is disabled
|
|
3058
|
+
*/
|
|
3059
|
+
disabled?: boolean;
|
|
3060
|
+
}
|
|
3061
|
+
interface BreadcrumbsRootProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
3062
|
+
/**
|
|
3063
|
+
* Array of breadcrumb items
|
|
3064
|
+
*/
|
|
3065
|
+
items: BreadcrumbItem[];
|
|
3066
|
+
/**
|
|
3067
|
+
* Custom separator component or string
|
|
3068
|
+
* @default ChevronRight icon
|
|
3069
|
+
*/
|
|
3070
|
+
separator?: React$1.ReactNode;
|
|
3071
|
+
/**
|
|
3072
|
+
* ARIA label for the navigation element
|
|
3073
|
+
* @default "Breadcrumb"
|
|
3074
|
+
*/
|
|
3075
|
+
ariaLabel?: string;
|
|
3076
|
+
}
|
|
3077
|
+
interface BreadcrumbsItemProps extends React$1.HTMLAttributes<HTMLLIElement> {
|
|
3078
|
+
/**
|
|
3079
|
+
* Whether this is the last item (current page)
|
|
3080
|
+
*/
|
|
3081
|
+
isLast?: boolean;
|
|
3082
|
+
/**
|
|
3083
|
+
* Whether this item is disabled
|
|
3084
|
+
*/
|
|
3085
|
+
disabled?: boolean;
|
|
3086
|
+
}
|
|
3087
|
+
interface BreadcrumbsSeparatorProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
3088
|
+
/**
|
|
3089
|
+
* Custom separator content
|
|
3090
|
+
*/
|
|
3091
|
+
children?: React$1.ReactNode;
|
|
3092
|
+
}
|
|
3093
|
+
declare const Breadcrumbs: React$1.ForwardRefExoticComponent<BreadcrumbsRootProps & React$1.RefAttributes<HTMLElement>> & {
|
|
3094
|
+
Root: React$1.ForwardRefExoticComponent<BreadcrumbsRootProps & React$1.RefAttributes<HTMLElement>>;
|
|
3095
|
+
Item: React$1.ForwardRefExoticComponent<BreadcrumbsItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
3096
|
+
Separator: React$1.ForwardRefExoticComponent<BreadcrumbsSeparatorProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
3097
|
+
};
|
|
3098
|
+
|
|
3099
|
+
interface PaginationRootProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
3100
|
+
/**
|
|
3101
|
+
* Current active page (1-indexed)
|
|
3102
|
+
*/
|
|
3103
|
+
currentPage: number;
|
|
3104
|
+
/**
|
|
3105
|
+
* Total number of pages
|
|
3106
|
+
*/
|
|
3107
|
+
totalPages: number;
|
|
3108
|
+
/**
|
|
3109
|
+
* Callback when page changes
|
|
3110
|
+
*/
|
|
3111
|
+
onPageChange: (page: number) => void;
|
|
3112
|
+
/**
|
|
3113
|
+
* Number of pages to show on each side of current page
|
|
3114
|
+
* @default 2
|
|
3115
|
+
*/
|
|
3116
|
+
delta?: number;
|
|
3117
|
+
/**
|
|
3118
|
+
* ARIA label for the navigation element
|
|
3119
|
+
* @default "Pagination"
|
|
3120
|
+
*/
|
|
3121
|
+
ariaLabel?: string;
|
|
3122
|
+
}
|
|
3123
|
+
interface PaginationItemProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3124
|
+
/**
|
|
3125
|
+
* Page number (or "..." for ellipsis)
|
|
3126
|
+
*/
|
|
3127
|
+
page: number | "...";
|
|
3128
|
+
/**
|
|
3129
|
+
* Whether this is the current page
|
|
3130
|
+
*/
|
|
3131
|
+
isCurrent?: boolean;
|
|
3132
|
+
/**
|
|
3133
|
+
* Whether this item is disabled
|
|
3134
|
+
*/
|
|
3135
|
+
disabled?: boolean;
|
|
3136
|
+
}
|
|
3137
|
+
interface PaginationPrevProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3138
|
+
/**
|
|
3139
|
+
* Whether previous button is disabled
|
|
3140
|
+
*/
|
|
3141
|
+
disabled?: boolean;
|
|
3142
|
+
}
|
|
3143
|
+
interface PaginationNextProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3144
|
+
/**
|
|
3145
|
+
* Whether next button is disabled
|
|
3146
|
+
*/
|
|
3147
|
+
disabled?: boolean;
|
|
3148
|
+
}
|
|
3149
|
+
interface PaginationEllipsisProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
3150
|
+
}
|
|
3151
|
+
declare const Pagination: React$1.ForwardRefExoticComponent<PaginationRootProps & React$1.RefAttributes<HTMLElement>> & {
|
|
3152
|
+
Root: React$1.ForwardRefExoticComponent<PaginationRootProps & React$1.RefAttributes<HTMLElement>>;
|
|
3153
|
+
Item: React$1.ForwardRefExoticComponent<PaginationItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3154
|
+
Prev: React$1.ForwardRefExoticComponent<PaginationPrevProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3155
|
+
Next: React$1.ForwardRefExoticComponent<PaginationNextProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3156
|
+
Ellipsis: React$1.ForwardRefExoticComponent<PaginationEllipsisProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
3157
|
+
};
|
|
3158
|
+
|
|
3159
|
+
interface StepperStep {
|
|
3160
|
+
/**
|
|
3161
|
+
* Unique identifier for the step
|
|
3162
|
+
*/
|
|
3163
|
+
id: string;
|
|
3164
|
+
/**
|
|
3165
|
+
* Label text for the step
|
|
3166
|
+
*/
|
|
3167
|
+
label: string;
|
|
3168
|
+
/**
|
|
3169
|
+
* Optional description for the step
|
|
3170
|
+
*/
|
|
3171
|
+
description?: string;
|
|
3172
|
+
/**
|
|
3173
|
+
* Optional icon for the step indicator
|
|
3174
|
+
*/
|
|
3175
|
+
icon?: React$1.ReactNode;
|
|
3176
|
+
/**
|
|
3177
|
+
* Whether this step is disabled
|
|
3178
|
+
*/
|
|
3179
|
+
disabled?: boolean;
|
|
3180
|
+
}
|
|
3181
|
+
interface StepperRootProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3182
|
+
/**
|
|
3183
|
+
* Array of steps
|
|
3184
|
+
*/
|
|
3185
|
+
steps: StepperStep[];
|
|
3186
|
+
/**
|
|
3187
|
+
* Current active step index (0-indexed)
|
|
3188
|
+
*/
|
|
3189
|
+
activeStep: number;
|
|
3190
|
+
/**
|
|
3191
|
+
* Orientation of the stepper
|
|
3192
|
+
* @default "horizontal"
|
|
3193
|
+
*/
|
|
3194
|
+
orientation?: "horizontal" | "vertical";
|
|
3195
|
+
/**
|
|
3196
|
+
* Whether to show step numbers
|
|
3197
|
+
* @default true
|
|
3198
|
+
*/
|
|
3199
|
+
showNumbers?: boolean;
|
|
3200
|
+
}
|
|
3201
|
+
interface StepperItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3202
|
+
/**
|
|
3203
|
+
* Step data
|
|
3204
|
+
*/
|
|
3205
|
+
step: StepperStep;
|
|
3206
|
+
/**
|
|
3207
|
+
* Step index (0-indexed)
|
|
3208
|
+
*/
|
|
3209
|
+
index: number;
|
|
3210
|
+
/**
|
|
3211
|
+
* Whether this is the active step
|
|
3212
|
+
*/
|
|
3213
|
+
isActive: boolean;
|
|
3214
|
+
/**
|
|
3215
|
+
* Whether this step is completed
|
|
3216
|
+
*/
|
|
3217
|
+
isCompleted: boolean;
|
|
3218
|
+
/**
|
|
3219
|
+
* Whether to show step number
|
|
3220
|
+
*/
|
|
3221
|
+
showNumber?: boolean;
|
|
3222
|
+
}
|
|
3223
|
+
interface StepperIndicatorProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3224
|
+
/**
|
|
3225
|
+
* Step index
|
|
3226
|
+
*/
|
|
3227
|
+
index: number;
|
|
3228
|
+
/**
|
|
3229
|
+
* Whether this is the active step
|
|
3230
|
+
*/
|
|
3231
|
+
isActive: boolean;
|
|
3232
|
+
/**
|
|
3233
|
+
* Whether this step is completed
|
|
3234
|
+
*/
|
|
3235
|
+
isCompleted: boolean;
|
|
3236
|
+
/**
|
|
3237
|
+
* Whether this step is disabled
|
|
3238
|
+
*/
|
|
3239
|
+
disabled?: boolean;
|
|
3240
|
+
/**
|
|
3241
|
+
* Custom icon
|
|
3242
|
+
*/
|
|
3243
|
+
icon?: React$1.ReactNode;
|
|
3244
|
+
/**
|
|
3245
|
+
* Whether to show step number
|
|
3246
|
+
*/
|
|
3247
|
+
showNumber?: boolean;
|
|
3248
|
+
}
|
|
3249
|
+
interface StepperLabelProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3250
|
+
/**
|
|
3251
|
+
* Step label text
|
|
3252
|
+
*/
|
|
3253
|
+
label: string;
|
|
3254
|
+
/**
|
|
3255
|
+
* Optional description
|
|
3256
|
+
*/
|
|
3257
|
+
description?: string;
|
|
3258
|
+
/**
|
|
3259
|
+
* Whether this is the active step
|
|
3260
|
+
*/
|
|
3261
|
+
isActive: boolean;
|
|
3262
|
+
}
|
|
3263
|
+
interface StepperContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3264
|
+
/**
|
|
3265
|
+
* Step index this content belongs to
|
|
3266
|
+
*/
|
|
3267
|
+
stepIndex: number;
|
|
3268
|
+
/**
|
|
3269
|
+
* Whether this content should be visible
|
|
3270
|
+
*/
|
|
3271
|
+
isActive: boolean;
|
|
3272
|
+
}
|
|
3273
|
+
/**
|
|
3274
|
+
* Stepper.Item - Individual step container
|
|
3275
|
+
*/
|
|
3276
|
+
interface StepperItemPropsInternal extends StepperItemProps {
|
|
3277
|
+
orientation?: "horizontal" | "vertical";
|
|
3278
|
+
}
|
|
3279
|
+
declare const Stepper: React$1.ForwardRefExoticComponent<StepperRootProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
3280
|
+
Root: React$1.ForwardRefExoticComponent<StepperRootProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3281
|
+
Item: React$1.ForwardRefExoticComponent<StepperItemPropsInternal & React$1.RefAttributes<HTMLDivElement>>;
|
|
3282
|
+
Indicator: React$1.ForwardRefExoticComponent<StepperIndicatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3283
|
+
Label: React$1.ForwardRefExoticComponent<StepperLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3284
|
+
Content: React$1.ForwardRefExoticComponent<StepperContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3285
|
+
};
|
|
3286
|
+
|
|
3287
|
+
/**
|
|
3288
|
+
* Icon Props Interface
|
|
3289
|
+
*
|
|
3290
|
+
* Shared props interface for all icon components.
|
|
3291
|
+
* Ensures consistent API across all icons in the registry.
|
|
3292
|
+
*/
|
|
3293
|
+
|
|
3294
|
+
/**
|
|
3295
|
+
* Base props for all icon components
|
|
3296
|
+
*/
|
|
3297
|
+
interface IconProps$1 extends React$1.SVGProps<SVGSVGElement> {
|
|
3298
|
+
/**
|
|
3299
|
+
* Additional CSS classes
|
|
3300
|
+
*/
|
|
3301
|
+
className?: string;
|
|
3302
|
+
/**
|
|
3303
|
+
* Hide icon from screen readers
|
|
3304
|
+
* @default true
|
|
3305
|
+
*/
|
|
3306
|
+
"aria-hidden"?: boolean;
|
|
3307
|
+
/**
|
|
3308
|
+
* Accessible label for the icon
|
|
3309
|
+
*/
|
|
3310
|
+
"aria-label"?: string;
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
/**
|
|
3314
|
+
* Arrow right icon component
|
|
3315
|
+
*/
|
|
3316
|
+
declare const IconArrowRight: React$1.FC<IconProps$1>;
|
|
3317
|
+
|
|
3318
|
+
/**
|
|
3319
|
+
* Calendar icon component
|
|
3320
|
+
*/
|
|
3321
|
+
declare const IconCalendar: React$1.FC<IconProps$1>;
|
|
3322
|
+
|
|
3323
|
+
/**
|
|
3324
|
+
* Check icon component (checkmark)
|
|
3325
|
+
*/
|
|
3326
|
+
declare const IconCheck: React$1.FC<IconProps$1>;
|
|
3327
|
+
|
|
3328
|
+
/**
|
|
3329
|
+
* Chevron down icon component
|
|
3330
|
+
*/
|
|
3331
|
+
declare const IconChevronDown: React$1.FC<IconProps$1>;
|
|
3332
|
+
|
|
3333
|
+
/**
|
|
3334
|
+
* Chevron right icon component
|
|
3335
|
+
*/
|
|
3336
|
+
declare const IconChevronRight: React$1.FC<IconProps$1>;
|
|
3337
|
+
|
|
3338
|
+
/**
|
|
3339
|
+
* Close icon component (X)
|
|
3340
|
+
*/
|
|
3341
|
+
declare const IconClose: React$1.FC<IconProps$1>;
|
|
3342
|
+
|
|
3343
|
+
/**
|
|
3344
|
+
* Error icon component (X in circle - used as fallback)
|
|
3345
|
+
*/
|
|
3346
|
+
declare const IconError: React$1.FC<IconProps$1>;
|
|
3347
|
+
|
|
3348
|
+
/**
|
|
3349
|
+
* Info icon component (information circle)
|
|
3350
|
+
*/
|
|
3351
|
+
declare const IconInfo: React$1.FC<IconProps$1>;
|
|
3352
|
+
|
|
3353
|
+
/**
|
|
3354
|
+
* Location icon component
|
|
3355
|
+
*/
|
|
3356
|
+
declare const IconLocation: React$1.FC<IconProps$1>;
|
|
3357
|
+
|
|
3358
|
+
/**
|
|
3359
|
+
* Menu icon component (hamburger menu)
|
|
3360
|
+
*/
|
|
3361
|
+
declare const IconMenu: React$1.FC<IconProps$1>;
|
|
3362
|
+
|
|
3363
|
+
/**
|
|
3364
|
+
* Search icon component
|
|
3365
|
+
*/
|
|
3366
|
+
declare const IconSearch: React$1.FC<IconProps$1>;
|
|
3367
|
+
|
|
3368
|
+
/**
|
|
3369
|
+
* Success icon component (checkmark in circle)
|
|
3370
|
+
*/
|
|
3371
|
+
declare const IconSuccess: React$1.FC<IconProps$1>;
|
|
3372
|
+
|
|
3373
|
+
/**
|
|
3374
|
+
* Warning icon component (warning triangle)
|
|
3375
|
+
*/
|
|
3376
|
+
declare const IconWarning: React$1.FC<IconProps$1>;
|
|
3377
|
+
|
|
3378
|
+
/**
|
|
3379
|
+
* Icon Registry
|
|
3380
|
+
*
|
|
3381
|
+
* Central registry for all icon components.
|
|
3382
|
+
* Supports tree-shaking through individual named exports.
|
|
3383
|
+
*/
|
|
3384
|
+
|
|
3385
|
+
/**
|
|
3386
|
+
* Icons map for registry lookup
|
|
3387
|
+
* Used by Icon component to resolve icon by name
|
|
3388
|
+
*/
|
|
3389
|
+
declare const ICONS_MAP: Record<string, React$1.FC<IconProps$1>>;
|
|
3390
|
+
/**
|
|
3391
|
+
* Icon name type - union of all available icon names
|
|
3392
|
+
*/
|
|
3393
|
+
type IconName = keyof typeof ICONS_MAP;
|
|
3394
|
+
|
|
3395
|
+
declare const iconVariants: (props?: ({
|
|
3396
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
3397
|
+
color?: "muted" | "default" | "success" | "warning" | "danger" | "info" | null | undefined;
|
|
3398
|
+
stroke?: "normal" | "bold" | "thin" | null | undefined;
|
|
3399
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
3400
|
+
interface IconProps extends Omit<React$1.SVGProps<SVGSVGElement>, "color" | "stroke">, VariantProps<typeof iconVariants> {
|
|
3401
|
+
/**
|
|
3402
|
+
* Icon name from registry
|
|
3403
|
+
*/
|
|
3404
|
+
name: IconName;
|
|
3405
|
+
/**
|
|
3406
|
+
* Render as child element (composition pattern)
|
|
3407
|
+
* Uses Radix UI Slot for composition
|
|
3408
|
+
*/
|
|
3409
|
+
asChild?: boolean;
|
|
3410
|
+
}
|
|
3411
|
+
/**
|
|
3412
|
+
* Icon component
|
|
3413
|
+
*
|
|
3414
|
+
* Unified icon component with token-driven sizing, colors, and stroke.
|
|
3415
|
+
* Supports SSR-safe rendering and tree-shakeable icon registry.
|
|
3416
|
+
*
|
|
3417
|
+
* @example
|
|
3418
|
+
* ```tsx
|
|
3419
|
+
* <Icon name="search" size="md" color="default" />
|
|
3420
|
+
* ```
|
|
3421
|
+
*/
|
|
3422
|
+
declare const Icon: React$1.ForwardRefExoticComponent<Omit<IconProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
3423
|
+
|
|
3424
|
+
/**
|
|
3425
|
+
* Tenerife Animation System Types
|
|
3426
|
+
*
|
|
3427
|
+
* Type definitions for TAS animation system
|
|
3428
|
+
*/
|
|
3429
|
+
|
|
3430
|
+
/**
|
|
3431
|
+
* Animation props for layout primitives
|
|
3432
|
+
* Returns CSS class names for Motion Tokens V2 animations
|
|
3433
|
+
*/
|
|
3434
|
+
interface AnimationProps {
|
|
3435
|
+
/**
|
|
3436
|
+
* CSS class name for the animation
|
|
3437
|
+
* Maps to tm-motion-* utility classes
|
|
3438
|
+
*/
|
|
3439
|
+
className?: string;
|
|
3440
|
+
}
|
|
3441
|
+
/**
|
|
3442
|
+
* Component animation configuration
|
|
3443
|
+
* Allows components to accept animation presets as props
|
|
3444
|
+
*/
|
|
3445
|
+
interface ComponentAnimationConfig {
|
|
3446
|
+
/**
|
|
3447
|
+
* Animation preset for initial mount/entrance
|
|
3448
|
+
* Can be a preset name string or CSS class name
|
|
3449
|
+
*/
|
|
3450
|
+
animation?: "fadeIn" | "fadeInUp" | "fadeInDown" | "fadeInLeft" | "fadeInRight" | "slideInUp" | "slideInDown" | "slideInLeft" | "slideInRight" | "scaleIn" | string;
|
|
3451
|
+
/**
|
|
3452
|
+
* Animation preset for hover state
|
|
3453
|
+
* Can be a preset name string or CSS class name
|
|
3454
|
+
*/
|
|
3455
|
+
hoverAnimation?: "hoverLift" | "hoverScale" | "tapScale" | string;
|
|
3456
|
+
/**
|
|
3457
|
+
* Custom animation class name (overrides preset names)
|
|
3458
|
+
*/
|
|
3459
|
+
animationProps?: AnimationProps;
|
|
3460
|
+
}
|
|
3461
|
+
|
|
3462
|
+
/**
|
|
3463
|
+
* ArtistCard Size Variant
|
|
3464
|
+
*/
|
|
3465
|
+
type ArtistCardSize = "default" | "compact";
|
|
3466
|
+
/**
|
|
3467
|
+
* ArtistCard Style Variant
|
|
3468
|
+
*/
|
|
3469
|
+
type ArtistCardVariant = "default" | "featured";
|
|
3470
|
+
/**
|
|
3471
|
+
* Props for ArtistCard component.
|
|
3472
|
+
* All props are flat and domain-agnostic. Consumer should provide pre-localized strings.
|
|
3473
|
+
*/
|
|
3474
|
+
interface ArtistCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3475
|
+
/** Artist name (pre-localized string, required) */
|
|
3476
|
+
name: string;
|
|
3477
|
+
/** Artist description (pre-localized string, optional) */
|
|
3478
|
+
description?: string;
|
|
3479
|
+
/** Genres as comma-separated string (e.g., "Jazz, Blues, Rock", optional) */
|
|
3480
|
+
genres?: string;
|
|
3481
|
+
/** Follower count for popularity metric (optional) */
|
|
3482
|
+
followers?: number;
|
|
3483
|
+
/** Plays/listens count for popularity metric (optional) */
|
|
3484
|
+
plays?: number;
|
|
3485
|
+
/** Image URL (optional) */
|
|
3486
|
+
imageUrl?: string;
|
|
3487
|
+
/** Link URL for artist details page (optional) */
|
|
3488
|
+
href?: string;
|
|
3489
|
+
/** Whether this is a featured artist */
|
|
3490
|
+
featured?: boolean;
|
|
3491
|
+
/** Show image section */
|
|
3492
|
+
showImage?: boolean;
|
|
3493
|
+
/** Badge text for featured artists (optional) */
|
|
3494
|
+
popularBadgeText?: string;
|
|
3495
|
+
/** Label for followers count (required) */
|
|
3496
|
+
followersLabel: string;
|
|
3497
|
+
/** Label for plays count (required) */
|
|
3498
|
+
playsLabel: string;
|
|
3499
|
+
/** Size variant - controls padding and gap */
|
|
3500
|
+
size?: ArtistCardSize;
|
|
3501
|
+
/** Style variant - controls visual appearance */
|
|
3502
|
+
variant?: ArtistCardVariant;
|
|
3503
|
+
/** Animation configuration for entrance and hover animations */
|
|
3504
|
+
animation?: ComponentAnimationConfig;
|
|
3505
|
+
}
|
|
3506
|
+
|
|
3507
|
+
/**
|
|
3508
|
+
* ArtistCard Component
|
|
3509
|
+
*
|
|
3510
|
+
* Domain-specific card component for displaying artist information.
|
|
3511
|
+
* Uses CardBase for layout and DOMAIN_TOKENS for all styling.
|
|
3512
|
+
* Supports size variants (default, compact) and style variants (default, featured).
|
|
3513
|
+
*
|
|
3514
|
+
* @example
|
|
3515
|
+
* ```tsx
|
|
3516
|
+
* <ArtistCard
|
|
3517
|
+
* name="Artist Name"
|
|
3518
|
+
* genres="Jazz, Blues"
|
|
3519
|
+
* followers={1200}
|
|
3520
|
+
* plays={50000}
|
|
3521
|
+
* followersLabel="followers"
|
|
3522
|
+
* playsLabel="plays"
|
|
3523
|
+
* />
|
|
3524
|
+
* ```
|
|
3525
|
+
*/
|
|
3526
|
+
declare const ArtistCard: React$1.ForwardRefExoticComponent<ArtistCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3527
|
+
|
|
3528
|
+
/**
|
|
3529
|
+
* EventCard Size Variant
|
|
3530
|
+
*/
|
|
3531
|
+
type EventCardSize = "default" | "compact";
|
|
3532
|
+
/**
|
|
3533
|
+
* EventCard Style Variant
|
|
3534
|
+
*/
|
|
3535
|
+
type EventCardVariant = "default" | "featured";
|
|
3536
|
+
/**
|
|
3537
|
+
* Props for EventCard component.
|
|
3538
|
+
* All props are flat and domain-agnostic. Consumer should provide pre-localized strings.
|
|
3539
|
+
*/
|
|
3540
|
+
interface EventCardProps {
|
|
3541
|
+
/** Event title (pre-localized string) */
|
|
3542
|
+
title: string;
|
|
3543
|
+
/** Event description (pre-localized string, optional) */
|
|
3544
|
+
description?: string;
|
|
3545
|
+
/** Event date/time display string (pre-formatted, optional) */
|
|
3546
|
+
date?: string;
|
|
3547
|
+
/** Venue name (pre-localized string, optional) */
|
|
3548
|
+
venueName?: string;
|
|
3549
|
+
/** Price display string with currency (e.g., "€20 - €50", optional) */
|
|
3550
|
+
price?: string;
|
|
3551
|
+
/** Image URL (optional) */
|
|
3552
|
+
imageUrl?: string;
|
|
3553
|
+
/** Link URL for event details page (optional) */
|
|
3554
|
+
href?: string;
|
|
3555
|
+
/** External ticket purchase URL (optional) */
|
|
3556
|
+
ticketUrl?: string;
|
|
3557
|
+
/** Whether this is a featured event */
|
|
3558
|
+
featured?: boolean;
|
|
3559
|
+
/** Show image section */
|
|
3560
|
+
showImage?: boolean;
|
|
3561
|
+
/** Label for "Get Tickets" button (required) */
|
|
3562
|
+
getTicketsLabel: string;
|
|
3563
|
+
/** Badge text for featured events (optional) */
|
|
3564
|
+
featuredBadgeText?: string;
|
|
3565
|
+
/** Size variant - controls padding and spacing */
|
|
3566
|
+
size?: EventCardSize;
|
|
3567
|
+
/** Style variant - controls visual appearance */
|
|
3568
|
+
variant?: EventCardVariant;
|
|
3569
|
+
/** Additional CSS classes */
|
|
3570
|
+
className?: string;
|
|
3571
|
+
/** Animation configuration for entrance and hover animations */
|
|
3572
|
+
animation?: ComponentAnimationConfig;
|
|
3573
|
+
}
|
|
3574
|
+
|
|
3575
|
+
/**
|
|
3576
|
+
* EventCard Component
|
|
3577
|
+
*
|
|
3578
|
+
* Domain-specific card component for displaying event information.
|
|
3579
|
+
* Uses CardBase for layout and DOMAIN_TOKENS for all styling.
|
|
3580
|
+
*
|
|
3581
|
+
* @example
|
|
3582
|
+
* ```tsx
|
|
3583
|
+
* <EventCard
|
|
3584
|
+
* title="Concert"
|
|
3585
|
+
* date="2024-01-01"
|
|
3586
|
+
* venueName="Venue"
|
|
3587
|
+
* getTicketsLabel="Get Tickets"
|
|
3588
|
+
* />
|
|
3589
|
+
* ```
|
|
3590
|
+
*/
|
|
3591
|
+
declare const EventCard: React$1.ForwardRefExoticComponent<EventCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3592
|
+
|
|
3593
|
+
/**
|
|
3594
|
+
* PromoCard Size Variant
|
|
3595
|
+
*/
|
|
3596
|
+
type PromoCardSize = "default" | "compact";
|
|
3597
|
+
/**
|
|
3598
|
+
* PromoCard Style Variant
|
|
3599
|
+
*/
|
|
3600
|
+
type PromoCardVariant = "default" | "featured";
|
|
3601
|
+
/**
|
|
3602
|
+
* Props for PromoCard component.
|
|
3603
|
+
* All props are flat and domain-agnostic. Consumer should provide pre-localized strings.
|
|
3604
|
+
*/
|
|
3605
|
+
interface PromoCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3606
|
+
/** Promo title (pre-localized string, required) */
|
|
3607
|
+
title: string;
|
|
3608
|
+
/** Promo description (pre-localized string, optional) */
|
|
3609
|
+
description?: string;
|
|
3610
|
+
/** Image URL (optional) */
|
|
3611
|
+
imageUrl?: string;
|
|
3612
|
+
/** Link URL for promo details page (optional) */
|
|
3613
|
+
href?: string;
|
|
3614
|
+
/** CTA button URL (optional) */
|
|
3615
|
+
ctaUrl?: string;
|
|
3616
|
+
/** Label for CTA button (required) */
|
|
3617
|
+
ctaLabel: string;
|
|
3618
|
+
/** Whether this is a featured promo */
|
|
3619
|
+
featured?: boolean;
|
|
3620
|
+
/** Badge text for featured promos (optional) */
|
|
3621
|
+
featuredBadgeText?: string;
|
|
3622
|
+
/** Show image section */
|
|
3623
|
+
showImage?: boolean;
|
|
3624
|
+
/** Size variant - controls padding and spacing */
|
|
3625
|
+
size?: PromoCardSize;
|
|
3626
|
+
/** Style variant - controls visual appearance */
|
|
3627
|
+
variant?: PromoCardVariant;
|
|
3628
|
+
/** Additional CSS classes */
|
|
3629
|
+
className?: string;
|
|
3630
|
+
/** Animation configuration for entrance and hover animations */
|
|
3631
|
+
animation?: ComponentAnimationConfig;
|
|
3632
|
+
}
|
|
3633
|
+
|
|
3634
|
+
/**
|
|
3635
|
+
* PromoCard Component
|
|
3636
|
+
*
|
|
3637
|
+
* Domain-specific card component for displaying promotional content.
|
|
3638
|
+
* Uses CardBase for layout and DOMAIN_TOKENS for all styling.
|
|
3639
|
+
* CTA button uses BUTTON_TOKENS for styling.
|
|
3640
|
+
*
|
|
3641
|
+
* @example
|
|
3642
|
+
* ```tsx
|
|
3643
|
+
* <PromoCard
|
|
3644
|
+
* title="Special Offer"
|
|
3645
|
+
* description="Get 20% off on all tickets"
|
|
3646
|
+
* ctaLabel="Learn More"
|
|
3647
|
+
* ctaUrl="/promo"
|
|
3648
|
+
* />
|
|
3649
|
+
* ```
|
|
3650
|
+
*/
|
|
3651
|
+
declare const PromoCard: React$1.ForwardRefExoticComponent<PromoCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3652
|
+
|
|
3653
|
+
/**
|
|
3654
|
+
* TicketCard Size Variant
|
|
3655
|
+
*/
|
|
3656
|
+
type TicketCardSize = "default" | "compact";
|
|
3657
|
+
/**
|
|
3658
|
+
* TicketCard Style Variant
|
|
3659
|
+
*/
|
|
3660
|
+
type TicketCardVariant = "default" | "featured";
|
|
3661
|
+
/**
|
|
3662
|
+
* Ticket Availability Status
|
|
3663
|
+
*/
|
|
3664
|
+
type TicketAvailability = "available" | "sold_out" | "available_soon";
|
|
3665
|
+
/**
|
|
3666
|
+
* Props for TicketCard component.
|
|
3667
|
+
* All props are flat and domain-agnostic. Consumer should provide pre-localized strings.
|
|
3668
|
+
*/
|
|
3669
|
+
interface TicketCardProps {
|
|
3670
|
+
/** Ticket type/name (pre-localized string) */
|
|
3671
|
+
title: string;
|
|
3672
|
+
/** Ticket description (pre-localized string, optional) */
|
|
3673
|
+
description?: string;
|
|
3674
|
+
/** Price display string with currency (e.g., "€20", optional) */
|
|
3675
|
+
price?: string;
|
|
3676
|
+
/** Capacity display string (e.g., "50 tickets", optional) */
|
|
3677
|
+
capacity?: string;
|
|
3678
|
+
/** Availability status */
|
|
3679
|
+
availability?: TicketAvailability;
|
|
3680
|
+
/** Image URL (optional) */
|
|
3681
|
+
imageUrl?: string;
|
|
3682
|
+
/** Link URL for ticket details (optional) */
|
|
3683
|
+
href?: string;
|
|
3684
|
+
/** Purchase action URL (optional) */
|
|
3685
|
+
purchaseUrl?: string;
|
|
3686
|
+
/** Label for purchase button (required) */
|
|
3687
|
+
purchaseLabel: string;
|
|
3688
|
+
/** VIP badge text (optional) */
|
|
3689
|
+
vipBadgeText?: string;
|
|
3690
|
+
/** Discount badge text (optional) */
|
|
3691
|
+
discountBadgeText?: string;
|
|
3692
|
+
/** Whether this is a featured ticket */
|
|
3693
|
+
featured?: boolean;
|
|
3694
|
+
/** Badge text for featured tickets (optional) */
|
|
3695
|
+
featuredBadgeText?: string;
|
|
3696
|
+
/** Show image section */
|
|
3697
|
+
showImage?: boolean;
|
|
3698
|
+
/** Size variant - controls padding and spacing */
|
|
3699
|
+
size?: TicketCardSize;
|
|
3700
|
+
/** Style variant - controls visual appearance */
|
|
3701
|
+
variant?: TicketCardVariant;
|
|
3702
|
+
/** Additional CSS classes */
|
|
3703
|
+
className?: string;
|
|
3704
|
+
/** Animation configuration for entrance and hover animations */
|
|
3705
|
+
animation?: ComponentAnimationConfig;
|
|
3706
|
+
}
|
|
3707
|
+
|
|
3708
|
+
/**
|
|
3709
|
+
* TicketCard Component
|
|
3710
|
+
*
|
|
3711
|
+
* Domain-specific card component for displaying ticket information.
|
|
3712
|
+
* Uses CardBase for layout and DOMAIN_TOKENS for all styling.
|
|
3713
|
+
*
|
|
3714
|
+
* @example
|
|
3715
|
+
* ```tsx
|
|
3716
|
+
* <TicketCard
|
|
3717
|
+
* title="VIP Ticket"
|
|
3718
|
+
* price="€50"
|
|
3719
|
+
* capacity="10 tickets left"
|
|
3720
|
+
* purchaseLabel="Buy Now"
|
|
3721
|
+
* />
|
|
3722
|
+
* ```
|
|
3723
|
+
*/
|
|
3724
|
+
declare const TicketCard: React$1.ForwardRefExoticComponent<TicketCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3725
|
+
|
|
3726
|
+
export { Alert, type AlertProps, ArtistCard, type ArtistCardProps, type ArtistCardSize, type ArtistCardVariant, Backdrop, type BackdropProps, Body, type BodyProps, Box, type BoxProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsItemProps, type BreadcrumbsRootProps, type BreadcrumbsSeparatorProps, Button, type ButtonProps, Caption, type CaptionProps, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type StackProps as ColumnProps, Container, type ContainerProps, Surface as ContainerSurface, type SurfaceProps as ContainerSurfaceProps, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, type ContextMenuGroupProps, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, ContextMenuRoot, type ContextMenuRootProps, ContextMenuSeparator, type ContextMenuSeparatorProps, ContextMenuTrigger, type ContextMenuTriggerProps, DataListRoot as DataList, DataListItem, type DataListItemProps, DataListLabel, type DataListLabelProps, DataListRoot, type DataListRootProps, DataListValue, type DataListValueProps, Dialog, DialogBody, type DialogBodyProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogRoot, DialogTitle, type DialogTitleProps, Display, type DisplayProps, DropdownMenuCheckItem, type DropdownMenuCheckItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuRoot, type DropdownMenuRootProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmptyState, EmptyStateAction, type EmptyStateActionProps, EmptyStateDescription, type EmptyStateDescriptionProps, EmptyStateIcon, type EmptyStateIconProps, type EmptyStateProps, EmptyStateTitle, type EmptyStateTitleProps, EventCard, type EventCardProps, type EventCardSize, type EventCardVariant, FieldRoot as Field, type FieldControlProps, type FieldDescriptionProps, type FieldErrorProps, type FieldLabelProps, type FieldProps, Flex, type FlexProps, Grid, type GridProps, type GroupByFunction, Heading, type HeadingProps, HoverCardContent, type HoverCardContentProps, HoverCardRoot, type HoverCardRootProps, HoverCardTrigger, type HoverCardTriggerProps, ICONS_MAP, Icon, IconArrowRight, IconCalendar, IconCheck, IconChevronDown, IconChevronRight, IconClose, type IconProps$1 as IconComponentProps, IconError, IconInfo, IconLocation, IconMenu, type IconName, type IconProps, IconSearch, IconSuccess, IconWarning, Input, type InputProps, Label, type LabelProps, Lead, type LeadProps, Modal, ModalBody, type ModalBodyProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, NotificationCenter, NotificationCenterDismissAll, type NotificationCenterDismissAllProps, NotificationCenterGroupHeader, type NotificationCenterGroupHeaderProps, NotificationCenterItem, type NotificationCenterItemProps, NotificationCenterList, type NotificationCenterListProps, NotificationCenterPanel, type NotificationCenterPanelProps, NotificationCenterProvider, type NotificationCenterProviderProps, NotificationCenterTrigger, type NotificationCenterTriggerProps, type NotificationChannel, type NotificationContextType, type NotificationData, type NotificationOptions, type NotificationVariant, Pagination, type PaginationEllipsisProps, type PaginationItemProps, type PaginationNextProps, type PaginationPrevProps, type PaginationRootProps, PopoverArrow, type PopoverArrowProps, PopoverContent, type PopoverContentProps, PopoverRoot, type PopoverRootProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, PromoCard, type PromoCardProps, type PromoCardSize, type PromoCardVariant, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Row, type RowProps, Section, type SectionProps, SegmentedControl, type SegmentedControlItemProps, type SegmentedControlRootProps, Select, SelectListbox, type SelectListboxProps, SelectOption, type SelectOptionProps, SelectRoot, type SelectRootProps, type SelectSize, SelectTrigger, type SelectTriggerProps, type SelectVariant, Skeleton, type SkeletonProps, type SortDirection, type SortState, Stack, type StackProps, Stepper, type StepperContentProps, type StepperIndicatorProps, type StepperItemProps, type StepperLabelProps, type StepperRootProps, type StepperStep, Surface$1 as Surface, type SurfaceProps$1 as SurfaceProps, TableRoot as Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, type TableColumn, type TableContextValue, TableEmpty, type TableEmptyProps, TableExpandableContent, type TableExpandableContentProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TableLoadingState, type TableLoadingStateProps, TableRoot, type TableRootProps, TableRow, type TableRowProps, TableSortIcon, type TableSortIconProps, Tabs, type TabsContentProps, type TabsListProps, type TabsRootProps, type TabsTriggerProps, Text, type TextProps, type TextSize, type TextWeight, Textarea, type TextareaProps, type TicketAvailability, TicketCard, type TicketCardProps, type TicketCardSize, type TicketCardVariant, Toast, type ToastAction, type ToastData, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, ToastViewport, type ToastViewportProps, alertVariants, bodyVariants, borderRadius, buttonVariants, captionVariants, checkboxVariants, codeVariants, surfaceVariants as containerSurfaceVariants, displayVariants, headingVariants, iconVariants, inputVariants, labelVariants, leadVariants, modalVariants, popoverContentVariants, radioVariants, segmentedControlItemVariants, segmentedControlRootVariants, selectListboxVariants, selectOptionVariants, selectTriggerVariants, semanticSpacing, skeletonVariants, spacing, surfaceVariants$1 as surfaceVariants, tabsListVariants, tabsTriggerVariants, textVariants, textareaVariants, useNotificationCenter, useNotificationCenterContext, useTableContext, useToast };
|