@fluentui/react-badge 0.0.0-nightly-20230317-1454.1 → 0.0.0-nightly-20230322-0439.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.swcrc +2 -11
- package/CHANGELOG.json +68 -11
- package/CHANGELOG.md +24 -8
- package/lib/Badge.js +1 -1
- package/lib/CounterBadge.js +1 -1
- package/lib/PresenceBadge.js +1 -1
- package/lib/components/Badge/Badge.js +6 -6
- package/lib/components/Badge/index.js +4 -4
- package/lib/components/Badge/renderBadge.js +3 -3
- package/lib/components/Badge/useBadge.js +10 -10
- package/lib/components/Badge/useBadgeStyles.js +9 -9
- package/lib/components/CounterBadge/CounterBadge.js +6 -6
- package/lib/components/CounterBadge/index.js +4 -4
- package/lib/components/CounterBadge/useCounterBadge.js +4 -4
- package/lib/components/CounterBadge/useCounterBadgeStyles.js +4 -4
- package/lib/components/PresenceBadge/PresenceBadge.js +6 -6
- package/lib/components/PresenceBadge/index.js +4 -4
- package/lib/components/PresenceBadge/presenceIcons.js +44 -52
- package/lib/components/PresenceBadge/presenceIcons.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadge.js +26 -26
- package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +6 -6
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/lib/index.js +3 -3
- package/lib-commonjs/Badge.js.map +1 -1
- package/lib-commonjs/CounterBadge.js.map +1 -1
- package/lib-commonjs/PresenceBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/Badge.js +1 -1
- package/lib-commonjs/components/Badge/Badge.js.map +1 -1
- package/lib-commonjs/components/Badge/index.js.map +1 -1
- package/lib-commonjs/components/Badge/renderBadge.js +1 -1
- package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/useBadge.js +4 -4
- package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/useBadgeStyles.js +9 -9
- package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.js +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/index.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadge.js +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +2 -2
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.js +1 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/index.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/presenceIcons.js +43 -50
- package/lib-commonjs/components/PresenceBadge/presenceIcons.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +21 -21
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +4 -4
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +7 -6
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../lib/components/CounterBadge/useCounterBadge.js"],"sourcesContent":["import * as React from
|
1
|
+
{"version":3,"sources":["../../../lib/components/CounterBadge/useCounterBadge.js"],"sourcesContent":["import * as React from 'react';\nimport { useBadge_unstable } from '../Badge/index';\n/**\n * Returns the props and state required to render the component\n */\nexport const useCounterBadge_unstable = (props, ref) => {\n const {\n shape = 'circular',\n appearance = 'filled',\n showZero = false,\n overflowCount = 99,\n count = 0,\n dot = false\n } = props;\n const state = {\n ...useBadge_unstable(props, ref),\n shape,\n appearance,\n showZero,\n count,\n dot\n };\n if ((count !== 0 || showZero) && !dot && !state.root.children) {\n state.root.children = count > overflowCount ? `${overflowCount}+` : `${count}`;\n }\n return state;\n};\n//# sourceMappingURL=useCounterBadge.js.map"],"names":["useCounterBadge_unstable","props","ref","shape","appearance","showZero","overflowCount","count","dot","state","useBadge_unstable","root","children"],"mappings":";;;;+BAKaA;;aAAAA;;;6DALU;uBACW;AAI3B,MAAMA,2BAA2B,CAACC,OAAOC,MAAQ;IACtD,MAAM,EACJC,OAAQ,WAAU,EAClBC,YAAa,SAAQ,EACrBC,UAAW,KAAK,CAAA,EAChBC,eAAgB,GAAE,EAClBC,OAAQ,EAAC,EACTC,KAAM,KAAK,CAAA,EACZ,GAAGP;IACJ,MAAMQ,QAAQ;QACZ,GAAGC,IAAAA,wBAAiB,EAACT,OAAOC,IAAI;QAChCC;QACAC;QACAC;QACAE;QACAC;IACF;IACA,IAAI,AAACD,CAAAA,UAAU,KAAKF,QAAO,KAAM,CAACG,OAAO,CAACC,MAAME,IAAI,CAACC,QAAQ,EAAE;QAC7DH,MAAME,IAAI,CAACC,QAAQ,GAAGL,QAAQD,gBAAgB,CAAC,EAAEA,cAAc,CAAC,CAAC,GAAG,CAAC,EAAEC,MAAM,CAAC;IAChF,CAAC;IACD,OAAOE;AACT,GACA,2CAA2C"}
|
@@ -15,8 +15,8 @@ _export(exports, {
|
|
15
15
|
const _react = require("@griffel/react");
|
16
16
|
const _useBadgeStyles = require("../Badge/useBadgeStyles");
|
17
17
|
const counterBadgeClassNames = {
|
18
|
-
root:
|
19
|
-
icon:
|
18
|
+
root: 'fui-CounterBadge',
|
19
|
+
icon: 'fui-CounterBadge__icon'
|
20
20
|
};
|
21
21
|
const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
|
22
22
|
dot: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../lib/components/CounterBadge/useCounterBadgeStyles.js"],"sourcesContent":["import { shorthands, mergeClasses, __styles } from
|
1
|
+
{"version":3,"sources":["../../../lib/components/CounterBadge/useCounterBadgeStyles.js"],"sourcesContent":["import { shorthands, mergeClasses, __styles } from '@griffel/react';\nimport { useBadgeStyles_unstable } from '../Badge/useBadgeStyles';\nexport const counterBadgeClassNames = {\n root: 'fui-CounterBadge',\n icon: 'fui-CounterBadge__icon'\n};\nconst useStyles = /*#__PURE__*/__styles({\n dot: {\n Bf4jedk: \"fgfkb25\",\n a9b677: \"f16dn6v3\",\n Bqenvij: \"f3mu39s\",\n z8tnut: \"f1g0x7ka\",\n z189sj: [\"fhxju0i\", \"f1cnd47f\"],\n Byoj8tv: \"f1qch9an\",\n uwmqm3: [\"f1cnd47f\", \"fhxju0i\"]\n },\n hide: {\n mc9l5x: \"fjseox\"\n }\n}, {\n 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;}\"]\n});\n/**\n * Applies style classnames to slots\n */\nexport const useCounterBadgeStyles_unstable = state => {\n const styles = useStyles();\n state.root.className = mergeClasses(counterBadgeClassNames.root, state.dot && styles.dot, !state.root.children && !state.dot && styles.hide, state.root.className);\n if (state.icon) {\n state.icon.className = mergeClasses(counterBadgeClassNames.icon, state.icon.className);\n }\n return useBadgeStyles_unstable(state);\n};\n//# sourceMappingURL=useCounterBadgeStyles.js.map"],"names":["counterBadgeClassNames","useCounterBadgeStyles_unstable","root","icon","useStyles","__styles","dot","Bf4jedk","a9b677","Bqenvij","z8tnut","z189sj","Byoj8tv","uwmqm3","hide","mc9l5x","d","state","styles","className","mergeClasses","children","useBadgeStyles_unstable"],"mappings":";;;;;;;;;;;IAEaA,sBAAsB,MAAtBA;IAuBAC,8BAA8B,MAA9BA;;uBAzBsC;gCACX;AACjC,MAAMD,yBAAyB;IACpCE,MAAM;IACNC,MAAM;AACR;AACA,MAAMC,YAAY,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IACtCC,KAAK;QACHC,SAAS;QACTC,QAAQ;QACRC,SAAS;QACTC,QAAQ;QACRC,QAAQ;YAAC;YAAW;SAAW;QAC/BC,SAAS;QACTC,QAAQ;YAAC;YAAY;SAAU;IACjC;IACAC,MAAM;QACJC,QAAQ;IACV;AACF,GAAG;IACDC,GAAG;QAAC;QAA6B;QAAyB;QAAyB;QAA6B;QAA8B;QAA8B;QAAgC;KAAyB;AACvO;AAIO,MAAMf,iCAAiCgB,CAAAA,QAAS;IACrD,MAAMC,SAASd;IACfa,MAAMf,IAAI,CAACiB,SAAS,GAAGC,IAAAA,mBAAY,EAACpB,uBAAuBE,IAAI,EAAEe,MAAMX,GAAG,IAAIY,OAAOZ,GAAG,EAAE,CAACW,MAAMf,IAAI,CAACmB,QAAQ,IAAI,CAACJ,MAAMX,GAAG,IAAIY,OAAOJ,IAAI,EAAEG,MAAMf,IAAI,CAACiB,SAAS;IACjK,IAAIF,MAAMd,IAAI,EAAE;QACdc,MAAMd,IAAI,CAACgB,SAAS,GAAGC,IAAAA,mBAAY,EAACpB,uBAAuBG,IAAI,EAAEc,MAAMd,IAAI,CAACgB,SAAS;IACvF,CAAC;IACD,OAAOG,IAAAA,uCAAuB,EAACL;AACjC,GACA,iDAAiD"}
|
@@ -19,6 +19,6 @@ const PresenceBadge = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
19
19
|
useCustomStyles(state);
|
20
20
|
return (0, _badge.renderBadge_unstable)(state);
|
21
21
|
});
|
22
|
-
PresenceBadge.displayName =
|
22
|
+
PresenceBadge.displayName = 'PresenceBadge'; //# sourceMappingURL=PresenceBadge.js.map
|
23
23
|
|
24
24
|
//# sourceMappingURL=PresenceBadge.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../lib/components/PresenceBadge/PresenceBadge.js"],"sourcesContent":["import * as React from
|
1
|
+
{"version":3,"sources":["../../../lib/components/PresenceBadge/PresenceBadge.js"],"sourcesContent":["import * as React from 'react';\nimport { usePresenceBadge_unstable } from './usePresenceBadge';\nimport { usePresenceBadgeStyles_unstable } from './usePresenceBadgeStyles';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\nimport { renderBadge_unstable } from '../../Badge';\n/**\n * Define a styled Badge, using the `useBadge_unstable` hook.\n */\nexport const PresenceBadge = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = usePresenceBadge_unstable(props, ref);\n usePresenceBadgeStyles_unstable(state);\n const {\n usePresenceBadgeStyles_unstable: useCustomStyles\n } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n return renderBadge_unstable(state);\n});\nPresenceBadge.displayName = 'PresenceBadge';\n//# sourceMappingURL=PresenceBadge.js.map"],"names":["PresenceBadge","React","forwardRef","props","ref","state","usePresenceBadge_unstable","usePresenceBadgeStyles_unstable","useCustomStyles","useCustomStyleHooks_unstable","renderBadge_unstable","displayName"],"mappings":";;;;+BAQaA;;aAAAA;;;6DARU;kCACmB;wCACM;qCACH;uBACR;AAI9B,MAAMA,gBAAgB,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAQ;IACzE,MAAMC,QAAQC,IAAAA,2CAAyB,EAACH,OAAOC;IAC/CG,IAAAA,uDAA+B,EAACF;IAChC,MAAM,EACJE,iCAAiCC,gBAAe,EACjD,GAAGC,IAAAA,iDAA4B;IAChCD,gBAAgBH;IAChB,OAAOK,IAAAA,2BAAoB,EAACL;AAC9B;AACAL,cAAcW,WAAW,GAAG,iBAC5B,yCAAyC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../lib/components/PresenceBadge/index.js"],"sourcesContent":["export * from
|
1
|
+
{"version":3,"sources":["../../../lib/components/PresenceBadge/index.js"],"sourcesContent":["export * from './PresenceBadge';\nexport * from './PresenceBadge.types';\nexport * from './usePresenceBadge';\nexport * from './usePresenceBadgeStyles';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;CACd,iCAAiC"}
|
@@ -9,6 +9,7 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
+
presenceAwayRegular: ()=>presenceAwayRegular,
|
12
13
|
presenceAwayFilled: ()=>presenceAwayFilled,
|
13
14
|
presenceAvailableRegular: ()=>presenceAvailableRegular,
|
14
15
|
presenceAvailableFilled: ()=>presenceAvailableFilled,
|
@@ -23,145 +24,137 @@ _export(exports, {
|
|
23
24
|
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
24
25
|
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
25
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
|
38
|
+
};
|
26
39
|
const presenceAwayFilled = {
|
27
40
|
// FIXME not all presence icon sizes are available
|
28
41
|
// https://github.com/microsoft/fluentui/issues/20650
|
29
42
|
tiny: _reactIcons.PresenceAway10Filled,
|
30
|
-
|
43
|
+
'extra-small': _reactIcons.PresenceAway10Filled,
|
31
44
|
small: _reactIcons.PresenceAway12Filled,
|
32
45
|
medium: _reactIcons.PresenceAway16Filled,
|
46
|
+
large: _reactIcons.PresenceAway20Filled,
|
33
47
|
// FIXME not all presence icon sizes are available
|
34
48
|
// https://github.com/microsoft/fluentui/issues/20650
|
35
|
-
large: _reactIcons.
|
36
|
-
// FIXME not all presence icon sizes are available
|
37
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
38
|
-
"extra-large": _reactIcons.PresenceAway16Filled
|
49
|
+
'extra-large': _reactIcons.PresenceAway20Filled
|
39
50
|
};
|
40
51
|
const presenceAvailableRegular = {
|
41
52
|
// FIXME not all presence icon sizes are available
|
42
53
|
// https://github.com/microsoft/fluentui/issues/20650
|
43
54
|
tiny: _reactIcons.PresenceAvailable10Regular,
|
44
|
-
|
55
|
+
'extra-small': _reactIcons.PresenceAvailable10Regular,
|
45
56
|
small: _reactIcons.PresenceAvailable12Regular,
|
46
57
|
medium: _reactIcons.PresenceAvailable16Regular,
|
58
|
+
large: _reactIcons.PresenceAvailable20Regular,
|
47
59
|
// FIXME not all presence icon sizes are available
|
48
60
|
// https://github.com/microsoft/fluentui/issues/20650
|
49
|
-
large: _reactIcons.
|
50
|
-
// FIXME not all presence icon sizes are available
|
51
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
52
|
-
"extra-large": _reactIcons.PresenceAvailable16Regular
|
61
|
+
'extra-large': _reactIcons.PresenceAvailable20Regular
|
53
62
|
};
|
54
63
|
const presenceAvailableFilled = {
|
55
64
|
// FIXME not all presence icon sizes are available
|
56
65
|
// https://github.com/microsoft/fluentui/issues/20650
|
57
66
|
tiny: _reactIcons.PresenceAvailable10Filled,
|
58
|
-
|
67
|
+
'extra-small': _reactIcons.PresenceAvailable10Filled,
|
59
68
|
small: _reactIcons.PresenceAvailable12Filled,
|
60
69
|
medium: _reactIcons.PresenceAvailable16Filled,
|
70
|
+
large: _reactIcons.PresenceAvailable20Filled,
|
61
71
|
// FIXME not all presence icon sizes are available
|
62
72
|
// https://github.com/microsoft/fluentui/issues/20650
|
63
|
-
large: _reactIcons.
|
64
|
-
// FIXME not all presence icon sizes are available
|
65
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
66
|
-
"extra-large": _reactIcons.PresenceAvailable16Filled
|
73
|
+
'extra-large': _reactIcons.PresenceAvailable20Filled
|
67
74
|
};
|
68
75
|
const presenceBlockedRegular = {
|
69
76
|
// FIXME not all presence icon sizes are available
|
70
77
|
// https://github.com/microsoft/fluentui/issues/20650
|
71
78
|
tiny: _reactIcons.PresenceBlocked10Regular,
|
72
|
-
|
79
|
+
'extra-small': _reactIcons.PresenceBlocked10Regular,
|
73
80
|
small: _reactIcons.PresenceBlocked12Regular,
|
74
81
|
medium: _reactIcons.PresenceBlocked16Regular,
|
82
|
+
large: _reactIcons.PresenceBlocked20Regular,
|
75
83
|
// FIXME not all presence icon sizes are available
|
76
84
|
// https://github.com/microsoft/fluentui/issues/20650
|
77
|
-
large: _reactIcons.
|
78
|
-
// FIXME not all presence icon sizes are available
|
79
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
80
|
-
"extra-large": _reactIcons.PresenceBlocked16Regular
|
85
|
+
'extra-large': _reactIcons.PresenceBlocked20Regular
|
81
86
|
};
|
82
87
|
const presenceBusyFilled = {
|
83
88
|
// FIXME not all presence icon sizes are available
|
84
89
|
// https://github.com/microsoft/fluentui/issues/20650
|
85
90
|
tiny: _reactIcons.PresenceBusy10Filled,
|
86
|
-
|
91
|
+
'extra-small': _reactIcons.PresenceBusy10Filled,
|
87
92
|
small: _reactIcons.PresenceBusy12Filled,
|
88
93
|
medium: _reactIcons.PresenceBusy16Filled,
|
94
|
+
large: _reactIcons.PresenceBusy20Filled,
|
89
95
|
// FIXME not all presence icon sizes are available
|
90
96
|
// https://github.com/microsoft/fluentui/issues/20650
|
91
|
-
large: _reactIcons.
|
92
|
-
// FIXME not all presence icon sizes are available
|
93
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
94
|
-
"extra-large": _reactIcons.PresenceBusy16Filled
|
97
|
+
'extra-large': _reactIcons.PresenceBusy20Filled
|
95
98
|
};
|
96
99
|
const presenceDndFilled = {
|
97
100
|
// FIXME not all presence icon sizes are available
|
98
101
|
// https://github.com/microsoft/fluentui/issues/20650
|
99
102
|
tiny: _reactIcons.PresenceDnd10Filled,
|
100
|
-
|
103
|
+
'extra-small': _reactIcons.PresenceDnd10Filled,
|
101
104
|
small: _reactIcons.PresenceDnd12Filled,
|
102
105
|
medium: _reactIcons.PresenceDnd16Filled,
|
106
|
+
large: _reactIcons.PresenceDnd20Filled,
|
103
107
|
// FIXME not all presence icon sizes are available
|
104
108
|
// https://github.com/microsoft/fluentui/issues/20650
|
105
|
-
large: _reactIcons.
|
106
|
-
// FIXME not all presence icon sizes are available
|
107
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
108
|
-
"extra-large": _reactIcons.PresenceDnd16Filled
|
109
|
+
'extra-large': _reactIcons.PresenceDnd20Filled
|
109
110
|
};
|
110
111
|
const presenceDndRegular = {
|
111
112
|
// FIXME not all presence icon sizes are available
|
112
113
|
// https://github.com/microsoft/fluentui/issues/20650
|
113
114
|
tiny: _reactIcons.PresenceDnd10Regular,
|
114
|
-
|
115
|
+
'extra-small': _reactIcons.PresenceDnd10Regular,
|
115
116
|
small: _reactIcons.PresenceDnd12Regular,
|
116
117
|
medium: _reactIcons.PresenceDnd16Regular,
|
118
|
+
large: _reactIcons.PresenceDnd20Regular,
|
117
119
|
// FIXME not all presence icon sizes are available
|
118
120
|
// https://github.com/microsoft/fluentui/issues/20650
|
119
|
-
large: _reactIcons.
|
120
|
-
// FIXME not all presence icon sizes are available
|
121
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
122
|
-
"extra-large": _reactIcons.PresenceDnd16Regular
|
121
|
+
'extra-large': _reactIcons.PresenceDnd20Regular
|
123
122
|
};
|
124
123
|
const presenceOofRegular = {
|
125
124
|
// FIXME not all presence icon sizes are available
|
126
125
|
// https://github.com/microsoft/fluentui/issues/20650
|
127
126
|
tiny: _reactIcons.PresenceOof10Regular,
|
128
|
-
|
127
|
+
'extra-small': _reactIcons.PresenceOof10Regular,
|
129
128
|
small: _reactIcons.PresenceOof12Regular,
|
130
129
|
medium: _reactIcons.PresenceOof16Regular,
|
130
|
+
large: _reactIcons.PresenceOof20Regular,
|
131
131
|
// FIXME not all presence icon sizes are available
|
132
132
|
// https://github.com/microsoft/fluentui/issues/20650
|
133
|
-
large: _reactIcons.
|
134
|
-
// FIXME not all presence icon sizes are available
|
135
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
136
|
-
"extra-large": _reactIcons.PresenceOof16Regular
|
133
|
+
'extra-large': _reactIcons.PresenceOof20Regular
|
137
134
|
};
|
138
135
|
const presenceOfflineRegular = {
|
139
136
|
// FIXME not all presence icon sizes are available
|
140
137
|
// https://github.com/microsoft/fluentui/issues/20650
|
141
138
|
tiny: _reactIcons.PresenceOffline10Regular,
|
142
|
-
|
139
|
+
'extra-small': _reactIcons.PresenceOffline10Regular,
|
143
140
|
small: _reactIcons.PresenceOffline12Regular,
|
144
141
|
medium: _reactIcons.PresenceOffline16Regular,
|
142
|
+
large: _reactIcons.PresenceOffline20Regular,
|
145
143
|
// FIXME not all presence icon sizes are available
|
146
144
|
// https://github.com/microsoft/fluentui/issues/20650
|
147
|
-
large: _reactIcons.
|
148
|
-
// FIXME not all presence icon sizes are available
|
149
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
150
|
-
"extra-large": _reactIcons.PresenceOffline16Regular
|
145
|
+
'extra-large': _reactIcons.PresenceOffline20Regular
|
151
146
|
};
|
152
147
|
const presenceUnknownRegular = {
|
153
148
|
// FIXME not all presence icon sizes are available
|
154
149
|
// https://github.com/microsoft/fluentui/issues/20650
|
155
150
|
tiny: _reactIcons.PresenceUnknown10Regular,
|
156
|
-
|
151
|
+
'extra-small': _reactIcons.PresenceUnknown10Regular,
|
157
152
|
small: _reactIcons.PresenceUnknown12Regular,
|
158
153
|
medium: _reactIcons.PresenceUnknown16Regular,
|
154
|
+
large: _reactIcons.PresenceUnknown20Regular,
|
159
155
|
// FIXME not all presence icon sizes are available
|
160
156
|
// https://github.com/microsoft/fluentui/issues/20650
|
161
|
-
large: _reactIcons.
|
162
|
-
// FIXME not all presence icon sizes are available
|
163
|
-
// https://github.com/microsoft/fluentui/issues/20650
|
164
|
-
"extra-large": _reactIcons.PresenceUnknown16Regular
|
157
|
+
'extra-large': _reactIcons.PresenceUnknown20Regular
|
165
158
|
}; //# sourceMappingURL=presenceIcons.js.map
|
166
159
|
|
167
160
|
//# sourceMappingURL=presenceIcons.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../lib/components/PresenceBadge/presenceIcons.js"],"sourcesContent":["import * as React from \"react\";\nimport { PresenceAvailable10Regular, PresenceAvailable12Regular, PresenceAvailable16Regular, PresenceAvailable10Filled, PresenceAvailable12Filled, PresenceAvailable16Filled, PresenceAway10Filled, PresenceAway12Filled, PresenceAway16Filled, PresenceBlocked10Regular, PresenceBlocked12Regular, PresenceBlocked16Regular, PresenceBusy10Filled, PresenceBusy12Filled, PresenceBusy16Filled, PresenceDnd10Regular, PresenceDnd12Regular, PresenceDnd16Regular, PresenceDnd10Filled, PresenceDnd12Filled, PresenceDnd16Filled, PresenceOof10Regular, PresenceOof12Regular, PresenceOof16Regular, PresenceOffline10Regular, PresenceOffline12Regular, PresenceOffline16Regular, PresenceUnknown10Regular, PresenceUnknown12Regular, PresenceUnknown16Regular } from \"@fluentui/react-icons\";\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 // 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};\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 // 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};\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 // 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};\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 // 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};\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 // 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};\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 // 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};\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 // 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};\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 // 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};\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 // 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};\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 // 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//# sourceMappingURL=presenceIcons.js.map"],"names":["presenceAwayFilled","presenceAvailableRegular","presenceAvailableFilled","presenceBlockedRegular","presenceBusyFilled","presenceDndFilled","presenceDndRegular","presenceOofRegular","presenceOfflineRegular","presenceUnknownRegular","tiny","PresenceAway10Filled","small","PresenceAway12Filled","medium","PresenceAway16Filled","large","PresenceAvailable10Regular","PresenceAvailable12Regular","PresenceAvailable16Regular","PresenceAvailable10Filled","PresenceAvailable12Filled","PresenceAvailable16Filled","PresenceBlocked10Regular","PresenceBlocked12Regular","PresenceBlocked16Regular","PresenceBusy10Filled","PresenceBusy12Filled","PresenceBusy16Filled","PresenceDnd10Filled","PresenceDnd12Filled","PresenceDnd16Filled","PresenceDnd10Regular","PresenceDnd12Regular","PresenceDnd16Regular","PresenceOof10Regular","PresenceOof12Regular","PresenceOof16Regular","PresenceOffline10Regular","PresenceOffline12Regular","PresenceOffline16Regular","PresenceUnknown10Regular","PresenceUnknown12Regular","PresenceUnknown16Regular"],"mappings":";;;;;;;;;;;IAEaA,kBAAkB,MAAlBA;IAcAC,wBAAwB,MAAxBA;IAcAC,uBAAuB,MAAvBA;IAcAC,sBAAsB,MAAtBA;IAcAC,kBAAkB,MAAlBA;IAcAC,iBAAiB,MAAjBA;IAcAC,kBAAkB,MAAlBA;IAcAC,kBAAkB,MAAlBA;IAcAC,sBAAsB,MAAtBA;IAcAC,sBAAsB,MAAtBA;;;6DAhIU;4BAC8sB;AAC9tB,MAAMT,qBAAqB;IAChC,kDAAkD;IAClD,qDAAqD;IACrDU,MAAMC,gCAAoB;IAC1B,eAAeA,gCAAoB;IACnCC,OAAOC,gCAAoB;IAC3BC,QAAQC,gCAAoB;IAC5B,kDAAkD;IAClD,qDAAqD;IACrDC,OAAOD,gCAAoB;IAC3B,kDAAkD;IAClD,qDAAqD;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Oe,+BAAmB;IAC1B,kDAAkD;IAClD,qDAAqD;IACrD,eAAeA,+BAAmB;AACpC;AACO,MAAMzB,qBAAqB;IAChC,kDAAkD;IAClD,qDAAqD;IACrDI,MAAMsB,gCAAoB;IAC1B,eAAeA,gCAAoB;IACnCpB,OAAOqB,gCAAoB;IAC3BnB,QAAQoB,gCAAoB;IAC5B,kDAAkD;IAClD,qDAAqD;IACrDlB,OAAOkB,gCAAoB;IAC3B,kDAAkD;IAClD,qDAAqD;IACrD,eAAeA,gCAAoB;AACrC;AACO,MAAM3B,qBAAqB;IAChC,kDAAkD;IAClD,qDAAqD;IACrDG,MAAMyB,gCAAoB;IAC1B,eAAeA,gCAAoB;IACnCvB,OAAOwB,gCAAoB;IAC3BtB,QAAQuB,gCAAoB;IAC5B,kDAAkD;IAClD,qDAAqD;IACrDrB,OAAOqB,gCAAoB;IAC3B,kDAAkD;IAClD,qDAAqD;IACrD,eAAeA,gCAAoB;AACrC;AACO,MAAM7B,yBAAyB;IACpC,kDAAkD;IAClD,qDAAqD;IACrDE,MAAM4B,oCAAwB;IAC9B,eAAeA,oCAAwB;IACvC1B,OAAO2B,oCAAwB;IAC/BzB,QAAQ0B,oCAAwB;IAChC,kDAAkD;IAClD,qDAAqD;IACrDxB,OAAOwB,oCAAwB;IAC/B,kDAAkD;IAClD,qDAAqD;IACrD,eAAeA,oCAAwB;AACzC;AACO,MAAM/B,yBAAyB;IACpC,kDAAkD;IAClD,qDAAqD;IACrDC,MAAM+B,oCAAwB;IAC9B,eAAeA,oCAAwB;IACvC7B,OAAO8B,oCAAwB;IAC/B5B,QAAQ6B,oCAAwB;IAChC,kDAAkD;IAClD,qDAAqD;IACrD3B,OAAO2B,oCAAwB;IAC/B,kDAAkD;IAClD,qDAAqD;IACrD,eAAeA,oCAAwB;AACzC,GACA,yCAAyC"}
|
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":";;;;;;;;;;;IAEaA,mBAAmB,MAAnBA;IAYAC,kBAAkB,MAAlBA;IAYAC,wBAAwB,MAAxBA;IAYAC,uBAAuB,MAAvBA;IAYAC,sBAAsB,MAAtBA;IAYAC,kBAAkB,MAAlBA;IAYAC,iBAAiB,MAAjBA;IAYAC,kBAAkB,MAAlBA;IAYAC,kBAAkB,MAAlBA;IAYAC,sBAAsB,MAAtBA;IAYAC,sBAAsB,MAAtBA;;;6DA1HU;4BAC4hC;AAC5iC,MAAMV,sBAAsB;IACjC,kDAAkD;IAClD,qDAAqD;IACrDW,MAAMC,iCAAqB;IAC3B,eAAeA,iCAAqB;IACpCC,OAAOC,iCAAqB;IAC5BC,QAAQC,iCAAqB;IAC7BC,OAAOC,iCAAqB;IAC5B,kDAAkD;IAClD,qDAAqD;IACrD,eAAeA,iCAAqB;AACtC;AACO,MAAMjB,qBAAqB;IAChC,kDAAkD;IAClD,qDAAqD;IACrDU,MAAMQ,gCAAoB;IAC1B,eAAeA,gCAAoB;IACnCN,OAAOO,gCAAoB;IAC3BL,Q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AmB;AACpC;AACO,MAAMnC,qBAAqB;IAChC,kDAAkD;IAClD,qDAAqD;IACrDI,MAAMgC,gCAAoB;IAC1B,eAAeA,gCAAoB;IACnC9B,OAAO+B,gCAAoB;IAC3B7B,QAAQ8B,gCAAoB;IAC5B5B,OAAO6B,gCAAoB;IAC3B,kDAAkD;IAClD,qDAAqD;IACrD,eAAeA,gCAAoB;AACrC;AACO,MAAMtC,qBAAqB;IAChC,kDAAkD;IAClD,qDAAqD;IACrDG,MAAMoC,gCAAoB;IAC1B,eAAeA,gCAAoB;IACnClC,OAAOmC,gCAAoB;IAC3BjC,QAAQkC,gCAAoB;IAC5BhC,OAAOiC,gCAAoB;IAC3B,kDAAkD;IAClD,qDAAqD;IACrD,eAAeA,gCAAoB;AACrC;AACO,MAAMzC,yBAAyB;IACpC,kDAAkD;IAClD,qDAAqD;IACrDE,MAAMwC,oCAAwB;IAC9B,eAAeA,oCAAwB;IACvCtC,OAAOuC,oCAAwB;IAC/BrC,QAAQsC,oCAAwB;IAChCpC,OAAOqC,oCAAwB;IAC/B,kDAAkD;IAClD,qDAAqD;IACrD,eAAeA,oCAAwB;AACzC;AACO,MAAM5C,yBAAyB;IACpC,kDAAkD;IAClD,qDAAqD;IACrDC,MAAM4C,oCAAwB;IAC9B,eAAeA,oCAAwB;IACvC1C,OAAO2C,oCAAwB;IAC/BzC,QAAQ0C,oCAAwB;IAChCxC,OAAOyC,oCAAwB;IAC/B,kDAAkD;IAClD,qDAAqD;IACrD,eAAeA,oCAAwB;AACzC,GACA,yCAAyC"}
|
@@ -13,43 +13,43 @@ const _presenceIcons = require("./presenceIcons");
|
|
13
13
|
const _index = require("../Badge/index");
|
14
14
|
const iconMap = (status, outOfOffice, size)=>{
|
15
15
|
switch(status){
|
16
|
-
case
|
16
|
+
case 'available':
|
17
17
|
return outOfOffice ? _presenceIcons.presenceAvailableRegular[size] : _presenceIcons.presenceAvailableFilled[size];
|
18
|
-
case
|
19
|
-
return outOfOffice ? _presenceIcons.
|
20
|
-
case
|
18
|
+
case 'away':
|
19
|
+
return outOfOffice ? _presenceIcons.presenceAwayRegular[size] : _presenceIcons.presenceAwayFilled[size];
|
20
|
+
case 'blocked':
|
21
21
|
return _presenceIcons.presenceBlockedRegular[size];
|
22
|
-
case
|
22
|
+
case 'busy':
|
23
23
|
return outOfOffice ? _presenceIcons.presenceUnknownRegular[size] : _presenceIcons.presenceBusyFilled[size];
|
24
|
-
case
|
24
|
+
case 'do-not-disturb':
|
25
25
|
return outOfOffice ? _presenceIcons.presenceDndRegular[size] : _presenceIcons.presenceDndFilled[size];
|
26
|
-
case
|
26
|
+
case 'offline':
|
27
27
|
return _presenceIcons.presenceOfflineRegular[size];
|
28
|
-
case
|
28
|
+
case 'out-of-office':
|
29
29
|
return _presenceIcons.presenceOofRegular[size];
|
30
|
-
case
|
30
|
+
case 'unknown':
|
31
31
|
return _presenceIcons.presenceUnknownRegular[size];
|
32
32
|
}
|
33
33
|
};
|
34
34
|
const DEFAULT_STRINGS = {
|
35
|
-
busy:
|
36
|
-
|
37
|
-
away:
|
38
|
-
available:
|
39
|
-
offline:
|
40
|
-
|
41
|
-
unknown:
|
42
|
-
blocked:
|
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'
|
43
43
|
};
|
44
44
|
const usePresenceBadge_unstable = (props, ref)=>{
|
45
|
-
const { size =
|
45
|
+
const { size ='medium' , status ='available' , outOfOffice =false } = props;
|
46
46
|
const statusText = DEFAULT_STRINGS[status];
|
47
|
-
const oofText = props.outOfOffice && props.status !==
|
47
|
+
const oofText = props.outOfOffice && props.status !== 'out-of-office' ? ` ${DEFAULT_STRINGS['out-of-office']}` : '';
|
48
48
|
const IconElement = iconMap(status, outOfOffice, size);
|
49
49
|
const state = {
|
50
50
|
...(0, _index.useBadge_unstable)({
|
51
|
-
|
52
|
-
role:
|
51
|
+
'aria-label': statusText + oofText,
|
52
|
+
role: 'img',
|
53
53
|
...props,
|
54
54
|
size,
|
55
55
|
icon: (0, _reactUtilities.resolveShorthand)(props.icon, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../lib/components/PresenceBadge/usePresenceBadge.js"],"sourcesContent":["import * as React from
|
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"}
|
@@ -14,11 +14,11 @@ _export(exports, {
|
|
14
14
|
});
|
15
15
|
const _react = require("@griffel/react");
|
16
16
|
const presenceBadgeClassNames = {
|
17
|
-
root:
|
18
|
-
icon:
|
17
|
+
root: 'fui-PresenceBadge',
|
18
|
+
icon: 'fui-PresenceBadge__icon'
|
19
19
|
};
|
20
20
|
const getIsBusy = (status)=>{
|
21
|
-
if (status ===
|
21
|
+
if (status === 'busy' || status === 'do-not-disturb' || status === 'blocked') {
|
22
22
|
return true;
|
23
23
|
}
|
24
24
|
return false;
|
@@ -100,7 +100,7 @@ const usePresenceBadgeStyles_unstable = (state)=>{
|
|
100
100
|
const rootClassName = useRootClassName();
|
101
101
|
const styles = useStyles();
|
102
102
|
const isBusy = getIsBusy(state.status);
|
103
|
-
state.root.className = (0, _react.mergeClasses)(presenceBadgeClassNames.root, rootClassName, isBusy && styles.statusBusy, state.status ===
|
103
|
+
state.root.className = (0, _react.mergeClasses)(presenceBadgeClassNames.root, rootClassName, isBusy && styles.statusBusy, state.status === 'away' && styles.statusAway, state.status === 'available' && styles.statusAvailable, state.status === 'offline' && styles.statusOffline, state.status === 'out-of-office' && styles.statusOutOfOffice, state.status === 'unknown' && styles.statusUnknown, state.outOfOffice && styles.outOfOffice, state.outOfOffice && state.status === 'available' && styles.outOfOfficeAvailable, state.outOfOffice && isBusy && styles.outOfOfficeBusy, state.outOfOffice && state.status === 'away' && styles.statusAway, state.outOfOffice && state.status === 'offline' && styles.statusOffline, state.outOfOffice && state.status === 'out-of-office' && styles.statusOutOfOffice, state.outOfOffice && state.status === 'unknown' && styles.outOfOfficeUnknown, state.size === 'tiny' && styles.tiny, state.size === 'large' && styles.large, state.size === 'extra-large' && styles.extraLarge, state.root.className);
|
104
104
|
if (state.icon) {
|
105
105
|
state.icon.className = (0, _react.mergeClasses)(presenceBadgeClassNames.icon, state.icon.className);
|
106
106
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../lib/components/PresenceBadge/usePresenceBadgeStyles.js"],"sourcesContent":["import { __resetStyles, __styles, mergeClasses } from
|
1
|
+
{"version":3,"sources":["../../../lib/components/PresenceBadge/usePresenceBadgeStyles.js"],"sourcesContent":["import { __resetStyles, __styles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nexport const presenceBadgeClassNames = {\n root: 'fui-PresenceBadge',\n icon: 'fui-PresenceBadge__icon'\n};\nconst getIsBusy = status => {\n if (status === 'busy' || status === 'do-not-disturb' || status === 'blocked') {\n return true;\n }\n return false;\n};\nconst useRootClassName = /*#__PURE__*/__resetStyles(\"r11sysef\", null, [\".r11sysef{padding:0;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;border-radius:var(--borderRadiusCircular);background-color:var(--colorNeutralBackground1);}\", \".r11sysef span{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}\"]);\nconst useStyles = /*#__PURE__*/__styles({\n statusBusy: {\n sj55zd: \"fvi85wt\"\n },\n statusAway: {\n sj55zd: \"f14k8a89\"\n },\n statusAvailable: {\n sj55zd: \"fqa5hgp\"\n },\n statusOffline: {\n sj55zd: \"f11d4kpn\"\n },\n statusOutOfOffice: {\n sj55zd: \"fdce8r3\"\n },\n statusUnknown: {\n sj55zd: \"f11d4kpn\"\n },\n outOfOffice: {\n sj55zd: \"fr0bkrk\"\n },\n outOfOfficeAvailable: {\n sj55zd: \"fqa5hgp\"\n },\n outOfOfficeBusy: {\n sj55zd: \"fvi85wt\"\n },\n outOfOfficeUnknown: {\n sj55zd: \"f11d4kpn\"\n },\n tiny: {\n Bubjx69: \"f9ikmtg\",\n a9b677: \"f16dn6v3\",\n B5pe6w7: \"fab5kbq\",\n p4uzdd: \"f1ms1d91\"\n },\n large: {\n Bubjx69: \"f9ikmtg\",\n a9b677: \"f64fuq3\",\n B5pe6w7: \"f1vfi1yj\",\n p4uzdd: \"f15s34gz\"\n },\n extraLarge: {\n Bubjx69: \"f9ikmtg\",\n a9b677: \"f1w9dchk\",\n B5pe6w7: \"f14efy9b\",\n p4uzdd: \"fhipgdu\"\n }\n}, {\n d: [\".fvi85wt{color:var(--colorPaletteRedBackground3);}\", \".f14k8a89{color:var(--colorPaletteMarigoldBackground3);}\", \".fqa5hgp{color:var(--colorPaletteLightGreenForeground3);}\", \".f11d4kpn{color:var(--colorNeutralForeground3);}\", \".fdce8r3{color:var(--colorPaletteBerryForeground3);}\", \".fr0bkrk{color:var(--colorNeutralBackground1);}\", \".f9ikmtg{aspect-ratio:1;}\", \".f16dn6v3{width:6px;}\", \".fab5kbq svg{width:6px!important;}\", \".f1ms1d91 svg{height:6px!important;}\", \".f64fuq3{width:20px;}\", \".f1vfi1yj svg{width:20px!important;}\", \".f15s34gz svg{height:20px!important;}\", \".f1w9dchk{width:28px;}\", \".f14efy9b svg{width:28px!important;}\", \".fhipgdu svg{height:28px!important;}\"]\n});\n/**\n * Applies style classnames to slots\n */\nexport const usePresenceBadgeStyles_unstable = state => {\n const rootClassName = useRootClassName();\n const styles = useStyles();\n const isBusy = getIsBusy(state.status);\n state.root.className = mergeClasses(presenceBadgeClassNames.root, rootClassName, isBusy && styles.statusBusy, state.status === 'away' && styles.statusAway, state.status === 'available' && styles.statusAvailable, state.status === 'offline' && styles.statusOffline, state.status === 'out-of-office' && styles.statusOutOfOffice, state.status === 'unknown' && styles.statusUnknown, state.outOfOffice && styles.outOfOffice, state.outOfOffice && state.status === 'available' && styles.outOfOfficeAvailable, state.outOfOffice && isBusy && styles.outOfOfficeBusy, state.outOfOffice && state.status === 'away' && styles.statusAway, state.outOfOffice && state.status === 'offline' && styles.statusOffline, state.outOfOffice && state.status === 'out-of-office' && styles.statusOutOfOffice, state.outOfOffice && state.status === 'unknown' && styles.outOfOfficeUnknown, state.size === 'tiny' && styles.tiny, state.size === 'large' && styles.large, state.size === 'extra-large' && styles.extraLarge, state.root.className);\n if (state.icon) {\n state.icon.className = mergeClasses(presenceBadgeClassNames.icon, state.icon.className);\n }\n return state;\n};\n//# sourceMappingURL=usePresenceBadgeStyles.js.map"],"names":["presenceBadgeClassNames","usePresenceBadgeStyles_unstable","root","icon","getIsBusy","status","useRootClassName","__resetStyles","useStyles","__styles","statusBusy","sj55zd","statusAway","statusAvailable","statusOffline","statusOutOfOffice","statusUnknown","outOfOffice","outOfOfficeAvailable","outOfOfficeBusy","outOfOfficeUnknown","tiny","Bubjx69","a9b677","B5pe6w7","p4uzdd","large","extraLarge","d","state","rootClassName","styles","isBusy","className","mergeClasses","size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 @@
|
|
1
|
-
{"version":3,"sources":["../lib/index.js"],"sourcesContent":["export { Badge, badgeClassNames, renderBadge_unstable, useBadgeStyles_unstable, useBadge_unstable } from
|
1
|
+
{"version":3,"sources":["../lib/index.js"],"sourcesContent":["export { Badge, badgeClassNames, renderBadge_unstable, useBadgeStyles_unstable, useBadge_unstable } from './Badge';\nexport { PresenceBadge, presenceBadgeClassNames, usePresenceBadgeStyles_unstable, usePresenceBadge_unstable } from './PresenceBadge';\nexport { CounterBadge, counterBadgeClassNames, useCounterBadgeStyles_unstable, useCounterBadge_unstable } from './CounterBadge';\n//# sourceMappingURL=index.js.map"],"names":["Badge","badgeClassNames","renderBadge_unstable","useBadgeStyles_unstable","useBadge_unstable","PresenceBadge","presenceBadgeClassNames","usePresenceBadgeStyles_unstable","usePresenceBadge_unstable","CounterBadge","counterBadgeClassNames","useCounterBadgeStyles_unstable","useCounterBadge_unstable"],"mappings":";;;;;;;;;;;IAASA,KAAK,MAALA,YAAK;IAAEC,eAAe,MAAfA,sBAAe;IAAEC,oBAAoB,MAApBA,2BAAoB;IAAEC,uBAAuB,MAAvBA,8BAAuB;IAAEC,iBAAiB,MAAjBA,wBAAiB;IACxFC,aAAa,MAAbA,4BAAa;IAAEC,uBAAuB,MAAvBA,sCAAuB;IAAEC,+BAA+B,MAA/BA,8CAA+B;IAAEC,yBAAyB,MAAzBA,wCAAyB;IAClGC,YAAY,MAAZA,0BAAY;IAAEC,sBAAsB,MAAtBA,oCAAsB;IAAEC,8BAA8B,MAA9BA,4CAA8B;IAAEC,wBAAwB,MAAxBA,sCAAwB;;uBAFE;+BACU;8BACJ;CAC/G,iCAAiC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-badge",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20230322-0439.1",
|
4
4
|
"description": "React components for building web experiences",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -27,15 +27,15 @@
|
|
27
27
|
"devDependencies": {
|
28
28
|
"@fluentui/eslint-plugin": "*",
|
29
29
|
"@fluentui/react-conformance": "*",
|
30
|
-
"@fluentui/react-conformance-griffel": "0.0.0-nightly-
|
30
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20230322-0439.1",
|
31
31
|
"@fluentui/scripts-api-extractor": "*",
|
32
32
|
"@fluentui/scripts-tasks": "*"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@fluentui/react-icons": "^2.0.
|
36
|
-
"@fluentui/react-shared-contexts": "0.0.0-nightly-
|
37
|
-
"@fluentui/react-theme": "0.0.0-nightly-
|
38
|
-
"@fluentui/react-utilities": "0.0.0-nightly-
|
35
|
+
"@fluentui/react-icons": "^2.0.196",
|
36
|
+
"@fluentui/react-shared-contexts": "0.0.0-nightly-20230322-0439.1",
|
37
|
+
"@fluentui/react-theme": "0.0.0-nightly-20230322-0439.1",
|
38
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20230322-0439.1",
|
39
39
|
"@griffel/react": "^1.5.2",
|
40
40
|
"@swc/helpers": "^0.4.14"
|
41
41
|
},
|
@@ -49,6 +49,7 @@
|
|
49
49
|
"exports": {
|
50
50
|
".": {
|
51
51
|
"types": "./dist/index.d.ts",
|
52
|
+
"node": "./lib-commonjs/index.js",
|
52
53
|
"import": "./lib/index.js",
|
53
54
|
"require": "./lib-commonjs/index.js"
|
54
55
|
},
|