@tenerife.music/ui 1.0.8 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -8
- package/dist/{tokens/colors.d.ts → colors-CVA7_16U.d.cts} +21 -19
- package/dist/colors-CVA7_16U.d.ts +289 -0
- package/dist/index-BgXvioll.d.cts +6845 -0
- package/dist/index-Bv4wWj9I.d.ts +6845 -0
- package/dist/index.cjs +16385 -2
- package/dist/index.d.cts +4020 -0
- package/dist/index.d.ts +4020 -39
- package/dist/index.mjs +14502 -6425
- package/dist/preset.cjs +1264 -2
- package/dist/preset.d.cts +21 -0
- package/dist/preset.d.ts +3 -1
- package/dist/preset.mjs +1165 -95
- package/dist/styles.cjs +2 -2
- package/dist/styles.css +87 -1
- package/dist/styles.d.cts +2 -0
- package/dist/styles.d.ts +2 -0
- package/dist/styles.mjs +1 -1
- package/dist/theme/index.cjs +2634 -2
- package/dist/theme/index.d.cts +453 -0
- package/dist/theme/index.d.ts +453 -8
- package/dist/theme/index.mjs +1601 -576
- package/dist/tokens/index.cjs +6203 -5
- package/dist/tokens/index.d.cts +2 -0
- package/dist/tokens/index.d.ts +2 -9
- package/dist/tokens/index.mjs +2601 -155
- package/package.json +10 -9
- package/dist/animation/index.d.ts +0 -8
- package/dist/animation/presets.d.ts +0 -301
- package/dist/animation/tas.d.ts +0 -24
- package/dist/animation/types.d.ts +0 -67
- package/dist/animation/useInView.d.ts +0 -36
- package/dist/animation/utils.d.ts +0 -6
- package/dist/brand-C5R2semX.js +0 -45
- package/dist/brand-DQb18Frh.cjs +0 -2
- package/dist/components/SectionBuilder.d.ts +0 -36
- package/dist/components/SectionBuilder.presets.d.ts +0 -228
- package/dist/components/SectionBuilder.types.d.ts +0 -326
- package/dist/components/admin/Dashboard.d.ts +0 -8
- package/dist/components/admin/UserManagement.d.ts +0 -8
- package/dist/components/auth/LoginForm.d.ts +0 -11
- package/dist/components/auth/ProfileCard.d.ts +0 -9
- package/dist/components/auth/RegisterForm.d.ts +0 -13
- package/dist/components/cards/ArtistCard/ArtistCard.d.ts +0 -22
- package/dist/components/cards/ArtistCard/ArtistCard.types.d.ts +0 -46
- package/dist/components/cards/ArtistCard/ArtistCard.variants.d.ts +0 -83
- package/dist/components/cards/ArtistCard/index.d.ts +0 -8
- package/dist/components/cards/CardBase/CardBase.d.ts +0 -45
- package/dist/components/cards/CardBase/CardBase.types.d.ts +0 -70
- package/dist/components/cards/CardBase/CardBase.variants.d.ts +0 -38
- package/dist/components/cards/CardBase/index.d.ts +0 -8
- package/dist/components/cards/CategoryCard/CategoryCard.d.ts +0 -18
- package/dist/components/cards/CategoryCard/CategoryCard.types.d.ts +0 -38
- package/dist/components/cards/CategoryCard/CategoryCard.variants.d.ts +0 -21
- package/dist/components/cards/CategoryCard/index.d.ts +0 -7
- package/dist/components/cards/EventCard/EventCard.d.ts +0 -19
- package/dist/components/cards/EventCard/EventCard.types.d.ts +0 -47
- package/dist/components/cards/EventCard/EventCard.variants.d.ts +0 -70
- package/dist/components/cards/EventCard/index.d.ts +0 -7
- package/dist/components/cards/PromoCard/PromoCard.d.ts +0 -20
- package/dist/components/cards/PromoCard/PromoCard.types.d.ts +0 -42
- package/dist/components/cards/PromoCard/PromoCard.variants.d.ts +0 -35
- package/dist/components/cards/PromoCard/index.d.ts +0 -7
- package/dist/components/cards/TicketCard/TicketCard.d.ts +0 -19
- package/dist/components/cards/TicketCard/TicketCard.types.d.ts +0 -55
- package/dist/components/cards/TicketCard/TicketCard.variants.d.ts +0 -71
- package/dist/components/cards/TicketCard/index.d.ts +0 -7
- package/dist/components/cards/VenueCard/VenueCard.d.ts +0 -21
- package/dist/components/cards/VenueCard/VenueCard.types.d.ts +0 -46
- package/dist/components/cards/VenueCard/VenueCard.variants.d.ts +0 -60
- package/dist/components/cards/VenueCard/index.d.ts +0 -8
- package/dist/components/cards/index.d.ts +0 -19
- package/dist/components/checkbox/Checkbox.d.ts +0 -22
- package/dist/components/checkbox/Checkbox.types.d.ts +0 -68
- package/dist/components/checkbox/checkbox-variants.d.ts +0 -13
- package/dist/components/checkbox/index.d.ts +0 -3
- package/dist/components/containers/Card.d.ts +0 -75
- package/dist/components/containers/Section.d.ts +0 -31
- package/dist/components/containers/Surface.d.ts +0 -28
- package/dist/components/containers/index.d.ts +0 -9
- package/dist/components/controls/LanguageSelector.d.ts +0 -17
- package/dist/components/data/List.d.ts +0 -12
- package/dist/components/data/Table.d.ts +0 -14
- package/dist/components/data/Timeline.d.ts +0 -13
- package/dist/components/data/data-list/DataList.d.ts +0 -29
- package/dist/components/data/data-list/DataList.types.d.ts +0 -43
- package/dist/components/data/data-list/DataListItem.d.ts +0 -20
- package/dist/components/data/data-list/DataListLabel.d.ts +0 -19
- package/dist/components/data/data-list/DataListValue.d.ts +0 -18
- package/dist/components/data/data-list/index.d.ts +0 -10
- package/dist/components/data/empty-state/EmptyState.d.ts +0 -31
- package/dist/components/data/empty-state/EmptyState.types.d.ts +0 -51
- package/dist/components/data/empty-state/EmptyStateAction.d.ts +0 -17
- package/dist/components/data/empty-state/EmptyStateDescription.d.ts +0 -17
- package/dist/components/data/empty-state/EmptyStateIcon.d.ts +0 -22
- package/dist/components/data/empty-state/EmptyStateTitle.d.ts +0 -17
- package/dist/components/data/empty-state/index.d.ts +0 -10
- package/dist/components/data/index.d.ts +0 -9
- package/dist/components/data/skeleton/Skeleton.d.ts +0 -24
- package/dist/components/data/skeleton/Skeleton.types.d.ts +0 -12
- package/dist/components/data/skeleton/index.d.ts +0 -6
- package/dist/components/data/table/Table.d.ts +0 -33
- package/dist/components/data/table/Table.types.d.ts +0 -264
- package/dist/components/data/table/TableBody.d.ts +0 -13
- package/dist/components/data/table/TableCell.d.ts +0 -13
- package/dist/components/data/table/TableEmpty.d.ts +0 -13
- package/dist/components/data/table/TableExpandableContent.d.ts +0 -14
- package/dist/components/data/table/TableHead.d.ts +0 -13
- package/dist/components/data/table/TableHeader.d.ts +0 -13
- package/dist/components/data/table/TableLoadingState.d.ts +0 -13
- package/dist/components/data/table/TableRow.d.ts +0 -13
- package/dist/components/data/table/TableSortIcon.d.ts +0 -14
- package/dist/components/data/table/index.d.ts +0 -17
- package/dist/components/drawer/Drawer.d.ts +0 -41
- package/dist/components/drawer/Drawer.types.d.ts +0 -75
- package/dist/components/drawer/drawer-variants.d.ts +0 -17
- package/dist/components/drawer/index.d.ts +0 -8
- package/dist/components/dropdown/Dropdown.d.ts +0 -38
- package/dist/components/dropdown/Dropdown.types.d.ts +0 -82
- package/dist/components/dropdown/dropdown-variants.d.ts +0 -33
- package/dist/components/feedback/ConsentBanner.d.ts +0 -8
- package/dist/components/feedback/Progress.d.ts +0 -8
- package/dist/components/feedback/Skeleton.d.ts +0 -6
- package/dist/components/filters/DateRangePicker.d.ts +0 -21
- package/dist/components/filters/FilterBar.d.ts +0 -55
- package/dist/components/filters/FilterSelect.d.ts +0 -23
- package/dist/components/filters/PriceRangeSlider.d.ts +0 -27
- package/dist/components/filters/SearchFilters.d.ts +0 -32
- package/dist/components/filters/SearchInput.d.ts +0 -16
- package/dist/components/filters/types.d.ts +0 -48
- package/dist/components/icon/Icon.d.ts +0 -32
- package/dist/components/icon/Icon.types.d.ts +0 -7
- package/dist/components/icon/index.d.ts +0 -4
- package/dist/components/icons/TrendingIcon.d.ts +0 -6
- package/dist/components/image/Image.d.ts +0 -48
- package/dist/components/input/Input.d.ts +0 -20
- package/dist/components/input/Input.types.d.ts +0 -38
- package/dist/components/input/index.d.ts +0 -3
- package/dist/components/input/input-variants.d.ts +0 -14
- package/dist/components/input/legacy/input.d.ts +0 -11
- package/dist/components/layout/Box.d.ts +0 -111
- package/dist/components/layout/Column.d.ts +0 -6
- package/dist/components/layout/Container.d.ts +0 -31
- package/dist/components/layout/Flex.d.ts +0 -50
- package/dist/components/layout/Footer.d.ts +0 -9
- package/dist/components/layout/Grid.d.ts +0 -60
- package/dist/components/layout/ModeHero.d.ts +0 -10
- package/dist/components/layout/Navbar.d.ts +0 -9
- package/dist/components/layout/Row.d.ts +0 -28
- package/dist/components/layout/Section.d.ts +0 -10
- package/dist/components/layout/Stack.d.ts +0 -38
- package/dist/components/layout/Surface.d.ts +0 -21
- package/dist/components/layout/index.d.ts +0 -22
- package/dist/components/layout/layout.types.d.ts +0 -107
- package/dist/components/menus/DropdownMenu.d.ts +0 -27
- package/dist/components/menus/NavigationMenu.d.ts +0 -12
- package/dist/components/menus/Tabs.d.ts +0 -7
- package/dist/components/menus/context-menu/ContextMenuContent.d.ts +0 -22
- package/dist/components/menus/context-menu/ContextMenuGroup.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuItem.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuLabel.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuRoot.d.ts +0 -47
- package/dist/components/menus/context-menu/ContextMenuSeparator.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuTrigger.d.ts +0 -16
- package/dist/components/menus/context-menu/index.d.ts +0 -12
- package/dist/components/menus/dropdown/DropdownMenuCheckItem.d.ts +0 -18
- package/dist/components/menus/dropdown/DropdownMenuContent.d.ts +0 -15
- package/dist/components/menus/dropdown/DropdownMenuGroup.d.ts +0 -12
- package/dist/components/menus/dropdown/DropdownMenuItem.d.ts +0 -30
- package/dist/components/menus/dropdown/DropdownMenuLabel.d.ts +0 -17
- package/dist/components/menus/dropdown/DropdownMenuRadioGroup.d.ts +0 -24
- package/dist/components/menus/dropdown/DropdownMenuRadioItem.d.ts +0 -18
- package/dist/components/menus/dropdown/DropdownMenuRoot.d.ts +0 -33
- package/dist/components/menus/dropdown/DropdownMenuSeparator.d.ts +0 -13
- package/dist/components/menus/dropdown/DropdownMenuSub.d.ts +0 -10
- package/dist/components/menus/dropdown/DropdownMenuSubContent.d.ts +0 -13
- package/dist/components/menus/dropdown/DropdownMenuSubTrigger.d.ts +0 -13
- package/dist/components/menus/dropdown/DropdownMenuTrigger.d.ts +0 -14
- package/dist/components/menus/dropdown/index.d.ts +0 -18
- package/dist/components/menus/hover-card/HoverCardContent.d.ts +0 -14
- package/dist/components/menus/hover-card/HoverCardRoot.d.ts +0 -20
- package/dist/components/menus/hover-card/HoverCardTrigger.d.ts +0 -13
- package/dist/components/menus/hover-card/index.d.ts +0 -8
- package/dist/components/menus/index.d.ts +0 -9
- package/dist/components/menus/popover/PopoverArrow.d.ts +0 -17
- package/dist/components/menus/popover/PopoverContent.d.ts +0 -24
- package/dist/components/menus/popover/PopoverRoot.d.ts +0 -43
- package/dist/components/menus/popover/PopoverTrigger.d.ts +0 -17
- package/dist/components/menus/popover/index.d.ts +0 -9
- package/dist/components/modal/Modal.d.ts +0 -70
- package/dist/components/modal/modal-variants.d.ts +0 -26
- package/dist/components/modals/ConfirmDialog.d.ts +0 -27
- package/dist/components/modals/CustomDialog.d.ts +0 -10
- package/dist/components/modals/Modal.d.ts +0 -19
- package/dist/components/modals/ModalProvider.d.ts +0 -16
- package/dist/components/modals/SimpleModal.d.ts +0 -11
- package/dist/components/navigation/Breadcrumbs.d.ts +0 -12
- package/dist/components/navigation/Pagination.d.ts +0 -10
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts +0 -52
- package/dist/components/navigation/breadcrumbs/index.d.ts +0 -5
- package/dist/components/navigation/index.d.ts +0 -10
- package/dist/components/navigation/pagination/Pagination.d.ts +0 -60
- package/dist/components/navigation/pagination/index.d.ts +0 -5
- package/dist/components/navigation/segmented-control/SegmentedControl.d.ts +0 -43
- package/dist/components/navigation/segmented-control/index.d.ts +0 -5
- package/dist/components/navigation/stepper/Stepper.d.ts +0 -129
- package/dist/components/navigation/stepper/index.d.ts +0 -5
- package/dist/components/navigation/tabs/Tabs.d.ts +0 -73
- package/dist/components/navigation/tabs/index.d.ts +0 -5
- package/dist/components/notifications/NotificationCenter.DismissAll.d.ts +0 -21
- package/dist/components/notifications/NotificationCenter.GroupHeader.d.ts +0 -23
- package/dist/components/notifications/NotificationCenter.Item.d.ts +0 -24
- package/dist/components/notifications/NotificationCenter.List.d.ts +0 -22
- package/dist/components/notifications/NotificationCenter.Panel.d.ts +0 -32
- package/dist/components/notifications/NotificationCenter.Provider.d.ts +0 -31
- package/dist/components/notifications/NotificationCenter.Trigger.d.ts +0 -15
- package/dist/components/notifications/NotificationCenter.d.ts +0 -27
- package/dist/components/notifications/NotificationCenter.types.d.ts +0 -89
- package/dist/components/notifications/index.d.ts +0 -23
- package/dist/components/notifications/useNotificationCenter.d.ts +0 -47
- package/dist/components/overlays/Backdrop.d.ts +0 -24
- package/dist/components/overlays/Dialog.d.ts +0 -66
- package/dist/components/overlays/Modal.d.ts +0 -60
- package/dist/components/overlays/OverlayPortal.d.ts +0 -22
- package/dist/components/overlays/Popover.d.ts +0 -30
- package/dist/components/overlays/Portal.d.ts +0 -29
- package/dist/components/overlays/Toast.d.ts +0 -36
- package/dist/components/overlays/ToastProvider.d.ts +0 -58
- package/dist/components/overlays/ToastViewport.d.ts +0 -27
- package/dist/components/overlays/Tooltip.d.ts +0 -28
- package/dist/components/overlays/index.d.ts +0 -13
- package/dist/components/overlays/utils/FocusLock.d.ts +0 -30
- package/dist/components/overlays/utils/ScrollLock.d.ts +0 -11
- package/dist/components/overlays/utils/positioning.d.ts +0 -68
- package/dist/components/primitives/Badge.d.ts +0 -9
- package/dist/components/primitives/Button.d.ts +0 -1
- package/dist/components/primitives/Card.d.ts +0 -1
- package/dist/components/primitives/Divider.d.ts +0 -7
- package/dist/components/primitives/Input.d.ts +0 -4
- package/dist/components/primitives/Label.d.ts +0 -1
- package/dist/components/primitives/Link.d.ts +0 -13
- package/dist/components/primitives/ThemeSwitch.d.ts +0 -9
- package/dist/components/radio/Radio.d.ts +0 -23
- package/dist/components/radio/Radio.types.d.ts +0 -63
- package/dist/components/radio/RadioGroup.d.ts +0 -20
- package/dist/components/radio/RadioGroup.types.d.ts +0 -61
- package/dist/components/radio/index.d.ts +0 -5
- package/dist/components/radio/radio-variants.d.ts +0 -13
- package/dist/components/search/SearchBar.d.ts +0 -10
- package/dist/components/sections/ArticlesSection.d.ts +0 -25
- package/dist/components/sections/CTASection.d.ts +0 -37
- package/dist/components/sections/FeatureSection.d.ts +0 -33
- package/dist/components/sections/HeroSection.d.ts +0 -27
- package/dist/components/sections/TrendingSection.d.ts +0 -28
- package/dist/components/select/Select.d.ts +0 -38
- package/dist/components/select/Select.types.d.ts +0 -107
- package/dist/components/select/index.d.ts +0 -5
- package/dist/components/select/legacy/select.d.ts +0 -11
- package/dist/components/select/select-variants.d.ts +0 -32
- package/dist/components/skeletons/EventCardSkeleton.d.ts +0 -6
- package/dist/components/skeletons/VenueCardSkeleton.d.ts +0 -6
- package/dist/components/switch/Switch.d.ts +0 -24
- package/dist/components/switch/Switch.types.d.ts +0 -53
- package/dist/components/switch/index.d.ts +0 -3
- package/dist/components/switch/switch-variants.d.ts +0 -34
- package/dist/components/textarea/Textarea.d.ts +0 -21
- package/dist/components/textarea/Textarea.types.d.ts +0 -40
- package/dist/components/textarea/index.d.ts +0 -3
- package/dist/components/textarea/legacy/textarea.d.ts +0 -11
- package/dist/components/textarea/textarea-variants.d.ts +0 -14
- package/dist/components/toasts/Toast.d.ts +0 -12
- package/dist/components/toasts/ToastProvider.d.ts +0 -26
- package/dist/components/ui/alert.d.ts +0 -9
- package/dist/components/ui/body.d.ts +0 -12
- package/dist/components/ui/button.d.ts +0 -13
- package/dist/components/ui/caption.d.ts +0 -11
- package/dist/components/ui/card.d.ts +0 -8
- package/dist/components/ui/code.d.ts +0 -11
- package/dist/components/ui/dialog.d.ts +0 -19
- package/dist/components/ui/display.d.ts +0 -12
- package/dist/components/ui/field.d.ts +0 -45
- package/dist/components/ui/heading.d.ts +0 -12
- package/dist/components/ui/label.d.ts +0 -12
- package/dist/components/ui/lead.d.ts +0 -11
- package/dist/components/ui/text.d.ts +0 -18
- package/dist/components/ui/toast.d.ts +0 -15
- package/dist/components/ui/toaster.d.ts +0 -1
- package/dist/components/ui/tooltip.d.ts +0 -7
- package/dist/dark-Cvoy1uFT.js +0 -30
- package/dist/dark-OOhiqt1q.cjs +0 -2
- package/dist/default-BKgH1D9-.js +0 -8
- package/dist/default-Ddg7Haf2.cjs +0 -2
- package/dist/hooks/use-toast.d.ts +0 -44
- package/dist/hooks/useDebounce.d.ts +0 -19
- package/dist/hooks/useModal.d.ts +0 -19
- package/dist/hooks/useToast.d.ts +0 -26
- package/dist/icons/IconArrowRight.d.ts +0 -6
- package/dist/icons/IconCalendar.d.ts +0 -6
- package/dist/icons/IconCheck.d.ts +0 -6
- package/dist/icons/IconChevronDown.d.ts +0 -6
- package/dist/icons/IconChevronRight.d.ts +0 -6
- package/dist/icons/IconClose.d.ts +0 -6
- package/dist/icons/IconError.d.ts +0 -6
- package/dist/icons/IconInfo.d.ts +0 -6
- package/dist/icons/IconLocation.d.ts +0 -6
- package/dist/icons/IconMenu.d.ts +0 -6
- package/dist/icons/IconSearch.d.ts +0 -6
- package/dist/icons/IconSuccess.d.ts +0 -6
- package/dist/icons/IconWarning.d.ts +0 -6
- package/dist/icons/icon.types.d.ts +0 -25
- package/dist/icons/index.d.ts +0 -34
- package/dist/lib/a11y.d.ts +0 -15
- package/dist/lib/responsive-props.d.ts +0 -63
- package/dist/lib/utils.d.ts +0 -8
- package/dist/motion-CzQhSEqk.js +0 -738
- package/dist/motion-DJx1TbXJ.cjs +0 -2
- package/dist/theme/ThemeProvider.d.ts +0 -55
- package/dist/theme/applyMode.d.ts +0 -42
- package/dist/theme/colors.d.ts +0 -6
- package/dist/theme/loader.d.ts +0 -63
- package/dist/theme/motion/gestures.d.ts +0 -76
- package/dist/theme/motion/useReducedMotion.d.ts +0 -11
- package/dist/theme/motion.d.ts +0 -127
- package/dist/theme/registry.d.ts +0 -70
- package/dist/theme/schema.d.ts +0 -124
- package/dist/theme/spacing.d.ts +0 -34
- package/dist/theme/typography.d.ts +0 -45
- package/dist/themes/brand.d.ts +0 -6
- package/dist/themes/brand_engine.d.ts +0 -108
- package/dist/themes/dark.d.ts +0 -6
- package/dist/themes/default.d.ts +0 -6
- package/dist/themes/index.d.ts +0 -24
- package/dist/themes/minimal.d.ts +0 -6
- package/dist/themes/neon.d.ts +0 -6
- package/dist/themes/types.d.ts +0 -278
- package/dist/tokens/components/alert.d.ts +0 -74
- package/dist/tokens/components/button.d.ts +0 -130
- package/dist/tokens/components/card.d.ts +0 -91
- package/dist/tokens/components/checkbox.d.ts +0 -161
- package/dist/tokens/components/data.d.ts +0 -227
- package/dist/tokens/components/domain.d.ts +0 -379
- package/dist/tokens/components/dropdown.d.ts +0 -146
- package/dist/tokens/components/icon.d.ts +0 -57
- package/dist/tokens/components/index.d.ts +0 -31
- package/dist/tokens/components/input.d.ts +0 -284
- package/dist/tokens/components/menu.d.ts +0 -114
- package/dist/tokens/components/motion.d.ts +0 -103
- package/dist/tokens/components/navigation.d.ts +0 -181
- package/dist/tokens/components/notifications.d.ts +0 -159
- package/dist/tokens/components/overlay.d.ts +0 -227
- package/dist/tokens/components/popover.d.ts +0 -84
- package/dist/tokens/components/radio.d.ts +0 -149
- package/dist/tokens/components/section.d.ts +0 -41
- package/dist/tokens/components/surface.d.ts +0 -94
- package/dist/tokens/components/switch.d.ts +0 -208
- package/dist/tokens/components/text.d.ts +0 -68
- package/dist/tokens/components/toast.d.ts +0 -146
- package/dist/tokens/components/tooltip.d.ts +0 -52
- package/dist/tokens/css-variables.d.ts +0 -251
- package/dist/tokens/motion/v2.d.ts +0 -342
- package/dist/tokens/motion.d.ts +0 -485
- package/dist/tokens/opacity.d.ts +0 -22
- package/dist/tokens/radius.d.ts +0 -161
- package/dist/tokens/shadows.d.ts +0 -230
- package/dist/tokens/spacing.d.ts +0 -238
- package/dist/tokens/theme.d.ts +0 -119
- package/dist/tokens/typography.d.ts +0 -460
- package/dist/typography-C-Nb4y0o.cjs +0 -2
- package/dist/typography-DHym9KAP.js +0 -1196
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DataList Component Types
|
|
3
|
-
*
|
|
4
|
-
* TypeScript interfaces and types for DataList component.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* DataList Root component props
|
|
8
|
-
*/
|
|
9
|
-
export interface DataListRootProps extends React.HTMLAttributes<HTMLDListElement> {
|
|
10
|
-
/**
|
|
11
|
-
* Label width for desktop layout
|
|
12
|
-
* @default "md"
|
|
13
|
-
*/
|
|
14
|
-
labelWidth?: "sm" | "md" | "lg";
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* DataList Item component props
|
|
18
|
-
*/
|
|
19
|
-
export interface DataListItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
20
|
-
/**
|
|
21
|
-
* Row padding
|
|
22
|
-
* @default "md"
|
|
23
|
-
*/
|
|
24
|
-
padding?: "sm" | "md" | "lg";
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* DataList Label component props
|
|
28
|
-
*/
|
|
29
|
-
export interface DataListLabelProps extends React.HTMLAttributes<HTMLElement> {
|
|
30
|
-
/**
|
|
31
|
-
* Label text
|
|
32
|
-
*/
|
|
33
|
-
children: React.ReactNode;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* DataList Value component props
|
|
37
|
-
*/
|
|
38
|
-
export interface DataListValueProps extends React.HTMLAttributes<HTMLElement> {
|
|
39
|
-
/**
|
|
40
|
-
* Value content
|
|
41
|
-
*/
|
|
42
|
-
children: React.ReactNode;
|
|
43
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DataList Item Component
|
|
3
|
-
*
|
|
4
|
-
* Individual item in DataList (contains Label and Value).
|
|
5
|
-
*/
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
export interface DataListItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
-
/**
|
|
9
|
-
* Row padding
|
|
10
|
-
* @default "md"
|
|
11
|
-
*/
|
|
12
|
-
padding?: "sm" | "md" | "lg";
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* DataList Item component
|
|
16
|
-
* Mobile: vertical layout (label above value)
|
|
17
|
-
* Desktop: horizontal layout (label left, value right)
|
|
18
|
-
*/
|
|
19
|
-
declare const DataListItem: React.ForwardRefExoticComponent<DataListItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
export { DataListItem };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DataList Label Component
|
|
3
|
-
*
|
|
4
|
-
* Label subcomponent for DataList items.
|
|
5
|
-
*/
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
export interface DataListLabelProps extends React.HTMLAttributes<HTMLElement> {
|
|
8
|
-
/**
|
|
9
|
-
* Label text
|
|
10
|
-
*/
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* DataList Label component
|
|
15
|
-
* Mobile: full width
|
|
16
|
-
* Desktop: fixed width (from tokens)
|
|
17
|
-
*/
|
|
18
|
-
declare const DataListLabel: React.ForwardRefExoticComponent<DataListLabelProps & React.RefAttributes<HTMLElement>>;
|
|
19
|
-
export { DataListLabel };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DataList Value Component
|
|
3
|
-
*
|
|
4
|
-
* Value subcomponent for DataList items.
|
|
5
|
-
*/
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
export interface DataListValueProps extends React.HTMLAttributes<HTMLElement> {
|
|
8
|
-
/**
|
|
9
|
-
* Value content
|
|
10
|
-
*/
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* DataList Value component
|
|
15
|
-
* Flex-grow to fill remaining space on desktop
|
|
16
|
-
*/
|
|
17
|
-
declare const DataListValue: React.ForwardRefExoticComponent<DataListValueProps & React.RefAttributes<HTMLElement>>;
|
|
18
|
-
export { DataListValue };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DataList Component
|
|
3
|
-
*
|
|
4
|
-
* Mobile-first data list component for displaying key-value pairs.
|
|
5
|
-
*/
|
|
6
|
-
export { DataListRoot, type DataListRootProps } from './DataList';
|
|
7
|
-
export { DataListItem, type DataListItemProps } from './DataListItem';
|
|
8
|
-
export { DataListLabel, type DataListLabelProps } from './DataListLabel';
|
|
9
|
-
export { DataListValue, type DataListValueProps } from './DataListValue';
|
|
10
|
-
export { DataListRoot as DataList } from './DataList';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EmptyState Component
|
|
3
|
-
*
|
|
4
|
-
* Token-driven empty state component for displaying empty or no-data states.
|
|
5
|
-
* Uses DATA_TOKENS for all spacing and sizing.
|
|
6
|
-
* Integrates with Surface and Stack components.
|
|
7
|
-
*/
|
|
8
|
-
import * as React from "react";
|
|
9
|
-
export interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
-
/**
|
|
11
|
-
* Unique ID for accessibility (auto-generated if not provided)
|
|
12
|
-
*/
|
|
13
|
-
id?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* EmptyState root component
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* <EmptyState>
|
|
21
|
-
* <EmptyState.Icon>📭</EmptyState.Icon>
|
|
22
|
-
* <EmptyState.Title>No items found</EmptyState.Title>
|
|
23
|
-
* <EmptyState.Description>Try adjusting your filters</EmptyState.Description>
|
|
24
|
-
* <EmptyState.Action>
|
|
25
|
-
* <Button>Create Item</Button>
|
|
26
|
-
* </EmptyState.Action>
|
|
27
|
-
* </EmptyState>
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
-
export { EmptyState };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* EmptyState root component props
|
|
4
|
-
*/
|
|
5
|
-
export interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
/**
|
|
7
|
-
* Unique ID for accessibility (auto-generated if not provided)
|
|
8
|
-
*/
|
|
9
|
-
id?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* EmptyState Icon component props
|
|
13
|
-
*/
|
|
14
|
-
export interface EmptyStateIconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
15
|
-
/**
|
|
16
|
-
* Icon content (any ReactNode)
|
|
17
|
-
*/
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* Icon size
|
|
21
|
-
* @default "md"
|
|
22
|
-
*/
|
|
23
|
-
size?: "sm" | "md" | "lg";
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* EmptyState Title component props
|
|
27
|
-
*/
|
|
28
|
-
export interface EmptyStateTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
29
|
-
/**
|
|
30
|
-
* Title text
|
|
31
|
-
*/
|
|
32
|
-
children: ReactNode;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* EmptyState Description component props
|
|
36
|
-
*/
|
|
37
|
-
export interface EmptyStateDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
38
|
-
/**
|
|
39
|
-
* Description text
|
|
40
|
-
*/
|
|
41
|
-
children: ReactNode;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* EmptyState Action component props
|
|
45
|
-
*/
|
|
46
|
-
export interface EmptyStateActionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
47
|
-
/**
|
|
48
|
-
* Action button or link (typically Button component)
|
|
49
|
-
*/
|
|
50
|
-
children: ReactNode;
|
|
51
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EmptyState Action Component
|
|
3
|
-
*
|
|
4
|
-
* Action subcomponent for EmptyState (typically contains Button).
|
|
5
|
-
*/
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
export interface EmptyStateActionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
-
/**
|
|
9
|
-
* Action button or link (typically Button component)
|
|
10
|
-
*/
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* EmptyState Action component
|
|
15
|
-
*/
|
|
16
|
-
declare const EmptyStateAction: React.ForwardRefExoticComponent<EmptyStateActionProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
export { EmptyStateAction };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EmptyState Description Component
|
|
3
|
-
*
|
|
4
|
-
* Description subcomponent for EmptyState.
|
|
5
|
-
*/
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
export interface EmptyStateDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
8
|
-
/**
|
|
9
|
-
* Description text
|
|
10
|
-
*/
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* EmptyState Description component
|
|
15
|
-
*/
|
|
16
|
-
declare const EmptyStateDescription: React.ForwardRefExoticComponent<EmptyStateDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
17
|
-
export { EmptyStateDescription };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EmptyState Icon Component
|
|
3
|
-
*
|
|
4
|
-
* Icon subcomponent for EmptyState.
|
|
5
|
-
*/
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
export interface EmptyStateIconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
-
/**
|
|
9
|
-
* Icon content (any ReactNode)
|
|
10
|
-
*/
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Icon size
|
|
14
|
-
* @default "md"
|
|
15
|
-
*/
|
|
16
|
-
size?: "sm" | "md" | "lg";
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* EmptyState Icon component
|
|
20
|
-
*/
|
|
21
|
-
declare const EmptyStateIcon: React.ForwardRefExoticComponent<EmptyStateIconProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
export { EmptyStateIcon };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EmptyState Title Component
|
|
3
|
-
*
|
|
4
|
-
* Title subcomponent for EmptyState.
|
|
5
|
-
*/
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
export interface EmptyStateTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
8
|
-
/**
|
|
9
|
-
* Title text
|
|
10
|
-
*/
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* EmptyState Title component
|
|
15
|
-
*/
|
|
16
|
-
declare const EmptyStateTitle: React.ForwardRefExoticComponent<EmptyStateTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
17
|
-
export { EmptyStateTitle };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EmptyState Component
|
|
3
|
-
*
|
|
4
|
-
* Token-driven empty state component for displaying empty or no-data states.
|
|
5
|
-
*/
|
|
6
|
-
export { EmptyState, type EmptyStateProps } from './EmptyState';
|
|
7
|
-
export { EmptyStateAction, type EmptyStateActionProps } from './EmptyStateAction';
|
|
8
|
-
export { EmptyStateDescription, type EmptyStateDescriptionProps } from './EmptyStateDescription';
|
|
9
|
-
export { EmptyStateIcon, type EmptyStateIconProps } from './EmptyStateIcon';
|
|
10
|
-
export { EmptyStateTitle, type EmptyStateTitleProps } from './EmptyStateTitle';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Data Components
|
|
3
|
-
*
|
|
4
|
-
* Token-driven data display components: Table, DataList, Skeleton, EmptyState.
|
|
5
|
-
*/
|
|
6
|
-
export { Skeleton, type SkeletonProps, skeletonVariants } from './skeleton';
|
|
7
|
-
export { EmptyState, EmptyStateAction, type EmptyStateActionProps, EmptyStateDescription, type EmptyStateDescriptionProps, EmptyStateIcon, type EmptyStateIconProps, type EmptyStateProps, EmptyStateTitle, type EmptyStateTitleProps, } from './empty-state';
|
|
8
|
-
export { DataList, DataListItem, type DataListItemProps, DataListLabel, type DataListLabelProps, DataListRoot, type DataListRootProps, DataListValue, type DataListValueProps, } from './data-list';
|
|
9
|
-
export { type SortDirection, type SortState, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, type TableColumn, type TableContextValue, TableEmpty, type TableEmptyProps, TableExpandableContent, type TableExpandableContentProps, TableHead, TableHeader, type TableHeaderProps, type TableHeadProps, TableLoadingState, type TableLoadingStateProps, TableRoot, type TableRootProps, TableRow, type TableRowProps, TableSortIcon, type TableSortIconProps, useTableContext, } from './table';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const skeletonVariants: (props?: ({
|
|
4
|
-
variant?: "text" | "circle" | "inline" | "block" | "card" | null | undefined;
|
|
5
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
-
export interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
|
|
7
|
-
/**
|
|
8
|
-
* Whether to hide from screen readers
|
|
9
|
-
* @default true
|
|
10
|
-
*/
|
|
11
|
-
"aria-hidden"?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Skeleton component for loading states
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* <Skeleton variant="text" />
|
|
19
|
-
* <Skeleton variant="circle" />
|
|
20
|
-
* <Skeleton variant="card" />
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
export { Skeleton, skeletonVariants };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { skeletonVariants } from './Skeleton';
|
|
3
|
-
/**
|
|
4
|
-
* Skeleton component props
|
|
5
|
-
*/
|
|
6
|
-
export interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
|
|
7
|
-
/**
|
|
8
|
-
* Whether to hide from screen readers
|
|
9
|
-
* @default true
|
|
10
|
-
*/
|
|
11
|
-
"aria-hidden"?: boolean;
|
|
12
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { TableContextValue, TableRootProps } from './Table.types';
|
|
2
|
-
export declare function useTableContext(): TableContextValue;
|
|
3
|
-
/**
|
|
4
|
-
* Table Root component
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```tsx
|
|
8
|
-
* <Table.Root
|
|
9
|
-
* data={users}
|
|
10
|
-
* columns={columns}
|
|
11
|
-
* rowKey="id"
|
|
12
|
-
* sortable
|
|
13
|
-
* >
|
|
14
|
-
* <Table.Header>
|
|
15
|
-
* <Table.Row>
|
|
16
|
-
* <Table.Head>Name</Table.Head>
|
|
17
|
-
* </Table.Row>
|
|
18
|
-
* </Table.Header>
|
|
19
|
-
* <Table.Body>
|
|
20
|
-
* {users.map((user) => (
|
|
21
|
-
* <Table.Row key={user.id}>
|
|
22
|
-
* <Table.Cell>{user.name}</Table.Cell>
|
|
23
|
-
* </Table.Row>
|
|
24
|
-
* ))}
|
|
25
|
-
* </Table.Body>
|
|
26
|
-
* </Table.Root>
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
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>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
declare namespace TableRoot {
|
|
31
|
-
var displayName: string;
|
|
32
|
-
}
|
|
33
|
-
export { TableRoot };
|
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Table column definition
|
|
4
|
-
*/
|
|
5
|
-
export interface TableColumn<T = Record<string, unknown>> {
|
|
6
|
-
/**
|
|
7
|
-
* Column key (must match a key in the data object)
|
|
8
|
-
*/
|
|
9
|
-
key: keyof T;
|
|
10
|
-
/**
|
|
11
|
-
* Column header title
|
|
12
|
-
*/
|
|
13
|
-
title: string;
|
|
14
|
-
/**
|
|
15
|
-
* Custom render function for cell content
|
|
16
|
-
*/
|
|
17
|
-
render?: (value: T[keyof T], item: T, index: number) => ReactNode;
|
|
18
|
-
/**
|
|
19
|
-
* Column alignment
|
|
20
|
-
* @default "left"
|
|
21
|
-
*/
|
|
22
|
-
align?: "left" | "center" | "right";
|
|
23
|
-
/**
|
|
24
|
-
* Column width (CSS value or Tailwind class)
|
|
25
|
-
*/
|
|
26
|
-
width?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Whether column is sortable
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
sortable?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Cell size
|
|
34
|
-
* @default "md"
|
|
35
|
-
*/
|
|
36
|
-
size?: "sm" | "md" | "lg";
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Sort direction
|
|
40
|
-
*/
|
|
41
|
-
export type SortDirection = "asc" | "desc" | null;
|
|
42
|
-
/**
|
|
43
|
-
* Sort state
|
|
44
|
-
*/
|
|
45
|
-
export interface SortState {
|
|
46
|
-
/**
|
|
47
|
-
* Column key being sorted
|
|
48
|
-
*/
|
|
49
|
-
column: string | null;
|
|
50
|
-
/**
|
|
51
|
-
* Sort direction
|
|
52
|
-
*/
|
|
53
|
-
direction: SortDirection;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Table context value
|
|
57
|
-
*/
|
|
58
|
-
export interface TableContextValue {
|
|
59
|
-
/**
|
|
60
|
-
* Current sort state
|
|
61
|
-
*/
|
|
62
|
-
sortState: SortState;
|
|
63
|
-
/**
|
|
64
|
-
* Set sort state
|
|
65
|
-
*/
|
|
66
|
-
setSortState: (state: SortState) => void;
|
|
67
|
-
/**
|
|
68
|
-
* Expanded rows (for expandable rows)
|
|
69
|
-
*/
|
|
70
|
-
expandedRows: Set<string | number>;
|
|
71
|
-
/**
|
|
72
|
-
* Toggle row expansion
|
|
73
|
-
*/
|
|
74
|
-
toggleRow: (rowKey: string | number) => void;
|
|
75
|
-
/**
|
|
76
|
-
* Whether table has expandable rows
|
|
77
|
-
*/
|
|
78
|
-
expandable?: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Render function for expandable content
|
|
81
|
-
*/
|
|
82
|
-
renderExpandableContent?: (item: unknown, index: number) => ReactNode;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Table Root component props
|
|
86
|
-
*/
|
|
87
|
-
export interface TableRootProps<T = Record<string, unknown>> extends React.HTMLAttributes<HTMLTableElement> {
|
|
88
|
-
/**
|
|
89
|
-
* Table data array
|
|
90
|
-
*/
|
|
91
|
-
data: T[];
|
|
92
|
-
/**
|
|
93
|
-
* Column definitions
|
|
94
|
-
*/
|
|
95
|
-
columns: TableColumn<T>[];
|
|
96
|
-
/**
|
|
97
|
-
* Key to use for row identification
|
|
98
|
-
*/
|
|
99
|
-
rowKey: keyof T | ((item: T, index: number) => string | number);
|
|
100
|
-
/**
|
|
101
|
-
* Whether table supports sorting
|
|
102
|
-
* @default false
|
|
103
|
-
*/
|
|
104
|
-
sortable?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Whether table supports expandable rows
|
|
107
|
-
* @default false
|
|
108
|
-
*/
|
|
109
|
-
expandable?: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* Render function for expandable content
|
|
112
|
-
*/
|
|
113
|
-
renderExpandableContent?: (item: T, index: number) => ReactNode;
|
|
114
|
-
/**
|
|
115
|
-
* Whether table is in loading state
|
|
116
|
-
* @default false
|
|
117
|
-
*/
|
|
118
|
-
loading?: boolean;
|
|
119
|
-
/**
|
|
120
|
-
* Empty state message (shown when data is empty)
|
|
121
|
-
*/
|
|
122
|
-
emptyMessage?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Whether header is sticky
|
|
125
|
-
* @default false
|
|
126
|
-
*/
|
|
127
|
-
stickyHeader?: boolean;
|
|
128
|
-
/**
|
|
129
|
-
* Row size
|
|
130
|
-
* @default "md"
|
|
131
|
-
*/
|
|
132
|
-
rowSize?: "sm" | "md" | "lg";
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Table Header component props
|
|
136
|
-
*/
|
|
137
|
-
export interface TableHeaderProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
138
|
-
/**
|
|
139
|
-
* Whether header is sticky
|
|
140
|
-
* @default false
|
|
141
|
-
*/
|
|
142
|
-
sticky?: boolean;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Table Head component props
|
|
146
|
-
*/
|
|
147
|
-
export interface TableHeadProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
148
|
-
/**
|
|
149
|
-
* Column alignment
|
|
150
|
-
* @default "left"
|
|
151
|
-
*/
|
|
152
|
-
align?: "left" | "center" | "right";
|
|
153
|
-
/**
|
|
154
|
-
* Whether column is sortable
|
|
155
|
-
* @default false
|
|
156
|
-
*/
|
|
157
|
-
sortable?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Column key (for sorting)
|
|
160
|
-
*/
|
|
161
|
-
columnKey?: string;
|
|
162
|
-
/**
|
|
163
|
-
* Cell size
|
|
164
|
-
* @default "md"
|
|
165
|
-
*/
|
|
166
|
-
size?: "sm" | "md" | "lg";
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Table Body component props
|
|
170
|
-
*/
|
|
171
|
-
export interface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Table Row component props
|
|
175
|
-
*/
|
|
176
|
-
export interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
177
|
-
/**
|
|
178
|
-
* Whether row is selected
|
|
179
|
-
* @default false
|
|
180
|
-
*/
|
|
181
|
-
selected?: boolean;
|
|
182
|
-
/**
|
|
183
|
-
* Whether row is expandable
|
|
184
|
-
* @default false
|
|
185
|
-
*/
|
|
186
|
-
expandable?: boolean;
|
|
187
|
-
/**
|
|
188
|
-
* Row key (for expansion tracking)
|
|
189
|
-
*/
|
|
190
|
-
rowKey?: string | number;
|
|
191
|
-
/**
|
|
192
|
-
* Whether row is expanded
|
|
193
|
-
* @default false
|
|
194
|
-
*/
|
|
195
|
-
expanded?: boolean;
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Table Cell component props
|
|
199
|
-
*/
|
|
200
|
-
export interface TableCellProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
201
|
-
/**
|
|
202
|
-
* Cell alignment
|
|
203
|
-
* @default "left"
|
|
204
|
-
*/
|
|
205
|
-
align?: "left" | "center" | "right";
|
|
206
|
-
/**
|
|
207
|
-
* Cell size
|
|
208
|
-
* @default "md"
|
|
209
|
-
*/
|
|
210
|
-
size?: "sm" | "md" | "lg";
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* Table SortIcon component props
|
|
214
|
-
*/
|
|
215
|
-
export interface TableSortIconProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
216
|
-
/**
|
|
217
|
-
* Sort direction
|
|
218
|
-
*/
|
|
219
|
-
direction: SortDirection;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Table Empty component props
|
|
223
|
-
*/
|
|
224
|
-
export interface TableEmptyProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
225
|
-
/**
|
|
226
|
-
* Number of columns to span
|
|
227
|
-
*/
|
|
228
|
-
colSpan: number;
|
|
229
|
-
/**
|
|
230
|
-
* Empty message
|
|
231
|
-
*/
|
|
232
|
-
message?: string;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Table LoadingState component props
|
|
236
|
-
*/
|
|
237
|
-
export interface TableLoadingStateProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
238
|
-
/**
|
|
239
|
-
* Number of columns to span
|
|
240
|
-
*/
|
|
241
|
-
colSpan: number;
|
|
242
|
-
/**
|
|
243
|
-
* Number of skeleton rows to show
|
|
244
|
-
* @default 5
|
|
245
|
-
*/
|
|
246
|
-
rows?: number;
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* Table ExpandableContent component props
|
|
250
|
-
*/
|
|
251
|
-
export interface TableExpandableContentProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
252
|
-
/**
|
|
253
|
-
* Number of columns to span
|
|
254
|
-
*/
|
|
255
|
-
colSpan: number;
|
|
256
|
-
/**
|
|
257
|
-
* Whether content is expanded
|
|
258
|
-
*/
|
|
259
|
-
expanded: boolean;
|
|
260
|
-
/**
|
|
261
|
-
* Content to render
|
|
262
|
-
*/
|
|
263
|
-
children: ReactNode;
|
|
264
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TableBodyProps } from './Table.types';
|
|
2
|
-
/**
|
|
3
|
-
* Table Body Component
|
|
4
|
-
*
|
|
5
|
-
* Body section for table (tbody element).
|
|
6
|
-
*/
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
export type { TableBodyProps };
|
|
9
|
-
/**
|
|
10
|
-
* Table Body component
|
|
11
|
-
*/
|
|
12
|
-
declare const TableBody: React.ForwardRefExoticComponent<TableBodyProps & React.RefAttributes<HTMLTableSectionElement>>;
|
|
13
|
-
export { TableBody };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TableCellProps } from './Table.types';
|
|
2
|
-
/**
|
|
3
|
-
* Table Cell Component
|
|
4
|
-
*
|
|
5
|
-
* Table cell component with alignment and size support.
|
|
6
|
-
*/
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
export type { TableCellProps };
|
|
9
|
-
/**
|
|
10
|
-
* Table Cell component
|
|
11
|
-
*/
|
|
12
|
-
declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
13
|
-
export { TableCell };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TableEmptyProps } from './Table.types';
|
|
2
|
-
/**
|
|
3
|
-
* Table Empty Component
|
|
4
|
-
*
|
|
5
|
-
* Empty state row for table (uses EmptyState component).
|
|
6
|
-
*/
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
export type { TableEmptyProps };
|
|
9
|
-
/**
|
|
10
|
-
* Table Empty component
|
|
11
|
-
*/
|
|
12
|
-
declare const TableEmpty: React.ForwardRefExoticComponent<TableEmptyProps & React.RefAttributes<HTMLTableRowElement>>;
|
|
13
|
-
export { TableEmpty };
|