@fluentui/react-radio 0.0.0-nightly-20230403-0420.1 → 0.0.0-nightly-20230405-0421.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.
package/CHANGELOG.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@fluentui/react-radio",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 03 Apr 2023 04:26:40 GMT",
6
- "tag": "@fluentui/react-radio_v0.0.0-nightly-20230403-0420.1",
7
- "version": "0.0.0-nightly-20230403-0420.1",
5
+ "date": "Wed, 05 Apr 2023 04:27:59 GMT",
6
+ "tag": "@fluentui/react-radio_v0.0.0-nightly-20230405-0421.1",
7
+ "version": "0.0.0-nightly-20230405-0421.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
@@ -16,50 +16,89 @@
16
16
  {
17
17
  "author": "beachball",
18
18
  "package": "@fluentui/react-radio",
19
- "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly-20230403-0420.1",
20
- "commit": "bd1390ac04455f62e70e92c4103d286fc362dc72"
19
+ "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly-20230405-0421.1",
20
+ "commit": "b363f61416aba5861d265582db62040b5dced850"
21
21
  },
22
22
  {
23
23
  "author": "beachball",
24
24
  "package": "@fluentui/react-radio",
25
- "comment": "Bump @fluentui/react-field to v0.0.0-nightly-20230403-0420.1",
26
- "commit": "bd1390ac04455f62e70e92c4103d286fc362dc72"
25
+ "comment": "Bump @fluentui/react-field to v0.0.0-nightly-20230405-0421.1",
26
+ "commit": "b363f61416aba5861d265582db62040b5dced850"
27
27
  },
28
28
  {
29
29
  "author": "beachball",
30
30
  "package": "@fluentui/react-radio",
31
- "comment": "Bump @fluentui/react-label to v0.0.0-nightly-20230403-0420.1",
32
- "commit": "bd1390ac04455f62e70e92c4103d286fc362dc72"
31
+ "comment": "Bump @fluentui/react-label to v0.0.0-nightly-20230405-0421.1",
32
+ "commit": "b363f61416aba5861d265582db62040b5dced850"
33
33
  },
34
34
  {
35
35
  "author": "beachball",
36
36
  "package": "@fluentui/react-radio",
37
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230403-0420.1",
38
- "commit": "bd1390ac04455f62e70e92c4103d286fc362dc72"
37
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230405-0421.1",
38
+ "commit": "b363f61416aba5861d265582db62040b5dced850"
39
39
  },
40
40
  {
41
41
  "author": "beachball",
42
42
  "package": "@fluentui/react-radio",
43
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20230403-0420.1",
44
- "commit": "bd1390ac04455f62e70e92c4103d286fc362dc72"
43
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20230405-0421.1",
44
+ "commit": "b363f61416aba5861d265582db62040b5dced850"
45
45
  },
46
46
  {
47
47
  "author": "beachball",
48
48
  "package": "@fluentui/react-radio",
49
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20230403-0420.1",
50
- "commit": "bd1390ac04455f62e70e92c4103d286fc362dc72"
49
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20230405-0421.1",
50
+ "commit": "b363f61416aba5861d265582db62040b5dced850"
51
51
  },
52
52
  {
53
53
  "author": "beachball",
54
54
  "package": "@fluentui/react-radio",
55
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230403-0420.1",
56
- "commit": "bd1390ac04455f62e70e92c4103d286fc362dc72"
55
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230405-0421.1",
56
+ "commit": "b363f61416aba5861d265582db62040b5dced850"
57
57
  },
58
58
  {
59
59
  "author": "beachball",
60
60
  "package": "@fluentui/react-radio",
61
- "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230403-0420.1",
62
- "commit": "bd1390ac04455f62e70e92c4103d286fc362dc72"
61
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230405-0421.1",
62
+ "commit": "b363f61416aba5861d265582db62040b5dced850"
63
+ }
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "date": "Tue, 04 Apr 2023 18:44:50 GMT",
69
+ "tag": "@fluentui/react-radio_v9.1.7",
70
+ "version": "9.1.7",
71
+ "comments": {
72
+ "patch": [
73
+ {
74
+ "author": "beachball",
75
+ "package": "@fluentui/react-radio",
76
+ "comment": "Bump @fluentui/react-context-selector to v9.1.16",
77
+ "commit": "6778d76bbbad7e1975c151c797f28c2708cde2ce"
78
+ },
79
+ {
80
+ "author": "beachball",
81
+ "package": "@fluentui/react-radio",
82
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.29",
83
+ "commit": "6778d76bbbad7e1975c151c797f28c2708cde2ce"
84
+ },
85
+ {
86
+ "author": "beachball",
87
+ "package": "@fluentui/react-radio",
88
+ "comment": "Bump @fluentui/react-label to v9.1.7",
89
+ "commit": "6778d76bbbad7e1975c151c797f28c2708cde2ce"
90
+ },
91
+ {
92
+ "author": "beachball",
93
+ "package": "@fluentui/react-radio",
94
+ "comment": "Bump @fluentui/react-tabster to v9.6.3",
95
+ "commit": "6778d76bbbad7e1975c151c797f28c2708cde2ce"
96
+ },
97
+ {
98
+ "author": "beachball",
99
+ "package": "@fluentui/react-radio",
100
+ "comment": "Bump @fluentui/react-utilities to v9.7.3",
101
+ "commit": "6778d76bbbad7e1975c151c797f28c2708cde2ce"
63
102
  }
64
103
  ]
65
104
  }
package/CHANGELOG.md CHANGED
@@ -1,25 +1,38 @@
1
1
  # Change Log - @fluentui/react-radio
2
2
 
3
- This log was last generated on Mon, 03 Apr 2023 04:26:40 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 05 Apr 2023 04:27:59 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20230403-0420.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-radio_v0.0.0-nightly-20230403-0420.1)
7
+ ## [0.0.0-nightly-20230405-0421.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-radio_v0.0.0-nightly-20230405-0421.1)
8
8
 
9
- Mon, 03 Apr 2023 04:26:40 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-radio_v9.1.5..@fluentui/react-radio_v0.0.0-nightly-20230403-0420.1)
9
+ Wed, 05 Apr 2023 04:27:59 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-radio_v9.1.7..@fluentui/react-radio_v0.0.0-nightly-20230405-0421.1)
11
11
 
12
12
  ### Changes
13
13
 
14
14
  - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
- - Bump @fluentui/react-context-selector to v0.0.0-nightly-20230403-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/bd1390ac04455f62e70e92c4103d286fc362dc72) by beachball)
16
- - Bump @fluentui/react-field to v0.0.0-nightly-20230403-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/bd1390ac04455f62e70e92c4103d286fc362dc72) by beachball)
17
- - Bump @fluentui/react-label to v0.0.0-nightly-20230403-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/bd1390ac04455f62e70e92c4103d286fc362dc72) by beachball)
18
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230403-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/bd1390ac04455f62e70e92c4103d286fc362dc72) by beachball)
19
- - Bump @fluentui/react-tabster to v0.0.0-nightly-20230403-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/bd1390ac04455f62e70e92c4103d286fc362dc72) by beachball)
20
- - Bump @fluentui/react-theme to v0.0.0-nightly-20230403-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/bd1390ac04455f62e70e92c4103d286fc362dc72) by beachball)
21
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20230403-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/bd1390ac04455f62e70e92c4103d286fc362dc72) by beachball)
22
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230403-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/bd1390ac04455f62e70e92c4103d286fc362dc72) by beachball)
15
+ - Bump @fluentui/react-context-selector to v0.0.0-nightly-20230405-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/b363f61416aba5861d265582db62040b5dced850) by beachball)
16
+ - Bump @fluentui/react-field to v0.0.0-nightly-20230405-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/b363f61416aba5861d265582db62040b5dced850) by beachball)
17
+ - Bump @fluentui/react-label to v0.0.0-nightly-20230405-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/b363f61416aba5861d265582db62040b5dced850) by beachball)
18
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230405-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/b363f61416aba5861d265582db62040b5dced850) by beachball)
19
+ - Bump @fluentui/react-tabster to v0.0.0-nightly-20230405-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/b363f61416aba5861d265582db62040b5dced850) by beachball)
20
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20230405-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/b363f61416aba5861d265582db62040b5dced850) by beachball)
21
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20230405-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/b363f61416aba5861d265582db62040b5dced850) by beachball)
22
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230405-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/b363f61416aba5861d265582db62040b5dced850) by beachball)
23
+
24
+ ## [9.1.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-radio_v9.1.7)
25
+
26
+ Tue, 04 Apr 2023 18:44:50 GMT
27
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-radio_v9.1.5..@fluentui/react-radio_v9.1.7)
28
+
29
+ ### Patches
30
+
31
+ - Bump @fluentui/react-context-selector to v9.1.16 ([PR #27434](https://github.com/microsoft/fluentui/pull/27434) by beachball)
32
+ - Bump @fluentui/react-field to v9.0.0-alpha.29 ([PR #27434](https://github.com/microsoft/fluentui/pull/27434) by beachball)
33
+ - Bump @fluentui/react-label to v9.1.7 ([PR #27434](https://github.com/microsoft/fluentui/pull/27434) by beachball)
34
+ - Bump @fluentui/react-tabster to v9.6.3 ([PR #27434](https://github.com/microsoft/fluentui/pull/27434) by beachball)
35
+ - Bump @fluentui/react-utilities to v9.7.3 ([PR #27434](https://github.com/microsoft/fluentui/pull/27434) by beachball)
23
36
 
24
37
  ## [9.1.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-radio_v9.1.5)
25
38
 
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { useFieldControlProps_unstable } from '@fluentui/react-field';
2
3
  import { getNativeElementProps, isHTMLElement, useEventCallback, useId } from '@fluentui/react-utilities';
3
4
  /**
4
5
  * Create the state required to render RadioGroup.
@@ -10,6 +11,8 @@ import { getNativeElementProps, isHTMLElement, useEventCallback, useId } from '@
10
11
  * @param ref - reference to root HTMLElement of RadioGroup
11
12
  */
12
13
  export const useRadioGroup_unstable = (props, ref) => {
14
+ // Merge props from surrounding <Field>, if any
15
+ props = useFieldControlProps_unstable(props);
13
16
  const generatedName = useId('radiogroup-');
14
17
  const {
15
18
  name = generatedName,
@@ -1 +1 @@
1
- {"version":3,"names":["React","getNativeElementProps","isHTMLElement","useEventCallback","useId","useRadioGroup_unstable","props","ref","generatedName","name","value","defaultValue","disabled","layout","onChange","required","components","root","role","ev","target","constructorName","type"],"sources":["../../../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":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,qBAAqB,EAAEC,aAAa,EAAEC,gBAAgB,EAAEC,KAAK,QAAQ;AAG9E;;;;;;;;;AASA,OAAO,MAAMC,sBAAA,GAAyBA,CAACC,KAAA,EAAwBC,GAAA,KAAoD;EACjH,MAAMC,aAAA,GAAgBJ,KAAA,CAAM;EAE5B,MAAM;IAAEK,IAAA,GAAOD,aAAA;IAAeE,KAAA;IAAOC,YAAA;IAAcC,QAAA;IAAUC,MAAA,GAAS;IAAYC,QAAA;IAAUC;EAAQ,CAAE,GAAGT,KAAA;EAEzG,OAAO;IACLO,MAAA;IACAJ,IAAA;IACAC,KAAA;IACAC,YAAA;IACAC,QAAA;IACAG,QAAA;IACAC,UAAA,EAAY;MACVC,IAAA,EAAM;IACR;IACAA,IAAA,EAAM;MACJV,GAAA;MACAW,IAAA,EAAM;MACN,GAAGjB,qBAAA,CAAsB,OAAOK,KAAA,EAAO,sBAAuB,CAAC,YAAY,OAAO,CAAC;MACnFQ,QAAA,EAAUX,gBAAA,CAAiBgB,EAAA,IAAM;QAC/B,IACEL,QAAA,IACAZ,aAAA,CAAciB,EAAA,CAAGC,MAAM,EAAE;UAAEC,eAAA,EAAiB;QAAmB,MAC/DF,EAAA,CAAGC,MAAM,CAACE,IAAI,KAAK,SACnB;UACAR,QAAA,CAASK,EAAA,EAAI;YAAET,KAAA,EAAOS,EAAA,CAAGC,MAAM,CAACV;UAAM;QACxC;MACF;IACF;EACF;AACF"}
1
+ {"version":3,"names":["React","useFieldControlProps_unstable","getNativeElementProps","isHTMLElement","useEventCallback","useId","useRadioGroup_unstable","props","ref","generatedName","name","value","defaultValue","disabled","layout","onChange","required","components","root","role","ev","target","constructorName","type"],"sources":["../../../src/components/RadioGroup/useRadioGroup.ts"],"sourcesContent":["import * as React from 'react';\nimport { useFieldControlProps_unstable } from '@fluentui/react-field';\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 // Merge props from surrounding <Field>, if any\n props = useFieldControlProps_unstable(props);\n\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":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,6BAA6B,QAAQ;AAC9C,SAASC,qBAAqB,EAAEC,aAAa,EAAEC,gBAAgB,EAAEC,KAAK,QAAQ;AAG9E;;;;;;;;;AASA,OAAO,MAAMC,sBAAA,GAAyBA,CAACC,KAAA,EAAwBC,GAAA,KAAoD;EACjH;EACAD,KAAA,GAAQN,6BAAA,CAA8BM,KAAA;EAEtC,MAAME,aAAA,GAAgBJ,KAAA,CAAM;EAE5B,MAAM;IAAEK,IAAA,GAAOD,aAAA;IAAeE,KAAA;IAAOC,YAAA;IAAcC,QAAA;IAAUC,MAAA,GAAS;IAAYC,QAAA;IAAUC;EAAQ,CAAE,GAAGT,KAAA;EAEzG,OAAO;IACLO,MAAA;IACAJ,IAAA;IACAC,KAAA;IACAC,YAAA;IACAC,QAAA;IACAG,QAAA;IACAC,UAAA,EAAY;MACVC,IAAA,EAAM;IACR;IACAA,IAAA,EAAM;MACJV,GAAA;MACAW,IAAA,EAAM;MACN,GAAGjB,qBAAA,CAAsB,OAAOK,KAAA,EAAO,sBAAuB,CAAC,YAAY,OAAO,CAAC;MACnFQ,QAAA,EAAUX,gBAAA,CAAiBgB,EAAA,IAAM;QAC/B,IACEL,QAAA,IACAZ,aAAA,CAAciB,EAAA,CAAGC,MAAM,EAAE;UAAEC,eAAA,EAAiB;QAAmB,MAC/DF,EAAA,CAAGC,MAAM,CAACE,IAAI,KAAK,SACnB;UACAR,QAAA,CAASK,EAAA,EAAI;YAAET,KAAA,EAAOS,EAAA,CAAGC,MAAM,CAACV;UAAM;QACxC;MACF;IACF;EACF;AACF"}
@@ -8,8 +8,11 @@ Object.defineProperty(exports, "useRadioGroup_unstable", {
8
8
  });
9
9
  const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
10
  const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _reactField = require("@fluentui/react-field");
11
12
  const _reactUtilities = require("@fluentui/react-utilities");
12
13
  const useRadioGroup_unstable = (props, ref)=>{
14
+ // Merge props from surrounding <Field>, if any
15
+ props = (0, _reactField.useFieldControlProps_unstable)(props);
13
16
  const generatedName = (0, _reactUtilities.useId)('radiogroup-');
14
17
  const { name =generatedName , value , defaultValue , disabled , layout ='vertical' , onChange , required } = props;
15
18
  return {
@@ -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,"sources":["../../../lib/components/RadioGroup/useRadioGroup.js"],"sourcesContent":["import * as React from 'react';\nimport { useFieldControlProps_unstable } from '@fluentui/react-field';\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 // Merge props from surrounding <Field>, if any\n props = useFieldControlProps_unstable(props);\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","useFieldControlProps_unstable","generatedName","useId","name","value","defaultValue","disabled","layout","onChange","required","components","root","role","getNativeElementProps","useEventCallback","ev","isHTMLElement","target","constructorName","type"],"mappings":";;;;+BAYaA;;aAAAA;;;6DAZU;4BACuB;gCACgC;AAUvE,MAAMA,yBAAyB,CAACC,OAAOC,MAAQ;IACpD,+CAA+C;IAC/CD,QAAQE,IAAAA,yCAA6B,EAACF;IACtC,MAAMG,gBAAgBC,IAAAA,qBAAK,EAAC;IAC5B,MAAM,EACJC,MAAOF,cAAa,EACpBG,MAAK,EACLC,aAAY,EACZC,SAAQ,EACRC,QAAS,WAAU,EACnBC,SAAQ,EACRC,SAAQ,EACT,GAAGX;IACJ,OAAO;QACLS;QACAJ;QACAC;QACAC;QACAC;QACAG;QACAC,YAAY;YACVC,MAAM;QACR;QACAA,MAAM;YACJZ;YACAa,MAAM;YACN,GAAGC,IAAAA,qCAAqB,EAAC,OAAOf,OAAO,oBAAoB,GAAE;gBAAC;gBAAY;aAAO,CAAC;YAClFU,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-radio",
3
- "version": "0.0.0-nightly-20230403-0420.1",
3
+ "version": "0.0.0-nightly-20230405-0421.1",
4
4
  "description": "Fluent UI Radio component",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -27,19 +27,19 @@
27
27
  "devDependencies": {
28
28
  "@fluentui/eslint-plugin": "*",
29
29
  "@fluentui/react-conformance": "*",
30
- "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230403-0420.1",
30
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230405-0421.1",
31
31
  "@fluentui/scripts-api-extractor": "*",
32
32
  "@fluentui/scripts-tasks": "*"
33
33
  },
34
34
  "dependencies": {
35
- "@fluentui/react-context-selector": "0.0.0-nightly-20230403-0420.1",
36
- "@fluentui/react-field": "0.0.0-nightly-20230403-0420.1",
35
+ "@fluentui/react-context-selector": "0.0.0-nightly-20230405-0421.1",
36
+ "@fluentui/react-field": "0.0.0-nightly-20230405-0421.1",
37
37
  "@fluentui/react-icons": "^2.0.196",
38
- "@fluentui/react-label": "0.0.0-nightly-20230403-0420.1",
39
- "@fluentui/react-shared-contexts": "0.0.0-nightly-20230403-0420.1",
40
- "@fluentui/react-tabster": "0.0.0-nightly-20230403-0420.1",
41
- "@fluentui/react-theme": "0.0.0-nightly-20230403-0420.1",
42
- "@fluentui/react-utilities": "0.0.0-nightly-20230403-0420.1",
38
+ "@fluentui/react-label": "0.0.0-nightly-20230405-0421.1",
39
+ "@fluentui/react-shared-contexts": "0.0.0-nightly-20230405-0421.1",
40
+ "@fluentui/react-tabster": "0.0.0-nightly-20230405-0421.1",
41
+ "@fluentui/react-theme": "0.0.0-nightly-20230405-0421.1",
42
+ "@fluentui/react-utilities": "0.0.0-nightly-20230405-0421.1",
43
43
  "@griffel/react": "^1.5.2",
44
44
  "@swc/helpers": "^0.4.14"
45
45
  },