@fluentui/react-label 9.1.45 → 9.1.47
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,49 @@
|
|
2
2
|
"name": "@fluentui/react-label",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Sat, 28 Oct 2023 23:32:06 GMT",
|
6
|
+
"tag": "@fluentui/react-label_v9.1.47",
|
7
|
+
"version": "9.1.47",
|
8
|
+
"comments": {
|
9
|
+
"patch": [
|
10
|
+
{
|
11
|
+
"author": "beachball",
|
12
|
+
"package": "@fluentui/react-label",
|
13
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.11.0",
|
14
|
+
"commit": "555b0fae3ec7f052e765557ae243c58000514f92"
|
15
|
+
}
|
16
|
+
]
|
17
|
+
}
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"date": "Wed, 18 Oct 2023 17:54:04 GMT",
|
21
|
+
"tag": "@fluentui/react-label_v9.1.46",
|
22
|
+
"version": "9.1.46",
|
23
|
+
"comments": {
|
24
|
+
"patch": [
|
25
|
+
{
|
26
|
+
"author": "bernardo.sunderhus@gmail.com",
|
27
|
+
"package": "@fluentui/react-label",
|
28
|
+
"commit": "967882a55a7333effea42e4c24a64e8547309116",
|
29
|
+
"comment": "chore: migrate from getNativeElementProps to getIntrinsicElementProps"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"author": "beachball",
|
33
|
+
"package": "@fluentui/react-label",
|
34
|
+
"comment": "Bump @fluentui/react-utilities to v9.15.1",
|
35
|
+
"commit": "c0d3065982e1646c54ba00c1d524248b792dbcad"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"author": "beachball",
|
39
|
+
"package": "@fluentui/react-label",
|
40
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.18",
|
41
|
+
"commit": "c0d3065982e1646c54ba00c1d524248b792dbcad"
|
42
|
+
}
|
43
|
+
]
|
44
|
+
}
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"date": "Thu, 12 Oct 2023 14:55:44 GMT",
|
6
48
|
"tag": "@fluentui/react-label_v9.1.45",
|
7
49
|
"version": "9.1.45",
|
8
50
|
"comments": {
|
@@ -11,7 +53,7 @@
|
|
11
53
|
"author": "beachball",
|
12
54
|
"package": "@fluentui/react-label",
|
13
55
|
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.17",
|
14
|
-
"commit": "
|
56
|
+
"commit": "8178c3cae60005bc21137aa1f3e766e18cdb4a30"
|
15
57
|
}
|
16
58
|
]
|
17
59
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,17 +1,37 @@
|
|
1
1
|
# Change Log - @fluentui/react-label
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Sat, 28 Oct 2023 23:32:06 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.1.47](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.1.47)
|
8
|
+
|
9
|
+
Sat, 28 Oct 2023 23:32:06 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.1.46..@fluentui/react-label_v9.1.47)
|
11
|
+
|
12
|
+
### Patches
|
13
|
+
|
14
|
+
- Bump @fluentui/react-shared-contexts to v9.11.0 ([commit](https://github.com/microsoft/fluentui/commit/555b0fae3ec7f052e765557ae243c58000514f92) by beachball)
|
15
|
+
|
16
|
+
## [9.1.46](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.1.46)
|
17
|
+
|
18
|
+
Wed, 18 Oct 2023 17:54:04 GMT
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.1.45..@fluentui/react-label_v9.1.46)
|
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-utilities to v9.15.1 ([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
|
+
|
7
27
|
## [9.1.45](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.1.45)
|
8
28
|
|
9
|
-
Thu, 12 Oct 2023 14:
|
29
|
+
Thu, 12 Oct 2023 14:55:44 GMT
|
10
30
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.1.44..@fluentui/react-label_v9.1.45)
|
11
31
|
|
12
32
|
### Patches
|
13
33
|
|
14
|
-
- Bump @fluentui/react-jsx-runtime to v9.0.17 ([PR #
|
34
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.17 ([PR #29513](https://github.com/microsoft/fluentui/pull/29513) by beachball)
|
15
35
|
|
16
36
|
## [9.1.44](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.1.44)
|
17
37
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import {
|
2
|
+
import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';
|
3
3
|
/**
|
4
4
|
* Create the state required to render Label.
|
5
5
|
*
|
@@ -24,8 +24,11 @@ import { getNativeElementProps, slot } from '@fluentui/react-utilities';
|
|
24
24
|
root: 'label',
|
25
25
|
required: 'span'
|
26
26
|
},
|
27
|
-
root: slot.always(
|
28
|
-
|
27
|
+
root: slot.always(getIntrinsicElementProps('label', {
|
28
|
+
// FIXME:
|
29
|
+
// `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLLabelElement`
|
30
|
+
// but since it would be a breaking change to fix it, we are casting ref to it's proper type
|
31
|
+
ref: ref,
|
29
32
|
...props
|
30
33
|
}), {
|
31
34
|
elementType: 'label'
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["useLabel.tsx"],"sourcesContent":["import * as React from 'react';\nimport {
|
1
|
+
{"version":3,"sources":["useLabel.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type { LabelProps, LabelState } from './Label.types';\n\n/**\n * Create the state required to render Label.\n *\n * The returned state can be modified with hooks such as useLabelStyles_unstable,\n * before being passed to renderLabel_unstable.\n *\n * @param props - props from this instance of Label\n * @param ref - reference to root HTMLElement of Label\n */\nexport const useLabel_unstable = (props: LabelProps, ref: React.Ref<HTMLElement>): LabelState => {\n const { disabled = false, required = false, weight = 'regular', size = 'medium' } = props;\n return {\n disabled,\n required: slot.optional(required === true ? '*' : required || undefined, {\n defaultProps: { 'aria-hidden': 'true' },\n elementType: 'span',\n }),\n weight,\n size,\n components: { root: 'label', required: 'span' },\n root: slot.always(\n getIntrinsicElementProps('label', {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLLabelElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: ref as React.Ref<HTMLLabelElement>,\n ...props,\n }),\n { elementType: 'label' },\n ),\n };\n};\n"],"names":["React","getIntrinsicElementProps","slot","useLabel_unstable","props","ref","disabled","required","weight","size","optional","undefined","defaultProps","elementType","components","root","always"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAG3E;;;;;;;;CAQC,GACD,OAAO,MAAMC,oBAAoB,CAACC,OAAmBC;IACnD,MAAM,EAAEC,WAAW,KAAK,EAAEC,WAAW,KAAK,EAAEC,SAAS,SAAS,EAAEC,OAAO,QAAQ,EAAE,GAAGL;IACpF,OAAO;QACLE;QACAC,UAAUL,KAAKQ,QAAQ,CAACH,aAAa,OAAO,MAAMA,YAAYI,WAAW;YACvEC,cAAc;gBAAE,eAAe;YAAO;YACtCC,aAAa;QACf;QACAL;QACAC;QACAK,YAAY;YAAEC,MAAM;YAASR,UAAU;QAAO;QAC9CQ,MAAMb,KAAKc,MAAM,CACff,yBAAyB,SAAS;YAChC,SAAS;YACT,8EAA8E;YAC9E,4FAA4F;YAC5FI,KAAKA;YACL,GAAGD,KAAK;QACV,IACA;YAAES,aAAa;QAAQ;IAE3B;AACF,EAAE"}
|
@@ -27,8 +27,11 @@ const useLabel_unstable = (props, ref)=>{
|
|
27
27
|
root: 'label',
|
28
28
|
required: 'span'
|
29
29
|
},
|
30
|
-
root: _reactutilities.slot.always((0, _reactutilities.
|
31
|
-
|
30
|
+
root: _reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)('label', {
|
31
|
+
// FIXME:
|
32
|
+
// `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLLabelElement`
|
33
|
+
// but since it would be a breaking change to fix it, we are casting ref to it's proper type
|
34
|
+
ref: ref,
|
32
35
|
...props
|
33
36
|
}), {
|
34
37
|
elementType: 'label'
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["useLabel.js"],"sourcesContent":["import * as React from 'react';\nimport {
|
1
|
+
{"version":3,"sources":["useLabel.js"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\n/**\n * Create the state required to render Label.\n *\n * The returned state can be modified with hooks such as useLabelStyles_unstable,\n * before being passed to renderLabel_unstable.\n *\n * @param props - props from this instance of Label\n * @param ref - reference to root HTMLElement of Label\n */ export const useLabel_unstable = (props, ref)=>{\n const { disabled = false, required = false, weight = 'regular', size = 'medium' } = props;\n return {\n disabled,\n required: slot.optional(required === true ? '*' : required || undefined, {\n defaultProps: {\n 'aria-hidden': 'true'\n },\n elementType: 'span'\n }),\n weight,\n size,\n components: {\n root: 'label',\n required: 'span'\n },\n root: slot.always(getIntrinsicElementProps('label', {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLLabelElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: ref,\n ...props\n }), {\n elementType: 'label'\n })\n };\n};\n"],"names":["useLabel_unstable","props","ref","disabled","required","weight","size","slot","optional","undefined","defaultProps","elementType","components","root","always","getIntrinsicElementProps"],"mappings":";;;;+BAUiBA;;;eAAAA;;;;iEAVM;gCACwB;AASpC,MAAMA,oBAAoB,CAACC,OAAOC;IACzC,MAAM,EAAEC,WAAW,KAAK,EAAEC,WAAW,KAAK,EAAEC,SAAS,SAAS,EAAEC,OAAO,QAAQ,EAAE,GAAGL;IACpF,OAAO;QACHE;QACAC,UAAUG,oBAAI,CAACC,QAAQ,CAACJ,aAAa,OAAO,MAAMA,YAAYK,WAAW;YACrEC,cAAc;gBACV,eAAe;YACnB;YACAC,aAAa;QACjB;QACAN;QACAC;QACAM,YAAY;YACRC,MAAM;YACNT,UAAU;QACd;QACAS,MAAMN,oBAAI,CAACO,MAAM,CAACC,IAAAA,wCAAwB,EAAC,SAAS;YAChD,SAAS;YACT,8EAA8E;YAC9E,4FAA4F;YAC5Fb,KAAKA;YACL,GAAGD,KAAK;QACZ,IAAI;YACAU,aAAa;QACjB;IACJ;AACJ"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-label",
|
3
|
-
"version": "9.1.
|
3
|
+
"version": "9.1.47",
|
4
4
|
"description": "Fluent UI React Label component",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -33,10 +33,10 @@
|
|
33
33
|
"@fluentui/scripts-tasks": "*"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"@fluentui/react-shared-contexts": "^9.
|
36
|
+
"@fluentui/react-shared-contexts": "^9.11.0",
|
37
37
|
"@fluentui/react-theme": "^9.1.14",
|
38
|
-
"@fluentui/react-utilities": "^9.15.
|
39
|
-
"@fluentui/react-jsx-runtime": "^9.0.
|
38
|
+
"@fluentui/react-utilities": "^9.15.1",
|
39
|
+
"@fluentui/react-jsx-runtime": "^9.0.18",
|
40
40
|
"@griffel/react": "^1.5.14",
|
41
41
|
"@swc/helpers": "^0.5.1"
|
42
42
|
},
|