@fluentui/react-badge 9.2.9 → 9.2.11
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,7 +2,49 @@
|
|
2
2
|
"name": "@fluentui/react-badge",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Sat, 28 Oct 2023 23:32:06 GMT",
|
6
|
+
"tag": "@fluentui/react-badge_v9.2.11",
|
7
|
+
"version": "9.2.11",
|
8
|
+
"comments": {
|
9
|
+
"patch": [
|
10
|
+
{
|
11
|
+
"author": "beachball",
|
12
|
+
"package": "@fluentui/react-badge",
|
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:01 GMT",
|
21
|
+
"tag": "@fluentui/react-badge_v9.2.10",
|
22
|
+
"version": "9.2.10",
|
23
|
+
"comments": {
|
24
|
+
"patch": [
|
25
|
+
{
|
26
|
+
"author": "bernardo.sunderhus@gmail.com",
|
27
|
+
"package": "@fluentui/react-badge",
|
28
|
+
"commit": "967882a55a7333effea42e4c24a64e8547309116",
|
29
|
+
"comment": "chore: migrate from getNativeElementProps to getIntrinsicElementProps"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"author": "beachball",
|
33
|
+
"package": "@fluentui/react-badge",
|
34
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.18",
|
35
|
+
"commit": "c0d3065982e1646c54ba00c1d524248b792dbcad"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"author": "beachball",
|
39
|
+
"package": "@fluentui/react-badge",
|
40
|
+
"comment": "Bump @fluentui/react-utilities to v9.15.1",
|
41
|
+
"commit": "c0d3065982e1646c54ba00c1d524248b792dbcad"
|
42
|
+
}
|
43
|
+
]
|
44
|
+
}
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"date": "Thu, 12 Oct 2023 14:55:44 GMT",
|
6
48
|
"tag": "@fluentui/react-badge_v9.2.9",
|
7
49
|
"version": "9.2.9",
|
8
50
|
"comments": {
|
@@ -11,7 +53,7 @@
|
|
11
53
|
"author": "beachball",
|
12
54
|
"package": "@fluentui/react-badge",
|
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-badge
|
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.2.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.2.11)
|
8
|
+
|
9
|
+
Sat, 28 Oct 2023 23:32:06 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.2.10..@fluentui/react-badge_v9.2.11)
|
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.2.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.2.10)
|
17
|
+
|
18
|
+
Wed, 18 Oct 2023 17:54:01 GMT
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.2.9..@fluentui/react-badge_v9.2.10)
|
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-jsx-runtime to v9.0.18 ([PR #29560](https://github.com/microsoft/fluentui/pull/29560) by beachball)
|
25
|
+
- Bump @fluentui/react-utilities to v9.15.1 ([PR #29560](https://github.com/microsoft/fluentui/pull/29560) by beachball)
|
26
|
+
|
7
27
|
## [9.2.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.2.9)
|
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-badge_v9.2.8..@fluentui/react-badge_v9.2.9)
|
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.2.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.2.8)
|
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
|
* Returns the props and state required to render the component
|
5
5
|
*/ export const useBadge_unstable = (props, ref)=>{
|
@@ -14,8 +14,11 @@ import { getNativeElementProps, slot } from '@fluentui/react-utilities';
|
|
14
14
|
root: 'div',
|
15
15
|
icon: 'span'
|
16
16
|
},
|
17
|
-
root: slot.always(
|
18
|
-
|
17
|
+
root: slot.always(getIntrinsicElementProps('div', {
|
18
|
+
// FIXME:
|
19
|
+
// `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`
|
20
|
+
// but since it would be a breaking change to fix it, we are casting ref to it's proper type
|
21
|
+
ref: ref,
|
19
22
|
...props
|
20
23
|
}), {
|
21
24
|
elementType: 'div'
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["useBadge.ts"],"sourcesContent":["import * as React from 'react';\nimport {
|
1
|
+
{"version":3,"sources":["useBadge.ts"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type { BadgeProps, BadgeState } from './Badge.types';\n\n/**\n * Returns the props and state required to render the component\n */\nexport const useBadge_unstable = (props: BadgeProps, ref: React.Ref<HTMLElement>): BadgeState => {\n const {\n shape = 'circular',\n size = 'medium',\n iconPosition = 'before',\n appearance = 'filled',\n color = 'brand',\n } = props;\n\n const state: BadgeState = {\n shape,\n size,\n iconPosition,\n appearance,\n color,\n components: {\n root: 'div',\n icon: 'span',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`\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<HTMLDivElement>,\n ...props,\n }),\n { elementType: 'div' },\n ),\n icon: slot.optional(props.icon, { elementType: 'span' }),\n };\n\n return state;\n};\n"],"names":["React","getIntrinsicElementProps","slot","useBadge_unstable","props","ref","shape","size","iconPosition","appearance","color","state","components","root","icon","always","elementType","optional"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAG3E;;CAEC,GACD,OAAO,MAAMC,oBAAoB,CAACC,OAAmBC;IACnD,MAAM,EACJC,QAAQ,UAAU,EAClBC,OAAO,QAAQ,EACfC,eAAe,QAAQ,EACvBC,aAAa,QAAQ,EACrBC,QAAQ,OAAO,EAChB,GAAGN;IAEJ,MAAMO,QAAoB;QACxBL;QACAC;QACAC;QACAC;QACAC;QACAE,YAAY;YACVC,MAAM;YACNC,MAAM;QACR;QACAD,MAAMX,KAAKa,MAAM,CACfd,yBAAyB,OAAO;YAC9B,SAAS;YACT,4EAA4E;YAC5E,4FAA4F;YAC5FI,KAAKA;YACL,GAAGD,KAAK;QACV,IACA;YAAEY,aAAa;QAAM;QAEvBF,MAAMZ,KAAKe,QAAQ,CAACb,MAAMU,IAAI,EAAE;YAAEE,aAAa;QAAO;IACxD;IAEA,OAAOL;AACT,EAAE"}
|
@@ -23,8 +23,11 @@ const useBadge_unstable = (props, ref)=>{
|
|
23
23
|
root: 'div',
|
24
24
|
icon: 'span'
|
25
25
|
},
|
26
|
-
root: _reactutilities.slot.always((0, _reactutilities.
|
27
|
-
|
26
|
+
root: _reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)('div', {
|
27
|
+
// FIXME:
|
28
|
+
// `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`
|
29
|
+
// but since it would be a breaking change to fix it, we are casting ref to it's proper type
|
30
|
+
ref: ref,
|
28
31
|
...props
|
29
32
|
}), {
|
30
33
|
elementType: 'div'
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["useBadge.js"],"sourcesContent":["import * as React from 'react';\nimport {
|
1
|
+
{"version":3,"sources":["useBadge.js"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\n/**\n * Returns the props and state required to render the component\n */ export const useBadge_unstable = (props, ref)=>{\n const { shape = 'circular', size = 'medium', iconPosition = 'before', appearance = 'filled', color = 'brand' } = props;\n const state = {\n shape,\n size,\n iconPosition,\n appearance,\n color,\n components: {\n root: 'div',\n icon: 'span'\n },\n root: slot.always(getIntrinsicElementProps('div', {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`\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: 'div'\n }),\n icon: slot.optional(props.icon, {\n elementType: 'span'\n })\n };\n return state;\n};\n"],"names":["useBadge_unstable","props","ref","shape","size","iconPosition","appearance","color","state","components","root","icon","slot","always","getIntrinsicElementProps","elementType","optional"],"mappings":";;;;+BAIiBA;;;eAAAA;;;;iEAJM;gCACwB;AAGpC,MAAMA,oBAAoB,CAACC,OAAOC;IACzC,MAAM,EAAEC,QAAQ,UAAU,EAAEC,OAAO,QAAQ,EAAEC,eAAe,QAAQ,EAAEC,aAAa,QAAQ,EAAEC,QAAQ,OAAO,EAAE,GAAGN;IACjH,MAAMO,QAAQ;QACVL;QACAC;QACAC;QACAC;QACAC;QACAE,YAAY;YACRC,MAAM;YACNC,MAAM;QACV;QACAD,MAAME,oBAAI,CAACC,MAAM,CAACC,IAAAA,wCAAwB,EAAC,OAAO;YAC9C,SAAS;YACT,4EAA4E;YAC5E,4FAA4F;YAC5FZ,KAAKA;YACL,GAAGD,KAAK;QACZ,IAAI;YACAc,aAAa;QACjB;QACAJ,MAAMC,oBAAI,CAACI,QAAQ,CAACf,MAAMU,IAAI,EAAE;YAC5BI,aAAa;QACjB;IACJ;IACA,OAAOP;AACX"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-badge",
|
3
|
-
"version": "9.2.
|
3
|
+
"version": "9.2.11",
|
4
4
|
"description": "React components for building web experiences",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -34,10 +34,10 @@
|
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
36
|
"@fluentui/react-icons": "^2.0.217",
|
37
|
-
"@fluentui/react-jsx-runtime": "^9.0.
|
38
|
-
"@fluentui/react-shared-contexts": "^9.
|
37
|
+
"@fluentui/react-jsx-runtime": "^9.0.18",
|
38
|
+
"@fluentui/react-shared-contexts": "^9.11.0",
|
39
39
|
"@fluentui/react-theme": "^9.1.14",
|
40
|
-
"@fluentui/react-utilities": "^9.15.
|
40
|
+
"@fluentui/react-utilities": "^9.15.1",
|
41
41
|
"@griffel/react": "^1.5.14",
|
42
42
|
"@swc/helpers": "^0.5.1"
|
43
43
|
},
|