@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,77 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import Empty_module_default from "./Empty.module.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { ark } from "@ark-ui/react/factory";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
//#region src/components/empty/Empty.tsx
|
|
8
|
+
const EmptyRoot = forwardRef(function EmptyRoot({ className, ...props }, ref) {
|
|
9
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
10
|
+
ref,
|
|
11
|
+
"data-scope": "empty",
|
|
12
|
+
"data-part": "root",
|
|
13
|
+
"data-slot": "empty-root",
|
|
14
|
+
className: clsx(Empty_module_default.root, normalizeClassName(className)),
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
const EmptyIcon = forwardRef(function EmptyIcon({ className, ...props }, ref) {
|
|
19
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
20
|
+
ref,
|
|
21
|
+
"data-scope": "empty",
|
|
22
|
+
"data-part": "icon",
|
|
23
|
+
"data-slot": "empty-icon",
|
|
24
|
+
className: clsx(Empty_module_default.icon, normalizeClassName(className)),
|
|
25
|
+
...props
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
const EmptyContent = forwardRef(function EmptyContent({ className, ...props }, ref) {
|
|
29
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
30
|
+
ref,
|
|
31
|
+
"data-scope": "empty",
|
|
32
|
+
"data-part": "content",
|
|
33
|
+
"data-slot": "empty-content",
|
|
34
|
+
className: clsx(Empty_module_default.content, normalizeClassName(className)),
|
|
35
|
+
...props
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
const EmptyTitle = forwardRef(function EmptyTitle({ className, ...props }, ref) {
|
|
39
|
+
return /* @__PURE__ */ jsx(ark.h3, {
|
|
40
|
+
ref,
|
|
41
|
+
"data-scope": "empty",
|
|
42
|
+
"data-part": "title",
|
|
43
|
+
"data-slot": "empty-title",
|
|
44
|
+
className: clsx(Empty_module_default.title, normalizeClassName(className)),
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
const EmptyDescription = forwardRef(function EmptyDescription({ className, ...props }, ref) {
|
|
49
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
50
|
+
ref,
|
|
51
|
+
"data-scope": "empty",
|
|
52
|
+
"data-part": "description",
|
|
53
|
+
"data-slot": "empty-description",
|
|
54
|
+
className: clsx(Empty_module_default.description, normalizeClassName(className)),
|
|
55
|
+
...props
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
const EmptyActions = forwardRef(function EmptyActions({ className, ...props }, ref) {
|
|
59
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
60
|
+
ref,
|
|
61
|
+
"data-scope": "empty",
|
|
62
|
+
"data-part": "actions",
|
|
63
|
+
"data-slot": "empty-actions",
|
|
64
|
+
className: clsx(Empty_module_default.actions, normalizeClassName(className)),
|
|
65
|
+
...props
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
const Empty = Object.assign(EmptyRoot, {
|
|
69
|
+
Root: EmptyRoot,
|
|
70
|
+
Icon: EmptyIcon,
|
|
71
|
+
Content: EmptyContent,
|
|
72
|
+
Title: EmptyTitle,
|
|
73
|
+
Description: EmptyDescription,
|
|
74
|
+
Actions: EmptyActions
|
|
75
|
+
});
|
|
76
|
+
//#endregion
|
|
77
|
+
export { Empty };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './Empty.css';
|
|
2
|
+
//#region src/components/empty/Empty.module.css
|
|
3
|
+
var Empty_module_default = {
|
|
4
|
+
"actions": "uHDs1G_actions",
|
|
5
|
+
"content": "uHDs1G_content",
|
|
6
|
+
"description": "uHDs1G_description",
|
|
7
|
+
"icon": "uHDs1G_icon",
|
|
8
|
+
"root": "uHDs1G_root",
|
|
9
|
+
"title": "uHDs1G_title"
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Empty_module_default as default };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.IJRJYG_root {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
gap: var(--field-gap, var(--spacing-1));
|
|
6
|
+
width: var(--field-width, 100%);
|
|
7
|
+
max-width: var(--field-max-width, none);
|
|
8
|
+
color: var(--field-color, var(--color-foreground));
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
display: flex;
|
|
11
|
+
|
|
12
|
+
&[data-disabled] {
|
|
13
|
+
opacity: var(--field-disabled-opacity, var(--opacity-disabled));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.IJRJYG_item {
|
|
18
|
+
gap: var(--field-item-gap, var(--spacing-1));
|
|
19
|
+
display: grid;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.IJRJYG_label {
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: var(--field-label-gap, var(--spacing-2));
|
|
25
|
+
color: var(--field-label-color, var(--color-foreground));
|
|
26
|
+
font-size: var(--field-label-font-size, var(--text-sm));
|
|
27
|
+
font-weight: var(--field-label-font-weight, var(--weight-medium));
|
|
28
|
+
line-height: var(--field-label-line-height, var(--line-height-text-sm));
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
|
|
31
|
+
&[data-disabled] {
|
|
32
|
+
opacity: var(--field-disabled-opacity, var(--opacity-disabled));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.IJRJYG_helperText {
|
|
37
|
+
color: var(--field-description-color, var(--color-muted-foreground));
|
|
38
|
+
font-size: var(--field-description-font-size, var(--text-sm));
|
|
39
|
+
line-height: var(--field-description-line-height, var(--line-height-text-sm));
|
|
40
|
+
margin: 0;
|
|
41
|
+
|
|
42
|
+
&[data-disabled] {
|
|
43
|
+
opacity: var(--field-disabled-opacity, var(--opacity-disabled));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.IJRJYG_control {
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
width: var(--field-control-width, 100%);
|
|
50
|
+
min-height: var(--field-control-height, var(--size-lg));
|
|
51
|
+
border: var(--field-control-border-width, var(--border-width-sm))
|
|
52
|
+
var(--field-control-border-style, solid)
|
|
53
|
+
var(--field-control-border-color, var(--color-border));
|
|
54
|
+
border-radius: var(--field-control-radius, var(--radius-md));
|
|
55
|
+
padding: var(--field-control-padding-y, .5rem) var(--field-control-padding-x, .875rem);
|
|
56
|
+
background-color: var(--field-control-bg, var(--color-background));
|
|
57
|
+
color: var(--field-control-color, var(--color-foreground));
|
|
58
|
+
font: inherit;
|
|
59
|
+
font-size: var(--field-control-font-size, var(--text-md));
|
|
60
|
+
line-height: var(--field-control-line-height, var(--line-height-text-md));
|
|
61
|
+
outline: var(--field-focus-ring-width, var(--border-width-sm)) solid transparent;
|
|
62
|
+
outline-offset: var(--field-focus-ring-offset, -1px);
|
|
63
|
+
transition: border-color var(--field-control-transition, var(--transition-default)),
|
|
64
|
+
outline-color var(--field-control-transition, var(--transition-default)),
|
|
65
|
+
opacity var(--field-control-transition, var(--transition-default));
|
|
66
|
+
margin: 0;
|
|
67
|
+
|
|
68
|
+
&::placeholder {
|
|
69
|
+
color: var(--field-control-placeholder-color, var(--color-muted-foreground));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:focus-visible {
|
|
73
|
+
outline-color: var(--field-focus-ring-color, var(--color-ring));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&[data-invalid] {
|
|
77
|
+
border-color: var(--field-control-border-color-invalid, var(--color-destructive));
|
|
78
|
+
|
|
79
|
+
&:focus-visible {
|
|
80
|
+
outline-color: var(--field-control-border-color-invalid, var(--color-destructive));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&[data-disabled], &:disabled {
|
|
85
|
+
pointer-events: none;
|
|
86
|
+
opacity: var(--field-disabled-opacity, var(--opacity-disabled));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.IJRJYG_textarea {
|
|
91
|
+
min-height: var(--field-textarea-min-height, 5rem);
|
|
92
|
+
resize: vertical;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.IJRJYG_select {
|
|
96
|
+
appearance: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.IJRJYG_errorText {
|
|
100
|
+
color: var(--field-error-color, var(--color-destructive));
|
|
101
|
+
font-size: var(--field-error-font-size, var(--text-sm));
|
|
102
|
+
line-height: var(--field-error-line-height, var(--line-height-text-sm));
|
|
103
|
+
margin: 0;
|
|
104
|
+
|
|
105
|
+
&[data-disabled] {
|
|
106
|
+
opacity: var(--field-disabled-opacity, var(--opacity-disabled));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.IJRJYG_requiredIndicator {
|
|
111
|
+
color: var(--field-required-indicator-color, var(--color-destructive));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { Field } from "@ark-ui/react/field";
|
|
3
|
+
|
|
4
|
+
//#region src/components/field/Field.d.ts
|
|
5
|
+
type FieldItemProps = ComponentProps<'div'> & ComponentProps<typeof Field.Item>;
|
|
6
|
+
declare function FieldItem({
|
|
7
|
+
className,
|
|
8
|
+
children,
|
|
9
|
+
value,
|
|
10
|
+
...props
|
|
11
|
+
}: FieldItemProps): import("react").JSX.Element;
|
|
12
|
+
declare const Field$1: import("react").ForwardRefExoticComponent<Omit<Field.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
13
|
+
Root: import("react").ForwardRefExoticComponent<Omit<Field.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<Field.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Item: typeof FieldItem;
|
|
16
|
+
Label: import("react").ForwardRefExoticComponent<Omit<Field.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
17
|
+
Input: import("react").ForwardRefExoticComponent<Omit<Field.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
18
|
+
Textarea: import("react").ForwardRefExoticComponent<Omit<Field.TextareaProps & import("react").RefAttributes<HTMLTextAreaElement>, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
19
|
+
Select: import("react").ForwardRefExoticComponent<Omit<Field.SelectProps & import("react").RefAttributes<HTMLSelectElement>, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
20
|
+
HelperText: import("react").ForwardRefExoticComponent<Omit<Field.HelperTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
ErrorText: import("react").ForwardRefExoticComponent<Omit<Field.ErrorTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
22
|
+
RequiredIndicator: import("react").ForwardRefExoticComponent<Omit<Field.RequiredIndicatorProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { Field$1 as Field };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import Field_module_default from "./Field.module.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
|
+
import { Field } from "@ark-ui/react/field";
|
|
7
|
+
//#region src/components/field/Field.tsx
|
|
8
|
+
const FieldRoot = forwardRef(function FieldRoot({ className, ...props }, ref) {
|
|
9
|
+
return /* @__PURE__ */ jsx(Field.Root, {
|
|
10
|
+
ref,
|
|
11
|
+
"data-slot": "field-root",
|
|
12
|
+
className: clsx(Field_module_default.root, normalizeClassName(className)),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
const FieldRootProvider = forwardRef(function FieldRootProvider({ className, ...props }, ref) {
|
|
17
|
+
return /* @__PURE__ */ jsx(Field.RootProvider, {
|
|
18
|
+
ref,
|
|
19
|
+
"data-slot": "field-root-provider",
|
|
20
|
+
className: clsx(Field_module_default.root, normalizeClassName(className)),
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
function FieldItem({ className, children, value, ...props }) {
|
|
25
|
+
return /* @__PURE__ */ jsx(Field.Item, {
|
|
26
|
+
value,
|
|
27
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
28
|
+
"data-slot": "field-item",
|
|
29
|
+
className: clsx(Field_module_default.item, normalizeClassName(className)),
|
|
30
|
+
...props,
|
|
31
|
+
children
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
const FieldLabel = forwardRef(function FieldLabel({ className, ...props }, ref) {
|
|
36
|
+
return /* @__PURE__ */ jsx(Field.Label, {
|
|
37
|
+
ref,
|
|
38
|
+
"data-slot": "field-label",
|
|
39
|
+
className: clsx(Field_module_default.label, normalizeClassName(className)),
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
const FieldInput = forwardRef(function FieldInput({ className, ...props }, ref) {
|
|
44
|
+
return /* @__PURE__ */ jsx(Field.Input, {
|
|
45
|
+
ref,
|
|
46
|
+
"data-slot": "field-input",
|
|
47
|
+
className: clsx(Field_module_default.control, normalizeClassName(className)),
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
const FieldTextarea = forwardRef(function FieldTextarea({ className, ...props }, ref) {
|
|
52
|
+
return /* @__PURE__ */ jsx(Field.Textarea, {
|
|
53
|
+
ref,
|
|
54
|
+
"data-slot": "field-textarea",
|
|
55
|
+
className: clsx(Field_module_default.control, Field_module_default.textarea, normalizeClassName(className)),
|
|
56
|
+
...props
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
const FieldSelect = forwardRef(function FieldSelect({ className, ...props }, ref) {
|
|
60
|
+
return /* @__PURE__ */ jsx(Field.Select, {
|
|
61
|
+
ref,
|
|
62
|
+
"data-slot": "field-select",
|
|
63
|
+
className: clsx(Field_module_default.control, Field_module_default.select, normalizeClassName(className)),
|
|
64
|
+
...props
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
const FieldHelperText = forwardRef(function FieldHelperText({ className, ...props }, ref) {
|
|
68
|
+
return /* @__PURE__ */ jsx(Field.HelperText, {
|
|
69
|
+
ref,
|
|
70
|
+
"data-slot": "field-helper-text",
|
|
71
|
+
className: clsx(Field_module_default.helperText, normalizeClassName(className)),
|
|
72
|
+
...props
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
const FieldErrorText = forwardRef(function FieldErrorText({ className, ...props }, ref) {
|
|
76
|
+
return /* @__PURE__ */ jsx(Field.ErrorText, {
|
|
77
|
+
ref,
|
|
78
|
+
"data-slot": "field-error-text",
|
|
79
|
+
className: clsx(Field_module_default.errorText, normalizeClassName(className)),
|
|
80
|
+
...props
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
const FieldRequiredIndicator = forwardRef(function FieldRequiredIndicator({ className, ...props }, ref) {
|
|
84
|
+
return /* @__PURE__ */ jsx(Field.RequiredIndicator, {
|
|
85
|
+
ref,
|
|
86
|
+
"data-slot": "field-required-indicator",
|
|
87
|
+
className: clsx(Field_module_default.requiredIndicator, normalizeClassName(className)),
|
|
88
|
+
...props
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
const Field$1 = Object.assign(FieldRoot, {
|
|
92
|
+
Root: FieldRoot,
|
|
93
|
+
RootProvider: FieldRootProvider,
|
|
94
|
+
Item: FieldItem,
|
|
95
|
+
Label: FieldLabel,
|
|
96
|
+
Input: FieldInput,
|
|
97
|
+
Textarea: FieldTextarea,
|
|
98
|
+
Select: FieldSelect,
|
|
99
|
+
HelperText: FieldHelperText,
|
|
100
|
+
ErrorText: FieldErrorText,
|
|
101
|
+
RequiredIndicator: FieldRequiredIndicator
|
|
102
|
+
});
|
|
103
|
+
//#endregion
|
|
104
|
+
export { Field$1 as Field };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './Field.css';
|
|
2
|
+
//#region src/components/field/Field.module.css
|
|
3
|
+
var Field_module_default = {
|
|
4
|
+
"control": "IJRJYG_control",
|
|
5
|
+
"errorText": "IJRJYG_errorText",
|
|
6
|
+
"helperText": "IJRJYG_helperText",
|
|
7
|
+
"item": "IJRJYG_item",
|
|
8
|
+
"label": "IJRJYG_label",
|
|
9
|
+
"requiredIndicator": "IJRJYG_requiredIndicator",
|
|
10
|
+
"root": "IJRJYG_root",
|
|
11
|
+
"select": "IJRJYG_select",
|
|
12
|
+
"textarea": "IJRJYG_textarea"
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Field_module_default as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.JruAma_root, .JruAma_legend, .JruAma_helperText, .JruAma_errorText {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.JruAma_root {
|
|
7
|
+
gap: var(--fieldset-gap, var(--spacing-4));
|
|
8
|
+
width: var(--fieldset-width, 100%);
|
|
9
|
+
max-width: var(--fieldset-max-width, none);
|
|
10
|
+
margin: var(--fieldset-margin, 0);
|
|
11
|
+
padding: var(--fieldset-padding, 0);
|
|
12
|
+
border-width: var(--fieldset-border-width, 0);
|
|
13
|
+
border-style: var(--fieldset-border-style, solid);
|
|
14
|
+
border-color: var(--fieldset-border-color, transparent);
|
|
15
|
+
border-radius: var(--fieldset-radius, var(--radius-none));
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
min-inline-size: 0;
|
|
18
|
+
display: flex;
|
|
19
|
+
|
|
20
|
+
&[data-disabled] {
|
|
21
|
+
opacity: var(--fieldset-disabled-opacity, var(--opacity-disabled));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&[data-invalid] {
|
|
25
|
+
border-color: var(--fieldset-border-color-invalid, var(--color-destructive));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.JruAma_legend {
|
|
30
|
+
max-inline-size: 100%;
|
|
31
|
+
margin: var(--fieldset-legend-margin, 0);
|
|
32
|
+
padding: var(--fieldset-legend-padding, 0 0 var(--spacing-3));
|
|
33
|
+
color: var(--fieldset-legend-color, var(--color-foreground));
|
|
34
|
+
font-size: var(--fieldset-legend-font-size, var(--text-lg));
|
|
35
|
+
font-weight: var(--fieldset-legend-font-weight, var(--weight-semibold));
|
|
36
|
+
line-height: var(--fieldset-legend-line-height, var(--line-height-text-lg));
|
|
37
|
+
display: inline-block;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.JruAma_helperText, .JruAma_errorText {
|
|
41
|
+
font-size: var(--fieldset-message-font-size, var(--text-sm));
|
|
42
|
+
line-height: var(--fieldset-message-line-height, var(--line-height-text-sm));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.JruAma_helperText {
|
|
46
|
+
color: var(--fieldset-helper-text-color, var(--color-muted-foreground));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.JruAma_errorText {
|
|
50
|
+
color: var(--fieldset-error-text-color, var(--color-destructive));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Fieldset } from "@ark-ui/react/fieldset";
|
|
2
|
+
|
|
3
|
+
//#region src/components/fieldset/Fieldset.d.ts
|
|
4
|
+
declare const Fieldset$1: import("react").ForwardRefExoticComponent<Omit<Fieldset.RootProps & import("react").RefAttributes<HTMLFieldSetElement>, "ref"> & import("react").RefAttributes<HTMLFieldSetElement>> & {
|
|
5
|
+
Root: import("react").ForwardRefExoticComponent<Omit<Fieldset.RootProps & import("react").RefAttributes<HTMLFieldSetElement>, "ref"> & import("react").RefAttributes<HTMLFieldSetElement>>;
|
|
6
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<Fieldset.RootProviderProps & import("react").RefAttributes<HTMLFieldSetElement>, "ref"> & import("react").RefAttributes<HTMLFieldSetElement>>;
|
|
7
|
+
Legend: import("react").ForwardRefExoticComponent<Omit<Fieldset.LegendProps & import("react").RefAttributes<HTMLLegendElement>, "ref"> & import("react").RefAttributes<HTMLLegendElement>>;
|
|
8
|
+
HelperText: import("react").ForwardRefExoticComponent<Omit<Fieldset.HelperTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
9
|
+
ErrorText: import("react").ForwardRefExoticComponent<Omit<Fieldset.ErrorTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Fieldset$1 as Fieldset };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import Fieldset_module_default from "./Fieldset.module.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
|
+
import { Fieldset } from "@ark-ui/react/fieldset";
|
|
7
|
+
//#region src/components/fieldset/Fieldset.tsx
|
|
8
|
+
const FieldsetRoot = forwardRef(function FieldsetRoot({ className, ...props }, ref) {
|
|
9
|
+
return /* @__PURE__ */ jsx(Fieldset.Root, {
|
|
10
|
+
ref,
|
|
11
|
+
"data-slot": "fieldset-root",
|
|
12
|
+
className: clsx(Fieldset_module_default.root, normalizeClassName(className)),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
const FieldsetRootProvider = forwardRef(function FieldsetRootProvider({ className, ...props }, ref) {
|
|
17
|
+
return /* @__PURE__ */ jsx(Fieldset.RootProvider, {
|
|
18
|
+
ref,
|
|
19
|
+
"data-slot": "fieldset-root-provider",
|
|
20
|
+
className: clsx(Fieldset_module_default.root, normalizeClassName(className)),
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
const FieldsetLegend = forwardRef(function FieldsetLegend({ className, ...props }, ref) {
|
|
25
|
+
return /* @__PURE__ */ jsx(Fieldset.Legend, {
|
|
26
|
+
ref,
|
|
27
|
+
"data-slot": "fieldset-legend",
|
|
28
|
+
className: clsx(Fieldset_module_default.legend, normalizeClassName(className)),
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
const FieldsetHelperText = forwardRef(function FieldsetHelperText({ className, ...props }, ref) {
|
|
33
|
+
return /* @__PURE__ */ jsx(Fieldset.HelperText, {
|
|
34
|
+
ref,
|
|
35
|
+
"data-slot": "fieldset-helper-text",
|
|
36
|
+
className: clsx(Fieldset_module_default.helperText, normalizeClassName(className)),
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
const FieldsetErrorText = forwardRef(function FieldsetErrorText({ className, ...props }, ref) {
|
|
41
|
+
return /* @__PURE__ */ jsx(Fieldset.ErrorText, {
|
|
42
|
+
ref,
|
|
43
|
+
"data-slot": "fieldset-error-text",
|
|
44
|
+
className: clsx(Fieldset_module_default.errorText, normalizeClassName(className)),
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
const Fieldset$1 = Object.assign(FieldsetRoot, {
|
|
49
|
+
Root: FieldsetRoot,
|
|
50
|
+
RootProvider: FieldsetRootProvider,
|
|
51
|
+
Legend: FieldsetLegend,
|
|
52
|
+
HelperText: FieldsetHelperText,
|
|
53
|
+
ErrorText: FieldsetErrorText
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { Fieldset$1 as Fieldset };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import './Fieldset.css';
|
|
2
|
+
//#region src/components/fieldset/Fieldset.module.css
|
|
3
|
+
var Fieldset_module_default = {
|
|
4
|
+
"errorText": "JruAma_errorText",
|
|
5
|
+
"helperText": "JruAma_helperText",
|
|
6
|
+
"legend": "JruAma_legend",
|
|
7
|
+
"root": "JruAma_root"
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Fieldset_module_default as default };
|