@fluentui/react-alert 9.0.0-beta.13 → 9.0.0-beta.131

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 (47) hide show
  1. package/CHANGELOG.md +1455 -3
  2. package/README.md +5 -3
  3. package/dist/index.d.ts +12 -3
  4. package/lib/Alert.js +1 -2
  5. package/lib/Alert.js.map +1 -1
  6. package/lib/components/Alert/Alert.js +13 -8
  7. package/lib/components/Alert/Alert.js.map +1 -1
  8. package/lib/components/Alert/Alert.types.js +5 -2
  9. package/lib/components/Alert/Alert.types.js.map +1 -1
  10. package/lib/components/Alert/index.js +4 -6
  11. package/lib/components/Alert/index.js.map +1 -1
  12. package/lib/components/Alert/renderAlert.js +16 -13
  13. package/lib/components/Alert/renderAlert.js.map +1 -1
  14. package/lib/components/Alert/useAlert.js +64 -69
  15. package/lib/components/Alert/useAlert.js.map +1 -1
  16. package/lib/components/Alert/useAlertStyles.styles.js +167 -0
  17. package/lib/components/Alert/useAlertStyles.styles.js.map +1 -0
  18. package/lib/components/Alert/useAlertStyles.styles.raw.js +107 -0
  19. package/lib/components/Alert/useAlertStyles.styles.raw.js.map +1 -0
  20. package/lib/index.js +1 -1
  21. package/lib/index.js.map +1 -1
  22. package/lib-commonjs/Alert.js +26 -8
  23. package/lib-commonjs/Alert.js.map +1 -1
  24. package/lib-commonjs/components/Alert/Alert.js +23 -23
  25. package/lib-commonjs/components/Alert/Alert.js.map +1 -1
  26. package/lib-commonjs/components/Alert/Alert.types.js +5 -3
  27. package/lib-commonjs/components/Alert/Alert.types.js.map +1 -1
  28. package/lib-commonjs/components/Alert/index.js +29 -16
  29. package/lib-commonjs/components/Alert/index.js.map +1 -1
  30. package/lib-commonjs/components/Alert/renderAlert.js +20 -21
  31. package/lib-commonjs/components/Alert/renderAlert.js.map +1 -1
  32. package/lib-commonjs/components/Alert/useAlert.js +74 -92
  33. package/lib-commonjs/components/Alert/useAlert.js.map +1 -1
  34. package/lib-commonjs/components/Alert/useAlertStyles.styles.js +258 -0
  35. package/lib-commonjs/components/Alert/useAlertStyles.styles.js.map +1 -0
  36. package/lib-commonjs/components/Alert/useAlertStyles.styles.raw.js +120 -0
  37. package/lib-commonjs/components/Alert/useAlertStyles.styles.raw.js.map +1 -0
  38. package/lib-commonjs/index.js +25 -36
  39. package/lib-commonjs/index.js.map +1 -1
  40. package/package.json +33 -30
  41. package/CHANGELOG.json +0 -552
  42. package/Migration.md +0 -0
  43. package/Spec.md +0 -97
  44. package/lib/components/Alert/useAlertStyles.js +0 -112
  45. package/lib/components/Alert/useAlertStyles.js.map +0 -1
  46. package/lib-commonjs/components/Alert/useAlertStyles.js +0 -123
  47. package/lib-commonjs/components/Alert/useAlertStyles.js.map +0 -1
@@ -0,0 +1,258 @@
1
+ 'use client';
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ function _export(target, all) {
7
+ for(var name in all)Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ alertClassNames: function() {
14
+ return alertClassNames;
15
+ },
16
+ useAlertStyles_unstable: function() {
17
+ return useAlertStyles_unstable;
18
+ }
19
+ });
20
+ const _react = require("@griffel/react");
21
+ const alertClassNames = {
22
+ root: 'fui-Alert',
23
+ icon: 'fui-Alert__icon',
24
+ action: 'fui-Alert__action',
25
+ avatar: 'fui-Alert__avatar'
26
+ };
27
+ const useStyles = /*#__PURE__*/ (0, _react.__styles)({
28
+ root: {
29
+ mc9l5x: "f22iagw",
30
+ Bt984gj: "f122n59",
31
+ sshi5w: "f5pgtk9",
32
+ Byoj8tv: 0,
33
+ uwmqm3: 0,
34
+ z189sj: 0,
35
+ z8tnut: 0,
36
+ B0ocmuz: "f1oic3e7",
37
+ Beyfa6y: 0,
38
+ Bbmb7ep: 0,
39
+ Btl43ni: 0,
40
+ B7oj6ja: 0,
41
+ Dimara: "ff3glw6",
42
+ Bgfg5da: 0,
43
+ B9xav0g: 0,
44
+ oivjwe: 0,
45
+ Bn0qgzm: 0,
46
+ B4g9neb: 0,
47
+ zhjwy3: 0,
48
+ wvpqe5: 0,
49
+ ibv6hh: 0,
50
+ u1mtju: 0,
51
+ h3c5rm: 0,
52
+ vrafjx: 0,
53
+ Bekrc4i: 0,
54
+ i8vvqc: 0,
55
+ g2u3we: 0,
56
+ icvyot: 0,
57
+ B4j52fo: 0,
58
+ irswps: "f9ggezi",
59
+ E5pizo: "fz58gqq",
60
+ Be2twd7: "fkhj508",
61
+ Bhrd7zp: "fl43uef",
62
+ sj55zd: "f19n0e5",
63
+ De3pzq: "fxugw4r"
64
+ },
65
+ inverted: {
66
+ sj55zd: "f1w7i9ko",
67
+ De3pzq: "f5pduvr"
68
+ },
69
+ icon: {
70
+ Bqenvij: "fd461yt",
71
+ Be2twd7: "f4ybsrx",
72
+ Byoj8tv: 0,
73
+ uwmqm3: 0,
74
+ z189sj: 0,
75
+ z8tnut: 0,
76
+ B0ocmuz: [
77
+ "fhivll6",
78
+ "f1cgepy8"
79
+ ]
80
+ },
81
+ avatar: {
82
+ jrapky: 0,
83
+ Frg6f3: 0,
84
+ t21cq0: 0,
85
+ B6of3ja: 0,
86
+ B74szlk: [
87
+ "fxal17o",
88
+ "ftghr3s"
89
+ ]
90
+ },
91
+ action: {
92
+ Byoj8tv: 0,
93
+ uwmqm3: 0,
94
+ z189sj: 0,
95
+ z8tnut: 0,
96
+ B0ocmuz: "f4jnnbt",
97
+ Bf4jedk: "fy77jfu",
98
+ Frg6f3: [
99
+ "fcgxt0o",
100
+ "f1ujusj6"
101
+ ],
102
+ sj55zd: "f16muhyy"
103
+ }
104
+ }, {
105
+ d: [
106
+ ".f22iagw{display:flex;}",
107
+ ".f122n59{align-items:center;}",
108
+ ".f5pgtk9{min-height:44px;}",
109
+ [
110
+ ".f1oic3e7{padding:0 12px;}",
111
+ {
112
+ p: -1
113
+ }
114
+ ],
115
+ [
116
+ ".ff3glw6{border-radius:4px;}",
117
+ {
118
+ p: -1
119
+ }
120
+ ],
121
+ [
122
+ ".f9ggezi{border:1px solid var(--colorTransparentStroke);}",
123
+ {
124
+ p: -2
125
+ }
126
+ ],
127
+ ".fz58gqq{box-shadow:var(--shadow8);}",
128
+ ".fkhj508{font-size:var(--fontSizeBase300);}",
129
+ ".fl43uef{font-weight:var(--fontWeightSemibold);}",
130
+ ".f19n0e5{color:var(--colorNeutralForeground1);}",
131
+ ".fxugw4r{background-color:var(--colorNeutralBackground1);}",
132
+ ".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}",
133
+ ".f5pduvr{background-color:var(--colorNeutralBackgroundInverted);}",
134
+ ".fd461yt{height:16px;}",
135
+ ".f4ybsrx{font-size:16px;}",
136
+ [
137
+ ".fhivll6{padding:0 8px 0 0;}",
138
+ {
139
+ p: -1
140
+ }
141
+ ],
142
+ [
143
+ ".f1cgepy8{padding:0 0 0 8px;}",
144
+ {
145
+ p: -1
146
+ }
147
+ ],
148
+ [
149
+ ".fxal17o{margin:0 8px 0 0;}",
150
+ {
151
+ p: -1
152
+ }
153
+ ],
154
+ [
155
+ ".ftghr3s{margin:0 0 0 8px;}",
156
+ {
157
+ p: -1
158
+ }
159
+ ],
160
+ [
161
+ ".f4jnnbt{padding:5px 10px;}",
162
+ {
163
+ p: -1
164
+ }
165
+ ],
166
+ ".fy77jfu{min-width:0;}",
167
+ ".fcgxt0o{margin-left:auto;}",
168
+ ".f1ujusj6{margin-right:auto;}",
169
+ ".f16muhyy{color:var(--colorBrandForeground1);}"
170
+ ]
171
+ });
172
+ const useIntentIconStyles = /*#__PURE__*/ (0, _react.__styles)({
173
+ success: {
174
+ sj55zd: "f1m7fhi8"
175
+ },
176
+ error: {
177
+ sj55zd: "f1whyuy6"
178
+ },
179
+ warning: {
180
+ sj55zd: "fpti2h4"
181
+ },
182
+ info: {
183
+ sj55zd: "fkfq4zb"
184
+ }
185
+ }, {
186
+ d: [
187
+ ".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",
188
+ ".f1whyuy6{color:var(--colorPaletteRedForeground3);}",
189
+ ".fpti2h4{color:var(--colorPaletteYellowForeground2);}",
190
+ ".fkfq4zb{color:var(--colorNeutralForeground2);}"
191
+ ]
192
+ });
193
+ const useIntentIconStylesInverted = /*#__PURE__*/ (0, _react.__styles)({
194
+ success: {
195
+ sj55zd: "f1pvjcpr"
196
+ },
197
+ error: {
198
+ sj55zd: "fcrp5ll"
199
+ },
200
+ warning: {
201
+ sj55zd: "f1r8f1cl"
202
+ },
203
+ info: {
204
+ sj55zd: "f1w7i9ko"
205
+ }
206
+ }, {
207
+ d: [
208
+ ".f1pvjcpr{color:var(--colorPaletteGreenForegroundInverted);}",
209
+ ".fcrp5ll{color:var(--colorPaletteRedForegroundInverted);}",
210
+ ".f1r8f1cl{color:var(--colorPaletteYellowForegroundInverted);}",
211
+ ".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}"
212
+ ]
213
+ });
214
+ const useActionButtonColorInverted = /*#__PURE__*/ (0, _react.__styles)({
215
+ action: {
216
+ sj55zd: "f1qz2gb0",
217
+ B8q5s1w: "fa5e339",
218
+ Bci5o5g: [
219
+ "fk4svks",
220
+ "fqzoz0o"
221
+ ],
222
+ n8qw10: "fw8q0i0",
223
+ Bdrgwmp: [
224
+ "fqzoz0o",
225
+ "fk4svks"
226
+ ],
227
+ Bfpq7zp: "f1dlk4fq"
228
+ }
229
+ }, {
230
+ d: [
231
+ ".f1qz2gb0{color:var(--colorBrandForegroundInverted);}",
232
+ ".fa5e339[data-fui-focus-visible]{border-top-color:var(--colorTransparentStrokeInteractive);}",
233
+ ".fk4svks[data-fui-focus-visible]{border-right-color:var(--colorTransparentStrokeInteractive);}",
234
+ ".fqzoz0o[data-fui-focus-visible]{border-left-color:var(--colorTransparentStrokeInteractive);}",
235
+ ".fw8q0i0[data-fui-focus-visible]{border-bottom-color:var(--colorTransparentStrokeInteractive);}",
236
+ ".f1dlk4fq[data-fui-focus-visible]{outline-color:var(--colorNeutralBackground5Pressed);}"
237
+ ]
238
+ });
239
+ const useAlertStyles_unstable = (state)=>{
240
+ const inverted = state.appearance === 'inverted';
241
+ const styles = useStyles();
242
+ const intentIconStylesPrimary = useIntentIconStyles();
243
+ const intentIconStylesInverted = useIntentIconStylesInverted();
244
+ const actionStylesInverted = useActionButtonColorInverted();
245
+ // eslint-disable-next-line react-compiler/react-compiler
246
+ state.root.className = (0, _react.mergeClasses)(alertClassNames.root, styles.root, inverted && styles.inverted, state.root.className);
247
+ if (state.icon) {
248
+ state.icon.className = (0, _react.mergeClasses)(alertClassNames.icon, styles.icon, state.intent && (inverted ? intentIconStylesInverted[state.intent] : intentIconStylesPrimary[state.intent]), state.icon.className);
249
+ }
250
+ if (state.avatar) {
251
+ state.avatar.className = (0, _react.mergeClasses)(alertClassNames.avatar, styles.avatar, state.avatar.className);
252
+ }
253
+ if (state.action) {
254
+ // Note: inverted && actionStylesInverted.action has the highest piority and must be merged last
255
+ state.action.className = (0, _react.mergeClasses)(alertClassNames.action, styles.action, inverted && actionStylesInverted.action, state.action.className);
256
+ }
257
+ return state;
258
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAlertStyles.styles.js"],"sourcesContent":["'use client';\nimport { tokens } from '@fluentui/react-theme';\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport const alertClassNames = {\n root: 'fui-Alert',\n icon: 'fui-Alert__icon',\n action: 'fui-Alert__action',\n avatar: 'fui-Alert__avatar'\n};\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n alignItems: 'center',\n minHeight: '44px',\n padding: '0 12px',\n borderRadius: '4px',\n border: `1px solid ${tokens.colorTransparentStroke}`,\n boxShadow: tokens.shadow8,\n fontSize: tokens.fontSizeBase300,\n fontWeight: tokens.fontWeightSemibold,\n color: tokens.colorNeutralForeground1,\n backgroundColor: tokens.colorNeutralBackground1\n },\n inverted: {\n color: tokens.colorNeutralForegroundInverted2,\n backgroundColor: tokens.colorNeutralBackgroundInverted\n },\n icon: {\n height: '16px',\n fontSize: '16px',\n padding: '0 8px 0 0'\n },\n avatar: {\n margin: '0 8px 0 0'\n },\n action: {\n padding: '5px 10px',\n minWidth: 0,\n marginLeft: 'auto',\n color: tokens.colorBrandForeground1\n }\n});\nconst useIntentIconStyles = makeStyles({\n success: {\n color: tokens.colorPaletteGreenForeground3\n },\n error: {\n color: tokens.colorPaletteRedForeground3\n },\n warning: {\n color: tokens.colorPaletteYellowForeground2\n },\n info: {\n color: tokens.colorNeutralForeground2\n }\n});\nconst useIntentIconStylesInverted = makeStyles({\n success: {\n color: tokens.colorPaletteGreenForegroundInverted\n },\n error: {\n color: tokens.colorPaletteRedForegroundInverted\n },\n warning: {\n color: tokens.colorPaletteYellowForegroundInverted\n },\n info: {\n color: tokens.colorNeutralForegroundInverted2\n }\n});\nconst useActionButtonColorInverted = makeStyles({\n action: {\n color: tokens.colorBrandForegroundInverted,\n ...createCustomFocusIndicatorStyle({\n ...shorthands.borderColor(tokens.colorTransparentStrokeInteractive),\n outlineColor: tokens.colorNeutralBackground5Pressed\n }, {\n enableOutline: true\n })\n }\n});\n/**\n * @deprecated please use the Toast or MessageBar component\n * Apply styling to the Alert slots based on the state\n */ // eslint-disable-next-line @typescript-eslint/no-deprecated\nexport const useAlertStyles_unstable = (state)=>{\n const inverted = state.appearance === 'inverted';\n const styles = useStyles();\n const intentIconStylesPrimary = useIntentIconStyles();\n const intentIconStylesInverted = useIntentIconStylesInverted();\n const actionStylesInverted = useActionButtonColorInverted();\n // eslint-disable-next-line react-compiler/react-compiler\n state.root.className = mergeClasses(alertClassNames.root, styles.root, inverted && styles.inverted, state.root.className);\n if (state.icon) {\n state.icon.className = mergeClasses(alertClassNames.icon, styles.icon, state.intent && (inverted ? intentIconStylesInverted[state.intent] : intentIconStylesPrimary[state.intent]), state.icon.className);\n }\n if (state.avatar) {\n state.avatar.className = mergeClasses(alertClassNames.avatar, styles.avatar, state.avatar.className);\n }\n if (state.action) {\n // Note: inverted && actionStylesInverted.action has the highest piority and must be merged last\n state.action.className = mergeClasses(alertClassNames.action, styles.action, inverted && actionStylesInverted.action, state.action.className);\n }\n return state;\n};\n"],"names":["tokens","__styles","mergeClasses","shorthands","createCustomFocusIndicatorStyle","alertClassNames","root","icon","action","avatar","useStyles","mc9l5x","Bt984gj","sshi5w","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","Beyfa6y","Bbmb7ep","Btl43ni","B7oj6ja","Dimara","Bgfg5da","B9xav0g","oivjwe","Bn0qgzm","B4g9neb","zhjwy3","wvpqe5","ibv6hh","u1mtju","h3c5rm","vrafjx","Bekrc4i","i8vvqc","g2u3we","icvyot","B4j52fo","irswps","E5pizo","Be2twd7","Bhrd7zp","sj55zd","De3pzq","inverted","Bqenvij","jrapky","Frg6f3","t21cq0","B6of3ja","B74szlk","Bf4jedk","d","p","useIntentIconStyles","success","error","warning","info","useIntentIconStylesInverted","useActionButtonColorInverted","B8q5s1w","Bci5o5g","n8qw10","Bdrgwmp","Bfpq7zp","useAlertStyles_unstable","state","appearance","styles","intentIconStylesPrimary","intentIconStylesInverted","actionStylesInverted","className","intent"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAKCK,eAAe;;;IAkFf+D,uBAAuB;;;;uBArFiB,gBAAgB;AAG9D,wBAAwB;IAC3B9D,IAAI,EAAE,WAAW;IACjBC,IAAI,EAAE,iBAAiB;IACvBC,MAAM,EAAE,mBAAmB;IAC3BC,MAAM,EAAE;AACZ,CAAC;AACD,MAAMC,SAAS,GAAA,WAAA,OAAGT,eAAA,EAAA;IAAAK,IAAA,EAAA;QAAAK,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA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S,CAAC;IACxG;IACA,IAAIN,KAAK,CAAC7D,MAAM,EAAE;QACd,gGAAA;QACA6D,KAAK,CAAC7D,MAAM,CAACmE,SAAS,OAAGzE,mBAAY,EAACG,eAAe,CAACG,MAAM,EAAE+D,MAAM,CAAC/D,MAAM,EAAEsC,QAAQ,IAAI4B,oBAAoB,CAAClE,MAAM,EAAE6D,KAAK,CAAC7D,MAAM,CAACmE,SAAS,CAAC;IACjJ;IACA,OAAON,KAAK;AAChB,CAAC"}
@@ -0,0 +1,120 @@
1
+ 'use client';
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ function _export(target, all) {
7
+ for(var name in all)Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ alertClassNames: function() {
14
+ return alertClassNames;
15
+ },
16
+ useAlertStyles_unstable: function() {
17
+ return useAlertStyles_unstable;
18
+ }
19
+ });
20
+ const _reacttheme = require("@fluentui/react-theme");
21
+ const _react = require("@griffel/react");
22
+ const _reacttabster = require("@fluentui/react-tabster");
23
+ const alertClassNames = {
24
+ root: 'fui-Alert',
25
+ icon: 'fui-Alert__icon',
26
+ action: 'fui-Alert__action',
27
+ avatar: 'fui-Alert__avatar'
28
+ };
29
+ const useStyles = (0, _react.makeStyles)({
30
+ root: {
31
+ display: 'flex',
32
+ alignItems: 'center',
33
+ minHeight: '44px',
34
+ padding: '0 12px',
35
+ borderRadius: '4px',
36
+ border: `1px solid ${_reacttheme.tokens.colorTransparentStroke}`,
37
+ boxShadow: _reacttheme.tokens.shadow8,
38
+ fontSize: _reacttheme.tokens.fontSizeBase300,
39
+ fontWeight: _reacttheme.tokens.fontWeightSemibold,
40
+ color: _reacttheme.tokens.colorNeutralForeground1,
41
+ backgroundColor: _reacttheme.tokens.colorNeutralBackground1
42
+ },
43
+ inverted: {
44
+ color: _reacttheme.tokens.colorNeutralForegroundInverted2,
45
+ backgroundColor: _reacttheme.tokens.colorNeutralBackgroundInverted
46
+ },
47
+ icon: {
48
+ height: '16px',
49
+ fontSize: '16px',
50
+ padding: '0 8px 0 0'
51
+ },
52
+ avatar: {
53
+ margin: '0 8px 0 0'
54
+ },
55
+ action: {
56
+ padding: '5px 10px',
57
+ minWidth: 0,
58
+ marginLeft: 'auto',
59
+ color: _reacttheme.tokens.colorBrandForeground1
60
+ }
61
+ });
62
+ const useIntentIconStyles = (0, _react.makeStyles)({
63
+ success: {
64
+ color: _reacttheme.tokens.colorPaletteGreenForeground3
65
+ },
66
+ error: {
67
+ color: _reacttheme.tokens.colorPaletteRedForeground3
68
+ },
69
+ warning: {
70
+ color: _reacttheme.tokens.colorPaletteYellowForeground2
71
+ },
72
+ info: {
73
+ color: _reacttheme.tokens.colorNeutralForeground2
74
+ }
75
+ });
76
+ const useIntentIconStylesInverted = (0, _react.makeStyles)({
77
+ success: {
78
+ color: _reacttheme.tokens.colorPaletteGreenForegroundInverted
79
+ },
80
+ error: {
81
+ color: _reacttheme.tokens.colorPaletteRedForegroundInverted
82
+ },
83
+ warning: {
84
+ color: _reacttheme.tokens.colorPaletteYellowForegroundInverted
85
+ },
86
+ info: {
87
+ color: _reacttheme.tokens.colorNeutralForegroundInverted2
88
+ }
89
+ });
90
+ const useActionButtonColorInverted = (0, _react.makeStyles)({
91
+ action: {
92
+ color: _reacttheme.tokens.colorBrandForegroundInverted,
93
+ ...(0, _reacttabster.createCustomFocusIndicatorStyle)({
94
+ ..._react.shorthands.borderColor(_reacttheme.tokens.colorTransparentStrokeInteractive),
95
+ outlineColor: _reacttheme.tokens.colorNeutralBackground5Pressed
96
+ }, {
97
+ enableOutline: true
98
+ })
99
+ }
100
+ });
101
+ const useAlertStyles_unstable = (state)=>{
102
+ const inverted = state.appearance === 'inverted';
103
+ const styles = useStyles();
104
+ const intentIconStylesPrimary = useIntentIconStyles();
105
+ const intentIconStylesInverted = useIntentIconStylesInverted();
106
+ const actionStylesInverted = useActionButtonColorInverted();
107
+ // eslint-disable-next-line react-compiler/react-compiler
108
+ state.root.className = (0, _react.mergeClasses)(alertClassNames.root, styles.root, inverted && styles.inverted, state.root.className);
109
+ if (state.icon) {
110
+ state.icon.className = (0, _react.mergeClasses)(alertClassNames.icon, styles.icon, state.intent && (inverted ? intentIconStylesInverted[state.intent] : intentIconStylesPrimary[state.intent]), state.icon.className);
111
+ }
112
+ if (state.avatar) {
113
+ state.avatar.className = (0, _react.mergeClasses)(alertClassNames.avatar, styles.avatar, state.avatar.className);
114
+ }
115
+ if (state.action) {
116
+ // Note: inverted && actionStylesInverted.action has the highest piority and must be merged last
117
+ state.action.className = (0, _react.mergeClasses)(alertClassNames.action, styles.action, inverted && actionStylesInverted.action, state.action.className);
118
+ }
119
+ return state;
120
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Alert/useAlertStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { tokens } from '@fluentui/react-theme';\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport type { AlertSlots, AlertState } from './Alert.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport const alertClassNames: SlotClassNames<AlertSlots> = {\n root: 'fui-Alert',\n icon: 'fui-Alert__icon',\n action: 'fui-Alert__action',\n avatar: 'fui-Alert__avatar',\n};\n\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n alignItems: 'center',\n minHeight: '44px',\n padding: '0 12px',\n borderRadius: '4px',\n border: `1px solid ${tokens.colorTransparentStroke}`,\n boxShadow: tokens.shadow8,\n fontSize: tokens.fontSizeBase300,\n fontWeight: tokens.fontWeightSemibold,\n color: tokens.colorNeutralForeground1,\n backgroundColor: tokens.colorNeutralBackground1,\n },\n inverted: {\n color: tokens.colorNeutralForegroundInverted2,\n backgroundColor: tokens.colorNeutralBackgroundInverted,\n },\n icon: {\n height: '16px',\n fontSize: '16px',\n padding: '0 8px 0 0',\n },\n avatar: { margin: '0 8px 0 0' },\n action: {\n padding: '5px 10px',\n minWidth: 0,\n marginLeft: 'auto',\n color: tokens.colorBrandForeground1,\n },\n});\n\nconst useIntentIconStyles = makeStyles({\n success: {\n color: tokens.colorPaletteGreenForeground3,\n },\n error: {\n color: tokens.colorPaletteRedForeground3,\n },\n warning: {\n color: tokens.colorPaletteYellowForeground2,\n },\n info: {\n color: tokens.colorNeutralForeground2,\n },\n});\n\nconst useIntentIconStylesInverted = makeStyles({\n success: {\n color: tokens.colorPaletteGreenForegroundInverted,\n },\n error: {\n color: tokens.colorPaletteRedForegroundInverted,\n },\n warning: {\n color: tokens.colorPaletteYellowForegroundInverted,\n },\n info: {\n color: tokens.colorNeutralForegroundInverted2,\n },\n});\n\nconst useActionButtonColorInverted = makeStyles({\n action: {\n color: tokens.colorBrandForegroundInverted,\n ...createCustomFocusIndicatorStyle(\n {\n ...shorthands.borderColor(tokens.colorTransparentStrokeInteractive),\n outlineColor: tokens.colorNeutralBackground5Pressed,\n },\n { enableOutline: true },\n ),\n },\n});\n\n/**\n * @deprecated please use the Toast or MessageBar component\n * Apply styling to the Alert slots based on the state\n */\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport const useAlertStyles_unstable = (state: AlertState): AlertState => {\n const inverted = state.appearance === 'inverted';\n const styles = useStyles();\n const intentIconStylesPrimary = useIntentIconStyles();\n const intentIconStylesInverted = useIntentIconStylesInverted();\n const actionStylesInverted = useActionButtonColorInverted();\n\n // eslint-disable-next-line react-compiler/react-compiler\n state.root.className = mergeClasses(\n alertClassNames.root,\n styles.root,\n inverted && styles.inverted,\n state.root.className,\n );\n\n if (state.icon) {\n state.icon.className = mergeClasses(\n alertClassNames.icon,\n styles.icon,\n state.intent && (inverted ? intentIconStylesInverted[state.intent] : intentIconStylesPrimary[state.intent]),\n state.icon.className,\n );\n }\n\n if (state.avatar) {\n state.avatar.className = mergeClasses(alertClassNames.avatar, styles.avatar, state.avatar.className);\n }\n\n if (state.action) {\n // Note: inverted && actionStylesInverted.action has the highest piority and must be merged last\n state.action.className = mergeClasses(\n alertClassNames.action,\n styles.action,\n inverted && actionStylesInverted.action,\n state.action.className,\n );\n }\n\n return state;\n};\n"],"names":["tokens","makeStyles","mergeClasses","shorthands","createCustomFocusIndicatorStyle","alertClassNames","root","icon","action","avatar","useStyles","display","alignItems","minHeight","padding","borderRadius","border","colorTransparentStroke","boxShadow","shadow8","fontSize","fontSizeBase300","fontWeight","fontWeightSemibold","color","colorNeutralForeground1","backgroundColor","colorNeutralBackground1","inverted","colorNeutralForegroundInverted2","colorNeutralBackgroundInverted","height","margin","minWidth","marginLeft","colorBrandForeground1","useIntentIconStyles","success","colorPaletteGreenForeground3","error","colorPaletteRedForeground3","warning","colorPaletteYellowForeground2","info","colorNeutralForeground2","useIntentIconStylesInverted","colorPaletteGreenForegroundInverted","colorPaletteRedForegroundInverted","colorPaletteYellowForegroundInverted","useActionButtonColorInverted","colorBrandForegroundInverted","borderColor","colorTransparentStrokeInteractive","outlineColor","colorNeutralBackground5Pressed","enableOutline","useAlertStyles_unstable","state","appearance","styles","intentIconStylesPrimary","intentIconStylesInverted","actionStylesInverted","className","intent"],"mappings":"AAAA;;;;;;;;;;;;IASaK,eAAAA;;;IAuFAmD,uBAAAA;;;;4BA9FU,wBAAwB;uBACM,iBAAiB;8BACtB,0BAA0B;AAKnE,wBAAoD;IACzDlD,MAAM;IACNC,MAAM;IACNC,QAAQ;IACRC,QAAQ;AACV,EAAE;AAEF,MAAMC,gBAAYT,iBAAAA,EAAW;IAC3BK,MAAM;QACJK,SAAS;QACTC,YAAY;QACZC,WAAW;QACXC,SAAS;QACTC,cAAc;QACdC,QAAQ,CAAC,UAAU,EAAEhB,kBAAAA,CAAOiB,sBAAsB,EAAE;QACpDC,WAAWlB,kBAAAA,CAAOmB,OAAO;QACzBC,UAAUpB,kBAAAA,CAAOqB,eAAe;QAChCC,YAAYtB,kBAAAA,CAAOuB,kBAAkB;QACrCC,O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AOO,gCAAgC,CAACE;IACtC,MAAM7B,WAAW6B,MAAMC,UAAU,KAAK;IACtC,MAAMC,SAASjD;IACf,MAAMkD,0BAA0BxB;IAChC,MAAMyB,2BAA2BhB;IACjC,MAAMiB,uBAAuBb;IAE7B,yDAAyD;IACzDQ,MAAMnD,IAAI,CAACyD,SAAS,GAAG7D,uBAAAA,EACrBG,gBAAgBC,IAAI,EACpBqD,OAAOrD,IAAI,EACXsB,YAAY+B,OAAO/B,QAAQ,EAC3B6B,MAAMnD,IAAI,CAACyD,SAAS;IAGtB,IAAIN,MAAMlD,IAAI,EAAE;QACdkD,MAAMlD,IAAI,CAACwD,SAAS,OAAG7D,mBAAAA,EACrBG,gBAAgBE,IAAI,EACpBoD,OAAOpD,IAAI,EACXkD,MAAMO,MAAM,IAAKpC,YAAWiC,wBAAwB,CAACJ,MAAMO,MAAM,CAAC,GAAGJ,uBAAuB,CAACH,MAAMO,OAAM,GACzGP,MAAMlD,IAAI,CAACwD,SAAS;IAExB;IAEA,IAAIN,MAAMhD,MAAM,EAAE;QAChBgD,MAAMhD,MAAM,CAACsD,SAAS,OAAG7D,mBAAAA,EAAaG,gBAAgBI,MAAM,EAAEkD,OAAOlD,MAAM,EAAEgD,MAAMhD,MAAM,CAACsD,SAAS;IACrG;IAEA,IAAIN,MAAMjD,MAAM,EAAE;QAChB,gGAAgG;QAChGiD,MAAMjD,MAAM,CAACuD,SAAS,OAAG7D,mBAAAA,EACvBG,gBAAgBG,MAAM,EACtBmD,OAAOnD,MAAM,EACboB,YAAYkC,qBAAqBtD,MAAM,EACvCiD,MAAMjD,MAAM,CAACuD,SAAS;IAE1B;IAEA,OAAON;AACT,EAAE"}
@@ -1,40 +1,29 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
1
2
  "use strict";
2
-
3
3
  Object.defineProperty(exports, "__esModule", {
4
- value: true
4
+ value: true
5
5
  });
6
- exports.useAlert_unstable = exports.useAlertStyles_unstable = exports.renderAlert_unstable = exports.alertClassNames = exports.Alert = void 0;
7
-
8
- var Alert_1 = /*#__PURE__*/require("./Alert");
9
-
10
- Object.defineProperty(exports, "Alert", {
11
- enumerable: true,
12
- get: function () {
13
- return Alert_1.Alert;
14
- }
6
+ function _export(target, all) {
7
+ for(var name in all)Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ Alert: function() {
14
+ return _Alert.Alert;
15
+ },
16
+ alertClassNames: function() {
17
+ return _Alert.alertClassNames;
18
+ },
19
+ renderAlert_unstable: function() {
20
+ return _Alert.renderAlert_unstable;
21
+ },
22
+ useAlertStyles_unstable: function() {
23
+ return _Alert.useAlertStyles_unstable;
24
+ },
25
+ useAlert_unstable: function() {
26
+ return _Alert.useAlert_unstable;
27
+ }
15
28
  });
16
- Object.defineProperty(exports, "alertClassNames", {
17
- enumerable: true,
18
- get: function () {
19
- return Alert_1.alertClassNames;
20
- }
21
- });
22
- Object.defineProperty(exports, "renderAlert_unstable", {
23
- enumerable: true,
24
- get: function () {
25
- return Alert_1.renderAlert_unstable;
26
- }
27
- });
28
- Object.defineProperty(exports, "useAlertStyles_unstable", {
29
- enumerable: true,
30
- get: function () {
31
- return Alert_1.useAlertStyles_unstable;
32
- }
33
- });
34
- Object.defineProperty(exports, "useAlert_unstable", {
35
- enumerable: true,
36
- get: function () {
37
- return Alert_1.useAlert_unstable;
38
- }
39
- });
40
- //# sourceMappingURL=index.js.map
29
+ const _Alert = require("./Alert");
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,OAAA,gBAAA,OAAA,CAAA,SAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,OAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,OAAA,CAAA,KAAA;EAAK;AAAL,CAAA;AAAO,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,iBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,OAAA,CAAA,eAAA;EAAe;AAAf,CAAA;AAAiB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,sBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,OAAA,CAAA,oBAAA;EAAoB;AAApB,CAAA;AAAsB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,yBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,OAAA,CAAA,uBAAA;EAAuB;AAAvB,CAAA;AAAyB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,mBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,OAAA,CAAA,iBAAA;EAAiB;AAAjB,CAAA","sourcesContent":["export { Alert, alertClassNames, renderAlert_unstable, useAlertStyles_unstable, useAlert_unstable } from './Alert';\nexport type { AlertProps, AlertSlots, AlertState } from './Alert';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport { Alert, alertClassNames, renderAlert_unstable, useAlertStyles_unstable, useAlert_unstable } from './Alert';\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport type { AlertProps, AlertSlots, AlertState } from './Alert';\n"],"names":["Alert","alertClassNames","renderAlert_unstable","useAlertStyles_unstable","useAlert_unstable"],"mappings":"AAAA,4DAA4D;;;;;;;;;;;;;eACnDA,YAAK;;;eAAEC,sBAAe;;;eAAEC,2BAAoB;;;eAAEC,8BAAuB;;;eAAEC,wBAAiB;;;uBAAQ,UAAU"}
package/package.json CHANGED
@@ -1,50 +1,38 @@
1
1
  {
2
2
  "name": "@fluentui/react-alert",
3
- "version": "9.0.0-beta.13",
3
+ "version": "9.0.0-beta.131",
4
4
  "description": "An alert component to display brief messages",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
7
- "typings": "dist/index.d.ts",
7
+ "typings": "./dist/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "https://github.com/microsoft/fluentui"
12
12
  },
13
13
  "license": "MIT",
14
- "scripts": {
15
- "build": "just-scripts build",
16
- "bundle-size": "bundle-size measure",
17
- "clean": "just-scripts clean",
18
- "code-style": "just-scripts code-style",
19
- "just": "just-scripts",
20
- "lint": "just-scripts lint",
21
- "start": "yarn storybook",
22
- "test": "jest --passWithNoTests",
23
- "docs": "api-extractor run --config=config/api-extractor.local.json --local",
24
- "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../../scripts/typescript/normalize-import --output ./dist/types/packages/react-components/react-alert/src && yarn docs",
25
- "storybook": "start-storybook",
26
- "type-check": "tsc -b tsconfig.json"
27
- },
28
14
  "devDependencies": {
29
15
  "@fluentui/eslint-plugin": "*",
30
16
  "@fluentui/react-conformance": "*",
31
- "@fluentui/react-conformance-griffel": "9.0.0-beta.15",
32
- "@fluentui/scripts": "^1.0.0"
17
+ "@fluentui/react-conformance-griffel": "*",
18
+ "@fluentui/scripts-api-extractor": "*"
33
19
  },
34
20
  "dependencies": {
35
- "@fluentui/react-avatar": "^9.2.2",
36
- "@fluentui/react-button": "^9.1.4",
37
- "@fluentui/react-icons": "^2.0.175",
38
- "@fluentui/react-theme": "^9.1.0",
39
- "@fluentui/react-utilities": "^9.1.1",
40
- "@griffel/react": "^1.4.0",
41
- "tslib": "^2.1.0"
21
+ "@fluentui/react-avatar": "^9.9.13",
22
+ "@fluentui/react-button": "^9.7.1",
23
+ "@fluentui/react-icons": "^2.0.239",
24
+ "@fluentui/react-tabster": "^9.26.11",
25
+ "@fluentui/react-theme": "^9.2.0",
26
+ "@fluentui/react-utilities": "^9.26.0",
27
+ "@fluentui/react-jsx-runtime": "^9.3.4",
28
+ "@griffel/react": "^1.5.32",
29
+ "@swc/helpers": "^0.5.1"
42
30
  },
43
31
  "peerDependencies": {
44
- "@types/react": ">=16.8.0 <18.0.0",
45
- "@types/react-dom": ">=16.8.0 <18.0.0",
46
- "react": ">=16.8.0 <18.0.0",
47
- "react-dom": ">=16.8.0 <18.0.0"
32
+ "@types/react": ">=16.14.0 <20.0.0",
33
+ "@types/react-dom": ">=16.9.0 <20.0.0",
34
+ "react": ">=16.14.0 <20.0.0",
35
+ "react-dom": ">=16.14.0 <20.0.0"
48
36
  },
49
37
  "beachball": {
50
38
  "disallowedChangeTypes": [
@@ -52,5 +40,20 @@
52
40
  "minor",
53
41
  "patch"
54
42
  ]
55
- }
43
+ },
44
+ "exports": {
45
+ ".": {
46
+ "types": "./dist/index.d.ts",
47
+ "node": "./lib-commonjs/index.js",
48
+ "import": "./lib/index.js",
49
+ "require": "./lib-commonjs/index.js"
50
+ },
51
+ "./package.json": "./package.json"
52
+ },
53
+ "files": [
54
+ "*.md",
55
+ "dist/*.d.ts",
56
+ "lib",
57
+ "lib-commonjs"
58
+ ]
56
59
  }