@ark-ui/solid 3.0.0-3 → 3.0.0-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/dist/cjs/index.js +289 -210
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +291 -212
- package/dist/esm/index.js.map +1 -1
- package/dist/source/components/accordion/accordion-item-content.jsx +7 -2
- package/dist/source/components/accordion/accordion-root.jsx +1 -0
- package/dist/source/components/accordion/use-accordion.js +12 -3
- package/dist/source/components/avatar/use-avatar.js +9 -3
- package/dist/source/components/carousel/carousel-root.jsx +1 -0
- package/dist/source/components/carousel/use-carousel.js +10 -3
- package/dist/source/components/checkbox/checkbox-root.jsx +1 -0
- package/dist/source/components/checkbox/use-checkbox.js +10 -3
- package/dist/source/components/clipboard/use-clipboard.js +8 -3
- package/dist/source/components/collapsible/collapsible-root.jsx +1 -0
- package/dist/source/components/collapsible/use-collapsible.js +8 -5
- package/dist/source/components/color-picker/color-picker-root.jsx +2 -0
- package/dist/source/components/color-picker/use-color-picker.js +14 -8
- package/dist/source/components/combobox/combobox-root.jsx +4 -2
- package/dist/source/components/combobox/combobox-trigger.jsx +3 -1
- package/dist/source/components/combobox/use-combobox.js +11 -7
- package/dist/source/components/date-picker/date-picker-root.jsx +2 -0
- package/dist/source/components/date-picker/use-date-picker.js +17 -11
- package/dist/source/components/dialog/dialog-root.jsx +2 -0
- package/dist/source/components/dialog/use-dialog.js +8 -5
- package/dist/source/components/editable/editable-root.jsx +1 -0
- package/dist/source/components/editable/use-editable.js +10 -3
- package/dist/source/components/file-upload/use-file-upload.js +9 -3
- package/dist/source/components/hover-card/hover-card-root.jsx +1 -0
- package/dist/source/components/hover-card/use-hover-card.js +8 -5
- package/dist/source/components/menu/menu-root.jsx +2 -0
- package/dist/source/components/menu/use-menu.js +8 -5
- package/dist/source/components/number-input/number-input-root.jsx +1 -0
- package/dist/source/components/number-input/use-number-input.js +10 -3
- package/dist/source/components/pagination/pagination-root.jsx +1 -0
- package/dist/source/components/pagination/use-pagination.js +10 -3
- package/dist/source/components/pin-input/pin-input-root.jsx +1 -0
- package/dist/source/components/pin-input/use-pin-input.js +10 -3
- package/dist/source/components/popover/popover-root.jsx +3 -1
- package/dist/source/components/popover/use-popover.js +8 -5
- package/dist/source/components/progress/use-progress.js +9 -3
- package/dist/source/components/radio-group/radio-group-root.jsx +1 -0
- package/dist/source/components/radio-group/use-radio-group.js +10 -3
- package/dist/source/components/rating-group/rating-group-root.jsx +1 -0
- package/dist/source/components/rating-group/use-rating-group.js +10 -3
- package/dist/source/components/segment-group/segment-group-root.jsx +1 -0
- package/dist/source/components/segment-group/use-segment-group.js +12 -5
- package/dist/source/components/select/select-item.jsx +1 -1
- package/dist/source/components/select/select-root.jsx +3 -0
- package/dist/source/components/select/use-select.js +11 -7
- package/dist/source/components/slider/slider-root.jsx +1 -0
- package/dist/source/components/slider/use-slider.js +10 -3
- package/dist/source/components/splitter/splitter-root.jsx +1 -0
- package/dist/source/components/splitter/use-splitter.js +10 -3
- package/dist/source/components/switch/switch-root.jsx +1 -0
- package/dist/source/components/switch/use-switch.js +10 -3
- package/dist/source/components/tabs/tabs-root.jsx +2 -0
- package/dist/source/components/tabs/use-tabs.js +10 -3
- package/dist/source/components/tags-input/tags-input-root.jsx +1 -0
- package/dist/source/components/tags-input/use-tags-input.js +10 -3
- package/dist/source/components/toggle-group/toggle-group-root.jsx +1 -0
- package/dist/source/components/toggle-group/use-toggle-group.js +10 -3
- package/dist/source/components/tooltip/tooltip-root.jsx +2 -1
- package/dist/source/components/tooltip/use-tooltip.js +8 -5
- package/dist/source/components/tree-view/tree-view-root.jsx +3 -1
- package/dist/source/components/tree-view/use-tree-view.js +11 -3
- package/dist/source/providers/locale/locale-provider.jsx +5 -19
- package/dist/types/components/accordion/accordion-item.d.ts +1 -2
- package/dist/types/components/accordion/use-accordion.d.ts +5 -0
- package/dist/types/components/carousel/use-carousel.d.ts +5 -0
- package/dist/types/components/checkbox/use-checkbox.d.ts +5 -0
- package/dist/types/components/collapsible/use-collapsible.d.ts +5 -0
- package/dist/types/components/color-picker/use-color-picker.d.ts +10 -0
- package/dist/types/components/combobox/combobox-trigger.d.ts +3 -1
- package/dist/types/components/combobox/use-combobox.d.ts +10 -0
- package/dist/types/components/date-picker/use-date-picker.d.ts +14 -4
- package/dist/types/components/dialog/use-dialog.d.ts +5 -0
- package/dist/types/components/editable/use-editable.d.ts +5 -0
- package/dist/types/components/hover-card/use-hover-card.d.ts +5 -0
- package/dist/types/components/menu/use-menu.d.ts +5 -0
- package/dist/types/components/number-input/use-number-input.d.ts +5 -0
- package/dist/types/components/pagination/use-pagination.d.ts +5 -0
- package/dist/types/components/pin-input/use-pin-input.d.ts +5 -0
- package/dist/types/components/popover/use-popover.d.ts +5 -0
- package/dist/types/components/radio-group/use-radio-group.d.ts +5 -0
- package/dist/types/components/rating-group/use-rating-group.d.ts +5 -0
- package/dist/types/components/segment-group/use-segment-group.d.ts +8 -3
- package/dist/types/components/select/use-select.d.ts +10 -0
- package/dist/types/components/slider/use-slider.d.ts +5 -0
- package/dist/types/components/splitter/use-splitter.d.ts +5 -0
- package/dist/types/components/switch/use-switch.d.ts +5 -0
- package/dist/types/components/tabs/use-tabs.d.ts +5 -0
- package/dist/types/components/tags-input/use-tags-input.d.ts +5 -0
- package/dist/types/components/toggle-group/use-toggle-group.d.ts +5 -0
- package/dist/types/components/tooltip/use-tooltip.d.ts +5 -0
- package/dist/types/components/tree-view/use-tree-view.d.ts +10 -0
- package/dist/types/providers/locale/locale-provider.d.ts +3 -5
- package/package.json +46 -46
- /package/dist/source/providers/locale/{use-locale-context.jsx → use-locale-context.js} +0 -0
package/dist/cjs/index.js
CHANGED
|
@@ -243,27 +243,14 @@ const [LocaleContextProvider, useLocaleContext] = createContext({
|
|
|
243
243
|
});
|
|
244
244
|
|
|
245
245
|
const LocaleProvider = props => {
|
|
246
|
-
const [localeProps, restProps] = solidJs.splitProps(props, ['locale', 'defaultLocale']);
|
|
247
|
-
const [locale, setLocale] = solidJs.createSignal(localeProps.defaultLocale || localeProps.locale || 'en-US');
|
|
248
|
-
const environment = useEnvironmentContext();
|
|
249
|
-
solidJs.createEffect(() => {
|
|
250
|
-
const cleanup = i18nUtils.trackLocale({
|
|
251
|
-
locale: localeProps.locale,
|
|
252
|
-
getRootNode: environment().getRootNode,
|
|
253
|
-
onLocaleChange(locale) {
|
|
254
|
-
setLocale(locale.locale);
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
solidJs.onCleanup(cleanup);
|
|
258
|
-
});
|
|
259
246
|
const context = solidJs.createMemo(() => ({
|
|
260
|
-
locale: locale
|
|
261
|
-
dir: i18nUtils.isRTL(locale
|
|
247
|
+
locale: props.locale,
|
|
248
|
+
dir: i18nUtils.isRTL(props.locale) ? 'rtl' : 'ltr'
|
|
262
249
|
}));
|
|
263
250
|
return web.createComponent(LocaleContextProvider, {
|
|
264
251
|
value: context,
|
|
265
252
|
get children() {
|
|
266
|
-
return
|
|
253
|
+
return props.children;
|
|
267
254
|
}
|
|
268
255
|
});
|
|
269
256
|
};
|
|
@@ -272,13 +259,16 @@ const useCollapsible = props => {
|
|
|
272
259
|
const locale = useLocaleContext();
|
|
273
260
|
const environment = useEnvironmentContext();
|
|
274
261
|
const [renderStrategyProps, collapsibleProps] = splitRenderStrategyProps(props);
|
|
275
|
-
const
|
|
276
|
-
|
|
262
|
+
const id = solidJs.createUniqueId();
|
|
263
|
+
const context = solidJs.createMemo(() => ({
|
|
264
|
+
id,
|
|
277
265
|
dir: locale().dir,
|
|
278
266
|
getRootNode: environment().getRootNode,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
267
|
+
open: props.defaultOpen,
|
|
268
|
+
'open.controlled': props.open !== undefined,
|
|
269
|
+
...collapsibleProps
|
|
270
|
+
}));
|
|
271
|
+
const [state, send] = solid.useMachine(collapsible__namespace.machine(context()), {
|
|
282
272
|
context
|
|
283
273
|
});
|
|
284
274
|
const [wasVisible, setWasVisible] = solidJs.createSignal(false);
|
|
@@ -294,7 +284,7 @@ const useCollapsible = props => {
|
|
|
294
284
|
};
|
|
295
285
|
|
|
296
286
|
const CollapsibleRoot = props => {
|
|
297
|
-
const [useCollapsibleProps, localProps] = createSplitProps()(props, ['disabled', 'id', 'ids', 'lazyMount', 'onExitComplete', 'onOpenChange', 'open', 'unmountOnExit']);
|
|
287
|
+
const [useCollapsibleProps, localProps] = createSplitProps()(props, ['defaultOpen', 'disabled', 'id', 'ids', 'lazyMount', 'onExitComplete', 'onOpenChange', 'open', 'unmountOnExit']);
|
|
298
288
|
const api = useCollapsible(useCollapsibleProps);
|
|
299
289
|
const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
|
|
300
290
|
return web.createComponent(CollapsibleProvider, {
|
|
@@ -358,12 +348,13 @@ const AccordionItem = props => {
|
|
|
358
348
|
});
|
|
359
349
|
};
|
|
360
350
|
|
|
351
|
+
const splitVisibilityProps = createSplitProps();
|
|
361
352
|
const AccordionItemContent = props => {
|
|
362
353
|
const accordion = useAccordionContext();
|
|
363
354
|
const itemProps = useAccordionItemPropsContext();
|
|
364
355
|
const itemContentProps = solidJs.createMemo(() => {
|
|
365
|
-
const
|
|
366
|
-
ownProps
|
|
356
|
+
const contentProps = accordion().getItemContentProps(itemProps);
|
|
357
|
+
const [, ownProps] = splitVisibilityProps(contentProps, ['hidden', 'data-state']);
|
|
367
358
|
return ownProps;
|
|
368
359
|
});
|
|
369
360
|
const mergedProps = solid.mergeProps(itemContentProps, props);
|
|
@@ -389,14 +380,17 @@ const AccordionItemTrigger = props => {
|
|
|
389
380
|
};
|
|
390
381
|
|
|
391
382
|
const useAccordion = props => {
|
|
383
|
+
const id = solidJs.createUniqueId();
|
|
392
384
|
const locale = useLocaleContext();
|
|
393
385
|
const environment = useEnvironmentContext();
|
|
394
|
-
const context = solidJs.
|
|
395
|
-
id
|
|
386
|
+
const context = solidJs.createMemo(() => ({
|
|
387
|
+
id,
|
|
396
388
|
dir: locale().dir,
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
389
|
+
value: props.defaultValue,
|
|
390
|
+
getRootNode: environment().getRootNode,
|
|
391
|
+
...props
|
|
392
|
+
}));
|
|
393
|
+
const [state, send] = solid.useMachine(accordion__namespace.machine(context()), {
|
|
400
394
|
context
|
|
401
395
|
});
|
|
402
396
|
return solidJs.createMemo(() => accordion__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -404,7 +398,7 @@ const useAccordion = props => {
|
|
|
404
398
|
|
|
405
399
|
const AccordionRoot = props => {
|
|
406
400
|
const [renderStrategyProps, accordionProps] = splitRenderStrategyProps(props);
|
|
407
|
-
const [useAccordionProps, localProps] = createSplitProps()(accordionProps, ['collapsible', 'disabled', 'id', 'ids', 'multiple', 'onFocusChange', 'onValueChange', 'orientation', 'value']);
|
|
401
|
+
const [useAccordionProps, localProps] = createSplitProps()(accordionProps, ['collapsible', 'defaultValue', 'disabled', 'id', 'ids', 'multiple', 'onFocusChange', 'onValueChange', 'orientation', 'value']);
|
|
408
402
|
const api = useAccordion(useAccordionProps);
|
|
409
403
|
const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
|
|
410
404
|
return web.createComponent(AccordionProvider, {
|
|
@@ -453,12 +447,14 @@ const AvatarImage = props => {
|
|
|
453
447
|
const useAvatar = props => {
|
|
454
448
|
const locale = useLocaleContext();
|
|
455
449
|
const environment = useEnvironmentContext();
|
|
456
|
-
const
|
|
457
|
-
|
|
450
|
+
const id = solidJs.createUniqueId();
|
|
451
|
+
const context = solidJs.createMemo(() => ({
|
|
452
|
+
id,
|
|
458
453
|
dir: locale().dir,
|
|
459
|
-
getRootNode: environment().getRootNode
|
|
460
|
-
|
|
461
|
-
|
|
454
|
+
getRootNode: environment().getRootNode,
|
|
455
|
+
...props
|
|
456
|
+
}));
|
|
457
|
+
const [state, send] = solid.useMachine(avatar__namespace.machine(context()), {
|
|
462
458
|
context
|
|
463
459
|
});
|
|
464
460
|
return solidJs.createMemo(() => avatar__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -537,19 +533,22 @@ const CarouselPrevTrigger = props => {
|
|
|
537
533
|
const useCarousel = props => {
|
|
538
534
|
const locale = useLocaleContext();
|
|
539
535
|
const environment = useEnvironmentContext();
|
|
540
|
-
const
|
|
541
|
-
|
|
536
|
+
const id = solidJs.createUniqueId();
|
|
537
|
+
const context = solidJs.createMemo(() => ({
|
|
538
|
+
id,
|
|
542
539
|
dir: locale().dir,
|
|
543
|
-
getRootNode: environment().getRootNode
|
|
544
|
-
|
|
545
|
-
|
|
540
|
+
getRootNode: environment().getRootNode,
|
|
541
|
+
index: props.defaultIndex,
|
|
542
|
+
...props
|
|
543
|
+
}));
|
|
544
|
+
const [state, send] = solid.useMachine(carousel__namespace.machine(context()), {
|
|
546
545
|
context
|
|
547
546
|
});
|
|
548
547
|
return solidJs.createMemo(() => carousel__namespace.connect(state, send, solid.normalizeProps));
|
|
549
548
|
};
|
|
550
549
|
|
|
551
550
|
const CarouselRoot = props => {
|
|
552
|
-
const [useCarouselProps, localProps] = createSplitProps()(props, ['align', 'id', 'ids', 'index', 'loop', 'onIndexChange', 'orientation', 'slidesPerView', 'spacing']);
|
|
551
|
+
const [useCarouselProps, localProps] = createSplitProps()(props, ['align', 'defaultIndex', 'id', 'ids', 'index', 'loop', 'onIndexChange', 'orientation', 'slidesPerView', 'spacing']);
|
|
553
552
|
const api = useCarousel(useCarouselProps);
|
|
554
553
|
const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
|
|
555
554
|
return web.createComponent(CarouselProvider, {
|
|
@@ -619,19 +618,22 @@ const CheckboxLabel = props => {
|
|
|
619
618
|
const useCheckbox = props => {
|
|
620
619
|
const locale = useLocaleContext();
|
|
621
620
|
const environment = useEnvironmentContext();
|
|
622
|
-
const
|
|
623
|
-
|
|
621
|
+
const id = solidJs.createUniqueId();
|
|
622
|
+
const context = solidJs.createMemo(() => ({
|
|
623
|
+
id,
|
|
624
624
|
dir: locale().dir,
|
|
625
|
-
getRootNode: environment().getRootNode
|
|
626
|
-
|
|
627
|
-
|
|
625
|
+
getRootNode: environment().getRootNode,
|
|
626
|
+
checked: props.defaultChecked,
|
|
627
|
+
...props
|
|
628
|
+
}));
|
|
629
|
+
const [state, send] = solid.useMachine(checkbox__namespace.machine(context()), {
|
|
628
630
|
context
|
|
629
631
|
});
|
|
630
632
|
return solidJs.createMemo(() => checkbox__namespace.connect(state, send, solid.normalizeProps));
|
|
631
633
|
};
|
|
632
634
|
|
|
633
635
|
const CheckboxRoot = props => {
|
|
634
|
-
const [useCheckboxProps, labelprops] = createSplitProps()(props, ['checked', 'disabled', 'form', 'id', 'ids', 'invalid', 'name', 'onCheckedChange', 'readOnly', 'required', 'value']);
|
|
636
|
+
const [useCheckboxProps, labelprops] = createSplitProps()(props, ['checked', 'defaultChecked', 'disabled', 'form', 'id', 'ids', 'invalid', 'name', 'onCheckedChange', 'readOnly', 'required', 'value']);
|
|
635
637
|
const checkbox = useCheckbox(useCheckboxProps);
|
|
636
638
|
const mergedProps = solid.mergeProps(() => checkbox().rootProps, labelprops);
|
|
637
639
|
return web.createComponent(CheckboxProvider, {
|
|
@@ -704,11 +706,13 @@ const ClipboardLabel = props => {
|
|
|
704
706
|
|
|
705
707
|
const useClipboard = props => {
|
|
706
708
|
const environment = useEnvironmentContext();
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
709
|
+
const id = solidJs.createUniqueId();
|
|
710
|
+
const context = solidJs.createMemo(() => ({
|
|
711
|
+
id,
|
|
712
|
+
getRootNode: environment().getRootNode,
|
|
713
|
+
...props
|
|
714
|
+
}));
|
|
715
|
+
const [state, send] = solid.useMachine(clipboard__namespace.machine(context()), {
|
|
712
716
|
context
|
|
713
717
|
});
|
|
714
718
|
return solidJs.createMemo(() => clipboard__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -944,17 +948,19 @@ const ColorPickerPositioner = props => {
|
|
|
944
948
|
};
|
|
945
949
|
|
|
946
950
|
const useColorPicker = props => {
|
|
947
|
-
const [local, rest] = solidJs.splitProps(props, ['value']);
|
|
948
951
|
const locale = useLocaleContext();
|
|
949
952
|
const environment = useEnvironmentContext();
|
|
950
|
-
const
|
|
951
|
-
|
|
953
|
+
const id = solidJs.createUniqueId();
|
|
954
|
+
const context = solidJs.createMemo(() => ({
|
|
955
|
+
id,
|
|
952
956
|
dir: locale().dir,
|
|
953
957
|
getRootNode: environment().getRootNode,
|
|
958
|
+
open: props.defaultOpen,
|
|
954
959
|
'open.controlled': props.open !== undefined,
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
960
|
+
...props,
|
|
961
|
+
value: props.value ? colorPicker__namespace.parse(props.value) : props.defaultValue ? colorPicker__namespace.parse(props.defaultValue) : undefined
|
|
962
|
+
}));
|
|
963
|
+
const [state, send] = solid.useMachine(colorPicker__namespace.machine(context()), {
|
|
958
964
|
context
|
|
959
965
|
});
|
|
960
966
|
return solidJs.createMemo(() => colorPicker__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -962,7 +968,7 @@ const useColorPicker = props => {
|
|
|
962
968
|
|
|
963
969
|
const ColorPickerRoot = props => {
|
|
964
970
|
const [presenceProps, colorPickerProps] = splitPresenceProps(props);
|
|
965
|
-
const [useColorPickerProps, localProps] = createSplitProps()(colorPickerProps, ['closeOnSelect', 'disabled', 'format', 'id', 'ids', 'initialFocusEl', 'name', 'name', 'onFocusOutside', 'onFormatChange', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'onValueChange', 'onValueChangeEnd', 'open', 'positioning', 'readOnly', 'value']);
|
|
971
|
+
const [useColorPickerProps, localProps] = createSplitProps()(colorPickerProps, ['closeOnSelect', 'defaultOpen', 'defaultValue', 'disabled', 'format', 'id', 'ids', 'initialFocusEl', 'name', 'name', 'onFocusOutside', 'onFormatChange', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'onValueChange', 'onValueChangeEnd', 'open', 'positioning', 'readOnly', 'value']);
|
|
966
972
|
const api = useColorPicker(useColorPickerProps);
|
|
967
973
|
const apiPresence = usePresence(solid.mergeProps(presenceProps, () => ({
|
|
968
974
|
present: api().open
|
|
@@ -1223,18 +1229,22 @@ const ComboboxPositioner = props => {
|
|
|
1223
1229
|
};
|
|
1224
1230
|
|
|
1225
1231
|
const useCombobox = props => {
|
|
1226
|
-
const [collectionOptions,
|
|
1232
|
+
const [collectionOptions, comboboxProps] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
|
|
1227
1233
|
const collection = () => combobox__namespace.collection(collectionOptions);
|
|
1228
1234
|
const locale = useLocaleContext();
|
|
1229
1235
|
const environment = useEnvironmentContext();
|
|
1230
|
-
const
|
|
1231
|
-
|
|
1236
|
+
const id = solidJs.createUniqueId();
|
|
1237
|
+
const context = solidJs.createMemo(() => ({
|
|
1238
|
+
id,
|
|
1239
|
+
collection: collection(),
|
|
1232
1240
|
dir: locale().dir,
|
|
1233
1241
|
getRootNode: environment().getRootNode,
|
|
1242
|
+
open: props.defaultOpen,
|
|
1243
|
+
value: props.defaultValue,
|
|
1234
1244
|
'open.controlled': props.open !== undefined,
|
|
1235
|
-
|
|
1236
|
-
}
|
|
1237
|
-
const [state, send] = solid.useMachine(combobox__namespace.machine(context), {
|
|
1245
|
+
...comboboxProps
|
|
1246
|
+
}));
|
|
1247
|
+
const [state, send] = solid.useMachine(combobox__namespace.machine(context()), {
|
|
1238
1248
|
context
|
|
1239
1249
|
});
|
|
1240
1250
|
return solidJs.createMemo(() => combobox__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -1242,7 +1252,7 @@ const useCombobox = props => {
|
|
|
1242
1252
|
|
|
1243
1253
|
const ComboboxRoot = props => {
|
|
1244
1254
|
const [presenceProps, comboboxProps] = splitPresenceProps(props);
|
|
1245
|
-
const [useComboboxProps, localProps] = createSplitProps()(comboboxProps, ['allowCustomValue', 'autoFocus', 'closeOnSelect', 'disabled', '
|
|
1255
|
+
const [useComboboxProps, localProps] = createSplitProps()(comboboxProps, ['allowCustomValue', 'autoFocus', 'closeOnSelect', 'composite', 'defaultOpen', 'defaultValue', 'disabled', 'disableLayer', 'form', 'getSelectionValue', 'highlightedValue', 'id', 'ids', 'inputBehavior', 'inputValue', 'invalid', 'isItemDisabled', 'items', 'itemToString', 'itemToValue', 'loopFocus', 'multiple', 'name', 'onFocusOutside', 'onHighlightChange', 'onInputValueChange', 'onInteractOutside', 'onOpenChange', 'onOpenChange', 'onPointerDownOutside', 'onValueChange', 'open', 'openOnChange', 'openOnClick', 'openOnKeyPress', 'placeholder', 'positioning', 'readOnly', 'scrollToIndexFn', 'selectionBehavior', 'translations', 'value']);
|
|
1246
1256
|
const api = useCombobox(useComboboxProps);
|
|
1247
1257
|
const apiPresence = usePresence(solid.mergeProps(presenceProps, () => ({
|
|
1248
1258
|
present: api().open
|
|
@@ -1262,8 +1272,9 @@ const ComboboxRoot = props => {
|
|
|
1262
1272
|
};
|
|
1263
1273
|
|
|
1264
1274
|
const ComboboxTrigger = props => {
|
|
1275
|
+
const [triggerProps, localProps] = createSplitProps()(props, ['focusable']);
|
|
1265
1276
|
const combobox = useComboboxContext();
|
|
1266
|
-
const mergedProps = solid.mergeProps(() => combobox().triggerProps,
|
|
1277
|
+
const mergedProps = solid.mergeProps(() => combobox().getTriggerProps(triggerProps), localProps);
|
|
1267
1278
|
return web.createComponent(ark.button, mergedProps);
|
|
1268
1279
|
};
|
|
1269
1280
|
|
|
@@ -1401,18 +1412,20 @@ const DatePickerRangeText = props => {
|
|
|
1401
1412
|
const useDatePicker = props => {
|
|
1402
1413
|
const locale = useLocaleContext();
|
|
1403
1414
|
const environment = useEnvironmentContext();
|
|
1404
|
-
const
|
|
1405
|
-
const context =
|
|
1406
|
-
id
|
|
1415
|
+
const id = solidJs.createUniqueId();
|
|
1416
|
+
const context = solidJs.createMemo(() => ({
|
|
1417
|
+
id,
|
|
1407
1418
|
dir: locale().dir,
|
|
1408
1419
|
getRootNode: environment().getRootNode,
|
|
1409
1420
|
'open.controlled': props.open !== undefined,
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1421
|
+
open: props.defaultOpen,
|
|
1422
|
+
...props,
|
|
1423
|
+
focusedValue: props.focusedValue ? datePicker__namespace.parse(props.focusedValue) : undefined,
|
|
1424
|
+
value: props.value ? datePicker__namespace.parse(props.value) : props.defaultValue ? datePicker__namespace.parse(props.defaultValue) : undefined,
|
|
1425
|
+
max: props.max ? datePicker__namespace.parse(props.max) : undefined,
|
|
1426
|
+
min: props.min ? datePicker__namespace.parse(props.min) : undefined
|
|
1427
|
+
}));
|
|
1428
|
+
const [state, send] = solid.useMachine(datePicker__namespace.machine(context()), {
|
|
1416
1429
|
context
|
|
1417
1430
|
});
|
|
1418
1431
|
return solidJs.createMemo(() => datePicker__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -1420,7 +1433,7 @@ const useDatePicker = props => {
|
|
|
1420
1433
|
|
|
1421
1434
|
const DatePickerRoot = props => {
|
|
1422
1435
|
const [presenceProps, datePickerProps] = splitPresenceProps(props);
|
|
1423
|
-
const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, ['closeOnSelect', 'disabled', 'fixedWeeks', 'focusedValue', 'format', 'id', 'ids', 'isDateUnavailable', 'isDateUnavailable', 'locale', 'max', 'min', 'modal', 'name', 'numOfMonths', 'onFocusChange', 'onOpenChange', 'onValueChange', 'onViewChange', 'open', 'positioning', 'readOnly', 'selectionMode', 'startOfWeek', 'timeZone', 'translations', 'value', 'view']);
|
|
1436
|
+
const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, ['closeOnSelect', 'defaultOpen', 'defaultValue', 'disabled', 'fixedWeeks', 'focusedValue', 'format', 'id', 'ids', 'isDateUnavailable', 'isDateUnavailable', 'locale', 'max', 'min', 'modal', 'name', 'numOfMonths', 'onFocusChange', 'onOpenChange', 'onValueChange', 'onViewChange', 'open', 'positioning', 'readOnly', 'selectionMode', 'startOfWeek', 'timeZone', 'translations', 'value', 'view']);
|
|
1424
1437
|
const api = useDatePicker(useDatePickerProps);
|
|
1425
1438
|
const apiPresence = usePresence(solid.mergeProps(presenceProps, () => ({
|
|
1426
1439
|
present: api().open
|
|
@@ -1688,13 +1701,16 @@ const DialogPositioner = props => {
|
|
|
1688
1701
|
const useDialog = props => {
|
|
1689
1702
|
const locale = useLocaleContext();
|
|
1690
1703
|
const environment = useEnvironmentContext();
|
|
1691
|
-
const
|
|
1692
|
-
|
|
1704
|
+
const id = solidJs.createUniqueId();
|
|
1705
|
+
const context = solidJs.createMemo(() => ({
|
|
1706
|
+
id,
|
|
1693
1707
|
dir: locale().dir,
|
|
1694
1708
|
getRootNode: environment().getRootNode,
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1709
|
+
open: props.defaultOpen,
|
|
1710
|
+
'open.controlled': props.open !== undefined,
|
|
1711
|
+
...props
|
|
1712
|
+
}));
|
|
1713
|
+
const [state, send] = solid.useMachine(dialog__namespace.machine(context()), {
|
|
1698
1714
|
context
|
|
1699
1715
|
});
|
|
1700
1716
|
return solidJs.createMemo(() => dialog__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -1703,7 +1719,7 @@ const useDialog = props => {
|
|
|
1703
1719
|
const DialogRoot = props => {
|
|
1704
1720
|
const [presenceProps, dialogProps] = splitPresenceProps(props);
|
|
1705
1721
|
const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
|
|
1706
|
-
const [useDialogProps, localProps] = createSplitProps()(dialogProps, ['aria-label', 'closeOnEscape', 'closeOnInteractOutside', 'finalFocusEl', 'id', 'ids', 'initialFocusEl', 'modal', 'onEscapeKeyDown', 'onFocusOutside', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'open', 'preventScroll', 'restoreFocus', 'role', 'trapFocus']);
|
|
1722
|
+
const [useDialogProps, localProps] = createSplitProps()(dialogProps, ['aria-label', 'closeOnEscape', 'closeOnInteractOutside', 'defaultOpen', 'finalFocusEl', 'id', 'ids', 'initialFocusEl', 'modal', 'onEscapeKeyDown', 'onFocusOutside', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'open', 'persistentElements', 'preventScroll', 'restoreFocus', 'role', 'trapFocus']);
|
|
1707
1723
|
const api = useDialog(useDialogProps);
|
|
1708
1724
|
const apiPresence = usePresence(solid.mergeProps(presenceProps, () => ({
|
|
1709
1725
|
present: api().open
|
|
@@ -1806,19 +1822,22 @@ const EditablePreview = props => {
|
|
|
1806
1822
|
const useEditable = props => {
|
|
1807
1823
|
const locale = useLocaleContext();
|
|
1808
1824
|
const environment = useEnvironmentContext();
|
|
1809
|
-
const
|
|
1810
|
-
|
|
1825
|
+
const id = solidJs.createUniqueId();
|
|
1826
|
+
const context = solidJs.createMemo(() => ({
|
|
1827
|
+
id,
|
|
1811
1828
|
dir: locale().dir,
|
|
1812
|
-
getRootNode: environment().getRootNode
|
|
1813
|
-
|
|
1814
|
-
|
|
1829
|
+
getRootNode: environment().getRootNode,
|
|
1830
|
+
value: props.defaultValue,
|
|
1831
|
+
...props
|
|
1832
|
+
}));
|
|
1833
|
+
const [state, send] = solid.useMachine(editable__namespace.machine(context()), {
|
|
1815
1834
|
context
|
|
1816
1835
|
});
|
|
1817
1836
|
return solidJs.createMemo(() => editable__namespace.connect(state, send, solid.normalizeProps));
|
|
1818
1837
|
};
|
|
1819
1838
|
|
|
1820
1839
|
const EditableRoot = props => {
|
|
1821
|
-
const [useEditableProps, localProps] = createSplitProps()(props, ['activationMode', 'autoResize', 'disabled', 'finalFocusEl', 'form', 'id', 'ids', 'invalid', 'maxLength', 'name', 'onEdit', 'onFocusOutside', 'onInteractOutside', 'onPointerDownOutside', 'onValueChange', 'onValueCommit', 'onValueRevert', 'placeholder', 'readOnly', 'selectOnFocus', 'startWithEditView', 'submitMode', 'translations', 'value']);
|
|
1840
|
+
const [useEditableProps, localProps] = createSplitProps()(props, ['activationMode', 'autoResize', 'defaultValue', 'disabled', 'finalFocusEl', 'form', 'id', 'ids', 'invalid', 'maxLength', 'name', 'onEdit', 'onFocusOutside', 'onInteractOutside', 'onPointerDownOutside', 'onValueChange', 'onValueCommit', 'onValueRevert', 'placeholder', 'readOnly', 'selectOnFocus', 'startWithEditView', 'submitMode', 'translations', 'value']);
|
|
1822
1841
|
const api = useEditable(useEditableProps);
|
|
1823
1842
|
const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
|
|
1824
1843
|
return web.createComponent(EditableProvider, {
|
|
@@ -1943,12 +1962,14 @@ const FileUploadLabel = props => {
|
|
|
1943
1962
|
const useFileUpload = props => {
|
|
1944
1963
|
const locale = useLocaleContext();
|
|
1945
1964
|
const environment = useEnvironmentContext();
|
|
1946
|
-
const
|
|
1947
|
-
|
|
1965
|
+
const id = solidJs.createUniqueId();
|
|
1966
|
+
const context = solidJs.createMemo(() => ({
|
|
1967
|
+
id,
|
|
1948
1968
|
dir: locale().dir,
|
|
1949
|
-
getRootNode: environment().getRootNode
|
|
1950
|
-
|
|
1951
|
-
|
|
1969
|
+
getRootNode: environment().getRootNode,
|
|
1970
|
+
...props
|
|
1971
|
+
}));
|
|
1972
|
+
const [state, send] = solid.useMachine(fileUpload__namespace.machine(context()), {
|
|
1952
1973
|
context
|
|
1953
1974
|
});
|
|
1954
1975
|
return solidJs.createMemo(() => fileUpload__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -2065,13 +2086,16 @@ const HoverCardPositioner = props => {
|
|
|
2065
2086
|
const useHoverCard = props => {
|
|
2066
2087
|
const locale = useLocaleContext();
|
|
2067
2088
|
const environment = useEnvironmentContext();
|
|
2068
|
-
const
|
|
2069
|
-
|
|
2089
|
+
const id = solidJs.createUniqueId();
|
|
2090
|
+
const context = solidJs.createMemo(() => ({
|
|
2091
|
+
id,
|
|
2070
2092
|
dir: locale().dir,
|
|
2071
2093
|
getRootNode: environment().getRootNode,
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2094
|
+
open: props.defaultOpen,
|
|
2095
|
+
'open.controlled': props.open !== undefined,
|
|
2096
|
+
...props
|
|
2097
|
+
}));
|
|
2098
|
+
const [state, send] = solid.useMachine(hoverCard__namespace.machine(context()), {
|
|
2075
2099
|
context
|
|
2076
2100
|
});
|
|
2077
2101
|
return solidJs.createMemo(() => hoverCard__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -2079,7 +2103,7 @@ const useHoverCard = props => {
|
|
|
2079
2103
|
|
|
2080
2104
|
const HoverCardRoot = props => {
|
|
2081
2105
|
const [presenceProps, hoverCardProps] = splitPresenceProps(props);
|
|
2082
|
-
const [useHoverCardProps, localProps] = createSplitProps()(hoverCardProps, ['closeDelay', 'id', 'ids', 'onOpenChange', 'open', 'openDelay', 'positioning']);
|
|
2106
|
+
const [useHoverCardProps, localProps] = createSplitProps()(hoverCardProps, ['closeDelay', 'defaultOpen', 'id', 'ids', 'onOpenChange', 'open', 'openDelay', 'positioning']);
|
|
2083
2107
|
const api = useHoverCard(useHoverCardProps);
|
|
2084
2108
|
const apiPresence = usePresence(solid.mergeProps(presenceProps, () => ({
|
|
2085
2109
|
present: api().open
|
|
@@ -2307,13 +2331,16 @@ const MenuRadioItemGroup = props => {
|
|
|
2307
2331
|
const useMenu = props => {
|
|
2308
2332
|
const locale = useLocaleContext();
|
|
2309
2333
|
const environment = useEnvironmentContext();
|
|
2310
|
-
const
|
|
2311
|
-
|
|
2334
|
+
const id = solidJs.createUniqueId();
|
|
2335
|
+
const context = solidJs.createMemo(() => ({
|
|
2336
|
+
id,
|
|
2312
2337
|
dir: locale().dir,
|
|
2313
2338
|
getRootNode: environment().getRootNode,
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2339
|
+
open: props.defaultOpen,
|
|
2340
|
+
'open.controlled': props.open !== undefined,
|
|
2341
|
+
...props
|
|
2342
|
+
}));
|
|
2343
|
+
const [state, send, machine] = solid.useMachine(menu__namespace.machine(context()), {
|
|
2317
2344
|
context
|
|
2318
2345
|
});
|
|
2319
2346
|
const api = solidJs.createMemo(() => menu__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -2337,7 +2364,7 @@ const [MenuTriggerItemProvider, useMenuTriggerItemContext] = createContext({
|
|
|
2337
2364
|
|
|
2338
2365
|
const MenuRoot = props => {
|
|
2339
2366
|
const [presenceProps, menuProps] = splitPresenceProps(props);
|
|
2340
|
-
const [useMenuProps, localProps] = createSplitProps()(menuProps, ['anchorPoint', 'aria-label', 'closeOnSelect', 'highlightedValue', 'id', 'ids', 'loopFocus', 'onEscapeKeyDown', 'onFocusOutside', 'onHighlightChange', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'onSelect', 'open', 'positioning', 'typeahead']);
|
|
2367
|
+
const [useMenuProps, localProps] = createSplitProps()(menuProps, ['anchorPoint', 'aria-label', 'closeOnSelect', 'composite', 'defaultOpen', 'highlightedValue', 'id', 'ids', 'loopFocus', 'onEscapeKeyDown', 'onFocusOutside', 'onHighlightChange', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'onSelect', 'open', 'positioning', 'typeahead']);
|
|
2341
2368
|
const parentApi = useMenuContext();
|
|
2342
2369
|
const parentMachine = useMenuMachineContext();
|
|
2343
2370
|
const menu = useMenu(useMenuProps);
|
|
@@ -2462,19 +2489,22 @@ const NumberInputLabel = props => {
|
|
|
2462
2489
|
const useNumberInput = props => {
|
|
2463
2490
|
const locale = useLocaleContext();
|
|
2464
2491
|
const environment = useEnvironmentContext();
|
|
2465
|
-
const
|
|
2466
|
-
|
|
2492
|
+
const id = solidJs.createUniqueId();
|
|
2493
|
+
const context = solidJs.createMemo(() => ({
|
|
2494
|
+
id,
|
|
2467
2495
|
dir: locale().dir,
|
|
2468
|
-
getRootNode: environment().getRootNode
|
|
2469
|
-
|
|
2470
|
-
|
|
2496
|
+
getRootNode: environment().getRootNode,
|
|
2497
|
+
value: props.defaultValue,
|
|
2498
|
+
...props
|
|
2499
|
+
}));
|
|
2500
|
+
const [state, send] = solid.useMachine(numberInput__namespace.machine(context()), {
|
|
2471
2501
|
context
|
|
2472
2502
|
});
|
|
2473
2503
|
return solidJs.createMemo(() => numberInput__namespace.connect(state, send, solid.normalizeProps));
|
|
2474
2504
|
};
|
|
2475
2505
|
|
|
2476
2506
|
const NumberInputRoot = props => {
|
|
2477
|
-
const [useNumberInputProps, localProps] = createSplitProps()(props, ['allowMouseWheel', 'allowOverflow', 'clampValueOnBlur', 'disabled', 'focusInputOnChange', 'form', 'formatOptions', 'id', 'ids', 'inputMode', 'invalid', 'locale', 'max', 'min', 'name', 'onFocusChange', 'onValueChange', 'onValueInvalid', 'pattern', 'readOnly', 'spinOnPress', 'step', 'translations', 'value']);
|
|
2507
|
+
const [useNumberInputProps, localProps] = createSplitProps()(props, ['allowMouseWheel', 'allowOverflow', 'clampValueOnBlur', 'defaultValue', 'disabled', 'focusInputOnChange', 'form', 'formatOptions', 'id', 'ids', 'inputMode', 'invalid', 'locale', 'max', 'min', 'name', 'onFocusChange', 'onValueChange', 'onValueInvalid', 'pattern', 'readOnly', 'spinOnPress', 'step', 'translations', 'value']);
|
|
2478
2508
|
const api = useNumberInput(useNumberInputProps);
|
|
2479
2509
|
const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
|
|
2480
2510
|
return web.createComponent(NumberInputProvider, {
|
|
@@ -2539,19 +2569,22 @@ const PaginationPrevTrigger = props => {
|
|
|
2539
2569
|
const usePagination = props => {
|
|
2540
2570
|
const locale = useLocaleContext();
|
|
2541
2571
|
const environment = useEnvironmentContext();
|
|
2542
|
-
const
|
|
2543
|
-
|
|
2572
|
+
const id = solidJs.createUniqueId();
|
|
2573
|
+
const context = solidJs.createMemo(() => ({
|
|
2574
|
+
id,
|
|
2544
2575
|
dir: locale().dir,
|
|
2545
|
-
getRootNode: environment().getRootNode
|
|
2546
|
-
|
|
2547
|
-
|
|
2576
|
+
getRootNode: environment().getRootNode,
|
|
2577
|
+
page: props.defaultPage,
|
|
2578
|
+
...props
|
|
2579
|
+
}));
|
|
2580
|
+
const [state, send] = solid.useMachine(pagination__namespace.machine(context()), {
|
|
2548
2581
|
context
|
|
2549
2582
|
});
|
|
2550
2583
|
return solidJs.createMemo(() => pagination__namespace.connect(state, send, solid.normalizeProps));
|
|
2551
2584
|
};
|
|
2552
2585
|
|
|
2553
2586
|
const PaginationRoot = props => {
|
|
2554
|
-
const [usePaginationProps, localProps] = createSplitProps()(props, ['count', 'id', 'ids', 'onPageChange', 'page', 'pageSize', 'siblingCount', 'translations', 'type']);
|
|
2587
|
+
const [usePaginationProps, localProps] = createSplitProps()(props, ['count', 'defaultPage', 'id', 'ids', 'onPageChange', 'page', 'pageSize', 'siblingCount', 'translations', 'type']);
|
|
2555
2588
|
const api = usePagination(usePaginationProps);
|
|
2556
2589
|
const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
|
|
2557
2590
|
return web.createComponent(PaginationProvider, {
|
|
@@ -2601,19 +2634,22 @@ const PinInputLabel = props => {
|
|
|
2601
2634
|
const usePinInput = props => {
|
|
2602
2635
|
const locale = useLocaleContext();
|
|
2603
2636
|
const environment = useEnvironmentContext();
|
|
2604
|
-
const
|
|
2605
|
-
|
|
2637
|
+
const id = solidJs.createUniqueId();
|
|
2638
|
+
const context = solidJs.createMemo(() => ({
|
|
2639
|
+
id,
|
|
2606
2640
|
dir: locale().dir,
|
|
2607
|
-
getRootNode: environment().getRootNode
|
|
2608
|
-
|
|
2609
|
-
|
|
2641
|
+
getRootNode: environment().getRootNode,
|
|
2642
|
+
value: props.defaultValue,
|
|
2643
|
+
...props
|
|
2644
|
+
}));
|
|
2645
|
+
const [state, send] = solid.useMachine(pinInput__namespace.machine(context()), {
|
|
2610
2646
|
context
|
|
2611
2647
|
});
|
|
2612
2648
|
return solidJs.createMemo(() => pinInput__namespace.connect(state, send, solid.normalizeProps));
|
|
2613
2649
|
};
|
|
2614
2650
|
|
|
2615
2651
|
const PinInputRoot = props => {
|
|
2616
|
-
const [usePinInputProps, localProps] = createSplitProps()(props, ['autoFocus', 'blurOnComplete', 'disabled', 'form', 'id', 'ids', 'invalid', 'mask', 'name', 'onValueChange', 'onValueComplete', 'onValueInvalid', 'otp', 'pattern', 'placeholder', 'selectOnFocus', 'translations', 'type', 'value']);
|
|
2652
|
+
const [usePinInputProps, localProps] = createSplitProps()(props, ['autoFocus', 'blurOnComplete', 'defaultValue', 'disabled', 'form', 'id', 'ids', 'invalid', 'mask', 'name', 'onValueChange', 'onValueComplete', 'onValueInvalid', 'otp', 'pattern', 'placeholder', 'selectOnFocus', 'translations', 'type', 'value']);
|
|
2617
2653
|
const pinInput = usePinInput(usePinInputProps);
|
|
2618
2654
|
const mergedProps = solid.mergeProps(() => pinInput().rootProps, localProps);
|
|
2619
2655
|
return web.createComponent(PinInputProvider, {
|
|
@@ -2714,13 +2750,16 @@ const PopoverPositioner = props => {
|
|
|
2714
2750
|
const usePopover = props => {
|
|
2715
2751
|
const locale = useLocaleContext();
|
|
2716
2752
|
const environment = useEnvironmentContext();
|
|
2717
|
-
const
|
|
2718
|
-
|
|
2753
|
+
const id = solidJs.createUniqueId();
|
|
2754
|
+
const context = solidJs.createMemo(() => ({
|
|
2755
|
+
id,
|
|
2719
2756
|
dir: locale().dir,
|
|
2720
2757
|
getRootNode: environment().getRootNode,
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2758
|
+
open: props.defaultOpen,
|
|
2759
|
+
'open.controlled': props.open !== undefined,
|
|
2760
|
+
...props
|
|
2761
|
+
}));
|
|
2762
|
+
const [state, send] = solid.useMachine(popover__namespace.machine(context()), {
|
|
2724
2763
|
context
|
|
2725
2764
|
});
|
|
2726
2765
|
return solidJs.createMemo(() => popover__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -2728,7 +2767,7 @@ const usePopover = props => {
|
|
|
2728
2767
|
|
|
2729
2768
|
const PopoverRoot = props => {
|
|
2730
2769
|
const [presenceProps, popoverProps] = splitPresenceProps(props);
|
|
2731
|
-
const [usePopoverProps, localProps] = createSplitProps()(popoverProps, ['autoFocus', '
|
|
2770
|
+
const [usePopoverProps, localProps] = createSplitProps()(popoverProps, ['autoFocus', 'closeOnEscape', 'closeOnInteractOutside', 'defaultOpen', 'id', 'ids', 'initialFocusEl', 'modal', 'onEscapeKeyDown', 'onFocusOutside', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'open', 'persistentElements', 'portalled', 'positioning']);
|
|
2732
2771
|
const api = usePopover(usePopoverProps);
|
|
2733
2772
|
const apiPresence = usePresence(solid.mergeProps(presenceProps, () => ({
|
|
2734
2773
|
present: api().open
|
|
@@ -2817,12 +2856,14 @@ const ProgressRange = props => {
|
|
|
2817
2856
|
const useProgress = props => {
|
|
2818
2857
|
const locale = useLocaleContext();
|
|
2819
2858
|
const environment = useEnvironmentContext();
|
|
2820
|
-
const
|
|
2821
|
-
|
|
2859
|
+
const id = solidJs.createUniqueId();
|
|
2860
|
+
const context = solidJs.createMemo(() => ({
|
|
2861
|
+
id,
|
|
2822
2862
|
dir: locale().dir,
|
|
2823
|
-
getRootNode: environment().getRootNode
|
|
2824
|
-
|
|
2825
|
-
|
|
2863
|
+
getRootNode: environment().getRootNode,
|
|
2864
|
+
...props
|
|
2865
|
+
}));
|
|
2866
|
+
const [state, send] = solid.useMachine(progress__namespace.machine(context()), {
|
|
2826
2867
|
context
|
|
2827
2868
|
});
|
|
2828
2869
|
return solidJs.createMemo(() => progress__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -2948,19 +2989,22 @@ const RadioGroupLabel = props => {
|
|
|
2948
2989
|
const useRadioGroup = props => {
|
|
2949
2990
|
const locale = useLocaleContext();
|
|
2950
2991
|
const environment = useEnvironmentContext();
|
|
2951
|
-
const
|
|
2952
|
-
|
|
2992
|
+
const id = solidJs.createUniqueId();
|
|
2993
|
+
const context = solidJs.createMemo(() => ({
|
|
2994
|
+
id,
|
|
2953
2995
|
dir: locale().dir,
|
|
2954
|
-
getRootNode: environment().getRootNode
|
|
2955
|
-
|
|
2956
|
-
|
|
2996
|
+
getRootNode: environment().getRootNode,
|
|
2997
|
+
value: props.defaultValue,
|
|
2998
|
+
...props
|
|
2999
|
+
}));
|
|
3000
|
+
const [state, send] = solid.useMachine(radio__namespace.machine(context()), {
|
|
2957
3001
|
context
|
|
2958
3002
|
});
|
|
2959
3003
|
return solidJs.createMemo(() => radio__namespace.connect(state, send, solid.normalizeProps));
|
|
2960
3004
|
};
|
|
2961
3005
|
|
|
2962
3006
|
const RadioGroupRoot = props => {
|
|
2963
|
-
const [useRadioGroupProps, localProps] = createSplitProps()(props, ['disabled', 'form', 'id', 'ids', 'name', 'onValueChange', 'orientation', 'readOnly', 'value']);
|
|
3007
|
+
const [useRadioGroupProps, localProps] = createSplitProps()(props, ['defaultValue', 'disabled', 'form', 'id', 'ids', 'name', 'onValueChange', 'orientation', 'readOnly', 'value']);
|
|
2964
3008
|
const radioGroup = useRadioGroup(useRadioGroupProps);
|
|
2965
3009
|
const mergedProps = solid.mergeProps(() => radioGroup().rootProps, localProps);
|
|
2966
3010
|
return web.createComponent(RadioGroupProvider, {
|
|
@@ -3025,19 +3069,22 @@ const RatingGroupLabel = props => {
|
|
|
3025
3069
|
const useRatingGroup = props => {
|
|
3026
3070
|
const locale = useLocaleContext();
|
|
3027
3071
|
const environment = useEnvironmentContext();
|
|
3028
|
-
const
|
|
3029
|
-
|
|
3072
|
+
const id = solidJs.createUniqueId();
|
|
3073
|
+
const context = solidJs.createMemo(() => ({
|
|
3074
|
+
id,
|
|
3030
3075
|
dir: locale().dir,
|
|
3031
|
-
getRootNode: environment().getRootNode
|
|
3032
|
-
|
|
3033
|
-
|
|
3076
|
+
getRootNode: environment().getRootNode,
|
|
3077
|
+
value: props.defaultValue,
|
|
3078
|
+
...props
|
|
3079
|
+
}));
|
|
3080
|
+
const [state, send] = solid.useMachine(rating__namespace.machine(context()), {
|
|
3034
3081
|
context
|
|
3035
3082
|
});
|
|
3036
3083
|
return solidJs.createMemo(() => rating__namespace.connect(state, send, solid.normalizeProps));
|
|
3037
3084
|
};
|
|
3038
3085
|
|
|
3039
3086
|
const RatingGroupRoot = props => {
|
|
3040
|
-
const [useRatingProps, localProps] = createSplitProps()(props, ['allowHalf', 'autoFocus', 'count', 'disabled', 'form', 'id', 'ids', 'name', 'onHoverChange', 'onValueChange', 'readOnly', 'translations', 'value']);
|
|
3087
|
+
const [useRatingProps, localProps] = createSplitProps()(props, ['allowHalf', 'autoFocus', 'count', 'defaultValue', 'disabled', 'form', 'id', 'ids', 'name', 'onHoverChange', 'onValueChange', 'readOnly', 'translations', 'value']);
|
|
3041
3088
|
const api = useRatingGroup(useRatingProps);
|
|
3042
3089
|
const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
|
|
3043
3090
|
return web.createComponent(RatingGroupProvider, {
|
|
@@ -3136,19 +3183,22 @@ const SegmentGroupLabel = props => {
|
|
|
3136
3183
|
const useSegmentGroup = props => {
|
|
3137
3184
|
const locale = useLocaleContext();
|
|
3138
3185
|
const environment = useEnvironmentContext();
|
|
3139
|
-
const
|
|
3140
|
-
|
|
3186
|
+
const id = solidJs.createUniqueId();
|
|
3187
|
+
const context = solidJs.createMemo(() => ({
|
|
3188
|
+
id,
|
|
3141
3189
|
dir: locale().dir,
|
|
3142
|
-
getRootNode: environment().getRootNode
|
|
3143
|
-
|
|
3144
|
-
|
|
3190
|
+
getRootNode: environment().getRootNode,
|
|
3191
|
+
value: props.defaultValue,
|
|
3192
|
+
...props
|
|
3193
|
+
}));
|
|
3194
|
+
const [state, send] = solid.useMachine(radio__namespace.machine(context()), {
|
|
3145
3195
|
context
|
|
3146
3196
|
});
|
|
3147
3197
|
return solidJs.createMemo(() => radio__namespace.connect(state, send, solid.normalizeProps));
|
|
3148
3198
|
};
|
|
3149
3199
|
|
|
3150
3200
|
const SegmentGroupRoot = props => {
|
|
3151
|
-
const [useSegmentGroupProps, localProps] = createSplitProps()(props, ['disabled', 'form', 'id', 'ids', 'name', 'onValueChange', 'orientation', 'readOnly', 'value']);
|
|
3201
|
+
const [useSegmentGroupProps, localProps] = createSplitProps()(props, ['defaultValue', 'disabled', 'form', 'id', 'ids', 'name', 'onValueChange', 'orientation', 'readOnly', 'value']);
|
|
3152
3202
|
const segmentGroup = useSegmentGroup(useSegmentGroupProps);
|
|
3153
3203
|
const mergedProps = solid.mergeProps(() => segmentGroup().rootProps, anatomy.segmentGroupAnatomy.build().root.attrs, localProps);
|
|
3154
3204
|
return web.createComponent(SegmentGroupProvider, {
|
|
@@ -3252,7 +3302,7 @@ const [SelectItemPropsProvider, useSelectItemPropsContext] = createContext({
|
|
|
3252
3302
|
});
|
|
3253
3303
|
|
|
3254
3304
|
const SelectItem = props => {
|
|
3255
|
-
const [itemProps, localProps] = createSplitProps()(props, ['item']);
|
|
3305
|
+
const [itemProps, localProps] = createSplitProps()(props, ['item', 'persistFocus']);
|
|
3256
3306
|
const select = useSelectContext();
|
|
3257
3307
|
const mergedProps = solid.mergeProps(() => select().getItemProps(itemProps), localProps);
|
|
3258
3308
|
const itemState = solidJs.createMemo(() => select().getItemState(itemProps));
|
|
@@ -3335,18 +3385,22 @@ const SelectPositioner = props => {
|
|
|
3335
3385
|
};
|
|
3336
3386
|
|
|
3337
3387
|
const useSelect = props => {
|
|
3338
|
-
const [collectionOptions,
|
|
3388
|
+
const [collectionOptions, selectProps] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
|
|
3339
3389
|
const collection = () => select__namespace.collection(collectionOptions);
|
|
3340
3390
|
const locale = useLocaleContext();
|
|
3341
3391
|
const environment = useEnvironmentContext();
|
|
3342
|
-
const
|
|
3343
|
-
|
|
3392
|
+
const id = solidJs.createUniqueId();
|
|
3393
|
+
const context = solidJs.createMemo(() => ({
|
|
3394
|
+
id,
|
|
3395
|
+
collection: collection(),
|
|
3344
3396
|
dir: locale().dir,
|
|
3345
3397
|
getRootNode: environment().getRootNode,
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3398
|
+
open: props.defaultOpen,
|
|
3399
|
+
value: props.defaultValue,
|
|
3400
|
+
'open.controlled': props.open !== undefined,
|
|
3401
|
+
...selectProps
|
|
3402
|
+
}));
|
|
3403
|
+
const [state, send] = solid.useMachine(select__namespace.machine(context()), {
|
|
3350
3404
|
context
|
|
3351
3405
|
});
|
|
3352
3406
|
return solidJs.createMemo(() => select__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -3354,7 +3408,7 @@ const useSelect = props => {
|
|
|
3354
3408
|
|
|
3355
3409
|
const SelectRoot = props => {
|
|
3356
3410
|
const [presenceProps, selectProps] = splitPresenceProps(props);
|
|
3357
|
-
const [useSelectProps, localProps] = createSplitProps()(selectProps, ['closeOnSelect', 'disabled', 'form', 'highlightedValue', 'id', 'ids', 'invalid', 'isItemDisabled', 'items', 'itemToString', 'itemToValue', 'loopFocus', 'multiple', 'name', 'onFocusOutside', 'onHighlightChange', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'onValueChange', 'open', 'positioning', 'readOnly', 'scrollToIndexFn', 'value']);
|
|
3411
|
+
const [useSelectProps, localProps] = createSplitProps()(selectProps, ['closeOnSelect', 'composite', 'defaultOpen', 'defaultValue', 'disabled', 'form', 'highlightedValue', 'id', 'ids', 'invalid', 'isItemDisabled', 'items', 'itemToString', 'itemToValue', 'loopFocus', 'multiple', 'name', 'onFocusOutside', 'onHighlightChange', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'onValueChange', 'open', 'positioning', 'readOnly', 'scrollToIndexFn', 'value']);
|
|
3358
3412
|
const select = useSelect(useSelectProps);
|
|
3359
3413
|
const presenceApi = usePresence(solid.mergeProps(() => ({
|
|
3360
3414
|
present: select().open
|
|
@@ -3451,19 +3505,22 @@ const SliderRange = props => {
|
|
|
3451
3505
|
const useSlider = props => {
|
|
3452
3506
|
const locale = useLocaleContext();
|
|
3453
3507
|
const environment = useEnvironmentContext();
|
|
3454
|
-
const
|
|
3455
|
-
|
|
3508
|
+
const id = solidJs.createUniqueId();
|
|
3509
|
+
const context = solidJs.createMemo(() => ({
|
|
3510
|
+
id,
|
|
3456
3511
|
dir: locale().dir,
|
|
3457
|
-
getRootNode: environment().getRootNode
|
|
3458
|
-
|
|
3459
|
-
|
|
3512
|
+
getRootNode: environment().getRootNode,
|
|
3513
|
+
value: props.defaultValue,
|
|
3514
|
+
...props
|
|
3515
|
+
}));
|
|
3516
|
+
const [state, send] = solid.useMachine(slider__namespace.machine(context()), {
|
|
3460
3517
|
context
|
|
3461
3518
|
});
|
|
3462
3519
|
return solidJs.createMemo(() => slider__namespace.connect(state, send, solid.normalizeProps));
|
|
3463
3520
|
};
|
|
3464
3521
|
|
|
3465
3522
|
const SliderRoot = props => {
|
|
3466
|
-
const [useSliderProps, localProps] = createSplitProps()(props, ['aria-label', 'aria-labelledby', 'disabled', 'form', 'getAriaValueText', 'id', 'ids', 'invalid', 'max', 'min', 'minStepsBetweenThumbs', 'name', 'onFocusChange', 'onValueChange', 'onValueChangeEnd', 'orientation', 'origin', 'readOnly', 'step', 'thumbAlignment', 'thumbAlignment', 'thumbSize', 'value']);
|
|
3523
|
+
const [useSliderProps, localProps] = createSplitProps()(props, ['aria-label', 'aria-labelledby', 'defaultValue', 'disabled', 'form', 'getAriaValueText', 'id', 'ids', 'invalid', 'max', 'min', 'minStepsBetweenThumbs', 'name', 'onFocusChange', 'onValueChange', 'onValueChangeEnd', 'orientation', 'origin', 'readOnly', 'step', 'thumbAlignment', 'thumbAlignment', 'thumbSize', 'value']);
|
|
3467
3524
|
const api = useSlider(useSliderProps);
|
|
3468
3525
|
const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
|
|
3469
3526
|
return web.createComponent(SliderProvider, {
|
|
@@ -3535,19 +3592,22 @@ const SplitterResizeTrigger = props => {
|
|
|
3535
3592
|
const useSplitter = props => {
|
|
3536
3593
|
const locale = useLocaleContext();
|
|
3537
3594
|
const environment = useEnvironmentContext();
|
|
3538
|
-
const
|
|
3539
|
-
|
|
3595
|
+
const id = solidJs.createUniqueId();
|
|
3596
|
+
const context = solidJs.createMemo(() => ({
|
|
3597
|
+
id,
|
|
3540
3598
|
dir: locale().dir,
|
|
3541
|
-
getRootNode: environment().getRootNode
|
|
3542
|
-
|
|
3543
|
-
|
|
3599
|
+
getRootNode: environment().getRootNode,
|
|
3600
|
+
size: props.defaultSize,
|
|
3601
|
+
...props
|
|
3602
|
+
}));
|
|
3603
|
+
const [state, send] = solid.useMachine(splitter__namespace.machine(context()), {
|
|
3544
3604
|
context
|
|
3545
3605
|
});
|
|
3546
3606
|
return solidJs.createMemo(() => splitter__namespace.connect(state, send, solid.normalizeProps));
|
|
3547
3607
|
};
|
|
3548
3608
|
|
|
3549
3609
|
const SplitterRoot = props => {
|
|
3550
|
-
const [useSplitterProps, localProps] = createSplitProps()(props, ['id', 'ids', 'onSizeChange', 'onSizeChangeEnd', 'orientation', 'size']);
|
|
3610
|
+
const [useSplitterProps, localProps] = createSplitProps()(props, ['defaultSize', 'id', 'ids', 'onSizeChange', 'onSizeChangeEnd', 'orientation', 'size']);
|
|
3551
3611
|
const api = useSplitter(useSplitterProps);
|
|
3552
3612
|
const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
|
|
3553
3613
|
return web.createComponent(SplitterProvider, {
|
|
@@ -3594,19 +3654,22 @@ const SwitchLabel = props => {
|
|
|
3594
3654
|
const useSwitch = props => {
|
|
3595
3655
|
const locale = useLocaleContext();
|
|
3596
3656
|
const environment = useEnvironmentContext();
|
|
3597
|
-
const
|
|
3598
|
-
|
|
3657
|
+
const id = solidJs.createUniqueId();
|
|
3658
|
+
const context = solidJs.createMemo(() => ({
|
|
3659
|
+
id,
|
|
3599
3660
|
dir: locale().dir,
|
|
3600
|
-
getRootNode: environment().getRootNode
|
|
3601
|
-
|
|
3602
|
-
|
|
3661
|
+
getRootNode: environment().getRootNode,
|
|
3662
|
+
checked: props.defaultChecked,
|
|
3663
|
+
...props
|
|
3664
|
+
}));
|
|
3665
|
+
const [state, send] = solid.useMachine(zagSwitch__namespace.machine(context()), {
|
|
3603
3666
|
context
|
|
3604
3667
|
});
|
|
3605
3668
|
return solidJs.createMemo(() => zagSwitch__namespace.connect(state, send, solid.normalizeProps));
|
|
3606
3669
|
};
|
|
3607
3670
|
|
|
3608
3671
|
const SwitchRoot = props => {
|
|
3609
|
-
const [switchProps, localProps] = createSplitProps()(props, ['checked', 'disabled', 'form', 'id', 'ids', 'invalid', 'label', 'name', 'onCheckedChange', 'readOnly', 'required', 'value']);
|
|
3672
|
+
const [switchProps, localProps] = createSplitProps()(props, ['checked', 'defaultChecked', 'disabled', 'form', 'id', 'ids', 'invalid', 'label', 'name', 'onCheckedChange', 'readOnly', 'required', 'value']);
|
|
3610
3673
|
const api = useSwitch(switchProps);
|
|
3611
3674
|
const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
|
|
3612
3675
|
return web.createComponent(SwitchProvider, {
|
|
@@ -3685,12 +3748,15 @@ const TabsContext = props => props.children(useTabsContext());
|
|
|
3685
3748
|
const useTabs = props => {
|
|
3686
3749
|
const locale = useLocaleContext();
|
|
3687
3750
|
const environment = useEnvironmentContext();
|
|
3688
|
-
const
|
|
3689
|
-
|
|
3751
|
+
const id = solidJs.createUniqueId();
|
|
3752
|
+
const context = solidJs.createMemo(() => ({
|
|
3753
|
+
id,
|
|
3690
3754
|
dir: locale().dir,
|
|
3691
|
-
getRootNode: environment().getRootNode
|
|
3692
|
-
|
|
3693
|
-
|
|
3755
|
+
getRootNode: environment().getRootNode,
|
|
3756
|
+
value: props.defaultValue,
|
|
3757
|
+
...props
|
|
3758
|
+
}));
|
|
3759
|
+
const [state, send] = solid.useMachine(tabs__namespace.machine(context()), {
|
|
3694
3760
|
context
|
|
3695
3761
|
});
|
|
3696
3762
|
return solidJs.createMemo(() => tabs__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -3698,7 +3764,7 @@ const useTabs = props => {
|
|
|
3698
3764
|
|
|
3699
3765
|
const TabsRoot = props => {
|
|
3700
3766
|
const [renderStrategyProps, tabsProps] = splitRenderStrategyProps(props);
|
|
3701
|
-
const [useTabsProps, restProps] = createSplitProps()(tabsProps, ['activationMode', 'id', 'ids', 'loopFocus', 'onFocusChange', 'onValueChange', 'orientation', 'translations', 'value']);
|
|
3767
|
+
const [useTabsProps, restProps] = createSplitProps()(tabsProps, ['activationMode', 'composite', 'defaultValue', 'id', 'ids', 'loopFocus', 'onFocusChange', 'onValueChange', 'orientation', 'translations', 'value']);
|
|
3702
3768
|
const api = useTabs(useTabsProps);
|
|
3703
3769
|
const mergedProps = solid.mergeProps(() => api().rootProps, restProps);
|
|
3704
3770
|
return web.createComponent(TabsProvider, {
|
|
@@ -3822,19 +3888,22 @@ const TagsInputLabel = props => {
|
|
|
3822
3888
|
const useTagsInput = props => {
|
|
3823
3889
|
const locale = useLocaleContext();
|
|
3824
3890
|
const environment = useEnvironmentContext();
|
|
3825
|
-
const
|
|
3826
|
-
|
|
3891
|
+
const id = solidJs.createUniqueId();
|
|
3892
|
+
const context = solidJs.createMemo(() => ({
|
|
3893
|
+
id,
|
|
3827
3894
|
dir: locale().dir,
|
|
3828
|
-
getRootNode: environment().getRootNode
|
|
3829
|
-
|
|
3830
|
-
|
|
3895
|
+
getRootNode: environment().getRootNode,
|
|
3896
|
+
value: props.defaultValue,
|
|
3897
|
+
...props
|
|
3898
|
+
}));
|
|
3899
|
+
const [state, send] = solid.useMachine(tagsInput__namespace.machine(context()), {
|
|
3831
3900
|
context
|
|
3832
3901
|
});
|
|
3833
3902
|
return solidJs.createMemo(() => tagsInput__namespace.connect(state, send, solid.normalizeProps));
|
|
3834
3903
|
};
|
|
3835
3904
|
|
|
3836
3905
|
const TagsInputRoot = props => {
|
|
3837
|
-
const [useTagsInputProps, localProps] = createSplitProps()(props, ['addOnPaste', 'allowOverflow', 'autoFocus', 'blurBehavior', 'delimiter', 'disabled', 'editable', 'form', 'id', 'ids', 'inputValue', 'invalid', 'max', 'maxLength', 'name', 'onFocusOutside', 'onHighlightChange', 'onInputValueChange', 'onInteractOutside', 'onPointerDownOutside', 'onValueChange', 'onValueInvalid', 'readOnly', 'translations', 'validate', 'value']);
|
|
3906
|
+
const [useTagsInputProps, localProps] = createSplitProps()(props, ['addOnPaste', 'allowOverflow', 'autoFocus', 'blurBehavior', 'delimiter', 'defaultValue', 'disabled', 'editable', 'form', 'id', 'ids', 'inputValue', 'invalid', 'max', 'maxLength', 'name', 'onFocusOutside', 'onHighlightChange', 'onInputValueChange', 'onInteractOutside', 'onPointerDownOutside', 'onValueChange', 'onValueInvalid', 'readOnly', 'translations', 'validate', 'value']);
|
|
3838
3907
|
const api = useTagsInput(useTagsInputProps);
|
|
3839
3908
|
const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
|
|
3840
3909
|
return web.createComponent(TagsInputProvider, {
|
|
@@ -3982,19 +4051,22 @@ const ToggleGroupItem = props => {
|
|
|
3982
4051
|
const useToggleGroup = props => {
|
|
3983
4052
|
const locale = useLocaleContext();
|
|
3984
4053
|
const environment = useEnvironmentContext();
|
|
3985
|
-
const
|
|
3986
|
-
|
|
4054
|
+
const id = solidJs.createUniqueId();
|
|
4055
|
+
const context = solidJs.createMemo(() => ({
|
|
4056
|
+
id,
|
|
3987
4057
|
dir: locale().dir,
|
|
3988
|
-
getRootNode: environment().getRootNode
|
|
3989
|
-
|
|
3990
|
-
|
|
4058
|
+
getRootNode: environment().getRootNode,
|
|
4059
|
+
value: props.defaultValue,
|
|
4060
|
+
...props
|
|
4061
|
+
}));
|
|
4062
|
+
const [state, send] = solid.useMachine(toggleGroup__namespace.machine(context()), {
|
|
3991
4063
|
context
|
|
3992
4064
|
});
|
|
3993
4065
|
return solidJs.createMemo(() => toggleGroup__namespace.connect(state, send, solid.normalizeProps));
|
|
3994
4066
|
};
|
|
3995
4067
|
|
|
3996
4068
|
const ToggleGroupRoot = props => {
|
|
3997
|
-
const [useToggleGroupProps, restProps] = createSplitProps()(props, ['disabled', 'id', 'ids', 'loopFocus', 'multiple', 'onValueChange', 'orientation', 'rovingFocus', 'value']);
|
|
4069
|
+
const [useToggleGroupProps, restProps] = createSplitProps()(props, ['defaultValue', 'disabled', 'id', 'ids', 'loopFocus', 'multiple', 'onValueChange', 'orientation', 'rovingFocus', 'value']);
|
|
3998
4070
|
const api = useToggleGroup(useToggleGroupProps);
|
|
3999
4071
|
const mergedProps = solid.mergeProps(() => api().rootProps, restProps);
|
|
4000
4072
|
return web.createComponent(ToggleGroupProvider, {
|
|
@@ -4062,13 +4134,16 @@ const TooltipPositioner = props => {
|
|
|
4062
4134
|
const useTooltip = props => {
|
|
4063
4135
|
const locale = useLocaleContext();
|
|
4064
4136
|
const environment = useEnvironmentContext();
|
|
4065
|
-
const
|
|
4066
|
-
|
|
4137
|
+
const id = solidJs.createUniqueId();
|
|
4138
|
+
const context = solidJs.createMemo(() => ({
|
|
4139
|
+
id,
|
|
4067
4140
|
dir: locale().dir,
|
|
4068
4141
|
getRootNode: environment().getRootNode,
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4142
|
+
open: props.defaultOpen,
|
|
4143
|
+
'open.controlled': props.open !== undefined,
|
|
4144
|
+
...props
|
|
4145
|
+
}));
|
|
4146
|
+
const [state, send] = solid.useMachine(tooltip__namespace.machine(context()), {
|
|
4072
4147
|
context
|
|
4073
4148
|
});
|
|
4074
4149
|
return solidJs.createMemo(() => tooltip__namespace.connect(state, send, solid.normalizeProps));
|
|
@@ -4076,7 +4151,7 @@ const useTooltip = props => {
|
|
|
4076
4151
|
|
|
4077
4152
|
const TooltipRoot = props => {
|
|
4078
4153
|
const [presenceProps, tooltipProps] = splitPresenceProps(props);
|
|
4079
|
-
const [useTooltipProps, localProps] = createSplitProps()(tooltipProps, ['aria-label', 'closeDelay', '
|
|
4154
|
+
const [useTooltipProps, localProps] = createSplitProps()(tooltipProps, ['aria-label', 'closeDelay', 'closeOnEscape', 'closeOnPointerDown', 'defaultOpen', 'disabled', 'id', 'ids', 'interactive', 'onOpenChange', 'open', 'openDelay', 'positioning']);
|
|
4080
4155
|
const api = useTooltip(useTooltipProps);
|
|
4081
4156
|
const apiPresence = usePresence(solid.mergeProps(presenceProps, () => ({
|
|
4082
4157
|
present: api().open
|
|
@@ -4241,19 +4316,23 @@ const TreeViewLabel = props => {
|
|
|
4241
4316
|
const useTreeView = props => {
|
|
4242
4317
|
const locale = useLocaleContext();
|
|
4243
4318
|
const environment = useEnvironmentContext();
|
|
4244
|
-
const
|
|
4245
|
-
|
|
4319
|
+
const id = solidJs.createUniqueId();
|
|
4320
|
+
const context = solidJs.createMemo(() => ({
|
|
4321
|
+
id,
|
|
4246
4322
|
dir: locale().dir,
|
|
4247
|
-
getRootNode: environment().getRootNode
|
|
4248
|
-
|
|
4249
|
-
|
|
4323
|
+
getRootNode: environment().getRootNode,
|
|
4324
|
+
selectedValue: props.defaultSelectedValue,
|
|
4325
|
+
expandedValue: props.defaultExpandedValue,
|
|
4326
|
+
...props
|
|
4327
|
+
}));
|
|
4328
|
+
const [state, send] = solid.useMachine(treeView__namespace.machine(context()), {
|
|
4250
4329
|
context
|
|
4251
4330
|
});
|
|
4252
4331
|
return solidJs.createMemo(() => treeView__namespace.connect(state, send, solid.normalizeProps));
|
|
4253
4332
|
};
|
|
4254
4333
|
|
|
4255
4334
|
const TreeViewRoot = props => {
|
|
4256
|
-
const [useTreeViewProps, localProps] = createSplitProps()(props, ['expandedValue', 'focusedValue', 'id', 'ids', 'onExpandedChange', 'onFocusChange', 'onSelectionChange', '
|
|
4335
|
+
const [useTreeViewProps, localProps] = createSplitProps()(props, ['defaultExpandedValue', 'defaultSelectedValue', 'expandedValue', 'expandOnClick', 'focusedValue', 'id', 'ids', 'onExpandedChange', 'onFocusChange', 'onSelectionChange', 'selectedValue', 'selectionMode', 'typeahead']);
|
|
4257
4336
|
const api = useTreeView(useTreeViewProps);
|
|
4258
4337
|
const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
|
|
4259
4338
|
return web.createComponent(TreeViewProvider, {
|