@fluentui/react-badge 0.0.0-nightlyd3bf09bf8120211201.1 → 0.0.0-nightlye1926bfeca20220204.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +117 -19
- package/CHANGELOG.md +23 -11
- package/dist/react-badge.d.ts +13 -19
- package/lib/components/Badge/Badge.d.ts +1 -1
- package/lib/components/Badge/Badge.js +7 -7
- package/lib/components/Badge/Badge.js.map +1 -1
- package/lib/components/Badge/Badge.types.d.ts +3 -4
- package/lib/components/Badge/renderBadge.d.ts +1 -1
- package/lib/components/Badge/renderBadge.js +6 -3
- package/lib/components/Badge/renderBadge.js.map +1 -1
- package/lib/components/Badge/useBadge.d.ts +1 -1
- package/lib/components/Badge/useBadge.js +1 -1
- package/lib/components/Badge/useBadge.js.map +1 -1
- package/lib/components/Badge/useBadgeStyles.d.ts +1 -1
- package/lib/components/Badge/useBadgeStyles.js +185 -191
- package/lib/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib/components/CounterBadge/CounterBadge.d.ts +1 -1
- package/lib/components/CounterBadge/CounterBadge.js +7 -7
- package/lib/components/CounterBadge/CounterBadge.js.map +1 -1
- package/lib/components/CounterBadge/CounterBadge.types.d.ts +0 -6
- package/lib/components/CounterBadge/useCounterBadge.d.ts +1 -1
- package/lib/components/CounterBadge/useCounterBadge.js +3 -3
- package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
- package/lib/components/CounterBadge/useCounterBadgeStyles.d.ts +1 -1
- package/lib/components/CounterBadge/useCounterBadgeStyles.js +6 -8
- package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib/components/PresenceBadge/PresenceBadge.d.ts +1 -1
- package/lib/components/PresenceBadge/PresenceBadge.js +7 -7
- package/lib/components/PresenceBadge/PresenceBadge.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadge.d.ts +1 -1
- package/lib/components/PresenceBadge/usePresenceBadge.js +3 -3
- package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.d.ts +1 -1
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +3 -2
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/Badge/Badge.d.ts +1 -1
- package/lib-commonjs/components/Badge/Badge.js +4 -4
- package/lib-commonjs/components/Badge/Badge.js.map +1 -1
- package/lib-commonjs/components/Badge/Badge.types.d.ts +3 -4
- package/lib-commonjs/components/Badge/renderBadge.d.ts +1 -1
- package/lib-commonjs/components/Badge/renderBadge.js +8 -5
- package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/useBadge.d.ts +1 -1
- package/lib-commonjs/components/Badge/useBadge.js +3 -3
- package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/useBadgeStyles.d.ts +1 -1
- package/lib-commonjs/components/Badge/useBadgeStyles.js +188 -193
- package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.d.ts +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.js +4 -4
- package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +0 -6
- package/lib-commonjs/components/CounterBadge/useCounterBadge.d.ts +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadge.js +4 -4
- package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.d.ts +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +8 -10
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.d.ts +1 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.js +4 -4
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.d.ts +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +4 -4
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.d.ts +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +8 -6
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/package.json +12 -14
@@ -1,18 +1,13 @@
|
|
1
|
-
import { shorthands, mergeClasses, __styles } from '@
|
1
|
+
import { shorthands, mergeClasses, __styles } from '@griffel/react';
|
2
|
+
import { tokens } from '@fluentui/react-theme';
|
2
3
|
export const badgeClassName = 'fui-Badge';
|
3
4
|
|
4
|
-
const
|
5
|
-
"
|
5
|
+
const useRootStyles = /*#__PURE__*/__styles({
|
6
|
+
"base": {
|
6
7
|
"mc9l5x": "ftuwxu6",
|
7
8
|
"B7ck84d": "f1ewtqcl",
|
8
9
|
"Bt984gj": "f122n59",
|
9
10
|
"Brf1p80": "f4d9j23",
|
10
|
-
"De3pzq": "ffp7eso",
|
11
|
-
"g2u3we": "f1vp46cd",
|
12
|
-
"h3c5rm": ["f1lxz1cr", "ff8nh0i"],
|
13
|
-
"B9xav0g": "fe9j8it",
|
14
|
-
"zhjwy3": ["ff8nh0i", "f1lxz1cr"],
|
15
|
-
"sj55zd": "f1phragk",
|
16
11
|
"Bhrd7zp": "fl43uef",
|
17
12
|
"B4j52fo": "f192inf7",
|
18
13
|
"Bekrc4i": ["f5tn483", "f1ojsxk5"],
|
@@ -25,48 +20,56 @@ const useStyles = /*#__PURE__*/__styles({
|
|
25
20
|
"Bahqtrf": "fk6fouc",
|
26
21
|
"qhf8xq": "f10pi13n"
|
27
22
|
},
|
28
|
-
"
|
23
|
+
"tiny": {
|
29
24
|
"a9b677": "f16dn6v3",
|
30
25
|
"Bqenvij": "f3mu39s",
|
31
26
|
"Be2twd7": "f130uwy9"
|
32
27
|
},
|
33
|
-
"
|
28
|
+
"extra-small": {
|
34
29
|
"a9b677": "fpd43o0",
|
35
30
|
"Bqenvij": "f30q22z",
|
36
31
|
"Be2twd7": "f1tccstq"
|
37
32
|
},
|
38
|
-
"
|
33
|
+
"small": {
|
39
34
|
"Bf4jedk": "fq2vo04",
|
40
35
|
"Bqenvij": "fd461yt",
|
41
|
-
"
|
42
|
-
"
|
36
|
+
"z8tnut": "fq1loh5",
|
37
|
+
"z189sj": ["f12huiiw", "f161knb0"],
|
38
|
+
"Byoj8tv": "futqtb8",
|
39
|
+
"uwmqm3": ["f161knb0", "f12huiiw"],
|
43
40
|
"i8kkvl": "f1q8lukm",
|
44
41
|
"Belr9w4": "f1ma2n7n",
|
45
42
|
"Be2twd7": "f1n0apg3"
|
46
43
|
},
|
47
|
-
"
|
44
|
+
"medium": {
|
48
45
|
"Bqenvij": "fjamq6b",
|
49
46
|
"Bf4jedk": "f11u7vat",
|
50
47
|
"i8kkvl": "f1q8lukm",
|
51
48
|
"Belr9w4": "f1ma2n7n",
|
52
|
-
"
|
53
|
-
"
|
49
|
+
"z8tnut": "f10ra9hq",
|
50
|
+
"z189sj": ["f8wuabp", "fycuoez"],
|
51
|
+
"Byoj8tv": "f1y2xyjm",
|
52
|
+
"uwmqm3": ["fycuoez", "f8wuabp"],
|
54
53
|
"Be2twd7": "fnmn6fi"
|
55
54
|
},
|
56
|
-
"
|
55
|
+
"large": {
|
57
56
|
"Bf4jedk": "f17fgpbq",
|
58
57
|
"Bqenvij": "frvgh55",
|
59
|
-
"
|
60
|
-
"
|
58
|
+
"z8tnut": "f10ra9hq",
|
59
|
+
"z189sj": ["f8wuabp", "fycuoez"],
|
60
|
+
"Byoj8tv": "f1y2xyjm",
|
61
|
+
"uwmqm3": ["fycuoez", "f8wuabp"],
|
61
62
|
"Be2twd7": "f1ugzwwg",
|
62
|
-
"i8kkvl": "
|
63
|
-
"Belr9w4": "
|
63
|
+
"i8kkvl": "f1q8lukm",
|
64
|
+
"Belr9w4": "f1ma2n7n"
|
64
65
|
},
|
65
|
-
"
|
66
|
+
"extra-large": {
|
66
67
|
"Bf4jedk": "fwbmr0d",
|
67
68
|
"Bqenvij": "f1d2rq10",
|
68
|
-
"
|
69
|
-
"
|
69
|
+
"z8tnut": "f1xp5gbu",
|
70
|
+
"z189sj": ["f1sgzk6v", "f1bg5zqg"],
|
71
|
+
"Byoj8tv": "f1d7kygh",
|
72
|
+
"uwmqm3": ["f1bg5zqg", "f1sgzk6v"],
|
70
73
|
"i8kkvl": "fgfbwa2",
|
71
74
|
"Belr9w4": "f1y3hx6l",
|
72
75
|
"Be2twd7": "f1ugzwwg",
|
@@ -75,49 +78,40 @@ const useStyles = /*#__PURE__*/__styles({
|
|
75
78
|
"Bn0qgzm": "fmklw6v",
|
76
79
|
"ibv6hh": ["fsfsuhs", "f1wpluaz"]
|
77
80
|
},
|
78
|
-
"
|
81
|
+
"square": {},
|
82
|
+
"rounded": {
|
79
83
|
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
80
84
|
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
81
85
|
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
82
86
|
"Btl43ni": ["fyu767a", "f1jar5jt"]
|
83
87
|
},
|
84
|
-
"
|
88
|
+
"roundedSmallToTiny": {
|
85
89
|
"Bbmb7ep": ["f1g3puop", "fi2rrw2"],
|
86
90
|
"Beyfa6y": ["fi2rrw2", "f1g3puop"],
|
87
91
|
"B7oj6ja": ["f1rstyi9", "f1s4nn1u"],
|
88
92
|
"Btl43ni": ["f1s4nn1u", "f1rstyi9"]
|
89
93
|
},
|
90
|
-
"
|
94
|
+
"circular": {
|
91
95
|
"Bbmb7ep": ["fxyqdnz", "fib3qew"],
|
92
96
|
"Beyfa6y": ["fib3qew", "fxyqdnz"],
|
93
97
|
"B7oj6ja": ["f14p2bvz", "fdqj3q4"],
|
94
98
|
"Btl43ni": ["fdqj3q4", "f14p2bvz"]
|
95
99
|
},
|
96
|
-
"
|
97
|
-
"
|
98
|
-
"
|
99
|
-
"
|
100
|
-
"
|
101
|
-
"wvpqe5": ["f1deefiw", "f1n71otn"],
|
102
|
-
"sj55zd": "f1817uup"
|
100
|
+
"filled": {
|
101
|
+
"g2u3we": "fghlq4f",
|
102
|
+
"h3c5rm": ["f1gn591s", "fjscplz"],
|
103
|
+
"B9xav0g": "fb073pr",
|
104
|
+
"zhjwy3": ["fjscplz", "f1gn591s"]
|
103
105
|
},
|
104
|
-
"
|
105
|
-
"De3pzq": "
|
106
|
+
"filled-brand": {
|
107
|
+
"De3pzq": "ffp7eso",
|
108
|
+
"sj55zd": "f1phragk",
|
106
109
|
"g2u3we": "f1vp46cd",
|
107
110
|
"h3c5rm": ["f1lxz1cr", "ff8nh0i"],
|
108
111
|
"B9xav0g": "fe9j8it",
|
109
|
-
"zhjwy3": ["ff8nh0i", "f1lxz1cr"]
|
110
|
-
"sj55zd": "f1817uup"
|
111
|
-
},
|
112
|
-
"rootTint": {
|
113
|
-
"De3pzq": "f16xkysk",
|
114
|
-
"sj55zd": "faj9fo0",
|
115
|
-
"g2u3we": "f161y7kd",
|
116
|
-
"h3c5rm": ["f1c8dzaj", "f1sl6hi9"],
|
117
|
-
"B9xav0g": "f1619yhw",
|
118
|
-
"zhjwy3": ["f1sl6hi9", "f1c8dzaj"]
|
112
|
+
"zhjwy3": ["ff8nh0i", "f1lxz1cr"]
|
119
113
|
},
|
120
|
-
"
|
114
|
+
"filled-danger": {
|
121
115
|
"De3pzq": "fdl5y0r",
|
122
116
|
"sj55zd": "f1phragk",
|
123
117
|
"g2u3we": "f11ttmz8",
|
@@ -125,51 +119,27 @@ const useStyles = /*#__PURE__*/__styles({
|
|
125
119
|
"B9xav0g": "fvovscg",
|
126
120
|
"zhjwy3": ["f459ikj", "f1ratw88"]
|
127
121
|
},
|
128
|
-
"
|
129
|
-
"
|
130
|
-
"
|
131
|
-
"h3c5rm": ["f19abfc5", "f1cj97ds"],
|
132
|
-
"B9xav0g": "f1i5u4jy",
|
133
|
-
"zhjwy3": ["f1cj97ds", "f19abfc5"]
|
134
|
-
},
|
135
|
-
"rootTintDanger": {
|
136
|
-
"De3pzq": "ff0poqj",
|
137
|
-
"sj55zd": "f1hcrxcs",
|
138
|
-
"g2u3we": "fkvqoq2",
|
139
|
-
"h3c5rm": ["f1abpjw7", "fzsnz0r"],
|
140
|
-
"B9xav0g": "f9kvmvw",
|
141
|
-
"zhjwy3": ["fzsnz0r", "f1abpjw7"]
|
122
|
+
"filled-important": {
|
123
|
+
"De3pzq": "f1c73kur",
|
124
|
+
"sj55zd": "fr0bkrk"
|
142
125
|
},
|
143
|
-
"
|
144
|
-
"
|
126
|
+
"filled-informative": {
|
127
|
+
"De3pzq": "f3vzo32",
|
128
|
+
"sj55zd": "f11d4kpn"
|
145
129
|
},
|
146
|
-
"
|
130
|
+
"filled-severe": {
|
147
131
|
"De3pzq": "f1s438gw",
|
148
|
-
"sj55zd": "f1phragk"
|
149
|
-
"g2u3we": "fghlq4f",
|
150
|
-
"h3c5rm": ["f1gn591s", "fjscplz"],
|
151
|
-
"B9xav0g": "fb073pr",
|
152
|
-
"zhjwy3": ["fjscplz", "f1gn591s"]
|
153
|
-
},
|
154
|
-
"rootOutlineSevere": {
|
155
|
-
"sj55zd": "f1l8vj45",
|
156
|
-
"g2u3we": "f1wahxdx",
|
157
|
-
"h3c5rm": ["fpbzgcg", "f1g7u8zt"],
|
158
|
-
"B9xav0g": "f1wrnc4t",
|
159
|
-
"zhjwy3": ["f1g7u8zt", "fpbzgcg"]
|
132
|
+
"sj55zd": "f1phragk"
|
160
133
|
},
|
161
|
-
"
|
162
|
-
"De3pzq": "
|
163
|
-
"sj55zd": "
|
164
|
-
"g2u3we": "f18s257e",
|
165
|
-
"h3c5rm": ["f13ptu4t", "fiwx4jo"],
|
166
|
-
"B9xav0g": "f1geyuz0",
|
167
|
-
"zhjwy3": ["fiwx4jo", "f13ptu4t"]
|
134
|
+
"filled-subtle": {
|
135
|
+
"De3pzq": "fxugw4r",
|
136
|
+
"sj55zd": "f19n0e5"
|
168
137
|
},
|
169
|
-
"
|
170
|
-
"
|
138
|
+
"filled-success": {
|
139
|
+
"De3pzq": "flxk52p",
|
140
|
+
"sj55zd": "f1phragk"
|
171
141
|
},
|
172
|
-
"
|
142
|
+
"filled-warning": {
|
173
143
|
"De3pzq": "ffq97bm",
|
174
144
|
"sj55zd": "f19n0e5",
|
175
145
|
"g2u3we": "f1gyeiz5",
|
@@ -177,118 +147,116 @@ const useStyles = /*#__PURE__*/__styles({
|
|
177
147
|
"B9xav0g": "f102bkgo",
|
178
148
|
"zhjwy3": ["fd1epeu", "f1jnj1iq"]
|
179
149
|
},
|
180
|
-
"
|
181
|
-
"
|
182
|
-
"
|
183
|
-
"
|
184
|
-
"
|
185
|
-
"zhjwy3": ["f1cr20yc", "fa2hcp6"]
|
150
|
+
"ghost": {
|
151
|
+
"icvyot": "f1ern45e",
|
152
|
+
"vrafjx": ["f1n71otn", "f1deefiw"],
|
153
|
+
"oivjwe": "f1h8hb77",
|
154
|
+
"wvpqe5": ["f1deefiw", "f1n71otn"]
|
186
155
|
},
|
187
|
-
"
|
188
|
-
"
|
189
|
-
"sj55zd": "fpti2h4",
|
190
|
-
"g2u3we": "f1e2bpek",
|
191
|
-
"h3c5rm": ["fnu3uvp", "fdpwmi9"],
|
192
|
-
"B9xav0g": "fk8fs0c",
|
193
|
-
"zhjwy3": ["fdpwmi9", "fnu3uvp"]
|
156
|
+
"ghost-brand": {
|
157
|
+
"sj55zd": "f1817uup"
|
194
158
|
},
|
195
|
-
"
|
196
|
-
"sj55zd": "
|
159
|
+
"ghost-danger": {
|
160
|
+
"sj55zd": "f1whyuy6"
|
197
161
|
},
|
198
|
-
"
|
199
|
-
"
|
200
|
-
"sj55zd": "f1phragk",
|
201
|
-
"g2u3we": "fghlq4f",
|
202
|
-
"h3c5rm": ["f1gn591s", "fjscplz"],
|
203
|
-
"B9xav0g": "fb073pr",
|
204
|
-
"zhjwy3": ["fjscplz", "f1gn591s"]
|
162
|
+
"ghost-important": {
|
163
|
+
"sj55zd": "f19n0e5"
|
205
164
|
},
|
206
|
-
"
|
207
|
-
"sj55zd": "
|
208
|
-
"g2u3we": "f7obisw",
|
209
|
-
"h3c5rm": ["f108f34s", "f1chpoyh"],
|
210
|
-
"B9xav0g": "f1xtovf2",
|
211
|
-
"zhjwy3": ["f1chpoyh", "f108f34s"]
|
165
|
+
"ghost-informative": {
|
166
|
+
"sj55zd": "f11d4kpn"
|
212
167
|
},
|
213
|
-
"
|
214
|
-
"
|
215
|
-
"sj55zd": "ffmvakt",
|
216
|
-
"g2u3we": "f3m3qtd",
|
217
|
-
"h3c5rm": ["f1bjyn17", "fksln3n"],
|
218
|
-
"B9xav0g": "frg4y0o",
|
219
|
-
"zhjwy3": ["fksln3n", "f1bjyn17"]
|
168
|
+
"ghost-severe": {
|
169
|
+
"sj55zd": "f1l8vj45"
|
220
170
|
},
|
221
|
-
"
|
171
|
+
"ghost-subtle": {
|
172
|
+
"sj55zd": "fqpbvvt"
|
173
|
+
},
|
174
|
+
"ghost-success": {
|
222
175
|
"sj55zd": "f1m7fhi8"
|
223
176
|
},
|
224
|
-
"
|
225
|
-
"
|
226
|
-
"sj55zd": "fr0bkrk",
|
227
|
-
"g2u3we": "fghlq4f",
|
228
|
-
"h3c5rm": ["f1gn591s", "fjscplz"],
|
229
|
-
"B9xav0g": "fb073pr",
|
230
|
-
"zhjwy3": ["fjscplz", "f1gn591s"]
|
177
|
+
"ghost-warning": {
|
178
|
+
"sj55zd": "fpti2h4"
|
231
179
|
},
|
232
|
-
"
|
233
|
-
"
|
234
|
-
"
|
235
|
-
"
|
236
|
-
"
|
237
|
-
"zhjwy3": ["f1nwaeql", "fanr40h"]
|
180
|
+
"outline": {
|
181
|
+
"g2u3we": "f23ftbb",
|
182
|
+
"h3c5rm": ["f1gkuv52", "f1p1bl80"],
|
183
|
+
"B9xav0g": "fioka3i",
|
184
|
+
"zhjwy3": ["f1p1bl80", "f1gkuv52"]
|
238
185
|
},
|
239
|
-
"
|
240
|
-
"
|
241
|
-
"sj55zd": "fr0bkrk",
|
242
|
-
"g2u3we": "fghlq4f",
|
243
|
-
"h3c5rm": ["f1gn591s", "fjscplz"],
|
244
|
-
"B9xav0g": "fb073pr",
|
245
|
-
"zhjwy3": ["fjscplz", "f1gn591s"]
|
186
|
+
"outline-brand": {
|
187
|
+
"sj55zd": "f1817uup"
|
246
188
|
},
|
247
|
-
"
|
248
|
-
"sj55zd": "
|
189
|
+
"outline-danger": {
|
190
|
+
"sj55zd": "f1whyuy6"
|
249
191
|
},
|
250
|
-
"
|
251
|
-
"De3pzq": "f3vzo32",
|
192
|
+
"outline-important": {
|
252
193
|
"sj55zd": "f11d4kpn",
|
253
|
-
"g2u3we": "
|
254
|
-
"h3c5rm": ["
|
255
|
-
"B9xav0g": "
|
256
|
-
"zhjwy3": ["
|
194
|
+
"g2u3we": "fq0vr37",
|
195
|
+
"h3c5rm": ["f1byw159", "f11cr0be"],
|
196
|
+
"B9xav0g": "f1c1zstj",
|
197
|
+
"zhjwy3": ["f11cr0be", "f1byw159"]
|
257
198
|
},
|
258
|
-
"
|
259
|
-
"sj55zd": "f11z005f",
|
260
|
-
"g2u3we": "f1o6yoc8",
|
261
|
-
"h3c5rm": ["fdav146", "f6dh4jx"],
|
262
|
-
"B9xav0g": "fhjohzm",
|
263
|
-
"zhjwy3": ["f6dh4jx", "fdav146"]
|
264
|
-
},
|
265
|
-
"rootTintInformative": {
|
266
|
-
"De3pzq": "f1ctqxl6",
|
199
|
+
"outline-informative": {
|
267
200
|
"sj55zd": "f11d4kpn",
|
268
201
|
"g2u3we": "f68mrw8",
|
269
202
|
"h3c5rm": ["f7pw515", "fw35ms5"],
|
270
203
|
"B9xav0g": "frpde29",
|
271
204
|
"zhjwy3": ["fw35ms5", "f7pw515"]
|
272
205
|
},
|
273
|
-
"
|
274
|
-
"sj55zd": "
|
206
|
+
"outline-severe": {
|
207
|
+
"sj55zd": "f1l8vj45"
|
275
208
|
},
|
276
|
-
"
|
277
|
-
"
|
278
|
-
|
209
|
+
"outline-subtle": {
|
210
|
+
"sj55zd": "fqpbvvt"
|
211
|
+
},
|
212
|
+
"outline-success": {
|
213
|
+
"sj55zd": "f1sms7z7"
|
214
|
+
},
|
215
|
+
"outline-warning": {
|
216
|
+
"sj55zd": "fpti2h4"
|
217
|
+
},
|
218
|
+
"tint": {},
|
219
|
+
"tint-brand": {
|
220
|
+
"De3pzq": "f16xkysk",
|
221
|
+
"sj55zd": "faj9fo0",
|
222
|
+
"g2u3we": "f161y7kd",
|
223
|
+
"h3c5rm": ["f1c8dzaj", "f1sl6hi9"],
|
224
|
+
"B9xav0g": "f1619yhw",
|
225
|
+
"zhjwy3": ["f1sl6hi9", "f1c8dzaj"]
|
226
|
+
},
|
227
|
+
"tint-danger": {
|
228
|
+
"De3pzq": "ff0poqj",
|
229
|
+
"sj55zd": "f1hcrxcs",
|
230
|
+
"g2u3we": "f1oqjm8o",
|
231
|
+
"h3c5rm": ["fkgrb8g", "frb5wm0"],
|
232
|
+
"B9xav0g": "f1iai1ph",
|
233
|
+
"zhjwy3": ["frb5wm0", "fkgrb8g"]
|
234
|
+
},
|
235
|
+
"tint-important": {
|
236
|
+
"De3pzq": "f945g0u",
|
237
|
+
"sj55zd": "fr0bkrk",
|
279
238
|
"g2u3we": "fghlq4f",
|
280
239
|
"h3c5rm": ["f1gn591s", "fjscplz"],
|
281
240
|
"B9xav0g": "fb073pr",
|
282
241
|
"zhjwy3": ["fjscplz", "f1gn591s"]
|
283
242
|
},
|
284
|
-
"
|
285
|
-
"
|
286
|
-
"
|
287
|
-
"
|
288
|
-
"
|
289
|
-
"
|
243
|
+
"tint-informative": {
|
244
|
+
"De3pzq": "f1ctqxl6",
|
245
|
+
"sj55zd": "f11d4kpn",
|
246
|
+
"g2u3we": "f68mrw8",
|
247
|
+
"h3c5rm": ["f7pw515", "fw35ms5"],
|
248
|
+
"B9xav0g": "frpde29",
|
249
|
+
"zhjwy3": ["fw35ms5", "f7pw515"]
|
250
|
+
},
|
251
|
+
"tint-severe": {
|
252
|
+
"De3pzq": "f1xzsg4",
|
253
|
+
"sj55zd": "f1k5f75o",
|
254
|
+
"g2u3we": "f18s257e",
|
255
|
+
"h3c5rm": ["f13ptu4t", "fiwx4jo"],
|
256
|
+
"B9xav0g": "f1geyuz0",
|
257
|
+
"zhjwy3": ["fiwx4jo", "f13ptu4t"]
|
290
258
|
},
|
291
|
-
"
|
259
|
+
"tint-subtle": {
|
292
260
|
"De3pzq": "fxugw4r",
|
293
261
|
"sj55zd": "f11d4kpn",
|
294
262
|
"g2u3we": "f68mrw8",
|
@@ -296,40 +264,66 @@ const useStyles = /*#__PURE__*/__styles({
|
|
296
264
|
"B9xav0g": "frpde29",
|
297
265
|
"zhjwy3": ["fw35ms5", "f7pw515"]
|
298
266
|
},
|
299
|
-
"
|
300
|
-
"
|
267
|
+
"tint-success": {
|
268
|
+
"De3pzq": "f2vsrz6",
|
269
|
+
"sj55zd": "ffmvakt",
|
270
|
+
"g2u3we": "f3m3qtd",
|
271
|
+
"h3c5rm": ["f1bjyn17", "fksln3n"],
|
272
|
+
"B9xav0g": "frg4y0o",
|
273
|
+
"zhjwy3": ["fksln3n", "f1bjyn17"]
|
301
274
|
},
|
302
|
-
"
|
275
|
+
"tint-warning": {
|
276
|
+
"De3pzq": "f10s6hli",
|
277
|
+
"sj55zd": "fpti2h4",
|
278
|
+
"g2u3we": "f1e2bpek",
|
279
|
+
"h3c5rm": ["fnu3uvp", "fdpwmi9"],
|
280
|
+
"B9xav0g": "fk8fs0c",
|
281
|
+
"zhjwy3": ["fdpwmi9", "fnu3uvp"]
|
282
|
+
}
|
283
|
+
}, {
|
284
|
+
"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;}", ".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;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".f1vp46cd{border-top-color:var(--colorBrandBackground);}", ".f1lxz1cr{border-right-color:var(--colorBrandBackground);}", ".ff8nh0i{border-left-color:var(--colorBrandBackground);}", ".fe9j8it{border-bottom-color:var(--colorBrandBackground);}", ".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);}", ".f1c73kur{background-color:var(--colorNeutralForeground1);}", ".fr0bkrk{color:var(--colorNeutralBackground1);}", ".f3vzo32{background-color:var(--colorNeutralBackground5);}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".flxk52p{background-color:var(--colorPaletteGreenBackground3);}", ".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}", ".f1gyeiz5{border-top-color:var(--colorPaletteYellowBackground3);}", ".f1jnj1iq{border-right-color:var(--colorPaletteYellowBackground3);}", ".fd1epeu{border-left-color:var(--colorPaletteYellowBackground3);}", ".f102bkgo{border-bottom-color:var(--colorPaletteYellowBackground3);}", ".f1ern45e{border-top-style:none;}", ".f1n71otn{border-right-style:none;}", ".f1deefiw{border-left-style:none;}", ".f1h8hb77{border-bottom-style:none;}", ".f1817uup{color:var(--colorBrandBackground);}", ".f1whyuy6{color:var(--colorPaletteRedForeground3);}", ".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}", ".fpti2h4{color:var(--colorPaletteYellowForeground2);}", ".f23ftbb{border-top-color:currentColor;}", ".f1gkuv52{border-right-color:currentColor;}", ".f1p1bl80{border-left-color:currentColor;}", ".fioka3i{border-bottom-color:currentColor;}", ".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}", ".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}", ".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}", ".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}", ".f68mrw8{border-top-color:var(--colorNeutralStroke2);}", ".f7pw515{border-right-color:var(--colorNeutralStroke2);}", ".fw35ms5{border-left-color:var(--colorNeutralStroke2);}", ".frpde29{border-bottom-color:var(--colorNeutralStroke2);}", ".f1sms7z7{color:var(--colorPaletteGreenForeground2);}", ".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);}", ".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);}", ".f945g0u{background-color:var(--colorNeutralForeground3);}", ".f1ctqxl6{background-color:var(--colorNeutralBackground4);}", ".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);}", ".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);}", ".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);}"]
|
285
|
+
});
|
286
|
+
|
287
|
+
const useIconStyles = /*#__PURE__*/__styles({
|
288
|
+
"base": {
|
303
289
|
"mc9l5x": "f22iagw",
|
304
290
|
"Bmliigx": "fxe27oy",
|
305
291
|
"Bt984gj": "f122n59",
|
306
292
|
"Bqenvij": "f1l02sjl"
|
293
|
+
},
|
294
|
+
"tiny": {
|
295
|
+
"Be2twd7": "f1tccstq"
|
296
|
+
},
|
297
|
+
"extra-small": {
|
298
|
+
"Be2twd7": "fnmn6fi"
|
299
|
+
},
|
300
|
+
"small": {
|
301
|
+
"Be2twd7": "f1ugzwwg"
|
302
|
+
},
|
303
|
+
"medium": {
|
304
|
+
"Be2twd7": "f1ugzwwg"
|
305
|
+
},
|
306
|
+
"large": {
|
307
|
+
"Be2twd7": "f4ybsrx"
|
308
|
+
},
|
309
|
+
"extra-large": {
|
310
|
+
"Be2twd7": "fe5j1ua"
|
307
311
|
}
|
308
312
|
}, {
|
309
|
-
"d": [".
|
313
|
+
"d": [".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;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f1l02sjl{height:100%;}", ".f1tccstq{font-size:6px;}", ".fnmn6fi{font-size:10px;}", ".f1ugzwwg{font-size:12px;}", ".f4ybsrx{font-size:16px;}", ".fe5j1ua{font-size:20px;}"]
|
310
314
|
});
|
311
315
|
/**
|
312
316
|
* Applies style classnames to slots
|
313
317
|
*/
|
314
318
|
|
315
319
|
|
316
|
-
export const
|
317
|
-
const
|
318
|
-
|
319
|
-
const
|
320
|
-
const isTint = state.appearance === 'tint';
|
321
|
-
const isFilled = state.appearance === 'filled';
|
322
|
-
const isDanger = state.color === 'danger';
|
323
|
-
const isSevere = state.color === 'severe';
|
324
|
-
const isWarning = state.color === 'warning';
|
325
|
-
const isSuccess = state.color === 'success';
|
326
|
-
const isImportant = state.color === 'important';
|
327
|
-
const isInformative = state.color === 'informative';
|
328
|
-
const isSubtle = state.color === 'subtle';
|
329
|
-
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);
|
320
|
+
export const useBadgeStyles_unstable = state => {
|
321
|
+
const rootStyles = useRootStyles();
|
322
|
+
state.root.className = mergeClasses(badgeClassName, rootStyles.base, rootStyles[state.size], rootStyles[state.shape], state.shape === 'rounded' && (state.size === 'small' || state.size === 'extra-small' || state.size === 'tiny') && rootStyles.roundedSmallToTiny, rootStyles[state.appearance], rootStyles[`${state.appearance}-${state.color}`], state.root.className);
|
323
|
+
const iconStyles = useIconStyles();
|
330
324
|
|
331
325
|
if (state.icon) {
|
332
|
-
state.icon.className = mergeClasses(
|
326
|
+
state.icon.className = mergeClasses(iconStyles.base, iconStyles[state.size], state.icon.className);
|
333
327
|
}
|
334
328
|
|
335
329
|
return state;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Badge/useBadgeStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,EAAqB,YAArB,kBAAqD,
|
1
|
+
{"version":3,"sources":["../../../src/components/Badge/useBadgeStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,EAAqB,YAArB,kBAAqD,gBAArD;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAGA,OAAO,MAAM,cAAc,GAAG,WAAvB;;AAEP,MAAM,aAAa,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;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;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;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;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;AAAA;AAAA;AAAA;AAAA;AAAA,EAAtB;;AA4NA,MAAM,aAAa,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,EAAtB;AA8BA;;AAEG;;;AACH,OAAO,MAAM,uBAAuB,GAAI,KAAD,IAAkC;AACvE,QAAM,UAAU,GAAG,aAAa,EAAhC;AAEA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,cADiC,EAEjC,UAAU,CAAC,IAFsB,EAGjC,UAAU,CAAC,KAAK,CAAC,IAAP,CAHuB,EAIjC,UAAU,CAAC,KAAK,CAAC,KAAP,CAJuB,EAKjC,KAAK,CAAC,KAAN,KAAgB,SAAhB,KACG,KAAK,CAAC,IAAN,KAAe,OAAf,IAA0B,KAAK,CAAC,IAAN,KAAe,aAAzC,IAA0D,KAAK,CAAC,IAAN,KAAe,MAD5E,KAEE,UAAU,CAAC,kBAPoB,EAQjC,UAAU,CAAC,KAAK,CAAC,UAAP,CARuB,EASjC,UAAU,CAAC,GAAG,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,KAAK,EAAnC,CATuB,EAUjC,KAAK,CAAC,IAAN,CAAW,SAVsB,CAAnC;AAaA,QAAM,UAAU,GAAG,aAAa,EAAhC;;AACA,MAAI,KAAK,CAAC,IAAV,EAAgB;AACd,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,UAAU,CAAC,IAAZ,EAAkB,UAAU,CAAC,KAAK,CAAC,IAAP,CAA5B,EAA0C,KAAK,CAAC,IAAN,CAAW,SAArD,CAAnC;AACD;;AAED,SAAO,KAAP;AACD,CAtBM","sourceRoot":""}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { CounterBadgeProps } from './CounterBadge.types';
|
2
2
|
import type { ForwardRefComponent } from '@fluentui/react-utilities';
|
3
3
|
/**
|
4
|
-
* Define a styled CounterBadge, using the `
|
4
|
+
* Define a styled CounterBadge, using the `useCounterBadge_unstable` hook.
|
5
5
|
*/
|
6
6
|
export declare const CounterBadge: ForwardRefComponent<CounterBadgeProps>;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
2
|
+
import { useCounterBadge_unstable } from './useCounterBadge';
|
3
|
+
import { useCounterBadgeStyles_unstable } from './useCounterBadgeStyles';
|
4
|
+
import { renderBadge_unstable } from '../Badge/index';
|
5
5
|
/**
|
6
|
-
* Define a styled CounterBadge, using the `
|
6
|
+
* Define a styled CounterBadge, using the `useCounterBadge_unstable` hook.
|
7
7
|
*/
|
8
8
|
|
9
9
|
export const CounterBadge = /*#__PURE__*/React.forwardRef((props, ref) => {
|
10
|
-
const state =
|
11
|
-
|
12
|
-
return
|
10
|
+
const state = useCounterBadge_unstable(props, ref);
|
11
|
+
useCounterBadgeStyles_unstable(state);
|
12
|
+
return renderBadge_unstable(state);
|
13
13
|
});
|
14
14
|
CounterBadge.displayName = 'CounterBadge';
|
15
15
|
//# sourceMappingURL=CounterBadge.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CounterBadge/CounterBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,
|
1
|
+
{"version":3,"sources":["../../../src/components/CounterBadge/CounterBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,wBAAT,QAAyC,mBAAzC;AACA,SAAS,8BAAT,QAA+C,yBAA/C;AACA,SAAS,oBAAT,QAAqC,gBAArC;AAIA;;AAEG;;AACH,OAAO,MAAM,YAAY,gBAA2C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAClG,QAAM,KAAK,GAAG,wBAAwB,CAAC,KAAD,EAAQ,GAAR,CAAtC;AACA,EAAA,8BAA8B,CAAC,KAAD,CAA9B;AAEA,SAAO,oBAAoB,CAAC,KAAD,CAA3B;AACD,CALmE,CAA7D;AAOP,YAAY,CAAC,WAAb,GAA2B,cAA3B","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;
|
@@ -3,4 +3,4 @@ import type { CounterBadgeProps, CounterBadgeState } from './CounterBadge.types'
|
|
3
3
|
/**
|
4
4
|
* Returns the props and state required to render the component
|
5
5
|
*/
|
6
|
-
export declare const
|
6
|
+
export declare const useCounterBadge_unstable: (props: CounterBadgeProps, ref: React.Ref<HTMLElement>) => CounterBadgeState;
|