@moduix/solid 1.0.0 → 1.1.1
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/dist/components/accordion/Accordion.js +19 -13
- package/dist/components/accordion/Accordion.jsx +7 -7
- package/dist/components/alert/Alert.js +19 -13
- package/dist/components/alert/Alert.jsx +6 -6
- package/dist/components/angle-slider/AngleSlider.d.ts +2 -6
- package/dist/components/angle-slider/AngleSlider.js +21 -16
- package/dist/components/angle-slider/AngleSlider.jsx +9 -10
- package/dist/components/avatar/Avatar.js +10 -7
- package/dist/components/avatar/Avatar.jsx +4 -4
- package/dist/components/button/Button.js +0 -5
- package/dist/components/button/Button.jsx +1 -3
- package/dist/components/button/Button_module.css +1 -3
- package/dist/components/card/Card.js +45 -36
- package/dist/components/card/Card.jsx +9 -9
- package/dist/components/card/Card_module.css +1 -1
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +32 -23
- package/dist/components/carousel/Carousel.jsx +12 -13
- package/dist/components/checkbox/Checkbox.js +16 -14
- package/dist/components/checkbox/Checkbox.jsx +6 -6
- package/dist/components/clipboard/Clipboard.js +28 -17
- package/dist/components/clipboard/Clipboard.jsx +12 -11
- package/dist/components/collapsible/Collapsible.js +16 -11
- package/dist/components/collapsible/Collapsible.jsx +6 -6
- package/dist/components/color-picker/ColorPicker.js +69 -48
- package/dist/components/color-picker/ColorPicker.jsx +28 -28
- package/dist/components/combobox/Combobox.js +44 -31
- package/dist/components/combobox/Combobox.jsx +18 -18
- package/dist/components/command-palette/CommandPalette.js +72 -53
- package/dist/components/command-palette/CommandPalette.jsx +29 -32
- package/dist/components/container/Container_module.css +1 -1
- package/dist/components/date-input/DateInput.js +18 -12
- package/dist/components/date-input/DateInput.jsx +7 -7
- package/dist/components/date-picker/DatePicker.js +73 -51
- package/dist/components/date-picker/DatePicker.jsx +29 -29
- package/dist/components/dialog/Dialog.js +30 -20
- package/dist/components/dialog/Dialog.jsx +10 -10
- package/dist/components/drawer/Drawer.js +45 -30
- package/dist/components/drawer/Drawer.jsx +15 -15
- package/dist/components/editable/Editable.js +24 -17
- package/dist/components/editable/Editable.jsx +10 -10
- package/dist/components/file-upload/FileUpload.js +39 -28
- package/dist/components/file-upload/FileUpload.jsx +17 -17
- package/dist/components/floating-panel/FloatingPanel.js +35 -23
- package/dist/components/floating-panel/FloatingPanel.jsx +12 -12
- package/dist/components/hover-card/HoverCard.js +16 -11
- package/dist/components/hover-card/HoverCard.jsx +6 -6
- package/dist/components/image-cropper/ImageCropper.js +21 -14
- package/dist/components/image-cropper/ImageCropper.jsx +7 -7
- package/dist/components/kbd/Kbd.js +8 -8
- package/dist/components/kbd/Kbd.jsx +2 -2
- package/dist/components/lightbox/Lightbox.d.ts +1 -0
- package/dist/components/lightbox/Lightbox.js +41 -27
- package/dist/components/lightbox/Lightbox.jsx +13 -12
- package/dist/components/listbox/Listbox.js +48 -32
- package/dist/components/listbox/Listbox.jsx +17 -17
- package/dist/components/marquee/Marquee.js +18 -12
- package/dist/components/marquee/Marquee.jsx +6 -6
- package/dist/components/menu/Menu.js +64 -43
- package/dist/components/menu/Menu.jsx +24 -24
- package/dist/components/navigation-menu/NavigationMenu.js +36 -24
- package/dist/components/navigation-menu/NavigationMenu.jsx +12 -12
- package/dist/components/number-input/NumberInput.js +19 -14
- package/dist/components/number-input/NumberInput.jsx +9 -9
- package/dist/components/pagination/Pagination.js +10 -9
- package/dist/components/pagination/Pagination.jsx +8 -8
- package/dist/components/password-input/PasswordInput.js +16 -11
- package/dist/components/password-input/PasswordInput.jsx +6 -6
- package/dist/components/pin-input/PinInput.js +15 -10
- package/dist/components/pin-input/PinInput.jsx +6 -6
- package/dist/components/popover/Popover.js +37 -25
- package/dist/components/popover/Popover.jsx +13 -13
- package/dist/components/progress-circular/ProgressCircular.js +18 -13
- package/dist/components/progress-circular/ProgressCircular.jsx +8 -8
- package/dist/components/progress-linear/ProgressLinear.js +21 -14
- package/dist/components/progress-linear/ProgressLinear.jsx +7 -7
- package/dist/components/qr-code/QrCode.js +8 -7
- package/dist/components/qr-code/QrCode.jsx +6 -6
- package/dist/components/rating-group/RatingGroup.js +15 -10
- package/dist/components/rating-group/RatingGroup.jsx +6 -6
- package/dist/components/segment-group/SegmentGroup.js +17 -12
- package/dist/components/segment-group/SegmentGroup.jsx +7 -7
- package/dist/components/select/Select.js +50 -35
- package/dist/components/select/Select.jsx +20 -20
- package/dist/components/sidebar/Sidebar.js +73 -43
- package/dist/components/sidebar/Sidebar.jsx +35 -27
- package/dist/components/signature-pad/SignaturePad.js +16 -12
- package/dist/components/signature-pad/SignaturePad.jsx +8 -8
- package/dist/components/slider/Slider.js +29 -20
- package/dist/components/slider/Slider.jsx +11 -11
- package/dist/components/split-button/SplitButton.d.ts +4 -3
- package/dist/components/split-button/SplitButton.js +21 -9
- package/dist/components/split-button/SplitButton.jsx +14 -7
- package/dist/components/splitter/Splitter.js +13 -9
- package/dist/components/splitter/Splitter.jsx +5 -5
- package/dist/components/steps/Steps.js +34 -23
- package/dist/components/steps/Steps.jsx +12 -12
- package/dist/components/swap/Swap.js +9 -6
- package/dist/components/swap/Swap.jsx +3 -3
- package/dist/components/switch/Switch.js +9 -7
- package/dist/components/switch/Switch.jsx +5 -5
- package/dist/components/tabs/Tabs.js +18 -12
- package/dist/components/tabs/Tabs.jsx +6 -6
- package/dist/components/tags-input/TagsInput.js +28 -20
- package/dist/components/tags-input/TagsInput.jsx +12 -12
- package/dist/components/timer/Timer.js +21 -14
- package/dist/components/timer/Timer.jsx +7 -7
- package/dist/components/toast/Toast.js +11 -9
- package/dist/components/toast/Toast.jsx +7 -7
- package/dist/components/toc/Toc.js +31 -20
- package/dist/components/toc/Toc.jsx +10 -10
- package/dist/components/tooltip/Tooltip.js +13 -9
- package/dist/components/tooltip/Tooltip.jsx +5 -5
- package/dist/components/tour/Tour.js +37 -25
- package/dist/components/tour/Tour.jsx +13 -13
- package/dist/components/tree-view/TreeView.js +39 -28
- package/dist/components/tree-view/TreeView.jsx +17 -17
- package/dist/styles/animations.css +8 -8
- package/package.json +9 -10
|
@@ -48,14 +48,14 @@ function DrawerTrigger(props) {
|
|
|
48
48
|
'asChild',
|
|
49
49
|
'class'
|
|
50
50
|
]);
|
|
51
|
-
return <Drawer.Trigger asChild={local.asChild}
|
|
51
|
+
return <Drawer.Trigger asChild={local.asChild} class={clsx(!local.asChild && Drawer_module.trigger, local.class)} {...others} data-slot="drawer-trigger"/>;
|
|
52
52
|
}
|
|
53
53
|
function DrawerBackdrop(props) {
|
|
54
54
|
const [local, others] = splitProps(props, [
|
|
55
55
|
'class'
|
|
56
56
|
]);
|
|
57
57
|
return <OverlayPortal>
|
|
58
|
-
<Drawer.Backdrop
|
|
58
|
+
<Drawer.Backdrop class={clsx(Drawer_module.backdrop, local.class)} {...others} data-slot="drawer-backdrop"/>
|
|
59
59
|
</OverlayPortal>;
|
|
60
60
|
}
|
|
61
61
|
function DrawerPositioner(props) {
|
|
@@ -63,7 +63,7 @@ function DrawerPositioner(props) {
|
|
|
63
63
|
'class'
|
|
64
64
|
]);
|
|
65
65
|
return <OverlayPortal>
|
|
66
|
-
<Drawer.Positioner
|
|
66
|
+
<Drawer.Positioner class={clsx(Drawer_module.positioner, local.class)} {...others} data-slot="drawer-positioner"/>
|
|
67
67
|
</OverlayPortal>;
|
|
68
68
|
}
|
|
69
69
|
function DrawerContent(props) {
|
|
@@ -73,38 +73,38 @@ function DrawerContent(props) {
|
|
|
73
73
|
'variant'
|
|
74
74
|
]);
|
|
75
75
|
const rootVariant = useContext(DrawerVariantContext);
|
|
76
|
-
return <Drawer.Content data-
|
|
76
|
+
return <Drawer.Content data-variant={local.variant ?? rootVariant} class={clsx(Drawer_module.content, local.class)} draggable={local.draggable ?? true} {...others} data-slot="drawer-content"/>;
|
|
77
77
|
}
|
|
78
78
|
function DrawerGrabber(props) {
|
|
79
79
|
const [local, others] = splitProps(props, [
|
|
80
80
|
'class'
|
|
81
81
|
]);
|
|
82
|
-
return <Drawer.Grabber
|
|
82
|
+
return <Drawer.Grabber class={clsx(Drawer_module.grabber, local.class)} {...others} data-slot="drawer-grabber"/>;
|
|
83
83
|
}
|
|
84
84
|
function DrawerGrabberIndicator(props) {
|
|
85
85
|
const [local, others] = splitProps(props, [
|
|
86
86
|
'class'
|
|
87
87
|
]);
|
|
88
|
-
return <Drawer.GrabberIndicator
|
|
88
|
+
return <Drawer.GrabberIndicator class={clsx(Drawer_module.grabberIndicator, local.class)} {...others} data-slot="drawer-grabber-indicator"/>;
|
|
89
89
|
}
|
|
90
90
|
function DrawerTitle(props) {
|
|
91
91
|
const [local, others] = splitProps(props, [
|
|
92
92
|
'class'
|
|
93
93
|
]);
|
|
94
|
-
return <Drawer.Title
|
|
94
|
+
return <Drawer.Title class={clsx(Drawer_module.title, local.class)} {...others} data-slot="drawer-title"/>;
|
|
95
95
|
}
|
|
96
96
|
function DrawerDescription(props) {
|
|
97
97
|
const [local, others] = splitProps(props, [
|
|
98
98
|
'class'
|
|
99
99
|
]);
|
|
100
|
-
return <Drawer.Description
|
|
100
|
+
return <Drawer.Description class={clsx(Drawer_module.description, local.class)} {...others} data-slot="drawer-description"/>;
|
|
101
101
|
}
|
|
102
102
|
function DrawerCloseTrigger(props) {
|
|
103
103
|
const [local, others] = splitProps(props, [
|
|
104
104
|
'asChild',
|
|
105
105
|
'class'
|
|
106
106
|
]);
|
|
107
|
-
return <Drawer.CloseTrigger asChild={local.asChild}
|
|
107
|
+
return <Drawer.CloseTrigger asChild={local.asChild} class={clsx(!local.asChild && Drawer_module.closeTrigger, local.class)} {...others} data-slot="drawer-close-trigger"/>;
|
|
108
108
|
}
|
|
109
109
|
function DrawerCloseIcon(props) {
|
|
110
110
|
const [local, others] = splitProps(props, [
|
|
@@ -122,37 +122,37 @@ function DrawerSwipeArea(props) {
|
|
|
122
122
|
const [local, others] = splitProps(props, [
|
|
123
123
|
'class'
|
|
124
124
|
]);
|
|
125
|
-
return <Drawer.SwipeArea
|
|
125
|
+
return <Drawer.SwipeArea class={clsx(Drawer_module.swipeArea, local.class)} {...others} data-slot="drawer-swipe-area"/>;
|
|
126
126
|
}
|
|
127
127
|
function DrawerIndent(props) {
|
|
128
128
|
const [local, others] = splitProps(props, [
|
|
129
129
|
'class'
|
|
130
130
|
]);
|
|
131
|
-
return <Drawer.Indent
|
|
131
|
+
return <Drawer.Indent class={clsx(Drawer_module.indent, local.class)} {...others} data-slot="drawer-indent"/>;
|
|
132
132
|
}
|
|
133
133
|
function DrawerIndentBackground(props) {
|
|
134
134
|
const [local, others] = splitProps(props, [
|
|
135
135
|
'class'
|
|
136
136
|
]);
|
|
137
|
-
return <Drawer.IndentBackground
|
|
137
|
+
return <Drawer.IndentBackground class={clsx(Drawer_module.indentBackground, local.class)} {...others} data-slot="drawer-indent-background"/>;
|
|
138
138
|
}
|
|
139
139
|
function DrawerHeader(props) {
|
|
140
140
|
const [local, others] = splitProps(props, [
|
|
141
141
|
'class'
|
|
142
142
|
]);
|
|
143
|
-
return <ark.div
|
|
143
|
+
return <ark.div class={clsx(Drawer_module.header, local.class)} {...others} data-slot="drawer-header"/>;
|
|
144
144
|
}
|
|
145
145
|
function DrawerBody(props) {
|
|
146
146
|
const [local, others] = splitProps(props, [
|
|
147
147
|
'class'
|
|
148
148
|
]);
|
|
149
|
-
return <ark.div
|
|
149
|
+
return <ark.div class={clsx(Drawer_module.body, local.class)} {...others} data-slot="drawer-body"/>;
|
|
150
150
|
}
|
|
151
151
|
function DrawerFooter(props) {
|
|
152
152
|
const [local, others] = splitProps(props, [
|
|
153
153
|
'class'
|
|
154
154
|
]);
|
|
155
|
-
return <ark.div
|
|
155
|
+
return <ark.div class={clsx(Drawer_module.footer, local.class)} {...others} data-slot="drawer-footer"/>;
|
|
156
156
|
}
|
|
157
157
|
const Drawer_Drawer = Object.assign(DrawerRoot, {
|
|
158
158
|
Root: DrawerRoot,
|
|
@@ -10,80 +10,87 @@ function EditableRoot(props) {
|
|
|
10
10
|
'class'
|
|
11
11
|
]);
|
|
12
12
|
return createComponent(Editable.Root, mergeProps({
|
|
13
|
-
"data-slot": "editable-root",
|
|
14
13
|
get activationMode () {
|
|
15
14
|
return local.activationMode ?? 'dblclick';
|
|
16
15
|
},
|
|
17
16
|
get ["class"] () {
|
|
18
17
|
return clsx(Editable_module.root, local.class);
|
|
19
18
|
}
|
|
20
|
-
}, others
|
|
19
|
+
}, others, {
|
|
20
|
+
"data-slot": "editable-root"
|
|
21
|
+
}));
|
|
21
22
|
}
|
|
22
23
|
function EditableRootProvider(props) {
|
|
23
24
|
const [local, others] = splitProps(props, [
|
|
24
25
|
'class'
|
|
25
26
|
]);
|
|
26
27
|
return createComponent(Editable.RootProvider, mergeProps({
|
|
27
|
-
"data-slot": "editable-root-provider",
|
|
28
28
|
get ["class"] () {
|
|
29
29
|
return clsx(Editable_module.root, local.class);
|
|
30
30
|
}
|
|
31
|
-
}, others
|
|
31
|
+
}, others, {
|
|
32
|
+
"data-slot": "editable-root-provider"
|
|
33
|
+
}));
|
|
32
34
|
}
|
|
33
35
|
function EditableLabel(props) {
|
|
34
36
|
const [local, others] = splitProps(props, [
|
|
35
37
|
'class'
|
|
36
38
|
]);
|
|
37
39
|
return createComponent(Editable.Label, mergeProps({
|
|
38
|
-
"data-slot": "editable-label",
|
|
39
40
|
get ["class"] () {
|
|
40
41
|
return clsx(Editable_module.label, local.class);
|
|
41
42
|
}
|
|
42
|
-
}, others
|
|
43
|
+
}, others, {
|
|
44
|
+
"data-slot": "editable-label"
|
|
45
|
+
}));
|
|
43
46
|
}
|
|
44
47
|
function EditableArea(props) {
|
|
45
48
|
const [local, others] = splitProps(props, [
|
|
46
49
|
'class'
|
|
47
50
|
]);
|
|
48
51
|
return createComponent(Editable.Area, mergeProps({
|
|
49
|
-
"data-slot": "editable-area",
|
|
50
52
|
get ["class"] () {
|
|
51
53
|
return clsx(Editable_module.area, local.class);
|
|
52
54
|
}
|
|
53
|
-
}, others
|
|
55
|
+
}, others, {
|
|
56
|
+
"data-slot": "editable-area"
|
|
57
|
+
}));
|
|
54
58
|
}
|
|
55
59
|
function EditableInput(props) {
|
|
56
60
|
const [local, others] = splitProps(props, [
|
|
57
61
|
'class'
|
|
58
62
|
]);
|
|
59
63
|
return createComponent(Editable.Input, mergeProps({
|
|
60
|
-
"data-slot": "editable-input",
|
|
61
64
|
get ["class"] () {
|
|
62
65
|
return clsx(Editable_module.input, local.class);
|
|
63
66
|
}
|
|
64
|
-
}, others
|
|
67
|
+
}, others, {
|
|
68
|
+
"data-slot": "editable-input"
|
|
69
|
+
}));
|
|
65
70
|
}
|
|
66
71
|
function EditablePreview(props) {
|
|
67
72
|
const [local, others] = splitProps(props, [
|
|
68
73
|
'class'
|
|
69
74
|
]);
|
|
70
75
|
return createComponent(Editable.Preview, mergeProps({
|
|
71
|
-
"data-slot": "editable-preview",
|
|
72
76
|
get ["class"] () {
|
|
73
77
|
return clsx(Editable_module.preview, local.class);
|
|
74
78
|
}
|
|
75
|
-
}, others
|
|
79
|
+
}, others, {
|
|
80
|
+
"data-slot": "editable-preview"
|
|
81
|
+
}));
|
|
76
82
|
}
|
|
77
83
|
function EditableControl(props) {
|
|
78
84
|
const [local, others] = splitProps(props, [
|
|
79
85
|
'class'
|
|
80
86
|
]);
|
|
81
87
|
return createComponent(Editable.Control, mergeProps({
|
|
82
|
-
"data-slot": "editable-control",
|
|
83
88
|
get ["class"] () {
|
|
84
89
|
return clsx(Editable_module.control, local.class);
|
|
85
90
|
}
|
|
86
|
-
}, others
|
|
91
|
+
}, others, {
|
|
92
|
+
"data-slot": "editable-control"
|
|
93
|
+
}));
|
|
87
94
|
}
|
|
88
95
|
function EditableEditTrigger(props) {
|
|
89
96
|
const [local, others] = splitProps(props, [
|
|
@@ -92,11 +99,11 @@ function EditableEditTrigger(props) {
|
|
|
92
99
|
]);
|
|
93
100
|
const resolvedChildren = children(()=>local.children);
|
|
94
101
|
return createComponent(Editable.EditTrigger, mergeProps({
|
|
95
|
-
"data-slot": "editable-edit-trigger",
|
|
96
102
|
get ["class"] () {
|
|
97
103
|
return clsx(Editable_module.trigger, local.class);
|
|
98
104
|
}
|
|
99
105
|
}, others, {
|
|
106
|
+
"data-slot": "editable-edit-trigger",
|
|
100
107
|
get children () {
|
|
101
108
|
return resolvedChildren() ?? createComponent(PencilIcon, {});
|
|
102
109
|
}
|
|
@@ -109,11 +116,11 @@ function EditableSubmitTrigger(props) {
|
|
|
109
116
|
]);
|
|
110
117
|
const resolvedChildren = children(()=>local.children);
|
|
111
118
|
return createComponent(Editable.SubmitTrigger, mergeProps({
|
|
112
|
-
"data-slot": "editable-submit-trigger",
|
|
113
119
|
get ["class"] () {
|
|
114
120
|
return clsx(Editable_module.trigger, local.class);
|
|
115
121
|
}
|
|
116
122
|
}, others, {
|
|
123
|
+
"data-slot": "editable-submit-trigger",
|
|
117
124
|
get children () {
|
|
118
125
|
return resolvedChildren() ?? createComponent(CheckIcon, {});
|
|
119
126
|
}
|
|
@@ -126,11 +133,11 @@ function EditableCancelTrigger(props) {
|
|
|
126
133
|
]);
|
|
127
134
|
const resolvedChildren = children(()=>local.children);
|
|
128
135
|
return createComponent(Editable.CancelTrigger, mergeProps({
|
|
129
|
-
"data-slot": "editable-cancel-trigger",
|
|
130
136
|
get ["class"] () {
|
|
131
137
|
return clsx(Editable_module.trigger, local.class);
|
|
132
138
|
}
|
|
133
139
|
}, others, {
|
|
140
|
+
"data-slot": "editable-cancel-trigger",
|
|
134
141
|
get children () {
|
|
135
142
|
return resolvedChildren() ?? createComponent(CloseIcon, {});
|
|
136
143
|
}
|
|
@@ -8,43 +8,43 @@ function EditableRoot(props) {
|
|
|
8
8
|
'activationMode',
|
|
9
9
|
'class'
|
|
10
10
|
]);
|
|
11
|
-
return <Editable.Root
|
|
11
|
+
return <Editable.Root activationMode={local.activationMode ?? 'dblclick'} class={clsx(Editable_module.root, local.class)} {...others} data-slot="editable-root"/>;
|
|
12
12
|
}
|
|
13
13
|
function EditableRootProvider(props) {
|
|
14
14
|
const [local, others] = splitProps(props, [
|
|
15
15
|
'class'
|
|
16
16
|
]);
|
|
17
|
-
return <Editable.RootProvider
|
|
17
|
+
return <Editable.RootProvider class={clsx(Editable_module.root, local.class)} {...others} data-slot="editable-root-provider"/>;
|
|
18
18
|
}
|
|
19
19
|
function EditableLabel(props) {
|
|
20
20
|
const [local, others] = splitProps(props, [
|
|
21
21
|
'class'
|
|
22
22
|
]);
|
|
23
|
-
return <Editable.Label
|
|
23
|
+
return <Editable.Label class={clsx(Editable_module.label, local.class)} {...others} data-slot="editable-label"/>;
|
|
24
24
|
}
|
|
25
25
|
function EditableArea(props) {
|
|
26
26
|
const [local, others] = splitProps(props, [
|
|
27
27
|
'class'
|
|
28
28
|
]);
|
|
29
|
-
return <Editable.Area
|
|
29
|
+
return <Editable.Area class={clsx(Editable_module.area, local.class)} {...others} data-slot="editable-area"/>;
|
|
30
30
|
}
|
|
31
31
|
function EditableInput(props) {
|
|
32
32
|
const [local, others] = splitProps(props, [
|
|
33
33
|
'class'
|
|
34
34
|
]);
|
|
35
|
-
return <Editable.Input
|
|
35
|
+
return <Editable.Input class={clsx(Editable_module.input, local.class)} {...others} data-slot="editable-input"/>;
|
|
36
36
|
}
|
|
37
37
|
function EditablePreview(props) {
|
|
38
38
|
const [local, others] = splitProps(props, [
|
|
39
39
|
'class'
|
|
40
40
|
]);
|
|
41
|
-
return <Editable.Preview
|
|
41
|
+
return <Editable.Preview class={clsx(Editable_module.preview, local.class)} {...others} data-slot="editable-preview"/>;
|
|
42
42
|
}
|
|
43
43
|
function EditableControl(props) {
|
|
44
44
|
const [local, others] = splitProps(props, [
|
|
45
45
|
'class'
|
|
46
46
|
]);
|
|
47
|
-
return <Editable.Control
|
|
47
|
+
return <Editable.Control class={clsx(Editable_module.control, local.class)} {...others} data-slot="editable-control"/>;
|
|
48
48
|
}
|
|
49
49
|
function EditableEditTrigger(props) {
|
|
50
50
|
const [local, others] = splitProps(props, [
|
|
@@ -52,7 +52,7 @@ function EditableEditTrigger(props) {
|
|
|
52
52
|
'class'
|
|
53
53
|
]);
|
|
54
54
|
const resolvedChildren = children(()=>local.children);
|
|
55
|
-
return <Editable.EditTrigger
|
|
55
|
+
return <Editable.EditTrigger class={clsx(Editable_module.trigger, local.class)} {...others} data-slot="editable-edit-trigger">
|
|
56
56
|
{resolvedChildren() ?? <PencilIcon/>}
|
|
57
57
|
</Editable.EditTrigger>;
|
|
58
58
|
}
|
|
@@ -62,7 +62,7 @@ function EditableSubmitTrigger(props) {
|
|
|
62
62
|
'class'
|
|
63
63
|
]);
|
|
64
64
|
const resolvedChildren = children(()=>local.children);
|
|
65
|
-
return <Editable.SubmitTrigger
|
|
65
|
+
return <Editable.SubmitTrigger class={clsx(Editable_module.trigger, local.class)} {...others} data-slot="editable-submit-trigger">
|
|
66
66
|
{resolvedChildren() ?? <CheckIcon/>}
|
|
67
67
|
</Editable.SubmitTrigger>;
|
|
68
68
|
}
|
|
@@ -72,7 +72,7 @@ function EditableCancelTrigger(props) {
|
|
|
72
72
|
'class'
|
|
73
73
|
]);
|
|
74
74
|
const resolvedChildren = children(()=>local.children);
|
|
75
|
-
return <Editable.CancelTrigger
|
|
75
|
+
return <Editable.CancelTrigger class={clsx(Editable_module.trigger, local.class)} {...others} data-slot="editable-cancel-trigger">
|
|
76
76
|
{resolvedChildren() ?? <CloseIcon/>}
|
|
77
77
|
</Editable.CancelTrigger>;
|
|
78
78
|
}
|
|
@@ -16,11 +16,11 @@ function FileUploadRoot(props) {
|
|
|
16
16
|
get asChild () {
|
|
17
17
|
return local.asChild;
|
|
18
18
|
},
|
|
19
|
-
"data-slot": "file-upload-root",
|
|
20
19
|
get ["class"] () {
|
|
21
20
|
return clsx(FileUpload_module.root, local.class);
|
|
22
21
|
}
|
|
23
22
|
}, others, {
|
|
23
|
+
"data-slot": "file-upload-root",
|
|
24
24
|
get children () {
|
|
25
25
|
return local.children;
|
|
26
26
|
}
|
|
@@ -36,11 +36,11 @@ function FileUploadRootProvider(props) {
|
|
|
36
36
|
get asChild () {
|
|
37
37
|
return local.asChild;
|
|
38
38
|
},
|
|
39
|
-
"data-slot": "file-upload-root-provider",
|
|
40
39
|
get ["class"] () {
|
|
41
40
|
return clsx(FileUpload_module.root, local.class);
|
|
42
41
|
}
|
|
43
42
|
}, others, {
|
|
43
|
+
"data-slot": "file-upload-root-provider",
|
|
44
44
|
get children () {
|
|
45
45
|
return local.children;
|
|
46
46
|
}
|
|
@@ -51,22 +51,24 @@ function FileUploadLabel(props) {
|
|
|
51
51
|
'class'
|
|
52
52
|
]);
|
|
53
53
|
return createComponent(FileUpload.Label, mergeProps({
|
|
54
|
-
"data-slot": "file-upload-label",
|
|
55
54
|
get ["class"] () {
|
|
56
55
|
return clsx(FileUpload_module.label, local.class);
|
|
57
56
|
}
|
|
58
|
-
}, others
|
|
57
|
+
}, others, {
|
|
58
|
+
"data-slot": "file-upload-label"
|
|
59
|
+
}));
|
|
59
60
|
}
|
|
60
61
|
function FileUploadDropzone(props) {
|
|
61
62
|
const [local, others] = splitProps(props, [
|
|
62
63
|
'class'
|
|
63
64
|
]);
|
|
64
65
|
return createComponent(FileUpload.Dropzone, mergeProps({
|
|
65
|
-
"data-slot": "file-upload-dropzone",
|
|
66
66
|
get ["class"] () {
|
|
67
67
|
return clsx(FileUpload_module.dropzone, local.class);
|
|
68
68
|
}
|
|
69
|
-
}, others
|
|
69
|
+
}, others, {
|
|
70
|
+
"data-slot": "file-upload-dropzone"
|
|
71
|
+
}));
|
|
70
72
|
}
|
|
71
73
|
function FileUploadDropzoneIcon(props) {
|
|
72
74
|
const [local, others] = splitProps(props, [
|
|
@@ -76,11 +78,11 @@ function FileUploadDropzoneIcon(props) {
|
|
|
76
78
|
const resolvedChildren = children(()=>local.children);
|
|
77
79
|
return createComponent(ark.span, mergeProps({
|
|
78
80
|
"aria-hidden": "true",
|
|
79
|
-
"data-slot": "file-upload-dropzone-icon",
|
|
80
81
|
get ["class"] () {
|
|
81
82
|
return clsx(FileUpload_module.dropzoneIcon, local.class);
|
|
82
83
|
}
|
|
83
84
|
}, others, {
|
|
85
|
+
"data-slot": "file-upload-dropzone-icon",
|
|
84
86
|
get children () {
|
|
85
87
|
return resolvedChildren() ?? createComponent(UploadIcon, {});
|
|
86
88
|
}
|
|
@@ -91,66 +93,72 @@ function FileUploadTrigger(props) {
|
|
|
91
93
|
'class'
|
|
92
94
|
]);
|
|
93
95
|
return createComponent(FileUpload.Trigger, mergeProps({
|
|
94
|
-
"data-slot": "file-upload-trigger",
|
|
95
96
|
get ["class"] () {
|
|
96
97
|
return clsx(FileUpload_module.trigger, local.class);
|
|
97
98
|
}
|
|
98
|
-
}, others
|
|
99
|
+
}, others, {
|
|
100
|
+
"data-slot": "file-upload-trigger"
|
|
101
|
+
}));
|
|
99
102
|
}
|
|
100
103
|
function FileUploadItemGroup(props) {
|
|
101
104
|
const [local, others] = splitProps(props, [
|
|
102
105
|
'class'
|
|
103
106
|
]);
|
|
104
107
|
return createComponent(FileUpload.ItemGroup, mergeProps({
|
|
105
|
-
"data-slot": "file-upload-item-group",
|
|
106
108
|
get ["class"] () {
|
|
107
109
|
return clsx(FileUpload_module.itemGroup, local.class);
|
|
108
110
|
}
|
|
109
|
-
}, others
|
|
111
|
+
}, others, {
|
|
112
|
+
"data-slot": "file-upload-item-group"
|
|
113
|
+
}));
|
|
110
114
|
}
|
|
111
115
|
function FileUploadItem(props) {
|
|
112
116
|
const [local, others] = splitProps(props, [
|
|
113
117
|
'class'
|
|
114
118
|
]);
|
|
115
119
|
return createComponent(FileUpload.Item, mergeProps({
|
|
116
|
-
"data-slot": "file-upload-item",
|
|
117
120
|
get ["class"] () {
|
|
118
121
|
return clsx(FileUpload_module.item, local.class);
|
|
119
122
|
}
|
|
120
|
-
}, others
|
|
123
|
+
}, others, {
|
|
124
|
+
"data-slot": "file-upload-item"
|
|
125
|
+
}));
|
|
121
126
|
}
|
|
122
127
|
function FileUploadItemPreview(props) {
|
|
123
128
|
const [local, others] = splitProps(props, [
|
|
124
129
|
'class'
|
|
125
130
|
]);
|
|
126
131
|
return createComponent(FileUpload.ItemPreview, mergeProps({
|
|
127
|
-
"data-slot": "file-upload-item-preview",
|
|
128
132
|
get ["class"] () {
|
|
129
133
|
return clsx(FileUpload_module.itemPreview, local.class);
|
|
130
134
|
}
|
|
131
|
-
}, others
|
|
135
|
+
}, others, {
|
|
136
|
+
"data-slot": "file-upload-item-preview"
|
|
137
|
+
}));
|
|
132
138
|
}
|
|
133
139
|
function FileUploadItemPreviewImage(props) {
|
|
134
140
|
const [local, others] = splitProps(props, [
|
|
135
141
|
'class'
|
|
136
142
|
]);
|
|
137
143
|
return createComponent(FileUpload.ItemPreviewImage, mergeProps({
|
|
138
|
-
"data-slot": "file-upload-item-preview-image",
|
|
139
144
|
get ["class"] () {
|
|
140
145
|
return clsx(FileUpload_module.itemPreviewImage, local.class);
|
|
141
146
|
}
|
|
142
|
-
}, others
|
|
147
|
+
}, others, {
|
|
148
|
+
"data-slot": "file-upload-item-preview-image"
|
|
149
|
+
}));
|
|
143
150
|
}
|
|
144
151
|
function FileUploadItemPreviewIcon(props) {
|
|
145
152
|
const [local, others] = splitProps(props, [
|
|
146
153
|
'class'
|
|
147
154
|
]);
|
|
148
155
|
return createComponent(FileIcon, mergeProps({
|
|
149
|
-
"data-slot": "file-upload-item-preview-icon",
|
|
150
156
|
get ["class"] () {
|
|
151
157
|
return clsx(FileUpload_module.itemPreviewIcon, local.class);
|
|
152
158
|
}
|
|
153
|
-
}, others
|
|
159
|
+
}, others, {
|
|
160
|
+
"data-slot": "file-upload-item-preview-icon"
|
|
161
|
+
}));
|
|
154
162
|
}
|
|
155
163
|
function getFileTypeLabel(file) {
|
|
156
164
|
const extension = file.name.split('.').pop();
|
|
@@ -164,22 +172,24 @@ function FileUploadItemName(props) {
|
|
|
164
172
|
'class'
|
|
165
173
|
]);
|
|
166
174
|
return createComponent(FileUpload.ItemName, mergeProps({
|
|
167
|
-
"data-slot": "file-upload-item-name",
|
|
168
175
|
get ["class"] () {
|
|
169
176
|
return clsx(FileUpload_module.itemName, local.class);
|
|
170
177
|
}
|
|
171
|
-
}, others
|
|
178
|
+
}, others, {
|
|
179
|
+
"data-slot": "file-upload-item-name"
|
|
180
|
+
}));
|
|
172
181
|
}
|
|
173
182
|
function FileUploadItemSizeText(props) {
|
|
174
183
|
const [local, others] = splitProps(props, [
|
|
175
184
|
'class'
|
|
176
185
|
]);
|
|
177
186
|
return createComponent(FileUpload.ItemSizeText, mergeProps({
|
|
178
|
-
"data-slot": "file-upload-item-size-text",
|
|
179
187
|
get ["class"] () {
|
|
180
188
|
return clsx(FileUpload_module.itemSizeText, local.class);
|
|
181
189
|
}
|
|
182
|
-
}, others
|
|
190
|
+
}, others, {
|
|
191
|
+
"data-slot": "file-upload-item-size-text"
|
|
192
|
+
}));
|
|
183
193
|
}
|
|
184
194
|
function FileUploadItemMetadata(props) {
|
|
185
195
|
const [local, others] = splitProps(props, [
|
|
@@ -187,11 +197,11 @@ function FileUploadItemMetadata(props) {
|
|
|
187
197
|
'file'
|
|
188
198
|
]);
|
|
189
199
|
return createComponent(ark.div, mergeProps({
|
|
190
|
-
"data-slot": "file-upload-item-metadata",
|
|
191
200
|
get ["class"] () {
|
|
192
201
|
return clsx(FileUpload_module.itemMetadata, local.class);
|
|
193
202
|
}
|
|
194
203
|
}, others, {
|
|
204
|
+
"data-slot": "file-upload-item-metadata",
|
|
195
205
|
get children () {
|
|
196
206
|
return [
|
|
197
207
|
createComponent(ark.span, {
|
|
@@ -211,11 +221,11 @@ function FileUploadItemDeleteTrigger(props) {
|
|
|
211
221
|
]);
|
|
212
222
|
const resolvedChildren = children(()=>local.children);
|
|
213
223
|
return createComponent(FileUpload.ItemDeleteTrigger, mergeProps({
|
|
214
|
-
"data-slot": "file-upload-item-delete-trigger",
|
|
215
224
|
get ["class"] () {
|
|
216
225
|
return clsx(FileUpload_module.itemDeleteTrigger, local.class);
|
|
217
226
|
}
|
|
218
227
|
}, others, {
|
|
228
|
+
"data-slot": "file-upload-item-delete-trigger",
|
|
219
229
|
get children () {
|
|
220
230
|
return resolvedChildren() ?? createComponent(TrashIcon, {});
|
|
221
231
|
}
|
|
@@ -269,7 +279,6 @@ function FileUploadClearTrigger(props) {
|
|
|
269
279
|
get asChild () {
|
|
270
280
|
return local.asChild;
|
|
271
281
|
},
|
|
272
|
-
"data-slot": "file-upload-clear-trigger",
|
|
273
282
|
get ["class"] () {
|
|
274
283
|
return triggerClass();
|
|
275
284
|
},
|
|
@@ -280,6 +289,7 @@ function FileUploadClearTrigger(props) {
|
|
|
280
289
|
return local['aria-labelledby'];
|
|
281
290
|
}
|
|
282
291
|
}, others, {
|
|
292
|
+
"data-slot": "file-upload-clear-trigger",
|
|
283
293
|
get children () {
|
|
284
294
|
return resolvedChildren();
|
|
285
295
|
}
|
|
@@ -296,11 +306,12 @@ function FileUploadClearTrigger(props) {
|
|
|
296
306
|
return resolvedChildren() ?? createComponent(CloseIcon, {});
|
|
297
307
|
}
|
|
298
308
|
})),
|
|
299
|
-
"data-slot": "file-upload-clear-trigger",
|
|
300
309
|
get ["class"] () {
|
|
301
310
|
return triggerClass();
|
|
302
311
|
}
|
|
303
|
-
}, others
|
|
312
|
+
}, others, {
|
|
313
|
+
"data-slot": "file-upload-clear-trigger"
|
|
314
|
+
}));
|
|
304
315
|
}
|
|
305
316
|
const FileUpload_FileUpload = Object.assign(FileUploadRoot, {
|
|
306
317
|
Root: FileUploadRoot,
|