@moduix/react 2.2.4 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +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/chart/Chart.d.ts +17 -0
- package/dist/components/chart/Chart.js +156 -0
- package/dist/components/chart/Chart.module.js +18 -0
- package/dist/components/chart/Chart_module.css +138 -0
- package/dist/components/chart/index.d.ts +1 -0
- package/dist/components/chart/index.js +1 -0
- 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 +10 -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 +27 -15
|
@@ -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 };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Drawer, useDrawer, useDrawerContext, useDrawerStackContext } from "@ark-ui/react/drawer";
|
|
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";
|
|
@@ -147,27 +148,30 @@ const Drawer_DrawerIndentBackground = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
147
148
|
...props
|
|
148
149
|
});
|
|
149
150
|
});
|
|
150
|
-
|
|
151
|
-
return /*#__PURE__*/ jsx(
|
|
151
|
+
const Drawer_DrawerHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
152
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
153
|
+
ref: ref,
|
|
152
154
|
"data-slot": "drawer-header",
|
|
153
|
-
className: clsx(Drawer_module.header, className),
|
|
155
|
+
className: clsx(Drawer_module.header, normalizeClassName(className)),
|
|
154
156
|
...props
|
|
155
157
|
});
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
return /*#__PURE__*/ jsx(
|
|
158
|
+
});
|
|
159
|
+
const Drawer_DrawerBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
160
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
161
|
+
ref: ref,
|
|
159
162
|
"data-slot": "drawer-body",
|
|
160
|
-
className: clsx(Drawer_module.body, className),
|
|
163
|
+
className: clsx(Drawer_module.body, normalizeClassName(className)),
|
|
161
164
|
...props
|
|
162
165
|
});
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
return /*#__PURE__*/ jsx(
|
|
166
|
+
});
|
|
167
|
+
const Drawer_DrawerFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
168
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
169
|
+
ref: ref,
|
|
166
170
|
"data-slot": "drawer-footer",
|
|
167
|
-
className: clsx(Drawer_module.footer, className),
|
|
171
|
+
className: clsx(Drawer_module.footer, normalizeClassName(className)),
|
|
168
172
|
...props
|
|
169
173
|
});
|
|
170
|
-
}
|
|
174
|
+
});
|
|
171
175
|
const Drawer_Drawer = Object.assign(DrawerRoot, {
|
|
172
176
|
Root: DrawerRoot,
|
|
173
177
|
RootProvider: DrawerRootProvider,
|
|
@@ -186,8 +190,8 @@ const Drawer_Drawer = Object.assign(DrawerRoot, {
|
|
|
186
190
|
SwipeArea: Drawer_DrawerSwipeArea,
|
|
187
191
|
Indent: Drawer_DrawerIndent,
|
|
188
192
|
IndentBackground: Drawer_DrawerIndentBackground,
|
|
189
|
-
Header:
|
|
190
|
-
Body:
|
|
191
|
-
Footer:
|
|
193
|
+
Header: Drawer_DrawerHeader,
|
|
194
|
+
Body: Drawer_DrawerBody,
|
|
195
|
+
Footer: Drawer_DrawerFooter
|
|
192
196
|
});
|
|
193
197
|
export { Drawer_Drawer as Drawer, useDrawer, useDrawerContext, useDrawerStackContext };
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.content-ijyEx0 {
|
|
121
|
-
--
|
|
121
|
+
--_drawer-bleed: var(--moduix-drawer-bleed-size, var(--moduix-size-xl));
|
|
122
122
|
--drawer-island-translate-distance: 0px;
|
|
123
123
|
box-sizing: border-box;
|
|
124
124
|
width: min(var(--moduix-drawer-width, 100%), 100vw);
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
|
|
153
153
|
.content-ijyEx0:after {
|
|
154
154
|
inset-inline: 0;
|
|
155
|
-
height: var(--
|
|
155
|
+
height: var(--_drawer-bleed);
|
|
156
156
|
background-color: inherit;
|
|
157
157
|
content: "";
|
|
158
158
|
pointer-events: none;
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
:is(.content-ijyEx0[data-swipe-direction="left"], .content-ijyEx0[data-swipe-direction="right"]):after {
|
|
213
213
|
inset-block: 0;
|
|
214
214
|
inset-inline: auto;
|
|
215
|
-
width: var(--
|
|
215
|
+
width: var(--_drawer-bleed);
|
|
216
216
|
height: auto;
|
|
217
217
|
top: 0;
|
|
218
218
|
}
|
|
@@ -386,14 +386,14 @@
|
|
|
386
386
|
|
|
387
387
|
.body-isYwKt {
|
|
388
388
|
min-height: 0;
|
|
389
|
-
margin-
|
|
389
|
+
margin-block-start: var(--moduix-drawer-body-margin-top, var(--moduix-spacing-4));
|
|
390
390
|
overflow-y: auto;
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
.footer-_cSbP3 {
|
|
394
394
|
justify-content: flex-end;
|
|
395
395
|
gap: var(--moduix-drawer-footer-gap, var(--moduix-spacing-2));
|
|
396
|
-
margin-
|
|
396
|
+
margin-block-start: var(--moduix-drawer-footer-margin-top, var(--moduix-spacing-6));
|
|
397
397
|
display: flex;
|
|
398
398
|
}
|
|
399
399
|
|
|
@@ -514,7 +514,7 @@
|
|
|
514
514
|
@keyframes drawer-content-out-up-BCRbr_ {
|
|
515
515
|
to {
|
|
516
516
|
transform: translate3d(0,
|
|
517
|
-
calc(-100% - var(--drawer-island-translate-distance) - var(--
|
|
517
|
+
calc(-100% - var(--drawer-island-translate-distance) - var(--_drawer-bleed)),
|
|
518
518
|
0);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
@@ -542,5 +542,16 @@
|
|
|
542
542
|
transform: translate3d(calc(100% + var(--drawer-island-translate-distance)), 0, 0);
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
|
+
|
|
546
|
+
@media (prefers-reduced-motion: reduce) {
|
|
547
|
+
.backdrop-butaHQ[data-state], .content-ijyEx0[data-state] {
|
|
548
|
+
animation-duration: 1ms;
|
|
549
|
+
animation-delay: 0s;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.backdrop-butaHQ, .content-ijyEx0, .indent-r1DrXk, .indentBackground-AXVSP_ {
|
|
553
|
+
transition-duration: 1ms;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
545
556
|
}
|
|
546
557
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
.icon-LWbtAW {
|
|
20
20
|
min-width: 0;
|
|
21
21
|
padding: var(--moduix-empty-icon-padding, var(--moduix-spacing-3));
|
|
22
|
-
border-radius: var(--moduix-radius-full);
|
|
22
|
+
border-radius: var(--moduix-empty-icon-radius, var(--moduix-radius-full));
|
|
23
23
|
background-color: var(--moduix-empty-icon-bg, var(--moduix-color-muted));
|
|
24
24
|
color: var(--moduix-empty-icon-color, var(--moduix-color-muted-foreground));
|
|
25
25
|
justify-content: center;
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.description-_YR4BR > :first-child {
|
|
64
|
-
margin-
|
|
64
|
+
margin-block-start: 0;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.description-_YR4BR > :last-child {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
.label-b5wNPe {
|
|
23
23
|
align-items: center;
|
|
24
24
|
gap: var(--moduix-field-label-gap, var(--moduix-spacing-2));
|
|
25
|
+
overflow-wrap: anywhere;
|
|
25
26
|
color: var(--moduix-field-label-color, var(--moduix-color-foreground));
|
|
26
27
|
font-size: var(--moduix-field-label-font-size, var(--moduix-text-sm));
|
|
27
28
|
font-weight: var(--moduix-field-label-font-weight, var(--moduix-weight-medium));
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
.helperText-pAOAcE {
|
|
34
|
+
overflow-wrap: anywhere;
|
|
33
35
|
color: var(--moduix-field-description-color, var(--moduix-color-muted-foreground));
|
|
34
36
|
font-size: var(--moduix-field-description-font-size, var(--moduix-text-sm));
|
|
35
37
|
line-height: var(--moduix-field-description-line-height, var(--moduix-line-height-text-sm));
|
|
@@ -85,8 +87,10 @@
|
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
.errorText-HCuYXk {
|
|
90
|
+
overflow-wrap: anywhere;
|
|
88
91
|
color: var(--moduix-field-error-color, var(--moduix-color-destructive));
|
|
89
92
|
font-size: var(--moduix-field-error-font-size, var(--moduix-text-sm));
|
|
93
|
+
font-weight: var(--moduix-field-error-font-weight, var(--moduix-weight-medium));
|
|
90
94
|
line-height: var(--moduix-field-error-line-height, var(--moduix-line-height-text-sm));
|
|
91
95
|
margin: 0;
|
|
92
96
|
}
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.legend-tBpqK_ {
|
|
30
|
+
overflow-wrap: anywhere;
|
|
30
31
|
max-inline-size: 100%;
|
|
31
32
|
margin: var(--moduix-fieldset-legend-margin, 0);
|
|
32
33
|
padding: var(--moduix-fieldset-legend-padding, 0 0 var(--moduix-spacing-3));
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
.helperText-slHAwI, .errorText-OdD9sO {
|
|
42
|
+
overflow-wrap: anywhere;
|
|
41
43
|
font-size: var(--moduix-fieldset-message-font-size, var(--moduix-text-sm));
|
|
42
44
|
line-height: var(--moduix-fieldset-message-line-height, var(--moduix-line-height-text-sm));
|
|
43
45
|
}
|
|
@@ -48,6 +50,7 @@
|
|
|
48
50
|
|
|
49
51
|
.errorText-OdD9sO {
|
|
50
52
|
color: var(--moduix-fieldset-error-text-color, var(--moduix-color-destructive));
|
|
53
|
+
font-weight: var(--moduix-fieldset-error-text-font-weight, var(--moduix-weight-medium));
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
56
|
|
|
@@ -118,7 +118,7 @@ function getFileTypeLabel(file) {
|
|
|
118
118
|
return extension ? extension.toUpperCase() : file.type || 'FILE';
|
|
119
119
|
}
|
|
120
120
|
function isImageFile(file) {
|
|
121
|
-
return file.type.startsWith('image/')
|
|
121
|
+
return file.type.startsWith('image/');
|
|
122
122
|
}
|
|
123
123
|
const FileUpload_FileUploadItemName = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
124
124
|
return /*#__PURE__*/ jsx(FileUpload.ItemName, {
|
|
@@ -6,7 +6,6 @@ type FloatingPanelRootProps = ComponentProps<typeof FloatingPanelPrimitive.Root>
|
|
|
6
6
|
type FloatingPanelRootProviderProps = ComponentProps<typeof FloatingPanelPrimitive.RootProvider> & OverlayPortalProps;
|
|
7
7
|
declare function FloatingPanelRoot({ closeOnEscape, lazyMount, persistRect, portalled, portalRef, unmountOnExit, ...props }: FloatingPanelRootProps): import("react").JSX.Element;
|
|
8
8
|
declare function FloatingPanelRootProvider({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: FloatingPanelRootProviderProps): import("react").JSX.Element;
|
|
9
|
-
declare function FloatingPanelFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
10
9
|
declare function FloatingPanelResizeTriggerGroup({ axes, }: {
|
|
11
10
|
axes?: readonly FloatingPanelResizeTriggerAxis[];
|
|
12
11
|
}): import("react").JSX.Element;
|
|
@@ -25,7 +24,7 @@ declare const FloatingPanel: typeof FloatingPanelRoot & {
|
|
|
25
24
|
CloseTrigger: import("react").ForwardRefExoticComponent<Omit<FloatingPanelPrimitive.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
26
25
|
CloseIcon: import("react").ForwardRefExoticComponent<Omit<Omit<FloatingPanelPrimitive.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "asChild">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
27
26
|
Body: import("react").ForwardRefExoticComponent<Omit<FloatingPanelPrimitive.BodyProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
28
|
-
Footer:
|
|
27
|
+
Footer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
29
28
|
ResizeTrigger: import("react").ForwardRefExoticComponent<Omit<FloatingPanelPrimitive.ResizeTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
29
|
ResizeTriggerGroup: typeof FloatingPanelResizeTriggerGroup;
|
|
31
30
|
DragIndicator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { ark } from "@ark-ui/react/factory";
|
|
3
4
|
import { FloatingPanel, useFloatingPanel, useFloatingPanelContext } from "@ark-ui/react/floating-panel";
|
|
4
5
|
import { clsx } from "clsx";
|
|
5
6
|
import { forwardRef } from "react";
|
|
@@ -150,15 +151,16 @@ const FloatingPanel_FloatingPanelBody = /*#__PURE__*/ forwardRef(function({ clas
|
|
|
150
151
|
...props
|
|
151
152
|
});
|
|
152
153
|
});
|
|
153
|
-
|
|
154
|
+
const FloatingPanel_FloatingPanelFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
154
155
|
const { ['data-minimized']: dataMinimized } = useFloatingPanelContext().getContentProps();
|
|
155
|
-
return /*#__PURE__*/ jsx(
|
|
156
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
157
|
+
ref: ref,
|
|
156
158
|
...props,
|
|
157
159
|
"data-slot": "floating-panel-footer",
|
|
158
160
|
"data-minimized": dataMinimized,
|
|
159
|
-
className: clsx(FloatingPanel_module.footer, className)
|
|
161
|
+
className: clsx(FloatingPanel_module.footer, normalizeClassName(className))
|
|
160
162
|
});
|
|
161
|
-
}
|
|
163
|
+
});
|
|
162
164
|
const FloatingPanel_FloatingPanelResizeTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
163
165
|
return /*#__PURE__*/ jsx(FloatingPanel.ResizeTrigger, {
|
|
164
166
|
ref: ref,
|
|
@@ -199,7 +201,7 @@ const FloatingPanel_FloatingPanel = Object.assign(FloatingPanelRoot, {
|
|
|
199
201
|
CloseTrigger: FloatingPanel_FloatingPanelCloseTrigger,
|
|
200
202
|
CloseIcon: FloatingPanel_FloatingPanelCloseIcon,
|
|
201
203
|
Body: FloatingPanel_FloatingPanelBody,
|
|
202
|
-
Footer:
|
|
204
|
+
Footer: FloatingPanel_FloatingPanelFooter,
|
|
203
205
|
ResizeTrigger: FloatingPanel_FloatingPanelResizeTrigger,
|
|
204
206
|
ResizeTriggerGroup: FloatingPanelResizeTriggerGroup,
|
|
205
207
|
DragIndicator: FloatingPanel_FloatingPanelDragIndicator,
|