@moduix/react 2.6.0 → 2.7.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 +13 -13
- package/dist/components/alert/Alert.js +12 -12
- package/dist/components/angle-slider/AngleSlider.js +16 -16
- package/dist/components/avatar/Avatar.js +7 -7
- package/dist/components/button/Button_module.css +0 -1
- package/dist/components/card/Card.js +30 -30
- package/dist/components/card/Card_module.css +1 -1
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +22 -22
- package/dist/components/chart/Chart.js +19 -19
- package/dist/components/checkbox/Checkbox.js +12 -12
- package/dist/components/clipboard/Clipboard.js +19 -18
- package/dist/components/collapsible/Collapsible.js +11 -11
- package/dist/components/color-picker/ColorPicker.js +47 -47
- package/dist/components/combobox/Combobox.js +31 -31
- package/dist/components/command-palette/CommandPalette.js +49 -49
- package/dist/components/container/Container_module.css +1 -1
- package/dist/components/date-input/DateInput.js +14 -14
- package/dist/components/date-picker/DatePicker.js +51 -51
- package/dist/components/dialog/Dialog.js +20 -20
- package/dist/components/drawer/Drawer.js +30 -30
- package/dist/components/editable/Editable.js +17 -17
- package/dist/components/empty/Empty.js +12 -12
- package/dist/components/field/Field.js +19 -19
- package/dist/components/fieldset/Fieldset.js +10 -10
- package/dist/components/file-upload/FileUpload.js +28 -28
- package/dist/components/floating-panel/FloatingPanel.d.ts +1 -1
- package/dist/components/floating-panel/FloatingPanel.js +22 -22
- package/dist/components/floating-panel/index.d.ts +1 -0
- package/dist/components/hover-card/HoverCard.d.ts +1 -1
- package/dist/components/hover-card/HoverCard.js +11 -11
- package/dist/components/hover-card/index.d.ts +1 -0
- package/dist/components/image-cropper/ImageCropper.js +14 -14
- package/dist/components/kbd/Kbd.js +4 -4
- package/dist/components/lightbox/Lightbox.js +25 -25
- package/dist/components/listbox/Listbox.js +31 -31
- package/dist/components/marquee/Marquee.js +12 -12
- package/dist/components/menu/Menu.js +41 -41
- package/dist/components/navigation-menu/NavigationMenu.js +24 -24
- package/dist/components/number-input/NumberInput.js +16 -16
- package/dist/components/pagination/Pagination.js +11 -11
- package/dist/components/password-input/PasswordInput.js +13 -13
- package/dist/components/pin-input/PinInput.js +11 -11
- package/dist/components/popover/Popover.js +25 -25
- package/dist/components/progress-circular/ProgressCircular.js +16 -16
- package/dist/components/progress-linear/ProgressLinear.js +14 -14
- package/dist/components/qr-code/QrCode.js +12 -12
- package/dist/components/radio-group/RadioGroup.js +14 -14
- package/dist/components/rating-group/RatingGroup.js +11 -11
- package/dist/components/segment-group/SegmentGroup.js +14 -14
- package/dist/components/select/Select.js +33 -33
- package/dist/components/sidebar/Sidebar.js +52 -44
- package/dist/components/signature-pad/SignaturePad.js +11 -11
- package/dist/components/slider/Slider.js +22 -22
- package/dist/components/split-button/SplitButton.d.ts +6 -6
- package/dist/components/split-button/SplitButton.js +18 -13
- package/dist/components/splitter/Splitter.js +9 -9
- package/dist/components/steps/Steps.js +23 -23
- package/dist/components/swap/Swap.js +6 -6
- package/dist/components/switch/Switch.js +9 -9
- package/dist/components/table/Table.js +23 -23
- package/dist/components/tabs/Tabs.js +12 -12
- package/dist/components/tags-input/TagsInput.js +20 -20
- package/dist/components/timer/Timer.js +14 -14
- package/dist/components/toast/Toast.js +8 -8
- package/dist/components/toc/Toc.js +19 -19
- package/dist/components/toggle/Toggle.js +4 -4
- package/dist/components/tooltip/Tooltip.js +11 -11
- package/dist/components/tour/Tour.js +25 -25
- package/dist/components/tree-view/TreeView.js +30 -30
- package/dist/styles/animations.css +8 -8
- package/package.json +14 -15
|
@@ -17,7 +17,6 @@ const DatePicker_DatePickerRoot = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
17
17
|
portalRef: portalRef,
|
|
18
18
|
children: /*#__PURE__*/ jsx(DatePicker.Root, {
|
|
19
19
|
ref: ref,
|
|
20
|
-
"data-slot": "date-picker-root",
|
|
21
20
|
className: clsx(DatePicker_module.root, className),
|
|
22
21
|
disabled: disabled ?? field?.disabled ?? fieldset?.disabled,
|
|
23
22
|
invalid: invalid ?? field?.invalid ?? fieldset?.invalid,
|
|
@@ -25,7 +24,8 @@ const DatePicker_DatePickerRoot = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
25
24
|
readOnly: readOnly ?? field?.readOnly,
|
|
26
25
|
required: required ?? field?.required,
|
|
27
26
|
unmountOnExit: unmountOnExit,
|
|
28
|
-
...props
|
|
27
|
+
...props,
|
|
28
|
+
"data-slot": "date-picker-root"
|
|
29
29
|
})
|
|
30
30
|
});
|
|
31
31
|
});
|
|
@@ -35,28 +35,28 @@ const DatePicker_DatePickerRootProvider = /*#__PURE__*/ forwardRef(function({ cl
|
|
|
35
35
|
portalRef: portalRef,
|
|
36
36
|
children: /*#__PURE__*/ jsx(DatePicker.RootProvider, {
|
|
37
37
|
ref: ref,
|
|
38
|
-
"data-slot": "date-picker-root-provider",
|
|
39
38
|
className: clsx(DatePicker_module.root, className),
|
|
40
39
|
lazyMount: lazyMount,
|
|
41
40
|
unmountOnExit: unmountOnExit,
|
|
42
|
-
...props
|
|
41
|
+
...props,
|
|
42
|
+
"data-slot": "date-picker-root-provider"
|
|
43
43
|
})
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
const DatePicker_DatePickerLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
47
47
|
return /*#__PURE__*/ jsx(DatePicker.Label, {
|
|
48
48
|
ref: ref,
|
|
49
|
-
"data-slot": "date-picker-label",
|
|
50
49
|
className: clsx(DatePicker_module.label, className),
|
|
51
|
-
...props
|
|
50
|
+
...props,
|
|
51
|
+
"data-slot": "date-picker-label"
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
const DatePicker_DatePickerControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
55
55
|
return /*#__PURE__*/ jsx(DatePicker.Control, {
|
|
56
56
|
ref: ref,
|
|
57
|
-
"data-slot": "date-picker-control",
|
|
58
57
|
className: clsx(DatePicker_module.control, className),
|
|
59
|
-
...props
|
|
58
|
+
...props,
|
|
59
|
+
"data-slot": "date-picker-control"
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
const DatePicker_DatePickerField = /*#__PURE__*/ forwardRef(function({ clearLabel, clearTriggerProps, inputProps, placeholder, triggerLabel, triggerProps, ...props }, ref) {
|
|
@@ -123,18 +123,18 @@ const DatePicker_DatePickerRangeField = /*#__PURE__*/ forwardRef(function({ clea
|
|
|
123
123
|
const DatePicker_DatePickerInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
124
124
|
return /*#__PURE__*/ jsx(DatePicker.Input, {
|
|
125
125
|
ref: ref,
|
|
126
|
-
"data-slot": "date-picker-input",
|
|
127
126
|
className: clsx(DatePicker_module.input, className),
|
|
128
|
-
...props
|
|
127
|
+
...props,
|
|
128
|
+
"data-slot": "date-picker-input"
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
131
|
const DatePicker_DatePickerTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, ...props }, ref) {
|
|
132
132
|
return /*#__PURE__*/ jsx(DatePicker.Trigger, {
|
|
133
133
|
ref: ref,
|
|
134
|
-
"data-slot": "date-picker-trigger",
|
|
135
134
|
asChild: asChild,
|
|
136
135
|
className: clsx(!asChild && DatePicker_module.trigger, className),
|
|
137
136
|
...props,
|
|
137
|
+
"data-slot": "date-picker-trigger",
|
|
138
138
|
children: children ?? /*#__PURE__*/ jsx(CalendarIcon, {})
|
|
139
139
|
});
|
|
140
140
|
});
|
|
@@ -143,7 +143,6 @@ const DatePicker_DatePickerClearTrigger = /*#__PURE__*/ forwardRef(function({ as
|
|
|
143
143
|
return /*#__PURE__*/ jsx(DatePicker.ClearTrigger, {
|
|
144
144
|
ref: ref,
|
|
145
145
|
asChild: true,
|
|
146
|
-
"data-slot": "date-picker-clear-trigger",
|
|
147
146
|
className: triggerClassName,
|
|
148
147
|
...asChild && void 0 !== ariaLabel ? {
|
|
149
148
|
'aria-label': ariaLabel
|
|
@@ -152,6 +151,7 @@ const DatePicker_DatePickerClearTrigger = /*#__PURE__*/ forwardRef(function({ as
|
|
|
152
151
|
'aria-labelledby': ariaLabelledBy
|
|
153
152
|
} : {},
|
|
154
153
|
...props,
|
|
154
|
+
"data-slot": "date-picker-clear-trigger",
|
|
155
155
|
children: asChild ? children : /*#__PURE__*/ jsx(CloseButton.Root, {
|
|
156
156
|
...void 0 === ariaLabel ? {} : {
|
|
157
157
|
'aria-label': ariaLabel
|
|
@@ -167,71 +167,71 @@ const DatePicker_DatePickerPositioner = /*#__PURE__*/ forwardRef(function({ clas
|
|
|
167
167
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
168
168
|
children: /*#__PURE__*/ jsx(DatePicker.Positioner, {
|
|
169
169
|
ref: ref,
|
|
170
|
-
"data-slot": "date-picker-positioner",
|
|
171
170
|
className: clsx(DatePicker_module.positioner, className),
|
|
172
|
-
...props
|
|
171
|
+
...props,
|
|
172
|
+
"data-slot": "date-picker-positioner"
|
|
173
173
|
})
|
|
174
174
|
});
|
|
175
175
|
});
|
|
176
176
|
const DatePicker_DatePickerContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
177
177
|
return /*#__PURE__*/ jsx(DatePicker.Content, {
|
|
178
178
|
ref: ref,
|
|
179
|
-
"data-slot": "date-picker-content",
|
|
180
179
|
className: clsx(DatePicker_module.content, className),
|
|
181
|
-
...props
|
|
180
|
+
...props,
|
|
181
|
+
"data-slot": "date-picker-content"
|
|
182
182
|
});
|
|
183
183
|
});
|
|
184
184
|
const DatePicker_DatePickerView = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
185
185
|
return /*#__PURE__*/ jsx(DatePicker.View, {
|
|
186
186
|
ref: ref,
|
|
187
|
-
"data-slot": "date-picker-view",
|
|
188
187
|
className: clsx(DatePicker_module.view, className),
|
|
189
|
-
...props
|
|
188
|
+
...props,
|
|
189
|
+
"data-slot": "date-picker-view"
|
|
190
190
|
});
|
|
191
191
|
});
|
|
192
192
|
const DatePicker_DatePickerViewControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
193
193
|
return /*#__PURE__*/ jsx(DatePicker.ViewControl, {
|
|
194
194
|
ref: ref,
|
|
195
|
-
"data-slot": "date-picker-view-control",
|
|
196
195
|
className: clsx(DatePicker_module.viewControl, className),
|
|
197
|
-
...props
|
|
196
|
+
...props,
|
|
197
|
+
"data-slot": "date-picker-view-control"
|
|
198
198
|
});
|
|
199
199
|
});
|
|
200
200
|
const DatePicker_DatePickerPrevTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, ...props }, ref) {
|
|
201
201
|
return /*#__PURE__*/ jsx(DatePicker.PrevTrigger, {
|
|
202
202
|
ref: ref,
|
|
203
|
-
"data-slot": "date-picker-prev-trigger",
|
|
204
203
|
asChild: asChild,
|
|
205
204
|
className: clsx(!asChild && DatePicker_module.navTrigger, className),
|
|
206
205
|
...props,
|
|
206
|
+
"data-slot": "date-picker-prev-trigger",
|
|
207
207
|
children: children ?? /*#__PURE__*/ jsx(ChevronLeftIcon, {})
|
|
208
208
|
});
|
|
209
209
|
});
|
|
210
210
|
const DatePicker_DatePickerNextTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, ...props }, ref) {
|
|
211
211
|
return /*#__PURE__*/ jsx(DatePicker.NextTrigger, {
|
|
212
212
|
ref: ref,
|
|
213
|
-
"data-slot": "date-picker-next-trigger",
|
|
214
213
|
asChild: asChild,
|
|
215
214
|
className: clsx(!asChild && DatePicker_module.navTrigger, className),
|
|
216
215
|
...props,
|
|
216
|
+
"data-slot": "date-picker-next-trigger",
|
|
217
217
|
children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {})
|
|
218
218
|
});
|
|
219
219
|
});
|
|
220
220
|
const DatePicker_DatePickerRangeText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
221
221
|
return /*#__PURE__*/ jsx(DatePicker.RangeText, {
|
|
222
222
|
ref: ref,
|
|
223
|
-
"data-slot": "date-picker-range-text",
|
|
224
223
|
className: clsx(DatePicker_module.rangeText, className),
|
|
225
|
-
...props
|
|
224
|
+
...props,
|
|
225
|
+
"data-slot": "date-picker-range-text"
|
|
226
226
|
});
|
|
227
227
|
});
|
|
228
228
|
const DatePicker_DatePickerViewTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, ...props }, ref) {
|
|
229
229
|
return /*#__PURE__*/ jsx(DatePicker.ViewTrigger, {
|
|
230
230
|
ref: ref,
|
|
231
|
-
"data-slot": "date-picker-view-trigger",
|
|
232
231
|
asChild: asChild,
|
|
233
232
|
className: clsx(!asChild && DatePicker_module.viewTrigger, className),
|
|
234
233
|
...props,
|
|
234
|
+
"data-slot": "date-picker-view-trigger",
|
|
235
235
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
236
236
|
children: [
|
|
237
237
|
/*#__PURE__*/ jsx(DatePicker_DatePickerRangeText, {}),
|
|
@@ -243,73 +243,73 @@ const DatePicker_DatePickerViewTrigger = /*#__PURE__*/ forwardRef(function({ asC
|
|
|
243
243
|
const DatePicker_DatePickerTable = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
244
244
|
return /*#__PURE__*/ jsx(DatePicker.Table, {
|
|
245
245
|
ref: ref,
|
|
246
|
-
"data-slot": "date-picker-table",
|
|
247
246
|
className: clsx(DatePicker_module.table, className),
|
|
248
|
-
...props
|
|
247
|
+
...props,
|
|
248
|
+
"data-slot": "date-picker-table"
|
|
249
249
|
});
|
|
250
250
|
});
|
|
251
251
|
const DatePicker_DatePickerTableHead = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
252
252
|
return /*#__PURE__*/ jsx(DatePicker.TableHead, {
|
|
253
253
|
ref: ref,
|
|
254
|
-
"data-slot": "date-picker-table-head",
|
|
255
254
|
className: className,
|
|
256
|
-
...props
|
|
255
|
+
...props,
|
|
256
|
+
"data-slot": "date-picker-table-head"
|
|
257
257
|
});
|
|
258
258
|
});
|
|
259
259
|
const DatePicker_DatePickerTableBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
260
260
|
return /*#__PURE__*/ jsx(DatePicker.TableBody, {
|
|
261
261
|
ref: ref,
|
|
262
|
-
"data-slot": "date-picker-table-body",
|
|
263
262
|
className: className,
|
|
264
|
-
...props
|
|
263
|
+
...props,
|
|
264
|
+
"data-slot": "date-picker-table-body"
|
|
265
265
|
});
|
|
266
266
|
});
|
|
267
267
|
const DatePicker_DatePickerTableRow = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
268
268
|
return /*#__PURE__*/ jsx(DatePicker.TableRow, {
|
|
269
269
|
ref: ref,
|
|
270
|
-
"data-slot": "date-picker-table-row",
|
|
271
270
|
className: className,
|
|
272
|
-
...props
|
|
271
|
+
...props,
|
|
272
|
+
"data-slot": "date-picker-table-row"
|
|
273
273
|
});
|
|
274
274
|
});
|
|
275
275
|
const DatePicker_DatePickerTableHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
276
276
|
return /*#__PURE__*/ jsx(DatePicker.TableHeader, {
|
|
277
277
|
ref: ref,
|
|
278
|
-
"data-slot": "date-picker-table-header",
|
|
279
278
|
className: clsx(DatePicker_module.tableHeader, className),
|
|
280
|
-
...props
|
|
279
|
+
...props,
|
|
280
|
+
"data-slot": "date-picker-table-header"
|
|
281
281
|
});
|
|
282
282
|
});
|
|
283
283
|
const DatePicker_DatePickerWeekNumberHeaderCell = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
284
284
|
return /*#__PURE__*/ jsx(DatePicker.WeekNumberHeaderCell, {
|
|
285
285
|
ref: ref,
|
|
286
|
-
"data-slot": "date-picker-week-number-header-cell",
|
|
287
286
|
className: clsx(DatePicker_module.tableHeader, DatePicker_module.weekNumberCell, className),
|
|
288
|
-
...props
|
|
287
|
+
...props,
|
|
288
|
+
"data-slot": "date-picker-week-number-header-cell"
|
|
289
289
|
});
|
|
290
290
|
});
|
|
291
291
|
const DatePicker_DatePickerWeekNumberCell = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
292
292
|
return /*#__PURE__*/ jsx(DatePicker.WeekNumberCell, {
|
|
293
293
|
ref: ref,
|
|
294
|
-
"data-slot": "date-picker-week-number-cell",
|
|
295
294
|
className: clsx(DatePicker_module.weekNumberCell, className),
|
|
296
|
-
...props
|
|
295
|
+
...props,
|
|
296
|
+
"data-slot": "date-picker-week-number-cell"
|
|
297
297
|
});
|
|
298
298
|
});
|
|
299
299
|
const DatePicker_DatePickerTableCell = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
300
300
|
return /*#__PURE__*/ jsx(DatePicker.TableCell, {
|
|
301
301
|
ref: ref,
|
|
302
|
-
"data-slot": "date-picker-table-cell",
|
|
303
302
|
className: clsx(DatePicker_module.tableCell, className),
|
|
304
|
-
...props
|
|
303
|
+
...props,
|
|
304
|
+
"data-slot": "date-picker-table-cell"
|
|
305
305
|
});
|
|
306
306
|
});
|
|
307
307
|
const DatePicker_DatePickerTableCellTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
308
308
|
return /*#__PURE__*/ jsx(DatePicker.TableCellTrigger, {
|
|
309
309
|
ref: ref,
|
|
310
|
-
"data-slot": "date-picker-table-cell-trigger",
|
|
311
310
|
className: clsx(DatePicker_module.tableCellTrigger, className),
|
|
312
|
-
...props
|
|
311
|
+
...props,
|
|
312
|
+
"data-slot": "date-picker-table-cell-trigger"
|
|
313
313
|
});
|
|
314
314
|
});
|
|
315
315
|
const DatePicker_DatePickerDayTable = /*#__PURE__*/ forwardRef(function({ offset, showHeader = true, showWeekNumbers = false, ...props }, ref) {
|
|
@@ -364,34 +364,34 @@ const DatePicker_DatePickerDayTable = /*#__PURE__*/ forwardRef(function({ offset
|
|
|
364
364
|
const DatePicker_DatePickerMonthSelect = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
365
365
|
return /*#__PURE__*/ jsx(DatePicker.MonthSelect, {
|
|
366
366
|
ref: ref,
|
|
367
|
-
"data-slot": "date-picker-month-select",
|
|
368
367
|
className: clsx(DatePicker_module.select, className),
|
|
369
|
-
...props
|
|
368
|
+
...props,
|
|
369
|
+
"data-slot": "date-picker-month-select"
|
|
370
370
|
});
|
|
371
371
|
});
|
|
372
372
|
const DatePicker_DatePickerYearSelect = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
373
373
|
return /*#__PURE__*/ jsx(DatePicker.YearSelect, {
|
|
374
374
|
ref: ref,
|
|
375
|
-
"data-slot": "date-picker-year-select",
|
|
376
375
|
className: clsx(DatePicker_module.select, className),
|
|
377
|
-
...props
|
|
376
|
+
...props,
|
|
377
|
+
"data-slot": "date-picker-year-select"
|
|
378
378
|
});
|
|
379
379
|
});
|
|
380
380
|
const DatePicker_DatePickerPresetTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
381
381
|
return /*#__PURE__*/ jsx(DatePicker.PresetTrigger, {
|
|
382
382
|
ref: ref,
|
|
383
|
-
"data-slot": "date-picker-preset-trigger",
|
|
384
383
|
asChild: asChild,
|
|
385
384
|
className: clsx(!asChild && DatePicker_module.presetTrigger, className),
|
|
386
|
-
...props
|
|
385
|
+
...props,
|
|
386
|
+
"data-slot": "date-picker-preset-trigger"
|
|
387
387
|
});
|
|
388
388
|
});
|
|
389
389
|
const DatePicker_DatePickerValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
390
390
|
return /*#__PURE__*/ jsx(DatePicker.ValueText, {
|
|
391
391
|
ref: ref,
|
|
392
|
-
"data-slot": "date-picker-value-text",
|
|
393
392
|
className: clsx(DatePicker_module.valueText, className),
|
|
394
|
-
...props
|
|
393
|
+
...props,
|
|
394
|
+
"data-slot": "date-picker-value-text"
|
|
395
395
|
});
|
|
396
396
|
});
|
|
397
397
|
const DatePicker_DatePicker = Object.assign(DatePicker_DatePickerRoot, {
|
|
@@ -34,18 +34,18 @@ const Dialog_DialogTrigger = /*#__PURE__*/ forwardRef(function({ asChild, classN
|
|
|
34
34
|
return /*#__PURE__*/ jsx(Dialog.Trigger, {
|
|
35
35
|
ref: ref,
|
|
36
36
|
asChild: asChild,
|
|
37
|
-
"data-slot": "dialog-trigger",
|
|
38
37
|
className: clsx(!asChild && Dialog_module.trigger, className),
|
|
39
|
-
...props
|
|
38
|
+
...props,
|
|
39
|
+
"data-slot": "dialog-trigger"
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
const Dialog_DialogBackdrop = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
43
43
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
44
44
|
children: /*#__PURE__*/ jsx(Dialog.Backdrop, {
|
|
45
45
|
ref: ref,
|
|
46
|
-
"data-slot": "dialog-backdrop",
|
|
47
46
|
className: clsx(Dialog_module.backdrop, className),
|
|
48
|
-
...props
|
|
47
|
+
...props,
|
|
48
|
+
"data-slot": "dialog-backdrop"
|
|
49
49
|
})
|
|
50
50
|
});
|
|
51
51
|
});
|
|
@@ -53,43 +53,43 @@ const Dialog_DialogPositioner = /*#__PURE__*/ forwardRef(function({ className, .
|
|
|
53
53
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
54
54
|
children: /*#__PURE__*/ jsx(Dialog.Positioner, {
|
|
55
55
|
ref: ref,
|
|
56
|
-
"data-slot": "dialog-positioner",
|
|
57
56
|
className: clsx(Dialog_module.positioner, className),
|
|
58
|
-
...props
|
|
57
|
+
...props,
|
|
58
|
+
"data-slot": "dialog-positioner"
|
|
59
59
|
})
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
const Dialog_DialogContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
63
63
|
return /*#__PURE__*/ jsx(Dialog.Content, {
|
|
64
64
|
ref: ref,
|
|
65
|
-
"data-slot": "dialog-content",
|
|
66
65
|
className: clsx(Dialog_module.content, className),
|
|
67
|
-
...props
|
|
66
|
+
...props,
|
|
67
|
+
"data-slot": "dialog-content"
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
const Dialog_DialogTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
71
71
|
return /*#__PURE__*/ jsx(Dialog.Title, {
|
|
72
72
|
ref: ref,
|
|
73
|
-
"data-slot": "dialog-title",
|
|
74
73
|
className: clsx(Dialog_module.title, className),
|
|
75
|
-
...props
|
|
74
|
+
...props,
|
|
75
|
+
"data-slot": "dialog-title"
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
78
|
const Dialog_DialogDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
79
79
|
return /*#__PURE__*/ jsx(Dialog.Description, {
|
|
80
80
|
ref: ref,
|
|
81
|
-
"data-slot": "dialog-description",
|
|
82
81
|
className: clsx(Dialog_module.description, className),
|
|
83
|
-
...props
|
|
82
|
+
...props,
|
|
83
|
+
"data-slot": "dialog-description"
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
86
|
const Dialog_DialogCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
87
87
|
return /*#__PURE__*/ jsx(Dialog.CloseTrigger, {
|
|
88
88
|
ref: ref,
|
|
89
89
|
asChild: asChild,
|
|
90
|
-
"data-slot": "dialog-close-trigger",
|
|
91
90
|
className: clsx(!asChild && Dialog_module.closeTrigger, className),
|
|
92
|
-
...props
|
|
91
|
+
...props,
|
|
92
|
+
"data-slot": "dialog-close-trigger"
|
|
93
93
|
});
|
|
94
94
|
});
|
|
95
95
|
const Dialog_DialogCloseIcon = /*#__PURE__*/ forwardRef(function({ className, children, 'aria-label': ariaLabel = DEFAULT_CLOSE_BUTTON_LABEL, ...props }, ref) {
|
|
@@ -108,25 +108,25 @@ const Dialog_DialogCloseIcon = /*#__PURE__*/ forwardRef(function({ className, ch
|
|
|
108
108
|
const Dialog_DialogHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
109
109
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
110
110
|
ref: ref,
|
|
111
|
-
"data-slot": "dialog-header",
|
|
112
111
|
className: clsx(Dialog_module.header, className),
|
|
113
|
-
...props
|
|
112
|
+
...props,
|
|
113
|
+
"data-slot": "dialog-header"
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
const Dialog_DialogBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
117
117
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
118
118
|
ref: ref,
|
|
119
|
-
"data-slot": "dialog-body",
|
|
120
119
|
className: clsx(Dialog_module.body, className),
|
|
121
|
-
...props
|
|
120
|
+
...props,
|
|
121
|
+
"data-slot": "dialog-body"
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
const Dialog_DialogFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
125
125
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
126
126
|
ref: ref,
|
|
127
|
-
"data-slot": "dialog-footer",
|
|
128
127
|
className: clsx(Dialog_module.footer, className),
|
|
129
|
-
...props
|
|
128
|
+
...props,
|
|
129
|
+
"data-slot": "dialog-footer"
|
|
130
130
|
});
|
|
131
131
|
});
|
|
132
132
|
const Dialog_Dialog = Object.assign(DialogRoot, {
|
|
@@ -44,18 +44,18 @@ const Drawer_DrawerTrigger = /*#__PURE__*/ forwardRef(function({ asChild, classN
|
|
|
44
44
|
return /*#__PURE__*/ jsx(Drawer.Trigger, {
|
|
45
45
|
ref: ref,
|
|
46
46
|
asChild: asChild,
|
|
47
|
-
"data-slot": "drawer-trigger",
|
|
48
47
|
className: clsx(!asChild && Drawer_module.trigger, className),
|
|
49
|
-
...props
|
|
48
|
+
...props,
|
|
49
|
+
"data-slot": "drawer-trigger"
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
const Drawer_DrawerBackdrop = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
53
53
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
54
54
|
children: /*#__PURE__*/ jsx(Drawer.Backdrop, {
|
|
55
55
|
ref: ref,
|
|
56
|
-
"data-slot": "drawer-backdrop",
|
|
57
56
|
className: clsx(Drawer_module.backdrop, className),
|
|
58
|
-
...props
|
|
57
|
+
...props,
|
|
58
|
+
"data-slot": "drawer-backdrop"
|
|
59
59
|
})
|
|
60
60
|
});
|
|
61
61
|
});
|
|
@@ -63,9 +63,9 @@ const Drawer_DrawerPositioner = /*#__PURE__*/ forwardRef(function({ className, .
|
|
|
63
63
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
64
64
|
children: /*#__PURE__*/ jsx(Drawer.Positioner, {
|
|
65
65
|
ref: ref,
|
|
66
|
-
"data-slot": "drawer-positioner",
|
|
67
66
|
className: clsx(Drawer_module.positioner, className),
|
|
68
|
-
...props
|
|
67
|
+
...props,
|
|
68
|
+
"data-slot": "drawer-positioner"
|
|
69
69
|
})
|
|
70
70
|
});
|
|
71
71
|
});
|
|
@@ -73,51 +73,51 @@ const Drawer_DrawerContent = /*#__PURE__*/ forwardRef(function({ className, vari
|
|
|
73
73
|
const rootVariant = useContext(DrawerVariantContext);
|
|
74
74
|
return /*#__PURE__*/ jsx(Drawer.Content, {
|
|
75
75
|
ref: ref,
|
|
76
|
-
"data-slot": "drawer-content",
|
|
77
76
|
"data-variant": variant ?? rootVariant,
|
|
78
77
|
className: clsx(Drawer_module.content, className),
|
|
79
|
-
...props
|
|
78
|
+
...props,
|
|
79
|
+
"data-slot": "drawer-content"
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
const Drawer_DrawerGrabber = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
83
83
|
return /*#__PURE__*/ jsx(Drawer.Grabber, {
|
|
84
84
|
ref: ref,
|
|
85
|
-
"data-slot": "drawer-grabber",
|
|
86
85
|
className: clsx(Drawer_module.grabber, className),
|
|
87
|
-
...props
|
|
86
|
+
...props,
|
|
87
|
+
"data-slot": "drawer-grabber"
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
const Drawer_DrawerGrabberIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
91
91
|
return /*#__PURE__*/ jsx(Drawer.GrabberIndicator, {
|
|
92
92
|
ref: ref,
|
|
93
|
-
"data-slot": "drawer-grabber-indicator",
|
|
94
93
|
className: clsx(Drawer_module.grabberIndicator, className),
|
|
95
|
-
...props
|
|
94
|
+
...props,
|
|
95
|
+
"data-slot": "drawer-grabber-indicator"
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
const Drawer_DrawerTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
99
99
|
return /*#__PURE__*/ jsx(Drawer.Title, {
|
|
100
100
|
ref: ref,
|
|
101
|
-
"data-slot": "drawer-title",
|
|
102
101
|
className: clsx(Drawer_module.title, className),
|
|
103
|
-
...props
|
|
102
|
+
...props,
|
|
103
|
+
"data-slot": "drawer-title"
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
106
|
const Drawer_DrawerDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
107
107
|
return /*#__PURE__*/ jsx(Drawer.Description, {
|
|
108
108
|
ref: ref,
|
|
109
|
-
"data-slot": "drawer-description",
|
|
110
109
|
className: clsx(Drawer_module.description, className),
|
|
111
|
-
...props
|
|
110
|
+
...props,
|
|
111
|
+
"data-slot": "drawer-description"
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
114
|
const Drawer_DrawerCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
115
115
|
return /*#__PURE__*/ jsx(Drawer.CloseTrigger, {
|
|
116
116
|
ref: ref,
|
|
117
117
|
asChild: asChild,
|
|
118
|
-
"data-slot": "drawer-close-trigger",
|
|
119
118
|
className: clsx(!asChild && Drawer_module.closeTrigger, className),
|
|
120
|
-
...props
|
|
119
|
+
...props,
|
|
120
|
+
"data-slot": "drawer-close-trigger"
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
const Drawer_DrawerCloseIcon = /*#__PURE__*/ forwardRef(function({ className, children, 'aria-label': ariaLabel = DEFAULT_CLOSE_BUTTON_LABEL, ...props }, ref) {
|
|
@@ -136,49 +136,49 @@ const Drawer_DrawerCloseIcon = /*#__PURE__*/ forwardRef(function({ className, ch
|
|
|
136
136
|
const Drawer_DrawerSwipeArea = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
137
137
|
return /*#__PURE__*/ jsx(Drawer.SwipeArea, {
|
|
138
138
|
ref: ref,
|
|
139
|
-
"data-slot": "drawer-swipe-area",
|
|
140
139
|
className: clsx(Drawer_module.swipeArea, className),
|
|
141
|
-
...props
|
|
140
|
+
...props,
|
|
141
|
+
"data-slot": "drawer-swipe-area"
|
|
142
142
|
});
|
|
143
143
|
});
|
|
144
144
|
const Drawer_DrawerIndent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
145
145
|
return /*#__PURE__*/ jsx(Drawer.Indent, {
|
|
146
146
|
ref: ref,
|
|
147
|
-
"data-slot": "drawer-indent",
|
|
148
147
|
className: clsx(Drawer_module.indent, className),
|
|
149
|
-
...props
|
|
148
|
+
...props,
|
|
149
|
+
"data-slot": "drawer-indent"
|
|
150
150
|
});
|
|
151
151
|
});
|
|
152
152
|
const Drawer_DrawerIndentBackground = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
153
153
|
return /*#__PURE__*/ jsx(Drawer.IndentBackground, {
|
|
154
154
|
ref: ref,
|
|
155
|
-
"data-slot": "drawer-indent-background",
|
|
156
155
|
className: clsx(Drawer_module.indentBackground, className),
|
|
157
|
-
...props
|
|
156
|
+
...props,
|
|
157
|
+
"data-slot": "drawer-indent-background"
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
160
|
const Drawer_DrawerHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
161
161
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
162
162
|
ref: ref,
|
|
163
|
-
"data-slot": "drawer-header",
|
|
164
163
|
className: clsx(Drawer_module.header, className),
|
|
165
|
-
...props
|
|
164
|
+
...props,
|
|
165
|
+
"data-slot": "drawer-header"
|
|
166
166
|
});
|
|
167
167
|
});
|
|
168
168
|
const Drawer_DrawerBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
169
169
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
170
170
|
ref: ref,
|
|
171
|
-
"data-slot": "drawer-body",
|
|
172
171
|
className: clsx(Drawer_module.body, className),
|
|
173
|
-
...props
|
|
172
|
+
...props,
|
|
173
|
+
"data-slot": "drawer-body"
|
|
174
174
|
});
|
|
175
175
|
});
|
|
176
176
|
const Drawer_DrawerFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
177
177
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
178
178
|
ref: ref,
|
|
179
|
-
"data-slot": "drawer-footer",
|
|
180
179
|
className: clsx(Drawer_module.footer, className),
|
|
181
|
-
...props
|
|
180
|
+
...props,
|
|
181
|
+
"data-slot": "drawer-footer"
|
|
182
182
|
});
|
|
183
183
|
});
|
|
184
184
|
const Drawer_Drawer = Object.assign(DrawerRoot, {
|
|
@@ -8,84 +8,84 @@ import Editable_module from "./Editable.module.js";
|
|
|
8
8
|
const Editable_EditableRoot = /*#__PURE__*/ forwardRef(function({ activationMode = 'dblclick', className, ...props }, ref) {
|
|
9
9
|
return /*#__PURE__*/ jsx(Editable.Root, {
|
|
10
10
|
ref: ref,
|
|
11
|
-
"data-slot": "editable-root",
|
|
12
11
|
activationMode: activationMode,
|
|
13
12
|
className: clsx(Editable_module.root, className),
|
|
14
|
-
...props
|
|
13
|
+
...props,
|
|
14
|
+
"data-slot": "editable-root"
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
17
|
const Editable_EditableRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
18
18
|
return /*#__PURE__*/ jsx(Editable.RootProvider, {
|
|
19
19
|
ref: ref,
|
|
20
|
-
"data-slot": "editable-root-provider",
|
|
21
20
|
className: clsx(Editable_module.root, className),
|
|
22
|
-
...props
|
|
21
|
+
...props,
|
|
22
|
+
"data-slot": "editable-root-provider"
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
const Editable_EditableLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
26
26
|
return /*#__PURE__*/ jsx(Editable.Label, {
|
|
27
27
|
ref: ref,
|
|
28
|
-
"data-slot": "editable-label",
|
|
29
28
|
className: clsx(Editable_module.label, className),
|
|
30
|
-
...props
|
|
29
|
+
...props,
|
|
30
|
+
"data-slot": "editable-label"
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
const Editable_EditableArea = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
34
34
|
return /*#__PURE__*/ jsx(Editable.Area, {
|
|
35
35
|
ref: ref,
|
|
36
|
-
"data-slot": "editable-area",
|
|
37
36
|
className: clsx(Editable_module.area, className),
|
|
38
|
-
...props
|
|
37
|
+
...props,
|
|
38
|
+
"data-slot": "editable-area"
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
41
|
const Editable_EditableInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
42
42
|
return /*#__PURE__*/ jsx(Editable.Input, {
|
|
43
43
|
ref: ref,
|
|
44
|
-
"data-slot": "editable-input",
|
|
45
44
|
className: clsx(Editable_module.input, className),
|
|
46
|
-
...props
|
|
45
|
+
...props,
|
|
46
|
+
"data-slot": "editable-input"
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
const Editable_EditablePreview = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
50
50
|
return /*#__PURE__*/ jsx(Editable.Preview, {
|
|
51
51
|
ref: ref,
|
|
52
|
-
"data-slot": "editable-preview",
|
|
53
52
|
className: clsx(Editable_module.preview, className),
|
|
54
|
-
...props
|
|
53
|
+
...props,
|
|
54
|
+
"data-slot": "editable-preview"
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
57
|
const Editable_EditableControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
58
58
|
return /*#__PURE__*/ jsx(Editable.Control, {
|
|
59
59
|
ref: ref,
|
|
60
|
-
"data-slot": "editable-control",
|
|
61
60
|
className: clsx(Editable_module.control, className),
|
|
62
|
-
...props
|
|
61
|
+
...props,
|
|
62
|
+
"data-slot": "editable-control"
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
const Editable_EditableEditTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
66
66
|
return /*#__PURE__*/ jsx(Editable.EditTrigger, {
|
|
67
67
|
ref: ref,
|
|
68
|
-
"data-slot": "editable-edit-trigger",
|
|
69
68
|
className: clsx(Editable_module.trigger, className),
|
|
70
69
|
...props,
|
|
70
|
+
"data-slot": "editable-edit-trigger",
|
|
71
71
|
children: children ?? /*#__PURE__*/ jsx(PencilIcon, {})
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
74
|
const Editable_EditableSubmitTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
75
75
|
return /*#__PURE__*/ jsx(Editable.SubmitTrigger, {
|
|
76
76
|
ref: ref,
|
|
77
|
-
"data-slot": "editable-submit-trigger",
|
|
78
77
|
className: clsx(Editable_module.trigger, className),
|
|
79
78
|
...props,
|
|
79
|
+
"data-slot": "editable-submit-trigger",
|
|
80
80
|
children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
const Editable_EditableCancelTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
84
84
|
return /*#__PURE__*/ jsx(Editable.CancelTrigger, {
|
|
85
85
|
ref: ref,
|
|
86
|
-
"data-slot": "editable-cancel-trigger",
|
|
87
86
|
className: clsx(Editable_module.trigger, className),
|
|
88
87
|
...props,
|
|
88
|
+
"data-slot": "editable-cancel-trigger",
|
|
89
89
|
children: children ?? /*#__PURE__*/ jsx(CloseIcon, {})
|
|
90
90
|
});
|
|
91
91
|
});
|