@fluentui/react-radio 9.1.3 → 9.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/.swcrc +30 -0
- package/CHANGELOG.json +115 -1
- package/CHANGELOG.md +34 -2
- package/lib/Radio.js.map +1 -1
- package/lib/RadioGroup.js.map +1 -1
- package/lib/RadioGroupField.js.map +1 -1
- package/lib/components/Radio/Radio.js.map +1 -1
- package/lib/components/Radio/Radio.types.js +1 -1
- package/lib/components/Radio/Radio.types.js.map +1 -1
- package/lib/components/Radio/index.js.map +1 -1
- package/lib/components/Radio/renderRadio.js +1 -9
- package/lib/components/Radio/renderRadio.js.map +1 -1
- package/lib/components/Radio/useRadio.js +5 -3
- package/lib/components/Radio/useRadio.js.map +1 -1
- package/lib/components/Radio/useRadioStyles.js.map +1 -1
- package/lib/components/RadioGroup/RadioGroup.js.map +1 -1
- package/lib/components/RadioGroup/RadioGroup.types.js +1 -1
- package/lib/components/RadioGroup/RadioGroup.types.js.map +1 -1
- package/lib/components/RadioGroup/index.js.map +1 -1
- package/lib/components/RadioGroup/renderRadioGroup.js +1 -3
- package/lib/components/RadioGroup/renderRadioGroup.js.map +1 -1
- package/lib/components/RadioGroup/useRadioGroup.js +1 -0
- package/lib/components/RadioGroup/useRadioGroup.js.map +1 -1
- package/lib/components/RadioGroup/useRadioGroupStyles.js.map +1 -1
- package/lib/components/RadioGroupField/RadioGroupField.js +1 -2
- package/lib/components/RadioGroupField/RadioGroupField.js.map +1 -1
- package/lib/components/RadioGroupField/index.js.map +1 -1
- package/lib/contexts/RadioGroupContext.js.map +1 -1
- package/lib/contexts/index.js.map +1 -1
- package/lib/contexts/useRadioGroupContextValues.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Radio.js +5 -4
- package/lib-commonjs/Radio.js.map +1 -1
- package/lib-commonjs/RadioGroup.js +5 -4
- package/lib-commonjs/RadioGroup.js.map +1 -1
- package/lib-commonjs/RadioGroupField.js +5 -4
- package/lib-commonjs/RadioGroupField.js.map +1 -1
- package/lib-commonjs/components/Radio/Radio.js +19 -20
- package/lib-commonjs/components/Radio/Radio.js.map +1 -1
- package/lib-commonjs/components/Radio/Radio.types.js +5 -2
- package/lib-commonjs/components/Radio/Radio.types.js.map +1 -1
- package/lib-commonjs/components/Radio/index.js +9 -8
- package/lib-commonjs/components/Radio/index.js.map +1 -1
- package/lib-commonjs/components/Radio/renderRadio.js +13 -24
- package/lib-commonjs/components/Radio/renderRadio.js.map +1 -1
- package/lib-commonjs/components/Radio/useRadio.js +83 -91
- package/lib-commonjs/components/Radio/useRadio.js.map +1 -1
- package/lib-commonjs/components/Radio/useRadioStyles.js +139 -65
- package/lib-commonjs/components/Radio/useRadioStyles.js.map +1 -1
- package/lib-commonjs/components/RadioGroup/RadioGroup.js +21 -22
- package/lib-commonjs/components/RadioGroup/RadioGroup.js.map +1 -1
- package/lib-commonjs/components/RadioGroup/RadioGroup.types.js +5 -2
- package/lib-commonjs/components/RadioGroup/RadioGroup.types.js.map +1 -1
- package/lib-commonjs/components/RadioGroup/index.js +9 -8
- package/lib-commonjs/components/RadioGroup/index.js.map +1 -1
- package/lib-commonjs/components/RadioGroup/renderRadioGroup.js +16 -21
- package/lib-commonjs/components/RadioGroup/renderRadioGroup.js.map +1 -1
- package/lib-commonjs/components/RadioGroup/useRadioGroup.js +40 -50
- package/lib-commonjs/components/RadioGroup/useRadioGroup.js.map +1 -1
- package/lib-commonjs/components/RadioGroup/useRadioGroupStyles.js +32 -23
- package/lib-commonjs/components/RadioGroup/useRadioGroupStyles.js.map +1 -1
- package/lib-commonjs/components/RadioGroupField/RadioGroupField.js +17 -11
- package/lib-commonjs/components/RadioGroupField/RadioGroupField.js.map +1 -1
- package/lib-commonjs/components/RadioGroupField/index.js +5 -4
- package/lib-commonjs/components/RadioGroupField/index.js.map +1 -1
- package/lib-commonjs/contexts/RadioGroupContext.js +17 -11
- package/lib-commonjs/contexts/RadioGroupContext.js.map +1 -1
- package/lib-commonjs/contexts/index.js +6 -5
- package/lib-commonjs/contexts/index.js.map +1 -1
- package/lib-commonjs/contexts/useRadioGroupContextValues.js +20 -25
- package/lib-commonjs/contexts/useRadioGroupContextValues.js.map +1 -1
- package/lib-commonjs/index.js +31 -99
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +13 -12
- package/lib-amd/Radio.js +0 -6
- package/lib-amd/Radio.js.map +0 -1
- package/lib-amd/RadioGroup.js +0 -6
- package/lib-amd/RadioGroup.js.map +0 -1
- package/lib-amd/RadioGroupField.js +0 -6
- package/lib-amd/RadioGroupField.js.map +0 -1
- package/lib-amd/components/Radio/Radio.js +0 -17
- package/lib-amd/components/Radio/Radio.js.map +0 -1
- package/lib-amd/components/Radio/Radio.types.js +0 -5
- package/lib-amd/components/Radio/Radio.types.js.map +0 -1
- package/lib-amd/components/Radio/index.js +0 -10
- package/lib-amd/components/Radio/index.js.map +0 -1
- package/lib-amd/components/Radio/renderRadio.js +0 -17
- package/lib-amd/components/Radio/renderRadio.js.map +0 -1
- package/lib-amd/components/Radio/useRadio.js +0 -65
- package/lib-amd/components/Radio/useRadio.js.map +0 -1
- package/lib-amd/components/Radio/useRadioStyles.js +0 -158
- package/lib-amd/components/Radio/useRadioStyles.js.map +0 -1
- package/lib-amd/components/RadioGroup/RadioGroup.js +0 -18
- package/lib-amd/components/RadioGroup/RadioGroup.js.map +0 -1
- package/lib-amd/components/RadioGroup/RadioGroup.types.js +0 -5
- package/lib-amd/components/RadioGroup/RadioGroup.types.js.map +0 -1
- package/lib-amd/components/RadioGroup/index.js +0 -10
- package/lib-amd/components/RadioGroup/index.js.map +0 -1
- package/lib-amd/components/RadioGroup/renderRadioGroup.js +0 -15
- package/lib-amd/components/RadioGroup/renderRadioGroup.js.map +0 -1
- package/lib-amd/components/RadioGroup/useRadioGroup.js +0 -38
- package/lib-amd/components/RadioGroup/useRadioGroup.js.map +0 -1
- package/lib-amd/components/RadioGroup/useRadioGroupStyles.js +0 -26
- package/lib-amd/components/RadioGroup/useRadioGroupStyles.js.map +0 -1
- package/lib-amd/components/RadioGroupField/RadioGroupField.js +0 -10
- package/lib-amd/components/RadioGroupField/RadioGroupField.js.map +0 -1
- package/lib-amd/components/RadioGroupField/index.js +0 -6
- package/lib-amd/components/RadioGroupField/index.js.map +0 -1
- package/lib-amd/contexts/RadioGroupContext.js +0 -19
- package/lib-amd/contexts/RadioGroupContext.js.map +0 -1
- package/lib-amd/contexts/index.js +0 -7
- package/lib-amd/contexts/index.js.map +0 -1
- package/lib-amd/contexts/useRadioGroupContextValues.js +0 -19
- package/lib-amd/contexts/useRadioGroupContextValues.js.map +0 -1
- package/lib-amd/index.js +0 -21
- package/lib-amd/index.js.map +0 -1
@@ -1,30 +1,39 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
function _export(target, all) {
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
7
|
+
enumerable: true,
|
8
|
+
get: all[name]
|
9
|
+
});
|
10
|
+
}
|
11
|
+
_export(exports, {
|
12
|
+
radioGroupClassNames: ()=>radioGroupClassNames,
|
13
|
+
useRadioGroupStyles_unstable: ()=>useRadioGroupStyles_unstable
|
5
14
|
});
|
6
|
-
|
7
|
-
const
|
8
|
-
|
9
|
-
root: 'fui-RadioGroup'
|
15
|
+
const _react = require("@griffel/react");
|
16
|
+
const radioGroupClassNames = {
|
17
|
+
root: 'fui-RadioGroup'
|
10
18
|
};
|
11
|
-
const useStyles = /*#__PURE__*/
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
+
const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
|
20
|
+
root: {
|
21
|
+
mc9l5x: "f22iagw",
|
22
|
+
Bt984gj: "f6jr5hl"
|
23
|
+
},
|
24
|
+
vertical: {
|
25
|
+
Beiy3e4: "f1vx9l62"
|
26
|
+
}
|
19
27
|
}, {
|
20
|
-
|
28
|
+
d: [
|
29
|
+
".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}",
|
30
|
+
".f6jr5hl{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}",
|
31
|
+
".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}"
|
32
|
+
]
|
21
33
|
});
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
state.root.className = react_1.mergeClasses(exports.radioGroupClassNames.root, styles.root, state.layout === 'vertical' && styles.vertical, state.root.className);
|
28
|
-
};
|
29
|
-
exports.useRadioGroupStyles_unstable = useRadioGroupStyles_unstable;
|
34
|
+
const useRadioGroupStyles_unstable = (state)=>{
|
35
|
+
const styles = useStyles();
|
36
|
+
state.root.className = (0, _react.mergeClasses)(radioGroupClassNames.root, styles.root, state.layout === 'vertical' && styles.vertical, state.root.className);
|
37
|
+
}; //# sourceMappingURL=useRadioGroupStyles.js.map
|
38
|
+
|
30
39
|
//# sourceMappingURL=useRadioGroupStyles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../../lib/components/RadioGroup/useRadioGroupStyles.js"],"sourcesContent":["import { __styles, mergeClasses } from '@griffel/react';\nexport const radioGroupClassNames = {\n root: 'fui-RadioGroup'\n};\nconst useStyles = /*#__PURE__*/__styles({\n root: {\n mc9l5x: \"f22iagw\",\n Bt984gj: \"f6jr5hl\"\n },\n vertical: {\n Beiy3e4: \"f1vx9l62\"\n }\n}, {\n d: [\".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}\", \".f6jr5hl{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}\", \".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}\"]\n});\n/**\n * Apply styling to the RadioGroup slots based on the state\n */\nexport const useRadioGroupStyles_unstable = state => {\n const styles = useStyles();\n state.root.className = mergeClasses(radioGroupClassNames.root, styles.root, state.layout === 'vertical' && styles.vertical, state.root.className);\n};\n//# sourceMappingURL=useRadioGroupStyles.js.map"],"names":["radioGroupClassNames","useRadioGroupStyles_unstable","root","useStyles","__styles","mc9l5x","Bt984gj","vertical","Beiy3e4","d","state","styles","className","mergeClasses","layout"],"mappings":";;;;;;;;;;;IACaA,oBAAoB,MAApBA;IAiBAC,4BAA4B,MAA5BA;;uBAlB0B;AAChC,MAAMD,uBAAuB;IAClCE,MAAM;AACR;AACA,MAAMC,YAAY,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IACtCF,MAAM;QACJG,QAAQ;QACRC,SAAS;IACX;IACAC,UAAU;QACRC,SAAS;IACX;AACF,GAAG;IACDC,GAAG;QAAC;QAAwF;QAA2H;KAA4F;AACrT;AAIO,MAAMR,+BAA+BS,CAAAA,QAAS;IACnD,MAAMC,SAASR;IACfO,MAAMR,IAAI,CAACU,SAAS,GAAGC,IAAAA,mBAAY,EAACb,qBAAqBE,IAAI,EAAES,OAAOT,IAAI,EAAEQ,MAAMI,MAAM,KAAK,cAAcH,OAAOJ,QAAQ,EAAEG,MAAMR,IAAI,CAACU,SAAS;AAClJ,GACA,+CAA+C"}
|
@@ -1,14 +1,20 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
1
|
+
/* eslint-disable deprecation/deprecation */ "use strict";
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
function _export(target, all) {
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
7
|
+
enumerable: true,
|
8
|
+
get: all[name]
|
9
|
+
});
|
10
|
+
}
|
11
|
+
_export(exports, {
|
12
|
+
radioGroupFieldClassNames: ()=>radioGroupFieldClassNames,
|
13
|
+
RadioGroupField: ()=>RadioGroupField
|
5
14
|
});
|
6
|
-
|
7
|
-
|
8
|
-
const
|
9
|
-
const
|
10
|
-
|
11
|
-
exports.radioGroupFieldClassNames = /*#__PURE__*/react_field_1.getDeprecatedFieldClassNames(RadioGroup_1.radioGroupClassNames.root);
|
12
|
-
/** @deprecated Use Field with RadioGroup: `<Field><RadioGroup /></Field>` */
|
13
|
-
exports.RadioGroupField = /*#__PURE__*/react_field_1.makeDeprecatedField(RadioGroup_1.RadioGroup);
|
15
|
+
const _reactField = require("@fluentui/react-field");
|
16
|
+
const _radioGroup = require("../../RadioGroup");
|
17
|
+
const radioGroupFieldClassNames = /*#__PURE__*/ (0, _reactField.getDeprecatedFieldClassNames)(_radioGroup.radioGroupClassNames.root);
|
18
|
+
const RadioGroupField = /*#__PURE__*/ (0, _reactField.makeDeprecatedField)(_radioGroup.RadioGroup); //# sourceMappingURL=RadioGroupField.js.map
|
19
|
+
|
14
20
|
//# sourceMappingURL=RadioGroupField.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../../lib/components/RadioGroupField/RadioGroupField.js"],"sourcesContent":["/* eslint-disable deprecation/deprecation */import { getDeprecatedFieldClassNames, makeDeprecatedField } from '@fluentui/react-field';\nimport { RadioGroup, radioGroupClassNames } from '../../RadioGroup';\n/** @deprecated Use Field with RadioGroup: `<Field><RadioGroup /></Field>` */\nexport const radioGroupFieldClassNames = /*#__PURE__*/getDeprecatedFieldClassNames(radioGroupClassNames.root);\n/** @deprecated Use Field with RadioGroup: `<Field><RadioGroup /></Field>` */\nexport const RadioGroupField = /*#__PURE__*/makeDeprecatedField(RadioGroup);\n//# sourceMappingURL=RadioGroupField.js.map"],"names":["radioGroupFieldClassNames","RadioGroupField","getDeprecatedFieldClassNames","radioGroupClassNames","root","makeDeprecatedField","RadioGroup"],"mappings":"AAAA,0CAA0C;;;;;;;;;;;IAG7BA,yBAAyB,MAAzBA;IAEAC,eAAe,MAAfA;;4BALiG;4BAC7D;AAE1C,MAAMD,4BAA4B,WAAW,GAAEE,IAAAA,wCAA4B,EAACC,gCAAoB,CAACC,IAAI;AAErG,MAAMH,kBAAkB,WAAW,GAAEI,IAAAA,+BAAmB,EAACC,sBAAU,GAC1E,2CAA2C"}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
5
4
|
});
|
6
|
-
const
|
7
|
-
|
5
|
+
const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
6
|
+
_exportStar(require("./RadioGroupField"), exports);
|
7
|
+
//# sourceMappingURL=index.js.map
|
8
|
+
|
8
9
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../../lib/components/RadioGroupField/index.js"],"sourcesContent":["export * from './RadioGroupField';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;CACd,iCAAiC"}
|
@@ -1,16 +1,22 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
function _export(target, all) {
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
7
|
+
enumerable: true,
|
8
|
+
get: all[name]
|
9
|
+
});
|
10
|
+
}
|
11
|
+
_export(exports, {
|
12
|
+
RadioGroupContext: ()=>RadioGroupContext,
|
13
|
+
RadioGroupProvider: ()=>RadioGroupProvider,
|
14
|
+
useRadioGroupContext_unstable: ()=>useRadioGroupContext_unstable
|
5
15
|
});
|
6
|
-
|
7
|
-
const
|
8
|
-
/**
|
9
|
-
* RadioGroupContext is provided by RadioGroup, and is consumed by Radio to determine default values of some props.
|
10
|
-
*/
|
11
|
-
exports.RadioGroupContext = /*#__PURE__*/react_context_selector_1.createContext(undefined);
|
16
|
+
const _reactContextSelector = require("@fluentui/react-context-selector");
|
17
|
+
const RadioGroupContext = /*#__PURE__*/ (0, _reactContextSelector.createContext)(undefined);
|
12
18
|
const radioGroupContextDefaultValue = {};
|
13
|
-
|
14
|
-
const useRadioGroupContext_unstable = selector
|
15
|
-
|
19
|
+
const RadioGroupProvider = RadioGroupContext.Provider;
|
20
|
+
const useRadioGroupContext_unstable = (selector)=>(0, _reactContextSelector.useContextSelector)(RadioGroupContext, (ctx = radioGroupContextDefaultValue)=>selector(ctx)); //# sourceMappingURL=RadioGroupContext.js.map
|
21
|
+
|
16
22
|
//# sourceMappingURL=RadioGroupContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../lib/contexts/RadioGroupContext.js"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\n/**\n * RadioGroupContext is provided by RadioGroup, and is consumed by Radio to determine default values of some props.\n */\nexport const RadioGroupContext = /*#__PURE__*/createContext(undefined);\nconst radioGroupContextDefaultValue = {};\nexport const RadioGroupProvider = RadioGroupContext.Provider;\nexport const useRadioGroupContext_unstable = selector => useContextSelector(RadioGroupContext, (ctx = radioGroupContextDefaultValue) => selector(ctx));\n//# sourceMappingURL=RadioGroupContext.js.map"],"names":["RadioGroupContext","RadioGroupProvider","useRadioGroupContext_unstable","createContext","undefined","radioGroupContextDefaultValue","Provider","selector","useContextSelector","ctx"],"mappings":";;;;;;;;;;;IAIaA,iBAAiB,MAAjBA;IAEAC,kBAAkB,MAAlBA;IACAC,6BAA6B,MAA7BA;;sCAPqC;AAI3C,MAAMF,oBAAoB,WAAW,GAAEG,IAAAA,mCAAa,EAACC;AAC5D,MAAMC,gCAAgC,CAAC;AAChC,MAAMJ,qBAAqBD,kBAAkBM,QAAQ;AACrD,MAAMJ,gCAAgCK,CAAAA,WAAYC,IAAAA,wCAAkB,EAACR,mBAAmB,CAACS,MAAMJ,6BAA6B,GAAKE,SAASE,OACjJ,6CAA6C"}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
5
4
|
});
|
6
|
-
const
|
7
|
-
|
8
|
-
|
5
|
+
const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
6
|
+
_exportStar(require("./RadioGroupContext"), exports);
|
7
|
+
_exportStar(require("./useRadioGroupContextValues"), exports);
|
8
|
+
//# sourceMappingURL=index.js.map
|
9
|
+
|
9
10
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../lib/contexts/index.js"],"sourcesContent":["export * from './RadioGroupContext';\nexport * from './useRadioGroupContextValues';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;oBACA;CACd,iCAAiC"}
|
@@ -1,29 +1,24 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
Object.defineProperty(exports, "useRadioGroupContextValues", {
|
6
|
+
enumerable: true,
|
7
|
+
get: ()=>useRadioGroupContextValues
|
5
8
|
});
|
6
|
-
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
layout,
|
22
|
-
required
|
23
|
-
};
|
24
|
-
return {
|
25
|
-
radioGroup
|
26
|
-
};
|
27
|
-
};
|
28
|
-
exports.useRadioGroupContextValues = useRadioGroupContextValues;
|
9
|
+
const useRadioGroupContextValues = (state)=>{
|
10
|
+
const { name , value , defaultValue , disabled , layout , required } = state;
|
11
|
+
const radioGroup = {
|
12
|
+
name,
|
13
|
+
value,
|
14
|
+
defaultValue,
|
15
|
+
disabled,
|
16
|
+
layout,
|
17
|
+
required
|
18
|
+
};
|
19
|
+
return {
|
20
|
+
radioGroup
|
21
|
+
};
|
22
|
+
}; //# sourceMappingURL=useRadioGroupContextValues.js.map
|
23
|
+
|
29
24
|
//# sourceMappingURL=useRadioGroupContextValues.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../lib/contexts/useRadioGroupContextValues.js"],"sourcesContent":["export const useRadioGroupContextValues = state => {\n const {\n name,\n value,\n defaultValue,\n disabled,\n layout,\n required\n } = state;\n const radioGroup = {\n name,\n value,\n defaultValue,\n disabled,\n layout,\n required\n };\n return {\n radioGroup\n };\n};\n//# sourceMappingURL=useRadioGroupContextValues.js.map"],"names":["useRadioGroupContextValues","state","name","value","defaultValue","disabled","layout","required","radioGroup"],"mappings":";;;;+BAAaA;;aAAAA;;AAAN,MAAMA,6BAA6BC,CAAAA,QAAS;IACjD,MAAM,EACJC,KAAI,EACJC,MAAK,EACLC,aAAY,EACZC,SAAQ,EACRC,OAAM,EACNC,SAAQ,EACT,GAAGN;IACJ,MAAMO,aAAa;QACjBN;QACAC;QACAC;QACAC;QACAC;QACAC;IACF;IACA,OAAO;QACLC;IACF;AACF,GACA,sDAAsD"}
|
package/lib-commonjs/index.js
CHANGED
@@ -1,102 +1,34 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
5
|
-
});
|
6
|
-
|
7
|
-
var
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
return RadioGroup_1.useRadioGroup_unstable;
|
36
|
-
}
|
37
|
-
});
|
38
|
-
var Radio_1 = /*#__PURE__*/require("./Radio");
|
39
|
-
Object.defineProperty(exports, "Radio", {
|
40
|
-
enumerable: true,
|
41
|
-
get: function () {
|
42
|
-
return Radio_1.Radio;
|
43
|
-
}
|
44
|
-
});
|
45
|
-
Object.defineProperty(exports, "radioClassNames", {
|
46
|
-
enumerable: true,
|
47
|
-
get: function () {
|
48
|
-
return Radio_1.radioClassNames;
|
49
|
-
}
|
50
|
-
});
|
51
|
-
Object.defineProperty(exports, "renderRadio_unstable", {
|
52
|
-
enumerable: true,
|
53
|
-
get: function () {
|
54
|
-
return Radio_1.renderRadio_unstable;
|
55
|
-
}
|
56
|
-
});
|
57
|
-
Object.defineProperty(exports, "useRadioStyles_unstable", {
|
58
|
-
enumerable: true,
|
59
|
-
get: function () {
|
60
|
-
return Radio_1.useRadioStyles_unstable;
|
61
|
-
}
|
62
|
-
});
|
63
|
-
Object.defineProperty(exports, "useRadio_unstable", {
|
64
|
-
enumerable: true,
|
65
|
-
get: function () {
|
66
|
-
return Radio_1.useRadio_unstable;
|
67
|
-
}
|
68
|
-
});
|
69
|
-
var index_1 = /*#__PURE__*/require("./contexts/index");
|
70
|
-
Object.defineProperty(exports, "RadioGroupProvider", {
|
71
|
-
enumerable: true,
|
72
|
-
get: function () {
|
73
|
-
return index_1.RadioGroupProvider;
|
74
|
-
}
|
75
|
-
});
|
76
|
-
Object.defineProperty(exports, "useRadioGroupContextValues", {
|
77
|
-
enumerable: true,
|
78
|
-
get: function () {
|
79
|
-
return index_1.useRadioGroupContextValues;
|
80
|
-
}
|
81
|
-
});
|
82
|
-
Object.defineProperty(exports, "useRadioGroupContext_unstable", {
|
83
|
-
enumerable: true,
|
84
|
-
get: function () {
|
85
|
-
return index_1.useRadioGroupContext_unstable;
|
86
|
-
}
|
87
|
-
});
|
88
|
-
// eslint-disable-next-line deprecation/deprecation
|
89
|
-
var RadioGroupField_1 = /*#__PURE__*/require("./RadioGroupField");
|
90
|
-
Object.defineProperty(exports, "RadioGroupField_unstable", {
|
91
|
-
enumerable: true,
|
92
|
-
get: function () {
|
93
|
-
return RadioGroupField_1.RadioGroupField;
|
94
|
-
}
|
95
|
-
});
|
96
|
-
Object.defineProperty(exports, "radioGroupFieldClassNames", {
|
97
|
-
enumerable: true,
|
98
|
-
get: function () {
|
99
|
-
return RadioGroupField_1.radioGroupFieldClassNames;
|
100
|
-
}
|
101
|
-
});
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
function _export(target, all) {
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
7
|
+
enumerable: true,
|
8
|
+
get: all[name]
|
9
|
+
});
|
10
|
+
}
|
11
|
+
_export(exports, {
|
12
|
+
RadioGroup: ()=>_radioGroup.RadioGroup,
|
13
|
+
radioGroupClassNames: ()=>_radioGroup.radioGroupClassNames,
|
14
|
+
renderRadioGroup_unstable: ()=>_radioGroup.renderRadioGroup_unstable,
|
15
|
+
useRadioGroupStyles_unstable: ()=>_radioGroup.useRadioGroupStyles_unstable,
|
16
|
+
useRadioGroup_unstable: ()=>_radioGroup.useRadioGroup_unstable,
|
17
|
+
Radio: ()=>_radio.Radio,
|
18
|
+
radioClassNames: ()=>_radio.radioClassNames,
|
19
|
+
renderRadio_unstable: ()=>_radio.renderRadio_unstable,
|
20
|
+
useRadioStyles_unstable: ()=>_radio.useRadioStyles_unstable,
|
21
|
+
useRadio_unstable: ()=>_radio.useRadio_unstable,
|
22
|
+
RadioGroupProvider: ()=>_index.RadioGroupProvider,
|
23
|
+
useRadioGroupContextValues: ()=>_index.useRadioGroupContextValues,
|
24
|
+
useRadioGroupContext_unstable: ()=>_index.useRadioGroupContext_unstable,
|
25
|
+
RadioGroupField_unstable: ()=>_radioGroupField.RadioGroupField,
|
26
|
+
radioGroupFieldClassNames: ()=>_radioGroupField.radioGroupFieldClassNames
|
27
|
+
});
|
28
|
+
const _radioGroup = require("./RadioGroup");
|
29
|
+
const _radio = require("./Radio");
|
30
|
+
const _index = require("./contexts/index");
|
31
|
+
const _radioGroupField = require("./RadioGroupField");
|
32
|
+
//# sourceMappingURL=index.js.map
|
33
|
+
|
102
34
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../lib/index.js"],"sourcesContent":["export { RadioGroup, radioGroupClassNames, renderRadioGroup_unstable, useRadioGroupStyles_unstable, useRadioGroup_unstable } from './RadioGroup';\nexport { Radio, radioClassNames, renderRadio_unstable, useRadioStyles_unstable, useRadio_unstable } from './Radio';\nexport { RadioGroupProvider, useRadioGroupContextValues, useRadioGroupContext_unstable } from './contexts/index';\n// eslint-disable-next-line deprecation/deprecation\nexport { RadioGroupField as RadioGroupField_unstable, radioGroupFieldClassNames } from './RadioGroupField';\n//# sourceMappingURL=index.js.map"],"names":["RadioGroup","radioGroupClassNames","renderRadioGroup_unstable","useRadioGroupStyles_unstable","useRadioGroup_unstable","Radio","radioClassNames","renderRadio_unstable","useRadioStyles_unstable","useRadio_unstable","RadioGroupProvider","useRadioGroupContextValues","useRadioGroupContext_unstable","RadioGroupField_unstable","RadioGroupField","radioGroupFieldClassNames"],"mappings":";;;;;;;;;;;IAASA,UAAU,MAAVA,sBAAU;IAAEC,oBAAoB,MAApBA,gCAAoB;IAAEC,yBAAyB,MAAzBA,qCAAyB;IAAEC,4BAA4B,MAA5BA,wCAA4B;IAAEC,sBAAsB,MAAtBA,kCAAsB;IACjHC,KAAK,MAALA,YAAK;IAAEC,eAAe,MAAfA,sBAAe;IAAEC,oBAAoB,MAApBA,2BAAoB;IAAEC,uBAAuB,MAAvBA,8BAAuB;IAAEC,iBAAiB,MAAjBA,wBAAiB;IACxFC,kBAAkB,MAAlBA,yBAAkB;IAAEC,0BAA0B,MAA1BA,iCAA0B;IAAEC,6BAA6B,MAA7BA,oCAA6B;IAE1DC,wBAAwB,MAA3CC,gCAAe;IAA8BC,yBAAyB,MAAzBA,0CAAyB;;4BAJmD;uBACzB;uBACX;iCAEP;CACvF,iCAAiC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-radio",
|
3
|
-
"version": "9.1.
|
3
|
+
"version": "9.1.5",
|
4
4
|
"description": "Fluent UI Radio component",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -22,26 +22,26 @@
|
|
22
22
|
"test": "jest --passWithNoTests",
|
23
23
|
"storybook": "start-storybook",
|
24
24
|
"type-check": "tsc -b tsconfig.json",
|
25
|
-
"generate-api": "
|
25
|
+
"generate-api": "just-scripts generate-api"
|
26
26
|
},
|
27
27
|
"devDependencies": {
|
28
28
|
"@fluentui/eslint-plugin": "*",
|
29
29
|
"@fluentui/react-conformance": "*",
|
30
|
-
"@fluentui/react-conformance-griffel": "9.0.0-beta.
|
30
|
+
"@fluentui/react-conformance-griffel": "9.0.0-beta.20",
|
31
31
|
"@fluentui/scripts-api-extractor": "*",
|
32
32
|
"@fluentui/scripts-tasks": "*"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@fluentui/react-context-selector": "^9.1.
|
36
|
-
"@fluentui/react-field": "9.0.0-alpha.
|
37
|
-
"@fluentui/react-icons": "^2.0.
|
38
|
-
"@fluentui/react-label": "^9.1.
|
39
|
-
"@fluentui/react-shared-contexts": "^9.3.
|
40
|
-
"@fluentui/react-tabster": "^9.
|
41
|
-
"@fluentui/react-theme": "^9.1.
|
42
|
-
"@fluentui/react-utilities": "^9.7.
|
35
|
+
"@fluentui/react-context-selector": "^9.1.15",
|
36
|
+
"@fluentui/react-field": "9.0.0-alpha.27",
|
37
|
+
"@fluentui/react-icons": "^2.0.196",
|
38
|
+
"@fluentui/react-label": "^9.1.5",
|
39
|
+
"@fluentui/react-shared-contexts": "^9.3.2",
|
40
|
+
"@fluentui/react-tabster": "^9.6.1",
|
41
|
+
"@fluentui/react-theme": "^9.1.7",
|
42
|
+
"@fluentui/react-utilities": "^9.7.2",
|
43
43
|
"@griffel/react": "^1.5.2",
|
44
|
-
"
|
44
|
+
"@swc/helpers": "^0.4.14"
|
45
45
|
},
|
46
46
|
"peerDependencies": {
|
47
47
|
"@types/react": ">=16.8.0 <19.0.0",
|
@@ -59,6 +59,7 @@
|
|
59
59
|
"exports": {
|
60
60
|
".": {
|
61
61
|
"types": "./dist/index.d.ts",
|
62
|
+
"node": "./lib-commonjs/index.js",
|
62
63
|
"import": "./lib/index.js",
|
63
64
|
"require": "./lib-commonjs/index.js"
|
64
65
|
},
|
package/lib-amd/Radio.js
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
define(["require", "exports", "tslib", "./components/Radio/index"], function (require, exports, tslib_1, index_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
tslib_1.__exportStar(index_1, exports);
|
5
|
-
});
|
6
|
-
//# sourceMappingURL=Radio.js.map
|
package/lib-amd/Radio.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-radio/src/Radio.ts"],"names":[],"mappings":";;;IAAA,uCAAyC","sourcesContent":["export * from './components/Radio/index';\n"]}
|
package/lib-amd/RadioGroup.js
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
define(["require", "exports", "tslib", "./components/RadioGroup/index"], function (require, exports, tslib_1, index_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
tslib_1.__exportStar(index_1, exports);
|
5
|
-
});
|
6
|
-
//# sourceMappingURL=RadioGroup.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RadioGroup.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-radio/src/RadioGroup.ts"],"names":[],"mappings":";;;IAAA,uCAA8C","sourcesContent":["export * from './components/RadioGroup/index';\n"]}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
define(["require", "exports", "tslib", "./components/RadioGroupField/index"], function (require, exports, tslib_1, index_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
tslib_1.__exportStar(index_1, exports);
|
5
|
-
});
|
6
|
-
//# sourceMappingURL=RadioGroupField.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RadioGroupField.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-radio/src/RadioGroupField.ts"],"names":[],"mappings":";;;IAAA,uCAAmD","sourcesContent":["export * from './components/RadioGroupField/index';\n"]}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
define(["require", "exports", "react", "./renderRadio", "./useRadio", "./useRadioStyles", "@fluentui/react-shared-contexts"], function (require, exports, React, renderRadio_1, useRadio_1, useRadioStyles_1, react_shared_contexts_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.Radio = void 0;
|
5
|
-
/**
|
6
|
-
* Radio component is a wrapper for a radio button with a label.
|
7
|
-
*/
|
8
|
-
exports.Radio = React.forwardRef(function (props, ref) {
|
9
|
-
var state = useRadio_1.useRadio_unstable(props, ref);
|
10
|
-
useRadioStyles_1.useRadioStyles_unstable(state);
|
11
|
-
var useCustomStyles = react_shared_contexts_1.useCustomStyleHooks_unstable().useRadioStyles_unstable;
|
12
|
-
useCustomStyles(state);
|
13
|
-
return renderRadio_1.renderRadio_unstable(state);
|
14
|
-
});
|
15
|
-
exports.Radio.displayName = 'Radio';
|
16
|
-
});
|
17
|
-
//# sourceMappingURL=Radio.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-radio/src/components/Radio/Radio.tsx"],"names":[],"mappings":";;;;IAQA;;OAEG;IACU,QAAA,KAAK,GAAoC,KAAK,CAAC,UAAU,CAAC,UAAC,KAAK,EAAE,GAAG;QAChF,IAAM,KAAK,GAAG,4BAAiB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAE5C,wCAAuB,CAAC,KAAK,CAAC,CAAC;QAEvB,IAAyB,eAAe,GAAK,oDAA4B,EAAE,wBAAnC,CAAoC;QACpF,eAAe,CAAC,KAAK,CAAC,CAAC;QAEvB,OAAO,kCAAoB,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,aAAK,CAAC,WAAW,GAAG,OAAO,CAAC","sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { RadioProps } from './Radio.types';\nimport { renderRadio_unstable } from './renderRadio';\nimport { useRadio_unstable } from './useRadio';\nimport { useRadioStyles_unstable } from './useRadioStyles';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Radio component is a wrapper for a radio button with a label.\n */\nexport const Radio: ForwardRefComponent<RadioProps> = React.forwardRef((props, ref) => {\n const state = useRadio_unstable(props, ref);\n\n useRadioStyles_unstable(state);\n\n const { useRadioStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderRadio_unstable(state);\n});\n\nRadio.displayName = 'Radio';\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Radio.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-radio/src/components/Radio/Radio.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport { Label } from '@fluentui/react-label';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type RadioSlots = {\n /**\n * The root element of the Radio.\n *\n * The root slot receives the `className` and `style` specified directly on the `<Radio>`.\n * All other native props will be applied to the primary slot: `input`\n */\n root: NonNullable<Slot<'span'>>;\n\n /**\n * The Radio's label.\n */\n label: Slot<typeof Label>;\n\n /**\n * Hidden input that handles the radio's functionality.\n *\n * This is the PRIMARY slot: all native properties specified directly on `<Radio>` will be applied to this slot,\n * except `className` and `style`, which remain on the root slot.\n */\n input: NonNullable<Slot<'input'>>;\n\n /**\n * A circle outline, with a filled circle icon inside when the Radio is checked.\n */\n indicator: NonNullable<Slot<'div'>>;\n};\n\n/**\n * Radio Props\n */\nexport type RadioProps = Omit<ComponentProps<Partial<RadioSlots>, 'input'>, 'onChange' | 'size'> & {\n /**\n * The value of the RadioGroup when this Radio item is selected.\n */\n value?: string;\n\n /**\n * The position of the label relative to the radio indicator.\n *\n * This defaults to `after` unless the Radio is inside a RadioGroup with `layout=\"horizontalStacked\"`,\n * in which case it defaults to `below`.\n *\n * @defaultvalue after\n */\n labelPosition?: 'after' | 'below';\n\n /**\n * Disable this Radio item.\n */\n disabled?: boolean;\n\n /**\n * Callback when this Radio is selected in its group.\n *\n * **Note:** `onChange` is NOT called when this Radio is deselected.\n * Use RadioGroup's `onChange` event to determine when the selection in the group changes.\n */\n onChange?: (ev: React.ChangeEvent<HTMLInputElement>, data: RadioOnChangeData) => void;\n};\n\n/**\n * Data for the onChange event for Radio.\n */\nexport type RadioOnChangeData = {\n /**\n * The value prop of this Radio item.\n */\n value: string;\n};\n\n/**\n * State used in rendering Radio\n */\nexport type RadioState = ComponentState<RadioSlots> & Required<Pick<RadioProps, 'labelPosition'>>;\n"]}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
define(["require", "exports", "tslib", "./Radio", "./Radio.types", "./renderRadio", "./useRadio", "./useRadioStyles"], function (require, exports, tslib_1, Radio_1, Radio_types_1, renderRadio_1, useRadio_1, useRadioStyles_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
tslib_1.__exportStar(Radio_1, exports);
|
5
|
-
tslib_1.__exportStar(Radio_types_1, exports);
|
6
|
-
tslib_1.__exportStar(renderRadio_1, exports);
|
7
|
-
tslib_1.__exportStar(useRadio_1, exports);
|
8
|
-
tslib_1.__exportStar(useRadioStyles_1, exports);
|
9
|
-
});
|
10
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-radio/src/components/Radio/index.ts"],"names":[],"mappings":";;;IAAA,uCAAwB;IACxB,6CAA8B;IAC9B,6CAA8B;IAC9B,0CAA2B;IAC3B,gDAAiC","sourcesContent":["export * from './Radio';\nexport * from './Radio.types';\nexport * from './renderRadio';\nexport * from './useRadio';\nexport * from './useRadioStyles';\n"]}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
define(["require", "exports", "tslib", "react", "@fluentui/react-utilities"], function (require, exports, tslib_1, React, react_utilities_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.renderRadio_unstable = void 0;
|
5
|
-
/**
|
6
|
-
* Render the final JSX of Radio
|
7
|
-
*/
|
8
|
-
var renderRadio_unstable = function (state) {
|
9
|
-
var _a = react_utilities_1.getSlots(state), slots = _a.slots, slotProps = _a.slotProps;
|
10
|
-
return (React.createElement(slots.root, tslib_1.__assign({}, slotProps.root),
|
11
|
-
React.createElement(slots.input, tslib_1.__assign({}, slotProps.input)),
|
12
|
-
React.createElement(slots.indicator, tslib_1.__assign({}, slotProps.indicator)),
|
13
|
-
slots.label && React.createElement(slots.label, tslib_1.__assign({}, slotProps.label))));
|
14
|
-
};
|
15
|
-
exports.renderRadio_unstable = renderRadio_unstable;
|
16
|
-
});
|
17
|
-
//# sourceMappingURL=renderRadio.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"renderRadio.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-radio/src/components/Radio/renderRadio.tsx"],"names":[],"mappings":";;;;IAIA;;OAEG;IACI,IAAM,oBAAoB,GAAG,UAAC,KAAiB;QAC9C,IAAA,KAAuB,0BAAQ,CAAa,KAAK,CAAC,EAAhD,KAAK,WAAA,EAAE,SAAS,eAAgC,CAAC;QAEzD,OAAO,CACL,oBAAC,KAAK,CAAC,IAAI,uBAAK,SAAS,CAAC,IAAI;YAC5B,oBAAC,KAAK,CAAC,KAAK,uBAAK,SAAS,CAAC,KAAK,EAAI;YACpC,oBAAC,KAAK,CAAC,SAAS,uBAAK,SAAS,CAAC,SAAS,EAAI;YAC3C,KAAK,CAAC,KAAK,IAAI,oBAAC,KAAK,CAAC,KAAK,uBAAK,SAAS,CAAC,KAAK,EAAI,CACzC,CACd,CAAC;IACJ,CAAC,CAAC;IAVW,QAAA,oBAAoB,wBAU/B","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { RadioSlots, RadioState } from './Radio.types';\n\n/**\n * Render the final JSX of Radio\n */\nexport const renderRadio_unstable = (state: RadioState) => {\n const { slots, slotProps } = getSlots<RadioSlots>(state);\n\n return (\n <slots.root {...slotProps.root}>\n <slots.input {...slotProps.input} />\n <slots.indicator {...slotProps.indicator} />\n {slots.label && <slots.label {...slotProps.label} />}\n </slots.root>\n );\n};\n"]}
|