@tenerife.music/ui 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animation/presets.d.ts +6 -8
- package/dist/animation/presets.d.ts.map +1 -1
- package/dist/animation/tas.d.ts +2 -57
- package/dist/animation/tas.d.ts.map +1 -1
- package/dist/animation/types.d.ts +9 -47
- package/dist/animation/types.d.ts.map +1 -1
- package/dist/animation/useInView.d.ts +37 -0
- package/dist/animation/useInView.d.ts.map +1 -0
- package/dist/animation/utils.d.ts.map +1 -1
- package/dist/components/SectionBuilder.d.ts.map +1 -1
- package/dist/components/admin/Dashboard.d.ts.map +1 -1
- package/dist/components/admin/UserManagement.d.ts.map +1 -1
- package/dist/components/auth/LoginForm.d.ts.map +1 -1
- package/dist/components/auth/ProfileCard.d.ts.map +1 -1
- package/dist/components/auth/RegisterForm.d.ts.map +1 -1
- package/dist/components/cards/ArtistCard/ArtistCard.d.ts +23 -0
- package/dist/components/cards/ArtistCard/ArtistCard.d.ts.map +1 -0
- package/dist/components/cards/ArtistCard/ArtistCard.types.d.ts +47 -0
- package/dist/components/cards/ArtistCard/ArtistCard.types.d.ts.map +1 -0
- package/dist/components/cards/ArtistCard/ArtistCard.variants.d.ts +84 -0
- package/dist/components/cards/ArtistCard/ArtistCard.variants.d.ts.map +1 -0
- package/dist/components/cards/ArtistCard/index.d.ts +9 -0
- package/dist/components/cards/ArtistCard/index.d.ts.map +1 -0
- package/dist/components/cards/CardBase/CardBase.d.ts +46 -0
- package/dist/components/cards/CardBase/CardBase.d.ts.map +1 -0
- package/dist/components/cards/CardBase/CardBase.types.d.ts +71 -0
- package/dist/components/cards/CardBase/CardBase.types.d.ts.map +1 -0
- package/dist/components/cards/CardBase/CardBase.variants.d.ts +39 -0
- package/dist/components/cards/CardBase/CardBase.variants.d.ts.map +1 -0
- package/dist/components/cards/CardBase/index.d.ts +9 -0
- package/dist/components/cards/CardBase/index.d.ts.map +1 -0
- package/dist/components/cards/CategoryCard/CategoryCard.d.ts +19 -0
- package/dist/components/cards/CategoryCard/CategoryCard.d.ts.map +1 -0
- package/dist/components/cards/CategoryCard/CategoryCard.types.d.ts +39 -0
- package/dist/components/cards/CategoryCard/CategoryCard.types.d.ts.map +1 -0
- package/dist/components/cards/CategoryCard/CategoryCard.variants.d.ts +22 -0
- package/dist/components/cards/CategoryCard/CategoryCard.variants.d.ts.map +1 -0
- package/dist/components/cards/CategoryCard/index.d.ts +8 -0
- package/dist/components/cards/CategoryCard/index.d.ts.map +1 -0
- package/dist/components/cards/EventCard/EventCard.d.ts +20 -0
- package/dist/components/cards/EventCard/EventCard.d.ts.map +1 -0
- package/dist/components/cards/{EventCard.d.ts → EventCard/EventCard.types.d.ts} +14 -4
- package/dist/components/cards/EventCard/EventCard.types.d.ts.map +1 -0
- package/dist/components/cards/EventCard/EventCard.variants.d.ts +71 -0
- package/dist/components/cards/EventCard/EventCard.variants.d.ts.map +1 -0
- package/dist/components/cards/EventCard/index.d.ts +8 -0
- package/dist/components/cards/EventCard/index.d.ts.map +1 -0
- package/dist/components/cards/PromoCard/PromoCard.d.ts +21 -0
- package/dist/components/cards/PromoCard/PromoCard.d.ts.map +1 -0
- package/dist/components/cards/PromoCard/PromoCard.types.d.ts +43 -0
- package/dist/components/cards/PromoCard/PromoCard.types.d.ts.map +1 -0
- package/dist/components/cards/PromoCard/PromoCard.variants.d.ts +36 -0
- package/dist/components/cards/PromoCard/PromoCard.variants.d.ts.map +1 -0
- package/dist/components/cards/PromoCard/index.d.ts +8 -0
- package/dist/components/cards/PromoCard/index.d.ts.map +1 -0
- package/dist/components/cards/TicketCard/TicketCard.d.ts +20 -0
- package/dist/components/cards/TicketCard/TicketCard.d.ts.map +1 -0
- package/dist/components/cards/TicketCard/TicketCard.types.d.ts +56 -0
- package/dist/components/cards/TicketCard/TicketCard.types.d.ts.map +1 -0
- package/dist/components/cards/TicketCard/TicketCard.variants.d.ts +72 -0
- package/dist/components/cards/TicketCard/TicketCard.variants.d.ts.map +1 -0
- package/dist/components/cards/TicketCard/index.d.ts +8 -0
- package/dist/components/cards/TicketCard/index.d.ts.map +1 -0
- package/dist/components/cards/VenueCard/VenueCard.d.ts +22 -0
- package/dist/components/cards/VenueCard/VenueCard.d.ts.map +1 -0
- package/dist/components/cards/{VenueCard.d.ts → VenueCard/VenueCard.types.d.ts} +16 -7
- package/dist/components/cards/VenueCard/VenueCard.types.d.ts.map +1 -0
- package/dist/components/cards/VenueCard/VenueCard.variants.d.ts +61 -0
- package/dist/components/cards/VenueCard/VenueCard.variants.d.ts.map +1 -0
- package/dist/components/cards/VenueCard/index.d.ts +9 -0
- package/dist/components/cards/VenueCard/index.d.ts.map +1 -0
- package/dist/components/cards/index.d.ts +20 -0
- package/dist/components/cards/index.d.ts.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +23 -0
- package/dist/components/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/Checkbox.types.d.ts +69 -0
- package/dist/components/checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox-variants.d.ts +14 -0
- package/dist/components/checkbox/checkbox-variants.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +4 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/containers/Card.d.ts +76 -0
- package/dist/components/containers/Card.d.ts.map +1 -0
- package/dist/components/containers/Section.d.ts +32 -0
- package/dist/components/containers/Section.d.ts.map +1 -0
- package/dist/components/containers/Surface.d.ts +29 -0
- package/dist/components/containers/Surface.d.ts.map +1 -0
- package/dist/components/containers/index.d.ts +10 -0
- package/dist/components/containers/index.d.ts.map +1 -0
- package/dist/components/data/Timeline.d.ts.map +1 -1
- package/dist/components/data/data-list/DataList.d.ts +30 -0
- package/dist/components/data/data-list/DataList.d.ts.map +1 -0
- package/dist/components/data/data-list/DataList.types.d.ts +44 -0
- package/dist/components/data/data-list/DataList.types.d.ts.map +1 -0
- package/dist/components/data/data-list/DataListItem.d.ts +21 -0
- package/dist/components/data/data-list/DataListItem.d.ts.map +1 -0
- package/dist/components/data/data-list/DataListLabel.d.ts +20 -0
- package/dist/components/data/data-list/DataListLabel.d.ts.map +1 -0
- package/dist/components/data/data-list/DataListValue.d.ts +19 -0
- package/dist/components/data/data-list/DataListValue.d.ts.map +1 -0
- package/dist/components/data/data-list/index.d.ts +11 -0
- package/dist/components/data/data-list/index.d.ts.map +1 -0
- package/dist/components/data/empty-state/EmptyState.d.ts +32 -0
- package/dist/components/data/empty-state/EmptyState.d.ts.map +1 -0
- package/dist/components/data/empty-state/EmptyState.types.d.ts +52 -0
- package/dist/components/data/empty-state/EmptyState.types.d.ts.map +1 -0
- package/dist/components/data/empty-state/EmptyStateAction.d.ts +18 -0
- package/dist/components/data/empty-state/EmptyStateAction.d.ts.map +1 -0
- package/dist/components/data/empty-state/EmptyStateDescription.d.ts +18 -0
- package/dist/components/data/empty-state/EmptyStateDescription.d.ts.map +1 -0
- package/dist/components/data/empty-state/EmptyStateIcon.d.ts +23 -0
- package/dist/components/data/empty-state/EmptyStateIcon.d.ts.map +1 -0
- package/dist/components/data/empty-state/EmptyStateTitle.d.ts +18 -0
- package/dist/components/data/empty-state/EmptyStateTitle.d.ts.map +1 -0
- package/dist/components/data/empty-state/index.d.ts +11 -0
- package/dist/components/data/empty-state/index.d.ts.map +1 -0
- package/dist/components/data/index.d.ts +10 -0
- package/dist/components/data/index.d.ts.map +1 -0
- package/dist/components/data/skeleton/Skeleton.d.ts +25 -0
- package/dist/components/data/skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/data/skeleton/Skeleton.types.d.ts +13 -0
- package/dist/components/data/skeleton/Skeleton.types.d.ts.map +1 -0
- package/dist/components/data/skeleton/index.d.ts +7 -0
- package/dist/components/data/skeleton/index.d.ts.map +1 -0
- package/dist/components/data/table/Table.d.ts +34 -0
- package/dist/components/data/table/Table.d.ts.map +1 -0
- package/dist/components/data/table/Table.types.d.ts +265 -0
- package/dist/components/data/table/Table.types.d.ts.map +1 -0
- package/dist/components/data/table/TableBody.d.ts +14 -0
- package/dist/components/data/table/TableBody.d.ts.map +1 -0
- package/dist/components/data/table/TableCell.d.ts +14 -0
- package/dist/components/data/table/TableCell.d.ts.map +1 -0
- package/dist/components/data/table/TableEmpty.d.ts +14 -0
- package/dist/components/data/table/TableEmpty.d.ts.map +1 -0
- package/dist/components/data/table/TableExpandableContent.d.ts +15 -0
- package/dist/components/data/table/TableExpandableContent.d.ts.map +1 -0
- package/dist/components/data/table/TableHead.d.ts +14 -0
- package/dist/components/data/table/TableHead.d.ts.map +1 -0
- package/dist/components/data/table/TableHeader.d.ts +14 -0
- package/dist/components/data/table/TableHeader.d.ts.map +1 -0
- package/dist/components/data/table/TableLoadingState.d.ts +14 -0
- package/dist/components/data/table/TableLoadingState.d.ts.map +1 -0
- package/dist/components/data/table/TableRow.d.ts +14 -0
- package/dist/components/data/table/TableRow.d.ts.map +1 -0
- package/dist/components/data/table/TableSortIcon.d.ts +15 -0
- package/dist/components/data/table/TableSortIcon.d.ts.map +1 -0
- package/dist/components/data/table/index.d.ts +18 -0
- package/dist/components/data/table/index.d.ts.map +1 -0
- package/dist/components/drawer/Drawer.d.ts +42 -0
- package/dist/components/drawer/Drawer.d.ts.map +1 -0
- package/dist/components/drawer/Drawer.types.d.ts +76 -0
- package/dist/components/drawer/Drawer.types.d.ts.map +1 -0
- package/dist/components/drawer/drawer-variants.d.ts +18 -0
- package/dist/components/drawer/drawer-variants.d.ts.map +1 -0
- package/dist/components/drawer/index.d.ts +9 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/dropdown/Dropdown.d.ts +39 -0
- package/dist/components/dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/dropdown/Dropdown.types.d.ts +83 -0
- package/dist/components/dropdown/Dropdown.types.d.ts.map +1 -0
- package/dist/components/dropdown/dropdown-variants.d.ts +34 -0
- package/dist/components/dropdown/dropdown-variants.d.ts.map +1 -0
- package/dist/components/feedback/Skeleton.d.ts.map +1 -1
- package/dist/components/filters/SearchInput.d.ts +1 -1
- package/dist/components/filters/SearchInput.d.ts.map +1 -1
- package/dist/components/icon/Icon.d.ts +33 -0
- package/dist/components/icon/Icon.d.ts.map +1 -0
- package/dist/components/icon/Icon.types.d.ts +8 -0
- package/dist/components/icon/Icon.types.d.ts.map +1 -0
- package/dist/components/icon/index.d.ts +5 -0
- package/dist/components/icon/index.d.ts.map +1 -0
- package/dist/components/input/Input.d.ts +21 -0
- package/dist/components/input/Input.d.ts.map +1 -0
- package/dist/components/input/Input.types.d.ts +39 -0
- package/dist/components/input/Input.types.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +4 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/input-variants.d.ts +15 -0
- package/dist/components/input/input-variants.d.ts.map +1 -0
- package/dist/components/input/legacy/input.d.ts +12 -0
- package/dist/components/input/legacy/input.d.ts.map +1 -0
- package/dist/components/layout/Box.d.ts +40 -10
- package/dist/components/layout/Box.d.ts.map +1 -1
- package/dist/components/layout/Column.d.ts +7 -0
- package/dist/components/layout/Column.d.ts.map +1 -0
- package/dist/components/layout/Container.d.ts +1 -1
- package/dist/components/layout/Flex.d.ts +29 -13
- package/dist/components/layout/Flex.d.ts.map +1 -1
- package/dist/components/layout/Grid.d.ts +34 -25
- package/dist/components/layout/Grid.d.ts.map +1 -1
- package/dist/components/layout/ModeHero.d.ts.map +1 -1
- package/dist/components/layout/Row.d.ts +29 -0
- package/dist/components/layout/Row.d.ts.map +1 -0
- package/dist/components/layout/Stack.d.ts +24 -14
- package/dist/components/layout/Stack.d.ts.map +1 -1
- package/dist/components/layout/Surface.d.ts +22 -0
- package/dist/components/layout/Surface.d.ts.map +1 -0
- package/dist/components/layout/index.d.ts +10 -4
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/layout/layout.types.d.ts +16 -0
- package/dist/components/layout/layout.types.d.ts.map +1 -1
- package/dist/components/menus/context-menu/ContextMenuContent.d.ts +23 -0
- package/dist/components/menus/context-menu/ContextMenuContent.d.ts.map +1 -0
- package/dist/components/menus/context-menu/ContextMenuGroup.d.ts +15 -0
- package/dist/components/menus/context-menu/ContextMenuGroup.d.ts.map +1 -0
- package/dist/components/menus/context-menu/ContextMenuItem.d.ts +15 -0
- package/dist/components/menus/context-menu/ContextMenuItem.d.ts.map +1 -0
- package/dist/components/menus/context-menu/ContextMenuLabel.d.ts +15 -0
- package/dist/components/menus/context-menu/ContextMenuLabel.d.ts.map +1 -0
- package/dist/components/menus/context-menu/ContextMenuRoot.d.ts +48 -0
- package/dist/components/menus/context-menu/ContextMenuRoot.d.ts.map +1 -0
- package/dist/components/menus/context-menu/ContextMenuSeparator.d.ts +15 -0
- package/dist/components/menus/context-menu/ContextMenuSeparator.d.ts.map +1 -0
- package/dist/components/menus/context-menu/ContextMenuTrigger.d.ts +17 -0
- package/dist/components/menus/context-menu/ContextMenuTrigger.d.ts.map +1 -0
- package/dist/components/menus/context-menu/index.d.ts +13 -0
- package/dist/components/menus/context-menu/index.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuCheckItem.d.ts +19 -0
- package/dist/components/menus/dropdown/DropdownMenuCheckItem.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuContent.d.ts +16 -0
- package/dist/components/menus/dropdown/DropdownMenuContent.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuGroup.d.ts +13 -0
- package/dist/components/menus/dropdown/DropdownMenuGroup.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuItem.d.ts +31 -0
- package/dist/components/menus/dropdown/DropdownMenuItem.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuLabel.d.ts +18 -0
- package/dist/components/menus/dropdown/DropdownMenuLabel.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuRadioGroup.d.ts +25 -0
- package/dist/components/menus/dropdown/DropdownMenuRadioGroup.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuRadioItem.d.ts +19 -0
- package/dist/components/menus/dropdown/DropdownMenuRadioItem.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuRoot.d.ts +34 -0
- package/dist/components/menus/dropdown/DropdownMenuRoot.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuSeparator.d.ts +14 -0
- package/dist/components/menus/dropdown/DropdownMenuSeparator.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuSub.d.ts +11 -0
- package/dist/components/menus/dropdown/DropdownMenuSub.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuSubContent.d.ts +14 -0
- package/dist/components/menus/dropdown/DropdownMenuSubContent.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuSubTrigger.d.ts +14 -0
- package/dist/components/menus/dropdown/DropdownMenuSubTrigger.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuTrigger.d.ts +15 -0
- package/dist/components/menus/dropdown/DropdownMenuTrigger.d.ts.map +1 -0
- package/dist/components/menus/dropdown/index.d.ts +19 -0
- package/dist/components/menus/dropdown/index.d.ts.map +1 -0
- package/dist/components/menus/hover-card/HoverCardContent.d.ts +15 -0
- package/dist/components/menus/hover-card/HoverCardContent.d.ts.map +1 -0
- package/dist/components/menus/hover-card/HoverCardRoot.d.ts +21 -0
- package/dist/components/menus/hover-card/HoverCardRoot.d.ts.map +1 -0
- package/dist/components/menus/hover-card/HoverCardTrigger.d.ts +14 -0
- package/dist/components/menus/hover-card/HoverCardTrigger.d.ts.map +1 -0
- package/dist/components/menus/hover-card/index.d.ts +9 -0
- package/dist/components/menus/hover-card/index.d.ts.map +1 -0
- package/dist/components/menus/index.d.ts +10 -0
- package/dist/components/menus/index.d.ts.map +1 -0
- package/dist/components/menus/popover/PopoverArrow.d.ts +18 -0
- package/dist/components/menus/popover/PopoverArrow.d.ts.map +1 -0
- package/dist/components/menus/popover/PopoverContent.d.ts +25 -0
- package/dist/components/menus/popover/PopoverContent.d.ts.map +1 -0
- package/dist/components/menus/popover/PopoverRoot.d.ts +44 -0
- package/dist/components/menus/popover/PopoverRoot.d.ts.map +1 -0
- package/dist/components/menus/popover/PopoverTrigger.d.ts +18 -0
- package/dist/components/menus/popover/PopoverTrigger.d.ts.map +1 -0
- package/dist/components/menus/popover/index.d.ts +10 -0
- package/dist/components/menus/popover/index.d.ts.map +1 -0
- package/dist/components/modal/Modal.d.ts +71 -0
- package/dist/components/modal/Modal.d.ts.map +1 -0
- package/dist/components/modal/modal-variants.d.ts +27 -0
- package/dist/components/modal/modal-variants.d.ts.map +1 -0
- package/dist/components/modals/ConfirmDialog.d.ts +3 -2
- package/dist/components/modals/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/modals/Modal.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts +53 -0
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/index.d.ts +6 -0
- package/dist/components/navigation/breadcrumbs/index.d.ts.map +1 -0
- package/dist/components/navigation/index.d.ts +11 -0
- package/dist/components/navigation/index.d.ts.map +1 -0
- package/dist/components/navigation/pagination/Pagination.d.ts +61 -0
- package/dist/components/navigation/pagination/Pagination.d.ts.map +1 -0
- package/dist/components/navigation/pagination/index.d.ts +6 -0
- package/dist/components/navigation/pagination/index.d.ts.map +1 -0
- package/dist/components/navigation/segmented-control/SegmentedControl.d.ts +44 -0
- package/dist/components/navigation/segmented-control/SegmentedControl.d.ts.map +1 -0
- package/dist/components/navigation/segmented-control/index.d.ts +6 -0
- package/dist/components/navigation/segmented-control/index.d.ts.map +1 -0
- package/dist/components/navigation/stepper/Stepper.d.ts +130 -0
- package/dist/components/navigation/stepper/Stepper.d.ts.map +1 -0
- package/dist/components/navigation/stepper/index.d.ts +6 -0
- package/dist/components/navigation/stepper/index.d.ts.map +1 -0
- package/dist/components/navigation/tabs/Tabs.d.ts +74 -0
- package/dist/components/navigation/tabs/Tabs.d.ts.map +1 -0
- package/dist/components/navigation/tabs/index.d.ts +6 -0
- package/dist/components/navigation/tabs/index.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.DismissAll.d.ts +22 -0
- package/dist/components/notifications/NotificationCenter.DismissAll.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.GroupHeader.d.ts +24 -0
- package/dist/components/notifications/NotificationCenter.GroupHeader.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.Item.d.ts +25 -0
- package/dist/components/notifications/NotificationCenter.Item.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.List.d.ts +23 -0
- package/dist/components/notifications/NotificationCenter.List.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.Panel.d.ts +33 -0
- package/dist/components/notifications/NotificationCenter.Panel.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.Provider.d.ts +32 -0
- package/dist/components/notifications/NotificationCenter.Provider.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.Trigger.d.ts +16 -0
- package/dist/components/notifications/NotificationCenter.Trigger.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.d.ts +28 -0
- package/dist/components/notifications/NotificationCenter.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.types.d.ts +90 -0
- package/dist/components/notifications/NotificationCenter.types.d.ts.map +1 -0
- package/dist/components/notifications/index.d.ts +24 -0
- package/dist/components/notifications/index.d.ts.map +1 -0
- package/dist/components/notifications/useNotificationCenter.d.ts +48 -0
- package/dist/components/notifications/useNotificationCenter.d.ts.map +1 -0
- package/dist/components/overlays/Backdrop.d.ts +25 -0
- package/dist/components/overlays/Backdrop.d.ts.map +1 -0
- package/dist/components/overlays/Dialog.d.ts +67 -0
- package/dist/components/overlays/Dialog.d.ts.map +1 -0
- package/dist/components/overlays/Modal.d.ts +61 -0
- package/dist/components/overlays/Modal.d.ts.map +1 -0
- package/dist/components/overlays/Popover.d.ts +2 -2
- package/dist/components/overlays/Popover.d.ts.map +1 -1
- package/dist/components/overlays/Portal.d.ts +30 -0
- package/dist/components/overlays/Portal.d.ts.map +1 -0
- package/dist/components/overlays/Toast.d.ts +37 -0
- package/dist/components/overlays/Toast.d.ts.map +1 -0
- package/dist/components/overlays/ToastProvider.d.ts +59 -0
- package/dist/components/overlays/ToastProvider.d.ts.map +1 -0
- package/dist/components/overlays/ToastViewport.d.ts +28 -0
- package/dist/components/overlays/ToastViewport.d.ts.map +1 -0
- package/dist/components/overlays/Tooltip.d.ts +2 -2
- package/dist/components/overlays/Tooltip.d.ts.map +1 -1
- package/dist/components/overlays/index.d.ts +14 -0
- package/dist/components/overlays/index.d.ts.map +1 -0
- package/dist/components/overlays/utils/FocusLock.d.ts +31 -0
- package/dist/components/overlays/utils/FocusLock.d.ts.map +1 -0
- package/dist/components/overlays/utils/ScrollLock.d.ts +12 -0
- package/dist/components/overlays/utils/ScrollLock.d.ts.map +1 -0
- package/dist/components/overlays/utils/positioning.d.ts +69 -0
- package/dist/components/overlays/utils/positioning.d.ts.map +1 -0
- package/dist/components/primitives/Badge.d.ts +1 -1
- package/dist/components/primitives/Divider.d.ts.map +1 -1
- package/dist/components/primitives/Input.d.ts +2 -2
- package/dist/components/primitives/Input.d.ts.map +1 -1
- package/dist/components/primitives/Link.d.ts +1 -1
- package/dist/components/primitives/ThemeSwitch.d.ts +3 -2
- package/dist/components/primitives/ThemeSwitch.d.ts.map +1 -1
- package/dist/components/radio/Radio.d.ts +24 -0
- package/dist/components/radio/Radio.d.ts.map +1 -0
- package/dist/components/radio/Radio.types.d.ts +64 -0
- package/dist/components/radio/Radio.types.d.ts.map +1 -0
- package/dist/components/radio/RadioGroup.d.ts +21 -0
- package/dist/components/radio/RadioGroup.d.ts.map +1 -0
- package/dist/components/radio/RadioGroup.types.d.ts +62 -0
- package/dist/components/radio/RadioGroup.types.d.ts.map +1 -0
- package/dist/components/radio/index.d.ts +6 -0
- package/dist/components/radio/index.d.ts.map +1 -0
- package/dist/components/radio/radio-variants.d.ts +14 -0
- package/dist/components/radio/radio-variants.d.ts.map +1 -0
- package/dist/components/sections/ArticlesSection.d.ts.map +1 -1
- package/dist/components/sections/CTASection.d.ts.map +1 -1
- package/dist/components/sections/FeatureSection.d.ts.map +1 -1
- package/dist/components/sections/HeroSection.d.ts.map +1 -1
- package/dist/components/sections/TrendingSection.d.ts.map +1 -1
- package/dist/components/select/Select.d.ts +39 -0
- package/dist/components/select/Select.d.ts.map +1 -0
- package/dist/components/select/Select.types.d.ts +108 -0
- package/dist/components/select/Select.types.d.ts.map +1 -0
- package/dist/components/select/index.d.ts +6 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/legacy/select.d.ts +12 -0
- package/dist/components/select/legacy/select.d.ts.map +1 -0
- package/dist/components/select/select-variants.d.ts +33 -0
- package/dist/components/select/select-variants.d.ts.map +1 -0
- package/dist/components/skeletons/EventCardSkeleton.d.ts.map +1 -1
- package/dist/components/skeletons/VenueCardSkeleton.d.ts.map +1 -1
- package/dist/components/switch/Switch.d.ts +25 -0
- package/dist/components/switch/Switch.d.ts.map +1 -0
- package/dist/components/switch/Switch.types.d.ts +54 -0
- package/dist/components/switch/Switch.types.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +4 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/switch-variants.d.ts +35 -0
- package/dist/components/switch/switch-variants.d.ts.map +1 -0
- package/dist/components/textarea/Textarea.d.ts +22 -0
- package/dist/components/textarea/Textarea.d.ts.map +1 -0
- package/dist/components/textarea/Textarea.types.d.ts +41 -0
- package/dist/components/textarea/Textarea.types.d.ts.map +1 -0
- package/dist/components/textarea/index.d.ts +4 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/legacy/textarea.d.ts +12 -0
- package/dist/components/textarea/legacy/textarea.d.ts.map +1 -0
- package/dist/components/textarea/textarea-variants.d.ts +15 -0
- package/dist/components/textarea/textarea-variants.d.ts.map +1 -0
- package/dist/components/toasts/Toast.d.ts +1 -1
- package/dist/components/toasts/Toast.d.ts.map +1 -1
- package/dist/components/toasts/ToastProvider.d.ts.map +1 -1
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/body.d.ts +13 -0
- package/dist/components/ui/body.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/caption.d.ts +12 -0
- package/dist/components/ui/caption.d.ts.map +1 -0
- package/dist/components/ui/code.d.ts +12 -0
- package/dist/components/ui/code.d.ts.map +1 -0
- package/dist/components/ui/display.d.ts +13 -0
- package/dist/components/ui/display.d.ts.map +1 -0
- package/dist/components/ui/field.d.ts +46 -0
- package/dist/components/ui/field.d.ts.map +1 -0
- package/dist/components/ui/heading.d.ts +13 -0
- package/dist/components/ui/heading.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +9 -2
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/lead.d.ts +12 -0
- package/dist/components/ui/lead.d.ts.map +1 -0
- package/dist/components/ui/text.d.ts +19 -0
- package/dist/components/ui/text.d.ts.map +1 -0
- package/dist/hooks/use-toast.d.ts.map +1 -1
- package/dist/hooks/useDebounce.d.ts.map +1 -1
- package/dist/hooks/useModal.d.ts.map +1 -1
- package/dist/hooks/useToast.d.ts.map +1 -1
- package/dist/icons/IconArrowRight.d.ts +7 -0
- package/dist/icons/IconArrowRight.d.ts.map +1 -0
- package/dist/icons/IconCalendar.d.ts +7 -0
- package/dist/icons/IconCalendar.d.ts.map +1 -0
- package/dist/icons/IconCheck.d.ts +7 -0
- package/dist/icons/IconCheck.d.ts.map +1 -0
- package/dist/icons/IconChevronDown.d.ts +7 -0
- package/dist/icons/IconChevronDown.d.ts.map +1 -0
- package/dist/icons/IconChevronRight.d.ts +7 -0
- package/dist/icons/IconChevronRight.d.ts.map +1 -0
- package/dist/icons/IconClose.d.ts +7 -0
- package/dist/icons/IconClose.d.ts.map +1 -0
- package/dist/icons/IconError.d.ts +7 -0
- package/dist/icons/IconError.d.ts.map +1 -0
- package/dist/icons/IconInfo.d.ts +7 -0
- package/dist/icons/IconInfo.d.ts.map +1 -0
- package/dist/icons/IconLocation.d.ts +7 -0
- package/dist/icons/IconLocation.d.ts.map +1 -0
- package/dist/icons/IconMenu.d.ts +7 -0
- package/dist/icons/IconMenu.d.ts.map +1 -0
- package/dist/icons/IconSearch.d.ts +7 -0
- package/dist/icons/IconSearch.d.ts.map +1 -0
- package/dist/icons/IconSuccess.d.ts +7 -0
- package/dist/icons/IconSuccess.d.ts.map +1 -0
- package/dist/icons/IconWarning.d.ts +7 -0
- package/dist/icons/IconWarning.d.ts.map +1 -0
- package/dist/icons/icon.types.d.ts +26 -0
- package/dist/icons/icon.types.d.ts.map +1 -0
- package/dist/icons/index.d.ts +35 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +37 -75
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +7675 -5926
- 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.map +1 -1
- package/dist/preset.mjs +172 -53
- package/dist/styles.cjs +2 -0
- package/dist/styles.css +1 -1
- package/dist/styles.d.ts +1 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/styles.mjs +1 -0
- package/dist/theme/ThemeProvider.d.ts +1 -1
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/applyMode.d.ts.map +1 -1
- package/dist/theme/colors.d.ts +6 -70
- package/dist/theme/colors.d.ts.map +1 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.mjs +1352 -224
- package/dist/theme/motion/gestures.d.ts +77 -0
- package/dist/theme/motion/gestures.d.ts.map +1 -0
- package/dist/theme/motion/useReducedMotion.d.ts +12 -0
- package/dist/theme/motion/useReducedMotion.d.ts.map +1 -0
- package/dist/themes/brand_engine.d.ts +7 -0
- package/dist/themes/brand_engine.d.ts.map +1 -1
- package/dist/tokens/colors.d.ts +14 -19
- package/dist/tokens/colors.d.ts.map +1 -1
- package/dist/tokens/components/alert.d.ts +75 -0
- package/dist/tokens/components/alert.d.ts.map +1 -0
- package/dist/tokens/components/button.d.ts +131 -0
- package/dist/tokens/components/button.d.ts.map +1 -0
- package/dist/tokens/components/card.d.ts +92 -0
- package/dist/tokens/components/card.d.ts.map +1 -0
- package/dist/tokens/components/checkbox.d.ts +162 -0
- package/dist/tokens/components/checkbox.d.ts.map +1 -0
- package/dist/tokens/components/data.d.ts +228 -0
- package/dist/tokens/components/data.d.ts.map +1 -0
- package/dist/tokens/components/domain.d.ts +380 -0
- package/dist/tokens/components/domain.d.ts.map +1 -0
- package/dist/tokens/components/dropdown.d.ts +147 -0
- package/dist/tokens/components/dropdown.d.ts.map +1 -0
- package/dist/tokens/components/icon.d.ts +58 -0
- package/dist/tokens/components/icon.d.ts.map +1 -0
- package/dist/tokens/components/index.d.ts +32 -0
- package/dist/tokens/components/index.d.ts.map +1 -0
- package/dist/tokens/components/input.d.ts +285 -0
- package/dist/tokens/components/input.d.ts.map +1 -0
- package/dist/tokens/components/menu.d.ts +115 -0
- package/dist/tokens/components/menu.d.ts.map +1 -0
- package/dist/tokens/components/motion.d.ts +104 -0
- package/dist/tokens/components/motion.d.ts.map +1 -0
- package/dist/tokens/components/navigation.d.ts +182 -0
- package/dist/tokens/components/navigation.d.ts.map +1 -0
- package/dist/tokens/components/notifications.d.ts +160 -0
- package/dist/tokens/components/notifications.d.ts.map +1 -0
- package/dist/tokens/components/overlay.d.ts +228 -0
- package/dist/tokens/components/overlay.d.ts.map +1 -0
- package/dist/tokens/components/popover.d.ts +85 -0
- package/dist/tokens/components/popover.d.ts.map +1 -0
- package/dist/tokens/components/radio.d.ts +150 -0
- package/dist/tokens/components/radio.d.ts.map +1 -0
- package/dist/tokens/components/section.d.ts +42 -0
- package/dist/tokens/components/section.d.ts.map +1 -0
- package/dist/tokens/components/surface.d.ts +95 -0
- package/dist/tokens/components/surface.d.ts.map +1 -0
- package/dist/tokens/components/switch.d.ts +209 -0
- package/dist/tokens/components/switch.d.ts.map +1 -0
- package/dist/tokens/components/text.d.ts +69 -0
- package/dist/tokens/components/text.d.ts.map +1 -0
- package/dist/tokens/components/toast.d.ts +147 -0
- package/dist/tokens/components/toast.d.ts.map +1 -0
- package/dist/tokens/components/tooltip.d.ts +53 -0
- package/dist/tokens/components/tooltip.d.ts.map +1 -0
- package/dist/tokens/css-variables.d.ts +0 -19
- package/dist/tokens/css-variables.d.ts.map +1 -1
- package/dist/tokens/index.cjs +3 -3
- package/dist/tokens/index.d.ts +2 -0
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.mjs +3640 -821
- package/dist/tokens/motion/v2.d.ts +343 -0
- package/dist/tokens/motion/v2.d.ts.map +1 -0
- package/dist/tokens/motion.d.ts +55 -4
- package/dist/tokens/motion.d.ts.map +1 -1
- package/dist/tokens/opacity.d.ts +23 -0
- package/dist/tokens/opacity.d.ts.map +1 -0
- package/dist/tokens/radius.d.ts +22 -1
- package/dist/tokens/radius.d.ts.map +1 -1
- package/dist/tokens/shadows.d.ts +64 -5
- package/dist/tokens/shadows.d.ts.map +1 -1
- package/dist/tokens/spacing.d.ts +47 -1
- package/dist/tokens/spacing.d.ts.map +1 -1
- package/dist/tokens/theme.d.ts +120 -0
- package/dist/tokens/theme.d.ts.map +1 -0
- package/dist/tokens/typography.d.ts +141 -23
- package/dist/tokens/typography.d.ts.map +1 -1
- 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/components/cards/EventCard.d.ts.map +0 -1
- package/dist/components/cards/VenueCard.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/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/primitives/Typography.d.ts +0 -21
- package/dist/components/primitives/Typography.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/motion-4SRNkZlz.cjs +0 -2
- 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/index.mjs
CHANGED
|
@@ -1,132 +1,1093 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
2
|
+
import { m as fe, p as ge, b as he, s as xe, c as q, d as V, e as Q, f as G, g as J } from "../motion-CzQhSEqk.js";
|
|
3
|
+
import { h as nr, a as sr } from "../motion-CzQhSEqk.js";
|
|
4
|
+
import { jsx as be } from "react/jsx-runtime";
|
|
5
|
+
import p from "react";
|
|
6
|
+
const we = {
|
|
7
|
+
id: "minimal",
|
|
8
|
+
name: "Minimal",
|
|
9
|
+
description: "Clean, minimal brand theme with muted colors, light typography, and compact spacing",
|
|
10
|
+
namespace: "minimal",
|
|
11
|
+
version: "1.0.0",
|
|
12
|
+
author: "Tenerife UI",
|
|
13
|
+
themes: [
|
|
14
|
+
{
|
|
15
|
+
id: "minimal-day",
|
|
16
|
+
name: "Minimal Day",
|
|
17
|
+
description: "Light minimal theme with grayscale colors and subtle accents",
|
|
18
|
+
mode: "day",
|
|
19
|
+
overrides: {
|
|
20
|
+
name: "minimal-day",
|
|
21
|
+
description: "Light minimal theme for day mode",
|
|
22
|
+
// Muted, low-saturation color overrides
|
|
23
|
+
primaryColors: {
|
|
24
|
+
400: "0 0% 60%",
|
|
25
|
+
// Muted gray
|
|
26
|
+
500: "0 0% 50%",
|
|
27
|
+
// Neutral gray (#808080)
|
|
28
|
+
600: "0 0% 40%",
|
|
29
|
+
700: "0 0% 30%"
|
|
30
|
+
},
|
|
31
|
+
accentColors: {
|
|
32
|
+
400: "210 20% 70%",
|
|
33
|
+
// Muted blue-gray
|
|
34
|
+
500: "210 20% 60%",
|
|
35
|
+
// Subtle blue-gray
|
|
36
|
+
600: "210 20% 50%",
|
|
37
|
+
700: "210 20% 40%"
|
|
38
|
+
},
|
|
39
|
+
secondaryColors: {
|
|
40
|
+
400: "0 0% 70%",
|
|
41
|
+
// Light gray
|
|
42
|
+
500: "0 0% 65%",
|
|
43
|
+
// Neutral light gray
|
|
44
|
+
600: "0 0% 55%",
|
|
45
|
+
700: "0 0% 45%"
|
|
46
|
+
},
|
|
47
|
+
// Muted base colors for day mode
|
|
48
|
+
baseColorsDay: {
|
|
49
|
+
primary: "0 0% 50%",
|
|
50
|
+
// Neutral gray
|
|
51
|
+
primaryForeground: "0 0% 100%",
|
|
52
|
+
secondary: "0 0% 96%",
|
|
53
|
+
// Very light gray
|
|
54
|
+
secondaryForeground: "0 0% 20%",
|
|
55
|
+
accent: "210 20% 60%",
|
|
56
|
+
// Subtle blue-gray
|
|
57
|
+
accentForeground: "0 0% 100%"
|
|
58
|
+
},
|
|
59
|
+
// Subtle semantic colors
|
|
60
|
+
semanticColorsDay: {
|
|
61
|
+
success: "140 30% 45%",
|
|
62
|
+
// Muted green
|
|
63
|
+
info: "210 30% 50%",
|
|
64
|
+
// Muted blue
|
|
65
|
+
warning: "40 30% 50%",
|
|
66
|
+
// Muted orange
|
|
67
|
+
error: "0 40% 55%"
|
|
68
|
+
// Muted red
|
|
69
|
+
},
|
|
70
|
+
// Typography overrides - lighter and smaller
|
|
71
|
+
typography: {
|
|
72
|
+
fontWeight: {
|
|
73
|
+
normal: "400",
|
|
74
|
+
// Normal weight
|
|
75
|
+
medium: "500",
|
|
76
|
+
semibold: "600",
|
|
77
|
+
// Lighter than default
|
|
78
|
+
bold: "700"
|
|
79
|
+
// Standard bold
|
|
80
|
+
},
|
|
81
|
+
fontSize: {
|
|
82
|
+
xs: [
|
|
83
|
+
"clamp(0.6875rem, 0.65rem + 0.125vw, 0.75rem)",
|
|
84
|
+
{ lineHeight: "1rem", letterSpacing: "0.05em" }
|
|
85
|
+
],
|
|
86
|
+
// Smaller
|
|
87
|
+
sm: [
|
|
88
|
+
"clamp(0.8125rem, 0.75rem + 0.25vw, 0.875rem)",
|
|
89
|
+
{ lineHeight: "1.25rem", letterSpacing: "0.025em" }
|
|
90
|
+
],
|
|
91
|
+
// Smaller
|
|
92
|
+
base: [
|
|
93
|
+
"clamp(0.9375rem, 0.875rem + 0.25vw, 1rem)",
|
|
94
|
+
{ lineHeight: "1.5rem", letterSpacing: "0em" }
|
|
95
|
+
],
|
|
96
|
+
// Smaller
|
|
97
|
+
lg: [
|
|
98
|
+
"clamp(1.0625rem, 0.95rem + 0.5vw, 1.125rem)",
|
|
99
|
+
{ lineHeight: "1.75rem", letterSpacing: "-0.025em" }
|
|
100
|
+
],
|
|
101
|
+
// Smaller
|
|
102
|
+
xl: [
|
|
103
|
+
"clamp(1.1875rem, 1rem + 0.75vw, 1.375rem)",
|
|
104
|
+
{ lineHeight: "1.75rem", letterSpacing: "-0.025em" }
|
|
105
|
+
]
|
|
106
|
+
// Smaller
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
// Spacing overrides - compact spacing for tight layout
|
|
110
|
+
spacing: {
|
|
111
|
+
semanticSpacing: {
|
|
112
|
+
xs: "0.125rem",
|
|
113
|
+
// 2px (was 4px)
|
|
114
|
+
sm: "0.25rem",
|
|
115
|
+
// 4px (was 8px)
|
|
116
|
+
md: "0.5rem",
|
|
117
|
+
// 8px (was 16px)
|
|
118
|
+
lg: "0.75rem",
|
|
119
|
+
// 12px (was 24px)
|
|
120
|
+
xl: "1rem",
|
|
121
|
+
// 16px (was 32px)
|
|
122
|
+
"2xl": "1.5rem"
|
|
123
|
+
// 24px (was 48px)
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
// Shadow overrides - subtle and minimal
|
|
127
|
+
shadows: {
|
|
128
|
+
elevationShadows: {
|
|
129
|
+
xs: "0 1px 1px 0 rgb(0 0 0 / 0.03)",
|
|
130
|
+
sm: "0 1px 2px 0 rgb(0 0 0 / 0.05), 0 1px 1px -1px rgb(0 0 0 / 0.05)",
|
|
131
|
+
md: "0 2px 4px -1px rgb(0 0 0 / 0.05), 0 1px 2px -2px rgb(0 0 0 / 0.05)",
|
|
132
|
+
lg: "0 4px 8px -2px rgb(0 0 0 / 0.05), 0 2px 4px -3px rgb(0 0 0 / 0.05)",
|
|
133
|
+
xl: "0 8px 12px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05)"
|
|
134
|
+
},
|
|
135
|
+
glowEffects: {
|
|
136
|
+
"glow-primary": "0 0 8px 0 hsl(0 0% 50% / 0.2)",
|
|
137
|
+
"glow-primary-subtle": "0 0 4px 0 hsl(0 0% 50% / 0.15)",
|
|
138
|
+
"glow-primary-medium": "0 0 8px 0 hsl(0 0% 50% / 0.25)",
|
|
139
|
+
"glow-primary-strong": "0 0 12px 0 hsl(0 0% 50% / 0.3)"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
// Radius overrides - smaller, sharper corners
|
|
143
|
+
radius: {
|
|
144
|
+
borderRadius: {
|
|
145
|
+
xs: "0.0625rem",
|
|
146
|
+
// 1px
|
|
147
|
+
sm: "0.125rem",
|
|
148
|
+
// 2px (was 4px)
|
|
149
|
+
md: "0.1875rem",
|
|
150
|
+
// 3px (was 6px)
|
|
151
|
+
lg: "0.25rem",
|
|
152
|
+
// 4px (was 8px)
|
|
153
|
+
xl: "0.375rem",
|
|
154
|
+
// 6px (was 12px)
|
|
155
|
+
"2xl": "0.5rem"
|
|
156
|
+
// 8px (was 16px)
|
|
157
|
+
},
|
|
158
|
+
componentRadius: {
|
|
159
|
+
button: {
|
|
160
|
+
sm: "0.125rem",
|
|
161
|
+
// 2px
|
|
162
|
+
md: "0.1875rem",
|
|
163
|
+
// 3px
|
|
164
|
+
lg: "0.25rem"
|
|
165
|
+
// 4px
|
|
166
|
+
},
|
|
167
|
+
card: {
|
|
168
|
+
sm: "0.1875rem",
|
|
169
|
+
// 3px
|
|
170
|
+
md: "0.25rem",
|
|
171
|
+
// 4px
|
|
172
|
+
lg: "0.375rem",
|
|
173
|
+
// 6px
|
|
174
|
+
xl: "0.5rem"
|
|
175
|
+
// 8px
|
|
176
|
+
},
|
|
177
|
+
input: {
|
|
178
|
+
sm: "0.125rem",
|
|
179
|
+
// 2px
|
|
180
|
+
md: "0.1875rem",
|
|
181
|
+
// 3px
|
|
182
|
+
lg: "0.25rem"
|
|
183
|
+
// 4px
|
|
184
|
+
},
|
|
185
|
+
badge: {
|
|
186
|
+
sm: "0.0625rem",
|
|
187
|
+
// 1px
|
|
188
|
+
md: "0.125rem",
|
|
189
|
+
// 2px
|
|
190
|
+
lg: "0.1875rem"
|
|
191
|
+
// 3px
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
id: "minimal-night",
|
|
199
|
+
name: "Minimal Night",
|
|
200
|
+
description: "Dark minimal theme with muted grayscale colors",
|
|
201
|
+
mode: "night",
|
|
202
|
+
overrides: {
|
|
203
|
+
name: "minimal-night",
|
|
204
|
+
description: "Dark minimal theme for night mode",
|
|
205
|
+
// Muted colors for night mode (slightly lighter than day for contrast)
|
|
206
|
+
primaryColors: {
|
|
207
|
+
400: "0 0% 65%",
|
|
208
|
+
// Lighter gray for night
|
|
209
|
+
500: "0 0% 55%",
|
|
210
|
+
// Neutral gray
|
|
211
|
+
600: "0 0% 45%",
|
|
212
|
+
700: "0 0% 35%"
|
|
213
|
+
},
|
|
214
|
+
accentColors: {
|
|
215
|
+
400: "210 20% 75%",
|
|
216
|
+
// Lighter blue-gray
|
|
217
|
+
500: "210 20% 65%",
|
|
218
|
+
// Subtle blue-gray
|
|
219
|
+
600: "210 20% 55%",
|
|
220
|
+
700: "210 20% 45%"
|
|
221
|
+
},
|
|
222
|
+
secondaryColors: {
|
|
223
|
+
400: "0 0% 75%",
|
|
224
|
+
// Light gray
|
|
225
|
+
500: "0 0% 70%",
|
|
226
|
+
// Neutral light gray
|
|
227
|
+
600: "0 0% 60%",
|
|
228
|
+
700: "0 0% 50%"
|
|
229
|
+
},
|
|
230
|
+
// Darker base colors for night mode
|
|
231
|
+
baseColorsNight: {
|
|
232
|
+
background: "240 10% 8%",
|
|
233
|
+
// Dark gray background
|
|
234
|
+
foreground: "0 0% 95%",
|
|
235
|
+
card: "240 10% 10%",
|
|
236
|
+
cardForeground: "0 0% 95%"
|
|
237
|
+
},
|
|
238
|
+
surfaceColorsNight: {
|
|
239
|
+
base: "240 10% 8%",
|
|
240
|
+
elevated1: "240 10% 10%",
|
|
241
|
+
elevated2: "240 10% 12%",
|
|
242
|
+
elevated3: "240 10% 14%"
|
|
243
|
+
},
|
|
244
|
+
// Subtle semantic colors for night
|
|
245
|
+
semanticColorsNight: {
|
|
246
|
+
success: "140 30% 50%",
|
|
247
|
+
// Muted green
|
|
248
|
+
info: "210 30% 55%",
|
|
249
|
+
// Muted blue
|
|
250
|
+
warning: "40 30% 55%",
|
|
251
|
+
// Muted orange
|
|
252
|
+
error: "0 40% 60%"
|
|
253
|
+
// Muted red
|
|
254
|
+
},
|
|
255
|
+
// Typography overrides - same as day
|
|
256
|
+
typography: {
|
|
257
|
+
fontWeight: {
|
|
258
|
+
normal: "400",
|
|
259
|
+
medium: "500",
|
|
260
|
+
semibold: "600",
|
|
261
|
+
bold: "700"
|
|
262
|
+
},
|
|
263
|
+
fontSize: {
|
|
264
|
+
xs: [
|
|
265
|
+
"clamp(0.6875rem, 0.65rem + 0.125vw, 0.75rem)",
|
|
266
|
+
{ lineHeight: "1rem", letterSpacing: "0.05em" }
|
|
267
|
+
],
|
|
268
|
+
sm: [
|
|
269
|
+
"clamp(0.8125rem, 0.75rem + 0.25vw, 0.875rem)",
|
|
270
|
+
{ lineHeight: "1.25rem", letterSpacing: "0.025em" }
|
|
271
|
+
],
|
|
272
|
+
base: [
|
|
273
|
+
"clamp(0.9375rem, 0.875rem + 0.25vw, 1rem)",
|
|
274
|
+
{ lineHeight: "1.5rem", letterSpacing: "0em" }
|
|
275
|
+
],
|
|
276
|
+
lg: [
|
|
277
|
+
"clamp(1.0625rem, 0.95rem + 0.5vw, 1.125rem)",
|
|
278
|
+
{ lineHeight: "1.75rem", letterSpacing: "-0.025em" }
|
|
279
|
+
],
|
|
280
|
+
xl: [
|
|
281
|
+
"clamp(1.1875rem, 1rem + 0.75vw, 1.375rem)",
|
|
282
|
+
{ lineHeight: "1.75rem", letterSpacing: "-0.025em" }
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
// Spacing overrides - same as day
|
|
287
|
+
spacing: {
|
|
288
|
+
semanticSpacing: {
|
|
289
|
+
xs: "0.125rem",
|
|
290
|
+
sm: "0.25rem",
|
|
291
|
+
md: "0.5rem",
|
|
292
|
+
lg: "0.75rem",
|
|
293
|
+
xl: "1rem",
|
|
294
|
+
"2xl": "1.5rem"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
// Shadow overrides - subtle for night
|
|
298
|
+
shadows: {
|
|
299
|
+
elevationShadows: {
|
|
300
|
+
xs: "0 1px 2px 0 rgb(0 0 0 / 0.15)",
|
|
301
|
+
sm: "0 1px 3px 0 rgb(0 0 0 / 0.2), 0 1px 2px -1px rgb(0 0 0 / 0.2)",
|
|
302
|
+
md: "0 2px 5px -1px rgb(0 0 0 / 0.2), 0 1px 3px -2px rgb(0 0 0 / 0.2)",
|
|
303
|
+
lg: "0 4px 10px -2px rgb(0 0 0 / 0.2), 0 2px 5px -3px rgb(0 0 0 / 0.2)",
|
|
304
|
+
xl: "0 8px 15px -3px rgb(0 0 0 / 0.2), 0 4px 8px -4px rgb(0 0 0 / 0.2)"
|
|
305
|
+
},
|
|
306
|
+
glowEffects: {
|
|
307
|
+
"glow-primary": "0 0 8px 0 hsl(0 0% 55% / 0.25)",
|
|
308
|
+
"glow-primary-subtle": "0 0 4px 0 hsl(0 0% 55% / 0.2)",
|
|
309
|
+
"glow-primary-medium": "0 0 8px 0 hsl(0 0% 55% / 0.3)",
|
|
310
|
+
"glow-primary-strong": "0 0 12px 0 hsl(0 0% 55% / 0.35)"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
// Radius overrides - same as day
|
|
314
|
+
radius: {
|
|
315
|
+
borderRadius: {
|
|
316
|
+
xs: "0.0625rem",
|
|
317
|
+
sm: "0.125rem",
|
|
318
|
+
md: "0.1875rem",
|
|
319
|
+
lg: "0.25rem",
|
|
320
|
+
xl: "0.375rem",
|
|
321
|
+
"2xl": "0.5rem"
|
|
322
|
+
},
|
|
323
|
+
componentRadius: {
|
|
324
|
+
button: {
|
|
325
|
+
sm: "0.125rem",
|
|
326
|
+
md: "0.1875rem",
|
|
327
|
+
lg: "0.25rem"
|
|
328
|
+
},
|
|
329
|
+
card: {
|
|
330
|
+
sm: "0.1875rem",
|
|
331
|
+
md: "0.25rem",
|
|
332
|
+
lg: "0.375rem",
|
|
333
|
+
xl: "0.5rem"
|
|
334
|
+
},
|
|
335
|
+
input: {
|
|
336
|
+
sm: "0.125rem",
|
|
337
|
+
md: "0.1875rem",
|
|
338
|
+
lg: "0.25rem"
|
|
339
|
+
},
|
|
340
|
+
badge: {
|
|
341
|
+
sm: "0.0625rem",
|
|
342
|
+
md: "0.125rem",
|
|
343
|
+
lg: "0.1875rem"
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
}, $e = {
|
|
351
|
+
id: "neon",
|
|
352
|
+
name: "Neon",
|
|
353
|
+
description: "Vibrant brand theme with high-saturation neon colors, bold typography, and enhanced visual effects",
|
|
354
|
+
namespace: "neon",
|
|
355
|
+
version: "1.0.0",
|
|
356
|
+
author: "Tenerife UI",
|
|
357
|
+
themes: [
|
|
358
|
+
{
|
|
359
|
+
id: "neon-day",
|
|
360
|
+
name: "Neon Day",
|
|
361
|
+
description: "Bright neon theme for day mode with vibrant cyan, magenta, and yellow accents",
|
|
362
|
+
mode: "day",
|
|
363
|
+
overrides: {
|
|
364
|
+
name: "neon-day",
|
|
365
|
+
description: "Bright neon theme for day mode",
|
|
366
|
+
// Vibrant neon color overrides
|
|
367
|
+
primaryColors: {
|
|
368
|
+
400: "180 100% 50%",
|
|
369
|
+
// Bright cyan
|
|
370
|
+
500: "180 100% 45%",
|
|
371
|
+
// Vibrant cyan (#00e6ff)
|
|
372
|
+
600: "180 95% 40%",
|
|
373
|
+
700: "180 90% 35%"
|
|
374
|
+
},
|
|
375
|
+
accentColors: {
|
|
376
|
+
400: "320 100% 60%",
|
|
377
|
+
// Bright magenta
|
|
378
|
+
500: "320 100% 55%",
|
|
379
|
+
// Vibrant magenta (#ff00cc)
|
|
380
|
+
600: "320 95% 50%",
|
|
381
|
+
700: "320 90% 45%"
|
|
382
|
+
},
|
|
383
|
+
secondaryColors: {
|
|
384
|
+
400: "60 100% 60%",
|
|
385
|
+
// Bright yellow
|
|
386
|
+
500: "60 100% 55%",
|
|
387
|
+
// Vibrant yellow (#ffff00)
|
|
388
|
+
600: "60 95% 50%",
|
|
389
|
+
700: "60 90% 45%"
|
|
390
|
+
},
|
|
391
|
+
// Enhanced base colors for day mode
|
|
392
|
+
baseColorsDay: {
|
|
393
|
+
primary: "180 100% 45%",
|
|
394
|
+
// Neon cyan
|
|
395
|
+
primaryForeground: "0 0% 100%",
|
|
396
|
+
accent: "320 100% 55%",
|
|
397
|
+
// Neon magenta
|
|
398
|
+
accentForeground: "0 0% 100%"
|
|
399
|
+
},
|
|
400
|
+
// Semantic colors with neon accents
|
|
401
|
+
semanticColorsDay: {
|
|
402
|
+
success: "145 80% 45%",
|
|
403
|
+
// Neon green
|
|
404
|
+
info: "180 100% 45%",
|
|
405
|
+
// Neon cyan
|
|
406
|
+
warning: "60 100% 55%",
|
|
407
|
+
// Neon yellow
|
|
408
|
+
error: "0 100% 60%"
|
|
409
|
+
// Bright red
|
|
410
|
+
},
|
|
411
|
+
// Typography overrides - bolder and larger
|
|
412
|
+
typography: {
|
|
413
|
+
fontWeight: {
|
|
414
|
+
normal: "500",
|
|
415
|
+
// Heavier than default (400)
|
|
416
|
+
medium: "600",
|
|
417
|
+
// Heavier
|
|
418
|
+
semibold: "700",
|
|
419
|
+
// Bold
|
|
420
|
+
bold: "800"
|
|
421
|
+
// Extra bold
|
|
422
|
+
},
|
|
423
|
+
fontSize: {
|
|
424
|
+
xs: [
|
|
425
|
+
"clamp(0.875rem, 0.8rem + 0.25vw, 1rem)",
|
|
426
|
+
{ lineHeight: "1.25rem", letterSpacing: "0.025em" }
|
|
427
|
+
],
|
|
428
|
+
// Larger than default
|
|
429
|
+
sm: [
|
|
430
|
+
"clamp(1rem, 0.95rem + 0.25vw, 1.125rem)",
|
|
431
|
+
{ lineHeight: "1.5rem", letterSpacing: "0em" }
|
|
432
|
+
],
|
|
433
|
+
// Larger
|
|
434
|
+
base: [
|
|
435
|
+
"clamp(1.125rem, 1rem + 0.5vw, 1.25rem)",
|
|
436
|
+
{ lineHeight: "1.75rem", letterSpacing: "-0.025em" }
|
|
437
|
+
],
|
|
438
|
+
// Larger
|
|
439
|
+
lg: [
|
|
440
|
+
"clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem)",
|
|
441
|
+
{ lineHeight: "1.75rem", letterSpacing: "-0.025em" }
|
|
442
|
+
],
|
|
443
|
+
// Larger
|
|
444
|
+
xl: [
|
|
445
|
+
"clamp(1.5rem, 1.25rem + 1.25vw, 2rem)",
|
|
446
|
+
{ lineHeight: "2rem", letterSpacing: "-0.05em" }
|
|
447
|
+
]
|
|
448
|
+
// Larger
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
// Spacing overrides - larger spacing for breathing room
|
|
452
|
+
spacing: {
|
|
453
|
+
semanticSpacing: {
|
|
454
|
+
xs: "0.5rem",
|
|
455
|
+
// 8px (was 4px)
|
|
456
|
+
sm: "1rem",
|
|
457
|
+
// 16px (was 8px)
|
|
458
|
+
md: "1.5rem",
|
|
459
|
+
// 24px (was 16px)
|
|
460
|
+
lg: "2rem",
|
|
461
|
+
// 32px (was 24px)
|
|
462
|
+
xl: "3rem",
|
|
463
|
+
// 48px (was 32px)
|
|
464
|
+
"2xl": "4rem"
|
|
465
|
+
// 64px (was 48px)
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
// Shadow overrides - stronger and more prominent
|
|
469
|
+
shadows: {
|
|
470
|
+
elevationShadows: {
|
|
471
|
+
xs: "0 2px 4px 0 rgb(0 0 0 / 0.1)",
|
|
472
|
+
sm: "0 2px 6px 0 rgb(0 0 0 / 0.15), 0 2px 4px -1px rgb(0 0 0 / 0.15)",
|
|
473
|
+
md: "0 6px 10px -1px rgb(0 0 0 / 0.15), 0 4px 6px -2px rgb(0 0 0 / 0.15)",
|
|
474
|
+
lg: "0 12px 20px -3px rgb(0 0 0 / 0.15), 0 6px 10px -4px rgb(0 0 0 / 0.15)",
|
|
475
|
+
xl: "0 24px 32px -5px rgb(0 0 0 / 0.15), 0 10px 14px -6px rgb(0 0 0 / 0.15)"
|
|
476
|
+
},
|
|
477
|
+
glowEffects: {
|
|
478
|
+
"glow-primary": "0 0 30px 0 hsl(180 100% 45% / 0.7), 0 0 60px 0 hsl(180 100% 45% / 0.4)",
|
|
479
|
+
"glow-primary-subtle": "0 0 12px 0 hsl(180 100% 45% / 0.5)",
|
|
480
|
+
"glow-primary-medium": "0 0 24px 0 hsl(180 100% 45% / 0.7)",
|
|
481
|
+
"glow-primary-strong": "0 0 36px 0 hsl(180 100% 45% / 0.8)",
|
|
482
|
+
"glow-accent": "0 0 30px 0 hsl(320 100% 55% / 0.7), 0 0 60px 0 hsl(320 100% 55% / 0.4)",
|
|
483
|
+
"glow-accent-subtle": "0 0 12px 0 hsl(320 100% 55% / 0.5)",
|
|
484
|
+
"glow-accent-medium": "0 0 24px 0 hsl(320 100% 55% / 0.7)",
|
|
485
|
+
"glow-accent-strong": "0 0 36px 0 hsl(320 100% 55% / 0.8)"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
// Radius overrides - more rounded corners
|
|
489
|
+
radius: {
|
|
490
|
+
borderRadius: {
|
|
491
|
+
sm: "0.375rem",
|
|
492
|
+
// 6px (was 4px)
|
|
493
|
+
md: "0.5rem",
|
|
494
|
+
// 8px (was 6px)
|
|
495
|
+
lg: "0.75rem",
|
|
496
|
+
// 12px (was 8px)
|
|
497
|
+
xl: "1rem",
|
|
498
|
+
// 16px (was 12px)
|
|
499
|
+
"2xl": "1.5rem",
|
|
500
|
+
// 24px (was 16px)
|
|
501
|
+
"3xl": "2rem"
|
|
502
|
+
// 32px (was 24px)
|
|
503
|
+
},
|
|
504
|
+
componentRadius: {
|
|
505
|
+
button: {
|
|
506
|
+
sm: "0.5rem",
|
|
507
|
+
// 8px
|
|
508
|
+
md: "0.75rem",
|
|
509
|
+
// 12px
|
|
510
|
+
lg: "1rem"
|
|
511
|
+
// 16px
|
|
512
|
+
},
|
|
513
|
+
card: {
|
|
514
|
+
sm: "0.75rem",
|
|
515
|
+
// 12px
|
|
516
|
+
md: "1rem",
|
|
517
|
+
// 16px
|
|
518
|
+
lg: "1.25rem",
|
|
519
|
+
// 20px
|
|
520
|
+
xl: "1.5rem"
|
|
521
|
+
// 24px
|
|
522
|
+
},
|
|
523
|
+
input: {
|
|
524
|
+
sm: "0.5rem",
|
|
525
|
+
// 8px
|
|
526
|
+
md: "0.75rem",
|
|
527
|
+
// 12px
|
|
528
|
+
lg: "1rem"
|
|
529
|
+
// 16px
|
|
530
|
+
},
|
|
531
|
+
badge: {
|
|
532
|
+
sm: "0.375rem",
|
|
533
|
+
// 6px
|
|
534
|
+
md: "0.5rem",
|
|
535
|
+
// 8px
|
|
536
|
+
lg: "0.75rem"
|
|
537
|
+
// 12px
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
id: "neon-night",
|
|
545
|
+
name: "Neon Night",
|
|
546
|
+
description: "Dark neon theme for night mode with glowing neon accents on dark backgrounds",
|
|
547
|
+
mode: "night",
|
|
548
|
+
overrides: {
|
|
549
|
+
name: "neon-night",
|
|
550
|
+
description: "Dark neon theme for night mode",
|
|
551
|
+
// Vibrant neon color overrides (same as day but with different base)
|
|
552
|
+
primaryColors: {
|
|
553
|
+
400: "180 100% 55%",
|
|
554
|
+
// Brighter cyan for night
|
|
555
|
+
500: "180 100% 50%",
|
|
556
|
+
// Vibrant cyan
|
|
557
|
+
600: "180 95% 45%",
|
|
558
|
+
700: "180 90% 40%"
|
|
559
|
+
},
|
|
560
|
+
accentColors: {
|
|
561
|
+
400: "320 100% 65%",
|
|
562
|
+
// Brighter magenta for night
|
|
563
|
+
500: "320 100% 60%",
|
|
564
|
+
// Vibrant magenta
|
|
565
|
+
600: "320 95% 55%",
|
|
566
|
+
700: "320 90% 50%"
|
|
567
|
+
},
|
|
568
|
+
secondaryColors: {
|
|
569
|
+
400: "60 100% 65%",
|
|
570
|
+
// Brighter yellow for night
|
|
571
|
+
500: "60 100% 60%",
|
|
572
|
+
// Vibrant yellow
|
|
573
|
+
600: "60 95% 55%",
|
|
574
|
+
700: "60 90% 50%"
|
|
575
|
+
},
|
|
576
|
+
// Darker base colors for night mode
|
|
577
|
+
baseColorsNight: {
|
|
578
|
+
background: "240 10% 5%",
|
|
579
|
+
// Very dark background
|
|
580
|
+
foreground: "0 0% 98%",
|
|
581
|
+
card: "240 10% 6%",
|
|
582
|
+
cardForeground: "0 0% 98%"
|
|
583
|
+
},
|
|
584
|
+
surfaceColorsNight: {
|
|
585
|
+
base: "240 10% 5%",
|
|
586
|
+
// Very dark
|
|
587
|
+
elevated1: "240 10% 7%",
|
|
588
|
+
elevated2: "240 10% 9%",
|
|
589
|
+
elevated3: "240 10% 11%"
|
|
590
|
+
},
|
|
591
|
+
// Semantic colors with neon accents for night
|
|
592
|
+
semanticColorsNight: {
|
|
593
|
+
success: "145 75% 50%",
|
|
594
|
+
// Neon green
|
|
595
|
+
info: "180 100% 50%",
|
|
596
|
+
// Neon cyan
|
|
597
|
+
warning: "60 100% 60%",
|
|
598
|
+
// Neon yellow
|
|
599
|
+
error: "0 100% 65%"
|
|
600
|
+
// Bright red
|
|
601
|
+
},
|
|
602
|
+
// Typography overrides - same as day
|
|
603
|
+
typography: {
|
|
604
|
+
fontWeight: {
|
|
605
|
+
normal: "500",
|
|
606
|
+
medium: "600",
|
|
607
|
+
semibold: "700",
|
|
608
|
+
bold: "800"
|
|
609
|
+
},
|
|
610
|
+
fontSize: {
|
|
611
|
+
xs: [
|
|
612
|
+
"clamp(0.875rem, 0.8rem + 0.25vw, 1rem)",
|
|
613
|
+
{ lineHeight: "1.25rem", letterSpacing: "0.025em" }
|
|
614
|
+
],
|
|
615
|
+
sm: [
|
|
616
|
+
"clamp(1rem, 0.95rem + 0.25vw, 1.125rem)",
|
|
617
|
+
{ lineHeight: "1.5rem", letterSpacing: "0em" }
|
|
618
|
+
],
|
|
619
|
+
base: [
|
|
620
|
+
"clamp(1.125rem, 1rem + 0.5vw, 1.25rem)",
|
|
621
|
+
{ lineHeight: "1.75rem", letterSpacing: "-0.025em" }
|
|
622
|
+
],
|
|
623
|
+
lg: [
|
|
624
|
+
"clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem)",
|
|
625
|
+
{ lineHeight: "1.75rem", letterSpacing: "-0.025em" }
|
|
626
|
+
],
|
|
627
|
+
xl: [
|
|
628
|
+
"clamp(1.5rem, 1.25rem + 1.25vw, 2rem)",
|
|
629
|
+
{ lineHeight: "2rem", letterSpacing: "-0.05em" }
|
|
630
|
+
]
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
// Spacing overrides - same as day
|
|
634
|
+
spacing: {
|
|
635
|
+
semanticSpacing: {
|
|
636
|
+
xs: "0.5rem",
|
|
637
|
+
sm: "1rem",
|
|
638
|
+
md: "1.5rem",
|
|
639
|
+
lg: "2rem",
|
|
640
|
+
xl: "3rem",
|
|
641
|
+
"2xl": "4rem"
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
// Shadow overrides - even stronger glow for night
|
|
645
|
+
shadows: {
|
|
646
|
+
elevationShadows: {
|
|
647
|
+
xs: "0 2px 4px 0 rgb(0 0 0 / 0.2)",
|
|
648
|
+
sm: "0 2px 6px 0 rgb(0 0 0 / 0.25), 0 2px 4px -1px rgb(0 0 0 / 0.25)",
|
|
649
|
+
md: "0 6px 10px -1px rgb(0 0 0 / 0.25), 0 4px 6px -2px rgb(0 0 0 / 0.25)",
|
|
650
|
+
lg: "0 12px 20px -3px rgb(0 0 0 / 0.25), 0 6px 10px -4px rgb(0 0 0 / 0.25)",
|
|
651
|
+
xl: "0 24px 32px -5px rgb(0 0 0 / 0.25), 0 10px 14px -6px rgb(0 0 0 / 0.25)"
|
|
652
|
+
},
|
|
653
|
+
glowEffects: {
|
|
654
|
+
"glow-primary": "0 0 40px 0 hsl(180 100% 50% / 0.8), 0 0 80px 0 hsl(180 100% 50% / 0.5)",
|
|
655
|
+
"glow-primary-subtle": "0 0 16px 0 hsl(180 100% 50% / 0.6)",
|
|
656
|
+
"glow-primary-medium": "0 0 32px 0 hsl(180 100% 50% / 0.8)",
|
|
657
|
+
"glow-primary-strong": "0 0 48px 0 hsl(180 100% 50% / 0.9)",
|
|
658
|
+
"glow-accent": "0 0 40px 0 hsl(320 100% 60% / 0.8), 0 0 80px 0 hsl(320 100% 60% / 0.5)",
|
|
659
|
+
"glow-accent-subtle": "0 0 16px 0 hsl(320 100% 60% / 0.6)",
|
|
660
|
+
"glow-accent-medium": "0 0 32px 0 hsl(320 100% 60% / 0.8)",
|
|
661
|
+
"glow-accent-strong": "0 0 48px 0 hsl(320 100% 60% / 0.9)"
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
// Radius overrides - same as day
|
|
665
|
+
radius: {
|
|
666
|
+
borderRadius: {
|
|
667
|
+
sm: "0.375rem",
|
|
668
|
+
md: "0.5rem",
|
|
669
|
+
lg: "0.75rem",
|
|
670
|
+
xl: "1rem",
|
|
671
|
+
"2xl": "1.5rem",
|
|
672
|
+
"3xl": "2rem"
|
|
673
|
+
},
|
|
674
|
+
componentRadius: {
|
|
675
|
+
button: {
|
|
676
|
+
sm: "0.5rem",
|
|
677
|
+
md: "0.75rem",
|
|
678
|
+
lg: "1rem"
|
|
679
|
+
},
|
|
680
|
+
card: {
|
|
681
|
+
sm: "0.75rem",
|
|
682
|
+
md: "1rem",
|
|
683
|
+
lg: "1.25rem",
|
|
684
|
+
xl: "1.5rem"
|
|
685
|
+
},
|
|
686
|
+
input: {
|
|
687
|
+
sm: "0.5rem",
|
|
688
|
+
md: "0.75rem",
|
|
689
|
+
lg: "1rem"
|
|
690
|
+
},
|
|
691
|
+
badge: {
|
|
692
|
+
sm: "0.375rem",
|
|
693
|
+
md: "0.5rem",
|
|
694
|
+
lg: "0.75rem"
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
]
|
|
701
|
+
}, v = /* @__PURE__ */ new Map();
|
|
702
|
+
let F = null, M = null;
|
|
703
|
+
const j = /* @__PURE__ */ new Map();
|
|
704
|
+
function oe(r) {
|
|
705
|
+
const e = [], s = [];
|
|
706
|
+
if (!r || typeof r != "object")
|
|
707
|
+
return {
|
|
708
|
+
valid: !1,
|
|
709
|
+
errors: ["Brand must be an object"],
|
|
710
|
+
warnings: []
|
|
711
|
+
};
|
|
712
|
+
const t = r, n = ["id", "name", "namespace"];
|
|
713
|
+
for (const o of n)
|
|
714
|
+
(!(o in t) || !t[o]) && e.push(`Missing required field: ${o}`);
|
|
715
|
+
if (t.id && typeof t.id == "string" && (/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t.id) || e.push(
|
|
716
|
+
`Invalid brand ID format: "${t.id}". Must be kebab-case (e.g., "neon-brand")`
|
|
717
|
+
)), t.namespace && typeof t.namespace == "string" && (/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t.namespace) || e.push(
|
|
718
|
+
`Invalid namespace format: "${t.namespace}". Must be kebab-case (e.g., "neon")`
|
|
719
|
+
)), t.themes)
|
|
720
|
+
if (!Array.isArray(t.themes))
|
|
721
|
+
e.push("Brand themes must be an array");
|
|
722
|
+
else {
|
|
723
|
+
const o = t.themes;
|
|
724
|
+
o.length === 0 && s.push("Brand has no themes defined"), o.forEach((m, i) => {
|
|
725
|
+
if (!m || typeof m != "object") {
|
|
726
|
+
e.push(`Theme at index ${i} must be an object`);
|
|
727
|
+
return;
|
|
728
|
+
}
|
|
729
|
+
const a = m;
|
|
730
|
+
(!a.id || typeof a.id != "string") && e.push(`Theme at index ${i} is missing required field: id`), (!a.name || typeof a.name != "string") && e.push(`Theme at index ${i} is missing required field: name`), (!a.mode || !["day", "night"].includes(a.mode)) && e.push(`Theme at index ${i} must have mode set to "day" or "night"`), (!a.overrides || typeof a.overrides != "object") && e.push(`Theme at index ${i} is missing required field: overrides`);
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
else
|
|
734
|
+
e.push("Brand must have at least one theme");
|
|
735
|
+
if (t.version && typeof t.version == "string" && (/^\d+\.\d+\.\d+$/.test(t.version) || s.push(
|
|
736
|
+
`Invalid version format: "${t.version}". Should be semver (e.g., "1.0.0")`
|
|
737
|
+
)), t.themes && Array.isArray(t.themes)) {
|
|
738
|
+
const o = t.themes.map(
|
|
739
|
+
(i) => i == null ? void 0 : i.id
|
|
740
|
+
), m = new Set(o);
|
|
741
|
+
o.length !== m.size && e.push("Brand contains duplicate theme IDs");
|
|
742
|
+
}
|
|
743
|
+
return {
|
|
744
|
+
valid: e.length === 0,
|
|
745
|
+
errors: e,
|
|
746
|
+
warnings: s
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
function X(r, e) {
|
|
750
|
+
const s = oe(r);
|
|
751
|
+
if (!s.valid)
|
|
752
|
+
throw new Error(`Invalid brand "${r.id}": ${s.errors.join(", ")}`);
|
|
753
|
+
s.warnings.length > 0 && console.warn(`Brand "${r.id}" validation warnings:`, s.warnings.join(", "));
|
|
754
|
+
const t = v.get(r.id);
|
|
755
|
+
if (t && t.brand.namespace === r.namespace)
|
|
756
|
+
return;
|
|
757
|
+
if (v.has(r.id))
|
|
758
|
+
throw new Error(`Brand "${r.id}" is already registered`);
|
|
759
|
+
const n = Array.from(v.values()).find(
|
|
760
|
+
(o) => o.brand.namespace === r.namespace
|
|
761
|
+
);
|
|
762
|
+
if (n)
|
|
763
|
+
throw new Error(
|
|
764
|
+
`Brand namespace "${r.namespace}" is already used by brand "${n.brand.id}"`
|
|
765
|
+
);
|
|
766
|
+
v.set(r.id, {
|
|
767
|
+
brand: r,
|
|
768
|
+
enabled: (e == null ? void 0 : e.enabled) !== !1,
|
|
769
|
+
loader: e == null ? void 0 : e.loader
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
async function ne(r) {
|
|
773
|
+
if (j.has(r))
|
|
774
|
+
return j.get(r);
|
|
775
|
+
const e = v.get(r);
|
|
776
|
+
if (!e)
|
|
777
|
+
throw new Error(`Brand "${r}" not found in registry`);
|
|
778
|
+
if (e.enabled === !1)
|
|
779
|
+
throw new Error(`Brand "${r}" is disabled`);
|
|
780
|
+
if (e.loader)
|
|
781
|
+
try {
|
|
782
|
+
const t = (await e.loader()).default, n = oe(t);
|
|
783
|
+
if (!n.valid)
|
|
784
|
+
throw new Error(`Invalid loaded brand "${r}": ${n.errors.join(", ")}`);
|
|
785
|
+
return j.set(r, t), t;
|
|
786
|
+
} catch (s) {
|
|
787
|
+
throw new Error(
|
|
788
|
+
`Failed to load brand "${r}": ${s instanceof Error ? s.message : String(s)}`
|
|
789
|
+
);
|
|
790
|
+
}
|
|
791
|
+
return j.set(r, e.brand), e.brand;
|
|
792
|
+
}
|
|
793
|
+
function se() {
|
|
794
|
+
return F;
|
|
795
|
+
}
|
|
796
|
+
function O(r) {
|
|
797
|
+
F = r, M = (r == null ? void 0 : r.namespace) || null;
|
|
798
|
+
}
|
|
799
|
+
function Pe() {
|
|
800
|
+
F = null, M = null;
|
|
801
|
+
}
|
|
802
|
+
function ve(r, e) {
|
|
803
|
+
return r.themes.find((s) => s.mode === e);
|
|
804
|
+
}
|
|
805
|
+
function ae(r, e) {
|
|
806
|
+
if (typeof document > "u") return;
|
|
807
|
+
const s = ve(r, e);
|
|
808
|
+
if (!s) {
|
|
809
|
+
console.warn(`Brand "${r.id}" has no theme for mode "${e}"`);
|
|
810
|
+
return;
|
|
811
|
+
}
|
|
812
|
+
const t = document.documentElement, { namespace: n } = r, { overrides: o } = s;
|
|
813
|
+
o.primaryColors && Object.entries(o.primaryColors).forEach(([i, a]) => {
|
|
814
|
+
t.style.setProperty(`--brand-${n}-primary-${i}`, a);
|
|
815
|
+
}), o.accentColors && Object.entries(o.accentColors).forEach(([i, a]) => {
|
|
816
|
+
t.style.setProperty(`--brand-${n}-accent-${i}`, a);
|
|
817
|
+
}), o.secondaryColors && Object.entries(o.secondaryColors).forEach(([i, a]) => {
|
|
818
|
+
t.style.setProperty(`--brand-${n}-secondary-${i}`, a);
|
|
819
|
+
});
|
|
820
|
+
const m = e === "day" ? o.baseColorsDay : o.baseColorsNight;
|
|
821
|
+
if (m && Object.entries(m).forEach(([i, a]) => {
|
|
822
|
+
t.style.setProperty(`--brand-${n}-${i}`, a);
|
|
823
|
+
}), o.typography && (o.typography.fontFamily && Object.entries(o.typography.fontFamily).forEach(([i, a]) => {
|
|
824
|
+
t.style.setProperty(
|
|
825
|
+
`--brand-${n}-font-${i}`,
|
|
826
|
+
Array.isArray(a) ? a.join(", ") : a
|
|
827
|
+
);
|
|
828
|
+
}), o.typography.fontSize && Object.entries(o.typography.fontSize).forEach(([i, a]) => {
|
|
829
|
+
const c = typeof a == "string" ? a : a[0];
|
|
830
|
+
t.style.setProperty(`--brand-${n}-font-size-${i}`, c);
|
|
831
|
+
}), o.typography.fontWeight && Object.entries(o.typography.fontWeight).forEach(([i, a]) => {
|
|
832
|
+
t.style.setProperty(`--brand-${n}-font-weight-${i}`, a);
|
|
833
|
+
}), o.typography.lineHeight && Object.entries(o.typography.lineHeight).forEach(([i, a]) => {
|
|
834
|
+
t.style.setProperty(`--brand-${n}-line-height-${i}`, a);
|
|
835
|
+
}), o.typography.letterSpacing && Object.entries(o.typography.letterSpacing).forEach(([i, a]) => {
|
|
836
|
+
t.style.setProperty(`--brand-${n}-letter-spacing-${i}`, a);
|
|
837
|
+
})), o.spacing && (o.spacing.semanticSpacing && Object.entries(o.spacing.semanticSpacing).forEach(([i, a]) => {
|
|
838
|
+
t.style.setProperty(`--brand-${n}-spacing-${i}`, a);
|
|
839
|
+
}), o.spacing.layoutSpacing)) {
|
|
840
|
+
const i = o.spacing.layoutSpacing;
|
|
841
|
+
i.section && Object.entries(i.section).forEach(([a, c]) => {
|
|
842
|
+
typeof c == "string" && t.style.setProperty(`--brand-${n}-layout-section-${a}`, c);
|
|
843
|
+
}), i.container && Object.entries(i.container).forEach(([a, c]) => {
|
|
844
|
+
typeof c == "string" && t.style.setProperty(`--brand-${n}-layout-container-${a}`, c);
|
|
845
|
+
}), i.grid && Object.entries(i.grid).forEach(([a, c]) => {
|
|
846
|
+
typeof c == "string" && t.style.setProperty(`--brand-${n}-layout-grid-${a}`, c);
|
|
847
|
+
}), i.stack && Object.entries(i.stack).forEach(([a, c]) => {
|
|
848
|
+
typeof c == "string" && t.style.setProperty(`--brand-${n}-layout-stack-${a}`, c);
|
|
849
|
+
}), i.component && Object.entries(i.component).forEach(([a, c]) => {
|
|
850
|
+
typeof c == "string" && t.style.setProperty(`--brand-${n}-layout-component-${a}`, c);
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
if (o.shadows && (o.shadows.elevationShadows && Object.entries(o.shadows.elevationShadows).forEach(([i, a]) => {
|
|
854
|
+
t.style.setProperty(`--brand-${n}-shadow-${i}`, a);
|
|
855
|
+
}), o.shadows.primaryColoredShadows && Object.entries(o.shadows.primaryColoredShadows).forEach(([i, a]) => {
|
|
856
|
+
t.style.setProperty(`--brand-${n}-shadow-primary-${i}`, a);
|
|
857
|
+
}), o.shadows.accentColoredShadows && Object.entries(o.shadows.accentColoredShadows).forEach(([i, a]) => {
|
|
858
|
+
t.style.setProperty(`--brand-${n}-shadow-accent-${i}`, a);
|
|
859
|
+
}), o.shadows.glowEffects && Object.entries(o.shadows.glowEffects).forEach(([i, a]) => {
|
|
860
|
+
t.style.setProperty(`--brand-${n}-glow-${i}`, a);
|
|
861
|
+
}), o.shadows.focusRings && Object.entries(o.shadows.focusRings).forEach(([i, a]) => {
|
|
862
|
+
t.style.setProperty(`--brand-${n}-focus-ring-${i}`, a);
|
|
863
|
+
})), o.radius && (o.radius.borderRadius && Object.entries(o.radius.borderRadius).forEach(([i, a]) => {
|
|
864
|
+
t.style.setProperty(`--brand-${n}-radius-${i}`, a);
|
|
865
|
+
}), o.radius.componentRadius)) {
|
|
866
|
+
const { componentRadius: i } = o.radius;
|
|
867
|
+
i.button && Object.entries(i.button).forEach(([a, c]) => {
|
|
868
|
+
t.style.setProperty(`--brand-${n}-radius-button-${a}`, c);
|
|
869
|
+
}), i.card && Object.entries(i.card).forEach(([a, c]) => {
|
|
870
|
+
t.style.setProperty(`--brand-${n}-radius-card-${a}`, c);
|
|
871
|
+
}), i.input && Object.entries(i.input).forEach(([a, c]) => {
|
|
872
|
+
t.style.setProperty(`--brand-${n}-radius-input-${a}`, c);
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
O(r), t.setAttribute("data-brand", r.id), t.setAttribute("data-brand-namespace", n);
|
|
876
|
+
}
|
|
877
|
+
function ie(r) {
|
|
878
|
+
if (typeof document > "u") return;
|
|
879
|
+
const e = document.documentElement, { style: s } = e, t = [];
|
|
880
|
+
for (let n = 0; n < s.length; n++) {
|
|
881
|
+
const o = s.item(n);
|
|
882
|
+
o && o.startsWith(`--brand-${r}-`) && t.push(o);
|
|
883
|
+
}
|
|
884
|
+
t.forEach((n) => {
|
|
885
|
+
s.removeProperty(n);
|
|
886
|
+
}), e.removeAttribute("data-brand"), e.removeAttribute("data-brand-namespace"), M === r && Pe();
|
|
887
|
+
}
|
|
888
|
+
const Ce = {
|
|
889
|
+
default: () => import("../default-BKgH1D9-.js").then((r) => r.defaultTheme),
|
|
890
|
+
dark: () => import("../dark-Cvoy1uFT.js").then((r) => r.darkTheme),
|
|
891
|
+
brand: () => import("../brand-C5R2semX.js").then((r) => r.brandTheme)
|
|
892
|
+
};
|
|
893
|
+
async function Ee(r) {
|
|
894
|
+
const e = Ce[r];
|
|
895
|
+
if (!e)
|
|
896
|
+
throw new Error(`Theme "${r}" not found`);
|
|
897
|
+
return await e();
|
|
898
|
+
}
|
|
899
|
+
const le = "data-mode", I = "data-theme-name", ce = "data-theme", Y = "dark";
|
|
900
|
+
function Se(r = "day", e = "tm_mode", s = !0) {
|
|
901
|
+
if (typeof window > "u") return r;
|
|
902
|
+
const t = document.documentElement, n = t.getAttribute(le);
|
|
903
|
+
if (n === "day" || n === "night")
|
|
904
|
+
return n;
|
|
905
|
+
const o = t.getAttribute(ce);
|
|
906
|
+
if (o === "day" || o === "night")
|
|
907
|
+
return o;
|
|
908
|
+
try {
|
|
909
|
+
const m = localStorage.getItem(e);
|
|
910
|
+
if (m === "day" || m === "night")
|
|
911
|
+
return m;
|
|
912
|
+
const i = localStorage.getItem("theme");
|
|
913
|
+
if (i === "dark") return "night";
|
|
914
|
+
if (i === "light") return "day";
|
|
915
|
+
} catch {
|
|
916
|
+
}
|
|
917
|
+
return s && typeof window < "u" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "night" : "day" : r;
|
|
918
|
+
}
|
|
919
|
+
let R = null;
|
|
920
|
+
async function Te(r) {
|
|
921
|
+
if (r === "default")
|
|
922
|
+
return R = null, null;
|
|
923
|
+
try {
|
|
924
|
+
const e = await Ee(r);
|
|
925
|
+
return R = e, e;
|
|
926
|
+
} catch (e) {
|
|
927
|
+
return console.warn(`Failed to load theme "${r}":`, e), R = null, null;
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
function A(r, e) {
|
|
931
|
+
return e ? { ...r, ...e } : r;
|
|
932
|
+
}
|
|
933
|
+
function w(r, e) {
|
|
934
|
+
return e ? { ...r, ...e } : r;
|
|
935
|
+
}
|
|
936
|
+
function me(r) {
|
|
937
|
+
const e = R, s = A(ge, e == null ? void 0 : e.primaryColors), t = A(he, e == null ? void 0 : e.accentColors), n = A(xe, e == null ? void 0 : e.secondaryColors), o = {
|
|
938
|
+
day: w(q.day, e == null ? void 0 : e.baseColorsDay),
|
|
939
|
+
night: w(q.night, e == null ? void 0 : e.baseColorsNight)
|
|
940
|
+
}, m = {
|
|
941
|
+
day: w(V.day, e == null ? void 0 : e.surfaceColorsDay),
|
|
942
|
+
night: w(V.night, e == null ? void 0 : e.surfaceColorsNight)
|
|
943
|
+
}, i = {
|
|
944
|
+
day: w(Q.day, e == null ? void 0 : e.semanticColorsDay),
|
|
945
|
+
night: w(Q.night, e == null ? void 0 : e.semanticColorsNight)
|
|
946
|
+
}, a = {
|
|
947
|
+
day: w(G.day, e == null ? void 0 : e.textColorsDay),
|
|
948
|
+
night: w(G.night, e == null ? void 0 : e.textColorsNight)
|
|
949
|
+
}, c = {
|
|
950
|
+
day: J.day,
|
|
951
|
+
night: J.night
|
|
952
|
+
};
|
|
953
|
+
return {
|
|
954
|
+
primaryColors: s,
|
|
955
|
+
accentColors: t,
|
|
956
|
+
secondaryColors: n,
|
|
957
|
+
baseColors: o,
|
|
958
|
+
surfaceColors: m,
|
|
959
|
+
semanticColors: i,
|
|
960
|
+
textColors: a,
|
|
961
|
+
chartColors: c
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
function ke(r) {
|
|
965
|
+
if (typeof document > "u") return;
|
|
966
|
+
const e = document.documentElement, s = me(), {
|
|
967
|
+
primaryColors: t,
|
|
968
|
+
accentColors: n,
|
|
969
|
+
secondaryColors: o,
|
|
970
|
+
baseColors: m,
|
|
971
|
+
surfaceColors: i,
|
|
972
|
+
semanticColors: a,
|
|
973
|
+
textColors: c,
|
|
974
|
+
chartColors: x
|
|
975
|
+
} = s, d = m[r];
|
|
976
|
+
e.style.setProperty("--background", d.background), e.style.setProperty("--foreground", d.foreground), e.style.setProperty("--card", d.card), e.style.setProperty("--card-foreground", d.cardForeground), e.style.setProperty("--popover", d.popover), e.style.setProperty("--popover-foreground", d.popoverForeground), e.style.setProperty("--border", d.border), e.style.setProperty("--input", d.input), e.style.setProperty("--ring", d.ring);
|
|
977
|
+
const h = i[r];
|
|
978
|
+
e.style.setProperty("--surface-base", h.base), e.style.setProperty("--surface-elevated1", h.elevated1), e.style.setProperty("--surface-elevated2", h.elevated2), e.style.setProperty("--surface-elevated3", h.elevated3), e.style.setProperty("--surface-overlay", h.overlay), e.style.setProperty("--surface-glass", h.glass);
|
|
979
|
+
const y = a[r];
|
|
980
|
+
e.style.setProperty("--semantic-success", y.success), e.style.setProperty("--semantic-success-foreground", y.successForeground), e.style.setProperty("--semantic-error", y.error), e.style.setProperty("--semantic-error-foreground", y.errorForeground), e.style.setProperty("--semantic-warning", y.warning), e.style.setProperty("--semantic-warning-foreground", y.warningForeground), e.style.setProperty("--semantic-info", y.info), e.style.setProperty("--semantic-info-foreground", y.infoForeground);
|
|
981
|
+
const b = c[r];
|
|
982
|
+
e.style.setProperty("--text-primary", b.primary), e.style.setProperty("--text-secondary", b.secondary), e.style.setProperty("--text-tertiary", b.tertiary), e.style.setProperty("--text-muted", b.muted), e.style.setProperty("--text-inverse", b.inverse);
|
|
983
|
+
const g = x[r];
|
|
984
|
+
e.style.setProperty("--chart-1", g.chart1), e.style.setProperty("--chart-2", g.chart2), e.style.setProperty("--chart-3", g.chart3), e.style.setProperty("--chart-4", g.chart4), e.style.setProperty("--chart-5", g.chart5), e.style.setProperty("--primary-50", t[50]), e.style.setProperty("--primary-100", t[100]), e.style.setProperty("--primary-200", t[200]), e.style.setProperty("--primary-300", t[300]), e.style.setProperty("--primary-400", t[400]), e.style.setProperty("--primary-500", t[500]), e.style.setProperty("--primary-600", t[600]), e.style.setProperty("--primary-700", t[700]), e.style.setProperty("--primary-800", t[800]), e.style.setProperty("--primary-900", t[900]), e.style.setProperty("--primary-950", t[950]), e.style.setProperty("--accent-50", n[50]), e.style.setProperty("--accent-100", n[100]), e.style.setProperty("--accent-200", n[200]), e.style.setProperty("--accent-300", n[300]), e.style.setProperty("--accent-400", n[400]), e.style.setProperty("--accent-500", n[500]), e.style.setProperty("--accent-600", n[600]), e.style.setProperty("--accent-700", n[700]), e.style.setProperty("--accent-800", n[800]), e.style.setProperty("--accent-900", n[900]), e.style.setProperty("--accent-950", n[950]), e.style.setProperty("--secondary-50", o[50]), e.style.setProperty("--secondary-100", o[100]), e.style.setProperty("--secondary-200", o[200]), e.style.setProperty("--secondary-300", o[300]), e.style.setProperty("--secondary-400", o[400]), e.style.setProperty("--secondary-500", o[500]), e.style.setProperty("--secondary-600", o[600]), e.style.setProperty("--secondary-700", o[700]), e.style.setProperty("--secondary-800", o[800]), e.style.setProperty("--secondary-900", o[900]), e.style.setProperty("--secondary-950", o[950]), r === "day" ? (e.style.setProperty("--tm-primary", o[500]), e.style.setProperty("--tm-primary-foreground", "0 0% 100%"), e.style.setProperty("--tm-secondary", "0 0% 95.7%"), e.style.setProperty("--tm-secondary-foreground", "0 0% 6.7%"), e.style.setProperty("--tm-accent", "0 0% 89.8%"), e.style.setProperty("--tm-accent-foreground", "0 0% 6.7%")) : (e.style.setProperty("--tm-primary", n[600]), e.style.setProperty("--tm-primary-foreground", "0 0% 100%"), e.style.setProperty("--tm-secondary", "240 10% 7%"), e.style.setProperty("--tm-secondary-foreground", "0 0% 89.8%"), e.style.setProperty("--tm-accent", "240 10% 10%"), e.style.setProperty("--tm-accent-foreground", "0 0% 89.8%")), e.style.setProperty("--muted", d.card), e.style.setProperty("--muted-foreground", d.cardForeground), e.style.setProperty("--destructive", y.error), e.style.setProperty("--destructive-foreground", y.errorForeground), Object.entries(fe).forEach(([T, k]) => {
|
|
985
|
+
e.style.setProperty(T, k);
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
async function $(r, e = "default", s = null) {
|
|
989
|
+
if (typeof document > "u") return;
|
|
990
|
+
await Te(e);
|
|
991
|
+
const t = se();
|
|
992
|
+
if (t && (!s || t.id !== s) && ie(t.namespace), s)
|
|
993
|
+
try {
|
|
994
|
+
const c = await ne(s);
|
|
995
|
+
ae(c, r);
|
|
996
|
+
} catch (c) {
|
|
997
|
+
console.warn(`Failed to apply brand "${s}":`, c);
|
|
998
|
+
}
|
|
999
|
+
const { documentElement: n, body: o } = document;
|
|
1000
|
+
n.setAttribute(le, r), n.setAttribute(ce, r), n.setAttribute(I, e), r === "night" ? n.classList.add(Y) : n.classList.remove(Y), ke(r);
|
|
1001
|
+
const m = me(), { background: i, foreground: a } = m.baseColors[r];
|
|
1002
|
+
o && (o.dataset.mode = r, o.dataset.theme = e, s ? o.dataset.brand = s : o.removeAttribute("data-brand"), o.style.backgroundColor = `hsl(${i})`, o.style.color = `hsl(${a})`);
|
|
1003
|
+
}
|
|
1004
|
+
async function He(r) {
|
|
1005
|
+
if (typeof document < "u") {
|
|
1006
|
+
const e = document.documentElement, s = e.getAttribute(I) || "default", t = e.getAttribute("data-brand") || null;
|
|
1007
|
+
await $(r, s, t);
|
|
1008
|
+
} else
|
|
1009
|
+
await $(r, "default", null);
|
|
1010
|
+
}
|
|
1011
|
+
function Z(r = "default", e = "tm_theme") {
|
|
1012
|
+
if (typeof window > "u") return r;
|
|
1013
|
+
const t = document.documentElement.getAttribute(I);
|
|
1014
|
+
if (t === "default" || t === "dark" || t === "brand")
|
|
1015
|
+
return t;
|
|
1016
|
+
try {
|
|
1017
|
+
const n = localStorage.getItem(e);
|
|
1018
|
+
if (n === "default" || n === "dark" || n === "brand")
|
|
1019
|
+
return n;
|
|
1020
|
+
} catch {
|
|
55
1021
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
},
|
|
83
|
-
destructive: {
|
|
84
|
-
DEFAULT: "hsl(var(--destructive))",
|
|
85
|
-
foreground: "hsl(var(--destructive-foreground))"
|
|
86
|
-
},
|
|
87
|
-
border: "hsl(var(--border))",
|
|
88
|
-
input: "hsl(var(--input))",
|
|
89
|
-
ring: "hsl(var(--ring))",
|
|
90
|
-
chart: {
|
|
91
|
-
1: "hsl(var(--chart-1))",
|
|
92
|
-
2: "hsl(var(--chart-2))",
|
|
93
|
-
3: "hsl(var(--chart-3))",
|
|
94
|
-
4: "hsl(var(--chart-4))",
|
|
95
|
-
5: "hsl(var(--chart-5))"
|
|
1022
|
+
return r;
|
|
1023
|
+
}
|
|
1024
|
+
function K(r, e = "tm_mode") {
|
|
1025
|
+
if (!(typeof window > "u"))
|
|
1026
|
+
try {
|
|
1027
|
+
localStorage.setItem(e, r), localStorage.setItem("theme", r === "night" ? "dark" : "light");
|
|
1028
|
+
} catch {
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
function ee(r, e = "tm_theme") {
|
|
1032
|
+
if (!(typeof window > "u"))
|
|
1033
|
+
try {
|
|
1034
|
+
localStorage.setItem(e, r);
|
|
1035
|
+
} catch {
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
function re(r = null, e = "tm_brand") {
|
|
1039
|
+
if (typeof window > "u") return r;
|
|
1040
|
+
const t = document.documentElement.getAttribute("data-brand");
|
|
1041
|
+
if (t)
|
|
1042
|
+
return t;
|
|
1043
|
+
try {
|
|
1044
|
+
const n = localStorage.getItem(e);
|
|
1045
|
+
if (n)
|
|
1046
|
+
return n;
|
|
1047
|
+
} catch {
|
|
96
1048
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
1049
|
+
return r;
|
|
1050
|
+
}
|
|
1051
|
+
function te(r, e = "tm_brand") {
|
|
1052
|
+
if (!(typeof window > "u"))
|
|
1053
|
+
try {
|
|
1054
|
+
r ? localStorage.setItem(e, r) : localStorage.removeItem(e);
|
|
1055
|
+
} catch {
|
|
1056
|
+
}
|
|
100
1057
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
1058
|
+
const S = /* @__PURE__ */ new Map();
|
|
1059
|
+
function D(r) {
|
|
1060
|
+
S.set(r.metadata.id, r);
|
|
104
1061
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
1062
|
+
function _e(r) {
|
|
1063
|
+
var e;
|
|
1064
|
+
return (e = S.get(r)) == null ? void 0 : e.metadata;
|
|
107
1065
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
1066
|
+
function de() {
|
|
1067
|
+
return Array.from(S.values()).filter((r) => r.enabled !== !1).map((r) => r.metadata);
|
|
110
1068
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
1069
|
+
function Ne(r) {
|
|
1070
|
+
return de().filter((e) => e.category === r);
|
|
113
1071
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
1072
|
+
function C(r) {
|
|
1073
|
+
return S.has(r);
|
|
1074
|
+
}
|
|
1075
|
+
async function je(r) {
|
|
1076
|
+
const e = S.get(r);
|
|
1077
|
+
if (!e)
|
|
117
1078
|
throw new Error(`Theme "${r}" not found in registry`);
|
|
118
|
-
if (
|
|
1079
|
+
if (e.enabled === !1)
|
|
119
1080
|
throw new Error(`Theme "${r}" is disabled`);
|
|
120
1081
|
try {
|
|
121
|
-
return (await
|
|
122
|
-
} catch (
|
|
1082
|
+
return (await e.loader()).default;
|
|
1083
|
+
} catch (s) {
|
|
123
1084
|
throw new Error(
|
|
124
|
-
`Failed to load theme "${r}": ${
|
|
1085
|
+
`Failed to load theme "${r}": ${s instanceof Error ? s.message : String(s)}`
|
|
125
1086
|
);
|
|
126
1087
|
}
|
|
127
1088
|
}
|
|
128
|
-
function
|
|
129
|
-
|
|
1089
|
+
function Re() {
|
|
1090
|
+
D({
|
|
130
1091
|
metadata: {
|
|
131
1092
|
id: "default",
|
|
132
1093
|
name: "Default",
|
|
@@ -136,7 +1097,7 @@ function v() {
|
|
|
136
1097
|
},
|
|
137
1098
|
loader: async () => ({ default: { ...(await import("../default-BKgH1D9-.js")).defaultTheme, id: "default", name: "Default" } }),
|
|
138
1099
|
enabled: !0
|
|
139
|
-
}),
|
|
1100
|
+
}), D({
|
|
140
1101
|
metadata: {
|
|
141
1102
|
id: "dark",
|
|
142
1103
|
name: "Dark",
|
|
@@ -146,7 +1107,7 @@ function v() {
|
|
|
146
1107
|
},
|
|
147
1108
|
loader: async () => ({ default: { ...(await import("../dark-Cvoy1uFT.js")).darkTheme, id: "dark", name: "Dark" } }),
|
|
148
1109
|
enabled: !0
|
|
149
|
-
}),
|
|
1110
|
+
}), D({
|
|
150
1111
|
metadata: {
|
|
151
1112
|
id: "brand",
|
|
152
1113
|
name: "Brand",
|
|
@@ -158,31 +1119,31 @@ function v() {
|
|
|
158
1119
|
enabled: !0
|
|
159
1120
|
});
|
|
160
1121
|
}
|
|
161
|
-
|
|
162
|
-
const
|
|
163
|
-
function
|
|
164
|
-
const
|
|
1122
|
+
Re();
|
|
1123
|
+
const Be = ["id", "name"];
|
|
1124
|
+
function pe(r) {
|
|
1125
|
+
const e = [], s = [];
|
|
165
1126
|
if (!r || typeof r != "object")
|
|
166
1127
|
return {
|
|
167
1128
|
valid: !1,
|
|
168
1129
|
errors: ["Theme must be an object"],
|
|
169
1130
|
warnings: []
|
|
170
1131
|
};
|
|
171
|
-
const
|
|
172
|
-
for (const
|
|
173
|
-
(!(
|
|
174
|
-
if (
|
|
175
|
-
`Invalid theme ID format: "${
|
|
176
|
-
)),
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
`Invalid category: "${
|
|
1132
|
+
const t = r;
|
|
1133
|
+
for (const o of Be)
|
|
1134
|
+
(!(o in t) || !t[o]) && e.push(`Missing required field: ${o}`);
|
|
1135
|
+
if (t.id && typeof t.id == "string" && (/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t.id) || e.push(
|
|
1136
|
+
`Invalid theme ID format: "${t.id}". Must be kebab-case (e.g., "ocean-blue")`
|
|
1137
|
+
)), t.name && typeof t.name != "string" && e.push("Theme name must be a string"), t.category) {
|
|
1138
|
+
const o = ["default", "brand", "seasonal", "custom"];
|
|
1139
|
+
o.includes(t.category) || e.push(
|
|
1140
|
+
`Invalid category: "${t.category}". Must be one of: ${o.join(", ")}`
|
|
180
1141
|
);
|
|
181
1142
|
}
|
|
182
1143
|
const n = ["primaryColors", "accentColors", "secondaryColors"];
|
|
183
|
-
for (const
|
|
184
|
-
if (o
|
|
185
|
-
const m = o
|
|
1144
|
+
for (const o of n)
|
|
1145
|
+
if (t[o]) {
|
|
1146
|
+
const m = t[o], i = [
|
|
186
1147
|
"50",
|
|
187
1148
|
"100",
|
|
188
1149
|
"200",
|
|
@@ -195,95 +1156,95 @@ function f(r) {
|
|
|
195
1156
|
"900",
|
|
196
1157
|
"950"
|
|
197
1158
|
];
|
|
198
|
-
for (const
|
|
199
|
-
|
|
200
|
-
`Invalid color scale key in ${
|
|
201
|
-
), typeof m[
|
|
1159
|
+
for (const a of Object.keys(m))
|
|
1160
|
+
i.includes(a) || s.push(
|
|
1161
|
+
`Invalid color scale key in ${o}: ${a}. Valid keys: ${i.join(", ")}`
|
|
1162
|
+
), typeof m[a] != "string" && e.push(`Color value in ${o}.${a} must be a string (HSL format)`);
|
|
202
1163
|
}
|
|
203
|
-
return
|
|
204
|
-
`Invalid version format: "${
|
|
1164
|
+
return t.version && typeof t.version == "string" && (/^\d+\.\d+\.\d+$/.test(t.version) || s.push(
|
|
1165
|
+
`Invalid version format: "${t.version}". Should be semver (e.g., "1.0.0")`
|
|
205
1166
|
)), {
|
|
206
|
-
valid:
|
|
207
|
-
errors:
|
|
208
|
-
warnings:
|
|
1167
|
+
valid: e.length === 0,
|
|
1168
|
+
errors: e,
|
|
1169
|
+
warnings: s
|
|
209
1170
|
};
|
|
210
1171
|
}
|
|
211
|
-
function
|
|
212
|
-
return
|
|
1172
|
+
function ze(r) {
|
|
1173
|
+
return pe(r).valid;
|
|
213
1174
|
}
|
|
214
|
-
function
|
|
1175
|
+
function Le(r, e) {
|
|
215
1176
|
return {
|
|
216
1177
|
id: r,
|
|
217
|
-
name:
|
|
218
|
-
description: `Custom theme: ${
|
|
1178
|
+
name: e,
|
|
1179
|
+
description: `Custom theme: ${e}`,
|
|
219
1180
|
category: "custom",
|
|
220
1181
|
version: "1.0.0"
|
|
221
1182
|
};
|
|
222
1183
|
}
|
|
223
|
-
const
|
|
1184
|
+
const Ae = {
|
|
224
1185
|
fallbackThemeId: "default",
|
|
225
1186
|
validate: !0,
|
|
226
1187
|
throwOnError: !1
|
|
227
1188
|
};
|
|
228
|
-
async function
|
|
229
|
-
const
|
|
230
|
-
if (!
|
|
231
|
-
if (
|
|
1189
|
+
async function E(r, e = {}) {
|
|
1190
|
+
const s = { ...Ae, ...e }, t = [];
|
|
1191
|
+
if (!C(r)) {
|
|
1192
|
+
if (s.throwOnError)
|
|
232
1193
|
throw new Error(`Theme "${r}" not found`);
|
|
233
|
-
if (
|
|
234
|
-
return
|
|
1194
|
+
if (s.fallbackThemeId && C(s.fallbackThemeId))
|
|
1195
|
+
return t.push(`Theme "${r}" not found, using fallback "${s.fallbackThemeId}"`), E(s.fallbackThemeId, { ...s, throwOnError: !1 });
|
|
235
1196
|
throw new Error(`Theme "${r}" not found and no fallback available`);
|
|
236
1197
|
}
|
|
237
1198
|
try {
|
|
238
|
-
const n = await
|
|
239
|
-
if (
|
|
240
|
-
const
|
|
241
|
-
if (!
|
|
242
|
-
if (
|
|
243
|
-
throw new Error(`Theme "${r}" validation failed: ${
|
|
244
|
-
if (
|
|
245
|
-
return
|
|
246
|
-
`Theme "${r}" validation failed: ${
|
|
247
|
-
),
|
|
248
|
-
throw new Error(`Theme "${r}" validation failed: ${
|
|
1199
|
+
const n = await je(r);
|
|
1200
|
+
if (s.validate) {
|
|
1201
|
+
const o = pe(n);
|
|
1202
|
+
if (!o.valid) {
|
|
1203
|
+
if (s.throwOnError)
|
|
1204
|
+
throw new Error(`Theme "${r}" validation failed: ${o.errors.join(", ")}`);
|
|
1205
|
+
if (s.fallbackThemeId && C(s.fallbackThemeId))
|
|
1206
|
+
return t.push(
|
|
1207
|
+
`Theme "${r}" validation failed: ${o.errors.join(", ")}. Using fallback "${s.fallbackThemeId}"`
|
|
1208
|
+
), E(s.fallbackThemeId, { ...s, throwOnError: !1 });
|
|
1209
|
+
throw new Error(`Theme "${r}" validation failed: ${o.errors.join(", ")}`);
|
|
249
1210
|
}
|
|
250
|
-
|
|
1211
|
+
t.push(...o.warnings);
|
|
251
1212
|
}
|
|
252
1213
|
return {
|
|
253
1214
|
theme: n,
|
|
254
1215
|
usedFallback: !1,
|
|
255
|
-
warnings:
|
|
1216
|
+
warnings: t
|
|
256
1217
|
};
|
|
257
1218
|
} catch (n) {
|
|
258
|
-
if (
|
|
1219
|
+
if (s.throwOnError)
|
|
259
1220
|
throw n;
|
|
260
|
-
if (
|
|
261
|
-
return
|
|
262
|
-
`Failed to load theme "${r}": ${n instanceof Error ? n.message : String(n)}. Using fallback "${
|
|
263
|
-
),
|
|
1221
|
+
if (s.fallbackThemeId && C(s.fallbackThemeId) && s.fallbackThemeId !== r)
|
|
1222
|
+
return t.push(
|
|
1223
|
+
`Failed to load theme "${r}": ${n instanceof Error ? n.message : String(n)}. Using fallback "${s.fallbackThemeId}"`
|
|
1224
|
+
), E(s.fallbackThemeId, { ...s, throwOnError: !1 });
|
|
264
1225
|
throw n;
|
|
265
1226
|
}
|
|
266
1227
|
}
|
|
267
|
-
async function
|
|
268
|
-
const
|
|
269
|
-
(
|
|
1228
|
+
async function Ue(r) {
|
|
1229
|
+
const e = r.map(
|
|
1230
|
+
(s) => E(s, { validate: !1, throwOnError: !1 }).catch(() => {
|
|
270
1231
|
})
|
|
271
1232
|
);
|
|
272
|
-
await Promise.all(
|
|
1233
|
+
await Promise.all(e);
|
|
273
1234
|
}
|
|
274
|
-
function
|
|
275
|
-
return
|
|
1235
|
+
function We() {
|
|
1236
|
+
return de().map((r) => r.id);
|
|
276
1237
|
}
|
|
277
|
-
async function
|
|
278
|
-
if (!
|
|
1238
|
+
async function qe(r) {
|
|
1239
|
+
if (!C(r))
|
|
279
1240
|
return !1;
|
|
280
1241
|
try {
|
|
281
|
-
return await
|
|
1242
|
+
return await E(r, { validate: !1, throwOnError: !0 }), !0;
|
|
282
1243
|
} catch {
|
|
283
1244
|
return !1;
|
|
284
1245
|
}
|
|
285
1246
|
}
|
|
286
|
-
const
|
|
1247
|
+
const Ve = {
|
|
287
1248
|
none: "0",
|
|
288
1249
|
xs: "0.25rem",
|
|
289
1250
|
// 4px
|
|
@@ -303,7 +1264,7 @@ const D = {
|
|
|
303
1264
|
// 64px
|
|
304
1265
|
"5xl": "5rem"
|
|
305
1266
|
// 80px
|
|
306
|
-
},
|
|
1267
|
+
}, Qe = {
|
|
307
1268
|
none: "0px",
|
|
308
1269
|
sm: "0.125rem",
|
|
309
1270
|
// 2px
|
|
@@ -320,7 +1281,7 @@ const D = {
|
|
|
320
1281
|
"3xl": "1.5rem",
|
|
321
1282
|
// 24px
|
|
322
1283
|
full: "9999px"
|
|
323
|
-
},
|
|
1284
|
+
}, Ge = {
|
|
324
1285
|
none: "none",
|
|
325
1286
|
sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
326
1287
|
base: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
@@ -329,7 +1290,174 @@ const D = {
|
|
|
329
1290
|
xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
|
|
330
1291
|
"2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
|
|
331
1292
|
inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
|
|
332
|
-
},
|
|
1293
|
+
}, ye = p.createContext(void 0);
|
|
1294
|
+
function De(r) {
|
|
1295
|
+
if (r !== void 0) return r;
|
|
1296
|
+
if (typeof window > "u") return !1;
|
|
1297
|
+
try {
|
|
1298
|
+
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
1299
|
+
} catch {
|
|
1300
|
+
return !1;
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
function Je({
|
|
1304
|
+
children: r,
|
|
1305
|
+
defaultMode: e = "day",
|
|
1306
|
+
defaultTheme: s = "default",
|
|
1307
|
+
defaultBrand: t = null,
|
|
1308
|
+
storageKey: n = "tm_mode",
|
|
1309
|
+
themeStorageKey: o = "tm_theme",
|
|
1310
|
+
brandStorageKey: m = "tm_brand",
|
|
1311
|
+
attribute: i = "data-mode",
|
|
1312
|
+
enableSystem: a = !0,
|
|
1313
|
+
reduceMotion: c,
|
|
1314
|
+
enableAnimations: x = !0
|
|
1315
|
+
}) {
|
|
1316
|
+
p.useEffect(() => {
|
|
1317
|
+
try {
|
|
1318
|
+
X($e);
|
|
1319
|
+
} catch (l) {
|
|
1320
|
+
console.warn("Failed to register neon brand:", l);
|
|
1321
|
+
}
|
|
1322
|
+
try {
|
|
1323
|
+
X(we);
|
|
1324
|
+
} catch (l) {
|
|
1325
|
+
console.warn("Failed to register minimal brand:", l);
|
|
1326
|
+
}
|
|
1327
|
+
}, []);
|
|
1328
|
+
const [d, h] = p.useState(() => {
|
|
1329
|
+
if (typeof window > "u") return e;
|
|
1330
|
+
const u = document.documentElement.getAttribute(i);
|
|
1331
|
+
if (u === "day" || u === "night")
|
|
1332
|
+
return u;
|
|
1333
|
+
try {
|
|
1334
|
+
const f = localStorage.getItem(n);
|
|
1335
|
+
if (f === "day" || f === "night")
|
|
1336
|
+
return f;
|
|
1337
|
+
} catch {
|
|
1338
|
+
}
|
|
1339
|
+
return a && typeof window < "u" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "night" : "day" : e;
|
|
1340
|
+
}), [y, b] = p.useState(() => typeof window > "u" ? s : Z(s, o)), [g, T] = p.useState(() => typeof window > "u" ? t : re(t, m)), [k, B] = p.useState(() => De(c)), [H, _] = p.useState(() => x), P = p.useCallback(
|
|
1341
|
+
(l) => {
|
|
1342
|
+
h(l), $(l, y, g), K(l, n);
|
|
1343
|
+
},
|
|
1344
|
+
[y, g, n]
|
|
1345
|
+
), N = p.useCallback(
|
|
1346
|
+
async (l) => {
|
|
1347
|
+
b(l), await $(d, l, g), ee(l, o);
|
|
1348
|
+
},
|
|
1349
|
+
[d, g, o]
|
|
1350
|
+
), z = p.useCallback(
|
|
1351
|
+
async (l) => {
|
|
1352
|
+
const u = se();
|
|
1353
|
+
if (u && ie(u.namespace), T(l), te(l, m), l)
|
|
1354
|
+
try {
|
|
1355
|
+
const f = await ne(l);
|
|
1356
|
+
ae(f, d);
|
|
1357
|
+
} catch (f) {
|
|
1358
|
+
console.error(`Failed to load brand "${l}":`, f), O(null);
|
|
1359
|
+
}
|
|
1360
|
+
else
|
|
1361
|
+
O(null);
|
|
1362
|
+
await $(d, y, l);
|
|
1363
|
+
},
|
|
1364
|
+
[d, y, m]
|
|
1365
|
+
), L = p.useCallback(() => {
|
|
1366
|
+
P(d === "night" ? "day" : "night");
|
|
1367
|
+
}, [d, P]), U = p.useCallback((l) => {
|
|
1368
|
+
B(l);
|
|
1369
|
+
try {
|
|
1370
|
+
localStorage.setItem("tm_reduce_motion", l ? "true" : "false");
|
|
1371
|
+
} catch {
|
|
1372
|
+
}
|
|
1373
|
+
}, []), W = p.useCallback((l) => {
|
|
1374
|
+
_(l);
|
|
1375
|
+
try {
|
|
1376
|
+
localStorage.setItem("tm_enable_animations", l ? "true" : "false");
|
|
1377
|
+
} catch {
|
|
1378
|
+
}
|
|
1379
|
+
}, []);
|
|
1380
|
+
p.useEffect(() => {
|
|
1381
|
+
if (c !== void 0) return;
|
|
1382
|
+
const l = window.matchMedia("(prefers-reduced-motion: reduce)"), u = (f) => {
|
|
1383
|
+
B(f.matches);
|
|
1384
|
+
};
|
|
1385
|
+
return l.addEventListener("change", u), () => l.removeEventListener("change", u);
|
|
1386
|
+
}, [c]), p.useEffect(() => {
|
|
1387
|
+
if (c === void 0)
|
|
1388
|
+
try {
|
|
1389
|
+
const l = localStorage.getItem("tm_reduce_motion");
|
|
1390
|
+
(l === "true" || l === "false") && B(l === "true");
|
|
1391
|
+
} catch {
|
|
1392
|
+
}
|
|
1393
|
+
if (x === void 0)
|
|
1394
|
+
try {
|
|
1395
|
+
const l = localStorage.getItem("tm_enable_animations");
|
|
1396
|
+
(l === "true" || l === "false") && _(l === "true");
|
|
1397
|
+
} catch {
|
|
1398
|
+
}
|
|
1399
|
+
}, [c, x]), p.useEffect(() => {
|
|
1400
|
+
const l = Se(e, n, a), u = Z(s, o), f = re(t, m);
|
|
1401
|
+
h(l), b(u), T(f), $(l, u, f), K(l, n), ee(u, o), te(f, m);
|
|
1402
|
+
}, [
|
|
1403
|
+
e,
|
|
1404
|
+
s,
|
|
1405
|
+
t,
|
|
1406
|
+
n,
|
|
1407
|
+
o,
|
|
1408
|
+
m,
|
|
1409
|
+
a
|
|
1410
|
+
]), p.useEffect(() => {
|
|
1411
|
+
if (!a) return;
|
|
1412
|
+
const l = window.matchMedia("(prefers-color-scheme: dark)"), u = (f) => {
|
|
1413
|
+
try {
|
|
1414
|
+
localStorage.getItem(n) || P(f.matches ? "night" : "day");
|
|
1415
|
+
} catch {
|
|
1416
|
+
}
|
|
1417
|
+
};
|
|
1418
|
+
return l.addEventListener("change", u), () => l.removeEventListener("change", u);
|
|
1419
|
+
}, [a, n, P]), p.useEffect(() => {
|
|
1420
|
+
$(d, y, g);
|
|
1421
|
+
}, [d, y, g]);
|
|
1422
|
+
const ue = p.useMemo(
|
|
1423
|
+
() => ({
|
|
1424
|
+
mode: d,
|
|
1425
|
+
theme: y,
|
|
1426
|
+
brand: g,
|
|
1427
|
+
reduceMotion: c !== void 0 ? c : k,
|
|
1428
|
+
enableAnimations: x !== void 0 ? x : H,
|
|
1429
|
+
setMode: P,
|
|
1430
|
+
setTheme: N,
|
|
1431
|
+
setBrand: z,
|
|
1432
|
+
toggleMode: L,
|
|
1433
|
+
setReduceMotion: U,
|
|
1434
|
+
setEnableAnimations: W
|
|
1435
|
+
}),
|
|
1436
|
+
[
|
|
1437
|
+
d,
|
|
1438
|
+
y,
|
|
1439
|
+
g,
|
|
1440
|
+
k,
|
|
1441
|
+
H,
|
|
1442
|
+
c,
|
|
1443
|
+
x,
|
|
1444
|
+
P,
|
|
1445
|
+
N,
|
|
1446
|
+
z,
|
|
1447
|
+
L,
|
|
1448
|
+
U,
|
|
1449
|
+
W
|
|
1450
|
+
]
|
|
1451
|
+
);
|
|
1452
|
+
return /* @__PURE__ */ be(ye.Provider, { value: ue, children: r });
|
|
1453
|
+
}
|
|
1454
|
+
function Xe() {
|
|
1455
|
+
const r = p.useContext(ye);
|
|
1456
|
+
if (r === void 0)
|
|
1457
|
+
throw new Error("useTheme must be used within a ThemeProvider");
|
|
1458
|
+
return r;
|
|
1459
|
+
}
|
|
1460
|
+
const Ye = {
|
|
333
1461
|
sans: [
|
|
334
1462
|
"ui-sans-serif",
|
|
335
1463
|
"system-ui",
|
|
@@ -357,7 +1485,7 @@ const D = {
|
|
|
357
1485
|
"Courier New",
|
|
358
1486
|
"monospace"
|
|
359
1487
|
].join(", ")
|
|
360
|
-
},
|
|
1488
|
+
}, Ze = {
|
|
361
1489
|
xs: "0.75rem",
|
|
362
1490
|
// 12px
|
|
363
1491
|
sm: "0.875rem",
|
|
@@ -378,7 +1506,7 @@ const D = {
|
|
|
378
1506
|
// 48px
|
|
379
1507
|
"6xl": "3.75rem"
|
|
380
1508
|
// 60px
|
|
381
|
-
},
|
|
1509
|
+
}, Ke = {
|
|
382
1510
|
thin: "100",
|
|
383
1511
|
extralight: "200",
|
|
384
1512
|
light: "300",
|
|
@@ -388,14 +1516,14 @@ const D = {
|
|
|
388
1516
|
bold: "700",
|
|
389
1517
|
extrabold: "800",
|
|
390
1518
|
black: "900"
|
|
391
|
-
},
|
|
1519
|
+
}, er = {
|
|
392
1520
|
none: "1",
|
|
393
1521
|
tight: "1.25",
|
|
394
1522
|
snug: "1.375",
|
|
395
1523
|
normal: "1.5",
|
|
396
1524
|
relaxed: "1.625",
|
|
397
1525
|
loose: "2"
|
|
398
|
-
},
|
|
1526
|
+
}, rr = {
|
|
399
1527
|
tighter: "-0.05em",
|
|
400
1528
|
tight: "-0.025em",
|
|
401
1529
|
normal: "0em",
|
|
@@ -404,40 +1532,40 @@ const D = {
|
|
|
404
1532
|
widest: "0.1em"
|
|
405
1533
|
};
|
|
406
1534
|
export {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
1535
|
+
Je as ThemeProvider,
|
|
1536
|
+
He as applyDocumentMode,
|
|
1537
|
+
$ as applyDocumentTheme,
|
|
1538
|
+
Qe as borderRadius,
|
|
1539
|
+
qe as canLoadTheme,
|
|
1540
|
+
Le as createMinimalThemeSchema,
|
|
1541
|
+
nr as cssVariableColorTokens,
|
|
1542
|
+
Ye as fontFamilies,
|
|
1543
|
+
Ze as fontSizes,
|
|
1544
|
+
Ke as fontWeights,
|
|
1545
|
+
de as getAllThemes,
|
|
1546
|
+
We as getAvailableThemeIds,
|
|
1547
|
+
re as getInitialBrand,
|
|
1548
|
+
Se as getInitialMode,
|
|
1549
|
+
Z as getInitialTheme,
|
|
1550
|
+
_e as getThemeMetadata,
|
|
1551
|
+
Ne as getThemesByCategory,
|
|
1552
|
+
Re as initializeDefaultThemes,
|
|
1553
|
+
ze as isThemeSchema,
|
|
1554
|
+
rr as letterSpacings,
|
|
1555
|
+
er as lineHeights,
|
|
1556
|
+
je as loadTheme,
|
|
1557
|
+
Te as loadThemeOverride,
|
|
1558
|
+
E as loadThemeSafe,
|
|
1559
|
+
te as persistBrand,
|
|
1560
|
+
K as persistMode,
|
|
1561
|
+
ee as persistTheme,
|
|
1562
|
+
Ue as preloadThemes,
|
|
1563
|
+
D as registerTheme,
|
|
1564
|
+
Ge as shadows,
|
|
1565
|
+
Ve as spacing,
|
|
1566
|
+
sr as tailwindThemeColors,
|
|
1567
|
+
C as themeExists,
|
|
1568
|
+
S as themeRegistry,
|
|
1569
|
+
Xe as useTheme,
|
|
1570
|
+
pe as validateThemeSchema
|
|
443
1571
|
};
|