@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/cjs/index.js
CHANGED
|
@@ -698,6 +698,7 @@ function useCheckboxGroup(props = {}) {
|
|
|
698
698
|
toggleValue(itemProps.value);
|
|
699
699
|
}
|
|
700
700
|
},
|
|
701
|
+
name: props.name,
|
|
701
702
|
disabled: props.disabled,
|
|
702
703
|
readOnly: props.readOnly
|
|
703
704
|
};
|
|
@@ -705,6 +706,7 @@ function useCheckboxGroup(props = {}) {
|
|
|
705
706
|
return {
|
|
706
707
|
isChecked,
|
|
707
708
|
value,
|
|
709
|
+
name: props.name,
|
|
708
710
|
disabled: props.disabled,
|
|
709
711
|
readOnly: props.readOnly,
|
|
710
712
|
setValue,
|
|
@@ -722,7 +724,7 @@ const [CheckboxGroupContextProvider, useCheckboxGroupContext] = createContext({
|
|
|
722
724
|
});
|
|
723
725
|
|
|
724
726
|
const CheckboxGroup = props => {
|
|
725
|
-
const [checkboxGroupProps, localProps] = createSplitProps()(props, ['defaultValue', 'value', 'onValueChange', 'disabled', 'readOnly']);
|
|
727
|
+
const [checkboxGroupProps, localProps] = createSplitProps()(props, ['defaultValue', 'value', 'onValueChange', 'disabled', 'readOnly', 'name']);
|
|
726
728
|
const checkboxGroup = useCheckboxGroup(checkboxGroupProps);
|
|
727
729
|
return web.createComponent(CheckboxGroupContextProvider, {
|
|
728
730
|
value: checkboxGroup,
|
|
@@ -1708,7 +1710,9 @@ const ComboboxPositioner = props => {
|
|
|
1708
1710
|
|
|
1709
1711
|
const useCombobox = props => {
|
|
1710
1712
|
const [collectionOptions, comboboxProps] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
|
|
1711
|
-
const collection = () => combobox__namespace.collection(
|
|
1713
|
+
const collection = () => combobox__namespace.collection({
|
|
1714
|
+
...collectionOptions
|
|
1715
|
+
});
|
|
1712
1716
|
const locale = useLocaleContext();
|
|
1713
1717
|
const environment = useEnvironmentContext();
|
|
1714
1718
|
const id = solidJs.createUniqueId();
|
|
@@ -4340,7 +4344,9 @@ const SelectPositioner = props => {
|
|
|
4340
4344
|
|
|
4341
4345
|
const useSelect = props => {
|
|
4342
4346
|
const [collectionOptions, selectProps] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
|
|
4343
|
-
const collection = () => select__namespace.collection(
|
|
4347
|
+
const collection = () => select__namespace.collection({
|
|
4348
|
+
...collectionOptions
|
|
4349
|
+
});
|
|
4344
4350
|
const locale = useLocaleContext();
|
|
4345
4351
|
const environment = useEnvironmentContext();
|
|
4346
4352
|
const id = solidJs.createUniqueId();
|