@fluentui/react-infobutton 9.0.0-beta.9 → 9.0.0-beta.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1001 -3
- package/README.md +3 -24
- package/dist/index.d.ts +109 -5
- package/lib/InfoButton.js +0 -1
- package/lib/InfoButton.js.map +1 -1
- package/lib/InfoLabel.js +1 -0
- package/lib/InfoLabel.js.map +1 -0
- package/lib/components/InfoButton/DefaultInfoButtonIcons.js +3 -4
- package/lib/components/InfoButton/DefaultInfoButtonIcons.js.map +1 -1
- package/lib/components/InfoButton/InfoButton.js +8 -8
- package/lib/components/InfoButton/InfoButton.js.map +1 -1
- package/lib/components/InfoButton/InfoButton.types.js +1 -2
- package/lib/components/InfoButton/InfoButton.types.js.map +1 -1
- package/lib/components/InfoButton/index.js +1 -2
- package/lib/components/InfoButton/index.js.map +1 -1
- package/lib/components/InfoButton/renderInfoButton.js +14 -16
- package/lib/components/InfoButton/renderInfoButton.js.map +1 -1
- package/lib/components/InfoButton/useInfoButton.js +71 -51
- package/lib/components/InfoButton/useInfoButton.js.map +1 -1
- package/lib/components/InfoButton/useInfoButtonStyles.styles.js +169 -0
- package/lib/components/InfoButton/useInfoButtonStyles.styles.js.map +1 -0
- package/lib/components/InfoLabel/InfoLabel.js +14 -0
- package/lib/components/InfoLabel/InfoLabel.js.map +1 -0
- package/lib/components/InfoLabel/InfoLabel.types.js +1 -0
- package/lib/components/InfoLabel/InfoLabel.types.js.map +1 -0
- package/lib/components/InfoLabel/index.js +5 -0
- package/lib/components/InfoLabel/index.js.map +1 -0
- package/lib/components/InfoLabel/renderInfoLabel.js +15 -0
- package/lib/components/InfoLabel/renderInfoLabel.js.map +1 -0
- package/lib/components/InfoLabel/useInfoLabel.js +79 -0
- package/lib/components/InfoLabel/useInfoLabel.js.map +1 -0
- package/lib/components/InfoLabel/useInfoLabelStyles.styles.js +48 -0
- package/lib/components/InfoLabel/useInfoLabelStyles.styles.js.map +1 -0
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib-commonjs/InfoButton.js +3 -5
- package/lib-commonjs/InfoButton.js.map +1 -1
- package/lib-commonjs/InfoLabel.js +6 -0
- package/lib-commonjs/InfoLabel.js.map +1 -0
- package/lib-commonjs/components/InfoButton/DefaultInfoButtonIcons.js +22 -8
- package/lib-commonjs/components/InfoButton/DefaultInfoButtonIcons.js.map +1 -1
- package/lib-commonjs/components/InfoButton/InfoButton.js +18 -17
- package/lib-commonjs/components/InfoButton/InfoButton.js.map +1 -1
- package/lib-commonjs/components/InfoButton/InfoButton.types.js +2 -4
- package/lib-commonjs/components/InfoButton/InfoButton.types.js.map +1 -1
- package/lib-commonjs/components/InfoButton/index.js +7 -9
- package/lib-commonjs/components/InfoButton/index.js.map +1 -1
- package/lib-commonjs/components/InfoButton/renderInfoButton.js +21 -24
- package/lib-commonjs/components/InfoButton/renderInfoButton.js.map +1 -1
- package/lib-commonjs/components/InfoButton/useInfoButton.js +80 -66
- package/lib-commonjs/components/InfoButton/useInfoButton.js.map +1 -1
- package/lib-commonjs/components/InfoButton/useInfoButtonStyles.styles.js +376 -0
- package/lib-commonjs/components/InfoButton/useInfoButtonStyles.styles.js.map +1 -0
- package/lib-commonjs/components/InfoLabel/InfoLabel.js +21 -0
- package/lib-commonjs/components/InfoLabel/InfoLabel.js.map +1 -0
- package/lib-commonjs/components/InfoLabel/InfoLabel.types.js +4 -0
- package/lib-commonjs/components/InfoLabel/InfoLabel.types.js.map +1 -0
- package/lib-commonjs/components/InfoLabel/index.js +10 -0
- package/lib-commonjs/components/InfoLabel/index.js.map +1 -0
- package/lib-commonjs/components/InfoLabel/renderInfoLabel.js +21 -0
- package/lib-commonjs/components/InfoLabel/renderInfoLabel.js.map +1 -0
- package/lib-commonjs/components/InfoLabel/useInfoLabel.js +80 -0
- package/lib-commonjs/components/InfoLabel/useInfoLabel.js.map +1 -0
- package/lib-commonjs/components/InfoLabel/useInfoLabelStyles.styles.js +66 -0
- package/lib-commonjs/components/InfoLabel/useInfoLabelStyles.styles.js.map +1 -0
- package/lib-commonjs/index.js +41 -35
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +29 -17
- package/CHANGELOG.json +0 -288
- package/lib/components/InfoButton/useInfoButtonStyles.js +0 -153
- package/lib/components/InfoButton/useInfoButtonStyles.js.map +0 -1
- package/lib-commonjs/components/InfoButton/useInfoButtonStyles.js +0 -160
- package/lib-commonjs/components/InfoButton/useInfoButtonStyles.js.map +0 -1
package/CHANGELOG.json
DELETED
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fluentui/react-infobutton",
|
|
3
|
-
"entries": [
|
|
4
|
-
{
|
|
5
|
-
"date": "Mon, 23 Jan 2023 16:41:44 GMT",
|
|
6
|
-
"tag": "@fluentui/react-infobutton_v9.0.0-beta.9",
|
|
7
|
-
"version": "9.0.0-beta.9",
|
|
8
|
-
"comments": {
|
|
9
|
-
"prerelease": [
|
|
10
|
-
{
|
|
11
|
-
"author": "beachball",
|
|
12
|
-
"package": "@fluentui/react-infobutton",
|
|
13
|
-
"comment": "Bump @fluentui/react-popover to v9.4.3",
|
|
14
|
-
"commit": "86a28f6ebcc84819c695f12b841b9377736fb5f7"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"date": "Wed, 18 Jan 2023 16:32:57 GMT",
|
|
21
|
-
"tag": "@fluentui/react-infobutton_v9.0.0-beta.8",
|
|
22
|
-
"version": "9.0.0-beta.8",
|
|
23
|
-
"comments": {
|
|
24
|
-
"prerelease": [
|
|
25
|
-
{
|
|
26
|
-
"author": "beachball",
|
|
27
|
-
"package": "@fluentui/react-infobutton",
|
|
28
|
-
"comment": "Bump @fluentui/react-popover to v9.4.2",
|
|
29
|
-
"commit": "13cf1d07a6df4617106c731ba0379b6102a08104"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"author": "beachball",
|
|
33
|
-
"package": "@fluentui/react-infobutton",
|
|
34
|
-
"comment": "Bump @fluentui/react-tabster to v9.4.0",
|
|
35
|
-
"commit": "13cf1d07a6df4617106c731ba0379b6102a08104"
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"date": "Mon, 16 Jan 2023 08:39:02 GMT",
|
|
42
|
-
"tag": "@fluentui/react-infobutton_v9.0.0-beta.7",
|
|
43
|
-
"version": "9.0.0-beta.7",
|
|
44
|
-
"comments": {
|
|
45
|
-
"prerelease": [
|
|
46
|
-
{
|
|
47
|
-
"author": "esteban.230@hotmail.com",
|
|
48
|
-
"package": "@fluentui/react-infobutton",
|
|
49
|
-
"commit": "4aa7a43c0c302dc151d6446abfde95fe9637edb0",
|
|
50
|
-
"comment": "fix: Update border for Teams HCM to be transparent."
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"author": "esteban.230@hotmail.com",
|
|
54
|
-
"package": "@fluentui/react-infobutton",
|
|
55
|
-
"commit": "b326546752a1df3cf4d626dee2d5c47b59ba00ae",
|
|
56
|
-
"comment": "fix: Update PopoverSurface's role to note and remove need to cast props passed to popover slot."
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"author": "beachball",
|
|
60
|
-
"package": "@fluentui/react-infobutton",
|
|
61
|
-
"comment": "Bump @fluentui/react-popover to v9.4.1",
|
|
62
|
-
"commit": "a870d8360e47f3ea03358c4e75e89e08a74845d7"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"author": "beachball",
|
|
66
|
-
"package": "@fluentui/react-infobutton",
|
|
67
|
-
"comment": "Bump @fluentui/react-tabster to v9.3.7",
|
|
68
|
-
"commit": "a870d8360e47f3ea03358c4e75e89e08a74845d7"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"none": [
|
|
72
|
-
{
|
|
73
|
-
"author": "martinhochel@microsoft.com",
|
|
74
|
-
"package": "@fluentui/react-infobutton",
|
|
75
|
-
"commit": "64bb45980d68de1219c6b36a7db5363f0a9cff9f",
|
|
76
|
-
"comment": "chore: migrate to packaged scripts"
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"date": "Mon, 09 Jan 2023 14:35:02 GMT",
|
|
83
|
-
"tag": "@fluentui/react-infobutton_v9.0.0-beta.6",
|
|
84
|
-
"version": "9.0.0-beta.6",
|
|
85
|
-
"comments": {
|
|
86
|
-
"prerelease": [
|
|
87
|
-
{
|
|
88
|
-
"author": "beachball",
|
|
89
|
-
"package": "@fluentui/react-infobutton",
|
|
90
|
-
"comment": "Bump @fluentui/react-popover to v9.4.0",
|
|
91
|
-
"commit": "d246e70eba59a37ec311dbf933b0745d34cb700d"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"author": "beachball",
|
|
95
|
-
"package": "@fluentui/react-infobutton",
|
|
96
|
-
"comment": "Bump @fluentui/react-tabster to v9.3.6",
|
|
97
|
-
"commit": "d246e70eba59a37ec311dbf933b0745d34cb700d"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"author": "beachball",
|
|
101
|
-
"package": "@fluentui/react-infobutton",
|
|
102
|
-
"comment": "Bump @fluentui/react-utilities to v9.4.0",
|
|
103
|
-
"commit": "d246e70eba59a37ec311dbf933b0745d34cb700d"
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"date": "Wed, 04 Jan 2023 01:40:08 GMT",
|
|
110
|
-
"tag": "@fluentui/react-infobutton_v9.0.0-beta.5",
|
|
111
|
-
"version": "9.0.0-beta.5",
|
|
112
|
-
"comments": {
|
|
113
|
-
"prerelease": [
|
|
114
|
-
{
|
|
115
|
-
"author": "tristan.watanabe@gmail.com",
|
|
116
|
-
"package": "@fluentui/react-infobutton",
|
|
117
|
-
"commit": "b1f29f551486777885af53a857220bffa5342b0f",
|
|
118
|
-
"comment": "chore: migrate to new package structure."
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"author": "olfedias@microsoft.com",
|
|
122
|
-
"package": "@fluentui/react-infobutton",
|
|
123
|
-
"commit": "2c38f1e4ae07b2b60df596efe11015a68f166dbf",
|
|
124
|
-
"comment": "chore: Update Griffel to latest version"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"author": "beachball",
|
|
128
|
-
"package": "@fluentui/react-infobutton",
|
|
129
|
-
"comment": "Bump @fluentui/react-popover to v9.3.6",
|
|
130
|
-
"commit": "3e322d15529451be153e97298873253e21af4082"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"author": "beachball",
|
|
134
|
-
"package": "@fluentui/react-infobutton",
|
|
135
|
-
"comment": "Bump @fluentui/react-tabster to v9.3.5",
|
|
136
|
-
"commit": "3e322d15529451be153e97298873253e21af4082"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"author": "beachball",
|
|
140
|
-
"package": "@fluentui/react-infobutton",
|
|
141
|
-
"comment": "Bump @fluentui/react-utilities to v9.3.1",
|
|
142
|
-
"commit": "3e322d15529451be153e97298873253e21af4082"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"author": "beachball",
|
|
146
|
-
"package": "@fluentui/react-infobutton",
|
|
147
|
-
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.19",
|
|
148
|
-
"commit": "3e322d15529451be153e97298873253e21af4082"
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
"none": [
|
|
152
|
-
{
|
|
153
|
-
"author": "martinhochel@microsoft.com",
|
|
154
|
-
"package": "@fluentui/react-infobutton",
|
|
155
|
-
"commit": "4ec2b998b294d6d9c3196d3d82893bdd97d0c105",
|
|
156
|
-
"comment": "chore(scripts): move index.ts to to follow sub-folder domain packaging"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"author": "martinhochel@microsoft.com",
|
|
160
|
-
"package": "@fluentui/react-infobutton",
|
|
161
|
-
"commit": "194b0cf0cc27c1c1233aa945f09b3ad29778d8ca",
|
|
162
|
-
"comment": "chore(scripts): use for @fluentui/scripts version within all package.json"
|
|
163
|
-
}
|
|
164
|
-
]
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"date": "Wed, 21 Dec 2022 10:20:33 GMT",
|
|
169
|
-
"tag": "@fluentui/react-infobutton_v9.0.0-beta.4",
|
|
170
|
-
"version": "9.0.0-beta.4",
|
|
171
|
-
"comments": {
|
|
172
|
-
"prerelease": [
|
|
173
|
-
{
|
|
174
|
-
"author": "beachball",
|
|
175
|
-
"package": "@fluentui/react-infobutton",
|
|
176
|
-
"comment": "Bump @fluentui/react-popover to v9.3.5",
|
|
177
|
-
"commit": "66bf89f634cad4a275e957d7a2214c7e73ff8c2e"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"author": "beachball",
|
|
181
|
-
"package": "@fluentui/react-infobutton",
|
|
182
|
-
"comment": "Bump @fluentui/react-tabster to v9.3.4",
|
|
183
|
-
"commit": "66bf89f634cad4a275e957d7a2214c7e73ff8c2e"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"author": "beachball",
|
|
187
|
-
"package": "@fluentui/react-infobutton",
|
|
188
|
-
"comment": "Bump @fluentui/react-theme to v9.1.5",
|
|
189
|
-
"commit": "66bf89f634cad4a275e957d7a2214c7e73ff8c2e"
|
|
190
|
-
}
|
|
191
|
-
]
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"date": "Tue, 20 Dec 2022 14:59:34 GMT",
|
|
196
|
-
"tag": "@fluentui/react-infobutton_v9.0.0-beta.3",
|
|
197
|
-
"version": "9.0.0-beta.3",
|
|
198
|
-
"comments": {
|
|
199
|
-
"prerelease": [
|
|
200
|
-
{
|
|
201
|
-
"author": "beachball",
|
|
202
|
-
"package": "@fluentui/react-infobutton",
|
|
203
|
-
"comment": "Bump @fluentui/react-popover to v9.3.4",
|
|
204
|
-
"commit": "e7530bc179fd0e303448083c76a4af41a0e15322"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"author": "beachball",
|
|
208
|
-
"package": "@fluentui/react-infobutton",
|
|
209
|
-
"comment": "Bump @fluentui/react-tabster to v9.3.3",
|
|
210
|
-
"commit": "e7530bc179fd0e303448083c76a4af41a0e15322"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"author": "beachball",
|
|
214
|
-
"package": "@fluentui/react-infobutton",
|
|
215
|
-
"comment": "Bump @fluentui/react-theme to v9.1.4",
|
|
216
|
-
"commit": "e7530bc179fd0e303448083c76a4af41a0e15322"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"author": "beachball",
|
|
220
|
-
"package": "@fluentui/react-infobutton",
|
|
221
|
-
"comment": "Bump @fluentui/react-utilities to v9.3.0",
|
|
222
|
-
"commit": "e7530bc179fd0e303448083c76a4af41a0e15322"
|
|
223
|
-
}
|
|
224
|
-
]
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"date": "Mon, 05 Dec 2022 18:29:39 GMT",
|
|
229
|
-
"tag": "@fluentui/react-infobutton_v9.0.0-beta.2",
|
|
230
|
-
"version": "9.0.0-beta.2",
|
|
231
|
-
"comments": {
|
|
232
|
-
"prerelease": [
|
|
233
|
-
{
|
|
234
|
-
"author": "beachball",
|
|
235
|
-
"package": "@fluentui/react-infobutton",
|
|
236
|
-
"comment": "Bump @fluentui/react-popover to v9.3.3",
|
|
237
|
-
"commit": "4c29542a51bf068e171690cc8e59c14489883912"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"author": "beachball",
|
|
241
|
-
"package": "@fluentui/react-infobutton",
|
|
242
|
-
"comment": "Bump @fluentui/react-tabster to v9.3.2",
|
|
243
|
-
"commit": "4c29542a51bf068e171690cc8e59c14489883912"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"author": "beachball",
|
|
247
|
-
"package": "@fluentui/react-infobutton",
|
|
248
|
-
"comment": "Bump @fluentui/react-theme to v9.1.3",
|
|
249
|
-
"commit": "4c29542a51bf068e171690cc8e59c14489883912"
|
|
250
|
-
}
|
|
251
|
-
]
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"date": "Thu, 17 Nov 2022 23:05:40 GMT",
|
|
256
|
-
"tag": "@fluentui/react-infobutton_v9.0.0-beta.1",
|
|
257
|
-
"version": "9.0.0-beta.1",
|
|
258
|
-
"comments": {
|
|
259
|
-
"prerelease": [
|
|
260
|
-
{
|
|
261
|
-
"author": "esteban.230@hotmail.com",
|
|
262
|
-
"package": "@fluentui/react-infobutton",
|
|
263
|
-
"commit": "e22929a533e0830fc75e547b733b38dee60af00e",
|
|
264
|
-
"comment": "chore: Making the package public and preparing to add to unstable."
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"author": "beachball",
|
|
268
|
-
"package": "@fluentui/react-infobutton",
|
|
269
|
-
"comment": "Bump @fluentui/react-popover to v9.3.2",
|
|
270
|
-
"commit": "94e156be5d3b5790d82dccf08c32672733fb9335"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"author": "beachball",
|
|
274
|
-
"package": "@fluentui/react-infobutton",
|
|
275
|
-
"comment": "Bump @fluentui/react-tabster to v9.3.1",
|
|
276
|
-
"commit": "94e156be5d3b5790d82dccf08c32672733fb9335"
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
"author": "beachball",
|
|
280
|
-
"package": "@fluentui/react-infobutton",
|
|
281
|
-
"comment": "Bump @fluentui/react-utilities to v9.2.2",
|
|
282
|
-
"commit": "94e156be5d3b5790d82dccf08c32672733fb9335"
|
|
283
|
-
}
|
|
284
|
-
]
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
]
|
|
288
|
-
}
|
|
@@ -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"]}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useInfoButtonStyles_unstable = exports.infoButtonClassNames = void 0;
|
|
7
|
-
const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
|
|
8
|
-
const react_icons_1 = /*#__PURE__*/require("@fluentui/react-icons");
|
|
9
|
-
const react_1 = /*#__PURE__*/require("@griffel/react");
|
|
10
|
-
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
|
11
|
-
exports.infoButtonClassNames = {
|
|
12
|
-
root: 'fui-InfoButton',
|
|
13
|
-
// this className won't be used, but it's needed to satisfy the type checker
|
|
14
|
-
popover: 'fui-InfoButton__popover',
|
|
15
|
-
content: 'fui-InfoButton__content'
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Styles for the root slot
|
|
19
|
-
*/
|
|
20
|
-
const useButtonStyles = /*#__PURE__*/react_1.__styles({
|
|
21
|
-
base: {
|
|
22
|
-
Bt984gj: "f122n59",
|
|
23
|
-
B7ck84d: "f1ewtqcl",
|
|
24
|
-
mc9l5x: "ftuwxu6",
|
|
25
|
-
Brf1p80: "f4d9j23",
|
|
26
|
-
w71qe1: "f1iuv45f",
|
|
27
|
-
ha4doy: "fmrv4ls",
|
|
28
|
-
qhf8xq: "f10pi13n",
|
|
29
|
-
De3pzq: "f1c21dwh",
|
|
30
|
-
sj55zd: "fkfq4zb",
|
|
31
|
-
icvyot: "f1ern45e",
|
|
32
|
-
vrafjx: ["f1n71otn", "f1deefiw"],
|
|
33
|
-
oivjwe: "f1h8hb77",
|
|
34
|
-
wvpqe5: ["f1deefiw", "f1n71otn"],
|
|
35
|
-
Bbmb7ep: ["f1aa9q02", "f16jpd5f"],
|
|
36
|
-
Beyfa6y: ["f16jpd5f", "f1aa9q02"],
|
|
37
|
-
B7oj6ja: ["f1jar5jt", "fyu767a"],
|
|
38
|
-
Btl43ni: ["fyu767a", "f1jar5jt"],
|
|
39
|
-
B6of3ja: "f1hu3pq6",
|
|
40
|
-
t21cq0: ["f11qmguv", "f1tyq0we"],
|
|
41
|
-
jrapky: "f19f4twv",
|
|
42
|
-
Frg6f3: ["f1tyq0we", "f11qmguv"],
|
|
43
|
-
z8tnut: "f1ywm7hm",
|
|
44
|
-
z189sj: ["f7x41pl", "fruq291"],
|
|
45
|
-
Byoj8tv: "f14wxoun",
|
|
46
|
-
uwmqm3: ["fruq291", "f7x41pl"],
|
|
47
|
-
D0sxk3: "f16u1re",
|
|
48
|
-
t6yez3: "f1rw4040",
|
|
49
|
-
Jwef8y: "fjxutwb",
|
|
50
|
-
Bi91k9c: "f139oj5f",
|
|
51
|
-
Bk3fhr4: "f1jpd6y0",
|
|
52
|
-
Bmfj8id: "fuxngvv",
|
|
53
|
-
iro3zm: "fwiml72",
|
|
54
|
-
B2d53fq: "f1fg1p5m"
|
|
55
|
-
},
|
|
56
|
-
selected: {
|
|
57
|
-
De3pzq: "f1q9pm1r",
|
|
58
|
-
sj55zd: "f1qj7y59",
|
|
59
|
-
D0sxk3: "fgzdkf0",
|
|
60
|
-
t6yez3: "f15q0o9g",
|
|
61
|
-
Bsw6fvg: "f1rirnrt",
|
|
62
|
-
Bbusuzp: "f1cg6951"
|
|
63
|
-
},
|
|
64
|
-
highContrast: {
|
|
65
|
-
Bbusuzp: "fn0tkbb",
|
|
66
|
-
Bs6v0vm: "f1rp3av6",
|
|
67
|
-
B46dtvo: "f1u7gwqv",
|
|
68
|
-
gh1jta: "fl6kagl"
|
|
69
|
-
},
|
|
70
|
-
focusIndicator: {
|
|
71
|
-
Brovlpu: "ftqa4ok",
|
|
72
|
-
B486eqv: "f2hkw1w",
|
|
73
|
-
B8q5s1w: "f8hki3x",
|
|
74
|
-
Bci5o5g: ["f1d2448m", "ffh67wi"],
|
|
75
|
-
n8qw10: "f1bjia2o",
|
|
76
|
-
Bdrgwmp: ["ffh67wi", "f1d2448m"],
|
|
77
|
-
Bm4h7ae: "f15bsgw9",
|
|
78
|
-
B7ys5i9: "f14e48fq",
|
|
79
|
-
Busjfv9: "f18yb2kv",
|
|
80
|
-
Bhk32uz: "fd6o370",
|
|
81
|
-
Bf4ptjt: "fh1cnn4",
|
|
82
|
-
kclons: ["fy7oxxb", "f184ne2d"],
|
|
83
|
-
Bhdgwq3: "fpukqih",
|
|
84
|
-
Blkhhs4: ["f184ne2d", "fy7oxxb"],
|
|
85
|
-
Bqtpl0w: "frrh606",
|
|
86
|
-
clg4pj: ["f1v5zibi", "fo2hd23"],
|
|
87
|
-
hgwjuy: "ful5kiu",
|
|
88
|
-
Bonggc9: ["fo2hd23", "f1v5zibi"],
|
|
89
|
-
B1tsrr9: ["f1jqcqds", "ftffrms"],
|
|
90
|
-
Dah5zi: ["ftffrms", "f1jqcqds"],
|
|
91
|
-
Bkh64rk: ["f2e7qr6", "fsr1zz6"],
|
|
92
|
-
qqdqy8: ["fsr1zz6", "f2e7qr6"],
|
|
93
|
-
B6dhp37: "f1dvezut",
|
|
94
|
-
i03rao: ["fd0oaoj", "f1cwg4i8"],
|
|
95
|
-
Boxcth7: "fjvm52t",
|
|
96
|
-
Bsom6fd: ["f1cwg4i8", "fd0oaoj"],
|
|
97
|
-
J0r882: "fdiulkx",
|
|
98
|
-
Bjwuhne: "f1yalx80",
|
|
99
|
-
Ghsupd: ["fq22d5a", "f1jw7pan"],
|
|
100
|
-
Bule8hv: ["f1jw7pan", "fq22d5a"]
|
|
101
|
-
},
|
|
102
|
-
large: {
|
|
103
|
-
z8tnut: "fclwglc",
|
|
104
|
-
z189sj: ["f1w3695s", "f1b0r8ql"],
|
|
105
|
-
Byoj8tv: "fywfov9",
|
|
106
|
-
uwmqm3: ["f1b0r8ql", "f1w3695s"]
|
|
107
|
-
}
|
|
108
|
-
}, {
|
|
109
|
-
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);}"],
|
|
110
|
-
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);}"],
|
|
111
|
-
m: [["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}", {
|
|
112
|
-
m: "(forced-colors: active)"
|
|
113
|
-
}], ["@media (forced-colors: active){.f1cg6951{color:Canvas;}}", {
|
|
114
|
-
m: "(forced-colors: active)"
|
|
115
|
-
}], ["@media (forced-colors: active){.fn0tkbb{color:CanvasText;}}", {
|
|
116
|
-
m: "(forced-colors: active)"
|
|
117
|
-
}], ["@media (forced-colors: active){.f1rp3av6:hover,.f1rp3av6:hover:active{forced-color-adjust:none;}}", {
|
|
118
|
-
m: "(forced-colors: active)"
|
|
119
|
-
}], ["@media (forced-colors: active){.f1u7gwqv:hover,.f1u7gwqv:hover:active{background-color:Highlight;}}", {
|
|
120
|
-
m: "(forced-colors: active)"
|
|
121
|
-
}], ["@media (forced-colors: active){.fl6kagl:hover,.fl6kagl:hover:active{color:Canvas;}}", {
|
|
122
|
-
m: "(forced-colors: active)"
|
|
123
|
-
}]],
|
|
124
|
-
f: [".ftqa4ok:focus{outline-style:none;}"],
|
|
125
|
-
i: [".f2hkw1w:focus-visible{outline-style:none;}"]
|
|
126
|
-
});
|
|
127
|
-
const usePopoverSurfaceStyles = /*#__PURE__*/react_1.__styles({
|
|
128
|
-
smallMedium: {
|
|
129
|
-
Bahqtrf: "fk6fouc",
|
|
130
|
-
Be2twd7: "fy9rknc",
|
|
131
|
-
Bhrd7zp: "figsok6",
|
|
132
|
-
Bg96gwp: "fwrc4pm"
|
|
133
|
-
},
|
|
134
|
-
large: {
|
|
135
|
-
Bahqtrf: "fk6fouc",
|
|
136
|
-
Be2twd7: "fkhj508",
|
|
137
|
-
Bhrd7zp: "figsok6",
|
|
138
|
-
Bg96gwp: "f1i3iumi"
|
|
139
|
-
}
|
|
140
|
-
}, {
|
|
141
|
-
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);}"]
|
|
142
|
-
});
|
|
143
|
-
/**
|
|
144
|
-
* Apply styling to the InfoButton slots based on the state
|
|
145
|
-
*/
|
|
146
|
-
const useInfoButtonStyles_unstable = state => {
|
|
147
|
-
const {
|
|
148
|
-
size
|
|
149
|
-
} = state;
|
|
150
|
-
const {
|
|
151
|
-
open
|
|
152
|
-
} = state.popover;
|
|
153
|
-
const buttonStyles = useButtonStyles();
|
|
154
|
-
const popoverSurfaceStyles = usePopoverSurfaceStyles();
|
|
155
|
-
state.content.className = react_1.mergeClasses(exports.infoButtonClassNames.content, size === 'large' && popoverSurfaceStyles.large, state.content.className);
|
|
156
|
-
state.root.className = react_1.mergeClasses(exports.infoButtonClassNames.root, buttonStyles.base, buttonStyles.highContrast, buttonStyles.focusIndicator, open && buttonStyles.selected, size === 'large' && buttonStyles.large, state.root.className);
|
|
157
|
-
return state;
|
|
158
|
-
};
|
|
159
|
-
exports.useInfoButtonStyles_unstable = useInfoButtonStyles_unstable;
|
|
160
|
-
//# sourceMappingURL=useInfoButtonStyles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"mappings":";;;;;;AAAA;AACA;AACA;AACA;AAIaA,4BAAoB,GAAoC;EACnEC,IAAI,EAAE,gBAAgB;EACtB;EACAC,OAAO,EAAE,yBAAyB;EAClCC,OAAO,EAAE;CACV;AAED;;;AAGA,MAAMC,eAAe,gBAAGC,gBAAU;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,EA4EhC;AAEF,MAAMC,uBAAuB,gBAAGD,gBAAU;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAGxC;AAEF;;;AAGO,MAAME,4BAA4B,GAAIC,KAAsB,IAAqB;EACtF,MAAM;IAAEC;EAAI,CAAE,GAAGD,KAAK;EACtB,MAAM;IAAEE;EAAI,CAAE,GAAGF,KAAK,CAACN,OAAO;EAC9B,MAAMS,YAAY,GAAGP,eAAe,EAAE;EACtC,MAAMQ,oBAAoB,GAAGN,uBAAuB,EAAE;EAEtDE,KAAK,CAACL,OAAO,CAACU,SAAS,GAAGR,oBAAY,CACpCL,4BAAoB,CAACG,OAAO,EAC5BM,IAAI,KAAK,OAAO,IAAIG,oBAAoB,CAACE,KAAK,EAC9CN,KAAK,CAACL,OAAO,CAACU,SAAS,CACxB;EAEDL,KAAK,CAACP,IAAI,CAACY,SAAS,GAAGR,oBAAY,CACjCL,4BAAoB,CAACC,IAAI,EACzBU,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,CAACP,IAAI,CAACY,SAAS,CACrB;EAED,OAAOL,KAAK;AACd,CAAC;AAvBYR,oCAA4B","names":["exports","root","popover","content","useButtonStyles","react_1","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"]}
|