@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,319 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.rXS1Xa_trigger {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
min-height: var(--floating-panel-trigger-height, var(--size-lg));
|
|
5
|
+
padding: var(--floating-panel-trigger-padding-y, .5rem)
|
|
6
|
+
var(--floating-panel-trigger-padding-x, var(--spacing-3));
|
|
7
|
+
border: var(--floating-panel-trigger-border-width, var(--border-width-sm)) solid
|
|
8
|
+
var(--floating-panel-trigger-border-color, var(--color-border));
|
|
9
|
+
border-radius: var(--floating-panel-trigger-radius, var(--radius-md));
|
|
10
|
+
background-color: var(--floating-panel-trigger-bg, var(--color-background));
|
|
11
|
+
color: var(--floating-panel-trigger-color, var(--color-foreground));
|
|
12
|
+
font: inherit;
|
|
13
|
+
font-size: var(--floating-panel-trigger-font-size, var(--text-md));
|
|
14
|
+
line-height: var(--floating-panel-trigger-line-height, var(--line-height-text-md));
|
|
15
|
+
user-select: none;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
transition: background-color var(--floating-panel-transition, var(--transition-default)),
|
|
18
|
+
border-color var(--floating-panel-transition, var(--transition-default)),
|
|
19
|
+
color var(--floating-panel-transition, var(--transition-default)),
|
|
20
|
+
opacity var(--floating-panel-transition, var(--transition-default));
|
|
21
|
+
outline: 0;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
align-items: center;
|
|
24
|
+
margin: 0;
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
|
|
27
|
+
@media (hover: hover) {
|
|
28
|
+
&:hover {
|
|
29
|
+
background-color: var(--floating-panel-trigger-bg-hover, var(--color-accent));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:active, &[data-state="open"] {
|
|
34
|
+
background-color: var(--floating-panel-trigger-bg-active, var(--floating-panel-trigger-bg-hover, var(--color-accent)));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:focus-visible {
|
|
38
|
+
outline: var(--floating-panel-focus-ring-width, var(--floating-panel-trigger-border-width, var(--border-width-sm)))
|
|
39
|
+
solid var(--floating-panel-focus-ring-color, var(--color-ring));
|
|
40
|
+
outline-offset: calc(var(--floating-panel-focus-ring-width, var(--floating-panel-trigger-border-width, var(--border-width-sm))) *
|
|
41
|
+
-1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&[data-disabled], &[disabled] {
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
opacity: var(--floating-panel-disabled-opacity, var(--opacity-disabled));
|
|
47
|
+
cursor: default;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.rXS1Xa_positioner {
|
|
52
|
+
z-index: var(--z-index, var(--floating-panel-z-index, var(--z-popup)));
|
|
53
|
+
outline: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.rXS1Xa_content {
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
width: var(--floating-panel-width, 100%);
|
|
59
|
+
height: var(--floating-panel-height, 100%);
|
|
60
|
+
min-width: var(--floating-panel-min-width, 16rem);
|
|
61
|
+
min-height: var(--floating-panel-min-height, 10rem);
|
|
62
|
+
border: var(--floating-panel-border-width, var(--border-width-sm)) solid
|
|
63
|
+
var(--floating-panel-border-color, var(--color-border));
|
|
64
|
+
border-radius: var(--floating-panel-radius, var(--radius-md));
|
|
65
|
+
background-color: var(--floating-panel-bg, var(--color-popover));
|
|
66
|
+
color: var(--floating-panel-color, var(--color-popover-foreground));
|
|
67
|
+
box-shadow: var(--floating-panel-shadow, var(--shadow-lg));
|
|
68
|
+
transform-origin: var(--transform-origin);
|
|
69
|
+
outline: 0;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
display: flex;
|
|
72
|
+
position: relative;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
|
|
75
|
+
&[data-state="open"] {
|
|
76
|
+
animation: rXS1Xa_floating-panel-enter var(--floating-panel-transition, var(--duration-fast)) both;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&[data-state="closed"] {
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
animation: rXS1Xa_floating-panel-exit var(--floating-panel-transition, var(--duration-fast)) both;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&[data-behind] {
|
|
85
|
+
opacity: var(--floating-panel-behind-opacity, .55);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&[data-minimized] {
|
|
89
|
+
min-height: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.rXS1Xa_dragTrigger {
|
|
94
|
+
display: block;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.rXS1Xa_header {
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: var(--floating-panel-header-gap, var(--spacing-3));
|
|
102
|
+
min-height: var(--floating-panel-header-height, var(--size-xl));
|
|
103
|
+
padding: var(--floating-panel-header-padding-y, var(--spacing-2))
|
|
104
|
+
var(--floating-panel-header-padding-x, var(--spacing-3));
|
|
105
|
+
border-bottom: var(--floating-panel-header-border-width, var(--border-width-sm)) solid
|
|
106
|
+
var(--floating-panel-header-border-color, var(--floating-panel-border-color, var(--color-border)));
|
|
107
|
+
background-color: var(--floating-panel-header-bg, var(--color-muted));
|
|
108
|
+
cursor: grab;
|
|
109
|
+
user-select: none;
|
|
110
|
+
display: flex;
|
|
111
|
+
|
|
112
|
+
&[data-dragging] {
|
|
113
|
+
cursor: grabbing;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&[data-minimized] {
|
|
117
|
+
border-bottom-color: #0000;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.rXS1Xa_title {
|
|
122
|
+
align-items: center;
|
|
123
|
+
gap: var(--floating-panel-title-gap, var(--spacing-2));
|
|
124
|
+
min-width: 0;
|
|
125
|
+
color: var(--floating-panel-title-color, var(--floating-panel-color, var(--color-popover-foreground)));
|
|
126
|
+
font-size: var(--floating-panel-title-font-size, var(--text-sm));
|
|
127
|
+
font-weight: var(--floating-panel-title-font-weight, var(--weight-semibold));
|
|
128
|
+
line-height: var(--floating-panel-title-line-height, var(--line-height-text-sm));
|
|
129
|
+
margin: 0;
|
|
130
|
+
display: inline-flex;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.rXS1Xa_control {
|
|
134
|
+
align-items: center;
|
|
135
|
+
gap: var(--floating-panel-control-gap, var(--spacing-1));
|
|
136
|
+
flex: none;
|
|
137
|
+
display: inline-flex;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.rXS1Xa_controlButton {
|
|
141
|
+
box-sizing: border-box;
|
|
142
|
+
width: var(--floating-panel-control-size, var(--size-sm));
|
|
143
|
+
height: var(--floating-panel-control-size, var(--size-sm));
|
|
144
|
+
border: var(--floating-panel-control-border-width, var(--border-width-sm)) solid
|
|
145
|
+
var(--floating-panel-control-border-color, var(--color-border));
|
|
146
|
+
border-radius: var(--floating-panel-control-radius, var(--radius-sm));
|
|
147
|
+
background-color: var(--floating-panel-control-bg, var(--color-background));
|
|
148
|
+
color: var(--floating-panel-control-color, var(--color-foreground));
|
|
149
|
+
font: inherit;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
transition: background-color var(--floating-panel-transition, var(--transition-default)),
|
|
152
|
+
border-color var(--floating-panel-transition, var(--transition-default)),
|
|
153
|
+
color var(--floating-panel-transition, var(--transition-default)),
|
|
154
|
+
opacity var(--floating-panel-transition, var(--transition-default));
|
|
155
|
+
outline: 0;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
align-items: center;
|
|
158
|
+
margin: 0;
|
|
159
|
+
padding: 0;
|
|
160
|
+
display: inline-flex;
|
|
161
|
+
|
|
162
|
+
& > svg {
|
|
163
|
+
width: var(--floating-panel-control-icon-size, 1rem);
|
|
164
|
+
height: var(--floating-panel-control-icon-size, 1rem);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@media (hover: hover) {
|
|
168
|
+
&:hover {
|
|
169
|
+
background-color: var(--floating-panel-control-bg-hover, var(--color-accent));
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&:focus-visible {
|
|
174
|
+
outline: var(--floating-panel-focus-ring-width, var(--floating-panel-control-border-width, var(--border-width-sm)))
|
|
175
|
+
solid var(--floating-panel-focus-ring-color, var(--color-ring));
|
|
176
|
+
outline-offset: calc(var(--floating-panel-focus-ring-width, var(--floating-panel-control-border-width, var(--border-width-sm))) *
|
|
177
|
+
-1);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&[data-disabled], &[disabled] {
|
|
181
|
+
pointer-events: none;
|
|
182
|
+
opacity: var(--floating-panel-disabled-opacity, var(--opacity-disabled));
|
|
183
|
+
cursor: default;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.rXS1Xa_dragIndicator {
|
|
188
|
+
color: var(--floating-panel-drag-indicator-color, var(--color-muted-foreground));
|
|
189
|
+
flex: none;
|
|
190
|
+
justify-content: center;
|
|
191
|
+
align-items: center;
|
|
192
|
+
display: inline-flex;
|
|
193
|
+
|
|
194
|
+
& > svg {
|
|
195
|
+
width: var(--floating-panel-drag-indicator-size, 1rem);
|
|
196
|
+
height: var(--floating-panel-drag-indicator-size, 1rem);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.rXS1Xa_body {
|
|
201
|
+
box-sizing: border-box;
|
|
202
|
+
min-height: 0;
|
|
203
|
+
padding: var(--floating-panel-body-padding, var(--spacing-4));
|
|
204
|
+
color: var(--floating-panel-body-color, var(--floating-panel-color, var(--color-popover-foreground)));
|
|
205
|
+
font-size: var(--floating-panel-body-font-size, var(--text-sm));
|
|
206
|
+
line-height: var(--floating-panel-body-line-height, var(--line-height-text-sm));
|
|
207
|
+
flex: auto;
|
|
208
|
+
overflow: auto;
|
|
209
|
+
|
|
210
|
+
&[data-minimized] {
|
|
211
|
+
display: none;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.rXS1Xa_footer {
|
|
216
|
+
box-sizing: border-box;
|
|
217
|
+
align-items: center;
|
|
218
|
+
justify-content: var(--floating-panel-footer-justify, flex-end);
|
|
219
|
+
gap: var(--floating-panel-footer-gap, var(--spacing-2));
|
|
220
|
+
padding: var(--floating-panel-footer-padding-y, var(--spacing-2))
|
|
221
|
+
var(--floating-panel-footer-padding-x, var(--spacing-3));
|
|
222
|
+
border-top: var(--floating-panel-footer-border-width, var(--border-width-sm)) solid
|
|
223
|
+
var(--floating-panel-footer-border-color, var(--floating-panel-border-color, var(--color-border)));
|
|
224
|
+
color: var(--floating-panel-footer-color, var(--color-muted-foreground));
|
|
225
|
+
font-size: var(--floating-panel-footer-font-size, var(--text-xs));
|
|
226
|
+
line-height: var(--floating-panel-footer-line-height, var(--line-height-text-xs));
|
|
227
|
+
flex: none;
|
|
228
|
+
display: flex;
|
|
229
|
+
|
|
230
|
+
&[data-minimized] {
|
|
231
|
+
display: none;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.rXS1Xa_resizeTrigger {
|
|
236
|
+
position: absolute;
|
|
237
|
+
|
|
238
|
+
&[data-axis="n"], &[data-axis="s"] {
|
|
239
|
+
left: var(--floating-panel-resize-edge-inset, .75rem);
|
|
240
|
+
width: calc(100% - (var(--floating-panel-resize-edge-inset, .75rem) * 2));
|
|
241
|
+
height: var(--floating-panel-resize-edge-size, .5rem);
|
|
242
|
+
cursor: ns-resize;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&[data-axis="n"] {
|
|
246
|
+
top: calc(var(--floating-panel-resize-edge-size, .5rem) / -2);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&[data-axis="s"] {
|
|
250
|
+
bottom: calc(var(--floating-panel-resize-edge-size, .5rem) / -2);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
&[data-axis="e"], &[data-axis="w"] {
|
|
254
|
+
top: var(--floating-panel-resize-edge-inset, .75rem);
|
|
255
|
+
width: var(--floating-panel-resize-edge-size, .5rem);
|
|
256
|
+
height: calc(100% - (var(--floating-panel-resize-edge-inset, .75rem) * 2));
|
|
257
|
+
cursor: ew-resize;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
&[data-axis="e"] {
|
|
261
|
+
right: calc(var(--floating-panel-resize-edge-size, .5rem) / -2);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&[data-axis="w"] {
|
|
265
|
+
left: calc(var(--floating-panel-resize-edge-size, .5rem) / -2);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&[data-axis="ne"], &[data-axis="nw"], &[data-axis="se"], &[data-axis="sw"] {
|
|
269
|
+
width: var(--floating-panel-resize-corner-size, .75rem);
|
|
270
|
+
height: var(--floating-panel-resize-corner-size, .75rem);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&[data-axis="ne"] {
|
|
274
|
+
top: calc(var(--floating-panel-resize-corner-size, .75rem) / -2);
|
|
275
|
+
right: calc(var(--floating-panel-resize-corner-size, .75rem) / -2);
|
|
276
|
+
cursor: nesw-resize;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
&[data-axis="nw"] {
|
|
280
|
+
top: calc(var(--floating-panel-resize-corner-size, .75rem) / -2);
|
|
281
|
+
left: calc(var(--floating-panel-resize-corner-size, .75rem) / -2);
|
|
282
|
+
cursor: nwse-resize;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&[data-axis="se"] {
|
|
286
|
+
right: calc(var(--floating-panel-resize-corner-size, .75rem) / -2);
|
|
287
|
+
bottom: calc(var(--floating-panel-resize-corner-size, .75rem) / -2);
|
|
288
|
+
cursor: nwse-resize;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
&[data-axis="sw"] {
|
|
292
|
+
bottom: calc(var(--floating-panel-resize-corner-size, .75rem) / -2);
|
|
293
|
+
left: calc(var(--floating-panel-resize-corner-size, .75rem) / -2);
|
|
294
|
+
cursor: nesw-resize;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
&[data-disabled] {
|
|
298
|
+
pointer-events: none;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
@keyframes rXS1Xa_floating-panel-enter {
|
|
303
|
+
from {
|
|
304
|
+
opacity: var(--floating-panel-starting-opacity, 0);
|
|
305
|
+
translate: var(--floating-panel-starting-translate-x, 0)
|
|
306
|
+
var(--floating-panel-starting-translate-y, 0);
|
|
307
|
+
scale: var(--floating-panel-starting-scale, var(--scale-popup));
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
@keyframes rXS1Xa_floating-panel-exit {
|
|
312
|
+
to {
|
|
313
|
+
opacity: var(--floating-panel-ending-opacity, 0);
|
|
314
|
+
translate: var(--floating-panel-ending-translate-x, 0)
|
|
315
|
+
var(--floating-panel-ending-translate-y, 0);
|
|
316
|
+
scale: var(--floating-panel-ending-scale, var(--scale-popup));
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { OverlayPortalProps } from "../../lib/moduix/overlayPortal.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { FloatingPanel } from "@ark-ui/react/floating-panel";
|
|
4
|
+
|
|
5
|
+
//#region src/components/floating-panel/FloatingPanel.d.ts
|
|
6
|
+
declare const resizeTriggerAxes: ("s" | "w" | "e" | "n" | "sw" | "nw" | "se" | "ne")[];
|
|
7
|
+
type FloatingPanelRootProps = ComponentProps<typeof FloatingPanel.Root> & OverlayPortalProps;
|
|
8
|
+
type FloatingPanelRootProviderProps = ComponentProps<typeof FloatingPanel.RootProvider> & OverlayPortalProps;
|
|
9
|
+
declare function FloatingPanelRoot({
|
|
10
|
+
persistRect,
|
|
11
|
+
portalled,
|
|
12
|
+
portalRef,
|
|
13
|
+
...props
|
|
14
|
+
}: FloatingPanelRootProps): import("react").JSX.Element;
|
|
15
|
+
declare function FloatingPanelRootProvider({
|
|
16
|
+
portalled,
|
|
17
|
+
portalRef,
|
|
18
|
+
...props
|
|
19
|
+
}: FloatingPanelRootProviderProps): import("react").JSX.Element;
|
|
20
|
+
declare function FloatingPanelFooter({
|
|
21
|
+
className,
|
|
22
|
+
...props
|
|
23
|
+
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
24
|
+
declare function FloatingPanelResizeTriggerGroup(): import("react").JSX.Element;
|
|
25
|
+
declare const FloatingPanel$1: typeof FloatingPanelRoot & {
|
|
26
|
+
Root: typeof FloatingPanelRoot;
|
|
27
|
+
RootProvider: typeof FloatingPanelRootProvider;
|
|
28
|
+
Trigger: import("react").ForwardRefExoticComponent<Omit<FloatingPanel.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
29
|
+
Positioner: import("react").ForwardRefExoticComponent<Omit<FloatingPanel.PositionerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
|
+
Content: import("react").ForwardRefExoticComponent<Omit<FloatingPanel.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
|
+
DragTrigger: import("react").ForwardRefExoticComponent<Omit<FloatingPanel.DragTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
32
|
+
Header: import("react").ForwardRefExoticComponent<Omit<FloatingPanel.HeaderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
33
|
+
Title: import("react").ForwardRefExoticComponent<Omit<FloatingPanel.TitleProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
34
|
+
Control: import("react").ForwardRefExoticComponent<Omit<FloatingPanel.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
35
|
+
StageTrigger: import("react").ForwardRefExoticComponent<Omit<FloatingPanel.StageTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
CloseTrigger: import("react").ForwardRefExoticComponent<Omit<FloatingPanel.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
37
|
+
CloseIcon: import("react").ForwardRefExoticComponent<Omit<Omit<FloatingPanel.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "asChild">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
38
|
+
Body: import("react").ForwardRefExoticComponent<Omit<FloatingPanel.BodyProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
39
|
+
Footer: typeof FloatingPanelFooter;
|
|
40
|
+
ResizeTrigger: import("react").ForwardRefExoticComponent<Omit<FloatingPanel.ResizeTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
41
|
+
ResizeTriggerGroup: typeof FloatingPanelResizeTriggerGroup;
|
|
42
|
+
DragIndicator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { FloatingPanel$1 as FloatingPanel, resizeTriggerAxes };
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { GripIcon, MaximizeIcon, MinusIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
3
|
+
import { CloseButton } from "../close-button/CloseButton.js";
|
|
4
|
+
import { OverlayPortal, OverlayPortalProvider } from "../../lib/moduix/overlayPortal.js";
|
|
5
|
+
import FloatingPanel_module_default from "./FloatingPanel.module.js";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
|
+
import { forwardRef } from "react";
|
|
9
|
+
import { FloatingPanel } from "@ark-ui/react/floating-panel";
|
|
10
|
+
//#region src/components/floating-panel/FloatingPanel.tsx
|
|
11
|
+
const DEFAULT_CLOSE_BUTTON_LABEL = "Close panel";
|
|
12
|
+
const DEFAULT_MINIMIZE_LABEL = "Minimize panel";
|
|
13
|
+
const DEFAULT_MAXIMIZE_LABEL = "Maximize panel";
|
|
14
|
+
const resizeTriggerAxes = [
|
|
15
|
+
"n",
|
|
16
|
+
"e",
|
|
17
|
+
"s",
|
|
18
|
+
"w",
|
|
19
|
+
"ne",
|
|
20
|
+
"se",
|
|
21
|
+
"sw",
|
|
22
|
+
"nw"
|
|
23
|
+
];
|
|
24
|
+
function FloatingPanelRoot({ persistRect = true, portalled, portalRef, ...props }) {
|
|
25
|
+
return /* @__PURE__ */ jsx(OverlayPortalProvider, {
|
|
26
|
+
portalled,
|
|
27
|
+
portalRef,
|
|
28
|
+
children: /* @__PURE__ */ jsx(FloatingPanel.Root, {
|
|
29
|
+
persistRect,
|
|
30
|
+
...props
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function FloatingPanelRootProvider({ portalled, portalRef, ...props }) {
|
|
35
|
+
return /* @__PURE__ */ jsx(OverlayPortalProvider, {
|
|
36
|
+
portalled,
|
|
37
|
+
portalRef,
|
|
38
|
+
children: /* @__PURE__ */ jsx(FloatingPanel.RootProvider, { ...props })
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
const FloatingPanelTrigger = forwardRef(function FloatingPanelTrigger({ asChild, className, ...props }, ref) {
|
|
42
|
+
return /* @__PURE__ */ jsx(FloatingPanel.Trigger, {
|
|
43
|
+
ref,
|
|
44
|
+
asChild,
|
|
45
|
+
"data-slot": "floating-panel-trigger",
|
|
46
|
+
className: clsx(!asChild && FloatingPanel_module_default.trigger, normalizeClassName(className)),
|
|
47
|
+
...props
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
const FloatingPanelPositioner = forwardRef(function FloatingPanelPositioner({ className, ...props }, ref) {
|
|
51
|
+
return /* @__PURE__ */ jsx(OverlayPortal, { children: /* @__PURE__ */ jsx(FloatingPanel.Positioner, {
|
|
52
|
+
ref,
|
|
53
|
+
"data-slot": "floating-panel-positioner",
|
|
54
|
+
className: clsx(FloatingPanel_module_default.positioner, normalizeClassName(className)),
|
|
55
|
+
...props
|
|
56
|
+
}) });
|
|
57
|
+
});
|
|
58
|
+
const FloatingPanelContent = forwardRef(function FloatingPanelContent({ className, ...props }, ref) {
|
|
59
|
+
return /* @__PURE__ */ jsx(FloatingPanel.Content, {
|
|
60
|
+
ref,
|
|
61
|
+
"data-slot": "floating-panel-content",
|
|
62
|
+
className: clsx(FloatingPanel_module_default.content, normalizeClassName(className)),
|
|
63
|
+
...props
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
const FloatingPanelDragTrigger = forwardRef(function FloatingPanelDragTrigger({ className, ...props }, ref) {
|
|
67
|
+
return /* @__PURE__ */ jsx(FloatingPanel.DragTrigger, {
|
|
68
|
+
ref,
|
|
69
|
+
"data-slot": "floating-panel-drag-trigger",
|
|
70
|
+
className: clsx(FloatingPanel_module_default.dragTrigger, normalizeClassName(className)),
|
|
71
|
+
...props
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
const FloatingPanelHeader = forwardRef(function FloatingPanelHeader({ className, ...props }, ref) {
|
|
75
|
+
return /* @__PURE__ */ jsx(FloatingPanel.Header, {
|
|
76
|
+
ref,
|
|
77
|
+
"data-slot": "floating-panel-header",
|
|
78
|
+
className: clsx(FloatingPanel_module_default.header, normalizeClassName(className)),
|
|
79
|
+
...props
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
const FloatingPanelTitle = forwardRef(function FloatingPanelTitle({ className, ...props }, ref) {
|
|
83
|
+
return /* @__PURE__ */ jsx(FloatingPanel.Title, {
|
|
84
|
+
ref,
|
|
85
|
+
"data-slot": "floating-panel-title",
|
|
86
|
+
className: clsx(FloatingPanel_module_default.title, normalizeClassName(className)),
|
|
87
|
+
...props
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
const FloatingPanelControl = forwardRef(function FloatingPanelControl({ className, ...props }, ref) {
|
|
91
|
+
return /* @__PURE__ */ jsx(FloatingPanel.Control, {
|
|
92
|
+
ref,
|
|
93
|
+
"data-slot": "floating-panel-control",
|
|
94
|
+
className: clsx(FloatingPanel_module_default.control, normalizeClassName(className)),
|
|
95
|
+
...props
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
const FloatingPanelStageTrigger = forwardRef(function FloatingPanelStageTrigger({ asChild, className, children, stage, "aria-label": ariaLabel, ...props }, ref) {
|
|
99
|
+
const shouldRenderDefaultIcon = children == null && !asChild;
|
|
100
|
+
const defaultAriaLabel = shouldRenderDefaultIcon && stage === "minimized" ? DEFAULT_MINIMIZE_LABEL : shouldRenderDefaultIcon && stage === "maximized" ? DEFAULT_MAXIMIZE_LABEL : void 0;
|
|
101
|
+
return /* @__PURE__ */ jsxs(FloatingPanel.StageTrigger, {
|
|
102
|
+
ref,
|
|
103
|
+
asChild,
|
|
104
|
+
stage,
|
|
105
|
+
"data-slot": "floating-panel-stage-trigger",
|
|
106
|
+
className: clsx(!asChild && FloatingPanel_module_default.controlButton, normalizeClassName(className)),
|
|
107
|
+
"aria-label": ariaLabel ?? defaultAriaLabel,
|
|
108
|
+
...props,
|
|
109
|
+
children: [
|
|
110
|
+
children,
|
|
111
|
+
shouldRenderDefaultIcon && stage === "minimized" ? /* @__PURE__ */ jsx(MinusIcon, {}) : null,
|
|
112
|
+
shouldRenderDefaultIcon && stage === "maximized" ? /* @__PURE__ */ jsx(MaximizeIcon, {}) : null
|
|
113
|
+
]
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
const FloatingPanelCloseTrigger = forwardRef(function FloatingPanelCloseTrigger({ asChild, className, ...props }, ref) {
|
|
117
|
+
return /* @__PURE__ */ jsx(FloatingPanel.CloseTrigger, {
|
|
118
|
+
ref,
|
|
119
|
+
asChild,
|
|
120
|
+
"data-slot": "floating-panel-close-trigger",
|
|
121
|
+
className: clsx(!asChild && FloatingPanel_module_default.controlButton, normalizeClassName(className)),
|
|
122
|
+
...props
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
const FloatingPanelCloseIcon = forwardRef(function FloatingPanelCloseIcon({ className, children, "aria-label": ariaLabel = DEFAULT_CLOSE_BUTTON_LABEL, ...props }, ref) {
|
|
126
|
+
return /* @__PURE__ */ jsx(FloatingPanel.CloseTrigger, {
|
|
127
|
+
asChild: true,
|
|
128
|
+
...props,
|
|
129
|
+
children: /* @__PURE__ */ jsx(CloseButton.Root, {
|
|
130
|
+
ref,
|
|
131
|
+
"data-slot": "floating-panel-close-icon",
|
|
132
|
+
"aria-label": ariaLabel,
|
|
133
|
+
className: clsx(FloatingPanel_module_default.controlButton, normalizeClassName(className)),
|
|
134
|
+
children
|
|
135
|
+
})
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
const FloatingPanelBody = forwardRef(function FloatingPanelBody({ className, ...props }, ref) {
|
|
139
|
+
return /* @__PURE__ */ jsx(FloatingPanel.Body, {
|
|
140
|
+
ref,
|
|
141
|
+
"data-slot": "floating-panel-body",
|
|
142
|
+
className: clsx(FloatingPanel_module_default.body, normalizeClassName(className)),
|
|
143
|
+
...props
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
function FloatingPanelFooter({ className, ...props }) {
|
|
147
|
+
return /* @__PURE__ */ jsx("div", {
|
|
148
|
+
"data-slot": "floating-panel-footer",
|
|
149
|
+
className: clsx(FloatingPanel_module_default.footer, className),
|
|
150
|
+
...props
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
const FloatingPanelResizeTrigger = forwardRef(function FloatingPanelResizeTrigger({ className, ...props }, ref) {
|
|
154
|
+
return /* @__PURE__ */ jsx(FloatingPanel.ResizeTrigger, {
|
|
155
|
+
ref,
|
|
156
|
+
"data-slot": "floating-panel-resize-trigger",
|
|
157
|
+
className: clsx(FloatingPanel_module_default.resizeTrigger, normalizeClassName(className)),
|
|
158
|
+
...props
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
function FloatingPanelResizeTriggerGroup() {
|
|
162
|
+
return /* @__PURE__ */ jsx(Fragment, { children: resizeTriggerAxes.map((axis) => /* @__PURE__ */ jsx(FloatingPanelResizeTrigger, { axis }, axis)) });
|
|
163
|
+
}
|
|
164
|
+
const FloatingPanelDragIndicator = forwardRef(function FloatingPanelDragIndicator({ className, children, ...props }, ref) {
|
|
165
|
+
return /* @__PURE__ */ jsx("span", {
|
|
166
|
+
ref,
|
|
167
|
+
"aria-hidden": "true",
|
|
168
|
+
"data-slot": "floating-panel-drag-indicator",
|
|
169
|
+
className: clsx(FloatingPanel_module_default.dragIndicator, normalizeClassName(className)),
|
|
170
|
+
...props,
|
|
171
|
+
children: children ?? /* @__PURE__ */ jsx(GripIcon, {})
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
const FloatingPanel$1 = Object.assign(FloatingPanelRoot, {
|
|
175
|
+
Root: FloatingPanelRoot,
|
|
176
|
+
RootProvider: FloatingPanelRootProvider,
|
|
177
|
+
Trigger: FloatingPanelTrigger,
|
|
178
|
+
Positioner: FloatingPanelPositioner,
|
|
179
|
+
Content: FloatingPanelContent,
|
|
180
|
+
DragTrigger: FloatingPanelDragTrigger,
|
|
181
|
+
Header: FloatingPanelHeader,
|
|
182
|
+
Title: FloatingPanelTitle,
|
|
183
|
+
Control: FloatingPanelControl,
|
|
184
|
+
StageTrigger: FloatingPanelStageTrigger,
|
|
185
|
+
CloseTrigger: FloatingPanelCloseTrigger,
|
|
186
|
+
CloseIcon: FloatingPanelCloseIcon,
|
|
187
|
+
Body: FloatingPanelBody,
|
|
188
|
+
Footer: FloatingPanelFooter,
|
|
189
|
+
ResizeTrigger: FloatingPanelResizeTrigger,
|
|
190
|
+
ResizeTriggerGroup: FloatingPanelResizeTriggerGroup,
|
|
191
|
+
DragIndicator: FloatingPanelDragIndicator
|
|
192
|
+
});
|
|
193
|
+
//#endregion
|
|
194
|
+
export { FloatingPanel$1 as FloatingPanel, resizeTriggerAxes };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import './FloatingPanel.css';
|
|
2
|
+
//#region src/components/floating-panel/FloatingPanel.module.css
|
|
3
|
+
var FloatingPanel_module_default = {
|
|
4
|
+
"body": "rXS1Xa_body",
|
|
5
|
+
"content": "rXS1Xa_content",
|
|
6
|
+
"control": "rXS1Xa_control",
|
|
7
|
+
"controlButton": "rXS1Xa_controlButton",
|
|
8
|
+
"dragIndicator": "rXS1Xa_dragIndicator",
|
|
9
|
+
"dragTrigger": "rXS1Xa_dragTrigger",
|
|
10
|
+
"floating-panel-enter": "rXS1Xa_floating-panel-enter",
|
|
11
|
+
"floating-panel-exit": "rXS1Xa_floating-panel-exit",
|
|
12
|
+
"footer": "rXS1Xa_footer",
|
|
13
|
+
"header": "rXS1Xa_header",
|
|
14
|
+
"positioner": "rXS1Xa_positioner",
|
|
15
|
+
"resizeTrigger": "rXS1Xa_resizeTrigger",
|
|
16
|
+
"title": "rXS1Xa_title",
|
|
17
|
+
"trigger": "rXS1Xa_trigger"
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { FloatingPanel_module_default as default };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
._8DK-TW_root {
|
|
3
|
+
--_heading-font-size: var(--heading-font-size-2xl, var(--text-3xl));
|
|
4
|
+
--_heading-line-height: var(--heading-line-height-2xl, var(--line-height-text-3xl));
|
|
5
|
+
--_heading-font-weight: var(--heading-font-weight-semibold, var(--weight-semibold));
|
|
6
|
+
color: var(--heading-color, var(--color-foreground));
|
|
7
|
+
font-family: var(--heading-font-family, inherit);
|
|
8
|
+
font-size: var(--heading-font-size, var(--_heading-font-size));
|
|
9
|
+
font-weight: var(--heading-font-weight, var(--_heading-font-weight));
|
|
10
|
+
line-height: var(--heading-line-height, var(--_heading-line-height));
|
|
11
|
+
letter-spacing: var(--heading-letter-spacing, 0);
|
|
12
|
+
text-wrap: var(--heading-text-wrap, balance);
|
|
13
|
+
overflow-wrap: break-word;
|
|
14
|
+
margin: 0;
|
|
15
|
+
|
|
16
|
+
&:is(h6):not([data-size]), &[data-size="xs"] {
|
|
17
|
+
--_heading-font-size: var(--heading-font-size-xs, var(--text-sm));
|
|
18
|
+
--_heading-line-height: var(--heading-line-height-xs, var(--line-height-text-sm));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:is(h5):not([data-size]), &[data-size="sm"] {
|
|
22
|
+
--_heading-font-size: var(--heading-font-size-sm, var(--text-md));
|
|
23
|
+
--_heading-line-height: var(--heading-line-height-sm, var(--line-height-text-md));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:is(h4):not([data-size]), &[data-size="md"] {
|
|
27
|
+
--_heading-font-size: var(--heading-font-size-md, var(--text-lg));
|
|
28
|
+
--_heading-line-height: var(--heading-line-height-md, var(--line-height-text-lg));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:is(h3):not([data-size]), &[data-size="lg"] {
|
|
32
|
+
--_heading-font-size: var(--heading-font-size-lg, var(--text-xl));
|
|
33
|
+
--_heading-line-height: var(--heading-line-height-lg, var(--line-height-text-xl));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:is(h2):not([data-size]), &[data-size="xl"] {
|
|
37
|
+
--_heading-font-size: var(--heading-font-size-xl, var(--text-2xl));
|
|
38
|
+
--_heading-line-height: var(--heading-line-height-xl, var(--line-height-text-2xl));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&[data-size="2xl"] {
|
|
42
|
+
--_heading-font-size: var(--heading-font-size-2xl, var(--text-3xl));
|
|
43
|
+
--_heading-line-height: var(--heading-line-height-2xl, var(--line-height-text-3xl));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[data-weight="regular"] {
|
|
47
|
+
--_heading-font-weight: var(--heading-font-weight-regular, var(--weight-regular));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&[data-weight="medium"] {
|
|
51
|
+
--_heading-font-weight: var(--heading-font-weight-medium, var(--weight-medium));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&[data-weight="bold"] {
|
|
55
|
+
--_heading-font-weight: var(--heading-font-weight-bold, var(--weight-bold));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/components/heading/Heading.d.ts
|
|
2
|
+
type HeadingSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
3
|
+
type HeadingWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
4
|
+
type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
5
|
+
declare const Heading: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
6
|
+
as?: HeadingElement;
|
|
7
|
+
size?: HeadingSize;
|
|
8
|
+
weight?: HeadingWeight;
|
|
9
|
+
} & import("react").RefAttributes<HTMLHeadingElement>> & {
|
|
10
|
+
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
11
|
+
as?: HeadingElement;
|
|
12
|
+
size?: HeadingSize;
|
|
13
|
+
weight?: HeadingWeight;
|
|
14
|
+
} & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Heading };
|