@fluentui/react-radio 9.1.4 → 9.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. package/.swcrc +30 -0
  2. package/CHANGELOG.json +76 -1
  3. package/CHANGELOG.md +21 -2
  4. package/lib/Radio.js.map +1 -1
  5. package/lib/RadioGroup.js.map +1 -1
  6. package/lib/RadioGroupField.js.map +1 -1
  7. package/lib/components/Radio/Radio.js.map +1 -1
  8. package/lib/components/Radio/Radio.types.js +1 -1
  9. package/lib/components/Radio/Radio.types.js.map +1 -1
  10. package/lib/components/Radio/index.js.map +1 -1
  11. package/lib/components/Radio/renderRadio.js +1 -9
  12. package/lib/components/Radio/renderRadio.js.map +1 -1
  13. package/lib/components/Radio/useRadio.js +5 -3
  14. package/lib/components/Radio/useRadio.js.map +1 -1
  15. package/lib/components/Radio/useRadioStyles.js.map +1 -1
  16. package/lib/components/RadioGroup/RadioGroup.js.map +1 -1
  17. package/lib/components/RadioGroup/RadioGroup.types.js +1 -1
  18. package/lib/components/RadioGroup/RadioGroup.types.js.map +1 -1
  19. package/lib/components/RadioGroup/index.js.map +1 -1
  20. package/lib/components/RadioGroup/renderRadioGroup.js +1 -3
  21. package/lib/components/RadioGroup/renderRadioGroup.js.map +1 -1
  22. package/lib/components/RadioGroup/useRadioGroup.js +1 -0
  23. package/lib/components/RadioGroup/useRadioGroup.js.map +1 -1
  24. package/lib/components/RadioGroup/useRadioGroupStyles.js.map +1 -1
  25. package/lib/components/RadioGroupField/RadioGroupField.js +1 -2
  26. package/lib/components/RadioGroupField/RadioGroupField.js.map +1 -1
  27. package/lib/components/RadioGroupField/index.js.map +1 -1
  28. package/lib/contexts/RadioGroupContext.js.map +1 -1
  29. package/lib/contexts/index.js.map +1 -1
  30. package/lib/contexts/useRadioGroupContextValues.js.map +1 -1
  31. package/lib/index.js.map +1 -1
  32. package/lib-commonjs/Radio.js +5 -4
  33. package/lib-commonjs/Radio.js.map +1 -1
  34. package/lib-commonjs/RadioGroup.js +5 -4
  35. package/lib-commonjs/RadioGroup.js.map +1 -1
  36. package/lib-commonjs/RadioGroupField.js +5 -4
  37. package/lib-commonjs/RadioGroupField.js.map +1 -1
  38. package/lib-commonjs/components/Radio/Radio.js +19 -20
  39. package/lib-commonjs/components/Radio/Radio.js.map +1 -1
  40. package/lib-commonjs/components/Radio/Radio.types.js +5 -2
  41. package/lib-commonjs/components/Radio/Radio.types.js.map +1 -1
  42. package/lib-commonjs/components/Radio/index.js +9 -8
  43. package/lib-commonjs/components/Radio/index.js.map +1 -1
  44. package/lib-commonjs/components/Radio/renderRadio.js +13 -24
  45. package/lib-commonjs/components/Radio/renderRadio.js.map +1 -1
  46. package/lib-commonjs/components/Radio/useRadio.js +83 -91
  47. package/lib-commonjs/components/Radio/useRadio.js.map +1 -1
  48. package/lib-commonjs/components/Radio/useRadioStyles.js +139 -65
  49. package/lib-commonjs/components/Radio/useRadioStyles.js.map +1 -1
  50. package/lib-commonjs/components/RadioGroup/RadioGroup.js +21 -22
  51. package/lib-commonjs/components/RadioGroup/RadioGroup.js.map +1 -1
  52. package/lib-commonjs/components/RadioGroup/RadioGroup.types.js +5 -2
  53. package/lib-commonjs/components/RadioGroup/RadioGroup.types.js.map +1 -1
  54. package/lib-commonjs/components/RadioGroup/index.js +9 -8
  55. package/lib-commonjs/components/RadioGroup/index.js.map +1 -1
  56. package/lib-commonjs/components/RadioGroup/renderRadioGroup.js +16 -21
  57. package/lib-commonjs/components/RadioGroup/renderRadioGroup.js.map +1 -1
  58. package/lib-commonjs/components/RadioGroup/useRadioGroup.js +40 -50
  59. package/lib-commonjs/components/RadioGroup/useRadioGroup.js.map +1 -1
  60. package/lib-commonjs/components/RadioGroup/useRadioGroupStyles.js +32 -23
  61. package/lib-commonjs/components/RadioGroup/useRadioGroupStyles.js.map +1 -1
  62. package/lib-commonjs/components/RadioGroupField/RadioGroupField.js +17 -11
  63. package/lib-commonjs/components/RadioGroupField/RadioGroupField.js.map +1 -1
  64. package/lib-commonjs/components/RadioGroupField/index.js +5 -4
  65. package/lib-commonjs/components/RadioGroupField/index.js.map +1 -1
  66. package/lib-commonjs/contexts/RadioGroupContext.js +17 -11
  67. package/lib-commonjs/contexts/RadioGroupContext.js.map +1 -1
  68. package/lib-commonjs/contexts/index.js +6 -5
  69. package/lib-commonjs/contexts/index.js.map +1 -1
  70. package/lib-commonjs/contexts/useRadioGroupContextValues.js +20 -25
  71. package/lib-commonjs/contexts/useRadioGroupContextValues.js.map +1 -1
  72. package/lib-commonjs/index.js +31 -99
  73. package/lib-commonjs/index.js.map +1 -1
  74. package/package.json +13 -12
  75. package/lib-amd/Radio.js +0 -6
  76. package/lib-amd/Radio.js.map +0 -1
  77. package/lib-amd/RadioGroup.js +0 -6
  78. package/lib-amd/RadioGroup.js.map +0 -1
  79. package/lib-amd/RadioGroupField.js +0 -6
  80. package/lib-amd/RadioGroupField.js.map +0 -1
  81. package/lib-amd/components/Radio/Radio.js +0 -17
  82. package/lib-amd/components/Radio/Radio.js.map +0 -1
  83. package/lib-amd/components/Radio/Radio.types.js +0 -5
  84. package/lib-amd/components/Radio/Radio.types.js.map +0 -1
  85. package/lib-amd/components/Radio/index.js +0 -10
  86. package/lib-amd/components/Radio/index.js.map +0 -1
  87. package/lib-amd/components/Radio/renderRadio.js +0 -17
  88. package/lib-amd/components/Radio/renderRadio.js.map +0 -1
  89. package/lib-amd/components/Radio/useRadio.js +0 -65
  90. package/lib-amd/components/Radio/useRadio.js.map +0 -1
  91. package/lib-amd/components/Radio/useRadioStyles.js +0 -158
  92. package/lib-amd/components/Radio/useRadioStyles.js.map +0 -1
  93. package/lib-amd/components/RadioGroup/RadioGroup.js +0 -18
  94. package/lib-amd/components/RadioGroup/RadioGroup.js.map +0 -1
  95. package/lib-amd/components/RadioGroup/RadioGroup.types.js +0 -5
  96. package/lib-amd/components/RadioGroup/RadioGroup.types.js.map +0 -1
  97. package/lib-amd/components/RadioGroup/index.js +0 -10
  98. package/lib-amd/components/RadioGroup/index.js.map +0 -1
  99. package/lib-amd/components/RadioGroup/renderRadioGroup.js +0 -15
  100. package/lib-amd/components/RadioGroup/renderRadioGroup.js.map +0 -1
  101. package/lib-amd/components/RadioGroup/useRadioGroup.js +0 -38
  102. package/lib-amd/components/RadioGroup/useRadioGroup.js.map +0 -1
  103. package/lib-amd/components/RadioGroup/useRadioGroupStyles.js +0 -26
  104. package/lib-amd/components/RadioGroup/useRadioGroupStyles.js.map +0 -1
  105. package/lib-amd/components/RadioGroupField/RadioGroupField.js +0 -10
  106. package/lib-amd/components/RadioGroupField/RadioGroupField.js.map +0 -1
  107. package/lib-amd/components/RadioGroupField/index.js +0 -6
  108. package/lib-amd/components/RadioGroupField/index.js.map +0 -1
  109. package/lib-amd/contexts/RadioGroupContext.js +0 -19
  110. package/lib-amd/contexts/RadioGroupContext.js.map +0 -1
  111. package/lib-amd/contexts/index.js +0 -7
  112. package/lib-amd/contexts/index.js.map +0 -1
  113. package/lib-amd/contexts/useRadioGroupContextValues.js +0 -19
  114. package/lib-amd/contexts/useRadioGroupContextValues.js.map +0 -1
  115. package/lib-amd/index.js +0 -21
  116. package/lib-amd/index.js.map +0 -1
@@ -1,30 +1,39 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
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
- exports.useRadioGroupStyles_unstable = exports.radioGroupClassNames = void 0;
7
- const react_1 = /*#__PURE__*/require("@griffel/react");
8
- exports.radioGroupClassNames = {
9
- root: 'fui-RadioGroup'
15
+ const _react = require("@griffel/react");
16
+ const radioGroupClassNames = {
17
+ root: 'fui-RadioGroup'
10
18
  };
11
- const useStyles = /*#__PURE__*/react_1.__styles({
12
- root: {
13
- mc9l5x: "f22iagw",
14
- Bt984gj: "f6jr5hl"
15
- },
16
- vertical: {
17
- Beiy3e4: "f1vx9l62"
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
- 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;}"]
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
- * Apply styling to the RadioGroup slots based on the state
24
- */
25
- const useRadioGroupStyles_unstable = state => {
26
- const styles = useStyles();
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,"names":["react_1","require","exports","radioGroupClassNames","root","useStyles","__styles","mc9l5x","Bt984gj","vertical","Beiy3e4","d","useRadioGroupStyles_unstable","state","styles","className","mergeClasses","layout"],"sources":["../src/packages/react-components/react-radio/src/components/RadioGroup/useRadioGroupStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport { RadioGroupSlots, RadioGroupState } from './RadioGroup.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const radioGroupClassNames: SlotClassNames<RadioGroupSlots> = {\n root: 'fui-RadioGroup',\n};\n\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n alignItems: 'flex-start',\n },\n\n vertical: {\n flexDirection: 'column',\n },\n});\n\n/**\n * Apply styling to the RadioGroup slots based on the state\n */\nexport const useRadioGroupStyles_unstable = (state: RadioGroupState) => {\n const styles = useStyles();\n state.root.className = mergeClasses(\n radioGroupClassNames.root,\n styles.root,\n state.layout === 'vertical' && styles.vertical,\n state.root.className,\n );\n};\n"],"mappings":";;;;;;AAAA,MAAAA,OAAA,gBAAAC,OAAA;AAIaC,OAAA,CAAAC,oBAAoB,GAAoC;EACnEC,IAAI,EAAE;CACP;AAED,MAAMC,SAAS,gBAAGL,OAAA,CAAAM,QAAU;EAAAF,IAAA;IAAAG,MAAA;IAAAC,OAAA;EAAA;EAAAC,QAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,EAS1B;AAEF;;;AAGO,MAAMC,4BAA4B,GAAIC,KAAsB,IAAI;EACrE,MAAMC,MAAM,GAAGT,SAAS,EAAE;EAC1BQ,KAAK,CAACT,IAAI,CAACW,SAAS,GAAGf,OAAA,CAAAgB,YAAY,CACjCd,OAAA,CAAAC,oBAAoB,CAACC,IAAI,EACzBU,MAAM,CAACV,IAAI,EACXS,KAAK,CAACI,MAAM,KAAK,UAAU,IAAIH,MAAM,CAACL,QAAQ,EAC9CI,KAAK,CAACT,IAAI,CAACW,SAAS,CACrB;AACH,CAAC;AARYb,OAAA,CAAAU,4BAA4B,GAAAA,4BAAA"}
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
- value: true
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
- exports.RadioGroupField = exports.radioGroupFieldClassNames = void 0;
7
- /* eslint-disable deprecation/deprecation */
8
- const react_field_1 = /*#__PURE__*/require("@fluentui/react-field");
9
- const RadioGroup_1 = /*#__PURE__*/require("../../RadioGroup");
10
- /** @deprecated Use Field with RadioGroup: `<Field><RadioGroup /></Field>` */
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,"names":["react_field_1","require","RadioGroup_1","exports","radioGroupFieldClassNames","getDeprecatedFieldClassNames","radioGroupClassNames","root","RadioGroupField","makeDeprecatedField","RadioGroup"],"sources":["../src/packages/react-components/react-radio/src/components/RadioGroupField/RadioGroupField.tsx"],"sourcesContent":["/* eslint-disable deprecation/deprecation */\nimport { DeprecatedFieldProps, getDeprecatedFieldClassNames, makeDeprecatedField } from '@fluentui/react-field';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { RadioGroup, radioGroupClassNames, RadioGroupProps } from '../../RadioGroup';\n\n/** @deprecated Use Field with RadioGroup: `<Field><RadioGroup /></Field>` */\nexport type RadioGroupFieldProps = DeprecatedFieldProps<RadioGroupProps>;\n/** @deprecated Use Field with RadioGroup: `<Field><RadioGroup /></Field>` */\nexport const radioGroupFieldClassNames = getDeprecatedFieldClassNames(radioGroupClassNames.root);\n/** @deprecated Use Field with RadioGroup: `<Field><RadioGroup /></Field>` */\nexport const RadioGroupField: ForwardRefComponent<RadioGroupFieldProps> = makeDeprecatedField(RadioGroup);\n"],"mappings":";;;;;;AAAA;AACA,MAAAA,aAAA,gBAAAC,OAAA;AAEA,MAAAC,YAAA,gBAAAD,OAAA;AAIA;AACaE,OAAA,CAAAC,yBAAyB,gBAAGJ,aAAA,CAAAK,4BAA4B,CAACH,YAAA,CAAAI,oBAAoB,CAACC,IAAI,CAAC;AAChG;AACaJ,OAAA,CAAAK,eAAe,gBAA8CR,aAAA,CAAAS,mBAAmB,CAACP,YAAA,CAAAQ,UAAU,CAAC"}
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
- value: true
3
+ value: true
5
4
  });
6
- const tslib_1 = /*#__PURE__*/require("tslib");
7
- tslib_1.__exportStar(require("./RadioGroupField"), exports);
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,"names":["tslib_1","__exportStar","require","exports"],"sources":["../src/packages/react-components/react-radio/src/components/RadioGroupField/index.ts"],"sourcesContent":["export * from './RadioGroupField';\n"],"mappings":";;;;;;AAAAA,OAAA,CAAAC,YAAA,CAAAC,OAAA,uBAAAC,OAAA"}
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
- value: true
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
- exports.useRadioGroupContext_unstable = exports.RadioGroupProvider = exports.RadioGroupContext = void 0;
7
- const react_context_selector_1 = /*#__PURE__*/require("@fluentui/react-context-selector");
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
- exports.RadioGroupProvider = exports.RadioGroupContext.Provider;
14
- const useRadioGroupContext_unstable = selector => react_context_selector_1.useContextSelector(exports.RadioGroupContext, (ctx = radioGroupContextDefaultValue) => selector(ctx));
15
- exports.useRadioGroupContext_unstable = useRadioGroupContext_unstable;
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,"names":["react_context_selector_1","require","exports","RadioGroupContext","createContext","undefined","radioGroupContextDefaultValue","RadioGroupProvider","Provider","useRadioGroupContext_unstable","selector","useContextSelector","ctx"],"sources":["../src/packages/react-components/react-radio/src/contexts/RadioGroupContext.ts"],"sourcesContent":["import { createContext, useContextSelector, ContextSelector } from '@fluentui/react-context-selector';\nimport type { Context } from '@fluentui/react-context-selector';\nimport type { RadioGroupContextValue } from '../RadioGroup';\n\n/**\n * RadioGroupContext is provided by RadioGroup, and is consumed by Radio to determine default values of some props.\n */\nexport const RadioGroupContext: Context<RadioGroupContextValue> = createContext<RadioGroupContextValue | undefined>(\n undefined,\n) as Context<RadioGroupContextValue>;\n\nconst radioGroupContextDefaultValue: RadioGroupContextValue = {};\n\nexport const RadioGroupProvider = RadioGroupContext.Provider;\n\nexport const useRadioGroupContext_unstable = <T>(selector: ContextSelector<RadioGroupContextValue, T>): T =>\n useContextSelector(RadioGroupContext, (ctx = radioGroupContextDefaultValue) => selector(ctx));\n"],"mappings":";;;;;;AAAA,MAAAA,wBAAA,gBAAAC,OAAA;AAIA;;;AAGaC,OAAA,CAAAC,iBAAiB,gBAAoCH,wBAAA,CAAAI,aAAa,CAC7EC,SAAS,CACyB;AAEpC,MAAMC,6BAA6B,GAA2B,EAAE;AAEnDJ,OAAA,CAAAK,kBAAkB,GAAGL,OAAA,CAAAC,iBAAiB,CAACK,QAAQ;AAErD,MAAMC,6BAA6B,GAAOC,QAAoD,IACnGV,wBAAA,CAAAW,kBAAkB,CAACT,OAAA,CAAAC,iBAAiB,EAAE,CAACS,GAAG,GAAGN,6BAA6B,KAAKI,QAAQ,CAACE,GAAG,CAAC,CAAC;AADlFV,OAAA,CAAAO,6BAA6B,GAAAA,6BAAA"}
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
- value: true
3
+ value: true
5
4
  });
6
- const tslib_1 = /*#__PURE__*/require("tslib");
7
- tslib_1.__exportStar(require("./RadioGroupContext"), exports);
8
- tslib_1.__exportStar(require("./useRadioGroupContextValues"), exports);
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,"names":["tslib_1","__exportStar","require","exports"],"sources":["../src/packages/react-components/react-radio/src/contexts/index.ts"],"sourcesContent":["export * from './RadioGroupContext';\nexport * from './useRadioGroupContextValues';\n"],"mappings":";;;;;;AAAAA,OAAA,CAAAC,YAAA,CAAAC,OAAA,yBAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,kCAAAC,OAAA"}
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
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useRadioGroupContextValues", {
6
+ enumerable: true,
7
+ get: ()=>useRadioGroupContextValues
5
8
  });
6
- exports.useRadioGroupContextValues = void 0;
7
- const useRadioGroupContextValues = state => {
8
- const {
9
- name,
10
- value,
11
- defaultValue,
12
- disabled,
13
- layout,
14
- required
15
- } = state;
16
- const radioGroup = {
17
- name,
18
- value,
19
- defaultValue,
20
- disabled,
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,"names":["useRadioGroupContextValues","state","name","value","defaultValue","disabled","layout","required","radioGroup","exports"],"sources":["../src/packages/react-components/react-radio/src/contexts/useRadioGroupContextValues.ts"],"sourcesContent":["import type { RadioGroupContextValue, RadioGroupContextValues, RadioGroupState } from '../RadioGroup';\n\nexport const useRadioGroupContextValues = (state: RadioGroupState): RadioGroupContextValues => {\n const { name, value, defaultValue, disabled, layout, required } = state;\n\n const radioGroup: RadioGroupContextValue = {\n name,\n value,\n defaultValue,\n disabled,\n layout,\n required,\n };\n\n return { radioGroup };\n};\n"],"mappings":";;;;;;AAEO,MAAMA,0BAA0B,GAAIC,KAAsB,IAA6B;EAC5F,MAAM;IAAEC,IAAI;IAAEC,KAAK;IAAEC,YAAY;IAAEC,QAAQ;IAAEC,MAAM;IAAEC;EAAQ,CAAE,GAAGN,KAAK;EAEvE,MAAMO,UAAU,GAA2B;IACzCN,IAAI;IACJC,KAAK;IACLC,YAAY;IACZC,QAAQ;IACRC,MAAM;IACNC;GACD;EAED,OAAO;IAAEC;EAAU,CAAE;AACvB,CAAC;AAbYC,OAAA,CAAAT,0BAA0B,GAAAA,0BAAA"}
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"}
@@ -1,102 +1,34 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.radioGroupFieldClassNames = exports.RadioGroupField_unstable = exports.useRadioGroupContext_unstable = exports.useRadioGroupContextValues = exports.RadioGroupProvider = exports.useRadio_unstable = exports.useRadioStyles_unstable = exports.renderRadio_unstable = exports.radioClassNames = exports.Radio = exports.useRadioGroup_unstable = exports.useRadioGroupStyles_unstable = exports.renderRadioGroup_unstable = exports.radioGroupClassNames = exports.RadioGroup = void 0;
7
- var RadioGroup_1 = /*#__PURE__*/require("./RadioGroup");
8
- Object.defineProperty(exports, "RadioGroup", {
9
- enumerable: true,
10
- get: function () {
11
- return RadioGroup_1.RadioGroup;
12
- }
13
- });
14
- Object.defineProperty(exports, "radioGroupClassNames", {
15
- enumerable: true,
16
- get: function () {
17
- return RadioGroup_1.radioGroupClassNames;
18
- }
19
- });
20
- Object.defineProperty(exports, "renderRadioGroup_unstable", {
21
- enumerable: true,
22
- get: function () {
23
- return RadioGroup_1.renderRadioGroup_unstable;
24
- }
25
- });
26
- Object.defineProperty(exports, "useRadioGroupStyles_unstable", {
27
- enumerable: true,
28
- get: function () {
29
- return RadioGroup_1.useRadioGroupStyles_unstable;
30
- }
31
- });
32
- Object.defineProperty(exports, "useRadioGroup_unstable", {
33
- enumerable: true,
34
- get: function () {
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,"names":["RadioGroup_1","require","Object","defineProperty","exports","enumerable","get","RadioGroup","radioGroupClassNames","renderRadioGroup_unstable","useRadioGroupStyles_unstable","useRadioGroup_unstable","Radio_1","Radio","radioClassNames","renderRadio_unstable","useRadioStyles_unstable","useRadio_unstable","index_1","RadioGroupProvider","useRadioGroupContextValues","useRadioGroupContext_unstable","RadioGroupField_1","RadioGroupField","radioGroupFieldClassNames"],"sources":["../src/packages/react-components/react-radio/src/index.ts"],"sourcesContent":["export {\n RadioGroup,\n radioGroupClassNames,\n renderRadioGroup_unstable,\n useRadioGroupStyles_unstable,\n useRadioGroup_unstable,\n} from './RadioGroup';\nexport type {\n RadioGroupContextValue,\n RadioGroupContextValues,\n RadioGroupOnChangeData,\n RadioGroupProps,\n RadioGroupSlots,\n RadioGroupState,\n} from './RadioGroup';\nexport { Radio, radioClassNames, renderRadio_unstable, useRadioStyles_unstable, useRadio_unstable } from './Radio';\nexport type { RadioProps, RadioSlots, RadioState, RadioOnChangeData } from './Radio';\nexport { RadioGroupProvider, useRadioGroupContextValues, useRadioGroupContext_unstable } from './contexts/index';\n\n// eslint-disable-next-line deprecation/deprecation\nexport { RadioGroupField as RadioGroupField_unstable, radioGroupFieldClassNames } from './RadioGroupField';\n// eslint-disable-next-line deprecation/deprecation\nexport type { RadioGroupFieldProps as RadioGroupFieldProps_unstable } from './RadioGroupField';\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,gBAAAC,OAAA;AACEC,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,YAAA,CAAAO,UAAU;EAAA;AAAA;AACVL,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,YAAA,CAAAQ,oBAAoB;EAAA;AAAA;AACpBN,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,YAAA,CAAAS,yBAAyB;EAAA;AAAA;AACzBP,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,YAAA,CAAAU,4BAA4B;EAAA;AAAA;AAC5BR,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,YAAA,CAAAW,sBAAsB;EAAA;AAAA;AAUxB,IAAAC,OAAA,gBAAAX,OAAA;AAASC,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAM,OAAA,CAAAC,KAAK;EAAA;AAAA;AAAEX,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAM,OAAA,CAAAE,eAAe;EAAA;AAAA;AAAEZ,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAM,OAAA,CAAAG,oBAAoB;EAAA;AAAA;AAAEb,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAM,OAAA,CAAAI,uBAAuB;EAAA;AAAA;AAAEd,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAM,OAAA,CAAAK,iBAAiB;EAAA;AAAA;AAEjG,IAAAC,OAAA,gBAAAjB,OAAA;AAASC,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAY,OAAA,CAAAC,kBAAkB;EAAA;AAAA;AAAEjB,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAY,OAAA,CAAAE,0BAA0B;EAAA;AAAA;AAAElB,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAY,OAAA,CAAAG,6BAA6B;EAAA;AAAA;AAEtF;AACA,IAAAC,iBAAA,gBAAArB,OAAA;AAASC,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAgB,iBAAA,CAAAC,eAAe;EAAA;AAAA;AAA8BrB,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAgB,iBAAA,CAAAE,yBAAyB;EAAA;AAAA"}
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.4",
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": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor"
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.19",
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.14",
36
- "@fluentui/react-field": "9.0.0-alpha.26",
37
- "@fluentui/react-icons": "^2.0.175",
38
- "@fluentui/react-label": "^9.1.4",
39
- "@fluentui/react-shared-contexts": "^9.3.1",
40
- "@fluentui/react-tabster": "^9.6.0",
41
- "@fluentui/react-theme": "^9.1.6",
42
- "@fluentui/react-utilities": "^9.7.1",
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
- "tslib": "^2.1.0"
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
@@ -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"]}
@@ -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,5 +0,0 @@
1
- define(["require", "exports"], function (require, exports) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- });
5
- //# sourceMappingURL=Radio.types.js.map
@@ -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"]}