ui-ingredients 0.0.51 → 0.0.52

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,6 +34,7 @@ export function createCombobox(props) {
34
34
  getRootNode: environment?.getRootNode,
35
35
  collection,
36
36
  }));
37
+ /* FIXME: pass controlled context */
37
38
  const [state, send] = useMachine(combobox.machine(context));
38
39
  return reflect(() => {
39
40
  const o = combobox.connect(state, send, normalizeProps);
@@ -8,7 +8,8 @@ export function createDatePicker(props) {
8
8
  const locale = getLocaleContext();
9
9
  const environment = getEnvironmentContext();
10
10
  const id = uid();
11
- const context = reflect(() => ({
11
+ /* FIXME: use reflect */
12
+ const context = $derived.by(() => ({
12
13
  ...props,
13
14
  id: props.id ?? id,
14
15
  dir: locale?.dir,
@@ -34,6 +34,7 @@ export function createSelect(props) {
34
34
  getRootNode: environment?.getRootNode,
35
35
  collection,
36
36
  }));
37
+ /* FIXME: pass controlled context */
37
38
  const [state, send] = useMachine(select.machine(context));
38
39
  return reflect(() => {
39
40
  const o = select.connect(state, send, normalizeProps);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ui-ingredients",
3
3
  "type": "module",
4
- "version": "0.0.51",
4
+ "version": "0.0.52",
5
5
  "packageManager": "pnpm@9.7.0",
6
6
  "svelte": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",