@fluentui/react-radio 9.1.50 → 9.1.52
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +64 -4
- package/CHANGELOG.md +28 -5
- package/lib/components/RadioGroup/useRadioGroup.js +2 -2
- package/lib/components/RadioGroup/useRadioGroup.js.map +1 -1
- package/lib-commonjs/components/RadioGroup/useRadioGroup.js +1 -1
- package/lib-commonjs/components/RadioGroup/useRadioGroup.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,67 @@
|
|
2
2
|
"name": "@fluentui/react-radio",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Mon, 23 Oct 2023 09:48:56 GMT",
|
6
|
+
"tag": "@fluentui/react-radio_v9.1.52",
|
7
|
+
"version": "9.1.52",
|
8
|
+
"comments": {
|
9
|
+
"patch": [
|
10
|
+
{
|
11
|
+
"author": "beachball",
|
12
|
+
"package": "@fluentui/react-radio",
|
13
|
+
"comment": "Bump @fluentui/react-tabster to v9.14.1",
|
14
|
+
"commit": "e4ef1febe8a185dddc10f8936944d177d50bc396"
|
15
|
+
}
|
16
|
+
]
|
17
|
+
}
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"date": "Wed, 18 Oct 2023 17:54:05 GMT",
|
21
|
+
"tag": "@fluentui/react-radio_v9.1.51",
|
22
|
+
"version": "9.1.51",
|
23
|
+
"comments": {
|
24
|
+
"patch": [
|
25
|
+
{
|
26
|
+
"author": "bernardo.sunderhus@gmail.com",
|
27
|
+
"package": "@fluentui/react-radio",
|
28
|
+
"commit": "967882a55a7333effea42e4c24a64e8547309116",
|
29
|
+
"comment": "chore: migrate from getNativeElementProps to getIntrinsicElementProps"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"author": "beachball",
|
33
|
+
"package": "@fluentui/react-radio",
|
34
|
+
"comment": "Bump @fluentui/react-field to v9.1.38",
|
35
|
+
"commit": "c0d3065982e1646c54ba00c1d524248b792dbcad"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"author": "beachball",
|
39
|
+
"package": "@fluentui/react-radio",
|
40
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.18",
|
41
|
+
"commit": "c0d3065982e1646c54ba00c1d524248b792dbcad"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"author": "beachball",
|
45
|
+
"package": "@fluentui/react-radio",
|
46
|
+
"comment": "Bump @fluentui/react-label to v9.1.46",
|
47
|
+
"commit": "c0d3065982e1646c54ba00c1d524248b792dbcad"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"author": "beachball",
|
51
|
+
"package": "@fluentui/react-radio",
|
52
|
+
"comment": "Bump @fluentui/react-tabster to v9.14.0",
|
53
|
+
"commit": "c0d3065982e1646c54ba00c1d524248b792dbcad"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"author": "beachball",
|
57
|
+
"package": "@fluentui/react-radio",
|
58
|
+
"comment": "Bump @fluentui/react-utilities to v9.15.1",
|
59
|
+
"commit": "c0d3065982e1646c54ba00c1d524248b792dbcad"
|
60
|
+
}
|
61
|
+
]
|
62
|
+
}
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"date": "Thu, 12 Oct 2023 14:55:44 GMT",
|
6
66
|
"tag": "@fluentui/react-radio_v9.1.50",
|
7
67
|
"version": "9.1.50",
|
8
68
|
"comments": {
|
@@ -11,19 +71,19 @@
|
|
11
71
|
"author": "beachball",
|
12
72
|
"package": "@fluentui/react-radio",
|
13
73
|
"comment": "Bump @fluentui/react-field to v9.1.37",
|
14
|
-
"commit": "
|
74
|
+
"commit": "8178c3cae60005bc21137aa1f3e766e18cdb4a30"
|
15
75
|
},
|
16
76
|
{
|
17
77
|
"author": "beachball",
|
18
78
|
"package": "@fluentui/react-radio",
|
19
79
|
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.17",
|
20
|
-
"commit": "
|
80
|
+
"commit": "8178c3cae60005bc21137aa1f3e766e18cdb4a30"
|
21
81
|
},
|
22
82
|
{
|
23
83
|
"author": "beachball",
|
24
84
|
"package": "@fluentui/react-radio",
|
25
85
|
"comment": "Bump @fluentui/react-label to v9.1.45",
|
26
|
-
"commit": "
|
86
|
+
"commit": "8178c3cae60005bc21137aa1f3e766e18cdb4a30"
|
27
87
|
}
|
28
88
|
]
|
29
89
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,19 +1,42 @@
|
|
1
1
|
# Change Log - @fluentui/react-radio
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Mon, 23 Oct 2023 09:48:56 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.1.52](https://github.com/microsoft/fluentui/tree/@fluentui/react-radio_v9.1.52)
|
8
|
+
|
9
|
+
Mon, 23 Oct 2023 09:48:56 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-radio_v9.1.51..@fluentui/react-radio_v9.1.52)
|
11
|
+
|
12
|
+
### Patches
|
13
|
+
|
14
|
+
- Bump @fluentui/react-tabster to v9.14.1 ([commit](https://github.com/microsoft/fluentui/commit/e4ef1febe8a185dddc10f8936944d177d50bc396) by beachball)
|
15
|
+
|
16
|
+
## [9.1.51](https://github.com/microsoft/fluentui/tree/@fluentui/react-radio_v9.1.51)
|
17
|
+
|
18
|
+
Wed, 18 Oct 2023 17:54:05 GMT
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-radio_v9.1.50..@fluentui/react-radio_v9.1.51)
|
20
|
+
|
21
|
+
### Patches
|
22
|
+
|
23
|
+
- chore: migrate from getNativeElementProps to getIntrinsicElementProps ([PR #29499](https://github.com/microsoft/fluentui/pull/29499) by bernardo.sunderhus@gmail.com)
|
24
|
+
- Bump @fluentui/react-field to v9.1.38 ([PR #29560](https://github.com/microsoft/fluentui/pull/29560) by beachball)
|
25
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.18 ([PR #29560](https://github.com/microsoft/fluentui/pull/29560) by beachball)
|
26
|
+
- Bump @fluentui/react-label to v9.1.46 ([PR #29560](https://github.com/microsoft/fluentui/pull/29560) by beachball)
|
27
|
+
- Bump @fluentui/react-tabster to v9.14.0 ([PR #29560](https://github.com/microsoft/fluentui/pull/29560) by beachball)
|
28
|
+
- Bump @fluentui/react-utilities to v9.15.1 ([PR #29560](https://github.com/microsoft/fluentui/pull/29560) by beachball)
|
29
|
+
|
7
30
|
## [9.1.50](https://github.com/microsoft/fluentui/tree/@fluentui/react-radio_v9.1.50)
|
8
31
|
|
9
|
-
Thu, 12 Oct 2023 14:
|
32
|
+
Thu, 12 Oct 2023 14:55:44 GMT
|
10
33
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-radio_v9.1.49..@fluentui/react-radio_v9.1.50)
|
11
34
|
|
12
35
|
### Patches
|
13
36
|
|
14
|
-
- Bump @fluentui/react-field to v9.1.37 ([PR #
|
15
|
-
- Bump @fluentui/react-jsx-runtime to v9.0.17 ([PR #
|
16
|
-
- Bump @fluentui/react-label to v9.1.45 ([PR #
|
37
|
+
- Bump @fluentui/react-field to v9.1.37 ([PR #29513](https://github.com/microsoft/fluentui/pull/29513) by beachball)
|
38
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.17 ([PR #29513](https://github.com/microsoft/fluentui/pull/29513) by beachball)
|
39
|
+
- Bump @fluentui/react-label to v9.1.45 ([PR #29513](https://github.com/microsoft/fluentui/pull/29513) by beachball)
|
17
40
|
|
18
41
|
## [9.1.49](https://github.com/microsoft/fluentui/tree/@fluentui/react-radio_v9.1.49)
|
19
42
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { useFieldControlProps_unstable } from '@fluentui/react-field';
|
3
|
-
import {
|
3
|
+
import { getIntrinsicElementProps, isHTMLElement, useEventCallback, useId, slot } from '@fluentui/react-utilities';
|
4
4
|
/**
|
5
5
|
* Create the state required to render RadioGroup.
|
6
6
|
*
|
@@ -27,7 +27,7 @@ import { getNativeElementProps, isHTMLElement, useEventCallback, useId, slot } f
|
|
27
27
|
root: {
|
28
28
|
ref,
|
29
29
|
role: 'radiogroup',
|
30
|
-
...slot.always(
|
30
|
+
...slot.always(getIntrinsicElementProps('div', props, /*excludedPropNames:*/ [
|
31
31
|
'onChange',
|
32
32
|
'name'
|
33
33
|
]), {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["useRadioGroup.ts"],"sourcesContent":["import * as React from 'react';\nimport { useFieldControlProps_unstable } from '@fluentui/react-field';\nimport {
|
1
|
+
{"version":3,"sources":["useRadioGroup.ts"],"sourcesContent":["import * as React from 'react';\nimport { useFieldControlProps_unstable } from '@fluentui/react-field';\nimport { getIntrinsicElementProps, isHTMLElement, useEventCallback, useId, slot } 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 ...slot.always(getIntrinsicElementProps('div', props, /*excludedPropNames:*/ ['onChange', 'name']), {\n elementType: 'div',\n }),\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"],"names":["React","useFieldControlProps_unstable","getIntrinsicElementProps","isHTMLElement","useEventCallback","useId","slot","useRadioGroup_unstable","props","ref","generatedName","name","value","defaultValue","disabled","layout","onChange","required","components","root","role","always","elementType","ev","target","constructorName","type"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,6BAA6B,QAAQ,wBAAwB;AACtE,SAASC,wBAAwB,EAAEC,aAAa,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,IAAI,QAAQ,4BAA4B;AAGnH;;;;;;;;CAQC,GACD,OAAO,MAAMC,yBAAyB,CAACC,OAAwBC;IAC7D,+CAA+C;IAC/CD,QAAQP,8BAA8BO;IAEtC,MAAME,gBAAgBL,MAAM;IAE5B,MAAM,EAAEM,OAAOD,aAAa,EAAEE,KAAK,EAAEC,YAAY,EAAEC,QAAQ,EAAEC,SAAS,UAAU,EAAEC,QAAQ,EAAEC,QAAQ,EAAE,GAAGT;IAEzG,OAAO;QACLO;QACAJ;QACAC;QACAC;QACAC;QACAG;QACAC,YAAY;YACVC,MAAM;QACR;QACAA,MAAM;YACJV;YACAW,MAAM;YACN,GAAGd,KAAKe,MAAM,CAACnB,yBAAyB,OAAOM,OAAO,oBAAoB,GAAG;gBAAC;gBAAY;aAAO,GAAG;gBAClGc,aAAa;YACf,EAAE;YACFN,UAAUZ,iBAAiBmB,CAAAA;gBACzB,IACEP,YACAb,cAAcoB,GAAGC,MAAM,EAAE;oBAAEC,iBAAiB;gBAAmB,MAC/DF,GAAGC,MAAM,CAACE,IAAI,KAAK,SACnB;oBACAV,SAASO,IAAI;wBAAEX,OAAOW,GAAGC,MAAM,CAACZ,KAAK;oBAAC;gBACxC;YACF;QACF;IACF;AACF,EAAE"}
|
@@ -30,7 +30,7 @@ const useRadioGroup_unstable = (props, ref)=>{
|
|
30
30
|
root: {
|
31
31
|
ref,
|
32
32
|
role: 'radiogroup',
|
33
|
-
..._reactutilities.slot.always((0, _reactutilities.
|
33
|
+
..._reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)('div', props, /*excludedPropNames:*/ [
|
34
34
|
'onChange',
|
35
35
|
'name'
|
36
36
|
]), {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["useRadioGroup.js"],"sourcesContent":["import * as React from 'react';\nimport { useFieldControlProps_unstable } from '@fluentui/react-field';\nimport {
|
1
|
+
{"version":3,"sources":["useRadioGroup.js"],"sourcesContent":["import * as React from 'react';\nimport { useFieldControlProps_unstable } from '@fluentui/react-field';\nimport { getIntrinsicElementProps, isHTMLElement, useEventCallback, useId, slot } 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 */ export 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 { name = generatedName, value, defaultValue, disabled, layout = 'vertical', onChange, required } = 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 ...slot.always(getIntrinsicElementProps('div', props, /*excludedPropNames:*/ [\n 'onChange',\n 'name'\n ]), {\n elementType: 'div'\n }),\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"],"names":["useRadioGroup_unstable","props","ref","useFieldControlProps_unstable","generatedName","useId","name","value","defaultValue","disabled","layout","onChange","required","components","root","role","slot","always","getIntrinsicElementProps","elementType","useEventCallback","ev","isHTMLElement","target","constructorName","type"],"mappings":";;;;+BAWiBA;;;eAAAA;;;;iEAXM;4BACuB;gCACyC;AAS5E,MAAMA,yBAAyB,CAACC,OAAOC;IAC9C,+CAA+C;IAC/CD,QAAQE,IAAAA,yCAA6B,EAACF;IACtC,MAAMG,gBAAgBC,IAAAA,qBAAK,EAAC;IAC5B,MAAM,EAAEC,OAAOF,aAAa,EAAEG,KAAK,EAAEC,YAAY,EAAEC,QAAQ,EAAEC,SAAS,UAAU,EAAEC,QAAQ,EAAEC,QAAQ,EAAE,GAAGX;IACzG,OAAO;QACHS;QACAJ;QACAC;QACAC;QACAC;QACAG;QACAC,YAAY;YACRC,MAAM;QACV;QACAA,MAAM;YACFZ;YACAa,MAAM;YACN,GAAGC,oBAAI,CAACC,MAAM,CAACC,IAAAA,wCAAwB,EAAC,OAAOjB,OAAO,oBAAoB,GAAG;gBACzE;gBACA;aACH,GAAG;gBACAkB,aAAa;YACjB,EAAE;YACFR,UAAUS,IAAAA,gCAAgB,EAAC,CAACC;gBACxB,IAAIV,YAAYW,IAAAA,6BAAa,EAACD,GAAGE,MAAM,EAAE;oBACrCC,iBAAiB;gBACrB,MAAMH,GAAGE,MAAM,CAACE,IAAI,KAAK,SAAS;oBAC9Bd,SAASU,IAAI;wBACTd,OAAOc,GAAGE,MAAM,CAAChB,KAAK;oBAC1B;gBACJ;YACJ;QACJ;IACJ;AACJ"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-radio",
|
3
|
-
"version": "9.1.
|
3
|
+
"version": "9.1.52",
|
4
4
|
"description": "Fluent UI Radio component",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -33,14 +33,14 @@
|
|
33
33
|
"@fluentui/scripts-tasks": "*"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"@fluentui/react-field": "^9.1.
|
36
|
+
"@fluentui/react-field": "^9.1.38",
|
37
37
|
"@fluentui/react-icons": "^2.0.217",
|
38
|
-
"@fluentui/react-jsx-runtime": "^9.0.
|
39
|
-
"@fluentui/react-label": "^9.1.
|
38
|
+
"@fluentui/react-jsx-runtime": "^9.0.18",
|
39
|
+
"@fluentui/react-label": "^9.1.46",
|
40
40
|
"@fluentui/react-shared-contexts": "^9.10.0",
|
41
|
-
"@fluentui/react-tabster": "^9.
|
41
|
+
"@fluentui/react-tabster": "^9.14.1",
|
42
42
|
"@fluentui/react-theme": "^9.1.14",
|
43
|
-
"@fluentui/react-utilities": "^9.15.
|
43
|
+
"@fluentui/react-utilities": "^9.15.1",
|
44
44
|
"@griffel/react": "^1.5.14",
|
45
45
|
"@swc/helpers": "^0.5.1"
|
46
46
|
},
|