@fluentui/react-infobutton 9.0.0-beta.11 → 9.0.0-beta.110

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 (81) hide show
  1. package/CHANGELOG.md +1224 -5
  2. package/README.md +3 -24
  3. package/dist/index.d.ts +115 -9
  4. package/lib/InfoButton.js +1 -2
  5. package/lib/InfoButton.js.map +1 -1
  6. package/lib/InfoLabel.js +1 -0
  7. package/lib/InfoLabel.js.map +1 -0
  8. package/lib/components/InfoButton/DefaultInfoButtonIcons.js +3 -4
  9. package/lib/components/InfoButton/DefaultInfoButtonIcons.js.map +1 -1
  10. package/lib/components/InfoButton/InfoButton.js +8 -7
  11. package/lib/components/InfoButton/InfoButton.js.map +1 -1
  12. package/lib/components/InfoButton/InfoButton.types.js +5 -2
  13. package/lib/components/InfoButton/InfoButton.types.js.map +1 -1
  14. package/lib/components/InfoButton/index.js +4 -6
  15. package/lib/components/InfoButton/index.js.map +1 -1
  16. package/lib/components/InfoButton/renderInfoButton.js +14 -16
  17. package/lib/components/InfoButton/renderInfoButton.js.map +1 -1
  18. package/lib/components/InfoButton/useInfoButton.js +71 -50
  19. package/lib/components/InfoButton/useInfoButton.js.map +1 -1
  20. package/lib/components/InfoButton/useInfoButtonStyles.styles.js +181 -0
  21. package/lib/components/InfoButton/useInfoButtonStyles.styles.js.map +1 -0
  22. package/lib/components/InfoButton/useInfoButtonStyles.styles.raw.js +99 -0
  23. package/lib/components/InfoButton/useInfoButtonStyles.styles.raw.js.map +1 -0
  24. package/lib/components/InfoLabel/InfoLabel.js +15 -0
  25. package/lib/components/InfoLabel/InfoLabel.js.map +1 -0
  26. package/lib/components/InfoLabel/InfoLabel.types.js +5 -0
  27. package/lib/components/InfoLabel/InfoLabel.types.js.map +1 -0
  28. package/lib/components/InfoLabel/index.js +4 -0
  29. package/lib/components/InfoLabel/index.js.map +1 -0
  30. package/lib/components/InfoLabel/renderInfoLabel.js +15 -0
  31. package/lib/components/InfoLabel/renderInfoLabel.js.map +1 -0
  32. package/lib/components/InfoLabel/useInfoLabel.js +80 -0
  33. package/lib/components/InfoLabel/useInfoLabel.js.map +1 -0
  34. package/lib/components/InfoLabel/useInfoLabelStyles.styles.js +50 -0
  35. package/lib/components/InfoLabel/useInfoLabelStyles.styles.js.map +1 -0
  36. package/lib/components/InfoLabel/useInfoLabelStyles.styles.raw.js +45 -0
  37. package/lib/components/InfoLabel/useInfoLabelStyles.styles.raw.js.map +1 -0
  38. package/lib/index.js +2 -2
  39. package/lib/index.js.map +1 -1
  40. package/lib-commonjs/InfoButton.js +26 -6
  41. package/lib-commonjs/InfoButton.js.map +1 -1
  42. package/lib-commonjs/InfoLabel.js +28 -0
  43. package/lib-commonjs/InfoLabel.js.map +1 -0
  44. package/lib-commonjs/components/InfoButton/DefaultInfoButtonIcons.js +22 -8
  45. package/lib-commonjs/components/InfoButton/DefaultInfoButtonIcons.js.map +1 -1
  46. package/lib-commonjs/components/InfoButton/InfoButton.js +18 -16
  47. package/lib-commonjs/components/InfoButton/InfoButton.js.map +1 -1
  48. package/lib-commonjs/components/InfoButton/InfoButton.types.js +6 -4
  49. package/lib-commonjs/components/InfoButton/InfoButton.types.js.map +1 -1
  50. package/lib-commonjs/components/InfoButton/index.js +29 -10
  51. package/lib-commonjs/components/InfoButton/index.js.map +1 -1
  52. package/lib-commonjs/components/InfoButton/renderInfoButton.js +21 -24
  53. package/lib-commonjs/components/InfoButton/renderInfoButton.js.map +1 -1
  54. package/lib-commonjs/components/InfoButton/useInfoButton.js +80 -65
  55. package/lib-commonjs/components/InfoButton/useInfoButton.js.map +1 -1
  56. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.styles.js +350 -0
  57. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.styles.js.map +1 -0
  58. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.styles.raw.js +113 -0
  59. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.styles.raw.js.map +1 -0
  60. package/lib-commonjs/components/InfoLabel/InfoLabel.js +22 -0
  61. package/lib-commonjs/components/InfoLabel/InfoLabel.js.map +1 -0
  62. package/lib-commonjs/components/InfoLabel/InfoLabel.types.js +8 -0
  63. package/lib-commonjs/components/InfoLabel/InfoLabel.types.js.map +1 -0
  64. package/lib-commonjs/components/InfoLabel/index.js +31 -0
  65. package/lib-commonjs/components/InfoLabel/index.js.map +1 -0
  66. package/lib-commonjs/components/InfoLabel/renderInfoLabel.js +21 -0
  67. package/lib-commonjs/components/InfoLabel/renderInfoLabel.js.map +1 -0
  68. package/lib-commonjs/components/InfoLabel/useInfoLabel.js +81 -0
  69. package/lib-commonjs/components/InfoLabel/useInfoLabel.js.map +1 -0
  70. package/lib-commonjs/components/InfoLabel/useInfoLabelStyles.styles.js +68 -0
  71. package/lib-commonjs/components/InfoLabel/useInfoLabelStyles.styles.js.map +1 -0
  72. package/lib-commonjs/components/InfoLabel/useInfoLabelStyles.styles.raw.js +57 -0
  73. package/lib-commonjs/components/InfoLabel/useInfoLabelStyles.styles.raw.js.map +1 -0
  74. package/lib-commonjs/index.js +41 -35
  75. package/lib-commonjs/index.js.map +1 -1
  76. package/package.json +22 -33
  77. package/CHANGELOG.json +0 -342
  78. package/lib/components/InfoButton/useInfoButtonStyles.js +0 -153
  79. package/lib/components/InfoButton/useInfoButtonStyles.js.map +0 -1
  80. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.js +0 -160
  81. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.js.map +0 -1
package/CHANGELOG.json DELETED
@@ -1,342 +0,0 @@
1
- {
2
- "name": "@fluentui/react-infobutton",
3
- "entries": [
4
- {
5
- "date": "Tue, 31 Jan 2023 19:50:42 GMT",
6
- "tag": "@fluentui/react-infobutton_v9.0.0-beta.11",
7
- "version": "9.0.0-beta.11",
8
- "comments": {
9
- "prerelease": [
10
- {
11
- "author": "beachball",
12
- "package": "@fluentui/react-infobutton",
13
- "comment": "Bump @fluentui/react-popover to v9.4.5",
14
- "commit": "22477ef4202cd24add6ebf823196b5888c9d8083"
15
- },
16
- {
17
- "author": "beachball",
18
- "package": "@fluentui/react-infobutton",
19
- "comment": "Bump @fluentui/react-tabster to v9.4.2",
20
- "commit": "22477ef4202cd24add6ebf823196b5888c9d8083"
21
- },
22
- {
23
- "author": "beachball",
24
- "package": "@fluentui/react-infobutton",
25
- "comment": "Bump @fluentui/react-utilities to v9.5.1",
26
- "commit": "22477ef4202cd24add6ebf823196b5888c9d8083"
27
- }
28
- ]
29
- }
30
- },
31
- {
32
- "date": "Thu, 26 Jan 2023 13:31:03 GMT",
33
- "tag": "@fluentui/react-infobutton_v9.0.0-beta.10",
34
- "version": "9.0.0-beta.10",
35
- "comments": {
36
- "prerelease": [
37
- {
38
- "author": "beachball",
39
- "package": "@fluentui/react-infobutton",
40
- "comment": "Bump @fluentui/react-popover to v9.4.4",
41
- "commit": "403e1370f1effca7d3db131eda381abf31cf66b1"
42
- },
43
- {
44
- "author": "beachball",
45
- "package": "@fluentui/react-infobutton",
46
- "comment": "Bump @fluentui/react-tabster to v9.4.1",
47
- "commit": "403e1370f1effca7d3db131eda381abf31cf66b1"
48
- },
49
- {
50
- "author": "beachball",
51
- "package": "@fluentui/react-infobutton",
52
- "comment": "Bump @fluentui/react-utilities to v9.5.0",
53
- "commit": "403e1370f1effca7d3db131eda381abf31cf66b1"
54
- }
55
- ]
56
- }
57
- },
58
- {
59
- "date": "Mon, 23 Jan 2023 16:43:12 GMT",
60
- "tag": "@fluentui/react-infobutton_v9.0.0-beta.9",
61
- "version": "9.0.0-beta.9",
62
- "comments": {
63
- "prerelease": [
64
- {
65
- "author": "beachball",
66
- "package": "@fluentui/react-infobutton",
67
- "comment": "Bump @fluentui/react-popover to v9.4.3",
68
- "commit": "828c4260edc4fba07c9ccc8e94f15051c7fd25d3"
69
- }
70
- ]
71
- }
72
- },
73
- {
74
- "date": "Wed, 18 Jan 2023 16:32:57 GMT",
75
- "tag": "@fluentui/react-infobutton_v9.0.0-beta.8",
76
- "version": "9.0.0-beta.8",
77
- "comments": {
78
- "prerelease": [
79
- {
80
- "author": "beachball",
81
- "package": "@fluentui/react-infobutton",
82
- "comment": "Bump @fluentui/react-popover to v9.4.2",
83
- "commit": "13cf1d07a6df4617106c731ba0379b6102a08104"
84
- },
85
- {
86
- "author": "beachball",
87
- "package": "@fluentui/react-infobutton",
88
- "comment": "Bump @fluentui/react-tabster to v9.4.0",
89
- "commit": "13cf1d07a6df4617106c731ba0379b6102a08104"
90
- }
91
- ]
92
- }
93
- },
94
- {
95
- "date": "Mon, 16 Jan 2023 08:39:02 GMT",
96
- "tag": "@fluentui/react-infobutton_v9.0.0-beta.7",
97
- "version": "9.0.0-beta.7",
98
- "comments": {
99
- "prerelease": [
100
- {
101
- "author": "esteban.230@hotmail.com",
102
- "package": "@fluentui/react-infobutton",
103
- "commit": "4aa7a43c0c302dc151d6446abfde95fe9637edb0",
104
- "comment": "fix: Update border for Teams HCM to be transparent."
105
- },
106
- {
107
- "author": "esteban.230@hotmail.com",
108
- "package": "@fluentui/react-infobutton",
109
- "commit": "b326546752a1df3cf4d626dee2d5c47b59ba00ae",
110
- "comment": "fix: Update PopoverSurface's role to note and remove need to cast props passed to popover slot."
111
- },
112
- {
113
- "author": "beachball",
114
- "package": "@fluentui/react-infobutton",
115
- "comment": "Bump @fluentui/react-popover to v9.4.1",
116
- "commit": "a870d8360e47f3ea03358c4e75e89e08a74845d7"
117
- },
118
- {
119
- "author": "beachball",
120
- "package": "@fluentui/react-infobutton",
121
- "comment": "Bump @fluentui/react-tabster to v9.3.7",
122
- "commit": "a870d8360e47f3ea03358c4e75e89e08a74845d7"
123
- }
124
- ],
125
- "none": [
126
- {
127
- "author": "martinhochel@microsoft.com",
128
- "package": "@fluentui/react-infobutton",
129
- "commit": "64bb45980d68de1219c6b36a7db5363f0a9cff9f",
130
- "comment": "chore: migrate to packaged scripts"
131
- }
132
- ]
133
- }
134
- },
135
- {
136
- "date": "Mon, 09 Jan 2023 14:35:02 GMT",
137
- "tag": "@fluentui/react-infobutton_v9.0.0-beta.6",
138
- "version": "9.0.0-beta.6",
139
- "comments": {
140
- "prerelease": [
141
- {
142
- "author": "beachball",
143
- "package": "@fluentui/react-infobutton",
144
- "comment": "Bump @fluentui/react-popover to v9.4.0",
145
- "commit": "d246e70eba59a37ec311dbf933b0745d34cb700d"
146
- },
147
- {
148
- "author": "beachball",
149
- "package": "@fluentui/react-infobutton",
150
- "comment": "Bump @fluentui/react-tabster to v9.3.6",
151
- "commit": "d246e70eba59a37ec311dbf933b0745d34cb700d"
152
- },
153
- {
154
- "author": "beachball",
155
- "package": "@fluentui/react-infobutton",
156
- "comment": "Bump @fluentui/react-utilities to v9.4.0",
157
- "commit": "d246e70eba59a37ec311dbf933b0745d34cb700d"
158
- }
159
- ]
160
- }
161
- },
162
- {
163
- "date": "Wed, 04 Jan 2023 01:40:08 GMT",
164
- "tag": "@fluentui/react-infobutton_v9.0.0-beta.5",
165
- "version": "9.0.0-beta.5",
166
- "comments": {
167
- "prerelease": [
168
- {
169
- "author": "tristan.watanabe@gmail.com",
170
- "package": "@fluentui/react-infobutton",
171
- "commit": "b1f29f551486777885af53a857220bffa5342b0f",
172
- "comment": "chore: migrate to new package structure."
173
- },
174
- {
175
- "author": "olfedias@microsoft.com",
176
- "package": "@fluentui/react-infobutton",
177
- "commit": "2c38f1e4ae07b2b60df596efe11015a68f166dbf",
178
- "comment": "chore: Update Griffel to latest version"
179
- },
180
- {
181
- "author": "beachball",
182
- "package": "@fluentui/react-infobutton",
183
- "comment": "Bump @fluentui/react-popover to v9.3.6",
184
- "commit": "3e322d15529451be153e97298873253e21af4082"
185
- },
186
- {
187
- "author": "beachball",
188
- "package": "@fluentui/react-infobutton",
189
- "comment": "Bump @fluentui/react-tabster to v9.3.5",
190
- "commit": "3e322d15529451be153e97298873253e21af4082"
191
- },
192
- {
193
- "author": "beachball",
194
- "package": "@fluentui/react-infobutton",
195
- "comment": "Bump @fluentui/react-utilities to v9.3.1",
196
- "commit": "3e322d15529451be153e97298873253e21af4082"
197
- },
198
- {
199
- "author": "beachball",
200
- "package": "@fluentui/react-infobutton",
201
- "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.19",
202
- "commit": "3e322d15529451be153e97298873253e21af4082"
203
- }
204
- ],
205
- "none": [
206
- {
207
- "author": "martinhochel@microsoft.com",
208
- "package": "@fluentui/react-infobutton",
209
- "commit": "4ec2b998b294d6d9c3196d3d82893bdd97d0c105",
210
- "comment": "chore(scripts): move index.ts to to follow sub-folder domain packaging"
211
- },
212
- {
213
- "author": "martinhochel@microsoft.com",
214
- "package": "@fluentui/react-infobutton",
215
- "commit": "194b0cf0cc27c1c1233aa945f09b3ad29778d8ca",
216
- "comment": "chore(scripts): use for @fluentui/scripts version within all package.json"
217
- }
218
- ]
219
- }
220
- },
221
- {
222
- "date": "Wed, 21 Dec 2022 10:20:33 GMT",
223
- "tag": "@fluentui/react-infobutton_v9.0.0-beta.4",
224
- "version": "9.0.0-beta.4",
225
- "comments": {
226
- "prerelease": [
227
- {
228
- "author": "beachball",
229
- "package": "@fluentui/react-infobutton",
230
- "comment": "Bump @fluentui/react-popover to v9.3.5",
231
- "commit": "66bf89f634cad4a275e957d7a2214c7e73ff8c2e"
232
- },
233
- {
234
- "author": "beachball",
235
- "package": "@fluentui/react-infobutton",
236
- "comment": "Bump @fluentui/react-tabster to v9.3.4",
237
- "commit": "66bf89f634cad4a275e957d7a2214c7e73ff8c2e"
238
- },
239
- {
240
- "author": "beachball",
241
- "package": "@fluentui/react-infobutton",
242
- "comment": "Bump @fluentui/react-theme to v9.1.5",
243
- "commit": "66bf89f634cad4a275e957d7a2214c7e73ff8c2e"
244
- }
245
- ]
246
- }
247
- },
248
- {
249
- "date": "Tue, 20 Dec 2022 14:59:34 GMT",
250
- "tag": "@fluentui/react-infobutton_v9.0.0-beta.3",
251
- "version": "9.0.0-beta.3",
252
- "comments": {
253
- "prerelease": [
254
- {
255
- "author": "beachball",
256
- "package": "@fluentui/react-infobutton",
257
- "comment": "Bump @fluentui/react-popover to v9.3.4",
258
- "commit": "e7530bc179fd0e303448083c76a4af41a0e15322"
259
- },
260
- {
261
- "author": "beachball",
262
- "package": "@fluentui/react-infobutton",
263
- "comment": "Bump @fluentui/react-tabster to v9.3.3",
264
- "commit": "e7530bc179fd0e303448083c76a4af41a0e15322"
265
- },
266
- {
267
- "author": "beachball",
268
- "package": "@fluentui/react-infobutton",
269
- "comment": "Bump @fluentui/react-theme to v9.1.4",
270
- "commit": "e7530bc179fd0e303448083c76a4af41a0e15322"
271
- },
272
- {
273
- "author": "beachball",
274
- "package": "@fluentui/react-infobutton",
275
- "comment": "Bump @fluentui/react-utilities to v9.3.0",
276
- "commit": "e7530bc179fd0e303448083c76a4af41a0e15322"
277
- }
278
- ]
279
- }
280
- },
281
- {
282
- "date": "Mon, 05 Dec 2022 18:29:39 GMT",
283
- "tag": "@fluentui/react-infobutton_v9.0.0-beta.2",
284
- "version": "9.0.0-beta.2",
285
- "comments": {
286
- "prerelease": [
287
- {
288
- "author": "beachball",
289
- "package": "@fluentui/react-infobutton",
290
- "comment": "Bump @fluentui/react-popover to v9.3.3",
291
- "commit": "4c29542a51bf068e171690cc8e59c14489883912"
292
- },
293
- {
294
- "author": "beachball",
295
- "package": "@fluentui/react-infobutton",
296
- "comment": "Bump @fluentui/react-tabster to v9.3.2",
297
- "commit": "4c29542a51bf068e171690cc8e59c14489883912"
298
- },
299
- {
300
- "author": "beachball",
301
- "package": "@fluentui/react-infobutton",
302
- "comment": "Bump @fluentui/react-theme to v9.1.3",
303
- "commit": "4c29542a51bf068e171690cc8e59c14489883912"
304
- }
305
- ]
306
- }
307
- },
308
- {
309
- "date": "Thu, 17 Nov 2022 23:05:40 GMT",
310
- "tag": "@fluentui/react-infobutton_v9.0.0-beta.1",
311
- "version": "9.0.0-beta.1",
312
- "comments": {
313
- "prerelease": [
314
- {
315
- "author": "esteban.230@hotmail.com",
316
- "package": "@fluentui/react-infobutton",
317
- "commit": "e22929a533e0830fc75e547b733b38dee60af00e",
318
- "comment": "chore: Making the package public and preparing to add to unstable."
319
- },
320
- {
321
- "author": "beachball",
322
- "package": "@fluentui/react-infobutton",
323
- "comment": "Bump @fluentui/react-popover to v9.3.2",
324
- "commit": "94e156be5d3b5790d82dccf08c32672733fb9335"
325
- },
326
- {
327
- "author": "beachball",
328
- "package": "@fluentui/react-infobutton",
329
- "comment": "Bump @fluentui/react-tabster to v9.3.1",
330
- "commit": "94e156be5d3b5790d82dccf08c32672733fb9335"
331
- },
332
- {
333
- "author": "beachball",
334
- "package": "@fluentui/react-infobutton",
335
- "comment": "Bump @fluentui/react-utilities to v9.2.2",
336
- "commit": "94e156be5d3b5790d82dccf08c32672733fb9335"
337
- }
338
- ]
339
- }
340
- }
341
- ]
342
- }
@@ -1,153 +0,0 @@
1
- import { createFocusOutlineStyle } from '@fluentui/react-tabster';
2
- import { iconFilledClassName, iconRegularClassName } from '@fluentui/react-icons';
3
- import { __styles, mergeClasses, shorthands } from '@griffel/react';
4
- import { tokens, typographyStyles } from '@fluentui/react-theme';
5
- export const infoButtonClassNames = {
6
- root: 'fui-InfoButton',
7
- // this className won't be used, but it's needed to satisfy the type checker
8
- popover: 'fui-InfoButton__popover',
9
- content: 'fui-InfoButton__content'
10
- };
11
- /**
12
- * Styles for the root slot
13
- */
14
- const useButtonStyles = /*#__PURE__*/__styles({
15
- base: {
16
- Bt984gj: "f122n59",
17
- B7ck84d: "f1ewtqcl",
18
- mc9l5x: "ftuwxu6",
19
- Brf1p80: "f4d9j23",
20
- w71qe1: "f1iuv45f",
21
- ha4doy: "fmrv4ls",
22
- qhf8xq: "f10pi13n",
23
- De3pzq: "f1c21dwh",
24
- sj55zd: "fkfq4zb",
25
- icvyot: "f1ern45e",
26
- vrafjx: ["f1n71otn", "f1deefiw"],
27
- oivjwe: "f1h8hb77",
28
- wvpqe5: ["f1deefiw", "f1n71otn"],
29
- Bbmb7ep: ["f1aa9q02", "f16jpd5f"],
30
- Beyfa6y: ["f16jpd5f", "f1aa9q02"],
31
- B7oj6ja: ["f1jar5jt", "fyu767a"],
32
- Btl43ni: ["fyu767a", "f1jar5jt"],
33
- B6of3ja: "f1hu3pq6",
34
- t21cq0: ["f11qmguv", "f1tyq0we"],
35
- jrapky: "f19f4twv",
36
- Frg6f3: ["f1tyq0we", "f11qmguv"],
37
- z8tnut: "f1ywm7hm",
38
- z189sj: ["f7x41pl", "fruq291"],
39
- Byoj8tv: "f14wxoun",
40
- uwmqm3: ["fruq291", "f7x41pl"],
41
- D0sxk3: "f16u1re",
42
- t6yez3: "f1rw4040",
43
- Jwef8y: "fjxutwb",
44
- Bi91k9c: "f139oj5f",
45
- Bk3fhr4: "f1jpd6y0",
46
- Bmfj8id: "fuxngvv",
47
- iro3zm: "fwiml72",
48
- B2d53fq: "f1fg1p5m"
49
- },
50
- selected: {
51
- De3pzq: "f1q9pm1r",
52
- sj55zd: "f1qj7y59",
53
- D0sxk3: "fgzdkf0",
54
- t6yez3: "f15q0o9g",
55
- Bsw6fvg: "f1rirnrt",
56
- Bbusuzp: "f1cg6951"
57
- },
58
- highContrast: {
59
- Bbusuzp: "fn0tkbb",
60
- Bs6v0vm: "f1rp3av6",
61
- B46dtvo: "f1u7gwqv",
62
- gh1jta: "fl6kagl"
63
- },
64
- focusIndicator: {
65
- Brovlpu: "ftqa4ok",
66
- B486eqv: "f2hkw1w",
67
- B8q5s1w: "f8hki3x",
68
- Bci5o5g: ["f1d2448m", "ffh67wi"],
69
- n8qw10: "f1bjia2o",
70
- Bdrgwmp: ["ffh67wi", "f1d2448m"],
71
- Bm4h7ae: "f15bsgw9",
72
- B7ys5i9: "f14e48fq",
73
- Busjfv9: "f18yb2kv",
74
- Bhk32uz: "fd6o370",
75
- Bf4ptjt: "fh1cnn4",
76
- kclons: ["fy7oxxb", "f184ne2d"],
77
- Bhdgwq3: "fpukqih",
78
- Blkhhs4: ["f184ne2d", "fy7oxxb"],
79
- Bqtpl0w: "frrh606",
80
- clg4pj: ["f1v5zibi", "fo2hd23"],
81
- hgwjuy: "ful5kiu",
82
- Bonggc9: ["fo2hd23", "f1v5zibi"],
83
- B1tsrr9: ["f1jqcqds", "ftffrms"],
84
- Dah5zi: ["ftffrms", "f1jqcqds"],
85
- Bkh64rk: ["f2e7qr6", "fsr1zz6"],
86
- qqdqy8: ["fsr1zz6", "f2e7qr6"],
87
- B6dhp37: "f1dvezut",
88
- i03rao: ["fd0oaoj", "f1cwg4i8"],
89
- Boxcth7: "fjvm52t",
90
- Bsom6fd: ["f1cwg4i8", "fd0oaoj"],
91
- J0r882: "fdiulkx",
92
- Bjwuhne: "f1yalx80",
93
- Ghsupd: ["fq22d5a", "f1jw7pan"],
94
- Bule8hv: ["f1jw7pan", "fq22d5a"]
95
- },
96
- large: {
97
- z8tnut: "fclwglc",
98
- z189sj: ["f1w3695s", "f1b0r8ql"],
99
- Byoj8tv: "fywfov9",
100
- uwmqm3: ["f1b0r8ql", "f1w3695s"]
101
- }
102
- }, {
103
- d: [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f1ewtqcl{box-sizing:border-box;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".f1iuv45f{text-decoration-line:none;}", ".fmrv4ls{vertical-align:middle;}", ".f10pi13n{position:relative;}", ".f1c21dwh{background-color:var(--colorTransparentBackground);}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".f1ern45e{border-top-style:none;}", ".f1n71otn{border-right-style:none;}", ".f1deefiw{border-left-style:none;}", ".f1h8hb77{border-bottom-style:none;}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f1hu3pq6{margin-top:0;}", ".f11qmguv{margin-right:0;}", ".f1tyq0we{margin-left:0;}", ".f19f4twv{margin-bottom:0;}", ".f1ywm7hm{padding-top:var(--spacingVerticalXS);}", ".f7x41pl{padding-right:var(--spacingHorizontalXS);}", ".fruq291{padding-left:var(--spacingHorizontalXS);}", ".f14wxoun{padding-bottom:var(--spacingVerticalXS);}", ".f16u1re .fui-Icon-filled{display:none;}", ".f1rw4040 .fui-Icon-regular{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}", ".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}", ".fgzdkf0 .fui-Icon-filled{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f15q0o9g .fui-Icon-regular{display:none;}", ".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}", ".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}", ".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}", ".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}", ".f15bsgw9[data-fui-focus-visible]::after{content:\"\";}", ".f14e48fq[data-fui-focus-visible]::after{position:absolute;}", ".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}", ".fd6o370[data-fui-focus-visible]::after{z-index:1;}", ".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}", ".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}", ".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}", ".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}", ".frrh606[data-fui-focus-visible]::after{border-top-width:2px;}", ".f1v5zibi[data-fui-focus-visible]::after{border-right-width:2px;}", ".fo2hd23[data-fui-focus-visible]::after{border-left-width:2px;}", ".ful5kiu[data-fui-focus-visible]::after{border-bottom-width:2px;}", ".f1jqcqds[data-fui-focus-visible]::after{border-bottom-right-radius:var(--borderRadiusMedium);}", ".ftffrms[data-fui-focus-visible]::after{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f2e7qr6[data-fui-focus-visible]::after{border-top-right-radius:var(--borderRadiusMedium);}", ".fsr1zz6[data-fui-focus-visible]::after{border-top-left-radius:var(--borderRadiusMedium);}", ".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}", ".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}", ".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}", ".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}", ".fdiulkx[data-fui-focus-visible]::after{top:-2px;}", ".f1yalx80[data-fui-focus-visible]::after{bottom:-2px;}", ".fq22d5a[data-fui-focus-visible]::after{left:-2px;}", ".f1jw7pan[data-fui-focus-visible]::after{right:-2px;}", ".fclwglc{padding-top:var(--spacingVerticalXXS);}", ".f1w3695s{padding-right:var(--spacingVerticalXXS);}", ".f1b0r8ql{padding-left:var(--spacingVerticalXXS);}", ".fywfov9{padding-bottom:var(--spacingVerticalXXS);}"],
104
- h: [".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}", ".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}", ".f1jpd6y0:hover .fui-Icon-filled{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".fuxngvv:hover .fui-Icon-regular{display:none;}", ".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}", ".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],
105
- m: [["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}", {
106
- m: "(forced-colors: active)"
107
- }], ["@media (forced-colors: active){.f1cg6951{color:Canvas;}}", {
108
- m: "(forced-colors: active)"
109
- }], ["@media (forced-colors: active){.fn0tkbb{color:CanvasText;}}", {
110
- m: "(forced-colors: active)"
111
- }], ["@media (forced-colors: active){.f1rp3av6:hover,.f1rp3av6:hover:active{forced-color-adjust:none;}}", {
112
- m: "(forced-colors: active)"
113
- }], ["@media (forced-colors: active){.f1u7gwqv:hover,.f1u7gwqv:hover:active{background-color:Highlight;}}", {
114
- m: "(forced-colors: active)"
115
- }], ["@media (forced-colors: active){.fl6kagl:hover,.fl6kagl:hover:active{color:Canvas;}}", {
116
- m: "(forced-colors: active)"
117
- }]],
118
- f: [".ftqa4ok:focus{outline-style:none;}"],
119
- i: [".f2hkw1w:focus-visible{outline-style:none;}"]
120
- });
121
- const usePopoverSurfaceStyles = /*#__PURE__*/__styles({
122
- smallMedium: {
123
- Bahqtrf: "fk6fouc",
124
- Be2twd7: "fy9rknc",
125
- Bhrd7zp: "figsok6",
126
- Bg96gwp: "fwrc4pm"
127
- },
128
- large: {
129
- Bahqtrf: "fk6fouc",
130
- Be2twd7: "fkhj508",
131
- Bhrd7zp: "figsok6",
132
- Bg96gwp: "f1i3iumi"
133
- }
134
- }, {
135
- d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}"]
136
- });
137
- /**
138
- * Apply styling to the InfoButton slots based on the state
139
- */
140
- export const useInfoButtonStyles_unstable = state => {
141
- const {
142
- size
143
- } = state;
144
- const {
145
- open
146
- } = state.popover;
147
- const buttonStyles = useButtonStyles();
148
- const popoverSurfaceStyles = usePopoverSurfaceStyles();
149
- state.content.className = mergeClasses(infoButtonClassNames.content, size === 'large' && popoverSurfaceStyles.large, state.content.className);
150
- state.root.className = mergeClasses(infoButtonClassNames.root, buttonStyles.base, buttonStyles.highContrast, buttonStyles.focusIndicator, open && buttonStyles.selected, size === 'large' && buttonStyles.large, state.root.className);
151
- return state;
152
- };
153
- //# sourceMappingURL=useInfoButtonStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"mappings":"AAAA,SAASA,uBAAuB,QAAQ,yBAAyB;AACjE,SAASC,mBAAmB,EAAEC,oBAAoB,QAAQ,uBAAuB;AACjF,mBAAqBC,YAAY,EAAEC,UAAU,QAAQ,gBAAgB;AACrE,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,uBAAuB;AAIhE,OAAO,MAAMC,oBAAoB,GAAoC;EACnEC,IAAI,EAAE,gBAAgB;EACtB;EACAC,OAAO,EAAE,yBAAyB;EAClCC,OAAO,EAAE;CACV;AAED;;;AAGA,MAAMC,eAAe,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;EAAA;EAAA;IAAA;EAAA;IAAA;EAAA;IAAA;EAAA;IAAA;EAAA;IAAA;EAAA;IAAA;EAAA;EAAA;EAAA;AAAA,EA4EtB;AAEF,MAAMC,uBAAuB,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAG9B;AAEF;;;AAGA,OAAO,MAAMC,4BAA4B,GAAIC,KAAsB,IAAqB;EACtF,MAAM;IAAEC;EAAI,CAAE,GAAGD,KAAK;EACtB,MAAM;IAAEE;EAAI,CAAE,GAAGF,KAAK,CAACL,OAAO;EAC9B,MAAMQ,YAAY,GAAGN,eAAe,EAAE;EACtC,MAAMO,oBAAoB,GAAGN,uBAAuB,EAAE;EAEtDE,KAAK,CAACJ,OAAO,CAACS,SAAS,GAAGhB,YAAY,CACpCI,oBAAoB,CAACG,OAAO,EAC5BK,IAAI,KAAK,OAAO,IAAIG,oBAAoB,CAACE,KAAK,EAC9CN,KAAK,CAACJ,OAAO,CAACS,SAAS,CACxB;EAEDL,KAAK,CAACN,IAAI,CAACW,SAAS,GAAGhB,YAAY,CACjCI,oBAAoB,CAACC,IAAI,EACzBS,YAAY,CAACI,IAAI,EACjBJ,YAAY,CAACK,YAAY,EACzBL,YAAY,CAACM,cAAc,EAC3BP,IAAI,IAAIC,YAAY,CAACO,QAAQ,EAC7BT,IAAI,KAAK,OAAO,IAAIE,YAAY,CAACG,KAAK,EACtCN,KAAK,CAACN,IAAI,CAACW,SAAS,CACrB;EAED,OAAOL,KAAK;AACd,CAAC","names":["createFocusOutlineStyle","iconFilledClassName","iconRegularClassName","mergeClasses","shorthands","tokens","typographyStyles","infoButtonClassNames","root","popover","content","useButtonStyles","usePopoverSurfaceStyles","useInfoButtonStyles_unstable","state","size","open","buttonStyles","popoverSurfaceStyles","className","large","base","highContrast","focusIndicator","selected"],"sourceRoot":"../src/","sources":["packages/react-components/react-infobutton/src/components/InfoButton/useInfoButtonStyles.ts"],"sourcesContent":["import { createFocusOutlineStyle } from '@fluentui/react-tabster';\nimport { iconFilledClassName, iconRegularClassName } from '@fluentui/react-icons';\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport type { InfoButtonSlots, InfoButtonState } from './InfoButton.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const infoButtonClassNames: SlotClassNames<InfoButtonSlots> = {\n root: 'fui-InfoButton',\n // this className won't be used, but it's needed to satisfy the type checker\n popover: 'fui-InfoButton__popover',\n content: 'fui-InfoButton__content',\n};\n\n/**\n * Styles for the root slot\n */\nconst useButtonStyles = makeStyles({\n base: {\n alignItems: 'center',\n boxSizing: 'border-box',\n display: 'inline-flex',\n justifyContent: 'center',\n textDecorationLine: 'none',\n verticalAlign: 'middle',\n position: 'relative',\n\n backgroundColor: tokens.colorTransparentBackground,\n color: tokens.colorNeutralForeground2,\n\n ...shorthands.borderStyle('none'),\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n ...shorthands.margin(0),\n ...shorthands.padding(tokens.spacingVerticalXS, tokens.spacingHorizontalXS),\n\n [`& .${iconFilledClassName}`]: {\n display: 'none',\n },\n [`& .${iconRegularClassName}`]: {\n display: 'inline-flex',\n },\n\n ':hover': {\n backgroundColor: tokens.colorTransparentBackgroundHover,\n color: tokens.colorNeutralForeground2BrandHover,\n\n [`& .${iconFilledClassName}`]: {\n display: 'inline-flex',\n },\n [`& .${iconRegularClassName}`]: {\n display: 'none',\n },\n },\n ':hover:active': {\n backgroundColor: tokens.colorTransparentBackgroundPressed,\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\n\n selected: {\n backgroundColor: tokens.colorTransparentBackgroundSelected,\n color: tokens.colorNeutralForeground2BrandSelected,\n\n [`& .${iconFilledClassName}`]: {\n display: 'inline-flex',\n },\n [`& .${iconRegularClassName}`]: {\n display: 'none',\n },\n\n '@media (forced-colors: active)': {\n backgroundColor: 'Highlight',\n color: 'Canvas',\n },\n },\n\n highContrast: {\n '@media (forced-colors: active)': {\n color: 'CanvasText',\n\n ':hover,:hover:active': {\n forcedColorAdjust: 'none',\n backgroundColor: 'Highlight',\n color: 'Canvas',\n },\n },\n },\n\n focusIndicator: createFocusOutlineStyle(),\n\n large: {\n ...shorthands.padding(tokens.spacingVerticalXXS, tokens.spacingVerticalXXS),\n },\n});\n\nconst usePopoverSurfaceStyles = makeStyles({\n smallMedium: typographyStyles.caption1,\n large: typographyStyles.body1,\n});\n\n/**\n * Apply styling to the InfoButton slots based on the state\n */\nexport const useInfoButtonStyles_unstable = (state: InfoButtonState): InfoButtonState => {\n const { size } = state;\n const { open } = state.popover;\n const buttonStyles = useButtonStyles();\n const popoverSurfaceStyles = usePopoverSurfaceStyles();\n\n state.content.className = mergeClasses(\n infoButtonClassNames.content,\n size === 'large' && popoverSurfaceStyles.large,\n state.content.className,\n );\n\n state.root.className = mergeClasses(\n infoButtonClassNames.root,\n buttonStyles.base,\n buttonStyles.highContrast,\n buttonStyles.focusIndicator,\n open && buttonStyles.selected,\n size === 'large' && buttonStyles.large,\n state.root.className,\n );\n\n return state;\n};\n"]}