@fluentui/react-message-bar 9.5.4 → 9.6.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.
Files changed (22) hide show
  1. package/CHANGELOG.md +13 -2
  2. package/lib/components/MessageBar/useMessageBarStyles.styles.raw.js +102 -0
  3. package/lib/components/MessageBar/useMessageBarStyles.styles.raw.js.map +1 -0
  4. package/lib/components/MessageBarActions/useMessageBarActionsStyles.styles.raw.js +43 -0
  5. package/lib/components/MessageBarActions/useMessageBarActionsStyles.styles.raw.js.map +1 -0
  6. package/lib/components/MessageBarBody/useMessageBarBodyStyles.styles.raw.js +18 -0
  7. package/lib/components/MessageBarBody/useMessageBarBodyStyles.styles.raw.js.map +1 -0
  8. package/lib/components/MessageBarGroup/useMessageBarGroupStyles.styles.raw.js +45 -0
  9. package/lib/components/MessageBarGroup/useMessageBarGroupStyles.styles.raw.js.map +1 -0
  10. package/lib/components/MessageBarTitle/useMessageBarTitleStyles.styles.raw.js +21 -0
  11. package/lib/components/MessageBarTitle/useMessageBarTitleStyles.styles.raw.js.map +1 -0
  12. package/lib-commonjs/components/MessageBar/useMessageBarStyles.styles.raw.js +116 -0
  13. package/lib-commonjs/components/MessageBar/useMessageBarStyles.styles.raw.js.map +1 -0
  14. package/lib-commonjs/components/MessageBarActions/useMessageBarActionsStyles.styles.raw.js +59 -0
  15. package/lib-commonjs/components/MessageBarActions/useMessageBarActionsStyles.styles.raw.js.map +1 -0
  16. package/lib-commonjs/components/MessageBarBody/useMessageBarBodyStyles.styles.raw.js +34 -0
  17. package/lib-commonjs/components/MessageBarBody/useMessageBarBodyStyles.styles.raw.js.map +1 -0
  18. package/lib-commonjs/components/MessageBarGroup/useMessageBarGroupStyles.styles.raw.js +61 -0
  19. package/lib-commonjs/components/MessageBarGroup/useMessageBarGroupStyles.styles.raw.js.map +1 -0
  20. package/lib-commonjs/components/MessageBarTitle/useMessageBarTitleStyles.styles.raw.js +37 -0
  21. package/lib-commonjs/components/MessageBarTitle/useMessageBarTitleStyles.styles.raw.js.map +1 -0
  22. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,12 +1,23 @@
1
1
  # Change Log - @fluentui/react-message-bar
2
2
 
3
- This log was last generated on Fri, 11 Jul 2025 15:56:56 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 17 Jul 2025 13:45:41 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.6.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.6.0)
8
+
9
+ Thu, 17 Jul 2025 13:45:41 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.5.4..@fluentui/react-message-bar_v9.6.0)
11
+
12
+ ### Minor changes
13
+
14
+ - feat: enable griffel raw styles ([PR #34853](https://github.com/microsoft/fluentui/pull/34853) by martinhochel@microsoft.com)
15
+ - Bump @fluentui/react-button to v9.6.0 ([PR #34862](https://github.com/microsoft/fluentui/pull/34862) by beachball)
16
+ - Bump @fluentui/react-link to v9.6.0 ([PR #34862](https://github.com/microsoft/fluentui/pull/34862) by beachball)
17
+
7
18
  ## [9.5.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.5.4)
8
19
 
9
- Fri, 11 Jul 2025 15:56:56 GMT
20
+ Fri, 11 Jul 2025 15:59:22 GMT
10
21
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.5.3..@fluentui/react-message-bar_v9.5.4)
11
22
 
12
23
  ### Patches
@@ -0,0 +1,102 @@
1
+ import { makeResetStyles, makeStyles, mergeClasses, shorthands } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
3
+ export const messageBarClassNames = {
4
+ root: 'fui-MessageBar',
5
+ icon: 'fui-MessageBar__icon',
6
+ bottomReflowSpacer: 'fui-MessageBar__bottomReflowSpacer'
7
+ };
8
+ const useRootBaseStyles = makeResetStyles({
9
+ whiteSpace: 'nowrap',
10
+ display: 'grid',
11
+ gridTemplateColumns: 'auto 1fr auto auto',
12
+ gridTemplateRows: '1fr',
13
+ gridTemplateAreas: '"icon body secondaryActions actions"',
14
+ paddingLeft: tokens.spacingHorizontalM,
15
+ border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,
16
+ borderRadius: tokens.borderRadiusMedium,
17
+ alignItems: 'center',
18
+ minHeight: '36px',
19
+ boxSizing: 'border-box',
20
+ backgroundColor: tokens.colorNeutralBackground3
21
+ });
22
+ const useIconBaseStyles = makeResetStyles({
23
+ gridArea: 'icon',
24
+ fontSize: tokens.fontSizeBase500,
25
+ marginRight: tokens.spacingHorizontalS,
26
+ color: tokens.colorNeutralForeground3,
27
+ display: 'flex',
28
+ alignItems: 'center'
29
+ });
30
+ const useReflowSpacerBaseStyles = makeResetStyles({
31
+ marginBottom: tokens.spacingVerticalS,
32
+ gridArea: 'secondaryActions'
33
+ });
34
+ const useStyles = makeStyles({
35
+ rootMultiline: {
36
+ whiteSpace: 'normal',
37
+ alignItems: 'start',
38
+ paddingTop: tokens.spacingVerticalMNudge,
39
+ gridTemplateColumns: 'auto 1fr auto',
40
+ gridTemplateAreas: `
41
+ "icon body actions"
42
+ "secondaryActions secondaryActions secondaryActions"
43
+ `
44
+ },
45
+ secondaryActionsMultiline: {
46
+ justifyContent: 'end',
47
+ marginTop: tokens.spacingVerticalMNudge,
48
+ marginBottom: tokens.spacingVerticalS,
49
+ marginRight: '0px'
50
+ },
51
+ square: {
52
+ borderRadius: '0'
53
+ }
54
+ });
55
+ const useIconIntentStyles = makeStyles({
56
+ info: {
57
+ },
58
+ error: {
59
+ color: tokens.colorStatusDangerForeground1
60
+ },
61
+ warning: {
62
+ color: tokens.colorStatusWarningForeground3
63
+ },
64
+ success: {
65
+ color: tokens.colorStatusSuccessForeground1
66
+ }
67
+ });
68
+ const useRootIntentStyles = makeStyles({
69
+ info: {
70
+ },
71
+ error: {
72
+ backgroundColor: tokens.colorStatusDangerBackground1,
73
+ ...shorthands.borderColor(tokens.colorStatusDangerBorder1)
74
+ },
75
+ warning: {
76
+ backgroundColor: tokens.colorStatusWarningBackground1,
77
+ ...shorthands.borderColor(tokens.colorStatusWarningBorder1)
78
+ },
79
+ success: {
80
+ backgroundColor: tokens.colorStatusSuccessBackground1,
81
+ ...shorthands.borderColor(tokens.colorStatusSuccessBorder1)
82
+ }
83
+ });
84
+ /**
85
+ * Apply styling to the MessageBar slots based on the state
86
+ */ export const useMessageBarStyles_unstable = (state)=>{
87
+ 'use no memo';
88
+ const rootBaseStyles = useRootBaseStyles();
89
+ const iconBaseStyles = useIconBaseStyles();
90
+ const iconIntentStyles = useIconIntentStyles();
91
+ const rootIntentStyles = useRootIntentStyles();
92
+ const reflowSpacerStyles = useReflowSpacerBaseStyles();
93
+ const styles = useStyles();
94
+ state.root.className = mergeClasses(messageBarClassNames.root, rootBaseStyles, state.layout === 'multiline' && styles.rootMultiline, state.shape === 'square' && styles.square, rootIntentStyles[state.intent], state.transitionClassName, state.root.className);
95
+ if (state.icon) {
96
+ state.icon.className = mergeClasses(messageBarClassNames.icon, iconBaseStyles, iconIntentStyles[state.intent], state.icon.className);
97
+ }
98
+ if (state.bottomReflowSpacer) {
99
+ state.bottomReflowSpacer.className = mergeClasses(messageBarClassNames.bottomReflowSpacer, reflowSpacerStyles);
100
+ }
101
+ return state;
102
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MessageBar/useMessageBarStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { MessageBarSlots, MessageBarState } from './MessageBar.types';\n\nexport const messageBarClassNames: SlotClassNames<MessageBarSlots> = {\n root: 'fui-MessageBar',\n icon: 'fui-MessageBar__icon',\n bottomReflowSpacer: 'fui-MessageBar__bottomReflowSpacer',\n};\n\nconst useRootBaseStyles = makeResetStyles({\n whiteSpace: 'nowrap',\n display: 'grid',\n gridTemplateColumns: 'auto 1fr auto auto',\n gridTemplateRows: '1fr',\n gridTemplateAreas: '\"icon body secondaryActions actions\"',\n paddingLeft: tokens.spacingHorizontalM,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,\n borderRadius: tokens.borderRadiusMedium,\n alignItems: 'center',\n minHeight: '36px',\n boxSizing: 'border-box',\n backgroundColor: tokens.colorNeutralBackground3,\n});\n\nconst useIconBaseStyles = makeResetStyles({\n gridArea: 'icon',\n fontSize: tokens.fontSizeBase500,\n marginRight: tokens.spacingHorizontalS,\n color: tokens.colorNeutralForeground3,\n display: 'flex',\n alignItems: 'center',\n});\n\nconst useReflowSpacerBaseStyles = makeResetStyles({\n marginBottom: tokens.spacingVerticalS,\n gridArea: 'secondaryActions',\n});\n\nconst useStyles = makeStyles({\n rootMultiline: {\n whiteSpace: 'normal',\n alignItems: 'start',\n paddingTop: tokens.spacingVerticalMNudge,\n gridTemplateColumns: 'auto 1fr auto',\n gridTemplateAreas: `\n \"icon body actions\"\n \"secondaryActions secondaryActions secondaryActions\"\n `,\n },\n\n secondaryActionsMultiline: {\n justifyContent: 'end',\n marginTop: tokens.spacingVerticalMNudge,\n marginBottom: tokens.spacingVerticalS,\n marginRight: '0px',\n },\n\n square: {\n borderRadius: '0',\n },\n});\n\nconst useIconIntentStyles = makeStyles({\n info: {\n /** already in base reset styles */\n },\n error: {\n color: tokens.colorStatusDangerForeground1,\n },\n warning: {\n color: tokens.colorStatusWarningForeground3,\n },\n success: {\n color: tokens.colorStatusSuccessForeground1,\n },\n});\n\nconst useRootIntentStyles = makeStyles({\n info: {\n /** already in base reset styles */\n },\n error: {\n backgroundColor: tokens.colorStatusDangerBackground1,\n ...shorthands.borderColor(tokens.colorStatusDangerBorder1),\n },\n warning: {\n backgroundColor: tokens.colorStatusWarningBackground1,\n ...shorthands.borderColor(tokens.colorStatusWarningBorder1),\n },\n success: {\n backgroundColor: tokens.colorStatusSuccessBackground1,\n ...shorthands.borderColor(tokens.colorStatusSuccessBorder1),\n },\n});\n\n/**\n * Apply styling to the MessageBar slots based on the state\n */\nexport const useMessageBarStyles_unstable = (state: MessageBarState): MessageBarState => {\n 'use no memo';\n\n const rootBaseStyles = useRootBaseStyles();\n const iconBaseStyles = useIconBaseStyles();\n const iconIntentStyles = useIconIntentStyles();\n const rootIntentStyles = useRootIntentStyles();\n const reflowSpacerStyles = useReflowSpacerBaseStyles();\n const styles = useStyles();\n\n state.root.className = mergeClasses(\n messageBarClassNames.root,\n rootBaseStyles,\n state.layout === 'multiline' && styles.rootMultiline,\n state.shape === 'square' && styles.square,\n rootIntentStyles[state.intent],\n state.transitionClassName,\n state.root.className,\n );\n\n if (state.icon) {\n state.icon.className = mergeClasses(\n messageBarClassNames.icon,\n iconBaseStyles,\n iconIntentStyles[state.intent],\n state.icon.className,\n );\n }\n\n if (state.bottomReflowSpacer) {\n state.bottomReflowSpacer.className = mergeClasses(messageBarClassNames.bottomReflowSpacer, reflowSpacerStyles);\n }\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","shorthands","tokens","messageBarClassNames","root","icon","bottomReflowSpacer","useRootBaseStyles","whiteSpace","display","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","paddingLeft","spacingHorizontalM","border","strokeWidthThin","colorNeutralStroke1","borderRadius","borderRadiusMedium","alignItems","minHeight","boxSizing","backgroundColor","colorNeutralBackground3","useIconBaseStyles","gridArea","fontSize","fontSizeBase500","marginRight","spacingHorizontalS","color","colorNeutralForeground3","useReflowSpacerBaseStyles","marginBottom","spacingVerticalS","useStyles","rootMultiline","paddingTop","spacingVerticalMNudge","secondaryActionsMultiline","justifyContent","marginTop","square","useIconIntentStyles","info","error","colorStatusDangerForeground1","warning","colorStatusWarningForeground3","success","colorStatusSuccessForeground1","useRootIntentStyles","colorStatusDangerBackground1","borderColor","colorStatusDangerBorder1","colorStatusWarningBackground1","colorStatusWarningBorder1","colorStatusSuccessBackground1","colorStatusSuccessBorder1","useMessageBarStyles_unstable","state","rootBaseStyles","iconBaseStyles","iconIntentStyles","rootIntentStyles","reflowSpacerStyles","styles","className","layout","shape","intent","transitionClassName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,UAAU,EAAEC,YAAY,EAAEC,UAAU,QAAQ,iBAAiB;AACvF,SAASC,MAAM,QAAQ,wBAAwB;AAI/C,OAAO,MAAMC,uBAAwD;IACnEC,MAAM;IACNC,MAAM;IACNC,oBAAoB;AACtB,EAAE;AAEF,MAAMC,oBAAoBT,gBAAgB;IACxCU,YAAY;IACZC,SAAS;IACTC,qBAAqB;IACrBC,kBAAkB;IAClBC,mBAAmB;IACnBC,aAAaX,OAAOY,kBAAkB;IACtCC,QAAQ,CAAC,EAAEb,OAAOc,eAAe,CAAC,OAAO,EAAEd,OAAOe,mBAAmB,CAAC,CAAC;IACvEC,cAAchB,OAAOiB,kBAAkB;IACvCC,YAAY;IACZC,WAAW;IACXC,WAAW;IACXC,iBAAiBrB,OAAOsB,uBAAuB;AACjD;AAEA,MAAMC,oBAAoB3B,gBAAgB;IACxC4B,UAAU;IACVC,UAAUzB,OAAO0B,eAAe;IAChCC,aAAa3B,OAAO4B,kBAAkB;IACtCC,OAAO7B,OAAO8B,uBAAuB;IACrCvB,SAAS;IACTW,YAAY;AACd;AAEA,MAAMa,4BAA4BnC,gBAAgB;IAChDoC,cAAchC,OAAOiC,gBAAgB;IACrCT,UAAU;AACZ;AAEA,MAAMU,YAAYrC,WAAW;IAC3BsC,eAAe;QACb7B,YAAY;QACZY,YAAY;QACZkB,YAAYpC,OAAOqC,qBAAqB;QACxC7B,qBAAqB;QACrBE,mBAAmB,CAAC;;;IAGpB,CAAC;IACH;IAEA4B,2BAA2B;QACzBC,gBAAgB;QAChBC,WAAWxC,OAAOqC,qBAAqB;QACvCL,cAAchC,OAAOiC,gBAAgB;QACrCN,aAAa;IACf;IAEAc,QAAQ;QACNzB,cAAc;IAChB;AACF;AAEA,MAAM0B,sBAAsB7C,WAAW;IACrC8C,MAAM;IAEN;IACAC,OAAO;QACLf,OAAO7B,OAAO6C,4BAA4B;IAC5C;IACAC,SAAS;QACPjB,OAAO7B,OAAO+C,6BAA6B;IAC7C;IACAC,SAAS;QACPnB,OAAO7B,OAAOiD,6BAA6B;IAC7C;AACF;AAEA,MAAMC,sBAAsBrD,WAAW;IACrC8C,MAAM;IAEN;IACAC,OAAO;QACLvB,iBAAiBrB,OAAOmD,4BAA4B;QACpD,GAAGpD,WAAWqD,WAAW,CAACpD,OAAOqD,wBAAwB,CAAC;IAC5D;IACAP,SAAS;QACPzB,iBAAiBrB,OAAOsD,6BAA6B;QACrD,GAAGvD,WAAWqD,WAAW,CAACpD,OAAOuD,yBAAyB,CAAC;IAC7D;IACAP,SAAS;QACP3B,iBAAiBrB,OAAOwD,6BAA6B;QACrD,GAAGzD,WAAWqD,WAAW,CAACpD,OAAOyD,yBAAyB,CAAC;IAC7D;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,+BAA+B,CAACC;IAC3C;IAEA,MAAMC,iBAAiBvD;IACvB,MAAMwD,iBAAiBtC;IACvB,MAAMuC,mBAAmBpB;IACzB,MAAMqB,mBAAmBb;IACzB,MAAMc,qBAAqBjC;IAC3B,MAAMkC,SAAS/B;IAEfyB,MAAMzD,IAAI,CAACgE,SAAS,GAAGpE,aACrBG,qBAAqBC,IAAI,EACzB0D,gBACAD,MAAMQ,MAAM,KAAK,eAAeF,OAAO9B,aAAa,EACpDwB,MAAMS,KAAK,KAAK,YAAYH,OAAOxB,MAAM,EACzCsB,gBAAgB,CAACJ,MAAMU,MAAM,CAAC,EAC9BV,MAAMW,mBAAmB,EACzBX,MAAMzD,IAAI,CAACgE,SAAS;IAGtB,IAAIP,MAAMxD,IAAI,EAAE;QACdwD,MAAMxD,IAAI,CAAC+D,SAAS,GAAGpE,aACrBG,qBAAqBE,IAAI,EACzB0D,gBACAC,gBAAgB,CAACH,MAAMU,MAAM,CAAC,EAC9BV,MAAMxD,IAAI,CAAC+D,SAAS;IAExB;IAEA,IAAIP,MAAMvD,kBAAkB,EAAE;QAC5BuD,MAAMvD,kBAAkB,CAAC8D,SAAS,GAAGpE,aAAaG,qBAAqBG,kBAAkB,EAAE4D;IAC7F;IAEA,OAAOL;AACT,EAAE"}
@@ -0,0 +1,43 @@
1
+ import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
3
+ export const messageBarActionsClassNames = {
4
+ root: 'fui-MessageBarActions',
5
+ containerAction: 'fui-MessageBarActions__containerAction'
6
+ };
7
+ /**
8
+ * Styles for the root slot
9
+ */ const useRootBaseStyles = makeResetStyles({
10
+ gridArea: 'secondaryActions',
11
+ display: 'flex',
12
+ columnGap: tokens.spacingHorizontalM,
13
+ paddingRight: tokens.spacingHorizontalM
14
+ });
15
+ const useContainerActionBaseStyles = makeResetStyles({
16
+ gridArea: 'actions',
17
+ paddingRight: tokens.spacingHorizontalM
18
+ });
19
+ const useMultilineStyles = makeStyles({
20
+ root: {
21
+ justifyContent: 'end',
22
+ marginTop: tokens.spacingVerticalMNudge,
23
+ marginBottom: tokens.spacingVerticalS,
24
+ marginRight: '0px',
25
+ paddingRight: tokens.spacingVerticalM
26
+ },
27
+ noActions: {
28
+ display: 'none'
29
+ }
30
+ });
31
+ /**
32
+ * Apply styling to the MessageBarActions slots based on the state
33
+ */ export const useMessageBarActionsStyles_unstable = (state)=>{
34
+ 'use no memo';
35
+ const rootBaseStyles = useRootBaseStyles();
36
+ const containerActionBaseStyles = useContainerActionBaseStyles();
37
+ const multilineStyles = useMultilineStyles();
38
+ state.root.className = mergeClasses(messageBarActionsClassNames.root, rootBaseStyles, state.layout === 'multiline' && multilineStyles.root, !state.hasActions && multilineStyles.noActions, state.root.className);
39
+ if (state.containerAction) {
40
+ state.containerAction.className = mergeClasses(messageBarActionsClassNames.containerAction, containerActionBaseStyles, state.containerAction.className);
41
+ }
42
+ return state;
43
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MessageBarActions/useMessageBarActionsStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tokens } from '@fluentui/react-theme';\nimport type { MessageBarActionsSlots, MessageBarActionsState } from './MessageBarActions.types';\n\nexport const messageBarActionsClassNames: SlotClassNames<MessageBarActionsSlots> = {\n root: 'fui-MessageBarActions',\n containerAction: 'fui-MessageBarActions__containerAction',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootBaseStyles = makeResetStyles({\n gridArea: 'secondaryActions',\n display: 'flex',\n columnGap: tokens.spacingHorizontalM,\n paddingRight: tokens.spacingHorizontalM,\n});\n\nconst useContainerActionBaseStyles = makeResetStyles({\n gridArea: 'actions',\n paddingRight: tokens.spacingHorizontalM,\n});\n\nconst useMultilineStyles = makeStyles({\n root: {\n justifyContent: 'end',\n marginTop: tokens.spacingVerticalMNudge,\n marginBottom: tokens.spacingVerticalS,\n marginRight: '0px',\n paddingRight: tokens.spacingVerticalM,\n },\n\n noActions: {\n display: 'none',\n },\n});\n\n/**\n * Apply styling to the MessageBarActions slots based on the state\n */\nexport const useMessageBarActionsStyles_unstable = (state: MessageBarActionsState): MessageBarActionsState => {\n 'use no memo';\n\n const rootBaseStyles = useRootBaseStyles();\n const containerActionBaseStyles = useContainerActionBaseStyles();\n const multilineStyles = useMultilineStyles();\n state.root.className = mergeClasses(\n messageBarActionsClassNames.root,\n rootBaseStyles,\n state.layout === 'multiline' && multilineStyles.root,\n !state.hasActions && multilineStyles.noActions,\n state.root.className,\n );\n\n if (state.containerAction) {\n state.containerAction.className = mergeClasses(\n messageBarActionsClassNames.containerAction,\n containerActionBaseStyles,\n state.containerAction.className,\n );\n }\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","tokens","messageBarActionsClassNames","root","containerAction","useRootBaseStyles","gridArea","display","columnGap","spacingHorizontalM","paddingRight","useContainerActionBaseStyles","useMultilineStyles","justifyContent","marginTop","spacingVerticalMNudge","marginBottom","spacingVerticalS","marginRight","spacingVerticalM","noActions","useMessageBarActionsStyles_unstable","state","rootBaseStyles","containerActionBaseStyles","multilineStyles","className","layout","hasActions"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAE3E,SAASC,MAAM,QAAQ,wBAAwB;AAG/C,OAAO,MAAMC,8BAAsE;IACjFC,MAAM;IACNC,iBAAiB;AACnB,EAAE;AAEF;;CAEC,GACD,MAAMC,oBAAoBP,gBAAgB;IACxCQ,UAAU;IACVC,SAAS;IACTC,WAAWP,OAAOQ,kBAAkB;IACpCC,cAAcT,OAAOQ,kBAAkB;AACzC;AAEA,MAAME,+BAA+Bb,gBAAgB;IACnDQ,UAAU;IACVI,cAAcT,OAAOQ,kBAAkB;AACzC;AAEA,MAAMG,qBAAqBb,WAAW;IACpCI,MAAM;QACJU,gBAAgB;QAChBC,WAAWb,OAAOc,qBAAqB;QACvCC,cAAcf,OAAOgB,gBAAgB;QACrCC,aAAa;QACbR,cAAcT,OAAOkB,gBAAgB;IACvC;IAEAC,WAAW;QACTb,SAAS;IACX;AACF;AAEA;;CAEC,GACD,OAAO,MAAMc,sCAAsC,CAACC;IAClD;IAEA,MAAMC,iBAAiBlB;IACvB,MAAMmB,4BAA4Bb;IAClC,MAAMc,kBAAkBb;IACxBU,MAAMnB,IAAI,CAACuB,SAAS,GAAG1B,aACrBE,4BAA4BC,IAAI,EAChCoB,gBACAD,MAAMK,MAAM,KAAK,eAAeF,gBAAgBtB,IAAI,EACpD,CAACmB,MAAMM,UAAU,IAAIH,gBAAgBL,SAAS,EAC9CE,MAAMnB,IAAI,CAACuB,SAAS;IAGtB,IAAIJ,MAAMlB,eAAe,EAAE;QACzBkB,MAAMlB,eAAe,CAACsB,SAAS,GAAG1B,aAChCE,4BAA4BE,eAAe,EAC3CoB,2BACAF,MAAMlB,eAAe,CAACsB,SAAS;IAEnC;IAEA,OAAOJ;AACT,EAAE"}
@@ -0,0 +1,18 @@
1
+ import { makeResetStyles, mergeClasses } from '@griffel/react';
2
+ import { tokens, typographyStyles } from '@fluentui/react-theme';
3
+ export const messageBarBodyClassNames = {
4
+ root: 'fui-MessageBarBody'
5
+ };
6
+ const useRootBaseStyles = makeResetStyles({
7
+ ...typographyStyles.body1,
8
+ gridArea: 'body',
9
+ paddingRight: tokens.spacingHorizontalM
10
+ });
11
+ /**
12
+ * Apply styling to the MessageBarBody slots based on the state
13
+ */ export const useMessageBarBodyStyles_unstable = (state)=>{
14
+ 'use no memo';
15
+ const rootBaseStyles = useRootBaseStyles();
16
+ state.root.className = mergeClasses(messageBarBodyClassNames.root, rootBaseStyles, state.root.className);
17
+ return state;
18
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MessageBarBody/useMessageBarBodyStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { MessageBarBodySlots, MessageBarBodyState } from './MessageBarBody.types';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\n\nexport const messageBarBodyClassNames: SlotClassNames<MessageBarBodySlots> = {\n root: 'fui-MessageBarBody',\n};\n\nconst useRootBaseStyles = makeResetStyles({\n ...typographyStyles.body1,\n gridArea: 'body',\n paddingRight: tokens.spacingHorizontalM,\n});\n\n/**\n * Apply styling to the MessageBarBody slots based on the state\n */\nexport const useMessageBarBodyStyles_unstable = (state: MessageBarBodyState): MessageBarBodyState => {\n 'use no memo';\n\n const rootBaseStyles = useRootBaseStyles();\n state.root.className = mergeClasses(messageBarBodyClassNames.root, rootBaseStyles, state.root.className);\n\n return state;\n};\n"],"names":["makeResetStyles","mergeClasses","tokens","typographyStyles","messageBarBodyClassNames","root","useRootBaseStyles","body1","gridArea","paddingRight","spacingHorizontalM","useMessageBarBodyStyles_unstable","state","rootBaseStyles","className"],"rangeMappings":";;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,YAAY,QAAQ,iBAAiB;AAG/D,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,wBAAwB;AAEjE,OAAO,MAAMC,2BAAgE;IAC3EC,MAAM;AACR,EAAE;AAEF,MAAMC,oBAAoBN,gBAAgB;IACxC,GAAGG,iBAAiBI,KAAK;IACzBC,UAAU;IACVC,cAAcP,OAAOQ,kBAAkB;AACzC;AAEA;;CAEC,GACD,OAAO,MAAMC,mCAAmC,CAACC;IAC/C;IAEA,MAAMC,iBAAiBP;IACvBM,MAAMP,IAAI,CAACS,SAAS,GAAGb,aAAaG,yBAAyBC,IAAI,EAAEQ,gBAAgBD,MAAMP,IAAI,CAACS,SAAS;IAEvG,OAAOF;AACT,EAAE"}
@@ -0,0 +1,45 @@
1
+ import { makeStyles, mergeClasses } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
3
+ export const messageBarGroupClassNames = {
4
+ root: 'fui-MessageBarGroup'
5
+ };
6
+ /**
7
+ * Styles for the root slot
8
+ */ const useStyles = makeStyles({
9
+ base: {
10
+ animationFillMode: 'forwards',
11
+ animationDuration: tokens.durationNormal
12
+ },
13
+ enter: {
14
+ animationName: {
15
+ from: {
16
+ opacity: 0,
17
+ transform: 'translateY(-100%)'
18
+ },
19
+ to: {
20
+ opacity: 1,
21
+ transform: 'translateY(0)'
22
+ }
23
+ }
24
+ },
25
+ exit: {
26
+ animationName: {
27
+ from: {
28
+ opacity: 1
29
+ },
30
+ to: {
31
+ opacity: 0
32
+ }
33
+ }
34
+ }
35
+ });
36
+ /**
37
+ * Apply styling to the MessageBarGroup slots based on the state
38
+ */ export const useMessageBarGroupStyles_unstable = (state)=>{
39
+ 'use no memo';
40
+ const styles = useStyles();
41
+ state.root.className = mergeClasses(messageBarGroupClassNames.root, state.root.className);
42
+ state.enterStyles = mergeClasses(styles.base, styles.enter);
43
+ state.exitStyles = mergeClasses(styles.base, styles.exit);
44
+ return state;
45
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MessageBarGroup/useMessageBarGroupStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { MessageBarGroupSlots, MessageBarGroupState } from './MessageBarGroup.types';\n\nexport const messageBarGroupClassNames: SlotClassNames<MessageBarGroupSlots> = {\n root: 'fui-MessageBarGroup',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n base: {\n animationFillMode: 'forwards',\n animationDuration: tokens.durationNormal,\n },\n\n enter: {\n animationName: {\n from: {\n opacity: 0,\n transform: 'translateY(-100%)',\n },\n to: {\n opacity: 1,\n transform: 'translateY(0)',\n },\n },\n },\n\n exit: {\n animationName: {\n from: {\n opacity: 1,\n },\n to: {\n opacity: 0,\n },\n },\n },\n});\n\n/**\n * Apply styling to the MessageBarGroup slots based on the state\n */\nexport const useMessageBarGroupStyles_unstable = (state: MessageBarGroupState): MessageBarGroupState => {\n 'use no memo';\n\n const styles = useStyles();\n state.root.className = mergeClasses(messageBarGroupClassNames.root, state.root.className);\n state.enterStyles = mergeClasses(styles.base, styles.enter);\n state.exitStyles = mergeClasses(styles.base, styles.exit);\n return state;\n};\n"],"names":["makeStyles","mergeClasses","tokens","messageBarGroupClassNames","root","useStyles","base","animationFillMode","animationDuration","durationNormal","enter","animationName","from","opacity","transform","to","exit","useMessageBarGroupStyles_unstable","state","styles","className","enterStyles","exitStyles"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAC1D,SAASC,MAAM,QAAQ,wBAAwB;AAI/C,OAAO,MAAMC,4BAAkE;IAC7EC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYL,WAAW;IAC3BM,MAAM;QACJC,mBAAmB;QACnBC,mBAAmBN,OAAOO,cAAc;IAC1C;IAEAC,OAAO;QACLC,eAAe;YACbC,MAAM;gBACJC,SAAS;gBACTC,WAAW;YACb;YACAC,IAAI;gBACFF,SAAS;gBACTC,WAAW;YACb;QACF;IACF;IAEAE,MAAM;QACJL,eAAe;YACbC,MAAM;gBACJC,SAAS;YACX;YACAE,IAAI;gBACFF,SAAS;YACX;QACF;IACF;AACF;AAEA;;CAEC,GACD,OAAO,MAAMI,oCAAoC,CAACC;IAChD;IAEA,MAAMC,SAASd;IACfa,MAAMd,IAAI,CAACgB,SAAS,GAAGnB,aAAaE,0BAA0BC,IAAI,EAAEc,MAAMd,IAAI,CAACgB,SAAS;IACxFF,MAAMG,WAAW,GAAGpB,aAAakB,OAAOb,IAAI,EAAEa,OAAOT,KAAK;IAC1DQ,MAAMI,UAAU,GAAGrB,aAAakB,OAAOb,IAAI,EAAEa,OAAOH,IAAI;IACxD,OAAOE;AACT,EAAE"}
@@ -0,0 +1,21 @@
1
+ import { makeResetStyles, mergeClasses } from '@griffel/react';
2
+ import { typographyStyles } from '@fluentui/react-theme';
3
+ export const messageBarTitleClassNames = {
4
+ root: 'fui-MessageBarTitle'
5
+ };
6
+ /**
7
+ * Styles for the root slot
8
+ */ const useRootBaseStyles = makeResetStyles({
9
+ ...typographyStyles.body1Strong,
10
+ '::after': {
11
+ content: '" "'
12
+ }
13
+ });
14
+ /**
15
+ * Apply styling to the MessageBarTitle slots based on the state
16
+ */ export const useMessageBarTitleStyles_unstable = (state)=>{
17
+ 'use no memo';
18
+ const rootBaseStyles = useRootBaseStyles();
19
+ state.root.className = mergeClasses(messageBarTitleClassNames.root, rootBaseStyles, state.root.className);
20
+ return state;
21
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MessageBarTitle/useMessageBarTitleStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses } from '@griffel/react';\nimport { typographyStyles } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { MessageBarTitleSlots, MessageBarTitleState } from './MessageBarTitle.types';\n\nexport const messageBarTitleClassNames: SlotClassNames<MessageBarTitleSlots> = {\n root: 'fui-MessageBarTitle',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootBaseStyles = makeResetStyles({\n ...typographyStyles.body1Strong,\n '::after': {\n content: '\" \"',\n },\n});\n\n/**\n * Apply styling to the MessageBarTitle slots based on the state\n */\nexport const useMessageBarTitleStyles_unstable = (state: MessageBarTitleState): MessageBarTitleState => {\n 'use no memo';\n\n const rootBaseStyles = useRootBaseStyles();\n state.root.className = mergeClasses(messageBarTitleClassNames.root, rootBaseStyles, state.root.className);\n\n return state;\n};\n"],"names":["makeResetStyles","mergeClasses","typographyStyles","messageBarTitleClassNames","root","useRootBaseStyles","body1Strong","content","useMessageBarTitleStyles_unstable","state","rootBaseStyles","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,YAAY,QAAQ,iBAAiB;AAC/D,SAASC,gBAAgB,QAAQ,wBAAwB;AAIzD,OAAO,MAAMC,4BAAkE;IAC7EC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,oBAAoBL,gBAAgB;IACxC,GAAGE,iBAAiBI,WAAW;IAC/B,WAAW;QACTC,SAAS;IACX;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,oCAAoC,CAACC;IAChD;IAEA,MAAMC,iBAAiBL;IACvBI,MAAML,IAAI,CAACO,SAAS,GAAGV,aAAaE,0BAA0BC,IAAI,EAAEM,gBAAgBD,MAAML,IAAI,CAACO,SAAS;IAExG,OAAOF;AACT,EAAE"}
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ messageBarClassNames: function() {
13
+ return messageBarClassNames;
14
+ },
15
+ useMessageBarStyles_unstable: function() {
16
+ return useMessageBarStyles_unstable;
17
+ }
18
+ });
19
+ const _react = require("@griffel/react");
20
+ const _reacttheme = require("@fluentui/react-theme");
21
+ const messageBarClassNames = {
22
+ root: 'fui-MessageBar',
23
+ icon: 'fui-MessageBar__icon',
24
+ bottomReflowSpacer: 'fui-MessageBar__bottomReflowSpacer'
25
+ };
26
+ const useRootBaseStyles = (0, _react.makeResetStyles)({
27
+ whiteSpace: 'nowrap',
28
+ display: 'grid',
29
+ gridTemplateColumns: 'auto 1fr auto auto',
30
+ gridTemplateRows: '1fr',
31
+ gridTemplateAreas: '"icon body secondaryActions actions"',
32
+ paddingLeft: _reacttheme.tokens.spacingHorizontalM,
33
+ border: `${_reacttheme.tokens.strokeWidthThin} solid ${_reacttheme.tokens.colorNeutralStroke1}`,
34
+ borderRadius: _reacttheme.tokens.borderRadiusMedium,
35
+ alignItems: 'center',
36
+ minHeight: '36px',
37
+ boxSizing: 'border-box',
38
+ backgroundColor: _reacttheme.tokens.colorNeutralBackground3
39
+ });
40
+ const useIconBaseStyles = (0, _react.makeResetStyles)({
41
+ gridArea: 'icon',
42
+ fontSize: _reacttheme.tokens.fontSizeBase500,
43
+ marginRight: _reacttheme.tokens.spacingHorizontalS,
44
+ color: _reacttheme.tokens.colorNeutralForeground3,
45
+ display: 'flex',
46
+ alignItems: 'center'
47
+ });
48
+ const useReflowSpacerBaseStyles = (0, _react.makeResetStyles)({
49
+ marginBottom: _reacttheme.tokens.spacingVerticalS,
50
+ gridArea: 'secondaryActions'
51
+ });
52
+ const useStyles = (0, _react.makeStyles)({
53
+ rootMultiline: {
54
+ whiteSpace: 'normal',
55
+ alignItems: 'start',
56
+ paddingTop: _reacttheme.tokens.spacingVerticalMNudge,
57
+ gridTemplateColumns: 'auto 1fr auto',
58
+ gridTemplateAreas: `
59
+ "icon body actions"
60
+ "secondaryActions secondaryActions secondaryActions"
61
+ `
62
+ },
63
+ secondaryActionsMultiline: {
64
+ justifyContent: 'end',
65
+ marginTop: _reacttheme.tokens.spacingVerticalMNudge,
66
+ marginBottom: _reacttheme.tokens.spacingVerticalS,
67
+ marginRight: '0px'
68
+ },
69
+ square: {
70
+ borderRadius: '0'
71
+ }
72
+ });
73
+ const useIconIntentStyles = (0, _react.makeStyles)({
74
+ info: {},
75
+ error: {
76
+ color: _reacttheme.tokens.colorStatusDangerForeground1
77
+ },
78
+ warning: {
79
+ color: _reacttheme.tokens.colorStatusWarningForeground3
80
+ },
81
+ success: {
82
+ color: _reacttheme.tokens.colorStatusSuccessForeground1
83
+ }
84
+ });
85
+ const useRootIntentStyles = (0, _react.makeStyles)({
86
+ info: {},
87
+ error: {
88
+ backgroundColor: _reacttheme.tokens.colorStatusDangerBackground1,
89
+ ..._react.shorthands.borderColor(_reacttheme.tokens.colorStatusDangerBorder1)
90
+ },
91
+ warning: {
92
+ backgroundColor: _reacttheme.tokens.colorStatusWarningBackground1,
93
+ ..._react.shorthands.borderColor(_reacttheme.tokens.colorStatusWarningBorder1)
94
+ },
95
+ success: {
96
+ backgroundColor: _reacttheme.tokens.colorStatusSuccessBackground1,
97
+ ..._react.shorthands.borderColor(_reacttheme.tokens.colorStatusSuccessBorder1)
98
+ }
99
+ });
100
+ const useMessageBarStyles_unstable = (state)=>{
101
+ 'use no memo';
102
+ const rootBaseStyles = useRootBaseStyles();
103
+ const iconBaseStyles = useIconBaseStyles();
104
+ const iconIntentStyles = useIconIntentStyles();
105
+ const rootIntentStyles = useRootIntentStyles();
106
+ const reflowSpacerStyles = useReflowSpacerBaseStyles();
107
+ const styles = useStyles();
108
+ state.root.className = (0, _react.mergeClasses)(messageBarClassNames.root, rootBaseStyles, state.layout === 'multiline' && styles.rootMultiline, state.shape === 'square' && styles.square, rootIntentStyles[state.intent], state.transitionClassName, state.root.className);
109
+ if (state.icon) {
110
+ state.icon.className = (0, _react.mergeClasses)(messageBarClassNames.icon, iconBaseStyles, iconIntentStyles[state.intent], state.icon.className);
111
+ }
112
+ if (state.bottomReflowSpacer) {
113
+ state.bottomReflowSpacer.className = (0, _react.mergeClasses)(messageBarClassNames.bottomReflowSpacer, reflowSpacerStyles);
114
+ }
115
+ return state;
116
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MessageBar/useMessageBarStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { MessageBarSlots, MessageBarState } from './MessageBar.types';\n\nexport const messageBarClassNames: SlotClassNames<MessageBarSlots> = {\n root: 'fui-MessageBar',\n icon: 'fui-MessageBar__icon',\n bottomReflowSpacer: 'fui-MessageBar__bottomReflowSpacer',\n};\n\nconst useRootBaseStyles = makeResetStyles({\n whiteSpace: 'nowrap',\n display: 'grid',\n gridTemplateColumns: 'auto 1fr auto auto',\n gridTemplateRows: '1fr',\n gridTemplateAreas: '\"icon body secondaryActions actions\"',\n paddingLeft: tokens.spacingHorizontalM,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,\n borderRadius: tokens.borderRadiusMedium,\n alignItems: 'center',\n minHeight: '36px',\n boxSizing: 'border-box',\n backgroundColor: tokens.colorNeutralBackground3,\n});\n\nconst useIconBaseStyles = makeResetStyles({\n gridArea: 'icon',\n fontSize: tokens.fontSizeBase500,\n marginRight: tokens.spacingHorizontalS,\n color: tokens.colorNeutralForeground3,\n display: 'flex',\n alignItems: 'center',\n});\n\nconst useReflowSpacerBaseStyles = makeResetStyles({\n marginBottom: tokens.spacingVerticalS,\n gridArea: 'secondaryActions',\n});\n\nconst useStyles = makeStyles({\n rootMultiline: {\n whiteSpace: 'normal',\n alignItems: 'start',\n paddingTop: tokens.spacingVerticalMNudge,\n gridTemplateColumns: 'auto 1fr auto',\n gridTemplateAreas: `\n \"icon body actions\"\n \"secondaryActions secondaryActions secondaryActions\"\n `,\n },\n\n secondaryActionsMultiline: {\n justifyContent: 'end',\n marginTop: tokens.spacingVerticalMNudge,\n marginBottom: tokens.spacingVerticalS,\n marginRight: '0px',\n },\n\n square: {\n borderRadius: '0',\n },\n});\n\nconst useIconIntentStyles = makeStyles({\n info: {\n /** already in base reset styles */\n },\n error: {\n color: tokens.colorStatusDangerForeground1,\n },\n warning: {\n color: tokens.colorStatusWarningForeground3,\n },\n success: {\n color: tokens.colorStatusSuccessForeground1,\n },\n});\n\nconst useRootIntentStyles = makeStyles({\n info: {\n /** already in base reset styles */\n },\n error: {\n backgroundColor: tokens.colorStatusDangerBackground1,\n ...shorthands.borderColor(tokens.colorStatusDangerBorder1),\n },\n warning: {\n backgroundColor: tokens.colorStatusWarningBackground1,\n ...shorthands.borderColor(tokens.colorStatusWarningBorder1),\n },\n success: {\n backgroundColor: tokens.colorStatusSuccessBackground1,\n ...shorthands.borderColor(tokens.colorStatusSuccessBorder1),\n },\n});\n\n/**\n * Apply styling to the MessageBar slots based on the state\n */\nexport const useMessageBarStyles_unstable = (state: MessageBarState): MessageBarState => {\n 'use no memo';\n\n const rootBaseStyles = useRootBaseStyles();\n const iconBaseStyles = useIconBaseStyles();\n const iconIntentStyles = useIconIntentStyles();\n const rootIntentStyles = useRootIntentStyles();\n const reflowSpacerStyles = useReflowSpacerBaseStyles();\n const styles = useStyles();\n\n state.root.className = mergeClasses(\n messageBarClassNames.root,\n rootBaseStyles,\n state.layout === 'multiline' && styles.rootMultiline,\n state.shape === 'square' && styles.square,\n rootIntentStyles[state.intent],\n state.transitionClassName,\n state.root.className,\n );\n\n if (state.icon) {\n state.icon.className = mergeClasses(\n messageBarClassNames.icon,\n iconBaseStyles,\n iconIntentStyles[state.intent],\n state.icon.className,\n );\n }\n\n if (state.bottomReflowSpacer) {\n state.bottomReflowSpacer.className = mergeClasses(messageBarClassNames.bottomReflowSpacer, reflowSpacerStyles);\n }\n\n return state;\n};\n"],"names":["messageBarClassNames","useMessageBarStyles_unstable","root","icon","bottomReflowSpacer","useRootBaseStyles","makeResetStyles","whiteSpace","display","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","paddingLeft","tokens","spacingHorizontalM","border","strokeWidthThin","colorNeutralStroke1","borderRadius","borderRadiusMedium","alignItems","minHeight","boxSizing","backgroundColor","colorNeutralBackground3","useIconBaseStyles","gridArea","fontSize","fontSizeBase500","marginRight","spacingHorizontalS","color","colorNeutralForeground3","useReflowSpacerBaseStyles","marginBottom","spacingVerticalS","useStyles","makeStyles","rootMultiline","paddingTop","spacingVerticalMNudge","secondaryActionsMultiline","justifyContent","marginTop","square","useIconIntentStyles","info","error","colorStatusDangerForeground1","warning","colorStatusWarningForeground3","success","colorStatusSuccessForeground1","useRootIntentStyles","colorStatusDangerBackground1","shorthands","borderColor","colorStatusDangerBorder1","colorStatusWarningBackground1","colorStatusWarningBorder1","colorStatusSuccessBackground1","colorStatusSuccessBorder1","state","rootBaseStyles","iconBaseStyles","iconIntentStyles","rootIntentStyles","reflowSpacerStyles","styles","className","mergeClasses","layout","shape","intent","transitionClassName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"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"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ messageBarActionsClassNames: function() {
13
+ return messageBarActionsClassNames;
14
+ },
15
+ useMessageBarActionsStyles_unstable: function() {
16
+ return useMessageBarActionsStyles_unstable;
17
+ }
18
+ });
19
+ const _react = require("@griffel/react");
20
+ const _reacttheme = require("@fluentui/react-theme");
21
+ const messageBarActionsClassNames = {
22
+ root: 'fui-MessageBarActions',
23
+ containerAction: 'fui-MessageBarActions__containerAction'
24
+ };
25
+ /**
26
+ * Styles for the root slot
27
+ */ const useRootBaseStyles = (0, _react.makeResetStyles)({
28
+ gridArea: 'secondaryActions',
29
+ display: 'flex',
30
+ columnGap: _reacttheme.tokens.spacingHorizontalM,
31
+ paddingRight: _reacttheme.tokens.spacingHorizontalM
32
+ });
33
+ const useContainerActionBaseStyles = (0, _react.makeResetStyles)({
34
+ gridArea: 'actions',
35
+ paddingRight: _reacttheme.tokens.spacingHorizontalM
36
+ });
37
+ const useMultilineStyles = (0, _react.makeStyles)({
38
+ root: {
39
+ justifyContent: 'end',
40
+ marginTop: _reacttheme.tokens.spacingVerticalMNudge,
41
+ marginBottom: _reacttheme.tokens.spacingVerticalS,
42
+ marginRight: '0px',
43
+ paddingRight: _reacttheme.tokens.spacingVerticalM
44
+ },
45
+ noActions: {
46
+ display: 'none'
47
+ }
48
+ });
49
+ const useMessageBarActionsStyles_unstable = (state)=>{
50
+ 'use no memo';
51
+ const rootBaseStyles = useRootBaseStyles();
52
+ const containerActionBaseStyles = useContainerActionBaseStyles();
53
+ const multilineStyles = useMultilineStyles();
54
+ state.root.className = (0, _react.mergeClasses)(messageBarActionsClassNames.root, rootBaseStyles, state.layout === 'multiline' && multilineStyles.root, !state.hasActions && multilineStyles.noActions, state.root.className);
55
+ if (state.containerAction) {
56
+ state.containerAction.className = (0, _react.mergeClasses)(messageBarActionsClassNames.containerAction, containerActionBaseStyles, state.containerAction.className);
57
+ }
58
+ return state;
59
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MessageBarActions/useMessageBarActionsStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tokens } from '@fluentui/react-theme';\nimport type { MessageBarActionsSlots, MessageBarActionsState } from './MessageBarActions.types';\n\nexport const messageBarActionsClassNames: SlotClassNames<MessageBarActionsSlots> = {\n root: 'fui-MessageBarActions',\n containerAction: 'fui-MessageBarActions__containerAction',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootBaseStyles = makeResetStyles({\n gridArea: 'secondaryActions',\n display: 'flex',\n columnGap: tokens.spacingHorizontalM,\n paddingRight: tokens.spacingHorizontalM,\n});\n\nconst useContainerActionBaseStyles = makeResetStyles({\n gridArea: 'actions',\n paddingRight: tokens.spacingHorizontalM,\n});\n\nconst useMultilineStyles = makeStyles({\n root: {\n justifyContent: 'end',\n marginTop: tokens.spacingVerticalMNudge,\n marginBottom: tokens.spacingVerticalS,\n marginRight: '0px',\n paddingRight: tokens.spacingVerticalM,\n },\n\n noActions: {\n display: 'none',\n },\n});\n\n/**\n * Apply styling to the MessageBarActions slots based on the state\n */\nexport const useMessageBarActionsStyles_unstable = (state: MessageBarActionsState): MessageBarActionsState => {\n 'use no memo';\n\n const rootBaseStyles = useRootBaseStyles();\n const containerActionBaseStyles = useContainerActionBaseStyles();\n const multilineStyles = useMultilineStyles();\n state.root.className = mergeClasses(\n messageBarActionsClassNames.root,\n rootBaseStyles,\n state.layout === 'multiline' && multilineStyles.root,\n !state.hasActions && multilineStyles.noActions,\n state.root.className,\n );\n\n if (state.containerAction) {\n state.containerAction.className = mergeClasses(\n messageBarActionsClassNames.containerAction,\n containerActionBaseStyles,\n state.containerAction.className,\n );\n }\n\n return state;\n};\n"],"names":["messageBarActionsClassNames","useMessageBarActionsStyles_unstable","root","containerAction","useRootBaseStyles","makeResetStyles","gridArea","display","columnGap","tokens","spacingHorizontalM","paddingRight","useContainerActionBaseStyles","useMultilineStyles","makeStyles","justifyContent","marginTop","spacingVerticalMNudge","marginBottom","spacingVerticalS","marginRight","spacingVerticalM","noActions","state","rootBaseStyles","containerActionBaseStyles","multilineStyles","className","mergeClasses","layout","hasActions"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,2BAAAA;eAAAA;;IAqCAC,mCAAAA;eAAAA;;;uBA1C6C;4BAEnC;AAGhB,MAAMD,8BAAsE;IACjFE,MAAM;IACNC,iBAAiB;AACnB;AAEA;;CAEC,GACD,MAAMC,oBAAoBC,IAAAA,sBAAAA,EAAgB;IACxCC,UAAU;IACVC,SAAS;IACTC,WAAWC,kBAAAA,CAAOC,kBAAkB;IACpCC,cAAcF,kBAAAA,CAAOC,kBAAkB;AACzC;AAEA,MAAME,+BAA+BP,IAAAA,sBAAAA,EAAgB;IACnDC,UAAU;IACVK,cAAcF,kBAAAA,CAAOC,kBAAkB;AACzC;AAEA,MAAMG,qBAAqBC,IAAAA,iBAAAA,EAAW;IACpCZ,MAAM;QACJa,gBAAgB;QAChBC,WAAWP,kBAAAA,CAAOQ,qBAAqB;QACvCC,cAAcT,kBAAAA,CAAOU,gBAAgB;QACrCC,aAAa;QACbT,cAAcF,kBAAAA,CAAOY,gBAAgB;IACvC;IAEAC,WAAW;QACTf,SAAS;IACX;AACF;AAKO,MAAMN,sCAAsC,CAACsB;IAClD;IAEA,MAAMC,iBAAiBpB;IACvB,MAAMqB,4BAA4Bb;IAClC,MAAMc,kBAAkBb;IACxBU,MAAMrB,IAAI,CAACyB,SAAS,GAAGC,IAAAA,mBAAAA,EACrB5B,4BAA4BE,IAAI,EAChCsB,gBACAD,MAAMM,MAAM,KAAK,eAAeH,gBAAgBxB,IAAI,EACpD,CAACqB,MAAMO,UAAU,IAAIJ,gBAAgBJ,SAAS,EAC9CC,MAAMrB,IAAI,CAACyB,SAAS;IAGtB,IAAIJ,MAAMpB,eAAe,EAAE;QACzBoB,MAAMpB,eAAe,CAACwB,SAAS,GAAGC,IAAAA,mBAAAA,EAChC5B,4BAA4BG,eAAe,EAC3CsB,2BACAF,MAAMpB,eAAe,CAACwB,SAAS;IAEnC;IAEA,OAAOJ;AACT"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ messageBarBodyClassNames: function() {
13
+ return messageBarBodyClassNames;
14
+ },
15
+ useMessageBarBodyStyles_unstable: function() {
16
+ return useMessageBarBodyStyles_unstable;
17
+ }
18
+ });
19
+ const _react = require("@griffel/react");
20
+ const _reacttheme = require("@fluentui/react-theme");
21
+ const messageBarBodyClassNames = {
22
+ root: 'fui-MessageBarBody'
23
+ };
24
+ const useRootBaseStyles = (0, _react.makeResetStyles)({
25
+ ..._reacttheme.typographyStyles.body1,
26
+ gridArea: 'body',
27
+ paddingRight: _reacttheme.tokens.spacingHorizontalM
28
+ });
29
+ const useMessageBarBodyStyles_unstable = (state)=>{
30
+ 'use no memo';
31
+ const rootBaseStyles = useRootBaseStyles();
32
+ state.root.className = (0, _react.mergeClasses)(messageBarBodyClassNames.root, rootBaseStyles, state.root.className);
33
+ return state;
34
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MessageBarBody/useMessageBarBodyStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { MessageBarBodySlots, MessageBarBodyState } from './MessageBarBody.types';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\n\nexport const messageBarBodyClassNames: SlotClassNames<MessageBarBodySlots> = {\n root: 'fui-MessageBarBody',\n};\n\nconst useRootBaseStyles = makeResetStyles({\n ...typographyStyles.body1,\n gridArea: 'body',\n paddingRight: tokens.spacingHorizontalM,\n});\n\n/**\n * Apply styling to the MessageBarBody slots based on the state\n */\nexport const useMessageBarBodyStyles_unstable = (state: MessageBarBodyState): MessageBarBodyState => {\n 'use no memo';\n\n const rootBaseStyles = useRootBaseStyles();\n state.root.className = mergeClasses(messageBarBodyClassNames.root, rootBaseStyles, state.root.className);\n\n return state;\n};\n"],"names":["messageBarBodyClassNames","useMessageBarBodyStyles_unstable","root","useRootBaseStyles","makeResetStyles","typographyStyles","body1","gridArea","paddingRight","tokens","spacingHorizontalM","state","rootBaseStyles","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,wBAAAA;eAAAA;;IAaAC,gCAAAA;eAAAA;;;uBAlBiC;4BAGL;AAElC,MAAMD,2BAAgE;IAC3EE,MAAM;AACR;AAEA,MAAMC,oBAAoBC,IAAAA,sBAAAA,EAAgB;IACxC,GAAGC,4BAAAA,CAAiBC,KAAK;IACzBC,UAAU;IACVC,cAAcC,kBAAAA,CAAOC,kBAAkB;AACzC;AAKO,MAAMT,mCAAmC,CAACU;IAC/C;IAEA,MAAMC,iBAAiBT;IACvBQ,MAAMT,IAAI,CAACW,SAAS,GAAGC,IAAAA,mBAAAA,EAAad,yBAAyBE,IAAI,EAAEU,gBAAgBD,MAAMT,IAAI,CAACW,SAAS;IAEvG,OAAOF;AACT"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ messageBarGroupClassNames: function() {
13
+ return messageBarGroupClassNames;
14
+ },
15
+ useMessageBarGroupStyles_unstable: function() {
16
+ return useMessageBarGroupStyles_unstable;
17
+ }
18
+ });
19
+ const _react = require("@griffel/react");
20
+ const _reacttheme = require("@fluentui/react-theme");
21
+ const messageBarGroupClassNames = {
22
+ root: 'fui-MessageBarGroup'
23
+ };
24
+ /**
25
+ * Styles for the root slot
26
+ */ const useStyles = (0, _react.makeStyles)({
27
+ base: {
28
+ animationFillMode: 'forwards',
29
+ animationDuration: _reacttheme.tokens.durationNormal
30
+ },
31
+ enter: {
32
+ animationName: {
33
+ from: {
34
+ opacity: 0,
35
+ transform: 'translateY(-100%)'
36
+ },
37
+ to: {
38
+ opacity: 1,
39
+ transform: 'translateY(0)'
40
+ }
41
+ }
42
+ },
43
+ exit: {
44
+ animationName: {
45
+ from: {
46
+ opacity: 1
47
+ },
48
+ to: {
49
+ opacity: 0
50
+ }
51
+ }
52
+ }
53
+ });
54
+ const useMessageBarGroupStyles_unstable = (state)=>{
55
+ 'use no memo';
56
+ const styles = useStyles();
57
+ state.root.className = (0, _react.mergeClasses)(messageBarGroupClassNames.root, state.root.className);
58
+ state.enterStyles = (0, _react.mergeClasses)(styles.base, styles.enter);
59
+ state.exitStyles = (0, _react.mergeClasses)(styles.base, styles.exit);
60
+ return state;
61
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MessageBarGroup/useMessageBarGroupStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { MessageBarGroupSlots, MessageBarGroupState } from './MessageBarGroup.types';\n\nexport const messageBarGroupClassNames: SlotClassNames<MessageBarGroupSlots> = {\n root: 'fui-MessageBarGroup',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n base: {\n animationFillMode: 'forwards',\n animationDuration: tokens.durationNormal,\n },\n\n enter: {\n animationName: {\n from: {\n opacity: 0,\n transform: 'translateY(-100%)',\n },\n to: {\n opacity: 1,\n transform: 'translateY(0)',\n },\n },\n },\n\n exit: {\n animationName: {\n from: {\n opacity: 1,\n },\n to: {\n opacity: 0,\n },\n },\n },\n});\n\n/**\n * Apply styling to the MessageBarGroup slots based on the state\n */\nexport const useMessageBarGroupStyles_unstable = (state: MessageBarGroupState): MessageBarGroupState => {\n 'use no memo';\n\n const styles = useStyles();\n state.root.className = mergeClasses(messageBarGroupClassNames.root, state.root.className);\n state.enterStyles = mergeClasses(styles.base, styles.enter);\n state.exitStyles = mergeClasses(styles.base, styles.exit);\n return state;\n};\n"],"names":["messageBarGroupClassNames","useMessageBarGroupStyles_unstable","root","useStyles","makeStyles","base","animationFillMode","animationDuration","tokens","durationNormal","enter","animationName","from","opacity","transform","to","exit","state","styles","className","mergeClasses","enterStyles","exitStyles"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,yBAAAA;eAAAA;;IAyCAC,iCAAAA;eAAAA;;;uBA9C4B;4BAClB;AAIhB,MAAMD,4BAAkE;IAC7EE,MAAM;AACR;AAEA;;CAEC,GACD,MAAMC,YAAYC,IAAAA,iBAAAA,EAAW;IAC3BC,MAAM;QACJC,mBAAmB;QACnBC,mBAAmBC,kBAAAA,CAAOC,cAAc;IAC1C;IAEAC,OAAO;QACLC,eAAe;YACbC,MAAM;gBACJC,SAAS;gBACTC,WAAW;YACb;YACAC,IAAI;gBACFF,SAAS;gBACTC,WAAW;YACb;QACF;IACF;IAEAE,MAAM;QACJL,eAAe;YACbC,MAAM;gBACJC,SAAS;YACX;YACAE,IAAI;gBACFF,SAAS;YACX;QACF;IACF;AACF;AAKO,MAAMZ,oCAAoC,CAACgB;IAChD;IAEA,MAAMC,SAASf;IACfc,MAAMf,IAAI,CAACiB,SAAS,GAAGC,IAAAA,mBAAAA,EAAapB,0BAA0BE,IAAI,EAAEe,MAAMf,IAAI,CAACiB,SAAS;IACxFF,MAAMI,WAAW,GAAGD,IAAAA,mBAAAA,EAAaF,OAAOb,IAAI,EAAEa,OAAOR,KAAK;IAC1DO,MAAMK,UAAU,GAAGF,IAAAA,mBAAAA,EAAaF,OAAOb,IAAI,EAAEa,OAAOF,IAAI;IACxD,OAAOC;AACT"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ messageBarTitleClassNames: function() {
13
+ return messageBarTitleClassNames;
14
+ },
15
+ useMessageBarTitleStyles_unstable: function() {
16
+ return useMessageBarTitleStyles_unstable;
17
+ }
18
+ });
19
+ const _react = require("@griffel/react");
20
+ const _reacttheme = require("@fluentui/react-theme");
21
+ const messageBarTitleClassNames = {
22
+ root: 'fui-MessageBarTitle'
23
+ };
24
+ /**
25
+ * Styles for the root slot
26
+ */ const useRootBaseStyles = (0, _react.makeResetStyles)({
27
+ ..._reacttheme.typographyStyles.body1Strong,
28
+ '::after': {
29
+ content: '" "'
30
+ }
31
+ });
32
+ const useMessageBarTitleStyles_unstable = (state)=>{
33
+ 'use no memo';
34
+ const rootBaseStyles = useRootBaseStyles();
35
+ state.root.className = (0, _react.mergeClasses)(messageBarTitleClassNames.root, rootBaseStyles, state.root.className);
36
+ return state;
37
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MessageBarTitle/useMessageBarTitleStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses } from '@griffel/react';\nimport { typographyStyles } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { MessageBarTitleSlots, MessageBarTitleState } from './MessageBarTitle.types';\n\nexport const messageBarTitleClassNames: SlotClassNames<MessageBarTitleSlots> = {\n root: 'fui-MessageBarTitle',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootBaseStyles = makeResetStyles({\n ...typographyStyles.body1Strong,\n '::after': {\n content: '\" \"',\n },\n});\n\n/**\n * Apply styling to the MessageBarTitle slots based on the state\n */\nexport const useMessageBarTitleStyles_unstable = (state: MessageBarTitleState): MessageBarTitleState => {\n 'use no memo';\n\n const rootBaseStyles = useRootBaseStyles();\n state.root.className = mergeClasses(messageBarTitleClassNames.root, rootBaseStyles, state.root.className);\n\n return state;\n};\n"],"names":["messageBarTitleClassNames","useMessageBarTitleStyles_unstable","root","useRootBaseStyles","makeResetStyles","typographyStyles","body1Strong","content","state","rootBaseStyles","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,yBAAAA;eAAAA;;IAiBAC,iCAAAA;eAAAA;;;uBAtBiC;4BACb;AAI1B,MAAMD,4BAAkE;IAC7EE,MAAM;AACR;AAEA;;CAEC,GACD,MAAMC,oBAAoBC,IAAAA,sBAAAA,EAAgB;IACxC,GAAGC,4BAAAA,CAAiBC,WAAW;IAC/B,WAAW;QACTC,SAAS;IACX;AACF;AAKO,MAAMN,oCAAoC,CAACO;IAChD;IAEA,MAAMC,iBAAiBN;IACvBK,MAAMN,IAAI,CAACQ,SAAS,GAAGC,IAAAA,mBAAAA,EAAaX,0BAA0BE,IAAI,EAAEO,gBAAgBD,MAAMN,IAAI,CAACQ,SAAS;IAExG,OAAOF;AACT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-message-bar",
3
- "version": "9.5.4",
3
+ "version": "9.6.0",
4
4
  "description": "Fluent UI MessageBar component",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -19,11 +19,11 @@
19
19
  "@fluentui/scripts-cypress": "*"
20
20
  },
21
21
  "dependencies": {
22
- "@fluentui/react-button": "^9.5.3",
22
+ "@fluentui/react-button": "^9.6.0",
23
23
  "@fluentui/react-icons": "^2.0.245",
24
24
  "@fluentui/react-jsx-runtime": "^9.1.2",
25
25
  "@fluentui/react-shared-contexts": "^9.24.0",
26
- "@fluentui/react-link": "^9.5.3",
26
+ "@fluentui/react-link": "^9.6.0",
27
27
  "@fluentui/react-theme": "^9.1.24",
28
28
  "@fluentui/react-utilities": "^9.22.0",
29
29
  "@griffel/react": "^1.5.22",