@homebound/beam 2.132.4 → 2.133.0
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.
|
@@ -6,5 +6,6 @@ export declare type BoundCheckboxGroupFieldProps = Omit<CheckboxGroupProps, "val
|
|
|
6
6
|
onChange?: (values: string[]) => void;
|
|
7
7
|
label?: string;
|
|
8
8
|
};
|
|
9
|
-
/** Wraps `
|
|
9
|
+
/** Wraps `CheckboxGroup` and binds it to a form field.
|
|
10
|
+
* To make the field agnostic to the order of selected values, add `strictOrder: false` to the field's ObjectConfig */
|
|
10
11
|
export declare function BoundCheckboxGroupField(props: BoundCheckboxGroupFieldProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,8 @@ const mobx_react_1 = require("mobx-react");
|
|
|
6
6
|
const inputs_1 = require("../inputs");
|
|
7
7
|
const utils_1 = require("../utils");
|
|
8
8
|
const defaultLabel_1 = require("../utils/defaultLabel");
|
|
9
|
-
/** Wraps `
|
|
9
|
+
/** Wraps `CheckboxGroup` and binds it to a form field.
|
|
10
|
+
* To make the field agnostic to the order of selected values, add `strictOrder: false` to the field's ObjectConfig */
|
|
10
11
|
function BoundCheckboxGroupField(props) {
|
|
11
12
|
const { field, onChange = (value) => field.set(value), label = (0, defaultLabel_1.defaultLabel)(field.key), onBlur, onFocus, ...others } = props;
|
|
12
13
|
const testId = (0, utils_1.useTestIds)(props, field.key);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homebound/beam",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.133.0",
|
|
4
4
|
"author": "Homebound",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"format": "prettier --loglevel warn --write \"**/*.{ts,tsx,css,md}\""
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@homebound/form-state": "2.
|
|
35
|
+
"@homebound/form-state": "2.14.0",
|
|
36
36
|
"@internationalized/number": "^3.0.3",
|
|
37
37
|
"@react-aria/utils": "^3.11.3",
|
|
38
38
|
"@react-hook/resize-observer": "^1.2.2",
|