@moduix/react 2.5.1 → 2.7.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 +24 -3
- package/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/components/accordion/Accordion.js +20 -21
- package/dist/components/alert/Alert.js +18 -19
- package/dist/components/alert/Alert_module.css +3 -16
- package/dist/components/angle-slider/AngleSlider.d.ts +5 -11
- package/dist/components/angle-slider/AngleSlider.js +29 -71
- package/dist/components/aspect-ratio/AspectRatio.js +1 -2
- package/dist/components/aspect-ratio/AspectRatio_module.css +0 -13
- package/dist/components/avatar/Avatar.d.ts +3 -6
- package/dist/components/avatar/Avatar.js +14 -57
- package/dist/components/avatar/Avatar.module.js +1 -2
- package/dist/components/avatar/Avatar_module.css +0 -6
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +5 -10
- package/dist/components/badge/Badge_module.css +7 -14
- package/dist/components/bleed/Bleed.js +1 -2
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.js +16 -32
- package/dist/components/breadcrumbs/Breadcrumbs_module.css +12 -14
- package/dist/components/button/Button.d.ts +4 -4
- package/dist/components/button/Button.js +1 -2
- package/dist/components/button/Button_module.css +2 -8
- package/dist/components/card/Card.d.ts +15 -15
- package/dist/components/card/Card.js +30 -31
- package/dist/components/card/Card_module.css +2 -18
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +34 -35
- package/dist/components/carousel/Carousel_module.css +7 -0
- package/dist/components/chart/Chart.d.ts +9 -8
- package/dist/components/chart/Chart.js +21 -22
- package/dist/components/chart/Chart_module.css +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +3 -2
- package/dist/components/checkbox/Checkbox.js +20 -43
- package/dist/components/clipboard/Clipboard.js +27 -27
- package/dist/components/close-button/CloseButton.js +1 -2
- package/dist/components/close-button/CloseButton_module.css +1 -10
- package/dist/components/collapsible/Collapsible.js +17 -20
- package/dist/components/collapsible/Collapsible_module.css +2 -4
- package/dist/components/color-picker/ColorPicker.d.ts +4 -3
- package/dist/components/color-picker/ColorPicker.js +79 -92
- package/dist/components/color-picker/ColorPicker_module.css +0 -1
- package/dist/components/combobox/Combobox.d.ts +5 -5
- package/dist/components/combobox/Combobox.js +51 -60
- package/dist/components/combobox/Combobox_module.css +0 -1
- package/dist/components/command-palette/CommandPalette.d.ts +7 -18
- package/dist/components/command-palette/CommandPalette.js +99 -126
- package/dist/components/command-palette/CommandPalette_module.css +11 -18
- package/dist/components/container/Container.js +1 -2
- package/dist/components/container/Container_module.css +1 -1
- package/dist/components/date-input/DateInput.d.ts +7 -9
- package/dist/components/date-input/DateInput.js +24 -54
- package/dist/components/date-input/DateInput_module.css +0 -1
- package/dist/components/date-picker/DatePicker.d.ts +1 -1
- package/dist/components/date-picker/DatePicker.js +84 -93
- package/dist/components/date-picker/DatePicker.module.js +1 -1
- package/dist/components/date-picker/DatePicker_module.css +5 -2
- package/dist/components/dialog/Dialog.d.ts +1 -1
- package/dist/components/dialog/Dialog.js +31 -32
- package/dist/components/drawer/Drawer.d.ts +6 -3
- package/dist/components/drawer/Drawer.js +63 -54
- package/dist/components/editable/Editable.d.ts +1 -1
- package/dist/components/editable/Editable.js +27 -28
- package/dist/components/empty/Empty.js +18 -19
- package/dist/components/field/Field.js +29 -30
- package/dist/components/fieldset/Fieldset.js +15 -16
- package/dist/components/file-upload/FileUpload.d.ts +3 -2
- package/dist/components/file-upload/FileUpload.js +52 -79
- package/dist/components/file-upload/FileUpload_module.css +4 -13
- package/dist/components/floating-panel/FloatingPanel.d.ts +3 -3
- package/dist/components/floating-panel/FloatingPanel.js +36 -37
- package/dist/components/floating-panel/FloatingPanel_module.css +4 -17
- package/dist/components/floating-panel/index.d.ts +1 -0
- package/dist/components/heading/Heading.js +1 -2
- package/dist/components/highlight/Highlight.js +1 -2
- package/dist/components/hover-card/HoverCard.d.ts +3 -2
- package/dist/components/hover-card/HoverCard.js +24 -15
- package/dist/components/hover-card/HoverCard.module.js +1 -0
- package/dist/components/hover-card/HoverCard_module.css +18 -3
- package/dist/components/hover-card/index.d.ts +1 -0
- package/dist/components/image/Image.js +1 -2
- package/dist/components/image-cropper/ImageCropper.d.ts +1 -1
- package/dist/components/image-cropper/ImageCropper.js +21 -22
- package/dist/components/input/Input.d.ts +4 -4
- package/dist/components/input/Input.js +1 -2
- package/dist/components/input-group/InputGroup.d.ts +5 -5
- package/dist/components/input-group/InputGroup.js +5 -6
- package/dist/components/json-tree-view/JsonTreeView.js +3 -4
- package/dist/components/json-tree-view/JsonTreeView_module.css +26 -10
- package/dist/components/kbd/Kbd.js +6 -7
- package/dist/components/lightbox/Lightbox.d.ts +1 -1
- package/dist/components/lightbox/Lightbox.js +38 -39
- package/dist/components/lightbox/Lightbox_module.css +0 -2
- package/dist/components/list/List.js +2 -3
- package/dist/components/listbox/Listbox.d.ts +5 -5
- package/dist/components/listbox/Listbox.js +50 -56
- package/dist/components/listbox/Listbox.module.js +2 -2
- package/dist/components/listbox/Listbox_module.css +3 -13
- package/dist/components/marquee/Marquee.js +18 -19
- package/dist/components/menu/Menu.d.ts +2 -1
- package/dist/components/menu/Menu.js +72 -79
- package/dist/components/menu/Menu.module.js +1 -1
- package/dist/components/menu/Menu_module.css +8 -8
- package/dist/components/native-select/NativeSelect.js +2 -3
- package/dist/components/native-select/NativeSelect_module.css +0 -1
- package/dist/components/navigation-menu/NavigationMenu.js +39 -58
- package/dist/components/navigation-menu/NavigationMenu.module.js +2 -3
- package/dist/components/navigation-menu/NavigationMenu_module.css +15 -32
- package/dist/components/number-input/NumberInput.js +25 -26
- package/dist/components/pagination/Pagination.js +28 -31
- package/dist/components/pagination/Pagination_module.css +1 -5
- package/dist/components/password-input/PasswordInput.js +20 -21
- package/dist/components/pin-input/PinInput.d.ts +3 -2
- package/dist/components/pin-input/PinInput.js +20 -61
- package/dist/components/popover/Popover.d.ts +5 -3
- package/dist/components/popover/Popover.js +41 -42
- package/dist/components/progress-circular/ProgressCircular.js +24 -25
- package/dist/components/progress-circular/ProgressCircular.module.js +1 -3
- package/dist/components/progress-circular/ProgressCircular_module.css +0 -10
- package/dist/components/progress-linear/ProgressLinear.js +21 -22
- package/dist/components/progress-linear/ProgressLinear.module.js +1 -5
- package/dist/components/progress-linear/ProgressLinear_module.css +0 -20
- package/dist/components/qr-code/QrCode.js +18 -19
- package/dist/components/radio-group/RadioGroup.d.ts +1 -0
- package/dist/components/radio-group/RadioGroup.js +25 -39
- package/dist/components/radio-group/RadioGroup_module.css +0 -1
- package/dist/components/rating-group/RatingGroup.d.ts +1 -0
- package/dist/components/rating-group/RatingGroup.js +19 -36
- package/dist/components/rating-group/RatingGroup_module.css +1 -1
- package/dist/components/scroll-area/ScrollArea.js +7 -8
- package/dist/components/segment-group/SegmentGroup.d.ts +1 -0
- package/dist/components/segment-group/SegmentGroup.js +28 -42
- package/dist/components/segment-group/SegmentGroup_module.css +4 -0
- package/dist/components/select/Select.d.ts +4 -7
- package/dist/components/select/Select.js +69 -119
- package/dist/components/select/Select.module.js +1 -1
- package/dist/components/select/Select_module.css +4 -31
- package/dist/components/separator/Separator.d.ts +6 -6
- package/dist/components/separator/Separator.js +1 -2
- package/dist/components/sidebar/Sidebar.d.ts +16 -16
- package/dist/components/sidebar/Sidebar.js +81 -86
- package/dist/components/sidebar/Sidebar.module.js +2 -3
- package/dist/components/sidebar/Sidebar_module.css +62 -158
- package/dist/components/signature-pad/SignaturePad.d.ts +5 -8
- package/dist/components/signature-pad/SignaturePad.js +28 -57
- package/dist/components/signature-pad/SignaturePad_module.css +0 -1
- package/dist/components/simple-grid/SimpleGrid.js +13 -8
- package/dist/components/skeleton/Skeleton.d.ts +2 -2
- package/dist/components/skeleton/Skeleton.js +1 -2
- package/dist/components/slider/Slider.d.ts +2 -2
- package/dist/components/slider/Slider.js +38 -52
- package/dist/components/spinner/Spinner.d.ts +2 -2
- package/dist/components/spinner/Spinner.js +1 -2
- package/dist/components/split-button/SplitButton.d.ts +7 -7
- package/dist/components/split-button/SplitButton.js +25 -17
- package/dist/components/splitter/Splitter.js +14 -15
- package/dist/components/splitter/Splitter_module.css +2 -10
- package/dist/components/stack/Stack.d.ts +6 -6
- package/dist/components/stack/Stack.js +4 -5
- package/dist/components/stack/Stack_module.css +1 -1
- package/dist/components/steps/Steps.js +35 -36
- package/dist/components/steps/Steps_module.css +2 -3
- package/dist/components/swap/Swap.js +9 -10
- package/dist/components/switch/Switch.d.ts +3 -2
- package/dist/components/switch/Switch.js +17 -40
- package/dist/components/switch/Switch_module.css +0 -1
- package/dist/components/table/Table.d.ts +5 -5
- package/dist/components/table/Table.js +35 -36
- package/dist/components/tabs/Tabs.js +18 -19
- package/dist/components/tabs/Tabs_module.css +5 -10
- package/dist/components/tag/Tag.js +5 -6
- package/dist/components/tag/Tag_module.css +2 -4
- package/dist/components/tags-input/TagsInput.d.ts +3 -3
- package/dist/components/tags-input/TagsInput.js +37 -91
- package/dist/components/tags-input/TagsInput_module.css +0 -1
- package/dist/components/text/Text.js +1 -2
- package/dist/components/textarea/Textarea.js +1 -2
- package/dist/components/timer/Timer.js +21 -22
- package/dist/components/toast/Toast.d.ts +1 -1
- package/dist/components/toast/Toast.js +15 -16
- package/dist/components/toast/Toast_module.css +1 -2
- package/dist/components/toc/Toc.js +29 -30
- package/dist/components/toc/Toc_module.css +2 -2
- package/dist/components/toggle/Toggle.js +6 -7
- package/dist/components/toggle-group/ToggleGroup.d.ts +1 -1
- package/dist/components/toggle-group/ToggleGroup.js +3 -4
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.js +17 -18
- package/dist/components/tooltip/Tooltip_module.css +1 -1
- package/dist/components/tour/Tour.d.ts +1 -1
- package/dist/components/tour/Tour.js +39 -40
- package/dist/components/tree-view/TreeView.d.ts +4 -4
- package/dist/components/tree-view/TreeView.js +47 -48
- package/dist/components/tree-view/TreeView_module.css +39 -12
- package/dist/components/typeset/Typeset.js +2 -3
- package/dist/components/typeset/Typeset_module.css +300 -159
- package/dist/internal/icons/ui/Icons.d.ts +9 -30
- package/dist/internal/icons/ui/Icons.js +67 -807
- package/dist/internal/icons/ui/index.d.ts +1 -1
- package/dist/styles/animations.css +310 -0
- package/dist/styles/style.css +168 -2
- package/package.json +23 -23
- package/dist/internal/normalizeClassName.d.ts +0 -1
- package/dist/internal/normalizeClassName.js +0 -2
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
overflow: hidden;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
.panel-l44YAX[data-state="collapsed"] .menuSub-xn2r86, .panel-l44YAX[data-state="collapsed"] .groupAction-aoQPc4, .panel-l44YAX[data-state="collapsed"] .
|
|
60
|
+
.panel-l44YAX[data-state="collapsed"] .menuSub-xn2r86, .panel-l44YAX[data-state="collapsed"] .groupAction-aoQPc4, .panel-l44YAX[data-state="collapsed"] .input-nqDU3w {
|
|
61
61
|
display: none;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -72,14 +72,6 @@
|
|
|
72
72
|
padding-inline: 0;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
.panel-l44YAX[data-state="collapsed"] .menuButton-OAl6eQ > :not(svg):not([data-sidebar-icon]):not([data-slot="sidebar-label"]) {
|
|
76
|
-
display: none;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.panel-l44YAX[data-state="collapsed"] .menuButton-OAl6eQ > svg, .panel-l44YAX[data-state="collapsed"] .menuButton-OAl6eQ > [data-sidebar-icon] {
|
|
80
|
-
margin-inline: auto;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
75
|
@media (hover: hover) {
|
|
84
76
|
.panel-l44YAX[data-state="collapsed"] .menuButton-OAl6eQ:hover {
|
|
85
77
|
background-color: #0000;
|
|
@@ -135,12 +127,6 @@
|
|
|
135
127
|
transform: rotate(180deg);
|
|
136
128
|
}
|
|
137
129
|
|
|
138
|
-
.trigger-_fUcgc:focus-visible {
|
|
139
|
-
outline: var(--moduix-sidebar-focus-ring-width, var(--moduix-focus-ring-width, var(--moduix-border-width-md)))
|
|
140
|
-
solid var(--moduix-sidebar-focus-ring-color, var(--moduix-color-ring));
|
|
141
|
-
outline-offset: var(--moduix-sidebar-focus-ring-offset, var(--moduix-focus-ring-offset));
|
|
142
|
-
}
|
|
143
|
-
|
|
144
130
|
.trigger-_fUcgc:disabled, .trigger-_fUcgc[aria-disabled="true"] {
|
|
145
131
|
opacity: var(--moduix-sidebar-disabled-opacity, var(--moduix-opacity-disabled));
|
|
146
132
|
pointer-events: none;
|
|
@@ -206,9 +192,17 @@
|
|
|
206
192
|
font-weight: var(--moduix-sidebar-group-label-font-weight, var(--moduix-weight-medium));
|
|
207
193
|
line-height: var(--moduix-sidebar-group-label-line-height, var(--moduix-line-height-text-xs));
|
|
208
194
|
text-transform: var(--moduix-sidebar-group-label-text-transform, none);
|
|
195
|
+
flex: 1;
|
|
209
196
|
margin: 0;
|
|
210
197
|
}
|
|
211
198
|
|
|
199
|
+
.groupHeader-N4qFFK {
|
|
200
|
+
align-items: center;
|
|
201
|
+
gap: var(--moduix-sidebar-gap, var(--moduix-spacing-2));
|
|
202
|
+
min-width: 0;
|
|
203
|
+
display: flex;
|
|
204
|
+
}
|
|
205
|
+
|
|
212
206
|
.groupAction-aoQPc4 {
|
|
213
207
|
width: var(--moduix-sidebar-group-action-size, var(--moduix-size-xs));
|
|
214
208
|
height: var(--moduix-sidebar-group-action-size, var(--moduix-size-xs));
|
|
@@ -220,8 +214,10 @@
|
|
|
220
214
|
color var(--moduix-sidebar-transition, var(--moduix-transition-default));
|
|
221
215
|
background-color: #0000;
|
|
222
216
|
border: 0;
|
|
217
|
+
flex: none;
|
|
223
218
|
justify-content: center;
|
|
224
219
|
align-items: center;
|
|
220
|
+
margin-inline-end: var(--moduix-sidebar-navigation-button-padding-x, var(--moduix-spacing-2));
|
|
225
221
|
padding: 0;
|
|
226
222
|
display: inline-flex;
|
|
227
223
|
}
|
|
@@ -231,12 +227,6 @@
|
|
|
231
227
|
height: var(--moduix-sidebar-icon-size, var(--moduix-spacing-4));
|
|
232
228
|
}
|
|
233
229
|
|
|
234
|
-
.groupAction-aoQPc4:focus-visible {
|
|
235
|
-
outline: var(--moduix-sidebar-focus-ring-width, var(--moduix-focus-ring-width, var(--moduix-border-width-md)))
|
|
236
|
-
solid var(--moduix-sidebar-focus-ring-color, var(--moduix-color-ring));
|
|
237
|
-
outline-offset: var(--moduix-sidebar-focus-ring-offset, var(--moduix-focus-ring-offset));
|
|
238
|
-
}
|
|
239
|
-
|
|
240
230
|
@media (hover: hover) {
|
|
241
231
|
.groupAction-aoQPc4:hover {
|
|
242
232
|
background-color: var(--moduix-sidebar-accent-bg, var(--moduix-color-accent));
|
|
@@ -244,39 +234,6 @@
|
|
|
244
234
|
}
|
|
245
235
|
}
|
|
246
236
|
|
|
247
|
-
.group-cwd3z7:has(.groupAction-aoQPc4) {
|
|
248
|
-
column-gap: var(--moduix-sidebar-gap, var(--moduix-spacing-2));
|
|
249
|
-
row-gap: var(--moduix-sidebar-group-gap, var(--moduix-spacing-1));
|
|
250
|
-
grid-template-columns: minmax(0, 1fr) auto;
|
|
251
|
-
display: grid;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.group-cwd3z7:has(.groupAction-aoQPc4) .groupLabel-IvBtsR {
|
|
255
|
-
min-height: var(--moduix-sidebar-group-action-size, var(--moduix-size-xs));
|
|
256
|
-
grid-column: 1;
|
|
257
|
-
align-items: center;
|
|
258
|
-
display: flex;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.group-cwd3z7:has(.groupAction-aoQPc4) .groupAction-aoQPc4 {
|
|
262
|
-
grid-column: 2;
|
|
263
|
-
align-self: center;
|
|
264
|
-
margin-inline-end: var(--moduix-sidebar-navigation-button-padding-x, var(--moduix-spacing-2));
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.groupContent-_s9yul {
|
|
268
|
-
width: 100%;
|
|
269
|
-
min-width: 0;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.group-cwd3z7:has(.groupAction-aoQPc4) .groupContent-_s9yul {
|
|
273
|
-
grid-column: 1 / -1;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.group-cwd3z7:has(.groupAction-aoQPc4) .menu-UwagMF {
|
|
277
|
-
grid-column: 1 / -1;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
237
|
.menu-UwagMF, .menuSub-xn2r86 {
|
|
281
238
|
gap: var(--moduix-sidebar-navigation-gap, var(--moduix-spacing-1));
|
|
282
239
|
flex-direction: column;
|
|
@@ -288,17 +245,35 @@
|
|
|
288
245
|
display: flex;
|
|
289
246
|
}
|
|
290
247
|
|
|
291
|
-
.menuItem-ktGhRk {
|
|
248
|
+
.menuItem-ktGhRk, .menuSubItem-NeKVH5 {
|
|
292
249
|
min-width: 0;
|
|
293
250
|
position: relative;
|
|
294
251
|
}
|
|
295
252
|
|
|
296
|
-
.
|
|
297
|
-
|
|
253
|
+
:is(.menuButton-OAl6eQ:has( + .menuBadge-GKf4u4), .menuSubButton-MjeEfX:has( + .menuBadge-GKf4u4)) {
|
|
254
|
+
padding-inline-end: var(--moduix-spacing-10);
|
|
298
255
|
}
|
|
299
256
|
|
|
300
|
-
.
|
|
301
|
-
|
|
257
|
+
.menuBadge-GKf4u4 {
|
|
258
|
+
z-index: 1;
|
|
259
|
+
box-sizing: border-box;
|
|
260
|
+
width: var(--moduix-spacing-5);
|
|
261
|
+
height: var(--moduix-spacing-5);
|
|
262
|
+
border-radius: var(--moduix-radius-full);
|
|
263
|
+
background-color: var(--moduix-color-primary);
|
|
264
|
+
color: var(--moduix-color-primary-foreground);
|
|
265
|
+
font-size: .5625rem;
|
|
266
|
+
font-weight: var(--moduix-weight-medium);
|
|
267
|
+
font-variant-numeric: tabular-nums;
|
|
268
|
+
pointer-events: none;
|
|
269
|
+
place-items: center;
|
|
270
|
+
padding: 0;
|
|
271
|
+
line-height: 1;
|
|
272
|
+
display: inline-grid;
|
|
273
|
+
position: absolute;
|
|
274
|
+
inset-block-start: 50%;
|
|
275
|
+
inset-inline-end: var(--moduix-spacing-2-5);
|
|
276
|
+
transform: translateY(-50%);
|
|
302
277
|
}
|
|
303
278
|
|
|
304
279
|
.menuButton-OAl6eQ, .menuSubButton-MjeEfX {
|
|
@@ -342,12 +317,6 @@
|
|
|
342
317
|
overflow: hidden;
|
|
343
318
|
}
|
|
344
319
|
|
|
345
|
-
:is(.menuButton-OAl6eQ, .menuSubButton-MjeEfX):focus-visible {
|
|
346
|
-
outline: var(--moduix-sidebar-focus-ring-width, var(--moduix-focus-ring-width, var(--moduix-border-width-md)))
|
|
347
|
-
solid var(--moduix-sidebar-focus-ring-color, var(--moduix-color-ring));
|
|
348
|
-
outline-offset: var(--moduix-sidebar-focus-ring-offset, var(--moduix-focus-ring-offset));
|
|
349
|
-
}
|
|
350
|
-
|
|
351
320
|
:is(.menuButton-OAl6eQ, .menuSubButton-MjeEfX):disabled, :is(.menuButton-OAl6eQ, .menuSubButton-MjeEfX)[aria-disabled="true"] {
|
|
352
321
|
opacity: var(--moduix-sidebar-disabled-opacity, var(--moduix-opacity-disabled));
|
|
353
322
|
pointer-events: none;
|
|
@@ -384,108 +353,39 @@
|
|
|
384
353
|
min-height: var(--moduix-sidebar-navigation-button-height-lg, var(--moduix-size-lg));
|
|
385
354
|
}
|
|
386
355
|
|
|
387
|
-
.menuButton-OAl6eQ > [data-slot="collapsible-indicator"], .menuButton-OAl6eQ > [data-slot="menu-indicator"]
|
|
356
|
+
.menuButton-OAl6eQ > [data-slot="collapsible-indicator"], .menuButton-OAl6eQ > [data-slot="menu-indicator"] {
|
|
357
|
+
width: var(--moduix-sidebar-navigation-indicator-size, var(--moduix-size-xs));
|
|
358
|
+
height: var(--moduix-sidebar-navigation-indicator-size, var(--moduix-size-xs));
|
|
388
359
|
margin-inline-start: auto;
|
|
389
360
|
}
|
|
390
361
|
|
|
391
|
-
.
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
362
|
+
.menuButton-OAl6eQ > [data-slot="collapsible-indicator"] > svg {
|
|
363
|
+
width: var(--moduix-spacing-3);
|
|
364
|
+
height: var(--moduix-spacing-3);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.menuButton-OAl6eQ > [data-slot="menu-indicator"] {
|
|
368
|
+
box-sizing: border-box;
|
|
369
|
+
width: var(--moduix-sidebar-navigation-indicator-size, var(--moduix-size-xs));
|
|
370
|
+
height: var(--moduix-sidebar-navigation-indicator-size, var(--moduix-size-xs));
|
|
396
371
|
color: var(--moduix-sidebar-muted-color, var(--moduix-color-muted-foreground));
|
|
397
|
-
|
|
398
|
-
cursor: pointer;
|
|
399
|
-
transition: background-color var(--moduix-sidebar-transition, var(--moduix-transition-default)),
|
|
400
|
-
color var(--moduix-sidebar-transition, var(--moduix-transition-default));
|
|
401
|
-
background-color: #0000;
|
|
402
|
-
border: 0;
|
|
403
|
-
justify-content: center;
|
|
404
|
-
align-items: center;
|
|
405
|
-
padding: 0;
|
|
406
|
-
display: inline-flex;
|
|
407
|
-
position: absolute;
|
|
408
|
-
inset-block-start: calc((var(--moduix-sidebar-navigation-button-height, var(--moduix-size-md)) -
|
|
409
|
-
var(--moduix-sidebar-navigation-action-size, var(--moduix-size-xs))) /
|
|
410
|
-
2);
|
|
411
|
-
inset-inline-end: var(--moduix-sidebar-navigation-button-padding-x, var(--moduix-spacing-2));
|
|
372
|
+
line-height: 0;
|
|
412
373
|
}
|
|
413
374
|
|
|
414
|
-
.
|
|
375
|
+
.menuButton-OAl6eQ > [data-slot="menu-indicator"] > svg {
|
|
415
376
|
width: var(--moduix-sidebar-icon-size, var(--moduix-spacing-4));
|
|
416
377
|
height: var(--moduix-sidebar-icon-size, var(--moduix-spacing-4));
|
|
378
|
+
display: block;
|
|
417
379
|
}
|
|
418
380
|
|
|
419
|
-
.
|
|
420
|
-
|
|
421
|
-
solid var(--moduix-sidebar-focus-ring-color, var(--moduix-color-ring));
|
|
422
|
-
outline-offset: var(--moduix-sidebar-focus-ring-offset, var(--moduix-focus-ring-offset));
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
@media (hover: hover) {
|
|
426
|
-
.menuAction-_BDfHY:hover {
|
|
427
|
-
background-color: var(--moduix-sidebar-accent-bg, var(--moduix-color-accent));
|
|
428
|
-
color: var(--moduix-sidebar-accent-color, var(--moduix-color-accent-foreground));
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
.menuBadge-GKf4u4 {
|
|
433
|
-
z-index: 1;
|
|
434
|
-
min-width: var(--moduix-sidebar-navigation-badge-min-width, 1.125rem);
|
|
435
|
-
min-height: var(--moduix-sidebar-navigation-badge-min-width, 1.125rem);
|
|
436
|
-
padding-inline: var(--moduix-sidebar-navigation-badge-padding-x, var(--moduix-spacing-0-5));
|
|
437
|
-
border-radius: var(--moduix-radius-full);
|
|
438
|
-
background-color: var(--moduix-sidebar-accent-bg, var(--moduix-color-accent));
|
|
439
|
-
color: var(--moduix-sidebar-accent-color, var(--moduix-color-accent-foreground));
|
|
440
|
-
font-size: var(--moduix-sidebar-navigation-badge-font-size, .625rem);
|
|
441
|
-
font-weight: var(--moduix-sidebar-navigation-badge-font-weight, var(--moduix-weight-medium));
|
|
442
|
-
font-variant-numeric: tabular-nums;
|
|
443
|
-
justify-content: center;
|
|
444
|
-
align-items: center;
|
|
445
|
-
line-height: 1;
|
|
446
|
-
display: inline-flex;
|
|
447
|
-
position: absolute;
|
|
448
|
-
inset-block-start: calc((var(--moduix-sidebar-navigation-button-height, var(--moduix-size-md)) -
|
|
449
|
-
var(--moduix-sidebar-navigation-badge-min-width, 1.125rem)) /
|
|
450
|
-
2);
|
|
451
|
-
inset-inline-end: calc(var(--moduix-sidebar-navigation-button-padding-x, var(--moduix-spacing-2)) +
|
|
452
|
-
(var(--moduix-sidebar-navigation-action-size, var(--moduix-size-xs)) -
|
|
453
|
-
var(--moduix-sidebar-navigation-badge-min-width, 1.125rem)) /
|
|
454
|
-
2);
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
.menuItem-ktGhRk:has(.menuAction-_BDfHY) .menuButton-OAl6eQ {
|
|
458
|
-
padding-inline-end: calc(var(--moduix-sidebar-navigation-action-size, var(--moduix-size-xs)) +
|
|
459
|
-
var(--moduix-sidebar-navigation-button-padding-x, var(--moduix-spacing-2)) * 2);
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.menuItem-ktGhRk:has(.menuBadge-GKf4u4) .menuButton-OAl6eQ {
|
|
463
|
-
padding-inline-end: calc(var(--moduix-sidebar-navigation-badge-min-width, 1.125rem) +
|
|
464
|
-
var(--moduix-sidebar-navigation-button-padding-x, var(--moduix-spacing-2)) * 2 +
|
|
465
|
-
(var(--moduix-sidebar-navigation-action-size, var(--moduix-size-xs)) -
|
|
466
|
-
var(--moduix-sidebar-navigation-badge-min-width, 1.125rem)) /
|
|
467
|
-
2);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.menuItem-ktGhRk:has(.menuAction-_BDfHY):has(.menuBadge-GKf4u4) .menuButton-OAl6eQ {
|
|
471
|
-
padding-inline-end: calc(var(--moduix-sidebar-navigation-action-size, var(--moduix-size-xs)) +
|
|
472
|
-
var(--moduix-sidebar-navigation-badge-min-width, 1.125rem) +
|
|
473
|
-
var(--moduix-sidebar-navigation-button-padding-x, var(--moduix-spacing-2)) * 3 +
|
|
474
|
-
(var(--moduix-sidebar-navigation-action-size, var(--moduix-size-xs)) -
|
|
475
|
-
var(--moduix-sidebar-navigation-badge-min-width, 1.125rem)) /
|
|
476
|
-
2);
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
.menuItem-ktGhRk:has(.menuAction-_BDfHY):has(.menuBadge-GKf4u4) .menuAction-_BDfHY {
|
|
480
|
-
inset-inline-end: calc(var(--moduix-sidebar-navigation-badge-min-width, 1.125rem) +
|
|
481
|
-
var(--moduix-sidebar-navigation-button-padding-x, var(--moduix-spacing-2)) * 2 +
|
|
482
|
-
(var(--moduix-sidebar-navigation-action-size, var(--moduix-size-xs)) -
|
|
483
|
-
var(--moduix-sidebar-navigation-badge-min-width, 1.125rem)) /
|
|
484
|
-
2);
|
|
381
|
+
.menuButton-OAl6eQ > [data-scope="select"][data-part="indicator"] {
|
|
382
|
+
margin-inline-start: auto;
|
|
485
383
|
}
|
|
486
384
|
|
|
487
|
-
|
|
488
|
-
|
|
385
|
+
.trigger-_fUcgc:focus-visible, .groupAction-aoQPc4:focus-visible, .menuButton-OAl6eQ:focus-visible {
|
|
386
|
+
outline: var(--moduix-sidebar-focus-ring-width, var(--moduix-focus-ring-width, var(--moduix-border-width-md)))
|
|
387
|
+
solid var(--moduix-sidebar-focus-ring-color, var(--moduix-color-ring));
|
|
388
|
+
outline-offset: var(--moduix-sidebar-focus-ring-offset, var(--moduix-focus-ring-offset));
|
|
489
389
|
}
|
|
490
390
|
|
|
491
391
|
.menuSub-xn2r86 {
|
|
@@ -507,13 +407,17 @@
|
|
|
507
407
|
}
|
|
508
408
|
|
|
509
409
|
@container (width <= 7rem) {
|
|
510
|
-
.groupAction-aoQPc4, .
|
|
410
|
+
.groupAction-aoQPc4, .menuBadge-GKf4u4, [data-slot="collapsible-indicator"], [data-slot="menu-indicator"], [data-slot="select-indicator"] {
|
|
511
411
|
display: none;
|
|
512
412
|
}
|
|
513
413
|
|
|
514
|
-
|
|
414
|
+
.menuButton-OAl6eQ:has( + .menuBadge-GKf4u4) {
|
|
515
415
|
padding-inline-end: var(--moduix-sidebar-navigation-button-padding-x, var(--moduix-spacing-2));
|
|
516
416
|
}
|
|
417
|
+
|
|
418
|
+
.menuSubButton-MjeEfX:has( + .menuBadge-GKf4u4) {
|
|
419
|
+
padding-inline-end: var(--moduix-sidebar-navigation-sub-button-padding-x, var(--moduix-spacing-2));
|
|
420
|
+
}
|
|
517
421
|
}
|
|
518
422
|
|
|
519
423
|
.input-nqDU3w {
|
|
@@ -525,7 +429,7 @@
|
|
|
525
429
|
}
|
|
526
430
|
|
|
527
431
|
@media (prefers-reduced-motion: reduce) {
|
|
528
|
-
.panel-l44YAX, .trigger-_fUcgc, .groupAction-aoQPc4, .menuButton-OAl6eQ, .
|
|
432
|
+
.panel-l44YAX, .trigger-_fUcgc, .groupAction-aoQPc4, .menuButton-OAl6eQ, .menuSubButton-MjeEfX {
|
|
529
433
|
transition: none;
|
|
530
434
|
}
|
|
531
435
|
}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { SignaturePad as SignaturePadPrimitive, useSignaturePad as useSignaturePadPrimitive, useSignaturePadContext } from '@ark-ui/react/signature-pad';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
type SignaturePadFormProps = {
|
|
4
|
-
getFormValue?: (paths: string[]) => string;
|
|
5
|
-
};
|
|
6
2
|
declare function useSignaturePad(props?: Parameters<typeof useSignaturePadPrimitive>[0]): ReturnType<typeof useSignaturePadPrimitive>;
|
|
7
|
-
declare const SignaturePad: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement
|
|
8
|
-
Root: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement
|
|
9
|
-
RootProvider: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.RootProviderProps & import("react").RefAttributes<HTMLDivElement
|
|
10
|
-
Context: (props: SignaturePadPrimitive.ContextProps) => ReactNode;
|
|
3
|
+
declare const SignaturePad: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
4
|
+
Root: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
Context: (props: SignaturePadPrimitive.ContextProps) => import("react").ReactNode;
|
|
7
|
+
HiddenInput: import("react").ForwardRefExoticComponent<SignaturePadPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
11
8
|
Label: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
12
9
|
Control: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
10
|
Canvas: import("react").ForwardRefExoticComponent<Omit<Omit<SignaturePadPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "children">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,98 +1,88 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useFieldContext } from "@ark-ui/react/field";
|
|
4
4
|
import { SignaturePad, useSignaturePad, useSignaturePadContext } from "@ark-ui/react/signature-pad";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
|
-
import {
|
|
6
|
+
import { createContext, forwardRef, useContext } from "react";
|
|
7
7
|
import { RotateCcwIcon } from "../../internal/icons/ui/index.js";
|
|
8
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
9
8
|
import { CloseButton } from "../close-button/index.js";
|
|
10
9
|
import SignaturePad_module from "./SignaturePad.module.js";
|
|
11
10
|
const SignaturePadReadOnlyContext = /*#__PURE__*/ createContext(false);
|
|
12
11
|
const signaturePadReadOnly = Symbol();
|
|
13
|
-
const SignaturePad_SignaturePadRoot = /*#__PURE__*/ forwardRef(function({ asChild, children, className,
|
|
12
|
+
const SignaturePad_SignaturePadRoot = /*#__PURE__*/ forwardRef(function({ asChild, children, className, ...props }, ref) {
|
|
14
13
|
const field = useFieldContext();
|
|
15
14
|
const readOnly = props.readOnly ?? field?.readOnly ?? false;
|
|
16
15
|
return /*#__PURE__*/ jsx(SignaturePadReadOnlyContext.Provider, {
|
|
17
16
|
value: readOnly,
|
|
18
17
|
children: /*#__PURE__*/ jsx(SignaturePad.Root, {
|
|
19
18
|
ref: ref,
|
|
20
|
-
|
|
21
|
-
className: clsx(SignaturePad_module.root, normalizeClassName(className)),
|
|
19
|
+
className: clsx(SignaturePad_module.root, className),
|
|
22
20
|
asChild: asChild,
|
|
23
21
|
...props,
|
|
24
|
-
|
|
22
|
+
"data-slot": "signature-pad-root",
|
|
23
|
+
children: children
|
|
25
24
|
})
|
|
26
25
|
});
|
|
27
26
|
});
|
|
28
|
-
const SignaturePad_SignaturePadRootProvider = /*#__PURE__*/ forwardRef(function({ asChild, children, className,
|
|
27
|
+
const SignaturePad_SignaturePadRootProvider = /*#__PURE__*/ forwardRef(function({ asChild, children, className, ...props }, ref) {
|
|
29
28
|
const readOnly = props.value[signaturePadReadOnly] ?? false;
|
|
30
29
|
return /*#__PURE__*/ jsx(SignaturePadReadOnlyContext.Provider, {
|
|
31
30
|
value: readOnly,
|
|
32
31
|
children: /*#__PURE__*/ jsx(SignaturePad.RootProvider, {
|
|
33
32
|
ref: ref,
|
|
34
|
-
|
|
35
|
-
className: clsx(SignaturePad_module.root, normalizeClassName(className)),
|
|
33
|
+
className: clsx(SignaturePad_module.root, className),
|
|
36
34
|
asChild: asChild,
|
|
37
35
|
...props,
|
|
38
|
-
|
|
36
|
+
"data-slot": "signature-pad-root-provider",
|
|
37
|
+
children: children
|
|
39
38
|
})
|
|
40
39
|
});
|
|
41
40
|
});
|
|
42
41
|
const SignaturePad_SignaturePadLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
43
42
|
return /*#__PURE__*/ jsx(SignaturePad.Label, {
|
|
44
43
|
ref: ref,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
className: clsx(SignaturePad_module.label, className),
|
|
45
|
+
...props,
|
|
46
|
+
"data-slot": "signature-pad-label"
|
|
48
47
|
});
|
|
49
48
|
});
|
|
50
49
|
const SignaturePad_SignaturePadControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
51
50
|
return /*#__PURE__*/ jsx(SignaturePad.Control, {
|
|
52
51
|
ref: ref,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
className: clsx(SignaturePad_module.control, className),
|
|
53
|
+
...props,
|
|
54
|
+
"data-slot": "signature-pad-control"
|
|
56
55
|
});
|
|
57
56
|
});
|
|
58
57
|
const SignaturePad_SignaturePadSegment = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
59
58
|
return /*#__PURE__*/ jsx(SignaturePad.Segment, {
|
|
60
59
|
ref: ref,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
className: clsx(SignaturePad_module.segment, className),
|
|
61
|
+
...props,
|
|
62
|
+
"data-slot": "signature-pad-segment"
|
|
64
63
|
});
|
|
65
64
|
});
|
|
66
65
|
const SignaturePad_SignaturePadGuide = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
67
66
|
return /*#__PURE__*/ jsx(SignaturePad.Guide, {
|
|
68
67
|
ref: ref,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
className: clsx(SignaturePad_module.guide, className),
|
|
69
|
+
...props,
|
|
70
|
+
"data-slot": "signature-pad-guide"
|
|
72
71
|
});
|
|
73
72
|
});
|
|
74
73
|
const SignaturePad_SignaturePadClearTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }, ref) {
|
|
75
74
|
const readOnly = useContext(SignaturePadReadOnlyContext);
|
|
76
|
-
const triggerClassName = clsx(SignaturePad_module.clearTrigger,
|
|
77
|
-
if (asChild) return /*#__PURE__*/ jsx(SignaturePad.ClearTrigger, {
|
|
78
|
-
ref: ref,
|
|
79
|
-
asChild: true,
|
|
80
|
-
"data-slot": "signature-pad-clear-trigger",
|
|
81
|
-
className: triggerClassName,
|
|
82
|
-
"aria-label": ariaLabel,
|
|
83
|
-
"aria-labelledby": ariaLabelledBy,
|
|
84
|
-
...props,
|
|
85
|
-
disabled: readOnly || props.disabled,
|
|
86
|
-
children: children
|
|
87
|
-
});
|
|
75
|
+
const triggerClassName = clsx(SignaturePad_module.clearTrigger, className);
|
|
88
76
|
return /*#__PURE__*/ jsx(SignaturePad.ClearTrigger, {
|
|
89
77
|
ref: ref,
|
|
90
78
|
asChild: true,
|
|
91
|
-
"data-slot": "signature-pad-clear-trigger",
|
|
92
79
|
className: triggerClassName,
|
|
80
|
+
"aria-label": asChild ? ariaLabel : void 0,
|
|
81
|
+
"aria-labelledby": asChild ? ariaLabelledBy : void 0,
|
|
93
82
|
...props,
|
|
83
|
+
"data-slot": "signature-pad-clear-trigger",
|
|
94
84
|
disabled: readOnly || props.disabled,
|
|
95
|
-
children: /*#__PURE__*/ jsx(CloseButton.Root, {
|
|
85
|
+
children: asChild ? children : /*#__PURE__*/ jsx(CloseButton.Root, {
|
|
96
86
|
"aria-label": ariaLabel,
|
|
97
87
|
"aria-labelledby": ariaLabelledBy,
|
|
98
88
|
children: children ?? /*#__PURE__*/ jsx(RotateCcwIcon, {
|
|
@@ -101,26 +91,6 @@ const SignaturePad_SignaturePadClearTrigger = /*#__PURE__*/ forwardRef(function(
|
|
|
101
91
|
})
|
|
102
92
|
});
|
|
103
93
|
});
|
|
104
|
-
function withHiddenInput(children, asChild, getFormValue) {
|
|
105
|
-
const hiddenInput = /*#__PURE__*/ jsx(SignaturePadFormInput, {
|
|
106
|
-
getFormValue: getFormValue
|
|
107
|
-
});
|
|
108
|
-
if (!asChild) return /*#__PURE__*/ jsxs(Fragment, {
|
|
109
|
-
children: [
|
|
110
|
-
children,
|
|
111
|
-
hiddenInput
|
|
112
|
-
]
|
|
113
|
-
});
|
|
114
|
-
const child = Children.only(children);
|
|
115
|
-
return /*#__PURE__*/ cloneElement(child, {}, child.props.children, hiddenInput);
|
|
116
|
-
}
|
|
117
|
-
function SignaturePadFormInput({ getFormValue }) {
|
|
118
|
-
const signaturePad = useSignaturePadContext();
|
|
119
|
-
return /*#__PURE__*/ jsx(SignaturePad.HiddenInput, {
|
|
120
|
-
"data-slot": "signature-pad-hidden-input",
|
|
121
|
-
value: getFormValue?.(signaturePad.paths) ?? signaturePad.paths.join(' ')
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
94
|
const SignaturePad_SignaturePadCanvas = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
125
95
|
return /*#__PURE__*/ jsxs(SignaturePad_SignaturePadControl, {
|
|
126
96
|
ref: ref,
|
|
@@ -150,6 +120,7 @@ const SignaturePad_SignaturePad = Object.assign(SignaturePad_SignaturePadRoot, {
|
|
|
150
120
|
Root: SignaturePad_SignaturePadRoot,
|
|
151
121
|
RootProvider: SignaturePad_SignaturePadRootProvider,
|
|
152
122
|
Context: SignaturePad.Context,
|
|
123
|
+
HiddenInput: SignaturePad.HiddenInput,
|
|
153
124
|
Label: SignaturePad_SignaturePadLabel,
|
|
154
125
|
Control: SignaturePad_SignaturePadControl,
|
|
155
126
|
Canvas: SignaturePad_SignaturePadCanvas,
|
|
@@ -77,7 +77,6 @@
|
|
|
77
77
|
--moduix-close-button-color: var(--moduix-signature-pad-clear-trigger-color, var(--moduix-color-muted-foreground));
|
|
78
78
|
--moduix-close-button-color-hover: var(--moduix-signature-pad-clear-trigger-color-hover, var(--moduix-color-foreground));
|
|
79
79
|
--moduix-close-button-icon-size: var(--moduix-signature-pad-clear-trigger-icon-size, var(--moduix-spacing-4));
|
|
80
|
-
--moduix-close-button-transition: var(--moduix-signature-pad-transition, var(--moduix-transition-default));
|
|
81
80
|
--moduix-close-button-focus-ring-width: var(--moduix-signature-pad-clear-trigger-focus-ring-width, var(--moduix-focus-ring-width, var(--moduix-border-width-md)));
|
|
82
81
|
--moduix-close-button-focus-ring-color: var(--moduix-signature-pad-clear-trigger-focus-ring-color, var(--moduix-color-ring));
|
|
83
82
|
--moduix-close-button-focus-ring-offset: var(--moduix-signature-pad-clear-trigger-focus-ring-offset, var(--moduix-spacing-1));
|
|
@@ -2,9 +2,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ark } from "@ark-ui/react/factory";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
6
5
|
const SimpleGrid_SimpleGridRoot = /*#__PURE__*/ forwardRef(function({ asChild, className, style, columns, minChildWidth, gap, rowGap, columnGap, ...props }, ref) {
|
|
7
|
-
if (null != columns && (!Number.
|
|
6
|
+
if (null != columns && (!Number.isInteger(columns) || columns <= 0)) throw new Error('SimpleGrid `columns` must be a finite positive integer.');
|
|
8
7
|
if ('number' == typeof minChildWidth && (!Number.isFinite(minChildWidth) || minChildWidth < 0)) throw new Error('SimpleGrid `minChildWidth` must be a finite non-negative number.');
|
|
9
8
|
let gridTemplateColumns = 'minmax(0, 1fr)';
|
|
10
9
|
if (null != columns) gridTemplateColumns = `repeat(${columns}, minmax(0, 1fr))`;
|
|
@@ -14,12 +13,18 @@ const SimpleGrid_SimpleGridRoot = /*#__PURE__*/ forwardRef(function({ asChild, c
|
|
|
14
13
|
}
|
|
15
14
|
const rootStyle = {
|
|
16
15
|
display: 'grid',
|
|
17
|
-
gridTemplateColumns
|
|
16
|
+
gridTemplateColumns,
|
|
17
|
+
...null == gap ? {} : {
|
|
18
|
+
gap
|
|
19
|
+
},
|
|
20
|
+
...null == rowGap ? {} : {
|
|
21
|
+
rowGap
|
|
22
|
+
},
|
|
23
|
+
...null == columnGap ? {} : {
|
|
24
|
+
columnGap
|
|
25
|
+
},
|
|
26
|
+
...style
|
|
18
27
|
};
|
|
19
|
-
if (null != gap) rootStyle.gap = gap;
|
|
20
|
-
if (null != rowGap) rootStyle.rowGap = rowGap;
|
|
21
|
-
if (null != columnGap) rootStyle.columnGap = columnGap;
|
|
22
|
-
Object.assign(rootStyle, style);
|
|
23
28
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
24
29
|
...props,
|
|
25
30
|
ref: ref,
|
|
@@ -27,7 +32,7 @@ const SimpleGrid_SimpleGridRoot = /*#__PURE__*/ forwardRef(function({ asChild, c
|
|
|
27
32
|
"data-scope": "simple-grid",
|
|
28
33
|
"data-part": "root",
|
|
29
34
|
"data-slot": "simple-grid-root",
|
|
30
|
-
className: clsx(
|
|
35
|
+
className: clsx(className),
|
|
31
36
|
style: rootStyle
|
|
32
37
|
});
|
|
33
38
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const Skeleton: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
2
2
|
loading?: boolean;
|
|
3
|
-
variant?:
|
|
3
|
+
variant?: 'pulse' | 'none';
|
|
4
4
|
width?: number | string;
|
|
5
5
|
height?: number | string;
|
|
6
6
|
boxSize?: number | string;
|
|
@@ -8,7 +8,7 @@ declare const Skeleton: import("react").ForwardRefExoticComponent<Omit<import("r
|
|
|
8
8
|
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
9
9
|
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
10
10
|
loading?: boolean;
|
|
11
|
-
variant?:
|
|
11
|
+
variant?: 'pulse' | 'none';
|
|
12
12
|
width?: number | string;
|
|
13
13
|
height?: number | string;
|
|
14
14
|
boxSize?: number | string;
|
|
@@ -2,7 +2,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ark } from "@ark-ui/react/factory";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
6
5
|
import Skeleton_module from "./Skeleton.module.js";
|
|
7
6
|
const toCssValue = (value)=>'number' == typeof value ? `${value}px` : value;
|
|
8
7
|
const Skeleton_SkeletonRoot = /*#__PURE__*/ forwardRef(function({ 'aria-hidden': ariaHidden, asChild, borderRadius, boxSize, className, height, loading = true, style, variant = 'pulse', width, ...props }, ref) {
|
|
@@ -17,7 +16,7 @@ const Skeleton_SkeletonRoot = /*#__PURE__*/ forwardRef(function({ 'aria-hidden':
|
|
|
17
16
|
"data-loading": loading ? '' : void 0,
|
|
18
17
|
"data-variant": variant,
|
|
19
18
|
"aria-hidden": ariaHidden ?? (loading ? true : void 0),
|
|
20
|
-
className: clsx(Skeleton_module.root,
|
|
19
|
+
className: clsx(Skeleton_module.root, className),
|
|
21
20
|
style: {
|
|
22
21
|
width: toCssValue(width ?? boxSize),
|
|
23
22
|
height: toCssValue(height ?? boxSize),
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Slider as SliderPrimitive, useSlider, useSliderContext } from '@ark-ui/react/slider';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
2
|
declare function SliderThumbs({ className }: {
|
|
4
3
|
className?: string;
|
|
5
4
|
}): import("react").JSX.Element[];
|
|
6
5
|
declare const Slider: import("react").ForwardRefExoticComponent<Omit<SliderPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
7
6
|
Root: import("react").ForwardRefExoticComponent<Omit<SliderPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
7
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<SliderPrimitive.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
Context: (props: SliderPrimitive.ContextProps) => ReactNode;
|
|
8
|
+
Context: (props: SliderPrimitive.ContextProps) => import("react").ReactNode;
|
|
10
9
|
useSlider: (props?: import("@ark-ui/react/slider").UseSliderProps) => import("@ark-ui/react/slider").UseSliderReturn;
|
|
11
10
|
useSliderContext: () => import("@ark-ui/react/slider").UseSliderContext;
|
|
12
11
|
Label: import("react").ForwardRefExoticComponent<Omit<SliderPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
13
12
|
ValueText: import("react").ForwardRefExoticComponent<Omit<SliderPrimitive.ValueTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
13
|
Control: import("react").ForwardRefExoticComponent<Omit<SliderPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
HiddenInput: import("react").ForwardRefExoticComponent<SliderPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
15
15
|
Track: import("react").ForwardRefExoticComponent<Omit<SliderPrimitive.TrackProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
16
|
Range: import("react").ForwardRefExoticComponent<Omit<SliderPrimitive.RangeProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
17
|
Thumb: import("react").ForwardRefExoticComponent<Omit<SliderPrimitive.ThumbProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|