@fluentui/react-badge 0.0.0-nightlya54302c0b220211124.1 → 0.0.0-nightlya9c3d10d9520220113.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +140 -13
- package/CHANGELOG.md +34 -9
- package/dist/react-badge.d.ts +0 -6
- package/lib/components/Badge/renderBadge.js +5 -2
- package/lib/components/Badge/renderBadge.js.map +1 -1
- package/lib/components/Badge/useBadgeStyles.js +75 -35
- package/lib/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib/components/CounterBadge/CounterBadge.types.d.ts +0 -6
- package/lib/components/CounterBadge/useCounterBadgeStyles.js +3 -5
- package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +7 -3
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/Badge/renderBadge.js +5 -2
- package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/useBadgeStyles.js +75 -34
- package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +0 -6
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +2 -4
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +7 -2
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/package.json +11 -10
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -13
- package/lib/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -24
- package/lib-commonjs/common/isConformant.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,10 +2,131 @@
|
|
2
2
|
"name": "@fluentui/react-badge",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-badge_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Thu, 13 Jan 2022 04:15:40 GMT",
|
6
|
+
"tag": "@fluentui/react-badge_v0.0.0-nightlya9c3d10d9520220113.1",
|
7
|
+
"version": "0.0.0-nightlya9c3d10d9520220113.1",
|
8
8
|
"comments": {
|
9
|
+
"prerelease": [
|
10
|
+
{
|
11
|
+
"author": "email not defined",
|
12
|
+
"package": "@fluentui/react-badge",
|
13
|
+
"commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075",
|
14
|
+
"comment": "Release nightly v9"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "ololubek@microsoft.com",
|
18
|
+
"package": "@fluentui/react-badge",
|
19
|
+
"commit": "7cb2a5d8db1b6a1ddb638aa82d5815ab5ae84e69",
|
20
|
+
"comment": "(fix): Update react-icons dependency to latest version"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "behowell@microsoft.com",
|
24
|
+
"package": "@fluentui/react-badge",
|
25
|
+
"commit": "3bc0517363984081469903ee137a06543f825f1c",
|
26
|
+
"comment": "Add fontSize styling to icon slot, to automatically size user-provided icons"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "olfedias@microsoft.com",
|
30
|
+
"package": "@fluentui/react-badge",
|
31
|
+
"commit": "5a49512b8e33d5a588212069a1f2827b806d584c",
|
32
|
+
"comment": "update styles to not use CSS shorthands"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "lingfangao@hotmail.com",
|
36
|
+
"package": "@fluentui/react-badge",
|
37
|
+
"commit": "4e5e955acede0fc79334ef90a563de4bd35ee231",
|
38
|
+
"comment": "fix: use updated tokens for ghost and outline variants"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
42
|
+
"package": "@fluentui/react-badge",
|
43
|
+
"commit": "00a5d945904c896a0664de6ba72c145a255f0848",
|
44
|
+
"comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"author": "ololubek@microsoft.com",
|
48
|
+
"package": "@fluentui/react-badge",
|
49
|
+
"commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
|
50
|
+
"comment": "Update react-icons usage to resizable icons"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"author": "behowell@microsoft.com",
|
54
|
+
"package": "@fluentui/react-badge",
|
55
|
+
"commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
|
56
|
+
"comment": "Remove component's shorthandProps array"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
60
|
+
"package": "@fluentui/react-badge",
|
61
|
+
"commit": "2c54271f07c30f65718e085084c2e5b213268dfd",
|
62
|
+
"comment": "react-badge: Replacing use of functions in makeStyles with direct use of tokens."
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"author": "lingfangao@hotmail.com",
|
66
|
+
"package": "@fluentui/react-badge",
|
67
|
+
"commit": "4e7acd7ff3c437663de70206416d3c19b6a87cfa",
|
68
|
+
"comment": "fix: Add uniform padding and modify gaps"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"author": "beachball",
|
72
|
+
"package": "@fluentui/react-badge",
|
73
|
+
"comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlya9c3d10d9520220113.1",
|
74
|
+
"commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"author": "beachball",
|
78
|
+
"package": "@fluentui/react-badge",
|
79
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightlya9c3d10d9520220113.1",
|
80
|
+
"commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"author": "beachball",
|
84
|
+
"package": "@fluentui/react-badge",
|
85
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightlya9c3d10d9520220113.1",
|
86
|
+
"commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"author": "beachball",
|
90
|
+
"package": "@fluentui/react-badge",
|
91
|
+
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlya9c3d10d9520220113.1",
|
92
|
+
"commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"author": "beachball",
|
96
|
+
"package": "@fluentui/react-badge",
|
97
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlya9c3d10d9520220113.1",
|
98
|
+
"commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"author": "beachball",
|
102
|
+
"package": "@fluentui/react-badge",
|
103
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlya9c3d10d9520220113.1",
|
104
|
+
"commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
|
105
|
+
}
|
106
|
+
],
|
107
|
+
"none": [
|
108
|
+
{
|
109
|
+
"author": "elcraig@microsoft.com",
|
110
|
+
"package": "@fluentui/react-badge",
|
111
|
+
"commit": "d892c7f79c543b6008634ecd669b75b5108cad46",
|
112
|
+
"comment": "Remove outdated boilerplate comments"
|
113
|
+
}
|
114
|
+
]
|
115
|
+
}
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"date": "Thu, 25 Nov 2021 08:34:11 GMT",
|
119
|
+
"tag": "@fluentui/react-badge_v9.0.0-beta.4",
|
120
|
+
"version": "9.0.0-beta.4",
|
121
|
+
"comments": {
|
122
|
+
"none": [
|
123
|
+
{
|
124
|
+
"author": "lingfangao@hotmail.com",
|
125
|
+
"package": "@fluentui/react-badge",
|
126
|
+
"commit": "cc3fe8e29cbb4b9d03f26e9a06b58d7aa24ffb65",
|
127
|
+
"comment": "Migrate package to use solution style ts-config"
|
128
|
+
}
|
129
|
+
],
|
9
130
|
"prerelease": [
|
10
131
|
{
|
11
132
|
"author": "lingfangao@hotmail.com",
|
@@ -34,32 +155,38 @@
|
|
34
155
|
{
|
35
156
|
"author": "beachball",
|
36
157
|
"package": "@fluentui/react-badge",
|
37
|
-
"comment": "Bump @fluentui/react-make-styles to
|
38
|
-
"commit": "
|
158
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
159
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"author": "beachball",
|
163
|
+
"package": "@fluentui/react-badge",
|
164
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-beta.4",
|
165
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
39
166
|
},
|
40
167
|
{
|
41
168
|
"author": "beachball",
|
42
169
|
"package": "@fluentui/react-badge",
|
43
|
-
"comment": "Bump @fluentui/react-
|
44
|
-
"commit": "
|
170
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
171
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
45
172
|
},
|
46
173
|
{
|
47
174
|
"author": "beachball",
|
48
175
|
"package": "@fluentui/react-badge",
|
49
|
-
"comment": "Bump @fluentui/babel-make-styles to
|
50
|
-
"commit": "
|
176
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
177
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
51
178
|
},
|
52
179
|
{
|
53
180
|
"author": "beachball",
|
54
181
|
"package": "@fluentui/react-badge",
|
55
|
-
"comment": "Bump @fluentui/jest-serializer-make-styles to
|
56
|
-
"commit": "
|
182
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
183
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
57
184
|
},
|
58
185
|
{
|
59
186
|
"author": "beachball",
|
60
187
|
"package": "@fluentui/react-badge",
|
61
|
-
"comment": "Bump @fluentui/react-conformance-make-styles to
|
62
|
-
"commit": "
|
188
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
189
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
63
190
|
}
|
64
191
|
]
|
65
192
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,13 +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 Thu, 13 Jan 2022 04:15:40 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightlya9c3d10d9520220113.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v0.0.0-nightlya9c3d10d9520220113.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.
|
9
|
+
Thu, 13 Jan 2022 04:15:40 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.4..@fluentui/react-badge_v0.0.0-nightlya9c3d10d9520220113.1)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by email not defined)
|
15
|
+
- (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
|
16
|
+
- Add fontSize styling to icon slot, to automatically size user-provided icons ([PR #21219](https://github.com/microsoft/fluentui/pull/21219) by behowell@microsoft.com)
|
17
|
+
- update styles to not use CSS shorthands ([PR #20802](https://github.com/microsoft/fluentui/pull/20802) by olfedias@microsoft.com)
|
18
|
+
- fix: use updated tokens for ghost and outline variants ([PR #20893](https://github.com/microsoft/fluentui/pull/20893) by lingfangao@hotmail.com)
|
19
|
+
- Updating use of tokens.fontWeight now that we don't need to use casting. ([PR #21217](https://github.com/microsoft/fluentui/pull/21217) by Humberto.Morimoto@microsoft.com)
|
20
|
+
- Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
|
21
|
+
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
22
|
+
- react-badge: Replacing use of functions in makeStyles with direct use of tokens. ([PR #21038](https://github.com/microsoft/fluentui/pull/21038) by Humberto.Morimoto@microsoft.com)
|
23
|
+
- fix: Add uniform padding and modify gaps ([PR #20974](https://github.com/microsoft/fluentui/pull/20974) by lingfangao@hotmail.com)
|
24
|
+
- Bump @fluentui/react-make-styles to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
|
25
|
+
- Bump @fluentui/react-theme to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
|
26
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
|
27
|
+
- Bump @fluentui/babel-make-styles to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
|
28
|
+
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
|
29
|
+
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
|
30
|
+
|
31
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.4)
|
32
|
+
|
33
|
+
Thu, 25 Nov 2021 08:34:11 GMT
|
34
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.3..@fluentui/react-badge_v9.0.0-beta.4)
|
11
35
|
|
12
36
|
### Changes
|
13
37
|
|
@@ -15,11 +39,12 @@ Wed, 24 Nov 2021 04:12:43 GMT
|
|
15
39
|
- Reduce colour set and align with base badge colours ([PR #20596](https://github.com/microsoft/fluentui/pull/20596) by lingfangao@hotmail.com)
|
16
40
|
- update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
|
17
41
|
- Remove props and return correct presence icons ([PR #20630](https://github.com/microsoft/fluentui/pull/20630) by lingfangao@hotmail.com)
|
18
|
-
- Bump @fluentui/react-make-styles to
|
19
|
-
- Bump @fluentui/react-theme to
|
20
|
-
- Bump @fluentui/
|
21
|
-
- Bump @fluentui/
|
22
|
-
- Bump @fluentui/
|
42
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
43
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
44
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
45
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
46
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
47
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
23
48
|
|
24
49
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.3)
|
25
50
|
|
package/dist/react-badge.d.ts
CHANGED
@@ -93,14 +93,8 @@ export declare type CounterBadgeCommons = {
|
|
93
93
|
color: Extract<BadgeProps['color'], 'brand' | 'danger' | 'important' | 'informative'>;
|
94
94
|
};
|
95
95
|
|
96
|
-
/**
|
97
|
-
* {@docCategory CounterBadge}
|
98
|
-
*/
|
99
96
|
export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape' | 'color'> & Partial<CounterBadgeCommons>;
|
100
97
|
|
101
|
-
/**
|
102
|
-
* {@docCategory CounterBadge}
|
103
|
-
*/
|
104
98
|
export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape' | 'color'> & CounterBadgeCommons;
|
105
99
|
|
106
100
|
/**
|
@@ -4,7 +4,10 @@ export const renderBadge = state => {
|
|
4
4
|
const {
|
5
5
|
slots,
|
6
6
|
slotProps
|
7
|
-
} = getSlots(state
|
8
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
7
|
+
} = getSlots(state);
|
8
|
+
return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
9
|
+
}, state.iconPosition === 'before' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
10
|
+
}), state.root.children, state.iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
11
|
+
}));
|
9
12
|
};
|
10
13
|
//# sourceMappingURL=renderBadge.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Badge/renderBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA,OAAO,MAAM,WAAW,GAAI,KAAD,IAAsB;AAC/C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAa,KAAb,
|
1
|
+
{"version":3,"sources":["../../../src/components/Badge/renderBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA,OAAO,MAAM,WAAW,GAAI,KAAD,IAAsB;AAC/C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAa,KAAb,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,KAAK,CAAC,YAAN,KAAuB,QAAvB,iBAAmC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CADtC,EAEG,KAAK,CAAC,IAAN,CAAW,QAFd,EAGG,KAAK,CAAC,YAAN,KAAuB,OAAvB,iBAAkC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAHrC,CADF;AAOD,CAVM","sourceRoot":""}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { mergeClasses, __styles } from '@fluentui/react-make-styles';
|
1
|
+
import { shorthands, mergeClasses, __styles } from '@fluentui/react-make-styles';
|
2
|
+
import { tokens } from '@fluentui/react-theme';
|
2
3
|
export const badgeClassName = 'fui-Badge';
|
3
4
|
|
4
5
|
const useStyles = /*#__PURE__*/__styles({
|
@@ -38,33 +39,45 @@ const useStyles = /*#__PURE__*/__styles({
|
|
38
39
|
"rootSmall": {
|
39
40
|
"Bf4jedk": "fq2vo04",
|
40
41
|
"Bqenvij": "fd461yt",
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"
|
42
|
+
"z8tnut": "fq1loh5",
|
43
|
+
"z189sj": ["f12huiiw", "f161knb0"],
|
44
|
+
"Byoj8tv": "futqtb8",
|
45
|
+
"uwmqm3": ["f161knb0", "f12huiiw"],
|
46
|
+
"i8kkvl": "f1q8lukm",
|
47
|
+
"Belr9w4": "f1ma2n7n",
|
44
48
|
"Be2twd7": "f1n0apg3"
|
45
49
|
},
|
46
50
|
"rootMedium": {
|
47
51
|
"Bqenvij": "fjamq6b",
|
48
52
|
"Bf4jedk": "f11u7vat",
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"
|
53
|
+
"i8kkvl": "f1q8lukm",
|
54
|
+
"Belr9w4": "f1ma2n7n",
|
55
|
+
"z8tnut": "f10ra9hq",
|
56
|
+
"z189sj": ["f8wuabp", "fycuoez"],
|
57
|
+
"Byoj8tv": "f1y2xyjm",
|
58
|
+
"uwmqm3": ["fycuoez", "f8wuabp"],
|
52
59
|
"Be2twd7": "fnmn6fi"
|
53
60
|
},
|
54
61
|
"rootLarge": {
|
55
62
|
"Bf4jedk": "f17fgpbq",
|
56
63
|
"Bqenvij": "frvgh55",
|
57
|
-
"
|
58
|
-
"
|
64
|
+
"z8tnut": "f10ra9hq",
|
65
|
+
"z189sj": ["f8wuabp", "fycuoez"],
|
66
|
+
"Byoj8tv": "f1y2xyjm",
|
67
|
+
"uwmqm3": ["fycuoez", "f8wuabp"],
|
59
68
|
"Be2twd7": "f1ugzwwg",
|
60
|
-
"
|
69
|
+
"i8kkvl": "f1q8lukm",
|
70
|
+
"Belr9w4": "f1ma2n7n"
|
61
71
|
},
|
62
72
|
"rootExtraLarge": {
|
63
73
|
"Bf4jedk": "fwbmr0d",
|
64
74
|
"Bqenvij": "f1d2rq10",
|
65
|
-
"
|
66
|
-
"
|
67
|
-
"
|
75
|
+
"z8tnut": "f1xp5gbu",
|
76
|
+
"z189sj": ["f1sgzk6v", "f1bg5zqg"],
|
77
|
+
"Byoj8tv": "f1d7kygh",
|
78
|
+
"uwmqm3": ["f1bg5zqg", "f1sgzk6v"],
|
79
|
+
"i8kkvl": "fgfbwa2",
|
80
|
+
"Belr9w4": "f1y3hx6l",
|
68
81
|
"Be2twd7": "f1ugzwwg",
|
69
82
|
"B4j52fo": "f18zi460",
|
70
83
|
"Bekrc4i": ["f1wpluaz", "fsfsuhs"],
|
@@ -72,16 +85,25 @@ const useStyles = /*#__PURE__*/__styles({
|
|
72
85
|
"ibv6hh": ["fsfsuhs", "f1wpluaz"]
|
73
86
|
},
|
74
87
|
"rootRounded": {
|
75
|
-
"
|
88
|
+
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
89
|
+
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
90
|
+
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
91
|
+
"Btl43ni": ["fyu767a", "f1jar5jt"]
|
76
92
|
},
|
77
93
|
"rootRoundedSmallToTiny": {
|
78
|
-
"
|
94
|
+
"Bbmb7ep": ["f1g3puop", "fi2rrw2"],
|
95
|
+
"Beyfa6y": ["fi2rrw2", "f1g3puop"],
|
96
|
+
"B7oj6ja": ["f1rstyi9", "f1s4nn1u"],
|
97
|
+
"Btl43ni": ["f1s4nn1u", "f1rstyi9"]
|
79
98
|
},
|
80
99
|
"rootCircular": {
|
81
|
-
"
|
100
|
+
"Bbmb7ep": ["fxyqdnz", "fib3qew"],
|
101
|
+
"Beyfa6y": ["fib3qew", "fxyqdnz"],
|
102
|
+
"B7oj6ja": ["f14p2bvz", "fdqj3q4"],
|
103
|
+
"Btl43ni": ["fdqj3q4", "f14p2bvz"]
|
82
104
|
},
|
83
105
|
"rootGhost": {
|
84
|
-
"
|
106
|
+
"De3pzq": "f3rmtva",
|
85
107
|
"icvyot": "f1ern45e",
|
86
108
|
"vrafjx": ["f1n71otn", "f1deefiw"],
|
87
109
|
"oivjwe": "f1h8hb77",
|
@@ -89,7 +111,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
89
111
|
"sj55zd": "f1817uup"
|
90
112
|
},
|
91
113
|
"rootOutline": {
|
92
|
-
"
|
114
|
+
"De3pzq": "f3rmtva",
|
93
115
|
"g2u3we": "f1vp46cd",
|
94
116
|
"h3c5rm": ["f1lxz1cr", "ff8nh0i"],
|
95
117
|
"B9xav0g": "fe9j8it",
|
@@ -122,10 +144,10 @@ const useStyles = /*#__PURE__*/__styles({
|
|
122
144
|
"rootTintDanger": {
|
123
145
|
"De3pzq": "ff0poqj",
|
124
146
|
"sj55zd": "f1hcrxcs",
|
125
|
-
"g2u3we": "
|
126
|
-
"h3c5rm": ["
|
127
|
-
"B9xav0g": "
|
128
|
-
"zhjwy3": ["
|
147
|
+
"g2u3we": "f1oqjm8o",
|
148
|
+
"h3c5rm": ["fkgrb8g", "frb5wm0"],
|
149
|
+
"B9xav0g": "f1iai1ph",
|
150
|
+
"zhjwy3": ["frb5wm0", "fkgrb8g"]
|
129
151
|
},
|
130
152
|
"rootGhostDanger": {
|
131
153
|
"sj55zd": "f1whyuy6"
|
@@ -217,11 +239,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
217
239
|
"zhjwy3": ["fjscplz", "f1gn591s"]
|
218
240
|
},
|
219
241
|
"rootOutlineImportant": {
|
220
|
-
"sj55zd": "
|
221
|
-
"g2u3we": "
|
222
|
-
"h3c5rm": ["
|
223
|
-
"B9xav0g": "
|
224
|
-
"zhjwy3": ["
|
242
|
+
"sj55zd": "f11d4kpn",
|
243
|
+
"g2u3we": "fq0vr37",
|
244
|
+
"h3c5rm": ["f1byw159", "f11cr0be"],
|
245
|
+
"B9xav0g": "f1c1zstj",
|
246
|
+
"zhjwy3": ["f11cr0be", "f1byw159"]
|
225
247
|
},
|
226
248
|
"rootTintImportant": {
|
227
249
|
"De3pzq": "f945g0u",
|
@@ -243,11 +265,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
243
265
|
"zhjwy3": ["fjscplz", "f1gn591s"]
|
244
266
|
},
|
245
267
|
"rootOutlineInformative": {
|
246
|
-
"sj55zd": "
|
247
|
-
"g2u3we": "
|
248
|
-
"h3c5rm": ["
|
249
|
-
"B9xav0g": "
|
250
|
-
"zhjwy3": ["
|
268
|
+
"sj55zd": "f11d4kpn",
|
269
|
+
"g2u3we": "f68mrw8",
|
270
|
+
"h3c5rm": ["f7pw515", "fw35ms5"],
|
271
|
+
"B9xav0g": "frpde29",
|
272
|
+
"zhjwy3": ["fw35ms5", "f7pw515"]
|
251
273
|
},
|
252
274
|
"rootTintInformative": {
|
253
275
|
"De3pzq": "f1ctqxl6",
|
@@ -258,7 +280,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
258
280
|
"zhjwy3": ["fw35ms5", "f7pw515"]
|
259
281
|
},
|
260
282
|
"rootGhostInformative": {
|
261
|
-
"sj55zd": "
|
283
|
+
"sj55zd": "f11d4kpn"
|
262
284
|
},
|
263
285
|
"rootFilledSubtle": {
|
264
286
|
"De3pzq": "fxugw4r",
|
@@ -291,9 +313,27 @@ const useStyles = /*#__PURE__*/__styles({
|
|
291
313
|
"Bmliigx": "fxe27oy",
|
292
314
|
"Bt984gj": "f122n59",
|
293
315
|
"Bqenvij": "f1l02sjl"
|
316
|
+
},
|
317
|
+
"iconTiny": {
|
318
|
+
"Be2twd7": "f1tccstq"
|
319
|
+
},
|
320
|
+
"iconExtraSmall": {
|
321
|
+
"Be2twd7": "fnmn6fi"
|
322
|
+
},
|
323
|
+
"iconSmall": {
|
324
|
+
"Be2twd7": "f1ugzwwg"
|
325
|
+
},
|
326
|
+
"iconMedium": {
|
327
|
+
"Be2twd7": "f1ugzwwg"
|
328
|
+
},
|
329
|
+
"iconLarge": {
|
330
|
+
"Be2twd7": "f4ybsrx"
|
331
|
+
},
|
332
|
+
"iconExtraLarge": {
|
333
|
+
"Be2twd7": "fe5j1ua"
|
294
334
|
}
|
295
335
|
}, {
|
296
|
-
"d": [".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f1ewtqcl{box-sizing:border-box;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1vp46cd{border-top-color:var(--colorBrandBackground);}", ".f1lxz1cr{border-right-color:var(--colorBrandBackground);}", ".ff8nh0i{border-left-color:var(--colorBrandBackground);}", ".fe9j8it{border-bottom-color:var(--colorBrandBackground);}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".f10pi13n{position:relative;}", ".f16dn6v3{width:6px;}", ".f3mu39s{height:6px;}", ".f130uwy9{font-size:4px;}", ".fpd43o0{width:10px;}", ".f30q22z{height:10px;}", ".f1tccstq{font-size:6px;}", ".fq2vo04{min-width:16px;}", ".fd461yt{height:16px;}", ".
|
336
|
+
"d": [".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f1ewtqcl{box-sizing:border-box;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1vp46cd{border-top-color:var(--colorBrandBackground);}", ".f1lxz1cr{border-right-color:var(--colorBrandBackground);}", ".ff8nh0i{border-left-color:var(--colorBrandBackground);}", ".fe9j8it{border-bottom-color:var(--colorBrandBackground);}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".f10pi13n{position:relative;}", ".f16dn6v3{width:6px;}", ".f3mu39s{height:6px;}", ".f130uwy9{font-size:4px;}", ".fpd43o0{width:10px;}", ".f30q22z{height:10px;}", ".f1tccstq{font-size:6px;}", ".fq2vo04{min-width:16px;}", ".fd461yt{height:16px;}", ".fq1loh5{padding-top:2px;}", ".f12huiiw{padding-right:2px;}", ".f161knb0{padding-left:2px;}", ".futqtb8{padding-bottom:2px;}", ".f1q8lukm{-webkit-column-gap:4px;column-gap:4px;}", ".f1ma2n7n{row-gap:4px;}", ".f1n0apg3{font-size:8px;}", ".fjamq6b{height:20px;}", ".f11u7vat{min-width:20px;}", ".f10ra9hq{padding-top:4px;}", ".f8wuabp{padding-right:4px;}", ".fycuoez{padding-left:4px;}", ".f1y2xyjm{padding-bottom:4px;}", ".fnmn6fi{font-size:10px;}", ".f17fgpbq{min-width:24px;}", ".frvgh55{height:24px;}", ".f1ugzwwg{font-size:12px;}", ".fwbmr0d{min-width:32px;}", ".f1d2rq10{height:32px;}", ".f1xp5gbu{padding-top:6px;}", ".f1sgzk6v{padding-right:6px;}", ".f1bg5zqg{padding-left:6px;}", ".f1d7kygh{padding-bottom:6px;}", ".fgfbwa2{-webkit-column-gap:6px;column-gap:6px;}", ".f1y3hx6l{row-gap:6px;}", ".f18zi460{border-top-width:var(--strokeWidthThick);}", ".f1wpluaz{border-right-width:var(--strokeWidthThick);}", ".fsfsuhs{border-left-width:var(--strokeWidthThick);}", ".fmklw6v{border-bottom-width:var(--strokeWidthThick);}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}", ".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}", ".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}", ".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}", ".fxyqdnz{border-bottom-right-radius:99px;}", ".fib3qew{border-bottom-left-radius:99px;}", ".f14p2bvz{border-top-right-radius:99px;}", ".fdqj3q4{border-top-left-radius:99px;}", ".f3rmtva{background-color:transparent;}", ".f1ern45e{border-top-style:none;}", ".f1n71otn{border-right-style:none;}", ".f1deefiw{border-left-style:none;}", ".f1h8hb77{border-bottom-style:none;}", ".f1817uup{color:var(--colorBrandBackground);}", ".f16xkysk{background-color:var(--colorBrandBackground2);}", ".faj9fo0{color:var(--colorBrandForeground2);}", ".f161y7kd{border-top-color:var(--colorBrandStroke2);}", ".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}", ".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}", ".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}", ".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}", ".f11ttmz8{border-top-color:var(--colorPaletteRedBackground3);}", ".f1ratw88{border-right-color:var(--colorPaletteRedBackground3);}", ".f459ikj{border-left-color:var(--colorPaletteRedBackground3);}", ".fvovscg{border-bottom-color:var(--colorPaletteRedBackground3);}", ".f1whyuy6{color:var(--colorPaletteRedForeground3);}", ".f1tg094z{border-top-color:var(--colorPaletteRedForeground3);}", ".f19abfc5{border-right-color:var(--colorPaletteRedForeground3);}", ".f1cj97ds{border-left-color:var(--colorPaletteRedForeground3);}", ".f1i5u4jy{border-bottom-color:var(--colorPaletteRedForeground3);}", ".ff0poqj{background-color:var(--colorPaletteRedBackground1);}", ".f1hcrxcs{color:var(--colorPaletteRedForeground1);}", ".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}", ".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}", ".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}", ".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}", ".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}", ".f1wahxdx{border-top-color:var(--colorPaletteDarkOrangeForeground3);}", ".fpbzgcg{border-right-color:var(--colorPaletteDarkOrangeForeground3);}", ".f1g7u8zt{border-left-color:var(--colorPaletteDarkOrangeForeground3);}", ".f1wrnc4t{border-bottom-color:var(--colorPaletteDarkOrangeForeground3);}", ".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}", ".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}", ".f18s257e{border-top-color:var(--colorPaletteDarkOrangeForeground2);}", ".f13ptu4t{border-right-color:var(--colorPaletteDarkOrangeForeground2);}", ".fiwx4jo{border-left-color:var(--colorPaletteDarkOrangeForeground2);}", ".f1geyuz0{border-bottom-color:var(--colorPaletteDarkOrangeForeground2);}", ".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".f1gyeiz5{border-top-color:var(--colorPaletteYellowBackground3);}", ".f1jnj1iq{border-right-color:var(--colorPaletteYellowBackground3);}", ".fd1epeu{border-left-color:var(--colorPaletteYellowBackground3);}", ".f102bkgo{border-bottom-color:var(--colorPaletteYellowBackground3);}", ".fpti2h4{color:var(--colorPaletteYellowForeground2);}", ".fbahunb{border-top-color:var(--colorPaletteYellowForeground2);}", ".fa2hcp6{border-right-color:var(--colorPaletteYellowForeground2);}", ".f1cr20yc{border-left-color:var(--colorPaletteYellowForeground2);}", ".f1fbl5g1{border-bottom-color:var(--colorPaletteYellowForeground2);}", ".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}", ".f1e2bpek{border-top-color:var(--colorPaletteYellowBackground2);}", ".fnu3uvp{border-right-color:var(--colorPaletteYellowBackground2);}", ".fdpwmi9{border-left-color:var(--colorPaletteYellowBackground2);}", ".fk8fs0c{border-bottom-color:var(--colorPaletteYellowBackground2);}", ".flxk52p{background-color:var(--colorPaletteGreenBackground3);}", ".f1sms7z7{color:var(--colorPaletteGreenForeground2);}", ".f7obisw{border-top-color:var(--colorPaletteGreenForeground2);}", ".f108f34s{border-right-color:var(--colorPaletteGreenForeground2);}", ".f1chpoyh{border-left-color:var(--colorPaletteGreenForeground2);}", ".f1xtovf2{border-bottom-color:var(--colorPaletteGreenForeground2);}", ".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}", ".ffmvakt{color:var(--colorPaletteGreenForeground1);}", ".f3m3qtd{border-top-color:var(--colorPaletteGreenBackground2);}", ".f1bjyn17{border-right-color:var(--colorPaletteGreenBackground2);}", ".fksln3n{border-left-color:var(--colorPaletteGreenBackground2);}", ".frg4y0o{border-bottom-color:var(--colorPaletteGreenBackground2);}", ".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}", ".f1c73kur{background-color:var(--colorNeutralForeground1);}", ".fr0bkrk{color:var(--colorNeutralBackground1);}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}", ".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}", ".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}", ".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}", ".f945g0u{background-color:var(--colorNeutralForeground3);}", ".f3vzo32{background-color:var(--colorNeutralBackground5);}", ".f68mrw8{border-top-color:var(--colorNeutralStroke2);}", ".f7pw515{border-right-color:var(--colorNeutralStroke2);}", ".fw35ms5{border-left-color:var(--colorNeutralStroke2);}", ".frpde29{border-bottom-color:var(--colorNeutralStroke2);}", ".f1ctqxl6{background-color:var(--colorNeutralBackground4);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".fgtodeh{border-top-color:var(--colorNeutralForegroundInverted);}", ".fm9lria{border-right-color:var(--colorNeutralForegroundInverted);}", ".fvwj3xt{border-left-color:var(--colorNeutralForegroundInverted);}", ".f7asi1z{border-bottom-color:var(--colorNeutralForegroundInverted);}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".fxe27oy{-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;}", ".f1l02sjl{height:100%;}", ".f4ybsrx{font-size:16px;}", ".fe5j1ua{font-size:20px;}"]
|
297
337
|
});
|
298
338
|
/**
|
299
339
|
* Applies style classnames to slots
|
@@ -316,7 +356,7 @@ export const useBadgeStyles = state => {
|
|
316
356
|
state.root.className = mergeClasses(badgeClassName, styles.root, state.size === 'tiny' && styles.rootTiny, state.size === 'extra-small' && styles.rootExtraSmall, state.size === 'small' && styles.rootSmall, state.size === 'medium' && styles.rootMedium, state.size === 'large' && styles.rootLarge, state.size === 'extra-large' && styles.rootExtraLarge, state.shape === 'circular' && styles.rootCircular, state.shape === 'rounded' && styles.rootRounded, state.shape === 'rounded' && (state.size === 'small' || state.size === 'extra-small' || state.size === 'tiny') && styles.rootRoundedSmallToTiny, isGhost && styles.rootGhost, isOutline && styles.rootOutline, isTint && styles.rootTint, isFilled && isDanger && styles.rootFilledDanger, isOutline && isDanger && styles.rootOutlineDanger, isTint && isDanger && styles.rootTintDanger, isGhost && isDanger && styles.rootGhostDanger, isFilled && isSevere && styles.rootFilledSevere, isOutline && isSevere && styles.rootOutlineSevere, isTint && isSevere && styles.rootTintSevere, isGhost && isSevere && styles.rootGhostSevere, isFilled && isWarning && styles.rootFilledWarning, isOutline && isWarning && styles.rootOutlineWarning, isTint && isWarning && styles.rootTintWarning, isGhost && isWarning && styles.rootGhostWarning, isFilled && isSuccess && styles.rootFilledSuccess, isOutline && isSuccess && styles.rootOutlineSuccess, isTint && isSuccess && styles.rootTintSuccess, isGhost && isSuccess && styles.rootGhostSuccess, isFilled && isImportant && styles.rootFilledImportant, isOutline && isImportant && styles.rootOutlineImportant, isTint && isImportant && styles.rootTintImportant, isGhost && isImportant && styles.rootGhostImportant, isFilled && isInformative && styles.rootFilledInformative, isOutline && isInformative && styles.rootOutlineInformative, isTint && isInformative && styles.rootTintInformative, isGhost && isInformative && styles.rootGhostInformative, isFilled && isSubtle && styles.rootFilledSubtle, isOutline && isSubtle && styles.rootOutlineSubtle, isTint && isSubtle && styles.rootTintSubtle, isGhost && isSubtle && styles.rootGhostSubtle, state.root.className);
|
317
357
|
|
318
358
|
if (state.icon) {
|
319
|
-
state.icon.className = mergeClasses(styles.icon, state.icon.className);
|
359
|
+
state.icon.className = mergeClasses(styles.icon, state.size === 'tiny' && styles.iconTiny, state.size === 'extra-small' && styles.iconExtraSmall, state.size === 'small' && styles.iconSmall, state.size === 'medium' && styles.iconMedium, state.size === 'large' && styles.iconLarge, state.size === 'extra-large' && styles.iconExtraLarge, state.icon.className);
|
320
360
|
}
|
321
361
|
|
322
362
|
return state;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Badge/useBadgeStyles.ts"],"names":[],"mappings":"AAAA,SAAS,
|
1
|
+
{"version":3,"sources":["../../../src/components/Badge/useBadgeStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,EAAqB,YAArB,kBAAqD,6BAArD;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAGA,OAAO,MAAM,cAAc,GAAG,WAAvB;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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cA3CI,EA4CjC,OAAO,IAAI,QAAX,IAAuB,MAAM,CAAC,eA5CG,EA6CjC,KAAK,CAAC,IAAN,CAAW,SA7CsB,CAAnC;;AAgDA,MAAI,KAAK,CAAC,IAAV,EAAgB;AACd,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,MAAM,CAAC,IAD0B,EAEjC,KAAK,CAAC,IAAN,KAAe,MAAf,IAAyB,MAAM,CAAC,QAFC,EAGjC,KAAK,CAAC,IAAN,KAAe,aAAf,IAAgC,MAAM,CAAC,cAHN,EAIjC,KAAK,CAAC,IAAN,KAAe,OAAf,IAA0B,MAAM,CAAC,SAJA,EAKjC,KAAK,CAAC,IAAN,KAAe,QAAf,IAA2B,MAAM,CAAC,UALD,EAMjC,KAAK,CAAC,IAAN,KAAe,OAAf,IAA0B,MAAM,CAAC,SANA,EAOjC,KAAK,CAAC,IAAN,KAAe,aAAf,IAAgC,MAAM,CAAC,cAPN,EAQjC,KAAK,CAAC,IAAN,CAAW,SARsB,CAAnC;AAUD;;AAED,SAAO,KAAP;AACD,CA5EM","sourceRoot":""}
|
@@ -36,11 +36,5 @@ export declare type CounterBadgeCommons = {
|
|
36
36
|
*/
|
37
37
|
color: Extract<BadgeProps['color'], 'brand' | 'danger' | 'important' | 'informative'>;
|
38
38
|
};
|
39
|
-
/**
|
40
|
-
* {@docCategory CounterBadge}
|
41
|
-
*/
|
42
39
|
export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape' | 'color'> & Partial<CounterBadgeCommons>;
|
43
|
-
/**
|
44
|
-
* {@docCategory CounterBadge}
|
45
|
-
*/
|
46
40
|
export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape' | 'color'> & CounterBadgeCommons;
|
@@ -1,12 +1,10 @@
|
|
1
|
-
import { mergeClasses, __styles } from '@fluentui/react-make-styles';
|
1
|
+
import { shorthands, mergeClasses, __styles } from '@fluentui/react-make-styles';
|
2
2
|
import { useBadgeStyles } from '../Badge/useBadgeStyles';
|
3
3
|
export const counterBadgeClassName = 'fui-CounterBadge';
|
4
4
|
|
5
5
|
const useStyles = /*#__PURE__*/__styles({
|
6
|
-
"root": {
|
7
|
-
"Bf4jedk": "fgfkb25"
|
8
|
-
},
|
9
6
|
"dot": {
|
7
|
+
"Bf4jedk": "fgfkb25",
|
10
8
|
"a9b677": "f16dn6v3",
|
11
9
|
"Bqenvij": "f3mu39s",
|
12
10
|
"z8tnut": "f1g0x7ka",
|
@@ -27,7 +25,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
27
25
|
|
28
26
|
export const useCounterBadgeStyles = state => {
|
29
27
|
const styles = useStyles();
|
30
|
-
state.root.className = mergeClasses(counterBadgeClassName,
|
28
|
+
state.root.className = mergeClasses(counterBadgeClassName, state.dot && styles.dot, !state.showZero && state.count === 0 && !state.dot && styles.hide, state.root.className);
|
31
29
|
return useBadgeStyles(state);
|
32
30
|
};
|
33
31
|
//# sourceMappingURL=useCounterBadgeStyles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CounterBadge/useCounterBadgeStyles.ts"],"names":[],"mappings":"AAAA,SAAS,
|
1
|
+
{"version":3,"sources":["../../../src/components/CounterBadge/useCounterBadgeStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,EAAqB,YAArB,kBAAqD,6BAArD;AACA,SAAS,cAAT,QAA+B,yBAA/B;AAGA,OAAO,MAAM,qBAAqB,GAAG,kBAA9B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAYA;;AAEG;;;AACH,OAAO,MAAM,qBAAqB,GAAI,KAAD,IAAgD;AACnF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,qBADiC,EAEjC,KAAK,CAAC,GAAN,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BD;AAqBA;;AAEG;;;AACH,OAAO,MAAM,gBAAgB,GAAG,CAAC,KAAD,EAA4B,GAA5B,KAA+E;;;AAC7G,QAAM,KAAK,GAAuB,EAChC,GAAG,QAAQ,CACT;AACE,MAAA,IAAI,EAAE,QADR;AAEE,SAAG,KAFL;AAGE,MAAA,IAAI,EAAE,gBAAgB,CAAC,SAAD,EAAY;AAChC,QAAA,QAAQ,EAAE;AADsB,OAAZ;AAHxB,KADS,EAQT,GARS,CADqB;AAWhC,IAAA,MAAM,EAAE,CAAA,EAAA,GAAA,KAAK,CAAC,MAAN,MAAY,IAAZ,IAAY,EAAA,KAAA,KAAA,CAAZ,GAAY,EAAZ,GAAgB,WAXQ;AAYhC,IAAA,WAAW,EAAE,CAAA,EAAA,GAAA,KAAK,CAAC,WAAN,MAAiB,IAAjB,IAAiB,EAAA,KAAA,KAAA,CAAjB,GAAiB,EAAjB,GAAqB;AAZF,GAAlC;AAeA,QAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,MAAP,EAAe,KAAK,CAAC,WAArB,EAAkC,KAAK,CAAC,IAAxC,CAA3B;;AACA,MAAI,WAAJ,EAAiB;AACf,IAAA,KAAK,CAAC,IAAN,CAAY,QAAZ,gBAAuB,KAAA,CAAA,aAAA,CAAC,WAAD,EAAY,IAAZ,CAAvB;AACD;;AAED,SAAO,KAAP;AACD,CAtBM","sourceRoot":""}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { mergeClasses, __styles } from '@fluentui/react-make-styles';
|
1
|
+
import { mergeClasses, __styles, shorthands } from '@fluentui/react-make-styles';
|
2
|
+
import { tokens } from '@fluentui/react-theme';
|
2
3
|
export const presenceBadgeClassName = 'fui-PresenceBadge';
|
3
4
|
|
4
5
|
const useStyles = /*#__PURE__*/__styles({
|
@@ -12,7 +13,10 @@ const useStyles = /*#__PURE__*/__styles({
|
|
12
13
|
"Bt984gj": "f122n59",
|
13
14
|
"Brf1p80": "f4d9j23",
|
14
15
|
"Bhmb4qv": "fb8jth9",
|
15
|
-
"
|
16
|
+
"Bbmb7ep": ["fqgqgel", "fchfifz"],
|
17
|
+
"Beyfa6y": ["fchfifz", "fqgqgel"],
|
18
|
+
"B7oj6ja": ["fc7b1hi", "f1dpx5h9"],
|
19
|
+
"Btl43ni": ["f1dpx5h9", "fc7b1hi"],
|
16
20
|
"De3pzq": "fxugw4r"
|
17
21
|
},
|
18
22
|
"statusBusy": {
|
@@ -61,7 +65,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
61
65
|
"p4uzdd": "fhipgdu"
|
62
66
|
}
|
63
67
|
}, {
|
64
|
-
"d": [".f1g0x7ka{padding-top:0;}", ".fhxju0i{padding-right:0;}", ".f1cnd47f{padding-left:0;}", ".f1qch9an{padding-bottom:0;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f1ewtqcl{box-sizing:border-box;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fb8jth9 span{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".
|
68
|
+
"d": [".f1g0x7ka{padding-top:0;}", ".fhxju0i{padding-right:0;}", ".f1cnd47f{padding-left:0;}", ".f1qch9an{padding-bottom:0;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f1ewtqcl{box-sizing:border-box;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fb8jth9 span{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".fqgqgel{border-bottom-right-radius:50%;}", ".fchfifz{border-bottom-left-radius:50%;}", ".fc7b1hi{border-top-right-radius:50%;}", ".f1dpx5h9{border-top-left-radius:50%;}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fvi85wt{color:var(--colorPaletteRedBackground3);}", ".f14k8a89{color:var(--colorPaletteMarigoldBackground3);}", ".fqa5hgp{color:var(--colorPaletteLightGreenForeground3);}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".fdce8r3{color:var(--colorPaletteBerryForeground3);}", ".fr0bkrk{color:var(--colorNeutralBackground1);}", ".f9ikmtg{aspect-ratio:1;}", ".f16dn6v3{width:6px;}", ".fab5kbq svg{width:6px!important;}", ".f1ms1d91 svg{height:6px!important;}", ".f64fuq3{width:20px;}", ".f1vfi1yj svg{width:20px!important;}", ".f15s34gz svg{height:20px!important;}", ".f1w9dchk{width:28px;}", ".f14efy9b svg{width:28px!important;}", ".fhipgdu svg{height:28px!important;}"]
|
65
69
|
});
|
66
70
|
/**
|
67
71
|
* Applies style classnames to slots
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PresenceBadge/usePresenceBadgeStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,
|
1
|
+
{"version":3,"sources":["../../../src/components/PresenceBadge/usePresenceBadgeStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,YAAmC,UAAnC,QAAqD,6BAArD;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAGA,OAAO,MAAM,sBAAsB,GAAG,mBAA/B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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dC,EAejC,KAAK,CAAC,IAAN,KAAe,OAAf,IAA0B,MAAM,CAAC,KAfA,EAgBjC,KAAK,CAAC,IAAN,KAAe,aAAf,IAAgC,MAAM,CAAC,UAhBN,EAiBjC,KAAK,CAAC,IAAN,CAAW,SAjBsB,CAAnC;AAoBA,SAAO,KAAP;AACD,CAvBM","sourceRoot":""}
|
@@ -13,8 +13,11 @@ const renderBadge = state => {
|
|
13
13
|
const {
|
14
14
|
slots,
|
15
15
|
slotProps
|
16
|
-
} = react_utilities_1.getSlots(state
|
17
|
-
return React.createElement(slots.root,
|
16
|
+
} = react_utilities_1.getSlots(state);
|
17
|
+
return React.createElement(slots.root, { ...slotProps.root
|
18
|
+
}, state.iconPosition === 'before' && React.createElement(slots.icon, { ...slotProps.icon
|
19
|
+
}), state.root.children, state.iconPosition === 'after' && React.createElement(slots.icon, { ...slotProps.icon
|
20
|
+
}));
|
18
21
|
};
|
19
22
|
|
20
23
|
exports.renderBadge = renderBadge;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Badge/renderBadge.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAGO,MAAM,WAAW,GAAI,KAAD,IAAsB;AAC/C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAqB,KAArB,
|
1
|
+
{"version":3,"sources":["../../../src/components/Badge/renderBadge.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAGO,MAAM,WAAW,GAAI,KAAD,IAAsB;AAC/C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAqB,KAArB,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,KAAK,CAAC,YAAN,KAAuB,QAAvB,IAAmC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CADtC,EAEG,KAAK,CAAC,IAAN,CAAW,QAFd,EAGG,KAAK,CAAC,YAAN,KAAuB,OAAvB,IAAkC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAHrC,CADF;AAOD,CAVM;;AAAM,OAAA,CAAA,WAAA,GAAW,WAAX","sourceRoot":""}
|
@@ -7,6 +7,8 @@ exports.useBadgeStyles = exports.badgeClassName = void 0;
|
|
7
7
|
|
8
8
|
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
9
|
|
10
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
11
|
+
|
10
12
|
exports.badgeClassName = 'fui-Badge';
|
11
13
|
|
12
14
|
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
@@ -46,33 +48,45 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
46
48
|
"rootSmall": {
|
47
49
|
"Bf4jedk": "fq2vo04",
|
48
50
|
"Bqenvij": "fd461yt",
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"
|
51
|
+
"z8tnut": "fq1loh5",
|
52
|
+
"z189sj": ["f12huiiw", "f161knb0"],
|
53
|
+
"Byoj8tv": "futqtb8",
|
54
|
+
"uwmqm3": ["f161knb0", "f12huiiw"],
|
55
|
+
"i8kkvl": "f1q8lukm",
|
56
|
+
"Belr9w4": "f1ma2n7n",
|
52
57
|
"Be2twd7": "f1n0apg3"
|
53
58
|
},
|
54
59
|
"rootMedium": {
|
55
60
|
"Bqenvij": "fjamq6b",
|
56
61
|
"Bf4jedk": "f11u7vat",
|
57
|
-
"
|
58
|
-
"
|
59
|
-
"
|
62
|
+
"i8kkvl": "f1q8lukm",
|
63
|
+
"Belr9w4": "f1ma2n7n",
|
64
|
+
"z8tnut": "f10ra9hq",
|
65
|
+
"z189sj": ["f8wuabp", "fycuoez"],
|
66
|
+
"Byoj8tv": "f1y2xyjm",
|
67
|
+
"uwmqm3": ["fycuoez", "f8wuabp"],
|
60
68
|
"Be2twd7": "fnmn6fi"
|
61
69
|
},
|
62
70
|
"rootLarge": {
|
63
71
|
"Bf4jedk": "f17fgpbq",
|
64
72
|
"Bqenvij": "frvgh55",
|
65
|
-
"
|
66
|
-
"
|
73
|
+
"z8tnut": "f10ra9hq",
|
74
|
+
"z189sj": ["f8wuabp", "fycuoez"],
|
75
|
+
"Byoj8tv": "f1y2xyjm",
|
76
|
+
"uwmqm3": ["fycuoez", "f8wuabp"],
|
67
77
|
"Be2twd7": "f1ugzwwg",
|
68
|
-
"
|
78
|
+
"i8kkvl": "f1q8lukm",
|
79
|
+
"Belr9w4": "f1ma2n7n"
|
69
80
|
},
|
70
81
|
"rootExtraLarge": {
|
71
82
|
"Bf4jedk": "fwbmr0d",
|
72
83
|
"Bqenvij": "f1d2rq10",
|
73
|
-
"
|
74
|
-
"
|
75
|
-
"
|
84
|
+
"z8tnut": "f1xp5gbu",
|
85
|
+
"z189sj": ["f1sgzk6v", "f1bg5zqg"],
|
86
|
+
"Byoj8tv": "f1d7kygh",
|
87
|
+
"uwmqm3": ["f1bg5zqg", "f1sgzk6v"],
|
88
|
+
"i8kkvl": "fgfbwa2",
|
89
|
+
"Belr9w4": "f1y3hx6l",
|
76
90
|
"Be2twd7": "f1ugzwwg",
|
77
91
|
"B4j52fo": "f18zi460",
|
78
92
|
"Bekrc4i": ["f1wpluaz", "fsfsuhs"],
|
@@ -80,16 +94,25 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
80
94
|
"ibv6hh": ["fsfsuhs", "f1wpluaz"]
|
81
95
|
},
|
82
96
|
"rootRounded": {
|
83
|
-
"
|
97
|
+
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
98
|
+
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
99
|
+
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
100
|
+
"Btl43ni": ["fyu767a", "f1jar5jt"]
|
84
101
|
},
|
85
102
|
"rootRoundedSmallToTiny": {
|
86
|
-
"
|
103
|
+
"Bbmb7ep": ["f1g3puop", "fi2rrw2"],
|
104
|
+
"Beyfa6y": ["fi2rrw2", "f1g3puop"],
|
105
|
+
"B7oj6ja": ["f1rstyi9", "f1s4nn1u"],
|
106
|
+
"Btl43ni": ["f1s4nn1u", "f1rstyi9"]
|
87
107
|
},
|
88
108
|
"rootCircular": {
|
89
|
-
"
|
109
|
+
"Bbmb7ep": ["fxyqdnz", "fib3qew"],
|
110
|
+
"Beyfa6y": ["fib3qew", "fxyqdnz"],
|
111
|
+
"B7oj6ja": ["f14p2bvz", "fdqj3q4"],
|
112
|
+
"Btl43ni": ["fdqj3q4", "f14p2bvz"]
|
90
113
|
},
|
91
114
|
"rootGhost": {
|
92
|
-
"
|
115
|
+
"De3pzq": "f3rmtva",
|
93
116
|
"icvyot": "f1ern45e",
|
94
117
|
"vrafjx": ["f1n71otn", "f1deefiw"],
|
95
118
|
"oivjwe": "f1h8hb77",
|
@@ -97,7 +120,7 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
97
120
|
"sj55zd": "f1817uup"
|
98
121
|
},
|
99
122
|
"rootOutline": {
|
100
|
-
"
|
123
|
+
"De3pzq": "f3rmtva",
|
101
124
|
"g2u3we": "f1vp46cd",
|
102
125
|
"h3c5rm": ["f1lxz1cr", "ff8nh0i"],
|
103
126
|
"B9xav0g": "fe9j8it",
|
@@ -130,10 +153,10 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
130
153
|
"rootTintDanger": {
|
131
154
|
"De3pzq": "ff0poqj",
|
132
155
|
"sj55zd": "f1hcrxcs",
|
133
|
-
"g2u3we": "
|
134
|
-
"h3c5rm": ["
|
135
|
-
"B9xav0g": "
|
136
|
-
"zhjwy3": ["
|
156
|
+
"g2u3we": "f1oqjm8o",
|
157
|
+
"h3c5rm": ["fkgrb8g", "frb5wm0"],
|
158
|
+
"B9xav0g": "f1iai1ph",
|
159
|
+
"zhjwy3": ["frb5wm0", "fkgrb8g"]
|
137
160
|
},
|
138
161
|
"rootGhostDanger": {
|
139
162
|
"sj55zd": "f1whyuy6"
|
@@ -225,11 +248,11 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
225
248
|
"zhjwy3": ["fjscplz", "f1gn591s"]
|
226
249
|
},
|
227
250
|
"rootOutlineImportant": {
|
228
|
-
"sj55zd": "
|
229
|
-
"g2u3we": "
|
230
|
-
"h3c5rm": ["
|
231
|
-
"B9xav0g": "
|
232
|
-
"zhjwy3": ["
|
251
|
+
"sj55zd": "f11d4kpn",
|
252
|
+
"g2u3we": "fq0vr37",
|
253
|
+
"h3c5rm": ["f1byw159", "f11cr0be"],
|
254
|
+
"B9xav0g": "f1c1zstj",
|
255
|
+
"zhjwy3": ["f11cr0be", "f1byw159"]
|
233
256
|
},
|
234
257
|
"rootTintImportant": {
|
235
258
|
"De3pzq": "f945g0u",
|
@@ -251,11 +274,11 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
251
274
|
"zhjwy3": ["fjscplz", "f1gn591s"]
|
252
275
|
},
|
253
276
|
"rootOutlineInformative": {
|
254
|
-
"sj55zd": "
|
255
|
-
"g2u3we": "
|
256
|
-
"h3c5rm": ["
|
257
|
-
"B9xav0g": "
|
258
|
-
"zhjwy3": ["
|
277
|
+
"sj55zd": "f11d4kpn",
|
278
|
+
"g2u3we": "f68mrw8",
|
279
|
+
"h3c5rm": ["f7pw515", "fw35ms5"],
|
280
|
+
"B9xav0g": "frpde29",
|
281
|
+
"zhjwy3": ["fw35ms5", "f7pw515"]
|
259
282
|
},
|
260
283
|
"rootTintInformative": {
|
261
284
|
"De3pzq": "f1ctqxl6",
|
@@ -266,7 +289,7 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
266
289
|
"zhjwy3": ["fw35ms5", "f7pw515"]
|
267
290
|
},
|
268
291
|
"rootGhostInformative": {
|
269
|
-
"sj55zd": "
|
292
|
+
"sj55zd": "f11d4kpn"
|
270
293
|
},
|
271
294
|
"rootFilledSubtle": {
|
272
295
|
"De3pzq": "fxugw4r",
|
@@ -299,9 +322,27 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
299
322
|
"Bmliigx": "fxe27oy",
|
300
323
|
"Bt984gj": "f122n59",
|
301
324
|
"Bqenvij": "f1l02sjl"
|
325
|
+
},
|
326
|
+
"iconTiny": {
|
327
|
+
"Be2twd7": "f1tccstq"
|
328
|
+
},
|
329
|
+
"iconExtraSmall": {
|
330
|
+
"Be2twd7": "fnmn6fi"
|
331
|
+
},
|
332
|
+
"iconSmall": {
|
333
|
+
"Be2twd7": "f1ugzwwg"
|
334
|
+
},
|
335
|
+
"iconMedium": {
|
336
|
+
"Be2twd7": "f1ugzwwg"
|
337
|
+
},
|
338
|
+
"iconLarge": {
|
339
|
+
"Be2twd7": "f4ybsrx"
|
340
|
+
},
|
341
|
+
"iconExtraLarge": {
|
342
|
+
"Be2twd7": "fe5j1ua"
|
302
343
|
}
|
303
344
|
}, {
|
304
|
-
"d": [".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f1ewtqcl{box-sizing:border-box;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1vp46cd{border-top-color:var(--colorBrandBackground);}", ".f1lxz1cr{border-right-color:var(--colorBrandBackground);}", ".ff8nh0i{border-left-color:var(--colorBrandBackground);}", ".fe9j8it{border-bottom-color:var(--colorBrandBackground);}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".f10pi13n{position:relative;}", ".f16dn6v3{width:6px;}", ".f3mu39s{height:6px;}", ".f130uwy9{font-size:4px;}", ".fpd43o0{width:10px;}", ".f30q22z{height:10px;}", ".f1tccstq{font-size:6px;}", ".fq2vo04{min-width:16px;}", ".fd461yt{height:16px;}", ".
|
345
|
+
"d": [".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f1ewtqcl{box-sizing:border-box;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1vp46cd{border-top-color:var(--colorBrandBackground);}", ".f1lxz1cr{border-right-color:var(--colorBrandBackground);}", ".ff8nh0i{border-left-color:var(--colorBrandBackground);}", ".fe9j8it{border-bottom-color:var(--colorBrandBackground);}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".f10pi13n{position:relative;}", ".f16dn6v3{width:6px;}", ".f3mu39s{height:6px;}", ".f130uwy9{font-size:4px;}", ".fpd43o0{width:10px;}", ".f30q22z{height:10px;}", ".f1tccstq{font-size:6px;}", ".fq2vo04{min-width:16px;}", ".fd461yt{height:16px;}", ".fq1loh5{padding-top:2px;}", ".f12huiiw{padding-right:2px;}", ".f161knb0{padding-left:2px;}", ".futqtb8{padding-bottom:2px;}", ".f1q8lukm{-webkit-column-gap:4px;column-gap:4px;}", ".f1ma2n7n{row-gap:4px;}", ".f1n0apg3{font-size:8px;}", ".fjamq6b{height:20px;}", ".f11u7vat{min-width:20px;}", ".f10ra9hq{padding-top:4px;}", ".f8wuabp{padding-right:4px;}", ".fycuoez{padding-left:4px;}", ".f1y2xyjm{padding-bottom:4px;}", ".fnmn6fi{font-size:10px;}", ".f17fgpbq{min-width:24px;}", ".frvgh55{height:24px;}", ".f1ugzwwg{font-size:12px;}", ".fwbmr0d{min-width:32px;}", ".f1d2rq10{height:32px;}", ".f1xp5gbu{padding-top:6px;}", ".f1sgzk6v{padding-right:6px;}", ".f1bg5zqg{padding-left:6px;}", ".f1d7kygh{padding-bottom:6px;}", ".fgfbwa2{-webkit-column-gap:6px;column-gap:6px;}", ".f1y3hx6l{row-gap:6px;}", ".f18zi460{border-top-width:var(--strokeWidthThick);}", ".f1wpluaz{border-right-width:var(--strokeWidthThick);}", ".fsfsuhs{border-left-width:var(--strokeWidthThick);}", ".fmklw6v{border-bottom-width:var(--strokeWidthThick);}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}", ".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}", ".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}", ".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}", ".fxyqdnz{border-bottom-right-radius:99px;}", ".fib3qew{border-bottom-left-radius:99px;}", ".f14p2bvz{border-top-right-radius:99px;}", ".fdqj3q4{border-top-left-radius:99px;}", ".f3rmtva{background-color:transparent;}", ".f1ern45e{border-top-style:none;}", ".f1n71otn{border-right-style:none;}", ".f1deefiw{border-left-style:none;}", ".f1h8hb77{border-bottom-style:none;}", ".f1817uup{color:var(--colorBrandBackground);}", ".f16xkysk{background-color:var(--colorBrandBackground2);}", ".faj9fo0{color:var(--colorBrandForeground2);}", ".f161y7kd{border-top-color:var(--colorBrandStroke2);}", ".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}", ".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}", ".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}", ".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}", ".f11ttmz8{border-top-color:var(--colorPaletteRedBackground3);}", ".f1ratw88{border-right-color:var(--colorPaletteRedBackground3);}", ".f459ikj{border-left-color:var(--colorPaletteRedBackground3);}", ".fvovscg{border-bottom-color:var(--colorPaletteRedBackground3);}", ".f1whyuy6{color:var(--colorPaletteRedForeground3);}", ".f1tg094z{border-top-color:var(--colorPaletteRedForeground3);}", ".f19abfc5{border-right-color:var(--colorPaletteRedForeground3);}", ".f1cj97ds{border-left-color:var(--colorPaletteRedForeground3);}", ".f1i5u4jy{border-bottom-color:var(--colorPaletteRedForeground3);}", ".ff0poqj{background-color:var(--colorPaletteRedBackground1);}", ".f1hcrxcs{color:var(--colorPaletteRedForeground1);}", ".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}", ".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}", ".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}", ".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}", ".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}", ".f1wahxdx{border-top-color:var(--colorPaletteDarkOrangeForeground3);}", ".fpbzgcg{border-right-color:var(--colorPaletteDarkOrangeForeground3);}", ".f1g7u8zt{border-left-color:var(--colorPaletteDarkOrangeForeground3);}", ".f1wrnc4t{border-bottom-color:var(--colorPaletteDarkOrangeForeground3);}", ".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}", ".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}", ".f18s257e{border-top-color:var(--colorPaletteDarkOrangeForeground2);}", ".f13ptu4t{border-right-color:var(--colorPaletteDarkOrangeForeground2);}", ".fiwx4jo{border-left-color:var(--colorPaletteDarkOrangeForeground2);}", ".f1geyuz0{border-bottom-color:var(--colorPaletteDarkOrangeForeground2);}", ".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".f1gyeiz5{border-top-color:var(--colorPaletteYellowBackground3);}", ".f1jnj1iq{border-right-color:var(--colorPaletteYellowBackground3);}", ".fd1epeu{border-left-color:var(--colorPaletteYellowBackground3);}", ".f102bkgo{border-bottom-color:var(--colorPaletteYellowBackground3);}", ".fpti2h4{color:var(--colorPaletteYellowForeground2);}", ".fbahunb{border-top-color:var(--colorPaletteYellowForeground2);}", ".fa2hcp6{border-right-color:var(--colorPaletteYellowForeground2);}", ".f1cr20yc{border-left-color:var(--colorPaletteYellowForeground2);}", ".f1fbl5g1{border-bottom-color:var(--colorPaletteYellowForeground2);}", ".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}", ".f1e2bpek{border-top-color:var(--colorPaletteYellowBackground2);}", ".fnu3uvp{border-right-color:var(--colorPaletteYellowBackground2);}", ".fdpwmi9{border-left-color:var(--colorPaletteYellowBackground2);}", ".fk8fs0c{border-bottom-color:var(--colorPaletteYellowBackground2);}", ".flxk52p{background-color:var(--colorPaletteGreenBackground3);}", ".f1sms7z7{color:var(--colorPaletteGreenForeground2);}", ".f7obisw{border-top-color:var(--colorPaletteGreenForeground2);}", ".f108f34s{border-right-color:var(--colorPaletteGreenForeground2);}", ".f1chpoyh{border-left-color:var(--colorPaletteGreenForeground2);}", ".f1xtovf2{border-bottom-color:var(--colorPaletteGreenForeground2);}", ".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}", ".ffmvakt{color:var(--colorPaletteGreenForeground1);}", ".f3m3qtd{border-top-color:var(--colorPaletteGreenBackground2);}", ".f1bjyn17{border-right-color:var(--colorPaletteGreenBackground2);}", ".fksln3n{border-left-color:var(--colorPaletteGreenBackground2);}", ".frg4y0o{border-bottom-color:var(--colorPaletteGreenBackground2);}", ".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}", ".f1c73kur{background-color:var(--colorNeutralForeground1);}", ".fr0bkrk{color:var(--colorNeutralBackground1);}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}", ".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}", ".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}", ".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}", ".f945g0u{background-color:var(--colorNeutralForeground3);}", ".f3vzo32{background-color:var(--colorNeutralBackground5);}", ".f68mrw8{border-top-color:var(--colorNeutralStroke2);}", ".f7pw515{border-right-color:var(--colorNeutralStroke2);}", ".fw35ms5{border-left-color:var(--colorNeutralStroke2);}", ".frpde29{border-bottom-color:var(--colorNeutralStroke2);}", ".f1ctqxl6{background-color:var(--colorNeutralBackground4);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".fgtodeh{border-top-color:var(--colorNeutralForegroundInverted);}", ".fm9lria{border-right-color:var(--colorNeutralForegroundInverted);}", ".fvwj3xt{border-left-color:var(--colorNeutralForegroundInverted);}", ".f7asi1z{border-bottom-color:var(--colorNeutralForegroundInverted);}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".fxe27oy{-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;}", ".f1l02sjl{height:100%;}", ".f4ybsrx{font-size:16px;}", ".fe5j1ua{font-size:20px;}"]
|
305
346
|
});
|
306
347
|
/**
|
307
348
|
* Applies style classnames to slots
|
@@ -324,7 +365,7 @@ const useBadgeStyles = state => {
|
|
324
365
|
state.root.className = react_make_styles_1.mergeClasses(exports.badgeClassName, styles.root, state.size === 'tiny' && styles.rootTiny, state.size === 'extra-small' && styles.rootExtraSmall, state.size === 'small' && styles.rootSmall, state.size === 'medium' && styles.rootMedium, state.size === 'large' && styles.rootLarge, state.size === 'extra-large' && styles.rootExtraLarge, state.shape === 'circular' && styles.rootCircular, state.shape === 'rounded' && styles.rootRounded, state.shape === 'rounded' && (state.size === 'small' || state.size === 'extra-small' || state.size === 'tiny') && styles.rootRoundedSmallToTiny, isGhost && styles.rootGhost, isOutline && styles.rootOutline, isTint && styles.rootTint, isFilled && isDanger && styles.rootFilledDanger, isOutline && isDanger && styles.rootOutlineDanger, isTint && isDanger && styles.rootTintDanger, isGhost && isDanger && styles.rootGhostDanger, isFilled && isSevere && styles.rootFilledSevere, isOutline && isSevere && styles.rootOutlineSevere, isTint && isSevere && styles.rootTintSevere, isGhost && isSevere && styles.rootGhostSevere, isFilled && isWarning && styles.rootFilledWarning, isOutline && isWarning && styles.rootOutlineWarning, isTint && isWarning && styles.rootTintWarning, isGhost && isWarning && styles.rootGhostWarning, isFilled && isSuccess && styles.rootFilledSuccess, isOutline && isSuccess && styles.rootOutlineSuccess, isTint && isSuccess && styles.rootTintSuccess, isGhost && isSuccess && styles.rootGhostSuccess, isFilled && isImportant && styles.rootFilledImportant, isOutline && isImportant && styles.rootOutlineImportant, isTint && isImportant && styles.rootTintImportant, isGhost && isImportant && styles.rootGhostImportant, isFilled && isInformative && styles.rootFilledInformative, isOutline && isInformative && styles.rootOutlineInformative, isTint && isInformative && styles.rootTintInformative, isGhost && isInformative && styles.rootGhostInformative, isFilled && isSubtle && styles.rootFilledSubtle, isOutline && isSubtle && styles.rootOutlineSubtle, isTint && isSubtle && styles.rootTintSubtle, isGhost && isSubtle && styles.rootGhostSubtle, state.root.className);
|
325
366
|
|
326
367
|
if (state.icon) {
|
327
|
-
state.icon.className = react_make_styles_1.mergeClasses(styles.icon, state.icon.className);
|
368
|
+
state.icon.className = react_make_styles_1.mergeClasses(styles.icon, state.size === 'tiny' && styles.iconTiny, state.size === 'extra-small' && styles.iconExtraSmall, state.size === 'small' && styles.iconSmall, state.size === 'medium' && styles.iconMedium, state.size === 'large' && styles.iconLarge, state.size === 'extra-large' && styles.iconExtraLarge, state.icon.className);
|
328
369
|
}
|
329
370
|
|
330
371
|
return state;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Badge/useBadgeStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAGa,OAAA,CAAA,cAAA,GAAiB,WAAjB;;AAEb,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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IAAgC,MAAM,CAAC,cAPlB,EAQrB,KAAK,CAAC,IAAN,CAAW,SARU,CAAvB;AAUD;;AAED,SAAO,KAAP;AACD,CA5EM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd","sourceRoot":""}
|
@@ -36,11 +36,5 @@ export declare type CounterBadgeCommons = {
|
|
36
36
|
*/
|
37
37
|
color: Extract<BadgeProps['color'], 'brand' | 'danger' | 'important' | 'informative'>;
|
38
38
|
};
|
39
|
-
/**
|
40
|
-
* {@docCategory CounterBadge}
|
41
|
-
*/
|
42
39
|
export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape' | 'color'> & Partial<CounterBadgeCommons>;
|
43
|
-
/**
|
44
|
-
* {@docCategory CounterBadge}
|
45
|
-
*/
|
46
40
|
export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape' | 'color'> & CounterBadgeCommons;
|
@@ -12,10 +12,8 @@ const useBadgeStyles_1 = /*#__PURE__*/require("../Badge/useBadgeStyles");
|
|
12
12
|
exports.counterBadgeClassName = 'fui-CounterBadge';
|
13
13
|
|
14
14
|
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
15
|
-
"root": {
|
16
|
-
"Bf4jedk": "fgfkb25"
|
17
|
-
},
|
18
15
|
"dot": {
|
16
|
+
"Bf4jedk": "fgfkb25",
|
19
17
|
"a9b677": "f16dn6v3",
|
20
18
|
"Bqenvij": "f3mu39s",
|
21
19
|
"z8tnut": "f1g0x7ka",
|
@@ -36,7 +34,7 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
36
34
|
|
37
35
|
const useCounterBadgeStyles = state => {
|
38
36
|
const styles = useStyles();
|
39
|
-
state.root.className = react_make_styles_1.mergeClasses(exports.counterBadgeClassName,
|
37
|
+
state.root.className = react_make_styles_1.mergeClasses(exports.counterBadgeClassName, state.dot && styles.dot, !state.showZero && state.count === 0 && !state.dot && styles.hide, state.root.className);
|
40
38
|
return useBadgeStyles_1.useBadgeStyles(state);
|
41
39
|
};
|
42
40
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CounterBadge/useCounterBadgeStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AAGa,OAAA,CAAA,qBAAA,GAAwB,kBAAxB;;AAEb,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA
|
1
|
+
{"version":3,"sources":["../../../src/components/CounterBadge/useCounterBadgeStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AAGa,OAAA,CAAA,qBAAA,GAAwB,kBAAxB;;AAEb,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAYA;;AAEG;;;AACI,MAAM,qBAAqB,GAAI,KAAD,IAAgD;AACnF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CACrB,OAAA,CAAA,qBADqB,EAErB,KAAK,CAAC,GAAN,IAAa,MAAM,CAAC,GAFC,EAGrB,CAAC,KAAK,CAAC,QAAP,IAAmB,KAAK,CAAC,KAAN,KAAgB,CAAnC,IAAwC,CAAC,KAAK,CAAC,GAA/C,IAAsD,MAAM,CAAC,IAHxC,EAIrB,KAAK,CAAC,IAAN,CAAW,SAJU,CAAvB;AAMA,SAAO,gBAAA,CAAA,cAAA,CAAe,KAAf,CAAP;AACD,CATM;;AAAM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AAcD,CAnBD;AAqBA;;AAEG;;;AACI,MAAM,gBAAgB,GAAG,CAAC,KAAD,EAA4B,GAA5B,KAA+E;;;AAC7G,QAAM,KAAK,GAAuB,EAChC,GAAG,OAAA,CAAA,QAAA,CACD;AACE,MAAA,IAAI,EAAE,QADR;AAEE,SAAG,KAFL;AAGE,MAAA,IAAI,EAAE,iBAAA,CAAA,gBAAA,CAAiB,SAAjB,EAA4B;AAChC,QAAA,QAAQ,EAAE;AADsB,OAA5B;AAHR,KADC,EAQD,GARC,CAD6B;AAWhC,IAAA,MAAM,EAAE,CAAA,EAAA,GAAA,KAAK,CAAC,MAAN,MAAY,IAAZ,IAAY,EAAA,KAAA,KAAA,CAAZ,GAAY,EAAZ,GAAgB,WAXQ;AAYhC,IAAA,WAAW,EAAE,CAAA,EAAA,GAAA,KAAK,CAAC,WAAN,MAAiB,IAAjB,IAAiB,EAAA,KAAA,KAAA,CAAjB,GAAiB,EAAjB,GAAqB;AAZF,GAAlC;AAeA,QAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,MAAP,EAAe,KAAK,CAAC,WAArB,EAAkC,KAAK,CAAC,IAAxC,CAA3B;;AACA,MAAI,WAAJ,EAAiB;AACf,IAAA,KAAK,CAAC,IAAN,CAAY,QAAZ,GAAuB,KAAA,CAAA,aAAA,CAAC,WAAD,EAAY,IAAZ,CAAvB;AACD;;AAED,SAAO,KAAP;AACD,CAtBM;;AAAM,OAAA,CAAA,gBAAA,GAAgB,gBAAhB","sourceRoot":""}
|
@@ -7,6 +7,8 @@ exports.usePresenceBadgeStyles = exports.presenceBadgeClassName = void 0;
|
|
7
7
|
|
8
8
|
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
9
|
|
10
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
11
|
+
|
10
12
|
exports.presenceBadgeClassName = 'fui-PresenceBadge';
|
11
13
|
|
12
14
|
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
@@ -20,7 +22,10 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
20
22
|
"Bt984gj": "f122n59",
|
21
23
|
"Brf1p80": "f4d9j23",
|
22
24
|
"Bhmb4qv": "fb8jth9",
|
23
|
-
"
|
25
|
+
"Bbmb7ep": ["fqgqgel", "fchfifz"],
|
26
|
+
"Beyfa6y": ["fchfifz", "fqgqgel"],
|
27
|
+
"B7oj6ja": ["fc7b1hi", "f1dpx5h9"],
|
28
|
+
"Btl43ni": ["f1dpx5h9", "fc7b1hi"],
|
24
29
|
"De3pzq": "fxugw4r"
|
25
30
|
},
|
26
31
|
"statusBusy": {
|
@@ -69,7 +74,7 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
69
74
|
"p4uzdd": "fhipgdu"
|
70
75
|
}
|
71
76
|
}, {
|
72
|
-
"d": [".f1g0x7ka{padding-top:0;}", ".fhxju0i{padding-right:0;}", ".f1cnd47f{padding-left:0;}", ".f1qch9an{padding-bottom:0;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f1ewtqcl{box-sizing:border-box;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fb8jth9 span{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".
|
77
|
+
"d": [".f1g0x7ka{padding-top:0;}", ".fhxju0i{padding-right:0;}", ".f1cnd47f{padding-left:0;}", ".f1qch9an{padding-bottom:0;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f1ewtqcl{box-sizing:border-box;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fb8jth9 span{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".fqgqgel{border-bottom-right-radius:50%;}", ".fchfifz{border-bottom-left-radius:50%;}", ".fc7b1hi{border-top-right-radius:50%;}", ".f1dpx5h9{border-top-left-radius:50%;}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fvi85wt{color:var(--colorPaletteRedBackground3);}", ".f14k8a89{color:var(--colorPaletteMarigoldBackground3);}", ".fqa5hgp{color:var(--colorPaletteLightGreenForeground3);}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".fdce8r3{color:var(--colorPaletteBerryForeground3);}", ".fr0bkrk{color:var(--colorNeutralBackground1);}", ".f9ikmtg{aspect-ratio:1;}", ".f16dn6v3{width:6px;}", ".fab5kbq svg{width:6px!important;}", ".f1ms1d91 svg{height:6px!important;}", ".f64fuq3{width:20px;}", ".f1vfi1yj svg{width:20px!important;}", ".f15s34gz svg{height:20px!important;}", ".f1w9dchk{width:28px;}", ".f14efy9b svg{width:28px!important;}", ".fhipgdu svg{height:28px!important;}"]
|
73
78
|
});
|
74
79
|
/**
|
75
80
|
* Applies style classnames to slots
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PresenceBadge/usePresenceBadgeStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAGa,OAAA,CAAA,sBAAA,GAAyB,mBAAzB;;AAEb,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-badge",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-nightlya9c3d10d9520220113.1",
|
4
4
|
"description": "React components for building web experiences",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -21,15 +21,16 @@
|
|
21
21
|
"start": "yarn storybook",
|
22
22
|
"test": "jest",
|
23
23
|
"docs": "api-extractor run --config=config/api-extractor.local.json --local",
|
24
|
-
"build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-badge/src && yarn docs",
|
25
|
-
"storybook": "start-storybook"
|
24
|
+
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-badge/src && yarn docs",
|
25
|
+
"storybook": "start-storybook",
|
26
|
+
"type-check": "tsc -b tsconfig.json"
|
26
27
|
},
|
27
28
|
"devDependencies": {
|
28
|
-
"@fluentui/babel-make-styles": "0.0.0-
|
29
|
+
"@fluentui/babel-make-styles": "0.0.0-nightlya9c3d10d9520220113.1",
|
29
30
|
"@fluentui/eslint-plugin": "*",
|
30
|
-
"@fluentui/jest-serializer-make-styles": "0.0.0-
|
31
|
+
"@fluentui/jest-serializer-make-styles": "0.0.0-nightlya9c3d10d9520220113.1",
|
31
32
|
"@fluentui/react-conformance": "*",
|
32
|
-
"@fluentui/react-conformance-make-styles": "0.0.0-
|
33
|
+
"@fluentui/react-conformance-make-styles": "0.0.0-nightlya9c3d10d9520220113.1",
|
33
34
|
"@fluentui/scripts": "^1.0.0",
|
34
35
|
"@types/enzyme": "3.10.3",
|
35
36
|
"@types/enzyme-adapter-react-16": "1.0.3",
|
@@ -43,10 +44,10 @@
|
|
43
44
|
"react-test-renderer": "^16.3.0"
|
44
45
|
},
|
45
46
|
"dependencies": {
|
46
|
-
"@fluentui/react-icons": "^2.0.
|
47
|
-
"@fluentui/react-make-styles": "0.0.0-
|
48
|
-
"@fluentui/react-theme": "0.0.0-
|
49
|
-
"@fluentui/react-utilities": "0.0.0-
|
47
|
+
"@fluentui/react-icons": "^2.0.154-beta.5",
|
48
|
+
"@fluentui/react-make-styles": "0.0.0-nightlya9c3d10d9520220113.1",
|
49
|
+
"@fluentui/react-theme": "0.0.0-nightlya9c3d10d9520220113.1",
|
50
|
+
"@fluentui/react-utilities": "0.0.0-nightlya9c3d10d9520220113.1",
|
50
51
|
"tslib": "^2.1.0"
|
51
52
|
},
|
52
53
|
"peerDependencies": {
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
|
2
|
-
import makeStylesTests from '@fluentui/react-conformance-make-styles';
|
3
|
-
export function isConformant(testInfo) {
|
4
|
-
const defaultOptions = {
|
5
|
-
asPropHandlesRef: true,
|
6
|
-
componentPath: module.parent.filename.replace('.test', ''),
|
7
|
-
// https://github.com/microsoft/fluentui/issues/19522
|
8
|
-
skipAsPropTests: true,
|
9
|
-
extraTests: makeStylesTests
|
10
|
-
};
|
11
|
-
baseIsConformant(defaultOptions, testInfo);
|
12
|
-
}
|
13
|
-
//# sourceMappingURL=isConformant.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AACA,OAAO,eAAP,MAA4B,yCAA5B;AAGA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D;AACA,IAAA,eAAe,EAAE,IAJ0C;AAK3D,IAAA,UAAU,EAAE;AAL+C,GAA7D;AAQA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.isConformant = void 0;
|
7
|
-
|
8
|
-
const react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
|
9
|
-
|
10
|
-
const react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
|
11
|
-
|
12
|
-
function isConformant(testInfo) {
|
13
|
-
const defaultOptions = {
|
14
|
-
asPropHandlesRef: true,
|
15
|
-
componentPath: module.parent.filename.replace('.test', ''),
|
16
|
-
// https://github.com/microsoft/fluentui/issues/19522
|
17
|
-
skipAsPropTests: true,
|
18
|
-
extraTests: react_conformance_make_styles_1.default
|
19
|
-
};
|
20
|
-
react_conformance_1.isConformant(defaultOptions, testInfo);
|
21
|
-
}
|
22
|
-
|
23
|
-
exports.isConformant = isConformant;
|
24
|
-
//# sourceMappingURL=isConformant.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAGA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D;AACA,IAAA,eAAe,EAAE,IAJ0C;AAK3D,IAAA,UAAU,EAAE,+BAAA,CAAA;AAL+C,GAA7D;AAQA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAZD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
|