@fluentui/react-badge 0.0.0-nightlyf3ce1fbe1d20211110.1 → 0.0.0-nightlyf6116328d620220124.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +218 -16
- package/CHANGELOG.md +52 -11
- package/dist/react-badge.d.ts +12 -13
- package/lib/components/Badge/Badge.types.d.ts +1 -1
- package/lib/components/Badge/renderBadge.js +5 -2
- package/lib/components/Badge/renderBadge.js.map +1 -1
- package/lib/components/Badge/useBadgeStyles.js +93 -54
- package/lib/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib/components/CounterBadge/CounterBadge.types.d.ts +7 -8
- package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
- package/lib/components/CounterBadge/useCounterBadgeStyles.js +4 -35
- package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib/components/PresenceBadge/PresenceBadge.types.d.ts +6 -5
- package/lib/components/PresenceBadge/presenceIcons.d.ts +11 -0
- package/lib/components/PresenceBadge/presenceIcons.js +128 -0
- package/lib/components/PresenceBadge/presenceIcons.js.map +1 -0
- package/lib/components/PresenceBadge/usePresenceBadge.js +29 -15
- package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +39 -43
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/Badge/Badge.types.d.ts +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 +93 -53
- package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +7 -8
- package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +3 -34
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.d.ts +6 -5
- package/lib-commonjs/components/PresenceBadge/presenceIcons.d.ts +11 -0
- package/lib-commonjs/components/PresenceBadge/presenceIcons.js +136 -0
- package/lib-commonjs/components/PresenceBadge/presenceIcons.js.map +1 -0
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +28 -14
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +38 -42
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/package.json +12 -11
- 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/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
- package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -98
- package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.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/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
- package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -113
- package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
@@ -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",
|
@@ -99,10 +121,10 @@ const useStyles = /*#__PURE__*/__styles({
|
|
99
121
|
"rootTint": {
|
100
122
|
"De3pzq": "f16xkysk",
|
101
123
|
"sj55zd": "faj9fo0",
|
102
|
-
"g2u3we": "
|
103
|
-
"h3c5rm": ["
|
104
|
-
"B9xav0g": "
|
105
|
-
"zhjwy3": ["
|
124
|
+
"g2u3we": "f161y7kd",
|
125
|
+
"h3c5rm": ["f1c8dzaj", "f1sl6hi9"],
|
126
|
+
"B9xav0g": "f1619yhw",
|
127
|
+
"zhjwy3": ["f1sl6hi9", "f1c8dzaj"]
|
106
128
|
},
|
107
129
|
"rootFilledDanger": {
|
108
130
|
"De3pzq": "fdl5y0r",
|
@@ -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"
|
@@ -133,10 +155,10 @@ const useStyles = /*#__PURE__*/__styles({
|
|
133
155
|
"rootFilledSevere": {
|
134
156
|
"De3pzq": "f1s438gw",
|
135
157
|
"sj55zd": "f1phragk",
|
136
|
-
"g2u3we": "
|
137
|
-
"h3c5rm": ["
|
138
|
-
"B9xav0g": "
|
139
|
-
"zhjwy3": ["
|
158
|
+
"g2u3we": "fghlq4f",
|
159
|
+
"h3c5rm": ["f1gn591s", "fjscplz"],
|
160
|
+
"B9xav0g": "fb073pr",
|
161
|
+
"zhjwy3": ["fjscplz", "f1gn591s"]
|
140
162
|
},
|
141
163
|
"rootOutlineSevere": {
|
142
164
|
"sj55zd": "f1l8vj45",
|
@@ -185,10 +207,10 @@ const useStyles = /*#__PURE__*/__styles({
|
|
185
207
|
"rootFilledSuccess": {
|
186
208
|
"De3pzq": "flxk52p",
|
187
209
|
"sj55zd": "f1phragk",
|
188
|
-
"g2u3we": "
|
189
|
-
"h3c5rm": ["
|
190
|
-
"B9xav0g": "
|
191
|
-
"zhjwy3": ["
|
210
|
+
"g2u3we": "fghlq4f",
|
211
|
+
"h3c5rm": ["f1gn591s", "fjscplz"],
|
212
|
+
"B9xav0g": "fb073pr",
|
213
|
+
"zhjwy3": ["fjscplz", "f1gn591s"]
|
192
214
|
},
|
193
215
|
"rootOutlineSuccess": {
|
194
216
|
"sj55zd": "f1sms7z7",
|
@@ -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,12 +265,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
243
265
|
"zhjwy3": ["fjscplz", "f1gn591s"]
|
244
266
|
},
|
245
267
|
"rootOutlineInformative": {
|
246
|
-
"
|
247
|
-
"
|
248
|
-
"
|
249
|
-
"
|
250
|
-
"
|
251
|
-
"zhjwy3": ["f6dh4jx", "fdav146"]
|
268
|
+
"sj55zd": "f11d4kpn",
|
269
|
+
"g2u3we": "f68mrw8",
|
270
|
+
"h3c5rm": ["f7pw515", "fw35ms5"],
|
271
|
+
"B9xav0g": "frpde29",
|
272
|
+
"zhjwy3": ["fw35ms5", "f7pw515"]
|
252
273
|
},
|
253
274
|
"rootTintInformative": {
|
254
275
|
"De3pzq": "f1ctqxl6",
|
@@ -259,7 +280,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
259
280
|
"zhjwy3": ["fw35ms5", "f7pw515"]
|
260
281
|
},
|
261
282
|
"rootGhostInformative": {
|
262
|
-
"sj55zd": "
|
283
|
+
"sj55zd": "f11d4kpn"
|
263
284
|
},
|
264
285
|
"rootFilledSubtle": {
|
265
286
|
"De3pzq": "fxugw4r",
|
@@ -270,11 +291,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
270
291
|
"zhjwy3": ["fjscplz", "f1gn591s"]
|
271
292
|
},
|
272
293
|
"rootOutlineSubtle": {
|
273
|
-
"sj55zd": "
|
274
|
-
"g2u3we": "
|
275
|
-
"h3c5rm": ["
|
276
|
-
"B9xav0g": "
|
277
|
-
"zhjwy3": ["
|
294
|
+
"sj55zd": "fqpbvvt",
|
295
|
+
"g2u3we": "fgtodeh",
|
296
|
+
"h3c5rm": ["fm9lria", "fvwj3xt"],
|
297
|
+
"B9xav0g": "f7asi1z",
|
298
|
+
"zhjwy3": ["fvwj3xt", "fm9lria"]
|
278
299
|
},
|
279
300
|
"rootTintSubtle": {
|
280
301
|
"De3pzq": "fxugw4r",
|
@@ -285,16 +306,34 @@ const useStyles = /*#__PURE__*/__styles({
|
|
285
306
|
"zhjwy3": ["fw35ms5", "f7pw515"]
|
286
307
|
},
|
287
308
|
"rootGhostSubtle": {
|
288
|
-
"sj55zd": "
|
309
|
+
"sj55zd": "fqpbvvt"
|
289
310
|
},
|
290
311
|
"icon": {
|
291
312
|
"mc9l5x": "f22iagw",
|
292
313
|
"Bmliigx": "fxe27oy",
|
293
314
|
"Bt984gj": "f122n59",
|
294
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"
|
295
334
|
}
|
296
335
|
}, {
|
297
|
-
"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;}"]
|
298
337
|
});
|
299
338
|
/**
|
300
339
|
* Applies style classnames to slots
|
@@ -317,7 +356,7 @@ export const useBadgeStyles = state => {
|
|
317
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);
|
318
357
|
|
319
358
|
if (state.icon) {
|
320
|
-
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);
|
321
360
|
}
|
322
361
|
|
323
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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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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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":""}
|
@@ -30,12 +30,11 @@ export declare type CounterBadgeCommons = {
|
|
30
30
|
* @default filled
|
31
31
|
*/
|
32
32
|
appearance: 'filled' | 'ghost';
|
33
|
+
/**
|
34
|
+
* Semantic colors for a counter badge
|
35
|
+
* @default brand
|
36
|
+
*/
|
37
|
+
color: Extract<BadgeProps['color'], 'brand' | 'danger' | 'important' | 'informative'>;
|
33
38
|
};
|
34
|
-
|
35
|
-
|
36
|
-
*/
|
37
|
-
export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape'> & Partial<CounterBadgeCommons>;
|
38
|
-
/**
|
39
|
-
* {@docCategory CounterBadge}
|
40
|
-
*/
|
41
|
-
export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape'> & CounterBadgeCommons;
|
39
|
+
export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape' | 'color'> & Partial<CounterBadgeCommons>;
|
40
|
+
export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape' | 'color'> & CounterBadgeCommons;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CounterBadge/useCounterBadge.ts"],"names":[],"mappings":"AACA,SAAS,QAAT,QAAyB,gBAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,eAAe,GAAG,CAAC,KAAD,EAA2B,GAA3B,KAA6E;AAC1G,QAAM;AACJ,IAAA,KAAK,GAAG,UADJ;AAEJ,IAAA,UAAU,GAAG,QAFT;AAGJ,IAAA,QAAQ,GAAG,KAHP;AAIJ,IAAA,aAAa,GAAG,EAJZ;AAKJ,IAAA,KAAK,GAAG,CALJ;AAMJ,IAAA,GAAG,GAAG;AANF,MAOF,KAPJ;AASA,QAAM,KAAK,GAAsB,EAC/B,
|
1
|
+
{"version":3,"sources":["../../../src/components/CounterBadge/useCounterBadge.ts"],"names":[],"mappings":"AACA,SAAS,QAAT,QAAyB,gBAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,eAAe,GAAG,CAAC,KAAD,EAA2B,GAA3B,KAA6E;AAC1G,QAAM;AACJ,IAAA,KAAK,GAAG,UADJ;AAEJ,IAAA,UAAU,GAAG,QAFT;AAGJ,IAAA,QAAQ,GAAG,KAHP;AAIJ,IAAA,aAAa,GAAG,EAJZ;AAKJ,IAAA,KAAK,GAAG,CALJ;AAMJ,IAAA,GAAG,GAAG;AANF,MAOF,KAPJ;AASA,QAAM,KAAK,GAAsB,EAC/B,GAAI,QAAQ,CAAC,KAAD,EAAQ,GAAR,CADmB;AAE/B,IAAA,KAF+B;AAG/B,IAAA,UAH+B;AAI/B,IAAA,QAJ+B;AAK/B,IAAA,aAL+B;AAM/B,IAAA,KAN+B;AAO/B,IAAA;AAP+B,GAAjC;;AAUA,MAAI,CAAC,KAAK,CAAC,GAAP,IAAc,CAAC,KAAK,CAAC,IAAN,CAAW,QAA9B,EAAwC;AACtC,IAAA,KAAK,CAAC,IAAN,CAAW,QAAX,GAAsB,KAAK,CAAC,KAAN,GAAc,KAAK,CAAC,aAApB,GAAoC,GAAG,KAAK,CAAC,aAAa,GAA1D,GAAgE,GAAG,KAAK,CAAC,KAAK,EAApG;AACD;;AAED,SAAO,KAAP;AACD,CAzBM","sourceRoot":""}
|
@@ -1,41 +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
|
-
"warning": {
|
10
|
-
"De3pzq": "fic4z9l",
|
11
|
-
"g2u3we": "f1g6aqbb",
|
12
|
-
"h3c5rm": ["f1xc4egn", "f1y13pv"],
|
13
|
-
"B9xav0g": "f12f05r9",
|
14
|
-
"zhjwy3": ["f1y13pv", "f1xc4egn"]
|
15
|
-
},
|
16
|
-
"important": {
|
17
|
-
"De3pzq": "f1y11cvn",
|
18
|
-
"g2u3we": "f9ag23u",
|
19
|
-
"h3c5rm": ["fzlvby", "fj2uge6"],
|
20
|
-
"B9xav0g": "fk41dq4",
|
21
|
-
"zhjwy3": ["fj2uge6", "fzlvby"]
|
22
|
-
},
|
23
|
-
"severe": {
|
24
|
-
"De3pzq": "ftpr1dl",
|
25
|
-
"g2u3we": "fx7g4rx",
|
26
|
-
"h3c5rm": ["f1edxl4n", "f5hlgd2"],
|
27
|
-
"B9xav0g": "f5ppncr",
|
28
|
-
"zhjwy3": ["f5hlgd2", "f1edxl4n"]
|
29
|
-
},
|
30
|
-
"informative": {
|
31
|
-
"De3pzq": "f6zwqgc",
|
32
|
-
"g2u3we": "f1pdtvjr",
|
33
|
-
"h3c5rm": ["f1ctwv29", "f1m7luuw"],
|
34
|
-
"B9xav0g": "f1ijpqjr",
|
35
|
-
"zhjwy3": ["f1m7luuw", "f1ctwv29"],
|
36
|
-
"sj55zd": "f11d4kpn"
|
37
|
-
},
|
38
6
|
"dot": {
|
7
|
+
"Bf4jedk": "fgfkb25",
|
39
8
|
"a9b677": "f16dn6v3",
|
40
9
|
"Bqenvij": "f3mu39s",
|
41
10
|
"z8tnut": "f1g0x7ka",
|
@@ -47,7 +16,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
47
16
|
"mc9l5x": "fjseox"
|
48
17
|
}
|
49
18
|
}, {
|
50
|
-
"d": [".fgfkb25{min-width:auto;}", ".
|
19
|
+
"d": [".fgfkb25{min-width:auto;}", ".f16dn6v3{width:6px;}", ".f3mu39s{height:6px;}", ".f1g0x7ka{padding-top:0;}", ".fhxju0i{padding-right:0;}", ".f1cnd47f{padding-left:0;}", ".f1qch9an{padding-bottom:0;}", ".fjseox{display:none;}"]
|
51
20
|
});
|
52
21
|
/**
|
53
22
|
* Applies style classnames to slots
|
@@ -56,7 +25,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
56
25
|
|
57
26
|
export const useCounterBadgeStyles = state => {
|
58
27
|
const styles = useStyles();
|
59
|
-
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);
|
60
29
|
return useBadgeStyles(state);
|
61
30
|
};
|
62
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,IAAa,MAAM,CAAC,GAFa,EAGjC,CAAC,KAAK,CAAC,QAAP,IAAmB,KAAK,CAAC,KAAN,KAAgB,CAAnC,IAAwC,CAAC,KAAK,CAAC,GAA/C,IAAsD,MAAM,CAAC,IAH5B,EAIjC,KAAK,CAAC,IAAN,CAAW,SAJsB,CAAnC;AAMA,SAAO,cAAc,CAAC,KAAD,CAArB;AACD,CATM","sourceRoot":""}
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ComponentProps, ComponentState } from '@fluentui/react-utilities';
|
2
|
+
import type { BadgeCommons, BadgeSlots } from '../Badge/index';
|
2
3
|
export declare type PresenceBadgeStatus = 'busy' | 'outOfOffice' | 'away' | 'available' | 'offline' | 'doNotDisturb';
|
3
|
-
export
|
4
|
+
export declare type PresenceBadgeCommons = {
|
4
5
|
/**
|
5
6
|
* Represents several status
|
6
7
|
* @default available
|
@@ -12,6 +13,6 @@ export interface PresenceBadgeCommons {
|
|
12
13
|
* @default false
|
13
14
|
*/
|
14
15
|
outOfOffice: boolean;
|
15
|
-
}
|
16
|
-
export declare type PresenceBadgeProps =
|
17
|
-
export declare type PresenceBadgeState =
|
16
|
+
} & BadgeCommons;
|
17
|
+
export declare type PresenceBadgeProps = ComponentProps<Partial<Pick<BadgeSlots, 'root'>>> & Partial<Pick<PresenceBadgeCommons, 'status' | 'outOfOffice' | 'size'>>;
|
18
|
+
export declare type PresenceBadgeState = PresenceBadgeCommons & ComponentState<BadgeSlots>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import type { PresenceBadgeState } from './PresenceBadge.types';
|
3
|
+
export declare const presenceAwayFilled: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
|
4
|
+
export declare const presenceAvailableRegular: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
|
5
|
+
export declare const presenceAvailableFilled: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
|
6
|
+
export declare const presenceBusyFilled: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
|
7
|
+
export declare const presenceDndFilled: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
|
8
|
+
export declare const presenceDndRegular: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
|
9
|
+
export declare const presenceOofRegular: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
|
10
|
+
export declare const presenceOfflineRegular: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
|
11
|
+
export declare const presenceUnknownRegular: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
|
@@ -0,0 +1,128 @@
|
|
1
|
+
import { PresenceAvailable10Regular, PresenceAvailable12Regular, PresenceAvailable16Regular, PresenceAvailable10Filled, PresenceAvailable12Filled, PresenceAvailable16Filled, PresenceAway10Filled, PresenceAway12Filled, PresenceAway16Filled, PresenceBusy10Filled, PresenceBusy12Filled, PresenceBusy16Filled, PresenceDnd10Regular, PresenceDnd12Regular, PresenceDnd16Regular, PresenceDnd10Filled, PresenceDnd12Filled, PresenceDnd16Filled, PresenceOof10Regular, PresenceOof12Regular, PresenceOof16Regular, PresenceOffline10Regular, PresenceOffline12Regular, PresenceOffline16Regular, PresenceUnknown10Regular, PresenceUnknown12Regular, PresenceUnknown16Regular } from '@fluentui/react-icons';
|
2
|
+
export const presenceAwayFilled = {
|
3
|
+
// FIXME not all presence icon sizes are available
|
4
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
5
|
+
tiny: PresenceAway10Filled,
|
6
|
+
'extra-small': PresenceAway10Filled,
|
7
|
+
small: PresenceAway12Filled,
|
8
|
+
medium: PresenceAway16Filled,
|
9
|
+
// FIXME not all presence icon sizes are available
|
10
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
11
|
+
large: PresenceAway16Filled,
|
12
|
+
// FIXME not all presence icon sizes are available
|
13
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
14
|
+
'extra-large': PresenceAway16Filled
|
15
|
+
};
|
16
|
+
export const presenceAvailableRegular = {
|
17
|
+
// FIXME not all presence icon sizes are available
|
18
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
19
|
+
tiny: PresenceAvailable10Regular,
|
20
|
+
'extra-small': PresenceAvailable10Regular,
|
21
|
+
small: PresenceAvailable12Regular,
|
22
|
+
medium: PresenceAvailable16Regular,
|
23
|
+
// FIXME not all presence icon sizes are available
|
24
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
25
|
+
large: PresenceAvailable16Regular,
|
26
|
+
// FIXME not all presence icon sizes are available
|
27
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
28
|
+
'extra-large': PresenceAvailable16Regular
|
29
|
+
};
|
30
|
+
export const presenceAvailableFilled = {
|
31
|
+
// FIXME not all presence icon sizes are available
|
32
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
33
|
+
tiny: PresenceAvailable10Filled,
|
34
|
+
'extra-small': PresenceAvailable10Filled,
|
35
|
+
small: PresenceAvailable12Filled,
|
36
|
+
medium: PresenceAvailable16Filled,
|
37
|
+
// FIXME not all presence icon sizes are available
|
38
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
39
|
+
large: PresenceAvailable16Filled,
|
40
|
+
// FIXME not all presence icon sizes are available
|
41
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
42
|
+
'extra-large': PresenceAvailable16Filled
|
43
|
+
};
|
44
|
+
export const presenceBusyFilled = {
|
45
|
+
// FIXME not all presence icon sizes are available
|
46
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
47
|
+
tiny: PresenceBusy10Filled,
|
48
|
+
'extra-small': PresenceBusy10Filled,
|
49
|
+
small: PresenceBusy12Filled,
|
50
|
+
medium: PresenceBusy16Filled,
|
51
|
+
// FIXME not all presence icon sizes are available
|
52
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
53
|
+
large: PresenceBusy16Filled,
|
54
|
+
// FIXME not all presence icon sizes are available
|
55
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
56
|
+
'extra-large': PresenceBusy16Filled
|
57
|
+
};
|
58
|
+
export const presenceDndFilled = {
|
59
|
+
// FIXME not all presence icon sizes are available
|
60
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
61
|
+
tiny: PresenceDnd10Filled,
|
62
|
+
'extra-small': PresenceDnd10Filled,
|
63
|
+
small: PresenceDnd12Filled,
|
64
|
+
medium: PresenceDnd16Filled,
|
65
|
+
// FIXME not all presence icon sizes are available
|
66
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
67
|
+
large: PresenceDnd16Filled,
|
68
|
+
// FIXME not all presence icon sizes are available
|
69
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
70
|
+
'extra-large': PresenceDnd16Filled
|
71
|
+
};
|
72
|
+
export const presenceDndRegular = {
|
73
|
+
// FIXME not all presence icon sizes are available
|
74
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
75
|
+
tiny: PresenceDnd10Regular,
|
76
|
+
'extra-small': PresenceDnd10Regular,
|
77
|
+
small: PresenceDnd12Regular,
|
78
|
+
medium: PresenceDnd16Regular,
|
79
|
+
// FIXME not all presence icon sizes are available
|
80
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
81
|
+
large: PresenceDnd16Regular,
|
82
|
+
// FIXME not all presence icon sizes are available
|
83
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
84
|
+
'extra-large': PresenceDnd16Regular
|
85
|
+
};
|
86
|
+
export const presenceOofRegular = {
|
87
|
+
// FIXME not all presence icon sizes are available
|
88
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
89
|
+
tiny: PresenceOof10Regular,
|
90
|
+
'extra-small': PresenceOof10Regular,
|
91
|
+
small: PresenceOof12Regular,
|
92
|
+
medium: PresenceOof16Regular,
|
93
|
+
// FIXME not all presence icon sizes are available
|
94
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
95
|
+
large: PresenceOof16Regular,
|
96
|
+
// FIXME not all presence icon sizes are available
|
97
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
98
|
+
'extra-large': PresenceOof16Regular
|
99
|
+
};
|
100
|
+
export const presenceOfflineRegular = {
|
101
|
+
// FIXME not all presence icon sizes are available
|
102
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
103
|
+
tiny: PresenceOffline10Regular,
|
104
|
+
'extra-small': PresenceOffline10Regular,
|
105
|
+
small: PresenceOffline12Regular,
|
106
|
+
medium: PresenceOffline16Regular,
|
107
|
+
// FIXME not all presence icon sizes are available
|
108
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
109
|
+
large: PresenceOffline16Regular,
|
110
|
+
// FIXME not all presence icon sizes are available
|
111
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
112
|
+
'extra-large': PresenceOffline16Regular
|
113
|
+
};
|
114
|
+
export const presenceUnknownRegular = {
|
115
|
+
// FIXME not all presence icon sizes are available
|
116
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
117
|
+
tiny: PresenceUnknown10Regular,
|
118
|
+
'extra-small': PresenceUnknown10Regular,
|
119
|
+
small: PresenceUnknown12Regular,
|
120
|
+
medium: PresenceUnknown16Regular,
|
121
|
+
// FIXME not all presence icon sizes are available
|
122
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
123
|
+
large: PresenceUnknown16Regular,
|
124
|
+
// FIXME not all presence icon sizes are available
|
125
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
126
|
+
'extra-large': PresenceUnknown16Regular
|
127
|
+
};
|
128
|
+
//# sourceMappingURL=presenceIcons.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/PresenceBadge/presenceIcons.ts"],"names":[],"mappings":"AACA,SACE,0BADF,EAEE,0BAFF,EAGE,0BAHF,EAIE,yBAJF,EAKE,yBALF,EAME,yBANF,EAOE,oBAPF,EAQE,oBARF,EASE,oBATF,EAUE,oBAVF,EAWE,oBAXF,EAYE,oBAZF,EAaE,oBAbF,EAcE,oBAdF,EAeE,oBAfF,EAgBE,mBAhBF,EAiBE,mBAjBF,EAkBE,mBAlBF,EAmBE,oBAnBF,EAoBE,oBApBF,EAqBE,oBArBF,EAsBE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