@fluentui/react-badge 9.1.3 → 9.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/.swcrc +30 -0
- package/CHANGELOG.json +73 -1
- package/CHANGELOG.md +27 -2
- package/lib/Badge.js.map +1 -1
- package/lib/CounterBadge.js.map +1 -1
- package/lib/PresenceBadge.js.map +1 -1
- package/lib/components/Badge/Badge.js.map +1 -1
- package/lib/components/Badge/Badge.types.js.map +1 -1
- package/lib/components/Badge/index.js.map +1 -1
- package/lib/components/Badge/renderBadge.js +1 -7
- package/lib/components/Badge/renderBadge.js.map +1 -1
- package/lib/components/Badge/useBadge.js +1 -0
- package/lib/components/Badge/useBadge.js.map +1 -1
- package/lib/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib/components/CounterBadge/CounterBadge.js.map +1 -1
- package/lib/components/CounterBadge/CounterBadge.types.js.map +1 -1
- package/lib/components/CounterBadge/index.js.map +1 -1
- package/lib/components/CounterBadge/useCounterBadge.js +1 -0
- package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
- package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib/components/PresenceBadge/PresenceBadge.js.map +1 -1
- package/lib/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
- package/lib/components/PresenceBadge/index.js.map +1 -1
- package/lib/components/PresenceBadge/presenceIcons.js +34 -41
- package/lib/components/PresenceBadge/presenceIcons.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadge.js +2 -2
- package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +1 -1
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Badge.js +5 -4
- package/lib-commonjs/Badge.js.map +1 -1
- package/lib-commonjs/CounterBadge.js +5 -4
- package/lib-commonjs/CounterBadge.js.map +1 -1
- package/lib-commonjs/PresenceBadge.js +5 -4
- package/lib-commonjs/PresenceBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/Badge.js +19 -20
- package/lib-commonjs/components/Badge/Badge.js.map +1 -1
- package/lib-commonjs/components/Badge/Badge.types.js +3 -2
- package/lib-commonjs/components/Badge/Badge.types.js.map +1 -1
- package/lib-commonjs/components/Badge/index.js +8 -7
- package/lib-commonjs/components/Badge/index.js.map +1 -1
- package/lib-commonjs/components/Badge/renderBadge.js +13 -19
- package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/useBadge.js +29 -34
- package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/useBadgeStyles.js +608 -310
- package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.js +19 -20
- package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.types.js +3 -2
- package/lib-commonjs/components/CounterBadge/CounterBadge.types.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/index.js +8 -7
- package/lib-commonjs/components/CounterBadge/index.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadge.js +24 -30
- package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +54 -34
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.js +19 -20
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.js +3 -2
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/index.js +8 -7
- package/lib-commonjs/components/PresenceBadge/index.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/presenceIcons.js +146 -134
- package/lib-commonjs/components/PresenceBadge/presenceIcons.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +61 -65
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +102 -78
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/lib-commonjs/index.js +28 -85
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +9 -8
- package/lib-amd/Badge.js +0 -6
- package/lib-amd/Badge.js.map +0 -1
- package/lib-amd/CounterBadge.js +0 -6
- package/lib-amd/CounterBadge.js.map +0 -1
- package/lib-amd/PresenceBadge.js +0 -6
- package/lib-amd/PresenceBadge.js.map +0 -1
- package/lib-amd/components/Badge/Badge.js +0 -17
- package/lib-amd/components/Badge/Badge.js.map +0 -1
- package/lib-amd/components/Badge/Badge.types.js +0 -5
- package/lib-amd/components/Badge/Badge.types.js.map +0 -1
- package/lib-amd/components/Badge/index.js +0 -9
- package/lib-amd/components/Badge/index.js.map +0 -1
- package/lib-amd/components/Badge/renderBadge.js +0 -14
- package/lib-amd/components/Badge/renderBadge.js.map +0 -1
- package/lib-amd/components/Badge/useBadge.js +0 -27
- package/lib-amd/components/Badge/useBadge.js.map +0 -1
- package/lib-amd/components/Badge/useBadgeStyles.js +0 -212
- package/lib-amd/components/Badge/useBadgeStyles.js.map +0 -1
- package/lib-amd/components/CounterBadge/CounterBadge.js +0 -17
- package/lib-amd/components/CounterBadge/CounterBadge.js.map +0 -1
- package/lib-amd/components/CounterBadge/CounterBadge.types.js +0 -5
- package/lib-amd/components/CounterBadge/CounterBadge.types.js.map +0 -1
- package/lib-amd/components/CounterBadge/index.js +0 -9
- package/lib-amd/components/CounterBadge/index.js.map +0 -1
- package/lib-amd/components/CounterBadge/useCounterBadge.js +0 -18
- package/lib-amd/components/CounterBadge/useCounterBadge.js.map +0 -1
- package/lib-amd/components/CounterBadge/useCounterBadgeStyles.js +0 -28
- package/lib-amd/components/CounterBadge/useCounterBadgeStyles.js.map +0 -1
- package/lib-amd/components/PresenceBadge/PresenceBadge.js +0 -17
- package/lib-amd/components/PresenceBadge/PresenceBadge.js.map +0 -1
- package/lib-amd/components/PresenceBadge/PresenceBadge.types.js +0 -5
- package/lib-amd/components/PresenceBadge/PresenceBadge.types.js.map +0 -1
- package/lib-amd/components/PresenceBadge/index.js +0 -9
- package/lib-amd/components/PresenceBadge/index.js.map +0 -1
- package/lib-amd/components/PresenceBadge/presenceIcons.js +0 -146
- package/lib-amd/components/PresenceBadge/presenceIcons.js.map +0 -1
- package/lib-amd/components/PresenceBadge/usePresenceBadge.js +0 -53
- package/lib-amd/components/PresenceBadge/usePresenceBadge.js.map +0 -1
- package/lib-amd/components/PresenceBadge/usePresenceBadgeStyles.js +0 -101
- package/lib-amd/components/PresenceBadge/usePresenceBadgeStyles.js.map +0 -1
- package/lib-amd/index.js +0 -19
- package/lib-amd/index.js.map +0 -1
@@ -1,148 +1,160 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
function _export(target, all) {
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
7
|
+
enumerable: true,
|
8
|
+
get: all[name]
|
9
|
+
});
|
10
|
+
}
|
11
|
+
_export(exports, {
|
12
|
+
presenceAwayRegular: ()=>presenceAwayRegular,
|
13
|
+
presenceAwayFilled: ()=>presenceAwayFilled,
|
14
|
+
presenceAvailableRegular: ()=>presenceAvailableRegular,
|
15
|
+
presenceAvailableFilled: ()=>presenceAvailableFilled,
|
16
|
+
presenceBlockedRegular: ()=>presenceBlockedRegular,
|
17
|
+
presenceBusyFilled: ()=>presenceBusyFilled,
|
18
|
+
presenceDndFilled: ()=>presenceDndFilled,
|
19
|
+
presenceDndRegular: ()=>presenceDndRegular,
|
20
|
+
presenceOofRegular: ()=>presenceOofRegular,
|
21
|
+
presenceOfflineRegular: ()=>presenceOfflineRegular,
|
22
|
+
presenceUnknownRegular: ()=>presenceUnknownRegular
|
5
23
|
});
|
6
|
-
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
'extra-large': react_icons_1.PresenceAway16Filled
|
24
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
25
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
26
|
+
const _reactIcons = require("@fluentui/react-icons");
|
27
|
+
const presenceAwayRegular = {
|
28
|
+
// FIXME not all presence icon sizes are available
|
29
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
30
|
+
tiny: _reactIcons.PresenceAway10Regular,
|
31
|
+
'extra-small': _reactIcons.PresenceAway10Regular,
|
32
|
+
small: _reactIcons.PresenceAway12Regular,
|
33
|
+
medium: _reactIcons.PresenceAway16Regular,
|
34
|
+
large: _reactIcons.PresenceAway20Regular,
|
35
|
+
// FIXME not all presence icon sizes are available
|
36
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
37
|
+
'extra-large': _reactIcons.PresenceAway20Regular
|
21
38
|
};
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
34
|
-
'extra-large': react_icons_1.PresenceAvailable16Regular
|
39
|
+
const presenceAwayFilled = {
|
40
|
+
// FIXME not all presence icon sizes are available
|
41
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
42
|
+
tiny: _reactIcons.PresenceAway10Filled,
|
43
|
+
'extra-small': _reactIcons.PresenceAway10Filled,
|
44
|
+
small: _reactIcons.PresenceAway12Filled,
|
45
|
+
medium: _reactIcons.PresenceAway16Filled,
|
46
|
+
large: _reactIcons.PresenceAway20Filled,
|
47
|
+
// FIXME not all presence icon sizes are available
|
48
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
49
|
+
'extra-large': _reactIcons.PresenceAway20Filled
|
35
50
|
};
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
48
|
-
'extra-large': react_icons_1.PresenceAvailable16Filled
|
51
|
+
const presenceAvailableRegular = {
|
52
|
+
// FIXME not all presence icon sizes are available
|
53
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
54
|
+
tiny: _reactIcons.PresenceAvailable10Regular,
|
55
|
+
'extra-small': _reactIcons.PresenceAvailable10Regular,
|
56
|
+
small: _reactIcons.PresenceAvailable12Regular,
|
57
|
+
medium: _reactIcons.PresenceAvailable16Regular,
|
58
|
+
large: _reactIcons.PresenceAvailable20Regular,
|
59
|
+
// FIXME not all presence icon sizes are available
|
60
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
61
|
+
'extra-large': _reactIcons.PresenceAvailable20Regular
|
49
62
|
};
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
62
|
-
'extra-large': react_icons_1.PresenceBlocked16Regular
|
63
|
+
const presenceAvailableFilled = {
|
64
|
+
// FIXME not all presence icon sizes are available
|
65
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
66
|
+
tiny: _reactIcons.PresenceAvailable10Filled,
|
67
|
+
'extra-small': _reactIcons.PresenceAvailable10Filled,
|
68
|
+
small: _reactIcons.PresenceAvailable12Filled,
|
69
|
+
medium: _reactIcons.PresenceAvailable16Filled,
|
70
|
+
large: _reactIcons.PresenceAvailable20Filled,
|
71
|
+
// FIXME not all presence icon sizes are available
|
72
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
73
|
+
'extra-large': _reactIcons.PresenceAvailable20Filled
|
63
74
|
};
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
76
|
-
'extra-large': react_icons_1.PresenceBusy16Filled
|
75
|
+
const presenceBlockedRegular = {
|
76
|
+
// FIXME not all presence icon sizes are available
|
77
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
78
|
+
tiny: _reactIcons.PresenceBlocked10Regular,
|
79
|
+
'extra-small': _reactIcons.PresenceBlocked10Regular,
|
80
|
+
small: _reactIcons.PresenceBlocked12Regular,
|
81
|
+
medium: _reactIcons.PresenceBlocked16Regular,
|
82
|
+
large: _reactIcons.PresenceBlocked20Regular,
|
83
|
+
// FIXME not all presence icon sizes are available
|
84
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
85
|
+
'extra-large': _reactIcons.PresenceBlocked20Regular
|
77
86
|
};
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
90
|
-
'extra-large': react_icons_1.PresenceDnd16Filled
|
87
|
+
const presenceBusyFilled = {
|
88
|
+
// FIXME not all presence icon sizes are available
|
89
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
90
|
+
tiny: _reactIcons.PresenceBusy10Filled,
|
91
|
+
'extra-small': _reactIcons.PresenceBusy10Filled,
|
92
|
+
small: _reactIcons.PresenceBusy12Filled,
|
93
|
+
medium: _reactIcons.PresenceBusy16Filled,
|
94
|
+
large: _reactIcons.PresenceBusy20Filled,
|
95
|
+
// FIXME not all presence icon sizes are available
|
96
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
97
|
+
'extra-large': _reactIcons.PresenceBusy20Filled
|
91
98
|
};
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
104
|
-
'extra-large': react_icons_1.PresenceDnd16Regular
|
99
|
+
const presenceDndFilled = {
|
100
|
+
// FIXME not all presence icon sizes are available
|
101
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
102
|
+
tiny: _reactIcons.PresenceDnd10Filled,
|
103
|
+
'extra-small': _reactIcons.PresenceDnd10Filled,
|
104
|
+
small: _reactIcons.PresenceDnd12Filled,
|
105
|
+
medium: _reactIcons.PresenceDnd16Filled,
|
106
|
+
large: _reactIcons.PresenceDnd20Filled,
|
107
|
+
// FIXME not all presence icon sizes are available
|
108
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
109
|
+
'extra-large': _reactIcons.PresenceDnd20Filled
|
105
110
|
};
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
118
|
-
'extra-large': react_icons_1.PresenceOof16Regular
|
111
|
+
const presenceDndRegular = {
|
112
|
+
// FIXME not all presence icon sizes are available
|
113
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
114
|
+
tiny: _reactIcons.PresenceDnd10Regular,
|
115
|
+
'extra-small': _reactIcons.PresenceDnd10Regular,
|
116
|
+
small: _reactIcons.PresenceDnd12Regular,
|
117
|
+
medium: _reactIcons.PresenceDnd16Regular,
|
118
|
+
large: _reactIcons.PresenceDnd20Regular,
|
119
|
+
// FIXME not all presence icon sizes are available
|
120
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
121
|
+
'extra-large': _reactIcons.PresenceDnd20Regular
|
119
122
|
};
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
132
|
-
'extra-large': react_icons_1.PresenceOffline16Regular
|
123
|
+
const presenceOofRegular = {
|
124
|
+
// FIXME not all presence icon sizes are available
|
125
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
126
|
+
tiny: _reactIcons.PresenceOof10Regular,
|
127
|
+
'extra-small': _reactIcons.PresenceOof10Regular,
|
128
|
+
small: _reactIcons.PresenceOof12Regular,
|
129
|
+
medium: _reactIcons.PresenceOof16Regular,
|
130
|
+
large: _reactIcons.PresenceOof20Regular,
|
131
|
+
// FIXME not all presence icon sizes are available
|
132
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
133
|
+
'extra-large': _reactIcons.PresenceOof20Regular
|
133
134
|
};
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
146
|
-
'extra-large': react_icons_1.PresenceUnknown16Regular
|
135
|
+
const presenceOfflineRegular = {
|
136
|
+
// FIXME not all presence icon sizes are available
|
137
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
138
|
+
tiny: _reactIcons.PresenceOffline10Regular,
|
139
|
+
'extra-small': _reactIcons.PresenceOffline10Regular,
|
140
|
+
small: _reactIcons.PresenceOffline12Regular,
|
141
|
+
medium: _reactIcons.PresenceOffline16Regular,
|
142
|
+
large: _reactIcons.PresenceOffline20Regular,
|
143
|
+
// FIXME not all presence icon sizes are available
|
144
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
145
|
+
'extra-large': _reactIcons.PresenceOffline20Regular
|
147
146
|
};
|
147
|
+
const presenceUnknownRegular = {
|
148
|
+
// FIXME not all presence icon sizes are available
|
149
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
150
|
+
tiny: _reactIcons.PresenceUnknown10Regular,
|
151
|
+
'extra-small': _reactIcons.PresenceUnknown10Regular,
|
152
|
+
small: _reactIcons.PresenceUnknown12Regular,
|
153
|
+
medium: _reactIcons.PresenceUnknown16Regular,
|
154
|
+
large: _reactIcons.PresenceUnknown20Regular,
|
155
|
+
// FIXME not all presence icon sizes are available
|
156
|
+
// https://github.com/microsoft/fluentui/issues/20650
|
157
|
+
'extra-large': _reactIcons.PresenceUnknown20Regular
|
158
|
+
}; //# sourceMappingURL=presenceIcons.js.map
|
159
|
+
|
148
160
|
//# sourceMappingURL=presenceIcons.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["react_icons_1","require","exports","presenceAwayFilled","tiny","PresenceAway10Filled","small","PresenceAway12Filled","medium","PresenceAway16Filled","large","presenceAvailableRegular","PresenceAvailable10Regular","PresenceAvailable12Regular","PresenceAvailable16Regular","presenceAvailableFilled","PresenceAvailable10Filled","PresenceAvailable12Filled","PresenceAvailable16Filled","presenceBlockedRegular","PresenceBlocked10Regular","PresenceBlocked12Regular","PresenceBlocked16Regular","presenceBusyFilled","PresenceBusy10Filled","PresenceBusy12Filled","PresenceBusy16Filled","presenceDndFilled","PresenceDnd10Filled","PresenceDnd12Filled","PresenceDnd16Filled","presenceDndRegular","PresenceDnd10Regular","PresenceDnd12Regular","PresenceDnd16Regular","presenceOofRegular","PresenceOof10Regular","PresenceOof12Regular","PresenceOof16Regular","presenceOfflineRegular","PresenceOffline10Regular","PresenceOffline12Regular","PresenceOffline16Regular","presenceUnknownRegular","PresenceUnknown10Regular","PresenceUnknown12Regular","PresenceUnknown16Regular"],"sources":["../src/packages/react-components/react-badge/src/components/PresenceBadge/presenceIcons.ts"],"sourcesContent":["import * as React from 'react';\nimport {\n PresenceAvailable10Regular,\n PresenceAvailable12Regular,\n PresenceAvailable16Regular,\n PresenceAvailable10Filled,\n PresenceAvailable12Filled,\n PresenceAvailable16Filled,\n PresenceAway10Filled,\n PresenceAway12Filled,\n PresenceAway16Filled,\n PresenceBlocked10Regular,\n PresenceBlocked12Regular,\n PresenceBlocked16Regular,\n PresenceBusy10Filled,\n PresenceBusy12Filled,\n PresenceBusy16Filled,\n PresenceDnd10Regular,\n PresenceDnd12Regular,\n PresenceDnd16Regular,\n PresenceDnd10Filled,\n PresenceDnd12Filled,\n PresenceDnd16Filled,\n PresenceOof10Regular,\n PresenceOof12Regular,\n PresenceOof16Regular,\n PresenceOffline10Regular,\n PresenceOffline12Regular,\n PresenceOffline16Regular,\n PresenceUnknown10Regular,\n PresenceUnknown12Regular,\n PresenceUnknown16Regular,\n} from '@fluentui/react-icons';\nimport type { PresenceBadgeState } from './PresenceBadge.types';\n\nexport const presenceAwayFilled: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceAway10Filled,\n 'extra-small': PresenceAway10Filled,\n small: PresenceAway12Filled,\n medium: PresenceAway16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceAway16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceAway16Filled,\n};\n\nexport const presenceAvailableRegular: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceAvailable10Regular,\n 'extra-small': PresenceAvailable10Regular,\n small: PresenceAvailable12Regular,\n medium: PresenceAvailable16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceAvailable16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceAvailable16Regular,\n};\n\nexport const presenceAvailableFilled: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceAvailable10Filled,\n 'extra-small': PresenceAvailable10Filled,\n small: PresenceAvailable12Filled,\n medium: PresenceAvailable16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceAvailable16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceAvailable16Filled,\n};\n\nexport const presenceBlockedRegular: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceBlocked10Regular,\n 'extra-small': PresenceBlocked10Regular,\n small: PresenceBlocked12Regular,\n medium: PresenceBlocked16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceBlocked16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceBlocked16Regular,\n};\n\nexport const presenceBusyFilled: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceBusy10Filled,\n 'extra-small': PresenceBusy10Filled,\n small: PresenceBusy12Filled,\n medium: PresenceBusy16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceBusy16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceBusy16Filled,\n};\n\nexport const presenceDndFilled: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceDnd10Filled,\n 'extra-small': PresenceDnd10Filled,\n small: PresenceDnd12Filled,\n medium: PresenceDnd16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceDnd16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceDnd16Filled,\n};\n\nexport const presenceDndRegular: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceDnd10Regular,\n 'extra-small': PresenceDnd10Regular,\n small: PresenceDnd12Regular,\n medium: PresenceDnd16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceDnd16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceDnd16Regular,\n};\n\nexport const presenceOofRegular: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceOof10Regular,\n 'extra-small': PresenceOof10Regular,\n small: PresenceOof12Regular,\n medium: PresenceOof16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceOof16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceOof16Regular,\n};\n\nexport const presenceOfflineRegular: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceOffline10Regular,\n 'extra-small': PresenceOffline10Regular,\n small: PresenceOffline12Regular,\n medium: PresenceOffline16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceOffline16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceOffline16Regular,\n};\n\nexport const presenceUnknownRegular: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceUnknown10Regular,\n 'extra-small': PresenceUnknown10Regular,\n small: PresenceUnknown12Regular,\n medium: PresenceUnknown16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceUnknown16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceUnknown16Regular,\n};\n"],"mappings":"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"}
|
1
|
+
{"version":3,"sources":["../../../lib/components/PresenceBadge/presenceIcons.js"],"sourcesContent":["import * as React from 'react';\nimport { PresenceAvailable10Regular, PresenceAvailable12Regular, PresenceAvailable16Regular, PresenceAvailable20Regular, PresenceAvailable10Filled, PresenceAvailable12Filled, PresenceAvailable16Filled, PresenceAvailable20Filled, PresenceAway10Regular, PresenceAway12Regular, PresenceAway16Regular, PresenceAway20Regular, PresenceAway10Filled, PresenceAway12Filled, PresenceAway16Filled, PresenceAway20Filled, PresenceBlocked10Regular, PresenceBlocked12Regular, PresenceBlocked16Regular, PresenceBlocked20Regular, PresenceBusy10Filled, PresenceBusy12Filled, PresenceBusy16Filled, PresenceBusy20Filled, PresenceDnd10Regular, PresenceDnd12Regular, PresenceDnd16Regular, PresenceDnd20Regular, PresenceDnd10Filled, PresenceDnd12Filled, PresenceDnd16Filled, PresenceDnd20Filled, PresenceOof10Regular, PresenceOof12Regular, PresenceOof16Regular, PresenceOof20Regular, PresenceOffline10Regular, PresenceOffline12Regular, PresenceOffline16Regular, PresenceOffline20Regular, PresenceUnknown10Regular, PresenceUnknown12Regular, PresenceUnknown16Regular, PresenceUnknown20Regular } from '@fluentui/react-icons';\nexport const presenceAwayRegular = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceAway10Regular,\n 'extra-small': PresenceAway10Regular,\n small: PresenceAway12Regular,\n medium: PresenceAway16Regular,\n large: PresenceAway20Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceAway20Regular\n};\nexport const presenceAwayFilled = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceAway10Filled,\n 'extra-small': PresenceAway10Filled,\n small: PresenceAway12Filled,\n medium: PresenceAway16Filled,\n large: PresenceAway20Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceAway20Filled\n};\nexport const presenceAvailableRegular = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceAvailable10Regular,\n 'extra-small': PresenceAvailable10Regular,\n small: PresenceAvailable12Regular,\n medium: PresenceAvailable16Regular,\n large: PresenceAvailable20Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceAvailable20Regular\n};\nexport const presenceAvailableFilled = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceAvailable10Filled,\n 'extra-small': PresenceAvailable10Filled,\n small: PresenceAvailable12Filled,\n medium: PresenceAvailable16Filled,\n large: PresenceAvailable20Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceAvailable20Filled\n};\nexport const presenceBlockedRegular = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceBlocked10Regular,\n 'extra-small': PresenceBlocked10Regular,\n small: PresenceBlocked12Regular,\n medium: PresenceBlocked16Regular,\n large: PresenceBlocked20Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceBlocked20Regular\n};\nexport const presenceBusyFilled = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceBusy10Filled,\n 'extra-small': PresenceBusy10Filled,\n small: PresenceBusy12Filled,\n medium: PresenceBusy16Filled,\n large: PresenceBusy20Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceBusy20Filled\n};\nexport const presenceDndFilled = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceDnd10Filled,\n 'extra-small': PresenceDnd10Filled,\n small: PresenceDnd12Filled,\n medium: PresenceDnd16Filled,\n large: PresenceDnd20Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceDnd20Filled\n};\nexport const presenceDndRegular = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceDnd10Regular,\n 'extra-small': PresenceDnd10Regular,\n small: PresenceDnd12Regular,\n medium: PresenceDnd16Regular,\n large: PresenceDnd20Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceDnd20Regular\n};\nexport const presenceOofRegular = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceOof10Regular,\n 'extra-small': PresenceOof10Regular,\n small: PresenceOof12Regular,\n medium: PresenceOof16Regular,\n large: PresenceOof20Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceOof20Regular\n};\nexport const presenceOfflineRegular = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceOffline10Regular,\n 'extra-small': PresenceOffline10Regular,\n small: PresenceOffline12Regular,\n medium: PresenceOffline16Regular,\n large: PresenceOffline20Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceOffline20Regular\n};\nexport const presenceUnknownRegular = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceUnknown10Regular,\n 'extra-small': PresenceUnknown10Regular,\n small: PresenceUnknown12Regular,\n medium: PresenceUnknown16Regular,\n large: PresenceUnknown20Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceUnknown20Regular\n};\n//# sourceMappingURL=presenceIcons.js.map"],"names":["presenceAwayRegular","presenceAwayFilled","presenceAvailableRegular","presenceAvailableFilled","presenceBlockedRegular","presenceBusyFilled","presenceDndFilled","presenceDndRegular","presenceOofRegular","presenceOfflineRegular","presenceUnknownRegular","tiny","PresenceAway10Regular","small","PresenceAway12Regular","medium","PresenceAway16Regular","large","PresenceAway20Regular","PresenceAway10Filled","PresenceAway12Filled","PresenceAway16Filled","PresenceAway20Filled","PresenceAvailable10Regular","PresenceAvailable12Regular","PresenceAvailable16Regular","PresenceAvailable20Regular","PresenceAvailable10Filled","PresenceAvailable12Filled","PresenceAvailable16Filled","PresenceAvailable20Filled","PresenceBlocked10Regular","PresenceBlocked12Regular","PresenceBlocked16Regular","PresenceBlocked20Regular","PresenceBusy10Filled","PresenceBusy12Filled","PresenceBusy16Filled","PresenceBusy20Filled","PresenceDnd10Filled","PresenceDnd12Filled","PresenceDnd16Filled","PresenceDnd20Filled","PresenceDnd10Regular","PresenceDnd12Regular","PresenceDnd16Regular","PresenceDnd20Regular","PresenceOof10Regular","PresenceOof12Regular","PresenceOof16Regular","PresenceOof20Regular","PresenceOffline10Regular","PresenceOffline12Regular","PresenceOffline16Regular","PresenceOffline20Regular","PresenceUnknown10Regular","PresenceUnknown12Regular","PresenceUnknown16Regular","PresenceUnknown20Regular"],"mappings":"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"}
|
@@ -1,72 +1,68 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
Object.defineProperty(exports, "usePresenceBadge_unstable", {
|
6
|
+
enumerable: true,
|
7
|
+
get: ()=>usePresenceBadge_unstable
|
5
8
|
});
|
6
|
-
|
7
|
-
const
|
8
|
-
const
|
9
|
-
const
|
10
|
-
const
|
11
|
-
const iconMap = (status, outOfOffice, size)
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
11
|
+
const _reactUtilities = require("@fluentui/react-utilities");
|
12
|
+
const _presenceIcons = require("./presenceIcons");
|
13
|
+
const _index = require("../Badge/index");
|
14
|
+
const iconMap = (status, outOfOffice, size)=>{
|
15
|
+
switch(status){
|
16
|
+
case 'available':
|
17
|
+
return outOfOffice ? _presenceIcons.presenceAvailableRegular[size] : _presenceIcons.presenceAvailableFilled[size];
|
18
|
+
case 'away':
|
19
|
+
return outOfOffice ? _presenceIcons.presenceAwayRegular[size] : _presenceIcons.presenceAwayFilled[size];
|
20
|
+
case 'blocked':
|
21
|
+
return _presenceIcons.presenceBlockedRegular[size];
|
22
|
+
case 'busy':
|
23
|
+
return outOfOffice ? _presenceIcons.presenceUnknownRegular[size] : _presenceIcons.presenceBusyFilled[size];
|
24
|
+
case 'do-not-disturb':
|
25
|
+
return outOfOffice ? _presenceIcons.presenceDndRegular[size] : _presenceIcons.presenceDndFilled[size];
|
26
|
+
case 'offline':
|
27
|
+
return _presenceIcons.presenceOfflineRegular[size];
|
28
|
+
case 'out-of-office':
|
29
|
+
return _presenceIcons.presenceOofRegular[size];
|
30
|
+
case 'unknown':
|
31
|
+
return _presenceIcons.presenceUnknownRegular[size];
|
32
|
+
}
|
30
33
|
};
|
31
34
|
const DEFAULT_STRINGS = {
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
busy: 'busy',
|
36
|
+
'out-of-office': 'out of office',
|
37
|
+
away: 'away',
|
38
|
+
available: 'available',
|
39
|
+
offline: 'offline',
|
40
|
+
'do-not-disturb': 'do not disturb',
|
41
|
+
unknown: 'unknown',
|
42
|
+
blocked: 'blocked'
|
40
43
|
};
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
const
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
}, ref),
|
66
|
-
status,
|
67
|
-
outOfOffice
|
68
|
-
};
|
69
|
-
return state;
|
70
|
-
};
|
71
|
-
exports.usePresenceBadge_unstable = usePresenceBadge_unstable;
|
44
|
+
const usePresenceBadge_unstable = (props, ref)=>{
|
45
|
+
const { size ='medium' , status ='available' , outOfOffice =false } = props;
|
46
|
+
const statusText = DEFAULT_STRINGS[status];
|
47
|
+
const oofText = props.outOfOffice && props.status !== 'out-of-office' ? ` ${DEFAULT_STRINGS['out-of-office']}` : '';
|
48
|
+
const IconElement = iconMap(status, outOfOffice, size);
|
49
|
+
const state = {
|
50
|
+
...(0, _index.useBadge_unstable)({
|
51
|
+
'aria-label': statusText + oofText,
|
52
|
+
role: 'img',
|
53
|
+
...props,
|
54
|
+
size,
|
55
|
+
icon: (0, _reactUtilities.resolveShorthand)(props.icon, {
|
56
|
+
defaultProps: {
|
57
|
+
children: IconElement ? /*#__PURE__*/ _react.createElement(IconElement, null) : null
|
58
|
+
},
|
59
|
+
required: true
|
60
|
+
})
|
61
|
+
}, ref),
|
62
|
+
status,
|
63
|
+
outOfOffice
|
64
|
+
};
|
65
|
+
return state;
|
66
|
+
}; //# sourceMappingURL=usePresenceBadge.js.map
|
67
|
+
|
72
68
|
//# sourceMappingURL=usePresenceBadge.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../../lib/components/PresenceBadge/usePresenceBadge.js"],"sourcesContent":["import * as React from 'react';\nimport { resolveShorthand } from '@fluentui/react-utilities';\nimport { presenceAvailableFilled, presenceAvailableRegular, presenceAwayFilled, presenceAwayRegular, presenceBlockedRegular, presenceBusyFilled, presenceDndFilled, presenceDndRegular, presenceOfflineRegular, presenceOofRegular, presenceUnknownRegular } from './presenceIcons';\nimport { useBadge_unstable } from '../Badge/index';\nconst iconMap = (status, outOfOffice, size) => {\n switch (status) {\n case 'available':\n return outOfOffice ? presenceAvailableRegular[size] : presenceAvailableFilled[size];\n case 'away':\n return outOfOffice ? presenceAwayRegular[size] : presenceAwayFilled[size];\n case 'blocked':\n return presenceBlockedRegular[size];\n case 'busy':\n return outOfOffice ? presenceUnknownRegular[size] : presenceBusyFilled[size];\n case 'do-not-disturb':\n return outOfOffice ? presenceDndRegular[size] : presenceDndFilled[size];\n case 'offline':\n return presenceOfflineRegular[size];\n case 'out-of-office':\n return presenceOofRegular[size];\n case 'unknown':\n return presenceUnknownRegular[size];\n }\n};\nconst DEFAULT_STRINGS = {\n busy: 'busy',\n 'out-of-office': 'out of office',\n away: 'away',\n available: 'available',\n offline: 'offline',\n 'do-not-disturb': 'do not disturb',\n unknown: 'unknown',\n blocked: 'blocked'\n};\n/**\n * Returns the props and state required to render the component\n */\nexport const usePresenceBadge_unstable = (props, ref) => {\n const {\n size = 'medium',\n status = 'available',\n outOfOffice = false\n } = props;\n const statusText = DEFAULT_STRINGS[status];\n const oofText = props.outOfOffice && props.status !== 'out-of-office' ? ` ${DEFAULT_STRINGS['out-of-office']}` : '';\n const IconElement = iconMap(status, outOfOffice, size);\n const state = {\n ...useBadge_unstable({\n 'aria-label': statusText + oofText,\n role: 'img',\n ...props,\n size,\n icon: resolveShorthand(props.icon, {\n defaultProps: {\n children: IconElement ? /*#__PURE__*/React.createElement(IconElement, null) : null\n },\n required: true\n })\n }, ref),\n status,\n outOfOffice\n };\n return state;\n};\n//# sourceMappingURL=usePresenceBadge.js.map"],"names":["usePresenceBadge_unstable","iconMap","status","outOfOffice","size","presenceAvailableRegular","presenceAvailableFilled","presenceAwayRegular","presenceAwayFilled","presenceBlockedRegular","presenceUnknownRegular","presenceBusyFilled","presenceDndRegular","presenceDndFilled","presenceOfflineRegular","presenceOofRegular","DEFAULT_STRINGS","busy","away","available","offline","unknown","blocked","props","ref","statusText","oofText","IconElement","state","useBadge_unstable","role","icon","resolveShorthand","defaultProps","children","React","createElement","required"],"mappings":";;;;+BAqCaA;;aAAAA;;;6DArCU;gCACU;+BACiO;uBAChO;AAClC,MAAMC,UAAU,CAACC,QAAQC,aAAaC,OAAS;IAC7C,OAAQF;QACN,KAAK;YACH,OAAOC,cAAcE,uCAAwB,CAACD,KAAK,GAAGE,sCAAuB,CAACF,KAAK;QACrF,KAAK;YACH,OAAOD,cAAcI,kCAAmB,CAACH,KAAK,GAAGI,iCAAkB,CAACJ,KAAK;QAC3E,KAAK;YACH,OAAOK,qCAAsB,CAACL,KAAK;QACrC,KAAK;YACH,OAAOD,cAAcO,qCAAsB,CAACN,KAAK,GAAGO,iCAAkB,CAACP,KAAK;QAC9E,KAAK;YACH,OAAOD,cAAcS,iCAAkB,CAACR,KAAK,GAAGS,gCAAiB,CAACT,KAAK;QACzE,KAAK;YACH,OAAOU,qCAAsB,CAACV,KAAK;QACrC,KAAK;YACH,OAAOW,iCAAkB,CAACX,KAAK;QACjC,KAAK;YACH,OAAOM,qCAAsB,CAACN,KAAK;IACvC;AACF;AACA,MAAMY,kBAAkB;IACtBC,MAAM;IACN,iBAAiB;IACjBC,MAAM;IACNC,WAAW;IACXC,SAAS;IACT,kBAAkB;IAClBC,SAAS;IACTC,SAAS;AACX;AAIO,MAAMtB,4BAA4B,CAACuB,OAAOC,MAAQ;IACvD,MAAM,EACJpB,MAAO,SAAQ,EACfF,QAAS,YAAW,EACpBC,aAAc,KAAK,CAAA,EACpB,GAAGoB;IACJ,MAAME,aAAaT,eAAe,CAACd,OAAO;IAC1C,MAAMwB,UAAUH,MAAMpB,WAAW,IAAIoB,MAAMrB,MAAM,KAAK,kBAAkB,CAAC,CAAC,EAAEc,eAAe,CAAC,gBAAgB,CAAC,CAAC,GAAG,EAAE;IACnH,MAAMW,cAAc1B,QAAQC,QAAQC,aAAaC;IACjD,MAAMwB,QAAQ;QACZ,GAAGC,IAAAA,wBAAiB,EAAC;YACnB,cAAcJ,aAAaC;YAC3BI,MAAM;YACN,GAAGP,KAAK;YACRnB;YACA2B,MAAMC,IAAAA,gCAAgB,EAACT,MAAMQ,IAAI,EAAE;gBACjCE,cAAc;oBACZC,UAAUP,cAAc,WAAW,GAAEQ,OAAMC,aAAa,CAACT,aAAa,IAAI,IAAI,IAAI;gBACpF;gBACAU,UAAU,IAAI;YAChB;QACF,GAAGb,IAAI;QACPtB;QACAC;IACF;IACA,OAAOyB;AACT,GACA,4CAA4C"}
|