@ark-ui/solid 3.0.0-3 → 3.0.0-4
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.
package/dist/cjs/index.js
CHANGED
|
@@ -1224,7 +1224,7 @@ const ComboboxPositioner = props => {
|
|
|
1224
1224
|
|
|
1225
1225
|
const useCombobox = props => {
|
|
1226
1226
|
const [collectionOptions, rest] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
|
|
1227
|
-
const collection = () => combobox__namespace.collection(collectionOptions);
|
|
1227
|
+
const collection = solidJs.createMemo(() => combobox__namespace.collection(collectionOptions));
|
|
1228
1228
|
const locale = useLocaleContext();
|
|
1229
1229
|
const environment = useEnvironmentContext();
|
|
1230
1230
|
const context = solid.mergeProps({
|
|
@@ -1232,7 +1232,9 @@ const useCombobox = props => {
|
|
|
1232
1232
|
dir: locale().dir,
|
|
1233
1233
|
getRootNode: environment().getRootNode,
|
|
1234
1234
|
'open.controlled': props.open !== undefined,
|
|
1235
|
-
|
|
1235
|
+
get collection() {
|
|
1236
|
+
return collection();
|
|
1237
|
+
}
|
|
1236
1238
|
}, rest);
|
|
1237
1239
|
const [state, send] = solid.useMachine(combobox__namespace.machine(context), {
|
|
1238
1240
|
context
|
|
@@ -3335,17 +3337,19 @@ const SelectPositioner = props => {
|
|
|
3335
3337
|
};
|
|
3336
3338
|
|
|
3337
3339
|
const useSelect = props => {
|
|
3338
|
-
const [collectionOptions,
|
|
3339
|
-
const collection = () => select__namespace.collection(collectionOptions);
|
|
3340
|
+
const [collectionOptions, localProps] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
|
|
3341
|
+
const collection = solidJs.createMemo(() => select__namespace.collection(collectionOptions));
|
|
3340
3342
|
const locale = useLocaleContext();
|
|
3341
3343
|
const environment = useEnvironmentContext();
|
|
3342
3344
|
const context = solid.mergeProps({
|
|
3343
3345
|
id: solidJs.createUniqueId(),
|
|
3344
3346
|
dir: locale().dir,
|
|
3345
3347
|
getRootNode: environment().getRootNode,
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3348
|
+
'open.controlled': props.open !== undefined,
|
|
3349
|
+
get collection() {
|
|
3350
|
+
return collection();
|
|
3351
|
+
}
|
|
3352
|
+
}, localProps);
|
|
3349
3353
|
const [state, send] = solid.useMachine(select__namespace.machine(context), {
|
|
3350
3354
|
context
|
|
3351
3355
|
});
|