@fluentui/react-radio 0.0.0-nightly-20230317-1454.1 → 0.0.0-nightly-20230321-0440.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/CHANGELOG.json +19 -19
  2. package/CHANGELOG.md +12 -12
  3. package/lib/Radio.js +1 -1
  4. package/lib/Radio.js.map +1 -1
  5. package/lib/RadioGroup.js +1 -1
  6. package/lib/RadioGroup.js.map +1 -1
  7. package/lib/RadioGroupField.js +1 -1
  8. package/lib/RadioGroupField.js.map +1 -1
  9. package/lib/components/Radio/Radio.js +6 -6
  10. package/lib/components/Radio/Radio.js.map +1 -1
  11. package/lib/components/Radio/Radio.types.js +1 -1
  12. package/lib/components/Radio/Radio.types.js.map +1 -1
  13. package/lib/components/Radio/index.js +5 -5
  14. package/lib/components/Radio/index.js.map +1 -1
  15. package/lib/components/Radio/renderRadio.js +11 -3
  16. package/lib/components/Radio/renderRadio.js.map +1 -1
  17. package/lib/components/Radio/useRadio.js +16 -16
  18. package/lib/components/Radio/useRadio.js.map +1 -1
  19. package/lib/components/Radio/useRadioStyles.js +10 -10
  20. package/lib/components/Radio/useRadioStyles.js.map +1 -1
  21. package/lib/components/RadioGroup/RadioGroup.js +7 -7
  22. package/lib/components/RadioGroup/RadioGroup.js.map +1 -1
  23. package/lib/components/RadioGroup/RadioGroup.types.js +1 -1
  24. package/lib/components/RadioGroup/RadioGroup.types.js.map +1 -1
  25. package/lib/components/RadioGroup/index.js +5 -5
  26. package/lib/components/RadioGroup/index.js.map +1 -1
  27. package/lib/components/RadioGroup/renderRadioGroup.js +6 -4
  28. package/lib/components/RadioGroup/renderRadioGroup.js.map +1 -1
  29. package/lib/components/RadioGroup/useRadioGroup.js +8 -9
  30. package/lib/components/RadioGroup/useRadioGroup.js.map +1 -1
  31. package/lib/components/RadioGroup/useRadioGroupStyles.js +3 -3
  32. package/lib/components/RadioGroup/useRadioGroupStyles.js.map +1 -1
  33. package/lib/components/RadioGroupField/RadioGroupField.js +3 -2
  34. package/lib/components/RadioGroupField/RadioGroupField.js.map +1 -1
  35. package/lib/components/RadioGroupField/index.js +1 -1
  36. package/lib/components/RadioGroupField/index.js.map +1 -1
  37. package/lib/contexts/RadioGroupContext.js +1 -1
  38. package/lib/contexts/RadioGroupContext.js.map +1 -1
  39. package/lib/contexts/index.js +2 -2
  40. package/lib/contexts/index.js.map +1 -1
  41. package/lib/contexts/useRadioGroupContextValues.js.map +1 -1
  42. package/lib/index.js +4 -4
  43. package/lib/index.js.map +1 -1
  44. package/lib-commonjs/Radio.js +4 -5
  45. package/lib-commonjs/Radio.js.map +1 -1
  46. package/lib-commonjs/RadioGroup.js +4 -5
  47. package/lib-commonjs/RadioGroup.js.map +1 -1
  48. package/lib-commonjs/RadioGroupField.js +4 -5
  49. package/lib-commonjs/RadioGroupField.js.map +1 -1
  50. package/lib-commonjs/components/Radio/Radio.js +20 -19
  51. package/lib-commonjs/components/Radio/Radio.js.map +1 -1
  52. package/lib-commonjs/components/Radio/Radio.types.js +2 -5
  53. package/lib-commonjs/components/Radio/Radio.types.js.map +1 -1
  54. package/lib-commonjs/components/Radio/index.js +8 -9
  55. package/lib-commonjs/components/Radio/index.js.map +1 -1
  56. package/lib-commonjs/components/Radio/renderRadio.js +24 -13
  57. package/lib-commonjs/components/Radio/renderRadio.js.map +1 -1
  58. package/lib-commonjs/components/Radio/useRadio.js +91 -81
  59. package/lib-commonjs/components/Radio/useRadio.js.map +1 -1
  60. package/lib-commonjs/components/Radio/useRadioStyles.js +66 -140
  61. package/lib-commonjs/components/Radio/useRadioStyles.js.map +1 -1
  62. package/lib-commonjs/components/RadioGroup/RadioGroup.js +22 -21
  63. package/lib-commonjs/components/RadioGroup/RadioGroup.js.map +1 -1
  64. package/lib-commonjs/components/RadioGroup/RadioGroup.types.js +2 -5
  65. package/lib-commonjs/components/RadioGroup/RadioGroup.types.js.map +1 -1
  66. package/lib-commonjs/components/RadioGroup/index.js +8 -9
  67. package/lib-commonjs/components/RadioGroup/index.js.map +1 -1
  68. package/lib-commonjs/components/RadioGroup/renderRadioGroup.js +21 -16
  69. package/lib-commonjs/components/RadioGroup/renderRadioGroup.js.map +1 -1
  70. package/lib-commonjs/components/RadioGroup/useRadioGroup.js +50 -40
  71. package/lib-commonjs/components/RadioGroup/useRadioGroup.js.map +1 -1
  72. package/lib-commonjs/components/RadioGroup/useRadioGroupStyles.js +23 -32
  73. package/lib-commonjs/components/RadioGroup/useRadioGroupStyles.js.map +1 -1
  74. package/lib-commonjs/components/RadioGroupField/RadioGroupField.js +11 -17
  75. package/lib-commonjs/components/RadioGroupField/RadioGroupField.js.map +1 -1
  76. package/lib-commonjs/components/RadioGroupField/index.js +4 -5
  77. package/lib-commonjs/components/RadioGroupField/index.js.map +1 -1
  78. package/lib-commonjs/contexts/RadioGroupContext.js +11 -17
  79. package/lib-commonjs/contexts/RadioGroupContext.js.map +1 -1
  80. package/lib-commonjs/contexts/index.js +5 -6
  81. package/lib-commonjs/contexts/index.js.map +1 -1
  82. package/lib-commonjs/contexts/useRadioGroupContextValues.js +25 -20
  83. package/lib-commonjs/contexts/useRadioGroupContextValues.js.map +1 -1
  84. package/lib-commonjs/index.js +99 -31
  85. package/lib-commonjs/index.js.map +1 -1
  86. package/package.json +13 -12
  87. package/.swcrc +0 -39
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../lib/components/RadioGroup/RadioGroup.types.js"],"sourcesContent":["import * as React from \"react\";\n//# sourceMappingURL=RadioGroup.types.js.map"],"names":[],"mappings":";;;;;6DAAuB;CACvB,4CAA4C"}
1
+ {"version":3,"names":[],"sources":["../../../../../../../../../packages/react-components/react-radio/src/components/RadioGroup/RadioGroup.types.ts"],"sourcesContent":["import * as React from 'react';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type RadioGroupSlots = {\n /**\n * The radio group root.\n */\n root: NonNullable<Slot<'div'>>;\n};\n\nexport type RadioGroupProps = Omit<ComponentProps<Partial<RadioGroupSlots>>, 'onChange'> & {\n /**\n * The name of this radio group. This name is applied to all Radio items inside this group.\n *\n * If no name is provided, one will be generated so that all of the Radio items have the same name.\n */\n name?: string;\n\n /**\n * The selected Radio item in this group.\n *\n * This should be the `value` prop of one of the Radio items inside this group.\n */\n value?: string;\n\n /**\n * The default selected Radio item in this group.\n *\n * This should be the `value` prop of one of the Radio items inside this group.\n */\n defaultValue?: string;\n\n /**\n * Callback when the selected Radio item changes.\n */\n onChange?: (ev: React.FormEvent<HTMLDivElement>, data: RadioGroupOnChangeData) => void;\n\n /**\n * How the radio items are laid out in the group.\n *\n * @default vertical\n */\n layout?: 'vertical' | 'horizontal' | 'horizontal-stacked';\n\n /**\n * Disable all Radio items in this group.\n */\n disabled?: boolean;\n\n /**\n * Require a selection in this group. Adds the `required` prop to all child Radio items.\n */\n required?: boolean;\n};\n\n/**\n * Data for the onChange event for RadioGroup.\n */\nexport type RadioGroupOnChangeData = {\n /**\n * The value of the newly selected Radio item.\n */\n value: string;\n};\n\n/**\n * State used in rendering RadioGroup\n */\nexport type RadioGroupState = ComponentState<RadioGroupSlots> &\n Required<Pick<RadioGroupProps, 'layout'>> &\n Partial<Exclude<RadioGroupProps, 'onChange' | 'layout'>>;\n\nexport type RadioGroupContextValue = Pick<\n RadioGroupProps,\n 'name' | 'value' | 'defaultValue' | 'disabled' | 'layout' | 'required'\n>;\n\nexport type RadioGroupContextValues = {\n radioGroup: RadioGroupContextValue;\n};\n"],"mappings":""}
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
+
2
3
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
+ value: true
4
5
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./RadioGroup"), exports);
7
- _exportStar(require("./RadioGroup.types"), exports);
8
- _exportStar(require("./renderRadioGroup"), exports);
9
- _exportStar(require("./useRadioGroup"), exports);
10
- _exportStar(require("./useRadioGroupStyles"), exports);
11
- //# sourceMappingURL=index.js.map
12
-
6
+ const tslib_1 = /*#__PURE__*/require("tslib");
7
+ tslib_1.__exportStar(require("./RadioGroup"), exports);
8
+ tslib_1.__exportStar(require("./RadioGroup.types"), exports);
9
+ tslib_1.__exportStar(require("./renderRadioGroup"), exports);
10
+ tslib_1.__exportStar(require("./useRadioGroup"), exports);
11
+ tslib_1.__exportStar(require("./useRadioGroupStyles"), exports);
13
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../lib/components/RadioGroup/index.js"],"sourcesContent":["export * from \"./RadioGroup\";\nexport * from \"./RadioGroup.types\";\nexport * from \"./renderRadioGroup\";\nexport * from \"./useRadioGroup\";\nexport * from \"./useRadioGroupStyles\";\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA;CACd,iCAAiC"}
1
+ {"version":3,"names":["tslib_1","__exportStar","require","exports"],"sources":["../../../../../../../../../packages/react-components/react-radio/src/components/RadioGroup/index.ts"],"sourcesContent":["export * from './RadioGroup';\nexport * from './RadioGroup.types';\nexport * from './renderRadioGroup';\nexport * from './useRadioGroup';\nexport * from './useRadioGroupStyles';\n"],"mappings":";;;;;;AAAAA,OAAA,CAAAC,YAAA,CAAAC,OAAA,kBAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,wBAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,wBAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,qBAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,2BAAAC,OAAA"}
@@ -1,20 +1,25 @@
1
1
  "use strict";
2
+
2
3
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "renderRadioGroup_unstable", {
6
- enumerable: true,
7
- get: ()=>renderRadioGroup_unstable
4
+ value: true
8
5
  });
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 _radioGroupContext = require("../../contexts/RadioGroupContext");
13
- const renderRadioGroup_unstable = (state, contextValues)=>{
14
- const { slots , slotProps } = (0, _reactUtilities.getSlots)(state);
15
- return /*#__PURE__*/ _react.createElement(_radioGroupContext.RadioGroupContext.Provider, {
16
- value: contextValues.radioGroup
17
- }, /*#__PURE__*/ _react.createElement(slots.root, slotProps.root));
18
- }; //# sourceMappingURL=renderRadioGroup.js.map
19
-
6
+ exports.renderRadioGroup_unstable = void 0;
7
+ const React = /*#__PURE__*/require("react");
8
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
9
+ const RadioGroupContext_1 = /*#__PURE__*/require("../../contexts/RadioGroupContext");
10
+ /**
11
+ * Render the final JSX of RadioGroup
12
+ */
13
+ const renderRadioGroup_unstable = (state, contextValues) => {
14
+ const {
15
+ slots,
16
+ slotProps
17
+ } = react_utilities_1.getSlots(state);
18
+ return React.createElement(RadioGroupContext_1.RadioGroupContext.Provider, {
19
+ value: contextValues.radioGroup
20
+ }, React.createElement(slots.root, {
21
+ ...slotProps.root
22
+ }));
23
+ };
24
+ exports.renderRadioGroup_unstable = renderRadioGroup_unstable;
20
25
  //# sourceMappingURL=renderRadioGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../lib/components/RadioGroup/renderRadioGroup.js"],"sourcesContent":["import * as React from \"react\";\nimport { getSlots } from \"@fluentui/react-utilities\";\nimport { RadioGroupContext } from \"../../contexts/RadioGroupContext\";\n/**\n * Render the final JSX of RadioGroup\n */\nexport const renderRadioGroup_unstable = (state, contextValues) => {\n const {\n slots,\n slotProps\n } = getSlots(state);\n return /*#__PURE__*/React.createElement(RadioGroupContext.Provider, {\n value: contextValues.radioGroup\n }, /*#__PURE__*/React.createElement(slots.root, slotProps.root));\n};\n//# sourceMappingURL=renderRadioGroup.js.map"],"names":["renderRadioGroup_unstable","state","contextValues","slots","slotProps","getSlots","React","createElement","RadioGroupContext","Provider","value","radioGroup","root"],"mappings":";;;;+BAMaA;;aAAAA;;;6DANU;gCACE;mCACS;AAI3B,MAAMA,4BAA4B,CAACC,OAAOC,gBAAkB;IACjE,MAAM,EACJC,MAAK,EACLC,UAAS,EACV,GAAGC,IAAAA,wBAAQ,EAACJ;IACb,OAAO,WAAW,GAAEK,OAAMC,aAAa,CAACC,oCAAiB,CAACC,QAAQ,EAAE;QAClEC,OAAOR,cAAcS,UAAU;IACjC,GAAG,WAAW,GAAEL,OAAMC,aAAa,CAACJ,MAAMS,IAAI,EAAER,UAAUQ,IAAI;AAChE,GACA,4CAA4C"}
1
+ {"version":3,"names":["React","require","react_utilities_1","RadioGroupContext_1","renderRadioGroup_unstable","state","contextValues","slots","slotProps","getSlots","createElement","RadioGroupContext","Provider","value","radioGroup","root","exports"],"sources":["../../../../../../../../../packages/react-components/react-radio/src/components/RadioGroup/renderRadioGroup.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport { RadioGroupContext } from '../../contexts/RadioGroupContext';\nimport { RadioGroupContextValues, RadioGroupSlots, RadioGroupState } from './RadioGroup.types';\n\n/**\n * Render the final JSX of RadioGroup\n */\nexport const renderRadioGroup_unstable = (state: RadioGroupState, contextValues: RadioGroupContextValues) => {\n const { slots, slotProps } = getSlots<RadioGroupSlots>(state);\n\n return (\n <RadioGroupContext.Provider value={contextValues.radioGroup}>\n <slots.root {...slotProps.root} />\n </RadioGroupContext.Provider>\n );\n};\n"],"mappings":";;;;;;AAAA,MAAAA,KAAA,gBAAAC,OAAA;AACA,MAAAC,iBAAA,gBAAAD,OAAA;AACA,MAAAE,mBAAA,gBAAAF,OAAA;AAGA;;;AAGO,MAAMG,yBAAyB,GAAGA,CAACC,KAAsB,EAAEC,aAAsC,KAAI;EAC1G,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGN,iBAAA,CAAAO,QAAQ,CAAkBJ,KAAK,CAAC;EAE7D,OACEL,KAAA,CAAAU,aAAA,CAACP,mBAAA,CAAAQ,iBAAiB,CAACC,QAAQ;IAACC,KAAK,EAAEP,aAAa,CAACQ;EAAU,GACzDd,KAAA,CAAAU,aAAA,CAACH,KAAK,CAACQ,IAAI;IAAA,GAAKP,SAAS,CAACO;EAAI,EAAI,CACP;AAEjC,CAAC;AARYC,OAAA,CAAAZ,yBAAyB,GAAAA,yBAAA"}
@@ -1,45 +1,55 @@
1
1
  "use strict";
2
+
2
3
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "useRadioGroup_unstable", {
6
- enumerable: true,
7
- get: ()=>useRadioGroup_unstable
4
+ value: true
8
5
  });
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 useRadioGroup_unstable = (props, ref)=>{
13
- const generatedName = (0, _reactUtilities.useId)("radiogroup-");
14
- const { name =generatedName , value , defaultValue , disabled , layout ="vertical" , onChange , required } = props;
15
- return {
16
- layout,
17
- name,
18
- value,
19
- defaultValue,
20
- disabled,
21
- required,
22
- components: {
23
- root: "div"
24
- },
25
- root: {
26
- ref,
27
- role: "radiogroup",
28
- ...(0, _reactUtilities.getNativeElementProps)("div", props, /*excludedPropNames:*/ [
29
- "onChange",
30
- "name"
31
- ]),
32
- onChange: (0, _reactUtilities.useEventCallback)((ev)=>{
33
- if (onChange && (0, _reactUtilities.isHTMLElement)(ev.target, {
34
- constructorName: "HTMLInputElement"
35
- }) && ev.target.type === "radio") {
36
- onChange(ev, {
37
- value: ev.target.value
38
- });
39
- }
40
- })
6
+ exports.useRadioGroup_unstable = void 0;
7
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
8
+ /**
9
+ * Create the state required to render RadioGroup.
10
+ *
11
+ * The returned state can be modified with hooks such as useRadioGroupStyles_unstable,
12
+ * before being passed to renderRadioGroup_unstable.
13
+ *
14
+ * @param props - props from this instance of RadioGroup
15
+ * @param ref - reference to root HTMLElement of RadioGroup
16
+ */
17
+ const useRadioGroup_unstable = (props, ref) => {
18
+ const generatedName = react_utilities_1.useId('radiogroup-');
19
+ const {
20
+ name = generatedName,
21
+ value,
22
+ defaultValue,
23
+ disabled,
24
+ layout = 'vertical',
25
+ onChange,
26
+ required
27
+ } = props;
28
+ return {
29
+ layout,
30
+ name,
31
+ value,
32
+ defaultValue,
33
+ disabled,
34
+ required,
35
+ components: {
36
+ root: 'div'
37
+ },
38
+ root: {
39
+ ref,
40
+ role: 'radiogroup',
41
+ ...react_utilities_1.getNativeElementProps('div', props, /*excludedPropNames:*/['onChange', 'name']),
42
+ onChange: react_utilities_1.useEventCallback(ev => {
43
+ if (onChange && react_utilities_1.isHTMLElement(ev.target, {
44
+ constructorName: 'HTMLInputElement'
45
+ }) && ev.target.type === 'radio') {
46
+ onChange(ev, {
47
+ value: ev.target.value
48
+ });
41
49
  }
42
- };
43
- }; //# sourceMappingURL=useRadioGroup.js.map
44
-
50
+ })
51
+ }
52
+ };
53
+ };
54
+ exports.useRadioGroup_unstable = useRadioGroup_unstable;
45
55
  //# sourceMappingURL=useRadioGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../lib/components/RadioGroup/useRadioGroup.js"],"sourcesContent":["import * as React from \"react\";\nimport { getNativeElementProps, isHTMLElement, useEventCallback, useId } from \"@fluentui/react-utilities\";\n/**\n * Create the state required to render RadioGroup.\n *\n * The returned state can be modified with hooks such as useRadioGroupStyles_unstable,\n * before being passed to renderRadioGroup_unstable.\n *\n * @param props - props from this instance of RadioGroup\n * @param ref - reference to root HTMLElement of RadioGroup\n */\nexport const useRadioGroup_unstable = (props, ref) => {\n const generatedName = useId(\"radiogroup-\");\n const {\n name = generatedName,\n value,\n defaultValue,\n disabled,\n layout = \"vertical\",\n onChange,\n required\n } = props;\n return {\n layout,\n name,\n value,\n defaultValue,\n disabled,\n required,\n components: {\n root: \"div\"\n },\n root: {\n ref,\n role: \"radiogroup\",\n ...getNativeElementProps(\"div\", props, /*excludedPropNames:*/[\"onChange\", \"name\"]),\n onChange: useEventCallback(ev => {\n if (onChange && isHTMLElement(ev.target, {\n constructorName: \"HTMLInputElement\"\n }) && ev.target.type === \"radio\") {\n onChange(ev, {\n value: ev.target.value\n });\n }\n })\n }\n };\n};\n//# sourceMappingURL=useRadioGroup.js.map"],"names":["useRadioGroup_unstable","props","ref","generatedName","useId","name","value","defaultValue","disabled","layout","onChange","required","components","root","role","getNativeElementProps","useEventCallback","ev","isHTMLElement","target","constructorName","type"],"mappings":";;;;+BAWaA;;aAAAA;;;6DAXU;gCACuD;AAUvE,MAAMA,yBAAyB,CAACC,OAAOC,MAAQ;IACpD,MAAMC,gBAAgBC,IAAAA,qBAAK,EAAC;IAC5B,MAAM,EACJC,MAAOF,cAAa,EACpBG,MAAK,EACLC,aAAY,EACZC,SAAQ,EACRC,QAAS,WAAU,EACnBC,SAAQ,EACRC,SAAQ,EACT,GAAGV;IACJ,OAAO;QACLQ;QACAJ;QACAC;QACAC;QACAC;QACAG;QACAC,YAAY;YACVC,MAAM;QACR;QACAA,MAAM;YACJX;YACAY,MAAM;YACN,GAAGC,IAAAA,qCAAqB,EAAC,OAAOd,OAAO,oBAAoB,GAAE;gBAAC;gBAAY;aAAO,CAAC;YAClFS,UAAUM,IAAAA,gCAAgB,EAACC,CAAAA,KAAM;gBAC/B,IAAIP,YAAYQ,IAAAA,6BAAa,EAACD,GAAGE,MAAM,EAAE;oBACvCC,iBAAiB;gBACnB,MAAMH,GAAGE,MAAM,CAACE,IAAI,KAAK,SAAS;oBAChCX,SAASO,IAAI;wBACXX,OAAOW,GAAGE,MAAM,CAACb,KAAK;oBACxB;gBACF,CAAC;YACH;QACF;IACF;AACF,GACA,yCAAyC"}
1
+ {"version":3,"names":["react_utilities_1","require","useRadioGroup_unstable","props","ref","generatedName","useId","name","value","defaultValue","disabled","layout","onChange","required","components","root","role","getNativeElementProps","useEventCallback","ev","isHTMLElement","target","constructorName","type","exports"],"sources":["../../../../../../../../../packages/react-components/react-radio/src/components/RadioGroup/useRadioGroup.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, isHTMLElement, useEventCallback, useId } from '@fluentui/react-utilities';\nimport { RadioGroupProps, RadioGroupState } from './RadioGroup.types';\n\n/**\n * Create the state required to render RadioGroup.\n *\n * The returned state can be modified with hooks such as useRadioGroupStyles_unstable,\n * before being passed to renderRadioGroup_unstable.\n *\n * @param props - props from this instance of RadioGroup\n * @param ref - reference to root HTMLElement of RadioGroup\n */\nexport const useRadioGroup_unstable = (props: RadioGroupProps, ref: React.Ref<HTMLDivElement>): RadioGroupState => {\n const generatedName = useId('radiogroup-');\n\n const { name = generatedName, value, defaultValue, disabled, layout = 'vertical', onChange, required } = props;\n\n return {\n layout,\n name,\n value,\n defaultValue,\n disabled,\n required,\n components: {\n root: 'div',\n },\n root: {\n ref,\n role: 'radiogroup',\n ...getNativeElementProps('div', props, /*excludedPropNames:*/ ['onChange', 'name']),\n onChange: useEventCallback(ev => {\n if (\n onChange &&\n isHTMLElement(ev.target, { constructorName: 'HTMLInputElement' }) &&\n ev.target.type === 'radio'\n ) {\n onChange(ev, { value: ev.target.value });\n }\n }),\n },\n };\n};\n"],"mappings":";;;;;;AACA,MAAAA,iBAAA,gBAAAC,OAAA;AAGA;;;;;;;;;AASO,MAAMC,sBAAsB,GAAGA,CAACC,KAAsB,EAAEC,GAA8B,KAAqB;EAChH,MAAMC,aAAa,GAAGL,iBAAA,CAAAM,KAAK,CAAC,aAAa,CAAC;EAE1C,MAAM;IAAEC,IAAI,GAAGF,aAAa;IAAEG,KAAK;IAAEC,YAAY;IAAEC,QAAQ;IAAEC,MAAM,GAAG,UAAU;IAAEC,QAAQ;IAAEC;EAAQ,CAAE,GAAGV,KAAK;EAE9G,OAAO;IACLQ,MAAM;IACNJ,IAAI;IACJC,KAAK;IACLC,YAAY;IACZC,QAAQ;IACRG,QAAQ;IACRC,UAAU,EAAE;MACVC,IAAI,EAAE;KACP;IACDA,IAAI,EAAE;MACJX,GAAG;MACHY,IAAI,EAAE,YAAY;MAClB,GAAGhB,iBAAA,CAAAiB,qBAAqB,CAAC,KAAK,EAAEd,KAAK,EAAE,sBAAuB,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;MACnFS,QAAQ,EAAEZ,iBAAA,CAAAkB,gBAAgB,CAACC,EAAE,IAAG;QAC9B,IACEP,QAAQ,IACRZ,iBAAA,CAAAoB,aAAa,CAACD,EAAE,CAACE,MAAM,EAAE;UAAEC,eAAe,EAAE;QAAkB,CAAE,CAAC,IACjEH,EAAE,CAACE,MAAM,CAACE,IAAI,KAAK,OAAO,EAC1B;UACAX,QAAQ,CAACO,EAAE,EAAE;YAAEX,KAAK,EAAEW,EAAE,CAACE,MAAM,CAACb;UAAK,CAAE,CAAC;;MAE5C,CAAC;;GAEJ;AACH,CAAC;AA9BYgB,OAAA,CAAAtB,sBAAsB,GAAAA,sBAAA"}
@@ -1,39 +1,30 @@
1
1
  "use strict";
2
+
2
3
  Object.defineProperty(exports, "__esModule", {
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
4
+ value: true
14
5
  });
15
- const _react = require("@griffel/react");
16
- const radioGroupClassNames = {
17
- root: "fui-RadioGroup"
6
+ exports.useRadioGroupStyles_unstable = exports.radioGroupClassNames = void 0;
7
+ const react_1 = /*#__PURE__*/require("@griffel/react");
8
+ exports.radioGroupClassNames = {
9
+ root: 'fui-RadioGroup'
18
10
  };
19
- const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
20
- root: {
21
- mc9l5x: "f22iagw",
22
- Bt984gj: "f6jr5hl"
23
- },
24
- vertical: {
25
- Beiy3e4: "f1vx9l62"
26
- }
11
+ const useStyles = /*#__PURE__*/react_1.__styles({
12
+ root: {
13
+ mc9l5x: "f22iagw",
14
+ Bt984gj: "f6jr5hl"
15
+ },
16
+ vertical: {
17
+ Beiy3e4: "f1vx9l62"
18
+ }
27
19
  }, {
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
- ]
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;}"]
33
21
  });
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
-
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;
39
30
  //# sourceMappingURL=useRadioGroupStyles.js.map
@@ -1 +1 @@
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
+ {"version":3,"names":["react_1","require","exports","radioGroupClassNames","root","useStyles","__styles","mc9l5x","Bt984gj","vertical","Beiy3e4","d","useRadioGroupStyles_unstable","state","styles","className","mergeClasses","layout"],"sources":["../../../../../../../../../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,20 +1,14 @@
1
- /* eslint-disable deprecation/deprecation */ "use strict";
1
+ "use strict";
2
+
2
3
  Object.defineProperty(exports, "__esModule", {
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
4
+ value: true
14
5
  });
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
-
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);
20
14
  //# sourceMappingURL=RadioGroupField.js.map
@@ -1 +1 @@
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
+ {"version":3,"names":["react_field_1","require","RadioGroup_1","exports","radioGroupFieldClassNames","getDeprecatedFieldClassNames","radioGroupClassNames","root","RadioGroupField","makeDeprecatedField","RadioGroup"],"sources":["../../../../../../../../../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,9 +1,8 @@
1
1
  "use strict";
2
+
2
3
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
+ value: true
4
5
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./RadioGroupField"), exports);
7
- //# sourceMappingURL=index.js.map
8
-
6
+ const tslib_1 = /*#__PURE__*/require("tslib");
7
+ tslib_1.__exportStar(require("./RadioGroupField"), exports);
9
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../lib/components/RadioGroupField/index.js"],"sourcesContent":["export * from \"./RadioGroupField\";\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;CACd,iCAAiC"}
1
+ {"version":3,"names":["tslib_1","__exportStar","require","exports"],"sources":["../../../../../../../../../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,22 +1,16 @@
1
1
  "use strict";
2
+
2
3
  Object.defineProperty(exports, "__esModule", {
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
4
+ value: true
15
5
  });
16
- const _reactContextSelector = require("@fluentui/react-context-selector");
17
- const RadioGroupContext = /*#__PURE__*/ (0, _reactContextSelector.createContext)(undefined);
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);
18
12
  const radioGroupContextDefaultValue = {};
19
- const RadioGroupProvider = RadioGroupContext.Provider;
20
- const useRadioGroupContext_unstable = (selector)=>(0, _reactContextSelector.useContextSelector)(RadioGroupContext, (ctx = radioGroupContextDefaultValue)=>selector(ctx)); //# sourceMappingURL=RadioGroupContext.js.map
21
-
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;
22
16
  //# sourceMappingURL=RadioGroupContext.js.map
@@ -1 +1 @@
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
+ {"version":3,"names":["react_context_selector_1","require","exports","RadioGroupContext","createContext","undefined","radioGroupContextDefaultValue","RadioGroupProvider","Provider","useRadioGroupContext_unstable","selector","useContextSelector","ctx"],"sources":["../../../../../../../../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,10 +1,9 @@
1
1
  "use strict";
2
+
2
3
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
+ value: true
4
5
  });
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
-
6
+ const tslib_1 = /*#__PURE__*/require("tslib");
7
+ tslib_1.__exportStar(require("./RadioGroupContext"), exports);
8
+ tslib_1.__exportStar(require("./useRadioGroupContextValues"), exports);
10
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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
+ {"version":3,"names":["tslib_1","__exportStar","require","exports"],"sources":["../../../../../../../../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,24 +1,29 @@
1
1
  "use strict";
2
+
2
3
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "useRadioGroupContextValues", {
6
- enumerable: true,
7
- get: ()=>useRadioGroupContextValues
4
+ value: true
8
5
  });
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
-
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;
24
29
  //# sourceMappingURL=useRadioGroupContextValues.js.map
@@ -1 +1 @@
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
+ {"version":3,"names":["useRadioGroupContextValues","state","name","value","defaultValue","disabled","layout","required","radioGroup","exports"],"sources":["../../../../../../../../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,34 +1,102 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", {
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
2
 
3
+ 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
+ });
34
102
  //# sourceMappingURL=index.js.map