@ark-ui/solid 3.4.0 → 3.4.1
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 +9 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +9 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/source/components/checkbox/checkbox-group.jsx +1 -0
- package/dist/source/components/checkbox/use-checkbox-group.js +2 -0
- package/dist/source/components/combobox/use-combobox.js +1 -1
- package/dist/source/components/select/use-select.js +1 -1
- package/dist/types/components/checkbox/use-checkbox-group.d.ts +7 -0
- package/package.json +40 -40
package/dist/esm/index.js
CHANGED
|
@@ -644,6 +644,7 @@ function useCheckboxGroup(props = {}) {
|
|
|
644
644
|
toggleValue(itemProps.value);
|
|
645
645
|
}
|
|
646
646
|
},
|
|
647
|
+
name: props.name,
|
|
647
648
|
disabled: props.disabled,
|
|
648
649
|
readOnly: props.readOnly
|
|
649
650
|
};
|
|
@@ -651,6 +652,7 @@ function useCheckboxGroup(props = {}) {
|
|
|
651
652
|
return {
|
|
652
653
|
isChecked,
|
|
653
654
|
value,
|
|
655
|
+
name: props.name,
|
|
654
656
|
disabled: props.disabled,
|
|
655
657
|
readOnly: props.readOnly,
|
|
656
658
|
setValue,
|
|
@@ -668,7 +670,7 @@ const [CheckboxGroupContextProvider, useCheckboxGroupContext] = createContext({
|
|
|
668
670
|
});
|
|
669
671
|
|
|
670
672
|
const CheckboxGroup = props => {
|
|
671
|
-
const [checkboxGroupProps, localProps] = createSplitProps()(props, ['defaultValue', 'value', 'onValueChange', 'disabled', 'readOnly']);
|
|
673
|
+
const [checkboxGroupProps, localProps] = createSplitProps()(props, ['defaultValue', 'value', 'onValueChange', 'disabled', 'readOnly', 'name']);
|
|
672
674
|
const checkboxGroup = useCheckboxGroup(checkboxGroupProps);
|
|
673
675
|
return createComponent(CheckboxGroupContextProvider, {
|
|
674
676
|
value: checkboxGroup,
|
|
@@ -1654,7 +1656,9 @@ const ComboboxPositioner = props => {
|
|
|
1654
1656
|
|
|
1655
1657
|
const useCombobox = props => {
|
|
1656
1658
|
const [collectionOptions, comboboxProps] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
|
|
1657
|
-
const collection = () => combobox$1.collection(
|
|
1659
|
+
const collection = () => combobox$1.collection({
|
|
1660
|
+
...collectionOptions
|
|
1661
|
+
});
|
|
1658
1662
|
const locale = useLocaleContext();
|
|
1659
1663
|
const environment = useEnvironmentContext();
|
|
1660
1664
|
const id = createUniqueId();
|
|
@@ -4286,7 +4290,9 @@ const SelectPositioner = props => {
|
|
|
4286
4290
|
|
|
4287
4291
|
const useSelect = props => {
|
|
4288
4292
|
const [collectionOptions, selectProps] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
|
|
4289
|
-
const collection = () => select$1.collection(
|
|
4293
|
+
const collection = () => select$1.collection({
|
|
4294
|
+
...collectionOptions
|
|
4295
|
+
});
|
|
4290
4296
|
const locale = useLocaleContext();
|
|
4291
4297
|
const environment = useEnvironmentContext();
|
|
4292
4298
|
const id = createUniqueId();
|