@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,65 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import Marquee_module_default from "./Marquee.module.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
|
+
import { Marquee } from "@ark-ui/react/marquee";
|
|
7
|
+
//#region src/components/marquee/Marquee.tsx
|
|
8
|
+
const MarqueeRoot = forwardRef(function MarqueeRoot({ className, ...props }, ref) {
|
|
9
|
+
return /* @__PURE__ */ jsx(Marquee.Root, {
|
|
10
|
+
ref,
|
|
11
|
+
"data-slot": "marquee-root",
|
|
12
|
+
className: clsx(Marquee_module_default.root, normalizeClassName(className)),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
const MarqueeRootProvider = forwardRef(function MarqueeRootProvider({ className, ...props }, ref) {
|
|
17
|
+
return /* @__PURE__ */ jsx(Marquee.RootProvider, {
|
|
18
|
+
ref,
|
|
19
|
+
"data-slot": "marquee-root-provider",
|
|
20
|
+
className: clsx(Marquee_module_default.root, normalizeClassName(className)),
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
const MarqueeViewport = forwardRef(function MarqueeViewport({ className, ...props }, ref) {
|
|
25
|
+
return /* @__PURE__ */ jsx(Marquee.Viewport, {
|
|
26
|
+
ref,
|
|
27
|
+
"data-slot": "marquee-viewport",
|
|
28
|
+
className: clsx(Marquee_module_default.viewport, normalizeClassName(className)),
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
const MarqueeContent = forwardRef(function MarqueeContent({ className, ...props }, ref) {
|
|
33
|
+
return /* @__PURE__ */ jsx(Marquee.Content, {
|
|
34
|
+
ref,
|
|
35
|
+
"data-slot": "marquee-content",
|
|
36
|
+
className: clsx(Marquee_module_default.content, normalizeClassName(className)),
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
const MarqueeItem = forwardRef(function MarqueeItem({ className, ...props }, ref) {
|
|
41
|
+
return /* @__PURE__ */ jsx(Marquee.Item, {
|
|
42
|
+
ref,
|
|
43
|
+
"data-slot": "marquee-item",
|
|
44
|
+
className: clsx(Marquee_module_default.item, normalizeClassName(className)),
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
const MarqueeEdge = forwardRef(function MarqueeEdge({ className, ...props }, ref) {
|
|
49
|
+
return /* @__PURE__ */ jsx(Marquee.Edge, {
|
|
50
|
+
ref,
|
|
51
|
+
"data-slot": "marquee-edge",
|
|
52
|
+
className: clsx(Marquee_module_default.edge, normalizeClassName(className)),
|
|
53
|
+
...props
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
const Marquee$1 = Object.assign(MarqueeRoot, {
|
|
57
|
+
Root: MarqueeRoot,
|
|
58
|
+
RootProvider: MarqueeRootProvider,
|
|
59
|
+
Viewport: MarqueeViewport,
|
|
60
|
+
Content: MarqueeContent,
|
|
61
|
+
Item: MarqueeItem,
|
|
62
|
+
Edge: MarqueeEdge
|
|
63
|
+
});
|
|
64
|
+
//#endregion
|
|
65
|
+
export { Marquee$1 as Marquee };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './Marquee.css';
|
|
2
|
+
//#region src/components/marquee/Marquee.module.css
|
|
3
|
+
var Marquee_module_default = {
|
|
4
|
+
"content": "_7_2lUa_content",
|
|
5
|
+
"edge": "_7_2lUa_edge",
|
|
6
|
+
"item": "_7_2lUa_item",
|
|
7
|
+
"marquee-x": "_7_2lUa_marquee-x",
|
|
8
|
+
"marquee-y": "_7_2lUa_marquee-y",
|
|
9
|
+
"root": "_7_2lUa_root",
|
|
10
|
+
"viewport": "_7_2lUa_viewport"
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Marquee_module_default as default };
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.by_0RW_trigger, .by_0RW_contextTrigger {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: var(--menu-trigger-gap, .5rem);
|
|
7
|
+
min-height: var(--menu-trigger-height, var(--size-lg));
|
|
8
|
+
padding: var(--menu-trigger-padding-y, .5rem) var(--menu-trigger-padding-x, .875rem);
|
|
9
|
+
border: var(--menu-trigger-border-width, var(--border-width-sm)) solid
|
|
10
|
+
var(--menu-trigger-border-color, var(--color-border));
|
|
11
|
+
border-radius: var(--menu-trigger-radius, var(--radius-md));
|
|
12
|
+
background-color: var(--menu-trigger-bg, var(--color-background));
|
|
13
|
+
color: var(--menu-trigger-color, var(--color-foreground));
|
|
14
|
+
font: inherit;
|
|
15
|
+
font-size: var(--menu-trigger-font-size, var(--text-md));
|
|
16
|
+
line-height: var(--menu-trigger-line-height, var(--line-height-text-md));
|
|
17
|
+
user-select: none;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
transition: background-color var(--menu-transition, var(--transition-default)),
|
|
20
|
+
border-color var(--menu-transition, var(--transition-default)),
|
|
21
|
+
color var(--menu-transition, var(--transition-default));
|
|
22
|
+
outline: 0;
|
|
23
|
+
margin: 0;
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
|
|
26
|
+
@media (hover: hover) {
|
|
27
|
+
&:hover {
|
|
28
|
+
background-color: var(--menu-trigger-bg-hover);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:active, &[data-state="open"] {
|
|
33
|
+
background-color: var(--menu-trigger-bg-active, var(--menu-trigger-bg-hover));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:focus-visible {
|
|
37
|
+
outline: var(--menu-focus-ring-width, var(--menu-trigger-border-width, var(--border-width-sm)))
|
|
38
|
+
solid var(--menu-focus-ring-color, var(--color-ring));
|
|
39
|
+
outline-offset: calc(var(--menu-focus-ring-width, var(--menu-trigger-border-width, var(--border-width-sm))) * -1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&[data-disabled], &:disabled {
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
opacity: var(--menu-disabled-opacity, var(--opacity-disabled));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.by_0RW_contextTrigger {
|
|
49
|
+
width: var(--menu-context-trigger-width, 15rem);
|
|
50
|
+
min-height: var(--menu-context-trigger-height, 10rem);
|
|
51
|
+
border-style: var(--menu-context-trigger-border-style, dashed);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.by_0RW_triggerIcon, .by_0RW_indicator {
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
width: var(--menu-trigger-icon-size, 1rem);
|
|
57
|
+
height: var(--menu-trigger-icon-size, 1rem);
|
|
58
|
+
color: var(--menu-trigger-icon-color, currentColor);
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
align-items: center;
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.by_0RW_iconSvg {
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.by_0RW_positioner {
|
|
71
|
+
z-index: var(--z-index);
|
|
72
|
+
width: var(--positioner-width, auto);
|
|
73
|
+
max-width: var(--available-width);
|
|
74
|
+
outline: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.by_0RW_content {
|
|
78
|
+
--arrow-size: var(--menu-arrow-size, .625rem);
|
|
79
|
+
--arrow-background: var(--menu-popup-bg, var(--color-popover));
|
|
80
|
+
box-sizing: border-box;
|
|
81
|
+
min-width: min(max(var(--reference-width, 0px), var(--menu-popup-min-width, 12rem)),
|
|
82
|
+
var(--available-width, 100vw));
|
|
83
|
+
max-width: min(var(--menu-popup-max-width, 20rem), var(--available-width, 100vw));
|
|
84
|
+
max-height: min(var(--menu-popup-max-height, 24rem), var(--available-height, 100dvh));
|
|
85
|
+
padding-block: var(--menu-popup-padding-y, .25rem);
|
|
86
|
+
border-radius: var(--menu-popup-radius, var(--radius-md));
|
|
87
|
+
background-color: var(--menu-popup-bg, var(--color-popover));
|
|
88
|
+
color: var(--menu-popup-color, var(--color-popover-foreground));
|
|
89
|
+
outline: var(--menu-popup-border-width, var(--border-width-sm)) solid
|
|
90
|
+
var(--menu-popup-border-color, var(--color-border));
|
|
91
|
+
box-shadow: var(--menu-popup-shadow, var(--shadow-lg));
|
|
92
|
+
transform-origin: var(--transform-origin);
|
|
93
|
+
z-index: calc(var(--z-popup) + var(--layer-index, 0));
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
display: flex;
|
|
96
|
+
position: relative;
|
|
97
|
+
overflow: auto;
|
|
98
|
+
|
|
99
|
+
&[data-state="open"] {
|
|
100
|
+
animation: by_0RW_menuContentIn var(--menu-transition, var(--transition-default));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&[data-state="closed"] {
|
|
104
|
+
animation: by_0RW_menuContentOut var(--menu-transition, var(--transition-default));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.by_0RW_arrow {
|
|
109
|
+
--arrow-background: var(--menu-popup-bg, var(--color-popover));
|
|
110
|
+
z-index: -1;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.by_0RW_arrowTip {
|
|
114
|
+
border-block-start: var(--menu-popup-border-width, var(--border-width-sm)) solid
|
|
115
|
+
var(--menu-arrow-stroke-color, var(--menu-popup-border-color, var(--color-border)));
|
|
116
|
+
border-inline-start: var(--menu-popup-border-width, var(--border-width-sm)) solid
|
|
117
|
+
var(--menu-arrow-stroke-color, var(--menu-popup-border-color, var(--color-border)));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.by_0RW_item, .by_0RW_triggerItem, .by_0RW_radioItem, .by_0RW_checkboxItem {
|
|
121
|
+
box-sizing: border-box;
|
|
122
|
+
min-height: var(--menu-item-height, var(--popup-item-min-height, 2rem));
|
|
123
|
+
border-radius: var(--menu-item-radius, var(--radius-sm));
|
|
124
|
+
background-color: var(--menu-item-bg, transparent);
|
|
125
|
+
color: inherit;
|
|
126
|
+
font: inherit;
|
|
127
|
+
font-size: var(--menu-item-font-size, var(--popup-item-font-size, var(--text-sm)));
|
|
128
|
+
line-height: var(--menu-item-line-height, var(--popup-item-line-height, var(--line-height-text-sm)));
|
|
129
|
+
user-select: none;
|
|
130
|
+
cursor: default;
|
|
131
|
+
border: 0;
|
|
132
|
+
outline: 0;
|
|
133
|
+
margin: 0;
|
|
134
|
+
text-decoration: none;
|
|
135
|
+
position: relative;
|
|
136
|
+
|
|
137
|
+
&:is([data-highlighted], [data-state="open"]) {
|
|
138
|
+
z-index: 0;
|
|
139
|
+
|
|
140
|
+
&:before {
|
|
141
|
+
content: "";
|
|
142
|
+
z-index: -1;
|
|
143
|
+
inset-block: 0;
|
|
144
|
+
inset-inline: var(--menu-highlight-inset-x, var(--popup-highlight-inset-x, var(--spacing-1)));
|
|
145
|
+
border-radius: var(--menu-highlight-radius, var(--popup-highlight-radius, var(--radius-sm)));
|
|
146
|
+
background-color: var(--menu-submenu-open-bg, var(--color-accent));
|
|
147
|
+
position: absolute;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&[data-highlighted] {
|
|
152
|
+
color: var(--menu-highlight-color, var(--color-accent-foreground));
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&[data-highlighted]:before {
|
|
156
|
+
background-color: var(--menu-highlight-bg, var(--color-accent));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&[data-disabled] {
|
|
160
|
+
pointer-events: none;
|
|
161
|
+
background-color: var(--menu-item-bg-disabled, var(--menu-item-bg, transparent));
|
|
162
|
+
color: var(--menu-item-disabled-color, var(--color-muted-foreground));
|
|
163
|
+
cursor: default;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&[data-tone="destructive"] {
|
|
167
|
+
color: var(--menu-item-destructive-color, var(--color-destructive));
|
|
168
|
+
|
|
169
|
+
&[data-highlighted] {
|
|
170
|
+
color: var(--menu-item-destructive-highlight-color, var(--menu-item-destructive-color, var(--color-destructive)));
|
|
171
|
+
|
|
172
|
+
&:before {
|
|
173
|
+
background-color: var(--menu-item-destructive-highlight-bg, color-mix(in oklab, var(--color-destructive) 12%, transparent));
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.by_0RW_item {
|
|
180
|
+
align-items: center;
|
|
181
|
+
gap: var(--menu-item-gap, var(--spacing-2));
|
|
182
|
+
padding-block: var(--menu-item-padding-y, var(--popup-item-padding-y, .5rem));
|
|
183
|
+
padding-inline: var(--menu-item-padding-x-start, var(--popup-item-padding-x-start, 1rem))
|
|
184
|
+
var(--menu-item-padding-x-end, var(--popup-item-padding-x-end, 1rem));
|
|
185
|
+
display: flex;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.by_0RW_triggerItem {
|
|
189
|
+
justify-content: space-between;
|
|
190
|
+
align-items: center;
|
|
191
|
+
gap: var(--menu-trigger-item-gap, var(--spacing-3));
|
|
192
|
+
padding-block: var(--menu-item-padding-y, var(--popup-item-padding-y, .5rem));
|
|
193
|
+
padding-inline: var(--menu-item-padding-x-start, var(--popup-item-padding-x-start, 1rem))
|
|
194
|
+
var(--menu-trigger-item-padding-x-end, 1rem);
|
|
195
|
+
display: flex;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.by_0RW_triggerItemIcon {
|
|
199
|
+
box-sizing: border-box;
|
|
200
|
+
width: var(--menu-trigger-item-icon-size, .875rem);
|
|
201
|
+
height: var(--menu-trigger-item-icon-size, .875rem);
|
|
202
|
+
color: currentColor;
|
|
203
|
+
flex-shrink: 0;
|
|
204
|
+
display: inline-flex;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.by_0RW_itemGroup {
|
|
208
|
+
padding-block: var(--menu-group-padding-y, 0);
|
|
209
|
+
display: grid;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.by_0RW_itemGroupLabel {
|
|
213
|
+
padding-block: var(--menu-group-label-padding-y, var(--popup-group-label-padding-y, .35rem));
|
|
214
|
+
padding-inline: var(--menu-group-label-padding-x-start, var(--popup-group-label-padding-x-start, .625rem))
|
|
215
|
+
var(--menu-group-label-padding-x-end, var(--popup-group-label-padding-x-end, .75rem));
|
|
216
|
+
color: var(--menu-group-label-color, var(--color-muted-foreground));
|
|
217
|
+
font-size: var(--menu-group-label-font-size, var(--popup-group-label-font-size, var(--text-xs)));
|
|
218
|
+
line-height: var(--menu-group-label-line-height, var(--popup-group-label-line-height, var(--line-height-text-xs)));
|
|
219
|
+
user-select: none;
|
|
220
|
+
cursor: default;
|
|
221
|
+
margin: 0;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.by_0RW_radioItemGroup {
|
|
225
|
+
display: grid;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.by_0RW_radioItem, .by_0RW_checkboxItem {
|
|
229
|
+
align-items: center;
|
|
230
|
+
gap: var(--menu-check-gap, var(--popup-check-gap, .5rem));
|
|
231
|
+
grid-template-columns: var(--menu-check-indicator-size, var(--popup-check-indicator-size, .75rem))
|
|
232
|
+
minmax(0, 1fr);
|
|
233
|
+
padding-block: var(--menu-item-padding-y, var(--popup-item-padding-y, .5rem));
|
|
234
|
+
padding-inline: var(--menu-check-padding-x-start, var(--popup-check-padding-x-start, .625rem))
|
|
235
|
+
var(--menu-item-padding-x-end, var(--popup-item-padding-x-end, 1rem));
|
|
236
|
+
display: grid;
|
|
237
|
+
|
|
238
|
+
&[data-indicator-position="none"] {
|
|
239
|
+
grid-template-columns: minmax(0, 1fr);
|
|
240
|
+
padding-inline-start: var(--menu-item-padding-x-start, var(--popup-item-padding-x-start, 1rem));
|
|
241
|
+
|
|
242
|
+
& > .by_0RW_itemIndicator {
|
|
243
|
+
display: none;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
& > .by_0RW_itemText {
|
|
247
|
+
grid-column-start: 1;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&[data-indicator-position="end"] {
|
|
252
|
+
grid-template-columns: minmax(0, 1fr)
|
|
253
|
+
var(--menu-check-indicator-size, var(--popup-check-indicator-size, .75rem));
|
|
254
|
+
|
|
255
|
+
& > .by_0RW_itemText {
|
|
256
|
+
grid-column-start: 1;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
& > .by_0RW_itemIndicator {
|
|
260
|
+
grid-column-start: 2;
|
|
261
|
+
justify-self: end;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.by_0RW_checkboxItem[data-state="checked"] {
|
|
267
|
+
& > .by_0RW_itemIndicator {
|
|
268
|
+
background-color: var(--menu-checkbox-indicator-bg-checked, var(--menu-checkbox-indicator-bg, transparent));
|
|
269
|
+
border-color: var(--menu-checkbox-indicator-border-color-checked, var(--menu-checkbox-indicator-border-color, currentColor));
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.by_0RW_itemIndicator {
|
|
274
|
+
width: var(--menu-check-indicator-size, var(--popup-check-indicator-size, .75rem));
|
|
275
|
+
height: var(--menu-check-indicator-size, var(--popup-check-indicator-size, .75rem));
|
|
276
|
+
border: var(--menu-checkbox-indicator-border-width, 0) solid
|
|
277
|
+
var(--menu-checkbox-indicator-border-color, currentColor);
|
|
278
|
+
border-radius: var(--menu-checkbox-indicator-radius, var(--radius-xs));
|
|
279
|
+
background-color: var(--menu-checkbox-indicator-bg, transparent);
|
|
280
|
+
grid-column-start: 1;
|
|
281
|
+
justify-content: center;
|
|
282
|
+
align-items: center;
|
|
283
|
+
display: inline-flex;
|
|
284
|
+
|
|
285
|
+
&[data-state="checked"] {
|
|
286
|
+
color: var(--menu-item-indicator-color-checked, currentColor);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.by_0RW_itemIndicatorIcon {
|
|
291
|
+
width: 100%;
|
|
292
|
+
height: 100%;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.by_0RW_itemText {
|
|
296
|
+
grid-column-start: 2;
|
|
297
|
+
min-width: 0;
|
|
298
|
+
overflow: hidden;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.by_0RW_itemTextContent {
|
|
302
|
+
align-items: center;
|
|
303
|
+
gap: var(--menu-item-text-content-gap, var(--spacing-2));
|
|
304
|
+
vertical-align: top;
|
|
305
|
+
min-width: 0;
|
|
306
|
+
max-width: 100%;
|
|
307
|
+
display: inline-flex;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.by_0RW_itemTextIcon {
|
|
311
|
+
width: var(--menu-item-text-icon-size, 1rem);
|
|
312
|
+
height: var(--menu-item-text-icon-size, 1rem);
|
|
313
|
+
color: var(--menu-item-text-icon-color, currentColor);
|
|
314
|
+
flex-shrink: 0;
|
|
315
|
+
justify-content: center;
|
|
316
|
+
align-items: center;
|
|
317
|
+
display: inline-flex;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.by_0RW_itemTextLabel {
|
|
321
|
+
text-overflow: ellipsis;
|
|
322
|
+
white-space: nowrap;
|
|
323
|
+
min-width: 0;
|
|
324
|
+
overflow: hidden;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.by_0RW_itemShortcut {
|
|
328
|
+
color: var(--menu-item-shortcut-color, var(--color-muted-foreground));
|
|
329
|
+
font-size: var(--menu-item-shortcut-font-size, var(--text-xs));
|
|
330
|
+
line-height: var(--menu-item-shortcut-line-height, var(--line-height-text-xs));
|
|
331
|
+
white-space: nowrap;
|
|
332
|
+
margin-inline-start: auto;
|
|
333
|
+
padding-inline-start: var(--menu-item-shortcut-padding-x-start, var(--spacing-4));
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.by_0RW_separator {
|
|
337
|
+
box-sizing: border-box;
|
|
338
|
+
height: var(--menu-separator-height, var(--border-width-sm));
|
|
339
|
+
margin-block: var(--menu-separator-margin-y, var(--popup-separator-margin-y, .375rem));
|
|
340
|
+
margin-inline: var(--menu-separator-margin-x-start, var(--popup-separator-margin-x-start, 1rem))
|
|
341
|
+
var(--menu-separator-margin-x-end, var(--popup-separator-margin-x-end, 1rem));
|
|
342
|
+
background-color: var(--menu-separator-color, var(--color-border));
|
|
343
|
+
border: 0;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@keyframes by_0RW_menuContentIn {
|
|
347
|
+
from {
|
|
348
|
+
opacity: var(--menu-popup-starting-opacity, 0);
|
|
349
|
+
translate: var(--menu-popup-starting-translate-x, 0) var(--menu-popup-starting-translate-y, 0);
|
|
350
|
+
transform: scale(var(--menu-popup-starting-scale, var(--scale-popup)));
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
to {
|
|
354
|
+
opacity: 1;
|
|
355
|
+
transform: scale(1);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
@keyframes by_0RW_menuContentOut {
|
|
360
|
+
from {
|
|
361
|
+
opacity: 1;
|
|
362
|
+
transform: scale(1);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
to {
|
|
366
|
+
opacity: var(--menu-popup-ending-opacity, 0);
|
|
367
|
+
translate: var(--menu-popup-ending-translate-x, 0) var(--menu-popup-ending-translate-y, 0);
|
|
368
|
+
transform: scale(var(--menu-popup-ending-scale, var(--scale-popup)));
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { OverlayPortalProps } from "../../lib/moduix/overlayPortal.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { Menu } from "@ark-ui/react/menu";
|
|
4
|
+
|
|
5
|
+
//#region src/components/menu/Menu.d.ts
|
|
6
|
+
type MenuIndicatorPosition = 'start' | 'end' | 'none';
|
|
7
|
+
type MenuItemTone = 'default' | 'destructive';
|
|
8
|
+
type MenuItemProps = ComponentProps<typeof Menu.Item> & {
|
|
9
|
+
tone?: MenuItemTone;
|
|
10
|
+
};
|
|
11
|
+
type MenuCheckboxItemProps = ComponentProps<typeof Menu.CheckboxItem> & {
|
|
12
|
+
indicator?: MenuIndicatorPosition;
|
|
13
|
+
};
|
|
14
|
+
type MenuRadioItemProps = ComponentProps<typeof Menu.RadioItem> & {
|
|
15
|
+
indicator?: MenuIndicatorPosition;
|
|
16
|
+
};
|
|
17
|
+
type MenuRootProps = ComponentProps<typeof Menu.Root> & OverlayPortalProps;
|
|
18
|
+
type MenuRootProviderProps = ComponentProps<typeof Menu.RootProvider> & OverlayPortalProps;
|
|
19
|
+
declare function MenuRoot({
|
|
20
|
+
portalled,
|
|
21
|
+
portalRef,
|
|
22
|
+
...props
|
|
23
|
+
}: MenuRootProps): import("react").JSX.Element;
|
|
24
|
+
declare function MenuRootProvider({
|
|
25
|
+
portalled,
|
|
26
|
+
portalRef,
|
|
27
|
+
...props
|
|
28
|
+
}: MenuRootProviderProps): import("react").JSX.Element;
|
|
29
|
+
declare function MenuTriggerIcon({
|
|
30
|
+
className,
|
|
31
|
+
children,
|
|
32
|
+
...props
|
|
33
|
+
}: ComponentProps<'span'>): import("react").JSX.Element;
|
|
34
|
+
declare function MenuTriggerItemIcon({
|
|
35
|
+
className,
|
|
36
|
+
children,
|
|
37
|
+
...props
|
|
38
|
+
}: ComponentProps<'span'>): import("react").JSX.Element;
|
|
39
|
+
declare function MenuItemTextContent({
|
|
40
|
+
className,
|
|
41
|
+
...props
|
|
42
|
+
}: ComponentProps<'span'>): import("react").JSX.Element;
|
|
43
|
+
declare function MenuItemTextIcon({
|
|
44
|
+
className,
|
|
45
|
+
...props
|
|
46
|
+
}: ComponentProps<'span'>): import("react").JSX.Element;
|
|
47
|
+
declare function MenuItemTextLabel({
|
|
48
|
+
className,
|
|
49
|
+
...props
|
|
50
|
+
}: ComponentProps<'span'>): import("react").JSX.Element;
|
|
51
|
+
declare function MenuItemShortcut({
|
|
52
|
+
className,
|
|
53
|
+
...props
|
|
54
|
+
}: ComponentProps<'span'>): import("react").JSX.Element;
|
|
55
|
+
declare const Menu$1: typeof MenuRoot & {
|
|
56
|
+
Root: typeof MenuRoot;
|
|
57
|
+
RootProvider: typeof MenuRootProvider;
|
|
58
|
+
Trigger: import("react").ForwardRefExoticComponent<Omit<Menu.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
59
|
+
TriggerIcon: typeof MenuTriggerIcon;
|
|
60
|
+
Indicator: import("react").ForwardRefExoticComponent<Omit<Menu.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
61
|
+
ContextTrigger: import("react").ForwardRefExoticComponent<Omit<Menu.ContextTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
62
|
+
Positioner: import("react").ForwardRefExoticComponent<Omit<Menu.PositionerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
63
|
+
Content: import("react").ForwardRefExoticComponent<Omit<Menu.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
64
|
+
Arrow: import("react").ForwardRefExoticComponent<Omit<Menu.ArrowProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
65
|
+
ArrowTip: import("react").ForwardRefExoticComponent<Omit<Menu.ArrowTipProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
66
|
+
Item: import("react").ForwardRefExoticComponent<Omit<MenuItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
67
|
+
TriggerItem: import("react").ForwardRefExoticComponent<Omit<Menu.TriggerItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
68
|
+
TriggerItemIcon: typeof MenuTriggerItemIcon;
|
|
69
|
+
Separator: import("react").ForwardRefExoticComponent<Omit<Menu.SeparatorProps & import("react").RefAttributes<HTMLHRElement>, "ref"> & import("react").RefAttributes<HTMLHRElement>>;
|
|
70
|
+
ItemGroup: import("react").ForwardRefExoticComponent<Omit<Menu.ItemGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
71
|
+
ItemGroupLabel: import("react").ForwardRefExoticComponent<Omit<Menu.ItemGroupLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
72
|
+
RadioItemGroup: import("react").ForwardRefExoticComponent<Omit<Menu.RadioItemGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
73
|
+
RadioItem: import("react").ForwardRefExoticComponent<Omit<MenuRadioItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
74
|
+
CheckboxItem: import("react").ForwardRefExoticComponent<Omit<MenuCheckboxItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
75
|
+
ItemIndicator: import("react").ForwardRefExoticComponent<Omit<Menu.ItemIndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
76
|
+
ItemText: import("react").ForwardRefExoticComponent<Omit<Menu.ItemTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
77
|
+
ItemTextContent: typeof MenuItemTextContent;
|
|
78
|
+
ItemTextIcon: typeof MenuItemTextIcon;
|
|
79
|
+
ItemTextLabel: typeof MenuItemTextLabel;
|
|
80
|
+
ItemShortcut: typeof MenuItemShortcut;
|
|
81
|
+
};
|
|
82
|
+
//#endregion
|
|
83
|
+
export { Menu$1 as Menu };
|