@fluentui/react-checkbox 9.1.3 → 9.1.5
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/.swcrc +30 -0
- package/CHANGELOG.json +103 -1
- package/CHANGELOG.md +32 -2
- package/lib/Checkbox.js.map +1 -1
- package/lib/CheckboxField.js.map +1 -1
- package/lib/components/Checkbox/Checkbox.js.map +1 -1
- package/lib/components/Checkbox/Checkbox.types.js +1 -1
- package/lib/components/Checkbox/Checkbox.types.js.map +1 -1
- package/lib/components/Checkbox/index.js.map +1 -1
- package/lib/components/Checkbox/renderCheckbox.js +1 -11
- package/lib/components/Checkbox/renderCheckbox.js.map +1 -1
- package/lib/components/Checkbox/useCheckbox.js +1 -2
- package/lib/components/Checkbox/useCheckbox.js.map +1 -1
- package/lib/components/Checkbox/useCheckboxStyles.js.map +1 -1
- package/lib/components/CheckboxField/CheckboxField.js +1 -2
- package/lib/components/CheckboxField/CheckboxField.js.map +1 -1
- package/lib/components/CheckboxField/index.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Checkbox.js +5 -4
- package/lib-commonjs/Checkbox.js.map +1 -1
- package/lib-commonjs/CheckboxField.js +5 -4
- package/lib-commonjs/CheckboxField.js.map +1 -1
- package/lib-commonjs/components/Checkbox/Checkbox.js +19 -21
- package/lib-commonjs/components/Checkbox/Checkbox.js.map +1 -1
- package/lib-commonjs/components/Checkbox/Checkbox.types.js +5 -2
- package/lib-commonjs/components/Checkbox/Checkbox.types.js.map +1 -1
- package/lib-commonjs/components/Checkbox/index.js +9 -8
- package/lib-commonjs/components/Checkbox/index.js.map +1 -1
- package/lib-commonjs/components/Checkbox/renderCheckbox.js +13 -23
- package/lib-commonjs/components/Checkbox/renderCheckbox.js.map +1 -1
- package/lib-commonjs/components/Checkbox/useCheckbox.js +107 -113
- package/lib-commonjs/components/Checkbox/useCheckbox.js.map +1 -1
- package/lib-commonjs/components/Checkbox/useCheckboxStyles.js +344 -161
- package/lib-commonjs/components/Checkbox/useCheckboxStyles.js.map +1 -1
- package/lib-commonjs/components/CheckboxField/CheckboxField.js +27 -21
- package/lib-commonjs/components/CheckboxField/CheckboxField.js.map +1 -1
- package/lib-commonjs/components/CheckboxField/index.js +5 -4
- package/lib-commonjs/components/CheckboxField/index.js.map +1 -1
- package/lib-commonjs/index.js +21 -49
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +12 -11
- package/lib-amd/Checkbox.js +0 -6
- package/lib-amd/Checkbox.js.map +0 -1
- package/lib-amd/CheckboxField.js +0 -6
- package/lib-amd/CheckboxField.js.map +0 -1
- package/lib-amd/components/Checkbox/Checkbox.js +0 -18
- package/lib-amd/components/Checkbox/Checkbox.js.map +0 -1
- package/lib-amd/components/Checkbox/Checkbox.types.js +0 -5
- package/lib-amd/components/Checkbox/Checkbox.types.js.map +0 -1
- package/lib-amd/components/Checkbox/index.js +0 -10
- package/lib-amd/components/Checkbox/index.js.map +0 -1
- package/lib-amd/components/Checkbox/renderCheckbox.js +0 -15
- package/lib-amd/components/Checkbox/renderCheckbox.js.map +0 -1
- package/lib-amd/components/Checkbox/useCheckbox.js +0 -97
- package/lib-amd/components/Checkbox/useCheckbox.js.map +0 -1
- package/lib-amd/components/Checkbox/useCheckboxStyles.js +0 -163
- package/lib-amd/components/Checkbox/useCheckboxStyles.js.map +0 -1
- package/lib-amd/components/CheckboxField/CheckboxField.js +0 -12
- package/lib-amd/components/CheckboxField/CheckboxField.js.map +0 -1
- package/lib-amd/components/CheckboxField/index.js +0 -6
- package/lib-amd/components/CheckboxField/index.js.map +0 -1
- package/lib-amd/index.js +0 -13
- package/lib-amd/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Checkbox/index.js"],"sourcesContent":["export * from './Checkbox';\nexport * from './Checkbox.types';\nexport * from './renderCheckbox';\nexport * from './useCheckbox';\nexport * from './useCheckboxStyles';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA;CACd,iCAAiC"}
|
|
@@ -1,27 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "renderCheckbox_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>renderCheckbox_unstable
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const renderCheckbox_unstable = state
|
|
10
|
-
|
|
11
|
-
slots,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return React.createElement(slots.root, {
|
|
15
|
-
...slotProps.root
|
|
16
|
-
}, React.createElement(slots.input, {
|
|
17
|
-
...slotProps.input
|
|
18
|
-
}), state.labelPosition === 'before' && slots.label && React.createElement(slots.label, {
|
|
19
|
-
...slotProps.label
|
|
20
|
-
}), React.createElement(slots.indicator, {
|
|
21
|
-
...slotProps.indicator
|
|
22
|
-
}), state.labelPosition === 'after' && slots.label && React.createElement(slots.label, {
|
|
23
|
-
...slotProps.label
|
|
24
|
-
}));
|
|
25
|
-
};
|
|
26
|
-
exports.renderCheckbox_unstable = renderCheckbox_unstable;
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _reactUtilities = require("@fluentui/react-utilities");
|
|
12
|
+
const renderCheckbox_unstable = (state)=>{
|
|
13
|
+
const { slots , slotProps } = (0, _reactUtilities.getSlots)(state);
|
|
14
|
+
return /*#__PURE__*/ _react.createElement(slots.root, slotProps.root, /*#__PURE__*/ _react.createElement(slots.input, slotProps.input), state.labelPosition === 'before' && slots.label && /*#__PURE__*/ _react.createElement(slots.label, slotProps.label), /*#__PURE__*/ _react.createElement(slots.indicator, slotProps.indicator), state.labelPosition === 'after' && slots.label && /*#__PURE__*/ _react.createElement(slots.label, slotProps.label));
|
|
15
|
+
}; //# sourceMappingURL=renderCheckbox.js.map
|
|
16
|
+
|
|
27
17
|
//# sourceMappingURL=renderCheckbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Checkbox/renderCheckbox.js"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nexport const renderCheckbox_unstable = state => {\n const {\n slots,\n slotProps\n } = getSlots(state);\n return /*#__PURE__*/React.createElement(slots.root, slotProps.root, /*#__PURE__*/React.createElement(slots.input, slotProps.input), state.labelPosition === 'before' && slots.label && /*#__PURE__*/React.createElement(slots.label, slotProps.label), /*#__PURE__*/React.createElement(slots.indicator, slotProps.indicator), state.labelPosition === 'after' && slots.label && /*#__PURE__*/React.createElement(slots.label, slotProps.label));\n};\n//# sourceMappingURL=renderCheckbox.js.map"],"names":["renderCheckbox_unstable","state","slots","slotProps","getSlots","React","createElement","root","input","labelPosition","label","indicator"],"mappings":";;;;+BAEaA;;aAAAA;;;6DAFU;gCACE;AAClB,MAAMA,0BAA0BC,CAAAA,QAAS;IAC9C,MAAM,EACJC,MAAK,EACLC,UAAS,EACV,GAAGC,IAAAA,wBAAQ,EAACH;IACb,OAAO,WAAW,GAAEI,OAAMC,aAAa,CAACJ,MAAMK,IAAI,EAAEJ,UAAUI,IAAI,EAAE,WAAW,GAAEF,OAAMC,aAAa,CAACJ,MAAMM,KAAK,EAAEL,UAAUK,KAAK,GAAGP,MAAMQ,aAAa,KAAK,YAAYP,MAAMQ,KAAK,IAAI,WAAW,GAAEL,OAAMC,aAAa,CAACJ,MAAMQ,KAAK,EAAEP,UAAUO,KAAK,GAAG,WAAW,GAAEL,OAAMC,aAAa,CAACJ,MAAMS,SAAS,EAAER,UAAUQ,SAAS,GAAGV,MAAMQ,aAAa,KAAK,WAAWP,MAAMQ,KAAK,IAAI,WAAW,GAAEL,OAAMC,aAAa,CAACJ,MAAMQ,KAAK,EAAEP,UAAUO,KAAK;AAChb,GACA,0CAA0C"}
|
|
@@ -1,120 +1,114 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useCheckbox_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>useCheckbox_unstable
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const mixed = checked === 'mixed';
|
|
41
|
-
const id = react_utilities_1.useId('checkbox-', nativeProps.primary.id);
|
|
42
|
-
let checkmarkIcon;
|
|
43
|
-
if (mixed) {
|
|
44
|
-
if (shape === 'circular') {
|
|
45
|
-
checkmarkIcon = React.createElement(react_icons_1.CircleFilled, null);
|
|
46
|
-
} else {
|
|
47
|
-
checkmarkIcon = size === 'large' ? React.createElement(react_icons_1.Square16Filled, null) : React.createElement(react_icons_1.Square12Filled, null);
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _reactUtilities = require("@fluentui/react-utilities");
|
|
12
|
+
const _reactIcons = require("@fluentui/react-icons");
|
|
13
|
+
const _reactLabel = require("@fluentui/react-label");
|
|
14
|
+
const _reactTabster = require("@fluentui/react-tabster");
|
|
15
|
+
const useCheckbox_unstable = (props, ref)=>{
|
|
16
|
+
const { disabled =false , required , shape ='square' , size ='medium' , labelPosition ='after' , onChange } = props;
|
|
17
|
+
const [checked, setChecked] = (0, _reactUtilities.useControllableState)({
|
|
18
|
+
defaultState: props.defaultChecked,
|
|
19
|
+
state: props.checked,
|
|
20
|
+
initialState: false
|
|
21
|
+
});
|
|
22
|
+
const nativeProps = (0, _reactUtilities.getPartitionedNativeProps)({
|
|
23
|
+
props,
|
|
24
|
+
primarySlotTagName: 'input',
|
|
25
|
+
excludedPropNames: [
|
|
26
|
+
'checked',
|
|
27
|
+
'defaultChecked',
|
|
28
|
+
'size',
|
|
29
|
+
'onChange'
|
|
30
|
+
]
|
|
31
|
+
});
|
|
32
|
+
const mixed = checked === 'mixed';
|
|
33
|
+
const id = (0, _reactUtilities.useId)('checkbox-', nativeProps.primary.id);
|
|
34
|
+
let checkmarkIcon;
|
|
35
|
+
if (mixed) {
|
|
36
|
+
if (shape === 'circular') {
|
|
37
|
+
checkmarkIcon = /*#__PURE__*/ _react.createElement(_reactIcons.CircleFilled, null);
|
|
38
|
+
} else {
|
|
39
|
+
checkmarkIcon = size === 'large' ? /*#__PURE__*/ _react.createElement(_reactIcons.Square16Filled, null) : /*#__PURE__*/ _react.createElement(_reactIcons.Square12Filled, null);
|
|
40
|
+
}
|
|
41
|
+
} else if (checked) {
|
|
42
|
+
checkmarkIcon = size === 'large' ? /*#__PURE__*/ _react.createElement(_reactIcons.Checkmark16Filled, null) : /*#__PURE__*/ _react.createElement(_reactIcons.Checkmark12Filled, null);
|
|
48
43
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
const state = {
|
|
53
|
-
shape,
|
|
54
|
-
checked,
|
|
55
|
-
disabled,
|
|
56
|
-
size,
|
|
57
|
-
labelPosition,
|
|
58
|
-
components: {
|
|
59
|
-
root: 'span',
|
|
60
|
-
input: 'input',
|
|
61
|
-
indicator: 'div',
|
|
62
|
-
label: react_label_1.Label
|
|
63
|
-
},
|
|
64
|
-
root: react_utilities_1.resolveShorthand(props.root, {
|
|
65
|
-
required: true,
|
|
66
|
-
defaultProps: {
|
|
67
|
-
ref: react_tabster_1.useFocusWithin(),
|
|
68
|
-
...nativeProps.root
|
|
69
|
-
}
|
|
70
|
-
}),
|
|
71
|
-
input: react_utilities_1.resolveShorthand(props.input, {
|
|
72
|
-
required: true,
|
|
73
|
-
defaultProps: {
|
|
74
|
-
type: 'checkbox',
|
|
75
|
-
id,
|
|
76
|
-
ref,
|
|
77
|
-
checked: checked === true,
|
|
78
|
-
...nativeProps.primary
|
|
79
|
-
}
|
|
80
|
-
}),
|
|
81
|
-
label: react_utilities_1.resolveShorthand(props.label, {
|
|
82
|
-
required: false,
|
|
83
|
-
defaultProps: {
|
|
84
|
-
htmlFor: id,
|
|
44
|
+
const state = {
|
|
45
|
+
shape,
|
|
46
|
+
checked,
|
|
85
47
|
disabled,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
48
|
+
size,
|
|
49
|
+
labelPosition,
|
|
50
|
+
components: {
|
|
51
|
+
root: 'span',
|
|
52
|
+
input: 'input',
|
|
53
|
+
indicator: 'div',
|
|
54
|
+
label: _reactLabel.Label
|
|
55
|
+
},
|
|
56
|
+
root: (0, _reactUtilities.resolveShorthand)(props.root, {
|
|
57
|
+
required: true,
|
|
58
|
+
defaultProps: {
|
|
59
|
+
ref: (0, _reactTabster.useFocusWithin)(),
|
|
60
|
+
...nativeProps.root
|
|
61
|
+
}
|
|
62
|
+
}),
|
|
63
|
+
input: (0, _reactUtilities.resolveShorthand)(props.input, {
|
|
64
|
+
required: true,
|
|
65
|
+
defaultProps: {
|
|
66
|
+
type: 'checkbox',
|
|
67
|
+
id,
|
|
68
|
+
ref,
|
|
69
|
+
checked: checked === true,
|
|
70
|
+
...nativeProps.primary
|
|
71
|
+
}
|
|
72
|
+
}),
|
|
73
|
+
label: (0, _reactUtilities.resolveShorthand)(props.label, {
|
|
74
|
+
required: false,
|
|
75
|
+
defaultProps: {
|
|
76
|
+
htmlFor: id,
|
|
77
|
+
disabled,
|
|
78
|
+
required,
|
|
79
|
+
size: 'medium'
|
|
80
|
+
}
|
|
81
|
+
}),
|
|
82
|
+
indicator: (0, _reactUtilities.resolveShorthand)(props.indicator, {
|
|
83
|
+
required: true,
|
|
84
|
+
defaultProps: {
|
|
85
|
+
'aria-hidden': true,
|
|
86
|
+
children: checkmarkIcon
|
|
87
|
+
}
|
|
88
|
+
})
|
|
89
|
+
};
|
|
90
|
+
state.input.onChange = (0, _reactUtilities.useEventCallback)((ev)=>{
|
|
91
|
+
const val = ev.currentTarget.indeterminate ? 'mixed' : ev.currentTarget.checked;
|
|
92
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(ev, {
|
|
93
|
+
checked: val
|
|
94
|
+
});
|
|
95
|
+
setChecked(val);
|
|
103
96
|
});
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
97
|
+
// Create a ref object for the input element so we can use it to set the indeterminate prop.
|
|
98
|
+
// Use useMergedRefs, since the ref might be undefined or a function-ref (no .current)
|
|
99
|
+
const inputRef = (0, _reactUtilities.useMergedRefs)(state.input.ref);
|
|
100
|
+
state.input.ref = inputRef;
|
|
101
|
+
// Set the <input> element's checked and indeterminate properties based on our tri-state property.
|
|
102
|
+
// Since indeterminate can only be set via javascript, it has to be done in a layout effect.
|
|
103
|
+
(0, _reactUtilities.useIsomorphicLayoutEffect)(()=>{
|
|
104
|
+
if (inputRef.current) {
|
|
105
|
+
inputRef.current.indeterminate = mixed;
|
|
106
|
+
}
|
|
107
|
+
}, [
|
|
108
|
+
inputRef,
|
|
109
|
+
mixed
|
|
110
|
+
]);
|
|
111
|
+
return state;
|
|
112
|
+
}; //# sourceMappingURL=useCheckbox.js.map
|
|
113
|
+
|
|
120
114
|
//# sourceMappingURL=useCheckbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Checkbox/useCheckbox.js"],"sourcesContent":["import * as React from 'react';\nimport { getPartitionedNativeProps, resolveShorthand, useControllableState, useEventCallback, useId, useIsomorphicLayoutEffect, useMergedRefs } from '@fluentui/react-utilities';\nimport { Checkmark12Filled, Checkmark16Filled, Square12Filled, Square16Filled, CircleFilled } from '@fluentui/react-icons';\nimport { Label } from '@fluentui/react-label';\nimport { useFocusWithin } from '@fluentui/react-tabster';\n/**\n * Create the state required to render Checkbox.\n *\n * The returned state can be modified with hooks such as useCheckboxStyles_unstable,\n * before being passed to renderCheckbox_unstable.\n *\n * @param props - props from this instance of Checkbox\n * @param ref - reference to `<input>` element of Checkbox\n */\nexport const useCheckbox_unstable = (props, ref) => {\n const {\n disabled = false,\n required,\n shape = 'square',\n size = 'medium',\n labelPosition = 'after',\n onChange\n } = props;\n const [checked, setChecked] = useControllableState({\n defaultState: props.defaultChecked,\n state: props.checked,\n initialState: false\n });\n const nativeProps = getPartitionedNativeProps({\n props,\n primarySlotTagName: 'input',\n excludedPropNames: ['checked', 'defaultChecked', 'size', 'onChange']\n });\n const mixed = checked === 'mixed';\n const id = useId('checkbox-', nativeProps.primary.id);\n let checkmarkIcon;\n if (mixed) {\n if (shape === 'circular') {\n checkmarkIcon = /*#__PURE__*/React.createElement(CircleFilled, null);\n } else {\n checkmarkIcon = size === 'large' ? /*#__PURE__*/React.createElement(Square16Filled, null) : /*#__PURE__*/React.createElement(Square12Filled, null);\n }\n } else if (checked) {\n checkmarkIcon = size === 'large' ? /*#__PURE__*/React.createElement(Checkmark16Filled, null) : /*#__PURE__*/React.createElement(Checkmark12Filled, null);\n }\n const state = {\n shape,\n checked,\n disabled,\n size,\n labelPosition,\n components: {\n root: 'span',\n input: 'input',\n indicator: 'div',\n label: Label\n },\n root: resolveShorthand(props.root, {\n required: true,\n defaultProps: {\n ref: useFocusWithin(),\n ...nativeProps.root\n }\n }),\n input: resolveShorthand(props.input, {\n required: true,\n defaultProps: {\n type: 'checkbox',\n id,\n ref,\n checked: checked === true,\n ...nativeProps.primary\n }\n }),\n label: resolveShorthand(props.label, {\n required: false,\n defaultProps: {\n htmlFor: id,\n disabled,\n required,\n size: 'medium'\n }\n }),\n indicator: resolveShorthand(props.indicator, {\n required: true,\n defaultProps: {\n 'aria-hidden': true,\n children: checkmarkIcon\n }\n })\n };\n state.input.onChange = useEventCallback(ev => {\n const val = ev.currentTarget.indeterminate ? 'mixed' : ev.currentTarget.checked;\n onChange === null || onChange === void 0 ? void 0 : onChange(ev, {\n checked: val\n });\n setChecked(val);\n });\n // Create a ref object for the input element so we can use it to set the indeterminate prop.\n // Use useMergedRefs, since the ref might be undefined or a function-ref (no .current)\n const inputRef = useMergedRefs(state.input.ref);\n state.input.ref = inputRef;\n // Set the <input> element's checked and indeterminate properties based on our tri-state property.\n // Since indeterminate can only be set via javascript, it has to be done in a layout effect.\n useIsomorphicLayoutEffect(() => {\n if (inputRef.current) {\n inputRef.current.indeterminate = mixed;\n }\n }, [inputRef, mixed]);\n return state;\n};\n//# sourceMappingURL=useCheckbox.js.map"],"names":["useCheckbox_unstable","props","ref","disabled","required","shape","size","labelPosition","onChange","checked","setChecked","useControllableState","defaultState","defaultChecked","state","initialState","nativeProps","getPartitionedNativeProps","primarySlotTagName","excludedPropNames","mixed","id","useId","primary","checkmarkIcon","React","createElement","CircleFilled","Square16Filled","Square12Filled","Checkmark16Filled","Checkmark12Filled","components","root","input","indicator","label","Label","resolveShorthand","defaultProps","useFocusWithin","type","htmlFor","children","useEventCallback","ev","val","currentTarget","indeterminate","inputRef","useMergedRefs","useIsomorphicLayoutEffect","current"],"mappings":"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"}
|