@moduix/react 1.1.0 → 2.0.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/README.md +16 -16
- package/dist/components/accordion/Accordion.css +21 -14
- package/dist/components/accordion/Accordion.d.ts +3 -2
- package/dist/components/accordion/Accordion.js +17 -5
- package/dist/components/accordion/Accordion.module.js +10 -9
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/alert/Alert.css +24 -10
- package/dist/components/alert/Alert.d.ts +5 -3
- package/dist/components/alert/Alert.js +17 -5
- package/dist/components/alert/Alert.module.js +6 -5
- package/dist/components/angle-slider/AngleSlider.css +8 -8
- package/dist/components/angle-slider/AngleSlider.d.ts +18 -2
- package/dist/components/angle-slider/AngleSlider.js +34 -18
- package/dist/components/angle-slider/AngleSlider.module.js +7 -7
- package/dist/components/angle-slider/index.d.ts +2 -2
- package/dist/components/aspect-ratio/AspectRatio.css +4 -2
- package/dist/components/aspect-ratio/AspectRatio.js +2 -2
- package/dist/components/aspect-ratio/AspectRatio.module.js +1 -1
- package/dist/components/avatar/Avatar.css +3 -3
- package/dist/components/avatar/Avatar.d.ts +6 -3
- package/dist/components/avatar/Avatar.js +12 -5
- package/dist/components/avatar/Avatar.module.js +3 -3
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/Badge.css +46 -3
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +1 -1
- package/dist/components/badge/Badge.module.js +2 -2
- package/dist/components/bleed/Bleed.css +1 -1
- package/dist/components/bleed/Bleed.d.ts +6 -4
- package/dist/components/bleed/Bleed.js +3 -3
- package/dist/components/bleed/Bleed.module.js +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.css +17 -11
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +18 -4
- package/dist/components/breadcrumbs/Breadcrumbs.module.js +8 -7
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/button/Button.css +22 -2
- package/dist/components/button/Button.d.ts +6 -0
- package/dist/components/button/Button.js +12 -7
- package/dist/components/button/Button.module.js +1 -1
- package/dist/components/card/Card.css +29 -13
- package/dist/components/card/Card.d.ts +1 -0
- package/dist/components/card/Card.js +12 -1
- package/dist/components/card/Card.module.js +9 -8
- package/dist/components/carousel/Carousel.css +20 -18
- package/dist/components/carousel/Carousel.d.ts +4 -0
- package/dist/components/carousel/Carousel.js +15 -2
- package/dist/components/carousel/Carousel.module.js +12 -12
- package/dist/components/checkbox/Checkbox.css +11 -11
- package/dist/components/checkbox/Checkbox.d.ts +2 -3
- package/dist/components/checkbox/Checkbox.js +25 -22
- package/dist/components/checkbox/Checkbox.module.js +6 -6
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/clipboard/Clipboard.css +8 -8
- package/dist/components/clipboard/Clipboard.d.ts +2 -0
- package/dist/components/clipboard/Clipboard.js +15 -4
- package/dist/components/clipboard/Clipboard.module.js +8 -8
- package/dist/components/close-button/CloseButton.css +1 -1
- package/dist/components/close-button/CloseButton.d.ts +12 -2
- package/dist/components/close-button/CloseButton.js +9 -9
- package/dist/components/close-button/CloseButton.module.js +1 -1
- package/dist/components/collapsible/Collapsible.css +17 -10
- package/dist/components/collapsible/Collapsible.d.ts +3 -2
- package/dist/components/collapsible/Collapsible.js +18 -6
- package/dist/components/collapsible/Collapsible.module.js +7 -6
- package/dist/components/collapsible/index.d.ts +2 -2
- package/dist/components/color-picker/ColorPicker.css +63 -34
- package/dist/components/color-picker/ColorPicker.d.ts +3 -3
- package/dist/components/color-picker/ColorPicker.js +78 -27
- package/dist/components/color-picker/ColorPicker.module.js +28 -27
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/combobox/Combobox.css +55 -26
- package/dist/components/combobox/Combobox.d.ts +9 -2
- package/dist/components/combobox/Combobox.js +34 -8
- package/dist/components/combobox/Combobox.module.js +17 -17
- package/dist/components/combobox/index.d.ts +2 -2
- package/dist/components/command-palette/CommandPalette.css +80 -114
- package/dist/components/command-palette/CommandPalette.d.ts +13 -3
- package/dist/components/command-palette/CommandPalette.js +54 -43
- package/dist/components/command-palette/CommandPalette.module.js +35 -37
- package/dist/components/container/Container.css +1 -1
- package/dist/components/container/Container.js +1 -1
- package/dist/components/container/Container.module.js +1 -1
- package/dist/components/date-input/DateInput.css +9 -7
- package/dist/components/date-input/DateInput.d.ts +12 -7
- package/dist/components/date-input/DateInput.js +35 -14
- package/dist/components/date-input/DateInput.module.js +6 -6
- package/dist/components/date-input/index.d.ts +2 -2
- package/dist/components/date-picker/DatePicker.css +68 -40
- package/dist/components/date-picker/DatePicker.d.ts +30 -2
- package/dist/components/date-picker/DatePicker.js +94 -9
- package/dist/components/date-picker/DatePicker.module.js +23 -23
- package/dist/components/date-picker/index.d.ts +2 -2
- package/dist/components/dialog/Dialog.css +31 -27
- package/dist/components/dialog/Dialog.d.ts +2 -2
- package/dist/components/dialog/Dialog.js +3 -3
- package/dist/components/dialog/Dialog.module.js +15 -15
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/drawer/Drawer.css +40 -40
- package/dist/components/drawer/Drawer.d.ts +2 -2
- package/dist/components/drawer/Drawer.js +3 -3
- package/dist/components/drawer/Drawer.module.js +26 -26
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/editable/Editable.css +10 -10
- package/dist/components/editable/Editable.d.ts +9 -2
- package/dist/components/editable/Editable.js +14 -5
- package/dist/components/editable/Editable.module.js +7 -7
- package/dist/components/editable/index.d.ts +2 -2
- package/dist/components/empty/Empty.css +6 -6
- package/dist/components/empty/Empty.js +1 -1
- package/dist/components/empty/Empty.module.js +6 -6
- package/dist/components/field/Field.css +8 -12
- package/dist/components/field/Field.d.ts +3 -2
- package/dist/components/field/Field.js +6 -5
- package/dist/components/field/Field.module.js +8 -9
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.css +6 -6
- package/dist/components/fieldset/Fieldset.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.js +3 -3
- package/dist/components/fieldset/Fieldset.module.js +4 -4
- package/dist/components/fieldset/index.d.ts +2 -2
- package/dist/components/file-upload/FileUpload.css +97 -24
- package/dist/components/file-upload/FileUpload.d.ts +22 -5
- package/dist/components/file-upload/FileUpload.js +79 -21
- package/dist/components/file-upload/FileUpload.module.js +16 -13
- package/dist/components/file-upload/index.d.ts +2 -2
- package/dist/components/floating-panel/FloatingPanel.css +28 -24
- package/dist/components/floating-panel/FloatingPanel.d.ts +11 -3
- package/dist/components/floating-panel/FloatingPanel.js +15 -9
- package/dist/components/floating-panel/FloatingPanel.module.js +14 -14
- package/dist/components/heading/Heading.css +1 -1
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/heading/Heading.module.js +1 -1
- package/dist/components/highlight/Highlight.css +1 -1
- package/dist/components/highlight/Highlight.js +1 -1
- package/dist/components/highlight/Highlight.module.js +1 -1
- package/dist/components/hover-card/HoverCard.css +21 -17
- package/dist/components/hover-card/HoverCard.d.ts +3 -2
- package/dist/components/hover-card/HoverCard.js +5 -4
- package/dist/components/hover-card/HoverCard.module.js +7 -7
- package/dist/components/hover-card/index.d.ts +2 -2
- package/dist/components/image/Image.css +7 -0
- package/dist/components/image/Image.d.ts +12 -0
- package/dist/components/image/Image.js +28 -0
- package/dist/components/image/Image.module.js +5 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/image-cropper/ImageCropper.css +6 -6
- package/dist/components/image-cropper/ImageCropper.d.ts +7 -2
- package/dist/components/image-cropper/ImageCropper.js +25 -3
- package/dist/components/image-cropper/ImageCropper.module.js +6 -6
- package/dist/components/image-cropper/index.d.ts +2 -2
- package/dist/components/input/Input.css +1 -1
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input/Input.module.js +1 -1
- package/dist/components/input-group/InputGroup.css +6 -6
- package/dist/components/input-group/InputGroup.d.ts +3 -0
- package/dist/components/input-group/InputGroup.js +1 -1
- package/dist/components/input-group/InputGroup.module.js +5 -5
- package/dist/components/kbd/Kbd.css +2 -2
- package/dist/components/kbd/Kbd.js +1 -1
- package/dist/components/kbd/Kbd.module.js +2 -2
- package/dist/components/lightbox/Lightbox.css +30 -28
- package/dist/components/lightbox/Lightbox.d.ts +4 -2
- package/dist/components/lightbox/Lightbox.js +9 -7
- package/dist/components/lightbox/Lightbox.module.js +16 -16
- package/dist/components/lightbox/index.d.ts +2 -2
- package/dist/components/list/List.css +1 -1
- package/dist/components/list/List.js +1 -1
- package/dist/components/list/List.module.js +1 -1
- package/dist/components/listbox/Listbox.css +76 -17
- package/dist/components/listbox/Listbox.d.ts +14 -2
- package/dist/components/listbox/Listbox.js +41 -5
- package/dist/components/listbox/Listbox.module.js +17 -14
- package/dist/components/listbox/index.d.ts +2 -2
- package/dist/components/marquee/Marquee.css +10 -10
- package/dist/components/marquee/Marquee.d.ts +2 -1
- package/dist/components/marquee/Marquee.js +4 -3
- package/dist/components/marquee/Marquee.module.js +7 -7
- package/dist/components/marquee/index.d.ts +2 -2
- package/dist/components/menu/Menu.css +46 -40
- package/dist/components/menu/Menu.d.ts +3 -2
- package/dist/components/menu/Menu.js +6 -5
- package/dist/components/menu/Menu.module.js +27 -27
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/native-select/NativeSelect.css +5 -5
- package/dist/components/native-select/NativeSelect.d.ts +6 -2
- package/dist/components/native-select/NativeSelect.js +5 -4
- package/dist/components/native-select/NativeSelect.module.js +3 -3
- package/dist/components/number-input/NumberInput.css +11 -17
- package/dist/components/number-input/NumberInput.d.ts +7 -2
- package/dist/components/number-input/NumberInput.js +17 -4
- package/dist/components/number-input/NumberInput.module.js +8 -8
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/pagination/Pagination.css +8 -8
- package/dist/components/pagination/Pagination.d.ts +4 -0
- package/dist/components/pagination/Pagination.js +13 -4
- package/dist/components/pagination/Pagination.module.js +6 -6
- package/dist/components/password-input/PasswordInput.css +7 -7
- package/dist/components/password-input/PasswordInput.d.ts +4 -0
- package/dist/components/password-input/PasswordInput.js +10 -2
- package/dist/components/password-input/PasswordInput.module.js +6 -6
- package/dist/components/pin-input/PinInput.css +5 -5
- package/dist/components/pin-input/PinInput.d.ts +6 -1
- package/dist/components/pin-input/PinInput.js +25 -16
- package/dist/components/pin-input/PinInput.module.js +5 -5
- package/dist/components/popover/Popover.css +33 -24
- package/dist/components/popover/Popover.js +1 -1
- package/dist/components/popover/Popover.module.js +14 -14
- package/dist/components/progress-circular/ProgressCircular.css +8 -8
- package/dist/components/progress-circular/ProgressCircular.d.ts +6 -0
- package/dist/components/progress-circular/ProgressCircular.js +14 -3
- package/dist/components/progress-circular/ProgressCircular.module.js +8 -8
- package/dist/components/progress-linear/ProgressLinear.css +8 -8
- package/dist/components/progress-linear/ProgressLinear.d.ts +3 -0
- package/dist/components/progress-linear/ProgressLinear.js +6 -3
- package/dist/components/progress-linear/ProgressLinear.module.js +8 -8
- package/dist/components/qr-code/QrCode.css +13 -12
- package/dist/components/qr-code/QrCode.d.ts +2 -2
- package/dist/components/qr-code/QrCode.js +3 -3
- package/dist/components/qr-code/QrCode.module.js +5 -5
- package/dist/components/qr-code/index.d.ts +2 -2
- package/dist/components/radio-group/RadioGroup.css +6 -6
- package/dist/components/radio-group/RadioGroup.d.ts +8 -4
- package/dist/components/radio-group/RadioGroup.js +22 -14
- package/dist/components/radio-group/RadioGroup.module.js +6 -6
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/rating-group/RatingGroup.css +14 -14
- package/dist/components/rating-group/RatingGroup.d.ts +11 -4
- package/dist/components/rating-group/RatingGroup.js +29 -18
- package/dist/components/rating-group/RatingGroup.module.js +7 -7
- package/dist/components/rating-group/index.d.ts +2 -2
- package/dist/components/scroll-area/ScrollArea.css +14 -9
- package/dist/components/scroll-area/ScrollArea.d.ts +3 -0
- package/dist/components/scroll-area/ScrollArea.js +9 -6
- package/dist/components/scroll-area/ScrollArea.module.js +6 -6
- package/dist/components/segment-group/SegmentGroup.css +6 -6
- package/dist/components/segment-group/SegmentGroup.d.ts +13 -3
- package/dist/components/segment-group/SegmentGroup.js +23 -15
- package/dist/components/segment-group/SegmentGroup.module.js +6 -6
- package/dist/components/segment-group/index.d.ts +2 -2
- package/dist/components/select/Select.css +49 -40
- package/dist/components/select/Select.d.ts +18 -4
- package/dist/components/select/Select.js +65 -20
- package/dist/components/select/Select.module.js +21 -21
- package/dist/components/separator/Separator.css +1 -1
- package/dist/components/separator/Separator.js +1 -1
- package/dist/components/separator/Separator.module.js +1 -1
- package/dist/components/sidebar/Sidebar.css +169 -32
- package/dist/components/sidebar/Sidebar.d.ts +26 -0
- package/dist/components/sidebar/Sidebar.js +105 -13
- package/dist/components/sidebar/Sidebar.module.js +23 -17
- package/dist/components/signature-pad/SignaturePad.css +18 -47
- package/dist/components/signature-pad/SignaturePad.d.ts +14 -6
- package/dist/components/signature-pad/SignaturePad.js +56 -17
- package/dist/components/signature-pad/SignaturePad.module.js +6 -6
- package/dist/components/signature-pad/index.d.ts +2 -2
- package/dist/components/simple-grid/SimpleGrid.js +3 -3
- package/dist/components/skeleton/Skeleton.css +1 -1
- package/dist/components/skeleton/Skeleton.js +1 -1
- package/dist/components/skeleton/Skeleton.module.js +1 -1
- package/dist/components/slider/Slider.css +16 -14
- package/dist/components/slider/Slider.d.ts +12 -3
- package/dist/components/slider/Slider.js +24 -15
- package/dist/components/slider/Slider.module.js +10 -10
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/spinner/Spinner.css +9 -9
- package/dist/components/spinner/Spinner.js +2 -2
- package/dist/components/spinner/Spinner.module.js +3 -3
- package/dist/components/split-button/SplitButton.css +9 -9
- package/dist/components/split-button/SplitButton.d.ts +1 -1
- package/dist/components/split-button/SplitButton.js +3 -4
- package/dist/components/split-button/SplitButton.module.js +3 -3
- package/dist/components/splitter/Splitter.css +27 -22
- package/dist/components/splitter/Splitter.d.ts +2 -2
- package/dist/components/splitter/Splitter.js +12 -11
- package/dist/components/splitter/Splitter.module.js +4 -4
- package/dist/components/splitter/index.d.ts +2 -2
- package/dist/components/stack/Stack.css +2 -2
- package/dist/components/stack/Stack.d.ts +1 -3
- package/dist/components/stack/Stack.js +4 -6
- package/dist/components/stack/Stack.module.js +1 -1
- package/dist/components/steps/Steps.css +14 -14
- package/dist/components/steps/Steps.d.ts +2 -1
- package/dist/components/steps/Steps.js +5 -4
- package/dist/components/steps/Steps.module.js +11 -11
- package/dist/components/swap/Swap.css +45 -0
- package/dist/components/swap/Swap.d.ts +11 -0
- package/dist/components/swap/Swap.js +39 -0
- package/dist/components/swap/Swap.module.js +11 -0
- package/dist/components/swap/index.d.ts +2 -0
- package/dist/components/switch/Switch.css +11 -11
- package/dist/components/switch/Switch.d.ts +4 -4
- package/dist/components/switch/Switch.js +19 -16
- package/dist/components/switch/Switch.module.js +4 -4
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/Table.css +18 -18
- package/dist/components/table/Table.js +3 -2
- package/dist/components/table/Table.module.js +11 -12
- package/dist/components/tabs/Tabs.css +12 -10
- package/dist/components/tabs/Tabs.d.ts +3 -2
- package/dist/components/tabs/Tabs.js +5 -4
- package/dist/components/tabs/Tabs.module.js +5 -5
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tag/Tag.css +16 -46
- package/dist/components/tag/Tag.js +7 -20
- package/dist/components/tag/Tag.module.js +5 -5
- package/dist/components/tags-input/TagsInput.css +13 -50
- package/dist/components/tags-input/TagsInput.d.ts +7 -4
- package/dist/components/tags-input/TagsInput.js +33 -21
- package/dist/components/tags-input/TagsInput.module.js +10 -10
- package/dist/components/tags-input/index.d.ts +2 -2
- package/dist/components/text/Text.css +1 -1
- package/dist/components/text/Text.d.ts +2 -2
- package/dist/components/text/Text.js +1 -1
- package/dist/components/text/Text.module.js +1 -1
- package/dist/components/textarea/Textarea.css +7 -7
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/components/textarea/Textarea.module.js +1 -1
- package/dist/components/timer/Timer.css +6 -6
- package/dist/components/timer/Timer.d.ts +14 -2
- package/dist/components/timer/Timer.js +13 -5
- package/dist/components/timer/Timer.module.js +6 -6
- package/dist/components/timer/index.d.ts +2 -2
- package/dist/components/toast/Toast.css +8 -8
- package/dist/components/toast/Toast.d.ts +3 -1
- package/dist/components/toast/Toast.js +11 -2
- package/dist/components/toast/Toast.module.js +6 -6
- package/dist/components/toggle/Toggle.css +5 -5
- package/dist/components/toggle/Toggle.d.ts +3 -2
- package/dist/components/toggle/Toggle.js +5 -4
- package/dist/components/toggle/Toggle.module.js +2 -2
- package/dist/components/toggle/index.d.ts +2 -2
- package/dist/components/toggle-group/ToggleGroup.css +3 -3
- package/dist/components/toggle-group/ToggleGroup.d.ts +3 -2
- package/dist/components/toggle-group/ToggleGroup.js +4 -3
- package/dist/components/toggle-group/ToggleGroup.module.js +2 -2
- package/dist/components/toggle-group/index.d.ts +2 -2
- package/dist/components/tooltip/Tooltip.css +21 -17
- package/dist/components/tooltip/Tooltip.d.ts +3 -2
- package/dist/components/tooltip/Tooltip.js +10 -3
- package/dist/components/tooltip/Tooltip.module.js +7 -7
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tour/Tour.css +42 -37
- package/dist/components/tour/Tour.d.ts +6 -0
- package/dist/components/tour/Tour.js +8 -1
- package/dist/components/tour/Tour.module.js +17 -17
- package/dist/components/tree-view/TreeView.css +22 -22
- package/dist/components/tree-view/TreeView.d.ts +2 -2
- package/dist/components/tree-view/TreeView.js +4 -4
- package/dist/components/tree-view/TreeView.module.js +20 -20
- package/dist/components/tree-view/index.d.ts +2 -2
- package/dist/index.d.ts +40 -39
- package/dist/index.js +40 -39
- package/dist/lib/moduix/icons/ui/Icons.d.ts +1 -45
- package/dist/lib/moduix/icons/ui/Icons.js +36 -263
- package/dist/lib/moduix/icons/ui/index.d.ts +2 -2
- package/dist/lib/moduix/overlayPortal.js +1 -1
- package/package.json +4 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.SVzJ0G_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
align-items: flex-start;
|
|
5
5
|
gap: var(--field-gap, var(--spacing-1));
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.
|
|
17
|
+
.SVzJ0G_item {
|
|
18
18
|
gap: var(--field-item-gap, var(--spacing-1));
|
|
19
19
|
display: grid;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.
|
|
22
|
+
.SVzJ0G_label {
|
|
23
23
|
align-items: center;
|
|
24
24
|
gap: var(--field-label-gap, var(--spacing-2));
|
|
25
25
|
color: var(--field-label-color, var(--color-foreground));
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.
|
|
36
|
+
.SVzJ0G_helperText {
|
|
37
37
|
color: var(--field-description-color, var(--color-muted-foreground));
|
|
38
38
|
font-size: var(--field-description-font-size, var(--text-sm));
|
|
39
39
|
line-height: var(--field-description-line-height, var(--line-height-text-sm));
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.
|
|
47
|
+
.SVzJ0G_control {
|
|
48
48
|
box-sizing: border-box;
|
|
49
49
|
width: var(--field-control-width, 100%);
|
|
50
50
|
min-height: var(--field-control-height, var(--size-lg));
|
|
@@ -87,16 +87,12 @@
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.
|
|
90
|
+
.SVzJ0G_textarea {
|
|
91
91
|
min-height: var(--field-textarea-min-height, 5rem);
|
|
92
92
|
resize: vertical;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
.
|
|
96
|
-
appearance: none;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.IJRJYG_errorText {
|
|
95
|
+
.SVzJ0G_errorText {
|
|
100
96
|
color: var(--field-error-color, var(--color-destructive));
|
|
101
97
|
font-size: var(--field-error-font-size, var(--text-sm));
|
|
102
98
|
line-height: var(--field-error-line-height, var(--line-height-text-sm));
|
|
@@ -107,7 +103,7 @@
|
|
|
107
103
|
}
|
|
108
104
|
}
|
|
109
105
|
|
|
110
|
-
.
|
|
106
|
+
.SVzJ0G_requiredIndicator {
|
|
111
107
|
color: var(--field-required-indicator-color, var(--color-destructive));
|
|
112
108
|
}
|
|
113
109
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
import { Field } from "@ark-ui/react/field";
|
|
2
|
+
import { Field, useField, useFieldContext } from "@ark-ui/react/field";
|
|
3
3
|
|
|
4
4
|
//#region src/components/field/Field.d.ts
|
|
5
5
|
type FieldItemProps = ComponentProps<'div'> & ComponentProps<typeof Field.Item>;
|
|
@@ -20,6 +20,7 @@ declare const Field$1: import("react").ForwardRefExoticComponent<Omit<Field.Root
|
|
|
20
20
|
HelperText: import("react").ForwardRefExoticComponent<Omit<Field.HelperTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
21
21
|
ErrorText: import("react").ForwardRefExoticComponent<Omit<Field.ErrorTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
22
22
|
RequiredIndicator: import("react").ForwardRefExoticComponent<Omit<Field.RequiredIndicatorProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
23
|
+
Context: (props: Field.ContextProps) => import("react").ReactNode;
|
|
23
24
|
};
|
|
24
25
|
//#endregion
|
|
25
|
-
export { Field$1 as Field };
|
|
26
|
+
export { Field$1 as Field, useField, useFieldContext };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import Field_module_default from "./Field.module.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { forwardRef } from "react";
|
|
6
|
-
import {
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Field, useField, useFieldContext } from "@ark-ui/react/field";
|
|
7
7
|
//#region src/components/field/Field.tsx
|
|
8
8
|
const FieldRoot = forwardRef(function FieldRoot({ className, ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(Field.Root, {
|
|
@@ -60,7 +60,7 @@ const FieldSelect = forwardRef(function FieldSelect({ className, ...props }, ref
|
|
|
60
60
|
return /* @__PURE__ */ jsx(Field.Select, {
|
|
61
61
|
ref,
|
|
62
62
|
"data-slot": "field-select",
|
|
63
|
-
className: clsx(Field_module_default.control,
|
|
63
|
+
className: clsx(Field_module_default.control, normalizeClassName(className)),
|
|
64
64
|
...props
|
|
65
65
|
});
|
|
66
66
|
});
|
|
@@ -98,7 +98,8 @@ const Field$1 = Object.assign(FieldRoot, {
|
|
|
98
98
|
Select: FieldSelect,
|
|
99
99
|
HelperText: FieldHelperText,
|
|
100
100
|
ErrorText: FieldErrorText,
|
|
101
|
-
RequiredIndicator: FieldRequiredIndicator
|
|
101
|
+
RequiredIndicator: FieldRequiredIndicator,
|
|
102
|
+
Context: Field.Context
|
|
102
103
|
});
|
|
103
104
|
//#endregion
|
|
104
|
-
export { Field$1 as Field };
|
|
105
|
+
export { Field$1 as Field, useField, useFieldContext };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import './Field.css';
|
|
2
2
|
//#region src/components/field/Field.module.css
|
|
3
3
|
var Field_module_default = {
|
|
4
|
-
"control": "
|
|
5
|
-
"errorText": "
|
|
6
|
-
"helperText": "
|
|
7
|
-
"item": "
|
|
8
|
-
"label": "
|
|
9
|
-
"requiredIndicator": "
|
|
10
|
-
"root": "
|
|
11
|
-
"
|
|
12
|
-
"textarea": "IJRJYG_textarea"
|
|
4
|
+
"control": "SVzJ0G_control",
|
|
5
|
+
"errorText": "SVzJ0G_errorText",
|
|
6
|
+
"helperText": "SVzJ0G_helperText",
|
|
7
|
+
"item": "SVzJ0G_item",
|
|
8
|
+
"label": "SVzJ0G_label",
|
|
9
|
+
"requiredIndicator": "SVzJ0G_requiredIndicator",
|
|
10
|
+
"root": "SVzJ0G_root",
|
|
11
|
+
"textarea": "SVzJ0G_textarea"
|
|
13
12
|
};
|
|
14
13
|
//#endregion
|
|
15
14
|
export { Field_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Field } from "./Field.js";
|
|
2
|
-
export { Field };
|
|
1
|
+
import { Field, useField, useFieldContext } from "./Field.js";
|
|
2
|
+
export { Field, useField, useFieldContext };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.zyuCNW_root, .zyuCNW_legend, .zyuCNW_helperText, .zyuCNW_errorText {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.
|
|
6
|
+
.zyuCNW_root {
|
|
7
7
|
gap: var(--fieldset-gap, var(--spacing-4));
|
|
8
8
|
width: var(--fieldset-width, 100%);
|
|
9
9
|
max-width: var(--fieldset-max-width, none);
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.
|
|
29
|
+
.zyuCNW_legend {
|
|
30
30
|
max-inline-size: 100%;
|
|
31
31
|
margin: var(--fieldset-legend-margin, 0);
|
|
32
32
|
padding: var(--fieldset-legend-padding, 0 0 var(--spacing-3));
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
display: inline-block;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.
|
|
40
|
+
.zyuCNW_helperText, .zyuCNW_errorText {
|
|
41
41
|
font-size: var(--fieldset-message-font-size, var(--text-sm));
|
|
42
42
|
line-height: var(--fieldset-message-line-height, var(--line-height-text-sm));
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.
|
|
45
|
+
.zyuCNW_helperText {
|
|
46
46
|
color: var(--fieldset-helper-text-color, var(--color-muted-foreground));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.
|
|
49
|
+
.zyuCNW_errorText {
|
|
50
50
|
color: var(--fieldset-error-text-color, var(--color-destructive));
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fieldset } from "@ark-ui/react/fieldset";
|
|
1
|
+
import { Fieldset, useFieldset } from "@ark-ui/react/fieldset";
|
|
2
2
|
|
|
3
3
|
//#region src/components/fieldset/Fieldset.d.ts
|
|
4
4
|
declare const Fieldset$1: import("react").ForwardRefExoticComponent<Omit<Fieldset.RootProps & import("react").RefAttributes<HTMLFieldSetElement>, "ref"> & import("react").RefAttributes<HTMLFieldSetElement>> & {
|
|
@@ -9,4 +9,4 @@ declare const Fieldset$1: import("react").ForwardRefExoticComponent<Omit<Fieldse
|
|
|
9
9
|
ErrorText: import("react").ForwardRefExoticComponent<Omit<Fieldset.ErrorTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
|
-
export { Fieldset$1 as Fieldset };
|
|
12
|
+
export { Fieldset$1 as Fieldset, useFieldset };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import Fieldset_module_default from "./Fieldset.module.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { forwardRef } from "react";
|
|
6
|
-
import {
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Fieldset, useFieldset } from "@ark-ui/react/fieldset";
|
|
7
7
|
//#region src/components/fieldset/Fieldset.tsx
|
|
8
8
|
const FieldsetRoot = forwardRef(function FieldsetRoot({ className, ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(Fieldset.Root, {
|
|
@@ -53,4 +53,4 @@ const Fieldset$1 = Object.assign(FieldsetRoot, {
|
|
|
53
53
|
ErrorText: FieldsetErrorText
|
|
54
54
|
});
|
|
55
55
|
//#endregion
|
|
56
|
-
export { Fieldset$1 as Fieldset };
|
|
56
|
+
export { Fieldset$1 as Fieldset, useFieldset };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './Fieldset.css';
|
|
2
2
|
//#region src/components/fieldset/Fieldset.module.css
|
|
3
3
|
var Fieldset_module_default = {
|
|
4
|
-
"errorText": "
|
|
5
|
-
"helperText": "
|
|
6
|
-
"legend": "
|
|
7
|
-
"root": "
|
|
4
|
+
"errorText": "zyuCNW_errorText",
|
|
5
|
+
"helperText": "zyuCNW_helperText",
|
|
6
|
+
"legend": "zyuCNW_legend",
|
|
7
|
+
"root": "zyuCNW_root"
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Fieldset_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Fieldset } from "./Fieldset.js";
|
|
2
|
-
export { Fieldset };
|
|
1
|
+
import { Fieldset, useFieldset } from "./Fieldset.js";
|
|
2
|
+
export { Fieldset, useFieldset };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.dgDG7a_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
align-items: flex-start;
|
|
5
5
|
gap: var(--file-upload-gap, var(--spacing-3));
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.
|
|
17
|
+
.dgDG7a_label {
|
|
18
18
|
color: var(--file-upload-label-color, var(--file-upload-color, var(--color-foreground)));
|
|
19
19
|
font-size: var(--file-upload-label-font-size, var(--text-sm));
|
|
20
20
|
font-weight: var(--file-upload-label-font-weight, var(--weight-medium));
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.
|
|
28
|
+
.dgDG7a_dropzone {
|
|
29
29
|
box-sizing: border-box;
|
|
30
30
|
place-items: center;
|
|
31
31
|
gap: var(--file-upload-dropzone-gap, var(--spacing-3));
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.
|
|
62
|
+
.dgDG7a_dropzoneIcon {
|
|
63
63
|
box-sizing: border-box;
|
|
64
64
|
width: var(--file-upload-dropzone-icon-box-size, 2.5rem);
|
|
65
65
|
height: var(--file-upload-dropzone-icon-box-size, 2.5rem);
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
.
|
|
81
|
+
.dgDG7a_trigger {
|
|
82
82
|
box-sizing: border-box;
|
|
83
83
|
justify-content: center;
|
|
84
84
|
align-items: center;
|
|
@@ -131,20 +131,22 @@
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
.
|
|
134
|
+
.dgDG7a_itemGroup {
|
|
135
|
+
align-items: flex-start;
|
|
135
136
|
gap: var(--file-upload-item-group-gap, var(--spacing-2));
|
|
137
|
+
flex-wrap: wrap;
|
|
136
138
|
width: 100%;
|
|
137
139
|
margin: 0;
|
|
138
140
|
padding: 0;
|
|
139
141
|
list-style: none;
|
|
140
|
-
display:
|
|
142
|
+
display: flex;
|
|
141
143
|
|
|
142
144
|
&:empty {
|
|
143
145
|
display: none;
|
|
144
146
|
}
|
|
145
147
|
}
|
|
146
148
|
|
|
147
|
-
.
|
|
149
|
+
.dgDG7a_item {
|
|
148
150
|
box-sizing: border-box;
|
|
149
151
|
align-items: center;
|
|
150
152
|
column-gap: var(--file-upload-item-gap, var(--spacing-3));
|
|
@@ -157,6 +159,7 @@
|
|
|
157
159
|
var(--file-upload-item-padding-x, var(--spacing-3));
|
|
158
160
|
background-color: var(--file-upload-item-bg, var(--color-background));
|
|
159
161
|
color: var(--file-upload-item-color, var(--color-foreground));
|
|
162
|
+
flex: 1 0 100%;
|
|
160
163
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
161
164
|
display: grid;
|
|
162
165
|
|
|
@@ -175,9 +178,9 @@
|
|
|
175
178
|
}
|
|
176
179
|
}
|
|
177
180
|
|
|
178
|
-
.
|
|
179
|
-
width: var(--file-upload-item-preview-size,
|
|
180
|
-
height: var(--file-upload-item-preview-size,
|
|
181
|
+
.dgDG7a_itemPreview {
|
|
182
|
+
width: var(--file-upload-item-preview-size, var(--spacing-10));
|
|
183
|
+
height: var(--file-upload-item-preview-size, var(--spacing-10));
|
|
181
184
|
border-radius: var(--file-upload-item-preview-radius, var(--radius-sm));
|
|
182
185
|
background-color: var(--file-upload-item-preview-bg, var(--color-muted));
|
|
183
186
|
color: var(--file-upload-item-preview-color, var(--color-muted-foreground));
|
|
@@ -188,40 +191,62 @@
|
|
|
188
191
|
overflow: hidden;
|
|
189
192
|
}
|
|
190
193
|
|
|
191
|
-
.
|
|
194
|
+
.dgDG7a_itemPreviewImage {
|
|
192
195
|
object-fit: cover;
|
|
193
196
|
width: 100%;
|
|
194
197
|
height: 100%;
|
|
195
198
|
}
|
|
196
199
|
|
|
197
|
-
.
|
|
200
|
+
.dgDG7a_itemPreviewIcon {
|
|
201
|
+
width: 1rem;
|
|
202
|
+
height: 1rem;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.dgDG7a_itemMetadata {
|
|
206
|
+
align-items: center;
|
|
207
|
+
gap: var(--file-upload-item-row-gap, var(--spacing-1));
|
|
208
|
+
color: var(--file-upload-item-size-color, var(--color-muted-foreground));
|
|
209
|
+
font-size: var(--file-upload-item-size-font-size, var(--text-xs));
|
|
210
|
+
line-height: var(--file-upload-item-size-line-height, var(--line-height-text-xs));
|
|
211
|
+
grid-column: 1;
|
|
212
|
+
display: flex;
|
|
213
|
+
|
|
214
|
+
& > [data-slot="file-upload-item-size-text"]:before {
|
|
215
|
+
margin-right: var(--file-upload-item-row-gap, var(--spacing-1));
|
|
216
|
+
content: "·";
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.dgDG7a_itemName {
|
|
198
221
|
min-width: 0;
|
|
199
222
|
color: var(--file-upload-item-name-color, currentColor);
|
|
200
223
|
font-size: var(--file-upload-item-name-font-size, var(--text-sm));
|
|
201
224
|
font-weight: var(--file-upload-item-name-font-weight, var(--weight-medium));
|
|
202
225
|
line-height: var(--file-upload-item-name-line-height, var(--line-height-text-sm));
|
|
203
|
-
|
|
204
|
-
|
|
226
|
+
-webkit-line-clamp: 1;
|
|
227
|
+
line-clamp: 1;
|
|
228
|
+
-webkit-box-orient: vertical;
|
|
205
229
|
grid-column: 1;
|
|
230
|
+
display: -webkit-box;
|
|
206
231
|
overflow: hidden;
|
|
207
232
|
}
|
|
208
233
|
|
|
209
|
-
.
|
|
234
|
+
.dgDG7a_item:has([data-slot="file-upload-item-preview"]) .dgDG7a_itemName {
|
|
210
235
|
grid-column: 2;
|
|
211
236
|
}
|
|
212
237
|
|
|
213
|
-
.
|
|
238
|
+
.dgDG7a_itemSizeText {
|
|
214
239
|
color: var(--file-upload-item-size-color, var(--color-muted-foreground));
|
|
215
240
|
font-size: var(--file-upload-item-size-font-size, var(--text-xs));
|
|
216
241
|
line-height: var(--file-upload-item-size-line-height, var(--line-height-text-xs));
|
|
217
242
|
grid-column: 1;
|
|
218
243
|
}
|
|
219
244
|
|
|
220
|
-
.
|
|
245
|
+
.dgDG7a_item:has([data-slot="file-upload-item-preview"]) .dgDG7a_itemSizeText, .dgDG7a_item:has([data-slot="file-upload-item-preview"]) .dgDG7a_itemMetadata {
|
|
221
246
|
grid-column: 2;
|
|
222
247
|
}
|
|
223
248
|
|
|
224
|
-
.
|
|
249
|
+
.dgDG7a_itemDeleteTrigger {
|
|
225
250
|
box-sizing: border-box;
|
|
226
251
|
width: var(--file-upload-action-size, 2rem);
|
|
227
252
|
height: var(--file-upload-action-size, 2rem);
|
|
@@ -264,27 +289,75 @@
|
|
|
264
289
|
}
|
|
265
290
|
}
|
|
266
291
|
|
|
267
|
-
.
|
|
292
|
+
.dgDG7a_itemDeleteTrigger {
|
|
268
293
|
grid-area: 1 / 2;
|
|
269
294
|
justify-self: end;
|
|
270
295
|
}
|
|
271
296
|
|
|
272
|
-
.
|
|
297
|
+
.dgDG7a_item:has([data-slot="file-upload-item-size-text"]) .dgDG7a_itemDeleteTrigger, .dgDG7a_item:has([data-slot="file-upload-item-preview"]) .dgDG7a_itemDeleteTrigger {
|
|
273
298
|
grid-row: 1 / span 2;
|
|
274
299
|
}
|
|
275
300
|
|
|
276
|
-
.
|
|
301
|
+
.dgDG7a_item:has([data-slot="file-upload-item-preview"]) .dgDG7a_itemDeleteTrigger {
|
|
277
302
|
grid-column: 3;
|
|
278
303
|
}
|
|
279
304
|
|
|
280
|
-
.
|
|
305
|
+
.dgDG7a_item:has([data-slot="file-upload-item-preview-image"]) {
|
|
306
|
+
flex: 0 min(100%, 10rem);
|
|
307
|
+
grid-template-rows: auto auto auto;
|
|
308
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
309
|
+
align-items: start;
|
|
310
|
+
min-height: 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.dgDG7a_item:has([data-slot="file-upload-item-preview-image"]) .dgDG7a_itemPreview {
|
|
314
|
+
aspect-ratio: 1;
|
|
315
|
+
grid-area: 1 / 1 / auto / -1;
|
|
316
|
+
width: 100%;
|
|
317
|
+
height: auto;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.dgDG7a_item:has([data-slot="file-upload-item-preview-image"]) .dgDG7a_itemName {
|
|
321
|
+
grid-area: 2 / 1;
|
|
322
|
+
align-self: end;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.dgDG7a_item:has([data-slot="file-upload-item-preview-image"]) .dgDG7a_itemMetadata {
|
|
326
|
+
grid-area: 3 / 1;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.dgDG7a_item:has([data-slot="file-upload-item-preview-image"]) .dgDG7a_itemDeleteTrigger {
|
|
330
|
+
grid-area: 2 / 2 / span 2;
|
|
331
|
+
align-self: center;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.dgDG7a_clearTrigger {
|
|
335
|
+
--close-button-size: var(--file-upload-action-size, 2rem);
|
|
336
|
+
--close-button-radius: var(--file-upload-action-radius, var(--radius-sm));
|
|
337
|
+
--close-button-bg: var(--file-upload-action-bg, transparent);
|
|
338
|
+
--close-button-bg-hover: var(--file-upload-action-bg-hover, var(--color-muted));
|
|
339
|
+
--close-button-color: var(--file-upload-clear-trigger-color, var(--color-muted-foreground));
|
|
340
|
+
--close-button-color-hover: var(--file-upload-action-color-hover, var(--color-foreground));
|
|
341
|
+
--close-button-icon-size: var(--file-upload-action-icon-size, 1rem);
|
|
342
|
+
--close-button-transition: var(--file-upload-transition, var(--transition-default));
|
|
343
|
+
--close-button-focus-ring-width: var(--file-upload-focus-ring-width, var(--border-width-md));
|
|
344
|
+
--close-button-focus-ring-color: var(--file-upload-focus-ring-color, var(--color-ring));
|
|
345
|
+
--close-button-focus-ring-offset: var(--file-upload-focus-ring-offset, var(--border-width-sm));
|
|
346
|
+
--close-button-disabled-opacity: var(--file-upload-disabled-opacity, var(--opacity-disabled));
|
|
281
347
|
align-self: flex-start;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.dgDG7a_clearTriggerWithContent {
|
|
282
351
|
gap: var(--file-upload-clear-trigger-gap, var(--spacing-2));
|
|
283
352
|
width: auto;
|
|
284
353
|
padding-inline: var(--file-upload-clear-trigger-padding-x, var(--spacing-2));
|
|
285
|
-
color: var(--file-upload-clear-trigger-color, var(--color-muted-foreground));
|
|
286
354
|
font: inherit;
|
|
287
355
|
font-size: var(--file-upload-clear-trigger-font-size, var(--text-sm));
|
|
288
356
|
line-height: var(--file-upload-clear-trigger-line-height, var(--line-height-text-sm));
|
|
289
357
|
}
|
|
358
|
+
|
|
359
|
+
.dgDG7a_clearTrigger[data-readonly] {
|
|
360
|
+
pointer-events: none;
|
|
361
|
+
opacity: var(--file-upload-disabled-opacity, var(--opacity-disabled));
|
|
362
|
+
}
|
|
290
363
|
}
|
|
@@ -1,28 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { FileIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
|
+
import { HTMLArkProps } from "@ark-ui/react/factory";
|
|
3
|
+
import { ComponentProps, ReactNode } from "react";
|
|
4
|
+
import { FileUpload, useFileUpload, useFileUploadContext } from "@ark-ui/react/file-upload";
|
|
3
5
|
|
|
4
6
|
//#region src/components/file-upload/FileUpload.d.ts
|
|
5
7
|
declare function FileUploadDropzoneIcon({
|
|
6
8
|
className,
|
|
7
9
|
children,
|
|
8
10
|
...props
|
|
9
|
-
}:
|
|
11
|
+
}: HTMLArkProps<'span'>): import("react").JSX.Element;
|
|
12
|
+
declare function FileUploadItemPreviewIcon({
|
|
13
|
+
className,
|
|
14
|
+
...props
|
|
15
|
+
}: ComponentProps<typeof FileIcon>): import("react").JSX.Element;
|
|
16
|
+
declare function FileUploadItemMetadata({
|
|
17
|
+
file,
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}: HTMLArkProps<'div'> & {
|
|
21
|
+
file: File;
|
|
22
|
+
}): import("react").JSX.Element;
|
|
23
|
+
declare function FileUploadItems(): import("react").JSX.Element[];
|
|
10
24
|
declare const FileUpload$1: import("react").ForwardRefExoticComponent<Omit<FileUpload.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
11
25
|
Root: import("react").ForwardRefExoticComponent<Omit<FileUpload.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
26
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<FileUpload.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
|
+
Context: (props: FileUpload.ContextProps) => ReactNode;
|
|
13
28
|
Label: import("react").ForwardRefExoticComponent<Omit<FileUpload.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
14
29
|
Dropzone: import("react").ForwardRefExoticComponent<Omit<FileUpload.DropzoneProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
30
|
DropzoneIcon: typeof FileUploadDropzoneIcon;
|
|
16
31
|
Trigger: import("react").ForwardRefExoticComponent<Omit<FileUpload.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
17
|
-
HiddenInput: import("react").ForwardRefExoticComponent<Omit<FileUpload.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
18
32
|
ItemGroup: import("react").ForwardRefExoticComponent<Omit<FileUpload.ItemGroupProps & import("react").RefAttributes<HTMLUListElement>, "ref"> & import("react").RefAttributes<HTMLUListElement>>;
|
|
19
33
|
Item: import("react").ForwardRefExoticComponent<Omit<FileUpload.ItemProps & import("react").RefAttributes<HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
34
|
+
Items: typeof FileUploadItems;
|
|
20
35
|
ItemPreview: import("react").ForwardRefExoticComponent<Omit<FileUpload.ItemPreviewProps & import("react").RefAttributes<HTMLImageElement>, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
|
|
21
36
|
ItemPreviewImage: import("react").ForwardRefExoticComponent<Omit<FileUpload.ItemPreviewImageProps & import("react").RefAttributes<HTMLImageElement>, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
|
|
37
|
+
ItemPreviewIcon: typeof FileUploadItemPreviewIcon;
|
|
22
38
|
ItemName: import("react").ForwardRefExoticComponent<Omit<FileUpload.ItemNameProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
39
|
+
ItemMetadata: typeof FileUploadItemMetadata;
|
|
23
40
|
ItemSizeText: import("react").ForwardRefExoticComponent<Omit<FileUpload.ItemSizeTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
41
|
ItemDeleteTrigger: import("react").ForwardRefExoticComponent<Omit<FileUpload.ItemDeleteTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
25
42
|
ClearTrigger: import("react").ForwardRefExoticComponent<Omit<FileUpload.ClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
26
43
|
};
|
|
27
44
|
//#endregion
|
|
28
|
-
export { FileUpload$1 as FileUpload };
|
|
45
|
+
export { FileUpload$1 as FileUpload, useFileUpload, useFileUploadContext };
|