@fluentui/react-components 9.0.0-rc.7 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +4293 -1
- package/CHANGELOG.md +915 -32
- package/assets/alert-keyboard.png +0 -0
- package/assets/alert-mouse-touch.png +0 -0
- package/assets/dialog-anatomy.png +0 -0
- package/assets/modal-keyboard.png +0 -0
- package/assets/modal-mouse-touch.png +0 -0
- package/assets/non-modal-keyboard.png +0 -0
- package/assets/non-modal-mouse-touch.png +0 -0
- package/dist/{react-components.d.ts → index.d.ts} +388 -166
- package/{lib → dist}/tsdoc-metadata.json +0 -0
- package/dist/unstable.d.ts +461 -0
- package/lib/AccessibilityScenarios/utils.js.map +1 -1
- package/lib/Concepts/Icons/ReactIconGrid.js +3 -2
- package/lib/Concepts/Icons/ReactIconGrid.js.map +1 -1
- package/lib/index.js +25 -93
- package/lib/index.js.map +1 -1
- package/lib/unstable/index.js +8 -26
- package/lib/unstable/index.js.map +1 -1
- package/lib-commonjs/AccessibilityScenarios/utils.js.map +1 -1
- package/lib-commonjs/Concepts/Icons/ReactIconGrid.js +3 -2
- package/lib-commonjs/Concepts/Icons/ReactIconGrid.js.map +1 -1
- package/lib-commonjs/index.js +401 -363
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/unstable/index.js +206 -158
- package/lib-commonjs/unstable/index.js.map +1 -1
- package/package.json +44 -39
- package/unstable/package.json +1 -1
- package/lib/AccessibilityScenarios/utils.d.ts +0 -13
- package/lib/Concepts/Icons/ReactIconGrid.d.ts +0 -2
- package/lib/DocsComponents/isHosted.d.ts +0 -1
- package/lib/DocsComponents/isHosted.js +0 -10
- package/lib/DocsComponents/isHosted.js.map +0 -1
- package/lib/index.d.ts +0 -35
- package/lib/unstable/index.d.ts +0 -16
- package/lib-commonjs/AccessibilityScenarios/utils.d.ts +0 -13
- package/lib-commonjs/Concepts/Icons/ReactIconGrid.d.ts +0 -2
- package/lib-commonjs/DocsComponents/isHosted.d.ts +0 -1
- package/lib-commonjs/DocsComponents/isHosted.js +0 -18
- package/lib-commonjs/DocsComponents/isHosted.js.map +0 -1
- package/lib-commonjs/index.d.ts +0 -35
- package/lib-commonjs/unstable/index.d.ts +0 -16
|
File without changes
|
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
import { Alert } from '@fluentui/react-alert';
|
|
2
|
+
import { alertClassNames } from '@fluentui/react-alert';
|
|
3
|
+
import { AlertProps } from '@fluentui/react-alert';
|
|
4
|
+
import { AlertSlots } from '@fluentui/react-alert';
|
|
5
|
+
import { AlertState } from '@fluentui/react-alert';
|
|
6
|
+
import { AvatarGroup } from '@fluentui/react-avatar';
|
|
7
|
+
import { avatarGroupClassNames } from '@fluentui/react-avatar';
|
|
8
|
+
import { AvatarGroupItem } from '@fluentui/react-avatar';
|
|
9
|
+
import { avatarGroupItemClassNames } from '@fluentui/react-avatar';
|
|
10
|
+
import { AvatarGroupItemProps } from '@fluentui/react-avatar';
|
|
11
|
+
import { AvatarGroupItemSlots } from '@fluentui/react-avatar';
|
|
12
|
+
import { AvatarGroupItemState } from '@fluentui/react-avatar';
|
|
13
|
+
import { AvatarGroupProps } from '@fluentui/react-avatar';
|
|
14
|
+
import { AvatarGroupSlots } from '@fluentui/react-avatar';
|
|
15
|
+
import { AvatarGroupState } from '@fluentui/react-avatar';
|
|
16
|
+
import { Card } from '@fluentui/react-card';
|
|
17
|
+
import { cardClassNames } from '@fluentui/react-card';
|
|
18
|
+
import { cardCSSVars } from '@fluentui/react-card';
|
|
19
|
+
import { CardFooter } from '@fluentui/react-card';
|
|
20
|
+
import { cardFooterClassNames } from '@fluentui/react-card';
|
|
21
|
+
import { CardFooterProps } from '@fluentui/react-card';
|
|
22
|
+
import { CardFooterSlots } from '@fluentui/react-card';
|
|
23
|
+
import { CardFooterState } from '@fluentui/react-card';
|
|
24
|
+
import { CardHeader } from '@fluentui/react-card';
|
|
25
|
+
import { cardHeaderClassNames } from '@fluentui/react-card';
|
|
26
|
+
import { CardHeaderProps } from '@fluentui/react-card';
|
|
27
|
+
import { CardHeaderSlots } from '@fluentui/react-card';
|
|
28
|
+
import { CardHeaderState } from '@fluentui/react-card';
|
|
29
|
+
import { CardPreview } from '@fluentui/react-card';
|
|
30
|
+
import { cardPreviewClassNames } from '@fluentui/react-card';
|
|
31
|
+
import { CardPreviewProps } from '@fluentui/react-card';
|
|
32
|
+
import { CardPreviewSlots } from '@fluentui/react-card';
|
|
33
|
+
import { CardPreviewState } from '@fluentui/react-card';
|
|
34
|
+
import { CardProps } from '@fluentui/react-card';
|
|
35
|
+
import { CardSlots } from '@fluentui/react-card';
|
|
36
|
+
import { CardState } from '@fluentui/react-card';
|
|
37
|
+
import { Combobox } from '@fluentui/react-combobox';
|
|
38
|
+
import { comboboxClassNames } from '@fluentui/react-combobox';
|
|
39
|
+
import { ComboboxContextValues } from '@fluentui/react-combobox';
|
|
40
|
+
import { ComboboxOpenChangeData } from '@fluentui/react-combobox';
|
|
41
|
+
import { ComboboxOpenEvents } from '@fluentui/react-combobox';
|
|
42
|
+
import { ComboboxProps } from '@fluentui/react-combobox';
|
|
43
|
+
import { ComboboxSlots } from '@fluentui/react-combobox';
|
|
44
|
+
import { ComboboxState } from '@fluentui/react-combobox';
|
|
45
|
+
import { DATA_OVERFLOW_ITEM } from '@fluentui/react-overflow';
|
|
46
|
+
import { DATA_OVERFLOW_MENU } from '@fluentui/react-overflow';
|
|
47
|
+
import { DATA_OVERFLOWING } from '@fluentui/react-overflow';
|
|
48
|
+
import { Dropdown } from '@fluentui/react-combobox';
|
|
49
|
+
import { dropdownClassNames } from '@fluentui/react-combobox';
|
|
50
|
+
import { DropdownContextValues } from '@fluentui/react-combobox';
|
|
51
|
+
import { DropdownOpenChangeData } from '@fluentui/react-combobox';
|
|
52
|
+
import { DropdownOpenEvents } from '@fluentui/react-combobox';
|
|
53
|
+
import { DropdownProps } from '@fluentui/react-combobox';
|
|
54
|
+
import { DropdownSlots } from '@fluentui/react-combobox';
|
|
55
|
+
import { DropdownState } from '@fluentui/react-combobox';
|
|
56
|
+
import { Listbox } from '@fluentui/react-combobox';
|
|
57
|
+
import { listboxClassNames } from '@fluentui/react-combobox';
|
|
58
|
+
import { ListboxContextValues } from '@fluentui/react-combobox';
|
|
59
|
+
import { ListboxProps } from '@fluentui/react-combobox';
|
|
60
|
+
import { ListboxSlots } from '@fluentui/react-combobox';
|
|
61
|
+
import { ListboxState } from '@fluentui/react-combobox';
|
|
62
|
+
import { Option as Option_2 } from '@fluentui/react-combobox';
|
|
63
|
+
import { optionClassNames } from '@fluentui/react-combobox';
|
|
64
|
+
import { OptionGroup } from '@fluentui/react-combobox';
|
|
65
|
+
import { optionGroupClassNames } from '@fluentui/react-combobox';
|
|
66
|
+
import { OptionGroupProps } from '@fluentui/react-combobox';
|
|
67
|
+
import { OptionGroupSlots } from '@fluentui/react-combobox';
|
|
68
|
+
import { OptionGroupState } from '@fluentui/react-combobox';
|
|
69
|
+
import { OptionProps } from '@fluentui/react-combobox';
|
|
70
|
+
import { OptionSlots } from '@fluentui/react-combobox';
|
|
71
|
+
import { OptionState } from '@fluentui/react-combobox';
|
|
72
|
+
import { Overflow } from '@fluentui/react-overflow';
|
|
73
|
+
import { OverflowItem } from '@fluentui/react-overflow';
|
|
74
|
+
import { OverflowItemProps } from '@fluentui/react-overflow';
|
|
75
|
+
import { OverflowProps } from '@fluentui/react-overflow';
|
|
76
|
+
import { renderAlert_unstable } from '@fluentui/react-alert';
|
|
77
|
+
import { renderAvatarGroup_unstable } from '@fluentui/react-avatar';
|
|
78
|
+
import { renderAvatarGroupItem_unstable } from '@fluentui/react-avatar';
|
|
79
|
+
import { renderCard_unstable } from '@fluentui/react-card';
|
|
80
|
+
import { renderCardFooter_unstable } from '@fluentui/react-card';
|
|
81
|
+
import { renderCardHeader_unstable } from '@fluentui/react-card';
|
|
82
|
+
import { renderCardPreview_unstable } from '@fluentui/react-card';
|
|
83
|
+
import { renderCombobox_unstable } from '@fluentui/react-combobox';
|
|
84
|
+
import { renderDropdown_unstable } from '@fluentui/react-combobox';
|
|
85
|
+
import { renderListbox_unstable } from '@fluentui/react-combobox';
|
|
86
|
+
import { renderOption_unstable } from '@fluentui/react-combobox';
|
|
87
|
+
import { renderOptionGroup_unstable } from '@fluentui/react-combobox';
|
|
88
|
+
import { renderSelect_unstable } from '@fluentui/react-select';
|
|
89
|
+
import { renderSpinButton_unstable } from '@fluentui/react-spinbutton';
|
|
90
|
+
import { renderToolbar_unstable } from '@fluentui/react-toolbar';
|
|
91
|
+
import { Select } from '@fluentui/react-select';
|
|
92
|
+
import { selectClassNames } from '@fluentui/react-select';
|
|
93
|
+
import { SelectProps } from '@fluentui/react-select';
|
|
94
|
+
import { SelectSlots } from '@fluentui/react-select';
|
|
95
|
+
import { SelectState } from '@fluentui/react-select';
|
|
96
|
+
import { SpinButton } from '@fluentui/react-spinbutton';
|
|
97
|
+
import { SpinButtonBounds } from '@fluentui/react-spinbutton';
|
|
98
|
+
import { SpinButtonChangeEvent } from '@fluentui/react-spinbutton';
|
|
99
|
+
import { spinButtonClassNames } from '@fluentui/react-spinbutton';
|
|
100
|
+
import { SpinButtonOnChangeData } from '@fluentui/react-spinbutton';
|
|
101
|
+
import { SpinButtonProps } from '@fluentui/react-spinbutton';
|
|
102
|
+
import { SpinButtonSlots } from '@fluentui/react-spinbutton';
|
|
103
|
+
import { SpinButtonSpinState } from '@fluentui/react-spinbutton';
|
|
104
|
+
import { SpinButtonState } from '@fluentui/react-spinbutton';
|
|
105
|
+
import { Toolbar } from '@fluentui/react-toolbar';
|
|
106
|
+
import { ToolbarButtonProps } from '@fluentui/react-toolbar';
|
|
107
|
+
import { ToolbarButtonState } from '@fluentui/react-toolbar';
|
|
108
|
+
import { toolbarClassNames } from '@fluentui/react-toolbar';
|
|
109
|
+
import { ToolbarContextValue } from '@fluentui/react-toolbar';
|
|
110
|
+
import { ToolbarContextValues } from '@fluentui/react-toolbar';
|
|
111
|
+
import { ToolbarDivider } from '@fluentui/react-toolbar';
|
|
112
|
+
import { ToolbarDividerProps } from '@fluentui/react-toolbar';
|
|
113
|
+
import { ToolbarDividerState } from '@fluentui/react-toolbar';
|
|
114
|
+
import { ToolbarProps } from '@fluentui/react-toolbar';
|
|
115
|
+
import { ToolbarSlots } from '@fluentui/react-toolbar';
|
|
116
|
+
import { ToolbarState } from '@fluentui/react-toolbar';
|
|
117
|
+
import { ToolbarToggleButton } from '@fluentui/react-toolbar';
|
|
118
|
+
import { ToolbarToggleButtonProps } from '@fluentui/react-toolbar';
|
|
119
|
+
import { ToolbarToggleButtonState } from '@fluentui/react-toolbar';
|
|
120
|
+
import { useAlert_unstable } from '@fluentui/react-alert';
|
|
121
|
+
import { useAlertStyles_unstable } from '@fluentui/react-alert';
|
|
122
|
+
import { useAvatarGroup_unstable } from '@fluentui/react-avatar';
|
|
123
|
+
import { useAvatarGroupItem_unstable } from '@fluentui/react-avatar';
|
|
124
|
+
import { useAvatarGroupItemStyles_unstable } from '@fluentui/react-avatar';
|
|
125
|
+
import { useAvatarGroupStyles_unstable } from '@fluentui/react-avatar';
|
|
126
|
+
import { useCard_unstable } from '@fluentui/react-card';
|
|
127
|
+
import { useCardFooter_unstable } from '@fluentui/react-card';
|
|
128
|
+
import { useCardFooterStyles_unstable } from '@fluentui/react-card';
|
|
129
|
+
import { useCardHeader_unstable } from '@fluentui/react-card';
|
|
130
|
+
import { useCardHeaderStyles_unstable } from '@fluentui/react-card';
|
|
131
|
+
import { useCardPreview_unstable } from '@fluentui/react-card';
|
|
132
|
+
import { useCardPreviewStyles_unstable } from '@fluentui/react-card';
|
|
133
|
+
import { useCardStyles_unstable } from '@fluentui/react-card';
|
|
134
|
+
import { useCombobox_unstable } from '@fluentui/react-combobox';
|
|
135
|
+
import { useComboboxStyles_unstable } from '@fluentui/react-combobox';
|
|
136
|
+
import { useDropdown_unstable } from '@fluentui/react-combobox';
|
|
137
|
+
import { useDropdownStyles_unstable } from '@fluentui/react-combobox';
|
|
138
|
+
import { useIsOverflowGroupVisible } from '@fluentui/react-overflow';
|
|
139
|
+
import { useIsOverflowItemVisible } from '@fluentui/react-overflow';
|
|
140
|
+
import { useListbox_unstable } from '@fluentui/react-combobox';
|
|
141
|
+
import { useListboxStyles_unstable } from '@fluentui/react-combobox';
|
|
142
|
+
import { useOption_unstable } from '@fluentui/react-combobox';
|
|
143
|
+
import { useOptionGroup_unstable } from '@fluentui/react-combobox';
|
|
144
|
+
import { useOptionGroupStyles_unstable } from '@fluentui/react-combobox';
|
|
145
|
+
import { useOptionStyles_unstable } from '@fluentui/react-combobox';
|
|
146
|
+
import { useOverflowMenu } from '@fluentui/react-overflow';
|
|
147
|
+
import { useSelect_unstable } from '@fluentui/react-select';
|
|
148
|
+
import { useSelectStyles_unstable } from '@fluentui/react-select';
|
|
149
|
+
import { useSpinButton_unstable } from '@fluentui/react-spinbutton';
|
|
150
|
+
import { useSpinButtonStyles_unstable } from '@fluentui/react-spinbutton';
|
|
151
|
+
import { useToolbar_unstable } from '@fluentui/react-toolbar';
|
|
152
|
+
import { useToolbarDividerStyles_unstable } from '@fluentui/react-toolbar';
|
|
153
|
+
import { useToolbarStyles_unstable } from '@fluentui/react-toolbar';
|
|
154
|
+
|
|
155
|
+
export { Alert }
|
|
156
|
+
|
|
157
|
+
export { alertClassNames }
|
|
158
|
+
|
|
159
|
+
export { AlertProps }
|
|
160
|
+
|
|
161
|
+
export { AlertSlots }
|
|
162
|
+
|
|
163
|
+
export { AlertState }
|
|
164
|
+
|
|
165
|
+
export { AvatarGroup }
|
|
166
|
+
|
|
167
|
+
export { avatarGroupClassNames }
|
|
168
|
+
|
|
169
|
+
export { AvatarGroupItem }
|
|
170
|
+
|
|
171
|
+
export { avatarGroupItemClassNames }
|
|
172
|
+
|
|
173
|
+
export { AvatarGroupItemProps }
|
|
174
|
+
|
|
175
|
+
export { AvatarGroupItemSlots }
|
|
176
|
+
|
|
177
|
+
export { AvatarGroupItemState }
|
|
178
|
+
|
|
179
|
+
export { AvatarGroupProps }
|
|
180
|
+
|
|
181
|
+
export { AvatarGroupSlots }
|
|
182
|
+
|
|
183
|
+
export { AvatarGroupState }
|
|
184
|
+
|
|
185
|
+
export { Card }
|
|
186
|
+
|
|
187
|
+
export { cardClassNames }
|
|
188
|
+
|
|
189
|
+
export { cardCSSVars }
|
|
190
|
+
|
|
191
|
+
export { CardFooter }
|
|
192
|
+
|
|
193
|
+
export { cardFooterClassNames }
|
|
194
|
+
|
|
195
|
+
export { CardFooterProps }
|
|
196
|
+
|
|
197
|
+
export { CardFooterSlots }
|
|
198
|
+
|
|
199
|
+
export { CardFooterState }
|
|
200
|
+
|
|
201
|
+
export { CardHeader }
|
|
202
|
+
|
|
203
|
+
export { cardHeaderClassNames }
|
|
204
|
+
|
|
205
|
+
export { CardHeaderProps }
|
|
206
|
+
|
|
207
|
+
export { CardHeaderSlots }
|
|
208
|
+
|
|
209
|
+
export { CardHeaderState }
|
|
210
|
+
|
|
211
|
+
export { CardPreview }
|
|
212
|
+
|
|
213
|
+
export { cardPreviewClassNames }
|
|
214
|
+
|
|
215
|
+
export { CardPreviewProps }
|
|
216
|
+
|
|
217
|
+
export { CardPreviewSlots }
|
|
218
|
+
|
|
219
|
+
export { CardPreviewState }
|
|
220
|
+
|
|
221
|
+
export { CardProps }
|
|
222
|
+
|
|
223
|
+
export { CardSlots }
|
|
224
|
+
|
|
225
|
+
export { CardState }
|
|
226
|
+
|
|
227
|
+
export { Combobox }
|
|
228
|
+
|
|
229
|
+
export { comboboxClassNames }
|
|
230
|
+
|
|
231
|
+
export { ComboboxContextValues }
|
|
232
|
+
|
|
233
|
+
export { ComboboxOpenChangeData }
|
|
234
|
+
|
|
235
|
+
export { ComboboxOpenEvents }
|
|
236
|
+
|
|
237
|
+
export { ComboboxProps }
|
|
238
|
+
|
|
239
|
+
export { ComboboxSlots }
|
|
240
|
+
|
|
241
|
+
export { ComboboxState }
|
|
242
|
+
|
|
243
|
+
export { DATA_OVERFLOW_ITEM }
|
|
244
|
+
|
|
245
|
+
export { DATA_OVERFLOW_MENU }
|
|
246
|
+
|
|
247
|
+
export { DATA_OVERFLOWING }
|
|
248
|
+
|
|
249
|
+
export { Dropdown }
|
|
250
|
+
|
|
251
|
+
export { dropdownClassNames }
|
|
252
|
+
|
|
253
|
+
export { DropdownContextValues }
|
|
254
|
+
|
|
255
|
+
export { DropdownOpenChangeData }
|
|
256
|
+
|
|
257
|
+
export { DropdownOpenEvents }
|
|
258
|
+
|
|
259
|
+
export { DropdownProps }
|
|
260
|
+
|
|
261
|
+
export { DropdownSlots }
|
|
262
|
+
|
|
263
|
+
export { DropdownState }
|
|
264
|
+
|
|
265
|
+
export { Listbox }
|
|
266
|
+
|
|
267
|
+
export { listboxClassNames }
|
|
268
|
+
|
|
269
|
+
export { ListboxContextValues }
|
|
270
|
+
|
|
271
|
+
export { ListboxProps }
|
|
272
|
+
|
|
273
|
+
export { ListboxSlots }
|
|
274
|
+
|
|
275
|
+
export { ListboxState }
|
|
276
|
+
|
|
277
|
+
export { Option_2 as Option }
|
|
278
|
+
|
|
279
|
+
export { optionClassNames }
|
|
280
|
+
|
|
281
|
+
export { OptionGroup }
|
|
282
|
+
|
|
283
|
+
export { optionGroupClassNames }
|
|
284
|
+
|
|
285
|
+
export { OptionGroupProps }
|
|
286
|
+
|
|
287
|
+
export { OptionGroupSlots }
|
|
288
|
+
|
|
289
|
+
export { OptionGroupState }
|
|
290
|
+
|
|
291
|
+
export { OptionProps }
|
|
292
|
+
|
|
293
|
+
export { OptionSlots }
|
|
294
|
+
|
|
295
|
+
export { OptionState }
|
|
296
|
+
|
|
297
|
+
export { Overflow }
|
|
298
|
+
|
|
299
|
+
export { OverflowItem }
|
|
300
|
+
|
|
301
|
+
export { OverflowItemProps }
|
|
302
|
+
|
|
303
|
+
export { OverflowProps }
|
|
304
|
+
|
|
305
|
+
export { renderAlert_unstable }
|
|
306
|
+
|
|
307
|
+
export { renderAvatarGroup_unstable }
|
|
308
|
+
|
|
309
|
+
export { renderAvatarGroupItem_unstable }
|
|
310
|
+
|
|
311
|
+
export { renderCard_unstable }
|
|
312
|
+
|
|
313
|
+
export { renderCardFooter_unstable }
|
|
314
|
+
|
|
315
|
+
export { renderCardHeader_unstable }
|
|
316
|
+
|
|
317
|
+
export { renderCardPreview_unstable }
|
|
318
|
+
|
|
319
|
+
export { renderCombobox_unstable }
|
|
320
|
+
|
|
321
|
+
export { renderDropdown_unstable }
|
|
322
|
+
|
|
323
|
+
export { renderListbox_unstable }
|
|
324
|
+
|
|
325
|
+
export { renderOption_unstable }
|
|
326
|
+
|
|
327
|
+
export { renderOptionGroup_unstable }
|
|
328
|
+
|
|
329
|
+
export { renderSelect_unstable }
|
|
330
|
+
|
|
331
|
+
export { renderSpinButton_unstable }
|
|
332
|
+
|
|
333
|
+
export { renderToolbar_unstable }
|
|
334
|
+
|
|
335
|
+
export { Select }
|
|
336
|
+
|
|
337
|
+
export { selectClassNames }
|
|
338
|
+
|
|
339
|
+
export { SelectProps }
|
|
340
|
+
|
|
341
|
+
export { SelectSlots }
|
|
342
|
+
|
|
343
|
+
export { SelectState }
|
|
344
|
+
|
|
345
|
+
export { SpinButton }
|
|
346
|
+
|
|
347
|
+
export { SpinButtonBounds }
|
|
348
|
+
|
|
349
|
+
export { SpinButtonChangeEvent }
|
|
350
|
+
|
|
351
|
+
export { spinButtonClassNames }
|
|
352
|
+
|
|
353
|
+
export { SpinButtonOnChangeData }
|
|
354
|
+
|
|
355
|
+
export { SpinButtonProps }
|
|
356
|
+
|
|
357
|
+
export { SpinButtonSlots }
|
|
358
|
+
|
|
359
|
+
export { SpinButtonSpinState }
|
|
360
|
+
|
|
361
|
+
export { SpinButtonState }
|
|
362
|
+
|
|
363
|
+
export { Toolbar }
|
|
364
|
+
|
|
365
|
+
export { ToolbarButtonProps }
|
|
366
|
+
|
|
367
|
+
export { ToolbarButtonState }
|
|
368
|
+
|
|
369
|
+
export { toolbarClassNames }
|
|
370
|
+
|
|
371
|
+
export { ToolbarContextValue }
|
|
372
|
+
|
|
373
|
+
export { ToolbarContextValues }
|
|
374
|
+
|
|
375
|
+
export { ToolbarDivider }
|
|
376
|
+
|
|
377
|
+
export { ToolbarDividerProps }
|
|
378
|
+
|
|
379
|
+
export { ToolbarDividerState }
|
|
380
|
+
|
|
381
|
+
export { ToolbarProps }
|
|
382
|
+
|
|
383
|
+
export { ToolbarSlots }
|
|
384
|
+
|
|
385
|
+
export { ToolbarState }
|
|
386
|
+
|
|
387
|
+
export { ToolbarToggleButton }
|
|
388
|
+
|
|
389
|
+
export { ToolbarToggleButtonProps }
|
|
390
|
+
|
|
391
|
+
export { ToolbarToggleButtonState }
|
|
392
|
+
|
|
393
|
+
export { useAlert_unstable }
|
|
394
|
+
|
|
395
|
+
export { useAlertStyles_unstable }
|
|
396
|
+
|
|
397
|
+
export { useAvatarGroup_unstable }
|
|
398
|
+
|
|
399
|
+
export { useAvatarGroupItem_unstable }
|
|
400
|
+
|
|
401
|
+
export { useAvatarGroupItemStyles_unstable }
|
|
402
|
+
|
|
403
|
+
export { useAvatarGroupStyles_unstable }
|
|
404
|
+
|
|
405
|
+
export { useCard_unstable }
|
|
406
|
+
|
|
407
|
+
export { useCardFooter_unstable }
|
|
408
|
+
|
|
409
|
+
export { useCardFooterStyles_unstable }
|
|
410
|
+
|
|
411
|
+
export { useCardHeader_unstable }
|
|
412
|
+
|
|
413
|
+
export { useCardHeaderStyles_unstable }
|
|
414
|
+
|
|
415
|
+
export { useCardPreview_unstable }
|
|
416
|
+
|
|
417
|
+
export { useCardPreviewStyles_unstable }
|
|
418
|
+
|
|
419
|
+
export { useCardStyles_unstable }
|
|
420
|
+
|
|
421
|
+
export { useCombobox_unstable }
|
|
422
|
+
|
|
423
|
+
export { useComboboxStyles_unstable }
|
|
424
|
+
|
|
425
|
+
export { useDropdown_unstable }
|
|
426
|
+
|
|
427
|
+
export { useDropdownStyles_unstable }
|
|
428
|
+
|
|
429
|
+
export { useIsOverflowGroupVisible }
|
|
430
|
+
|
|
431
|
+
export { useIsOverflowItemVisible }
|
|
432
|
+
|
|
433
|
+
export { useListbox_unstable }
|
|
434
|
+
|
|
435
|
+
export { useListboxStyles_unstable }
|
|
436
|
+
|
|
437
|
+
export { useOption_unstable }
|
|
438
|
+
|
|
439
|
+
export { useOptionGroup_unstable }
|
|
440
|
+
|
|
441
|
+
export { useOptionGroupStyles_unstable }
|
|
442
|
+
|
|
443
|
+
export { useOptionStyles_unstable }
|
|
444
|
+
|
|
445
|
+
export { useOverflowMenu }
|
|
446
|
+
|
|
447
|
+
export { useSelect_unstable }
|
|
448
|
+
|
|
449
|
+
export { useSelectStyles_unstable }
|
|
450
|
+
|
|
451
|
+
export { useSpinButton_unstable }
|
|
452
|
+
|
|
453
|
+
export { useSpinButtonStyles_unstable }
|
|
454
|
+
|
|
455
|
+
export { useToolbar_unstable }
|
|
456
|
+
|
|
457
|
+
export { useToolbarDividerStyles_unstable }
|
|
458
|
+
|
|
459
|
+
export { useToolbarStyles_unstable }
|
|
460
|
+
|
|
461
|
+
export { }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["AccessibilityScenarios/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAEA,MAAM,SAAS,GAAG,yBAAlB;AACA,MAAM,mBAAmB,GAAG,KAA5B,C,CAQA;AACA;;AACA,OAAO,MAAM,cAAc,GAAI,KAAD,iBAC5B,KAAA,CAAA,aAAA,CAAA,GAAA,EAAA;
|
|
1
|
+
{"version":3,"sources":["AccessibilityScenarios/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAEA,MAAM,SAAS,GAAG,yBAAlB;AACA,MAAM,mBAAmB,GAAG,KAA5B,C,CAQA;AACA;;AACA,OAAO,MAAM,cAAc,GAAI,KAAD,iBAC5B,KAAA,CAAA,aAAA,CAAA,GAAA,EAAA;EAAG,SAAS,EAAC,iBAAb;EAA+B,IAAI,EAAE,kBAAkB,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,KAAK,EAAnF;EAAuF,MAAM,EAAC;AAA9F,CAAA,EACG,KAAK,CAAC,OADT,CADK;AAMP,OAAO,MAAM,iBAAiB,GAAa,KAAK,iBAC9C,KAAA,CAAA,aAAA,CAAA,GAAA,EAAA;EAAG,SAAS,EAAC,iBAAb;EAA+B,IAAI,EAAE;AAArC,CAAA,EACG,KAAK,CAAC,QADT,CADK;AAMP,OAAO,MAAM,QAAQ,GAAG,mBAAM,KAAA,CAAA,aAAA,CAAC,iBAAD,EAAkB,IAAlB,EAAkB,sBAAlB,CAAvB;AAEP,OAAO,MAAM,QAAQ,GAAmD,CAAC;EAAE,SAAF;EAAa;AAAb,CAAD,KAA4B;EAClG,KAAK,CAAC,SAAN,CAAgB,MAAK;IACnB,QAAQ,CAAC,KAAT,GAAiB,SAAS,GAAG,mBAAZ,GAAkC,SAAnD;EACD,CAFD,EAEG,CAAC,SAAD,CAFH;EAIA,oBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;IAAK,IAAI,EAAC;EAAV,CAAA,eACE,KAAA,CAAA,aAAA,CAAC,QAAD,EAAS,IAAT,CADF,eAEE,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA,IAAA,CAFF,EAGG,QAHH,CADF;AAOD,CAZM","sourcesContent":["import * as React from 'react';\n\nconst APP_TITLE = 'Accessibility Scenarios';\nconst APP_TITLE_SEPARATOR = ' | ';\n\ninterface FullscreenLinkProps {\n parent: string;\n story: string;\n content: string;\n}\n\n// https://storybook.js.org/addons/@storybook/addon-links does not allow opening a story in new tab\n// so this is a naive attempt for opening a story in full screen\nexport const FullscreenLink = (props: FullscreenLinkProps) => (\n <a className=\"sbdocs sbdocs-a\" href={`iframe.html?id=${props.parent}--${props.story}`} target=\"_blank\">\n {props.content}\n </a>\n);\n\nexport const ScenariosListLink: React.FC = props => (\n <a className=\"sbdocs sbdocs-a\" href={`iframe.html?id=accessibility-scenarios-list-of-scenarios--page`}>\n {props.children}\n </a>\n);\n\nexport const BackLink = () => <ScenariosListLink>Go back to main menu</ScenariosListLink>;\n\nexport const Scenario: React.FunctionComponent<{ pageTitle: string }> = ({ pageTitle, children }) => {\n React.useEffect(() => {\n document.title = pageTitle + APP_TITLE_SEPARATOR + APP_TITLE;\n }, [pageTitle]);\n\n return (\n <div role=\"main\">\n <BackLink />\n <br />\n {children}\n </div>\n );\n};\n"],"sourceRoot":"../src/"}
|
|
@@ -44,7 +44,7 @@ const reactIcons = /*#__PURE__*/Object.keys(ReactIcons) // eslint-disable-next-l
|
|
|
44
44
|
|
|
45
45
|
const ReactIconGrid = () => {
|
|
46
46
|
const [search, setSearch] = React.useState('');
|
|
47
|
-
const [size, setSize] = React.useState(
|
|
47
|
+
const [size, setSize] = React.useState(24);
|
|
48
48
|
const styles = useStyles();
|
|
49
49
|
|
|
50
50
|
const _onSearchQueryChanged = ev => {
|
|
@@ -66,7 +66,7 @@ const ReactIconGrid = () => {
|
|
|
66
66
|
const filteredIcons = React.useMemo(() => reactIcons.filter(icon => {
|
|
67
67
|
var _a, _b;
|
|
68
68
|
|
|
69
|
-
return ((_a = icon.displayName) === null || _a === void 0 ? void 0 : _a.toLowerCase().indexOf(search.toLowerCase())) !== -1 && ((_b = icon.displayName) === null || _b === void 0 ? void 0 : _b.indexOf(size)) !== -1;
|
|
69
|
+
return ((_a = icon.displayName) === null || _a === void 0 ? void 0 : _a.toLowerCase().indexOf(search.toLowerCase())) !== -1 && ((_b = icon.displayName) === null || _b === void 0 ? void 0 : _b.indexOf(String(size))) !== -1;
|
|
70
70
|
}), [search, size]);
|
|
71
71
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Input, {
|
|
72
72
|
type: "search",
|
|
@@ -78,6 +78,7 @@ const ReactIconGrid = () => {
|
|
|
78
78
|
className: styles.searchBox
|
|
79
79
|
}), [16, 20, 24, 28, 32, 48, 'All'].map(option => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("input", {
|
|
80
80
|
id: `option-${option}`,
|
|
81
|
+
defaultChecked: option === 24,
|
|
81
82
|
type: "radio",
|
|
82
83
|
value: option,
|
|
83
84
|
name: "size",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Concepts/Icons/ReactIconGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB,C,CAGA;;AACA,OAAO,KAAK,UAAZ,MAA4B,uBAA5B;AACA,SAAS,KAAT,QAAsB,uBAAtB;AACA,mBAAqB,UAArB,QAAuC,gBAAvC;;AAEA,MAAM,SAAS,gBAAG;
|
|
1
|
+
{"version":3,"sources":["Concepts/Icons/ReactIconGrid.tsx"],"names":[],"mappings":"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","sourcesContent":["import * as React from 'react';\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport { FluentIconsProps } from '@fluentui/react-icons';\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport * as ReactIcons from '@fluentui/react-icons';\nimport { Input } from '@fluentui/react-input';\nimport { makeStyles, shorthands } from '@griffel/react';\n\nconst useStyles = makeStyles({\n grid: {\n display: 'flex',\n flexWrap: 'wrap',\n justifyContent: ' flex-start',\n\n '> span': {\n alignItems: 'center',\n color: '#3b3a39',\n display: 'flex',\n flexDirection: 'column',\n height: '80px',\n justifyContent: 'space-around',\n ...shorthands.padding(0),\n width: '80px',\n ...shorthands.overflow('hidden'),\n\n '> div': {\n fontSize: '11px',\n opacity: '0',\n },\n\n '&:hover': {\n ...shorthands.overflow('visible'),\n\n '& div': {\n opacity: '1',\n },\n },\n },\n },\n\n searchBox: {\n maxWidth: '320px',\n marginBottom: '10px',\n },\n\n radio: {\n fontSize: '11px',\n },\n});\n\nconst reactIcons: React.FC<ReactIcons.FluentIconsProps>[] = Object.keys(ReactIcons)\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n .map(iconName => (ReactIcons as any)[iconName])\n .filter(icon => !!icon && !!icon.displayName);\n\nconst ReactIconGrid = () => {\n const [search, setSearch] = React.useState('');\n const [size, setSize] = React.useState<string | number>(24);\n const styles = useStyles();\n\n const _onSearchQueryChanged = (ev?: React.FormEvent<HTMLInputElement>) => {\n setSearch(ev ? ev.currentTarget.value : '');\n };\n\n const _filterBySize = (ev?: React.FormEvent<HTMLElement | HTMLInputElement>) => {\n const newSize = ev ? (ev.currentTarget as HTMLInputElement).value : '';\n newSize === 'All' ? setSize('') : setSize(newSize);\n };\n\n const _renderIcon = (Icon: React.FC<FluentIconsProps>): JSX.Element => {\n return (\n <span key={Icon.displayName} aria-label={Icon.displayName}>\n <Icon />\n <div>{Icon.displayName}</div>\n </span>\n );\n };\n\n const filteredIcons = React.useMemo(\n () =>\n reactIcons.filter(\n icon =>\n icon.displayName?.toLowerCase().indexOf(search.toLowerCase()) !== -1 &&\n icon.displayName?.indexOf(String(size)) !== -1,\n ),\n [search, size],\n );\n\n return (\n <div>\n <Input\n type=\"search\"\n placeholder=\"Search icons\"\n value={search}\n aria-label=\"search\"\n // eslint-disable-next-line react/jsx-no-bind\n onChange={_onSearchQueryChanged}\n className={styles.searchBox}\n />\n {[16, 20, 24, 28, 32, 48, 'All'].map(option => (\n <>\n <input\n id={`option-${option}`}\n defaultChecked={option === 24}\n type=\"radio\"\n value={option}\n name=\"size\"\n onChange={_filterBySize}\n />\n <label htmlFor={`option-${option}`} className={styles.radio}>\n {option}\n </label>\n </>\n ))}\n <div className={styles.grid}>{filteredIcons.map(_renderIcon)}</div>\n </div>\n );\n};\n\nexport default ReactIconGrid;\n"],"sourceRoot":"../src/"}
|