@moduix/react 1.1.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.md +21 -0
- package/README.md +252 -0
- package/dist/components/accordion/Accordion.css +190 -0
- package/dist/components/accordion/Accordion.d.ts +13 -0
- package/dist/components/accordion/Accordion.js +67 -0
- package/dist/components/accordion/Accordion.module.js +15 -0
- package/dist/components/accordion/index.d.ts +2 -0
- package/dist/components/alert/Alert.css +108 -0
- package/dist/components/alert/Alert.d.ts +14 -0
- package/dist/components/alert/Alert.js +69 -0
- package/dist/components/alert/Alert.module.js +11 -0
- package/dist/components/angle-slider/AngleSlider.css +192 -0
- package/dist/components/angle-slider/AngleSlider.d.ts +16 -0
- package/dist/components/angle-slider/AngleSlider.js +92 -0
- package/dist/components/angle-slider/AngleSlider.module.js +13 -0
- package/dist/components/angle-slider/index.d.ts +2 -0
- package/dist/components/aspect-ratio/AspectRatio.css +14 -0
- package/dist/components/aspect-ratio/AspectRatio.d.ts +10 -0
- package/dist/components/aspect-ratio/AspectRatio.js +24 -0
- package/dist/components/aspect-ratio/AspectRatio.module.js +5 -0
- package/dist/components/avatar/Avatar.css +75 -0
- package/dist/components/avatar/Avatar.d.ts +19 -0
- package/dist/components/avatar/Avatar.js +49 -0
- package/dist/components/avatar/Avatar.module.js +9 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/badge/Badge.css +66 -0
- package/dist/components/badge/Badge.d.ts +11 -0
- package/dist/components/badge/Badge.js +35 -0
- package/dist/components/badge/Badge.module.js +8 -0
- package/dist/components/bleed/Bleed.css +51 -0
- package/dist/components/bleed/Bleed.d.ts +12 -0
- package/dist/components/bleed/Bleed.js +22 -0
- package/dist/components/bleed/Bleed.module.js +5 -0
- package/dist/components/breadcrumbs/Breadcrumbs.css +90 -0
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +12 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +95 -0
- package/dist/components/breadcrumbs/Breadcrumbs.module.js +13 -0
- package/dist/components/button/Button.css +193 -0
- package/dist/components/button/Button.d.ts +14 -0
- package/dist/components/button/Button.js +28 -0
- package/dist/components/button/Button.module.js +5 -0
- package/dist/components/card/Card.css +148 -0
- package/dist/components/card/Card.d.ts +19 -0
- package/dist/components/card/Card.js +101 -0
- package/dist/components/card/Card.module.js +14 -0
- package/dist/components/carousel/Carousel.css +198 -0
- package/dist/components/carousel/Carousel.d.ts +19 -0
- package/dist/components/carousel/Carousel.js +128 -0
- package/dist/components/carousel/Carousel.module.js +18 -0
- package/dist/components/carousel/index.d.ts +2 -0
- package/dist/components/checkbox/Checkbox.css +135 -0
- package/dist/components/checkbox/Checkbox.d.ts +22 -0
- package/dist/components/checkbox/Checkbox.js +84 -0
- package/dist/components/checkbox/Checkbox.module.js +12 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/clipboard/Clipboard.css +145 -0
- package/dist/components/clipboard/Clipboard.d.ts +15 -0
- package/dist/components/clipboard/Clipboard.js +96 -0
- package/dist/components/clipboard/Clipboard.module.js +14 -0
- package/dist/components/clipboard/index.d.ts +2 -0
- package/dist/components/close-button/CloseButton.css +49 -0
- package/dist/components/close-button/CloseButton.d.ts +6 -0
- package/dist/components/close-button/CloseButton.js +39 -0
- package/dist/components/close-button/CloseButton.module.js +5 -0
- package/dist/components/collapsible/Collapsible.css +138 -0
- package/dist/components/collapsible/Collapsible.d.ts +12 -0
- package/dist/components/collapsible/Collapsible.js +59 -0
- package/dist/components/collapsible/Collapsible.module.js +12 -0
- package/dist/components/collapsible/index.d.ts +2 -0
- package/dist/components/color-picker/ColorPicker.css +433 -0
- package/dist/components/color-picker/ColorPicker.d.ts +39 -0
- package/dist/components/color-picker/ColorPicker.js +275 -0
- package/dist/components/color-picker/ColorPicker.module.js +33 -0
- package/dist/components/color-picker/index.d.ts +2 -0
- package/dist/components/combobox/Combobox.css +315 -0
- package/dist/components/combobox/Combobox.d.ts +24 -0
- package/dist/components/combobox/Combobox.js +169 -0
- package/dist/components/combobox/Combobox.module.js +23 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/command-palette/CommandPalette.css +492 -0
- package/dist/components/command-palette/CommandPalette.d.ts +71 -0
- package/dist/components/command-palette/CommandPalette.js +383 -0
- package/dist/components/command-palette/CommandPalette.module.js +43 -0
- package/dist/components/command-palette/index.d.ts +2 -0
- package/dist/components/container/Container.css +45 -0
- package/dist/components/container/Container.d.ts +14 -0
- package/dist/components/container/Container.js +22 -0
- package/dist/components/container/Container.module.js +5 -0
- package/dist/components/date-input/DateInput.css +104 -0
- package/dist/components/date-input/DateInput.d.ts +22 -0
- package/dist/components/date-input/DateInput.js +83 -0
- package/dist/components/date-input/DateInput.module.js +12 -0
- package/dist/components/date-input/index.d.ts +2 -0
- package/dist/components/date-picker/DatePicker.css +420 -0
- package/dist/components/date-picker/DatePicker.d.ts +39 -0
- package/dist/components/date-picker/DatePicker.js +284 -0
- package/dist/components/date-picker/DatePicker.module.js +29 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/dialog/Dialog.css +221 -0
- package/dist/components/dialog/Dialog.d.ts +46 -0
- package/dist/components/dialog/Dialog.js +133 -0
- package/dist/components/dialog/Dialog.module.js +21 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/drawer/Drawer.css +482 -0
- package/dist/components/drawer/Drawer.d.ts +56 -0
- package/dist/components/drawer/Drawer.js +188 -0
- package/dist/components/drawer/Drawer.module.js +32 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/editable/Editable.css +171 -0
- package/dist/components/editable/Editable.d.ts +17 -0
- package/dist/components/editable/Editable.js +106 -0
- package/dist/components/editable/Editable.module.js +13 -0
- package/dist/components/editable/index.d.ts +2 -0
- package/dist/components/empty/Empty.css +78 -0
- package/dist/components/empty/Empty.d.ts +11 -0
- package/dist/components/empty/Empty.js +77 -0
- package/dist/components/empty/Empty.module.js +12 -0
- package/dist/components/field/Field.css +113 -0
- package/dist/components/field/Field.d.ts +25 -0
- package/dist/components/field/Field.js +104 -0
- package/dist/components/field/Field.module.js +15 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/fieldset/Fieldset.css +52 -0
- package/dist/components/fieldset/Fieldset.d.ts +12 -0
- package/dist/components/fieldset/Fieldset.js +56 -0
- package/dist/components/fieldset/Fieldset.module.js +10 -0
- package/dist/components/fieldset/index.d.ts +2 -0
- package/dist/components/file-upload/FileUpload.css +290 -0
- package/dist/components/file-upload/FileUpload.d.ts +28 -0
- package/dist/components/file-upload/FileUpload.js +149 -0
- package/dist/components/file-upload/FileUpload.module.js +19 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/floating-panel/FloatingPanel.css +319 -0
- package/dist/components/floating-panel/FloatingPanel.d.ts +45 -0
- package/dist/components/floating-panel/FloatingPanel.js +194 -0
- package/dist/components/floating-panel/FloatingPanel.module.js +20 -0
- package/dist/components/floating-panel/index.d.ts +2 -0
- package/dist/components/heading/Heading.css +58 -0
- package/dist/components/heading/Heading.d.ts +17 -0
- package/dist/components/heading/Heading.js +32 -0
- package/dist/components/heading/Heading.module.js +5 -0
- package/dist/components/highlight/Highlight.css +15 -0
- package/dist/components/highlight/Highlight.d.ts +13 -0
- package/dist/components/highlight/Highlight.js +18 -0
- package/dist/components/highlight/Highlight.module.js +5 -0
- package/dist/components/highlight/index.d.ts +2 -0
- package/dist/components/hover-card/HoverCard.css +107 -0
- package/dist/components/hover-card/HoverCard.d.ts +28 -0
- package/dist/components/hover-card/HoverCard.js +81 -0
- package/dist/components/hover-card/HoverCard.module.js +13 -0
- package/dist/components/hover-card/index.d.ts +2 -0
- package/dist/components/image-cropper/ImageCropper.css +147 -0
- package/dist/components/image-cropper/ImageCropper.d.ts +15 -0
- package/dist/components/image-cropper/ImageCropper.js +75 -0
- package/dist/components/image-cropper/ImageCropper.module.js +12 -0
- package/dist/components/image-cropper/index.d.ts +2 -0
- package/dist/components/input/Input.css +83 -0
- package/dist/components/input/Input.d.ts +15 -0
- package/dist/components/input/Input.js +22 -0
- package/dist/components/input/Input.module.js +5 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input-group/InputGroup.css +158 -0
- package/dist/components/input-group/InputGroup.d.ts +25 -0
- package/dist/components/input-group/InputGroup.js +76 -0
- package/dist/components/input-group/InputGroup.module.js +11 -0
- package/dist/components/input-group/index.d.ts +2 -0
- package/dist/components/kbd/Kbd.css +45 -0
- package/dist/components/kbd/Kbd.d.ts +7 -0
- package/dist/components/kbd/Kbd.js +33 -0
- package/dist/components/kbd/Kbd.module.js +8 -0
- package/dist/components/lightbox/Lightbox.css +242 -0
- package/dist/components/lightbox/Lightbox.d.ts +71 -0
- package/dist/components/lightbox/Lightbox.js +219 -0
- package/dist/components/lightbox/Lightbox.module.js +22 -0
- package/dist/components/lightbox/index.d.ts +2 -0
- package/dist/components/list/List.css +118 -0
- package/dist/components/list/List.d.ts +24 -0
- package/dist/components/list/List.js +48 -0
- package/dist/components/list/List.module.js +5 -0
- package/dist/components/list/index.d.ts +2 -0
- package/dist/components/listbox/Listbox.css +255 -0
- package/dist/components/listbox/Listbox.d.ts +35 -0
- package/dist/components/listbox/Listbox.js +145 -0
- package/dist/components/listbox/Listbox.module.js +20 -0
- package/dist/components/listbox/index.d.ts +2 -0
- package/dist/components/marquee/Marquee.css +114 -0
- package/dist/components/marquee/Marquee.d.ts +13 -0
- package/dist/components/marquee/Marquee.js +65 -0
- package/dist/components/marquee/Marquee.module.js +13 -0
- package/dist/components/marquee/index.d.ts +2 -0
- package/dist/components/menu/Menu.css +371 -0
- package/dist/components/menu/Menu.d.ts +83 -0
- package/dist/components/menu/Menu.js +240 -0
- package/dist/components/menu/Menu.module.js +33 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/native-select/NativeSelect.css +104 -0
- package/dist/components/native-select/NativeSelect.d.ts +8 -0
- package/dist/components/native-select/NativeSelect.js +32 -0
- package/dist/components/native-select/NativeSelect.module.js +9 -0
- package/dist/components/native-select/index.d.ts +2 -0
- package/dist/components/number-input/NumberInput.css +162 -0
- package/dist/components/number-input/NumberInput.d.ts +16 -0
- package/dist/components/number-input/NumberInput.js +95 -0
- package/dist/components/number-input/NumberInput.module.js +14 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/pagination/Pagination.css +99 -0
- package/dist/components/pagination/Pagination.d.ts +16 -0
- package/dist/components/pagination/Pagination.js +101 -0
- package/dist/components/pagination/Pagination.module.js +12 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/password-input/PasswordInput.css +155 -0
- package/dist/components/password-input/PasswordInput.d.ts +14 -0
- package/dist/components/password-input/PasswordInput.js +77 -0
- package/dist/components/password-input/PasswordInput.module.js +12 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/pin-input/PinInput.css +96 -0
- package/dist/components/pin-input/PinInput.d.ts +23 -0
- package/dist/components/pin-input/PinInput.js +85 -0
- package/dist/components/pin-input/PinInput.module.js +11 -0
- package/dist/components/pin-input/index.d.ts +2 -0
- package/dist/components/popover/Popover.css +162 -0
- package/dist/components/popover/Popover.d.ts +50 -0
- package/dist/components/popover/Popover.js +167 -0
- package/dist/components/popover/Popover.module.js +20 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/progress-circular/ProgressCircular.css +68 -0
- package/dist/components/progress-circular/ProgressCircular.d.ts +15 -0
- package/dist/components/progress-circular/ProgressCircular.js +83 -0
- package/dist/components/progress-circular/ProgressCircular.module.js +14 -0
- package/dist/components/progress-circular/index.d.ts +2 -0
- package/dist/components/progress-linear/ProgressLinear.css +106 -0
- package/dist/components/progress-linear/ProgressLinear.d.ts +14 -0
- package/dist/components/progress-linear/ProgressLinear.js +74 -0
- package/dist/components/progress-linear/ProgressLinear.module.js +14 -0
- package/dist/components/progress-linear/index.d.ts +2 -0
- package/dist/components/qr-code/QrCode.css +100 -0
- package/dist/components/qr-code/QrCode.d.ts +13 -0
- package/dist/components/qr-code/QrCode.js +65 -0
- package/dist/components/qr-code/QrCode.module.js +11 -0
- package/dist/components/qr-code/index.d.ts +2 -0
- package/dist/components/radio-group/RadioGroup.css +147 -0
- package/dist/components/radio-group/RadioGroup.d.ts +20 -0
- package/dist/components/radio-group/RadioGroup.js +83 -0
- package/dist/components/radio-group/RadioGroup.module.js +12 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/rating-group/RatingGroup.css +133 -0
- package/dist/components/rating-group/RatingGroup.d.ts +23 -0
- package/dist/components/rating-group/RatingGroup.js +86 -0
- package/dist/components/rating-group/RatingGroup.module.js +13 -0
- package/dist/components/rating-group/index.d.ts +2 -0
- package/dist/components/scroll-area/ScrollArea.css +162 -0
- package/dist/components/scroll-area/ScrollArea.d.ts +21 -0
- package/dist/components/scroll-area/ScrollArea.js +76 -0
- package/dist/components/scroll-area/ScrollArea.module.js +12 -0
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/segment-group/SegmentGroup.css +120 -0
- package/dist/components/segment-group/SegmentGroup.d.ts +15 -0
- package/dist/components/segment-group/SegmentGroup.js +83 -0
- package/dist/components/segment-group/SegmentGroup.module.js +12 -0
- package/dist/components/segment-group/index.d.ts +2 -0
- package/dist/components/select/Select.css +351 -0
- package/dist/components/select/Select.d.ts +48 -0
- package/dist/components/select/Select.js +210 -0
- package/dist/components/select/Select.module.js +27 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/separator/Separator.css +45 -0
- package/dist/components/separator/Separator.d.ts +14 -0
- package/dist/components/separator/Separator.js +27 -0
- package/dist/components/separator/Separator.module.js +5 -0
- package/dist/components/sidebar/Sidebar.css +341 -0
- package/dist/components/sidebar/Sidebar.d.ts +48 -0
- package/dist/components/sidebar/Sidebar.js +279 -0
- package/dist/components/sidebar/Sidebar.module.js +23 -0
- package/dist/components/sidebar/index.d.ts +2 -0
- package/dist/components/signature-pad/SignaturePad.css +123 -0
- package/dist/components/signature-pad/SignaturePad.d.ts +15 -0
- package/dist/components/signature-pad/SignaturePad.js +82 -0
- package/dist/components/signature-pad/SignaturePad.module.js +12 -0
- package/dist/components/signature-pad/index.d.ts +2 -0
- package/dist/components/simple-grid/SimpleGrid.d.ts +18 -0
- package/dist/components/simple-grid/SimpleGrid.js +32 -0
- package/dist/components/skeleton/Skeleton.css +29 -0
- package/dist/components/skeleton/Skeleton.d.ts +20 -0
- package/dist/components/skeleton/Skeleton.js +32 -0
- package/dist/components/skeleton/Skeleton.module.js +5 -0
- package/dist/components/slider/Slider.css +167 -0
- package/dist/components/slider/Slider.d.ts +19 -0
- package/dist/components/slider/Slider.js +119 -0
- package/dist/components/slider/Slider.module.js +16 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/spinner/Spinner.css +60 -0
- package/dist/components/spinner/Spinner.d.ts +12 -0
- package/dist/components/spinner/Spinner.js +40 -0
- package/dist/components/spinner/Spinner.module.js +9 -0
- package/dist/components/split-button/SplitButton.css +51 -0
- package/dist/components/split-button/SplitButton.d.ts +36 -0
- package/dist/components/split-button/SplitButton.js +93 -0
- package/dist/components/split-button/SplitButton.module.js +9 -0
- package/dist/components/split-button/index.d.ts +2 -0
- package/dist/components/splitter/Splitter.css +170 -0
- package/dist/components/splitter/Splitter.d.ts +12 -0
- package/dist/components/splitter/Splitter.js +68 -0
- package/dist/components/splitter/Splitter.module.js +10 -0
- package/dist/components/splitter/index.d.ts +2 -0
- package/dist/components/stack/Stack.css +13 -0
- package/dist/components/stack/Stack.d.ts +31 -0
- package/dist/components/stack/Stack.js +36 -0
- package/dist/components/stack/Stack.module.js +5 -0
- package/dist/components/stack/index.d.ts +2 -0
- package/dist/components/steps/Steps.css +283 -0
- package/dist/components/steps/Steps.d.ts +19 -0
- package/dist/components/steps/Steps.js +122 -0
- package/dist/components/steps/Steps.module.js +17 -0
- package/dist/components/steps/index.d.ts +2 -0
- package/dist/components/switch/Switch.css +130 -0
- package/dist/components/switch/Switch.d.ts +21 -0
- package/dist/components/switch/Switch.js +67 -0
- package/dist/components/switch/Switch.module.js +10 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/table/Table.css +162 -0
- package/dist/components/table/Table.d.ts +41 -0
- package/dist/components/table/Table.js +173 -0
- package/dist/components/table/Table.module.js +18 -0
- package/dist/components/tabs/Tabs.css +186 -0
- package/dist/components/tabs/Tabs.d.ts +20 -0
- package/dist/components/tabs/Tabs.js +67 -0
- package/dist/components/tabs/Tabs.module.js +11 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tag/Tag.css +128 -0
- package/dist/components/tag/Tag.d.ts +18 -0
- package/dist/components/tag/Tag.js +87 -0
- package/dist/components/tag/Tag.module.js +11 -0
- package/dist/components/tags-input/TagsInput.css +248 -0
- package/dist/components/tags-input/TagsInput.d.ts +20 -0
- package/dist/components/tags-input/TagsInput.js +139 -0
- package/dist/components/tags-input/TagsInput.module.js +16 -0
- package/dist/components/tags-input/index.d.ts +2 -0
- package/dist/components/text/Text.css +87 -0
- package/dist/components/text/Text.d.ts +27 -0
- package/dist/components/text/Text.js +43 -0
- package/dist/components/text/Text.module.js +5 -0
- package/dist/components/textarea/Textarea.css +55 -0
- package/dist/components/textarea/Textarea.d.ts +6 -0
- package/dist/components/textarea/Textarea.js +21 -0
- package/dist/components/textarea/Textarea.module.js +5 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/timer/Timer.css +95 -0
- package/dist/components/timer/Timer.d.ts +14 -0
- package/dist/components/timer/Timer.js +74 -0
- package/dist/components/timer/Timer.module.js +12 -0
- package/dist/components/timer/index.d.ts +2 -0
- package/dist/components/toast/Toast.css +154 -0
- package/dist/components/toast/Toast.d.ts +17 -0
- package/dist/components/toast/Toast.js +92 -0
- package/dist/components/toast/Toast.module.js +12 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toggle/Toggle.css +167 -0
- package/dist/components/toggle/Toggle.d.ts +16 -0
- package/dist/components/toggle/Toggle.js +31 -0
- package/dist/components/toggle/Toggle.module.js +8 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle-group/ToggleGroup.css +42 -0
- package/dist/components/toggle-group/ToggleGroup.d.ts +25 -0
- package/dist/components/toggle-group/ToggleGroup.js +62 -0
- package/dist/components/toggle-group/ToggleGroup.module.js +8 -0
- package/dist/components/toggle-group/index.d.ts +2 -0
- package/dist/components/tooltip/Tooltip.css +125 -0
- package/dist/components/tooltip/Tooltip.d.ts +28 -0
- package/dist/components/tooltip/Tooltip.js +75 -0
- package/dist/components/tooltip/Tooltip.module.js +13 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tour/Tour.css +286 -0
- package/dist/components/tour/Tour.d.ts +30 -0
- package/dist/components/tour/Tour.js +149 -0
- package/dist/components/tour/Tour.module.js +23 -0
- package/dist/components/tour/index.d.ts +2 -0
- package/dist/components/tree-view/TreeView.css +261 -0
- package/dist/components/tree-view/TreeView.d.ts +32 -0
- package/dist/components/tree-view/TreeView.js +171 -0
- package/dist/components/tree-view/TreeView.module.js +26 -0
- package/dist/components/tree-view/index.d.ts +2 -0
- package/dist/index.d.ts +83 -0
- package/dist/index.js +83 -0
- package/dist/lib/moduix/icons/ui/Icons.d.ts +51 -0
- package/dist/lib/moduix/icons/ui/Icons.js +759 -0
- package/dist/lib/moduix/icons/ui/index.d.ts +2 -0
- package/dist/lib/moduix/normalizeClassName.js +4 -0
- package/dist/lib/moduix/overlayPortal.d.ts +9 -0
- package/dist/lib/moduix/overlayPortal.js +21 -0
- package/dist/lib/moduix/styles/reset.css +175 -0
- package/dist/lib/moduix/styles/style.css +288 -0
- package/dist/reset.d.ts +1 -0
- package/dist/reset.js +1 -0
- package/dist/style.d.ts +1 -0
- package/dist/style.js +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
@keyframes s7-WFq_collapsible-content-open {
|
|
3
|
+
from {
|
|
4
|
+
height: var(--collapsed-height, 0);
|
|
5
|
+
width: var(--collapsed-width, var(--width));
|
|
6
|
+
opacity: var(--collapsible-content-closed-opacity, .01);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
to {
|
|
10
|
+
height: var(--height);
|
|
11
|
+
width: var(--width);
|
|
12
|
+
opacity: var(--collapsible-content-open-opacity, 1);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@keyframes s7-WFq_collapsible-content-closed {
|
|
17
|
+
from {
|
|
18
|
+
height: var(--height);
|
|
19
|
+
width: var(--width);
|
|
20
|
+
opacity: var(--collapsible-content-open-opacity, 1);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
to {
|
|
24
|
+
height: var(--collapsed-height, 0);
|
|
25
|
+
width: var(--collapsed-width, var(--width));
|
|
26
|
+
opacity: var(--collapsible-content-closed-opacity, .01);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.s7-WFq_root {
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
width: var(--collapsible-width, 14rem);
|
|
33
|
+
max-width: var(--collapsible-max-width, 100%);
|
|
34
|
+
min-width: 0;
|
|
35
|
+
color: var(--collapsible-color, var(--color-foreground));
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
display: flex;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.s7-WFq_trigger {
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: var(--collapsible-trigger-gap, var(--spacing-2));
|
|
45
|
+
border-radius: var(--collapsible-trigger-radius, 0);
|
|
46
|
+
width: 100%;
|
|
47
|
+
padding-block: var(--collapsible-trigger-padding-y, var(--spacing-1));
|
|
48
|
+
padding-inline: var(--collapsible-trigger-padding-x, var(--spacing-2));
|
|
49
|
+
background-color: var(--collapsible-trigger-bg, transparent);
|
|
50
|
+
color: var(--collapsible-trigger-color, var(--collapsible-color, var(--color-foreground)));
|
|
51
|
+
font: inherit;
|
|
52
|
+
font-size: var(--collapsible-trigger-font-size, var(--text-sm));
|
|
53
|
+
line-height: var(--collapsible-trigger-line-height, var(--line-height-text-sm));
|
|
54
|
+
text-align: left;
|
|
55
|
+
user-select: none;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
transition: background-color var(--collapsible-trigger-transition, var(--transition-default)),
|
|
58
|
+
color var(--collapsible-trigger-transition, var(--transition-default));
|
|
59
|
+
border: 0;
|
|
60
|
+
outline: 0;
|
|
61
|
+
margin: 0;
|
|
62
|
+
display: flex;
|
|
63
|
+
|
|
64
|
+
&:focus-visible {
|
|
65
|
+
outline: var(--collapsible-focus-ring-width, var(--border-width-sm)) solid
|
|
66
|
+
var(--collapsible-focus-ring-color, var(--color-ring));
|
|
67
|
+
outline-offset: var(--collapsible-focus-ring-offset, var(--border-width-sm));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:not(:is([disabled], [data-disabled])) {
|
|
71
|
+
@media (hover: hover) {
|
|
72
|
+
&:hover {
|
|
73
|
+
background-color: var(--collapsible-trigger-bg-hover, var(--collapsible-trigger-bg, transparent));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:active {
|
|
78
|
+
background-color: var(--collapsible-trigger-bg-active, var(--collapsible-trigger-bg-hover, var(--collapsible-trigger-bg, transparent)));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:is([disabled], [data-disabled]) {
|
|
83
|
+
opacity: var(--collapsible-disabled-opacity, var(--opacity-disabled));
|
|
84
|
+
cursor: default;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.s7-WFq_indicator {
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
width: var(--collapsible-indicator-size, .75rem);
|
|
91
|
+
height: var(--collapsible-indicator-size, .75rem);
|
|
92
|
+
transition: transform var(--collapsible-indicator-transition, var(--transition-default));
|
|
93
|
+
flex-shrink: 0;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
align-items: center;
|
|
96
|
+
display: inline-flex;
|
|
97
|
+
|
|
98
|
+
& > svg {
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: 100%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&[data-state="open"] {
|
|
104
|
+
transform: var(--collapsible-indicator-open-transform, rotate(90deg));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&[data-disabled] {
|
|
108
|
+
opacity: var(--collapsible-disabled-opacity, var(--opacity-disabled));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.s7-WFq_content {
|
|
113
|
+
--collapsed-height: 0;
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
color: var(--collapsible-content-color, var(--color-muted-foreground));
|
|
116
|
+
font-size: var(--collapsible-content-font-size, var(--text-sm));
|
|
117
|
+
line-height: var(--collapsible-content-line-height, var(--line-height-text-sm));
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
|
|
120
|
+
&[data-state="open"] {
|
|
121
|
+
animation: s7-WFq_collapsible-content-open
|
|
122
|
+
var(--collapsible-content-transition, var(--transition-default));
|
|
123
|
+
|
|
124
|
+
&[data-has-collapsed-size] {
|
|
125
|
+
--collapsible-content-closed-opacity: var(--collapsible-content-open-opacity, 1);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&[data-state="closed"] {
|
|
130
|
+
animation: s7-WFq_collapsible-content-closed
|
|
131
|
+
var(--collapsible-content-transition, var(--transition-default));
|
|
132
|
+
|
|
133
|
+
&[data-has-collapsed-size] {
|
|
134
|
+
--collapsible-content-closed-opacity: var(--collapsible-content-open-opacity, 1);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Collapsible } from "@ark-ui/react/collapsible";
|
|
2
|
+
|
|
3
|
+
//#region src/components/collapsible/Collapsible.d.ts
|
|
4
|
+
declare const Collapsible$1: import("react").ForwardRefExoticComponent<Omit<Collapsible.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
|
+
Root: import("react").ForwardRefExoticComponent<Omit<Collapsible.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<Collapsible.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Trigger: import("react").ForwardRefExoticComponent<Omit<Collapsible.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
Indicator: import("react").ForwardRefExoticComponent<Omit<Collapsible.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Content: import("react").ForwardRefExoticComponent<Omit<Collapsible.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Collapsible$1 as Collapsible };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ChevronRightIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
3
|
+
import Collapsible_module_default from "./Collapsible.module.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
import { Collapsible } from "@ark-ui/react/collapsible";
|
|
8
|
+
//#region src/components/collapsible/Collapsible.tsx
|
|
9
|
+
const CollapsibleRoot = forwardRef(function CollapsibleRoot({ className, ...props }, ref) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Collapsible.Root, {
|
|
11
|
+
ref,
|
|
12
|
+
"data-slot": "collapsible-root",
|
|
13
|
+
className: clsx(Collapsible_module_default.root, normalizeClassName(className)),
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
const CollapsibleRootProvider = forwardRef(function CollapsibleRootProvider({ className, ...props }, ref) {
|
|
18
|
+
return /* @__PURE__ */ jsx(Collapsible.RootProvider, {
|
|
19
|
+
ref,
|
|
20
|
+
"data-slot": "collapsible-root-provider",
|
|
21
|
+
className: clsx(Collapsible_module_default.root, normalizeClassName(className)),
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
const CollapsibleTrigger = forwardRef(function CollapsibleTrigger({ asChild, className, ...props }, ref) {
|
|
26
|
+
return /* @__PURE__ */ jsx(Collapsible.Trigger, {
|
|
27
|
+
ref,
|
|
28
|
+
asChild,
|
|
29
|
+
"data-slot": "collapsible-trigger",
|
|
30
|
+
className: clsx(!asChild && Collapsible_module_default.trigger, normalizeClassName(className)),
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
const CollapsibleIndicator = forwardRef(function CollapsibleIndicator({ className, children, ...props }, ref) {
|
|
35
|
+
return /* @__PURE__ */ jsx(Collapsible.Indicator, {
|
|
36
|
+
ref,
|
|
37
|
+
"data-slot": "collapsible-indicator",
|
|
38
|
+
className: clsx(Collapsible_module_default.indicator, normalizeClassName(className)),
|
|
39
|
+
...props,
|
|
40
|
+
children: children ?? /* @__PURE__ */ jsx(ChevronRightIcon, {})
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
const CollapsibleContent = forwardRef(function CollapsibleContent({ className, ...props }, ref) {
|
|
44
|
+
return /* @__PURE__ */ jsx(Collapsible.Content, {
|
|
45
|
+
ref,
|
|
46
|
+
"data-slot": "collapsible-content",
|
|
47
|
+
className: clsx(Collapsible_module_default.content, normalizeClassName(className)),
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
const Collapsible$1 = Object.assign(CollapsibleRoot, {
|
|
52
|
+
Root: CollapsibleRoot,
|
|
53
|
+
RootProvider: CollapsibleRootProvider,
|
|
54
|
+
Trigger: CollapsibleTrigger,
|
|
55
|
+
Indicator: CollapsibleIndicator,
|
|
56
|
+
Content: CollapsibleContent
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
|
+
export { Collapsible$1 as Collapsible };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './Collapsible.css';
|
|
2
|
+
//#region src/components/collapsible/Collapsible.module.css
|
|
3
|
+
var Collapsible_module_default = {
|
|
4
|
+
"collapsible-content-closed": "s7-WFq_collapsible-content-closed",
|
|
5
|
+
"collapsible-content-open": "s7-WFq_collapsible-content-open",
|
|
6
|
+
"content": "s7-WFq_content",
|
|
7
|
+
"indicator": "s7-WFq_indicator",
|
|
8
|
+
"root": "s7-WFq_root",
|
|
9
|
+
"trigger": "s7-WFq_trigger"
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Collapsible_module_default as default };
|
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
@keyframes GCUAhG_color-picker-content-open {
|
|
3
|
+
from {
|
|
4
|
+
opacity: var(--color-picker-content-closed-opacity, 0);
|
|
5
|
+
transform: scale(var(--color-picker-content-closed-scale, var(--scale-popup)));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
to {
|
|
9
|
+
opacity: 1;
|
|
10
|
+
transform: scale(1);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@keyframes GCUAhG_color-picker-content-closed {
|
|
15
|
+
from {
|
|
16
|
+
opacity: 1;
|
|
17
|
+
transform: scale(1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
to {
|
|
21
|
+
opacity: var(--color-picker-content-closed-opacity, 0);
|
|
22
|
+
transform: scale(var(--color-picker-content-closed-scale, var(--scale-popup)));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.GCUAhG_root {
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
width: var(--color-picker-width, 16rem);
|
|
29
|
+
max-width: var(--color-picker-max-width, 100%);
|
|
30
|
+
gap: var(--color-picker-root-gap, var(--spacing-2));
|
|
31
|
+
min-width: 0;
|
|
32
|
+
color: var(--color-picker-color, var(--color-foreground));
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
display: flex;
|
|
35
|
+
|
|
36
|
+
&[data-disabled] {
|
|
37
|
+
opacity: var(--color-picker-disabled-opacity, var(--opacity-disabled));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.GCUAhG_label {
|
|
42
|
+
color: var(--color-picker-label-color, var(--color-picker-color, var(--color-foreground)));
|
|
43
|
+
font-size: var(--color-picker-label-font-size, var(--text-sm));
|
|
44
|
+
font-weight: var(--color-picker-label-font-weight, var(--weight-medium));
|
|
45
|
+
line-height: var(--color-picker-label-line-height, var(--line-height-text-sm));
|
|
46
|
+
user-select: none;
|
|
47
|
+
align-items: center;
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
|
|
50
|
+
&[data-disabled] {
|
|
51
|
+
opacity: var(--color-picker-disabled-opacity, var(--opacity-disabled));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.GCUAhG_control {
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap: var(--color-picker-control-gap, var(--spacing-2));
|
|
58
|
+
min-width: 0;
|
|
59
|
+
display: flex;
|
|
60
|
+
|
|
61
|
+
&[data-disabled] {
|
|
62
|
+
opacity: var(--color-picker-disabled-opacity, var(--opacity-disabled));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.GCUAhG_trigger {
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
width: var(--color-picker-trigger-size, var(--size-lg));
|
|
69
|
+
height: var(--color-picker-trigger-size, var(--size-lg));
|
|
70
|
+
border: var(--color-picker-border-width, var(--border-width-sm)) solid
|
|
71
|
+
var(--color-picker-border-color, var(--color-border));
|
|
72
|
+
border-radius: var(--color-picker-radius, var(--radius-md));
|
|
73
|
+
padding: var(--color-picker-trigger-padding, var(--spacing-1));
|
|
74
|
+
background: var(--color-picker-control-bg, var(--color-background));
|
|
75
|
+
color: var(--color-picker-color, var(--color-foreground));
|
|
76
|
+
outline: var(--color-picker-focus-ring-width, var(--border-width-sm)) solid transparent;
|
|
77
|
+
outline-offset: calc(var(--color-picker-focus-ring-width, var(--border-width-sm)) * -1);
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
transition: border-color var(--color-picker-transition, var(--transition-default)),
|
|
80
|
+
outline-color var(--color-picker-transition, var(--transition-default)),
|
|
81
|
+
background-color var(--color-picker-transition, var(--transition-default));
|
|
82
|
+
flex-shrink: 0;
|
|
83
|
+
place-items: center;
|
|
84
|
+
margin: 0;
|
|
85
|
+
display: grid;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
|
|
88
|
+
&:is(:focus-visible, [data-focus]) {
|
|
89
|
+
border-color: var(--color-picker-focus-ring-color, var(--color-ring));
|
|
90
|
+
outline-color: var(--color-picker-focus-ring-color, var(--color-ring));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&[data-invalid] {
|
|
94
|
+
border-color: var(--color-picker-invalid-color, var(--color-destructive));
|
|
95
|
+
outline-color: var(--color-picker-invalid-color, var(--color-destructive));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:is([disabled], [data-disabled], [data-readonly]) {
|
|
99
|
+
cursor: default;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.GCUAhG_positioner {
|
|
104
|
+
z-index: var(--z-popup);
|
|
105
|
+
outline: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.GCUAhG_content {
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
width: var(--color-picker-content-width, 16rem);
|
|
111
|
+
max-width: var(--available-width);
|
|
112
|
+
max-height: min(var(--color-picker-content-max-height, 32rem), var(--available-height));
|
|
113
|
+
gap: var(--color-picker-content-gap, var(--spacing-3));
|
|
114
|
+
border: var(--color-picker-content-border-width, var(--border-width-sm)) solid
|
|
115
|
+
var(--color-picker-content-border-color, var(--color-border));
|
|
116
|
+
border-radius: var(--color-picker-content-radius, var(--color-picker-radius, var(--radius-md)));
|
|
117
|
+
padding: var(--color-picker-content-padding, var(--spacing-4));
|
|
118
|
+
background-color: var(--color-picker-content-bg, var(--color-popover));
|
|
119
|
+
box-shadow: var(--color-picker-content-shadow, var(--shadow-lg));
|
|
120
|
+
color: var(--color-picker-content-color, var(--color-popover-foreground));
|
|
121
|
+
transform-origin: var(--transform-origin);
|
|
122
|
+
overscroll-behavior: contain;
|
|
123
|
+
outline: 0;
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
display: flex;
|
|
126
|
+
overflow: auto;
|
|
127
|
+
|
|
128
|
+
&[data-state="open"] {
|
|
129
|
+
animation: GCUAhG_color-picker-content-open var(--color-picker-transition, var(--transition-default));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&[data-state="closed"] {
|
|
133
|
+
animation: GCUAhG_color-picker-content-closed
|
|
134
|
+
var(--color-picker-transition, var(--transition-default));
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.GCUAhG_area {
|
|
139
|
+
box-sizing: border-box;
|
|
140
|
+
width: 100%;
|
|
141
|
+
height: var(--color-picker-area-height, 10rem);
|
|
142
|
+
border-radius: var(--color-picker-area-radius, var(--radius-md));
|
|
143
|
+
box-shadow: inset 0 0 0 var(--color-picker-area-border-width, var(--border-width-sm))
|
|
144
|
+
var(--color-picker-area-border-color, color-mix(in oklab, var(--color-border) 70%, transparent));
|
|
145
|
+
touch-action: none;
|
|
146
|
+
user-select: none;
|
|
147
|
+
position: relative;
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
|
|
150
|
+
&:is([data-disabled], [data-readonly]) {
|
|
151
|
+
cursor: default;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.GCUAhG_areaBackground {
|
|
156
|
+
border-radius: inherit;
|
|
157
|
+
width: 100%;
|
|
158
|
+
height: 100%;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.GCUAhG_thumb {
|
|
162
|
+
box-sizing: border-box;
|
|
163
|
+
width: var(--color-picker-thumb-size, 1rem);
|
|
164
|
+
height: var(--color-picker-thumb-size, 1rem);
|
|
165
|
+
border-radius: var(--color-picker-thumb-radius, var(--radius-full));
|
|
166
|
+
background: var(--color-picker-thumb-bg, var(--color-background));
|
|
167
|
+
box-shadow: 0 0 0 var(--color-picker-thumb-inner-ring-width, var(--border-width-md))
|
|
168
|
+
var(--color-picker-thumb-inner-ring-color, var(--color-background)),
|
|
169
|
+
0 0 0 var(--color-picker-thumb-outer-ring-width, var(--border-width-lg))
|
|
170
|
+
var(--color-picker-thumb-outer-ring-color, oklab(0% none none / .18)),
|
|
171
|
+
var(--color-picker-thumb-shadow, var(--shadow-sm));
|
|
172
|
+
outline: 0;
|
|
173
|
+
transform: translate(-50%, -50%);
|
|
174
|
+
|
|
175
|
+
&:focus-visible {
|
|
176
|
+
box-shadow: 0 0 0 var(--color-picker-thumb-inner-ring-width, var(--border-width-md))
|
|
177
|
+
var(--color-picker-thumb-inner-ring-color, var(--color-background)),
|
|
178
|
+
0 0 0 var(--color-picker-thumb-focus-ring-width, var(--border-width-lg))
|
|
179
|
+
var(--color-picker-focus-ring-color, var(--color-ring)),
|
|
180
|
+
var(--color-picker-thumb-shadow, var(--shadow-sm));
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&[data-disabled] {
|
|
184
|
+
pointer-events: none;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.GCUAhG_channelSlider {
|
|
189
|
+
box-sizing: border-box;
|
|
190
|
+
height: var(--color-picker-channel-slider-height, var(--spacing-3));
|
|
191
|
+
border-radius: var(--color-picker-channel-slider-radius, var(--radius-full));
|
|
192
|
+
touch-action: none;
|
|
193
|
+
user-select: none;
|
|
194
|
+
align-items: center;
|
|
195
|
+
display: flex;
|
|
196
|
+
position: relative;
|
|
197
|
+
|
|
198
|
+
&[data-orientation="vertical"] {
|
|
199
|
+
width: var(--color-picker-channel-slider-height, var(--spacing-3));
|
|
200
|
+
height: var(--color-picker-channel-slider-vertical-height, 10rem);
|
|
201
|
+
justify-content: center;
|
|
202
|
+
align-items: stretch;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.GCUAhG_channelSliderTrack {
|
|
207
|
+
width: 100%;
|
|
208
|
+
height: var(--color-picker-channel-slider-track-size, var(--spacing-3));
|
|
209
|
+
border-radius: inherit;
|
|
210
|
+
box-shadow: inset 0 0 0 var(--color-picker-channel-slider-border-width, var(--border-width-sm))
|
|
211
|
+
var(--color-picker-channel-slider-border-color, oklab(0% none none / .14));
|
|
212
|
+
|
|
213
|
+
&[data-orientation="vertical"] {
|
|
214
|
+
width: var(--color-picker-channel-slider-track-size, var(--spacing-3));
|
|
215
|
+
height: 100%;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.GCUAhG_channelSliderLabel {
|
|
220
|
+
color: var(--color-picker-channel-slider-label-color, var(--color-picker-color, var(--color-foreground)));
|
|
221
|
+
font-size: var(--color-picker-channel-slider-label-font-size, var(--text-sm));
|
|
222
|
+
font-weight: var(--color-picker-channel-slider-label-font-weight, var(--weight-medium));
|
|
223
|
+
line-height: var(--color-picker-channel-slider-label-line-height, var(--line-height-text-sm));
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.GCUAhG_channelSliderValueText {
|
|
227
|
+
color: var(--color-picker-channel-slider-value-color, var(--color-muted-foreground));
|
|
228
|
+
font-size: var(--color-picker-channel-slider-value-font-size, var(--text-sm));
|
|
229
|
+
line-height: var(--color-picker-channel-slider-value-line-height, var(--line-height-text-sm));
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.GCUAhG_channelInput, .GCUAhG_formatSelect {
|
|
233
|
+
box-sizing: border-box;
|
|
234
|
+
width: 100%;
|
|
235
|
+
min-width: 0;
|
|
236
|
+
height: var(--color-picker-input-height, var(--size-lg));
|
|
237
|
+
border: var(--color-picker-border-width, var(--border-width-sm)) solid
|
|
238
|
+
var(--color-picker-border-color, var(--color-border));
|
|
239
|
+
border-radius: var(--color-picker-radius, var(--radius-md));
|
|
240
|
+
padding-inline: var(--color-picker-input-padding-x, var(--spacing-3));
|
|
241
|
+
background: var(--color-picker-control-bg, var(--color-background));
|
|
242
|
+
color: var(--color-picker-color, var(--color-foreground));
|
|
243
|
+
font: inherit;
|
|
244
|
+
font-size: var(--color-picker-input-font-size, var(--text-sm));
|
|
245
|
+
line-height: var(--color-picker-input-line-height, var(--line-height-text-sm));
|
|
246
|
+
outline: var(--color-picker-focus-ring-width, var(--border-width-sm)) solid transparent;
|
|
247
|
+
outline-offset: calc(var(--color-picker-focus-ring-width, var(--border-width-sm)) * -1);
|
|
248
|
+
transition: border-color var(--color-picker-transition, var(--transition-default)),
|
|
249
|
+
outline-color var(--color-picker-transition, var(--transition-default));
|
|
250
|
+
appearance: textfield;
|
|
251
|
+
margin: 0;
|
|
252
|
+
|
|
253
|
+
&:is(:focus, :focus-visible) {
|
|
254
|
+
border-color: var(--color-picker-focus-ring-color, var(--color-ring));
|
|
255
|
+
outline-color: var(--color-picker-focus-ring-color, var(--color-ring));
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&[data-invalid] {
|
|
259
|
+
border-color: var(--color-picker-invalid-color, var(--color-destructive));
|
|
260
|
+
outline-color: var(--color-picker-invalid-color, var(--color-destructive));
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
&[data-disabled] {
|
|
264
|
+
opacity: var(--color-picker-disabled-opacity, var(--opacity-disabled));
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
&::-webkit-outer-spin-button, &::-webkit-inner-spin-button {
|
|
268
|
+
appearance: none;
|
|
269
|
+
margin: 0;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.GCUAhG_channelInput {
|
|
274
|
+
flex: 1;
|
|
275
|
+
|
|
276
|
+
&[data-channel="alpha"] {
|
|
277
|
+
width: var(--color-picker-alpha-input-width, 4rem);
|
|
278
|
+
flex: 0 0 var(--color-picker-alpha-input-width, 4rem);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.GCUAhG_formatSelect {
|
|
283
|
+
cursor: pointer;
|
|
284
|
+
width: auto;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.GCUAhG_eyeDropperTrigger, .GCUAhG_formatTrigger {
|
|
288
|
+
box-sizing: border-box;
|
|
289
|
+
height: var(--color-picker-action-size, var(--size-lg));
|
|
290
|
+
min-width: var(--color-picker-action-size, var(--size-lg));
|
|
291
|
+
justify-content: center;
|
|
292
|
+
align-items: center;
|
|
293
|
+
gap: var(--color-picker-action-gap, var(--spacing-2));
|
|
294
|
+
border: var(--color-picker-border-width, var(--border-width-sm)) solid
|
|
295
|
+
var(--color-picker-border-color, var(--color-border));
|
|
296
|
+
border-radius: var(--color-picker-radius, var(--radius-md));
|
|
297
|
+
padding-inline: var(--color-picker-action-padding-x, var(--spacing-2));
|
|
298
|
+
background: var(--color-picker-action-bg, transparent);
|
|
299
|
+
color: var(--color-picker-action-color, var(--color-muted-foreground));
|
|
300
|
+
font: inherit;
|
|
301
|
+
font-size: var(--color-picker-action-font-size, var(--text-sm));
|
|
302
|
+
line-height: var(--color-picker-action-line-height, var(--line-height-text-sm));
|
|
303
|
+
outline: var(--color-picker-focus-ring-width, var(--border-width-sm)) solid transparent;
|
|
304
|
+
outline-offset: calc(var(--color-picker-focus-ring-width, var(--border-width-sm)) * -1);
|
|
305
|
+
cursor: pointer;
|
|
306
|
+
transition: border-color var(--color-picker-transition, var(--transition-default)),
|
|
307
|
+
outline-color var(--color-picker-transition, var(--transition-default)),
|
|
308
|
+
background-color var(--color-picker-transition, var(--transition-default)),
|
|
309
|
+
color var(--color-picker-transition, var(--transition-default));
|
|
310
|
+
flex-shrink: 0;
|
|
311
|
+
margin: 0;
|
|
312
|
+
display: inline-flex;
|
|
313
|
+
|
|
314
|
+
& > svg {
|
|
315
|
+
width: var(--color-picker-icon-size, 1rem);
|
|
316
|
+
height: var(--color-picker-icon-size, 1rem);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
&:is(:focus-visible, [data-focus]) {
|
|
320
|
+
border-color: var(--color-picker-focus-ring-color, var(--color-ring));
|
|
321
|
+
outline-color: var(--color-picker-focus-ring-color, var(--color-ring));
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
&:not(:is([disabled], [data-disabled], [data-readonly])) {
|
|
325
|
+
@media (hover: hover) {
|
|
326
|
+
&:hover {
|
|
327
|
+
background-color: var(--color-picker-action-bg-hover, var(--color-muted));
|
|
328
|
+
color: var(--color-picker-action-color-hover, var(--color-foreground));
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
&:is([disabled], [data-disabled], [data-readonly]) {
|
|
334
|
+
cursor: default;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.GCUAhG_swatchGroup {
|
|
339
|
+
gap: var(--color-picker-swatch-gap, var(--spacing-2));
|
|
340
|
+
flex-wrap: wrap;
|
|
341
|
+
display: flex;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.GCUAhG_swatchTrigger {
|
|
345
|
+
border-radius: var(--color-picker-swatch-radius, var(--radius-sm));
|
|
346
|
+
cursor: pointer;
|
|
347
|
+
background: none;
|
|
348
|
+
border: 0;
|
|
349
|
+
outline: 0;
|
|
350
|
+
justify-content: center;
|
|
351
|
+
align-items: center;
|
|
352
|
+
margin: 0;
|
|
353
|
+
padding: 0;
|
|
354
|
+
display: inline-flex;
|
|
355
|
+
|
|
356
|
+
&:focus-visible {
|
|
357
|
+
box-shadow: 0 0 0 var(--color-picker-focus-ring-width, var(--border-width-sm))
|
|
358
|
+
var(--color-picker-focus-ring-color, var(--color-ring));
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
&[data-disabled] {
|
|
362
|
+
cursor: default;
|
|
363
|
+
opacity: var(--color-picker-disabled-opacity, var(--opacity-disabled));
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.GCUAhG_swatch {
|
|
368
|
+
box-sizing: border-box;
|
|
369
|
+
width: var(--color-picker-swatch-size, 2rem);
|
|
370
|
+
height: var(--color-picker-swatch-size, 2rem);
|
|
371
|
+
border-radius: inherit;
|
|
372
|
+
box-shadow: inset 0 0 0 var(--color-picker-swatch-border-width, var(--border-width-sm))
|
|
373
|
+
var(--color-picker-swatch-border-color, oklab(0% none none / .14));
|
|
374
|
+
flex-shrink: 0;
|
|
375
|
+
place-items: center;
|
|
376
|
+
display: grid;
|
|
377
|
+
position: relative;
|
|
378
|
+
overflow: hidden;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.GCUAhG_swatchIndicator {
|
|
382
|
+
color: var(--color-picker-swatch-indicator-color, white);
|
|
383
|
+
filter: drop-shadow(0 1px 1px #00000073);
|
|
384
|
+
pointer-events: none;
|
|
385
|
+
justify-content: center;
|
|
386
|
+
align-items: center;
|
|
387
|
+
display: none;
|
|
388
|
+
position: absolute;
|
|
389
|
+
inset: 0;
|
|
390
|
+
|
|
391
|
+
& > svg {
|
|
392
|
+
width: var(--color-picker-swatch-indicator-size, 1rem);
|
|
393
|
+
height: var(--color-picker-swatch-indicator-size, 1rem);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
[data-state="checked"] > &, &[data-state="checked"] {
|
|
397
|
+
display: inline-flex;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.GCUAhG_transparencyGrid {
|
|
402
|
+
border-radius: inherit;
|
|
403
|
+
grid-area: 1 / 1;
|
|
404
|
+
width: 100%;
|
|
405
|
+
height: 100%;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.GCUAhG_valueSwatch {
|
|
409
|
+
border-radius: inherit;
|
|
410
|
+
z-index: 1;
|
|
411
|
+
grid-area: 1 / 1;
|
|
412
|
+
width: 100%;
|
|
413
|
+
height: 100%;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.GCUAhG_valueText {
|
|
417
|
+
min-width: 0;
|
|
418
|
+
color: var(--color-picker-value-text-color, var(--color-picker-color, var(--color-foreground)));
|
|
419
|
+
font-size: var(--color-picker-value-text-font-size, var(--text-sm));
|
|
420
|
+
line-height: var(--color-picker-value-text-line-height, var(--line-height-text-sm));
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.GCUAhG_view {
|
|
424
|
+
gap: var(--color-picker-view-gap, var(--spacing-2));
|
|
425
|
+
flex-direction: column;
|
|
426
|
+
min-width: 0;
|
|
427
|
+
display: flex;
|
|
428
|
+
|
|
429
|
+
&[hidden] {
|
|
430
|
+
display: none;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|