@moduix/solid-tailwind 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +7 -7
- 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 +10 -11
- package/dist/components/avatar/Avatar.js +10 -7
- package/dist/components/avatar/Avatar.jsx +6 -6
- package/dist/components/bleed/Bleed.js +1 -1
- package/dist/components/bleed/Bleed.jsx +1 -1
- package/dist/components/button/Button.js +1 -6
- package/dist/components/button/Button.jsx +2 -4
- package/dist/components/card/Card.js +54 -44
- package/dist/components/card/Card.jsx +12 -12
- 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 +71 -52
- package/dist/components/command-palette/CommandPalette.jsx +28 -31
- package/dist/components/container/Container.js +5 -5
- package/dist/components/container/Container.jsx +5 -5
- 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/empty/Empty.js +1 -1
- package/dist/components/empty/Empty.jsx +1 -1
- 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/input-group/InputGroup.js +3 -2
- package/dist/components/input-group/InputGroup.jsx +3 -2
- package/dist/components/json-tree-view/JsonTreeView.js +1 -1
- package/dist/components/json-tree-view/JsonTreeView.jsx +1 -1
- 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 +9 -9
- package/dist/components/menu/Menu.js +66 -44
- package/dist/components/menu/Menu.jsx +28 -28
- 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 +17 -12
- 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 +72 -43
- package/dist/components/sidebar/Sidebar.jsx +34 -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 +20 -9
- package/dist/components/split-button/SplitButton.jsx +13 -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 +38 -26
- 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 +1 -1
|
@@ -15,11 +15,11 @@ function FileUploadRoot(props) {
|
|
|
15
15
|
get asChild () {
|
|
16
16
|
return local.asChild;
|
|
17
17
|
},
|
|
18
|
-
"data-slot": "file-upload-root",
|
|
19
18
|
get ["class"] () {
|
|
20
19
|
return cn('box-border flex w-full max-w-md flex-col items-start gap-3 text-foreground', local.class);
|
|
21
20
|
}
|
|
22
21
|
}, others, {
|
|
22
|
+
"data-slot": "file-upload-root",
|
|
23
23
|
get children () {
|
|
24
24
|
return local.children;
|
|
25
25
|
}
|
|
@@ -35,11 +35,11 @@ function FileUploadRootProvider(props) {
|
|
|
35
35
|
get asChild () {
|
|
36
36
|
return local.asChild;
|
|
37
37
|
},
|
|
38
|
-
"data-slot": "file-upload-root-provider",
|
|
39
38
|
get ["class"] () {
|
|
40
39
|
return cn('box-border flex w-full max-w-md flex-col items-start gap-3 text-foreground', local.class);
|
|
41
40
|
}
|
|
42
41
|
}, others, {
|
|
42
|
+
"data-slot": "file-upload-root-provider",
|
|
43
43
|
get children () {
|
|
44
44
|
return local.children;
|
|
45
45
|
}
|
|
@@ -50,22 +50,24 @@ function FileUploadLabel(props) {
|
|
|
50
50
|
'class'
|
|
51
51
|
]);
|
|
52
52
|
return createComponent(FileUpload.Label, mergeProps({
|
|
53
|
-
"data-slot": "file-upload-label",
|
|
54
53
|
get ["class"] () {
|
|
55
54
|
return cn('text-sm font-medium text-foreground data-disabled:opacity-50', local.class);
|
|
56
55
|
}
|
|
57
|
-
}, others
|
|
56
|
+
}, others, {
|
|
57
|
+
"data-slot": "file-upload-label"
|
|
58
|
+
}));
|
|
58
59
|
}
|
|
59
60
|
function FileUploadDropzone(props) {
|
|
60
61
|
const [local, others] = splitProps(props, [
|
|
61
62
|
'class'
|
|
62
63
|
]);
|
|
63
64
|
return createComponent(FileUpload.Dropzone, mergeProps({
|
|
64
|
-
"data-slot": "file-upload-dropzone",
|
|
65
65
|
get ["class"] () {
|
|
66
66
|
return cn('box-border grid min-h-32 w-full place-items-center gap-3 rounded-md border border-dashed border-border bg-background p-5 text-center text-muted-foreground transition-[border-color,background-color,color,opacity] duration-200 ease-in-out focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring data-disabled:cursor-default data-disabled:opacity-50 data-dragging:border-primary data-dragging:bg-accent data-dragging:text-foreground data-invalid:border-destructive data-readonly:cursor-default data-readonly:opacity-50 motion-reduce:transition-none [&[role=button]:not([data-disabled],[data-readonly])]:cursor-pointer', local.class);
|
|
67
67
|
}
|
|
68
|
-
}, others
|
|
68
|
+
}, others, {
|
|
69
|
+
"data-slot": "file-upload-dropzone"
|
|
70
|
+
}));
|
|
69
71
|
}
|
|
70
72
|
function FileUploadDropzoneIcon(props) {
|
|
71
73
|
const [local, others] = splitProps(props, [
|
|
@@ -75,11 +77,11 @@ function FileUploadDropzoneIcon(props) {
|
|
|
75
77
|
const resolvedChildren = children(()=>local.children);
|
|
76
78
|
return createComponent(ark.span, mergeProps({
|
|
77
79
|
"aria-hidden": "true",
|
|
78
|
-
"data-slot": "file-upload-dropzone-icon",
|
|
79
80
|
get ["class"] () {
|
|
80
81
|
return cn('box-border inline-flex size-10 items-center justify-center rounded-full border border-border bg-muted text-foreground [&>svg]:size-4', local.class);
|
|
81
82
|
}
|
|
82
83
|
}, others, {
|
|
84
|
+
"data-slot": "file-upload-dropzone-icon",
|
|
83
85
|
get children () {
|
|
84
86
|
return resolvedChildren() ?? createComponent(UploadIcon, {});
|
|
85
87
|
}
|
|
@@ -90,66 +92,72 @@ function FileUploadTrigger(props) {
|
|
|
90
92
|
'class'
|
|
91
93
|
]);
|
|
92
94
|
return createComponent(FileUpload.Trigger, mergeProps({
|
|
93
|
-
"data-slot": "file-upload-trigger",
|
|
94
95
|
get ["class"] () {
|
|
95
96
|
return cn('box-border inline-flex min-h-control-md cursor-pointer appearance-none items-center justify-center gap-2 rounded-md border border-primary bg-primary px-4 text-sm leading-5 font-medium whitespace-nowrap text-primary-foreground transition-[border-color,background-color,color,opacity] duration-200 ease-in-out select-none focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:cursor-default data-disabled:pointer-events-none data-disabled:cursor-default data-invalid:border-destructive data-readonly:pointer-events-none data-readonly:cursor-default motion-reduce:transition-none [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-readonly]):hover]:bg-foreground', local.class);
|
|
96
97
|
}
|
|
97
|
-
}, others
|
|
98
|
+
}, others, {
|
|
99
|
+
"data-slot": "file-upload-trigger"
|
|
100
|
+
}));
|
|
98
101
|
}
|
|
99
102
|
function FileUploadItemGroup(props) {
|
|
100
103
|
const [local, others] = splitProps(props, [
|
|
101
104
|
'class'
|
|
102
105
|
]);
|
|
103
106
|
return createComponent(FileUpload.ItemGroup, mergeProps({
|
|
104
|
-
"data-slot": "file-upload-item-group",
|
|
105
107
|
get ["class"] () {
|
|
106
108
|
return cn('flex w-full flex-wrap items-start gap-2 empty:hidden', local.class);
|
|
107
109
|
}
|
|
108
|
-
}, others
|
|
110
|
+
}, others, {
|
|
111
|
+
"data-slot": "file-upload-item-group"
|
|
112
|
+
}));
|
|
109
113
|
}
|
|
110
114
|
function FileUploadItem(props) {
|
|
111
115
|
const [local, others] = splitProps(props, [
|
|
112
116
|
'class'
|
|
113
117
|
]);
|
|
114
118
|
return createComponent(FileUpload.Item, mergeProps({
|
|
115
|
-
"data-slot": "file-upload-item",
|
|
116
119
|
get ["class"] () {
|
|
117
120
|
return cn('group/item box-border grid min-h-control-md shrink-0 grow basis-full grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 gap-y-1 rounded-md border border-border bg-background px-3 py-2 text-foreground has-[[data-slot=file-upload-item-preview-image]]:min-h-0 has-[[data-slot=file-upload-item-preview-image]]:max-w-40 has-[[data-slot=file-upload-item-preview-image]]:grow-0 has-[[data-slot=file-upload-item-preview-image]]:grid-cols-[minmax(0,1fr)_auto] has-[[data-slot=file-upload-item-preview-image]]:grid-rows-[auto_auto_auto] has-[[data-slot=file-upload-item-preview-image]]:items-start has-[[data-slot=file-upload-item-preview]]:min-h-control-xl has-[[data-slot=file-upload-item-preview]]:grid-cols-[auto_minmax(0,1fr)_auto] has-[[data-slot=file-upload-item-preview]]:py-2 data-disabled:opacity-50 data-[type=rejected]:border-destructive', local.class);
|
|
118
121
|
}
|
|
119
|
-
}, others
|
|
122
|
+
}, others, {
|
|
123
|
+
"data-slot": "file-upload-item"
|
|
124
|
+
}));
|
|
120
125
|
}
|
|
121
126
|
function FileUploadItemPreview(props) {
|
|
122
127
|
const [local, others] = splitProps(props, [
|
|
123
128
|
'class'
|
|
124
129
|
]);
|
|
125
130
|
return createComponent(FileUpload.ItemPreview, mergeProps({
|
|
126
|
-
"data-slot": "file-upload-item-preview",
|
|
127
131
|
get ["class"] () {
|
|
128
132
|
return cn('col-start-1 row-span-2 row-start-1 inline-flex size-10 items-center justify-center overflow-hidden rounded-sm bg-muted text-muted-foreground group-has-[[data-slot=file-upload-item-preview-image]]/item:col-span-2 group-has-[[data-slot=file-upload-item-preview-image]]/item:aspect-square group-has-[[data-slot=file-upload-item-preview-image]]/item:h-auto group-has-[[data-slot=file-upload-item-preview-image]]/item:w-full', local.class);
|
|
129
133
|
}
|
|
130
|
-
}, others
|
|
134
|
+
}, others, {
|
|
135
|
+
"data-slot": "file-upload-item-preview"
|
|
136
|
+
}));
|
|
131
137
|
}
|
|
132
138
|
function FileUploadItemPreviewImage(props) {
|
|
133
139
|
const [local, others] = splitProps(props, [
|
|
134
140
|
'class'
|
|
135
141
|
]);
|
|
136
142
|
return createComponent(FileUpload.ItemPreviewImage, mergeProps({
|
|
137
|
-
"data-slot": "file-upload-item-preview-image",
|
|
138
143
|
get ["class"] () {
|
|
139
144
|
return cn('size-full object-cover', local.class);
|
|
140
145
|
}
|
|
141
|
-
}, others
|
|
146
|
+
}, others, {
|
|
147
|
+
"data-slot": "file-upload-item-preview-image"
|
|
148
|
+
}));
|
|
142
149
|
}
|
|
143
150
|
function FileUploadItemPreviewIcon(props) {
|
|
144
151
|
const [local, others] = splitProps(props, [
|
|
145
152
|
'class'
|
|
146
153
|
]);
|
|
147
154
|
return createComponent(FileIcon, mergeProps({
|
|
148
|
-
"data-slot": "file-upload-item-preview-icon",
|
|
149
155
|
get ["class"] () {
|
|
150
156
|
return cn('size-4', local.class);
|
|
151
157
|
}
|
|
152
|
-
}, others
|
|
158
|
+
}, others, {
|
|
159
|
+
"data-slot": "file-upload-item-preview-icon"
|
|
160
|
+
}));
|
|
153
161
|
}
|
|
154
162
|
function getFileTypeLabel(file) {
|
|
155
163
|
const extension = file.name.split('.').pop();
|
|
@@ -163,22 +171,24 @@ function FileUploadItemName(props) {
|
|
|
163
171
|
'class'
|
|
164
172
|
]);
|
|
165
173
|
return createComponent(FileUpload.ItemName, mergeProps({
|
|
166
|
-
"data-slot": "file-upload-item-name",
|
|
167
174
|
get ["class"] () {
|
|
168
175
|
return cn('col-start-1 line-clamp-1 min-w-0 text-sm leading-5 font-medium group-has-[[data-slot=file-upload-item-preview-image]]/item:col-start-1 group-has-[[data-slot=file-upload-item-preview-image]]/item:row-start-2 group-has-[[data-slot=file-upload-item-preview-image]]/item:self-end group-has-[[data-slot=file-upload-item-preview]]/item:col-start-2', local.class);
|
|
169
176
|
}
|
|
170
|
-
}, others
|
|
177
|
+
}, others, {
|
|
178
|
+
"data-slot": "file-upload-item-name"
|
|
179
|
+
}));
|
|
171
180
|
}
|
|
172
181
|
function FileUploadItemSizeText(props) {
|
|
173
182
|
const [local, others] = splitProps(props, [
|
|
174
183
|
'class'
|
|
175
184
|
]);
|
|
176
185
|
return createComponent(FileUpload.ItemSizeText, mergeProps({
|
|
177
|
-
"data-slot": "file-upload-item-size-text",
|
|
178
186
|
get ["class"] () {
|
|
179
187
|
return cn('text-xs leading-4 text-muted-foreground', local.class);
|
|
180
188
|
}
|
|
181
|
-
}, others
|
|
189
|
+
}, others, {
|
|
190
|
+
"data-slot": "file-upload-item-size-text"
|
|
191
|
+
}));
|
|
182
192
|
}
|
|
183
193
|
function FileUploadItemMetadata(props) {
|
|
184
194
|
const [local, others] = splitProps(props, [
|
|
@@ -186,11 +196,11 @@ function FileUploadItemMetadata(props) {
|
|
|
186
196
|
'file'
|
|
187
197
|
]);
|
|
188
198
|
return createComponent(ark.div, mergeProps({
|
|
189
|
-
"data-slot": "file-upload-item-metadata",
|
|
190
199
|
get ["class"] () {
|
|
191
200
|
return cn("col-start-1 flex items-center gap-1 text-xs leading-4 text-muted-foreground group-has-[[data-slot=file-upload-item-preview-image]]/item:col-start-1 group-has-[[data-slot=file-upload-item-preview-image]]/item:row-start-3 group-has-[[data-slot=file-upload-item-preview]]/item:col-start-2 [&>[data-slot='file-upload-item-size-text']::before]:me-1 [&>[data-slot='file-upload-item-size-text']::before]:content-['·']", local.class);
|
|
192
201
|
}
|
|
193
202
|
}, others, {
|
|
203
|
+
"data-slot": "file-upload-item-metadata",
|
|
194
204
|
get children () {
|
|
195
205
|
return [
|
|
196
206
|
createComponent(ark.span, {
|
|
@@ -210,11 +220,11 @@ function FileUploadItemDeleteTrigger(props) {
|
|
|
210
220
|
]);
|
|
211
221
|
const resolvedChildren = children(()=>local.children);
|
|
212
222
|
return createComponent(FileUpload.ItemDeleteTrigger, mergeProps({
|
|
213
|
-
"data-slot": "file-upload-item-delete-trigger",
|
|
214
223
|
get ["class"] () {
|
|
215
224
|
return cn('col-start-2 row-start-1 box-border inline-flex size-control-sm shrink-0 cursor-pointer appearance-none items-center justify-center justify-self-end rounded-sm border-0 bg-transparent p-0 text-muted-foreground transition-[background-color,color,opacity] duration-200 ease-in-out group-has-[[data-slot=file-upload-item-preview-image]]/item:col-start-2 group-has-[[data-slot=file-upload-item-preview-image]]/item:row-start-2 group-has-[[data-slot=file-upload-item-preview-image]]/item:self-center group-has-[[data-slot=file-upload-item-preview]]/item:col-start-3 group-has-[[data-slot=file-upload-item-preview]]/item:row-span-2 group-has-[[data-slot=file-upload-item-preview]]/item:row-start-1 group-has-[[data-slot=file-upload-item-size-text]]/item:row-span-2 group-has-[[data-slot=file-upload-item-size-text]]/item:row-start-1 focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50 data-readonly:pointer-events-none data-readonly:cursor-default data-readonly:opacity-50 motion-reduce:transition-none [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-readonly]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-readonly]):hover]:text-foreground', local.class);
|
|
216
225
|
}
|
|
217
226
|
}, others, {
|
|
227
|
+
"data-slot": "file-upload-item-delete-trigger",
|
|
218
228
|
get children () {
|
|
219
229
|
return resolvedChildren() ?? createComponent(TrashIcon, {});
|
|
220
230
|
}
|
|
@@ -268,7 +278,6 @@ function FileUploadClearTrigger(props) {
|
|
|
268
278
|
get asChild () {
|
|
269
279
|
return local.asChild;
|
|
270
280
|
},
|
|
271
|
-
"data-slot": "file-upload-clear-trigger",
|
|
272
281
|
get ["class"] () {
|
|
273
282
|
return triggerClass();
|
|
274
283
|
},
|
|
@@ -279,6 +288,7 @@ function FileUploadClearTrigger(props) {
|
|
|
279
288
|
return local['aria-labelledby'];
|
|
280
289
|
}
|
|
281
290
|
}, others, {
|
|
291
|
+
"data-slot": "file-upload-clear-trigger",
|
|
282
292
|
get children () {
|
|
283
293
|
return resolvedChildren();
|
|
284
294
|
}
|
|
@@ -295,11 +305,12 @@ function FileUploadClearTrigger(props) {
|
|
|
295
305
|
return resolvedChildren() ?? createComponent(CloseIcon, {});
|
|
296
306
|
}
|
|
297
307
|
})),
|
|
298
|
-
"data-slot": "file-upload-clear-trigger",
|
|
299
308
|
get ["class"] () {
|
|
300
309
|
return triggerClass();
|
|
301
310
|
}
|
|
302
|
-
}, others
|
|
311
|
+
}, others, {
|
|
312
|
+
"data-slot": "file-upload-clear-trigger"
|
|
313
|
+
}));
|
|
303
314
|
}
|
|
304
315
|
const FileUpload_FileUpload = Object.assign(FileUploadRoot, {
|
|
305
316
|
Root: FileUploadRoot,
|
|
@@ -10,7 +10,7 @@ function FileUploadRoot(props) {
|
|
|
10
10
|
'children',
|
|
11
11
|
'class'
|
|
12
12
|
]);
|
|
13
|
-
return <FileUpload.Root asChild={local.asChild}
|
|
13
|
+
return <FileUpload.Root asChild={local.asChild} class={cn('box-border flex w-full max-w-md flex-col items-start gap-3 text-foreground', local.class)} {...others} data-slot="file-upload-root">
|
|
14
14
|
{local.children}
|
|
15
15
|
</FileUpload.Root>;
|
|
16
16
|
}
|
|
@@ -20,7 +20,7 @@ function FileUploadRootProvider(props) {
|
|
|
20
20
|
'children',
|
|
21
21
|
'class'
|
|
22
22
|
]);
|
|
23
|
-
return <FileUpload.RootProvider asChild={local.asChild}
|
|
23
|
+
return <FileUpload.RootProvider asChild={local.asChild} class={cn('box-border flex w-full max-w-md flex-col items-start gap-3 text-foreground', local.class)} {...others} data-slot="file-upload-root-provider">
|
|
24
24
|
{local.children}
|
|
25
25
|
</FileUpload.RootProvider>;
|
|
26
26
|
}
|
|
@@ -28,13 +28,13 @@ function FileUploadLabel(props) {
|
|
|
28
28
|
const [local, others] = splitProps(props, [
|
|
29
29
|
'class'
|
|
30
30
|
]);
|
|
31
|
-
return <FileUpload.Label
|
|
31
|
+
return <FileUpload.Label class={cn('text-sm font-medium text-foreground data-disabled:opacity-50', local.class)} {...others} data-slot="file-upload-label"/>;
|
|
32
32
|
}
|
|
33
33
|
function FileUploadDropzone(props) {
|
|
34
34
|
const [local, others] = splitProps(props, [
|
|
35
35
|
'class'
|
|
36
36
|
]);
|
|
37
|
-
return <FileUpload.Dropzone
|
|
37
|
+
return <FileUpload.Dropzone class={cn('box-border grid min-h-32 w-full place-items-center gap-3 rounded-md border border-dashed border-border bg-background p-5 text-center text-muted-foreground transition-[border-color,background-color,color,opacity] duration-200 ease-in-out focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring data-disabled:cursor-default data-disabled:opacity-50 data-dragging:border-primary data-dragging:bg-accent data-dragging:text-foreground data-invalid:border-destructive data-readonly:cursor-default data-readonly:opacity-50 motion-reduce:transition-none [&[role=button]:not([data-disabled],[data-readonly])]:cursor-pointer', local.class)} {...others} data-slot="file-upload-dropzone"/>;
|
|
38
38
|
}
|
|
39
39
|
function FileUploadDropzoneIcon(props) {
|
|
40
40
|
const [local, others] = splitProps(props, [
|
|
@@ -42,7 +42,7 @@ function FileUploadDropzoneIcon(props) {
|
|
|
42
42
|
'class'
|
|
43
43
|
]);
|
|
44
44
|
const resolvedChildren = children(()=>local.children);
|
|
45
|
-
return <ark.span aria-hidden="true"
|
|
45
|
+
return <ark.span aria-hidden="true" class={cn('box-border inline-flex size-10 items-center justify-center rounded-full border border-border bg-muted text-foreground [&>svg]:size-4', local.class)} {...others} data-slot="file-upload-dropzone-icon">
|
|
46
46
|
{resolvedChildren() ?? <UploadIcon/>}
|
|
47
47
|
</ark.span>;
|
|
48
48
|
}
|
|
@@ -50,37 +50,37 @@ function FileUploadTrigger(props) {
|
|
|
50
50
|
const [local, others] = splitProps(props, [
|
|
51
51
|
'class'
|
|
52
52
|
]);
|
|
53
|
-
return <FileUpload.Trigger
|
|
53
|
+
return <FileUpload.Trigger class={cn('box-border inline-flex min-h-control-md cursor-pointer appearance-none items-center justify-center gap-2 rounded-md border border-primary bg-primary px-4 text-sm leading-5 font-medium whitespace-nowrap text-primary-foreground transition-[border-color,background-color,color,opacity] duration-200 ease-in-out select-none focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:cursor-default data-disabled:pointer-events-none data-disabled:cursor-default data-invalid:border-destructive data-readonly:pointer-events-none data-readonly:cursor-default motion-reduce:transition-none [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-readonly]):hover]:bg-foreground', local.class)} {...others} data-slot="file-upload-trigger"/>;
|
|
54
54
|
}
|
|
55
55
|
function FileUploadItemGroup(props) {
|
|
56
56
|
const [local, others] = splitProps(props, [
|
|
57
57
|
'class'
|
|
58
58
|
]);
|
|
59
|
-
return <FileUpload.ItemGroup
|
|
59
|
+
return <FileUpload.ItemGroup class={cn('flex w-full flex-wrap items-start gap-2 empty:hidden', local.class)} {...others} data-slot="file-upload-item-group"/>;
|
|
60
60
|
}
|
|
61
61
|
function FileUploadItem(props) {
|
|
62
62
|
const [local, others] = splitProps(props, [
|
|
63
63
|
'class'
|
|
64
64
|
]);
|
|
65
|
-
return <FileUpload.Item
|
|
65
|
+
return <FileUpload.Item class={cn('group/item box-border grid min-h-control-md shrink-0 grow basis-full grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 gap-y-1 rounded-md border border-border bg-background px-3 py-2 text-foreground has-[[data-slot=file-upload-item-preview-image]]:min-h-0 has-[[data-slot=file-upload-item-preview-image]]:max-w-40 has-[[data-slot=file-upload-item-preview-image]]:grow-0 has-[[data-slot=file-upload-item-preview-image]]:grid-cols-[minmax(0,1fr)_auto] has-[[data-slot=file-upload-item-preview-image]]:grid-rows-[auto_auto_auto] has-[[data-slot=file-upload-item-preview-image]]:items-start has-[[data-slot=file-upload-item-preview]]:min-h-control-xl has-[[data-slot=file-upload-item-preview]]:grid-cols-[auto_minmax(0,1fr)_auto] has-[[data-slot=file-upload-item-preview]]:py-2 data-disabled:opacity-50 data-[type=rejected]:border-destructive', local.class)} {...others} data-slot="file-upload-item"/>;
|
|
66
66
|
}
|
|
67
67
|
function FileUploadItemPreview(props) {
|
|
68
68
|
const [local, others] = splitProps(props, [
|
|
69
69
|
'class'
|
|
70
70
|
]);
|
|
71
|
-
return <FileUpload.ItemPreview
|
|
71
|
+
return <FileUpload.ItemPreview class={cn('col-start-1 row-span-2 row-start-1 inline-flex size-10 items-center justify-center overflow-hidden rounded-sm bg-muted text-muted-foreground group-has-[[data-slot=file-upload-item-preview-image]]/item:col-span-2 group-has-[[data-slot=file-upload-item-preview-image]]/item:aspect-square group-has-[[data-slot=file-upload-item-preview-image]]/item:h-auto group-has-[[data-slot=file-upload-item-preview-image]]/item:w-full', local.class)} {...others} data-slot="file-upload-item-preview"/>;
|
|
72
72
|
}
|
|
73
73
|
function FileUploadItemPreviewImage(props) {
|
|
74
74
|
const [local, others] = splitProps(props, [
|
|
75
75
|
'class'
|
|
76
76
|
]);
|
|
77
|
-
return <FileUpload.ItemPreviewImage
|
|
77
|
+
return <FileUpload.ItemPreviewImage class={cn('size-full object-cover', local.class)} {...others} data-slot="file-upload-item-preview-image"/>;
|
|
78
78
|
}
|
|
79
79
|
function FileUploadItemPreviewIcon(props) {
|
|
80
80
|
const [local, others] = splitProps(props, [
|
|
81
81
|
'class'
|
|
82
82
|
]);
|
|
83
|
-
return <FileIcon
|
|
83
|
+
return <FileIcon class={cn('size-4', local.class)} {...others} data-slot="file-upload-item-preview-icon"/>;
|
|
84
84
|
}
|
|
85
85
|
function getFileTypeLabel(file) {
|
|
86
86
|
const extension = file.name.split('.').pop();
|
|
@@ -93,20 +93,20 @@ function FileUploadItemName(props) {
|
|
|
93
93
|
const [local, others] = splitProps(props, [
|
|
94
94
|
'class'
|
|
95
95
|
]);
|
|
96
|
-
return <FileUpload.ItemName
|
|
96
|
+
return <FileUpload.ItemName class={cn('col-start-1 line-clamp-1 min-w-0 text-sm leading-5 font-medium group-has-[[data-slot=file-upload-item-preview-image]]/item:col-start-1 group-has-[[data-slot=file-upload-item-preview-image]]/item:row-start-2 group-has-[[data-slot=file-upload-item-preview-image]]/item:self-end group-has-[[data-slot=file-upload-item-preview]]/item:col-start-2', local.class)} {...others} data-slot="file-upload-item-name"/>;
|
|
97
97
|
}
|
|
98
98
|
function FileUploadItemSizeText(props) {
|
|
99
99
|
const [local, others] = splitProps(props, [
|
|
100
100
|
'class'
|
|
101
101
|
]);
|
|
102
|
-
return <FileUpload.ItemSizeText
|
|
102
|
+
return <FileUpload.ItemSizeText class={cn('text-xs leading-4 text-muted-foreground', local.class)} {...others} data-slot="file-upload-item-size-text"/>;
|
|
103
103
|
}
|
|
104
104
|
function FileUploadItemMetadata(props) {
|
|
105
105
|
const [local, others] = splitProps(props, [
|
|
106
106
|
'class',
|
|
107
107
|
'file'
|
|
108
108
|
]);
|
|
109
|
-
return <ark.div
|
|
109
|
+
return <ark.div class={cn("col-start-1 flex items-center gap-1 text-xs leading-4 text-muted-foreground group-has-[[data-slot=file-upload-item-preview-image]]/item:col-start-1 group-has-[[data-slot=file-upload-item-preview-image]]/item:row-start-3 group-has-[[data-slot=file-upload-item-preview]]/item:col-start-2 [&>[data-slot='file-upload-item-size-text']::before]:me-1 [&>[data-slot='file-upload-item-size-text']::before]:content-['·']", local.class)} {...others} data-slot="file-upload-item-metadata">
|
|
110
110
|
<ark.span>{getFileTypeLabel(local.file)}</ark.span>
|
|
111
111
|
<FileUploadItemSizeText/>
|
|
112
112
|
</ark.div>;
|
|
@@ -117,7 +117,7 @@ function FileUploadItemDeleteTrigger(props) {
|
|
|
117
117
|
'class'
|
|
118
118
|
]);
|
|
119
119
|
const resolvedChildren = children(()=>local.children);
|
|
120
|
-
return <FileUpload.ItemDeleteTrigger
|
|
120
|
+
return <FileUpload.ItemDeleteTrigger class={cn('col-start-2 row-start-1 box-border inline-flex size-control-sm shrink-0 cursor-pointer appearance-none items-center justify-center justify-self-end rounded-sm border-0 bg-transparent p-0 text-muted-foreground transition-[background-color,color,opacity] duration-200 ease-in-out group-has-[[data-slot=file-upload-item-preview-image]]/item:col-start-2 group-has-[[data-slot=file-upload-item-preview-image]]/item:row-start-2 group-has-[[data-slot=file-upload-item-preview-image]]/item:self-center group-has-[[data-slot=file-upload-item-preview]]/item:col-start-3 group-has-[[data-slot=file-upload-item-preview]]/item:row-span-2 group-has-[[data-slot=file-upload-item-preview]]/item:row-start-1 group-has-[[data-slot=file-upload-item-size-text]]/item:row-span-2 group-has-[[data-slot=file-upload-item-size-text]]/item:row-start-1 focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50 data-readonly:pointer-events-none data-readonly:cursor-default data-readonly:opacity-50 motion-reduce:transition-none [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-readonly]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-readonly]):hover]:text-foreground', local.class)} {...others} data-slot="file-upload-item-delete-trigger">
|
|
121
121
|
{resolvedChildren() ?? <TrashIcon/>}
|
|
122
122
|
</FileUpload.ItemDeleteTrigger>;
|
|
123
123
|
}
|
|
@@ -147,12 +147,12 @@ function FileUploadClearTrigger(props) {
|
|
|
147
147
|
const resolvedChildren = children(()=>local.children);
|
|
148
148
|
const clearLabel = ()=>local['aria-label'] ?? (null == local['aria-labelledby'] ? 'Clear files' : void 0);
|
|
149
149
|
const triggerClass = ()=>cn('size-control-sm self-start rounded-sm bg-transparent text-muted-foreground focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring data-readonly:pointer-events-none data-readonly:opacity-50 [&>svg]:size-4', null != local.children && 'w-auto gap-2 px-2 text-sm leading-5', local.class);
|
|
150
|
-
if (local.asChild) return <FileUpload.ClearTrigger asChild={local.asChild}
|
|
150
|
+
if (local.asChild) return <FileUpload.ClearTrigger asChild={local.asChild} class={triggerClass()} aria-label={clearLabel()} aria-labelledby={local['aria-labelledby']} {...others} data-slot="file-upload-clear-trigger">
|
|
151
151
|
{resolvedChildren()}
|
|
152
152
|
</FileUpload.ClearTrigger>;
|
|
153
153
|
return <FileUpload.ClearTrigger asChild={(triggerProps)=><CloseButton.Root {...triggerProps()} aria-label={clearLabel()} aria-labelledby={local['aria-labelledby']}>
|
|
154
154
|
{resolvedChildren() ?? <CloseIcon/>}
|
|
155
|
-
</CloseButton.Root>} data-slot="file-upload-clear-trigger"
|
|
155
|
+
</CloseButton.Root>} class={triggerClass()} {...others} data-slot="file-upload-clear-trigger"/>;
|
|
156
156
|
}
|
|
157
157
|
const FileUpload_FileUpload = Object.assign(FileUploadRoot, {
|
|
158
158
|
Root: FileUploadRoot,
|
|
@@ -6,7 +6,7 @@ import { cn } from "../../internal/cn.js";
|
|
|
6
6
|
import { GripIcon, MaximizeIcon, MinusIcon, RestoreIcon } from "../../internal/icons/ui/Icons.js";
|
|
7
7
|
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
|
|
8
8
|
import { CloseButton } from "../close-button/index.js";
|
|
9
|
-
var _tmpl$ = /*#__PURE__*/ template("<span aria-hidden=true
|
|
9
|
+
var _tmpl$ = /*#__PURE__*/ template("<span aria-hidden=true>");
|
|
10
10
|
const DEFAULT_CLOSE_BUTTON_LABEL = 'Close panel';
|
|
11
11
|
const resizeTriggerAxes = [
|
|
12
12
|
'n',
|
|
@@ -97,11 +97,12 @@ function FloatingPanelTrigger(props) {
|
|
|
97
97
|
get asChild () {
|
|
98
98
|
return local.asChild;
|
|
99
99
|
},
|
|
100
|
-
"data-slot": "floating-panel-trigger",
|
|
101
100
|
get ["class"] () {
|
|
102
101
|
return cn(!local.asChild && 'box-border inline-flex min-h-control-md cursor-pointer items-center justify-center rounded-md border border-border bg-background px-3 py-1 text-md leading-6 text-foreground outline-0 transition-[background-color,border-color,color,opacity] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring active:bg-accent disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50 data-[state=open]:bg-accent motion-reduce:transition-none [@media(hover:hover)]:hover:bg-accent', local.class);
|
|
103
102
|
}
|
|
104
|
-
}, others
|
|
103
|
+
}, others, {
|
|
104
|
+
"data-slot": "floating-panel-trigger"
|
|
105
|
+
}));
|
|
105
106
|
}
|
|
106
107
|
function FloatingPanelPositioner(props) {
|
|
107
108
|
const [local, others] = splitProps(props, [
|
|
@@ -110,11 +111,12 @@ function FloatingPanelPositioner(props) {
|
|
|
110
111
|
return createComponent(OverlayPortal, {
|
|
111
112
|
get children () {
|
|
112
113
|
return createComponent(FloatingPanel.Positioner, mergeProps({
|
|
113
|
-
"data-slot": "floating-panel-positioner",
|
|
114
114
|
get ["class"] () {
|
|
115
115
|
return cn('z-[var(--z-index)] outline-0', local.class);
|
|
116
116
|
}
|
|
117
|
-
}, others
|
|
117
|
+
}, others, {
|
|
118
|
+
"data-slot": "floating-panel-positioner"
|
|
119
|
+
}));
|
|
118
120
|
}
|
|
119
121
|
});
|
|
120
122
|
}
|
|
@@ -123,55 +125,60 @@ function FloatingPanelContent(props) {
|
|
|
123
125
|
'class'
|
|
124
126
|
]);
|
|
125
127
|
return createComponent(FloatingPanel.Content, mergeProps({
|
|
126
|
-
"data-slot": "floating-panel-content",
|
|
127
128
|
get ["class"] () {
|
|
128
129
|
return cn('relative box-border flex min-h-40 min-w-64 origin-[var(--transform-origin)] flex-col overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-lg outline-0 data-behind:opacity-[0.55] data-minimized:min-h-0 data-[state=closed]:pointer-events-none data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:animate-none', local.class);
|
|
129
130
|
}
|
|
130
|
-
}, others
|
|
131
|
+
}, others, {
|
|
132
|
+
"data-slot": "floating-panel-content"
|
|
133
|
+
}));
|
|
131
134
|
}
|
|
132
135
|
function FloatingPanelDragTrigger(props) {
|
|
133
136
|
const [local, others] = splitProps(props, [
|
|
134
137
|
'class'
|
|
135
138
|
]);
|
|
136
139
|
return createComponent(FloatingPanel.DragTrigger, mergeProps({
|
|
137
|
-
"data-slot": "floating-panel-drag-trigger",
|
|
138
140
|
get ["class"] () {
|
|
139
141
|
return cn('block', local.class);
|
|
140
142
|
}
|
|
141
|
-
}, others
|
|
143
|
+
}, others, {
|
|
144
|
+
"data-slot": "floating-panel-drag-trigger"
|
|
145
|
+
}));
|
|
142
146
|
}
|
|
143
147
|
function FloatingPanelHeader(props) {
|
|
144
148
|
const [local, others] = splitProps(props, [
|
|
145
149
|
'class'
|
|
146
150
|
]);
|
|
147
151
|
return createComponent(FloatingPanel.Header, mergeProps({
|
|
148
|
-
"data-slot": "floating-panel-header",
|
|
149
152
|
get ["class"] () {
|
|
150
153
|
return cn('box-border flex min-h-control-xl cursor-grab items-center justify-between gap-3 border-b border-border bg-muted px-3 py-2 select-none data-[dragging]:cursor-grabbing data-[minimized]:border-b-transparent', local.class);
|
|
151
154
|
}
|
|
152
|
-
}, others
|
|
155
|
+
}, others, {
|
|
156
|
+
"data-slot": "floating-panel-header"
|
|
157
|
+
}));
|
|
153
158
|
}
|
|
154
159
|
function FloatingPanelTitle(props) {
|
|
155
160
|
const [local, others] = splitProps(props, [
|
|
156
161
|
'class'
|
|
157
162
|
]);
|
|
158
163
|
return createComponent(FloatingPanel.Title, mergeProps({
|
|
159
|
-
"data-slot": "floating-panel-title",
|
|
160
164
|
get ["class"] () {
|
|
161
165
|
return cn('inline-flex min-w-0 items-center gap-2 text-sm font-semibold text-popover-foreground', local.class);
|
|
162
166
|
}
|
|
163
|
-
}, others
|
|
167
|
+
}, others, {
|
|
168
|
+
"data-slot": "floating-panel-title"
|
|
169
|
+
}));
|
|
164
170
|
}
|
|
165
171
|
function FloatingPanelControl(props) {
|
|
166
172
|
const [local, others] = splitProps(props, [
|
|
167
173
|
'class'
|
|
168
174
|
]);
|
|
169
175
|
return createComponent(FloatingPanel.Control, mergeProps({
|
|
170
|
-
"data-slot": "floating-panel-control",
|
|
171
176
|
get ["class"] () {
|
|
172
177
|
return cn('inline-flex flex-none items-center gap-1', local.class);
|
|
173
178
|
}
|
|
174
|
-
}, others
|
|
179
|
+
}, others, {
|
|
180
|
+
"data-slot": "floating-panel-control"
|
|
181
|
+
}));
|
|
175
182
|
}
|
|
176
183
|
function FloatingPanelStageTrigger(props) {
|
|
177
184
|
const [local, others] = splitProps(props, [
|
|
@@ -190,7 +197,6 @@ function FloatingPanelStageTrigger(props) {
|
|
|
190
197
|
get asChild () {
|
|
191
198
|
return local.asChild;
|
|
192
199
|
},
|
|
193
|
-
"data-slot": "floating-panel-stage-trigger",
|
|
194
200
|
get ["class"] () {
|
|
195
201
|
return cn(!local.asChild && 'box-border inline-flex size-control-sm cursor-pointer items-center justify-center rounded-sm border border-border bg-background text-foreground outline-0 transition-[background-color,border-color,color,opacity] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring active:bg-accent disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none [&>svg]:size-4 [@media(hover:hover)]:hover:bg-accent', local.class);
|
|
196
202
|
},
|
|
@@ -198,6 +204,7 @@ function FloatingPanelStageTrigger(props) {
|
|
|
198
204
|
return local.stage;
|
|
199
205
|
}
|
|
200
206
|
}, others, {
|
|
207
|
+
"data-slot": "floating-panel-stage-trigger",
|
|
201
208
|
get children () {
|
|
202
209
|
return [
|
|
203
210
|
memo(()=>resolvedChildren()),
|
|
@@ -217,11 +224,12 @@ function FloatingPanelCloseTrigger(props) {
|
|
|
217
224
|
get asChild () {
|
|
218
225
|
return local.asChild;
|
|
219
226
|
},
|
|
220
|
-
"data-slot": "floating-panel-close-trigger",
|
|
221
227
|
get ["class"] () {
|
|
222
228
|
return cn(!local.asChild && 'box-border inline-flex size-control-sm cursor-pointer items-center justify-center rounded-sm border border-border bg-background text-foreground outline-0 transition-[background-color,border-color,color,opacity] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring active:bg-accent disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none [&>svg]:size-4 [@media(hover:hover)]:hover:bg-accent', local.class);
|
|
223
229
|
}
|
|
224
|
-
}, others
|
|
230
|
+
}, others, {
|
|
231
|
+
"data-slot": "floating-panel-close-trigger"
|
|
232
|
+
}));
|
|
225
233
|
}
|
|
226
234
|
function FloatingPanelCloseIcon(props) {
|
|
227
235
|
const [local, others] = splitProps(props, [
|
|
@@ -254,11 +262,12 @@ function FloatingPanelBody(props) {
|
|
|
254
262
|
'class'
|
|
255
263
|
]);
|
|
256
264
|
return createComponent(FloatingPanel.Body, mergeProps({
|
|
257
|
-
"data-slot": "floating-panel-body",
|
|
258
265
|
get ["class"] () {
|
|
259
266
|
return cn('min-h-0 flex-auto overflow-auto p-4 text-sm text-popover-foreground data-minimized:hidden', local.class);
|
|
260
267
|
}
|
|
261
|
-
}, others
|
|
268
|
+
}, others, {
|
|
269
|
+
"data-slot": "floating-panel-body"
|
|
270
|
+
}));
|
|
262
271
|
}
|
|
263
272
|
function FloatingPanelFooter(props) {
|
|
264
273
|
const [local, others] = splitProps(props, [
|
|
@@ -280,11 +289,12 @@ function FloatingPanelResizeTrigger(props) {
|
|
|
280
289
|
'class'
|
|
281
290
|
]);
|
|
282
291
|
return createComponent(FloatingPanel.ResizeTrigger, mergeProps({
|
|
283
|
-
"data-slot": "floating-panel-resize-trigger",
|
|
284
292
|
get ["class"] () {
|
|
285
293
|
return cn('absolute data-disabled:pointer-events-none data-[axis=e]:inset-y-3 data-[axis=e]:-right-1 data-[axis=e]:w-2 data-[axis=n]:inset-x-3 data-[axis=n]:-top-1 data-[axis=n]:h-2 data-[axis=ne]:-top-1.5 data-[axis=ne]:-right-1.5 data-[axis=ne]:size-3 data-[axis=nw]:-top-1.5 data-[axis=nw]:-left-1.5 data-[axis=nw]:size-3 data-[axis=s]:inset-x-3 data-[axis=s]:-bottom-1 data-[axis=s]:h-2 data-[axis=se]:-right-1.5 data-[axis=se]:-bottom-1.5 data-[axis=se]:size-3 data-[axis=sw]:-bottom-1.5 data-[axis=sw]:-left-1.5 data-[axis=sw]:size-3 data-[axis=w]:inset-y-3 data-[axis=w]:-left-1 data-[axis=w]:w-2', local.class);
|
|
286
294
|
}
|
|
287
|
-
}, others
|
|
295
|
+
}, others, {
|
|
296
|
+
"data-slot": "floating-panel-resize-trigger"
|
|
297
|
+
}));
|
|
288
298
|
}
|
|
289
299
|
function FloatingPanelResizeTriggerGroup(props) {
|
|
290
300
|
return createComponent(For, {
|
|
@@ -308,7 +318,9 @@ function FloatingPanelDragIndicator(props) {
|
|
|
308
318
|
get ["class"] () {
|
|
309
319
|
return cn('inline-flex flex-none items-center justify-center text-muted-foreground [&>svg]:size-4', local.class);
|
|
310
320
|
}
|
|
311
|
-
}, others
|
|
321
|
+
}, others, {
|
|
322
|
+
"data-slot": "floating-panel-drag-indicator"
|
|
323
|
+
}), false, true);
|
|
312
324
|
insert(_el$, ()=>resolvedChildren() ?? createComponent(GripIcon, {}));
|
|
313
325
|
return _el$;
|
|
314
326
|
})();
|