@tenerife.music/ui 1.0.3 → 1.0.6
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 +407 -123
- package/dist/animation/index.d.ts +0 -1
- package/dist/animation/presets.d.ts +6 -9
- package/dist/animation/tas.d.ts +2 -58
- package/dist/animation/types.d.ts +9 -48
- package/dist/animation/useInView.d.ts +36 -0
- package/dist/animation/utils.d.ts +0 -1
- package/dist/components/SectionBuilder.d.ts +0 -1
- package/dist/components/SectionBuilder.presets.d.ts +0 -1
- package/dist/components/SectionBuilder.types.d.ts +0 -1
- package/dist/components/admin/Dashboard.d.ts +0 -1
- package/dist/components/admin/UserManagement.d.ts +0 -1
- package/dist/components/auth/LoginForm.d.ts +0 -1
- package/dist/components/auth/ProfileCard.d.ts +0 -1
- package/dist/components/auth/RegisterForm.d.ts +0 -1
- package/dist/components/cards/ArtistCard/ArtistCard.d.ts +22 -0
- package/dist/components/cards/ArtistCard/ArtistCard.types.d.ts +46 -0
- package/dist/components/cards/ArtistCard/ArtistCard.variants.d.ts +83 -0
- package/dist/components/cards/ArtistCard/index.d.ts +8 -0
- package/dist/components/cards/CardBase/CardBase.d.ts +45 -0
- package/dist/components/cards/CardBase/CardBase.types.d.ts +70 -0
- package/dist/components/cards/CardBase/CardBase.variants.d.ts +38 -0
- package/dist/components/cards/CardBase/index.d.ts +8 -0
- package/dist/components/cards/CategoryCard/CategoryCard.d.ts +18 -0
- package/dist/components/cards/CategoryCard/CategoryCard.types.d.ts +38 -0
- package/dist/components/cards/CategoryCard/CategoryCard.variants.d.ts +21 -0
- package/dist/components/cards/CategoryCard/index.d.ts +7 -0
- package/dist/components/cards/EventCard/EventCard.d.ts +19 -0
- package/dist/components/cards/{EventCard.d.ts → EventCard/EventCard.types.d.ts} +13 -4
- package/dist/components/cards/EventCard/EventCard.variants.d.ts +70 -0
- package/dist/components/cards/EventCard/index.d.ts +7 -0
- package/dist/components/cards/PromoCard/PromoCard.d.ts +20 -0
- package/dist/components/cards/PromoCard/PromoCard.types.d.ts +42 -0
- package/dist/components/cards/PromoCard/PromoCard.variants.d.ts +35 -0
- package/dist/components/cards/PromoCard/index.d.ts +7 -0
- package/dist/components/cards/TicketCard/TicketCard.d.ts +19 -0
- package/dist/components/cards/TicketCard/TicketCard.types.d.ts +55 -0
- package/dist/components/cards/TicketCard/TicketCard.variants.d.ts +71 -0
- package/dist/components/cards/TicketCard/index.d.ts +7 -0
- package/dist/components/cards/VenueCard/VenueCard.d.ts +21 -0
- package/dist/components/cards/{VenueCard.d.ts → VenueCard/VenueCard.types.d.ts} +15 -7
- package/dist/components/cards/VenueCard/VenueCard.variants.d.ts +60 -0
- package/dist/components/cards/VenueCard/index.d.ts +8 -0
- package/dist/components/cards/index.d.ts +19 -0
- package/dist/components/checkbox/Checkbox.d.ts +22 -0
- package/dist/components/checkbox/Checkbox.types.d.ts +68 -0
- package/dist/components/checkbox/checkbox-variants.d.ts +13 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/containers/Card.d.ts +75 -0
- package/dist/components/containers/Section.d.ts +31 -0
- package/dist/components/containers/Surface.d.ts +28 -0
- package/dist/components/containers/index.d.ts +9 -0
- package/dist/components/controls/LanguageSelector.d.ts +0 -1
- package/dist/components/data/List.d.ts +0 -1
- package/dist/components/data/Table.d.ts +0 -1
- package/dist/components/data/Timeline.d.ts +0 -1
- package/dist/components/data/data-list/DataList.d.ts +29 -0
- package/dist/components/data/data-list/DataList.types.d.ts +43 -0
- package/dist/components/data/data-list/DataListItem.d.ts +20 -0
- package/dist/components/data/data-list/DataListLabel.d.ts +19 -0
- package/dist/components/data/data-list/DataListValue.d.ts +18 -0
- package/dist/components/data/data-list/index.d.ts +10 -0
- package/dist/components/data/empty-state/EmptyState.d.ts +31 -0
- package/dist/components/data/empty-state/EmptyState.types.d.ts +51 -0
- package/dist/components/data/empty-state/EmptyStateAction.d.ts +17 -0
- package/dist/components/data/empty-state/EmptyStateDescription.d.ts +17 -0
- package/dist/components/data/empty-state/EmptyStateIcon.d.ts +22 -0
- package/dist/components/data/empty-state/EmptyStateTitle.d.ts +17 -0
- package/dist/components/data/empty-state/index.d.ts +10 -0
- package/dist/components/data/index.d.ts +9 -0
- package/dist/components/data/skeleton/Skeleton.d.ts +24 -0
- package/dist/components/data/skeleton/Skeleton.types.d.ts +12 -0
- package/dist/components/data/skeleton/index.d.ts +6 -0
- package/dist/components/data/table/Table.d.ts +33 -0
- package/dist/components/data/table/Table.types.d.ts +264 -0
- package/dist/components/data/table/TableBody.d.ts +13 -0
- package/dist/components/data/table/TableCell.d.ts +13 -0
- package/dist/components/data/table/TableEmpty.d.ts +13 -0
- package/dist/components/data/table/TableExpandableContent.d.ts +14 -0
- package/dist/components/data/table/TableHead.d.ts +13 -0
- package/dist/components/data/table/TableHeader.d.ts +13 -0
- package/dist/components/data/table/TableLoadingState.d.ts +13 -0
- package/dist/components/data/table/TableRow.d.ts +13 -0
- package/dist/components/data/table/TableSortIcon.d.ts +14 -0
- package/dist/components/data/table/index.d.ts +17 -0
- package/dist/components/drawer/Drawer.d.ts +41 -0
- package/dist/components/drawer/Drawer.types.d.ts +75 -0
- package/dist/components/drawer/drawer-variants.d.ts +17 -0
- package/dist/components/drawer/index.d.ts +8 -0
- package/dist/components/dropdown/Dropdown.d.ts +38 -0
- package/dist/components/dropdown/Dropdown.types.d.ts +82 -0
- package/dist/components/dropdown/dropdown-variants.d.ts +33 -0
- package/dist/components/feedback/ConsentBanner.d.ts +0 -1
- package/dist/components/feedback/Progress.d.ts +0 -1
- package/dist/components/feedback/Skeleton.d.ts +0 -1
- package/dist/components/filters/DateRangePicker.d.ts +0 -1
- package/dist/components/filters/FilterBar.d.ts +0 -1
- package/dist/components/filters/FilterSelect.d.ts +0 -1
- package/dist/components/filters/PriceRangeSlider.d.ts +0 -1
- package/dist/components/filters/SearchFilters.d.ts +0 -1
- package/dist/components/filters/SearchInput.d.ts +1 -2
- package/dist/components/filters/types.d.ts +0 -1
- package/dist/components/icon/Icon.d.ts +32 -0
- package/dist/components/icon/Icon.types.d.ts +7 -0
- package/dist/components/icon/index.d.ts +4 -0
- package/dist/components/icons/TrendingIcon.d.ts +0 -1
- package/dist/components/image/Image.d.ts +0 -1
- package/dist/components/input/Input.d.ts +20 -0
- package/dist/components/input/Input.types.d.ts +38 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/input-variants.d.ts +14 -0
- package/dist/components/input/legacy/input.d.ts +11 -0
- package/dist/components/layout/Box.d.ts +40 -11
- package/dist/components/layout/Column.d.ts +6 -0
- package/dist/components/layout/Container.d.ts +1 -2
- package/dist/components/layout/Flex.d.ts +29 -14
- package/dist/components/layout/Footer.d.ts +0 -1
- package/dist/components/layout/Grid.d.ts +34 -26
- package/dist/components/layout/ModeHero.d.ts +0 -1
- package/dist/components/layout/Navbar.d.ts +0 -1
- package/dist/components/layout/Row.d.ts +28 -0
- package/dist/components/layout/Section.d.ts +0 -1
- package/dist/components/layout/Stack.d.ts +24 -15
- package/dist/components/layout/Surface.d.ts +21 -0
- package/dist/components/layout/index.d.ts +10 -5
- package/dist/components/layout/layout.types.d.ts +16 -1
- package/dist/components/menus/DropdownMenu.d.ts +0 -1
- package/dist/components/menus/NavigationMenu.d.ts +0 -1
- package/dist/components/menus/Tabs.d.ts +0 -1
- package/dist/components/menus/context-menu/ContextMenuContent.d.ts +22 -0
- package/dist/components/menus/context-menu/ContextMenuGroup.d.ts +14 -0
- package/dist/components/menus/context-menu/ContextMenuItem.d.ts +14 -0
- package/dist/components/menus/context-menu/ContextMenuLabel.d.ts +14 -0
- package/dist/components/menus/context-menu/ContextMenuRoot.d.ts +47 -0
- package/dist/components/menus/context-menu/ContextMenuSeparator.d.ts +14 -0
- package/dist/components/menus/context-menu/ContextMenuTrigger.d.ts +16 -0
- package/dist/components/menus/context-menu/index.d.ts +12 -0
- package/dist/components/menus/dropdown/DropdownMenuCheckItem.d.ts +18 -0
- package/dist/components/menus/dropdown/DropdownMenuContent.d.ts +15 -0
- package/dist/components/menus/dropdown/DropdownMenuGroup.d.ts +12 -0
- package/dist/components/menus/dropdown/DropdownMenuItem.d.ts +30 -0
- package/dist/components/menus/dropdown/DropdownMenuLabel.d.ts +17 -0
- package/dist/components/menus/dropdown/DropdownMenuRadioGroup.d.ts +24 -0
- package/dist/components/menus/dropdown/DropdownMenuRadioItem.d.ts +18 -0
- package/dist/components/menus/dropdown/DropdownMenuRoot.d.ts +33 -0
- package/dist/components/menus/dropdown/DropdownMenuSeparator.d.ts +13 -0
- package/dist/components/menus/dropdown/DropdownMenuSub.d.ts +10 -0
- package/dist/components/menus/dropdown/DropdownMenuSubContent.d.ts +13 -0
- package/dist/components/menus/dropdown/DropdownMenuSubTrigger.d.ts +13 -0
- package/dist/components/menus/dropdown/DropdownMenuTrigger.d.ts +14 -0
- package/dist/components/menus/dropdown/index.d.ts +18 -0
- package/dist/components/menus/hover-card/HoverCardContent.d.ts +14 -0
- package/dist/components/menus/hover-card/HoverCardRoot.d.ts +20 -0
- package/dist/components/menus/hover-card/HoverCardTrigger.d.ts +13 -0
- package/dist/components/menus/hover-card/index.d.ts +8 -0
- package/dist/components/menus/index.d.ts +9 -0
- package/dist/components/menus/popover/PopoverArrow.d.ts +17 -0
- package/dist/components/menus/popover/PopoverContent.d.ts +24 -0
- package/dist/components/menus/popover/PopoverRoot.d.ts +43 -0
- package/dist/components/menus/popover/PopoverTrigger.d.ts +17 -0
- package/dist/components/menus/popover/index.d.ts +9 -0
- package/dist/components/modal/Modal.d.ts +70 -0
- package/dist/components/modal/modal-variants.d.ts +26 -0
- package/dist/components/modals/ConfirmDialog.d.ts +3 -3
- package/dist/components/modals/CustomDialog.d.ts +0 -1
- package/dist/components/modals/Modal.d.ts +0 -1
- package/dist/components/modals/ModalProvider.d.ts +0 -1
- package/dist/components/modals/SimpleModal.d.ts +0 -1
- package/dist/components/navigation/Breadcrumbs.d.ts +0 -1
- package/dist/components/navigation/Pagination.d.ts +0 -1
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts +52 -0
- package/dist/components/navigation/breadcrumbs/index.d.ts +5 -0
- package/dist/components/navigation/index.d.ts +10 -0
- package/dist/components/navigation/pagination/Pagination.d.ts +60 -0
- package/dist/components/navigation/pagination/index.d.ts +5 -0
- package/dist/components/navigation/segmented-control/SegmentedControl.d.ts +43 -0
- package/dist/components/navigation/segmented-control/index.d.ts +5 -0
- package/dist/components/navigation/stepper/Stepper.d.ts +129 -0
- package/dist/components/navigation/stepper/index.d.ts +5 -0
- package/dist/components/navigation/tabs/Tabs.d.ts +73 -0
- package/dist/components/navigation/tabs/index.d.ts +5 -0
- package/dist/components/notifications/NotificationCenter.DismissAll.d.ts +21 -0
- package/dist/components/notifications/NotificationCenter.GroupHeader.d.ts +23 -0
- package/dist/components/notifications/NotificationCenter.Item.d.ts +24 -0
- package/dist/components/notifications/NotificationCenter.List.d.ts +22 -0
- package/dist/components/notifications/NotificationCenter.Panel.d.ts +32 -0
- package/dist/components/notifications/NotificationCenter.Provider.d.ts +31 -0
- package/dist/components/notifications/NotificationCenter.Trigger.d.ts +15 -0
- package/dist/components/notifications/NotificationCenter.d.ts +27 -0
- package/dist/components/notifications/NotificationCenter.types.d.ts +89 -0
- package/dist/components/notifications/index.d.ts +23 -0
- package/dist/components/notifications/useNotificationCenter.d.ts +47 -0
- package/dist/components/overlays/Backdrop.d.ts +24 -0
- package/dist/components/overlays/Dialog.d.ts +66 -0
- package/dist/components/overlays/Modal.d.ts +60 -0
- package/dist/components/overlays/OverlayPortal.d.ts +0 -1
- package/dist/components/overlays/Popover.d.ts +2 -3
- package/dist/components/overlays/Portal.d.ts +29 -0
- package/dist/components/overlays/Toast.d.ts +36 -0
- package/dist/components/overlays/ToastProvider.d.ts +58 -0
- package/dist/components/overlays/ToastViewport.d.ts +27 -0
- package/dist/components/overlays/Tooltip.d.ts +2 -3
- package/dist/components/overlays/index.d.ts +13 -0
- package/dist/components/overlays/utils/FocusLock.d.ts +30 -0
- package/dist/components/overlays/utils/ScrollLock.d.ts +11 -0
- package/dist/components/overlays/utils/positioning.d.ts +68 -0
- package/dist/components/primitives/Badge.d.ts +1 -2
- 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 -1
- package/dist/components/primitives/Input.d.ts +2 -3
- package/dist/components/primitives/Label.d.ts +0 -1
- package/dist/components/primitives/Link.d.ts +1 -2
- package/dist/components/primitives/ThemeSwitch.d.ts +3 -3
- package/dist/components/radio/Radio.d.ts +23 -0
- package/dist/components/radio/Radio.types.d.ts +63 -0
- package/dist/components/radio/RadioGroup.d.ts +20 -0
- package/dist/components/radio/RadioGroup.types.d.ts +61 -0
- package/dist/components/radio/index.d.ts +5 -0
- package/dist/components/radio/radio-variants.d.ts +13 -0
- package/dist/components/search/SearchBar.d.ts +0 -1
- package/dist/components/sections/ArticlesSection.d.ts +0 -1
- package/dist/components/sections/CTASection.d.ts +0 -1
- package/dist/components/sections/FeatureSection.d.ts +0 -1
- package/dist/components/sections/HeroSection.d.ts +0 -1
- package/dist/components/sections/TrendingSection.d.ts +0 -1
- package/dist/components/select/Select.d.ts +38 -0
- package/dist/components/select/Select.types.d.ts +107 -0
- package/dist/components/select/index.d.ts +5 -0
- package/dist/components/select/legacy/select.d.ts +11 -0
- package/dist/components/select/select-variants.d.ts +32 -0
- package/dist/components/skeletons/EventCardSkeleton.d.ts +0 -1
- package/dist/components/skeletons/VenueCardSkeleton.d.ts +0 -1
- package/dist/components/switch/Switch.d.ts +24 -0
- package/dist/components/switch/Switch.types.d.ts +53 -0
- package/dist/components/switch/index.d.ts +3 -0
- package/dist/components/switch/switch-variants.d.ts +34 -0
- package/dist/components/textarea/Textarea.d.ts +21 -0
- package/dist/components/textarea/Textarea.types.d.ts +40 -0
- package/dist/components/textarea/index.d.ts +3 -0
- package/dist/components/textarea/legacy/textarea.d.ts +11 -0
- package/dist/components/textarea/textarea-variants.d.ts +14 -0
- package/dist/components/toasts/Toast.d.ts +1 -2
- package/dist/components/toasts/ToastProvider.d.ts +0 -1
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/body.d.ts +12 -0
- package/dist/components/ui/button.d.ts +2 -3
- package/dist/components/ui/caption.d.ts +11 -0
- package/dist/components/ui/card.d.ts +0 -1
- package/dist/components/ui/code.d.ts +11 -0
- package/dist/components/ui/dialog.d.ts +0 -1
- package/dist/components/ui/display.d.ts +12 -0
- package/dist/components/ui/field.d.ts +45 -0
- package/dist/components/ui/heading.d.ts +12 -0
- package/dist/components/ui/label.d.ts +9 -3
- package/dist/components/ui/lead.d.ts +11 -0
- package/dist/components/ui/text.d.ts +18 -0
- package/dist/components/ui/toast.d.ts +0 -1
- package/dist/components/ui/toaster.d.ts +0 -1
- package/dist/components/ui/tooltip.d.ts +0 -1
- package/dist/hooks/use-toast.d.ts +0 -1
- package/dist/hooks/useDebounce.d.ts +0 -1
- package/dist/hooks/useModal.d.ts +0 -1
- package/dist/hooks/useToast.d.ts +0 -1
- package/dist/icons/IconArrowRight.d.ts +6 -0
- package/dist/icons/IconCalendar.d.ts +6 -0
- package/dist/icons/IconCheck.d.ts +6 -0
- package/dist/icons/IconChevronDown.d.ts +6 -0
- package/dist/icons/IconChevronRight.d.ts +6 -0
- package/dist/icons/IconClose.d.ts +6 -0
- package/dist/icons/IconError.d.ts +6 -0
- package/dist/icons/IconInfo.d.ts +6 -0
- package/dist/icons/IconLocation.d.ts +6 -0
- package/dist/icons/IconMenu.d.ts +6 -0
- package/dist/icons/IconSearch.d.ts +6 -0
- package/dist/icons/IconSuccess.d.ts +6 -0
- package/dist/icons/IconWarning.d.ts +6 -0
- package/dist/icons/icon.types.d.ts +25 -0
- package/dist/icons/index.d.ts +34 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +37 -78
- package/dist/index.mjs +7675 -5926
- package/dist/lib/a11y.d.ts +0 -1
- package/dist/lib/responsive-props.d.ts +0 -1
- package/dist/lib/utils.d.ts +0 -1
- package/dist/{motion-CuHacXY1.js → motion-CzQhSEqk.js} +122 -106
- package/dist/motion-DJx1TbXJ.cjs +2 -0
- package/dist/preset.cjs +1 -1
- package/dist/preset.d.ts +0 -1
- package/dist/preset.mjs +172 -53
- package/dist/styles.cjs +2 -0
- package/dist/styles.css +1 -1
- package/dist/styles.d.ts +0 -0
- package/dist/styles.mjs +1 -0
- package/dist/theme/ThemeProvider.d.ts +1 -2
- package/dist/theme/applyMode.d.ts +0 -1
- package/dist/theme/colors.d.ts +6 -71
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.d.ts +1 -2
- package/dist/theme/index.mjs +1352 -224
- package/dist/theme/loader.d.ts +0 -1
- package/dist/theme/motion/gestures.d.ts +76 -0
- package/dist/theme/motion/useReducedMotion.d.ts +11 -0
- package/dist/theme/motion.d.ts +0 -1
- package/dist/theme/registry.d.ts +0 -1
- package/dist/theme/schema.d.ts +0 -1
- package/dist/theme/spacing.d.ts +0 -1
- package/dist/theme/typography.d.ts +0 -1
- package/dist/themes/brand.d.ts +0 -1
- package/dist/themes/brand_engine.d.ts +7 -1
- package/dist/themes/dark.d.ts +0 -1
- package/dist/themes/default.d.ts +0 -1
- package/dist/themes/index.d.ts +0 -1
- package/dist/themes/minimal.d.ts +0 -1
- package/dist/themes/neon.d.ts +0 -1
- package/dist/themes/types.d.ts +0 -1
- package/dist/tokens/colors.d.ts +14 -20
- package/dist/tokens/components/alert.d.ts +74 -0
- package/dist/tokens/components/button.d.ts +130 -0
- package/dist/tokens/components/card.d.ts +91 -0
- package/dist/tokens/components/checkbox.d.ts +161 -0
- package/dist/tokens/components/data.d.ts +227 -0
- package/dist/tokens/components/domain.d.ts +379 -0
- package/dist/tokens/components/dropdown.d.ts +146 -0
- package/dist/tokens/components/icon.d.ts +57 -0
- package/dist/tokens/components/index.d.ts +31 -0
- package/dist/tokens/components/input.d.ts +284 -0
- package/dist/tokens/components/menu.d.ts +114 -0
- package/dist/tokens/components/motion.d.ts +103 -0
- package/dist/tokens/components/navigation.d.ts +181 -0
- package/dist/tokens/components/notifications.d.ts +159 -0
- package/dist/tokens/components/overlay.d.ts +227 -0
- package/dist/tokens/components/popover.d.ts +84 -0
- package/dist/tokens/components/radio.d.ts +149 -0
- package/dist/tokens/components/section.d.ts +41 -0
- package/dist/tokens/components/surface.d.ts +94 -0
- package/dist/tokens/components/switch.d.ts +208 -0
- package/dist/tokens/components/text.d.ts +68 -0
- package/dist/tokens/components/toast.d.ts +146 -0
- package/dist/tokens/components/tooltip.d.ts +52 -0
- package/dist/tokens/css-variables.d.ts +0 -20
- package/dist/tokens/index.cjs +3 -3
- package/dist/tokens/index.d.ts +2 -1
- package/dist/tokens/index.mjs +3640 -821
- package/dist/tokens/motion/v2.d.ts +342 -0
- package/dist/tokens/motion.d.ts +55 -5
- package/dist/tokens/opacity.d.ts +22 -0
- package/dist/tokens/radius.d.ts +22 -2
- package/dist/tokens/shadows.d.ts +64 -6
- package/dist/tokens/spacing.d.ts +47 -2
- package/dist/tokens/theme.d.ts +119 -0
- package/dist/tokens/typography.d.ts +141 -24
- package/dist/typography-C-Nb4y0o.cjs +2 -0
- package/dist/typography-DHym9KAP.js +1196 -0
- package/package.json +31 -22
- package/dist/ThemeProvider-CaUX_Jam.cjs +0 -2
- package/dist/ThemeProvider-ltuW-773.js +0 -1227
- package/dist/animation/index.d.ts.map +0 -1
- package/dist/animation/presets.d.ts.map +0 -1
- package/dist/animation/tas.d.ts.map +0 -1
- package/dist/animation/types.d.ts.map +0 -1
- package/dist/animation/utils.d.ts.map +0 -1
- package/dist/components/SectionBuilder.d.ts.map +0 -1
- package/dist/components/SectionBuilder.presets.d.ts.map +0 -1
- package/dist/components/SectionBuilder.types.d.ts.map +0 -1
- package/dist/components/admin/Dashboard.d.ts.map +0 -1
- package/dist/components/admin/UserManagement.d.ts.map +0 -1
- package/dist/components/auth/LoginForm.d.ts.map +0 -1
- package/dist/components/auth/ProfileCard.d.ts.map +0 -1
- package/dist/components/auth/RegisterForm.d.ts.map +0 -1
- package/dist/components/cards/EventCard.d.ts.map +0 -1
- package/dist/components/cards/VenueCard.d.ts.map +0 -1
- package/dist/components/controls/LanguageSelector.d.ts.map +0 -1
- package/dist/components/data/List.d.ts.map +0 -1
- package/dist/components/data/Table.d.ts.map +0 -1
- package/dist/components/data/Timeline.d.ts.map +0 -1
- package/dist/components/feedback/Alert.d.ts +0 -10
- package/dist/components/feedback/Alert.d.ts.map +0 -1
- package/dist/components/feedback/ConsentBanner.d.ts.map +0 -1
- package/dist/components/feedback/Progress.d.ts.map +0 -1
- package/dist/components/feedback/Skeleton.d.ts.map +0 -1
- package/dist/components/filters/DateRangePicker.d.ts.map +0 -1
- package/dist/components/filters/FilterBar.d.ts.map +0 -1
- package/dist/components/filters/FilterSelect.d.ts.map +0 -1
- package/dist/components/filters/PriceRangeSlider.d.ts.map +0 -1
- package/dist/components/filters/SearchFilters.d.ts.map +0 -1
- package/dist/components/filters/SearchInput.d.ts.map +0 -1
- package/dist/components/filters/types.d.ts.map +0 -1
- package/dist/components/forms/FormInput.d.ts +0 -12
- package/dist/components/forms/FormInput.d.ts.map +0 -1
- package/dist/components/forms/FormSelect.d.ts +0 -18
- package/dist/components/forms/FormSelect.d.ts.map +0 -1
- package/dist/components/forms/FormTextarea.d.ts +0 -11
- package/dist/components/forms/FormTextarea.d.ts.map +0 -1
- package/dist/components/icons/TrendingIcon.d.ts.map +0 -1
- package/dist/components/image/Image.d.ts.map +0 -1
- package/dist/components/layout/Box.d.ts.map +0 -1
- package/dist/components/layout/Container.d.ts.map +0 -1
- package/dist/components/layout/Flex.d.ts.map +0 -1
- package/dist/components/layout/Footer.d.ts.map +0 -1
- package/dist/components/layout/Grid.d.ts.map +0 -1
- package/dist/components/layout/ModeHero.d.ts.map +0 -1
- package/dist/components/layout/Navbar.d.ts.map +0 -1
- package/dist/components/layout/Section.d.ts.map +0 -1
- package/dist/components/layout/Stack.d.ts.map +0 -1
- package/dist/components/layout/index.d.ts.map +0 -1
- package/dist/components/layout/layout.types.d.ts.map +0 -1
- package/dist/components/menus/DropdownMenu.d.ts.map +0 -1
- package/dist/components/menus/NavigationMenu.d.ts.map +0 -1
- package/dist/components/menus/Tabs.d.ts.map +0 -1
- package/dist/components/modals/ConfirmDialog.d.ts.map +0 -1
- package/dist/components/modals/CustomDialog.d.ts.map +0 -1
- package/dist/components/modals/Modal.d.ts.map +0 -1
- package/dist/components/modals/ModalProvider.d.ts.map +0 -1
- package/dist/components/modals/SimpleModal.d.ts.map +0 -1
- package/dist/components/navigation/Breadcrumbs.d.ts.map +0 -1
- package/dist/components/navigation/Pagination.d.ts.map +0 -1
- package/dist/components/overlays/OverlayPortal.d.ts.map +0 -1
- package/dist/components/overlays/Popover.d.ts.map +0 -1
- package/dist/components/overlays/Tooltip.d.ts.map +0 -1
- package/dist/components/primitives/Badge.d.ts.map +0 -1
- package/dist/components/primitives/Button.d.ts.map +0 -1
- package/dist/components/primitives/Card.d.ts.map +0 -1
- package/dist/components/primitives/Divider.d.ts.map +0 -1
- package/dist/components/primitives/Input.d.ts.map +0 -1
- package/dist/components/primitives/Label.d.ts.map +0 -1
- package/dist/components/primitives/Link.d.ts.map +0 -1
- package/dist/components/primitives/ThemeSwitch.d.ts.map +0 -1
- package/dist/components/primitives/Typography.d.ts +0 -21
- package/dist/components/primitives/Typography.d.ts.map +0 -1
- package/dist/components/search/SearchBar.d.ts.map +0 -1
- package/dist/components/sections/ArticlesSection.d.ts.map +0 -1
- package/dist/components/sections/CTASection.d.ts.map +0 -1
- package/dist/components/sections/FeatureSection.d.ts.map +0 -1
- package/dist/components/sections/HeroSection.d.ts.map +0 -1
- package/dist/components/sections/TrendingSection.d.ts.map +0 -1
- package/dist/components/skeletons/EventCardSkeleton.d.ts.map +0 -1
- package/dist/components/skeletons/VenueCardSkeleton.d.ts.map +0 -1
- package/dist/components/toasts/Toast.d.ts.map +0 -1
- package/dist/components/toasts/ToastProvider.d.ts.map +0 -1
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/input.d.ts +0 -4
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/toast.d.ts.map +0 -1
- package/dist/components/ui/toaster.d.ts.map +0 -1
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/hooks/use-toast.d.ts.map +0 -1
- package/dist/hooks/useDebounce.d.ts.map +0 -1
- package/dist/hooks/useModal.d.ts.map +0 -1
- package/dist/hooks/useToast.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/a11y.d.ts.map +0 -1
- package/dist/lib/responsive-props.d.ts.map +0 -1
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/motion-4SRNkZlz.cjs +0 -2
- package/dist/preset.d.ts.map +0 -1
- package/dist/radius-CAu4qr9R.js +0 -185
- package/dist/radius-Cz6tayZG.cjs +0 -2
- package/dist/test/animation-utils.d.ts +0 -60
- package/dist/test/animation-utils.d.ts.map +0 -1
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.d.ts.map +0 -1
- package/dist/theme/ThemeProvider.d.ts.map +0 -1
- package/dist/theme/applyMode.d.ts.map +0 -1
- package/dist/theme/colors.d.ts.map +0 -1
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/loader.d.ts.map +0 -1
- package/dist/theme/motion.d.ts.map +0 -1
- package/dist/theme/registry.d.ts.map +0 -1
- package/dist/theme/schema.d.ts.map +0 -1
- package/dist/theme/spacing.d.ts.map +0 -1
- package/dist/theme/typography.d.ts.map +0 -1
- package/dist/themes/brand.d.ts.map +0 -1
- package/dist/themes/brand_engine.d.ts.map +0 -1
- package/dist/themes/dark.d.ts.map +0 -1
- package/dist/themes/default.d.ts.map +0 -1
- package/dist/themes/index.d.ts.map +0 -1
- package/dist/themes/minimal.d.ts.map +0 -1
- package/dist/themes/neon.d.ts.map +0 -1
- package/dist/themes/types.d.ts.map +0 -1
- package/dist/tokens/colors.d.ts.map +0 -1
- package/dist/tokens/css-variables.d.ts.map +0 -1
- package/dist/tokens/index.d.ts.map +0 -1
- package/dist/tokens/motion.d.ts.map +0 -1
- package/dist/tokens/radius.d.ts.map +0 -1
- package/dist/tokens/shadows.d.ts.map +0 -1
- package/dist/tokens/spacing.d.ts.map +0 -1
- package/dist/tokens/typography.d.ts.map +0 -1
|
@@ -0,0 +1,264 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 };
|
|
@@ -0,0 +1,13 @@
|
|
|
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 };
|
|
@@ -0,0 +1,13 @@
|
|
|
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 };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TableExpandableContentProps } from './Table.types';
|
|
2
|
+
/**
|
|
3
|
+
* Table ExpandableContent Component
|
|
4
|
+
*
|
|
5
|
+
* Expandable content cell with CSS height transitions.
|
|
6
|
+
*/
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
export type { TableExpandableContentProps };
|
|
9
|
+
/**
|
|
10
|
+
* Table ExpandableContent component
|
|
11
|
+
* Uses CSS height transitions (no framer-motion)
|
|
12
|
+
*/
|
|
13
|
+
declare const TableExpandableContent: React.ForwardRefExoticComponent<TableExpandableContentProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
14
|
+
export { TableExpandableContent };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TableHeadProps } from './Table.types';
|
|
2
|
+
/**
|
|
3
|
+
* Table Head Component
|
|
4
|
+
*
|
|
5
|
+
* Header cell component with sorting support.
|
|
6
|
+
*/
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
export type { TableHeadProps };
|
|
9
|
+
/**
|
|
10
|
+
* Table Head component
|
|
11
|
+
*/
|
|
12
|
+
declare const TableHead: React.ForwardRefExoticComponent<TableHeadProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
13
|
+
export { TableHead };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TableHeaderProps } from './Table.types';
|
|
2
|
+
/**
|
|
3
|
+
* Table Header Component
|
|
4
|
+
*
|
|
5
|
+
* Header section for table (thead element).
|
|
6
|
+
*/
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
export type { TableHeaderProps };
|
|
9
|
+
/**
|
|
10
|
+
* Table Header component
|
|
11
|
+
*/
|
|
12
|
+
declare const TableHeader: React.ForwardRefExoticComponent<TableHeaderProps & React.RefAttributes<HTMLTableSectionElement>>;
|
|
13
|
+
export { TableHeader };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TableLoadingStateProps } from './Table.types';
|
|
2
|
+
/**
|
|
3
|
+
* Table LoadingState Component
|
|
4
|
+
*
|
|
5
|
+
* Loading state row for table (uses Skeleton component).
|
|
6
|
+
*/
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
export type { TableLoadingStateProps };
|
|
9
|
+
/**
|
|
10
|
+
* Table LoadingState component
|
|
11
|
+
*/
|
|
12
|
+
declare const TableLoadingState: React.ForwardRefExoticComponent<TableLoadingStateProps & React.RefAttributes<HTMLTableRowElement>>;
|
|
13
|
+
export { TableLoadingState };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TableRowProps } from './Table.types';
|
|
2
|
+
/**
|
|
3
|
+
* Table Row Component
|
|
4
|
+
*
|
|
5
|
+
* Table row component with hover and selected states.
|
|
6
|
+
*/
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
export type { TableRowProps };
|
|
9
|
+
/**
|
|
10
|
+
* Table Row component
|
|
11
|
+
*/
|
|
12
|
+
declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
|
|
13
|
+
export { TableRow };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TableSortIconProps } from './Table.types';
|
|
2
|
+
/**
|
|
3
|
+
* Table SortIcon Component
|
|
4
|
+
*
|
|
5
|
+
* Sort indicator icon with rotation animation.
|
|
6
|
+
*/
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
export type { TableSortIconProps };
|
|
9
|
+
/**
|
|
10
|
+
* Table SortIcon component
|
|
11
|
+
* Uses CSS rotation animation (no framer-motion)
|
|
12
|
+
*/
|
|
13
|
+
declare const TableSortIcon: React.ForwardRefExoticComponent<TableSortIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
14
|
+
export { TableSortIcon };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table Component
|
|
3
|
+
*
|
|
4
|
+
* Token-driven table component with sorting, expandable rows, loading, and empty states.
|
|
5
|
+
*/
|
|
6
|
+
export { TableRoot, useTableContext } from './Table';
|
|
7
|
+
export type { SortDirection, SortState, TableColumn, TableContextValue, TableRootProps, } from './Table.types';
|
|
8
|
+
export { TableBody, type TableBodyProps } from './TableBody';
|
|
9
|
+
export { TableCell, type TableCellProps } from './TableCell';
|
|
10
|
+
export { TableEmpty, type TableEmptyProps } from './TableEmpty';
|
|
11
|
+
export { TableExpandableContent, type TableExpandableContentProps } from './TableExpandableContent';
|
|
12
|
+
export { TableHead, type TableHeadProps } from './TableHead';
|
|
13
|
+
export { TableHeader, type TableHeaderProps } from './TableHeader';
|
|
14
|
+
export { TableLoadingState, type TableLoadingStateProps } from './TableLoadingState';
|
|
15
|
+
export { TableRow, type TableRowProps } from './TableRow';
|
|
16
|
+
export { TableSortIcon, type TableSortIconProps } from './TableSortIcon';
|
|
17
|
+
export { TableRoot as Table } from './Table';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DrawerBodyProps, DrawerFooterProps, DrawerHeaderProps, DrawerProps as DrawerPropsType } from './Drawer.types';
|
|
2
|
+
import { drawerVariants } from './drawer-variants';
|
|
3
|
+
/**
|
|
4
|
+
* Drawer Component
|
|
5
|
+
*
|
|
6
|
+
* Complete CVA-driven, tokenized, theme-aware drawer overlay with focus trap,
|
|
7
|
+
* keyboard controls, and portal rendering. Supports left, right, and bottom positions.
|
|
8
|
+
*
|
|
9
|
+
* Features:
|
|
10
|
+
* - Portal rendering for proper z-index stacking
|
|
11
|
+
* - Focus trap (loops focus inside drawer)
|
|
12
|
+
* - Escape key closes drawer
|
|
13
|
+
* - Overlay click optionally closes (prop controlled)
|
|
14
|
+
* - Theme-aware overlay opacity using tokens
|
|
15
|
+
* - Token-driven shadows, border radius, and spacing
|
|
16
|
+
* - Complete accessibility (role, aria-modal, aria-labelledby, aria-describedby)
|
|
17
|
+
* - Initial focus on first interactive element
|
|
18
|
+
* - Position variants: left, right, bottom
|
|
19
|
+
* - Size variants: sm, md, lg
|
|
20
|
+
*/
|
|
21
|
+
import * as React from "react";
|
|
22
|
+
/**
|
|
23
|
+
* Drawer Header - Header section with spacing
|
|
24
|
+
*/
|
|
25
|
+
declare const DrawerHeader: React.ForwardRefExoticComponent<DrawerHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
/**
|
|
27
|
+
* Drawer Body - Main content area
|
|
28
|
+
*/
|
|
29
|
+
declare const DrawerBody: React.ForwardRefExoticComponent<DrawerBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
/**
|
|
31
|
+
* Drawer Footer - Footer section with layout
|
|
32
|
+
*/
|
|
33
|
+
declare const DrawerFooter: React.ForwardRefExoticComponent<DrawerFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
declare const Drawer: React.ForwardRefExoticComponent<DrawerPropsType & React.RefAttributes<HTMLDivElement>> & {
|
|
35
|
+
Content: React.ForwardRefExoticComponent<DrawerPropsType & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
Header: React.ForwardRefExoticComponent<DrawerHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
Body: React.ForwardRefExoticComponent<DrawerBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
Footer: React.ForwardRefExoticComponent<DrawerFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
};
|
|
40
|
+
export type { DrawerBackdropVariant, DrawerBodyProps, DrawerFooterProps, DrawerHeaderProps, DrawerPosition, DrawerProps, DrawerSize, } from './Drawer.types';
|
|
41
|
+
export { Drawer, DrawerBody, DrawerFooter, DrawerHeader, drawerVariants };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { drawerVariants } from './drawer-variants';
|
|
3
|
+
/**
|
|
4
|
+
* Drawer position variants
|
|
5
|
+
*/
|
|
6
|
+
export type DrawerPosition = "left" | "right" | "bottom";
|
|
7
|
+
/**
|
|
8
|
+
* Drawer size variants
|
|
9
|
+
*/
|
|
10
|
+
export type DrawerSize = "sm" | "md" | "lg";
|
|
11
|
+
/**
|
|
12
|
+
* Backdrop variant for drawer overlay
|
|
13
|
+
*/
|
|
14
|
+
export type DrawerBackdropVariant = "default" | "blurred" | "transparent";
|
|
15
|
+
/**
|
|
16
|
+
* Drawer Props
|
|
17
|
+
* Main props interface for Drawer component
|
|
18
|
+
*/
|
|
19
|
+
export interface DrawerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onClick" | "role" | "aria-modal" | "aria-labelledby" | "aria-describedby">, VariantProps<typeof drawerVariants> {
|
|
20
|
+
/**
|
|
21
|
+
* Whether drawer is open
|
|
22
|
+
*/
|
|
23
|
+
open: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Callback when drawer should close
|
|
26
|
+
*/
|
|
27
|
+
onClose: () => void;
|
|
28
|
+
/**
|
|
29
|
+
* Drawer position variant
|
|
30
|
+
*/
|
|
31
|
+
position?: DrawerPosition;
|
|
32
|
+
/**
|
|
33
|
+
* Drawer size variant
|
|
34
|
+
*/
|
|
35
|
+
size?: DrawerSize;
|
|
36
|
+
/**
|
|
37
|
+
* Backdrop variant
|
|
38
|
+
*/
|
|
39
|
+
backdropVariant?: DrawerBackdropVariant;
|
|
40
|
+
/**
|
|
41
|
+
* Whether to close on backdrop click
|
|
42
|
+
*/
|
|
43
|
+
closeOnBackdropClick?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether to close on escape key
|
|
46
|
+
*/
|
|
47
|
+
closeOnEscape?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Element to return focus to when drawer closes
|
|
50
|
+
*/
|
|
51
|
+
returnFocusRef?: React.RefObject<HTMLElement>;
|
|
52
|
+
/**
|
|
53
|
+
* ID for the drawer title (for aria-labelledby)
|
|
54
|
+
*/
|
|
55
|
+
titleId?: string;
|
|
56
|
+
/**
|
|
57
|
+
* ID for the drawer description (for aria-describedby)
|
|
58
|
+
*/
|
|
59
|
+
descriptionId?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Drawer Header Props
|
|
63
|
+
*/
|
|
64
|
+
export interface DrawerHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Drawer Body Props
|
|
68
|
+
*/
|
|
69
|
+
export interface DrawerBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Drawer Footer Props
|
|
73
|
+
*/
|
|
74
|
+
export interface DrawerFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
75
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drawer Variants
|
|
3
|
+
*
|
|
4
|
+
* CVA-based variant system for Drawer component.
|
|
5
|
+
* Supports positions (left, right, bottom), sizes (sm, md, lg),
|
|
6
|
+
* and transitions (appear, disappear).
|
|
7
|
+
* All styling uses token-based values with CSS variable references.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Drawer Content Variants
|
|
11
|
+
* Main drawer container with position, size, and transition support
|
|
12
|
+
*/
|
|
13
|
+
export declare const drawerVariants: (props?: ({
|
|
14
|
+
position?: "left" | "right" | "bottom" | null | undefined;
|
|
15
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
16
|
+
transition?: "appear" | "disappear" | null | undefined;
|
|
17
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drawer Component Exports
|
|
3
|
+
*
|
|
4
|
+
* Token-driven drawer component with Portal, Backdrop, and Surface integration.
|
|
5
|
+
* Supports position variants (left, right, bottom) and size variants (sm, md, lg).
|
|
6
|
+
*/
|
|
7
|
+
export { Drawer, DrawerBody, DrawerFooter, DrawerHeader, drawerVariants } from './Drawer';
|
|
8
|
+
export type { DrawerBackdropVariant, DrawerBodyProps, DrawerFooterProps, DrawerHeaderProps, DrawerPosition, DrawerProps, DrawerSize, } from './Drawer.types';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DropdownItemProps, DropdownMenuProps, DropdownRootProps, DropdownTriggerProps } from './Dropdown.types';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Dropdown Root Component
|
|
5
|
+
* Manages state and provides context for all Dropdown sub-components
|
|
6
|
+
*/
|
|
7
|
+
export declare function DropdownRoot({ open: controlledOpen, onOpenChange, defaultOpen, disabled, children, variant, size, }: DropdownRootProps & {
|
|
8
|
+
variant?: DropdownRootProps["variant"];
|
|
9
|
+
size?: DropdownRootProps["size"];
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare namespace DropdownRoot {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Dropdown Trigger Component
|
|
16
|
+
* Button that opens/closes the dropdown
|
|
17
|
+
*/
|
|
18
|
+
export declare const DropdownTrigger: React.ForwardRefExoticComponent<DropdownTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
/**
|
|
20
|
+
* Dropdown Menu Component
|
|
21
|
+
* Portal-rendered menu container with keyboard navigation
|
|
22
|
+
*/
|
|
23
|
+
export declare const DropdownMenu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
/**
|
|
25
|
+
* Dropdown Item Component
|
|
26
|
+
* Individual menu item with roving tabindex
|
|
27
|
+
*/
|
|
28
|
+
export declare const DropdownItem: React.ForwardRefExoticComponent<DropdownItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
/**
|
|
30
|
+
* Dropdown Component (Compound)
|
|
31
|
+
* Main export that combines all sub-components
|
|
32
|
+
*/
|
|
33
|
+
export declare const Dropdown: {
|
|
34
|
+
Root: typeof DropdownRoot;
|
|
35
|
+
Trigger: React.ForwardRefExoticComponent<DropdownTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
Menu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
Item: React.ForwardRefExoticComponent<DropdownItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { dropdownItemVariants, dropdownMenuVariants, dropdownTriggerVariants } from './dropdown-variants';
|
|
3
|
+
/**
|
|
4
|
+
* Dropdown Root Props
|
|
5
|
+
* Props for the DropdownRoot component that manages dropdown state
|
|
6
|
+
*/
|
|
7
|
+
export interface DropdownRootProps {
|
|
8
|
+
/**
|
|
9
|
+
* Controlled open state
|
|
10
|
+
*/
|
|
11
|
+
open?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Callback when open state changes
|
|
14
|
+
*/
|
|
15
|
+
onOpenChange?: (open: boolean) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Default open state (uncontrolled)
|
|
18
|
+
*/
|
|
19
|
+
defaultOpen?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Disable the dropdown
|
|
22
|
+
*/
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Dropdown children
|
|
26
|
+
*/
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Dropdown variant
|
|
30
|
+
*/
|
|
31
|
+
variant?: "neutral" | "tinted";
|
|
32
|
+
/**
|
|
33
|
+
* Dropdown size
|
|
34
|
+
*/
|
|
35
|
+
size?: "sm" | "md" | "lg";
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Dropdown Trigger Props
|
|
39
|
+
* Props for the DropdownTrigger component
|
|
40
|
+
*/
|
|
41
|
+
export interface DropdownTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof dropdownTriggerVariants> {
|
|
42
|
+
/**
|
|
43
|
+
* Render as child element
|
|
44
|
+
*/
|
|
45
|
+
asChild?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Dropdown trigger children
|
|
48
|
+
*/
|
|
49
|
+
children: React.ReactNode;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Dropdown Menu Props
|
|
53
|
+
* Props for the DropdownMenu component
|
|
54
|
+
*/
|
|
55
|
+
export interface DropdownMenuProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof dropdownMenuVariants> {
|
|
56
|
+
/**
|
|
57
|
+
* Dropdown menu children
|
|
58
|
+
*/
|
|
59
|
+
children: React.ReactNode;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Dropdown Item Props
|
|
63
|
+
* Props for the DropdownItem component
|
|
64
|
+
*/
|
|
65
|
+
export interface DropdownItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect">, VariantProps<typeof dropdownItemVariants> {
|
|
66
|
+
/**
|
|
67
|
+
* Whether the item is disabled
|
|
68
|
+
*/
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Whether the item is selected
|
|
72
|
+
*/
|
|
73
|
+
selected?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Callback when item is selected
|
|
76
|
+
*/
|
|
77
|
+
onSelect?: (event: Event) => void;
|
|
78
|
+
/**
|
|
79
|
+
* Dropdown item children
|
|
80
|
+
*/
|
|
81
|
+
children: React.ReactNode;
|
|
82
|
+
}
|