@appica/ui-react 1.0.0
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/LICENSE +21 -0
- package/README.md +91 -0
- package/dist/components/accordion/accordion.d.ts +29 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/accordion.js +210 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/alert/alert.d.ts +32 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/alert.js +203 -0
- package/dist/components/alert/alert.js.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts +28 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.js +127 -0
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/components/autocomplete/autocomplete.d.ts +48 -0
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -0
- package/dist/components/autocomplete/autocomplete.js +299 -0
- package/dist/components/autocomplete/autocomplete.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +29 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/avatar.js +115 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/background-pattern/background-pattern-interactive.d.ts +10 -0
- package/dist/components/background-pattern/background-pattern-interactive.d.ts.map +1 -0
- package/dist/components/background-pattern/background-pattern-interactive.js +72 -0
- package/dist/components/background-pattern/background-pattern-interactive.js.map +1 -0
- package/dist/components/background-pattern/background-pattern-shared.d.ts +12 -0
- package/dist/components/background-pattern/background-pattern-shared.d.ts.map +1 -0
- package/dist/components/background-pattern/background-pattern-shared.js +73 -0
- package/dist/components/background-pattern/background-pattern-shared.js.map +1 -0
- package/dist/components/background-pattern/background-pattern.d.ts +23 -0
- package/dist/components/background-pattern/background-pattern.d.ts.map +1 -0
- package/dist/components/background-pattern/background-pattern.js +49 -0
- package/dist/components/background-pattern/background-pattern.js.map +1 -0
- package/dist/components/background-pattern/index.d.ts +4 -0
- package/dist/components/background-pattern/index.d.ts.map +1 -0
- package/dist/components/background-pattern/index.js +3 -0
- package/dist/components/background-pattern/index.js.map +1 -0
- package/dist/components/badge/badge.d.ts +17 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/badge.js +134 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +24 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.js +106 -0
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/components/button/button-variants.d.ts +6 -0
- package/dist/components/button/button-variants.d.ts.map +1 -0
- package/dist/components/button/button-variants.js +69 -0
- package/dist/components/button/button-variants.js.map +1 -0
- package/dist/components/button/button.d.ts +10 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.js +26 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +3 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button-group/button-group-context.d.ts +13 -0
- package/dist/components/button-group/button-group-context.d.ts.map +1 -0
- package/dist/components/button-group/button-group-context.js +7 -0
- package/dist/components/button-group/button-group-context.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +12 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -0
- package/dist/components/button-group/button-group.js +45 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/calendar/calendar.d.ts +14 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/calendar.js +228 -0
- package/dist/components/calendar/calendar.js.map +1 -0
- package/dist/components/carousel/carousel.d.ts +128 -0
- package/dist/components/carousel/carousel.d.ts.map +1 -0
- package/dist/components/carousel/carousel.js +795 -0
- package/dist/components/carousel/carousel.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +7 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.js +128 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +9 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.js +18 -0
- package/dist/components/checkbox-group/checkbox-group.js.map +1 -0
- package/dist/components/chip/chip.d.ts +36 -0
- package/dist/components/chip/chip.d.ts.map +1 -0
- package/dist/components/chip/chip.js +159 -0
- package/dist/components/chip/chip.js.map +1 -0
- package/dist/components/collapsible/collapsible.d.ts +11 -0
- package/dist/components/collapsible/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.js +41 -0
- package/dist/components/collapsible/collapsible.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +57 -0
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/combobox.js +456 -0
- package/dist/components/combobox/combobox.js.map +1 -0
- package/dist/components/context-menu/context-menu.d.ts +43 -0
- package/dist/components/context-menu/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu.js +243 -0
- package/dist/components/context-menu/context-menu.js.map +1 -0
- package/dist/components/copy-button/copy-button.d.ts +15 -0
- package/dist/components/copy-button/copy-button.d.ts.map +1 -0
- package/dist/components/copy-button/copy-button.js +126 -0
- package/dist/components/copy-button/copy-button.js.map +1 -0
- package/dist/components/countdown/countdown.d.ts +26 -0
- package/dist/components/countdown/countdown.d.ts.map +1 -0
- package/dist/components/countdown/countdown.js +111 -0
- package/dist/components/countdown/countdown.js.map +1 -0
- package/dist/components/date-field/date-field.d.ts +25 -0
- package/dist/components/date-field/date-field.d.ts.map +1 -0
- package/dist/components/date-field/date-field.js +403 -0
- package/dist/components/date-field/date-field.js.map +1 -0
- package/dist/components/date-picker/date-picker.d.ts +58 -0
- package/dist/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.js +449 -0
- package/dist/components/date-picker/date-picker.js.map +1 -0
- package/dist/components/dialog/dialog.d.ts +30 -0
- package/dist/components/dialog/dialog.d.ts.map +1 -0
- package/dist/components/dialog/dialog.js +138 -0
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/drawer/drawer.d.ts +39 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/drawer.js +270 -0
- package/dist/components/drawer/drawer.js.map +1 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +43 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu/dropdown-menu.js +235 -0
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -0
- package/dist/components/field/field.d.ts +15 -0
- package/dist/components/field/field.d.ts.map +1 -0
- package/dist/components/field/field.js +62 -0
- package/dist/components/field/field.js.map +1 -0
- package/dist/components/fieldset/fieldset.d.ts +9 -0
- package/dist/components/fieldset/fieldset.d.ts.map +1 -0
- package/dist/components/fieldset/fieldset.js +20 -0
- package/dist/components/fieldset/fieldset.js.map +1 -0
- package/dist/components/form/form.d.ts +7 -0
- package/dist/components/form/form.d.ts.map +1 -0
- package/dist/components/form/form.js +9 -0
- package/dist/components/form/form.js.map +1 -0
- package/dist/components/gradient-glow/gradient-glow.d.ts +21 -0
- package/dist/components/gradient-glow/gradient-glow.d.ts.map +1 -0
- package/dist/components/gradient-glow/gradient-glow.js +99 -0
- package/dist/components/gradient-glow/gradient-glow.js.map +1 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +3 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/input-variants.d.ts +7 -0
- package/dist/components/input/input-variants.d.ts.map +1 -0
- package/dist/components/input/input-variants.js +52 -0
- package/dist/components/input/input-variants.js.map +1 -0
- package/dist/components/input/input.d.ts +19 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/input/input.js +96 -0
- package/dist/components/input/input.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +13 -0
- package/dist/components/kbd/kbd.d.ts.map +1 -0
- package/dist/components/kbd/kbd.js +34 -0
- package/dist/components/kbd/kbd.js.map +1 -0
- package/dist/components/loader/loader.d.ts +10 -0
- package/dist/components/loader/loader.d.ts.map +1 -0
- package/dist/components/loader/loader.js +137 -0
- package/dist/components/loader/loader.js.map +1 -0
- package/dist/components/menubar/menubar.d.ts +44 -0
- package/dist/components/menubar/menubar.d.ts.map +1 -0
- package/dist/components/menubar/menubar.js +114 -0
- package/dist/components/menubar/menubar.js.map +1 -0
- package/dist/components/meter/meter.d.ts +24 -0
- package/dist/components/meter/meter.d.ts.map +1 -0
- package/dist/components/meter/meter.js +105 -0
- package/dist/components/meter/meter.js.map +1 -0
- package/dist/components/navigation/index.d.ts +4 -0
- package/dist/components/navigation/index.d.ts.map +1 -0
- package/dist/components/navigation/index.js +4 -0
- package/dist/components/navigation/index.js.map +1 -0
- package/dist/components/navigation/navigation-context.d.ts +16 -0
- package/dist/components/navigation/navigation-context.d.ts.map +1 -0
- package/dist/components/navigation/navigation-context.js +10 -0
- package/dist/components/navigation/navigation-context.js.map +1 -0
- package/dist/components/navigation/navigation-link-variants.d.ts +9 -0
- package/dist/components/navigation/navigation-link-variants.d.ts.map +1 -0
- package/dist/components/navigation/navigation-link-variants.js +189 -0
- package/dist/components/navigation/navigation-link-variants.js.map +1 -0
- package/dist/components/navigation/navigation-link.d.ts +20 -0
- package/dist/components/navigation/navigation-link.d.ts.map +1 -0
- package/dist/components/navigation/navigation-link.js +54 -0
- package/dist/components/navigation/navigation-link.js.map +1 -0
- package/dist/components/navigation/navigation.d.ts +21 -0
- package/dist/components/navigation/navigation.d.ts.map +1 -0
- package/dist/components/navigation/navigation.js +41 -0
- package/dist/components/navigation/navigation.js.map +1 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +41 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts.map +1 -0
- package/dist/components/navigation-menu/navigation-menu.js +329 -0
- package/dist/components/navigation-menu/navigation-menu.js.map +1 -0
- package/dist/components/number-field/number-field.d.ts +17 -0
- package/dist/components/number-field/number-field.d.ts.map +1 -0
- package/dist/components/number-field/number-field.js +270 -0
- package/dist/components/number-field/number-field.js.map +1 -0
- package/dist/components/otp-field/otp-field.d.ts +19 -0
- package/dist/components/otp-field/otp-field.d.ts.map +1 -0
- package/dist/components/otp-field/otp-field.js +66 -0
- package/dist/components/otp-field/otp-field.js.map +1 -0
- package/dist/components/pagination/pagination.d.ts +29 -0
- package/dist/components/pagination/pagination.d.ts.map +1 -0
- package/dist/components/pagination/pagination.js +92 -0
- package/dist/components/pagination/pagination.js.map +1 -0
- package/dist/components/popover/popover.d.ts +22 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/popover/popover.js +108 -0
- package/dist/components/popover/popover.js.map +1 -0
- package/dist/components/preview-card/preview-card.d.ts +16 -0
- package/dist/components/preview-card/preview-card.d.ts.map +1 -0
- package/dist/components/preview-card/preview-card.js +92 -0
- package/dist/components/preview-card/preview-card.js.map +1 -0
- package/dist/components/progress/progress.d.ts +18 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/progress/progress.js +134 -0
- package/dist/components/progress/progress.js.map +1 -0
- package/dist/components/radio/radio.d.ts +7 -0
- package/dist/components/radio/radio.d.ts.map +1 -0
- package/dist/components/radio/radio.js +73 -0
- package/dist/components/radio/radio.js.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +9 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group/radio-group.js +19 -0
- package/dist/components/radio-group/radio-group.js.map +1 -0
- package/dist/components/scroll-area/scroll-area.d.ts +14 -0
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area/scroll-area.js +87 -0
- package/dist/components/scroll-area/scroll-area.js.map +1 -0
- package/dist/components/select/select.d.ts +36 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/select/select.js +345 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/separator/separator.d.ts +10 -0
- package/dist/components/separator/separator.d.ts.map +1 -0
- package/dist/components/separator/separator.js +81 -0
- package/dist/components/separator/separator.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +9 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.js +27 -0
- package/dist/components/skeleton/skeleton.js.map +1 -0
- package/dist/components/slider/slider.d.ts +11 -0
- package/dist/components/slider/slider.d.ts.map +1 -0
- package/dist/components/slider/slider.js +187 -0
- package/dist/components/slider/slider.js.map +1 -0
- package/dist/components/sparkline/sparkline.d.ts +39 -0
- package/dist/components/sparkline/sparkline.d.ts.map +1 -0
- package/dist/components/sparkline/sparkline.js +356 -0
- package/dist/components/sparkline/sparkline.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +10 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/spinner/spinner.js +179 -0
- package/dist/components/spinner/spinner.js.map +1 -0
- package/dist/components/switch/switch.d.ts +33 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/switch/switch.js +137 -0
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/table/table.d.ts +34 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/table/table.js +108 -0
- package/dist/components/table/table.js.map +1 -0
- package/dist/components/tabs/tabs.d.ts +35 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.js +192 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/text-animate/text-animate.d.ts +31 -0
- package/dist/components/text-animate/text-animate.d.ts.map +1 -0
- package/dist/components/text-animate/text-animate.js +230 -0
- package/dist/components/text-animate/text-animate.js.map +1 -0
- package/dist/components/textarea/textarea.d.ts +17 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -0
- package/dist/components/textarea/textarea.js +117 -0
- package/dist/components/textarea/textarea.js.map +1 -0
- package/dist/components/thumbnail/thumbnail.d.ts +26 -0
- package/dist/components/thumbnail/thumbnail.d.ts.map +1 -0
- package/dist/components/thumbnail/thumbnail.js +116 -0
- package/dist/components/thumbnail/thumbnail.js.map +1 -0
- package/dist/components/time-field/time-field.d.ts +25 -0
- package/dist/components/time-field/time-field.d.ts.map +1 -0
- package/dist/components/time-field/time-field.js +488 -0
- package/dist/components/time-field/time-field.js.map +1 -0
- package/dist/components/toast/toast.d.ts +59 -0
- package/dist/components/toast/toast.d.ts.map +1 -0
- package/dist/components/toast/toast.js +239 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toc/toc.d.ts +21 -0
- package/dist/components/toc/toc.d.ts.map +1 -0
- package/dist/components/toc/toc.js +185 -0
- package/dist/components/toc/toc.js.map +1 -0
- package/dist/components/toggle/toggle.d.ts +7 -0
- package/dist/components/toggle/toggle.d.ts.map +1 -0
- package/dist/components/toggle/toggle.js +9 -0
- package/dist/components/toggle/toggle.js.map +1 -0
- package/dist/components/toggle-group/toggle-group.d.ts +7 -0
- package/dist/components/toggle-group/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle-group.js +21 -0
- package/dist/components/toggle-group/toggle-group.js.map +1 -0
- package/dist/components/toolbar/toolbar.d.ts +23 -0
- package/dist/components/toolbar/toolbar.d.ts.map +1 -0
- package/dist/components/toolbar/toolbar.js +56 -0
- package/dist/components/toolbar/toolbar.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +16 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.js +64 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/floating.d.ts +47 -0
- package/dist/floating.d.ts.map +1 -0
- package/dist/floating.js +35 -0
- package/dist/floating.js.map +1 -0
- package/dist/hooks/use-direction.d.ts +2 -0
- package/dist/hooks/use-direction.d.ts.map +1 -0
- package/dist/hooks/use-direction.js +3 -0
- package/dist/hooks/use-direction.js.map +1 -0
- package/dist/hooks/use-dismissible.d.ts +16 -0
- package/dist/hooks/use-dismissible.d.ts.map +1 -0
- package/dist/hooks/use-dismissible.js +17 -0
- package/dist/hooks/use-dismissible.js.map +1 -0
- package/dist/hooks/use-local-storage.d.ts +24 -0
- package/dist/hooks/use-local-storage.d.ts.map +1 -0
- package/dist/hooks/use-local-storage.js +127 -0
- package/dist/hooks/use-local-storage.js.map +1 -0
- package/dist/hooks/use-media-query.d.ts +20 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +19 -0
- package/dist/hooks/use-media-query.js.map +1 -0
- package/dist/hooks/use-reduced-motion.d.ts +7 -0
- package/dist/hooks/use-reduced-motion.d.ts.map +1 -0
- package/dist/hooks/use-reduced-motion.js +13 -0
- package/dist/hooks/use-reduced-motion.js.map +1 -0
- package/dist/hooks/use-theme.d.ts +11 -0
- package/dist/hooks/use-theme.d.ts.map +1 -0
- package/dist/hooks/use-theme.js +9 -0
- package/dist/hooks/use-theme.js.map +1 -0
- package/dist/index.d.ts +74 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +80 -0
- package/dist/index.js.map +1 -0
- package/dist/modal.d.ts +42 -0
- package/dist/modal.d.ts.map +1 -0
- package/dist/modal.js +18 -0
- package/dist/modal.js.map +1 -0
- package/dist/providers/direction-provider.d.ts +21 -0
- package/dist/providers/direction-provider.d.ts.map +1 -0
- package/dist/providers/direction-provider.js +9 -0
- package/dist/providers/direction-provider.js.map +1 -0
- package/dist/providers/reduced-motion-provider.d.ts +30 -0
- package/dist/providers/reduced-motion-provider.d.ts.map +1 -0
- package/dist/providers/reduced-motion-provider.js +27 -0
- package/dist/providers/reduced-motion-provider.js.map +1 -0
- package/dist/providers/theme-provider/index.d.ts +5 -0
- package/dist/providers/theme-provider/index.d.ts.map +1 -0
- package/dist/providers/theme-provider/index.js +3 -0
- package/dist/providers/theme-provider/index.js.map +1 -0
- package/dist/providers/theme-provider/theme-provider.d.ts +39 -0
- package/dist/providers/theme-provider/theme-provider.d.ts.map +1 -0
- package/dist/providers/theme-provider/theme-provider.js +118 -0
- package/dist/providers/theme-provider/theme-provider.js.map +1 -0
- package/dist/providers/theme-provider/theme-script.d.ts +28 -0
- package/dist/providers/theme-provider/theme-script.d.ts.map +1 -0
- package/dist/providers/theme-provider/theme-script.js +59 -0
- package/dist/providers/theme-provider/theme-script.js.map +1 -0
- package/dist/utils.d.ts +17 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +51 -0
- package/dist/utils.js.map +1 -0
- package/package.json +479 -0
- package/src/components/accordion/accordion.test.tsx +220 -0
- package/src/components/accordion/accordion.tsx +269 -0
- package/src/components/alert/alert.test.tsx +188 -0
- package/src/components/alert/alert.tsx +243 -0
- package/src/components/alert-dialog/alert-dialog.test.tsx +141 -0
- package/src/components/alert-dialog/alert-dialog.tsx +179 -0
- package/src/components/autocomplete/autocomplete.test.tsx +384 -0
- package/src/components/autocomplete/autocomplete.tsx +442 -0
- package/src/components/avatar/avatar.test.tsx +368 -0
- package/src/components/avatar/avatar.tsx +142 -0
- package/src/components/background-pattern/background-pattern-interactive.tsx +93 -0
- package/src/components/background-pattern/background-pattern-shared.tsx +96 -0
- package/src/components/background-pattern/background-pattern.test.tsx +97 -0
- package/src/components/background-pattern/background-pattern.tsx +67 -0
- package/src/components/background-pattern/index.ts +3 -0
- package/src/components/badge/badge.test.tsx +58 -0
- package/src/components/badge/badge.tsx +149 -0
- package/src/components/breadcrumb/breadcrumb.test.tsx +174 -0
- package/src/components/breadcrumb/breadcrumb.tsx +146 -0
- package/src/components/button/button-variants.ts +69 -0
- package/src/components/button/button.test.tsx +79 -0
- package/src/components/button/button.tsx +28 -0
- package/src/components/button/index.ts +2 -0
- package/src/components/button-group/button-group-context.ts +18 -0
- package/src/components/button-group/button-group.test.tsx +223 -0
- package/src/components/button-group/button-group.tsx +59 -0
- package/src/components/calendar/calendar.test.tsx +69 -0
- package/src/components/calendar/calendar.tsx +295 -0
- package/src/components/carousel/carousel.test.tsx +493 -0
- package/src/components/carousel/carousel.tsx +1003 -0
- package/src/components/checkbox/checkbox.test.tsx +100 -0
- package/src/components/checkbox/checkbox.tsx +154 -0
- package/src/components/checkbox-group/checkbox-group.test.tsx +86 -0
- package/src/components/checkbox-group/checkbox-group.tsx +21 -0
- package/src/components/chip/chip.test.tsx +242 -0
- package/src/components/chip/chip.tsx +234 -0
- package/src/components/collapsible/collapsible.test.tsx +126 -0
- package/src/components/collapsible/collapsible.tsx +47 -0
- package/src/components/combobox/combobox.test.tsx +410 -0
- package/src/components/combobox/combobox.tsx +598 -0
- package/src/components/context-menu/context-menu.test.tsx +226 -0
- package/src/components/context-menu/context-menu.tsx +345 -0
- package/src/components/copy-button/copy-button.test.tsx +147 -0
- package/src/components/copy-button/copy-button.tsx +141 -0
- package/src/components/countdown/countdown.test.tsx +130 -0
- package/src/components/countdown/countdown.tsx +170 -0
- package/src/components/date-field/date-field.test.tsx +373 -0
- package/src/components/date-field/date-field.tsx +512 -0
- package/src/components/date-picker/date-picker.test.tsx +291 -0
- package/src/components/date-picker/date-picker.tsx +572 -0
- package/src/components/dialog/dialog.test.tsx +173 -0
- package/src/components/dialog/dialog.tsx +190 -0
- package/src/components/drawer/drawer.test.tsx +191 -0
- package/src/components/drawer/drawer.tsx +365 -0
- package/src/components/dropdown-menu/dropdown-menu.test.tsx +227 -0
- package/src/components/dropdown-menu/dropdown-menu.tsx +341 -0
- package/src/components/field/field.test.tsx +84 -0
- package/src/components/field/field.tsx +71 -0
- package/src/components/fieldset/fieldset.test.tsx +62 -0
- package/src/components/fieldset/fieldset.tsx +24 -0
- package/src/components/form/form.test.tsx +61 -0
- package/src/components/form/form.tsx +11 -0
- package/src/components/gradient-glow/gradient-glow.test.tsx +110 -0
- package/src/components/gradient-glow/gradient-glow.tsx +132 -0
- package/src/components/input/index.ts +2 -0
- package/src/components/input/input-variants.ts +52 -0
- package/src/components/input/input.test.tsx +118 -0
- package/src/components/input/input.tsx +120 -0
- package/src/components/kbd/kbd.test.tsx +119 -0
- package/src/components/kbd/kbd.tsx +48 -0
- package/src/components/loader/loader.test.tsx +57 -0
- package/src/components/loader/loader.tsx +163 -0
- package/src/components/menubar/menubar.test.tsx +162 -0
- package/src/components/menubar/menubar.tsx +226 -0
- package/src/components/meter/meter.test.tsx +172 -0
- package/src/components/meter/meter.tsx +144 -0
- package/src/components/navigation/index.ts +3 -0
- package/src/components/navigation/navigation-context.ts +24 -0
- package/src/components/navigation/navigation-link-variants.ts +197 -0
- package/src/components/navigation/navigation-link.tsx +90 -0
- package/src/components/navigation/navigation.test.tsx +253 -0
- package/src/components/navigation/navigation.tsx +74 -0
- package/src/components/navigation-menu/navigation-menu.test.tsx +258 -0
- package/src/components/navigation-menu/navigation-menu.tsx +410 -0
- package/src/components/number-field/number-field.test.tsx +224 -0
- package/src/components/number-field/number-field.tsx +310 -0
- package/src/components/otp-field/otp-field.test.tsx +113 -0
- package/src/components/otp-field/otp-field.tsx +105 -0
- package/src/components/pagination/pagination.test.tsx +147 -0
- package/src/components/pagination/pagination.tsx +139 -0
- package/src/components/popover/popover.test.tsx +135 -0
- package/src/components/popover/popover.tsx +134 -0
- package/src/components/preview-card/preview-card.test.tsx +99 -0
- package/src/components/preview-card/preview-card.tsx +103 -0
- package/src/components/progress/progress.test.tsx +109 -0
- package/src/components/progress/progress.tsx +151 -0
- package/src/components/radio/radio.test.tsx +141 -0
- package/src/components/radio/radio.tsx +94 -0
- package/src/components/radio-group/radio-group.test.tsx +80 -0
- package/src/components/radio-group/radio-group.tsx +22 -0
- package/src/components/scroll-area/scroll-area.test.tsx +133 -0
- package/src/components/scroll-area/scroll-area.tsx +101 -0
- package/src/components/select/select.test.tsx +251 -0
- package/src/components/select/select.tsx +446 -0
- package/src/components/separator/separator.test.tsx +46 -0
- package/src/components/separator/separator.tsx +95 -0
- package/src/components/skeleton/skeleton.test.tsx +55 -0
- package/src/components/skeleton/skeleton.tsx +33 -0
- package/src/components/slider/slider.test.tsx +123 -0
- package/src/components/slider/slider.tsx +262 -0
- package/src/components/sparkline/sparkline.test.tsx +249 -0
- package/src/components/sparkline/sparkline.tsx +446 -0
- package/src/components/spinner/spinner.test.tsx +57 -0
- package/src/components/spinner/spinner.tsx +219 -0
- package/src/components/switch/switch.test.tsx +100 -0
- package/src/components/switch/switch.tsx +166 -0
- package/src/components/table/table.test.tsx +175 -0
- package/src/components/table/table.tsx +157 -0
- package/src/components/tabs/tabs.test.tsx +165 -0
- package/src/components/tabs/tabs.tsx +246 -0
- package/src/components/text-animate/text-animate.test.tsx +125 -0
- package/src/components/text-animate/text-animate.tsx +354 -0
- package/src/components/textarea/textarea.test.tsx +188 -0
- package/src/components/textarea/textarea.tsx +144 -0
- package/src/components/thumbnail/thumbnail.test.tsx +217 -0
- package/src/components/thumbnail/thumbnail.tsx +139 -0
- package/src/components/time-field/time-field.test.tsx +376 -0
- package/src/components/time-field/time-field.tsx +625 -0
- package/src/components/toast/toast.test.tsx +277 -0
- package/src/components/toast/toast.tsx +377 -0
- package/src/components/toc/toc.test.tsx +197 -0
- package/src/components/toc/toc.tsx +233 -0
- package/src/components/toggle/toggle.test.tsx +109 -0
- package/src/components/toggle/toggle.tsx +10 -0
- package/src/components/toggle-group/toggle-group.test.tsx +95 -0
- package/src/components/toggle-group/toggle-group.tsx +21 -0
- package/src/components/toolbar/toolbar.test.tsx +78 -0
- package/src/components/toolbar/toolbar.tsx +77 -0
- package/src/components/tooltip/tooltip.test.tsx +100 -0
- package/src/components/tooltip/tooltip.tsx +78 -0
- package/src/floating.test.ts +40 -0
- package/src/floating.ts +103 -0
- package/src/globals.d.ts +34 -0
- package/src/hooks/use-direction.ts +3 -0
- package/src/hooks/use-dismissible.ts +33 -0
- package/src/hooks/use-local-storage.test.tsx +63 -0
- package/src/hooks/use-local-storage.ts +190 -0
- package/src/hooks/use-media-query.test.tsx +65 -0
- package/src/hooks/use-media-query.ts +38 -0
- package/src/hooks/use-reduced-motion.ts +17 -0
- package/src/hooks/use-theme.ts +16 -0
- package/src/index.ts +76 -0
- package/src/modal.test.ts +34 -0
- package/src/modal.ts +80 -0
- package/src/providers/direction-provider.test.tsx +20 -0
- package/src/providers/direction-provider.tsx +26 -0
- package/src/providers/reduced-motion-provider.test.tsx +42 -0
- package/src/providers/reduced-motion-provider.tsx +58 -0
- package/src/providers/theme-provider/index.ts +4 -0
- package/src/providers/theme-provider/theme-provider.test.tsx +97 -0
- package/src/providers/theme-provider/theme-provider.tsx +169 -0
- package/src/providers/theme-provider/theme-script.tsx +108 -0
- package/src/test/setup.ts +27 -0
- package/src/test/vitest-axe.d.ts +7 -0
- package/src/utils.test.tsx +63 -0
- package/src/utils.ts +57 -0
- package/styles.css +523 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export * from './components/accordion/accordion';
|
|
2
|
+
export * from './components/alert/alert';
|
|
3
|
+
export * from './components/alert-dialog/alert-dialog';
|
|
4
|
+
export * from './components/autocomplete/autocomplete';
|
|
5
|
+
export * from './components/avatar/avatar';
|
|
6
|
+
export * from './components/background-pattern/index';
|
|
7
|
+
export * from './components/badge/badge';
|
|
8
|
+
export * from './components/breadcrumb/breadcrumb';
|
|
9
|
+
export * from './components/button/index';
|
|
10
|
+
export * from './components/button-group/button-group';
|
|
11
|
+
export * from './components/calendar/calendar';
|
|
12
|
+
export * from './components/carousel/carousel';
|
|
13
|
+
export * from './components/checkbox/checkbox';
|
|
14
|
+
export * from './components/checkbox-group/checkbox-group';
|
|
15
|
+
export * from './components/chip/chip';
|
|
16
|
+
export * from './components/collapsible/collapsible';
|
|
17
|
+
export * from './components/combobox/combobox';
|
|
18
|
+
export * from './components/context-menu/context-menu';
|
|
19
|
+
export * from './components/copy-button/copy-button';
|
|
20
|
+
export * from './components/countdown/countdown';
|
|
21
|
+
export * from './components/date-field/date-field';
|
|
22
|
+
export * from './components/date-picker/date-picker';
|
|
23
|
+
export * from './components/dialog/dialog';
|
|
24
|
+
export * from './components/drawer/drawer';
|
|
25
|
+
export * from './components/dropdown-menu/dropdown-menu';
|
|
26
|
+
export * from './components/field/field';
|
|
27
|
+
export * from './components/fieldset/fieldset';
|
|
28
|
+
export * from './components/form/form';
|
|
29
|
+
export * from './components/gradient-glow/gradient-glow';
|
|
30
|
+
export * from './components/input/index';
|
|
31
|
+
export * from './components/kbd/kbd';
|
|
32
|
+
export * from './components/loader/loader';
|
|
33
|
+
export * from './components/menubar/menubar';
|
|
34
|
+
export * from './components/meter/meter';
|
|
35
|
+
export * from './components/navigation/index';
|
|
36
|
+
export * from './components/navigation-menu/navigation-menu';
|
|
37
|
+
export * from './components/number-field/number-field';
|
|
38
|
+
export * from './components/otp-field/otp-field';
|
|
39
|
+
export * from './components/pagination/pagination';
|
|
40
|
+
export * from './components/popover/popover';
|
|
41
|
+
export * from './components/preview-card/preview-card';
|
|
42
|
+
export * from './components/progress/progress';
|
|
43
|
+
export * from './components/radio/radio';
|
|
44
|
+
export * from './components/radio-group/radio-group';
|
|
45
|
+
export * from './components/scroll-area/scroll-area';
|
|
46
|
+
export * from './components/select/select';
|
|
47
|
+
export * from './components/separator/separator';
|
|
48
|
+
export * from './components/skeleton/skeleton';
|
|
49
|
+
export * from './components/slider/slider';
|
|
50
|
+
export * from './components/sparkline/sparkline';
|
|
51
|
+
export * from './components/spinner/spinner';
|
|
52
|
+
export * from './components/switch/switch';
|
|
53
|
+
export * from './components/table/table';
|
|
54
|
+
export * from './components/tabs/tabs';
|
|
55
|
+
export * from './components/text-animate/text-animate';
|
|
56
|
+
export * from './components/textarea/textarea';
|
|
57
|
+
export * from './components/thumbnail/thumbnail';
|
|
58
|
+
export * from './components/time-field/time-field';
|
|
59
|
+
export * from './components/toast/toast';
|
|
60
|
+
export * from './components/toc/toc';
|
|
61
|
+
export * from './components/toggle/toggle';
|
|
62
|
+
export * from './components/toggle-group/toggle-group';
|
|
63
|
+
export * from './components/toolbar/toolbar';
|
|
64
|
+
export * from './components/tooltip/tooltip';
|
|
65
|
+
export * from './hooks/use-direction';
|
|
66
|
+
export * from './hooks/use-dismissible';
|
|
67
|
+
export * from './hooks/use-local-storage';
|
|
68
|
+
export * from './hooks/use-media-query';
|
|
69
|
+
export * from './hooks/use-reduced-motion';
|
|
70
|
+
export * from './hooks/use-theme';
|
|
71
|
+
export * from './providers/direction-provider';
|
|
72
|
+
export * from './providers/reduced-motion-provider';
|
|
73
|
+
export * from './providers/theme-provider/index';
|
|
74
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,kCAAkC,CAAA;AAChD,cAAc,0BAA0B,CAAA;AACxC,cAAc,wCAAwC,CAAA;AACtD,cAAc,wCAAwC,CAAA;AACtD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uCAAuC,CAAA;AACrD,cAAc,0BAA0B,CAAA;AACxC,cAAc,oCAAoC,CAAA;AAClD,cAAc,2BAA2B,CAAA;AACzC,cAAc,wCAAwC,CAAA;AACtD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,4CAA4C,CAAA;AAC1D,cAAc,wBAAwB,CAAA;AACtC,cAAc,sCAAsC,CAAA;AACpD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,wCAAwC,CAAA;AACtD,cAAc,sCAAsC,CAAA;AACpD,cAAc,kCAAkC,CAAA;AAChD,cAAc,oCAAoC,CAAA;AAClD,cAAc,sCAAsC,CAAA;AACpD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0CAA0C,CAAA;AACxD,cAAc,0BAA0B,CAAA;AACxC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,wBAAwB,CAAA;AACtC,cAAc,0CAA0C,CAAA;AACxD,cAAc,0BAA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ion, AccordionContent, AccordionItem, AccordionTrigger } from './components/accordion/accordion.js';
|
|
2
|
+
export { Alert, AlertAction, AlertDescription, AlertIcon, AlertTitle } from './components/alert/alert.js';
|
|
3
|
+
export { AlertDialog, AlertDialogBody, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from './components/alert-dialog/alert-dialog.js';
|
|
4
|
+
export { Autocomplete, AutocompleteCollection, AutocompleteContent, AutocompleteEmpty, AutocompleteGroup, AutocompleteInput, AutocompleteItem, AutocompleteLabel, AutocompleteList, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue } from './components/autocomplete/autocomplete.js';
|
|
5
|
+
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarImage } from './components/avatar/avatar.js';
|
|
6
|
+
export { Badge } from './components/badge/badge.js';
|
|
7
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbSeparator } from './components/breadcrumb/breadcrumb.js';
|
|
8
|
+
export { ButtonGroup } from './components/button-group/button-group.js';
|
|
9
|
+
export { Calendar } from './components/calendar/calendar.js';
|
|
10
|
+
export { Carousel, CarouselContent, CarouselNext, CarouselPagination, CarouselPrev, CarouselProgress, CarouselSlide, useCarousel, useLinkedCarousels } from './components/carousel/carousel.js';
|
|
11
|
+
export { Checkbox } from './components/checkbox/checkbox.js';
|
|
12
|
+
export { CheckboxGroup } from './components/checkbox-group/checkbox-group.js';
|
|
13
|
+
export { Chip, ChipGroup } from './components/chip/chip.js';
|
|
14
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './components/collapsible/collapsible.js';
|
|
15
|
+
export { Combobox, ComboboxChip, ComboboxChips, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue } from './components/combobox/combobox.js';
|
|
16
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuGroupLabel, ContextMenuItem, ContextMenuLinkItem, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from './components/context-menu/context-menu.js';
|
|
17
|
+
export { CopyButton } from './components/copy-button/copy-button.js';
|
|
18
|
+
export { Countdown, CountdownSegment } from './components/countdown/countdown.js';
|
|
19
|
+
export { DateField } from './components/date-field/date-field.js';
|
|
20
|
+
export { DatePicker } from './components/date-picker/date-picker.js';
|
|
21
|
+
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from './components/dialog/dialog.js';
|
|
22
|
+
export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerIndent, DrawerIndentBackground, DrawerProvider, DrawerTitle, DrawerTrigger } from './components/drawer/drawer.js';
|
|
23
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuItem, DropdownMenuLinkItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './components/dropdown-menu/dropdown-menu.js';
|
|
24
|
+
export { Field, FieldDescription, FieldError, FieldLabel, FieldValidity } from './components/field/field.js';
|
|
25
|
+
export { Fieldset, FieldsetLegend } from './components/fieldset/fieldset.js';
|
|
26
|
+
export { Form } from './components/form/form.js';
|
|
27
|
+
export { GradientGlow } from './components/gradient-glow/gradient-glow.js';
|
|
28
|
+
export { Kbd, KbdGroup } from './components/kbd/kbd.js';
|
|
29
|
+
export { Loader } from './components/loader/loader.js';
|
|
30
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarGroupLabel, MenubarItem, MenubarLinkItem, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger } from './components/menubar/menubar.js';
|
|
31
|
+
export { Meter, MeterLabel, MeterProgress, MeterValue } from './components/meter/meter.js';
|
|
32
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIcon, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, NavigationMenuViewport } from './components/navigation-menu/navigation-menu.js';
|
|
33
|
+
export { NumberField } from './components/number-field/number-field.js';
|
|
34
|
+
export { OTPField, OTPFieldInput, OTPFieldSeparator } from './components/otp-field/otp-field.js';
|
|
35
|
+
export { Pagination, PaginationEllipsis, PaginationItem, PaginationLink, PaginationList } from './components/pagination/pagination.js';
|
|
36
|
+
export { Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger } from './components/popover/popover.js';
|
|
37
|
+
export { PreviewCard, PreviewCardContent, PreviewCardTrigger } from './components/preview-card/preview-card.js';
|
|
38
|
+
export { Progress, ProgressLabel, ProgressValue } from './components/progress/progress.js';
|
|
39
|
+
export { Radio } from './components/radio/radio.js';
|
|
40
|
+
export { RadioGroup } from './components/radio-group/radio-group.js';
|
|
41
|
+
export { ScrollArea } from './components/scroll-area/scroll-area.js';
|
|
42
|
+
export { Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, SelectValue } from './components/select/select.js';
|
|
43
|
+
export { Separator } from './components/separator/separator.js';
|
|
44
|
+
export { Skeleton } from './components/skeleton/skeleton.js';
|
|
45
|
+
export { Slider } from './components/slider/slider.js';
|
|
46
|
+
export { Sparkline, SparklineChart, SparklineLabel, SparklineValue } from './components/sparkline/sparkline.js';
|
|
47
|
+
export { Spinner } from './components/spinner/spinner.js';
|
|
48
|
+
export { Switch } from './components/switch/switch.js';
|
|
49
|
+
export { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from './components/table/table.js';
|
|
50
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from './components/tabs/tabs.js';
|
|
51
|
+
export { TextAnimate } from './components/text-animate/text-animate.js';
|
|
52
|
+
export { Textarea } from './components/textarea/textarea.js';
|
|
53
|
+
export { Thumbnail } from './components/thumbnail/thumbnail.js';
|
|
54
|
+
export { TimeField } from './components/time-field/time-field.js';
|
|
55
|
+
export { Toast, ToastAction, ToastActions, ToastClose, ToastDescription, ToastIcon, ToastPortal, ToastProgress, ToastProvider, ToastTitle, ToastViewport, Toaster, createToastManager, useToastManager } from './components/toast/toast.js';
|
|
56
|
+
export { Toc, TocItem, TocLink, TocList } from './components/toc/toc.js';
|
|
57
|
+
export { Toggle } from './components/toggle/toggle.js';
|
|
58
|
+
export { ToggleGroup } from './components/toggle-group/toggle-group.js';
|
|
59
|
+
export { Toolbar, ToolbarButton, ToolbarGroup, ToolbarInput, ToolbarLink, ToolbarSeparator } from './components/toolbar/toolbar.js';
|
|
60
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './components/tooltip/tooltip.js';
|
|
61
|
+
export { useDismissible } from './hooks/use-dismissible.js';
|
|
62
|
+
export { useLocalStorage, useSessionStorage, useStorage } from './hooks/use-local-storage.js';
|
|
63
|
+
export { useMediaQuery } from './hooks/use-media-query.js';
|
|
64
|
+
export { useReducedMotion } from './hooks/use-reduced-motion.js';
|
|
65
|
+
export { useTheme } from './hooks/use-theme.js';
|
|
66
|
+
export { DirectionProvider } from './providers/direction-provider.js';
|
|
67
|
+
export { ReducedMotionProvider, useReducedMotionContext } from './providers/reduced-motion-provider.js';
|
|
68
|
+
export { BackgroundPattern } from './components/background-pattern/background-pattern.js';
|
|
69
|
+
export { Button } from './components/button/button.js';
|
|
70
|
+
export { Input } from './components/input/input.js';
|
|
71
|
+
export { Navigation, NavigationItem, NavigationList } from './components/navigation/navigation.js';
|
|
72
|
+
export { NavigationLink } from './components/navigation/navigation-link.js';
|
|
73
|
+
export { ThemeProvider } from './providers/theme-provider/theme-provider.js';
|
|
74
|
+
export { ThemeScript, getThemeScript } from './providers/theme-provider/theme-script.js';
|
|
75
|
+
export { buttonVariants } from './components/button/button-variants.js';
|
|
76
|
+
export { inputVariants } from './components/input/input-variants.js';
|
|
77
|
+
export { navigationLinkVariants } from './components/navigation/navigation-link-variants.js';
|
|
78
|
+
export { patternCell } from './components/background-pattern/background-pattern-shared.js';
|
|
79
|
+
export { useDirection } from '@base-ui/react/direction-provider';
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/modal.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** Portal props promoted to flat props on every modal *Content. */
|
|
2
|
+
export declare const MODAL_PORTAL_KEYS: readonly ["container", "keepMounted"];
|
|
3
|
+
type ModalPortalKey = (typeof MODAL_PORTAL_KEYS)[number];
|
|
4
|
+
/**
|
|
5
|
+
* Flat Portal props + typed escape hatches for the Backdrop/Viewport/Portal,
|
|
6
|
+
* derived from a component's own Base UI types so each *Content stays in
|
|
7
|
+
* lockstep with Base UI. Intersect with the Popup props to build a *Content
|
|
8
|
+
* prop type:
|
|
9
|
+
*
|
|
10
|
+
* ```ts
|
|
11
|
+
* type DialogContentProps = ModalContentProps<
|
|
12
|
+
* React.ComponentProps<typeof BaseDialog.Popup>,
|
|
13
|
+
* React.ComponentProps<typeof BaseDialog.Portal>,
|
|
14
|
+
* React.ComponentProps<typeof BaseDialog.Backdrop>,
|
|
15
|
+
* React.ComponentProps<typeof BaseDialog.Viewport>
|
|
16
|
+
* > & { closeButton?: boolean }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export type ModalContentProps<Popup, Portal, Backdrop, Viewport> = Popup & Pick<Portal, Extract<keyof Portal, ModalPortalKey>> & {
|
|
20
|
+
/** Escape hatch: extra props forwarded to the Base UI Portal. */
|
|
21
|
+
portalProps?: Omit<Portal, ModalPortalKey | 'children'>;
|
|
22
|
+
/** Escape hatch: props forwarded to the Base UI Backdrop (e.g. `className`, `style`, `render`). */
|
|
23
|
+
backdropProps?: Omit<Backdrop, 'children'>;
|
|
24
|
+
/** Escape hatch: props forwarded to the Base UI Viewport (e.g. `className`, `style`, `render`). */
|
|
25
|
+
viewportProps?: Omit<Viewport, 'children'>;
|
|
26
|
+
};
|
|
27
|
+
export interface SplitModalProps {
|
|
28
|
+
portal: Record<string, unknown>;
|
|
29
|
+
popup: Record<string, unknown>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Partition a modal *Content component's spread props into the Portal and Popup
|
|
33
|
+
* targets. Flat portal props win over the same keys inside `portalProps`.
|
|
34
|
+
*
|
|
35
|
+
* Destructure `className`/`children`, the `backdropProps`/`viewportProps` escape
|
|
36
|
+
* hatches, and any component-specific props (`backdrop`, `closeButton`, …) out of
|
|
37
|
+
* the props object before calling this — everything left that isn't a known
|
|
38
|
+
* Portal prop is treated as a Popup prop.
|
|
39
|
+
*/
|
|
40
|
+
export declare function splitModalProps(props: Record<string, unknown>): SplitModalProps;
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../src/modal.ts"],"names":[],"mappings":"AAiBA,mEAAmE;AACnE,eAAO,MAAM,iBAAiB,uCAAwC,CAAA;AAEtE,KAAK,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAA;AAExD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,IAAI,KAAK,GACtE,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,MAAM,EAAE,cAAc,CAAC,CAAC,GAAG;IACpD,iEAAiE;IACjE,WAAW,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,cAAc,GAAG,UAAU,CAAC,CAAA;IACvD,mGAAmG;IACnG,aAAa,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;IAC1C,mGAAmG;IACnG,aAAa,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;CAC3C,CAAA;AAEH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC/B;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,eAAe,CAkB/E"}
|
package/dist/modal.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const MODAL_PORTAL_KEYS = ["container", "keepMounted"];
|
|
2
|
+
function splitModalProps(props) {
|
|
3
|
+
const { portalProps, ...rest } = props;
|
|
4
|
+
const portal = { ...portalProps };
|
|
5
|
+
const popup = {};
|
|
6
|
+
for (const key of Object.keys(rest)) {
|
|
7
|
+
const value = rest[key];
|
|
8
|
+
if (MODAL_PORTAL_KEYS.includes(key)) {
|
|
9
|
+
if (value !== void 0) portal[key] = value;
|
|
10
|
+
} else {
|
|
11
|
+
popup[key] = value;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return { portal, popup };
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { MODAL_PORTAL_KEYS, splitModalProps };
|
|
18
|
+
//# sourceMappingURL=modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.js","sources":["../src/modal.ts"],"sourcesContent":["// Shared plumbing for modal/overlay *Content components — the ones that wrap a\n// Base UI Portal → Backdrop → Viewport → Popup structure (Dialog, AlertDialog,\n// Drawer). Sibling to src/floating.ts (which handles the Positioner-based trio).\n//\n// As with floating, consumers don't get direct access to the inner Portal,\n// Backdrop, or Viewport elements, so *Content must map them itself:\n//\n// 1. The two Portal props (`container`, `keepMounted`) are promoted to flat\n// props on *Content.\n// 2. `portalProps` / `backdropProps` / `viewportProps` escape hatches forward\n// the rest (e.g. `className`, `style`, `render`) without each component\n// re-enumerating it.\n//\n// The Popup is what *Content represents, so its `className`/`style`/`render`\n// stay bound to it (via the regular spread) — reach the other elements through\n// the escape hatches.\n\n/** Portal props promoted to flat props on every modal *Content. */\nexport const MODAL_PORTAL_KEYS = ['container', 'keepMounted'] as const\n\ntype ModalPortalKey = (typeof MODAL_PORTAL_KEYS)[number]\n\n/**\n * Flat Portal props + typed escape hatches for the Backdrop/Viewport/Portal,\n * derived from a component's own Base UI types so each *Content stays in\n * lockstep with Base UI. Intersect with the Popup props to build a *Content\n * prop type:\n *\n * ```ts\n * type DialogContentProps = ModalContentProps<\n * React.ComponentProps<typeof BaseDialog.Popup>,\n * React.ComponentProps<typeof BaseDialog.Portal>,\n * React.ComponentProps<typeof BaseDialog.Backdrop>,\n * React.ComponentProps<typeof BaseDialog.Viewport>\n * > & { closeButton?: boolean }\n * ```\n */\nexport type ModalContentProps<Popup, Portal, Backdrop, Viewport> = Popup &\n Pick<Portal, Extract<keyof Portal, ModalPortalKey>> & {\n /** Escape hatch: extra props forwarded to the Base UI Portal. */\n portalProps?: Omit<Portal, ModalPortalKey | 'children'>\n /** Escape hatch: props forwarded to the Base UI Backdrop (e.g. `className`, `style`, `render`). */\n backdropProps?: Omit<Backdrop, 'children'>\n /** Escape hatch: props forwarded to the Base UI Viewport (e.g. `className`, `style`, `render`). */\n viewportProps?: Omit<Viewport, 'children'>\n }\n\nexport interface SplitModalProps {\n portal: Record<string, unknown>\n popup: Record<string, unknown>\n}\n\n/**\n * Partition a modal *Content component's spread props into the Portal and Popup\n * targets. Flat portal props win over the same keys inside `portalProps`.\n *\n * Destructure `className`/`children`, the `backdropProps`/`viewportProps` escape\n * hatches, and any component-specific props (`backdrop`, `closeButton`, …) out of\n * the props object before calling this — everything left that isn't a known\n * Portal prop is treated as a Popup prop.\n */\nexport function splitModalProps(props: Record<string, unknown>): SplitModalProps {\n const { portalProps, ...rest } = props as {\n portalProps?: Record<string, unknown>\n } & Record<string, unknown>\n\n const portal: Record<string, unknown> = { ...portalProps }\n const popup: Record<string, unknown> = {}\n\n for (const key of Object.keys(rest)) {\n const value = rest[key]\n if ((MODAL_PORTAL_KEYS as readonly string[]).includes(key)) {\n if (value !== undefined) portal[key] = value\n } else {\n popup[key] = value\n }\n }\n\n return { portal, popup }\n}\n"],"names":[],"mappings":"AAkBO,MAAM,iBAAA,GAAoB,CAAC,WAAA,EAAa,aAAa;AA2CrD,SAAS,gBAAgB,KAAA,EAAiD;AAC/E,EAAA,MAAM,EAAE,WAAA,EAAa,GAAG,IAAA,EAAK,GAAI,KAAA;AAIjC,EAAA,MAAM,MAAA,GAAkC,EAAE,GAAG,WAAA,EAAY;AACzD,EAAA,MAAM,QAAiC,EAAC;AAExC,EAAA,KAAA,MAAW,GAAA,IAAO,MAAA,CAAO,IAAA,CAAK,IAAI,CAAA,EAAG;AACnC,IAAA,MAAM,KAAA,GAAQ,KAAK,GAAG,CAAA;AACtB,IAAA,IAAK,iBAAA,CAAwC,QAAA,CAAS,GAAG,CAAA,EAAG;AAC1D,MAAA,IAAI,KAAA,KAAU,MAAA,EAAW,MAAA,CAAO,GAAG,CAAA,GAAI,KAAA;AAAA,IACzC,CAAA,MAAO;AACL,MAAA,KAAA,CAAM,GAAG,CAAA,GAAI,KAAA;AAAA,IACf;AAAA,EACF;AAEA,EAAA,OAAO,EAAE,QAAQ,KAAA,EAAM;AACzB;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type Direction = 'ltr' | 'rtl';
|
|
3
|
+
export interface DirectionProviderProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Reading direction for components with bidirectional layout (Switch, Slider,
|
|
7
|
+
* Carousel, etc.). Matches the HTML `dir` attribute; descendants read it via
|
|
8
|
+
* our `useDirection()` hook. Defaults to `ltr`.
|
|
9
|
+
*/
|
|
10
|
+
dir?: Direction;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Sets the reading direction for descendant components. Thin wrapper over Base
|
|
14
|
+
* UI's direction provider so consumers depend on `@appica/ui-react` rather than
|
|
15
|
+
* the underlying primitive.
|
|
16
|
+
*
|
|
17
|
+
* Optional — components default to `ltr` with no provider, so reach for this
|
|
18
|
+
* only when supporting RTL.
|
|
19
|
+
*/
|
|
20
|
+
export declare function DirectionProvider({ children, dir }: DirectionProviderProps): import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=direction-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direction-provider.d.ts","sourceRoot":"","sources":["../../src/providers/direction-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,KAAK,CAAA;AAErC,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;OAIG;IACH,GAAG,CAAC,EAAE,SAAS,CAAA;CAChB;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,GAAW,EAAE,EAAE,sBAAsB,+BAElF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { DirectionProvider as DirectionProvider$1 } from '@base-ui/react/direction-provider';
|
|
3
|
+
|
|
4
|
+
function DirectionProvider({ children, dir = "ltr" }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(DirectionProvider$1, { direction: dir, children });
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { DirectionProvider };
|
|
9
|
+
//# sourceMappingURL=direction-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direction-provider.js","sources":["../../src/providers/direction-provider.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { DirectionProvider as BaseDirectionProvider } from '@base-ui/react/direction-provider'\n\nexport type Direction = 'ltr' | 'rtl'\n\nexport interface DirectionProviderProps {\n children: ReactNode\n /**\n * Reading direction for components with bidirectional layout (Switch, Slider,\n * Carousel, etc.). Matches the HTML `dir` attribute; descendants read it via\n * our `useDirection()` hook. Defaults to `ltr`.\n */\n dir?: Direction\n}\n\n/**\n * Sets the reading direction for descendant components. Thin wrapper over Base\n * UI's direction provider so consumers depend on `@appica/ui-react` rather than\n * the underlying primitive.\n *\n * Optional — components default to `ltr` with no provider, so reach for this\n * only when supporting RTL.\n */\nexport function DirectionProvider({ children, dir = 'ltr' }: DirectionProviderProps) {\n return <BaseDirectionProvider direction={dir}>{children}</BaseDirectionProvider>\n}\n"],"names":["BaseDirectionProvider"],"mappings":";;;AAuBO,SAAS,iBAAA,CAAkB,EAAE,QAAA,EAAU,GAAA,GAAM,OAAM,EAA2B;AACnF,EAAA,uBAAO,GAAA,CAACA,mBAAA,EAAA,EAAsB,SAAA,EAAW,GAAA,EAAM,QAAA,EAAS,CAAA;AAC1D;;;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface ReducedMotionContextValue {
|
|
3
|
+
disableAnimations: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface ReducedMotionProviderProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Force-disable all component animations regardless of OS `prefers-reduced-motion`.
|
|
9
|
+
* Components also respect the OS preference automatically — this is the global override.
|
|
10
|
+
*
|
|
11
|
+
* The attribute is set on `<html>` (not on a wrapper div) so it reaches Base UI's portaled
|
|
12
|
+
* popups, which render under `document.body` and therefore escape the React subtree. The
|
|
13
|
+
* `motion-reduce:` / `motion-safe:` custom variants in styles.css already target
|
|
14
|
+
* `[data-disable-animations] *`.
|
|
15
|
+
*/
|
|
16
|
+
disableAnimations?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Opts a subtree out of animation. The JS channel (`useReducedMotion()`) is
|
|
20
|
+
* scoped to this provider's React subtree; the CSS channel (the
|
|
21
|
+
* `motion-reduce:` variant) is driven by a `data-disable-animations` attribute
|
|
22
|
+
* written to `<html>`, so it applies page-wide while mounted and covers
|
|
23
|
+
* portaled popups.
|
|
24
|
+
*
|
|
25
|
+
* Optional — components already respect the OS `prefers-reduced-motion`
|
|
26
|
+
* preference with no provider. Reach for this only to force-disable animations.
|
|
27
|
+
*/
|
|
28
|
+
export declare function ReducedMotionProvider({ children, disableAnimations }: ReducedMotionProviderProps): import("react").JSX.Element;
|
|
29
|
+
export declare function useReducedMotionContext(): ReducedMotionContextValue;
|
|
30
|
+
//# sourceMappingURL=reduced-motion-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reduced-motion-provider.d.ts","sourceRoot":"","sources":["../../src/providers/reduced-motion-provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA0C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAE9E,MAAM,WAAW,yBAAyB;IACxC,iBAAiB,EAAE,OAAO,CAAA;CAC3B;AAQD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAID;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,iBAAyB,EAAE,EAAE,0BAA0B,+BAaxG;AAED,wBAAgB,uBAAuB,IAAI,yBAAyB,CAEnE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { createContext, useEffect, useMemo, use } from 'react';
|
|
4
|
+
|
|
5
|
+
const DEFAULT_CONTEXT = {
|
|
6
|
+
disableAnimations: false
|
|
7
|
+
};
|
|
8
|
+
const ReducedMotionContext = createContext(DEFAULT_CONTEXT);
|
|
9
|
+
const ATTR = "data-disable-animations";
|
|
10
|
+
function ReducedMotionProvider({ children, disableAnimations = false }) {
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (!disableAnimations) return;
|
|
13
|
+
const html = document.documentElement;
|
|
14
|
+
html.setAttribute(ATTR, "");
|
|
15
|
+
return () => {
|
|
16
|
+
html.removeAttribute(ATTR);
|
|
17
|
+
};
|
|
18
|
+
}, [disableAnimations]);
|
|
19
|
+
const value = useMemo(() => ({ disableAnimations }), [disableAnimations]);
|
|
20
|
+
return /* @__PURE__ */ jsx(ReducedMotionContext, { value, children });
|
|
21
|
+
}
|
|
22
|
+
function useReducedMotionContext() {
|
|
23
|
+
return use(ReducedMotionContext);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { ReducedMotionProvider, useReducedMotionContext };
|
|
27
|
+
//# sourceMappingURL=reduced-motion-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reduced-motion-provider.js","sources":["../../src/providers/reduced-motion-provider.tsx"],"sourcesContent":["'use client'\n\nimport { createContext, use, useEffect, useMemo, type ReactNode } from 'react'\n\nexport interface ReducedMotionContextValue {\n disableAnimations: boolean\n}\n\nconst DEFAULT_CONTEXT: ReducedMotionContextValue = {\n disableAnimations: false,\n}\n\nconst ReducedMotionContext = createContext<ReducedMotionContextValue>(DEFAULT_CONTEXT)\n\nexport interface ReducedMotionProviderProps {\n children: ReactNode\n /**\n * Force-disable all component animations regardless of OS `prefers-reduced-motion`.\n * Components also respect the OS preference automatically — this is the global override.\n *\n * The attribute is set on `<html>` (not on a wrapper div) so it reaches Base UI's portaled\n * popups, which render under `document.body` and therefore escape the React subtree. The\n * `motion-reduce:` / `motion-safe:` custom variants in styles.css already target\n * `[data-disable-animations] *`.\n */\n disableAnimations?: boolean\n}\n\nconst ATTR = 'data-disable-animations'\n\n/**\n * Opts a subtree out of animation. The JS channel (`useReducedMotion()`) is\n * scoped to this provider's React subtree; the CSS channel (the\n * `motion-reduce:` variant) is driven by a `data-disable-animations` attribute\n * written to `<html>`, so it applies page-wide while mounted and covers\n * portaled popups.\n *\n * Optional — components already respect the OS `prefers-reduced-motion`\n * preference with no provider. Reach for this only to force-disable animations.\n */\nexport function ReducedMotionProvider({ children, disableAnimations = false }: ReducedMotionProviderProps) {\n useEffect(() => {\n if (!disableAnimations) return\n const html = document.documentElement\n html.setAttribute(ATTR, '')\n return () => {\n html.removeAttribute(ATTR)\n }\n }, [disableAnimations])\n\n const value = useMemo<ReducedMotionContextValue>(() => ({ disableAnimations }), [disableAnimations])\n\n return <ReducedMotionContext value={value}>{children}</ReducedMotionContext>\n}\n\nexport function useReducedMotionContext(): ReducedMotionContextValue {\n return use(ReducedMotionContext)\n}\n"],"names":[],"mappings":";;;;AAQA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,eAAA,CAAA,CAAA,CAA6C;AAAA,CAAA,CACjD,iBAAA,CAAA,CAAmB,CAAA,CAAA,CAAA,CAAA;AACrB,CAAA;AAEA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAuB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAyC,eAAe,CAAA;AAgBrF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,GAAO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AAA,CAAA,CAAA,CAAA,CAAA,EAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA;AACvD;AAEO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,uBAAA,CAAA,CAAA,CAAqD;AACnE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB,CAAA;AACjC;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ThemeProvider } from './theme-provider';
|
|
2
|
+
export type { ThemeProviderProps, ThemeContextValue } from './theme-provider';
|
|
3
|
+
export { ThemeScript, getThemeScript } from './theme-script';
|
|
4
|
+
export type { ThemeScriptOptions, ThemeScriptProps } from './theme-script';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/theme-provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAC7E,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC5D,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ThemeContextValue {
|
|
3
|
+
/** The chosen theme, possibly `'system'`. */
|
|
4
|
+
theme: string | undefined;
|
|
5
|
+
setTheme: (value: string | ((prev: string) => string)) => void;
|
|
6
|
+
/** The theme actually applied — `'system'` resolved to `'light'`/`'dark'`. */
|
|
7
|
+
resolvedTheme: string | undefined;
|
|
8
|
+
systemTheme: 'light' | 'dark' | undefined;
|
|
9
|
+
themes: string[];
|
|
10
|
+
forcedTheme: string | undefined;
|
|
11
|
+
/** `false` until the client has mounted — guard theme-dependent UI with this. */
|
|
12
|
+
mounted: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function useThemeContext(): ThemeContextValue;
|
|
15
|
+
export interface ThemeProviderProps {
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
/** Available theme names. Default `['light', 'dark']`. */
|
|
18
|
+
themes?: string[];
|
|
19
|
+
/** Force a theme for the whole tree (e.g. a docs page); overrides storage + system. */
|
|
20
|
+
forcedTheme?: string;
|
|
21
|
+
/** Respect the OS `prefers-color-scheme`. Default `true`. */
|
|
22
|
+
enableSystem?: boolean;
|
|
23
|
+
/** Suppress CSS transitions during a theme change so colors don't animate. Default `false`. */
|
|
24
|
+
disableTransitionOnChange?: boolean;
|
|
25
|
+
/** Set `color-scheme` on `<html>` so native UI (scrollbars, form controls) matches. Default `true`. */
|
|
26
|
+
enableColorScheme?: boolean;
|
|
27
|
+
/** Storage key for the persisted choice. Default `'theme'`. */
|
|
28
|
+
storageKey?: string;
|
|
29
|
+
/** Theme used before a choice is stored. Default `enableSystem ? 'system' : 'light'`. */
|
|
30
|
+
defaultTheme?: string;
|
|
31
|
+
/** Map a theme name to a custom class applied on `<html>`. */
|
|
32
|
+
value?: Record<string, string>;
|
|
33
|
+
/** CSP nonce forwarded to the inline no-flash script. */
|
|
34
|
+
nonce?: string;
|
|
35
|
+
/** Extra props for the inline `<script>` element. */
|
|
36
|
+
scriptProps?: React.ScriptHTMLAttributes<HTMLScriptElement>;
|
|
37
|
+
}
|
|
38
|
+
export declare function ThemeProvider(props: ThemeProviderProps): React.JSX.Element;
|
|
39
|
+
//# sourceMappingURL=theme-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../../src/providers/theme-provider/theme-provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAY9B,MAAM,WAAW,iBAAiB;IAChC,6CAA6C;IAC7C,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,KAAK,IAAI,CAAA;IAC9D,8EAA8E;IAC9E,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,WAAW,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;IACzC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,iFAAiF;IACjF,OAAO,EAAE,OAAO,CAAA;CACjB;AAcD,wBAAgB,eAAe,IAAI,iBAAiB,CAEnD;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,0DAA0D;IAC1D,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,+FAA+F;IAC/F,yBAAyB,CAAC,EAAE,OAAO,CAAA;IACnC,uGAAuG;IACvG,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,+DAA+D;IAC/D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qDAAqD;IACrD,WAAW,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAA;CAC5D;AAoBD,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,qBAKtD"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useLocalStorage } from '../../hooks/use-local-storage.js';
|
|
5
|
+
import { useMediaQuery } from '../../hooks/use-media-query.js';
|
|
6
|
+
import { ThemeScript } from './theme-script.js';
|
|
7
|
+
|
|
8
|
+
const MEDIA = "(prefers-color-scheme: dark)";
|
|
9
|
+
const SYSTEM_THEMES = ["light", "dark"];
|
|
10
|
+
const DEFAULT_THEMES = ["light", "dark"];
|
|
11
|
+
const RAW_STRING = { serializer: (v) => v, deserializer: (v) => v };
|
|
12
|
+
const ThemeContext = React.createContext(void 0);
|
|
13
|
+
const defaultContext = {
|
|
14
|
+
theme: void 0,
|
|
15
|
+
setTheme: () => {
|
|
16
|
+
},
|
|
17
|
+
resolvedTheme: void 0,
|
|
18
|
+
systemTheme: void 0,
|
|
19
|
+
themes: [],
|
|
20
|
+
forcedTheme: void 0,
|
|
21
|
+
mounted: false
|
|
22
|
+
};
|
|
23
|
+
function useThemeContext() {
|
|
24
|
+
return React.useContext(ThemeContext) ?? defaultContext;
|
|
25
|
+
}
|
|
26
|
+
function disableAnimation(nonce) {
|
|
27
|
+
const css = document.createElement("style");
|
|
28
|
+
if (nonce) css.setAttribute("nonce", nonce);
|
|
29
|
+
css.appendChild(
|
|
30
|
+
document.createTextNode(
|
|
31
|
+
"*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}"
|
|
32
|
+
)
|
|
33
|
+
);
|
|
34
|
+
document.head.appendChild(css);
|
|
35
|
+
return () => {
|
|
36
|
+
(() => window.getComputedStyle(document.body))();
|
|
37
|
+
setTimeout(() => {
|
|
38
|
+
document.head.removeChild(css);
|
|
39
|
+
}, 1);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function ThemeProvider(props) {
|
|
43
|
+
const existing = React.useContext(ThemeContext);
|
|
44
|
+
if (existing) return /* @__PURE__ */ jsx(Fragment, { children: props.children });
|
|
45
|
+
return /* @__PURE__ */ jsx(Theme, { ...props });
|
|
46
|
+
}
|
|
47
|
+
function Theme({
|
|
48
|
+
children,
|
|
49
|
+
themes = DEFAULT_THEMES,
|
|
50
|
+
forcedTheme,
|
|
51
|
+
enableSystem = true,
|
|
52
|
+
disableTransitionOnChange = false,
|
|
53
|
+
enableColorScheme = true,
|
|
54
|
+
storageKey = "theme",
|
|
55
|
+
defaultTheme = enableSystem ? "system" : "light",
|
|
56
|
+
value,
|
|
57
|
+
nonce,
|
|
58
|
+
scriptProps
|
|
59
|
+
}) {
|
|
60
|
+
const [theme, setTheme] = useLocalStorage(storageKey, defaultTheme, RAW_STRING);
|
|
61
|
+
const systemDark = useMediaQuery(MEDIA);
|
|
62
|
+
const systemTheme = enableSystem ? systemDark ? "dark" : "light" : void 0;
|
|
63
|
+
const [mounted, setMounted] = React.useState(false);
|
|
64
|
+
React.useEffect(() => setMounted(true), []);
|
|
65
|
+
const resolvedTheme = forcedTheme ?? (theme === "system" ? systemDark ? "dark" : "light" : theme);
|
|
66
|
+
const cfg = React.useRef({ themes, value, enableColorScheme, disableTransitionOnChange, nonce });
|
|
67
|
+
cfg.current = { themes, value, enableColorScheme, disableTransitionOnChange, nonce };
|
|
68
|
+
const firstRun = React.useRef(true);
|
|
69
|
+
React.useEffect(() => {
|
|
70
|
+
if (firstRun.current) {
|
|
71
|
+
firstRun.current = false;
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (!resolvedTheme) return;
|
|
75
|
+
const c = cfg.current;
|
|
76
|
+
const classFor = (t) => c.value && c.value[t] ? c.value[t] : t;
|
|
77
|
+
const enable = c.disableTransitionOnChange ? disableAnimation(c.nonce) : null;
|
|
78
|
+
const el = document.documentElement;
|
|
79
|
+
el.classList.remove(...c.themes.map(classFor));
|
|
80
|
+
el.classList.add(classFor(resolvedTheme));
|
|
81
|
+
if (c.enableColorScheme && SYSTEM_THEMES.includes(resolvedTheme)) {
|
|
82
|
+
el.style.colorScheme = resolvedTheme;
|
|
83
|
+
}
|
|
84
|
+
enable?.();
|
|
85
|
+
}, [resolvedTheme]);
|
|
86
|
+
const ctx = React.useMemo(
|
|
87
|
+
() => ({
|
|
88
|
+
theme,
|
|
89
|
+
setTheme,
|
|
90
|
+
resolvedTheme,
|
|
91
|
+
systemTheme,
|
|
92
|
+
themes: enableSystem ? [...themes, "system"] : themes,
|
|
93
|
+
forcedTheme,
|
|
94
|
+
mounted
|
|
95
|
+
}),
|
|
96
|
+
[theme, setTheme, resolvedTheme, systemTheme, enableSystem, themes, forcedTheme, mounted]
|
|
97
|
+
);
|
|
98
|
+
return /* @__PURE__ */ jsxs(ThemeContext, { value: ctx, children: [
|
|
99
|
+
/* @__PURE__ */ jsx(
|
|
100
|
+
ThemeScript,
|
|
101
|
+
{
|
|
102
|
+
storageKey,
|
|
103
|
+
defaultTheme,
|
|
104
|
+
forcedTheme,
|
|
105
|
+
themes,
|
|
106
|
+
value,
|
|
107
|
+
enableSystem,
|
|
108
|
+
enableColorScheme,
|
|
109
|
+
nonce,
|
|
110
|
+
scriptProps
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
children
|
|
114
|
+
] });
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export { ThemeProvider, useThemeContext };
|
|
118
|
+
//# sourceMappingURL=theme-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-provider.js","sources":["../../../src/providers/theme-provider/theme-provider.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport { useLocalStorage } from '../../hooks/use-local-storage'\nimport { useMediaQuery } from '../../hooks/use-media-query'\nimport { ThemeScript } from './theme-script'\n\nconst MEDIA = '(prefers-color-scheme: dark)'\nconst SYSTEM_THEMES = ['light', 'dark']\nconst DEFAULT_THEMES = ['light', 'dark']\n// Theme is stored as a raw string so the inline no-flash script can read it\n// directly with `localStorage.getItem` (no JSON quotes).\nconst RAW_STRING = { serializer: (v: string) => v, deserializer: (v: string) => v }\n\nexport interface ThemeContextValue {\n /** The chosen theme, possibly `'system'`. */\n theme: string | undefined\n setTheme: (value: string | ((prev: string) => string)) => void\n /** The theme actually applied — `'system'` resolved to `'light'`/`'dark'`. */\n resolvedTheme: string | undefined\n systemTheme: 'light' | 'dark' | undefined\n themes: string[]\n forcedTheme: string | undefined\n /** `false` until the client has mounted — guard theme-dependent UI with this. */\n mounted: boolean\n}\n\nconst ThemeContext = React.createContext<ThemeContextValue | undefined>(undefined)\n\nconst defaultContext: ThemeContextValue = {\n theme: undefined,\n setTheme: () => {},\n resolvedTheme: undefined,\n systemTheme: undefined,\n themes: [],\n forcedTheme: undefined,\n mounted: false,\n}\n\nexport function useThemeContext(): ThemeContextValue {\n return React.useContext(ThemeContext) ?? defaultContext\n}\n\nexport interface ThemeProviderProps {\n children?: React.ReactNode\n /** Available theme names. Default `['light', 'dark']`. */\n themes?: string[]\n /** Force a theme for the whole tree (e.g. a docs page); overrides storage + system. */\n forcedTheme?: string\n /** Respect the OS `prefers-color-scheme`. Default `true`. */\n enableSystem?: boolean\n /** Suppress CSS transitions during a theme change so colors don't animate. Default `false`. */\n disableTransitionOnChange?: boolean\n /** Set `color-scheme` on `<html>` so native UI (scrollbars, form controls) matches. Default `true`. */\n enableColorScheme?: boolean\n /** Storage key for the persisted choice. Default `'theme'`. */\n storageKey?: string\n /** Theme used before a choice is stored. Default `enableSystem ? 'system' : 'light'`. */\n defaultTheme?: string\n /** Map a theme name to a custom class applied on `<html>`. */\n value?: Record<string, string>\n /** CSP nonce forwarded to the inline no-flash script. */\n nonce?: string\n /** Extra props for the inline `<script>` element. */\n scriptProps?: React.ScriptHTMLAttributes<HTMLScriptElement>\n}\n\nfunction disableAnimation(nonce?: string) {\n const css = document.createElement('style')\n if (nonce) css.setAttribute('nonce', nonce)\n css.appendChild(\n document.createTextNode(\n '*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}',\n ),\n )\n document.head.appendChild(css)\n return () => {\n // Force a reflow so the \"no transitions\" rule applies before the class swap paints.\n ;(() => window.getComputedStyle(document.body))()\n setTimeout(() => {\n document.head.removeChild(css)\n }, 1)\n }\n}\n\nexport function ThemeProvider(props: ThemeProviderProps) {\n // Nested providers are a no-op passthrough; only the outermost owns state.\n const existing = React.useContext(ThemeContext)\n if (existing) return <>{props.children}</>\n return <Theme {...props} />\n}\n\nfunction Theme({\n children,\n themes = DEFAULT_THEMES,\n forcedTheme,\n enableSystem = true,\n disableTransitionOnChange = false,\n enableColorScheme = true,\n storageKey = 'theme',\n defaultTheme = enableSystem ? 'system' : 'light',\n value,\n nonce,\n scriptProps,\n}: ThemeProviderProps) {\n const [theme, setTheme] = useLocalStorage<string>(storageKey, defaultTheme, RAW_STRING)\n const systemDark = useMediaQuery(MEDIA)\n const systemTheme = enableSystem ? (systemDark ? 'dark' : 'light') : undefined\n\n const [mounted, setMounted] = React.useState(false)\n React.useEffect(() => setMounted(true), [])\n\n const resolvedTheme = forcedTheme ?? (theme === 'system' ? (systemDark ? 'dark' : 'light') : theme)\n\n // Keep mutable config out of the apply effect's deps so it fires only on theme change.\n const cfg = React.useRef({ themes, value, enableColorScheme, disableTransitionOnChange, nonce })\n cfg.current = { themes, value, enableColorScheme, disableTransitionOnChange, nonce }\n\n const firstRun = React.useRef(true)\n React.useEffect(() => {\n // The inline script already set the correct class for the first paint; skip\n // re-applying on mount or we'd risk a flash from the hydration default.\n if (firstRun.current) {\n firstRun.current = false\n return\n }\n if (!resolvedTheme) return\n const c = cfg.current\n const classFor = (t: string) => (c.value && c.value[t] ? c.value[t] : t)\n const enable = c.disableTransitionOnChange ? disableAnimation(c.nonce) : null\n const el = document.documentElement\n el.classList.remove(...c.themes.map(classFor))\n el.classList.add(classFor(resolvedTheme))\n if (c.enableColorScheme && SYSTEM_THEMES.includes(resolvedTheme)) {\n el.style.colorScheme = resolvedTheme\n }\n enable?.()\n }, [resolvedTheme])\n\n const ctx = React.useMemo<ThemeContextValue>(\n () => ({\n theme,\n setTheme,\n resolvedTheme,\n systemTheme,\n themes: enableSystem ? [...themes, 'system'] : themes,\n forcedTheme,\n mounted,\n }),\n [theme, setTheme, resolvedTheme, systemTheme, enableSystem, themes, forcedTheme, mounted],\n )\n\n return (\n <ThemeContext value={ctx}>\n <ThemeScript\n storageKey={storageKey}\n defaultTheme={defaultTheme}\n forcedTheme={forcedTheme}\n themes={themes}\n value={value}\n enableSystem={enableSystem}\n enableColorScheme={enableColorScheme}\n nonce={nonce}\n scriptProps={scriptProps}\n />\n {children}\n </ThemeContext>\n )\n}\n"],"names":[],"mappings":";;;;;;;AAOA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,GAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACd,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,aAAA,CAAA,CAAA,CAAgB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,MAAM,CAAA;AACtC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,cAAA,CAAA,CAAA,CAAiB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,MAAM,CAAA;AAGvC,CAAA,CAAA,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