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
|
-
|
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);
|