ui-ingredients 0.0.53 → 0.0.55

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/dist/accordion/accordion-root.svelte +2 -2
  2. package/dist/avatar/avatar-root.svelte +2 -2
  3. package/dist/carousel/carousel-root.svelte +2 -2
  4. package/dist/checkbox/checkbox-root.svelte +2 -2
  5. package/dist/clipboard/clipboard-root.svelte +2 -2
  6. package/dist/collapsible/collapsible-root.svelte +2 -2
  7. package/dist/color-picker/color-picker-anatomy.d.ts +2 -0
  8. package/dist/color-picker/color-picker-anatomy.js +3 -0
  9. package/dist/color-picker/color-picker-channel-slider-label.svelte +3 -6
  10. package/dist/color-picker/color-picker-channel-slider-thumb.svelte +8 -2
  11. package/dist/color-picker/color-picker-channel-slider-track.svelte +8 -2
  12. package/dist/color-picker/color-picker-channel-slider-value-text.svelte +4 -10
  13. package/dist/color-picker/color-picker-channel-slider.svelte +12 -10
  14. package/dist/color-picker/color-picker-channel-slider.svelte.d.ts +2 -2
  15. package/dist/color-picker/color-picker-content.svelte +8 -6
  16. package/dist/color-picker/color-picker-context.svelte.d.ts +10 -2
  17. package/dist/color-picker/color-picker-context.svelte.js +1 -1
  18. package/dist/color-picker/color-picker-format-select.svelte +4 -4
  19. package/dist/color-picker/color-picker-root.svelte +21 -11
  20. package/dist/color-picker/color-picker-root.svelte.d.ts +2 -1
  21. package/dist/color-picker/color-picker-swatch-trigger.svelte +4 -7
  22. package/dist/color-picker/color-picker-swatch-trigger.svelte.d.ts +1 -1
  23. package/dist/color-picker/color-picker-transparency-grid.svelte +1 -6
  24. package/dist/color-picker/color-picker-value-swatch.svelte +41 -0
  25. package/dist/color-picker/color-picker-value-swatch.svelte.d.ts +22 -0
  26. package/dist/color-picker/color-picker-view.svelte +41 -0
  27. package/dist/color-picker/color-picker-view.svelte.d.ts +23 -0
  28. package/dist/color-picker/color-picker.d.ts +2 -0
  29. package/dist/color-picker/color-picker.js +2 -0
  30. package/dist/color-picker/create-color-picker.svelte.d.ts +11 -1
  31. package/dist/color-picker/create-color-picker.svelte.js +31 -2
  32. package/dist/color-picker/index.d.ts +3 -1
  33. package/dist/color-picker/index.js +1 -1
  34. package/dist/combobox/combobox-input.svelte +3 -1
  35. package/dist/combobox/combobox-root.svelte +2 -2
  36. package/dist/date-picker/date-picker-anatomy.d.ts +2 -2
  37. package/dist/date-picker/date-picker-month-select.svelte +6 -18
  38. package/dist/date-picker/date-picker-month-select.svelte.d.ts +1 -0
  39. package/dist/date-picker/date-picker-root.svelte +2 -2
  40. package/dist/date-picker/date-picker-year-select.svelte +2 -17
  41. package/dist/dialog/dialog-root.svelte +2 -2
  42. package/dist/editable/editable-root.svelte +2 -2
  43. package/dist/field/field-root.svelte +2 -2
  44. package/dist/file-upload/file-upload-root.svelte +2 -2
  45. package/dist/floating-panel/floating-panel-root.svelte +4 -2
  46. package/dist/highlight/highlight.svelte +2 -2
  47. package/dist/hover-card/hover-card-root.svelte +2 -2
  48. package/dist/number-input/number-input-root.svelte +2 -2
  49. package/dist/pagination/pagination-root.svelte +2 -2
  50. package/dist/pin-input/pin-input-root.svelte +2 -2
  51. package/dist/popover/popover-root.svelte +2 -2
  52. package/dist/presence/presence.svelte +2 -2
  53. package/dist/progress/progress-root.svelte +2 -2
  54. package/dist/qr-code/qr-code-root.svelte +2 -2
  55. package/dist/radio-group/radio-group-root.svelte +2 -2
  56. package/dist/rating-group/rating-group-root.svelte +2 -2
  57. package/dist/segment-group/segment-group-root.svelte +2 -2
  58. package/dist/select/select-root.svelte +3 -2
  59. package/dist/signature-pad/signature-pad-root.svelte +2 -2
  60. package/dist/slider/slider-root.svelte +2 -2
  61. package/dist/splitter/splitter-root.svelte +2 -2
  62. package/dist/steps/steps-root.svelte +2 -2
  63. package/dist/switch/switch-root.svelte +2 -2
  64. package/dist/tabs/tabs-root.svelte +2 -2
  65. package/dist/tags-input/tags-input-root.svelte +2 -2
  66. package/dist/time-picker/time-picker-root.svelte +2 -2
  67. package/dist/timer/timer-root.svelte +2 -2
  68. package/dist/toggle-group/toggle-group-root.svelte +2 -2
  69. package/dist/tooltip/tooltip-root.svelte +2 -2
  70. package/dist/tour/tour-root.svelte +2 -2
  71. package/dist/tree-view/tree-view-root.svelte +2 -2
  72. package/package.json +54 -54
@@ -1,9 +1,19 @@
1
+ import type { GenericObject } from '../types.js';
1
2
  import * as colorPicker from '@zag-js/color-picker';
2
- export interface CreateColorPickerProps extends Omit<colorPicker.Context, 'id' | 'dir' | 'value' | 'getRootNode' | 'open.controlled'> {
3
+ type Omitted = 'id' | 'dir' | 'value' | 'getRootNode' | 'open.controlled';
4
+ export interface CreateColorPickerProps extends Omit<colorPicker.Context, Omitted> {
3
5
  id?: string | null;
4
6
  value?: string;
5
7
  defaultOpen?: boolean;
6
8
  }
7
9
  export interface CreateColorPickerReturn extends colorPicker.Api {
10
+ getViewProps(props: {
11
+ format: colorPicker.ColorFormat;
12
+ }): GenericObject;
13
+ getFormats(): {
14
+ label: string;
15
+ value: colorPicker.ColorFormat;
16
+ }[];
8
17
  }
9
18
  export declare function createColorPicker(props: CreateColorPickerProps): CreateColorPickerReturn;
19
+ export {};
@@ -3,11 +3,12 @@ import { getLocaleContext } from '../locale-provider/local-provider-context.svel
3
3
  import * as colorPicker from '@zag-js/color-picker';
4
4
  import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
5
5
  import { uid } from 'uid';
6
+ import { parts } from './color-picker-anatomy.js';
6
7
  export function createColorPicker(props) {
7
8
  const locale = getLocaleContext();
8
9
  const environment = getEnvironmentContext();
9
10
  const id = uid();
10
- const context = reflect(() => ({
11
+ const context = $derived.by(() => ({
11
12
  ...props,
12
13
  id: props.id ?? id,
13
14
  dir: locale?.dir,
@@ -17,5 +18,33 @@ export function createColorPicker(props) {
17
18
  'open.controlled': props.open != null,
18
19
  }));
19
20
  const [state, send] = useMachine(colorPicker.machine(context), { context });
20
- return reflect(() => colorPicker.connect(state, send, normalizeProps));
21
+ return reflect(() => {
22
+ const o = colorPicker.connect(state, send, normalizeProps);
23
+ return {
24
+ ...o,
25
+ getViewProps(props) {
26
+ return {
27
+ hidden: props.format !== o.format,
28
+ 'data-format': o.format,
29
+ ...parts.view.attrs,
30
+ };
31
+ },
32
+ getFormats() {
33
+ return [
34
+ {
35
+ label: 'RGBA',
36
+ value: 'rgba',
37
+ },
38
+ {
39
+ label: 'HSLA',
40
+ value: 'hsla',
41
+ },
42
+ {
43
+ label: 'HSBA',
44
+ value: 'hsba',
45
+ },
46
+ ];
47
+ },
48
+ };
49
+ });
21
50
  }
@@ -23,6 +23,8 @@ export type { ColorPickerSwatchTriggerProps } from './color-picker-swatch-trigge
23
23
  export type { ColorPickerSwatchProps } from './color-picker-swatch.svelte';
24
24
  export type { ColorPickerTransparencyGridProps } from './color-picker-transparency-grid.svelte';
25
25
  export type { ColorPickerTriggerProps } from './color-picker-trigger.svelte';
26
+ export type { ColorPickerValueSwatchProps } from './color-picker-value-swatch.svelte';
26
27
  export type { ColorPickerValueTextProps } from './color-picker-value-text.svelte';
27
- export { anatomy as colorPickerAnatomy } from '@zag-js/color-picker';
28
+ export type { ColorPickerViewTextProps } from './color-picker-view.svelte';
29
+ export { anatomy as colorPickerAnatomy } from './color-picker-anatomy.js';
28
30
  export { getColorPickerContext } from './color-picker-context.svelte.js';
@@ -1,3 +1,3 @@
1
1
  export * as ColorPicker from './color-picker.js';
2
- export { anatomy as colorPickerAnatomy } from '@zag-js/color-picker';
2
+ export { anatomy as colorPickerAnatomy } from './color-picker-anatomy.js';
3
3
  export { getColorPickerContext } from './color-picker-context.svelte.js';
@@ -13,7 +13,9 @@
13
13
 
14
14
  let combobox = getComboboxContext();
15
15
 
16
- let mergedProps = $derived(mergeProps(props, combobox.getInputProps()));
16
+ let mergedProps = $derived(
17
+ mergeProps({...props, 'aria-expanded': false}, combobox.getInputProps()),
18
+ );
17
19
  </script>
18
20
 
19
21
  {#if asChild}
@@ -31,7 +31,7 @@
31
31
  ),
32
32
  );
33
33
 
34
- let [comboboxProps, localProps] = $derived(
34
+ let [createComboboxProps, localProps] = $derived(
35
35
  createSplitProps<CreateComboboxProps<T>>([
36
36
  'id',
37
37
  'ids',
@@ -77,7 +77,7 @@
77
77
  ])(rest),
78
78
  );
79
79
 
80
- let combobox = createCombobox(reflect(() => comboboxProps));
80
+ let combobox = createCombobox(reflect(() => createComboboxProps));
81
81
  let presence = createPresence(
82
82
  reflect(() => ({
83
83
  ...presenceStrategyProps,
@@ -1,2 +1,2 @@
1
- export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"input" | "label" | "table" | "view" | "root" | "control" | "content" | "trigger" | "clearTrigger" | "positioner" | "monthSelect" | "nextTrigger" | "prevTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewTrigger" | "viewControl" | "yearSelect" | "presetTrigger">;
2
- export declare const parts: Record<"input" | "label" | "table" | "view" | "root" | "control" | "content" | "trigger" | "clearTrigger" | "positioner" | "monthSelect" | "nextTrigger" | "prevTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewTrigger" | "viewControl" | "yearSelect" | "presetTrigger", import("@zag-js/anatomy").AnatomyPart>;
1
+ export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"input" | "label" | "table" | "view" | "root" | "control" | "content" | "trigger" | "positioner" | "clearTrigger" | "monthSelect" | "nextTrigger" | "prevTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewTrigger" | "viewControl" | "yearSelect" | "presetTrigger">;
2
+ export declare const parts: Record<"input" | "label" | "table" | "view" | "root" | "control" | "content" | "trigger" | "positioner" | "clearTrigger" | "monthSelect" | "nextTrigger" | "prevTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewTrigger" | "viewControl" | "yearSelect" | "presetTrigger", import("@zag-js/anatomy").AnatomyPart>;
@@ -2,7 +2,9 @@
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
4
  export interface DatePickerMonthSelectProps
5
- extends HtmlIngredientProps<'select', HTMLSelectElement> {}
5
+ extends HtmlIngredientProps<'select', HTMLSelectElement> {
6
+ format?: 'short' | 'long';
7
+ }
6
8
  </script>
7
9
 
8
10
  <script lang="ts">
@@ -11,6 +13,7 @@
11
13
 
12
14
  let {
13
15
  this: e,
16
+ format = 'short',
14
17
  asChild,
15
18
  children,
16
19
  ...props
@@ -21,21 +24,6 @@
21
24
  let mergedProps = $derived(
22
25
  mergeProps(props, datePicker.getMonthSelectProps()),
23
26
  );
24
-
25
- const months = [
26
- 'January',
27
- 'February',
28
- 'March',
29
- 'April',
30
- 'May',
31
- 'June',
32
- 'July',
33
- 'August',
34
- 'September',
35
- 'October',
36
- 'November',
37
- 'December',
38
- ];
39
27
  </script>
40
28
 
41
29
  {#if asChild}
@@ -45,8 +33,8 @@
45
33
  {#if children}
46
34
  {@render children()}
47
35
  {:else}
48
- {#each months as month, index}
49
- <option value={index}>{month}</option>
36
+ {#each datePicker.getMonths({format}) as item}
37
+ <option value={item.value}>{item.label}</option>
50
38
  {/each}
51
39
  {/if}
52
40
  </select>
@@ -1,5 +1,6 @@
1
1
  import type { HtmlIngredientProps } from '../types.js';
2
2
  export interface DatePickerMonthSelectProps extends HtmlIngredientProps<'select', HTMLSelectElement> {
3
+ format?: 'short' | 'long';
3
4
  }
4
5
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
5
6
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -29,7 +29,7 @@
29
29
  createSplitProps<PresenceStrategyProps>([])(props),
30
30
  );
31
31
 
32
- let [datePickerProps, localProps] = $derived(
32
+ let [createDatePickerProps, localProps] = $derived(
33
33
  createSplitProps<CreateDatePickerProps>([
34
34
  'id',
35
35
  'ids',
@@ -62,7 +62,7 @@
62
62
  ])(rest),
63
63
  );
64
64
 
65
- let datePicker = createDatePicker(reflect(() => datePickerProps));
65
+ let datePicker = createDatePicker(reflect(() => createDatePickerProps));
66
66
  let presence = createPresence(
67
67
  reflect(() => ({
68
68
  ...presenceStrategyProps,
@@ -21,21 +21,6 @@
21
21
  let mergedProps = $derived(
22
22
  mergeProps(props, datePicker.getYearSelectProps()),
23
23
  );
24
-
25
- function getYears() {
26
- const currentYear = new Date().getFullYear();
27
-
28
- const start = currentYear - 1000;
29
- const until = currentYear + 1000;
30
-
31
- const years = [];
32
-
33
- for (let i = start; i <= until; i++) {
34
- years.unshift(i);
35
- }
36
-
37
- return years;
38
- }
39
24
  </script>
40
25
 
41
26
  {#if asChild}
@@ -45,8 +30,8 @@
45
30
  {#if children}
46
31
  {@render children()}
47
32
  {:else}
48
- {#each getYears() as year}
49
- <option value={year}>{year}</option>
33
+ {#each datePicker.getYears() as item}
34
+ <option value={item.value}>{item.label}</option>
50
35
  {/each}
51
36
  {/if}
52
37
  </select>
@@ -26,13 +26,13 @@
26
26
 
27
27
  let {children, ...props}: DialogProps = $props();
28
28
 
29
- let [presenceStrategyProps, dialogProps] = $derived(
29
+ let [presenceStrategyProps, createDialogProps] = $derived(
30
30
  createSplitProps<PresenceStrategyProps>(['lazyMount', 'keepMounted'])(
31
31
  props,
32
32
  ),
33
33
  );
34
34
 
35
- let dialog = createDialog(reflect(() => dialogProps));
35
+ let dialog = createDialog(reflect(() => createDialogProps));
36
36
  let presence = createPresence(
37
37
  reflect(() => ({
38
38
  ...presenceStrategyProps,
@@ -21,7 +21,7 @@
21
21
 
22
22
  let {this: e, asChild, children, ...props}: EditableProps = $props();
23
23
 
24
- let [editableProps, localProps] = $derived(
24
+ let [createEditableProps, localProps] = $derived(
25
25
  createSplitProps<CreateEditableProps>([
26
26
  'id',
27
27
  'ids',
@@ -52,7 +52,7 @@
52
52
  ])(props),
53
53
  );
54
54
 
55
- let editable = createEditable(reflect(() => editableProps));
55
+ let editable = createEditable(reflect(() => createEditableProps));
56
56
 
57
57
  let mergedProps = $derived(mergeProps(localProps, editable.getRootProps()));
58
58
 
@@ -21,7 +21,7 @@
21
21
 
22
22
  let {this: e, asChild, children, ...props}: FieldProps = $props();
23
23
 
24
- let [fieldProps, localProps] = $derived(
24
+ let [createFieldProps, localProps] = $derived(
25
25
  createSplitProps<CreateFieldProps>([
26
26
  'id',
27
27
  'ids',
@@ -32,7 +32,7 @@
32
32
  ])(props),
33
33
  );
34
34
 
35
- let field = createField(reflect(() => fieldProps));
35
+ let field = createField(reflect(() => createFieldProps));
36
36
 
37
37
  let mergedProps = $derived(mergeProps(localProps, field.getRootProps()));
38
38
 
@@ -21,7 +21,7 @@
21
21
 
22
22
  let {this: e, asChild, children, ...props}: FileUploadProps = $props();
23
23
 
24
- let [fileUploadProps, localProps] = $derived(
24
+ let [createFileUploadProps, localProps] = $derived(
25
25
  createSplitProps<CreateFileUploadProps>([
26
26
  'id',
27
27
  'ids',
@@ -45,7 +45,7 @@
45
45
  ])(props),
46
46
  );
47
47
 
48
- let fileUpload = createFileUpload(reflect(() => fileUploadProps));
48
+ let fileUpload = createFileUpload(reflect(() => createFileUploadProps));
49
49
 
50
50
  let mergedProps = $derived(mergeProps(localProps, fileUpload.getRootProps()));
51
51
 
@@ -23,13 +23,15 @@
23
23
 
24
24
  let {children, ...props}: FloatingPanelProps = $props();
25
25
 
26
- let [presenceStrategyProps, floatingPanelProps] = $derived(
26
+ let [presenceStrategyProps, createFloatingPanelProps] = $derived(
27
27
  createSplitProps<PresenceStrategyProps>(['lazyMount', 'keepMounted'])(
28
28
  props,
29
29
  ),
30
30
  );
31
31
 
32
- let floatingPanel = createFloatingPanel(reflect(() => floatingPanelProps));
32
+ let floatingPanel = createFloatingPanel(
33
+ reflect(() => createFloatingPanelProps),
34
+ );
33
35
 
34
36
  let presence = createPresence(
35
37
  reflect(() => ({
@@ -15,7 +15,7 @@
15
15
 
16
16
  let {this: e, asChild, ...props}: HighlightProps = $props();
17
17
 
18
- let [highlightProps, localProps] = $derived(
18
+ let [highlightWordProps, localProps] = $derived(
19
19
  createSplitProps<HighlightWordProps>([
20
20
  'text',
21
21
  'query',
@@ -24,7 +24,7 @@
24
24
  ])(props),
25
25
  );
26
26
 
27
- let chunks = $derived(highlightWord(highlightProps));
27
+ let chunks = $derived(highlightWord(highlightWordProps));
28
28
  </script>
29
29
 
30
30
  {#if asChild}
@@ -23,7 +23,7 @@
23
23
 
24
24
  let {children, ...props}: HoverCardProps = $props();
25
25
 
26
- let [hoverCardProps, presenceStrategyProps] = $derived(
26
+ let [createHoverCardProps, presenceStrategyProps] = $derived(
27
27
  createSplitProps<CreateHoverCardProps>([
28
28
  'id',
29
29
  'ids',
@@ -36,7 +36,7 @@
36
36
  ])(props),
37
37
  );
38
38
 
39
- let hoverCard = createHoverCard(reflect(() => hoverCardProps));
39
+ let hoverCard = createHoverCard(reflect(() => createHoverCardProps));
40
40
 
41
41
  let presence = createPresence(
42
42
  reflect(() => ({
@@ -21,7 +21,7 @@
21
21
 
22
22
  let {this: e, asChild, children, ...props}: NumberInputProps = $props();
23
23
 
24
- let [numberInputProps, localProps] = $derived(
24
+ let [createNumberInputProps, localProps] = $derived(
25
25
  createSplitProps<CreateNumberInputProps>([
26
26
  'id',
27
27
  'ids',
@@ -51,7 +51,7 @@
51
51
  ])(props),
52
52
  );
53
53
 
54
- let numberInput = createNumberInput(reflect(() => numberInputProps));
54
+ let numberInput = createNumberInput(reflect(() => createNumberInputProps));
55
55
 
56
56
  let mergedProps = $derived(
57
57
  mergeProps(localProps, numberInput.getRootProps()),
@@ -21,7 +21,7 @@
21
21
 
22
22
  let {this: e, asChild, children, ...props}: PaginationProps = $props();
23
23
 
24
- let [paginationProps, localProps] = $derived(
24
+ let [createPaginationProps, localProps] = $derived(
25
25
  createSplitProps<CreatePaginationProps>([
26
26
  'id',
27
27
  'ids',
@@ -36,7 +36,7 @@
36
36
  ])(props),
37
37
  );
38
38
 
39
- let pagination = createPagination(reflect(() => paginationProps));
39
+ let pagination = createPagination(reflect(() => createPaginationProps));
40
40
 
41
41
  let mergedProps = $derived(mergeProps(localProps, pagination.getRootProps()));
42
42
 
@@ -21,7 +21,7 @@
21
21
 
22
22
  let {this: e, asChild, children, ...props}: PinInputProps = $props();
23
23
 
24
- let [pinInputProps, localProps] = $derived(
24
+ let [createPinInputProps, localProps] = $derived(
25
25
  createSplitProps<CreatePinInputProps>([
26
26
  'id',
27
27
  'ids',
@@ -47,7 +47,7 @@
47
47
  ])(props),
48
48
  );
49
49
 
50
- let pinInput = createPinInputContext(reflect(() => pinInputProps));
50
+ let pinInput = createPinInputContext(reflect(() => createPinInputProps));
51
51
 
52
52
  let mergedProps = $derived(mergeProps(localProps, pinInput.getRootProps()));
53
53
 
@@ -23,7 +23,7 @@
23
23
 
24
24
  let {children, ...props}: PopoverProps = $props();
25
25
 
26
- let [popoverProps, presenceStrategyProps] = $derived(
26
+ let [createPopoverProps, presenceStrategyProps] = $derived(
27
27
  createSplitProps<CreatePopoverProps>([
28
28
  'autoFocus',
29
29
  'closeOnEscape',
@@ -45,7 +45,7 @@
45
45
  ])(props),
46
46
  );
47
47
 
48
- let popover = createPopover(reflect(() => popoverProps));
48
+ let popover = createPopover(reflect(() => createPopoverProps));
49
49
  let presence = createPresence(
50
50
  reflect(() => ({
51
51
  ...presenceStrategyProps,
@@ -18,7 +18,7 @@
18
18
 
19
19
  let {asChild, children, ...props}: PresenceProps = $props();
20
20
 
21
- let [presenceProps, localProps] = $derived(
21
+ let [createPresenceProps, localProps] = $derived(
22
22
  createSplitProps<CreatePresenceProps>([
23
23
  'present',
24
24
  'lazyMount',
@@ -26,7 +26,7 @@
26
26
  ])(props),
27
27
  );
28
28
 
29
- let presence = createPresence(reflect(() => presenceProps));
29
+ let presence = createPresence(reflect(() => createPresenceProps));
30
30
 
31
31
  let mergedProps = $derived(
32
32
  mergeProps(localProps, presence.getPresenceProps()),
@@ -21,7 +21,7 @@
21
21
 
22
22
  let {this: e, asChild, children, ...props}: ProgressProps = $props();
23
23
 
24
- let [progressProps, localProps] = $derived(
24
+ let [createProgressProps, localProps] = $derived(
25
25
  createSplitProps<CreateProgressProps>([
26
26
  'id',
27
27
  'ids',
@@ -33,7 +33,7 @@
33
33
  ])(props),
34
34
  );
35
35
 
36
- let progress = createProgress(reflect(() => progressProps));
36
+ let progress = createProgress(reflect(() => createProgressProps));
37
37
 
38
38
  let mergedProps = $derived(mergeProps(localProps, progress.getRootProps()));
39
39
 
@@ -21,13 +21,13 @@
21
21
 
22
22
  let {this: e, asChild, children, ...props}: QrCodeProps = $props();
23
23
 
24
- let [qrCodeProps, localProps] = $derived(
24
+ let [createQrCodeProps, localProps] = $derived(
25
25
  createSplitProps<CreateQrCodeProps>(['id', 'ids', 'value', 'encoding'])(
26
26
  props,
27
27
  ),
28
28
  );
29
29
 
30
- let qrCode = createQRCode(reflect(() => qrCodeProps));
30
+ let qrCode = createQRCode(reflect(() => createQrCodeProps));
31
31
 
32
32
  let mergedProps = $derived(mergeProps(localProps, qrCode.getRootProps()));
33
33
 
@@ -21,7 +21,7 @@
21
21
 
22
22
  let {this: e, asChild, children, ...props}: RadioGroupProps = $props();
23
23
 
24
- let [radioGroupProps, localProps] = $derived(
24
+ let [createRadioGroupProps, localProps] = $derived(
25
25
  createSplitProps<CreateRadioGroupProps>([
26
26
  'id',
27
27
  'ids',
@@ -35,7 +35,7 @@
35
35
  ])(props),
36
36
  );
37
37
 
38
- let radioGroup = createRadioGroup(reflect(() => radioGroupProps));
38
+ let radioGroup = createRadioGroup(reflect(() => createRadioGroupProps));
39
39
 
40
40
  let mergedProps = $derived(mergeProps(localProps, radioGroup.getRootProps()));
41
41
 
@@ -21,7 +21,7 @@
21
21
 
22
22
  let {this: e, asChild, children, ...props}: RatingGroupProps = $props();
23
23
 
24
- let [ratingGroupProps, localProps] = $derived(
24
+ let [createRatingGroupProps, localProps] = $derived(
25
25
  createSplitProps<CreateRatingGroupProps>([
26
26
  'id',
27
27
  'ids',
@@ -40,7 +40,7 @@
40
40
  ])(props),
41
41
  );
42
42
 
43
- let ratingGroup = createRatingGroup(reflect(() => ratingGroupProps));
43
+ let ratingGroup = createRatingGroup(reflect(() => createRatingGroupProps));
44
44
 
45
45
  let mergedProps = $derived(
46
46
  mergeProps(localProps, ratingGroup.getRootProps()),
@@ -22,7 +22,7 @@
22
22
 
23
23
  let {this: e, asChild, children, ...props}: SegmentGroupProps = $props();
24
24
 
25
- let [segmentGroupProps, localProps] = $derived(
25
+ let [createSegmentGroupProps, localProps] = $derived(
26
26
  createSplitProps<CreateSegmentGroupProps>([
27
27
  'id',
28
28
  'ids',
@@ -36,7 +36,7 @@
36
36
  ])(props),
37
37
  );
38
38
 
39
- let segmentGroup = createSegmentGroup(reflect(() => segmentGroupProps));
39
+ let segmentGroup = createSegmentGroup(reflect(() => createSegmentGroupProps));
40
40
 
41
41
  let mergedProps = $derived(
42
42
  mergeProps(localProps, segmentGroup.getRootProps(), parts.root.attrs),
@@ -25,7 +25,7 @@
25
25
 
26
26
  let {this: e, asChild, children, ...props}: SelectProps<T> = $props();
27
27
 
28
- let [selectProps, rest] = $derived(
28
+ let [createSelectProps, rest] = $derived(
29
29
  createSplitProps<CreateSelectProps<T>>([
30
30
  'id',
31
31
  'ids',
@@ -43,6 +43,7 @@
43
43
  'loopFocus',
44
44
  'composite',
45
45
  'positioning',
46
+ 'deselectable',
46
47
  'closeOnSelect',
47
48
  'highlightedValue',
48
49
  'itemToValue',
@@ -62,7 +63,7 @@
62
63
  createSplitProps<PresenceStrategyProps>(['lazyMount', 'keepMounted'])(rest),
63
64
  );
64
65
 
65
- let select = createSelect(reflect(() => selectProps));
66
+ let select = createSelect(reflect(() => createSelectProps));
66
67
  let presence = createPresence(
67
68
  reflect(() => ({
68
69
  ...presenceStrategyProps,
@@ -21,7 +21,7 @@
21
21
 
22
22
  let {this: e, asChild, children, ...props}: SignaturePadProps = $props();
23
23
 
24
- let [signaturePadProps, localProps] = $derived(
24
+ let [createSignaturePadProps, localProps] = $derived(
25
25
  createSplitProps<CreateSignaturePadProps>([
26
26
  'id',
27
27
  'ids',
@@ -36,7 +36,7 @@
36
36
  ])(props),
37
37
  );
38
38
 
39
- let signaturePad = createSignaturePad(reflect(() => signaturePadProps));
39
+ let signaturePad = createSignaturePad(reflect(() => createSignaturePadProps));
40
40
 
41
41
  let mergedProps = $derived(
42
42
  mergeProps(localProps, signaturePad.getRootProps()),
@@ -21,7 +21,7 @@
21
21
 
22
22
  let {this: e, asChild, children, ...props}: SliderProps = $props();
23
23
 
24
- let [sliderProps, localProps] = $derived(
24
+ let [createSliderProps, localProps] = $derived(
25
25
  createSplitProps<CreateSliderProps>([
26
26
  'id',
27
27
  'ids',
@@ -48,7 +48,7 @@
48
48
  ])(props),
49
49
  );
50
50
 
51
- let slider = createSlider(reflect(() => sliderProps));
51
+ let slider = createSlider(reflect(() => createSliderProps));
52
52
 
53
53
  let mergedProps = $derived(mergeProps(localProps, slider.getRootProps()));
54
54
 
@@ -21,7 +21,7 @@
21
21
 
22
22
  let {this: e, asChild, children, ...props}: SplitterProps = $props();
23
23
 
24
- let [splitterProps, localProps] = $derived(
24
+ let [createSplitterProps, localProps] = $derived(
25
25
  createSplitProps<CreateSplitterProps>([
26
26
  'id',
27
27
  'ids',
@@ -32,7 +32,7 @@
32
32
  ])(props),
33
33
  );
34
34
 
35
- let splitter = createSplitter(reflect(() => splitterProps));
35
+ let splitter = createSplitter(reflect(() => createSplitterProps));
36
36
 
37
37
  let mergedProps = $derived(mergeProps(localProps, splitter.getRootProps()));
38
38
 
@@ -21,7 +21,7 @@
21
21
 
22
22
  let {this: e, asChild, children, ...props}: StepsProps = $props();
23
23
 
24
- let [stepsProps, localProps] = $derived(
24
+ let [createStepsProps, localProps] = $derived(
25
25
  createSplitProps<CreateStepsProps>([
26
26
  'id',
27
27
  'ids',
@@ -34,7 +34,7 @@
34
34
  ])(props),
35
35
  );
36
36
 
37
- let steps = createSteps(reflect(() => stepsProps));
37
+ let steps = createSteps(reflect(() => createStepsProps));
38
38
 
39
39
  let mergedProps = $derived(mergeProps(localProps, steps.getRootProps()));
40
40