@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,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Portal Component
|
|
3
|
-
*
|
|
4
|
-
* SSR-safe portal component for rendering children outside the DOM hierarchy.
|
|
5
|
-
* Mounts to document.body by default, with optional custom container support.
|
|
6
|
-
*/
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
export interface PortalProps {
|
|
9
|
-
/**
|
|
10
|
-
* Children to portal
|
|
11
|
-
*/
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Container element to portal into (defaults to document.body)
|
|
15
|
-
*/
|
|
16
|
-
container?: Element | null;
|
|
17
|
-
/**
|
|
18
|
-
* Additional CSS classes
|
|
19
|
-
*/
|
|
20
|
-
className?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Additional inline styles
|
|
23
|
-
*/
|
|
24
|
-
style?: React.CSSProperties;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Portal component - SSR-safe portal rendering
|
|
28
|
-
*/
|
|
29
|
-
export declare const Portal: React.ForwardRefExoticComponent<PortalProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const toastVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "success" | "warning" | "danger" | "info" | null | undefined;
|
|
5
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
-
export interface ToastAction {
|
|
7
|
-
label: string;
|
|
8
|
-
onClick: () => void;
|
|
9
|
-
}
|
|
10
|
-
export interface ToastData {
|
|
11
|
-
id: string;
|
|
12
|
-
title?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
variant?: "default" | "success" | "info" | "warning" | "danger";
|
|
15
|
-
action?: ToastAction;
|
|
16
|
-
duration?: number;
|
|
17
|
-
}
|
|
18
|
-
export interface ToastProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof toastVariants> {
|
|
19
|
-
/**
|
|
20
|
-
* Toast data
|
|
21
|
-
*/
|
|
22
|
-
toast: ToastData;
|
|
23
|
-
/**
|
|
24
|
-
* Callback when toast is dismissed
|
|
25
|
-
*/
|
|
26
|
-
onDismiss: (id: string) => void;
|
|
27
|
-
/**
|
|
28
|
-
* Whether toast is visible (for animation)
|
|
29
|
-
*/
|
|
30
|
-
isVisible?: boolean;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Toast component - notification toast
|
|
34
|
-
*/
|
|
35
|
-
export declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { ToastAction, ToastData } from './Toast';
|
|
2
|
-
import { ToastPosition } from './ToastViewport';
|
|
3
|
-
/**
|
|
4
|
-
* ToastProvider Component
|
|
5
|
-
*
|
|
6
|
-
* Context provider for toast notifications.
|
|
7
|
-
* Manages toast state and provides toast() function.
|
|
8
|
-
* Supports position configuration and max toasts limit.
|
|
9
|
-
*/
|
|
10
|
-
import * as React from "react";
|
|
11
|
-
export interface ToastOptions {
|
|
12
|
-
title?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
variant?: "default" | "success" | "info" | "warning" | "danger";
|
|
15
|
-
action?: ToastAction;
|
|
16
|
-
duration?: number;
|
|
17
|
-
}
|
|
18
|
-
interface ToastContextType {
|
|
19
|
-
toast: (options: ToastOptions) => string;
|
|
20
|
-
dismiss: (id: string) => void;
|
|
21
|
-
dismissAll: () => void;
|
|
22
|
-
updateToast: (id: string, updates: Partial<ToastData>) => void;
|
|
23
|
-
getQueue: () => ToastData[];
|
|
24
|
-
getGrouped: () => Record<string, ToastData[]>;
|
|
25
|
-
}
|
|
26
|
-
export type GroupByFunction = (toast: ToastData) => string;
|
|
27
|
-
export interface ToastProviderProps {
|
|
28
|
-
/**
|
|
29
|
-
* Children to render
|
|
30
|
-
*/
|
|
31
|
-
children: React.ReactNode;
|
|
32
|
-
/**
|
|
33
|
-
* Position of toast viewport
|
|
34
|
-
*/
|
|
35
|
-
position?: ToastPosition;
|
|
36
|
-
/**
|
|
37
|
-
* Maximum number of toasts to show (default: 5)
|
|
38
|
-
*/
|
|
39
|
-
maxToasts?: number;
|
|
40
|
-
/**
|
|
41
|
-
* Maximum number of visible toasts (default: 3)
|
|
42
|
-
* Overflow notifications are queued
|
|
43
|
-
*/
|
|
44
|
-
maxVisible?: number;
|
|
45
|
-
/**
|
|
46
|
-
* Function to group toasts (by date, type, or custom)
|
|
47
|
-
*/
|
|
48
|
-
groupBy?: GroupByFunction;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* ToastProvider component - context provider for toast notifications
|
|
52
|
-
*/
|
|
53
|
-
export declare function ToastProvider({ children, position, maxVisible, groupBy, }: ToastProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
-
/**
|
|
55
|
-
* Hook to use toast context
|
|
56
|
-
*/
|
|
57
|
-
export declare function useToast(): ToastContextType;
|
|
58
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ToastViewport Component
|
|
3
|
-
*
|
|
4
|
-
* Fixed positioning container for toast notifications.
|
|
5
|
-
* Supports position variants (top-right, bottom-left, etc.).
|
|
6
|
-
* Uses Portal for rendering outside DOM hierarchy.
|
|
7
|
-
*/
|
|
8
|
-
import * as React from "react";
|
|
9
|
-
export type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
10
|
-
export interface ToastViewportProps {
|
|
11
|
-
/**
|
|
12
|
-
* Position of toast viewport
|
|
13
|
-
*/
|
|
14
|
-
position?: ToastPosition;
|
|
15
|
-
/**
|
|
16
|
-
* Children to render in viewport
|
|
17
|
-
*/
|
|
18
|
-
children: React.ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* Additional CSS classes
|
|
21
|
-
*/
|
|
22
|
-
className?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* ToastViewport component - container for toast notifications
|
|
26
|
-
*/
|
|
27
|
-
export declare const ToastViewport: React.ForwardRefExoticComponent<ToastViewportProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
5
|
-
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
6
|
-
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
declare const tooltipContentVariants: (props?: ({
|
|
8
|
-
variant?: "primary" | "secondary" | "accent" | "destructive" | "outline" | "ghost" | "link" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
-
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
11
|
-
variant?: "primary" | "secondary" | "accent" | "destructive" | "outline" | "ghost" | "link" | null | undefined;
|
|
12
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export interface TooltipProps {
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
content: React.ReactNode;
|
|
16
|
-
variant?: VariantProps<typeof tooltipContentVariants>["variant"];
|
|
17
|
-
side?: "top" | "right" | "bottom" | "left";
|
|
18
|
-
align?: "start" | "center" | "end";
|
|
19
|
-
sideOffset?: number;
|
|
20
|
-
alignOffset?: number;
|
|
21
|
-
delayDuration?: number;
|
|
22
|
-
skipDelayDuration?: number;
|
|
23
|
-
disableHoverableContent?: boolean;
|
|
24
|
-
open?: boolean;
|
|
25
|
-
onOpenChange?: (open: boolean) => void;
|
|
26
|
-
}
|
|
27
|
-
export declare function TooltipWrapper({ children, content, variant, side, align, sideOffset, alignOffset, delayDuration, skipDelayDuration, disableHoverableContent: _disableHoverableContent, open, onOpenChange, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export { Tooltip, TooltipContent, tooltipContentVariants, TooltipProvider, TooltipTrigger };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Overlay System Components
|
|
3
|
-
*
|
|
4
|
-
* Portal-based overlay components (Modal, Dialog, Toast, Backdrop).
|
|
5
|
-
* All components are token-driven and SSR-safe.
|
|
6
|
-
*/
|
|
7
|
-
export { Portal, type PortalProps } from './Portal';
|
|
8
|
-
export { Backdrop, type BackdropProps } from './Backdrop';
|
|
9
|
-
export { Modal, ModalBody, type ModalBodyProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, modalVariants, } from './Modal';
|
|
10
|
-
export { Dialog, DialogBody, type DialogBodyProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogRoot, DialogTitle, type DialogTitleProps, } from './Dialog';
|
|
11
|
-
export { Toast, type ToastAction, type ToastData, type ToastProps } from './Toast';
|
|
12
|
-
export { type ToastOptions, ToastProvider, type ToastProviderProps, useToast, } from './ToastProvider';
|
|
13
|
-
export { type ToastPosition, ToastViewport, type ToastViewportProps } from './ToastViewport';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FocusLock Utility
|
|
3
|
-
*
|
|
4
|
-
* Utility for trapping focus within a container element.
|
|
5
|
-
* Handles Tab/Shift+Tab navigation and returns focus to trigger element on close.
|
|
6
|
-
*/
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
interface FocusLockOptions {
|
|
9
|
-
/**
|
|
10
|
-
* Container element to trap focus within
|
|
11
|
-
*/
|
|
12
|
-
containerRef: React.RefObject<HTMLElement>;
|
|
13
|
-
/**
|
|
14
|
-
* Whether focus lock is enabled
|
|
15
|
-
*/
|
|
16
|
-
enabled: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Element to return focus to when disabled
|
|
19
|
-
*/
|
|
20
|
-
returnFocusRef?: React.RefObject<HTMLElement>;
|
|
21
|
-
/**
|
|
22
|
-
* Additional elements that should be focusable (e.g., portal elements)
|
|
23
|
-
*/
|
|
24
|
-
additionalFocusableElements?: HTMLElement[];
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* FocusLock hook for trapping focus within a container
|
|
28
|
-
*/
|
|
29
|
-
export declare function useFocusLock({ containerRef, enabled, returnFocusRef, additionalFocusableElements, }: FocusLockOptions): void;
|
|
30
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Placement } from '@floating-ui/react-dom';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
/**
|
|
4
|
-
* Positioning options
|
|
5
|
-
*/
|
|
6
|
-
export interface UsePositioningOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Reference element (anchor/trigger)
|
|
9
|
-
*/
|
|
10
|
-
anchorRef: React.RefObject<HTMLElement | null>;
|
|
11
|
-
/**
|
|
12
|
-
* Content element to position
|
|
13
|
-
*/
|
|
14
|
-
contentRef: React.RefObject<HTMLElement | null>;
|
|
15
|
-
/**
|
|
16
|
-
* Placement preference (top, bottom, left, right, etc.)
|
|
17
|
-
* @default "bottom"
|
|
18
|
-
*/
|
|
19
|
-
placement?: Placement;
|
|
20
|
-
/**
|
|
21
|
-
* Offset between anchor and content (in pixels)
|
|
22
|
-
* @default 4
|
|
23
|
-
*/
|
|
24
|
-
offset?: number;
|
|
25
|
-
/**
|
|
26
|
-
* Whether positioning is enabled
|
|
27
|
-
* @default true
|
|
28
|
-
*/
|
|
29
|
-
enabled?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Whether to flip placement when there's not enough space
|
|
32
|
-
* @default true
|
|
33
|
-
*/
|
|
34
|
-
flip?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Whether to shift content to stay within viewport
|
|
37
|
-
* @default true
|
|
38
|
-
*/
|
|
39
|
-
shift?: boolean;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Positioning state
|
|
43
|
-
*/
|
|
44
|
-
export interface PositionState {
|
|
45
|
-
/**
|
|
46
|
-
* Calculated position styles
|
|
47
|
-
*/
|
|
48
|
-
position: React.CSSProperties;
|
|
49
|
-
/**
|
|
50
|
-
* Current placement (may differ from requested due to collision detection)
|
|
51
|
-
*/
|
|
52
|
-
placement: Placement;
|
|
53
|
-
/**
|
|
54
|
-
* Whether positioning is active
|
|
55
|
-
*/
|
|
56
|
-
isPositioned: boolean;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* SSR-safe positioning hook
|
|
60
|
-
*
|
|
61
|
-
* Calculates position for content relative to anchor element.
|
|
62
|
-
* All DOM operations are performed in useEffect to ensure SSR safety.
|
|
63
|
-
*/
|
|
64
|
-
export declare function usePositioning({ anchorRef, contentRef, placement, offset: offsetValue, enabled, flip: enableFlip, shift: enableShift, }: UsePositioningOptions): PositionState;
|
|
65
|
-
/**
|
|
66
|
-
* Placement type helper
|
|
67
|
-
*/
|
|
68
|
-
export type { Placement };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "primary" | "secondary" | "accent" | "destructive" | "outline" | "ghost" | "link" | null | undefined;
|
|
5
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
-
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
|
-
}
|
|
8
|
-
declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { Badge, badgeVariants };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Button, type ButtonProps, buttonVariants } from '../ui/button';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from '../ui/card';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface DividerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
orientation?: "horizontal" | "vertical";
|
|
4
|
-
variant?: "solid" | "dashed" | "dotted";
|
|
5
|
-
}
|
|
6
|
-
declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export { Divider };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Label } from '../ui/label';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const linkVariants: (props?: ({
|
|
4
|
-
variant?: "primary" | "secondary" | "accent" | "destructive" | "outline" | "ghost" | "link" | null | undefined;
|
|
5
|
-
size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
leftIcon?: React.ReactNode;
|
|
10
|
-
rightIcon?: React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
13
|
-
export { Link, linkVariants };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ButtonProps } from './Button';
|
|
3
|
-
interface ThemeSwitchProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
size?: ButtonProps["size"];
|
|
6
|
-
variant?: ButtonProps["variant"];
|
|
7
|
-
}
|
|
8
|
-
declare const ThemeSwitch: React.FC<ThemeSwitchProps>;
|
|
9
|
-
export { ThemeSwitch };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { RadioProps } from './Radio.types';
|
|
2
|
-
/**
|
|
3
|
-
* Radio Component
|
|
4
|
-
*
|
|
5
|
-
* A fully accessible, theme-aware radio button component with variant support,
|
|
6
|
-
* keyboard navigation, and comprehensive state management.
|
|
7
|
-
* Uses button role="radio" pattern for full accessibility.
|
|
8
|
-
* Can be used standalone or within RadioGroup for group behavior.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* <RadioGroup value={value} onValueChange={setValue}>
|
|
13
|
-
* <Radio value="option1" aria-label="Option 1" />
|
|
14
|
-
* <Radio value="option2" aria-label="Option 2" />
|
|
15
|
-
* </RadioGroup>
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
import * as React from "react";
|
|
19
|
-
/**
|
|
20
|
-
* Radio component
|
|
21
|
-
*/
|
|
22
|
-
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLButtonElement>>;
|
|
23
|
-
export { Radio };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { radioVariants } from './radio-variants';
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
/**
|
|
5
|
-
* Radio Component Props
|
|
6
|
-
*
|
|
7
|
-
* Extends native button HTML attributes with variant props, checked state, and accessibility props.
|
|
8
|
-
* Uses button role="radio" pattern for full keyboard accessibility.
|
|
9
|
-
*/
|
|
10
|
-
export interface RadioProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size" | "onChange">, VariantProps<typeof radioVariants> {
|
|
11
|
-
/**
|
|
12
|
-
* Radio variant style
|
|
13
|
-
* @default "outline"
|
|
14
|
-
*/
|
|
15
|
-
variant?: "primary" | "secondary" | "outline" | "ghost" | "destructive";
|
|
16
|
-
/**
|
|
17
|
-
* Radio size
|
|
18
|
-
* @default "md"
|
|
19
|
-
*/
|
|
20
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
21
|
-
/**
|
|
22
|
-
* Radio state
|
|
23
|
-
* @default "default"
|
|
24
|
-
*/
|
|
25
|
-
state?: "default" | "checked" | "disabled" | "error";
|
|
26
|
-
/**
|
|
27
|
-
* Whether radio is checked (controlled)
|
|
28
|
-
*/
|
|
29
|
-
checked?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Whether radio is disabled
|
|
32
|
-
*/
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Value of this radio button
|
|
36
|
-
* Required when used within RadioGroup
|
|
37
|
-
*/
|
|
38
|
-
value?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Callback fired when radio is selected
|
|
41
|
-
*/
|
|
42
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
43
|
-
/**
|
|
44
|
-
* Custom icon to display when checked
|
|
45
|
-
* Defaults to filled circle dot
|
|
46
|
-
*/
|
|
47
|
-
icon?: React.ReactNode;
|
|
48
|
-
/**
|
|
49
|
-
* ARIA label for the radio
|
|
50
|
-
* Required if no visible label is present
|
|
51
|
-
*/
|
|
52
|
-
"aria-label"?: string;
|
|
53
|
-
/**
|
|
54
|
-
* ARIA labelledby reference
|
|
55
|
-
* Points to the ID of the element that labels this radio
|
|
56
|
-
*/
|
|
57
|
-
"aria-labelledby"?: string;
|
|
58
|
-
/**
|
|
59
|
-
* ARIA describedby reference
|
|
60
|
-
* Points to the ID of the element that describes this radio
|
|
61
|
-
*/
|
|
62
|
-
"aria-describedby"?: string;
|
|
63
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { RadioGroupContextValue, RadioGroupProps } from './RadioGroup.types';
|
|
2
|
-
/**
|
|
3
|
-
* RadioGroup Component
|
|
4
|
-
*
|
|
5
|
-
* Container component for Radio buttons with keyboard navigation and state management.
|
|
6
|
-
* Supports horizontal and vertical orientations, controlled/uncontrolled modes,
|
|
7
|
-
* and full keyboard accessibility with ArrowUp/ArrowDown navigation.
|
|
8
|
-
*/
|
|
9
|
-
import * as React from "react";
|
|
10
|
-
export declare const RadioGroupContext: React.Context<RadioGroupContextValue | undefined>;
|
|
11
|
-
/**
|
|
12
|
-
* Hook to access RadioGroup context
|
|
13
|
-
* @throws Error if used outside RadioGroup
|
|
14
|
-
*/
|
|
15
|
-
export declare function useRadioGroupContext(): RadioGroupContextValue;
|
|
16
|
-
/**
|
|
17
|
-
* RadioGroup - Container component that manages state and keyboard navigation
|
|
18
|
-
*/
|
|
19
|
-
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
export { RadioGroup };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* RadioGroup Context Value
|
|
4
|
-
*
|
|
5
|
-
* Internal context value passed to Radio children
|
|
6
|
-
*/
|
|
7
|
-
export interface RadioGroupContextValue {
|
|
8
|
-
/**
|
|
9
|
-
* Current selected value
|
|
10
|
-
*/
|
|
11
|
-
value: string;
|
|
12
|
-
/**
|
|
13
|
-
* Callback when value changes
|
|
14
|
-
*/
|
|
15
|
-
onValueChange: (value: string) => void;
|
|
16
|
-
/**
|
|
17
|
-
* Name attribute for the radio group
|
|
18
|
-
*/
|
|
19
|
-
name: string;
|
|
20
|
-
/**
|
|
21
|
-
* Orientation of the radio group
|
|
22
|
-
*/
|
|
23
|
-
orientation: "horizontal" | "vertical";
|
|
24
|
-
/**
|
|
25
|
-
* Size for all radios in the group
|
|
26
|
-
*/
|
|
27
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* RadioGroup Component Props
|
|
31
|
-
*
|
|
32
|
-
* Container component for Radio buttons with keyboard navigation and state management.
|
|
33
|
-
*/
|
|
34
|
-
export interface RadioGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
35
|
-
/**
|
|
36
|
-
* Controlled value
|
|
37
|
-
*/
|
|
38
|
-
value?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Default value for uncontrolled usage
|
|
41
|
-
*/
|
|
42
|
-
defaultValue?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Callback when value changes
|
|
45
|
-
*/
|
|
46
|
-
onValueChange?: (value: string) => void;
|
|
47
|
-
/**
|
|
48
|
-
* Name attribute for the radio group
|
|
49
|
-
*/
|
|
50
|
-
name?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Orientation of the radio group
|
|
53
|
-
* @default "vertical"
|
|
54
|
-
*/
|
|
55
|
-
orientation?: "horizontal" | "vertical";
|
|
56
|
-
/**
|
|
57
|
-
* Size for all radios in the group
|
|
58
|
-
* Can be overridden by individual Radio components
|
|
59
|
-
*/
|
|
60
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
61
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { Radio } from './Radio';
|
|
2
|
-
export type { RadioProps } from './Radio.types';
|
|
3
|
-
export { radioVariants } from './radio-variants';
|
|
4
|
-
export { RadioGroup, RadioGroupContext, useRadioGroupContext } from './RadioGroup';
|
|
5
|
-
export type { RadioGroupContextValue, RadioGroupProps } from './RadioGroup.types';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Radio Variants
|
|
3
|
-
*
|
|
4
|
-
* CVA-based variant system for Radio component.
|
|
5
|
-
* Supports variants (primary, secondary, outline, ghost, destructive),
|
|
6
|
-
* sizes (xs, sm, md, lg, xl), and states (default, checked, disabled, error).
|
|
7
|
-
* All styling uses token-based values with CSS variable references.
|
|
8
|
-
*/
|
|
9
|
-
export declare const radioVariants: (props?: ({
|
|
10
|
-
variant?: "primary" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
11
|
-
size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
12
|
-
state?: "disabled" | "default" | "error" | "checked" | null | undefined;
|
|
13
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface SearchBarProps {
|
|
3
|
-
placeholder: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
onSearch?: (query: string) => void;
|
|
6
|
-
suggestions?: string[];
|
|
7
|
-
onSuggestionSelect?: (suggestion: string) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const SearchBar: React.FC<SearchBarProps>;
|
|
10
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Item interface for ArticlesSection component.
|
|
4
|
-
* Domain-agnostic interface for displaying article items.
|
|
5
|
-
*/
|
|
6
|
-
export interface ArticleItem {
|
|
7
|
-
/** Article title (pre-localized string) */
|
|
8
|
-
title: string;
|
|
9
|
-
/** Article description (optional, pre-localized string) */
|
|
10
|
-
description?: string;
|
|
11
|
-
/** Publication date display string (pre-formatted, optional) */
|
|
12
|
-
date?: string;
|
|
13
|
-
/** Image URL (optional) */
|
|
14
|
-
imageUrl?: string;
|
|
15
|
-
/** Full URL for article details page */
|
|
16
|
-
href: string;
|
|
17
|
-
}
|
|
18
|
-
interface ArticlesSectionProps {
|
|
19
|
-
/** Array of article items to display */
|
|
20
|
-
articles: ArticleItem[];
|
|
21
|
-
readMoreLabel: string;
|
|
22
|
-
className?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare const ArticlesSection: React.FC<ArticlesSectionProps>;
|
|
25
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ButtonProps } from '../primitives/Button';
|
|
3
|
-
export interface CTASectionProps {
|
|
4
|
-
headline: React.ReactNode;
|
|
5
|
-
description?: React.ReactNode;
|
|
6
|
-
primaryAction?: {
|
|
7
|
-
label: string;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
href?: string;
|
|
10
|
-
variant?: ButtonProps["variant"];
|
|
11
|
-
};
|
|
12
|
-
secondaryAction?: {
|
|
13
|
-
label: string;
|
|
14
|
-
onClick?: () => void;
|
|
15
|
-
href?: string;
|
|
16
|
-
variant?: ButtonProps["variant"];
|
|
17
|
-
};
|
|
18
|
-
layout?: "centered" | "split";
|
|
19
|
-
className?: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* CTASection component for call-to-action sections
|
|
23
|
-
*
|
|
24
|
-
* Displays a headline, description, and action buttons.
|
|
25
|
-
* Supports centered and split layouts with flexible button configurations.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```tsx
|
|
29
|
-
* <CTASection
|
|
30
|
-
* headline="Ready to get started?"
|
|
31
|
-
* description="Join thousands of developers"
|
|
32
|
-
* primaryAction={{ label: "Get Started", href: "/signup" }}
|
|
33
|
-
* secondaryAction={{ label: "Learn More", onClick: handleLearnMore }}
|
|
34
|
-
* />
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export declare const CTASection: React.FC<CTASectionProps>;
|