ui-ingredients 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ export function useAccordionContext() {
13
13
  return getContext('Accordion');
14
14
  }
15
15
  export function setAccordionItemContext(value) {
16
- setContext('AccordionItem', reflect(() => value));
16
+ setContext('AccordionItem', value);
17
17
  }
18
18
  export function useAccordionItemContext() {
19
19
  return getContext('AccordionItem');
@@ -16,7 +16,7 @@ let {
16
16
  let context = createClipboardContext({
17
17
  id,
18
18
  ids,
19
- value,
19
+ value: $state.snapshot(value),
20
20
  timeout,
21
21
  onStatusChange,
22
22
  getRootNode
@@ -19,19 +19,19 @@ export function createComboboxContext(props) {
19
19
  return api;
20
20
  }
21
21
  export function setComboboxContext(value) {
22
- setContext('Combobox', reflect(() => value));
22
+ setContext('Combobox', value);
23
23
  }
24
24
  export function useComboboxContext() {
25
25
  return getContext('Combobox');
26
26
  }
27
27
  export function setComboboxItemContext(value) {
28
- setContext('ComboboxItem', reflect(() => value));
28
+ setContext('ComboboxItem', value);
29
29
  }
30
30
  export function useComboboxItemContext() {
31
31
  return getContext('ComboboxItem');
32
32
  }
33
33
  export function setComboboxItemGroupContext(value) {
34
- setContext('ComboboxItemGroup', reflect(() => value));
34
+ setContext('ComboboxItemGroup', value);
35
35
  }
36
36
  export function useComboboxItemGroupContext() {
37
37
  return getContext('ComboboxItemGroup');
@@ -59,7 +59,7 @@ let context = createComboboxContext({
59
59
  open,
60
60
  "open.controlled": openControlled,
61
61
  items,
62
- value,
62
+ value: $state.snapshot(value),
63
63
  invalid,
64
64
  disabled,
65
65
  multiple,
@@ -43,7 +43,7 @@ let context = createNumberInputContext({
43
43
  step,
44
44
  name,
45
45
  form,
46
- value,
46
+ value: $state.snapshot(value),
47
47
  locale,
48
48
  pattern,
49
49
  invalid,
@@ -13,7 +13,7 @@ export function useRadioGroupContext() {
13
13
  return getContext('RadioGroup');
14
14
  }
15
15
  export function setRadioGroupItemContext(value) {
16
- setContext('RadioGroupItem', reflect(() => value));
16
+ setContext('RadioGroupItem', value);
17
17
  }
18
18
  export function useRadioGroupItemContext() {
19
19
  return getContext('RadioGroupItem');
@@ -19,19 +19,19 @@ export function createSelectContext(props) {
19
19
  return api;
20
20
  }
21
21
  export function setSelectContext(value) {
22
- setContext('Select', reflect(() => value));
22
+ setContext('Select', value);
23
23
  }
24
24
  export function useSelectContext() {
25
25
  return getContext('Select');
26
26
  }
27
27
  export function setSelectItemGroupContext(value) {
28
- setContext('SelectItemGroup', reflect(() => value));
28
+ setContext('SelectItemGroup', value);
29
29
  }
30
30
  export function useSelectItemGroupContext() {
31
31
  return getContext('SelectItemGroup');
32
32
  }
33
33
  export function setSelectItemContext(value) {
34
- setContext('SelectItem', reflect(() => value));
34
+ setContext('SelectItem', value);
35
35
  }
36
36
  export function useSelectItemContext() {
37
37
  return getContext('SelectItem');
@@ -13,7 +13,7 @@ export function useSliderContext() {
13
13
  return getContext('Slider');
14
14
  }
15
15
  export function setSliderThumbContext(value) {
16
- setContext('SliderThumb', reflect(() => value));
16
+ setContext('SliderThumb', value);
17
17
  }
18
18
  export function useSliderThumbContext() {
19
19
  return getContext('SliderThumb');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ui-ingredients",
3
3
  "type": "module",
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
5
5
  "packageManager": "pnpm@9.7.0",
6
6
  "svelte": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",