@gv-tech/design-system 2.20.0 → 2.21.1
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/accordion.cjs +2 -2
- package/dist/accordion.cjs.map +1 -1
- package/dist/accordion.d.ts +2 -34
- package/dist/accordion.mjs +35 -38
- package/dist/accordion.mjs.map +1 -1
- package/dist/alert-dialog.cjs +2 -2
- package/dist/alert-dialog.cjs.map +1 -1
- package/dist/alert-dialog.d.ts +2 -74
- package/dist/alert-dialog.mjs +55 -69
- package/dist/alert-dialog.mjs.map +1 -1
- package/dist/alert.cjs +2 -2
- package/dist/alert.cjs.map +1 -1
- package/dist/alert.d.ts +2 -29
- package/dist/alert.mjs +36 -32
- package/dist/alert.mjs.map +1 -1
- package/dist/aspect-ratio.cjs +2 -2
- package/dist/aspect-ratio.cjs.map +1 -1
- package/dist/aspect-ratio.d.ts +2 -14
- package/dist/aspect-ratio.mjs +8 -6
- package/dist/aspect-ratio.mjs.map +1 -1
- package/dist/avatar.cjs +2 -2
- package/dist/avatar.cjs.map +1 -1
- package/dist/avatar.d.ts +2 -26
- package/dist/avatar.mjs +27 -29
- package/dist/avatar.mjs.map +1 -1
- package/dist/badge.cjs +2 -2
- package/dist/badge.cjs.map +1 -1
- package/dist/badge.d.ts +2 -21
- package/dist/badge.mjs +23 -25
- package/dist/badge.mjs.map +1 -1
- package/dist/breadcrumb.cjs +2 -2
- package/dist/breadcrumb.cjs.map +1 -1
- package/dist/breadcrumb.d.ts +2 -62
- package/dist/breadcrumb.mjs +60 -67
- package/dist/breadcrumb.mjs.map +1 -1
- package/dist/button.cjs +2 -2
- package/dist/button.cjs.map +1 -1
- package/dist/button.d.ts +2 -22
- package/dist/button.mjs +40 -39
- package/dist/button.mjs.map +1 -1
- package/dist/calendar.cjs +2 -2
- package/dist/calendar.cjs.map +1 -1
- package/dist/calendar.d.ts +2 -36
- package/dist/calendar.mjs +94 -130
- package/dist/calendar.mjs.map +1 -1
- package/dist/card.cjs +2 -2
- package/dist/card.cjs.map +1 -1
- package/dist/card.d.ts +2 -23
- package/dist/card.mjs +44 -33
- package/dist/card.mjs.map +1 -1
- package/dist/carousel.cjs +2 -2
- package/dist/carousel.cjs.map +1 -1
- package/dist/carousel.d.ts +2 -78
- package/dist/carousel.mjs +113 -151
- package/dist/carousel.mjs.map +1 -1
- package/dist/chart.cjs +5 -5
- package/dist/chart.cjs.map +1 -1
- package/dist/chart.d.ts +2 -90
- package/dist/chart.mjs +124 -182
- package/dist/chart.mjs.map +1 -1
- package/dist/checkbox.cjs +2 -2
- package/dist/checkbox.cjs.map +1 -1
- package/dist/checkbox.d.ts +2 -17
- package/dist/checkbox.mjs +19 -22
- package/dist/checkbox.mjs.map +1 -1
- package/dist/collapsible.cjs +2 -2
- package/dist/collapsible.cjs.map +1 -1
- package/dist/collapsible.d.ts +2 -32
- package/dist/collapsible.mjs +8 -8
- package/dist/collapsible.mjs.map +1 -1
- package/dist/command.cjs +2 -2
- package/dist/command.cjs.map +1 -1
- package/dist/command.d.ts +2 -133
- package/dist/command.mjs +80 -86
- package/dist/command.mjs.map +1 -1
- package/dist/context-menu.cjs +2 -2
- package/dist/context-menu.cjs.map +1 -1
- package/dist/context-menu.d.ts +2 -115
- package/dist/context-menu.mjs +72 -124
- package/dist/context-menu.mjs.map +1 -1
- package/dist/design-system.css +3 -1
- package/dist/dialog.cjs +2 -2
- package/dist/dialog.cjs.map +1 -1
- package/dist/dialog.d.ts +2 -31
- package/dist/dialog.mjs +50 -65
- package/dist/dialog.mjs.map +1 -1
- package/dist/drawer.cjs +2 -2
- package/dist/drawer.cjs.map +1 -1
- package/dist/drawer.d.ts +2 -79
- package/dist/drawer.mjs +49 -54
- package/dist/drawer.mjs.map +1 -1
- package/dist/dropdown-menu.cjs +2 -2
- package/dist/dropdown-menu.cjs.map +1 -1
- package/dist/dropdown-menu.d.ts +2 -124
- package/dist/dropdown-menu.mjs +73 -126
- package/dist/dropdown-menu.mjs.map +1 -1
- package/dist/form.cjs +2 -2
- package/dist/form.cjs.map +1 -1
- package/dist/form.d.ts +2 -62
- package/dist/form.mjs +75 -65
- package/dist/form.mjs.map +1 -1
- package/dist/hover-card.cjs +2 -2
- package/dist/hover-card.cjs.map +1 -1
- package/dist/hover-card.d.ts +2 -30
- package/dist/hover-card.mjs +17 -23
- package/dist/hover-card.mjs.map +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.d.ts +2 -2442
- package/dist/index.mjs +56 -430
- package/dist/input.cjs +2 -2
- package/dist/input.cjs.map +1 -1
- package/dist/input.d.ts +2 -14
- package/dist/input.mjs +16 -20
- package/dist/input.mjs.map +1 -1
- package/dist/label.cjs +2 -2
- package/dist/label.cjs.map +1 -1
- package/dist/label.d.ts +2 -14
- package/dist/label.mjs +14 -8
- package/dist/label.mjs.map +1 -1
- package/dist/menubar.cjs +2 -2
- package/dist/menubar.cjs.map +1 -1
- package/dist/menubar.d.ts +2 -125
- package/dist/menubar.mjs +101 -156
- package/dist/menubar.mjs.map +1 -1
- package/dist/navigation-menu.cjs +2 -2
- package/dist/navigation-menu.cjs.map +1 -1
- package/dist/navigation-menu.d.ts +2 -77
- package/dist/navigation-menu.mjs +58 -96
- package/dist/navigation-menu.mjs.map +1 -1
- package/dist/packages/design-tokens/src/index.d.ts +91 -0
- package/dist/packages/design-tokens/src/palette.d.ts +31 -0
- package/dist/packages/design-tokens/src/preset.d.ts +107 -0
- package/dist/packages/design-tokens/src/radii.d.ts +20 -0
- package/dist/packages/design-tokens/src/shadows.d.ts +11 -0
- package/dist/packages/design-tokens/src/spacing.d.ts +29 -0
- package/dist/packages/design-tokens/src/theme.d.ts +47 -0
- package/dist/packages/design-tokens/src/typography.d.ts +32 -0
- package/dist/packages/ui-core/src/contracts/accordion.d.ts +19 -0
- package/dist/packages/ui-core/src/contracts/alert-dialog.d.ts +39 -0
- package/dist/packages/ui-core/src/contracts/alert.d.ts +14 -0
- package/dist/packages/ui-core/src/contracts/aspect-ratio.d.ts +6 -0
- package/dist/packages/ui-core/src/contracts/avatar.d.ts +14 -0
- package/dist/packages/ui-core/src/contracts/badge.d.ts +6 -0
- package/dist/packages/ui-core/src/contracts/breadcrumb.d.ts +30 -0
- package/dist/packages/ui-core/src/contracts/button.d.ts +9 -0
- package/dist/packages/ui-core/src/contracts/calendar.d.ts +4 -0
- package/dist/packages/ui-core/src/contracts/card.d.ts +5 -0
- package/dist/packages/ui-core/src/contracts/carousel.d.ts +24 -0
- package/dist/packages/ui-core/src/contracts/chart.d.ts +33 -0
- package/dist/packages/ui-core/src/contracts/checkbox.d.ts +7 -0
- package/dist/packages/ui-core/src/contracts/collapsible.d.ts +18 -0
- package/dist/packages/ui-core/src/contracts/command.d.ts +35 -0
- package/dist/packages/ui-core/src/contracts/context-menu.d.ts +64 -0
- package/dist/packages/ui-core/src/contracts/dialog.d.ts +13 -0
- package/dist/packages/ui-core/src/contracts/drawer.d.ts +31 -0
- package/dist/packages/ui-core/src/contracts/dropdown-menu.d.ts +73 -0
- package/dist/packages/ui-core/src/contracts/form.d.ts +23 -0
- package/dist/packages/ui-core/src/contracts/hover-card.d.ts +18 -0
- package/dist/packages/ui-core/src/contracts/input.d.ts +5 -0
- package/dist/packages/ui-core/src/contracts/label.d.ts +6 -0
- package/dist/packages/ui-core/src/contracts/menubar.d.ts +73 -0
- package/dist/packages/ui-core/src/contracts/navigation-menu.d.ts +47 -0
- package/dist/packages/ui-core/src/contracts/pagination.d.ts +31 -0
- package/dist/packages/ui-core/src/contracts/popover.d.ts +24 -0
- package/dist/packages/ui-core/src/contracts/progress.d.ts +4 -0
- package/dist/packages/ui-core/src/contracts/radio.d.ts +9 -0
- package/dist/packages/ui-core/src/contracts/resizable.d.ts +38 -0
- package/dist/packages/ui-core/src/contracts/scroll-area.d.ts +13 -0
- package/dist/packages/ui-core/src/contracts/scroll-to-top.d.ts +25 -0
- package/dist/packages/ui-core/src/contracts/search.d.ts +12 -0
- package/dist/packages/ui-core/src/contracts/select.d.ts +54 -0
- package/dist/packages/ui-core/src/contracts/separator.d.ts +5 -0
- package/dist/packages/ui-core/src/contracts/sheet.d.ts +48 -0
- package/dist/packages/ui-core/src/contracts/skeleton.d.ts +5 -0
- package/dist/packages/ui-core/src/contracts/slider.d.ts +15 -0
- package/dist/packages/ui-core/src/contracts/sonner.d.ts +15 -0
- package/dist/packages/ui-core/src/contracts/switch.d.ts +11 -0
- package/dist/packages/ui-core/src/contracts/table-of-contents.d.ts +41 -0
- package/dist/packages/ui-core/src/contracts/table.d.ts +33 -0
- package/dist/packages/ui-core/src/contracts/tabs.d.ts +27 -0
- package/dist/packages/ui-core/src/contracts/text.d.ts +6 -0
- package/dist/packages/ui-core/src/contracts/textarea.d.ts +7 -0
- package/dist/packages/ui-core/src/contracts/theme-provider.d.ts +13 -0
- package/dist/packages/ui-core/src/contracts/theme-toggle.d.ts +15 -0
- package/dist/packages/ui-core/src/contracts/toast.d.ts +10 -0
- package/dist/packages/ui-core/src/contracts/toaster.d.ts +3 -0
- package/dist/packages/ui-core/src/contracts/toggle-group.d.ts +21 -0
- package/dist/packages/ui-core/src/contracts/toggle.d.ts +29 -0
- package/dist/packages/ui-core/src/contracts/tooltip.d.ts +24 -0
- package/dist/packages/ui-core/src/index.d.ts +56 -0
- package/dist/packages/ui-web/src/accordion.d.ts +9 -0
- package/dist/packages/ui-web/src/accordion.test.d.ts +1 -0
- package/dist/packages/ui-web/src/alert-dialog.d.ts +22 -0
- package/dist/packages/ui-web/src/alert-dialog.test.d.ts +1 -0
- package/dist/packages/ui-web/src/alert.d.ts +11 -0
- package/dist/packages/ui-web/src/alert.test.d.ts +1 -0
- package/dist/packages/ui-web/src/aspect-ratio.d.ts +6 -0
- package/dist/packages/ui-web/src/aspect-ratio.test.d.ts +1 -0
- package/dist/packages/ui-web/src/avatar.d.ts +8 -0
- package/dist/packages/ui-web/src/avatar.test.d.ts +1 -0
- package/dist/packages/ui-web/src/badge.d.ts +11 -0
- package/dist/packages/ui-web/src/badge.test.d.ts +1 -0
- package/dist/packages/ui-web/src/breadcrumb.d.ts +19 -0
- package/dist/packages/ui-web/src/button.d.ts +13 -0
- package/dist/packages/ui-web/src/button.test.d.ts +1 -0
- package/dist/packages/ui-web/src/calendar.d.ts +10 -0
- package/dist/packages/ui-web/src/calendar.test.d.ts +1 -0
- package/dist/packages/ui-web/src/card.d.ts +11 -0
- package/dist/packages/ui-web/src/card.test.d.ts +1 -0
- package/dist/packages/ui-web/src/carousel.d.ts +24 -0
- package/dist/packages/ui-web/src/carousel.test.d.ts +1 -0
- package/dist/packages/ui-web/src/chart.d.ts +16 -0
- package/dist/packages/ui-web/src/chart.test.d.ts +1 -0
- package/dist/packages/ui-web/src/checkbox.d.ts +7 -0
- package/dist/packages/ui-web/src/checkbox.test.d.ts +1 -0
- package/dist/packages/ui-web/src/collapsible.d.ts +8 -0
- package/dist/packages/ui-web/src/collapsible.test.d.ts +1 -0
- package/dist/packages/ui-web/src/command.d.ts +82 -0
- package/dist/packages/ui-web/src/command.test.d.ts +1 -0
- package/dist/packages/ui-web/src/context-menu.d.ts +23 -0
- package/dist/packages/ui-web/src/context-menu.test.d.ts +1 -0
- package/dist/packages/ui-web/src/dialog.d.ts +19 -0
- package/dist/packages/ui-web/src/dialog.test.d.ts +1 -0
- package/dist/packages/ui-web/src/drawer.d.ts +25 -0
- package/dist/packages/ui-web/src/drawer.test.d.ts +1 -0
- package/dist/packages/ui-web/src/dropdown-menu.d.ts +23 -0
- package/dist/packages/ui-web/src/dropdown-menu.test.d.ts +1 -0
- package/dist/packages/ui-web/src/form.d.ts +26 -0
- package/dist/packages/ui-web/src/form.test.d.ts +1 -0
- package/dist/packages/ui-web/src/hooks/use-theme.d.ts +51 -0
- package/dist/packages/ui-web/src/hooks/use-toast.d.ts +44 -0
- package/dist/packages/ui-web/src/hover-card.d.ts +8 -0
- package/dist/packages/ui-web/src/hover-card.test.d.ts +1 -0
- package/dist/packages/ui-web/src/index.d.ts +107 -0
- package/dist/packages/ui-web/src/input.d.ts +6 -0
- package/dist/packages/ui-web/src/input.test.d.ts +1 -0
- package/dist/packages/ui-web/src/label.d.ts +8 -0
- package/dist/packages/ui-web/src/label.test.d.ts +1 -0
- package/dist/packages/ui-web/src/lib/utils.d.ts +3 -0
- package/dist/packages/ui-web/src/menubar.d.ts +24 -0
- package/dist/packages/ui-web/src/menubar.test.d.ts +1 -0
- package/dist/packages/ui-web/src/navigation-menu.d.ts +15 -0
- package/dist/packages/ui-web/src/navigation-menu.test.d.ts +1 -0
- package/dist/packages/ui-web/src/pagination.d.ts +30 -0
- package/dist/packages/ui-web/src/pagination.test.d.ts +1 -0
- package/dist/packages/ui-web/src/popover.d.ts +9 -0
- package/dist/packages/ui-web/src/popover.test.d.ts +1 -0
- package/dist/packages/ui-web/src/progress.d.ts +6 -0
- package/dist/packages/ui-web/src/progress.test.d.ts +1 -0
- package/dist/packages/ui-web/src/radio-group.d.ts +10 -0
- package/dist/packages/ui-web/src/radio-group.test.d.ts +1 -0
- package/dist/packages/ui-web/src/resizable.d.ts +8 -0
- package/dist/packages/ui-web/src/resizable.test.d.ts +1 -0
- package/dist/packages/ui-web/src/scroll-area.d.ts +7 -0
- package/dist/packages/ui-web/src/scroll-area.test.d.ts +1 -0
- package/dist/packages/ui-web/src/scroll-to-top.d.ts +7 -0
- package/dist/packages/ui-web/src/scroll-to-top.test.d.ts +1 -0
- package/dist/packages/ui-web/src/search.d.ts +7 -0
- package/dist/packages/ui-web/src/search.test.d.ts +1 -0
- package/dist/packages/ui-web/src/select.d.ts +15 -0
- package/dist/packages/ui-web/src/select.test.d.ts +1 -0
- package/dist/packages/ui-web/src/separator.d.ts +6 -0
- package/dist/packages/ui-web/src/separator.test.d.ts +1 -0
- package/dist/packages/ui-web/src/setupTests.d.ts +0 -0
- package/dist/packages/ui-web/src/sheet.d.ts +28 -0
- package/dist/packages/ui-web/src/sheet.test.d.ts +1 -0
- package/dist/packages/ui-web/src/skeleton.d.ts +5 -0
- package/dist/packages/ui-web/src/skeleton.test.d.ts +1 -0
- package/dist/packages/ui-web/src/slider.d.ts +6 -0
- package/dist/packages/ui-web/src/slider.test.d.ts +1 -0
- package/dist/packages/ui-web/src/sonner.d.ts +7 -0
- package/dist/packages/ui-web/src/sonner.test.d.ts +1 -0
- package/dist/packages/ui-web/src/support-fab.d.ts +15 -0
- package/dist/packages/ui-web/src/support-fab.test.d.ts +1 -0
- package/dist/packages/ui-web/src/switch.d.ts +6 -0
- package/dist/packages/ui-web/src/switch.test.d.ts +1 -0
- package/dist/packages/ui-web/src/table-of-contents.d.ts +23 -0
- package/dist/packages/ui-web/src/table-of-contents.test.d.ts +1 -0
- package/dist/packages/ui-web/src/table.d.ts +12 -0
- package/dist/packages/ui-web/src/table.test.d.ts +1 -0
- package/dist/packages/ui-web/src/tabs.d.ts +9 -0
- package/dist/packages/ui-web/src/tabs.test.d.ts +1 -0
- package/dist/packages/ui-web/src/text.d.ts +12 -0
- package/dist/packages/ui-web/src/text.test.d.ts +1 -0
- package/dist/packages/ui-web/src/textarea.d.ts +6 -0
- package/dist/packages/ui-web/src/textarea.test.d.ts +1 -0
- package/dist/packages/ui-web/src/theme-provider.d.ts +4 -0
- package/dist/packages/ui-web/src/theme-toggle.d.ts +3 -0
- package/dist/packages/ui-web/src/theme-toggle.test.d.ts +1 -0
- package/dist/packages/ui-web/src/toast.d.ts +16 -0
- package/dist/packages/ui-web/src/toast.test.d.ts +1 -0
- package/dist/packages/ui-web/src/toaster.d.ts +2 -0
- package/dist/packages/ui-web/src/toggle-group.d.ts +13 -0
- package/dist/packages/ui-web/src/toggle-group.test.d.ts +1 -0
- package/dist/packages/ui-web/src/toggle.d.ts +8 -0
- package/dist/packages/ui-web/src/toggle.test.d.ts +1 -0
- package/dist/packages/ui-web/src/tooltip.d.ts +12 -0
- package/dist/pagination.cjs +2 -2
- package/dist/pagination.cjs.map +1 -1
- package/dist/pagination.d.ts +2 -94
- package/dist/pagination.mjs +63 -67
- package/dist/pagination.mjs.map +1 -1
- package/dist/popover.cjs +2 -2
- package/dist/popover.cjs.map +1 -1
- package/dist/popover.d.ts +2 -39
- package/dist/popover.mjs +17 -24
- package/dist/popover.mjs.map +1 -1
- package/dist/progress.cjs +2 -2
- package/dist/progress.cjs.map +1 -1
- package/dist/progress.d.ts +2 -11
- package/dist/progress.mjs +19 -23
- package/dist/progress.mjs.map +1 -1
- package/dist/radio-group.cjs +2 -2
- package/dist/radio-group.cjs.map +1 -1
- package/dist/radio-group.d.ts +2 -25
- package/dist/radio-group.mjs +25 -27
- package/dist/radio-group.mjs.map +1 -1
- package/dist/resizable.cjs +2 -2
- package/dist/resizable.cjs.map +1 -1
- package/dist/resizable.d.ts +2 -53
- package/dist/resizable.mjs +21 -34
- package/dist/resizable.mjs.map +1 -1
- package/dist/rolldown-runtime-CWhphoD1.mjs +23 -0
- package/dist/rolldown-runtime-mLOUI7ql.js +1 -0
- package/dist/scroll-area.cjs +2 -2
- package/dist/scroll-area.cjs.map +1 -1
- package/dist/scroll-area.d.ts +2 -22
- package/dist/scroll-area.mjs +31 -30
- package/dist/scroll-area.mjs.map +1 -1
- package/dist/scroll-to-top.cjs +2 -2
- package/dist/scroll-to-top.cjs.map +1 -1
- package/dist/scroll-to-top.d.ts +2 -37
- package/dist/scroll-to-top.mjs +72 -84
- package/dist/scroll-to-top.mjs.map +1 -1
- package/dist/search.cjs +2 -2
- package/dist/search.cjs.map +1 -1
- package/dist/search.d.ts +2 -26
- package/dist/search.mjs +54 -63
- package/dist/search.mjs.map +1 -1
- package/dist/select.cjs +2 -2
- package/dist/select.cjs.map +1 -1
- package/dist/select.d.ts +2 -87
- package/dist/select.mjs +70 -100
- package/dist/select.mjs.map +1 -1
- package/dist/separator.cjs +2 -2
- package/dist/separator.cjs.map +1 -1
- package/dist/separator.d.ts +2 -12
- package/dist/separator.mjs +17 -18
- package/dist/separator.mjs.map +1 -1
- package/dist/sheet.cjs +2 -2
- package/dist/sheet.cjs.map +1 -1
- package/dist/sheet.d.ts +2 -97
- package/dist/sheet.mjs +58 -64
- package/dist/sheet.mjs.map +1 -1
- package/dist/skeleton.cjs +2 -2
- package/dist/skeleton.cjs.map +1 -1
- package/dist/skeleton.d.ts +2 -11
- package/dist/skeleton.mjs +15 -8
- package/dist/skeleton.mjs.map +1 -1
- package/dist/slider.cjs +2 -2
- package/dist/slider.cjs.map +1 -1
- package/dist/slider.d.ts +2 -22
- package/dist/slider.mjs +19 -20
- package/dist/slider.mjs.map +1 -1
- package/dist/sonner.cjs +2 -2
- package/dist/sonner.cjs.map +1 -1
- package/dist/sonner.d.ts +2 -25
- package/dist/sonner.mjs +22 -24
- package/dist/sonner.mjs.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/setupTests.d.ts +0 -0
- package/dist/src-D3IDWqE2.js +2 -0
- package/dist/src-D3IDWqE2.js.map +1 -0
- package/dist/src-N08I3kfW.mjs +23 -0
- package/dist/src-N08I3kfW.mjs.map +1 -0
- package/dist/support-fab.cjs +2 -2
- package/dist/support-fab.cjs.map +1 -1
- package/dist/support-fab.d.ts +2 -20
- package/dist/support-fab.mjs +82 -117
- package/dist/support-fab.mjs.map +1 -1
- package/dist/switch.cjs +2 -2
- package/dist/switch.cjs.map +1 -1
- package/dist/switch.d.ts +2 -18
- package/dist/switch.mjs +16 -27
- package/dist/switch.mjs.map +1 -1
- package/dist/table-of-contents.cjs +2 -2
- package/dist/table-of-contents.cjs.map +1 -1
- package/dist/table-of-contents.d.ts +2 -68
- package/dist/table-of-contents.mjs +161 -156
- package/dist/table-of-contents.mjs.map +1 -1
- package/dist/table.cjs +2 -2
- package/dist/table.cjs.map +1 -1
- package/dist/table.d.ts +2 -59
- package/dist/table.mjs +60 -58
- package/dist/table.mjs.map +1 -1
- package/dist/tabs.cjs +2 -2
- package/dist/tabs.cjs.map +1 -1
- package/dist/tabs.d.ts +2 -42
- package/dist/tabs.mjs +27 -46
- package/dist/tabs.mjs.map +1 -1
- package/dist/text.cjs +2 -2
- package/dist/text.cjs.map +1 -1
- package/dist/text.d.ts +2 -21
- package/dist/text.mjs +42 -42
- package/dist/text.mjs.map +1 -1
- package/dist/textarea.cjs +2 -2
- package/dist/textarea.cjs.map +1 -1
- package/dist/textarea.d.ts +2 -16
- package/dist/textarea.mjs +14 -18
- package/dist/textarea.mjs.map +1 -1
- package/dist/theme-provider.cjs +2 -2
- package/dist/theme-provider.cjs.map +1 -1
- package/dist/theme-provider.d.ts +2 -22
- package/dist/theme-provider.mjs +17 -8
- package/dist/theme-provider.mjs.map +1 -1
- package/dist/theme-toggle-B6QS2aTS.mjs +321 -0
- package/dist/theme-toggle-B6QS2aTS.mjs.map +1 -0
- package/dist/theme-toggle-CbtfA8aG.js +2 -0
- package/dist/theme-toggle-CbtfA8aG.js.map +1 -0
- package/dist/theme-toggle.cjs +1 -2
- package/dist/theme-toggle.d.ts +2 -23
- package/dist/theme-toggle.mjs +3 -9
- package/dist/toast.cjs +2 -2
- package/dist/toast.cjs.map +1 -1
- package/dist/toast.d.ts +2 -26
- package/dist/toast.mjs +53 -70
- package/dist/toast.mjs.map +1 -1
- package/dist/toaster-C-1djNvf.js +2 -0
- package/dist/toaster-C-1djNvf.js.map +1 -0
- package/dist/toaster-CEa33QUH.mjs +128 -0
- package/dist/toaster-CEa33QUH.mjs.map +1 -0
- package/dist/toaster.cjs +1 -2
- package/dist/toaster.d.ts +2 -9
- package/dist/toaster.mjs +3 -7
- package/dist/toggle-group.cjs +2 -2
- package/dist/toggle-group.cjs.map +1 -1
- package/dist/toggle-group.d.ts +2 -22
- package/dist/toggle-group.mjs +39 -37
- package/dist/toggle-group.mjs.map +1 -1
- package/dist/toggle.cjs +2 -2
- package/dist/toggle.cjs.map +1 -1
- package/dist/toggle.d.ts +2 -43
- package/dist/toggle.mjs +19 -12
- package/dist/toggle.mjs.map +1 -1
- package/dist/tooltip.cjs +2 -2
- package/dist/tooltip.cjs.map +1 -1
- package/dist/tooltip.d.ts +2 -48
- package/dist/tooltip.mjs +25 -29
- package/dist/tooltip.mjs.map +1 -1
- package/dist/utils-BsD1_fYL.mjs +12 -0
- package/dist/utils-BsD1_fYL.mjs.map +1 -0
- package/dist/utils-DU-Y_pvO.js +2 -0
- package/dist/utils-DU-Y_pvO.js.map +1 -0
- package/dist/vendor-3cr8xz0x.js +92 -0
- package/dist/vendor-3cr8xz0x.js.map +1 -0
- package/dist/vendor-ChPUVHXi.mjs +28604 -0
- package/dist/vendor-ChPUVHXi.mjs.map +1 -0
- package/package.json +37 -40
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/theme-toggle-BNtYv2Jv.mjs +0 -177
- package/dist/theme-toggle-BNtYv2Jv.mjs.map +0 -1
- package/dist/theme-toggle-DK_OhDRf.js +0 -2
- package/dist/theme-toggle-DK_OhDRf.js.map +0 -1
- package/dist/theme-toggle.cjs.map +0 -1
- package/dist/theme-toggle.mjs.map +0 -1
- package/dist/toaster-Cj_SryBI.mjs +0 -119
- package/dist/toaster-Cj_SryBI.mjs.map +0 -1
- package/dist/toaster-Q_hzVonm.js +0 -2
- package/dist/toaster-Q_hzVonm.js.map +0 -1
- package/dist/toaster.cjs.map +0 -1
- package/dist/toaster.mjs.map +0 -1
- package/dist/toggle-DPMTgo47.mjs +0 -25
- package/dist/toggle-DPMTgo47.mjs.map +0 -1
- package/dist/toggle-_F_yB_Dj.js +0 -2
- package/dist/toggle-_F_yB_Dj.js.map +0 -1
- package/dist/utils-Bgpn0CK0.mjs +0 -12
- package/dist/utils-Bgpn0CK0.mjs.map +0 -1
- package/dist/utils-CBWPs0D7.js +0 -2
- package/dist/utils-CBWPs0D7.js.map +0 -1
- package/dist/vendor-BQwS7aJt.mjs +0 -25217
- package/dist/vendor-BQwS7aJt.mjs.map +0 -1
- package/dist/vendor-B_07FHqh.js +0 -68
- package/dist/vendor-B_07FHqh.js.map +0 -1
package/dist/text.mjs
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
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
|
-
//# sourceMappingURL=text.mjs.map
|
|
2
|
+
"use client";
|
|
3
|
+
import { Gn as e, vr as t } from "./vendor-ChPUVHXi.mjs";
|
|
4
|
+
import { t as n } from "./utils-BsD1_fYL.mjs";
|
|
5
|
+
import * as r from "react";
|
|
6
|
+
//#region packages/ui-web/src/text.tsx
|
|
7
|
+
var i = t(), a = e("", {
|
|
8
|
+
variants: { variant: {
|
|
9
|
+
h1: "scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl",
|
|
10
|
+
h2: "scroll-m-20 text-3xl font-semibold tracking-tight",
|
|
11
|
+
h3: "scroll-m-20 text-2xl font-semibold tracking-tight",
|
|
12
|
+
h4: "scroll-m-20 text-xl font-semibold tracking-tight",
|
|
13
|
+
body: "leading-7",
|
|
14
|
+
bodySmall: "text-sm leading-6",
|
|
15
|
+
caption: "text-xs text-muted-foreground",
|
|
16
|
+
label: "text-sm font-medium leading-none",
|
|
17
|
+
overline: "text-xs font-semibold uppercase tracking-widest text-muted-foreground"
|
|
18
|
+
} },
|
|
19
|
+
defaultVariants: { variant: "body" }
|
|
20
|
+
}), o = {
|
|
21
|
+
h1: "h1",
|
|
22
|
+
h2: "h2",
|
|
23
|
+
h3: "h3",
|
|
24
|
+
h4: "h4",
|
|
25
|
+
body: "p",
|
|
26
|
+
bodySmall: "p",
|
|
27
|
+
caption: "span",
|
|
28
|
+
label: "label",
|
|
29
|
+
overline: "span"
|
|
30
|
+
}, s = r.forwardRef(({ className: e, variant: t = "body", as: r, children: s, ...c }, l) => /* @__PURE__ */ (0, i.jsx)(r || o[t ?? "body"] || "p", {
|
|
31
|
+
ref: l,
|
|
32
|
+
className: n(a({
|
|
33
|
+
variant: t,
|
|
34
|
+
className: e
|
|
35
|
+
})),
|
|
36
|
+
...c,
|
|
37
|
+
children: s
|
|
38
|
+
}));
|
|
39
|
+
s.displayName = "Text";
|
|
40
|
+
//#endregion
|
|
41
|
+
export { s as Text, a as textVariants };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=text.mjs.map
|
package/dist/text.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.mjs","sources":["../packages/ui-web/src/text.tsx"],"sourcesContent":["'use client';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport type { TextBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst textVariants = cva('', {\n variants: {\n variant: {\n h1: 'scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl',\n h2: 'scroll-m-20 text-3xl font-semibold tracking-tight',\n h3: 'scroll-m-20 text-2xl font-semibold tracking-tight',\n h4: 'scroll-m-20 text-xl font-semibold tracking-tight',\n body: 'leading-7',\n bodySmall: 'text-sm leading-6',\n caption: 'text-xs text-muted-foreground',\n label: 'text-sm font-medium leading-none',\n overline: 'text-xs font-semibold uppercase tracking-widest text-muted-foreground',\n },\n },\n defaultVariants: {\n variant: 'body',\n },\n});\n\n// Map variant to the most semantic HTML element\nconst variantElementMap: Record<string, keyof React.JSX.IntrinsicElements> = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n body: 'p',\n bodySmall: 'p',\n caption: 'span',\n label: 'label',\n overline: 'span',\n};\n\nexport interface TextProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof textVariants>, TextBaseProps {\n as?: keyof React.JSX.IntrinsicElements;\n}\n\nconst Text = React.forwardRef<HTMLElement, TextProps>(\n ({ className, variant = 'body', as, children, ...props }, ref) => {\n const Comp = (as || variantElementMap[variant ?? 'body'] || 'p') as React.ElementType;\n return (\n <Comp ref={ref} className={cn(textVariants({ variant, className }))} {...props}>\n {children}\n </Comp>\n );\n },\n);\nText.displayName = 'Text';\n\nexport { Text, textVariants };\n"],"
|
|
1
|
+
{"version":3,"file":"text.mjs","names":[],"sources":["../packages/ui-web/src/text.tsx"],"sourcesContent":["'use client';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport type { TextBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst textVariants = cva('', {\n variants: {\n variant: {\n h1: 'scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl',\n h2: 'scroll-m-20 text-3xl font-semibold tracking-tight',\n h3: 'scroll-m-20 text-2xl font-semibold tracking-tight',\n h4: 'scroll-m-20 text-xl font-semibold tracking-tight',\n body: 'leading-7',\n bodySmall: 'text-sm leading-6',\n caption: 'text-xs text-muted-foreground',\n label: 'text-sm font-medium leading-none',\n overline: 'text-xs font-semibold uppercase tracking-widest text-muted-foreground',\n },\n },\n defaultVariants: {\n variant: 'body',\n },\n});\n\n// Map variant to the most semantic HTML element\nconst variantElementMap: Record<string, keyof React.JSX.IntrinsicElements> = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n body: 'p',\n bodySmall: 'p',\n caption: 'span',\n label: 'label',\n overline: 'span',\n};\n\nexport interface TextProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof textVariants>, TextBaseProps {\n as?: keyof React.JSX.IntrinsicElements;\n}\n\nconst Text = React.forwardRef<HTMLElement, TextProps>(\n ({ className, variant = 'body', as, children, ...props }, ref) => {\n const Comp = (as || variantElementMap[variant ?? 'body'] || 'p') as React.ElementType;\n return (\n <Comp ref={ref} className={cn(textVariants({ variant, className }))} {...props}>\n {children}\n </Comp>\n );\n },\n);\nText.displayName = 'Text';\n\nexport { Text, textVariants };\n"],"mappings":";;;;;;aAOM,IAAe,EAAI,IAAI;CAC3B,UAAU,EACR,SAAS;EACP,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,MAAM;EACN,WAAW;EACX,SAAS;EACT,OAAO;EACP,UAAU;CACZ,EACF;CACA,iBAAiB,EACf,SAAS,OACX;AACF,CAAC,GAGK,IAAuE;CAC3E,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,MAAM;CACN,WAAW;CACX,SAAS;CACT,OAAO;CACP,UAAU;AACZ,GAMM,IAAO,EAAM,YAChB,EAAE,cAAW,aAAU,QAAQ,OAAI,aAAU,GAAG,KAAS,MAGtD,iBAAA,GAAA,EAAA,KAFY,KAAM,EAAkB,KAAW,WAAW,KAE1D;CAAW;CAAK,WAAW,EAAG,EAAa;EAAE;EAAS;CAAU,CAAC,CAAC;CAAG,GAAI;CACtE;AACG,CAAA,CAGZ;AACA,EAAK,cAAc"}
|
package/dist/textarea.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use
|
|
2
|
-
//# sourceMappingURL=textarea.cjs.map
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.js"),t=require("./vendor-3cr8xz0x.js"),n=require("./utils-DU-Y_pvO.js");let r=require("react");r=e.r(r);var i=t.vr(),a=r.forwardRef(({className:e,...t},r)=>(0,i.jsx)(`textarea`,{className:n.t(`border-input placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[60px] w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-sm focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:r,...t}));a.displayName=`Textarea`,exports.Textarea=a;
|
|
2
|
+
//# sourceMappingURL=textarea.cjs.map
|
package/dist/textarea.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.cjs","sources":["../packages/ui-web/src/textarea.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nimport { TextareaBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface TextareaProps\n extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, keyof TextareaBaseProps>, TextareaBaseProps {}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n 'border-input placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[60px] w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-sm focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n});\nTextarea.displayName = 'Textarea';\n\nexport { Textarea };\n"],"
|
|
1
|
+
{"version":3,"file":"textarea.cjs","names":[],"sources":["../packages/ui-web/src/textarea.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nimport { TextareaBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface TextareaProps\n extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, keyof TextareaBaseProps>, TextareaBaseProps {}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n 'border-input placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[60px] w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-sm focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n});\nTextarea.displayName = 'Textarea';\n\nexport { Textarea };\n"],"mappings":"+PAUM,EAAW,EAAM,YAAgD,CAAE,YAAW,GAAG,GAAS,KAE5F,EAAA,EAAA,KAAC,WAAD,CACE,UAAW,EAAA,EACT,4QACA,CACF,EACK,MACL,GAAI,CACL,CAAA,CAEJ,EACD,EAAS,YAAc"}
|
package/dist/textarea.d.ts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const Textarea: React_2.ForwardRefExoticComponent<TextareaProps & React_2.RefAttributes<HTMLTextAreaElement>>;
|
|
4
|
-
|
|
5
|
-
declare interface TextareaBaseProps {
|
|
6
|
-
className?: string;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
value?: string;
|
|
9
|
-
defaultValue?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export declare interface TextareaProps extends Omit<React_2.TextareaHTMLAttributes<HTMLTextAreaElement>, keyof TextareaBaseProps>, TextareaBaseProps {
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { }
|
|
1
|
+
export * from './packages/ui-web/src/textarea'
|
|
2
|
+
export {}
|
package/dist/textarea.mjs
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
ref: t,
|
|
13
|
-
...r
|
|
14
|
-
}
|
|
15
|
-
));
|
|
2
|
+
"use client";
|
|
3
|
+
import { vr as e } from "./vendor-ChPUVHXi.mjs";
|
|
4
|
+
import { t } from "./utils-BsD1_fYL.mjs";
|
|
5
|
+
import * as n from "react";
|
|
6
|
+
//#region packages/ui-web/src/textarea.tsx
|
|
7
|
+
var r = e(), i = n.forwardRef(({ className: e, ...n }, i) => /* @__PURE__ */ (0, r.jsx)("textarea", {
|
|
8
|
+
className: t("border-input placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[60px] w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-sm focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", e),
|
|
9
|
+
ref: i,
|
|
10
|
+
...n
|
|
11
|
+
}));
|
|
16
12
|
i.displayName = "Textarea";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=textarea.mjs.map
|
|
13
|
+
//#endregion
|
|
14
|
+
export { i as Textarea };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=textarea.mjs.map
|
package/dist/textarea.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.mjs","sources":["../packages/ui-web/src/textarea.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nimport { TextareaBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface TextareaProps\n extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, keyof TextareaBaseProps>, TextareaBaseProps {}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n 'border-input placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[60px] w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-sm focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n});\nTextarea.displayName = 'Textarea';\n\nexport { Textarea };\n"],"
|
|
1
|
+
{"version":3,"file":"textarea.mjs","names":[],"sources":["../packages/ui-web/src/textarea.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nimport { TextareaBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface TextareaProps\n extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, keyof TextareaBaseProps>, TextareaBaseProps {}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n 'border-input placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[60px] w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-sm focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n});\nTextarea.displayName = 'Textarea';\n\nexport { Textarea };\n"],"mappings":";;;;;;aAUM,IAAW,EAAM,YAAgD,EAAE,cAAW,GAAG,KAAS,MAE5F,iBAAA,GAAA,EAAA,KAAC,YAAD;CACE,WAAW,EACT,6QACA,CACF;CACK;CACL,GAAI;AACL,CAAA,CAEJ;AACD,EAAS,cAAc"}
|
package/dist/theme-provider.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use
|
|
2
|
-
//# sourceMappingURL=theme-provider.cjs.map
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./vendor-3cr8xz0x.js");let t=require("next-themes");var n=e.vr();function r({children:e,...r}){return(0,n.jsx)(t.ThemeProvider,{attribute:`class`,defaultTheme:`system`,enableSystem:!0,...r,children:e})}exports.ThemeProvider=r;
|
|
2
|
+
//# sourceMappingURL=theme-provider.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-provider.cjs","sources":["../packages/ui-web/src/theme-provider.tsx"],"sourcesContent":["'use client';\n\nimport { ThemeProviderBaseProps } from '@gv-tech/ui-core';\nimport type { ThemeProviderProps as NextThemesProviderProps } from 'next-themes';\nimport { ThemeProvider as NextThemesProvider } from 'next-themes';\n\nexport type ThemeProviderProps = NextThemesProviderProps & ThemeProviderBaseProps;\n\nexport function ThemeProvider({ children, ...props }: ThemeProviderProps) {\n return (\n <NextThemesProvider attribute=\"class\" defaultTheme=\"system\" enableSystem {...props}>\n {children}\n </NextThemesProvider>\n );\n}\n"],"
|
|
1
|
+
{"version":3,"file":"theme-provider.cjs","names":[],"sources":["../packages/ui-web/src/theme-provider.tsx"],"sourcesContent":["'use client';\n\nimport { ThemeProviderBaseProps } from '@gv-tech/ui-core';\nimport type { ThemeProviderProps as NextThemesProviderProps } from 'next-themes';\nimport { ThemeProvider as NextThemesProvider } from 'next-themes';\n\nexport type ThemeProviderProps = NextThemesProviderProps & ThemeProviderBaseProps;\n\nexport function ThemeProvider({ children, ...props }: ThemeProviderProps) {\n return (\n <NextThemesProvider attribute=\"class\" defaultTheme=\"system\" enableSystem {...props}>\n {children}\n </NextThemesProvider>\n );\n}\n"],"mappings":"+KAQA,SAAgB,EAAc,CAAE,WAAU,GAAG,GAA6B,CACxE,OACE,EAAA,EAAA,KAAC,EAAA,cAAD,CAAoB,UAAU,QAAQ,aAAa,SAAS,aAAA,GAAa,GAAI,EAC1E,UACiB,CAAA,CAExB"}
|
package/dist/theme-provider.d.ts
CHANGED
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { ThemeProviderProps as ThemeProviderProps_2 } from 'next-themes';
|
|
4
|
-
|
|
5
|
-
export declare function ThemeProvider({ children, ...props }: ThemeProviderProps): JSX.Element;
|
|
6
|
-
|
|
7
|
-
declare interface ThemeProviderBaseProps {
|
|
8
|
-
children?: React_2.ReactNode;
|
|
9
|
-
attribute?: string | string[];
|
|
10
|
-
defaultTheme?: string;
|
|
11
|
-
enableSystem?: boolean;
|
|
12
|
-
disableTransitionOnChange?: boolean;
|
|
13
|
-
themes?: string[];
|
|
14
|
-
forcedTheme?: string;
|
|
15
|
-
storageKey?: string;
|
|
16
|
-
nonce?: string;
|
|
17
|
-
[key: string]: unknown;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export declare type ThemeProviderProps = ThemeProviderProps_2 & ThemeProviderBaseProps;
|
|
21
|
-
|
|
22
|
-
export { }
|
|
1
|
+
export * from './packages/ui-web/src/theme-provider'
|
|
2
|
+
export {}
|
package/dist/theme-provider.mjs
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
"use client";
|
|
3
|
+
import { vr as e } from "./vendor-ChPUVHXi.mjs";
|
|
4
|
+
import { ThemeProvider as t } from "next-themes";
|
|
5
|
+
//#region packages/ui-web/src/theme-provider.tsx
|
|
6
|
+
var n = e();
|
|
7
|
+
function r({ children: e, ...r }) {
|
|
8
|
+
return /* @__PURE__ */ (0, n.jsx)(t, {
|
|
9
|
+
attribute: "class",
|
|
10
|
+
defaultTheme: "system",
|
|
11
|
+
enableSystem: !0,
|
|
12
|
+
...r,
|
|
13
|
+
children: e
|
|
14
|
+
});
|
|
6
15
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=theme-provider.mjs.map
|
|
16
|
+
//#endregion
|
|
17
|
+
export { r as ThemeProvider };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=theme-provider.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-provider.mjs","sources":["../packages/ui-web/src/theme-provider.tsx"],"sourcesContent":["'use client';\n\nimport { ThemeProviderBaseProps } from '@gv-tech/ui-core';\nimport type { ThemeProviderProps as NextThemesProviderProps } from 'next-themes';\nimport { ThemeProvider as NextThemesProvider } from 'next-themes';\n\nexport type ThemeProviderProps = NextThemesProviderProps & ThemeProviderBaseProps;\n\nexport function ThemeProvider({ children, ...props }: ThemeProviderProps) {\n return (\n <NextThemesProvider attribute=\"class\" defaultTheme=\"system\" enableSystem {...props}>\n {children}\n </NextThemesProvider>\n );\n}\n"],"
|
|
1
|
+
{"version":3,"file":"theme-provider.mjs","names":[],"sources":["../packages/ui-web/src/theme-provider.tsx"],"sourcesContent":["'use client';\n\nimport { ThemeProviderBaseProps } from '@gv-tech/ui-core';\nimport type { ThemeProviderProps as NextThemesProviderProps } from 'next-themes';\nimport { ThemeProvider as NextThemesProvider } from 'next-themes';\n\nexport type ThemeProviderProps = NextThemesProviderProps & ThemeProviderBaseProps;\n\nexport function ThemeProvider({ children, ...props }: ThemeProviderProps) {\n return (\n <NextThemesProvider attribute=\"class\" defaultTheme=\"system\" enableSystem {...props}>\n {children}\n </NextThemesProvider>\n );\n}\n"],"mappings":";;;;;;AAQA,SAAgB,EAAc,EAAE,aAAU,GAAG,KAA6B;CACxE,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAoB,WAAU;EAAQ,cAAa;EAAS,cAAA;EAAa,GAAI;EAC1E;CACiB,CAAA;AAExB"}
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { Jn as e, Xn as t, qn as n, vr as r } from "./vendor-ChPUVHXi.mjs";
|
|
2
|
+
import { t as i } from "./utils-BsD1_fYL.mjs";
|
|
3
|
+
import { Button as a } from "./button.mjs";
|
|
4
|
+
import { DropdownMenu as o, DropdownMenuContent as s, DropdownMenuItem as c, DropdownMenuTrigger as l } from "./dropdown-menu.mjs";
|
|
5
|
+
import { useTheme as u } from "next-themes";
|
|
6
|
+
//#region packages/design-tokens/src/palette.ts
|
|
7
|
+
var d = {
|
|
8
|
+
brand: {
|
|
9
|
+
blue: "hsl(225 73% 57%)",
|
|
10
|
+
green: "hsl(151 66% 27%)",
|
|
11
|
+
floralWhite: "hsl(40 100% 97%)"
|
|
12
|
+
},
|
|
13
|
+
neutral: {
|
|
14
|
+
white: "hsl(0 0% 100%)",
|
|
15
|
+
black: "hsl(0 0% 0%)",
|
|
16
|
+
gray50: "hsl(0 0% 96%)",
|
|
17
|
+
gray100: "hsl(0 0% 92%)",
|
|
18
|
+
gray200: "hsl(0 0% 89%)",
|
|
19
|
+
gray300: "hsl(0 0% 88%)",
|
|
20
|
+
gray400: "hsl(0 0% 70%)",
|
|
21
|
+
gray500: "hsl(215 16% 47%)",
|
|
22
|
+
gray600: "hsl(222 47% 11%)",
|
|
23
|
+
gray700: "hsl(0 0% 18%)",
|
|
24
|
+
gray800: "hsl(0 0% 15%)",
|
|
25
|
+
gray900: "hsl(0 0% 14%)",
|
|
26
|
+
gray950: "hsl(0 0% 11%)",
|
|
27
|
+
gray975: "hsl(0 0% 9%)",
|
|
28
|
+
gray990: "hsl(0 0% 6%)"
|
|
29
|
+
},
|
|
30
|
+
semantic: {
|
|
31
|
+
success: "hsl(93 28% 54%)",
|
|
32
|
+
successDark: "hsl(96 44% 61%)",
|
|
33
|
+
destructive: "hsl(0 84.2% 60.2%)",
|
|
34
|
+
destructiveDark: "hsl(0 62.8% 30.6%)"
|
|
35
|
+
}
|
|
36
|
+
}, f = {
|
|
37
|
+
light: {
|
|
38
|
+
background: d.neutral.gray50,
|
|
39
|
+
foreground: d.neutral.gray600,
|
|
40
|
+
card: d.neutral.white,
|
|
41
|
+
cardForeground: d.neutral.gray600,
|
|
42
|
+
popover: d.neutral.white,
|
|
43
|
+
popoverForeground: d.neutral.gray600,
|
|
44
|
+
primary: d.brand.blue,
|
|
45
|
+
primaryForeground: d.neutral.white,
|
|
46
|
+
secondary: d.semantic.success,
|
|
47
|
+
secondaryForeground: d.neutral.white,
|
|
48
|
+
muted: d.neutral.gray100,
|
|
49
|
+
mutedForeground: d.neutral.gray500,
|
|
50
|
+
accent: d.neutral.gray300,
|
|
51
|
+
accentForeground: d.neutral.gray600,
|
|
52
|
+
destructive: d.semantic.destructive,
|
|
53
|
+
destructiveForeground: d.neutral.white,
|
|
54
|
+
border: d.neutral.gray200,
|
|
55
|
+
input: d.neutral.gray200,
|
|
56
|
+
ring: d.neutral.gray600,
|
|
57
|
+
radius: "0.5rem"
|
|
58
|
+
},
|
|
59
|
+
dark: {
|
|
60
|
+
background: d.neutral.gray975,
|
|
61
|
+
foreground: d.neutral.white,
|
|
62
|
+
card: d.neutral.gray900,
|
|
63
|
+
cardForeground: d.neutral.white,
|
|
64
|
+
popover: d.neutral.gray950,
|
|
65
|
+
popoverForeground: d.neutral.white,
|
|
66
|
+
primary: "hsl(227 96% 71%)",
|
|
67
|
+
primaryForeground: d.neutral.gray975,
|
|
68
|
+
secondary: d.semantic.successDark,
|
|
69
|
+
secondaryForeground: d.neutral.gray975,
|
|
70
|
+
muted: d.neutral.gray990,
|
|
71
|
+
mutedForeground: d.neutral.gray400,
|
|
72
|
+
accent: d.neutral.gray800,
|
|
73
|
+
accentForeground: d.neutral.white,
|
|
74
|
+
destructive: d.semantic.destructiveDark,
|
|
75
|
+
destructiveForeground: d.neutral.white,
|
|
76
|
+
border: d.neutral.gray700,
|
|
77
|
+
input: d.neutral.gray700,
|
|
78
|
+
ring: "hsl(0 0% 90%)",
|
|
79
|
+
radius: "0.5rem"
|
|
80
|
+
}
|
|
81
|
+
}, p = {
|
|
82
|
+
px: "1px",
|
|
83
|
+
0: "0",
|
|
84
|
+
.5: "0.125rem",
|
|
85
|
+
1: "0.25rem",
|
|
86
|
+
1.5: "0.375rem",
|
|
87
|
+
2: "0.5rem",
|
|
88
|
+
2.5: "0.625rem",
|
|
89
|
+
3: "0.75rem",
|
|
90
|
+
3.5: "0.875rem",
|
|
91
|
+
4: "1rem",
|
|
92
|
+
5: "1.25rem",
|
|
93
|
+
6: "1.5rem",
|
|
94
|
+
7: "1.75rem",
|
|
95
|
+
8: "2rem",
|
|
96
|
+
9: "2.25rem",
|
|
97
|
+
10: "2.5rem",
|
|
98
|
+
12: "3rem",
|
|
99
|
+
14: "3.5rem",
|
|
100
|
+
16: "4rem",
|
|
101
|
+
20: "5rem",
|
|
102
|
+
24: "6rem",
|
|
103
|
+
32: "8rem",
|
|
104
|
+
40: "10rem",
|
|
105
|
+
48: "12rem",
|
|
106
|
+
56: "14rem",
|
|
107
|
+
64: "16rem"
|
|
108
|
+
}, m = {
|
|
109
|
+
none: "0",
|
|
110
|
+
sm: "calc(var(--radius) - 4px)",
|
|
111
|
+
md: "calc(var(--radius) - 2px)",
|
|
112
|
+
lg: "var(--radius)",
|
|
113
|
+
xl: "calc(var(--radius) + 4px)",
|
|
114
|
+
"2xl": "calc(var(--radius) + 8px)",
|
|
115
|
+
full: "9999px"
|
|
116
|
+
}, h = {
|
|
117
|
+
none: 0,
|
|
118
|
+
sm: 4,
|
|
119
|
+
md: 6,
|
|
120
|
+
lg: 8,
|
|
121
|
+
xl: 12,
|
|
122
|
+
"2xl": 16,
|
|
123
|
+
full: 9999
|
|
124
|
+
}, g = {
|
|
125
|
+
fontFamily: {
|
|
126
|
+
sans: "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
|
127
|
+
mono: "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace"
|
|
128
|
+
},
|
|
129
|
+
fontSize: {
|
|
130
|
+
xs: "0.75rem",
|
|
131
|
+
sm: "0.875rem",
|
|
132
|
+
base: "1rem",
|
|
133
|
+
lg: "1.125rem",
|
|
134
|
+
xl: "1.25rem",
|
|
135
|
+
"2xl": "1.5rem",
|
|
136
|
+
"3xl": "1.875rem",
|
|
137
|
+
"4xl": "2.25rem",
|
|
138
|
+
"5xl": "3rem"
|
|
139
|
+
},
|
|
140
|
+
fontWeight: {
|
|
141
|
+
normal: "400",
|
|
142
|
+
medium: "500",
|
|
143
|
+
semibold: "600",
|
|
144
|
+
bold: "700"
|
|
145
|
+
},
|
|
146
|
+
lineHeight: {
|
|
147
|
+
none: "1",
|
|
148
|
+
tight: "1.25",
|
|
149
|
+
snug: "1.375",
|
|
150
|
+
normal: "1.5",
|
|
151
|
+
relaxed: "1.625",
|
|
152
|
+
loose: "2"
|
|
153
|
+
}
|
|
154
|
+
}, _ = {
|
|
155
|
+
none: "none",
|
|
156
|
+
sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
157
|
+
default: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
158
|
+
md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
159
|
+
lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
160
|
+
xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
|
|
161
|
+
"2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
|
|
162
|
+
inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
|
|
163
|
+
}, v = { theme: { extend: {
|
|
164
|
+
colors: {
|
|
165
|
+
background: "hsl(var(--background) / <alpha-value>)",
|
|
166
|
+
foreground: "hsl(var(--foreground) / <alpha-value>)",
|
|
167
|
+
card: {
|
|
168
|
+
DEFAULT: "hsl(var(--card) / <alpha-value>)",
|
|
169
|
+
foreground: "hsl(var(--card-foreground) / <alpha-value>)"
|
|
170
|
+
},
|
|
171
|
+
popover: {
|
|
172
|
+
DEFAULT: "hsl(var(--popover) / <alpha-value>)",
|
|
173
|
+
foreground: "hsl(var(--popover-foreground) / <alpha-value>)"
|
|
174
|
+
},
|
|
175
|
+
primary: {
|
|
176
|
+
DEFAULT: "hsl(var(--primary) / <alpha-value>)",
|
|
177
|
+
foreground: "hsl(var(--primary-foreground) / <alpha-value>)"
|
|
178
|
+
},
|
|
179
|
+
secondary: {
|
|
180
|
+
DEFAULT: "hsl(var(--secondary) / <alpha-value>)",
|
|
181
|
+
foreground: "hsl(var(--secondary-foreground) / <alpha-value>)"
|
|
182
|
+
},
|
|
183
|
+
muted: {
|
|
184
|
+
DEFAULT: "hsl(var(--muted) / <alpha-value>)",
|
|
185
|
+
foreground: "hsl(var(--muted-foreground) / <alpha-value>)"
|
|
186
|
+
},
|
|
187
|
+
accent: {
|
|
188
|
+
DEFAULT: "hsl(var(--accent) / <alpha-value>)",
|
|
189
|
+
foreground: "hsl(var(--accent-foreground) / <alpha-value>)"
|
|
190
|
+
},
|
|
191
|
+
destructive: {
|
|
192
|
+
DEFAULT: "hsl(var(--destructive) / <alpha-value>)",
|
|
193
|
+
foreground: "hsl(var(--destructive-foreground) / <alpha-value>)"
|
|
194
|
+
},
|
|
195
|
+
border: "hsl(var(--border) / <alpha-value>)",
|
|
196
|
+
input: "hsl(var(--input) / <alpha-value>)",
|
|
197
|
+
ring: "hsl(var(--ring) / <alpha-value>)",
|
|
198
|
+
brand: {
|
|
199
|
+
blue: "hsl(var(--brand-blue) / <alpha-value>)",
|
|
200
|
+
green: "hsl(var(--brand-green) / <alpha-value>)",
|
|
201
|
+
"floral-white": "hsl(var(--brand-floral-white) / <alpha-value>)"
|
|
202
|
+
},
|
|
203
|
+
neutral: {
|
|
204
|
+
white: "hsl(var(--neutral-white) / <alpha-value>)",
|
|
205
|
+
black: "hsl(var(--neutral-black) / <alpha-value>)",
|
|
206
|
+
gray50: "hsl(var(--neutral-gray50) / <alpha-value>)",
|
|
207
|
+
gray100: "hsl(var(--neutral-gray100) / <alpha-value>)",
|
|
208
|
+
gray200: "hsl(var(--neutral-gray200) / <alpha-value>)",
|
|
209
|
+
gray300: "hsl(var(--neutral-gray300) / <alpha-value>)",
|
|
210
|
+
gray400: "hsl(var(--neutral-gray400) / <alpha-value>)",
|
|
211
|
+
gray500: "hsl(var(--neutral-gray500) / <alpha-value>)",
|
|
212
|
+
gray600: "hsl(var(--neutral-gray600) / <alpha-value>)",
|
|
213
|
+
gray700: "hsl(var(--neutral-gray700) / <alpha-value>)",
|
|
214
|
+
gray800: "hsl(var(--neutral-gray800) / <alpha-value>)",
|
|
215
|
+
gray900: "hsl(var(--neutral-gray900) / <alpha-value>)",
|
|
216
|
+
gray950: "hsl(var(--neutral-gray950) / <alpha-value>)",
|
|
217
|
+
gray975: "hsl(var(--neutral-gray975) / <alpha-value>)",
|
|
218
|
+
gray990: "hsl(var(--neutral-gray990) / <alpha-value>)"
|
|
219
|
+
},
|
|
220
|
+
semantic: {
|
|
221
|
+
success: "hsl(var(--semantic-success) / <alpha-value>)",
|
|
222
|
+
"success-dark": "hsl(var(--semantic-success-dark) / <alpha-value>)",
|
|
223
|
+
destructive: "hsl(var(--semantic-destructive) / <alpha-value>)",
|
|
224
|
+
"destructive-dark": "hsl(var(--semantic-destructive-dark) / <alpha-value>)"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
borderRadius: {
|
|
228
|
+
lg: "var(--radius)",
|
|
229
|
+
md: "calc(var(--radius) - 2px)",
|
|
230
|
+
sm: "calc(var(--radius) - 4px)",
|
|
231
|
+
xl: "calc(var(--radius) + 4px)",
|
|
232
|
+
"2xl": "calc(var(--radius) + 8px)"
|
|
233
|
+
},
|
|
234
|
+
boxShadow: {
|
|
235
|
+
sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
236
|
+
DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
237
|
+
md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
238
|
+
lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
239
|
+
xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
|
|
240
|
+
"2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
|
|
241
|
+
inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
|
|
242
|
+
},
|
|
243
|
+
keyframes: {
|
|
244
|
+
"accordion-down": {
|
|
245
|
+
from: { height: "0" },
|
|
246
|
+
to: { height: "var(--radix-accordion-content-height)" }
|
|
247
|
+
},
|
|
248
|
+
"accordion-up": {
|
|
249
|
+
from: { height: "var(--radix-accordion-content-height)" },
|
|
250
|
+
to: { height: "0" }
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
animation: {
|
|
254
|
+
"accordion-down": "accordion-down 0.2s ease-out",
|
|
255
|
+
"accordion-up": "accordion-up 0.2s ease-out"
|
|
256
|
+
}
|
|
257
|
+
} } }, y = {
|
|
258
|
+
palette: d,
|
|
259
|
+
theme: f
|
|
260
|
+
};
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region packages/ui-web/src/hooks/use-theme.ts
|
|
263
|
+
function b() {
|
|
264
|
+
let e = u(), { resolvedTheme: t } = e, n = t === "dark" ? f.dark : f.light;
|
|
265
|
+
return {
|
|
266
|
+
...e,
|
|
267
|
+
tokens: n
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
//#endregion
|
|
271
|
+
//#region packages/ui-web/src/theme-toggle.tsx
|
|
272
|
+
var x = r();
|
|
273
|
+
function S({ variant: r = "binary", onThemeChange: u, customTheme: d, className: f }) {
|
|
274
|
+
let { theme: p, setTheme: m, resolvedTheme: h } = b(), g = d ?? p, _ = (d || h) === "dark", v = g === "system", y = (e) => {
|
|
275
|
+
u ? u(e) : m(e);
|
|
276
|
+
}, S = () => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
|
|
277
|
+
/* @__PURE__ */ (0, x.jsx)(n, { className: i("h-[1.2rem] w-[1.2rem] transition-all", !v && !_ ? "scale-100 rotate-0" : "scale-0 -rotate-90") }),
|
|
278
|
+
/* @__PURE__ */ (0, x.jsx)(t, { className: i("absolute h-[1.2rem] w-[1.2rem] transition-all", !v && _ ? "scale-100 rotate-0" : "scale-0 rotate-90") }),
|
|
279
|
+
/* @__PURE__ */ (0, x.jsx)(e, { className: i("absolute h-[1.2rem] w-[1.2rem] transition-all", v ? "scale-100 rotate-0" : "scale-0 rotate-90") }),
|
|
280
|
+
/* @__PURE__ */ (0, x.jsx)("span", {
|
|
281
|
+
className: "sr-only",
|
|
282
|
+
children: "Toggle theme"
|
|
283
|
+
})
|
|
284
|
+
] });
|
|
285
|
+
return r === "ternary" ? /* @__PURE__ */ (0, x.jsxs)(o, { children: [/* @__PURE__ */ (0, x.jsx)(l, {
|
|
286
|
+
asChild: !0,
|
|
287
|
+
children: /* @__PURE__ */ (0, x.jsx)(a, {
|
|
288
|
+
variant: "ghost",
|
|
289
|
+
size: "icon",
|
|
290
|
+
className: i("relative h-9 w-9", f),
|
|
291
|
+
children: /* @__PURE__ */ (0, x.jsx)(S, {})
|
|
292
|
+
})
|
|
293
|
+
}), /* @__PURE__ */ (0, x.jsxs)(s, {
|
|
294
|
+
align: "end",
|
|
295
|
+
children: [
|
|
296
|
+
/* @__PURE__ */ (0, x.jsxs)(c, {
|
|
297
|
+
onClick: () => y("light"),
|
|
298
|
+
children: [/* @__PURE__ */ (0, x.jsx)(n, { className: "mr-2 h-4 w-4" }), /* @__PURE__ */ (0, x.jsx)("span", { children: "Light" })]
|
|
299
|
+
}),
|
|
300
|
+
/* @__PURE__ */ (0, x.jsxs)(c, {
|
|
301
|
+
onClick: () => y("dark"),
|
|
302
|
+
children: [/* @__PURE__ */ (0, x.jsx)(t, { className: "mr-2 h-4 w-4" }), /* @__PURE__ */ (0, x.jsx)("span", { children: "Dark" })]
|
|
303
|
+
}),
|
|
304
|
+
/* @__PURE__ */ (0, x.jsxs)(c, {
|
|
305
|
+
onClick: () => y("system"),
|
|
306
|
+
children: [/* @__PURE__ */ (0, x.jsx)(e, { className: "mr-2 h-4 w-4" }), /* @__PURE__ */ (0, x.jsx)("span", { children: "System" })]
|
|
307
|
+
})
|
|
308
|
+
]
|
|
309
|
+
})] }) : /* @__PURE__ */ (0, x.jsx)(a, {
|
|
310
|
+
variant: "ghost",
|
|
311
|
+
size: "icon",
|
|
312
|
+
className: i("relative h-9 w-9", f),
|
|
313
|
+
onClick: () => y(g === "dark" ? "light" : "dark"),
|
|
314
|
+
"aria-label": "Toggle theme",
|
|
315
|
+
children: /* @__PURE__ */ (0, x.jsx)(S, {})
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
//#endregion
|
|
319
|
+
export { _ as a, h as c, d, v as i, p as l, b as n, g as o, y as r, m as s, S as t, f as u };
|
|
320
|
+
|
|
321
|
+
//# sourceMappingURL=theme-toggle-B6QS2aTS.mjs.map
|