@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,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface NotificationCenterGroupHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Group label text
|
|
5
|
+
*/
|
|
6
|
+
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the group is collapsed
|
|
9
|
+
*/
|
|
10
|
+
collapsed?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Callback when collapse/expand is toggled
|
|
13
|
+
*/
|
|
14
|
+
onToggleCollapse?: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Show collapse/expand button
|
|
17
|
+
*/
|
|
18
|
+
collapsible?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* NotificationCenter.GroupHeader component - group section header
|
|
22
|
+
*/
|
|
23
|
+
export declare const NotificationCenterGroupHeader: React.ForwardRefExoticComponent<NotificationCenterGroupHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NotificationData } from './NotificationCenter.types';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface NotificationCenterItemProps extends Omit<React.HTMLAttributes<HTMLLIElement>, "onClick"> {
|
|
4
|
+
/**
|
|
5
|
+
* Notification data
|
|
6
|
+
*/
|
|
7
|
+
notification: NotificationData;
|
|
8
|
+
/**
|
|
9
|
+
* Callback when notification is dismissed
|
|
10
|
+
*/
|
|
11
|
+
onDismiss?: (id: string) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Callback when notification is clicked
|
|
14
|
+
*/
|
|
15
|
+
onClick?: (id: string) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Show expandable details
|
|
18
|
+
*/
|
|
19
|
+
expandable?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* NotificationCenter.Item component - individual notification item
|
|
23
|
+
*/
|
|
24
|
+
export declare const NotificationCenterItem: React.ForwardRefExoticComponent<NotificationCenterItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NotificationCenter.List Component
|
|
3
|
+
*
|
|
4
|
+
* Vertical list container for notifications.
|
|
5
|
+
* Uses Stack component with token-based spacing.
|
|
6
|
+
* Provides proper ARIA roles for accessibility.
|
|
7
|
+
*/
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
export interface NotificationCenterListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Children to render (notification items)
|
|
12
|
+
*/
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* ARIA label for the list
|
|
16
|
+
*/
|
|
17
|
+
"aria-label"?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* NotificationCenter.List component - vertical list container
|
|
21
|
+
*/
|
|
22
|
+
export declare const NotificationCenterList: React.ForwardRefExoticComponent<NotificationCenterListProps & React.RefAttributes<HTMLUListElement>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { GroupByFunction } from './NotificationCenter.types';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface NotificationCenterPanelProps {
|
|
4
|
+
/**
|
|
5
|
+
* Whether panel is open
|
|
6
|
+
*/
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Callback when panel should close
|
|
10
|
+
*/
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
/**
|
|
13
|
+
* Function to group notifications (by date, type, or custom)
|
|
14
|
+
*/
|
|
15
|
+
groupBy?: GroupByFunction;
|
|
16
|
+
/**
|
|
17
|
+
* Panel width variant
|
|
18
|
+
*/
|
|
19
|
+
width?: "sm" | "md" | "lg";
|
|
20
|
+
/**
|
|
21
|
+
* Auto-collapse older notifications
|
|
22
|
+
*/
|
|
23
|
+
autoCollapse?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Element to return focus to when panel closes
|
|
26
|
+
*/
|
|
27
|
+
returnFocusRef?: React.RefObject<HTMLElement>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* NotificationCenter.Panel component - side drawer notification panel
|
|
31
|
+
*/
|
|
32
|
+
export declare const NotificationCenterPanel: React.ForwardRefExoticComponent<NotificationCenterPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { NotificationContextType } from './NotificationCenter.types';
|
|
2
|
+
/**
|
|
3
|
+
* NotificationCenter.Provider Component
|
|
4
|
+
*
|
|
5
|
+
* Global notification state management provider.
|
|
6
|
+
* Manages persistent history, multi-channel support, and notification lifecycle.
|
|
7
|
+
* SSR-safe: no window/document access in render.
|
|
8
|
+
*/
|
|
9
|
+
import * as React from "react";
|
|
10
|
+
export interface NotificationCenterProviderProps {
|
|
11
|
+
/**
|
|
12
|
+
* Children to render
|
|
13
|
+
*/
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Maximum number of notifications to keep in history
|
|
17
|
+
*/
|
|
18
|
+
maxHistory?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Enable persistent history (in-memory, can be extended to localStorage)
|
|
21
|
+
*/
|
|
22
|
+
persistent?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* NotificationCenter.Provider component - global notification state management
|
|
26
|
+
*/
|
|
27
|
+
export declare function NotificationCenterProvider({ children, maxHistory, persistent, }: NotificationCenterProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
/**
|
|
29
|
+
* Hook to use notification center context
|
|
30
|
+
*/
|
|
31
|
+
export declare function useNotificationCenterContext(): NotificationContextType;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface NotificationCenterTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Callback when trigger is clicked
|
|
5
|
+
*/
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
/**
|
|
8
|
+
* Show unread badge
|
|
9
|
+
*/
|
|
10
|
+
showBadge?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* NotificationCenter.Trigger component - open panel button
|
|
14
|
+
*/
|
|
15
|
+
export declare const NotificationCenterTrigger: React.ForwardRefExoticComponent<NotificationCenterTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { NotificationCenterProvider } from './NotificationCenter.Provider';
|
|
2
|
+
/**
|
|
3
|
+
* NotificationCenter Compound Component
|
|
4
|
+
*
|
|
5
|
+
* Compound component structure for Notification Center.
|
|
6
|
+
* Provides all subcomponents through a single export.
|
|
7
|
+
*/
|
|
8
|
+
export { NotificationCenterDismissAll } from './NotificationCenter.DismissAll';
|
|
9
|
+
export { NotificationCenterGroupHeader } from './NotificationCenter.GroupHeader';
|
|
10
|
+
export { NotificationCenterItem } from './NotificationCenter.Item';
|
|
11
|
+
export { NotificationCenterList } from './NotificationCenter.List';
|
|
12
|
+
export { NotificationCenterPanel } from './NotificationCenter.Panel';
|
|
13
|
+
export { NotificationCenterProvider, useNotificationCenterContext, } from './NotificationCenter.Provider';
|
|
14
|
+
export { NotificationCenterTrigger } from './NotificationCenter.Trigger';
|
|
15
|
+
export { useNotificationCenter } from './useNotificationCenter';
|
|
16
|
+
/**
|
|
17
|
+
* NotificationCenter compound component
|
|
18
|
+
*/
|
|
19
|
+
export declare const NotificationCenter: {
|
|
20
|
+
Provider: typeof NotificationCenterProvider;
|
|
21
|
+
Panel: import('react').ForwardRefExoticComponent<import('./NotificationCenter.Panel').NotificationCenterPanelProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
22
|
+
Trigger: import('react').ForwardRefExoticComponent<import('./NotificationCenter.Trigger').NotificationCenterTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
List: import('react').ForwardRefExoticComponent<import('./NotificationCenter.List').NotificationCenterListProps & import('react').RefAttributes<HTMLUListElement>>;
|
|
24
|
+
Item: import('react').ForwardRefExoticComponent<import('./NotificationCenter.Item').NotificationCenterItemProps & import('react').RefAttributes<HTMLLIElement>>;
|
|
25
|
+
GroupHeader: import('react').ForwardRefExoticComponent<import('./NotificationCenter.GroupHeader').NotificationCenterGroupHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
26
|
+
DismissAll: import('react').ForwardRefExoticComponent<import('./NotificationCenter.DismissAll').NotificationCenterDismissAllProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { ToastAction } from '../overlays/Toast';
|
|
2
|
+
/**
|
|
3
|
+
* Notification channel types
|
|
4
|
+
*/
|
|
5
|
+
export type NotificationChannel = "success" | "error" | "info" | "warning" | "system" | "log";
|
|
6
|
+
/**
|
|
7
|
+
* Notification variant (extends toast variants)
|
|
8
|
+
*/
|
|
9
|
+
export type NotificationVariant = "default" | "success" | "info" | "warning" | "danger" | "system" | "log";
|
|
10
|
+
/**
|
|
11
|
+
* Notification data structure
|
|
12
|
+
*/
|
|
13
|
+
export interface NotificationData {
|
|
14
|
+
id: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
variant?: NotificationVariant;
|
|
18
|
+
channel?: NotificationChannel;
|
|
19
|
+
action?: ToastAction;
|
|
20
|
+
duration?: number;
|
|
21
|
+
persistent?: boolean;
|
|
22
|
+
timestamp: number;
|
|
23
|
+
read?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Notification options for creating notifications
|
|
27
|
+
*/
|
|
28
|
+
export interface NotificationOptions {
|
|
29
|
+
title?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
variant?: NotificationVariant;
|
|
32
|
+
channel?: NotificationChannel;
|
|
33
|
+
action?: ToastAction;
|
|
34
|
+
duration?: number;
|
|
35
|
+
persistent?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Group by function type
|
|
39
|
+
*/
|
|
40
|
+
export type GroupByFunction = (notification: NotificationData) => string;
|
|
41
|
+
/**
|
|
42
|
+
* Notification context type
|
|
43
|
+
*/
|
|
44
|
+
export interface NotificationContextType {
|
|
45
|
+
/**
|
|
46
|
+
* Push a new notification
|
|
47
|
+
*/
|
|
48
|
+
push: (notification: NotificationOptions) => string;
|
|
49
|
+
/**
|
|
50
|
+
* Remove a specific notification by ID
|
|
51
|
+
*/
|
|
52
|
+
remove: (id: string) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Clear all notifications
|
|
55
|
+
*/
|
|
56
|
+
clearAll: () => void;
|
|
57
|
+
/**
|
|
58
|
+
* Clear notifications by channel
|
|
59
|
+
*/
|
|
60
|
+
clearChannel: (channel: NotificationChannel) => void;
|
|
61
|
+
/**
|
|
62
|
+
* Group notifications by function
|
|
63
|
+
*/
|
|
64
|
+
groupBy: (fn: GroupByFunction) => Record<string, NotificationData[]>;
|
|
65
|
+
/**
|
|
66
|
+
* Get persistent history
|
|
67
|
+
*/
|
|
68
|
+
getHistory: () => NotificationData[];
|
|
69
|
+
/**
|
|
70
|
+
* Get notifications by channel
|
|
71
|
+
*/
|
|
72
|
+
getByChannel: (channel: NotificationChannel) => NotificationData[];
|
|
73
|
+
/**
|
|
74
|
+
* Get all notifications
|
|
75
|
+
*/
|
|
76
|
+
getAll: () => NotificationData[];
|
|
77
|
+
/**
|
|
78
|
+
* Mark notification as read
|
|
79
|
+
*/
|
|
80
|
+
markAsRead: (id: string) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Mark all as read
|
|
83
|
+
*/
|
|
84
|
+
markAllAsRead: () => void;
|
|
85
|
+
/**
|
|
86
|
+
* Get unread count
|
|
87
|
+
*/
|
|
88
|
+
getUnreadCount: () => number;
|
|
89
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notification Center Components
|
|
3
|
+
*
|
|
4
|
+
* Barrel exports for all notification center components.
|
|
5
|
+
*/
|
|
6
|
+
export { NotificationCenter } from './NotificationCenter';
|
|
7
|
+
export { NotificationCenterDismissAll } from './NotificationCenter.DismissAll';
|
|
8
|
+
export { NotificationCenterGroupHeader } from './NotificationCenter.GroupHeader';
|
|
9
|
+
export { NotificationCenterItem } from './NotificationCenter.Item';
|
|
10
|
+
export { NotificationCenterList } from './NotificationCenter.List';
|
|
11
|
+
export { NotificationCenterPanel } from './NotificationCenter.Panel';
|
|
12
|
+
export { NotificationCenterProvider } from './NotificationCenter.Provider';
|
|
13
|
+
export { NotificationCenterTrigger } from './NotificationCenter.Trigger';
|
|
14
|
+
export { useNotificationCenterContext } from './NotificationCenter.Provider';
|
|
15
|
+
export { useNotificationCenter } from './useNotificationCenter';
|
|
16
|
+
export type { GroupByFunction, NotificationChannel, NotificationContextType, NotificationData, NotificationOptions, NotificationVariant, } from './NotificationCenter.types';
|
|
17
|
+
export type { NotificationCenterDismissAllProps } from './NotificationCenter.DismissAll';
|
|
18
|
+
export type { NotificationCenterGroupHeaderProps } from './NotificationCenter.GroupHeader';
|
|
19
|
+
export type { NotificationCenterItemProps } from './NotificationCenter.Item';
|
|
20
|
+
export type { NotificationCenterListProps } from './NotificationCenter.List';
|
|
21
|
+
export type { NotificationCenterPanelProps } from './NotificationCenter.Panel';
|
|
22
|
+
export type { NotificationCenterProviderProps } from './NotificationCenter.Provider';
|
|
23
|
+
export type { NotificationCenterTriggerProps } from './NotificationCenter.Trigger';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { NotificationOptions } from './NotificationCenter.types';
|
|
2
|
+
export interface NotificationAPI {
|
|
3
|
+
/**
|
|
4
|
+
* Show success notification
|
|
5
|
+
*/
|
|
6
|
+
success: (message: string, options?: Omit<NotificationOptions, "variant" | "channel">) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Show error notification
|
|
9
|
+
*/
|
|
10
|
+
error: (message: string, options?: Omit<NotificationOptions, "variant" | "channel">) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Show info notification
|
|
13
|
+
*/
|
|
14
|
+
info: (message: string, options?: Omit<NotificationOptions, "variant" | "channel">) => string;
|
|
15
|
+
/**
|
|
16
|
+
* Show warning notification
|
|
17
|
+
*/
|
|
18
|
+
warning: (message: string, options?: Omit<NotificationOptions, "variant" | "channel">) => string;
|
|
19
|
+
/**
|
|
20
|
+
* Show system notification
|
|
21
|
+
*/
|
|
22
|
+
system: (message: string, options?: Omit<NotificationOptions, "variant" | "channel">) => string;
|
|
23
|
+
/**
|
|
24
|
+
* Show log notification
|
|
25
|
+
*/
|
|
26
|
+
log: (message: string, options?: Omit<NotificationOptions, "variant" | "channel">) => string;
|
|
27
|
+
/**
|
|
28
|
+
* Push custom notification
|
|
29
|
+
*/
|
|
30
|
+
push: (options: NotificationOptions) => string;
|
|
31
|
+
/**
|
|
32
|
+
* Remove notification by ID
|
|
33
|
+
*/
|
|
34
|
+
remove: (id: string) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Clear all notifications
|
|
37
|
+
*/
|
|
38
|
+
clearAll: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* Clear notifications by channel
|
|
41
|
+
*/
|
|
42
|
+
clearChannel: (channel: "success" | "error" | "info" | "warning" | "system" | "log") => void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* useNotificationCenter hook - multi-channel notification API
|
|
46
|
+
*/
|
|
47
|
+
export declare function useNotificationCenter(): NotificationAPI;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const backdropVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "transparent" | "blurred" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface BackdropProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof backdropVariants> {
|
|
7
|
+
/**
|
|
8
|
+
* Backdrop variant
|
|
9
|
+
*/
|
|
10
|
+
variant?: "default" | "blurred" | "transparent";
|
|
11
|
+
/**
|
|
12
|
+
* Whether backdrop is visible (for animation)
|
|
13
|
+
*/
|
|
14
|
+
isVisible?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Click handler for backdrop dismiss
|
|
17
|
+
*/
|
|
18
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Backdrop component - overlay background
|
|
22
|
+
*/
|
|
23
|
+
export declare const Backdrop: React.ForwardRefExoticComponent<BackdropProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ModalProps } from './Modal';
|
|
2
|
+
/**
|
|
3
|
+
* Dialog Component
|
|
4
|
+
*
|
|
5
|
+
* Semantic modal wrapper built on Modal component.
|
|
6
|
+
* Provides Dialog.Header, Dialog.Title, Dialog.Description, Dialog.Body, Dialog.Footer subcomponents.
|
|
7
|
+
* Full A11y compliance with aria-labelledby and aria-describedby.
|
|
8
|
+
*/
|
|
9
|
+
import * as React from "react";
|
|
10
|
+
export interface DialogProps extends Omit<ModalProps, "role" | "aria-modal"> {
|
|
11
|
+
/**
|
|
12
|
+
* ID for the dialog title (for aria-labelledby)
|
|
13
|
+
*/
|
|
14
|
+
titleId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* ID for the dialog description (for aria-describedby)
|
|
17
|
+
*/
|
|
18
|
+
descriptionId?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Dialog Root - Main dialog wrapper
|
|
22
|
+
*/
|
|
23
|
+
declare const DialogRoot: React.ForwardRefExoticComponent<DialogProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
/**
|
|
25
|
+
* Dialog Header - Header section with spacing
|
|
26
|
+
*/
|
|
27
|
+
export interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
28
|
+
titleId?: string;
|
|
29
|
+
descriptionId?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
/**
|
|
33
|
+
* Dialog Title - h2 with aria-labelledby
|
|
34
|
+
*/
|
|
35
|
+
export interface DialogTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
36
|
+
titleId?: string;
|
|
37
|
+
}
|
|
38
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
39
|
+
/**
|
|
40
|
+
* Dialog Description - p with aria-describedby
|
|
41
|
+
*/
|
|
42
|
+
export interface DialogDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
43
|
+
descriptionId?: string;
|
|
44
|
+
}
|
|
45
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
46
|
+
/**
|
|
47
|
+
* Dialog Body - Main content area
|
|
48
|
+
*/
|
|
49
|
+
export interface DialogBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
50
|
+
}
|
|
51
|
+
declare const DialogBody: React.ForwardRefExoticComponent<DialogBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
/**
|
|
53
|
+
* Dialog Footer - Footer section with Row layout
|
|
54
|
+
*/
|
|
55
|
+
export interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
56
|
+
}
|
|
57
|
+
declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
58
|
+
declare const Dialog: React.ForwardRefExoticComponent<DialogProps & React.RefAttributes<HTMLDivElement>> & {
|
|
59
|
+
Root: React.ForwardRefExoticComponent<DialogProps & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
Header: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
Title: React.ForwardRefExoticComponent<DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
62
|
+
Description: React.ForwardRefExoticComponent<DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
63
|
+
Body: React.ForwardRefExoticComponent<DialogBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
64
|
+
Footer: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
};
|
|
66
|
+
export { Dialog, DialogBody, DialogDescription, DialogFooter, DialogHeader, DialogRoot, DialogTitle, };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const modalVariants: (props?: ({
|
|
4
|
+
size?: "sm" | "md" | "lg" | "fullscreen" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onClick" | "role" | "aria-modal" | "aria-labelledby" | "aria-describedby">, VariantProps<typeof modalVariants> {
|
|
7
|
+
/**
|
|
8
|
+
* Whether modal is open
|
|
9
|
+
*/
|
|
10
|
+
open: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Callback when modal should close
|
|
13
|
+
*/
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Modal size variant
|
|
17
|
+
*/
|
|
18
|
+
size?: "sm" | "md" | "lg" | "fullscreen";
|
|
19
|
+
/**
|
|
20
|
+
* Backdrop variant
|
|
21
|
+
*/
|
|
22
|
+
backdropVariant?: "default" | "blurred" | "transparent";
|
|
23
|
+
/**
|
|
24
|
+
* Whether to close on backdrop click
|
|
25
|
+
*/
|
|
26
|
+
closeOnBackdropClick?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to close on escape key
|
|
29
|
+
*/
|
|
30
|
+
closeOnEscape?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Element to return focus to when modal closes
|
|
33
|
+
*/
|
|
34
|
+
returnFocusRef?: React.RefObject<HTMLElement>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Modal Header - Header section with spacing
|
|
38
|
+
*/
|
|
39
|
+
export interface ModalHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
40
|
+
}
|
|
41
|
+
declare const ModalHeader: React.ForwardRefExoticComponent<ModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
/**
|
|
43
|
+
* Modal Body - Main content area
|
|
44
|
+
*/
|
|
45
|
+
export interface ModalBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
46
|
+
}
|
|
47
|
+
declare const ModalBody: React.ForwardRefExoticComponent<ModalBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
/**
|
|
49
|
+
* Modal Footer - Footer section with layout
|
|
50
|
+
*/
|
|
51
|
+
export interface ModalFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
52
|
+
}
|
|
53
|
+
declare const ModalFooter: React.ForwardRefExoticComponent<ModalFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
54
|
+
declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>> & {
|
|
55
|
+
Content: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
+
Header: React.ForwardRefExoticComponent<ModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
+
Body: React.ForwardRefExoticComponent<ModalBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
58
|
+
Footer: React.ForwardRefExoticComponent<ModalFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
};
|
|
60
|
+
export { Modal, ModalBody, ModalFooter, ModalHeader, modalVariants };
|
|
@@ -5,11 +5,11 @@ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
|
5
5
|
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
declare const popoverContentVariants: (props?: ({
|
|
8
|
-
variant?: "primary" | "secondary" | "accent" | "destructive" | "
|
|
8
|
+
variant?: "primary" | "secondary" | "accent" | "destructive" | "outline" | "ghost" | "link" | null | undefined;
|
|
9
9
|
size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
10
10
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
11
|
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
12
|
-
variant?: "primary" | "secondary" | "accent" | "destructive" | "
|
|
12
|
+
variant?: "primary" | "secondary" | "accent" | "destructive" | "outline" | "ghost" | "link" | null | undefined;
|
|
13
13
|
size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
14
14
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
export interface PopoverProps {
|
|
@@ -28,4 +28,3 @@ export interface PopoverProps {
|
|
|
28
28
|
}
|
|
29
29
|
export declare function PopoverWrapper({ children, content, variant, size, side, align, sideOffset, alignOffset, open, onOpenChange, modal, closeOnInteractOutside, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
export { Popover, PopoverAnchor, PopoverContent, popoverContentVariants, PopoverTrigger };
|
|
31
|
-
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
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>>;
|
|
@@ -0,0 +1,36 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,58 @@
|
|
|
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 {};
|