@moduix/react 2.5.0 → 2.6.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 +65 -86
- package/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/components/accordion/Accordion.js +7 -8
- package/dist/components/alert/Alert.js +6 -7
- package/dist/components/alert/Alert_module.css +3 -16
- package/dist/components/angle-slider/AngleSlider.d.ts +5 -11
- package/dist/components/angle-slider/AngleSlider.js +17 -59
- package/dist/components/aspect-ratio/AspectRatio.js +1 -2
- package/dist/components/aspect-ratio/AspectRatio_module.css +0 -13
- package/dist/components/avatar/Avatar.d.ts +3 -6
- package/dist/components/avatar/Avatar.js +7 -50
- package/dist/components/avatar/Avatar.module.js +1 -2
- package/dist/components/avatar/Avatar_module.css +0 -6
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +5 -10
- package/dist/components/badge/Badge_module.css +7 -14
- package/dist/components/bleed/Bleed.js +1 -2
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.js +16 -32
- package/dist/components/breadcrumbs/Breadcrumbs_module.css +12 -14
- package/dist/components/button/Button.d.ts +4 -4
- package/dist/components/button/Button.js +1 -2
- package/dist/components/button/Button_module.css +2 -7
- package/dist/components/card/Card.d.ts +15 -15
- package/dist/components/card/Card.js +10 -11
- package/dist/components/card/Card_module.css +1 -17
- package/dist/components/carousel/Carousel.js +12 -13
- package/dist/components/carousel/Carousel_module.css +10 -3
- package/dist/components/chart/Chart.d.ts +9 -8
- package/dist/components/chart/Chart.js +7 -8
- package/dist/components/chart/Chart_module.css +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +3 -2
- package/dist/components/checkbox/Checkbox.js +12 -35
- package/dist/components/clipboard/Clipboard.js +8 -9
- package/dist/components/close-button/CloseButton.js +1 -2
- package/dist/components/close-button/CloseButton_module.css +1 -10
- package/dist/components/collapsible/Collapsible.js +6 -9
- package/dist/components/collapsible/Collapsible_module.css +2 -4
- package/dist/components/color-picker/ColorPicker.d.ts +4 -3
- package/dist/components/color-picker/ColorPicker.js +32 -45
- package/dist/components/color-picker/ColorPicker_module.css +0 -1
- package/dist/components/combobox/Combobox.d.ts +5 -5
- package/dist/components/combobox/Combobox.js +20 -29
- package/dist/components/combobox/Combobox_module.css +0 -1
- package/dist/components/command-palette/CommandPalette.d.ts +7 -18
- package/dist/components/command-palette/CommandPalette.js +51 -78
- package/dist/components/command-palette/CommandPalette_module.css +11 -18
- package/dist/components/container/Container.js +1 -2
- package/dist/components/date-input/DateInput.d.ts +7 -9
- package/dist/components/date-input/DateInput.js +14 -44
- package/dist/components/date-input/DateInput_module.css +0 -1
- package/dist/components/date-picker/DatePicker.d.ts +1 -1
- package/dist/components/date-picker/DatePicker.js +34 -43
- package/dist/components/date-picker/DatePicker.module.js +1 -1
- package/dist/components/date-picker/DatePicker_module.css +14 -4
- package/dist/components/dialog/Dialog.d.ts +1 -1
- package/dist/components/dialog/Dialog.js +11 -12
- package/dist/components/drawer/Drawer.d.ts +6 -3
- package/dist/components/drawer/Drawer.js +33 -24
- package/dist/components/editable/Editable.d.ts +1 -1
- package/dist/components/editable/Editable.js +10 -11
- package/dist/components/empty/Empty.js +6 -7
- package/dist/components/field/Field.js +10 -11
- package/dist/components/fieldset/Fieldset.js +5 -6
- package/dist/components/file-upload/FileUpload.d.ts +3 -2
- package/dist/components/file-upload/FileUpload.js +28 -55
- package/dist/components/file-upload/FileUpload_module.css +4 -13
- package/dist/components/floating-panel/FloatingPanel.d.ts +2 -2
- package/dist/components/floating-panel/FloatingPanel.js +14 -15
- package/dist/components/floating-panel/FloatingPanel_module.css +4 -17
- package/dist/components/heading/Heading.js +1 -2
- package/dist/components/highlight/Highlight.js +1 -2
- package/dist/components/hover-card/HoverCard.d.ts +2 -1
- package/dist/components/hover-card/HoverCard.js +15 -6
- package/dist/components/hover-card/HoverCard.module.js +1 -0
- package/dist/components/hover-card/HoverCard_module.css +18 -3
- package/dist/components/image/Image.js +1 -2
- package/dist/components/image-cropper/ImageCropper.d.ts +1 -1
- package/dist/components/image-cropper/ImageCropper.js +7 -8
- package/dist/components/input/Input.d.ts +4 -4
- package/dist/components/input/Input.js +1 -2
- package/dist/components/input-group/InputGroup.d.ts +5 -5
- package/dist/components/input-group/InputGroup.js +5 -6
- package/dist/components/json-tree-view/JsonTreeView.js +3 -4
- package/dist/components/json-tree-view/JsonTreeView_module.css +26 -10
- package/dist/components/kbd/Kbd.js +2 -3
- package/dist/components/lightbox/Lightbox.d.ts +1 -1
- package/dist/components/lightbox/Lightbox.js +13 -14
- package/dist/components/lightbox/Lightbox_module.css +0 -3
- package/dist/components/list/List.js +2 -3
- package/dist/components/listbox/Listbox.d.ts +5 -5
- package/dist/components/listbox/Listbox.js +19 -25
- package/dist/components/listbox/Listbox.module.js +2 -2
- package/dist/components/listbox/Listbox_module.css +3 -13
- package/dist/components/marquee/Marquee.js +6 -7
- package/dist/components/menu/Menu.d.ts +2 -1
- package/dist/components/menu/Menu.js +34 -41
- package/dist/components/menu/Menu.module.js +1 -1
- package/dist/components/menu/Menu_module.css +8 -8
- package/dist/components/native-select/NativeSelect.js +2 -3
- package/dist/components/native-select/NativeSelect_module.css +0 -1
- package/dist/components/navigation-menu/NavigationMenu.js +17 -36
- package/dist/components/navigation-menu/NavigationMenu.module.js +2 -3
- package/dist/components/navigation-menu/NavigationMenu_module.css +15 -32
- package/dist/components/number-input/NumberInput.js +9 -10
- package/dist/components/pagination/Pagination.js +17 -20
- package/dist/components/pagination/Pagination_module.css +1 -5
- package/dist/components/password-input/PasswordInput.js +7 -8
- package/dist/components/pin-input/PinInput.d.ts +3 -2
- package/dist/components/pin-input/PinInput.js +13 -54
- package/dist/components/popover/Popover.d.ts +5 -3
- package/dist/components/popover/Popover.js +16 -17
- package/dist/components/progress-circular/ProgressCircular.js +8 -9
- package/dist/components/progress-circular/ProgressCircular.module.js +1 -3
- package/dist/components/progress-circular/ProgressCircular_module.css +0 -10
- package/dist/components/progress-linear/ProgressLinear.js +7 -8
- package/dist/components/progress-linear/ProgressLinear.module.js +1 -5
- package/dist/components/progress-linear/ProgressLinear_module.css +0 -20
- package/dist/components/qr-code/QrCode.js +6 -7
- package/dist/components/radio-group/RadioGroup.d.ts +1 -0
- package/dist/components/radio-group/RadioGroup.js +13 -27
- package/dist/components/radio-group/RadioGroup_module.css +0 -1
- package/dist/components/rating-group/RatingGroup.d.ts +1 -0
- package/dist/components/rating-group/RatingGroup.js +12 -29
- package/dist/components/rating-group/RatingGroup_module.css +1 -1
- package/dist/components/scroll-area/ScrollArea.js +7 -8
- package/dist/components/segment-group/SegmentGroup.d.ts +1 -0
- package/dist/components/segment-group/SegmentGroup.js +16 -30
- package/dist/components/segment-group/SegmentGroup_module.css +4 -0
- package/dist/components/select/Select.d.ts +4 -7
- package/dist/components/select/Select.js +36 -86
- package/dist/components/select/Select.module.js +1 -1
- package/dist/components/select/Select_module.css +4 -31
- package/dist/components/separator/Separator.d.ts +6 -6
- package/dist/components/separator/Separator.js +1 -2
- package/dist/components/sidebar/Sidebar.d.ts +24 -22
- package/dist/components/sidebar/Sidebar.js +88 -75
- package/dist/components/sidebar/Sidebar.module.js +2 -3
- package/dist/components/sidebar/Sidebar_module.css +112 -178
- package/dist/components/signature-pad/SignaturePad.d.ts +5 -8
- package/dist/components/signature-pad/SignaturePad.js +17 -46
- package/dist/components/signature-pad/SignaturePad_module.css +0 -1
- package/dist/components/simple-grid/SimpleGrid.js +13 -8
- package/dist/components/skeleton/Skeleton.d.ts +2 -2
- package/dist/components/skeleton/Skeleton.js +1 -2
- package/dist/components/slider/Slider.d.ts +2 -2
- package/dist/components/slider/Slider.js +18 -32
- package/dist/components/spinner/Spinner.d.ts +2 -2
- package/dist/components/spinner/Spinner.js +1 -2
- package/dist/components/split-button/SplitButton.d.ts +4 -4
- package/dist/components/split-button/SplitButton.js +11 -8
- package/dist/components/splitter/Splitter.js +5 -6
- package/dist/components/splitter/Splitter_module.css +2 -10
- package/dist/components/stack/Stack.d.ts +6 -6
- package/dist/components/stack/Stack.js +4 -5
- package/dist/components/stack/Stack_module.css +1 -1
- package/dist/components/steps/Steps.js +12 -13
- package/dist/components/steps/Steps_module.css +2 -3
- package/dist/components/swap/Swap.js +3 -4
- package/dist/components/switch/Switch.d.ts +3 -2
- package/dist/components/switch/Switch.js +12 -35
- package/dist/components/switch/Switch_module.css +0 -1
- package/dist/components/table/Table.d.ts +5 -5
- package/dist/components/table/Table.js +12 -13
- package/dist/components/tabs/Tabs.js +6 -7
- package/dist/components/tabs/Tabs_module.css +5 -10
- package/dist/components/tag/Tag.js +5 -6
- package/dist/components/tag/Tag_module.css +2 -4
- package/dist/components/tags-input/TagsInput.d.ts +3 -3
- package/dist/components/tags-input/TagsInput.js +21 -75
- package/dist/components/tags-input/TagsInput_module.css +0 -1
- package/dist/components/text/Text.js +1 -2
- package/dist/components/textarea/Textarea.js +1 -2
- package/dist/components/timer/Timer.js +7 -8
- package/dist/components/toast/Toast.d.ts +1 -1
- package/dist/components/toast/Toast.js +7 -8
- package/dist/components/toast/Toast_module.css +1 -2
- package/dist/components/toc/Toc.js +10 -11
- package/dist/components/toc/Toc_module.css +2 -2
- package/dist/components/toggle/Toggle.js +2 -3
- package/dist/components/toggle-group/ToggleGroup.d.ts +1 -1
- package/dist/components/toggle-group/ToggleGroup.js +3 -4
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.js +6 -7
- package/dist/components/tooltip/Tooltip_module.css +1 -1
- package/dist/components/tour/Tour.d.ts +1 -1
- package/dist/components/tour/Tour.js +14 -15
- package/dist/components/tree-view/TreeView.d.ts +4 -4
- package/dist/components/tree-view/TreeView.js +17 -18
- package/dist/components/tree-view/TreeView_module.css +39 -12
- package/dist/components/typeset/Typeset.js +2 -3
- package/dist/components/typeset/Typeset_module.css +300 -159
- package/dist/internal/icons/ui/Icons.d.ts +9 -30
- package/dist/internal/icons/ui/Icons.js +67 -807
- package/dist/internal/icons/ui/index.d.ts +1 -1
- package/dist/styles/animations.css +310 -0
- package/dist/styles/style.css +168 -2
- package/package.json +25 -25
- package/dist/internal/normalizeClassName.d.ts +0 -1
- package/dist/internal/normalizeClassName.js +0 -2
|
@@ -3,20 +3,28 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { Drawer, useDrawer, useDrawerContext, useDrawerStackContext } from "@ark-ui/react/drawer";
|
|
4
4
|
import { ark } from "@ark-ui/react/factory";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
|
-
import { forwardRef } from "react";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
6
|
+
import { createContext, forwardRef, useContext } from "react";
|
|
8
7
|
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
|
|
9
8
|
import { CloseButton } from "../close-button/index.js";
|
|
10
9
|
import Drawer_module from "./Drawer.module.js";
|
|
11
10
|
const DEFAULT_CLOSE_BUTTON_LABEL = 'Close drawer';
|
|
12
|
-
|
|
11
|
+
const DrawerVariantContext = /*#__PURE__*/ createContext(void 0);
|
|
12
|
+
function DrawerRoot({ lazyMount = true, portalled, portalRef, unmountOnExit = true, variant, swipeDirection, snapPoints, defaultSnapPoint, ...props }) {
|
|
13
13
|
return /*#__PURE__*/ jsx(OverlayPortalProvider, {
|
|
14
14
|
portalled: portalled,
|
|
15
15
|
portalRef: portalRef,
|
|
16
|
-
children: /*#__PURE__*/ jsx(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
children: /*#__PURE__*/ jsx(DrawerVariantContext.Provider, {
|
|
17
|
+
value: variant,
|
|
18
|
+
children: /*#__PURE__*/ jsx(Drawer.Root, {
|
|
19
|
+
...props,
|
|
20
|
+
lazyMount: lazyMount,
|
|
21
|
+
unmountOnExit: unmountOnExit,
|
|
22
|
+
swipeDirection: swipeDirection,
|
|
23
|
+
snapPoints: snapPoints ?? ('island' === variant ? [
|
|
24
|
+
1
|
|
25
|
+
] : void 0),
|
|
26
|
+
defaultSnapPoint: void 0 !== defaultSnapPoint ? defaultSnapPoint : 'island' === variant ? 1 : void 0
|
|
27
|
+
})
|
|
20
28
|
})
|
|
21
29
|
});
|
|
22
30
|
}
|
|
@@ -37,7 +45,7 @@ const Drawer_DrawerTrigger = /*#__PURE__*/ forwardRef(function({ asChild, classN
|
|
|
37
45
|
ref: ref,
|
|
38
46
|
asChild: asChild,
|
|
39
47
|
"data-slot": "drawer-trigger",
|
|
40
|
-
className: clsx(!asChild && Drawer_module.trigger,
|
|
48
|
+
className: clsx(!asChild && Drawer_module.trigger, className),
|
|
41
49
|
...props
|
|
42
50
|
});
|
|
43
51
|
});
|
|
@@ -46,7 +54,7 @@ const Drawer_DrawerBackdrop = /*#__PURE__*/ forwardRef(function({ className, ...
|
|
|
46
54
|
children: /*#__PURE__*/ jsx(Drawer.Backdrop, {
|
|
47
55
|
ref: ref,
|
|
48
56
|
"data-slot": "drawer-backdrop",
|
|
49
|
-
className: clsx(Drawer_module.backdrop,
|
|
57
|
+
className: clsx(Drawer_module.backdrop, className),
|
|
50
58
|
...props
|
|
51
59
|
})
|
|
52
60
|
});
|
|
@@ -56,17 +64,18 @@ const Drawer_DrawerPositioner = /*#__PURE__*/ forwardRef(function({ className, .
|
|
|
56
64
|
children: /*#__PURE__*/ jsx(Drawer.Positioner, {
|
|
57
65
|
ref: ref,
|
|
58
66
|
"data-slot": "drawer-positioner",
|
|
59
|
-
className: clsx(Drawer_module.positioner,
|
|
67
|
+
className: clsx(Drawer_module.positioner, className),
|
|
60
68
|
...props
|
|
61
69
|
})
|
|
62
70
|
});
|
|
63
71
|
});
|
|
64
72
|
const Drawer_DrawerContent = /*#__PURE__*/ forwardRef(function({ className, variant, ...props }, ref) {
|
|
73
|
+
const rootVariant = useContext(DrawerVariantContext);
|
|
65
74
|
return /*#__PURE__*/ jsx(Drawer.Content, {
|
|
66
75
|
ref: ref,
|
|
67
76
|
"data-slot": "drawer-content",
|
|
68
|
-
"data-variant": variant,
|
|
69
|
-
className: clsx(Drawer_module.content,
|
|
77
|
+
"data-variant": variant ?? rootVariant,
|
|
78
|
+
className: clsx(Drawer_module.content, className),
|
|
70
79
|
...props
|
|
71
80
|
});
|
|
72
81
|
});
|
|
@@ -74,7 +83,7 @@ const Drawer_DrawerGrabber = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
74
83
|
return /*#__PURE__*/ jsx(Drawer.Grabber, {
|
|
75
84
|
ref: ref,
|
|
76
85
|
"data-slot": "drawer-grabber",
|
|
77
|
-
className: clsx(Drawer_module.grabber,
|
|
86
|
+
className: clsx(Drawer_module.grabber, className),
|
|
78
87
|
...props
|
|
79
88
|
});
|
|
80
89
|
});
|
|
@@ -82,7 +91,7 @@ const Drawer_DrawerGrabberIndicator = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
82
91
|
return /*#__PURE__*/ jsx(Drawer.GrabberIndicator, {
|
|
83
92
|
ref: ref,
|
|
84
93
|
"data-slot": "drawer-grabber-indicator",
|
|
85
|
-
className: clsx(Drawer_module.grabberIndicator,
|
|
94
|
+
className: clsx(Drawer_module.grabberIndicator, className),
|
|
86
95
|
...props
|
|
87
96
|
});
|
|
88
97
|
});
|
|
@@ -90,7 +99,7 @@ const Drawer_DrawerTitle = /*#__PURE__*/ forwardRef(function({ className, ...pro
|
|
|
90
99
|
return /*#__PURE__*/ jsx(Drawer.Title, {
|
|
91
100
|
ref: ref,
|
|
92
101
|
"data-slot": "drawer-title",
|
|
93
|
-
className: clsx(Drawer_module.title,
|
|
102
|
+
className: clsx(Drawer_module.title, className),
|
|
94
103
|
...props
|
|
95
104
|
});
|
|
96
105
|
});
|
|
@@ -98,7 +107,7 @@ const Drawer_DrawerDescription = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
98
107
|
return /*#__PURE__*/ jsx(Drawer.Description, {
|
|
99
108
|
ref: ref,
|
|
100
109
|
"data-slot": "drawer-description",
|
|
101
|
-
className: clsx(Drawer_module.description,
|
|
110
|
+
className: clsx(Drawer_module.description, className),
|
|
102
111
|
...props
|
|
103
112
|
});
|
|
104
113
|
});
|
|
@@ -107,7 +116,7 @@ const Drawer_DrawerCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, c
|
|
|
107
116
|
ref: ref,
|
|
108
117
|
asChild: asChild,
|
|
109
118
|
"data-slot": "drawer-close-trigger",
|
|
110
|
-
className: clsx(!asChild && Drawer_module.closeTrigger,
|
|
119
|
+
className: clsx(!asChild && Drawer_module.closeTrigger, className),
|
|
111
120
|
...props
|
|
112
121
|
});
|
|
113
122
|
});
|
|
@@ -119,7 +128,7 @@ const Drawer_DrawerCloseIcon = /*#__PURE__*/ forwardRef(function({ className, ch
|
|
|
119
128
|
ref: ref,
|
|
120
129
|
"data-slot": "drawer-close-icon",
|
|
121
130
|
"aria-label": ariaLabel,
|
|
122
|
-
className: clsx(Drawer_module.closeIcon,
|
|
131
|
+
className: clsx(Drawer_module.closeIcon, className),
|
|
123
132
|
children: children
|
|
124
133
|
})
|
|
125
134
|
});
|
|
@@ -128,7 +137,7 @@ const Drawer_DrawerSwipeArea = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
128
137
|
return /*#__PURE__*/ jsx(Drawer.SwipeArea, {
|
|
129
138
|
ref: ref,
|
|
130
139
|
"data-slot": "drawer-swipe-area",
|
|
131
|
-
className: clsx(Drawer_module.swipeArea,
|
|
140
|
+
className: clsx(Drawer_module.swipeArea, className),
|
|
132
141
|
...props
|
|
133
142
|
});
|
|
134
143
|
});
|
|
@@ -136,7 +145,7 @@ const Drawer_DrawerIndent = /*#__PURE__*/ forwardRef(function({ className, ...pr
|
|
|
136
145
|
return /*#__PURE__*/ jsx(Drawer.Indent, {
|
|
137
146
|
ref: ref,
|
|
138
147
|
"data-slot": "drawer-indent",
|
|
139
|
-
className: clsx(Drawer_module.indent,
|
|
148
|
+
className: clsx(Drawer_module.indent, className),
|
|
140
149
|
...props
|
|
141
150
|
});
|
|
142
151
|
});
|
|
@@ -144,7 +153,7 @@ const Drawer_DrawerIndentBackground = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
144
153
|
return /*#__PURE__*/ jsx(Drawer.IndentBackground, {
|
|
145
154
|
ref: ref,
|
|
146
155
|
"data-slot": "drawer-indent-background",
|
|
147
|
-
className: clsx(Drawer_module.indentBackground,
|
|
156
|
+
className: clsx(Drawer_module.indentBackground, className),
|
|
148
157
|
...props
|
|
149
158
|
});
|
|
150
159
|
});
|
|
@@ -152,7 +161,7 @@ const Drawer_DrawerHeader = /*#__PURE__*/ forwardRef(function({ className, ...pr
|
|
|
152
161
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
153
162
|
ref: ref,
|
|
154
163
|
"data-slot": "drawer-header",
|
|
155
|
-
className: clsx(Drawer_module.header,
|
|
164
|
+
className: clsx(Drawer_module.header, className),
|
|
156
165
|
...props
|
|
157
166
|
});
|
|
158
167
|
});
|
|
@@ -160,7 +169,7 @@ const Drawer_DrawerBody = /*#__PURE__*/ forwardRef(function({ className, ...prop
|
|
|
160
169
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
161
170
|
ref: ref,
|
|
162
171
|
"data-slot": "drawer-body",
|
|
163
|
-
className: clsx(Drawer_module.body,
|
|
172
|
+
className: clsx(Drawer_module.body, className),
|
|
164
173
|
...props
|
|
165
174
|
});
|
|
166
175
|
});
|
|
@@ -168,7 +177,7 @@ const Drawer_DrawerFooter = /*#__PURE__*/ forwardRef(function({ className, ...pr
|
|
|
168
177
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
169
178
|
ref: ref,
|
|
170
179
|
"data-slot": "drawer-footer",
|
|
171
|
-
className: clsx(Drawer_module.footer,
|
|
180
|
+
className: clsx(Drawer_module.footer, className),
|
|
172
181
|
...props
|
|
173
182
|
});
|
|
174
183
|
});
|
|
@@ -10,7 +10,7 @@ declare const Editable: import("react").ForwardRefExoticComponent<Omit<EditableP
|
|
|
10
10
|
EditTrigger: import("react").ForwardRefExoticComponent<Omit<EditablePrimitive.EditTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
SubmitTrigger: import("react").ForwardRefExoticComponent<Omit<EditablePrimitive.SubmitTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
CancelTrigger: import("react").ForwardRefExoticComponent<Omit<EditablePrimitive.CancelTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
|
-
Controls: import("react").ForwardRefExoticComponent<Omit<Omit<EditablePrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "
|
|
13
|
+
Controls: import("react").ForwardRefExoticComponent<Omit<Omit<EditablePrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "asChild" | "children">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
14
|
Context: (props: EditablePrimitive.ContextProps) => import("react").ReactNode;
|
|
15
15
|
};
|
|
16
16
|
export { Editable, useEditable, useEditableContext };
|
|
@@ -4,14 +4,13 @@ import { Editable, useEditable, useEditableContext } from "@ark-ui/react/editabl
|
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { CheckIcon, CloseIcon, PencilIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import Editable_module from "./Editable.module.js";
|
|
9
8
|
const Editable_EditableRoot = /*#__PURE__*/ forwardRef(function({ activationMode = 'dblclick', className, ...props }, ref) {
|
|
10
9
|
return /*#__PURE__*/ jsx(Editable.Root, {
|
|
11
10
|
ref: ref,
|
|
12
11
|
"data-slot": "editable-root",
|
|
13
12
|
activationMode: activationMode,
|
|
14
|
-
className: clsx(Editable_module.root,
|
|
13
|
+
className: clsx(Editable_module.root, className),
|
|
15
14
|
...props
|
|
16
15
|
});
|
|
17
16
|
});
|
|
@@ -19,7 +18,7 @@ const Editable_EditableRootProvider = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
19
18
|
return /*#__PURE__*/ jsx(Editable.RootProvider, {
|
|
20
19
|
ref: ref,
|
|
21
20
|
"data-slot": "editable-root-provider",
|
|
22
|
-
className: clsx(Editable_module.root,
|
|
21
|
+
className: clsx(Editable_module.root, className),
|
|
23
22
|
...props
|
|
24
23
|
});
|
|
25
24
|
});
|
|
@@ -27,7 +26,7 @@ const Editable_EditableLabel = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
27
26
|
return /*#__PURE__*/ jsx(Editable.Label, {
|
|
28
27
|
ref: ref,
|
|
29
28
|
"data-slot": "editable-label",
|
|
30
|
-
className: clsx(Editable_module.label,
|
|
29
|
+
className: clsx(Editable_module.label, className),
|
|
31
30
|
...props
|
|
32
31
|
});
|
|
33
32
|
});
|
|
@@ -35,7 +34,7 @@ const Editable_EditableArea = /*#__PURE__*/ forwardRef(function({ className, ...
|
|
|
35
34
|
return /*#__PURE__*/ jsx(Editable.Area, {
|
|
36
35
|
ref: ref,
|
|
37
36
|
"data-slot": "editable-area",
|
|
38
|
-
className: clsx(Editable_module.area,
|
|
37
|
+
className: clsx(Editable_module.area, className),
|
|
39
38
|
...props
|
|
40
39
|
});
|
|
41
40
|
});
|
|
@@ -43,7 +42,7 @@ const Editable_EditableInput = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
43
42
|
return /*#__PURE__*/ jsx(Editable.Input, {
|
|
44
43
|
ref: ref,
|
|
45
44
|
"data-slot": "editable-input",
|
|
46
|
-
className: clsx(Editable_module.input,
|
|
45
|
+
className: clsx(Editable_module.input, className),
|
|
47
46
|
...props
|
|
48
47
|
});
|
|
49
48
|
});
|
|
@@ -51,7 +50,7 @@ const Editable_EditablePreview = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
51
50
|
return /*#__PURE__*/ jsx(Editable.Preview, {
|
|
52
51
|
ref: ref,
|
|
53
52
|
"data-slot": "editable-preview",
|
|
54
|
-
className: clsx(Editable_module.preview,
|
|
53
|
+
className: clsx(Editable_module.preview, className),
|
|
55
54
|
...props
|
|
56
55
|
});
|
|
57
56
|
});
|
|
@@ -59,7 +58,7 @@ const Editable_EditableControl = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
59
58
|
return /*#__PURE__*/ jsx(Editable.Control, {
|
|
60
59
|
ref: ref,
|
|
61
60
|
"data-slot": "editable-control",
|
|
62
|
-
className: clsx(Editable_module.control,
|
|
61
|
+
className: clsx(Editable_module.control, className),
|
|
63
62
|
...props
|
|
64
63
|
});
|
|
65
64
|
});
|
|
@@ -67,7 +66,7 @@ const Editable_EditableEditTrigger = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
67
66
|
return /*#__PURE__*/ jsx(Editable.EditTrigger, {
|
|
68
67
|
ref: ref,
|
|
69
68
|
"data-slot": "editable-edit-trigger",
|
|
70
|
-
className: clsx(Editable_module.trigger,
|
|
69
|
+
className: clsx(Editable_module.trigger, className),
|
|
71
70
|
...props,
|
|
72
71
|
children: children ?? /*#__PURE__*/ jsx(PencilIcon, {})
|
|
73
72
|
});
|
|
@@ -76,7 +75,7 @@ const Editable_EditableSubmitTrigger = /*#__PURE__*/ forwardRef(function({ class
|
|
|
76
75
|
return /*#__PURE__*/ jsx(Editable.SubmitTrigger, {
|
|
77
76
|
ref: ref,
|
|
78
77
|
"data-slot": "editable-submit-trigger",
|
|
79
|
-
className: clsx(Editable_module.trigger,
|
|
78
|
+
className: clsx(Editable_module.trigger, className),
|
|
80
79
|
...props,
|
|
81
80
|
children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
|
|
82
81
|
});
|
|
@@ -85,7 +84,7 @@ const Editable_EditableCancelTrigger = /*#__PURE__*/ forwardRef(function({ class
|
|
|
85
84
|
return /*#__PURE__*/ jsx(Editable.CancelTrigger, {
|
|
86
85
|
ref: ref,
|
|
87
86
|
"data-slot": "editable-cancel-trigger",
|
|
88
|
-
className: clsx(Editable_module.trigger,
|
|
87
|
+
className: clsx(Editable_module.trigger, className),
|
|
89
88
|
...props,
|
|
90
89
|
children: children ?? /*#__PURE__*/ jsx(CloseIcon, {})
|
|
91
90
|
});
|
|
@@ -2,7 +2,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ark } from "@ark-ui/react/factory";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
6
5
|
import Empty_module from "./Empty.module.js";
|
|
7
6
|
const Empty_EmptyRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
8
7
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
@@ -10,7 +9,7 @@ const Empty_EmptyRoot = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
10
9
|
"data-scope": "empty",
|
|
11
10
|
"data-part": "root",
|
|
12
11
|
"data-slot": "empty-root",
|
|
13
|
-
className: clsx(Empty_module.root,
|
|
12
|
+
className: clsx(Empty_module.root, className),
|
|
14
13
|
...props
|
|
15
14
|
});
|
|
16
15
|
});
|
|
@@ -20,7 +19,7 @@ const Empty_EmptyIcon = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
20
19
|
"data-scope": "empty",
|
|
21
20
|
"data-part": "icon",
|
|
22
21
|
"data-slot": "empty-icon",
|
|
23
|
-
className: clsx(Empty_module.icon,
|
|
22
|
+
className: clsx(Empty_module.icon, className),
|
|
24
23
|
...props
|
|
25
24
|
});
|
|
26
25
|
});
|
|
@@ -30,7 +29,7 @@ const Empty_EmptyContent = /*#__PURE__*/ forwardRef(function({ className, ...pro
|
|
|
30
29
|
"data-scope": "empty",
|
|
31
30
|
"data-part": "content",
|
|
32
31
|
"data-slot": "empty-content",
|
|
33
|
-
className: clsx(Empty_module.content,
|
|
32
|
+
className: clsx(Empty_module.content, className),
|
|
34
33
|
...props
|
|
35
34
|
});
|
|
36
35
|
});
|
|
@@ -40,7 +39,7 @@ const Empty_EmptyTitle = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
40
39
|
"data-scope": "empty",
|
|
41
40
|
"data-part": "title",
|
|
42
41
|
"data-slot": "empty-title",
|
|
43
|
-
className: clsx(Empty_module.title,
|
|
42
|
+
className: clsx(Empty_module.title, className),
|
|
44
43
|
...props
|
|
45
44
|
});
|
|
46
45
|
});
|
|
@@ -50,7 +49,7 @@ const Empty_EmptyDescription = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
50
49
|
"data-scope": "empty",
|
|
51
50
|
"data-part": "description",
|
|
52
51
|
"data-slot": "empty-description",
|
|
53
|
-
className: clsx(Empty_module.description,
|
|
52
|
+
className: clsx(Empty_module.description, className),
|
|
54
53
|
...props
|
|
55
54
|
});
|
|
56
55
|
});
|
|
@@ -60,7 +59,7 @@ const Empty_EmptyActions = /*#__PURE__*/ forwardRef(function({ className, ...pro
|
|
|
60
59
|
"data-scope": "empty",
|
|
61
60
|
"data-part": "actions",
|
|
62
61
|
"data-slot": "empty-actions",
|
|
63
|
-
className: clsx(Empty_module.actions,
|
|
62
|
+
className: clsx(Empty_module.actions, className),
|
|
64
63
|
...props
|
|
65
64
|
});
|
|
66
65
|
});
|
|
@@ -3,13 +3,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { Field, useField, useFieldContext } from "@ark-ui/react/field";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
6
|
import Field_module from "./Field.module.js";
|
|
8
7
|
const Field_FieldRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
9
8
|
return /*#__PURE__*/ jsx(Field.Root, {
|
|
10
9
|
ref: ref,
|
|
11
10
|
"data-slot": "field-root",
|
|
12
|
-
className: clsx(Field_module.root,
|
|
11
|
+
className: clsx(Field_module.root, className),
|
|
13
12
|
...props
|
|
14
13
|
});
|
|
15
14
|
});
|
|
@@ -17,7 +16,7 @@ const Field_FieldRootProvider = /*#__PURE__*/ forwardRef(function({ className, .
|
|
|
17
16
|
return /*#__PURE__*/ jsx(Field.RootProvider, {
|
|
18
17
|
ref: ref,
|
|
19
18
|
"data-slot": "field-root-provider",
|
|
20
|
-
className: clsx(Field_module.root,
|
|
19
|
+
className: clsx(Field_module.root, className),
|
|
21
20
|
...props
|
|
22
21
|
});
|
|
23
22
|
});
|
|
@@ -27,7 +26,7 @@ const Field_FieldItem = /*#__PURE__*/ forwardRef(function({ className, children,
|
|
|
27
26
|
children: /*#__PURE__*/ jsx("div", {
|
|
28
27
|
ref: ref,
|
|
29
28
|
"data-slot": "field-item",
|
|
30
|
-
className: clsx(Field_module.item,
|
|
29
|
+
className: clsx(Field_module.item, className),
|
|
31
30
|
...props,
|
|
32
31
|
children: children
|
|
33
32
|
})
|
|
@@ -37,7 +36,7 @@ const Field_FieldLabel = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
37
36
|
return /*#__PURE__*/ jsx(Field.Label, {
|
|
38
37
|
ref: ref,
|
|
39
38
|
"data-slot": "field-label",
|
|
40
|
-
className: clsx(Field_module.label,
|
|
39
|
+
className: clsx(Field_module.label, className),
|
|
41
40
|
...props
|
|
42
41
|
});
|
|
43
42
|
});
|
|
@@ -45,7 +44,7 @@ const Field_FieldInput = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
45
44
|
return /*#__PURE__*/ jsx(Field.Input, {
|
|
46
45
|
ref: ref,
|
|
47
46
|
"data-slot": "field-input",
|
|
48
|
-
className: clsx(Field_module.control,
|
|
47
|
+
className: clsx(Field_module.control, className),
|
|
49
48
|
...props
|
|
50
49
|
});
|
|
51
50
|
});
|
|
@@ -53,7 +52,7 @@ const Field_FieldTextarea = /*#__PURE__*/ forwardRef(function({ className, ...pr
|
|
|
53
52
|
return /*#__PURE__*/ jsx(Field.Textarea, {
|
|
54
53
|
ref: ref,
|
|
55
54
|
"data-slot": "field-textarea",
|
|
56
|
-
className: clsx(Field_module.control, Field_module.textarea,
|
|
55
|
+
className: clsx(Field_module.control, Field_module.textarea, className),
|
|
57
56
|
...props
|
|
58
57
|
});
|
|
59
58
|
});
|
|
@@ -61,7 +60,7 @@ const Field_FieldSelect = /*#__PURE__*/ forwardRef(function({ className, ...prop
|
|
|
61
60
|
return /*#__PURE__*/ jsx(Field.Select, {
|
|
62
61
|
ref: ref,
|
|
63
62
|
"data-slot": "field-select",
|
|
64
|
-
className: clsx(Field_module.control,
|
|
63
|
+
className: clsx(Field_module.control, className),
|
|
65
64
|
...props
|
|
66
65
|
});
|
|
67
66
|
});
|
|
@@ -69,7 +68,7 @@ const Field_FieldHelperText = /*#__PURE__*/ forwardRef(function({ className, ...
|
|
|
69
68
|
return /*#__PURE__*/ jsx(Field.HelperText, {
|
|
70
69
|
ref: ref,
|
|
71
70
|
"data-slot": "field-helper-text",
|
|
72
|
-
className: clsx(Field_module.helperText,
|
|
71
|
+
className: clsx(Field_module.helperText, className),
|
|
73
72
|
...props
|
|
74
73
|
});
|
|
75
74
|
});
|
|
@@ -77,7 +76,7 @@ const Field_FieldErrorText = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
77
76
|
return /*#__PURE__*/ jsx(Field.ErrorText, {
|
|
78
77
|
ref: ref,
|
|
79
78
|
"data-slot": "field-error-text",
|
|
80
|
-
className: clsx(Field_module.errorText,
|
|
79
|
+
className: clsx(Field_module.errorText, className),
|
|
81
80
|
...props
|
|
82
81
|
});
|
|
83
82
|
});
|
|
@@ -85,7 +84,7 @@ const Field_FieldRequiredIndicator = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
85
84
|
return /*#__PURE__*/ jsx(Field.RequiredIndicator, {
|
|
86
85
|
ref: ref,
|
|
87
86
|
"data-slot": "field-required-indicator",
|
|
88
|
-
className: clsx(Field_module.requiredIndicator,
|
|
87
|
+
className: clsx(Field_module.requiredIndicator, className),
|
|
89
88
|
...props
|
|
90
89
|
});
|
|
91
90
|
});
|
|
@@ -3,13 +3,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { Fieldset, useFieldset, useFieldsetContext } from "@ark-ui/react/fieldset";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
6
|
import Fieldset_module from "./Fieldset.module.js";
|
|
8
7
|
const Fieldset_FieldsetRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
9
8
|
return /*#__PURE__*/ jsx(Fieldset.Root, {
|
|
10
9
|
ref: ref,
|
|
11
10
|
"data-slot": "fieldset-root",
|
|
12
|
-
className: clsx(Fieldset_module.root,
|
|
11
|
+
className: clsx(Fieldset_module.root, className),
|
|
13
12
|
...props
|
|
14
13
|
});
|
|
15
14
|
});
|
|
@@ -17,7 +16,7 @@ const Fieldset_FieldsetRootProvider = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
17
16
|
return /*#__PURE__*/ jsx(Fieldset.RootProvider, {
|
|
18
17
|
ref: ref,
|
|
19
18
|
"data-slot": "fieldset-root-provider",
|
|
20
|
-
className: clsx(Fieldset_module.root,
|
|
19
|
+
className: clsx(Fieldset_module.root, className),
|
|
21
20
|
...props
|
|
22
21
|
});
|
|
23
22
|
});
|
|
@@ -25,7 +24,7 @@ const Fieldset_FieldsetLegend = /*#__PURE__*/ forwardRef(function({ className, .
|
|
|
25
24
|
return /*#__PURE__*/ jsx(Fieldset.Legend, {
|
|
26
25
|
ref: ref,
|
|
27
26
|
"data-slot": "fieldset-legend",
|
|
28
|
-
className: clsx(Fieldset_module.legend,
|
|
27
|
+
className: clsx(Fieldset_module.legend, className),
|
|
29
28
|
...props
|
|
30
29
|
});
|
|
31
30
|
});
|
|
@@ -33,7 +32,7 @@ const Fieldset_FieldsetHelperText = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
33
32
|
return /*#__PURE__*/ jsx(Fieldset.HelperText, {
|
|
34
33
|
ref: ref,
|
|
35
34
|
"data-slot": "fieldset-helper-text",
|
|
36
|
-
className: clsx(Fieldset_module.helperText,
|
|
35
|
+
className: clsx(Fieldset_module.helperText, className),
|
|
37
36
|
...props
|
|
38
37
|
});
|
|
39
38
|
});
|
|
@@ -41,7 +40,7 @@ const Fieldset_FieldsetErrorText = /*#__PURE__*/ forwardRef(function({ className
|
|
|
41
40
|
return /*#__PURE__*/ jsx(Fieldset.ErrorText, {
|
|
42
41
|
ref: ref,
|
|
43
42
|
"data-slot": "fieldset-error-text",
|
|
44
|
-
className: clsx(Fieldset_module.errorText,
|
|
43
|
+
className: clsx(Fieldset_module.errorText, className),
|
|
45
44
|
...props
|
|
46
45
|
});
|
|
47
46
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HTMLArkProps } from '@ark-ui/react/factory';
|
|
2
2
|
import { FileUpload as FileUploadPrimitive, useFileUpload, useFileUploadContext } from '@ark-ui/react/file-upload';
|
|
3
|
-
import type { ComponentProps
|
|
3
|
+
import type { ComponentProps } from 'react';
|
|
4
4
|
declare function FileUploadDropzoneIcon({ className, children, ...props }: HTMLArkProps<'span'>): import("react").JSX.Element;
|
|
5
5
|
declare function FileUploadItemPreviewIcon({ className, ...props }: ComponentProps<'svg'>): import("react").JSX.Element;
|
|
6
6
|
declare function FileUploadItemMetadata({ file, className, ...props }: HTMLArkProps<'div'> & {
|
|
@@ -10,7 +10,8 @@ declare function FileUploadItems(): import("react").JSX.Element[];
|
|
|
10
10
|
declare const FileUpload: import("react").ForwardRefExoticComponent<Omit<FileUploadPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
11
11
|
Root: import("react").ForwardRefExoticComponent<Omit<FileUploadPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<FileUploadPrimitive.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
-
Context: (props: FileUploadPrimitive.ContextProps) => ReactNode;
|
|
13
|
+
Context: (props: FileUploadPrimitive.ContextProps) => import("react").ReactNode;
|
|
14
|
+
HiddenInput: import("react").ForwardRefExoticComponent<FileUploadPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
14
15
|
Label: import("react").ForwardRefExoticComponent<Omit<FileUploadPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
15
16
|
Dropzone: import("react").ForwardRefExoticComponent<Omit<FileUploadPrimitive.DropzoneProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
17
|
DropzoneIcon: typeof FileUploadDropzoneIcon;
|