@appica/ui-react 1.0.0 → 1.2.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/CHANGELOG.md +72 -0
- package/README.md +47 -5
- package/agent-rules.md +41 -0
- package/appica.css +7 -0
- package/dist/components/accordion/accordion.d.ts +24 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/accordion/accordion.js +2 -1
- package/dist/components/accordion/accordion.js.map +1 -1
- package/dist/components/alert/alert.d.ts +30 -2
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +2 -1
- package/dist/components/alert/alert.js.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.d.ts +12 -2
- package/dist/components/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +10 -5
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts +21 -1
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/components/autocomplete/autocomplete.js +3 -2
- package/dist/components/autocomplete/autocomplete.js.map +1 -1
- package/dist/components/avatar/avatar.d.ts +17 -1
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.js +2 -1
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/background-pattern/background-pattern-interactive.d.ts +2 -1
- package/dist/components/background-pattern/background-pattern-interactive.d.ts.map +1 -1
- package/dist/components/background-pattern/background-pattern-interactive.js +4 -2
- package/dist/components/background-pattern/background-pattern-interactive.js.map +1 -1
- package/dist/components/background-pattern/background-pattern-shared.d.ts +3 -2
- package/dist/components/background-pattern/background-pattern-shared.d.ts.map +1 -1
- package/dist/components/background-pattern/background-pattern-shared.js +48 -16
- package/dist/components/background-pattern/background-pattern-shared.js.map +1 -1
- package/dist/components/background-pattern/background-pattern.d.ts +13 -5
- package/dist/components/background-pattern/background-pattern.d.ts.map +1 -1
- package/dist/components/background-pattern/background-pattern.js +13 -4
- package/dist/components/background-pattern/background-pattern.js.map +1 -1
- package/dist/components/background-pattern/index.js +1 -0
- package/dist/components/background-pattern/index.js.map +1 -1
- package/dist/components/badge/badge.d.ts +13 -3
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/badge.js +2 -1
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/border-beam/border-beam.d.ts +52 -0
- package/dist/components/border-beam/border-beam.d.ts.map +1 -0
- package/dist/components/border-beam/border-beam.js +68 -0
- package/dist/components/border-beam/border-beam.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +8 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +2 -1
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/button/button-variants.d.ts +2 -2
- package/dist/components/button/button-variants.js +2 -1
- package/dist/components/button/button-variants.js.map +1 -1
- package/dist/components/button/button.d.ts +11 -1
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +2 -1
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button/index.js +1 -0
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/button-group/button-group-context.js +1 -0
- package/dist/components/button-group/button-group-context.js.map +1 -1
- package/dist/components/button-group/button-group.d.ts +10 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -1
- package/dist/components/button-group/button-group.js +2 -1
- package/dist/components/button-group/button-group.js.map +1 -1
- package/dist/components/calendar/calendar.d.ts +5 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/calendar.js +2 -1
- package/dist/components/calendar/calendar.js.map +1 -1
- package/dist/components/card/card.d.ts +43 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/card.js +104 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/carousel/carousel.d.ts +106 -6
- package/dist/components/carousel/carousel.d.ts.map +1 -1
- package/dist/components/carousel/carousel.js +180 -5
- package/dist/components/carousel/carousel.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +2 -1
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/checkbox-group/checkbox-group.d.ts +4 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts.map +1 -1
- package/dist/components/checkbox-group/checkbox-group.js +2 -1
- package/dist/components/checkbox-group/checkbox-group.js.map +1 -1
- package/dist/components/chip/chip.d.ts +33 -1
- package/dist/components/chip/chip.d.ts.map +1 -1
- package/dist/components/chip/chip.js +2 -1
- package/dist/components/chip/chip.js.map +1 -1
- package/dist/components/collapsible/collapsible.js +2 -1
- package/dist/components/collapsible/collapsible.js.map +1 -1
- package/dist/components/color-area/color-area.d.ts +53 -0
- package/dist/components/color-area/color-area.d.ts.map +1 -0
- package/dist/components/color-area/color-area.js +246 -0
- package/dist/components/color-area/color-area.js.map +1 -0
- package/dist/components/color-picker/color-picker.d.ts +152 -0
- package/dist/components/color-picker/color-picker.d.ts.map +1 -0
- package/dist/components/color-picker/color-picker.js +328 -0
- package/dist/components/color-picker/color-picker.js.map +1 -0
- package/dist/components/color-slider/color-slider.d.ts +48 -0
- package/dist/components/color-slider/color-slider.d.ts.map +1 -0
- package/dist/components/color-slider/color-slider.js +217 -0
- package/dist/components/color-slider/color-slider.js.map +1 -0
- package/dist/components/color-swatch/color-swatch.d.ts +47 -0
- package/dist/components/color-swatch/color-swatch.d.ts.map +1 -0
- package/dist/components/color-swatch/color-swatch.js +67 -0
- package/dist/components/color-swatch/color-swatch.js.map +1 -0
- package/dist/components/color-swatch-picker/color-swatch-picker.d.ts +62 -0
- package/dist/components/color-swatch-picker/color-swatch-picker.d.ts.map +1 -0
- package/dist/components/color-swatch-picker/color-swatch-picker.js +203 -0
- package/dist/components/color-swatch-picker/color-swatch-picker.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +25 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +3 -2
- package/dist/components/combobox/combobox.js.map +1 -1
- package/dist/components/context-menu/context-menu.d.ts +7 -1
- package/dist/components/context-menu/context-menu.d.ts.map +1 -1
- package/dist/components/context-menu/context-menu.js +11 -5
- package/dist/components/context-menu/context-menu.js.map +1 -1
- package/dist/components/copy-button/copy-button.d.ts +18 -1
- package/dist/components/copy-button/copy-button.d.ts.map +1 -1
- package/dist/components/copy-button/copy-button.js +6 -5
- package/dist/components/copy-button/copy-button.js.map +1 -1
- package/dist/components/countdown/countdown.d.ts +14 -0
- package/dist/components/countdown/countdown.d.ts.map +1 -1
- package/dist/components/countdown/countdown.js +2 -1
- package/dist/components/countdown/countdown.js.map +1 -1
- package/dist/components/date-field/date-field.d.ts +35 -0
- package/dist/components/date-field/date-field.d.ts.map +1 -1
- package/dist/components/date-field/date-field.js +2 -1
- package/dist/components/date-field/date-field.js.map +1 -1
- package/dist/components/date-picker/date-picker.d.ts +94 -0
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.js +2 -1
- package/dist/components/date-picker/date-picker.js.map +1 -1
- package/dist/components/dialog/dialog.d.ts +20 -2
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- package/dist/components/dialog/dialog.js +9 -4
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer.d.ts +22 -2
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/drawer/drawer.js +14 -7
- package/dist/components/drawer/drawer.js.map +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +7 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +11 -5
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/field/field.js +2 -1
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/fieldset/fieldset.js +2 -1
- package/dist/components/fieldset/fieldset.js.map +1 -1
- package/dist/components/form/form.js +1 -0
- package/dist/components/form/form.js.map +1 -1
- package/dist/components/gradient-glow/gradient-glow.d.ts +51 -1
- package/dist/components/gradient-glow/gradient-glow.d.ts.map +1 -1
- package/dist/components/gradient-glow/gradient-glow.js +5 -3
- package/dist/components/gradient-glow/gradient-glow.js.map +1 -1
- package/dist/components/input/index.js +1 -0
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/input-variants.d.ts +1 -1
- package/dist/components/input/input-variants.js +2 -1
- package/dist/components/input/input-variants.js.map +1 -1
- package/dist/components/input/input.d.ts +21 -1
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/input/input.js +4 -3
- package/dist/components/input/input.js.map +1 -1
- package/dist/components/kbd/kbd.d.ts +8 -0
- package/dist/components/kbd/kbd.d.ts.map +1 -1
- package/dist/components/kbd/kbd.js +2 -1
- package/dist/components/kbd/kbd.js.map +1 -1
- package/dist/components/loader/loader.d.ts +8 -0
- package/dist/components/loader/loader.d.ts.map +1 -1
- package/dist/components/loader/loader.js +2 -1
- package/dist/components/loader/loader.js.map +1 -1
- package/dist/components/menubar/menubar.d.ts +8 -0
- package/dist/components/menubar/menubar.d.ts.map +1 -1
- package/dist/components/menubar/menubar.js +2 -1
- package/dist/components/menubar/menubar.js.map +1 -1
- package/dist/components/meter/meter.d.ts +4 -0
- package/dist/components/meter/meter.d.ts.map +1 -1
- package/dist/components/meter/meter.js +2 -1
- package/dist/components/meter/meter.js.map +1 -1
- package/dist/components/navigation/index.js +1 -0
- package/dist/components/navigation/index.js.map +1 -1
- package/dist/components/navigation/navigation-context.js +1 -0
- package/dist/components/navigation/navigation-context.js.map +1 -1
- package/dist/components/navigation/navigation-link-variants.d.ts +2 -2
- package/dist/components/navigation/navigation-link-variants.js +2 -1
- package/dist/components/navigation/navigation-link-variants.js.map +1 -1
- package/dist/components/navigation/navigation-link.d.ts +22 -0
- package/dist/components/navigation/navigation-link.d.ts.map +1 -1
- package/dist/components/navigation/navigation-link.js +2 -1
- package/dist/components/navigation/navigation-link.js.map +1 -1
- package/dist/components/navigation/navigation.d.ts +12 -0
- package/dist/components/navigation/navigation.d.ts.map +1 -1
- package/dist/components/navigation/navigation.js +2 -1
- package/dist/components/navigation/navigation.js.map +1 -1
- package/dist/components/navigation-menu/navigation-menu.d.ts +33 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/components/navigation-menu/navigation-menu.js +2 -1
- package/dist/components/navigation-menu/navigation-menu.js.map +1 -1
- package/dist/components/number-field/number-field.d.ts +14 -0
- package/dist/components/number-field/number-field.d.ts.map +1 -1
- package/dist/components/number-field/number-field.js +2 -1
- package/dist/components/number-field/number-field.js.map +1 -1
- package/dist/components/otp-field/otp-field.d.ts +9 -0
- package/dist/components/otp-field/otp-field.d.ts.map +1 -1
- package/dist/components/otp-field/otp-field.js +2 -1
- package/dist/components/otp-field/otp-field.js.map +1 -1
- package/dist/components/pagination/pagination.d.ts +16 -0
- package/dist/components/pagination/pagination.d.ts.map +1 -1
- package/dist/components/pagination/pagination.js +2 -1
- package/dist/components/pagination/pagination.js.map +1 -1
- package/dist/components/popover/popover.d.ts +5 -1
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/popover/popover.js +3 -2
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/preview-card/preview-card.d.ts +5 -1
- package/dist/components/preview-card/preview-card.d.ts.map +1 -1
- package/dist/components/preview-card/preview-card.js +3 -2
- package/dist/components/preview-card/preview-card.js.map +1 -1
- package/dist/components/progress/progress.d.ts +17 -0
- package/dist/components/progress/progress.d.ts.map +1 -1
- package/dist/components/progress/progress.js +2 -1
- package/dist/components/progress/progress.js.map +1 -1
- package/dist/components/radio/radio.js +2 -1
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/radio-group/radio-group.d.ts +4 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group/radio-group.js +2 -1
- package/dist/components/radio-group/radio-group.js.map +1 -1
- package/dist/components/rating/rating.d.ts +79 -0
- package/dist/components/rating/rating.d.ts.map +1 -0
- package/dist/components/rating/rating.js +302 -0
- package/dist/components/rating/rating.js.map +1 -0
- package/dist/components/scroll-area/scroll-area.d.ts +13 -0
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area/scroll-area.js +2 -1
- package/dist/components/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/select/select.d.ts +20 -1
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/select/select.js +3 -2
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/separator/separator.d.ts +4 -0
- package/dist/components/separator/separator.d.ts.map +1 -1
- package/dist/components/separator/separator.js +2 -1
- package/dist/components/separator/separator.js.map +1 -1
- package/dist/components/skeleton/skeleton.d.ts +4 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.js +2 -1
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/slider/slider.d.ts +5 -0
- package/dist/components/slider/slider.d.ts.map +1 -1
- package/dist/components/slider/slider.js +2 -1
- package/dist/components/slider/slider.js.map +1 -1
- package/dist/components/sparkline/sparkline.d.ts +44 -0
- package/dist/components/sparkline/sparkline.d.ts.map +1 -1
- package/dist/components/sparkline/sparkline.js +2 -1
- package/dist/components/sparkline/sparkline.js.map +1 -1
- package/dist/components/spinner/spinner.d.ts +8 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/spinner/spinner.js +2 -1
- package/dist/components/spinner/spinner.js.map +1 -1
- package/dist/components/switch/switch.d.ts +19 -15
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/switch/switch.js +2 -1
- package/dist/components/switch/switch.js.map +1 -1
- package/dist/components/table/table.d.ts +28 -0
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +2 -1
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/tabs/tabs.d.ts +32 -2
- package/dist/components/tabs/tabs.d.ts.map +1 -1
- package/dist/components/tabs/tabs.js +2 -1
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/text-animate/text-animate.d.ts +31 -0
- package/dist/components/text-animate/text-animate.d.ts.map +1 -1
- package/dist/components/text-animate/text-animate.js +27 -9
- package/dist/components/text-animate/text-animate.js.map +1 -1
- package/dist/components/textarea/textarea.d.ts +15 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -1
- package/dist/components/textarea/textarea.js +2 -1
- package/dist/components/textarea/textarea.js.map +1 -1
- package/dist/components/thumbnail/thumbnail.d.ts +22 -2
- package/dist/components/thumbnail/thumbnail.d.ts.map +1 -1
- package/dist/components/thumbnail/thumbnail.js +2 -1
- package/dist/components/thumbnail/thumbnail.js.map +1 -1
- package/dist/components/time-field/time-field.d.ts +35 -0
- package/dist/components/time-field/time-field.d.ts.map +1 -1
- package/dist/components/time-field/time-field.js +2 -1
- package/dist/components/time-field/time-field.js.map +1 -1
- package/dist/components/toast/toast.d.ts +18 -0
- package/dist/components/toast/toast.d.ts.map +1 -1
- package/dist/components/toast/toast.js +2 -1
- package/dist/components/toast/toast.js.map +1 -1
- package/dist/components/toc/toc.d.ts +10 -0
- package/dist/components/toc/toc.d.ts.map +1 -1
- package/dist/components/toc/toc.js +2 -1
- package/dist/components/toc/toc.js.map +1 -1
- package/dist/components/toggle/toggle.js +1 -0
- package/dist/components/toggle/toggle.js.map +1 -1
- package/dist/components/toggle-group/toggle-group.js +2 -1
- package/dist/components/toggle-group/toggle-group.js.map +1 -1
- package/dist/components/toolbar/toolbar.js +2 -1
- package/dist/components/toolbar/toolbar.js.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts +5 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.js +3 -2
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/hooks/use-direction.js +1 -0
- package/dist/hooks/use-direction.js.map +1 -1
- package/dist/hooks/use-dismissible.d.ts +4 -0
- package/dist/hooks/use-dismissible.d.ts.map +1 -1
- package/dist/hooks/use-dismissible.js +1 -0
- package/dist/hooks/use-dismissible.js.map +1 -1
- package/dist/hooks/use-local-storage.js +1 -0
- package/dist/hooks/use-local-storage.js.map +1 -1
- package/dist/hooks/use-media-query.js +1 -0
- package/dist/hooks/use-media-query.js.map +1 -1
- package/dist/hooks/use-reduced-motion.d.ts +1 -1
- package/dist/hooks/use-reduced-motion.js +1 -0
- package/dist/hooks/use-reduced-motion.js.map +1 -1
- package/dist/hooks/use-theme.d.ts +1 -1
- package/dist/hooks/use-theme.js +1 -0
- package/dist/hooks/use-theme.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/color-control.d.ts +75 -0
- package/dist/internal/color-control.d.ts.map +1 -0
- package/dist/internal/color-control.js +79 -0
- package/dist/internal/color-control.js.map +1 -0
- package/dist/internal/color-math.d.ts +9 -0
- package/dist/internal/color-math.d.ts.map +1 -0
- package/dist/internal/color-math.js +35 -0
- package/dist/internal/color-math.js.map +1 -0
- package/dist/internal/color-picker-context.d.ts +34 -0
- package/dist/internal/color-picker-context.d.ts.map +1 -0
- package/dist/internal/color-picker-context.js +42 -0
- package/dist/internal/color-picker-context.js.map +1 -0
- package/dist/{floating.d.ts → internal/floating.d.ts} +3 -3
- package/dist/internal/floating.d.ts.map +1 -0
- package/dist/{floating.js → internal/floating.js} +1 -0
- package/dist/internal/floating.js.map +1 -0
- package/dist/{modal.d.ts → internal/modal.d.ts} +2 -2
- package/dist/internal/modal.d.ts.map +1 -0
- package/dist/{modal.js → internal/modal.js} +1 -0
- package/dist/internal/modal.js.map +1 -0
- package/dist/{utils.d.ts → internal/utils.d.ts} +2 -2
- package/dist/internal/utils.d.ts.map +1 -0
- package/dist/{utils.js → internal/utils.js} +1 -0
- package/dist/internal/utils.js.map +1 -0
- package/dist/lib/color.d.ts +95 -0
- package/dist/lib/color.d.ts.map +1 -0
- package/dist/lib/color.js +329 -0
- package/dist/lib/color.js.map +1 -0
- package/dist/providers/direction-provider.d.ts +4 -4
- package/dist/providers/direction-provider.d.ts.map +1 -1
- package/dist/providers/direction-provider.js +1 -0
- package/dist/providers/direction-provider.js.map +1 -1
- package/dist/providers/reduced-motion-provider.d.ts +4 -8
- package/dist/providers/reduced-motion-provider.d.ts.map +1 -1
- package/dist/providers/reduced-motion-provider.js +1 -0
- package/dist/providers/reduced-motion-provider.js.map +1 -1
- package/dist/providers/theme-provider/index.js +1 -0
- package/dist/providers/theme-provider/index.js.map +1 -1
- package/dist/providers/theme-provider/theme-provider.d.ts +28 -12
- package/dist/providers/theme-provider/theme-provider.d.ts.map +1 -1
- package/dist/providers/theme-provider/theme-provider.js +1 -0
- package/dist/providers/theme-provider/theme-provider.js.map +1 -1
- package/dist/providers/theme-provider/theme-script.js +1 -0
- package/dist/providers/theme-provider/theme-script.js.map +1 -1
- package/package.json +91 -31
- package/src/components/accordion/accordion.tsx +25 -1
- package/src/components/alert/alert.tsx +30 -2
- package/src/components/alert-dialog/alert-dialog.test.tsx +34 -2
- package/src/components/alert-dialog/alert-dialog.tsx +21 -5
- package/src/components/autocomplete/autocomplete.test.tsx +1 -1
- package/src/components/autocomplete/autocomplete.tsx +22 -2
- package/src/components/avatar/avatar.test.tsx +2 -2
- package/src/components/avatar/avatar.tsx +17 -1
- package/src/components/background-pattern/background-pattern-interactive.tsx +4 -2
- package/src/components/background-pattern/background-pattern-shared.tsx +56 -19
- package/src/components/background-pattern/background-pattern.test.tsx +36 -1
- package/src/components/background-pattern/background-pattern.tsx +24 -9
- package/src/components/badge/badge.tsx +14 -2
- package/src/components/border-beam/border-beam.test.tsx +91 -0
- package/src/components/border-beam/border-beam.tsx +131 -0
- package/src/components/breadcrumb/breadcrumb.tsx +9 -1
- package/src/components/button/button-variants.ts +1 -1
- package/src/components/button/button.tsx +13 -2
- package/src/components/button-group/button-group.tsx +11 -1
- package/src/components/calendar/calendar.tsx +6 -1
- package/src/components/card/card.test.tsx +98 -0
- package/src/components/card/card.tsx +154 -0
- package/src/components/carousel/carousel.test.tsx +179 -0
- package/src/components/carousel/carousel.tsx +329 -6
- package/src/components/checkbox/checkbox.test.tsx +2 -2
- package/src/components/checkbox/checkbox.tsx +1 -1
- package/src/components/checkbox-group/checkbox-group.tsx +5 -1
- package/src/components/chip/chip.tsx +33 -1
- package/src/components/collapsible/collapsible.tsx +1 -1
- package/src/components/color-area/color-area.test.tsx +242 -0
- package/src/components/color-area/color-area.tsx +356 -0
- package/src/components/color-picker/color-picker.test.tsx +286 -0
- package/src/components/color-picker/color-picker.tsx +546 -0
- package/src/components/color-slider/color-slider.test.tsx +222 -0
- package/src/components/color-slider/color-slider.tsx +330 -0
- package/src/components/color-swatch/color-swatch.test.tsx +117 -0
- package/src/components/color-swatch/color-swatch.tsx +119 -0
- package/src/components/color-swatch-picker/color-swatch-picker.test.tsx +287 -0
- package/src/components/color-swatch-picker/color-swatch-picker.tsx +327 -0
- package/src/components/combobox/combobox.test.tsx +1 -1
- package/src/components/combobox/combobox.tsx +26 -2
- package/src/components/context-menu/context-menu.test.tsx +28 -0
- package/src/components/context-menu/context-menu.tsx +16 -5
- package/src/components/copy-button/copy-button.test.tsx +14 -1
- package/src/components/copy-button/copy-button.tsx +27 -6
- package/src/components/countdown/countdown.tsx +15 -1
- package/src/components/date-field/date-field.tsx +36 -1
- package/src/components/date-picker/date-picker.test.tsx +1 -1
- package/src/components/date-picker/date-picker.tsx +95 -1
- package/src/components/dialog/dialog.test.tsx +30 -1
- package/src/components/dialog/dialog.tsx +28 -6
- package/src/components/drawer/drawer.test.tsx +32 -1
- package/src/components/drawer/drawer.tsx +37 -7
- package/src/components/dropdown-menu/dropdown-menu.test.tsx +28 -0
- package/src/components/dropdown-menu/dropdown-menu.tsx +16 -5
- package/src/components/field/field.tsx +1 -1
- package/src/components/fieldset/fieldset.tsx +1 -1
- package/src/components/gradient-glow/gradient-glow.test.tsx +7 -1
- package/src/components/gradient-glow/gradient-glow.tsx +64 -11
- package/src/components/input/input-variants.ts +1 -1
- package/src/components/input/input.tsx +24 -4
- package/src/components/kbd/kbd.tsx +9 -1
- package/src/components/loader/loader.tsx +9 -1
- package/src/components/menubar/menubar.tsx +9 -1
- package/src/components/meter/meter.tsx +5 -1
- package/src/components/navigation/navigation-link-variants.ts +1 -1
- package/src/components/navigation/navigation-link.tsx +23 -1
- package/src/components/navigation/navigation.tsx +23 -3
- package/src/components/navigation-menu/navigation-menu.tsx +34 -1
- package/src/components/number-field/number-field.tsx +15 -1
- package/src/components/otp-field/otp-field.tsx +10 -1
- package/src/components/pagination/pagination.tsx +17 -1
- package/src/components/popover/popover.test.tsx +1 -1
- package/src/components/popover/popover.tsx +6 -2
- package/src/components/preview-card/preview-card.tsx +6 -2
- package/src/components/progress/progress.tsx +18 -1
- package/src/components/radio/radio.test.tsx +1 -1
- package/src/components/radio/radio.tsx +1 -1
- package/src/components/radio-group/radio-group.test.tsx +1 -1
- package/src/components/radio-group/radio-group.tsx +5 -1
- package/src/components/rating/rating.test.tsx +246 -0
- package/src/components/rating/rating.tsx +457 -0
- package/src/components/scroll-area/scroll-area.test.tsx +1 -1
- package/src/components/scroll-area/scroll-area.tsx +14 -1
- package/src/components/select/select.tsx +21 -2
- package/src/components/separator/separator.tsx +5 -1
- package/src/components/skeleton/skeleton.tsx +5 -1
- package/src/components/slider/slider.test.tsx +1 -1
- package/src/components/slider/slider.tsx +6 -1
- package/src/components/sparkline/sparkline.test.tsx +1 -1
- package/src/components/sparkline/sparkline.tsx +45 -1
- package/src/components/spinner/spinner.tsx +9 -1
- package/src/components/switch/switch.test.tsx +1 -1
- package/src/components/switch/switch.tsx +5 -1
- package/src/components/table/table.tsx +29 -1
- package/src/components/tabs/tabs.test.tsx +1 -1
- package/src/components/tabs/tabs.tsx +33 -2
- package/src/components/text-animate/text-animate.test.tsx +62 -0
- package/src/components/text-animate/text-animate.tsx +77 -9
- package/src/components/textarea/textarea.tsx +16 -1
- package/src/components/thumbnail/thumbnail.test.tsx +1 -1
- package/src/components/thumbnail/thumbnail.tsx +21 -1
- package/src/components/time-field/time-field.tsx +36 -1
- package/src/components/toast/toast.test.tsx +1 -1
- package/src/components/toast/toast.tsx +19 -1
- package/src/components/toc/toc.tsx +11 -1
- package/src/components/toggle/toggle.test.tsx +1 -1
- package/src/components/toggle-group/toggle-group.tsx +1 -1
- package/src/components/toolbar/toolbar.tsx +1 -1
- package/src/components/tooltip/tooltip.test.tsx +1 -1
- package/src/components/tooltip/tooltip.tsx +6 -2
- package/src/hooks/use-dismissible.ts +4 -0
- package/src/hooks/use-local-storage.ts +3 -3
- package/src/hooks/use-reduced-motion.ts +1 -1
- package/src/hooks/use-theme.ts +1 -1
- package/src/index.ts +11 -2
- package/src/internal/color-control.ts +178 -0
- package/src/internal/color-math.ts +44 -0
- package/src/internal/color-picker-context.ts +80 -0
- package/src/{floating.ts → internal/floating.ts} +3 -3
- package/src/{modal.ts → internal/modal.ts} +3 -3
- package/src/lib/color.test.ts +178 -0
- package/src/lib/color.ts +471 -0
- package/src/providers/direction-provider.tsx +4 -4
- package/src/providers/reduced-motion-provider.tsx +4 -8
- package/src/providers/theme-provider/theme-provider.tsx +28 -12
- package/src/providers/theme-provider/theme-script.tsx +2 -2
- package/src/test/setup.ts +1 -1
- package/styles.css +28 -4
- package/dist/floating.d.ts.map +0 -1
- package/dist/floating.js.map +0 -1
- package/dist/modal.d.ts.map +0 -1
- package/dist/modal.js.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js.map +0 -1
- /package/src/{floating.test.ts → internal/floating.test.ts} +0 -0
- /package/src/{modal.test.ts → internal/modal.test.ts} +0 -0
- /package/src/{utils.test.tsx → internal/utils.test.tsx} +0 -0
- /package/src/{utils.ts → internal/utils.ts} +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import { convertColor, parseColor, getColorChannels } from '../lib/color.js';
|
|
3
|
+
|
|
4
|
+
const COLOR_CONTROL_GROUP = "group/color-control";
|
|
5
|
+
const colorControlDisabledClasses = "data-disabled:pointer-events-none data-disabled:opacity-disabled data-disabled:bg-background-muted";
|
|
6
|
+
const colorControlRootClasses = `outline-ring relative isolate touch-none select-none forced-color-adjust-none outline-offset-2 has-focus-visible:outline-3 ${colorControlDisabledClasses}`;
|
|
7
|
+
const colorControlSurfaceClasses = "ring-border border-border-strong pointer-events-none absolute inset-0 rounded-[inherit] ring-1 ring-inset group-data-disabled/color-control:border group-data-disabled/color-control:border-dashed group-data-disabled/color-control:ring-0";
|
|
8
|
+
const colorControlThumbClasses = "absolute z-10 size-4.5 -translate-x-1/2 -translate-y-1/2 rounded-full border-3 border-white ring-1 ring-black/20 inset-ring-1 inset-ring-black/20 rtl:translate-x-1/2 motion-safe:transition-[scale] motion-safe:duration-150 motion-safe:ease-out group-active/color-control:scale-125 group-data-dragging/color-control:scale-125 data-disabled:bg-background-muted";
|
|
9
|
+
const colorControlCheckerboard = "repeating-conic-gradient(var(--background-strong) 0% 25%, var(--background) 0% 50%)";
|
|
10
|
+
const colorControlCheckerboardSize = "0.75rem 0.75rem";
|
|
11
|
+
const COLOR_SWATCH_SIZES = {
|
|
12
|
+
"3xs": "text-[1rem]",
|
|
13
|
+
"2xs": "text-[1.25rem]",
|
|
14
|
+
xs: "text-[1.5rem]",
|
|
15
|
+
sm: "text-[2rem]",
|
|
16
|
+
md: "text-[2.5rem]",
|
|
17
|
+
lg: "text-[3rem]",
|
|
18
|
+
xl: "text-[4rem]"
|
|
19
|
+
};
|
|
20
|
+
const COLOR_SWATCH_SHAPES = {
|
|
21
|
+
rounded: "rounded-[calc(tan(atan2(var(--radius-md),2.5rem))*100%)]",
|
|
22
|
+
circle: "rounded-full"
|
|
23
|
+
};
|
|
24
|
+
const HUE_NAMES = [
|
|
25
|
+
[15, "red"],
|
|
26
|
+
[45, "orange"],
|
|
27
|
+
[70, "yellow"],
|
|
28
|
+
[100, "lime"],
|
|
29
|
+
[150, "green"],
|
|
30
|
+
[175, "teal"],
|
|
31
|
+
[200, "cyan"],
|
|
32
|
+
[240, "blue"],
|
|
33
|
+
[270, "indigo"],
|
|
34
|
+
[300, "purple"],
|
|
35
|
+
[330, "magenta"],
|
|
36
|
+
[345, "pink"]
|
|
37
|
+
];
|
|
38
|
+
function describeColor(color) {
|
|
39
|
+
const { hue, saturation, lightness, alpha } = convertColor(color, "hsl");
|
|
40
|
+
if (alpha === 0) return "transparent";
|
|
41
|
+
const opacity = alpha < 1 ? `, ${Math.round(alpha * 100)}% opacity` : "";
|
|
42
|
+
if (lightness < 4) return `black${opacity}`;
|
|
43
|
+
if (lightness > 96) return `white${opacity}`;
|
|
44
|
+
if (saturation < 10) {
|
|
45
|
+
return `${lightness < 35 ? "dark gray" : lightness > 70 ? "light gray" : "gray"}${opacity}`;
|
|
46
|
+
}
|
|
47
|
+
const name = HUE_NAMES.find(([max]) => hue < max)?.[1] ?? "red";
|
|
48
|
+
const tone = lightness < 25 ? "very dark " : lightness < 42 ? "dark " : lightness > 82 ? "very light " : lightness > 65 ? "light " : "";
|
|
49
|
+
const vividness = saturation < 30 ? "muted " : saturation > 85 ? "vivid " : "";
|
|
50
|
+
return `${tone}${vividness}${name}${opacity}`;
|
|
51
|
+
}
|
|
52
|
+
const COLOR_CONTROL_SPACES = ["rgb", "hsl", "hsb"];
|
|
53
|
+
function snapToStep(value, min, max, step) {
|
|
54
|
+
const snapped = min + Math.round((value - min) / step) * step;
|
|
55
|
+
const decimals = (String(step).split(".")[1] ?? "").length;
|
|
56
|
+
return Math.min(Math.max(Number(snapped.toFixed(decimals)), min), max);
|
|
57
|
+
}
|
|
58
|
+
function normalizeColor(value) {
|
|
59
|
+
return typeof value === "string" ? parseColor(value) : value;
|
|
60
|
+
}
|
|
61
|
+
const CHANNEL_SPACE = {
|
|
62
|
+
red: "rgb",
|
|
63
|
+
green: "rgb",
|
|
64
|
+
blue: "rgb",
|
|
65
|
+
hue: "hsb",
|
|
66
|
+
saturation: "hsb",
|
|
67
|
+
brightness: "hsb",
|
|
68
|
+
lightness: "hsl"
|
|
69
|
+
};
|
|
70
|
+
function resolveControlSpace(valueSpace, channel, requested) {
|
|
71
|
+
if (requested) return requested;
|
|
72
|
+
const carries = (space) => channel == null || channel === "alpha" || getColorChannels(space).includes(channel);
|
|
73
|
+
const own = COLOR_CONTROL_SPACES.find((space) => space === valueSpace);
|
|
74
|
+
if (own && carries(own)) return own;
|
|
75
|
+
return (channel && CHANNEL_SPACE[channel]) ?? "rgb";
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { COLOR_CONTROL_GROUP, COLOR_CONTROL_SPACES, COLOR_SWATCH_SHAPES, COLOR_SWATCH_SIZES, colorControlCheckerboard, colorControlCheckerboardSize, colorControlDisabledClasses, colorControlRootClasses, colorControlSurfaceClasses, colorControlThumbClasses, describeColor, normalizeColor, resolveControlSpace, snapToStep };
|
|
79
|
+
//# sourceMappingURL=color-control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-control.js","sources":["../../src/internal/color-control.ts"],"sourcesContent":["// Shared plumbing for the color components (ColorArea, ColorSlider, ColorSwatch,\n// ColorSwatchPicker, ColorPicker). Keeping the border, the disabled treatment, the thumb, the\n// size ladder and the snapping here is what stops them from drifting apart visually.\n// Internal: nothing here is re-exported from the package.\n\nimport {\n type Color,\n type ColorChannel,\n type ColorSpace,\n convertColor,\n getColorChannels,\n parseColor,\n} from '../lib/color'\n\n/** Group name both control roots carry, so the shared thumb can react to either. */\nexport const COLOR_CONTROL_GROUP = 'group/color-control'\n\n/**\n * Inert, dimmed and flat-filled: the disabled treatment every color component shares.\n * The flat fill only shows because the components withhold their inline background\n * when disabled, leaving this class to paint.\n */\nexport const colorControlDisabledClasses =\n 'data-disabled:pointer-events-none data-disabled:opacity-disabled data-disabled:bg-background-muted'\n\n/**\n * That treatment plus the focus ring and gesture guards, for the two controls a\n * pointer drags. A swatch takes the disabled classes alone: `touch-none` there would\n * cost a palette its touch scrolling.\n */\nexport const colorControlRootClasses = `outline-ring relative isolate touch-none select-none forced-color-adjust-none outline-offset-2 has-focus-visible:outline-3 ${colorControlDisabledClasses}`\n\n/**\n * Hairline over the color, so a pale one still reads as a bounded surface, and\n * the dashed outline that replaces it when disabled. Both live on this overlay rather\n * than the root: a border on the root would shrink the padding box the thumb is\n * positioned against, nudging it a pixel the moment the control is disabled. The\n * border color is inert without a width, so only the width and style are scoped.\n */\nexport const colorControlSurfaceClasses =\n 'ring-border border-border-strong pointer-events-none absolute inset-0 rounded-[inherit] ring-1 ring-inset group-data-disabled/color-control:border group-data-disabled/color-control:border-dashed group-data-disabled/color-control:ring-0'\n\n/**\n * The thumb, minus positioning. Its own position is deliberately not transitioned -\n * easing it toward the pointer reads as lag. Only the press scale animates, and\n * `translate` and `scale` are separate properties, so centering the thumb and scaling\n * it never contend for `transform`.\n *\n * The white rim carries a faint dark ring on each side, so it stays legible over any\n * point of the gradient in either theme, including a white one.\n */\nexport const colorControlThumbClasses =\n 'absolute z-10 size-4.5 -translate-x-1/2 -translate-y-1/2 rounded-full border-3 border-white ring-1 ring-black/20 inset-ring-1 inset-ring-black/20 rtl:translate-x-1/2 motion-safe:transition-[scale] motion-safe:duration-150 motion-safe:ease-out group-active/color-control:scale-125 group-data-dragging/color-control:scale-125 data-disabled:bg-background-muted'\n\n// Backdrop for anything translucent - an alpha track, a swatch below full opacity -\n// so the transparency shows rather than being implied. Image and tile size stay\n// separate: `background-image` rejects the `0 0 / size` shorthand outright, taking\n// the whole declaration with it.\nexport const colorControlCheckerboard =\n 'repeating-conic-gradient(var(--background-strong) 0% 25%, var(--background) 0% 50%)'\n\nexport const colorControlCheckerboardSize = '0.75rem 0.75rem'\n\n/**\n * The swatch ladder: Avatar's, shifted one step down. A swatch is read beside a\n * value rather than looked at, so it needs 16px more than it needs 80px. Every name\n * the two scales share keeps its pixel size. Driven through `font-size` so a `1em`\n * box, its corner and anything nested scale from one declaration.\n */\nexport const COLOR_SWATCH_SIZES = {\n '3xs': 'text-[1rem]',\n '2xs': 'text-[1.25rem]',\n xs: 'text-[1.5rem]',\n sm: 'text-[2rem]',\n md: 'text-[2.5rem]',\n lg: 'text-[3rem]',\n xl: 'text-[4rem]',\n} as const\n\n/** Corner of a swatch and of anything drawn around one, as a share of the box. */\nexport const COLOR_SWATCH_SHAPES = {\n rounded: 'rounded-[calc(tan(atan2(var(--radius-md),2.5rem))*100%)]',\n circle: 'rounded-full',\n} as const\n\nconst HUE_NAMES: [number, string][] = [\n [15, 'red'],\n [45, 'orange'],\n [70, 'yellow'],\n [100, 'lime'],\n [150, 'green'],\n [175, 'teal'],\n [200, 'cyan'],\n [240, 'blue'],\n [270, 'indigo'],\n [300, 'purple'],\n [330, 'magenta'],\n [345, 'pink'],\n]\n\n/**\n * An English description of a color, for a swatch's accessible name. A hex string is\n * announced digit by digit, which tells a screen reader user nothing about the color;\n * \"dark vivid blue\" does.\n */\nexport function describeColor(color: Color): string {\n const { hue, saturation, lightness, alpha } = convertColor(color, 'hsl')\n if (alpha === 0) return 'transparent'\n const opacity = alpha < 1 ? `, ${Math.round(alpha * 100)}% opacity` : ''\n\n if (lightness < 4) return `black${opacity}`\n if (lightness > 96) return `white${opacity}`\n if (saturation < 10) {\n return `${lightness < 35 ? 'dark gray' : lightness > 70 ? 'light gray' : 'gray'}${opacity}`\n }\n\n const name = HUE_NAMES.find(([max]) => hue < max)?.[1] ?? 'red'\n const tone =\n lightness < 25\n ? 'very dark '\n : lightness < 42\n ? 'dark '\n : lightness > 82\n ? 'very light '\n : lightness > 65\n ? 'light '\n : ''\n const vividness = saturation < 30 ? 'muted ' : saturation > 85 ? 'vivid ' : ''\n return `${tone}${vividness}${name}${opacity}`\n}\n\n/** Spaces a control can plot. Every point of these is a distinct color. */\nexport type ColorControlSpace = Extract<ColorSpace, 'rgb' | 'hsl' | 'hsb'>\n\nexport const COLOR_CONTROL_SPACES: ColorControlSpace[] = ['rgb', 'hsl', 'hsb']\n\n/** Rounds to the nearest step, clamped, without the float dust `%` would leave. */\nexport function snapToStep(value: number, min: number, max: number, step: number): number {\n const snapped = min + Math.round((value - min) / step) * step\n const decimals = (String(step).split('.')[1] ?? '').length\n return Math.min(Math.max(Number(snapped.toFixed(decimals)), min), max)\n}\n\n/** Parses a string value, or passes a `Color` through untouched. */\nexport function normalizeColor(value: Color | string): Color {\n return typeof value === 'string' ? parseColor(value) : value\n}\n\n// Space a channel belongs to when the value's own can't carry it. Hue and saturation\n// exist in both HSL and HSB; HSB is the pairing a picker is usually built from.\nconst CHANNEL_SPACE: Partial<Record<ColorChannel, ColorControlSpace>> = {\n red: 'rgb',\n green: 'rgb',\n blue: 'rgb',\n hue: 'hsb',\n saturation: 'hsb',\n brightness: 'hsb',\n lightness: 'hsl',\n}\n\n/**\n * Picks the space a control works in: the value's own whenever it carries the\n * channel, otherwise the channel's home space. Preferring the value's space is what\n * lets an area and a slider share one color without converting it back and forth.\n */\nexport function resolveControlSpace(\n valueSpace: ColorSpace,\n channel: ColorChannel | undefined,\n requested?: ColorControlSpace,\n): ColorControlSpace {\n if (requested) return requested\n // Alpha rides along with every space, so it never forces a conversion.\n const carries = (space: ColorControlSpace) =>\n channel == null || channel === 'alpha' || getColorChannels(space).includes(channel)\n const own = COLOR_CONTROL_SPACES.find((space) => space === valueSpace)\n if (own && carries(own)) return own\n return (channel && CHANNEL_SPACE[channel]) ?? 'rgb'\n}\n"],"names":[],"mappings":";;;AAeO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,mBAAA,CAAA,CAAA,CAAsB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAO5B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,2BAAA,CAAA,CAAA,CACX,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CA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CAAA,CAAA,CAAA,CAAA;AAChD;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Applies the sRGB transfer function in reverse, giving linear light. */
|
|
2
|
+
export declare function srgbToLinear(c: number): number;
|
|
3
|
+
/** Applies the sRGB transfer function, giving an encoded component. */
|
|
4
|
+
export declare function linearToSrgb(c: number): number;
|
|
5
|
+
export declare function linearRgbToOklab(r: number, g: number, b: number): [number, number, number];
|
|
6
|
+
export declare function oklabToLinearRgb(L: number, a: number, b: number): [number, number, number];
|
|
7
|
+
/** Converts OKLCh to encoded sRGB components, without clamping. */
|
|
8
|
+
export declare function oklchToSrgb(L: number, chroma: number, hue: number): [number, number, number];
|
|
9
|
+
//# sourceMappingURL=color-math.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-math.d.ts","sourceRoot":"","sources":["../../src/internal/color-math.ts"],"names":[],"mappings":"AAIA,0EAA0E;AAC1E,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED,uEAAuE;AACvE,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE9C;AAID,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAS1F;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAS1F;AAED,mEAAmE;AACnE,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAI5F"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
function srgbToLinear(c) {
|
|
3
|
+
return c <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;
|
|
4
|
+
}
|
|
5
|
+
function linearToSrgb(c) {
|
|
6
|
+
return c <= 31308e-7 ? c * 12.92 : 1.055 * c ** (1 / 2.4) - 0.055;
|
|
7
|
+
}
|
|
8
|
+
function linearRgbToOklab(r, g, b) {
|
|
9
|
+
const l = Math.cbrt(0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b);
|
|
10
|
+
const m = Math.cbrt(0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b);
|
|
11
|
+
const s = Math.cbrt(0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b);
|
|
12
|
+
return [
|
|
13
|
+
0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,
|
|
14
|
+
1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,
|
|
15
|
+
0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
function oklabToLinearRgb(L, a, b) {
|
|
19
|
+
const l = (L + 0.3963377774 * a + 0.2158037573 * b) ** 3;
|
|
20
|
+
const m = (L - 0.1055613458 * a - 0.0638541728 * b) ** 3;
|
|
21
|
+
const s = (L - 0.0894841775 * a - 1.291485548 * b) ** 3;
|
|
22
|
+
return [
|
|
23
|
+
4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s,
|
|
24
|
+
-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s,
|
|
25
|
+
-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
function oklchToSrgb(L, chroma, hue) {
|
|
29
|
+
const radians = hue * Math.PI / 180;
|
|
30
|
+
const linear = oklabToLinearRgb(L, chroma * Math.cos(radians), chroma * Math.sin(radians));
|
|
31
|
+
return [linearToSrgb(linear[0]), linearToSrgb(linear[1]), linearToSrgb(linear[2])];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { linearRgbToOklab, linearToSrgb, oklabToLinearRgb, oklchToSrgb, srgbToLinear };
|
|
35
|
+
//# sourceMappingURL=color-math.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-math.js","sources":["../../src/internal/color-math.ts"],"sourcesContent":["// Matrix conversions behind lib/color.ts, kept apart from its object API and\n// clamping rules. Internal - nothing here is re-exported from the package.\n// Units are native: sRGB and linear components 0-1, OKLab L 0-1, hue in degrees.\n\n/** Applies the sRGB transfer function in reverse, giving linear light. */\nexport function srgbToLinear(c: number): number {\n return c <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4\n}\n\n/** Applies the sRGB transfer function, giving an encoded component. */\nexport function linearToSrgb(c: number): number {\n return c <= 0.0031308 ? c * 12.92 : 1.055 * c ** (1 / 2.4) - 0.055\n}\n\n// Matrices are Björn Ottosson's reference values, https://bottosson.github.io/posts/oklab/.\n\nexport function linearRgbToOklab(r: number, g: number, b: number): [number, number, number] {\n const l = Math.cbrt(0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b)\n const m = Math.cbrt(0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b)\n const s = Math.cbrt(0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b)\n return [\n 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,\n 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,\n 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s,\n ]\n}\n\nexport function oklabToLinearRgb(L: number, a: number, b: number): [number, number, number] {\n const l = (L + 0.3963377774 * a + 0.2158037573 * b) ** 3\n const m = (L - 0.1055613458 * a - 0.0638541728 * b) ** 3\n const s = (L - 0.0894841775 * a - 1.291485548 * b) ** 3\n return [\n 4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s,\n -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s,\n -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s,\n ]\n}\n\n/** Converts OKLCh to encoded sRGB components, without clamping. */\nexport function oklchToSrgb(L: number, chroma: number, hue: number): [number, number, number] {\n const radians = (hue * Math.PI) / 180\n const linear = oklabToLinearRgb(L, chroma * Math.cos(radians), chroma * Math.sin(radians))\n return [linearToSrgb(linear[0]), linearToSrgb(linear[1]), linearToSrgb(linear[2])]\n}\n"],"names":[],"mappings":";AAKO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAa,CAAA,CAAA,CAAmB;AAC9C,CAAA,CAAA,OAAO,KAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CAAA,CAAA,CAAI,SAAS,CAAA,CAAA,CAAA,CAAA,CAAA,KAAU,CAAA,CAAA,CAAA;AAC7D;AAGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAa,CAAA,CAAA,CAAmB;AAC9C,CAAA,CAAA,OAAO,KAAK,QAAA,CAAA,CAAA,CAAY,CAAA,GAAI,CAAA,CAAA,CAAA,CAAA,IAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,IAAI,CAAA,CAAA,CAAA,CAAA,GAAO,CAAA,CAAA,CAAA,CAAA,CAAA;AAC/D;AAIO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,gBAAA,CAAiB,CAAA,EAAW,CAAA,CAAA,CAAW,CAAA,CAAA,CAAqC;AAC1F,CAAA,C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F,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAC,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,MAAA,CAAO,CAAC,CAAC,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAC,CAAC,CAAA;AACnF;;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { Color, ColorFormat } from '../lib/color';
|
|
3
|
+
export interface ColorPickerContextValue {
|
|
4
|
+
value: Color;
|
|
5
|
+
setValue: (color: Color) => void;
|
|
6
|
+
commitValue: (color: Color) => void;
|
|
7
|
+
format: ColorFormat;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const ColorPickerContext: React.Context<ColorPickerContextValue | null>;
|
|
11
|
+
/** The enclosing picker, or `null` when the control stands on its own. */
|
|
12
|
+
export declare function useColorPickerContext(): ColorPickerContextValue | null;
|
|
13
|
+
/** The enclosing picker, for the parts that only exist inside one. */
|
|
14
|
+
export declare function useRequiredColorPickerContext(part: string): ColorPickerContextValue;
|
|
15
|
+
export interface ColorControlOptions {
|
|
16
|
+
value?: Color | string;
|
|
17
|
+
defaultValue: Color | string;
|
|
18
|
+
onValueChange?: (value: Color) => void;
|
|
19
|
+
onValueCommitted?: (value: Color) => void;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface ColorControl {
|
|
23
|
+
color: Color;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
setColor: (color: Color) => void;
|
|
26
|
+
commitColor: (color: Color) => void;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Resolves a control's color from, in order: its own `value`, the enclosing picker,
|
|
30
|
+
* its own state. Writes go to the picker and to the callbacks either way, so a
|
|
31
|
+
* control stays reportable even when the picker owns the value.
|
|
32
|
+
*/
|
|
33
|
+
export declare function useColorControl({ value, defaultValue, onValueChange, onValueCommitted, disabled, }: ColorControlOptions): ColorControl;
|
|
34
|
+
//# sourceMappingURL=color-picker-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-picker-context.d.ts","sourceRoot":"","sources":["../../src/internal/color-picker-context.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAEtD,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,KAAK,CAAA;IACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IAChC,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IACnC,MAAM,EAAE,WAAW,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,kBAAkB,+CAA4D,CAAA;AAE3F,0EAA0E;AAC1E,wBAAgB,qBAAqB,IAAI,uBAAuB,GAAG,IAAI,CAEtE;AAED,sEAAsE;AACtE,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,GAAG,uBAAuB,CAInF;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IACtB,YAAY,EAAE,KAAK,GAAG,MAAM,CAAA;IAC5B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IACtC,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,KAAK,CAAA;IACZ,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IAChC,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CACpC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,QAAgB,GACjB,EAAE,mBAAmB,GAAG,YAAY,CAoBpC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
'use client';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { normalizeColor } from './color-control.js';
|
|
5
|
+
|
|
6
|
+
const ColorPickerContext = React.createContext(null);
|
|
7
|
+
function useColorPickerContext() {
|
|
8
|
+
return React.useContext(ColorPickerContext);
|
|
9
|
+
}
|
|
10
|
+
function useRequiredColorPickerContext(part) {
|
|
11
|
+
const context = React.useContext(ColorPickerContext);
|
|
12
|
+
if (!context) throw new Error(`Appica UI: <${part}> must be used within <ColorPicker>.`);
|
|
13
|
+
return context;
|
|
14
|
+
}
|
|
15
|
+
function useColorControl({
|
|
16
|
+
value,
|
|
17
|
+
defaultValue,
|
|
18
|
+
onValueChange,
|
|
19
|
+
onValueCommitted,
|
|
20
|
+
disabled = false
|
|
21
|
+
}) {
|
|
22
|
+
const picker = useColorPickerContext();
|
|
23
|
+
const [uncontrolled, setUncontrolled] = React.useState(() => normalizeColor(defaultValue));
|
|
24
|
+
const controlled = value !== void 0;
|
|
25
|
+
const color = controlled ? normalizeColor(value) : picker?.value ?? uncontrolled;
|
|
26
|
+
return {
|
|
27
|
+
color,
|
|
28
|
+
disabled: disabled || (picker?.disabled ?? false),
|
|
29
|
+
setColor: (next) => {
|
|
30
|
+
if (!controlled && !picker) setUncontrolled(next);
|
|
31
|
+
picker?.setValue(next);
|
|
32
|
+
onValueChange?.(next);
|
|
33
|
+
},
|
|
34
|
+
commitColor: (next) => {
|
|
35
|
+
picker?.commitValue(next);
|
|
36
|
+
onValueCommitted?.(next);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { ColorPickerContext, useColorControl, useColorPickerContext, useRequiredColorPickerContext };
|
|
42
|
+
//# sourceMappingURL=color-picker-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-picker-context.js","sources":["../../src/internal/color-picker-context.ts"],"sourcesContent":["'use client'\n\n// The channel ColorPicker uses to drive the controls composed inside it. A control\n// with no `value` of its own reads the picker's color and writes back to it, which is\n// what lets an area, a slider and a palette share one value without any prop wiring.\n// Internal: nothing here is re-exported from the package.\n\nimport * as React from 'react'\nimport { normalizeColor } from './color-control'\nimport type { Color, ColorFormat } from '../lib/color'\n\nexport interface ColorPickerContextValue {\n value: Color\n setValue: (color: Color) => void\n commitValue: (color: Color) => void\n format: ColorFormat\n disabled: boolean\n}\n\nexport const ColorPickerContext = React.createContext<ColorPickerContextValue | null>(null)\n\n/** The enclosing picker, or `null` when the control stands on its own. */\nexport function useColorPickerContext(): ColorPickerContextValue | null {\n return React.useContext(ColorPickerContext)\n}\n\n/** The enclosing picker, for the parts that only exist inside one. */\nexport function useRequiredColorPickerContext(part: string): ColorPickerContextValue {\n const context = React.useContext(ColorPickerContext)\n if (!context) throw new Error(`Appica UI: <${part}> must be used within <ColorPicker>.`)\n return context\n}\n\nexport interface ColorControlOptions {\n value?: Color | string\n defaultValue: Color | string\n onValueChange?: (value: Color) => void\n onValueCommitted?: (value: Color) => void\n disabled?: boolean\n}\n\nexport interface ColorControl {\n color: Color\n disabled: boolean\n setColor: (color: Color) => void\n commitColor: (color: Color) => void\n}\n\n/**\n * Resolves a control's color from, in order: its own `value`, the enclosing picker,\n * its own state. Writes go to the picker and to the callbacks either way, so a\n * control stays reportable even when the picker owns the value.\n */\nexport function useColorControl({\n value,\n defaultValue,\n onValueChange,\n onValueCommitted,\n disabled = false,\n}: ColorControlOptions): ColorControl {\n const picker = useColorPickerContext()\n const [uncontrolled, setUncontrolled] = React.useState<Color>(() => normalizeColor(defaultValue))\n\n const controlled = value !== undefined\n const color = controlled ? normalizeColor(value) : (picker?.value ?? uncontrolled)\n\n return {\n color,\n disabled: disabled || (picker?.disabled ?? false),\n setColor: (next) => {\n if (!controlled && !picker) setUncontrolled(next)\n picker?.setValue(next)\n onValueChange?.(next)\n },\n commitColor: (next) => {\n picker?.commitValue(next)\n onValueCommitted?.(next)\n },\n }\n}\n"],"names":[],"mappings":";;;;;AAmBO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,kBAAA,CAAA,CAAA,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA8C,CAAA,CAAA,CAAA,CAAI,CAAA;AAGnF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,qBAAA,CAAA,CAAA,CAAwD;AACtE,CAAA,CAAA,OAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAW,kBAAkB,CAAA;AAC5C;AAGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,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,EAA8B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAuC;AACnF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA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CAAA,CAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS;AACrB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAY,IAAI,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmB,CAAA,CAAA,CAAA,CAAI,CAAA;AAAA,CAAA,CAAA,CAAA,CACzB;AAAA,CAAA,CAAA,CACF;AACF;;"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Positioner props promoted to flat props on every floating *Content.
|
|
3
3
|
* Mirrors Base UI's `UseAnchorPositioningSharedParameters` (v1.5.0).
|
|
4
4
|
*/
|
|
5
|
-
export declare const FLOATING_POSITIONER_KEYS: readonly [
|
|
5
|
+
export declare const FLOATING_POSITIONER_KEYS: readonly ['side', 'sideOffset', 'align', 'alignOffset', 'anchor', 'positionMethod', 'collisionBoundary', 'collisionPadding', 'collisionAvoidance', 'sticky', 'arrowPadding', 'disableAnchorTracking'];
|
|
6
6
|
/** Portal props promoted to flat props on every floating *Content. */
|
|
7
|
-
export declare const FLOATING_PORTAL_KEYS: readonly [
|
|
7
|
+
export declare const FLOATING_PORTAL_KEYS: readonly ['container', 'keepMounted'];
|
|
8
8
|
type PositionerKey = (typeof FLOATING_POSITIONER_KEYS)[number];
|
|
9
9
|
type PortalKey = (typeof FLOATING_PORTAL_KEYS)[number];
|
|
10
10
|
/**
|
|
@@ -40,7 +40,7 @@ export interface SplitFloatingProps {
|
|
|
40
40
|
* - Anything left that isn't a known Positioner/Portal prop is treated as a Popup prop.
|
|
41
41
|
*
|
|
42
42
|
* Destructure `className`/`children` (and any component-specific props) out of the
|
|
43
|
-
* props object before calling this
|
|
43
|
+
* props object before calling this - they should not reach the generic Popup spread.
|
|
44
44
|
*/
|
|
45
45
|
export declare function splitFloatingProps(props: Record<string, unknown>): SplitFloatingProps;
|
|
46
46
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floating.d.ts","sourceRoot":"","sources":["../../src/internal/floating.ts"],"names":[],"mappings":"AAiBA;;;GAGG;AACH,eAAO,MAAM,wBAAwB,YACnC,MAAM,EACN,YAAY,EACZ,OAAO,EACP,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,QAAQ,EACR,cAAc,EACd,uBAAuB,CACf,CAAA;AAEV,sEAAsE;AACtE,eAAO,MAAM,oBAAoB,YAAI,WAAW,EAAE,aAAa,CAAU,CAAA;AAEzE,KAAK,aAAa,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAA;AAC9D,KAAK,SAAS,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEtD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,oBAAoB,CAAC,UAAU,EAAE,MAAM,IAAI,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,MAAM,UAAU,EAAE,aAAa,CAAC,CAAC,GAC/G,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,MAAM,EAAE,SAAS,CAAC,CAAC,GAAG;IAC/C,8FAA8F;IAC9F,eAAe,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,aAAa,GAAG,UAAU,CAAC,CAAA;IAC9D,0FAA0F;IAC1F,WAAW,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,SAAS,GAAG,UAAU,CAAC,CAAA;CACnD,CAAA;AAEH,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC/B;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,kBAAkB,CAsBrF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floating.js","sources":["../../src/internal/floating.ts"],"sourcesContent":["// Shared plumbing for floating *Content components - the ones that wrap a Base UI\n// Portal → Positioner → Popup trio (Popover, Tooltip, PreviewCard, Menu, Select,\n// Combobox, Autocomplete, …).\n//\n// Consumers of this library don't get direct access to the inner Portal/Positioner\n// elements the way a copy-paste (shadcn-style) component would. So every *Content\n// must map the Base UI surface itself. This module keeps that mapping consistent:\n//\n// 1. The common Positioner positioning props (+ the two Portal props) are\n// promoted to flat props on *Content - Radix/shadcn ergonomics.\n// 2. `positionerProps` / `portalProps` escape hatches forward the long tail\n// (e.g. `style`, `render`) without each component re-enumerating it.\n//\n// `className`/`style`/`render` are intentionally NOT promoted: *Content represents\n// the Popup, so those stay bound to it. Use the escape hatches to reach the\n// Positioner/Portal element instead.\n\n/**\n * Positioner props promoted to flat props on every floating *Content.\n * Mirrors Base UI's `UseAnchorPositioningSharedParameters` (v1.5.0).\n */\nexport const FLOATING_POSITIONER_KEYS = [\n 'side',\n 'sideOffset',\n 'align',\n 'alignOffset',\n 'anchor',\n 'positionMethod',\n 'collisionBoundary',\n 'collisionPadding',\n 'collisionAvoidance',\n 'sticky',\n 'arrowPadding',\n 'disableAnchorTracking',\n] as const\n\n/** Portal props promoted to flat props on every floating *Content. */\nexport const FLOATING_PORTAL_KEYS = ['container', 'keepMounted'] as const\n\ntype PositionerKey = (typeof FLOATING_POSITIONER_KEYS)[number]\ntype PortalKey = (typeof FLOATING_PORTAL_KEYS)[number]\n\n/**\n * Flat positioning/portal props + typed escape hatches, derived from a\n * component's own Positioner and Portal prop 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 PopoverContentProps = React.ComponentProps<typeof BasePopover.Popup> &\n * FloatingContentProps<\n * React.ComponentProps<typeof BasePopover.Positioner>,\n * React.ComponentProps<typeof BasePopover.Portal>\n * > & { arrow?: boolean }\n * ```\n */\nexport type FloatingContentProps<Positioner, Portal> = Pick<Positioner, Extract<keyof Positioner, PositionerKey>> &\n Pick<Portal, Extract<keyof Portal, PortalKey>> & {\n /** Escape hatch: extra props forwarded to the Base UI Positioner (e.g. `style`, `render`). */\n positionerProps?: Omit<Positioner, PositionerKey | 'children'>\n /** Escape hatch: extra props forwarded to the Base UI Portal (e.g. `style`, `render`). */\n portalProps?: Omit<Portal, PortalKey | 'children'>\n }\n\nexport interface SplitFloatingProps {\n positioner: Record<string, unknown>\n portal: Record<string, unknown>\n popup: Record<string, unknown>\n}\n\n/**\n * Partition a *Content component's spread props into its three Base UI targets.\n *\n * - Flat positioning/portal props win over the same keys inside\n * `positionerProps`/`portalProps` (the flat prop is the documented primary API).\n * - Anything left that isn't a known Positioner/Portal prop is treated as a Popup prop.\n *\n * Destructure `className`/`children` (and any component-specific props) out of the\n * props object before calling this - they should not reach the generic Popup spread.\n */\nexport function splitFloatingProps(props: Record<string, unknown>): SplitFloatingProps {\n const { positionerProps, portalProps, ...rest } = props as {\n positionerProps?: Record<string, unknown>\n portalProps?: Record<string, unknown>\n } & Record<string, unknown>\n\n const positioner: Record<string, unknown> = { ...positionerProps }\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 ((FLOATING_POSITIONER_KEYS as readonly string[]).includes(key)) {\n if (value !== undefined) positioner[key] = value\n } else if ((FLOATING_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 { positioner, portal, popup }\n}\n"],"names":[],"mappings":";AAqBO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,wBAAA,CAAA,CAAA,CAA2B;AAAA,CAAA,CACtC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,C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A2C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAG,CAAA,CAAA,CAAG;AACpE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,MAAA,CAAO,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACzC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO;AACL,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAG,CAAA,GAAI,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACf;AAAA,CAAA,CACF;AAEA,CAAA,CAAA,OAAO,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,KAAA,CAAA,CAAM;AACrC;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Portal props promoted to flat props on every modal *Content. */
|
|
2
|
-
export declare const MODAL_PORTAL_KEYS: readonly [
|
|
2
|
+
export declare const MODAL_PORTAL_KEYS: readonly ['container', 'keepMounted'];
|
|
3
3
|
type ModalPortalKey = (typeof MODAL_PORTAL_KEYS)[number];
|
|
4
4
|
/**
|
|
5
5
|
* Flat Portal props + typed escape hatches for the Backdrop/Viewport/Portal,
|
|
@@ -34,7 +34,7 @@ export interface SplitModalProps {
|
|
|
34
34
|
*
|
|
35
35
|
* Destructure `className`/`children`, the `backdropProps`/`viewportProps` escape
|
|
36
36
|
* hatches, and any component-specific props (`backdrop`, `closeButton`, …) out of
|
|
37
|
-
* the props object before calling this
|
|
37
|
+
* the props object before calling this - everything left that isn't a known
|
|
38
38
|
* Portal prop is treated as a Popup prop.
|
|
39
39
|
*/
|
|
40
40
|
export declare function splitModalProps(props: Record<string, unknown>): SplitModalProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/internal/modal.ts"],"names":[],"mappings":"AAiBA,mEAAmE;AACnE,eAAO,MAAM,iBAAiB,YAAI,WAAW,EAAE,aAAa,CAAU,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.js","sources":["../../src/internal/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,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,CAAoB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAA;AA2CrD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiD;AAC/E,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,EAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAI,CAA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AG,CAAA,GAAI,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACf;AAAA,CAAA,CACF;AAEA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,GAAQ,KAAA,CAAA,CAAM;AACzB;;"}
|
|
@@ -7,11 +7,11 @@ export declare function useComposedRefs<T>(...refs: PossibleRef<T>[]): (node: T)
|
|
|
7
7
|
export declare function focusableProps(disabled?: boolean): {
|
|
8
8
|
readonly tabIndex: -1;
|
|
9
9
|
readonly 'aria-disabled': true;
|
|
10
|
-
readonly 'data-disabled':
|
|
10
|
+
readonly 'data-disabled': '';
|
|
11
11
|
} | {
|
|
12
|
-
readonly tabIndex: 0;
|
|
13
12
|
readonly 'aria-disabled'?: undefined;
|
|
14
13
|
readonly 'data-disabled'?: undefined;
|
|
14
|
+
readonly tabIndex: 0;
|
|
15
15
|
};
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/internal/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAA;AAE5C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,KAAK,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;AAU9C,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,UACxC,CAAC,KAAG,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CAyBtC;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,gBA3BxC,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CA8BtC;AAED,wBAAgB,cAAc,CAAC,QAAQ,UAAQ;uBAExB,CAAC,CAAC;;8BAA0C,EAAE;;;;uBAEhD,CAAC;EACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../src/internal/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\nimport * as React from 'react'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n\ntype PossibleRef<T> = React.Ref<T> | undefined\n\nfunction setRef<T>(ref: PossibleRef<T>, value: T): (() => void) | void {\n if (typeof ref === 'function') {\n return ref(value) as (() => void) | void\n } else if (ref != null) {\n ;(ref as React.RefObject<T>).current = value\n }\n}\n\nexport function composeRefs<T>(...refs: PossibleRef<T>[]) {\n return (node: T): void | (() => void) => {\n let hasCleanup = false\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node)\n if (!hasCleanup && typeof cleanup === 'function') {\n hasCleanup = true\n }\n return cleanup\n })\n\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i]\n if (typeof cleanup === 'function') {\n cleanup()\n } else {\n setRef(refs[i], null as T)\n }\n }\n }\n }\n\n return undefined\n }\n}\n\nexport function useComposedRefs<T>(...refs: PossibleRef<T>[]) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(composeRefs(...refs), refs)\n}\n\nexport function focusableProps(disabled = false) {\n if (disabled) {\n return { tabIndex: -1, 'aria-disabled': true, 'data-disabled': '' } as const\n }\n return { tabIndex: 0 } as const\n}\n"],"names":[],"mappings":";;;;;AAIO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,KAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAsB;AAC1C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G;AAAA,CAAA,CACpE;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAU,CAAA,CAAA,CAAE;AACvB;;"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/** A color space a `Color` can be expressed in. */
|
|
2
|
+
export type ColorSpace = 'rgb' | 'hsl' | 'hsb' | 'oklch';
|
|
3
|
+
/** A single adjustable component of a color. */
|
|
4
|
+
export type ColorChannel = 'red' | 'green' | 'blue' | 'hue' | 'saturation' | 'lightness' | 'brightness' | 'chroma' | 'alpha';
|
|
5
|
+
/** A string form `formatColor` can produce and `parseColor` can read back. */
|
|
6
|
+
export type ColorFormat = 'hex' | 'hexa' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'hsb' | 'hsba' | 'oklch' | 'oklcha';
|
|
7
|
+
/** sRGB color. Channels are 0-255, alpha is 0-1. */
|
|
8
|
+
export interface RgbColor {
|
|
9
|
+
space: 'rgb';
|
|
10
|
+
red: number;
|
|
11
|
+
green: number;
|
|
12
|
+
blue: number;
|
|
13
|
+
alpha: number;
|
|
14
|
+
}
|
|
15
|
+
/** HSL color. Hue is 0-360, saturation and lightness are 0-100, alpha is 0-1. */
|
|
16
|
+
export interface HslColor {
|
|
17
|
+
space: 'hsl';
|
|
18
|
+
hue: number;
|
|
19
|
+
saturation: number;
|
|
20
|
+
lightness: number;
|
|
21
|
+
alpha: number;
|
|
22
|
+
}
|
|
23
|
+
/** HSB (a.k.a. HSV) color. Hue is 0-360, saturation and brightness are 0-100, alpha is 0-1. */
|
|
24
|
+
export interface HsbColor {
|
|
25
|
+
space: 'hsb';
|
|
26
|
+
hue: number;
|
|
27
|
+
saturation: number;
|
|
28
|
+
brightness: number;
|
|
29
|
+
alpha: number;
|
|
30
|
+
}
|
|
31
|
+
/** OKLCh color. Lightness is 0-100, chroma is 0-0.4, hue is 0-360, alpha is 0-1. */
|
|
32
|
+
export interface OklchColor {
|
|
33
|
+
space: 'oklch';
|
|
34
|
+
lightness: number;
|
|
35
|
+
chroma: number;
|
|
36
|
+
hue: number;
|
|
37
|
+
alpha: number;
|
|
38
|
+
}
|
|
39
|
+
/** A color value in one of the supported color spaces. */
|
|
40
|
+
export type Color = RgbColor | HslColor | HsbColor | OklchColor;
|
|
41
|
+
/** The bounds and increments of a channel within a given color space. */
|
|
42
|
+
export interface ColorChannelRange {
|
|
43
|
+
/** Lowest value the channel accepts. */
|
|
44
|
+
minValue: number;
|
|
45
|
+
/** Highest value the channel accepts. */
|
|
46
|
+
maxValue: number;
|
|
47
|
+
/** Increment applied by an arrow key. */
|
|
48
|
+
step: number;
|
|
49
|
+
/** Increment applied by Page Up, Page Down, or a shifted arrow key. */
|
|
50
|
+
pageSize: number;
|
|
51
|
+
}
|
|
52
|
+
/** The three channels of a color space, mapped onto the axes of a color area. */
|
|
53
|
+
export interface ColorAxes {
|
|
54
|
+
/** Channel driven by the horizontal axis. */
|
|
55
|
+
xChannel: ColorChannel;
|
|
56
|
+
/** Channel driven by the vertical axis. */
|
|
57
|
+
yChannel: ColorChannel;
|
|
58
|
+
/** Channel held constant, and so not represented by either axis. */
|
|
59
|
+
zChannel: ColorChannel;
|
|
60
|
+
}
|
|
61
|
+
/** Returns the three channels that define `space`, in canonical order. */
|
|
62
|
+
export declare function getColorChannels(space: ColorSpace): [ColorChannel, ColorChannel, ColorChannel];
|
|
63
|
+
/** Returns the bounds and increments of `channel` within `space`. */
|
|
64
|
+
export declare function getChannelRange(space: ColorSpace, channel: ColorChannel): ColorChannelRange;
|
|
65
|
+
/** Reads a single channel off a color. Throws if the channel is not in the color's space. */
|
|
66
|
+
export declare function getChannelValue(color: Color, channel: ColorChannel): number;
|
|
67
|
+
/** Returns a copy of `color` with `channel` clamped into range and set to `value`. */
|
|
68
|
+
export declare function withChannelValue(color: Color, channel: ColorChannel, value: number): Color;
|
|
69
|
+
/**
|
|
70
|
+
* Resolves the x, y and z channels of a color area. Unspecified axes fall back to
|
|
71
|
+
* the first channels of `space` that are still free.
|
|
72
|
+
*/
|
|
73
|
+
export declare function getColorSpaceAxes(space: ColorSpace, axes?: Partial<Omit<ColorAxes, 'zChannel'>>): ColorAxes;
|
|
74
|
+
/** Converts `color` into `space`. Returns the same object when it is already there. */
|
|
75
|
+
export declare function convertColor<S extends ColorSpace>(color: Color, space: S): Extract<Color, {
|
|
76
|
+
space: S;
|
|
77
|
+
}>;
|
|
78
|
+
/** Returns the English display name of `channel`, for labels and value text. */
|
|
79
|
+
export declare function getChannelName(channel: ColorChannel): string;
|
|
80
|
+
/** Formats a channel value for display, with the unit the channel is measured in. */
|
|
81
|
+
export declare function formatChannelValue(color: Color, channel: ColorChannel): string;
|
|
82
|
+
/**
|
|
83
|
+
* Parses a CSS color string into a `Color`. Accepts hex (3, 4, 6 or 8 digits),
|
|
84
|
+
* `rgb()`, `hsl()`, `oklch()` in both comma and space separated forms, plus the
|
|
85
|
+
* non-CSS `hsb()` used by design tools. Throws on anything else.
|
|
86
|
+
*/
|
|
87
|
+
export declare function parseColor(value: string): Color;
|
|
88
|
+
/** Parses `value` into a `Color`, returning `undefined` instead of throwing on bad input. */
|
|
89
|
+
export declare function safeParseColor(value: string): Color | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Serializes `color` to a CSS string. `'css'` picks the shortest form the browser
|
|
92
|
+
* understands for the color's own space, which is what you want for a `background`.
|
|
93
|
+
*/
|
|
94
|
+
export declare function formatColor(color: Color, format?: ColorFormat | 'css'): string;
|
|
95
|
+
//# sourceMappingURL=color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/lib/color.ts"],"names":[],"mappings":"AAUA,mDAAmD;AACnD,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,CAAA;AAExD,gDAAgD;AAChD,MAAM,MAAM,YAAY,GACtB,KAAK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