@ark-ui/solid 3.0.0-4 → 3.0.0-6

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.
Files changed (110) hide show
  1. package/dist/cjs/index.js +304 -235
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/esm/index.js +306 -237
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/source/components/accordion/accordion-item-content.jsx +7 -2
  6. package/dist/source/components/accordion/accordion-root.jsx +1 -0
  7. package/dist/source/components/accordion/use-accordion.js +12 -3
  8. package/dist/source/components/avatar/use-avatar.js +9 -3
  9. package/dist/source/components/carousel/carousel-root.jsx +1 -0
  10. package/dist/source/components/carousel/use-carousel.js +10 -3
  11. package/dist/source/components/checkbox/checkbox-root.jsx +1 -0
  12. package/dist/source/components/checkbox/use-checkbox.js +10 -3
  13. package/dist/source/components/clipboard/clipboard-indicator.jsx +0 -1
  14. package/dist/source/components/clipboard/use-clipboard.js +8 -3
  15. package/dist/source/components/collapsible/collapsible-root.jsx +1 -0
  16. package/dist/source/components/collapsible/use-collapsible.js +8 -5
  17. package/dist/source/components/color-picker/color-picker-root.jsx +2 -0
  18. package/dist/source/components/color-picker/use-color-picker.js +14 -8
  19. package/dist/source/components/combobox/combobox-root.jsx +4 -2
  20. package/dist/source/components/combobox/combobox-trigger.jsx +3 -1
  21. package/dist/source/components/combobox/use-combobox.js +12 -10
  22. package/dist/source/components/date-picker/date-picker-root.jsx +2 -0
  23. package/dist/source/components/date-picker/use-date-picker.js +17 -11
  24. package/dist/source/components/dialog/dialog-root.jsx +2 -0
  25. package/dist/source/components/dialog/use-dialog.js +8 -5
  26. package/dist/source/components/editable/editable-root.jsx +1 -0
  27. package/dist/source/components/editable/use-editable.js +10 -3
  28. package/dist/source/components/factory.jsx +8 -11
  29. package/dist/source/components/file-upload/use-file-upload.js +9 -3
  30. package/dist/source/components/hover-card/hover-card-root.jsx +1 -0
  31. package/dist/source/components/hover-card/use-hover-card.js +8 -5
  32. package/dist/source/components/menu/menu-root.jsx +2 -0
  33. package/dist/source/components/menu/use-menu.js +8 -5
  34. package/dist/source/components/number-input/number-input-root.jsx +1 -0
  35. package/dist/source/components/number-input/use-number-input.js +10 -3
  36. package/dist/source/components/pagination/pagination-root.jsx +1 -0
  37. package/dist/source/components/pagination/use-pagination.js +10 -3
  38. package/dist/source/components/pin-input/pin-input-root.jsx +1 -0
  39. package/dist/source/components/pin-input/use-pin-input.js +10 -3
  40. package/dist/source/components/popover/popover-root.jsx +3 -1
  41. package/dist/source/components/popover/use-popover.js +8 -5
  42. package/dist/source/components/presence/index.js +4 -5
  43. package/dist/source/components/progress/use-progress.js +9 -3
  44. package/dist/source/components/radio-group/radio-group-root.jsx +1 -0
  45. package/dist/source/components/radio-group/use-radio-group.js +10 -3
  46. package/dist/source/components/rating-group/rating-group-root.jsx +1 -0
  47. package/dist/source/components/rating-group/use-rating-group.js +10 -3
  48. package/dist/source/components/segment-group/segment-group-root.jsx +1 -0
  49. package/dist/source/components/segment-group/use-segment-group.js +12 -5
  50. package/dist/source/components/select/select-item.jsx +1 -1
  51. package/dist/source/components/select/select-root.jsx +3 -0
  52. package/dist/source/components/select/use-select.js +12 -10
  53. package/dist/source/components/slider/slider-root.jsx +1 -0
  54. package/dist/source/components/slider/use-slider.js +10 -3
  55. package/dist/source/components/splitter/splitter-root.jsx +1 -0
  56. package/dist/source/components/splitter/use-splitter.js +10 -3
  57. package/dist/source/components/switch/switch-root.jsx +1 -0
  58. package/dist/source/components/switch/use-switch.js +10 -3
  59. package/dist/source/components/tabs/tabs-root.jsx +2 -0
  60. package/dist/source/components/tabs/use-tabs.js +10 -3
  61. package/dist/source/components/tags-input/tags-input-root.jsx +1 -0
  62. package/dist/source/components/tags-input/use-tags-input.js +10 -3
  63. package/dist/source/components/toggle-group/toggle-group-root.jsx +1 -0
  64. package/dist/source/components/toggle-group/use-toggle-group.js +10 -3
  65. package/dist/source/components/tooltip/tooltip-root.jsx +2 -1
  66. package/dist/source/components/tooltip/use-tooltip.js +8 -5
  67. package/dist/source/components/tree-view/tree-view-root.jsx +3 -1
  68. package/dist/source/components/tree-view/use-tree-view.js +11 -3
  69. package/dist/source/providers/environment/{environment.jsx → environment-provider.jsx} +4 -4
  70. package/dist/source/providers/environment/index.js +1 -1
  71. package/dist/source/providers/environment/use-environment-context.js +1 -1
  72. package/dist/source/providers/locale/locale-provider.jsx +5 -19
  73. package/dist/types/components/accordion/accordion-item.d.ts +1 -2
  74. package/dist/types/components/accordion/use-accordion.d.ts +5 -0
  75. package/dist/types/components/carousel/use-carousel.d.ts +5 -0
  76. package/dist/types/components/checkbox/checkbox-hidden-input.d.ts +1 -1
  77. package/dist/types/components/checkbox/use-checkbox.d.ts +5 -0
  78. package/dist/types/components/collapsible/use-collapsible.d.ts +5 -0
  79. package/dist/types/components/color-picker/use-color-picker.d.ts +10 -0
  80. package/dist/types/components/combobox/combobox-trigger.d.ts +3 -1
  81. package/dist/types/components/combobox/use-combobox.d.ts +10 -0
  82. package/dist/types/components/date-picker/use-date-picker.d.ts +14 -4
  83. package/dist/types/components/dialog/use-dialog.d.ts +5 -0
  84. package/dist/types/components/editable/use-editable.d.ts +5 -0
  85. package/dist/types/components/factory.d.ts +2 -3
  86. package/dist/types/components/hover-card/use-hover-card.d.ts +5 -0
  87. package/dist/types/components/menu/use-menu.d.ts +5 -0
  88. package/dist/types/components/number-input/use-number-input.d.ts +5 -0
  89. package/dist/types/components/pagination/use-pagination.d.ts +5 -0
  90. package/dist/types/components/pin-input/use-pin-input.d.ts +5 -0
  91. package/dist/types/components/popover/use-popover.d.ts +5 -0
  92. package/dist/types/components/presence/index.d.ts +4 -6
  93. package/dist/types/components/radio-group/use-radio-group.d.ts +5 -0
  94. package/dist/types/components/rating-group/use-rating-group.d.ts +5 -0
  95. package/dist/types/components/segment-group/use-segment-group.d.ts +8 -3
  96. package/dist/types/components/select/use-select.d.ts +10 -0
  97. package/dist/types/components/slider/use-slider.d.ts +5 -0
  98. package/dist/types/components/splitter/use-splitter.d.ts +5 -0
  99. package/dist/types/components/switch/use-switch.d.ts +5 -0
  100. package/dist/types/components/tabs/use-tabs.d.ts +5 -0
  101. package/dist/types/components/tags-input/use-tags-input.d.ts +5 -0
  102. package/dist/types/components/toggle-group/use-toggle-group.d.ts +5 -0
  103. package/dist/types/components/tooltip/use-tooltip.d.ts +5 -0
  104. package/dist/types/components/tree-view/use-tree-view.d.ts +10 -0
  105. package/dist/types/providers/environment/{environment.d.ts → environment-provider.d.ts} +2 -2
  106. package/dist/types/providers/environment/index.d.ts +1 -1
  107. package/dist/types/providers/environment/use-environment-context.d.ts +4 -1
  108. package/dist/types/providers/locale/locale-provider.d.ts +3 -4
  109. package/package.json +48 -48
  110. /package/dist/source/providers/locale/{use-locale-context.jsx → use-locale-context.js} +0 -0
package/dist/cjs/index.js CHANGED
@@ -10,8 +10,8 @@ var anatomy = require('@ark-ui/anatomy');
10
10
  var carousel$1 = require('@zag-js/carousel');
11
11
  var checkbox$1 = require('@zag-js/checkbox');
12
12
  var clipboard$1 = require('@zag-js/clipboard');
13
- var presence = require('@zag-js/presence');
14
13
  var colorPicker$1 = require('@zag-js/color-picker');
14
+ var presence = require('@zag-js/presence');
15
15
  var combobox$1 = require('@zag-js/combobox');
16
16
  var datePicker$1 = require('@zag-js/date-picker');
17
17
  var dialog$1 = require('@zag-js/dialog');
@@ -62,8 +62,8 @@ var avatar__namespace = /*#__PURE__*/_interopNamespaceDefault(avatar$1);
62
62
  var carousel__namespace = /*#__PURE__*/_interopNamespaceDefault(carousel$1);
63
63
  var checkbox__namespace = /*#__PURE__*/_interopNamespaceDefault(checkbox$1);
64
64
  var clipboard__namespace = /*#__PURE__*/_interopNamespaceDefault(clipboard$1);
65
- var presence__namespace = /*#__PURE__*/_interopNamespaceDefault(presence);
66
65
  var colorPicker__namespace = /*#__PURE__*/_interopNamespaceDefault(colorPicker$1);
66
+ var presence__namespace = /*#__PURE__*/_interopNamespaceDefault(presence);
67
67
  var combobox__namespace = /*#__PURE__*/_interopNamespaceDefault(combobox$1);
68
68
  var datePicker__namespace = /*#__PURE__*/_interopNamespaceDefault(datePicker$1);
69
69
  var dialog__namespace = /*#__PURE__*/_interopNamespaceDefault(dialog$1);
@@ -131,27 +131,22 @@ const splitRenderStrategyProps = props => createSplitProps()(props, ['lazyMount'
131
131
 
132
132
  const withAsProp = Component => {
133
133
  const ArkComponent = props => {
134
- const [localProps, otherProps] = solidJs.splitProps(props, ['asChild']);
134
+ const [localProps, parentProps] = solidJs.splitProps(props, ['asChild']);
135
135
  if (localProps.asChild) {
136
- if (typeof otherProps.children !== 'function') {
137
- throw new Error('Children must be a function');
138
- }
139
-
140
- // @ts-expect-error TODO improve
141
- const fn = userProps => {
142
- const [, restProps] = solidJs.splitProps(otherProps, ['children', 'ref']);
136
+ // @ts-expect-error
137
+ const propsFn = userProps => {
138
+ const [, restProps] = solidJs.splitProps(parentProps, ['ref']);
143
139
  return {
144
- ref: otherProps.ref,
140
+ ref: parentProps.ref,
145
141
  ...solid.mergeProps(restProps, userProps)
146
142
  };
147
143
  };
148
- return web.memo(() => otherProps.children(fn));
144
+ return localProps.asChild(propsFn);
149
145
  }
150
-
151
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
146
+ // @ts-expect-error
152
147
  return web.createComponent(web.Dynamic, web.mergeProps({
153
148
  component: Component
154
- }, otherProps));
149
+ }, parentProps));
155
150
  };
156
151
  return ArkComponent;
157
152
  };
@@ -195,7 +190,7 @@ const CollapsibleContext = props => props.children(useCollapsibleContext());
195
190
  const isFunction = value => typeof value === 'function';
196
191
  const runIfFn = (valueOrFn, ...args) => isFunction(valueOrFn) ? valueOrFn(...args) : valueOrFn;
197
192
 
198
- const [EnvironmentProvider, useEnvironmentContext] = createContext({
193
+ const [EnvironmentContextProvider, useEnvironmentContext] = createContext({
199
194
  hookName: 'useEnvironmentContext',
200
195
  providerName: '<EnvironmentProvider />',
201
196
  strict: false,
@@ -207,7 +202,7 @@ const [EnvironmentProvider, useEnvironmentContext] = createContext({
207
202
  });
208
203
 
209
204
  var _tmpl$$6 = /*#__PURE__*/web.template(`<span hidden>`);
210
- const Environment = props => {
205
+ const EnvironmentProvider = props => {
211
206
  const [spanRef, setSpanRef] = solidJs.createSignal();
212
207
  const getRootNode = () => runIfFn(props.value) ?? spanRef()?.ownerDocument ?? document;
213
208
  const environment = solidJs.createMemo(() => ({
@@ -215,7 +210,7 @@ const Environment = props => {
215
210
  getDocument: () => domQuery.getDocument(getRootNode()),
216
211
  getWindow: () => domQuery.getWindow(getRootNode())
217
212
  }));
218
- return web.createComponent(EnvironmentProvider, {
213
+ return web.createComponent(EnvironmentContextProvider, {
219
214
  value: environment,
220
215
  get children() {
221
216
  return [web.memo(() => props.children), web.createComponent(solidJs.Show, {
@@ -243,27 +238,14 @@ const [LocaleContextProvider, useLocaleContext] = createContext({
243
238
  });
244
239
 
245
240
  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
241
  const context = solidJs.createMemo(() => ({
260
- locale: locale(),
261
- dir: i18nUtils.isRTL(locale()) ? 'rtl' : 'ltr'
242
+ locale: props.locale,
243
+ dir: i18nUtils.isRTL(props.locale) ? 'rtl' : 'ltr'
262
244
  }));
263
245
  return web.createComponent(LocaleContextProvider, {
264
246
  value: context,
265
247
  get children() {
266
- return restProps.children;
248
+ return props.children;
267
249
  }
268
250
  });
269
251
  };
@@ -272,13 +254,16 @@ const useCollapsible = props => {
272
254
  const locale = useLocaleContext();
273
255
  const environment = useEnvironmentContext();
274
256
  const [renderStrategyProps, collapsibleProps] = splitRenderStrategyProps(props);
275
- const context = solid.mergeProps({
276
- id: solidJs.createUniqueId(),
257
+ const id = solidJs.createUniqueId();
258
+ const context = solidJs.createMemo(() => ({
259
+ id,
277
260
  dir: locale().dir,
278
261
  getRootNode: environment().getRootNode,
279
- 'open.controlled': props.open !== undefined
280
- }, collapsibleProps);
281
- const [state, send] = solid.useMachine(collapsible__namespace.machine(context), {
262
+ open: props.defaultOpen,
263
+ 'open.controlled': props.open !== undefined,
264
+ ...collapsibleProps
265
+ }));
266
+ const [state, send] = solid.useMachine(collapsible__namespace.machine(context()), {
282
267
  context
283
268
  });
284
269
  const [wasVisible, setWasVisible] = solidJs.createSignal(false);
@@ -294,7 +279,7 @@ const useCollapsible = props => {
294
279
  };
295
280
 
296
281
  const CollapsibleRoot = props => {
297
- const [useCollapsibleProps, localProps] = createSplitProps()(props, ['disabled', 'id', 'ids', 'lazyMount', 'onExitComplete', 'onOpenChange', 'open', 'unmountOnExit']);
282
+ const [useCollapsibleProps, localProps] = createSplitProps()(props, ['defaultOpen', 'disabled', 'id', 'ids', 'lazyMount', 'onExitComplete', 'onOpenChange', 'open', 'unmountOnExit']);
298
283
  const api = useCollapsible(useCollapsibleProps);
299
284
  const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
300
285
  return web.createComponent(CollapsibleProvider, {
@@ -358,12 +343,13 @@ const AccordionItem = props => {
358
343
  });
359
344
  };
360
345
 
346
+ const splitVisibilityProps = createSplitProps();
361
347
  const AccordionItemContent = props => {
362
348
  const accordion = useAccordionContext();
363
349
  const itemProps = useAccordionItemPropsContext();
364
350
  const itemContentProps = solidJs.createMemo(() => {
365
- const ownProps = accordion().getItemContentProps(itemProps);
366
- ownProps.hidden = undefined;
351
+ const contentProps = accordion().getItemContentProps(itemProps);
352
+ const [, ownProps] = splitVisibilityProps(contentProps, ['hidden', 'data-state']);
367
353
  return ownProps;
368
354
  });
369
355
  const mergedProps = solid.mergeProps(itemContentProps, props);
@@ -389,14 +375,17 @@ const AccordionItemTrigger = props => {
389
375
  };
390
376
 
391
377
  const useAccordion = props => {
378
+ const id = solidJs.createUniqueId();
392
379
  const locale = useLocaleContext();
393
380
  const environment = useEnvironmentContext();
394
- const context = solidJs.mergeProps({
395
- id: solidJs.createUniqueId(),
381
+ const context = solidJs.createMemo(() => ({
382
+ id,
396
383
  dir: locale().dir,
397
- getRootNode: environment().getRootNode
398
- }, props);
399
- const [state, send] = solid.useMachine(accordion__namespace.machine(context), {
384
+ value: props.defaultValue,
385
+ getRootNode: environment().getRootNode,
386
+ ...props
387
+ }));
388
+ const [state, send] = solid.useMachine(accordion__namespace.machine(context()), {
400
389
  context
401
390
  });
402
391
  return solidJs.createMemo(() => accordion__namespace.connect(state, send, solid.normalizeProps));
@@ -404,7 +393,7 @@ const useAccordion = props => {
404
393
 
405
394
  const AccordionRoot = props => {
406
395
  const [renderStrategyProps, accordionProps] = splitRenderStrategyProps(props);
407
- const [useAccordionProps, localProps] = createSplitProps()(accordionProps, ['collapsible', 'disabled', 'id', 'ids', 'multiple', 'onFocusChange', 'onValueChange', 'orientation', 'value']);
396
+ const [useAccordionProps, localProps] = createSplitProps()(accordionProps, ['collapsible', 'defaultValue', 'disabled', 'id', 'ids', 'multiple', 'onFocusChange', 'onValueChange', 'orientation', 'value']);
408
397
  const api = useAccordion(useAccordionProps);
409
398
  const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
410
399
  return web.createComponent(AccordionProvider, {
@@ -453,12 +442,14 @@ const AvatarImage = props => {
453
442
  const useAvatar = props => {
454
443
  const locale = useLocaleContext();
455
444
  const environment = useEnvironmentContext();
456
- const context = solid.mergeProps({
457
- id: solidJs.createUniqueId(),
445
+ const id = solidJs.createUniqueId();
446
+ const context = solidJs.createMemo(() => ({
447
+ id,
458
448
  dir: locale().dir,
459
- getRootNode: environment().getRootNode
460
- }, props);
461
- const [state, send] = solid.useMachine(avatar__namespace.machine(context), {
449
+ getRootNode: environment().getRootNode,
450
+ ...props
451
+ }));
452
+ const [state, send] = solid.useMachine(avatar__namespace.machine(context()), {
462
453
  context
463
454
  });
464
455
  return solidJs.createMemo(() => avatar__namespace.connect(state, send, solid.normalizeProps));
@@ -537,19 +528,22 @@ const CarouselPrevTrigger = props => {
537
528
  const useCarousel = props => {
538
529
  const locale = useLocaleContext();
539
530
  const environment = useEnvironmentContext();
540
- const context = solid.mergeProps({
541
- id: solidJs.createUniqueId(),
531
+ const id = solidJs.createUniqueId();
532
+ const context = solidJs.createMemo(() => ({
533
+ id,
542
534
  dir: locale().dir,
543
- getRootNode: environment().getRootNode
544
- }, props);
545
- const [state, send] = solid.useMachine(carousel__namespace.machine(context), {
535
+ getRootNode: environment().getRootNode,
536
+ index: props.defaultIndex,
537
+ ...props
538
+ }));
539
+ const [state, send] = solid.useMachine(carousel__namespace.machine(context()), {
546
540
  context
547
541
  });
548
542
  return solidJs.createMemo(() => carousel__namespace.connect(state, send, solid.normalizeProps));
549
543
  };
550
544
 
551
545
  const CarouselRoot = props => {
552
- const [useCarouselProps, localProps] = createSplitProps()(props, ['align', 'id', 'ids', 'index', 'loop', 'onIndexChange', 'orientation', 'slidesPerView', 'spacing']);
546
+ const [useCarouselProps, localProps] = createSplitProps()(props, ['align', 'defaultIndex', 'id', 'ids', 'index', 'loop', 'onIndexChange', 'orientation', 'slidesPerView', 'spacing']);
553
547
  const api = useCarousel(useCarouselProps);
554
548
  const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
555
549
  return web.createComponent(CarouselProvider, {
@@ -619,19 +613,22 @@ const CheckboxLabel = props => {
619
613
  const useCheckbox = props => {
620
614
  const locale = useLocaleContext();
621
615
  const environment = useEnvironmentContext();
622
- const context = solid.mergeProps({
623
- id: solidJs.createUniqueId(),
616
+ const id = solidJs.createUniqueId();
617
+ const context = solidJs.createMemo(() => ({
618
+ id,
624
619
  dir: locale().dir,
625
- getRootNode: environment().getRootNode
626
- }, props);
627
- const [state, send] = solid.useMachine(checkbox__namespace.machine(context), {
620
+ getRootNode: environment().getRootNode,
621
+ checked: props.defaultChecked,
622
+ ...props
623
+ }));
624
+ const [state, send] = solid.useMachine(checkbox__namespace.machine(context()), {
628
625
  context
629
626
  });
630
627
  return solidJs.createMemo(() => checkbox__namespace.connect(state, send, solid.normalizeProps));
631
628
  };
632
629
 
633
630
  const CheckboxRoot = props => {
634
- const [useCheckboxProps, labelprops] = createSplitProps()(props, ['checked', 'disabled', 'form', 'id', 'ids', 'invalid', 'name', 'onCheckedChange', 'readOnly', 'required', 'value']);
631
+ const [useCheckboxProps, labelprops] = createSplitProps()(props, ['checked', 'defaultChecked', 'disabled', 'form', 'id', 'ids', 'invalid', 'name', 'onCheckedChange', 'readOnly', 'required', 'value']);
635
632
  const checkbox = useCheckbox(useCheckboxProps);
636
633
  const mergedProps = solid.mergeProps(() => checkbox().rootProps, labelprops);
637
634
  return web.createComponent(CheckboxProvider, {
@@ -671,7 +668,6 @@ const ClipboardIndicator = props => {
671
668
  const mergedProps = solid.mergeProps(api().getIndicatorProps({
672
669
  copied: api().copied
673
670
  }), localProps);
674
- // @ts-expect-error TODO fix
675
671
  const getChildren = solidJs.children(() => localProps.children);
676
672
  return web.createComponent(ark.div, web.mergeProps(mergedProps, {
677
673
  get children() {
@@ -704,11 +700,13 @@ const ClipboardLabel = props => {
704
700
 
705
701
  const useClipboard = props => {
706
702
  const environment = useEnvironmentContext();
707
- const context = solid.mergeProps({
708
- id: solidJs.createUniqueId(),
709
- getRootNode: environment().getRootNode
710
- }, props);
711
- const [state, send] = solid.useMachine(clipboard__namespace.machine(context), {
703
+ const id = solidJs.createUniqueId();
704
+ const context = solidJs.createMemo(() => ({
705
+ id,
706
+ getRootNode: environment().getRootNode,
707
+ ...props
708
+ }));
709
+ const [state, send] = solid.useMachine(clipboard__namespace.machine(context()), {
712
710
  context
713
711
  });
714
712
  return solidJs.createMemo(() => clipboard__namespace.connect(state, send, solid.normalizeProps));
@@ -944,17 +942,19 @@ const ColorPickerPositioner = props => {
944
942
  };
945
943
 
946
944
  const useColorPicker = props => {
947
- const [local, rest] = solidJs.splitProps(props, ['value']);
948
945
  const locale = useLocaleContext();
949
946
  const environment = useEnvironmentContext();
950
- const context = solid.mergeProps(() => ({
951
- id: solidJs.createUniqueId(),
947
+ const id = solidJs.createUniqueId();
948
+ const context = solidJs.createMemo(() => ({
949
+ id,
952
950
  dir: locale().dir,
953
951
  getRootNode: environment().getRootNode,
952
+ open: props.defaultOpen,
954
953
  'open.controlled': props.open !== undefined,
955
- value: local.value ? colorPicker__namespace.parse(local.value) : undefined
956
- }), rest);
957
- const [state, send] = solid.useMachine(colorPicker__namespace.machine(context), {
954
+ ...props,
955
+ value: props.value ? colorPicker__namespace.parse(props.value) : props.defaultValue ? colorPicker__namespace.parse(props.defaultValue) : undefined
956
+ }));
957
+ const [state, send] = solid.useMachine(colorPicker__namespace.machine(context()), {
958
958
  context
959
959
  });
960
960
  return solidJs.createMemo(() => colorPicker__namespace.connect(state, send, solid.normalizeProps));
@@ -962,7 +962,7 @@ const useColorPicker = props => {
962
962
 
963
963
  const ColorPickerRoot = props => {
964
964
  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']);
965
+ 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
966
  const api = useColorPicker(useColorPickerProps);
967
967
  const apiPresence = usePresence(solid.mergeProps(presenceProps, () => ({
968
968
  present: api().open
@@ -1223,20 +1223,22 @@ const ComboboxPositioner = props => {
1223
1223
  };
1224
1224
 
1225
1225
  const useCombobox = props => {
1226
- const [collectionOptions, rest] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
1227
- const collection = solidJs.createMemo(() => combobox__namespace.collection(collectionOptions));
1226
+ const [collectionOptions, comboboxProps] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
1227
+ const collection = () => combobox__namespace.collection(collectionOptions);
1228
1228
  const locale = useLocaleContext();
1229
1229
  const environment = useEnvironmentContext();
1230
- const context = solid.mergeProps({
1231
- id: solidJs.createUniqueId(),
1230
+ const id = solidJs.createUniqueId();
1231
+ const context = solidJs.createMemo(() => ({
1232
+ id,
1233
+ collection: collection(),
1232
1234
  dir: locale().dir,
1233
1235
  getRootNode: environment().getRootNode,
1236
+ open: props.defaultOpen,
1237
+ value: props.defaultValue,
1234
1238
  'open.controlled': props.open !== undefined,
1235
- get collection() {
1236
- return collection();
1237
- }
1238
- }, rest);
1239
- const [state, send] = solid.useMachine(combobox__namespace.machine(context), {
1239
+ ...comboboxProps
1240
+ }));
1241
+ const [state, send] = solid.useMachine(combobox__namespace.machine(context()), {
1240
1242
  context
1241
1243
  });
1242
1244
  return solidJs.createMemo(() => combobox__namespace.connect(state, send, solid.normalizeProps));
@@ -1244,7 +1246,7 @@ const useCombobox = props => {
1244
1246
 
1245
1247
  const ComboboxRoot = props => {
1246
1248
  const [presenceProps, comboboxProps] = splitPresenceProps(props);
1247
- const [useComboboxProps, localProps] = createSplitProps()(comboboxProps, ['allowCustomValue', 'autoFocus', 'closeOnSelect', 'disabled', 'dismissable', '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', 'popup', 'positioning', 'readOnly', 'scrollToIndexFn', 'selectionBehavior', 'translations', 'value']);
1249
+ 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']);
1248
1250
  const api = useCombobox(useComboboxProps);
1249
1251
  const apiPresence = usePresence(solid.mergeProps(presenceProps, () => ({
1250
1252
  present: api().open
@@ -1264,8 +1266,9 @@ const ComboboxRoot = props => {
1264
1266
  };
1265
1267
 
1266
1268
  const ComboboxTrigger = props => {
1269
+ const [triggerProps, localProps] = createSplitProps()(props, ['focusable']);
1267
1270
  const combobox = useComboboxContext();
1268
- const mergedProps = solid.mergeProps(() => combobox().triggerProps, props);
1271
+ const mergedProps = solid.mergeProps(() => combobox().getTriggerProps(triggerProps), localProps);
1269
1272
  return web.createComponent(ark.button, mergedProps);
1270
1273
  };
1271
1274
 
@@ -1403,18 +1406,20 @@ const DatePickerRangeText = props => {
1403
1406
  const useDatePicker = props => {
1404
1407
  const locale = useLocaleContext();
1405
1408
  const environment = useEnvironmentContext();
1406
- const [localProps, restProps] = solidJs.splitProps(props, ['value', 'focusedValue', 'min', 'max']);
1407
- const context = solid.mergeProps(() => ({
1408
- id: solidJs.createUniqueId(),
1409
+ const id = solidJs.createUniqueId();
1410
+ const context = solidJs.createMemo(() => ({
1411
+ id,
1409
1412
  dir: locale().dir,
1410
1413
  getRootNode: environment().getRootNode,
1411
1414
  'open.controlled': props.open !== undefined,
1412
- focusedValue: localProps.focusedValue ? datePicker__namespace.parse(localProps.focusedValue) : undefined,
1413
- value: localProps.value ? datePicker__namespace.parse(localProps.value) : undefined,
1414
- max: localProps.max ? datePicker__namespace.parse(localProps.max) : undefined,
1415
- min: localProps.min ? datePicker__namespace.parse(localProps.min) : undefined
1416
- }), restProps);
1417
- const [state, send] = solid.useMachine(datePicker__namespace.machine(context), {
1415
+ open: props.defaultOpen,
1416
+ ...props,
1417
+ focusedValue: props.focusedValue ? datePicker__namespace.parse(props.focusedValue) : undefined,
1418
+ value: props.value ? datePicker__namespace.parse(props.value) : props.defaultValue ? datePicker__namespace.parse(props.defaultValue) : undefined,
1419
+ max: props.max ? datePicker__namespace.parse(props.max) : undefined,
1420
+ min: props.min ? datePicker__namespace.parse(props.min) : undefined
1421
+ }));
1422
+ const [state, send] = solid.useMachine(datePicker__namespace.machine(context()), {
1418
1423
  context
1419
1424
  });
1420
1425
  return solidJs.createMemo(() => datePicker__namespace.connect(state, send, solid.normalizeProps));
@@ -1422,7 +1427,7 @@ const useDatePicker = props => {
1422
1427
 
1423
1428
  const DatePickerRoot = props => {
1424
1429
  const [presenceProps, datePickerProps] = splitPresenceProps(props);
1425
- 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']);
1430
+ 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']);
1426
1431
  const api = useDatePicker(useDatePickerProps);
1427
1432
  const apiPresence = usePresence(solid.mergeProps(presenceProps, () => ({
1428
1433
  present: api().open
@@ -1690,13 +1695,16 @@ const DialogPositioner = props => {
1690
1695
  const useDialog = props => {
1691
1696
  const locale = useLocaleContext();
1692
1697
  const environment = useEnvironmentContext();
1693
- const context = solid.mergeProps({
1694
- id: solidJs.createUniqueId(),
1698
+ const id = solidJs.createUniqueId();
1699
+ const context = solidJs.createMemo(() => ({
1700
+ id,
1695
1701
  dir: locale().dir,
1696
1702
  getRootNode: environment().getRootNode,
1697
- 'open.controlled': props.open !== undefined
1698
- }, props);
1699
- const [state, send] = solid.useMachine(dialog__namespace.machine(context), {
1703
+ open: props.defaultOpen,
1704
+ 'open.controlled': props.open !== undefined,
1705
+ ...props
1706
+ }));
1707
+ const [state, send] = solid.useMachine(dialog__namespace.machine(context()), {
1700
1708
  context
1701
1709
  });
1702
1710
  return solidJs.createMemo(() => dialog__namespace.connect(state, send, solid.normalizeProps));
@@ -1705,7 +1713,7 @@ const useDialog = props => {
1705
1713
  const DialogRoot = props => {
1706
1714
  const [presenceProps, dialogProps] = splitPresenceProps(props);
1707
1715
  const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
1708
- const [useDialogProps, localProps] = createSplitProps()(dialogProps, ['aria-label', 'closeOnEscape', 'closeOnInteractOutside', 'finalFocusEl', 'id', 'ids', 'initialFocusEl', 'modal', 'onEscapeKeyDown', 'onFocusOutside', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'open', 'preventScroll', 'restoreFocus', 'role', 'trapFocus']);
1716
+ 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']);
1709
1717
  const api = useDialog(useDialogProps);
1710
1718
  const apiPresence = usePresence(solid.mergeProps(presenceProps, () => ({
1711
1719
  present: api().open
@@ -1808,19 +1816,22 @@ const EditablePreview = props => {
1808
1816
  const useEditable = props => {
1809
1817
  const locale = useLocaleContext();
1810
1818
  const environment = useEnvironmentContext();
1811
- const context = solid.mergeProps({
1812
- id: solidJs.createUniqueId(),
1819
+ const id = solidJs.createUniqueId();
1820
+ const context = solidJs.createMemo(() => ({
1821
+ id,
1813
1822
  dir: locale().dir,
1814
- getRootNode: environment().getRootNode
1815
- }, props);
1816
- const [state, send] = solid.useMachine(editable__namespace.machine(context), {
1823
+ getRootNode: environment().getRootNode,
1824
+ value: props.defaultValue,
1825
+ ...props
1826
+ }));
1827
+ const [state, send] = solid.useMachine(editable__namespace.machine(context()), {
1817
1828
  context
1818
1829
  });
1819
1830
  return solidJs.createMemo(() => editable__namespace.connect(state, send, solid.normalizeProps));
1820
1831
  };
1821
1832
 
1822
1833
  const EditableRoot = props => {
1823
- 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']);
1834
+ 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']);
1824
1835
  const api = useEditable(useEditableProps);
1825
1836
  const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
1826
1837
  return web.createComponent(EditableProvider, {
@@ -1945,12 +1956,14 @@ const FileUploadLabel = props => {
1945
1956
  const useFileUpload = props => {
1946
1957
  const locale = useLocaleContext();
1947
1958
  const environment = useEnvironmentContext();
1948
- const context = solid.mergeProps({
1949
- id: solidJs.createUniqueId(),
1959
+ const id = solidJs.createUniqueId();
1960
+ const context = solidJs.createMemo(() => ({
1961
+ id,
1950
1962
  dir: locale().dir,
1951
- getRootNode: environment().getRootNode
1952
- }, props);
1953
- const [state, send] = solid.useMachine(fileUpload__namespace.machine(context), {
1963
+ getRootNode: environment().getRootNode,
1964
+ ...props
1965
+ }));
1966
+ const [state, send] = solid.useMachine(fileUpload__namespace.machine(context()), {
1954
1967
  context
1955
1968
  });
1956
1969
  return solidJs.createMemo(() => fileUpload__namespace.connect(state, send, solid.normalizeProps));
@@ -2067,13 +2080,16 @@ const HoverCardPositioner = props => {
2067
2080
  const useHoverCard = props => {
2068
2081
  const locale = useLocaleContext();
2069
2082
  const environment = useEnvironmentContext();
2070
- const context = solid.mergeProps({
2071
- id: solidJs.createUniqueId(),
2083
+ const id = solidJs.createUniqueId();
2084
+ const context = solidJs.createMemo(() => ({
2085
+ id,
2072
2086
  dir: locale().dir,
2073
2087
  getRootNode: environment().getRootNode,
2074
- 'open.controlled': props.open !== undefined
2075
- }, props);
2076
- const [state, send] = solid.useMachine(hoverCard__namespace.machine(context), {
2088
+ open: props.defaultOpen,
2089
+ 'open.controlled': props.open !== undefined,
2090
+ ...props
2091
+ }));
2092
+ const [state, send] = solid.useMachine(hoverCard__namespace.machine(context()), {
2077
2093
  context
2078
2094
  });
2079
2095
  return solidJs.createMemo(() => hoverCard__namespace.connect(state, send, solid.normalizeProps));
@@ -2081,7 +2097,7 @@ const useHoverCard = props => {
2081
2097
 
2082
2098
  const HoverCardRoot = props => {
2083
2099
  const [presenceProps, hoverCardProps] = splitPresenceProps(props);
2084
- const [useHoverCardProps, localProps] = createSplitProps()(hoverCardProps, ['closeDelay', 'id', 'ids', 'onOpenChange', 'open', 'openDelay', 'positioning']);
2100
+ const [useHoverCardProps, localProps] = createSplitProps()(hoverCardProps, ['closeDelay', 'defaultOpen', 'id', 'ids', 'onOpenChange', 'open', 'openDelay', 'positioning']);
2085
2101
  const api = useHoverCard(useHoverCardProps);
2086
2102
  const apiPresence = usePresence(solid.mergeProps(presenceProps, () => ({
2087
2103
  present: api().open
@@ -2309,13 +2325,16 @@ const MenuRadioItemGroup = props => {
2309
2325
  const useMenu = props => {
2310
2326
  const locale = useLocaleContext();
2311
2327
  const environment = useEnvironmentContext();
2312
- const context = solid.mergeProps({
2313
- id: solidJs.createUniqueId(),
2328
+ const id = solidJs.createUniqueId();
2329
+ const context = solidJs.createMemo(() => ({
2330
+ id,
2314
2331
  dir: locale().dir,
2315
2332
  getRootNode: environment().getRootNode,
2316
- 'open.controlled': props.open !== undefined
2317
- }, props);
2318
- const [state, send, machine] = solid.useMachine(menu__namespace.machine(context), {
2333
+ open: props.defaultOpen,
2334
+ 'open.controlled': props.open !== undefined,
2335
+ ...props
2336
+ }));
2337
+ const [state, send, machine] = solid.useMachine(menu__namespace.machine(context()), {
2319
2338
  context
2320
2339
  });
2321
2340
  const api = solidJs.createMemo(() => menu__namespace.connect(state, send, solid.normalizeProps));
@@ -2339,7 +2358,7 @@ const [MenuTriggerItemProvider, useMenuTriggerItemContext] = createContext({
2339
2358
 
2340
2359
  const MenuRoot = props => {
2341
2360
  const [presenceProps, menuProps] = splitPresenceProps(props);
2342
- const [useMenuProps, localProps] = createSplitProps()(menuProps, ['anchorPoint', 'aria-label', 'closeOnSelect', 'highlightedValue', 'id', 'ids', 'loopFocus', 'onEscapeKeyDown', 'onFocusOutside', 'onHighlightChange', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'onSelect', 'open', 'positioning', 'typeahead']);
2361
+ 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']);
2343
2362
  const parentApi = useMenuContext();
2344
2363
  const parentMachine = useMenuMachineContext();
2345
2364
  const menu = useMenu(useMenuProps);
@@ -2464,19 +2483,22 @@ const NumberInputLabel = props => {
2464
2483
  const useNumberInput = props => {
2465
2484
  const locale = useLocaleContext();
2466
2485
  const environment = useEnvironmentContext();
2467
- const context = solid.mergeProps({
2468
- id: solidJs.createUniqueId(),
2486
+ const id = solidJs.createUniqueId();
2487
+ const context = solidJs.createMemo(() => ({
2488
+ id,
2469
2489
  dir: locale().dir,
2470
- getRootNode: environment().getRootNode
2471
- }, props);
2472
- const [state, send] = solid.useMachine(numberInput__namespace.machine(context), {
2490
+ getRootNode: environment().getRootNode,
2491
+ value: props.defaultValue,
2492
+ ...props
2493
+ }));
2494
+ const [state, send] = solid.useMachine(numberInput__namespace.machine(context()), {
2473
2495
  context
2474
2496
  });
2475
2497
  return solidJs.createMemo(() => numberInput__namespace.connect(state, send, solid.normalizeProps));
2476
2498
  };
2477
2499
 
2478
2500
  const NumberInputRoot = props => {
2479
- 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']);
2501
+ 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']);
2480
2502
  const api = useNumberInput(useNumberInputProps);
2481
2503
  const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
2482
2504
  return web.createComponent(NumberInputProvider, {
@@ -2541,19 +2563,22 @@ const PaginationPrevTrigger = props => {
2541
2563
  const usePagination = props => {
2542
2564
  const locale = useLocaleContext();
2543
2565
  const environment = useEnvironmentContext();
2544
- const context = solid.mergeProps({
2545
- id: solidJs.createUniqueId(),
2566
+ const id = solidJs.createUniqueId();
2567
+ const context = solidJs.createMemo(() => ({
2568
+ id,
2546
2569
  dir: locale().dir,
2547
- getRootNode: environment().getRootNode
2548
- }, props);
2549
- const [state, send] = solid.useMachine(pagination__namespace.machine(context), {
2570
+ getRootNode: environment().getRootNode,
2571
+ page: props.defaultPage,
2572
+ ...props
2573
+ }));
2574
+ const [state, send] = solid.useMachine(pagination__namespace.machine(context()), {
2550
2575
  context
2551
2576
  });
2552
2577
  return solidJs.createMemo(() => pagination__namespace.connect(state, send, solid.normalizeProps));
2553
2578
  };
2554
2579
 
2555
2580
  const PaginationRoot = props => {
2556
- const [usePaginationProps, localProps] = createSplitProps()(props, ['count', 'id', 'ids', 'onPageChange', 'page', 'pageSize', 'siblingCount', 'translations', 'type']);
2581
+ const [usePaginationProps, localProps] = createSplitProps()(props, ['count', 'defaultPage', 'id', 'ids', 'onPageChange', 'page', 'pageSize', 'siblingCount', 'translations', 'type']);
2557
2582
  const api = usePagination(usePaginationProps);
2558
2583
  const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
2559
2584
  return web.createComponent(PaginationProvider, {
@@ -2603,19 +2628,22 @@ const PinInputLabel = props => {
2603
2628
  const usePinInput = props => {
2604
2629
  const locale = useLocaleContext();
2605
2630
  const environment = useEnvironmentContext();
2606
- const context = solid.mergeProps({
2607
- id: solidJs.createUniqueId(),
2631
+ const id = solidJs.createUniqueId();
2632
+ const context = solidJs.createMemo(() => ({
2633
+ id,
2608
2634
  dir: locale().dir,
2609
- getRootNode: environment().getRootNode
2610
- }, props);
2611
- const [state, send] = solid.useMachine(pinInput__namespace.machine(context), {
2635
+ getRootNode: environment().getRootNode,
2636
+ value: props.defaultValue,
2637
+ ...props
2638
+ }));
2639
+ const [state, send] = solid.useMachine(pinInput__namespace.machine(context()), {
2612
2640
  context
2613
2641
  });
2614
2642
  return solidJs.createMemo(() => pinInput__namespace.connect(state, send, solid.normalizeProps));
2615
2643
  };
2616
2644
 
2617
2645
  const PinInputRoot = props => {
2618
- const [usePinInputProps, localProps] = createSplitProps()(props, ['autoFocus', 'blurOnComplete', 'disabled', 'form', 'id', 'ids', 'invalid', 'mask', 'name', 'onValueChange', 'onValueComplete', 'onValueInvalid', 'otp', 'pattern', 'placeholder', 'selectOnFocus', 'translations', 'type', 'value']);
2646
+ 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']);
2619
2647
  const pinInput = usePinInput(usePinInputProps);
2620
2648
  const mergedProps = solid.mergeProps(() => pinInput().rootProps, localProps);
2621
2649
  return web.createComponent(PinInputProvider, {
@@ -2716,13 +2744,16 @@ const PopoverPositioner = props => {
2716
2744
  const usePopover = props => {
2717
2745
  const locale = useLocaleContext();
2718
2746
  const environment = useEnvironmentContext();
2719
- const context = solid.mergeProps({
2720
- id: solidJs.createUniqueId(),
2747
+ const id = solidJs.createUniqueId();
2748
+ const context = solidJs.createMemo(() => ({
2749
+ id,
2721
2750
  dir: locale().dir,
2722
2751
  getRootNode: environment().getRootNode,
2723
- 'open.controlled': props.open !== undefined
2724
- }, props);
2725
- const [state, send] = solid.useMachine(popover__namespace.machine(context), {
2752
+ open: props.defaultOpen,
2753
+ 'open.controlled': props.open !== undefined,
2754
+ ...props
2755
+ }));
2756
+ const [state, send] = solid.useMachine(popover__namespace.machine(context()), {
2726
2757
  context
2727
2758
  });
2728
2759
  return solidJs.createMemo(() => popover__namespace.connect(state, send, solid.normalizeProps));
@@ -2730,7 +2761,7 @@ const usePopover = props => {
2730
2761
 
2731
2762
  const PopoverRoot = props => {
2732
2763
  const [presenceProps, popoverProps] = splitPresenceProps(props);
2733
- const [usePopoverProps, localProps] = createSplitProps()(popoverProps, ['autoFocus', 'closeOnEsc', 'closeOnInteractOutside', 'id', 'ids', 'initialFocusEl', 'modal', 'onEscapeKeyDown', 'onFocusOutside', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'open', 'portalled', 'positioning']);
2764
+ const [usePopoverProps, localProps] = createSplitProps()(popoverProps, ['autoFocus', 'closeOnEscape', 'closeOnInteractOutside', 'defaultOpen', 'id', 'ids', 'initialFocusEl', 'modal', 'onEscapeKeyDown', 'onFocusOutside', 'onInteractOutside', 'onOpenChange', 'onPointerDownOutside', 'open', 'persistentElements', 'portalled', 'positioning']);
2734
2765
  const api = usePopover(usePopoverProps);
2735
2766
  const apiPresence = usePresence(solid.mergeProps(presenceProps, () => ({
2736
2767
  present: api().open
@@ -2819,12 +2850,14 @@ const ProgressRange = props => {
2819
2850
  const useProgress = props => {
2820
2851
  const locale = useLocaleContext();
2821
2852
  const environment = useEnvironmentContext();
2822
- const context = solid.mergeProps({
2823
- id: solidJs.createUniqueId(),
2853
+ const id = solidJs.createUniqueId();
2854
+ const context = solidJs.createMemo(() => ({
2855
+ id,
2824
2856
  dir: locale().dir,
2825
- getRootNode: environment().getRootNode
2826
- }, props);
2827
- const [state, send] = solid.useMachine(progress__namespace.machine(context), {
2857
+ getRootNode: environment().getRootNode,
2858
+ ...props
2859
+ }));
2860
+ const [state, send] = solid.useMachine(progress__namespace.machine(context()), {
2828
2861
  context
2829
2862
  });
2830
2863
  return solidJs.createMemo(() => progress__namespace.connect(state, send, solid.normalizeProps));
@@ -2950,19 +2983,22 @@ const RadioGroupLabel = props => {
2950
2983
  const useRadioGroup = props => {
2951
2984
  const locale = useLocaleContext();
2952
2985
  const environment = useEnvironmentContext();
2953
- const context = solid.mergeProps({
2954
- id: solidJs.createUniqueId(),
2986
+ const id = solidJs.createUniqueId();
2987
+ const context = solidJs.createMemo(() => ({
2988
+ id,
2955
2989
  dir: locale().dir,
2956
- getRootNode: environment().getRootNode
2957
- }, props);
2958
- const [state, send] = solid.useMachine(radio__namespace.machine(context), {
2990
+ getRootNode: environment().getRootNode,
2991
+ value: props.defaultValue,
2992
+ ...props
2993
+ }));
2994
+ const [state, send] = solid.useMachine(radio__namespace.machine(context()), {
2959
2995
  context
2960
2996
  });
2961
2997
  return solidJs.createMemo(() => radio__namespace.connect(state, send, solid.normalizeProps));
2962
2998
  };
2963
2999
 
2964
3000
  const RadioGroupRoot = props => {
2965
- const [useRadioGroupProps, localProps] = createSplitProps()(props, ['disabled', 'form', 'id', 'ids', 'name', 'onValueChange', 'orientation', 'readOnly', 'value']);
3001
+ const [useRadioGroupProps, localProps] = createSplitProps()(props, ['defaultValue', 'disabled', 'form', 'id', 'ids', 'name', 'onValueChange', 'orientation', 'readOnly', 'value']);
2966
3002
  const radioGroup = useRadioGroup(useRadioGroupProps);
2967
3003
  const mergedProps = solid.mergeProps(() => radioGroup().rootProps, localProps);
2968
3004
  return web.createComponent(RadioGroupProvider, {
@@ -3027,19 +3063,22 @@ const RatingGroupLabel = props => {
3027
3063
  const useRatingGroup = props => {
3028
3064
  const locale = useLocaleContext();
3029
3065
  const environment = useEnvironmentContext();
3030
- const context = solid.mergeProps({
3031
- id: solidJs.createUniqueId(),
3066
+ const id = solidJs.createUniqueId();
3067
+ const context = solidJs.createMemo(() => ({
3068
+ id,
3032
3069
  dir: locale().dir,
3033
- getRootNode: environment().getRootNode
3034
- }, props);
3035
- const [state, send] = solid.useMachine(rating__namespace.machine(context), {
3070
+ getRootNode: environment().getRootNode,
3071
+ value: props.defaultValue,
3072
+ ...props
3073
+ }));
3074
+ const [state, send] = solid.useMachine(rating__namespace.machine(context()), {
3036
3075
  context
3037
3076
  });
3038
3077
  return solidJs.createMemo(() => rating__namespace.connect(state, send, solid.normalizeProps));
3039
3078
  };
3040
3079
 
3041
3080
  const RatingGroupRoot = props => {
3042
- const [useRatingProps, localProps] = createSplitProps()(props, ['allowHalf', 'autoFocus', 'count', 'disabled', 'form', 'id', 'ids', 'name', 'onHoverChange', 'onValueChange', 'readOnly', 'translations', 'value']);
3081
+ const [useRatingProps, localProps] = createSplitProps()(props, ['allowHalf', 'autoFocus', 'count', 'defaultValue', 'disabled', 'form', 'id', 'ids', 'name', 'onHoverChange', 'onValueChange', 'readOnly', 'translations', 'value']);
3043
3082
  const api = useRatingGroup(useRatingProps);
3044
3083
  const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
3045
3084
  return web.createComponent(RatingGroupProvider, {
@@ -3138,19 +3177,22 @@ const SegmentGroupLabel = props => {
3138
3177
  const useSegmentGroup = props => {
3139
3178
  const locale = useLocaleContext();
3140
3179
  const environment = useEnvironmentContext();
3141
- const context = solid.mergeProps({
3142
- id: solidJs.createUniqueId(),
3180
+ const id = solidJs.createUniqueId();
3181
+ const context = solidJs.createMemo(() => ({
3182
+ id,
3143
3183
  dir: locale().dir,
3144
- getRootNode: environment().getRootNode
3145
- }, props);
3146
- const [state, send] = solid.useMachine(radio__namespace.machine(context), {
3184
+ getRootNode: environment().getRootNode,
3185
+ value: props.defaultValue,
3186
+ ...props
3187
+ }));
3188
+ const [state, send] = solid.useMachine(radio__namespace.machine(context()), {
3147
3189
  context
3148
3190
  });
3149
3191
  return solidJs.createMemo(() => radio__namespace.connect(state, send, solid.normalizeProps));
3150
3192
  };
3151
3193
 
3152
3194
  const SegmentGroupRoot = props => {
3153
- const [useSegmentGroupProps, localProps] = createSplitProps()(props, ['disabled', 'form', 'id', 'ids', 'name', 'onValueChange', 'orientation', 'readOnly', 'value']);
3195
+ const [useSegmentGroupProps, localProps] = createSplitProps()(props, ['defaultValue', 'disabled', 'form', 'id', 'ids', 'name', 'onValueChange', 'orientation', 'readOnly', 'value']);
3154
3196
  const segmentGroup = useSegmentGroup(useSegmentGroupProps);
3155
3197
  const mergedProps = solid.mergeProps(() => segmentGroup().rootProps, anatomy.segmentGroupAnatomy.build().root.attrs, localProps);
3156
3198
  return web.createComponent(SegmentGroupProvider, {
@@ -3254,7 +3296,7 @@ const [SelectItemPropsProvider, useSelectItemPropsContext] = createContext({
3254
3296
  });
3255
3297
 
3256
3298
  const SelectItem = props => {
3257
- const [itemProps, localProps] = createSplitProps()(props, ['item']);
3299
+ const [itemProps, localProps] = createSplitProps()(props, ['item', 'persistFocus']);
3258
3300
  const select = useSelectContext();
3259
3301
  const mergedProps = solid.mergeProps(() => select().getItemProps(itemProps), localProps);
3260
3302
  const itemState = solidJs.createMemo(() => select().getItemState(itemProps));
@@ -3337,20 +3379,22 @@ const SelectPositioner = props => {
3337
3379
  };
3338
3380
 
3339
3381
  const useSelect = props => {
3340
- const [collectionOptions, localProps] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
3341
- const collection = solidJs.createMemo(() => select__namespace.collection(collectionOptions));
3382
+ const [collectionOptions, selectProps] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
3383
+ const collection = () => select__namespace.collection(collectionOptions);
3342
3384
  const locale = useLocaleContext();
3343
3385
  const environment = useEnvironmentContext();
3344
- const context = solid.mergeProps({
3345
- id: solidJs.createUniqueId(),
3386
+ const id = solidJs.createUniqueId();
3387
+ const context = solidJs.createMemo(() => ({
3388
+ id,
3389
+ collection: collection(),
3346
3390
  dir: locale().dir,
3347
3391
  getRootNode: environment().getRootNode,
3392
+ open: props.defaultOpen,
3393
+ value: props.defaultValue,
3348
3394
  'open.controlled': props.open !== undefined,
3349
- get collection() {
3350
- return collection();
3351
- }
3352
- }, localProps);
3353
- const [state, send] = solid.useMachine(select__namespace.machine(context), {
3395
+ ...selectProps
3396
+ }));
3397
+ const [state, send] = solid.useMachine(select__namespace.machine(context()), {
3354
3398
  context
3355
3399
  });
3356
3400
  return solidJs.createMemo(() => select__namespace.connect(state, send, solid.normalizeProps));
@@ -3358,7 +3402,7 @@ const useSelect = props => {
3358
3402
 
3359
3403
  const SelectRoot = props => {
3360
3404
  const [presenceProps, selectProps] = splitPresenceProps(props);
3361
- 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']);
3405
+ 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']);
3362
3406
  const select = useSelect(useSelectProps);
3363
3407
  const presenceApi = usePresence(solid.mergeProps(() => ({
3364
3408
  present: select().open
@@ -3455,19 +3499,22 @@ const SliderRange = props => {
3455
3499
  const useSlider = props => {
3456
3500
  const locale = useLocaleContext();
3457
3501
  const environment = useEnvironmentContext();
3458
- const context = solid.mergeProps({
3459
- id: solidJs.createUniqueId(),
3502
+ const id = solidJs.createUniqueId();
3503
+ const context = solidJs.createMemo(() => ({
3504
+ id,
3460
3505
  dir: locale().dir,
3461
- getRootNode: environment().getRootNode
3462
- }, props);
3463
- const [state, send] = solid.useMachine(slider__namespace.machine(context), {
3506
+ getRootNode: environment().getRootNode,
3507
+ value: props.defaultValue,
3508
+ ...props
3509
+ }));
3510
+ const [state, send] = solid.useMachine(slider__namespace.machine(context()), {
3464
3511
  context
3465
3512
  });
3466
3513
  return solidJs.createMemo(() => slider__namespace.connect(state, send, solid.normalizeProps));
3467
3514
  };
3468
3515
 
3469
3516
  const SliderRoot = props => {
3470
- 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']);
3517
+ 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']);
3471
3518
  const api = useSlider(useSliderProps);
3472
3519
  const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
3473
3520
  return web.createComponent(SliderProvider, {
@@ -3539,19 +3586,22 @@ const SplitterResizeTrigger = props => {
3539
3586
  const useSplitter = props => {
3540
3587
  const locale = useLocaleContext();
3541
3588
  const environment = useEnvironmentContext();
3542
- const context = solid.mergeProps({
3543
- id: solidJs.createUniqueId(),
3589
+ const id = solidJs.createUniqueId();
3590
+ const context = solidJs.createMemo(() => ({
3591
+ id,
3544
3592
  dir: locale().dir,
3545
- getRootNode: environment().getRootNode
3546
- }, props);
3547
- const [state, send] = solid.useMachine(splitter__namespace.machine(context), {
3593
+ getRootNode: environment().getRootNode,
3594
+ size: props.defaultSize,
3595
+ ...props
3596
+ }));
3597
+ const [state, send] = solid.useMachine(splitter__namespace.machine(context()), {
3548
3598
  context
3549
3599
  });
3550
3600
  return solidJs.createMemo(() => splitter__namespace.connect(state, send, solid.normalizeProps));
3551
3601
  };
3552
3602
 
3553
3603
  const SplitterRoot = props => {
3554
- const [useSplitterProps, localProps] = createSplitProps()(props, ['id', 'ids', 'onSizeChange', 'onSizeChangeEnd', 'orientation', 'size']);
3604
+ const [useSplitterProps, localProps] = createSplitProps()(props, ['defaultSize', 'id', 'ids', 'onSizeChange', 'onSizeChangeEnd', 'orientation', 'size']);
3555
3605
  const api = useSplitter(useSplitterProps);
3556
3606
  const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
3557
3607
  return web.createComponent(SplitterProvider, {
@@ -3598,19 +3648,22 @@ const SwitchLabel = props => {
3598
3648
  const useSwitch = props => {
3599
3649
  const locale = useLocaleContext();
3600
3650
  const environment = useEnvironmentContext();
3601
- const context = solid.mergeProps({
3602
- id: solidJs.createUniqueId(),
3651
+ const id = solidJs.createUniqueId();
3652
+ const context = solidJs.createMemo(() => ({
3653
+ id,
3603
3654
  dir: locale().dir,
3604
- getRootNode: environment().getRootNode
3605
- }, props);
3606
- const [state, send] = solid.useMachine(zagSwitch__namespace.machine(context), {
3655
+ getRootNode: environment().getRootNode,
3656
+ checked: props.defaultChecked,
3657
+ ...props
3658
+ }));
3659
+ const [state, send] = solid.useMachine(zagSwitch__namespace.machine(context()), {
3607
3660
  context
3608
3661
  });
3609
3662
  return solidJs.createMemo(() => zagSwitch__namespace.connect(state, send, solid.normalizeProps));
3610
3663
  };
3611
3664
 
3612
3665
  const SwitchRoot = props => {
3613
- const [switchProps, localProps] = createSplitProps()(props, ['checked', 'disabled', 'form', 'id', 'ids', 'invalid', 'label', 'name', 'onCheckedChange', 'readOnly', 'required', 'value']);
3666
+ const [switchProps, localProps] = createSplitProps()(props, ['checked', 'defaultChecked', 'disabled', 'form', 'id', 'ids', 'invalid', 'label', 'name', 'onCheckedChange', 'readOnly', 'required', 'value']);
3614
3667
  const api = useSwitch(switchProps);
3615
3668
  const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
3616
3669
  return web.createComponent(SwitchProvider, {
@@ -3689,12 +3742,15 @@ const TabsContext = props => props.children(useTabsContext());
3689
3742
  const useTabs = props => {
3690
3743
  const locale = useLocaleContext();
3691
3744
  const environment = useEnvironmentContext();
3692
- const context = solid.mergeProps({
3693
- id: solidJs.createUniqueId(),
3745
+ const id = solidJs.createUniqueId();
3746
+ const context = solidJs.createMemo(() => ({
3747
+ id,
3694
3748
  dir: locale().dir,
3695
- getRootNode: environment().getRootNode
3696
- }, props);
3697
- const [state, send] = solid.useMachine(tabs__namespace.machine(context), {
3749
+ getRootNode: environment().getRootNode,
3750
+ value: props.defaultValue,
3751
+ ...props
3752
+ }));
3753
+ const [state, send] = solid.useMachine(tabs__namespace.machine(context()), {
3698
3754
  context
3699
3755
  });
3700
3756
  return solidJs.createMemo(() => tabs__namespace.connect(state, send, solid.normalizeProps));
@@ -3702,7 +3758,7 @@ const useTabs = props => {
3702
3758
 
3703
3759
  const TabsRoot = props => {
3704
3760
  const [renderStrategyProps, tabsProps] = splitRenderStrategyProps(props);
3705
- const [useTabsProps, restProps] = createSplitProps()(tabsProps, ['activationMode', 'id', 'ids', 'loopFocus', 'onFocusChange', 'onValueChange', 'orientation', 'translations', 'value']);
3761
+ const [useTabsProps, restProps] = createSplitProps()(tabsProps, ['activationMode', 'composite', 'defaultValue', 'id', 'ids', 'loopFocus', 'onFocusChange', 'onValueChange', 'orientation', 'translations', 'value']);
3706
3762
  const api = useTabs(useTabsProps);
3707
3763
  const mergedProps = solid.mergeProps(() => api().rootProps, restProps);
3708
3764
  return web.createComponent(TabsProvider, {
@@ -3826,19 +3882,22 @@ const TagsInputLabel = props => {
3826
3882
  const useTagsInput = props => {
3827
3883
  const locale = useLocaleContext();
3828
3884
  const environment = useEnvironmentContext();
3829
- const context = solid.mergeProps({
3830
- id: solidJs.createUniqueId(),
3885
+ const id = solidJs.createUniqueId();
3886
+ const context = solidJs.createMemo(() => ({
3887
+ id,
3831
3888
  dir: locale().dir,
3832
- getRootNode: environment().getRootNode
3833
- }, props);
3834
- const [state, send] = solid.useMachine(tagsInput__namespace.machine(context), {
3889
+ getRootNode: environment().getRootNode,
3890
+ value: props.defaultValue,
3891
+ ...props
3892
+ }));
3893
+ const [state, send] = solid.useMachine(tagsInput__namespace.machine(context()), {
3835
3894
  context
3836
3895
  });
3837
3896
  return solidJs.createMemo(() => tagsInput__namespace.connect(state, send, solid.normalizeProps));
3838
3897
  };
3839
3898
 
3840
3899
  const TagsInputRoot = props => {
3841
- 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']);
3900
+ 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']);
3842
3901
  const api = useTagsInput(useTagsInputProps);
3843
3902
  const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
3844
3903
  return web.createComponent(TagsInputProvider, {
@@ -3986,19 +4045,22 @@ const ToggleGroupItem = props => {
3986
4045
  const useToggleGroup = props => {
3987
4046
  const locale = useLocaleContext();
3988
4047
  const environment = useEnvironmentContext();
3989
- const context = solid.mergeProps({
3990
- id: solidJs.createUniqueId(),
4048
+ const id = solidJs.createUniqueId();
4049
+ const context = solidJs.createMemo(() => ({
4050
+ id,
3991
4051
  dir: locale().dir,
3992
- getRootNode: environment().getRootNode
3993
- }, props);
3994
- const [state, send] = solid.useMachine(toggleGroup__namespace.machine(context), {
4052
+ getRootNode: environment().getRootNode,
4053
+ value: props.defaultValue,
4054
+ ...props
4055
+ }));
4056
+ const [state, send] = solid.useMachine(toggleGroup__namespace.machine(context()), {
3995
4057
  context
3996
4058
  });
3997
4059
  return solidJs.createMemo(() => toggleGroup__namespace.connect(state, send, solid.normalizeProps));
3998
4060
  };
3999
4061
 
4000
4062
  const ToggleGroupRoot = props => {
4001
- const [useToggleGroupProps, restProps] = createSplitProps()(props, ['disabled', 'id', 'ids', 'loopFocus', 'multiple', 'onValueChange', 'orientation', 'rovingFocus', 'value']);
4063
+ const [useToggleGroupProps, restProps] = createSplitProps()(props, ['defaultValue', 'disabled', 'id', 'ids', 'loopFocus', 'multiple', 'onValueChange', 'orientation', 'rovingFocus', 'value']);
4002
4064
  const api = useToggleGroup(useToggleGroupProps);
4003
4065
  const mergedProps = solid.mergeProps(() => api().rootProps, restProps);
4004
4066
  return web.createComponent(ToggleGroupProvider, {
@@ -4066,13 +4128,16 @@ const TooltipPositioner = props => {
4066
4128
  const useTooltip = props => {
4067
4129
  const locale = useLocaleContext();
4068
4130
  const environment = useEnvironmentContext();
4069
- const context = solid.mergeProps({
4070
- id: solidJs.createUniqueId(),
4131
+ const id = solidJs.createUniqueId();
4132
+ const context = solidJs.createMemo(() => ({
4133
+ id,
4071
4134
  dir: locale().dir,
4072
4135
  getRootNode: environment().getRootNode,
4073
- 'open.controlled': props.open !== undefined
4074
- }, props);
4075
- const [state, send] = solid.useMachine(tooltip__namespace.machine(context), {
4136
+ open: props.defaultOpen,
4137
+ 'open.controlled': props.open !== undefined,
4138
+ ...props
4139
+ }));
4140
+ const [state, send] = solid.useMachine(tooltip__namespace.machine(context()), {
4076
4141
  context
4077
4142
  });
4078
4143
  return solidJs.createMemo(() => tooltip__namespace.connect(state, send, solid.normalizeProps));
@@ -4080,7 +4145,7 @@ const useTooltip = props => {
4080
4145
 
4081
4146
  const TooltipRoot = props => {
4082
4147
  const [presenceProps, tooltipProps] = splitPresenceProps(props);
4083
- const [useTooltipProps, localProps] = createSplitProps()(tooltipProps, ['aria-label', 'closeDelay', 'closeOnEsc', 'closeOnPointerDown', 'disabled', 'id', 'ids', 'interactive', 'onOpenChange', 'open', 'openDelay', 'positioning']);
4148
+ const [useTooltipProps, localProps] = createSplitProps()(tooltipProps, ['aria-label', 'closeDelay', 'closeOnEscape', 'closeOnPointerDown', 'defaultOpen', 'disabled', 'id', 'ids', 'interactive', 'onOpenChange', 'open', 'openDelay', 'positioning']);
4084
4149
  const api = useTooltip(useTooltipProps);
4085
4150
  const apiPresence = usePresence(solid.mergeProps(presenceProps, () => ({
4086
4151
  present: api().open
@@ -4245,19 +4310,23 @@ const TreeViewLabel = props => {
4245
4310
  const useTreeView = props => {
4246
4311
  const locale = useLocaleContext();
4247
4312
  const environment = useEnvironmentContext();
4248
- const context = solid.mergeProps({
4249
- id: solidJs.createUniqueId(),
4313
+ const id = solidJs.createUniqueId();
4314
+ const context = solidJs.createMemo(() => ({
4315
+ id,
4250
4316
  dir: locale().dir,
4251
- getRootNode: environment().getRootNode
4252
- }, props);
4253
- const [state, send] = solid.useMachine(treeView__namespace.machine(context), {
4317
+ getRootNode: environment().getRootNode,
4318
+ selectedValue: props.defaultSelectedValue,
4319
+ expandedValue: props.defaultExpandedValue,
4320
+ ...props
4321
+ }));
4322
+ const [state, send] = solid.useMachine(treeView__namespace.machine(context()), {
4254
4323
  context
4255
4324
  });
4256
4325
  return solidJs.createMemo(() => treeView__namespace.connect(state, send, solid.normalizeProps));
4257
4326
  };
4258
4327
 
4259
4328
  const TreeViewRoot = props => {
4260
- const [useTreeViewProps, localProps] = createSplitProps()(props, ['expandedValue', 'focusedValue', 'id', 'ids', 'onExpandedChange', 'onFocusChange', 'onSelectionChange', 'openOnClick', 'selectedValue', 'selectionMode', 'typeahead']);
4329
+ const [useTreeViewProps, localProps] = createSplitProps()(props, ['defaultExpandedValue', 'defaultSelectedValue', 'expandedValue', 'expandOnClick', 'focusedValue', 'id', 'ids', 'onExpandedChange', 'onFocusChange', 'onSelectionChange', 'selectedValue', 'selectionMode', 'typeahead']);
4261
4330
  const api = useTreeView(useTreeViewProps);
4262
4331
  const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
4263
4332
  return web.createComponent(TreeViewProvider, {
@@ -4430,7 +4499,7 @@ exports.EditableLabel = EditableLabel;
4430
4499
  exports.EditablePreview = EditablePreview;
4431
4500
  exports.EditableRoot = EditableRoot;
4432
4501
  exports.EditableSubmitTrigger = EditableSubmitTrigger;
4433
- exports.Environment = Environment;
4502
+ exports.EnvironmentProvider = EnvironmentProvider;
4434
4503
  exports.FileUpload = fileUpload;
4435
4504
  exports.FileUploadContext = FileUploadContext;
4436
4505
  exports.FileUploadDropzone = FileUploadDropzone;