@fluentui/react-badge 9.75.0-experimental.css-modules.20261031-810ab07afb.0 → 9.75.1-experimental.positioning-engine.20261103-19efe125d1.0
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/CHANGELOG.md +8 -8
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.styles.js +12 -4
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.styles.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.styles.raw.js +23 -9
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.styles.cjs +15 -4
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.styles.raw.cjs +23 -9
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.styles.raw.cjs.map +1 -1
- package/package.json +7 -10
- package/lib/components/Badge/Badge.module.css +0 -290
- package/lib/components/Badge/useBadgeStyles.styles.css.js +0 -24
- package/lib/components/Badge/useBadgeStyles.styles.css.js.map +0 -1
- package/lib/components/Badge/useBadgeStyles.styles.raw.css.js +0 -24
- package/lib/components/Badge/useBadgeStyles.styles.raw.css.js.map +0 -1
- package/lib/components/CounterBadge/CounterBadge.module.css +0 -12
- package/lib/components/CounterBadge/useCounterBadgeStyles.styles.css.js +0 -17
- package/lib/components/CounterBadge/useCounterBadgeStyles.styles.css.js.map +0 -1
- package/lib/components/CounterBadge/useCounterBadgeStyles.styles.raw.css.js +0 -17
- package/lib/components/CounterBadge/useCounterBadgeStyles.styles.raw.css.js.map +0 -1
- package/lib/components/PresenceBadge/PresenceBadge.module.css +0 -94
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.styles.css.js +0 -15
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.styles.css.js.map +0 -1
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.styles.raw.css.js +0 -15
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.styles.raw.css.js.map +0 -1
- package/lib-commonjs/components/Badge/Badge.module.css +0 -290
- package/lib-commonjs/components/Badge/useBadgeStyles.styles.css.cjs +0 -41
- package/lib-commonjs/components/Badge/useBadgeStyles.styles.css.cjs.map +0 -1
- package/lib-commonjs/components/Badge/useBadgeStyles.styles.raw.css.cjs +0 -41
- package/lib-commonjs/components/Badge/useBadgeStyles.styles.raw.css.cjs.map +0 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.module.css +0 -12
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.styles.css.cjs +0 -36
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.styles.css.cjs.map +0 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.styles.raw.css.cjs +0 -36
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.styles.raw.css.cjs.map +0 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.module.css +0 -94
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.styles.css.cjs +0 -34
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.styles.css.cjs.map +0 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.styles.raw.css.cjs +0 -34
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.styles.raw.css.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-badge
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Tue, 03 Nov 2026 14:18:19 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [9.75.
|
|
7
|
+
## [9.75.1-experimental.positioning-engine.20261103-19efe125d1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0)
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Tue, 03 Nov 2026 14:18:19 GMT
|
|
10
10
|
|
|
11
11
|
### Changes
|
|
12
12
|
|
|
13
|
-
- Release 9.75.
|
|
14
|
-
- Bump @fluentui/react-jsx-runtime to v9.75.
|
|
15
|
-
- Bump @fluentui/react-shared-contexts to v9.75.
|
|
16
|
-
- Bump @fluentui/react-theme to v9.75.
|
|
17
|
-
- Bump @fluentui/react-utilities to v9.75.
|
|
13
|
+
- Release 9.75.1-experimental.positioning-engine.20261103-19efe125d1 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
|
|
14
|
+
- Bump @fluentui/react-jsx-runtime to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
15
|
+
- Bump @fluentui/react-shared-contexts to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
16
|
+
- Bump @fluentui/react-theme to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
17
|
+
- Bump @fluentui/react-utilities to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
18
18
|
|
|
19
19
|
## [9.5.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.5.7)
|
|
20
20
|
|
|
@@ -6,6 +6,11 @@ export const presenceBadgeClassNames = {
|
|
|
6
6
|
root: 'fui-PresenceBadge',
|
|
7
7
|
icon: 'fui-PresenceBadge__icon'
|
|
8
8
|
};
|
|
9
|
+
const iconSizes = {
|
|
10
|
+
tiny: '6px',
|
|
11
|
+
large: '20px',
|
|
12
|
+
extraLarge: '28px'
|
|
13
|
+
};
|
|
9
14
|
const getIsBusy = status => {
|
|
10
15
|
if (status === 'busy' || status === 'do-not-disturb' || status === 'blocked') {
|
|
11
16
|
return true;
|
|
@@ -50,22 +55,25 @@ const useStyles = /*#__PURE__*/__styles({
|
|
|
50
55
|
a9b677: "f16dn6v3",
|
|
51
56
|
B2eet1l: "f1w2irj7",
|
|
52
57
|
B5pe6w7: "fab5kbq",
|
|
53
|
-
p4uzdd: "f1ms1d91"
|
|
58
|
+
p4uzdd: "f1ms1d91",
|
|
59
|
+
Bdewejq: "f1z0wljj"
|
|
54
60
|
},
|
|
55
61
|
large: {
|
|
56
62
|
Bubjx69: "f9ikmtg",
|
|
57
63
|
a9b677: "f64fuq3",
|
|
58
64
|
B5pe6w7: "f1vfi1yj",
|
|
59
|
-
p4uzdd: "f15s34gz"
|
|
65
|
+
p4uzdd: "f15s34gz",
|
|
66
|
+
Bdewejq: "frlrci1"
|
|
60
67
|
},
|
|
61
68
|
extraLarge: {
|
|
62
69
|
Bubjx69: "f9ikmtg",
|
|
63
70
|
a9b677: "f1w9dchk",
|
|
64
71
|
B5pe6w7: "f14efy9b",
|
|
65
|
-
p4uzdd: "fhipgdu"
|
|
72
|
+
p4uzdd: "fhipgdu",
|
|
73
|
+
Bdewejq: "fsb50rh"
|
|
66
74
|
}
|
|
67
75
|
}, {
|
|
68
|
-
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;}", ".f1w2irj7{background-clip:unset;}", ".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;}"]
|
|
76
|
+
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;}", ".f1w2irj7{background-clip:unset;}", ".fab5kbq svg{width:6px!important;}", ".f1ms1d91 svg{height:6px!important;}", ".f1z0wljj .fui-Icon-font{font-size:6px!important;}", ".f64fuq3{width:20px;}", ".f1vfi1yj svg{width:20px!important;}", ".f15s34gz svg{height:20px!important;}", ".frlrci1 .fui-Icon-font{font-size:20px!important;}", ".f1w9dchk{width:28px;}", ".f14efy9b svg{width:28px!important;}", ".fhipgdu svg{height:28px!important;}", ".fsb50rh .fui-Icon-font{font-size:28px!important;}"]
|
|
69
77
|
});
|
|
70
78
|
/**
|
|
71
79
|
* Applies style classnames to slots
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__resetStyles","__styles","mergeClasses","tokens","presenceBadgeClassNames","root","icon","getIsBusy","status","useRootClassName","useIconClassName","useStyles","statusBusy","sj55zd","statusAway","statusAvailable","statusOffline","statusOutOfOffice","statusUnknown","outOfOffice","outOfOfficeAvailable","outOfOfficeBusy","outOfOfficeUnknown","
|
|
1
|
+
{"version":3,"names":["__resetStyles","__styles","mergeClasses","tokens","presenceBadgeClassNames","root","icon","iconSizes","tiny","large","extraLarge","getIsBusy","status","useRootClassName","useIconClassName","useStyles","statusBusy","sj55zd","statusAway","statusAvailable","statusOffline","statusOutOfOffice","statusUnknown","outOfOffice","outOfOfficeAvailable","outOfOfficeBusy","outOfOfficeUnknown","Bubjx69","a9b677","B2eet1l","B5pe6w7","p4uzdd","Bdewejq","d","usePresenceBadgeStyles_unstable","state","rootClassName","iconClassName","styles","isBusy","className","size"],"sources":["usePresenceBadgeStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeResetStyles, makeStyles, mergeClasses } from \"@griffel/react\";\nimport { tokens } from \"@fluentui/react-theme\";\nexport const presenceBadgeClassNames = {\n root: 'fui-PresenceBadge',\n icon: 'fui-PresenceBadge__icon'\n};\nconst iconSizes = {\n tiny: '6px',\n large: '20px',\n extraLarge: '28px'\n};\nconst getIsBusy = (status)=>{\n if (status === 'busy' || status === 'do-not-disturb' || status === 'blocked') {\n return true;\n }\n return false;\n};\nconst useRootClassName = makeResetStyles({\n display: 'inline-flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: tokens.borderRadiusCircular,\n backgroundColor: tokens.colorNeutralBackground1,\n // The background color bleeds around the edge of the icon due to antialiasing on the svg and element background.\n // Since all presence icons have a border around the edge that is at least 1px wide*, we can inset the background\n // using padding and backgroundClip. The icon has margin: -1px to account for the padding.\n // (* except size=\"tiny\", where backgroundClip is unset)\n padding: '1px',\n backgroundClip: 'content-box'\n});\nconst useIconClassName = makeResetStyles({\n display: 'flex',\n margin: '-1px'\n});\nconst useStyles = makeStyles({\n statusBusy: {\n color: tokens.colorPaletteRedBackground3\n },\n statusAway: {\n color: tokens.colorPaletteMarigoldBackground3\n },\n statusAvailable: {\n color: tokens.colorPaletteLightGreenForeground3\n },\n statusOffline: {\n color: tokens.colorNeutralForeground3\n },\n statusOutOfOffice: {\n color: tokens.colorPaletteBerryForeground3\n },\n statusUnknown: {\n color: tokens.colorNeutralForeground3\n },\n outOfOffice: {\n color: tokens.colorNeutralBackground1\n },\n outOfOfficeAvailable: {\n color: tokens.colorPaletteLightGreenForeground3\n },\n outOfOfficeBusy: {\n color: tokens.colorPaletteRedBackground3\n },\n outOfOfficeUnknown: {\n color: tokens.colorNeutralForeground3\n },\n // Icons are not resizeable, and these sizes are currently missing\n // use `!important` to size the currently available icons to the missing ones\n //\n tiny: {\n aspectRatio: '1',\n width: iconSizes.tiny,\n backgroundClip: 'unset',\n '& svg': {\n width: `${iconSizes.tiny} !important`,\n height: `${iconSizes.tiny} !important`\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSizes.tiny} !important`\n }\n },\n large: {\n aspectRatio: '1',\n width: iconSizes.large,\n '& svg': {\n width: `${iconSizes.large} !important`,\n height: `${iconSizes.large} !important`\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSizes.large} !important`\n }\n },\n extraLarge: {\n aspectRatio: '1',\n width: iconSizes.extraLarge,\n '& svg': {\n width: `${iconSizes.extraLarge} !important`,\n height: `${iconSizes.extraLarge} !important`\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSizes.extraLarge} !important`\n }\n }\n});\n/**\n * Applies style classnames to slots\n */ export const usePresenceBadgeStyles_unstable = (state)=>{\n const rootClassName = useRootClassName();\n const iconClassName = useIconClassName();\n const styles = useStyles();\n const isBusy = getIsBusy(state.status);\n // eslint-disable-next-line react-hooks/immutability\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 === 'out-of-office' || state.status === 'away' || state.status === 'offline') && 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 // eslint-disable-next-line react-hooks/immutability\n state.icon.className = mergeClasses(presenceBadgeClassNames.icon, iconClassName, state.icon.className);\n }\n return state;\n};\n"],"mappings":"AAAA,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,IAAI0B,MAAM,CAACZ,kBAAkB,EAAES,KAAK,CAACM,IAAI,KAAK,MAAM,IAAIH,MAAM,CAAC9B,IAAI,EAAE2B,KAAK,CAACM,IAAI,KAAK,OAAO,IAAIH,MAAM,CAAC7B,KAAK,EAAE0B,KAAK,CAACM,IAAI,KAAK,aAAa,IAAIH,MAAM,CAAC5B,UAAU,EAAEyB,KAAK,CAAC9B,IAAI,CAACmC,SAAS,CAAC;EAC95B,IAAIL,KAAK,CAAC7B,IAAI,EAAE;IACZ;IACA6B,KAAK,CAAC7B,IAAI,CAACkC,SAAS,GAAGtC,YAAY,CAACE,uBAAuB,CAACE,IAAI,EAAE+B,aAAa,EAAEF,KAAK,CAAC7B,IAAI,CAACkC,SAAS,CAAC;EAC1G;EACA,OAAOL,KAAK;AAChB,CAAC","ignoreList":[]}
|
|
@@ -5,6 +5,11 @@ export const presenceBadgeClassNames = {
|
|
|
5
5
|
root: 'fui-PresenceBadge',
|
|
6
6
|
icon: 'fui-PresenceBadge__icon'
|
|
7
7
|
};
|
|
8
|
+
const iconSizes = {
|
|
9
|
+
tiny: '6px',
|
|
10
|
+
large: '20px',
|
|
11
|
+
extraLarge: '28px'
|
|
12
|
+
};
|
|
8
13
|
const getIsBusy = (status)=>{
|
|
9
14
|
if (status === 'busy' || status === 'do-not-disturb' || status === 'blocked') {
|
|
10
15
|
return true;
|
|
@@ -65,27 +70,36 @@ const useStyles = makeStyles({
|
|
|
65
70
|
//
|
|
66
71
|
tiny: {
|
|
67
72
|
aspectRatio: '1',
|
|
68
|
-
width:
|
|
73
|
+
width: iconSizes.tiny,
|
|
69
74
|
backgroundClip: 'unset',
|
|
70
75
|
'& svg': {
|
|
71
|
-
width:
|
|
72
|
-
height:
|
|
76
|
+
width: `${iconSizes.tiny} !important`,
|
|
77
|
+
height: `${iconSizes.tiny} !important`
|
|
78
|
+
},
|
|
79
|
+
'& .fui-Icon-font': {
|
|
80
|
+
fontSize: `${iconSizes.tiny} !important`
|
|
73
81
|
}
|
|
74
82
|
},
|
|
75
83
|
large: {
|
|
76
84
|
aspectRatio: '1',
|
|
77
|
-
width:
|
|
85
|
+
width: iconSizes.large,
|
|
78
86
|
'& svg': {
|
|
79
|
-
width:
|
|
80
|
-
height:
|
|
87
|
+
width: `${iconSizes.large} !important`,
|
|
88
|
+
height: `${iconSizes.large} !important`
|
|
89
|
+
},
|
|
90
|
+
'& .fui-Icon-font': {
|
|
91
|
+
fontSize: `${iconSizes.large} !important`
|
|
81
92
|
}
|
|
82
93
|
},
|
|
83
94
|
extraLarge: {
|
|
84
95
|
aspectRatio: '1',
|
|
85
|
-
width:
|
|
96
|
+
width: iconSizes.extraLarge,
|
|
86
97
|
'& svg': {
|
|
87
|
-
width:
|
|
88
|
-
height:
|
|
98
|
+
width: `${iconSizes.extraLarge} !important`,
|
|
99
|
+
height: `${iconSizes.extraLarge} !important`
|
|
100
|
+
},
|
|
101
|
+
'& .fui-Icon-font': {
|
|
102
|
+
fontSize: `${iconSizes.extraLarge} !important`
|
|
89
103
|
}
|
|
90
104
|
}
|
|
91
105
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PresenceBadge/usePresenceBadgeStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { BadgeSlots } from '../Badge/Badge.types';\nimport type { PresenceBadgeState, PresenceBadgeStatus } from './PresenceBadge.types';\n\nexport const presenceBadgeClassNames: SlotClassNames<BadgeSlots> = {\n root: 'fui-PresenceBadge',\n icon: 'fui-PresenceBadge__icon',\n};\n\nconst getIsBusy = (status: PresenceBadgeStatus): boolean => {\n if (status === 'busy' || status === 'do-not-disturb' || status === 'blocked') {\n return true;\n }\n\n return false;\n};\n\nconst useRootClassName = makeResetStyles({\n display: 'inline-flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n justifyContent: 'center',\n\n borderRadius: tokens.borderRadiusCircular,\n backgroundColor: tokens.colorNeutralBackground1,\n\n // The background color bleeds around the edge of the icon due to antialiasing on the svg and element background.\n // Since all presence icons have a border around the edge that is at least 1px wide*, we can inset the background\n // using padding and backgroundClip. The icon has margin: -1px to account for the padding.\n // (* except size=\"tiny\", where backgroundClip is unset)\n padding: '1px',\n backgroundClip: 'content-box',\n});\n\nconst useIconClassName = makeResetStyles({\n display: 'flex',\n margin: '-1px',\n});\n\nconst useStyles = makeStyles({\n statusBusy: {\n color: tokens.colorPaletteRedBackground3,\n },\n statusAway: {\n color: tokens.colorPaletteMarigoldBackground3,\n },\n statusAvailable: {\n color: tokens.colorPaletteLightGreenForeground3,\n },\n statusOffline: {\n color: tokens.colorNeutralForeground3,\n },\n statusOutOfOffice: {\n color: tokens.colorPaletteBerryForeground3,\n },\n statusUnknown: {\n color: tokens.colorNeutralForeground3,\n },\n outOfOffice: {\n color: tokens.colorNeutralBackground1,\n },\n outOfOfficeAvailable: {\n color: tokens.colorPaletteLightGreenForeground3,\n },\n outOfOfficeBusy: {\n color: tokens.colorPaletteRedBackground3,\n },\n outOfOfficeUnknown: {\n color: tokens.colorNeutralForeground3,\n },\n\n // Icons are not resizeable, and these sizes are currently missing\n // use `!important` to size the currently available icons to the missing ones\n //\n tiny: {\n aspectRatio: '1',\n width:
|
|
1
|
+
{"version":3,"sources":["../../../src/components/PresenceBadge/usePresenceBadgeStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { BadgeSlots } from '../Badge/Badge.types';\nimport type { PresenceBadgeState, PresenceBadgeStatus } from './PresenceBadge.types';\n\nexport const presenceBadgeClassNames: SlotClassNames<BadgeSlots> = {\n root: 'fui-PresenceBadge',\n icon: 'fui-PresenceBadge__icon',\n};\n\nconst iconSizes = {\n tiny: '6px',\n large: '20px',\n extraLarge: '28px',\n};\n\nconst getIsBusy = (status: PresenceBadgeStatus): boolean => {\n if (status === 'busy' || status === 'do-not-disturb' || status === 'blocked') {\n return true;\n }\n\n return false;\n};\n\nconst useRootClassName = makeResetStyles({\n display: 'inline-flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n justifyContent: 'center',\n\n borderRadius: tokens.borderRadiusCircular,\n backgroundColor: tokens.colorNeutralBackground1,\n\n // The background color bleeds around the edge of the icon due to antialiasing on the svg and element background.\n // Since all presence icons have a border around the edge that is at least 1px wide*, we can inset the background\n // using padding and backgroundClip. The icon has margin: -1px to account for the padding.\n // (* except size=\"tiny\", where backgroundClip is unset)\n padding: '1px',\n backgroundClip: 'content-box',\n});\n\nconst useIconClassName = makeResetStyles({\n display: 'flex',\n margin: '-1px',\n});\n\nconst useStyles = makeStyles({\n statusBusy: {\n color: tokens.colorPaletteRedBackground3,\n },\n statusAway: {\n color: tokens.colorPaletteMarigoldBackground3,\n },\n statusAvailable: {\n color: tokens.colorPaletteLightGreenForeground3,\n },\n statusOffline: {\n color: tokens.colorNeutralForeground3,\n },\n statusOutOfOffice: {\n color: tokens.colorPaletteBerryForeground3,\n },\n statusUnknown: {\n color: tokens.colorNeutralForeground3,\n },\n outOfOffice: {\n color: tokens.colorNeutralBackground1,\n },\n outOfOfficeAvailable: {\n color: tokens.colorPaletteLightGreenForeground3,\n },\n outOfOfficeBusy: {\n color: tokens.colorPaletteRedBackground3,\n },\n outOfOfficeUnknown: {\n color: tokens.colorNeutralForeground3,\n },\n\n // Icons are not resizeable, and these sizes are currently missing\n // use `!important` to size the currently available icons to the missing ones\n //\n tiny: {\n aspectRatio: '1',\n width: iconSizes.tiny,\n backgroundClip: 'unset', // tiny icons have a border less than 1px wide, and can't use the backgroundClip fix\n '& svg': {\n width: `${iconSizes.tiny} !important`,\n height: `${iconSizes.tiny} !important`,\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSizes.tiny} !important`,\n },\n },\n large: {\n aspectRatio: '1',\n width: iconSizes.large,\n '& svg': {\n width: `${iconSizes.large} !important`,\n height: `${iconSizes.large} !important`,\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSizes.large} !important`,\n },\n },\n extraLarge: {\n aspectRatio: '1',\n width: iconSizes.extraLarge,\n '& svg': {\n width: `${iconSizes.extraLarge} !important`,\n height: `${iconSizes.extraLarge} !important`,\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSizes.extraLarge} !important`,\n },\n },\n});\n\n/**\n * Applies style classnames to slots\n */\nexport const usePresenceBadgeStyles_unstable = (state: PresenceBadgeState): PresenceBadgeState => {\n const rootClassName = useRootClassName();\n const iconClassName = useIconClassName();\n const styles = useStyles();\n const isBusy = getIsBusy(state.status);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n presenceBadgeClassNames.root,\n rootClassName,\n isBusy && styles.statusBusy,\n state.status === 'away' && styles.statusAway,\n state.status === 'available' && styles.statusAvailable,\n state.status === 'offline' && styles.statusOffline,\n state.status === 'out-of-office' && styles.statusOutOfOffice,\n state.status === 'unknown' && styles.statusUnknown,\n state.outOfOffice && styles.outOfOffice,\n state.outOfOffice && state.status === 'available' && styles.outOfOfficeAvailable,\n state.outOfOffice && isBusy && styles.outOfOfficeBusy,\n state.outOfOffice &&\n (state.status === 'out-of-office' || state.status === 'away' || state.status === 'offline') &&\n styles.statusOutOfOffice,\n state.outOfOffice && state.status === 'unknown' && styles.outOfOfficeUnknown,\n state.size === 'tiny' && styles.tiny,\n state.size === 'large' && styles.large,\n state.size === 'extra-large' && styles.extraLarge,\n state.root.className,\n );\n\n if (state.icon) {\n // eslint-disable-next-line react-hooks/immutability\n state.icon.className = mergeClasses(presenceBadgeClassNames.icon, iconClassName, state.icon.className);\n }\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","tokens","presenceBadgeClassNames","root","icon","iconSizes","tiny","large","extraLarge","getIsBusy","status","useRootClassName","display","boxSizing","alignItems","justifyContent","borderRadius","borderRadiusCircular","backgroundColor","colorNeutralBackground1","padding","backgroundClip","useIconClassName","margin","useStyles","statusBusy","color","colorPaletteRedBackground3","statusAway","colorPaletteMarigoldBackground3","statusAvailable","colorPaletteLightGreenForeground3","statusOffline","colorNeutralForeground3","statusOutOfOffice","colorPaletteBerryForeground3","statusUnknown","outOfOffice","outOfOfficeAvailable","outOfOfficeBusy","outOfOfficeUnknown","aspectRatio","width","height","fontSize","usePresenceBadgeStyles_unstable","state","rootClassName","iconClassName","styles","isBusy","className","size"],"mappings":"AAAA;AAEA,SAASA,eAAe,EAAEC,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAC3E,SAASC,MAAM,QAAQ,wBAAwB;AAK/C,OAAO,MAAMC,0BAAsD;IACjEC,MAAM;IACNC,MAAM;AACR,EAAE;AAEF,MAAMC,YAAY;IAChBC,MAAM;IACNC,OAAO;IACPC,YAAY;AACd;AAEA,MAAMC,YAAY,CAACC;IACjB,IAAIA,WAAW,UAAUA,WAAW,oBAAoBA,WAAW,WAAW;QAC5E,OAAO;IACT;IAEA,OAAO;AACT;AAEA,MAAMC,mBAAmBb,gBAAgB;IACvCc,SAAS;IACTC,WAAW;IACXC,YAAY;IACZC,gBAAgB;IAEhBC,cAAcf,OAAOgB,oBAAoB;IACzCC,iBAAiBjB,OAAOkB,uBAAuB;IAE/C,iHAAiH;IACjH,iHAAiH;IACjH,0FAA0F;IAC1F,wDAAwD;IACxDC,SAAS;IACTC,gBAAgB;AAClB;AAEA,MAAMC,mBAAmBxB,gBAAgB;IACvCc,SAAS;IACTW,QAAQ;AACV;AAEA,MAAMC,YAAYzB,WAAW;IAC3B0B,YAAY;QACVC,OAAOzB,OAAO0B,0BAA0B;IAC1C;IACAC,YAAY;QACVF,OAAOzB,OAAO4B,+BAA+B;IAC/C;IACAC,iBAAiB;QACfJ,OAAOzB,OAAO8B,iCAAiC;IACjD;IACAC,eAAe;QACbN,OAAOzB,OAAOgC,uBAAuB;IACvC;IACAC,mBAAmB;QACjBR,O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ceBadgeClassNames = {
|
|
|
22
22
|
root: 'fui-PresenceBadge',
|
|
23
23
|
icon: 'fui-PresenceBadge__icon'
|
|
24
24
|
};
|
|
25
|
+
const iconSizes = {
|
|
26
|
+
tiny: '6px',
|
|
27
|
+
large: '20px',
|
|
28
|
+
extraLarge: '28px'
|
|
29
|
+
};
|
|
25
30
|
const getIsBusy = (status)=>{
|
|
26
31
|
if (status === 'busy' || status === 'do-not-disturb' || status === 'blocked') {
|
|
27
32
|
return true;
|
|
@@ -70,19 +75,22 @@ const useStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
|
70
75
|
a9b677: "f16dn6v3",
|
|
71
76
|
B2eet1l: "f1w2irj7",
|
|
72
77
|
B5pe6w7: "fab5kbq",
|
|
73
|
-
p4uzdd: "f1ms1d91"
|
|
78
|
+
p4uzdd: "f1ms1d91",
|
|
79
|
+
Bdewejq: "f1z0wljj"
|
|
74
80
|
},
|
|
75
81
|
large: {
|
|
76
82
|
Bubjx69: "f9ikmtg",
|
|
77
83
|
a9b677: "f64fuq3",
|
|
78
84
|
B5pe6w7: "f1vfi1yj",
|
|
79
|
-
p4uzdd: "f15s34gz"
|
|
85
|
+
p4uzdd: "f15s34gz",
|
|
86
|
+
Bdewejq: "frlrci1"
|
|
80
87
|
},
|
|
81
88
|
extraLarge: {
|
|
82
89
|
Bubjx69: "f9ikmtg",
|
|
83
90
|
a9b677: "f1w9dchk",
|
|
84
91
|
B5pe6w7: "f14efy9b",
|
|
85
|
-
p4uzdd: "fhipgdu"
|
|
92
|
+
p4uzdd: "fhipgdu",
|
|
93
|
+
Bdewejq: "fsb50rh"
|
|
86
94
|
}
|
|
87
95
|
}, {
|
|
88
96
|
d: [
|
|
@@ -97,12 +105,15 @@ const useStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
|
97
105
|
".f1w2irj7{background-clip:unset;}",
|
|
98
106
|
".fab5kbq svg{width:6px!important;}",
|
|
99
107
|
".f1ms1d91 svg{height:6px!important;}",
|
|
108
|
+
".f1z0wljj .fui-Icon-font{font-size:6px!important;}",
|
|
100
109
|
".f64fuq3{width:20px;}",
|
|
101
110
|
".f1vfi1yj svg{width:20px!important;}",
|
|
102
111
|
".f15s34gz svg{height:20px!important;}",
|
|
112
|
+
".frlrci1 .fui-Icon-font{font-size:20px!important;}",
|
|
103
113
|
".f1w9dchk{width:28px;}",
|
|
104
114
|
".f14efy9b svg{width:28px!important;}",
|
|
105
|
-
".fhipgdu svg{height:28px!important;}"
|
|
115
|
+
".fhipgdu svg{height:28px!important;}",
|
|
116
|
+
".fsb50rh .fui-Icon-font{font-size:28px!important;}"
|
|
106
117
|
]
|
|
107
118
|
});
|
|
108
119
|
const usePresenceBadgeStyles_unstable = (state)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["usePresenceBadgeStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeResetStyles, makeStyles, 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 = makeResetStyles({\n display: 'inline-flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: tokens.borderRadiusCircular,\n backgroundColor: tokens.colorNeutralBackground1,\n // The background color bleeds around the edge of the icon due to antialiasing on the svg and element background.\n // Since all presence icons have a border around the edge that is at least 1px wide*, we can inset the background\n // using padding and backgroundClip. The icon has margin: -1px to account for the padding.\n // (* except size=\"tiny\", where backgroundClip is unset)\n padding: '1px',\n backgroundClip: 'content-box'\n});\nconst useIconClassName = makeResetStyles({\n display: 'flex',\n margin: '-1px'\n});\nconst useStyles = makeStyles({\n statusBusy: {\n color: tokens.colorPaletteRedBackground3\n },\n statusAway: {\n color: tokens.colorPaletteMarigoldBackground3\n },\n statusAvailable: {\n color: tokens.colorPaletteLightGreenForeground3\n },\n statusOffline: {\n color: tokens.colorNeutralForeground3\n },\n statusOutOfOffice: {\n color: tokens.colorPaletteBerryForeground3\n },\n statusUnknown: {\n color: tokens.colorNeutralForeground3\n },\n outOfOffice: {\n color: tokens.colorNeutralBackground1\n },\n outOfOfficeAvailable: {\n color: tokens.colorPaletteLightGreenForeground3\n },\n outOfOfficeBusy: {\n color: tokens.colorPaletteRedBackground3\n },\n outOfOfficeUnknown: {\n color: tokens.colorNeutralForeground3\n },\n // Icons are not resizeable, and these sizes are currently missing\n // use `!important` to size the currently available icons to the missing ones\n //\n tiny: {\n aspectRatio: '1',\n width:
|
|
1
|
+
{"version":3,"sources":["usePresenceBadgeStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeResetStyles, makeStyles, mergeClasses } from \"@griffel/react\";\nimport { tokens } from \"@fluentui/react-theme\";\nexport const presenceBadgeClassNames = {\n root: 'fui-PresenceBadge',\n icon: 'fui-PresenceBadge__icon'\n};\nconst iconSizes = {\n tiny: '6px',\n large: '20px',\n extraLarge: '28px'\n};\nconst getIsBusy = (status)=>{\n if (status === 'busy' || status === 'do-not-disturb' || status === 'blocked') {\n return true;\n }\n return false;\n};\nconst useRootClassName = makeResetStyles({\n display: 'inline-flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: tokens.borderRadiusCircular,\n backgroundColor: tokens.colorNeutralBackground1,\n // The background color bleeds around the edge of the icon due to antialiasing on the svg and element background.\n // Since all presence icons have a border around the edge that is at least 1px wide*, we can inset the background\n // using padding and backgroundClip. The icon has margin: -1px to account for the padding.\n // (* except size=\"tiny\", where backgroundClip is unset)\n padding: '1px',\n backgroundClip: 'content-box'\n});\nconst useIconClassName = makeResetStyles({\n display: 'flex',\n margin: '-1px'\n});\nconst useStyles = makeStyles({\n statusBusy: {\n color: tokens.colorPaletteRedBackground3\n },\n statusAway: {\n color: tokens.colorPaletteMarigoldBackground3\n },\n statusAvailable: {\n color: tokens.colorPaletteLightGreenForeground3\n },\n statusOffline: {\n color: tokens.colorNeutralForeground3\n },\n statusOutOfOffice: {\n color: tokens.colorPaletteBerryForeground3\n },\n statusUnknown: {\n color: tokens.colorNeutralForeground3\n },\n outOfOffice: {\n color: tokens.colorNeutralBackground1\n },\n outOfOfficeAvailable: {\n color: tokens.colorPaletteLightGreenForeground3\n },\n outOfOfficeBusy: {\n color: tokens.colorPaletteRedBackground3\n },\n outOfOfficeUnknown: {\n color: tokens.colorNeutralForeground3\n },\n // Icons are not resizeable, and these sizes are currently missing\n // use `!important` to size the currently available icons to the missing ones\n //\n tiny: {\n aspectRatio: '1',\n width: iconSizes.tiny,\n backgroundClip: 'unset',\n '& svg': {\n width: `${iconSizes.tiny} !important`,\n height: `${iconSizes.tiny} !important`\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSizes.tiny} !important`\n }\n },\n large: {\n aspectRatio: '1',\n width: iconSizes.large,\n '& svg': {\n width: `${iconSizes.large} !important`,\n height: `${iconSizes.large} !important`\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSizes.large} !important`\n }\n },\n extraLarge: {\n aspectRatio: '1',\n width: iconSizes.extraLarge,\n '& svg': {\n width: `${iconSizes.extraLarge} !important`,\n height: `${iconSizes.extraLarge} !important`\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSizes.extraLarge} !important`\n }\n }\n});\n/**\n * Applies style classnames to slots\n */ export const usePresenceBadgeStyles_unstable = (state)=>{\n const rootClassName = useRootClassName();\n const iconClassName = useIconClassName();\n const styles = useStyles();\n const isBusy = getIsBusy(state.status);\n // eslint-disable-next-line react-hooks/immutability\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 === 'out-of-office' || state.status === 'away' || state.status === 'offline') && 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 // eslint-disable-next-line react-hooks/immutability\n state.icon.className = mergeClasses(presenceBadgeClassNames.icon, iconClassName, state.icon.className);\n }\n return state;\n};\n"],"names":["__resetStyles","__styles","mergeClasses","tokens","presenceBadgeClassNames","root","icon","iconSizes","tiny","large","extraLarge","getIsBusy","status","useRootClassName","useIconClassName","useStyles","statusBusy","sj55zd","statusAway","statusAvailable","statusOffline","statusOutOfOffice","statusUnknown","outOfOffice","outOfOfficeAvailable","outOfOfficeBusy","outOfOfficeUnknown","Bubjx69","a9b677","B2eet1l","B5pe6w7","p4uzdd","Bdewejq","d","usePresenceBadgeStyles_unstable","state","rootClassName","iconClassName","styles","isBusy","className","size"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAGCI,uBAAuB;;;;eAwGnB8B,+BAA+B;;;uBA1GU,gBAAgB;AAEnE,gCAAgC;IACnC7B,IAAI,EAAE,mBAAmB;IACzBC,IAAI,EAAE;AACV,CAAC;AACD,MAAMC,SAAS,GAAG;IACdC,IAAI,EAAE,KAAK;IACXC,KAAK,EAAE,MAAM;IACbC,UAAU,EAAE;AAChB,CAAC;AACD,MAAMC,SAAS,IAAIC,MAAM,IAAG;IACxB,IAAIA,MAAM,KAAK,MAAM,IAAIA,MAAM,KAAK,gBAAgB,IAAIA,MAAM,KAAK,SAAS,EAAE;QAC1E,OAAO,IAAI;IACf;IACA,OAAO,KAAK;AAChB,CAAC;AACD,MAAMC,gBAAgB,GAAA,WAAA,OAAGb,oBAAA,EAAA,WAAA,MAAA;IAAA;CAaxB,CAAC;AACF,MAAMc,gBAAgB,GAAA,WAA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,KAAK,EAAE0B,KAAK,CAACM,IAAI,KAAK,aAAa,IAAIH,MAAM,CAAC5B,UAAU,EAAEyB,KAAK,CAAC9B,IAAI,CAACmC,SAAS,CAAC;IAC95B,IAAIL,KAAK,CAAC7B,IAAI,EAAE;QACZ,oDAAA;QACA6B,KAAK,CAAC7B,IAAI,CAACkC,SAAS,OAAGtC,mBAAY,EAACE,uBAAuB,CAACE,IAAI,EAAE+B,aAAa,EAAEF,KAAK,CAAC7B,IAAI,CAACkC,SAAS,CAAC;IAC1G;IACA,OAAOL,KAAK;AAChB,CAAC"}
|
|
@@ -23,6 +23,11 @@ const presenceBadgeClassNames = {
|
|
|
23
23
|
root: 'fui-PresenceBadge',
|
|
24
24
|
icon: 'fui-PresenceBadge__icon'
|
|
25
25
|
};
|
|
26
|
+
const iconSizes = {
|
|
27
|
+
tiny: '6px',
|
|
28
|
+
large: '20px',
|
|
29
|
+
extraLarge: '28px'
|
|
30
|
+
};
|
|
26
31
|
const getIsBusy = (status)=>{
|
|
27
32
|
if (status === 'busy' || status === 'do-not-disturb' || status === 'blocked') {
|
|
28
33
|
return true;
|
|
@@ -83,27 +88,36 @@ const useStyles = (0, _react.makeStyles)({
|
|
|
83
88
|
//
|
|
84
89
|
tiny: {
|
|
85
90
|
aspectRatio: '1',
|
|
86
|
-
width:
|
|
91
|
+
width: iconSizes.tiny,
|
|
87
92
|
backgroundClip: 'unset',
|
|
88
93
|
'& svg': {
|
|
89
|
-
width:
|
|
90
|
-
height:
|
|
94
|
+
width: `${iconSizes.tiny} !important`,
|
|
95
|
+
height: `${iconSizes.tiny} !important`
|
|
96
|
+
},
|
|
97
|
+
'& .fui-Icon-font': {
|
|
98
|
+
fontSize: `${iconSizes.tiny} !important`
|
|
91
99
|
}
|
|
92
100
|
},
|
|
93
101
|
large: {
|
|
94
102
|
aspectRatio: '1',
|
|
95
|
-
width:
|
|
103
|
+
width: iconSizes.large,
|
|
96
104
|
'& svg': {
|
|
97
|
-
width:
|
|
98
|
-
height:
|
|
105
|
+
width: `${iconSizes.large} !important`,
|
|
106
|
+
height: `${iconSizes.large} !important`
|
|
107
|
+
},
|
|
108
|
+
'& .fui-Icon-font': {
|
|
109
|
+
fontSize: `${iconSizes.large} !important`
|
|
99
110
|
}
|
|
100
111
|
},
|
|
101
112
|
extraLarge: {
|
|
102
113
|
aspectRatio: '1',
|
|
103
|
-
width:
|
|
114
|
+
width: iconSizes.extraLarge,
|
|
104
115
|
'& svg': {
|
|
105
|
-
width:
|
|
106
|
-
height:
|
|
116
|
+
width: `${iconSizes.extraLarge} !important`,
|
|
117
|
+
height: `${iconSizes.extraLarge} !important`
|
|
118
|
+
},
|
|
119
|
+
'& .fui-Icon-font': {
|
|
120
|
+
fontSize: `${iconSizes.extraLarge} !important`
|
|
107
121
|
}
|
|
108
122
|
}
|
|
109
123
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PresenceBadge/usePresenceBadgeStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { BadgeSlots } from '../Badge/Badge.types';\nimport type { PresenceBadgeState, PresenceBadgeStatus } from './PresenceBadge.types';\n\nexport const presenceBadgeClassNames: SlotClassNames<BadgeSlots> = {\n root: 'fui-PresenceBadge',\n icon: 'fui-PresenceBadge__icon',\n};\n\nconst getIsBusy = (status: PresenceBadgeStatus): boolean => {\n if (status === 'busy' || status === 'do-not-disturb' || status === 'blocked') {\n return true;\n }\n\n return false;\n};\n\nconst useRootClassName = makeResetStyles({\n display: 'inline-flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n justifyContent: 'center',\n\n borderRadius: tokens.borderRadiusCircular,\n backgroundColor: tokens.colorNeutralBackground1,\n\n // The background color bleeds around the edge of the icon due to antialiasing on the svg and element background.\n // Since all presence icons have a border around the edge that is at least 1px wide*, we can inset the background\n // using padding and backgroundClip. The icon has margin: -1px to account for the padding.\n // (* except size=\"tiny\", where backgroundClip is unset)\n padding: '1px',\n backgroundClip: 'content-box',\n});\n\nconst useIconClassName = makeResetStyles({\n display: 'flex',\n margin: '-1px',\n});\n\nconst useStyles = makeStyles({\n statusBusy: {\n color: tokens.colorPaletteRedBackground3,\n },\n statusAway: {\n color: tokens.colorPaletteMarigoldBackground3,\n },\n statusAvailable: {\n color: tokens.colorPaletteLightGreenForeground3,\n },\n statusOffline: {\n color: tokens.colorNeutralForeground3,\n },\n statusOutOfOffice: {\n color: tokens.colorPaletteBerryForeground3,\n },\n statusUnknown: {\n color: tokens.colorNeutralForeground3,\n },\n outOfOffice: {\n color: tokens.colorNeutralBackground1,\n },\n outOfOfficeAvailable: {\n color: tokens.colorPaletteLightGreenForeground3,\n },\n outOfOfficeBusy: {\n color: tokens.colorPaletteRedBackground3,\n },\n outOfOfficeUnknown: {\n color: tokens.colorNeutralForeground3,\n },\n\n // Icons are not resizeable, and these sizes are currently missing\n // use `!important` to size the currently available icons to the missing ones\n //\n tiny: {\n aspectRatio: '1',\n width:
|
|
1
|
+
{"version":3,"sources":["../../../src/components/PresenceBadge/usePresenceBadgeStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { BadgeSlots } from '../Badge/Badge.types';\nimport type { PresenceBadgeState, PresenceBadgeStatus } from './PresenceBadge.types';\n\nexport const presenceBadgeClassNames: SlotClassNames<BadgeSlots> = {\n root: 'fui-PresenceBadge',\n icon: 'fui-PresenceBadge__icon',\n};\n\nconst iconSizes = {\n tiny: '6px',\n large: '20px',\n extraLarge: '28px',\n};\n\nconst getIsBusy = (status: PresenceBadgeStatus): boolean => {\n if (status === 'busy' || status === 'do-not-disturb' || status === 'blocked') {\n return true;\n }\n\n return false;\n};\n\nconst useRootClassName = makeResetStyles({\n display: 'inline-flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n justifyContent: 'center',\n\n borderRadius: tokens.borderRadiusCircular,\n backgroundColor: tokens.colorNeutralBackground1,\n\n // The background color bleeds around the edge of the icon due to antialiasing on the svg and element background.\n // Since all presence icons have a border around the edge that is at least 1px wide*, we can inset the background\n // using padding and backgroundClip. The icon has margin: -1px to account for the padding.\n // (* except size=\"tiny\", where backgroundClip is unset)\n padding: '1px',\n backgroundClip: 'content-box',\n});\n\nconst useIconClassName = makeResetStyles({\n display: 'flex',\n margin: '-1px',\n});\n\nconst useStyles = makeStyles({\n statusBusy: {\n color: tokens.colorPaletteRedBackground3,\n },\n statusAway: {\n color: tokens.colorPaletteMarigoldBackground3,\n },\n statusAvailable: {\n color: tokens.colorPaletteLightGreenForeground3,\n },\n statusOffline: {\n color: tokens.colorNeutralForeground3,\n },\n statusOutOfOffice: {\n color: tokens.colorPaletteBerryForeground3,\n },\n statusUnknown: {\n color: tokens.colorNeutralForeground3,\n },\n outOfOffice: {\n color: tokens.colorNeutralBackground1,\n },\n outOfOfficeAvailable: {\n color: tokens.colorPaletteLightGreenForeground3,\n },\n outOfOfficeBusy: {\n color: tokens.colorPaletteRedBackground3,\n },\n outOfOfficeUnknown: {\n color: tokens.colorNeutralForeground3,\n },\n\n // Icons are not resizeable, and these sizes are currently missing\n // use `!important` to size the currently available icons to the missing ones\n //\n tiny: {\n aspectRatio: '1',\n width: iconSizes.tiny,\n backgroundClip: 'unset', // tiny icons have a border less than 1px wide, and can't use the backgroundClip fix\n '& svg': {\n width: `${iconSizes.tiny} !important`,\n height: `${iconSizes.tiny} !important`,\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSizes.tiny} !important`,\n },\n },\n large: {\n aspectRatio: '1',\n width: iconSizes.large,\n '& svg': {\n width: `${iconSizes.large} !important`,\n height: `${iconSizes.large} !important`,\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSizes.large} !important`,\n },\n },\n extraLarge: {\n aspectRatio: '1',\n width: iconSizes.extraLarge,\n '& svg': {\n width: `${iconSizes.extraLarge} !important`,\n height: `${iconSizes.extraLarge} !important`,\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSizes.extraLarge} !important`,\n },\n },\n});\n\n/**\n * Applies style classnames to slots\n */\nexport const usePresenceBadgeStyles_unstable = (state: PresenceBadgeState): PresenceBadgeState => {\n const rootClassName = useRootClassName();\n const iconClassName = useIconClassName();\n const styles = useStyles();\n const isBusy = getIsBusy(state.status);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n presenceBadgeClassNames.root,\n rootClassName,\n isBusy && styles.statusBusy,\n state.status === 'away' && styles.statusAway,\n state.status === 'available' && styles.statusAvailable,\n state.status === 'offline' && styles.statusOffline,\n state.status === 'out-of-office' && styles.statusOutOfOffice,\n state.status === 'unknown' && styles.statusUnknown,\n state.outOfOffice && styles.outOfOffice,\n state.outOfOffice && state.status === 'available' && styles.outOfOfficeAvailable,\n state.outOfOffice && isBusy && styles.outOfOfficeBusy,\n state.outOfOffice &&\n (state.status === 'out-of-office' || state.status === 'away' || state.status === 'offline') &&\n styles.statusOutOfOffice,\n state.outOfOffice && state.status === 'unknown' && styles.outOfOfficeUnknown,\n state.size === 'tiny' && styles.tiny,\n state.size === 'large' && styles.large,\n state.size === 'extra-large' && styles.extraLarge,\n state.root.className,\n );\n\n if (state.icon) {\n // eslint-disable-next-line react-hooks/immutability\n state.icon.className = mergeClasses(presenceBadgeClassNames.icon, iconClassName, state.icon.className);\n }\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","tokens","presenceBadgeClassNames","root","icon","iconSizes","tiny","large","extraLarge","getIsBusy","status","useRootClassName","display","boxSizing","alignItems","justifyContent","borderRadius","borderRadiusCircular","backgroundColor","colorNeutralBackground1","padding","backgroundClip","useIconClassName","margin","useStyles","statusBusy","color","colorPaletteRedBackground3","statusAway","colorPaletteMarigoldBackground3","statusAvailable","colorPaletteLightGreenForeground3","statusOffline","colorNeutralForeground3","statusOutOfOffice","colorPaletteBerryForeground3","statusUnknown","outOfOffice","outOfOfficeAvailable","outOfOfficeBusy","outOfOfficeUnknown","aspectRatio","width","height","fontSize","usePresenceBadgeStyles_unstable","state","rootClassName","iconClassName","styles","isBusy","className","size"],"mappings":"AAAA;;;;;;;;;;;;QAQaI;;;QAmHA2C;;;;uBAzH6C,iBAAiB;4BACpD,wBAAwB;AAKxC,gCAA4D;IACjE1C,MAAM;IACNC,MAAM;AACR,EAAE;AAEF,MAAMC,YAAY;IAChBC,MAAM;IACNC,OAAO;IACPC,YAAY;AACd;AAEA,MAAMC,YAAY,CAACC;IACjB,IAAIA,WAAW,UAAUA,WAAW,oBAAoBA,WAAW,WAAW;QAC5E,OAAO;IACT;IAEA,OAAO;AACT;AAEA,MAAMC,uBAAmBb,sBAAAA,EAAgB;IACvCc,SAAS;IACTC,WAAW;IACXC,YAAY;IACZC,gBAAgB;IAEhBC,cAAcf,kBAAAA,CAAOgB,oBAAoB;IACzCC,iBAAiBjB,kBAAAA,CAAOkB,uBAAuB;IAE/C,iHAAiH;IACjH,iHAAiH;IACjH,0FAA0F;IAC1F,wDAAwD;IACxDC,SAAS;IACTC,gBAAgB;AAClB;AAEA,MAAMC,uBAAmBxB,sBAAAA,EAAgB;IACvCc,SAAS;IACTW,QAAQ;AACV;AAEA,MAAMC,gBAAYzB,iBAAAA,EAAW;IAC3B0B,YAAY;QACVC,OAAOzB,kBAAAA,CAAO0B,0BAA0B;IAC1C;IACAC,YAAY;QACVF,OAAOzB,kBAAAA,CAAO4B,+BAA+B;IAC/C;IACAC,iBAAiB;QACfJ,OAAOzB,kBAAAA,CAAO8B,iCAAiC;IACjD;IACAC,eAAe;QACbN,OAAOzB,kBAAAA,CAAOgC,uBAAuB;IACvC;IACAC,mBAAmB;QACjBR,OAAOzB,kBAAAA,CAAOkC,4BAA4B;IAC5C;IACAC,eAAe;QACbV,OAAOzB,kBAAAA,CAAOgC,uBAAuB;IACvC;IACAI,aAAa;Q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
3
|
-
"version": "9.75.
|
|
3
|
+
"version": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
4
4
|
"description": "React components for building web experiences",
|
|
5
5
|
"main": "lib-commonjs/index.cjs",
|
|
6
6
|
"module": "lib/index.js",
|
|
7
7
|
"typings": "./dist/index.d.ts",
|
|
8
|
-
"sideEffects":
|
|
9
|
-
"**/*.css"
|
|
10
|
-
],
|
|
8
|
+
"sideEffects": false,
|
|
11
9
|
"repository": {
|
|
12
10
|
"type": "git",
|
|
13
11
|
"url": "https://github.com/microsoft/fluentui"
|
|
@@ -15,13 +13,12 @@
|
|
|
15
13
|
"license": "MIT",
|
|
16
14
|
"dependencies": {
|
|
17
15
|
"@fluentui/react-icons": "^2.0.245",
|
|
18
|
-
"@fluentui/react-jsx-runtime": "9.75.
|
|
19
|
-
"@fluentui/react-shared-contexts": "9.75.
|
|
20
|
-
"@fluentui/react-theme": "9.75.
|
|
21
|
-
"@fluentui/react-utilities": "9.75.
|
|
16
|
+
"@fluentui/react-jsx-runtime": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
17
|
+
"@fluentui/react-shared-contexts": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
18
|
+
"@fluentui/react-theme": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
19
|
+
"@fluentui/react-utilities": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
22
20
|
"@griffel/react": "^1.5.32",
|
|
23
|
-
"@swc/helpers": "^0.5.1"
|
|
24
|
-
"clsx": "^2.1.1"
|
|
21
|
+
"@swc/helpers": "^0.5.1"
|
|
25
22
|
},
|
|
26
23
|
"peerDependencies": {
|
|
27
24
|
"@types/react": ">=16.14.0 <20.0.0",
|