@moduix/react 2.2.4 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/accordion/Accordion_module.css +12 -1
- package/dist/components/alert/Alert.d.ts +1 -1
- package/dist/components/alert/Alert.js +1 -1
- package/dist/components/alert/Alert_module.css +22 -48
- package/dist/components/angle-slider/AngleSlider.d.ts +9 -3
- package/dist/components/angle-slider/AngleSlider.js +34 -10
- package/dist/components/angle-slider/AngleSlider_module.css +24 -5
- package/dist/components/aspect-ratio/AspectRatio.js +3 -3
- package/dist/components/aspect-ratio/AspectRatio_module.css +9 -2
- package/dist/components/avatar/Avatar.d.ts +2 -2
- package/dist/components/avatar/Avatar.js +39 -3
- package/dist/components/avatar/Avatar.module.js +2 -1
- package/dist/components/avatar/Avatar_module.css +8 -1
- package/dist/components/badge/Badge.d.ts +1 -0
- package/dist/components/badge/Badge.js +15 -5
- package/dist/components/badge/Badge_module.css +45 -30
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +4 -6
- package/dist/components/breadcrumbs/Breadcrumbs.js +4 -3
- package/dist/components/breadcrumbs/Breadcrumbs_module.css +1 -1
- package/dist/components/button/Button.js +9 -1
- package/dist/components/button/Button_module.css +0 -7
- package/dist/components/card/Card.d.ts +1 -0
- package/dist/components/card/Card.js +11 -0
- package/dist/components/card/Card.module.js +1 -0
- package/dist/components/card/Card_module.css +79 -29
- package/dist/components/carousel/Carousel_module.css +27 -5
- package/dist/components/checkbox/Checkbox.js +9 -3
- package/dist/components/checkbox/Checkbox_module.css +11 -3
- package/dist/components/clipboard/Clipboard_module.css +13 -1
- package/dist/components/close-button/CloseButton.js +14 -3
- package/dist/components/collapsible/Collapsible_module.css +11 -0
- package/dist/components/color-picker/ColorPicker.js +16 -6
- package/dist/components/color-picker/ColorPicker.module.js +2 -0
- package/dist/components/color-picker/ColorPicker_module.css +84 -9
- package/dist/components/combobox/Combobox.d.ts +1 -1
- package/dist/components/combobox/Combobox.js +2 -1
- package/dist/components/combobox/Combobox_module.css +1 -1
- package/dist/components/command-palette/CommandPalette.js +10 -18
- package/dist/components/command-palette/CommandPalette.module.js +0 -1
- package/dist/components/command-palette/CommandPalette_module.css +5 -15
- package/dist/components/container/Container_module.css +11 -11
- package/dist/components/date-picker/DatePicker.js +15 -6
- package/dist/components/dialog/Dialog.d.ts +3 -6
- package/dist/components/dialog/Dialog.js +19 -15
- package/dist/components/dialog/Dialog_module.css +12 -1
- package/dist/components/drawer/Drawer.d.ts +3 -6
- package/dist/components/drawer/Drawer.js +19 -15
- package/dist/components/drawer/Drawer_module.css +17 -6
- package/dist/components/empty/Empty_module.css +2 -2
- package/dist/components/field/Field_module.css +4 -0
- package/dist/components/fieldset/Fieldset_module.css +3 -0
- package/dist/components/file-upload/FileUpload.js +1 -1
- package/dist/components/floating-panel/FloatingPanel.d.ts +1 -2
- package/dist/components/floating-panel/FloatingPanel.js +7 -5
- package/dist/components/heading/Heading.js +2 -2
- package/dist/components/highlight/Highlight.js +2 -2
- package/dist/components/hover-card/HoverCard.js +0 -2
- package/dist/components/hover-card/HoverCard_module.css +19 -8
- package/dist/components/image/Image.d.ts +6 -2
- package/dist/components/image/Image.js +2 -1
- package/dist/components/image-cropper/ImageCropper_module.css +0 -1
- package/dist/components/input/Input_module.css +2 -2
- package/dist/components/input-group/InputGroup.js +7 -7
- package/dist/components/kbd/Kbd.js +1 -0
- package/dist/components/lightbox/Lightbox.d.ts +5 -8
- package/dist/components/lightbox/Lightbox.js +20 -16
- package/dist/components/lightbox/Lightbox_module.css +7 -0
- package/dist/components/list/List_module.css +3 -4
- package/dist/components/listbox/Listbox.d.ts +3 -6
- package/dist/components/listbox/Listbox.js +15 -12
- package/dist/components/listbox/Listbox_module.css +2 -2
- package/dist/components/menu/Menu.d.ts +4 -8
- package/dist/components/menu/Menu.js +25 -20
- package/dist/components/menu/Menu_module.css +10 -0
- package/dist/components/native-select/NativeSelect_module.css +1 -1
- package/dist/components/pagination/Pagination.js +2 -2
- package/dist/components/pagination/Pagination_module.css +1 -1
- package/dist/components/password-input/PasswordInput_module.css +4 -4
- package/dist/components/popover/Popover.d.ts +4 -7
- package/dist/components/popover/Popover.js +24 -18
- package/dist/components/popover/Popover_module.css +18 -8
- package/dist/components/progress-circular/ProgressCircular_module.css +8 -1
- package/dist/components/progress-linear/ProgressLinear_module.css +1 -0
- package/dist/components/qr-code/QrCode_module.css +2 -3
- package/dist/components/radio-group/RadioGroup_module.css +1 -1
- package/dist/components/scroll-area/ScrollArea_module.css +15 -0
- package/dist/components/segment-group/SegmentGroup.module.js +1 -1
- package/dist/components/segment-group/SegmentGroup_module.css +4 -4
- package/dist/components/select/Select.d.ts +3 -6
- package/dist/components/select/Select.js +16 -12
- package/dist/components/select/Select_module.css +15 -1
- package/dist/components/separator/Separator.js +2 -2
- package/dist/components/separator/Separator_module.css +3 -3
- package/dist/components/sidebar/Sidebar.js +1 -1
- package/dist/components/sidebar/Sidebar_module.css +9 -8
- package/dist/components/signature-pad/SignaturePad.d.ts +3 -5
- package/dist/components/signature-pad/SignaturePad.js +44 -18
- package/dist/components/simple-grid/SimpleGrid.js +1 -0
- package/dist/components/slider/Slider_module.css +9 -5
- package/dist/components/split-button/SplitButton.d.ts +4 -0
- package/dist/components/split-button/SplitButton.js +4 -1
- package/dist/components/splitter/Splitter.js +3 -2
- package/dist/components/splitter/Splitter_module.css +21 -14
- package/dist/components/swap/Swap_module.css +22 -22
- package/dist/components/switch/Switch.js +9 -3
- package/dist/components/switch/Switch_module.css +30 -23
- package/dist/components/table/Table_module.css +15 -11
- package/dist/components/tabs/Tabs.js +5 -2
- package/dist/components/tag/Tag_module.css +17 -14
- package/dist/components/text/Text.js +1 -1
- package/dist/components/text/Text_module.css +2 -1
- package/dist/components/timer/Timer.d.ts +2 -4
- package/dist/components/timer/Timer.js +5 -4
- package/dist/components/toast/Toast_module.css +37 -43
- package/dist/components/toggle-group/ToggleGroup.d.ts +1 -2
- package/dist/components/toggle-group/ToggleGroup_module.css +5 -7
- package/dist/components/tooltip/Tooltip_module.css +11 -1
- package/dist/components/tour/Tour.d.ts +1 -1
- package/dist/components/tour/Tour.js +2 -1
- package/dist/components/tour/Tour_module.css +16 -4
- package/dist/components/tree-view/TreeView.d.ts +2 -2
- package/dist/components/tree-view/TreeView_module.css +1 -1
- package/dist/styles/reset.css +33 -0
- package/package.json +6 -6
|
@@ -5,8 +5,18 @@ import { forwardRef } from "react";
|
|
|
5
5
|
import { CloseIcon } from "../../internal/icons/ui/index.js";
|
|
6
6
|
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
7
|
import CloseButton_module from "./CloseButton.module.js";
|
|
8
|
-
const CloseButton_CloseButtonRoot = /*#__PURE__*/ forwardRef(function({ asChild, className, children, disabled, onClick, type, 'aria-disabled': ariaDisabled, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'data-disabled': dataDisabled, 'data-part': dataPart, 'data-scope': dataScope, 'data-slot': dataSlot, ...props }, ref) {
|
|
8
|
+
const CloseButton_CloseButtonRoot = /*#__PURE__*/ forwardRef(function({ asChild, className, children, disabled, onClick, onClickCapture, type, 'aria-disabled': ariaDisabled, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'data-disabled': dataDisabled, 'data-part': dataPart, 'data-scope': dataScope, 'data-slot': dataSlot, ...props }, ref) {
|
|
9
9
|
const isDisabled = disabled || true === ariaDisabled || 'true' === ariaDisabled || void 0 !== dataDisabled;
|
|
10
|
+
const nativeDisabled = asChild ? void 0 : disabled;
|
|
11
|
+
const resolvedAriaDisabled = asChild && disabled ? true : ariaDisabled;
|
|
12
|
+
const handleClickCapture = (event)=>{
|
|
13
|
+
if (isDisabled) {
|
|
14
|
+
event.preventDefault();
|
|
15
|
+
event.stopPropagation();
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
onClickCapture?.(event);
|
|
19
|
+
};
|
|
10
20
|
const handleClick = (event)=>{
|
|
11
21
|
if (isDisabled) {
|
|
12
22
|
event.preventDefault();
|
|
@@ -20,15 +30,16 @@ const CloseButton_CloseButtonRoot = /*#__PURE__*/ forwardRef(function({ asChild,
|
|
|
20
30
|
asChild: asChild,
|
|
21
31
|
...props,
|
|
22
32
|
type: asChild ? type : type ?? 'button',
|
|
23
|
-
disabled:
|
|
33
|
+
disabled: nativeDisabled,
|
|
24
34
|
"data-scope": dataScope ?? 'close-button',
|
|
25
35
|
"data-part": dataPart ?? 'root',
|
|
26
36
|
"data-slot": dataSlot ?? 'close-button-root',
|
|
27
37
|
"data-disabled": dataDisabled ?? (isDisabled ? '' : void 0),
|
|
28
38
|
className: clsx(CloseButton_module.root, normalizeClassName(className)),
|
|
29
|
-
"aria-disabled":
|
|
39
|
+
"aria-disabled": resolvedAriaDisabled,
|
|
30
40
|
"aria-label": ariaLabel ?? (null == ariaLabelledBy ? 'Close' : void 0),
|
|
31
41
|
"aria-labelledby": ariaLabelledBy,
|
|
42
|
+
onClickCapture: handleClickCapture,
|
|
32
43
|
onClick: handleClick,
|
|
33
44
|
children: children || /*#__PURE__*/ jsx(CloseIcon, {})
|
|
34
45
|
});
|
|
@@ -145,5 +145,16 @@
|
|
|
145
145
|
padding: var(--moduix-collapsible-body-padding, var(--moduix-spacing-2));
|
|
146
146
|
display: grid;
|
|
147
147
|
}
|
|
148
|
+
|
|
149
|
+
@media (prefers-reduced-motion: reduce) {
|
|
150
|
+
.trigger-o93fRO, .indicator-ll1vd8 {
|
|
151
|
+
transition: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.content-dHAw0w[data-state] {
|
|
155
|
+
animation-duration: 1ms;
|
|
156
|
+
animation-delay: 0s;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
148
159
|
}
|
|
149
160
|
|
|
@@ -3,7 +3,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { ColorPicker, parseColor, useColorPicker, useColorPickerContext } from "@ark-ui/react/color-picker";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { Children, cloneElement, forwardRef } from "react";
|
|
6
|
-
import { CheckIcon, PipetteIcon } from "../../internal/icons/ui/index.js";
|
|
6
|
+
import { CheckIcon, ChevronDownIcon, PipetteIcon } from "../../internal/icons/ui/index.js";
|
|
7
7
|
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
8
|
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
|
|
9
9
|
import ColorPicker_module from "./ColorPicker.module.js";
|
|
@@ -220,11 +220,21 @@ const ColorPicker_ColorPickerEyeDropperTrigger = /*#__PURE__*/ forwardRef(functi
|
|
|
220
220
|
});
|
|
221
221
|
});
|
|
222
222
|
const ColorPicker_ColorPickerFormatSelect = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
223
|
-
return /*#__PURE__*/
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
223
|
+
return /*#__PURE__*/ jsxs("span", {
|
|
224
|
+
className: ColorPicker_module.formatSelectControl,
|
|
225
|
+
children: [
|
|
226
|
+
/*#__PURE__*/ jsx(ColorPicker.FormatSelect, {
|
|
227
|
+
ref: ref,
|
|
228
|
+
"data-slot": "color-picker-format-select",
|
|
229
|
+
className: clsx(ColorPicker_module.formatSelect, normalizeClassName(className)),
|
|
230
|
+
...props
|
|
231
|
+
}),
|
|
232
|
+
/*#__PURE__*/ jsx("span", {
|
|
233
|
+
"aria-hidden": "true",
|
|
234
|
+
className: ColorPicker_module.formatSelectIndicator,
|
|
235
|
+
children: /*#__PURE__*/ jsx(ChevronDownIcon, {})
|
|
236
|
+
})
|
|
237
|
+
]
|
|
228
238
|
});
|
|
229
239
|
});
|
|
230
240
|
const ColorPicker_ColorPickerFormatTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -20,6 +20,8 @@ const ColorPicker_module = {
|
|
|
20
20
|
channelSliderValueText: "channelSliderValueText-ZFMCO7",
|
|
21
21
|
channelInput: "channelInput-KxngYC",
|
|
22
22
|
formatSelect: "formatSelect-jD2i0e",
|
|
23
|
+
formatSelectControl: "formatSelectControl-S40Hse",
|
|
24
|
+
formatSelectIndicator: "formatSelectIndicator-VJN6PV",
|
|
23
25
|
eyeDropperTrigger: "eyeDropperTrigger-jF9YiQ",
|
|
24
26
|
formatTrigger: "formatTrigger-pUu2zb",
|
|
25
27
|
swatchGroup: "swatchGroup-c99XUr",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
overflow: hidden;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
.trigger-o5tyg7:is(:focus-visible, [data-
|
|
96
|
+
.trigger-o5tyg7:is(:focus-visible, [data-state="open"]) {
|
|
97
97
|
border-color: var(--moduix-color-picker-focus-ring-color, var(--moduix-color-ring));
|
|
98
98
|
outline-color: var(--moduix-color-picker-focus-ring-color, var(--moduix-color-ring));
|
|
99
99
|
}
|
|
@@ -161,6 +161,13 @@
|
|
|
161
161
|
var(--moduix-popup-motion-easing, var(--moduix-ease-in-out)));
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
+
@media (prefers-reduced-motion: reduce) {
|
|
165
|
+
.content-z7zabu[data-state] {
|
|
166
|
+
animation-duration: 1ms;
|
|
167
|
+
animation-delay: 0s;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
164
171
|
.area-t8_R52 {
|
|
165
172
|
box-sizing: border-box;
|
|
166
173
|
width: 100%;
|
|
@@ -305,7 +312,6 @@
|
|
|
305
312
|
-1);
|
|
306
313
|
transition: border-color var(--moduix-color-picker-transition, var(--moduix-transition-default)),
|
|
307
314
|
outline-color var(--moduix-color-picker-transition, var(--moduix-transition-default));
|
|
308
|
-
appearance: textfield;
|
|
309
315
|
margin: 0;
|
|
310
316
|
}
|
|
311
317
|
|
|
@@ -323,18 +329,19 @@
|
|
|
323
329
|
opacity: var(--moduix-color-picker-disabled-opacity, var(--moduix-opacity-disabled));
|
|
324
330
|
}
|
|
325
331
|
|
|
326
|
-
|
|
327
|
-
appearance:
|
|
328
|
-
|
|
332
|
+
.channelInput-KxngYC {
|
|
333
|
+
appearance: textfield;
|
|
334
|
+
flex: 1;
|
|
329
335
|
}
|
|
330
336
|
|
|
331
|
-
|
|
337
|
+
.channelInput-KxngYC::-webkit-outer-spin-button {
|
|
332
338
|
appearance: none;
|
|
333
339
|
margin: 0;
|
|
334
340
|
}
|
|
335
341
|
|
|
336
|
-
.channelInput-KxngYC {
|
|
337
|
-
|
|
342
|
+
.channelInput-KxngYC::-webkit-inner-spin-button {
|
|
343
|
+
appearance: none;
|
|
344
|
+
margin: 0;
|
|
338
345
|
}
|
|
339
346
|
|
|
340
347
|
.channelInput-KxngYC[data-channel="alpha"] {
|
|
@@ -342,9 +349,77 @@
|
|
|
342
349
|
flex: 0 0 var(--moduix-color-picker-alpha-input-width, 4rem);
|
|
343
350
|
}
|
|
344
351
|
|
|
352
|
+
.formatSelectControl-S40Hse {
|
|
353
|
+
flex-shrink: 0;
|
|
354
|
+
width: -moz-fit-content;
|
|
355
|
+
width: fit-content;
|
|
356
|
+
min-width: 0;
|
|
357
|
+
max-width: 100%;
|
|
358
|
+
display: inline-grid;
|
|
359
|
+
position: relative;
|
|
360
|
+
}
|
|
361
|
+
|
|
345
362
|
.formatSelect-jD2i0e {
|
|
346
|
-
cursor: pointer;
|
|
347
363
|
width: auto;
|
|
364
|
+
appearance: none;
|
|
365
|
+
cursor: pointer;
|
|
366
|
+
text-transform: uppercase;
|
|
367
|
+
padding-inline-end: calc(var(--moduix-color-picker-input-padding-x, var(--moduix-spacing-3)) +
|
|
368
|
+
var(--moduix-color-picker-icon-size, var(--moduix-spacing-4)) + var(--moduix-spacing-1));
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.formatSelect-jD2i0e:is([disabled], [data-disabled]) {
|
|
372
|
+
cursor: default;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
@media (forced-colors: active) {
|
|
376
|
+
.formatSelect-jD2i0e {
|
|
377
|
+
appearance: auto;
|
|
378
|
+
padding-inline-end: var(--moduix-color-picker-input-padding-x, var(--moduix-spacing-3));
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.formatSelectIndicator-VJN6PV {
|
|
383
|
+
top: 50%;
|
|
384
|
+
width: var(--moduix-color-picker-icon-size, var(--moduix-spacing-4));
|
|
385
|
+
height: var(--moduix-color-picker-icon-size, var(--moduix-spacing-4));
|
|
386
|
+
border-radius: var(--moduix-radius-sm);
|
|
387
|
+
background: var(--moduix-color-picker-action-bg, transparent);
|
|
388
|
+
color: var(--moduix-color-picker-action-color, var(--moduix-color-muted-foreground));
|
|
389
|
+
pointer-events: none;
|
|
390
|
+
transition: background-color var(--moduix-color-picker-transition, var(--moduix-transition-default)),
|
|
391
|
+
color var(--moduix-color-picker-transition, var(--moduix-transition-default)),
|
|
392
|
+
opacity var(--moduix-color-picker-transition, var(--moduix-transition-default));
|
|
393
|
+
justify-content: center;
|
|
394
|
+
align-items: center;
|
|
395
|
+
line-height: 0;
|
|
396
|
+
display: inline-flex;
|
|
397
|
+
position: absolute;
|
|
398
|
+
inset-inline-end: var(--moduix-color-picker-input-padding-x, var(--moduix-spacing-3));
|
|
399
|
+
transform: translateY(-50%);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.formatSelectIndicator-VJN6PV > svg {
|
|
403
|
+
width: 100%;
|
|
404
|
+
height: 100%;
|
|
405
|
+
display: block;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
@media (forced-colors: active) {
|
|
409
|
+
.formatSelectIndicator-VJN6PV {
|
|
410
|
+
display: none;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
@media (hover: hover) {
|
|
415
|
+
.formatSelect-jD2i0e:not(:is([disabled], [data-disabled])):hover + .formatSelectIndicator-VJN6PV {
|
|
416
|
+
background-color: var(--moduix-color-picker-action-bg-hover, var(--moduix-color-muted));
|
|
417
|
+
color: var(--moduix-color-picker-action-color-hover, var(--moduix-color-foreground));
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.formatSelect-jD2i0e:is([disabled], [data-disabled]) + .formatSelectIndicator-VJN6PV {
|
|
422
|
+
opacity: var(--moduix-color-picker-disabled-opacity, var(--moduix-opacity-disabled));
|
|
348
423
|
}
|
|
349
424
|
|
|
350
425
|
.eyeDropperTrigger-jF9YiQ, .formatTrigger-pUu2zb {
|
|
@@ -16,7 +16,7 @@ declare const Combobox: ComboboxPrimitive.RootComponent<OverlayPortalProps> & {
|
|
|
16
16
|
Positioner: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.PositionerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
17
|
Content: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
18
|
Empty: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.EmptyProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
|
-
Status: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
|
+
Status: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
20
|
List: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ListProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
21
|
ItemGroup: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ItemGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
22
|
ItemGroupLabel: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ItemGroupLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Combobox, useCombobox, useComboboxContext, useComboboxItemContext } from "@ark-ui/react/combobox";
|
|
4
|
+
import { ark } from "@ark-ui/react/factory";
|
|
4
5
|
import { clsx } from "clsx";
|
|
5
6
|
import { forwardRef } from "react";
|
|
6
7
|
import { CheckIcon, ChevronUpDownIcon } from "../../internal/icons/ui/index.js";
|
|
@@ -122,7 +123,7 @@ const Combobox_ComboboxEmpty = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
122
123
|
});
|
|
123
124
|
});
|
|
124
125
|
const Combobox_ComboboxStatus = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
125
|
-
return /*#__PURE__*/ jsx(
|
|
126
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
126
127
|
ref: ref,
|
|
127
128
|
"data-slot": "combobox-status",
|
|
128
129
|
className: clsx(Combobox_module.status, normalizeClassName(className)),
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
.itemGroup-yxILwV + .itemGroup-yxILwV {
|
|
257
|
-
margin-
|
|
257
|
+
margin-block-start: var(--moduix-combobox-item-group-gap, var(--moduix-spacing-2));
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
.itemGroupLabel-XrjPai {
|
|
@@ -250,26 +250,18 @@ const CommandPalette_CommandPaletteList = /*#__PURE__*/ forwardRef(function({ cl
|
|
|
250
250
|
"data-slot": "command-palette-list",
|
|
251
251
|
className: clsx(CommandPalette_module.list, normalizeClassName(className)),
|
|
252
252
|
...props,
|
|
253
|
-
children: /*#__PURE__*/
|
|
253
|
+
children: /*#__PURE__*/ jsx(ScrollArea, {
|
|
254
254
|
"data-slot": "command-palette-scroll-area",
|
|
255
255
|
className: CommandPalette_module.scrollArea,
|
|
256
|
-
children:
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}),
|
|
266
|
-
/*#__PURE__*/ jsx(ScrollArea.Scrollbar, {
|
|
267
|
-
"data-slot": "command-palette-scrollbar",
|
|
268
|
-
className: CommandPalette_module.scrollbar,
|
|
269
|
-
children: /*#__PURE__*/ jsx(ScrollArea.Thumb, {})
|
|
270
|
-
}),
|
|
271
|
-
/*#__PURE__*/ jsx(ScrollArea.Corner, {})
|
|
272
|
-
]
|
|
256
|
+
children: /*#__PURE__*/ jsx(ScrollArea.Viewport, {
|
|
257
|
+
"data-slot": "command-palette-scroll-viewport",
|
|
258
|
+
className: CommandPalette_module.scrollViewport,
|
|
259
|
+
children: /*#__PURE__*/ jsx(ScrollArea.Content, {
|
|
260
|
+
"data-slot": "command-palette-scroll-content",
|
|
261
|
+
className: CommandPalette_module.scrollContent,
|
|
262
|
+
children: children
|
|
263
|
+
})
|
|
264
|
+
})
|
|
273
265
|
})
|
|
274
266
|
});
|
|
275
267
|
});
|
|
@@ -25,7 +25,6 @@ const CommandPalette_module = {
|
|
|
25
25
|
scrollArea: "scrollArea-ncZoUD",
|
|
26
26
|
scrollViewport: "scrollViewport-Fh34Bl",
|
|
27
27
|
scrollContent: "scrollContent-Xew5ld",
|
|
28
|
-
scrollbar: "scrollbar-hnOYgf",
|
|
29
28
|
itemGroup: "itemGroup-glHNMl",
|
|
30
29
|
itemGroupLabel: "itemGroupLabel-JWv82S",
|
|
31
30
|
item: "item-UA3NPh",
|
|
@@ -159,9 +159,9 @@
|
|
|
159
159
|
align-items: center;
|
|
160
160
|
gap: var(--moduix-command-palette-input-gap, var(--moduix-spacing-2));
|
|
161
161
|
min-height: var(--moduix-command-palette-input-height, var(--moduix-size-md));
|
|
162
|
-
margin: var(--moduix-command-palette-control-margin-y, var(--moduix-spacing-
|
|
163
|
-
var(--moduix-command-palette-control-margin-x, var(--moduix-spacing-
|
|
164
|
-
var(--moduix-command-palette-control-margin-bottom, var(--moduix-
|
|
162
|
+
margin: var(--moduix-command-palette-control-margin-y, var(--moduix-spacing-3))
|
|
163
|
+
var(--moduix-command-palette-control-margin-x, var(--moduix-spacing-3))
|
|
164
|
+
var(--moduix-command-palette-control-margin-bottom, var(--moduix-command-palette-control-margin-y, 0));
|
|
165
165
|
border: var(--moduix-command-palette-input-border-width, var(--moduix-border-width-sm)) solid
|
|
166
166
|
var(--moduix-command-palette-input-border-color, var(--moduix-color-border));
|
|
167
167
|
border-radius: var(--moduix-command-palette-input-radius, var(--moduix-radius-md));
|
|
@@ -228,14 +228,8 @@
|
|
|
228
228
|
|
|
229
229
|
.scrollArea-ncZoUD {
|
|
230
230
|
--moduix-scroll-area-radius: 0;
|
|
231
|
-
--moduix-scroll-area-
|
|
232
|
-
|
|
233
|
-
--moduix-scroll-area-thumb-bg: var(--moduix-command-palette-scrollbar-thumb-bg, var(--moduix-color-border));
|
|
234
|
-
--moduix-scroll-area-content-padding: var(--moduix-command-palette-list-padding-y, var(--moduix-spacing-2))
|
|
235
|
-
calc(var(--moduix-command-palette-list-padding-x, var(--moduix-spacing-2)) +
|
|
236
|
-
var(--moduix-scroll-area-scrollbar-size) + var(--moduix-scroll-area-scrollbar-margin))
|
|
237
|
-
var(--moduix-command-palette-list-padding-y, var(--moduix-spacing-2))
|
|
238
|
-
var(--moduix-command-palette-list-padding-x, var(--moduix-spacing-2));
|
|
231
|
+
--moduix-scroll-area-content-padding: var(--moduix-command-palette-list-padding-y, var(--moduix-spacing-3))
|
|
232
|
+
var(--moduix-command-palette-list-padding-x, var(--moduix-spacing-3));
|
|
239
233
|
--moduix-scroll-area-height: auto;
|
|
240
234
|
width: 100%;
|
|
241
235
|
min-height: 0;
|
|
@@ -255,10 +249,6 @@
|
|
|
255
249
|
padding: 0;
|
|
256
250
|
}
|
|
257
251
|
|
|
258
|
-
.scrollbar-hnOYgf {
|
|
259
|
-
--moduix-scroll-area-scrollbar-bg: transparent;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
252
|
.itemGroup-glHNMl {
|
|
263
253
|
gap: var(--moduix-command-palette-group-gap, var(--moduix-spacing-1));
|
|
264
254
|
display: grid;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
@layer moduix.components {
|
|
2
2
|
.root-U4_b43 {
|
|
3
|
-
--
|
|
4
|
-
--
|
|
3
|
+
--_container-gutter: var(--moduix-container-gutter-md, clamp(var(--moduix-spacing-4), 4vw, var(--moduix-spacing-8)));
|
|
4
|
+
--_container-max-width: var(--moduix-container-max-width-lg, 72rem);
|
|
5
5
|
box-sizing: border-box;
|
|
6
6
|
width: 100%;
|
|
7
|
-
max-width: calc(var(--
|
|
7
|
+
max-width: calc(var(--_container-max-width) + (var(--_container-gutter) * 2));
|
|
8
8
|
min-width: 0;
|
|
9
|
-
padding-inline: var(--
|
|
9
|
+
padding-inline: var(--_container-gutter);
|
|
10
10
|
margin-inline: auto;
|
|
11
11
|
display: block;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.root-U4_b43[data-size="xs"] {
|
|
15
|
-
--
|
|
15
|
+
--_container-max-width: var(--moduix-container-max-width-xs, 40rem);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.root-U4_b43[data-size="sm"] {
|
|
19
|
-
--
|
|
19
|
+
--_container-max-width: var(--moduix-container-max-width-sm, 48rem);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.root-U4_b43[data-size="md"] {
|
|
23
|
-
--
|
|
23
|
+
--_container-max-width: var(--moduix-container-max-width-md, 64rem);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.root-U4_b43[data-size="xl"] {
|
|
27
|
-
--
|
|
27
|
+
--_container-max-width: var(--moduix-container-max-width-xl, 90rem);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.root-U4_b43[data-size="full"] {
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.root-U4_b43[data-gutter="none"] {
|
|
35
|
-
--
|
|
35
|
+
--_container-gutter: 0;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.root-U4_b43[data-gutter="sm"] {
|
|
39
|
-
--
|
|
39
|
+
--_container-gutter: var(--moduix-container-gutter-sm, clamp(var(--moduix-spacing-3), 3vw, var(--moduix-spacing-6)));
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.root-U4_b43[data-gutter="lg"] {
|
|
43
|
-
--
|
|
43
|
+
--_container-gutter: var(--moduix-container-gutter-lg, clamp(var(--moduix-spacing-6), 5vw, 3rem));
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { DatePicker, useDatePicker, useDatePickerContext } from "@ark-ui/react/date-picker";
|
|
4
|
+
import { useFieldContext } from "@ark-ui/react/field";
|
|
5
|
+
import { useFieldsetContext } from "@ark-ui/react/fieldset";
|
|
4
6
|
import { clsx } from "clsx";
|
|
5
7
|
import { forwardRef } from "react";
|
|
6
8
|
import { CalendarIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "../../internal/icons/ui/index.js";
|
|
@@ -8,7 +10,9 @@ import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
|
8
10
|
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
|
|
9
11
|
import { CloseButton } from "../close-button/index.js";
|
|
10
12
|
import DatePicker_module from "./DatePicker.module.js";
|
|
11
|
-
const DatePicker_DatePickerRoot = /*#__PURE__*/ forwardRef(function({ className, lazyMount = true, portalled, portalRef, unmountOnExit = true, ...props }, ref) {
|
|
13
|
+
const DatePicker_DatePickerRoot = /*#__PURE__*/ forwardRef(function({ className, disabled, invalid, lazyMount = true, portalled, portalRef, readOnly, required, unmountOnExit = true, ...props }, ref) {
|
|
14
|
+
const field = useFieldContext();
|
|
15
|
+
const fieldset = useFieldsetContext();
|
|
12
16
|
return /*#__PURE__*/ jsx(OverlayPortalProvider, {
|
|
13
17
|
portalled: portalled,
|
|
14
18
|
portalRef: portalRef,
|
|
@@ -16,7 +20,11 @@ const DatePicker_DatePickerRoot = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
16
20
|
ref: ref,
|
|
17
21
|
"data-slot": "date-picker-root",
|
|
18
22
|
className: clsx(DatePicker_module.root, normalizeClassName(className)),
|
|
23
|
+
disabled: disabled ?? field?.disabled ?? fieldset?.disabled,
|
|
24
|
+
invalid: invalid ?? field?.invalid ?? fieldset?.invalid,
|
|
19
25
|
lazyMount: lazyMount,
|
|
26
|
+
readOnly: readOnly ?? field?.readOnly,
|
|
27
|
+
required: required ?? field?.required,
|
|
20
28
|
unmountOnExit: unmountOnExit,
|
|
21
29
|
...props
|
|
22
30
|
})
|
|
@@ -61,7 +69,8 @@ const DatePicker_DatePickerField = /*#__PURE__*/ forwardRef(function({ clearLabe
|
|
|
61
69
|
...void 0 === placeholder ? {} : {
|
|
62
70
|
placeholder
|
|
63
71
|
},
|
|
64
|
-
...inputProps
|
|
72
|
+
...inputProps,
|
|
73
|
+
index: 0
|
|
65
74
|
}),
|
|
66
75
|
/*#__PURE__*/ jsx(DatePicker_DatePickerClearTrigger, {
|
|
67
76
|
...void 0 === clearLabel ? {} : {
|
|
@@ -84,18 +93,18 @@ const DatePicker_DatePickerRangeField = /*#__PURE__*/ forwardRef(function({ clea
|
|
|
84
93
|
...props,
|
|
85
94
|
children: [
|
|
86
95
|
/*#__PURE__*/ jsx(DatePicker_DatePickerInput, {
|
|
87
|
-
index: 0,
|
|
88
96
|
...void 0 === startPlaceholder ? {} : {
|
|
89
97
|
placeholder: startPlaceholder
|
|
90
98
|
},
|
|
91
|
-
...startInputProps
|
|
99
|
+
...startInputProps,
|
|
100
|
+
index: 0
|
|
92
101
|
}),
|
|
93
102
|
/*#__PURE__*/ jsx(DatePicker_DatePickerInput, {
|
|
94
|
-
index: 1,
|
|
95
103
|
...void 0 === endPlaceholder ? {} : {
|
|
96
104
|
placeholder: endPlaceholder
|
|
97
105
|
},
|
|
98
|
-
...endInputProps
|
|
106
|
+
...endInputProps,
|
|
107
|
+
index: 1
|
|
99
108
|
}),
|
|
100
109
|
/*#__PURE__*/ jsx(DatePicker_DatePickerClearTrigger, {
|
|
101
110
|
...void 0 === clearLabel ? {} : {
|
|
@@ -5,9 +5,6 @@ type DialogRootProps = ComponentProps<typeof DialogPrimitive.Root> & OverlayPort
|
|
|
5
5
|
type DialogRootProviderProps = ComponentProps<typeof DialogPrimitive.RootProvider> & OverlayPortalProps;
|
|
6
6
|
declare function DialogRoot({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: DialogRootProps): import("react").JSX.Element;
|
|
7
7
|
declare function DialogRootProvider({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: DialogRootProviderProps): import("react").JSX.Element;
|
|
8
|
-
declare function DialogHeader({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
9
|
-
declare function DialogBody({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
10
|
-
declare function DialogFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
11
8
|
declare const Dialog: typeof DialogRoot & {
|
|
12
9
|
Root: typeof DialogRoot;
|
|
13
10
|
RootProvider: typeof DialogRootProvider;
|
|
@@ -20,9 +17,9 @@ declare const Dialog: typeof DialogRoot & {
|
|
|
20
17
|
Description: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DescriptionProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
18
|
CloseTrigger: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
22
19
|
CloseIcon: import("react").ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "asChild">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
23
|
-
Header:
|
|
24
|
-
Body:
|
|
25
|
-
Footer:
|
|
20
|
+
Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
Footer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
23
|
};
|
|
27
24
|
export { Dialog, useDialog, useDialogContext };
|
|
28
25
|
export type { DialogRootProps, DialogRootProviderProps };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Dialog, useDialog, useDialogContext } from "@ark-ui/react/dialog";
|
|
4
|
+
import { ark } from "@ark-ui/react/factory";
|
|
4
5
|
import { clsx } from "clsx";
|
|
5
6
|
import { forwardRef } from "react";
|
|
6
7
|
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
@@ -105,27 +106,30 @@ const Dialog_DialogCloseIcon = /*#__PURE__*/ forwardRef(function({ className, ch
|
|
|
105
106
|
})
|
|
106
107
|
});
|
|
107
108
|
});
|
|
108
|
-
|
|
109
|
-
return /*#__PURE__*/ jsx(
|
|
109
|
+
const Dialog_DialogHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
110
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
111
|
+
ref: ref,
|
|
110
112
|
"data-slot": "dialog-header",
|
|
111
|
-
className: clsx(Dialog_module.header, className),
|
|
113
|
+
className: clsx(Dialog_module.header, normalizeClassName(className)),
|
|
112
114
|
...props
|
|
113
115
|
});
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
return /*#__PURE__*/ jsx(
|
|
116
|
+
});
|
|
117
|
+
const Dialog_DialogBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
118
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
119
|
+
ref: ref,
|
|
117
120
|
"data-slot": "dialog-body",
|
|
118
|
-
className: clsx(Dialog_module.body, className),
|
|
121
|
+
className: clsx(Dialog_module.body, normalizeClassName(className)),
|
|
119
122
|
...props
|
|
120
123
|
});
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
return /*#__PURE__*/ jsx(
|
|
124
|
+
});
|
|
125
|
+
const Dialog_DialogFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
126
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
127
|
+
ref: ref,
|
|
124
128
|
"data-slot": "dialog-footer",
|
|
125
|
-
className: clsx(Dialog_module.footer, className),
|
|
129
|
+
className: clsx(Dialog_module.footer, normalizeClassName(className)),
|
|
126
130
|
...props
|
|
127
131
|
});
|
|
128
|
-
}
|
|
132
|
+
});
|
|
129
133
|
const Dialog_Dialog = Object.assign(DialogRoot, {
|
|
130
134
|
Root: DialogRoot,
|
|
131
135
|
RootProvider: DialogRootProvider,
|
|
@@ -138,8 +142,8 @@ const Dialog_Dialog = Object.assign(DialogRoot, {
|
|
|
138
142
|
Description: Dialog_DialogDescription,
|
|
139
143
|
CloseTrigger: Dialog_DialogCloseTrigger,
|
|
140
144
|
CloseIcon: Dialog_DialogCloseIcon,
|
|
141
|
-
Header:
|
|
142
|
-
Body:
|
|
143
|
-
Footer:
|
|
145
|
+
Header: Dialog_DialogHeader,
|
|
146
|
+
Body: Dialog_DialogBody,
|
|
147
|
+
Footer: Dialog_DialogFooter
|
|
144
148
|
});
|
|
145
149
|
export { Dialog_Dialog as Dialog, useDialog, useDialogContext };
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
.footer-E1Avqe {
|
|
181
181
|
justify-content: flex-end;
|
|
182
182
|
gap: var(--moduix-dialog-footer-gap, var(--moduix-spacing-2));
|
|
183
|
-
margin-
|
|
183
|
+
margin-block-start: var(--moduix-dialog-footer-margin-top, var(--moduix-spacing-6));
|
|
184
184
|
display: flex;
|
|
185
185
|
}
|
|
186
186
|
|
|
@@ -232,5 +232,16 @@
|
|
|
232
232
|
scale: var(--moduix-dialog-content-ending-scale, var(--moduix-popup-motion-ending-scale, var(--moduix-scale-popup)));
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
+
|
|
236
|
+
@media (prefers-reduced-motion: reduce) {
|
|
237
|
+
.backdrop-If26oI[data-state], .content-efn3VB[data-state] {
|
|
238
|
+
animation-duration: 1ms;
|
|
239
|
+
animation-delay: 0s;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.content-efn3VB {
|
|
243
|
+
transition: none;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
235
246
|
}
|
|
236
247
|
|
|
@@ -8,9 +8,6 @@ type DrawerContentProps = ComponentProps<typeof DrawerPrimitive.Content> & {
|
|
|
8
8
|
};
|
|
9
9
|
declare function DrawerRoot({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: DrawerRootProps): import("react").JSX.Element;
|
|
10
10
|
declare function DrawerRootProvider({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: DrawerRootProviderProps): import("react").JSX.Element;
|
|
11
|
-
declare function DrawerHeader({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
12
|
-
declare function DrawerBody({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
13
|
-
declare function DrawerFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
14
11
|
declare const Drawer: typeof DrawerRoot & {
|
|
15
12
|
Root: typeof DrawerRoot;
|
|
16
13
|
RootProvider: typeof DrawerRootProvider;
|
|
@@ -29,8 +26,8 @@ declare const Drawer: typeof DrawerRoot & {
|
|
|
29
26
|
SwipeArea: import("react").ForwardRefExoticComponent<Omit<DrawerPrimitive.SwipeAreaProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
27
|
Indent: import("react").ForwardRefExoticComponent<Omit<DrawerPrimitive.IndentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
28
|
IndentBackground: import("react").ForwardRefExoticComponent<Omit<DrawerPrimitive.IndentBackgroundProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
32
|
-
Header:
|
|
33
|
-
Body:
|
|
34
|
-
Footer:
|
|
29
|
+
Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
|
+
Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
|
+
Footer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
35
32
|
};
|
|
36
33
|
export { Drawer, useDrawer, useDrawerContext, useDrawerStackContext };
|