@fluentui/react-components 9.7.4 → 9.9.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 +1141 -1
- package/CHANGELOG.md +147 -2
- package/dist/index.d.ts +27 -0
- package/dist/unstable.d.ts +51 -24
- package/lib/Concepts/Icons/ReactIconGrid.js +35 -44
- package/lib/Concepts/Icons/ReactIconGrid.js.map +1 -1
- package/lib/index.js +5 -4
- package/lib/index.js.map +1 -1
- package/lib/unstable/index.js +1 -2
- package/lib/unstable/index.js.map +1 -1
- package/lib-amd/index.js +26 -20
- package/lib-amd/index.js.map +1 -1
- package/lib-commonjs/Concepts/Icons/ReactIconGrid.js +35 -48
- package/lib-commonjs/Concepts/Icons/ReactIconGrid.js.map +1 -1
- package/lib-commonjs/index.js +158 -177
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/unstable/index.js +72 -78
- package/lib-commonjs/unstable/index.js.map +1 -1
- package/package.json +42 -42
- package/MIGRATION-NOTES.md +0 -407
- package/lib/AccessibilityScenarios/utils.js +0 -27
- package/lib/AccessibilityScenarios/utils.js.map +0 -1
- package/lib-commonjs/AccessibilityScenarios/utils.js +0 -46
- package/lib-commonjs/AccessibilityScenarios/utils.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,157 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-components
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 09 Jan 2023 14:31:41 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.9.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-components_v9.9.0)
|
|
8
|
+
|
|
9
|
+
Mon, 09 Jan 2023 14:31:41 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-components_v9.8.0..@fluentui/react-components_v9.9.0)
|
|
11
|
+
|
|
12
|
+
### Minor changes
|
|
13
|
+
|
|
14
|
+
- `@fluentui/react-components`
|
|
15
|
+
- feat: implement `useScrollbarWidth` utility hook ([PR #26144](https://github.com/microsoft/fluentui/pull/26144) by lingfangao@hotmail.com)
|
|
16
|
+
- `@fluentui/react-menu`
|
|
17
|
+
- Stops using ARIAButton types for MenuItem root ([PR #26257](https://github.com/microsoft/fluentui/pull/26257) by bernardo.sunderhus@gmail.com)
|
|
18
|
+
- `@fluentui/react-popover`
|
|
19
|
+
- feat: add new prop unstable_disableAutoFocus on Popover ([PR #26141](https://github.com/microsoft/fluentui/pull/26141) by yuanboxue@microsoft.com)
|
|
20
|
+
- `@fluentui/react-portal`
|
|
21
|
+
- feat: elementContains supports Node types ([PR #26158](https://github.com/microsoft/fluentui/pull/26158) by email not defined)
|
|
22
|
+
- `@fluentui/react-utilities`
|
|
23
|
+
- feat: implement `useScrollbarWidth` utility hook ([PR #26144](https://github.com/microsoft/fluentui/pull/26144) by lingfangao@hotmail.com)
|
|
24
|
+
|
|
25
|
+
### Patches
|
|
26
|
+
|
|
27
|
+
- `@fluentui/react-menu`
|
|
28
|
+
- fix: MenuList props should win over context props ([PR #26252](https://github.com/microsoft/fluentui/pull/26252) by lingfangao@hotmail.com)
|
|
29
|
+
- `@fluentui/react-positioning`
|
|
30
|
+
- fix: setOverrideTarget should be an event callback ([PR #26157](https://github.com/microsoft/fluentui/pull/26157) by lingfangao@hotmail.com)
|
|
31
|
+
|
|
32
|
+
### Changes
|
|
33
|
+
|
|
34
|
+
- `@fluentui/priority-overflow`
|
|
35
|
+
- fix: Minimum visible overflow items should be respected ([PR #26194](https://github.com/microsoft/fluentui/pull/26194) by lingfangao@hotmail.com)
|
|
36
|
+
- `@fluentui/react-combobox`
|
|
37
|
+
- fix: perf improvements with useEventCallback ([PR #26191](https://github.com/microsoft/fluentui/pull/26191) by sarah.higley@microsoft.com)
|
|
38
|
+
- fix: Combobox always starts at the first option if multiselect, and correctly sets focus visible" ([PR #26173](https://github.com/microsoft/fluentui/pull/26173) by sarah.higley@microsoft.com)
|
|
39
|
+
- `@fluentui/react-table`
|
|
40
|
+
- fix: remove Event type in selectionManager ([PR #26211](https://github.com/microsoft/fluentui/pull/26211) by olfedias@microsoft.com)
|
|
41
|
+
- refactor: Cleanup unused code ([PR #26219](https://github.com/microsoft/fluentui/pull/26219) by lingfangao@hotmail.com)
|
|
42
|
+
- BREAKING(TableCellLayout): `wrapper` slot renamed to `content` ([PR #26220](https://github.com/microsoft/fluentui/pull/26220) by lingfangao@hotmail.com)
|
|
43
|
+
|
|
44
|
+
## [9.8.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-components_v9.8.0)
|
|
45
|
+
|
|
46
|
+
Wed, 04 Jan 2023 01:40:03 GMT
|
|
47
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-components_v9.7.4..@fluentui/react-components_v9.8.0)
|
|
48
|
+
|
|
49
|
+
### Minor changes
|
|
50
|
+
|
|
51
|
+
- `@fluentui/react-persona`
|
|
52
|
+
- feat: Moving Persona to stable. ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by esteban.230@hotmail.com)
|
|
53
|
+
- `@fluentui/react-provider`
|
|
54
|
+
- feat: FluentProvider applies style attributes defined by a renderer from Griffel ([PR #26046](https://github.com/microsoft/fluentui/pull/26046) by olfedias@microsoft.com)
|
|
55
|
+
- `@fluentui/react-components`
|
|
56
|
+
- feat: Moving Persona to stable. ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by esteban.230@hotmail.com)
|
|
57
|
+
|
|
58
|
+
### Patches
|
|
59
|
+
|
|
60
|
+
- `@fluentui/react-divider`
|
|
61
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
62
|
+
- `@fluentui/react-image`
|
|
63
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
64
|
+
- `@fluentui/react-input`
|
|
65
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
66
|
+
- `@fluentui/react-label`
|
|
67
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
68
|
+
- `@fluentui/react-link`
|
|
69
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
70
|
+
- `@fluentui/react-menu`
|
|
71
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
72
|
+
- `@fluentui/react-popover`
|
|
73
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
74
|
+
- `@fluentui/react-portal`
|
|
75
|
+
- fix: Portals should render correctly in strict mode ([PR #25956](https://github.com/microsoft/fluentui/pull/25956) by lingfangao@hotmail.com)
|
|
76
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
77
|
+
- `@fluentui/react-positioning`
|
|
78
|
+
- fix: force update memory leak in positioning manager ([PR #26096](https://github.com/microsoft/fluentui/pull/26096) by lingfangao@hotmail.com)
|
|
79
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
80
|
+
- fix: Autosize middleware should set box-sizing border-box ([PR #26094](https://github.com/microsoft/fluentui/pull/26094) by lingfangao@hotmail.com)
|
|
81
|
+
- `@fluentui/react-provider`
|
|
82
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
83
|
+
- `@fluentui/react-radio`
|
|
84
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
85
|
+
- `@fluentui/react-slider`
|
|
86
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
87
|
+
- `@fluentui/react-spinbutton`
|
|
88
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
89
|
+
- `@fluentui/react-spinner`
|
|
90
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
91
|
+
- `@fluentui/react-switch`
|
|
92
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
93
|
+
- `@fluentui/react-tabs`
|
|
94
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
95
|
+
- `@fluentui/react-tabster`
|
|
96
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
97
|
+
- fix: Bump tabster to 3.0.6 ([PR #26076](https://github.com/microsoft/fluentui/pull/26076) by lingfangao@hotmail.com)
|
|
98
|
+
- `@fluentui/react-text`
|
|
99
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
100
|
+
- `@fluentui/react-textarea`
|
|
101
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
102
|
+
- `@fluentui/react-tooltip`
|
|
103
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
104
|
+
- `@fluentui/react-utilities`
|
|
105
|
+
- feat: generalize is HTMLElement attribute to unknown ([PR #25991](https://github.com/microsoft/fluentui/pull/25991) by bernardo.sunderhus@gmail.com)
|
|
106
|
+
- `@fluentui/react-accordion`
|
|
107
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
108
|
+
- `@fluentui/react-avatar`
|
|
109
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
110
|
+
- `@fluentui/react-badge`
|
|
111
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
112
|
+
- `@fluentui/react-button`
|
|
113
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
114
|
+
- `@fluentui/react-checkbox`
|
|
115
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
116
|
+
- `@fluentui/react-components`
|
|
117
|
+
- fix: Export all relevant Toolbar components and utilities ([PR #26065](https://github.com/microsoft/fluentui/pull/26065) by lingfangao@hotmail.com)
|
|
118
|
+
- chore: Migrate to new package structure. ([PR #26051](https://github.com/microsoft/fluentui/pull/26051) by tristan.watanabe@gmail.com)
|
|
119
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
120
|
+
- `@fluentui/react-dialog`
|
|
121
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
122
|
+
|
|
123
|
+
### Changes
|
|
124
|
+
|
|
125
|
+
- `@fluentui/react-field`
|
|
126
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
127
|
+
- `@fluentui/react-infobutton`
|
|
128
|
+
- chore: migrate to new package structure. ([PR #26111](https://github.com/microsoft/fluentui/pull/26111) by tristan.watanabe@gmail.com)
|
|
129
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
130
|
+
- `@fluentui/react-overflow`
|
|
131
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
132
|
+
- `@fluentui/react-progress`
|
|
133
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
134
|
+
- `@fluentui/react-select`
|
|
135
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
136
|
+
- `@fluentui/react-table`
|
|
137
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
138
|
+
- refactor: render function children called in component render function ([PR #26085](https://github.com/microsoft/fluentui/pull/26085) by lingfangao@hotmail.com)
|
|
139
|
+
- fix: DataGridSelection cell should focus on input, not cell ([PR #26076](https://github.com/microsoft/fluentui/pull/26076) by lingfangao@hotmail.com)
|
|
140
|
+
- `@fluentui/react-toolbar`
|
|
141
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
142
|
+
- fix: Export all relevant Toolbar components and utilities ([PR #26065](https://github.com/microsoft/fluentui/pull/26065) by lingfangao@hotmail.com)
|
|
143
|
+
- `@fluentui/react-alert`
|
|
144
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
145
|
+
- `@fluentui/react-card`
|
|
146
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
147
|
+
- `@fluentui/react-combobox`
|
|
148
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
149
|
+
- `@fluentui/react-conformance-griffel`
|
|
150
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
151
|
+
|
|
7
152
|
## [9.7.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-components_v9.7.4)
|
|
8
153
|
|
|
9
|
-
Wed, 21 Dec 2022 10:
|
|
154
|
+
Wed, 21 Dec 2022 10:20:28 GMT
|
|
10
155
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-components_v9.7.3..@fluentui/react-components_v9.7.4)
|
|
11
156
|
|
|
12
157
|
### Patches
|
package/dist/index.d.ts
CHANGED
|
@@ -278,6 +278,11 @@ import { PartialTheme } from '@fluentui/react-theme';
|
|
|
278
278
|
import { PartitionAvatarGroupItems } from '@fluentui/react-avatar';
|
|
279
279
|
import { partitionAvatarGroupItems } from '@fluentui/react-avatar';
|
|
280
280
|
import { PartitionAvatarGroupItemsOptions } from '@fluentui/react-avatar';
|
|
281
|
+
import { Persona } from '@fluentui/react-persona';
|
|
282
|
+
import { personaClassNames } from '@fluentui/react-persona';
|
|
283
|
+
import { PersonaProps } from '@fluentui/react-persona';
|
|
284
|
+
import { PersonaSlots } from '@fluentui/react-persona';
|
|
285
|
+
import { PersonaState } from '@fluentui/react-persona';
|
|
281
286
|
import { Popover } from '@fluentui/react-popover';
|
|
282
287
|
import { PopoverContextValue } from '@fluentui/react-popover';
|
|
283
288
|
import { PopoverProps } from '@fluentui/react-popover';
|
|
@@ -360,6 +365,7 @@ import { renderMenuList_unstable } from '@fluentui/react-menu';
|
|
|
360
365
|
import { renderMenuPopover_unstable } from '@fluentui/react-menu';
|
|
361
366
|
import { renderMenuSplitGroup_unstable } from '@fluentui/react-menu';
|
|
362
367
|
import { renderMenuTrigger_unstable } from '@fluentui/react-menu';
|
|
368
|
+
import { renderPersona_unstable } from '@fluentui/react-persona';
|
|
363
369
|
import { renderPopover_unstable } from '@fluentui/react-popover';
|
|
364
370
|
import { renderPopoverSurface_unstable } from '@fluentui/react-popover';
|
|
365
371
|
import { renderPopoverTrigger_unstable } from '@fluentui/react-popover';
|
|
@@ -583,6 +589,8 @@ import { useMenuTriggerContext_unstable } from '@fluentui/react-menu';
|
|
|
583
589
|
import { useMergedRefs } from '@fluentui/react-utilities';
|
|
584
590
|
import { useModalAttributes } from '@fluentui/react-tabster';
|
|
585
591
|
import { UseModalAttributesOptions } from '@fluentui/react-tabster';
|
|
592
|
+
import { usePersona_unstable } from '@fluentui/react-persona';
|
|
593
|
+
import { usePersonaStyles_unstable } from '@fluentui/react-persona';
|
|
586
594
|
import { usePopover_unstable } from '@fluentui/react-popover';
|
|
587
595
|
import { usePopoverContext_unstable } from '@fluentui/react-popover';
|
|
588
596
|
import { usePopoverSurface_unstable } from '@fluentui/react-popover';
|
|
@@ -596,6 +604,7 @@ import { useRadioGroupContext_unstable } from '@fluentui/react-radio';
|
|
|
596
604
|
import { useRadioGroupContextValues } from '@fluentui/react-radio';
|
|
597
605
|
import { useRadioGroupStyles_unstable } from '@fluentui/react-radio';
|
|
598
606
|
import { useRadioStyles_unstable } from '@fluentui/react-radio';
|
|
607
|
+
import { useScrollbarWidth } from '@fluentui/react-utilities';
|
|
599
608
|
import { useSlider_unstable } from '@fluentui/react-slider';
|
|
600
609
|
import { useSliderState_unstable } from '@fluentui/react-slider';
|
|
601
610
|
import { useSliderStyles_unstable } from '@fluentui/react-slider';
|
|
@@ -1186,6 +1195,16 @@ export { partitionAvatarGroupItems }
|
|
|
1186
1195
|
|
|
1187
1196
|
export { PartitionAvatarGroupItemsOptions }
|
|
1188
1197
|
|
|
1198
|
+
export { Persona }
|
|
1199
|
+
|
|
1200
|
+
export { personaClassNames }
|
|
1201
|
+
|
|
1202
|
+
export { PersonaProps }
|
|
1203
|
+
|
|
1204
|
+
export { PersonaSlots }
|
|
1205
|
+
|
|
1206
|
+
export { PersonaState }
|
|
1207
|
+
|
|
1189
1208
|
export { Popover }
|
|
1190
1209
|
|
|
1191
1210
|
export { PopoverContextValue }
|
|
@@ -1350,6 +1369,8 @@ export { renderMenuSplitGroup_unstable }
|
|
|
1350
1369
|
|
|
1351
1370
|
export { renderMenuTrigger_unstable }
|
|
1352
1371
|
|
|
1372
|
+
export { renderPersona_unstable }
|
|
1373
|
+
|
|
1353
1374
|
export { renderPopover_unstable }
|
|
1354
1375
|
|
|
1355
1376
|
export { renderPopoverSurface_unstable }
|
|
@@ -1796,6 +1817,10 @@ export { useModalAttributes }
|
|
|
1796
1817
|
|
|
1797
1818
|
export { UseModalAttributesOptions }
|
|
1798
1819
|
|
|
1820
|
+
export { usePersona_unstable }
|
|
1821
|
+
|
|
1822
|
+
export { usePersonaStyles_unstable }
|
|
1823
|
+
|
|
1799
1824
|
export { usePopover_unstable }
|
|
1800
1825
|
|
|
1801
1826
|
export { usePopoverContext_unstable }
|
|
@@ -1822,6 +1847,8 @@ export { useRadioGroupStyles_unstable }
|
|
|
1822
1847
|
|
|
1823
1848
|
export { useRadioStyles_unstable }
|
|
1824
1849
|
|
|
1850
|
+
export { useScrollbarWidth }
|
|
1851
|
+
|
|
1825
1852
|
export { useSlider_unstable }
|
|
1826
1853
|
|
|
1827
1854
|
export { useSliderState_unstable }
|
package/dist/unstable.d.ts
CHANGED
|
@@ -124,11 +124,6 @@ import { Overflow } from '@fluentui/react-overflow';
|
|
|
124
124
|
import { OverflowItem } from '@fluentui/react-overflow';
|
|
125
125
|
import { OverflowItemProps } from '@fluentui/react-overflow';
|
|
126
126
|
import { OverflowProps } from '@fluentui/react-overflow';
|
|
127
|
-
import { Persona } from '@fluentui/react-persona';
|
|
128
|
-
import { personaClassNames } from '@fluentui/react-persona';
|
|
129
|
-
import { PersonaProps } from '@fluentui/react-persona';
|
|
130
|
-
import { PersonaSlots } from '@fluentui/react-persona';
|
|
131
|
-
import { PersonaState } from '@fluentui/react-persona';
|
|
132
127
|
import { ProgressBar } from '@fluentui/react-progress';
|
|
133
128
|
import { progressBarClassNames } from '@fluentui/react-progress';
|
|
134
129
|
import { ProgressBarProps } from '@fluentui/react-progress';
|
|
@@ -159,7 +154,6 @@ import { renderInfoButton_unstable } from '@fluentui/react-infobutton';
|
|
|
159
154
|
import { renderListbox_unstable } from '@fluentui/react-combobox';
|
|
160
155
|
import { renderOption_unstable } from '@fluentui/react-combobox';
|
|
161
156
|
import { renderOptionGroup_unstable } from '@fluentui/react-combobox';
|
|
162
|
-
import { renderPersona_unstable } from '@fluentui/react-persona';
|
|
163
157
|
import { renderProgressBar_unstable } from '@fluentui/react-progress';
|
|
164
158
|
import { renderSelect_unstable } from '@fluentui/react-select';
|
|
165
159
|
import { renderTable_unstable } from '@fluentui/react-table';
|
|
@@ -172,6 +166,7 @@ import { renderTableHeaderCell_unstable } from '@fluentui/react-table';
|
|
|
172
166
|
import { renderTableRow_unstable } from '@fluentui/react-table';
|
|
173
167
|
import { renderTableSelectionCell_unstable } from '@fluentui/react-table';
|
|
174
168
|
import { renderToolbar_unstable } from '@fluentui/react-toolbar';
|
|
169
|
+
import { renderToolbarGroup_unstable } from '@fluentui/react-toolbar';
|
|
175
170
|
import { RowId } from '@fluentui/react-table';
|
|
176
171
|
import { RowState } from '@fluentui/react-table';
|
|
177
172
|
import { Select } from '@fluentui/react-select';
|
|
@@ -262,7 +257,14 @@ import { ToolbarContextValues } from '@fluentui/react-toolbar';
|
|
|
262
257
|
import { ToolbarDivider } from '@fluentui/react-toolbar';
|
|
263
258
|
import { ToolbarDividerProps } from '@fluentui/react-toolbar';
|
|
264
259
|
import { ToolbarDividerState } from '@fluentui/react-toolbar';
|
|
260
|
+
import { ToolbarGroup } from '@fluentui/react-toolbar';
|
|
261
|
+
import { toolbarGroupClassNames } from '@fluentui/react-toolbar';
|
|
262
|
+
import { ToolbarGroupProps } from '@fluentui/react-toolbar';
|
|
263
|
+
import { ToolbarGroupState } from '@fluentui/react-toolbar';
|
|
265
264
|
import { ToolbarProps } from '@fluentui/react-toolbar';
|
|
265
|
+
import { ToolbarRadioButton } from '@fluentui/react-toolbar';
|
|
266
|
+
import { ToolbarRadioButtonProps } from '@fluentui/react-toolbar';
|
|
267
|
+
import { ToolbarRadioButtonState } from '@fluentui/react-toolbar';
|
|
266
268
|
import { ToolbarSlots } from '@fluentui/react-toolbar';
|
|
267
269
|
import { ToolbarState } from '@fluentui/react-toolbar';
|
|
268
270
|
import { ToolbarToggleButton } from '@fluentui/react-toolbar';
|
|
@@ -309,8 +311,6 @@ import { useOptionGroup_unstable } from '@fluentui/react-combobox';
|
|
|
309
311
|
import { useOptionGroupStyles_unstable } from '@fluentui/react-combobox';
|
|
310
312
|
import { useOptionStyles_unstable } from '@fluentui/react-combobox';
|
|
311
313
|
import { useOverflowMenu } from '@fluentui/react-overflow';
|
|
312
|
-
import { usePersona_unstable } from '@fluentui/react-persona';
|
|
313
|
-
import { usePersonaStyles_unstable } from '@fluentui/react-persona';
|
|
314
314
|
import { useProgressBar_unstable } from '@fluentui/react-progress';
|
|
315
315
|
import { useProgressBarStyles_unstable } from '@fluentui/react-progress';
|
|
316
316
|
import { useSelect_unstable } from '@fluentui/react-select';
|
|
@@ -339,8 +339,17 @@ import { useTableSelectionCellStyles_unstable } from '@fluentui/react-table';
|
|
|
339
339
|
import { useTableSort } from '@fluentui/react-table';
|
|
340
340
|
import { useTableStyles_unstable } from '@fluentui/react-table';
|
|
341
341
|
import { useToolbar_unstable } from '@fluentui/react-toolbar';
|
|
342
|
+
import { useToolbarButton_unstable } from '@fluentui/react-toolbar';
|
|
343
|
+
import { useToolbarButtonStyles_unstable } from '@fluentui/react-toolbar';
|
|
344
|
+
import { useToolbarDivider_unstable } from '@fluentui/react-toolbar';
|
|
342
345
|
import { useToolbarDividerStyles_unstable } from '@fluentui/react-toolbar';
|
|
346
|
+
import { useToolbarGroup_unstable } from '@fluentui/react-toolbar';
|
|
347
|
+
import { useToolbarGroupStyles_unstable } from '@fluentui/react-toolbar';
|
|
348
|
+
import { useToolbarRadioButton_unstable } from '@fluentui/react-toolbar';
|
|
349
|
+
import { useToolbarRadioButtonStyles_unstable } from '@fluentui/react-toolbar';
|
|
343
350
|
import { useToolbarStyles_unstable } from '@fluentui/react-toolbar';
|
|
351
|
+
import { useToolbarToggleButton_unstable } from '@fluentui/react-toolbar';
|
|
352
|
+
import { useToolbarToggleButtonStyles_unstable } from '@fluentui/react-toolbar';
|
|
344
353
|
|
|
345
354
|
export { Alert }
|
|
346
355
|
|
|
@@ -594,16 +603,6 @@ export { OverflowItemProps }
|
|
|
594
603
|
|
|
595
604
|
export { OverflowProps }
|
|
596
605
|
|
|
597
|
-
export { Persona }
|
|
598
|
-
|
|
599
|
-
export { personaClassNames }
|
|
600
|
-
|
|
601
|
-
export { PersonaProps }
|
|
602
|
-
|
|
603
|
-
export { PersonaSlots }
|
|
604
|
-
|
|
605
|
-
export { PersonaState }
|
|
606
|
-
|
|
607
606
|
export { ProgressBar }
|
|
608
607
|
|
|
609
608
|
export { progressBarClassNames }
|
|
@@ -664,8 +663,6 @@ export { renderOption_unstable }
|
|
|
664
663
|
|
|
665
664
|
export { renderOptionGroup_unstable }
|
|
666
665
|
|
|
667
|
-
export { renderPersona_unstable }
|
|
668
|
-
|
|
669
666
|
export { renderProgressBar_unstable }
|
|
670
667
|
|
|
671
668
|
export { renderSelect_unstable }
|
|
@@ -690,6 +687,8 @@ export { renderTableSelectionCell_unstable }
|
|
|
690
687
|
|
|
691
688
|
export { renderToolbar_unstable }
|
|
692
689
|
|
|
690
|
+
export { renderToolbarGroup_unstable }
|
|
691
|
+
|
|
693
692
|
export { RowId }
|
|
694
693
|
|
|
695
694
|
export { RowState }
|
|
@@ -871,8 +870,22 @@ export { ToolbarDividerProps }
|
|
|
871
870
|
|
|
872
871
|
export { ToolbarDividerState }
|
|
873
872
|
|
|
873
|
+
export { ToolbarGroup }
|
|
874
|
+
|
|
875
|
+
export { toolbarGroupClassNames }
|
|
876
|
+
|
|
877
|
+
export { ToolbarGroupProps }
|
|
878
|
+
|
|
879
|
+
export { ToolbarGroupState }
|
|
880
|
+
|
|
874
881
|
export { ToolbarProps }
|
|
875
882
|
|
|
883
|
+
export { ToolbarRadioButton }
|
|
884
|
+
|
|
885
|
+
export { ToolbarRadioButtonProps }
|
|
886
|
+
|
|
887
|
+
export { ToolbarRadioButtonState }
|
|
888
|
+
|
|
876
889
|
export { ToolbarSlots }
|
|
877
890
|
|
|
878
891
|
export { ToolbarState }
|
|
@@ -965,10 +978,6 @@ export { useOptionStyles_unstable }
|
|
|
965
978
|
|
|
966
979
|
export { useOverflowMenu }
|
|
967
980
|
|
|
968
|
-
export { usePersona_unstable }
|
|
969
|
-
|
|
970
|
-
export { usePersonaStyles_unstable }
|
|
971
|
-
|
|
972
981
|
export { useProgressBar_unstable }
|
|
973
982
|
|
|
974
983
|
export { useProgressBarStyles_unstable }
|
|
@@ -1025,8 +1034,26 @@ export { useTableStyles_unstable }
|
|
|
1025
1034
|
|
|
1026
1035
|
export { useToolbar_unstable }
|
|
1027
1036
|
|
|
1037
|
+
export { useToolbarButton_unstable }
|
|
1038
|
+
|
|
1039
|
+
export { useToolbarButtonStyles_unstable }
|
|
1040
|
+
|
|
1041
|
+
export { useToolbarDivider_unstable }
|
|
1042
|
+
|
|
1028
1043
|
export { useToolbarDividerStyles_unstable }
|
|
1029
1044
|
|
|
1045
|
+
export { useToolbarGroup_unstable }
|
|
1046
|
+
|
|
1047
|
+
export { useToolbarGroupStyles_unstable }
|
|
1048
|
+
|
|
1049
|
+
export { useToolbarRadioButton_unstable }
|
|
1050
|
+
|
|
1051
|
+
export { useToolbarRadioButtonStyles_unstable }
|
|
1052
|
+
|
|
1030
1053
|
export { useToolbarStyles_unstable }
|
|
1031
1054
|
|
|
1055
|
+
export { useToolbarToggleButton_unstable }
|
|
1056
|
+
|
|
1057
|
+
export { useToolbarToggleButtonStyles_unstable }
|
|
1058
|
+
|
|
1032
1059
|
export { }
|
|
@@ -1,62 +1,57 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3
3
|
import * as ReactIcons from '@fluentui/react-icons';
|
|
4
4
|
import { Input } from '@fluentui/react-input';
|
|
5
5
|
import { __styles, shorthands } from '@griffel/react';
|
|
6
|
-
|
|
7
6
|
const useStyles = /*#__PURE__*/__styles({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
7
|
+
grid: {
|
|
8
|
+
mc9l5x: "f13qh94s",
|
|
9
|
+
Budl1dq: "f103s1qi",
|
|
10
|
+
w08cwm: "fz44487",
|
|
11
|
+
De3pzq: "f1vbpgwy",
|
|
12
|
+
Bqyf3fh: "f1y7pwzt",
|
|
13
|
+
tuaewz: "fkjsrz3",
|
|
14
|
+
js62xs: "f1v4pbv1",
|
|
15
|
+
ge08ax: "f10n702m",
|
|
16
|
+
vwmem1: "fukf1g8",
|
|
17
|
+
pq1t01: "f1ke9dqw",
|
|
18
|
+
Bspu8ag: ["ft83mph", "fduese8"],
|
|
19
|
+
B83reyd: "ffztlgx",
|
|
20
|
+
d2aa3c: ["fduese8", "ft83mph"],
|
|
21
|
+
Bo0llhl: "f1ad31ox",
|
|
22
|
+
Bfpbev4: "f1pcllc0",
|
|
23
|
+
Bs90se3: "fdkswtx",
|
|
24
|
+
B83tkto: "f1yxgqk0",
|
|
25
|
+
pxe6pr: "fg04g75",
|
|
26
|
+
Beqvepd: "fvrpp50",
|
|
27
|
+
Bq5m64l: ["f1xqymmk", "f1mqnmtg"],
|
|
28
|
+
B0xcf35: "f12h2kxz",
|
|
29
|
+
B9c2vit: ["f1mqnmtg", "f1xqymmk"]
|
|
31
30
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
searchBox: {
|
|
32
|
+
De3pzq: "f1vbpgwy",
|
|
33
|
+
B2u0y6b: "f1ogbl2p",
|
|
34
|
+
jrapky: "f1dl2k97"
|
|
36
35
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
radio: {
|
|
37
|
+
De3pzq: "f1vbpgwy",
|
|
38
|
+
Be2twd7: "fnsq08h"
|
|
40
39
|
}
|
|
41
40
|
}, {
|
|
42
|
-
|
|
41
|
+
d: [".f13qh94s{display:grid;}", ".f103s1qi{grid-template-columns:auto auto auto auto;}", ".fz44487{grid-gap:10px;}", ".f1vbpgwy{background-color:#F7F7F7;}", ".f1y7pwzt>div{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".fkjsrz3>div{background-color:#FFFFFF;}", ".f1v4pbv1>div{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f10n702m>div{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".fukf1g8>div{-webkit-box-pack:space-around;-ms-flex-pack:space-around;-webkit-justify-content:space-around;justify-content:space-around;}", ".f1ke9dqw>div{padding-top:8px;}", ".ft83mph>div{padding-right:8px;}", ".fduese8>div{padding-left:8px;}", ".ffztlgx>div{padding-bottom:8px;}", ".f1ad31ox>div{overflow-x:hidden;}", ".f1pcllc0>div{overflow-y:hidden;}", ".fdkswtx>div>code{font-size:8px;}", ".f1yxgqk0>div>code{display:inline-block;}", ".fg04g75>div>code{height:auto;}", ".fvrpp50>div>code{padding-top:0px 8px;}", ".f1xqymmk>div>code{padding-right:0px 8px;}", ".f1mqnmtg>div>code{padding-left:0px 8px;}", ".f12h2kxz>div>code{padding-bottom:0px 8px;}", ".f1ogbl2p{max-width:320px;}", ".f1dl2k97{margin-bottom:10px;}", ".fnsq08h{font-size:11px;}"]
|
|
43
42
|
});
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
const reactIcons = /*#__PURE__*/Object.keys(ReactIcons)
|
|
44
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
46
45
|
.map(iconName => ReactIcons[iconName]).filter(icon => !!icon && !!icon.displayName);
|
|
47
|
-
|
|
48
46
|
const ReactIconGrid = () => {
|
|
49
47
|
const [search, setSearch] = React.useState('');
|
|
50
48
|
const [size, setSize] = React.useState(24);
|
|
51
49
|
const styles = useStyles();
|
|
52
|
-
|
|
53
50
|
const _onSearchQueryChanged = ev => {
|
|
54
51
|
setSearch(ev ? ev.currentTarget.value : '');
|
|
55
52
|
};
|
|
56
|
-
|
|
57
53
|
const _filterBySize = ev => {
|
|
58
54
|
const newSize = ev ? ev.currentTarget.value : '';
|
|
59
|
-
|
|
60
55
|
if (newSize === 'All') {
|
|
61
56
|
setSize('');
|
|
62
57
|
} else if (newSize === 'Unsized') {
|
|
@@ -65,17 +60,14 @@ const ReactIconGrid = () => {
|
|
|
65
60
|
setSize(newSize);
|
|
66
61
|
}
|
|
67
62
|
};
|
|
68
|
-
|
|
69
63
|
const _renderIcon = Icon => {
|
|
70
64
|
return /*#__PURE__*/React.createElement("div", {
|
|
71
65
|
key: Icon.displayName,
|
|
72
66
|
"aria-label": Icon.displayName
|
|
73
67
|
}, /*#__PURE__*/React.createElement(Icon, null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("code", null, Icon.displayName));
|
|
74
68
|
};
|
|
75
|
-
|
|
76
69
|
const filteredIcons = React.useMemo(() => reactIcons.filter(icon => {
|
|
77
70
|
var _a, _b;
|
|
78
|
-
|
|
79
71
|
return size === 'Unsized' ? icon.displayName && !/\d/.test(icon.displayName.toLowerCase()) : ((_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;
|
|
80
72
|
}), [search, size]);
|
|
81
73
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Input, {
|
|
@@ -100,6 +92,5 @@ const ReactIconGrid = () => {
|
|
|
100
92
|
className: styles.grid
|
|
101
93
|
}, filteredIcons.map(_renderIcon)));
|
|
102
94
|
};
|
|
103
|
-
|
|
104
95
|
export default ReactIconGrid;
|
|
105
96
|
//# sourceMappingURL=ReactIconGrid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"mappings":"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","names":["React","ReactIcons","Input","shorthands","useStyles","reactIcons","Object","keys","map","iconName","filter","icon","displayName","ReactIconGrid","search","setSearch","useState","size","setSize","styles","_onSearchQueryChanged","ev","currentTarget","value","_filterBySize","newSize","_renderIcon","Icon","key","filteredIcons","useMemo","test","toLowerCase","indexOf","String","type","placeholder","onChange","className","searchBox","option","id","defaultChecked","name","htmlFor","radio","grid"],"sourceRoot":"../src/","sources":["packages/react-components/react-components/src/Concepts/Icons/ReactIconGrid.tsx"],"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: 'grid',\n gridTemplateColumns: 'auto auto auto auto',\n gridGap: '10px',\n backgroundColor: '#F7F7F7',\n\n '> div': {\n alignItems: 'center',\n backgroundColor: '#FFFFFF',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'space-around',\n ...shorthands.padding('8px'),\n ...shorthands.overflow('hidden'),\n\n '> code': {\n fontSize: '8px',\n display: 'inline-block',\n height: 'auto',\n ...shorthands.padding('0px 8px'),\n },\n },\n },\n\n searchBox: {\n backgroundColor: '#F7F7F7',\n maxWidth: '320px',\n marginBottom: '10px',\n },\n\n radio: {\n backgroundColor: '#F7F7F7',\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 if (newSize === 'All') {\n setSize('');\n } else if (newSize === 'Unsized') {\n setSize('Unsized');\n } else {\n setSize(newSize);\n }\n };\n\n const _renderIcon = (Icon: React.FC<FluentIconsProps>): JSX.Element => {\n return (\n <div key={Icon.displayName} aria-label={Icon.displayName}>\n <Icon />\n <br />\n <code>{Icon.displayName}</code>\n </div>\n );\n };\n\n const filteredIcons = React.useMemo(\n () =>\n reactIcons.filter(icon =>\n size === 'Unsized'\n ? icon.displayName! && !/\\d/.test(icon.displayName.toLowerCase())\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, 'Unsized', '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"]}
|
package/lib/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
// Utilities
|
|
2
2
|
export { __css, __resetCSS, __resetStyles, __styles, createDOMRenderer, makeStaticStyles, makeStyles, mergeClasses, RendererProvider, renderToStyleElements, shorthands } from '@griffel/react';
|
|
3
3
|
export { FluentProvider, fluentProviderClassNames, renderFluentProvider_unstable, useFluentProvider_unstable, useFluentProviderContextValues_unstable, useFluentProviderStyles_unstable } from '@fluentui/react-provider';
|
|
4
|
-
export { Radio, radioClassNames, RadioGroup, RadioGroupProvider, radioGroupClassNames, renderRadio_unstable, renderRadioGroup_unstable, useRadio_unstable, useRadioGroupContext_unstable, useRadioGroupContextValues, useRadioGroup_unstable, useRadioGroupStyles_unstable, useRadioStyles_unstable } from '@fluentui/react-radio';
|
|
5
|
-
export { SpinButton, renderSpinButton_unstable, spinButtonClassNames, useSpinButtonStyles_unstable, useSpinButton_unstable } from '@fluentui/react-spinbutton';
|
|
6
4
|
export { createCustomFocusIndicatorStyle, createFocusOutlineStyle, useArrowNavigationGroup, useFocusableGroup, useFocusFinders, useKeyboardNavAttribute, useModalAttributes } from '@fluentui/react-tabster';
|
|
7
5
|
export { createDarkTheme, createHighContrastTheme, createLightTheme, createTeamsDarkTheme, themeToTokensObject, teamsDarkTheme, teamsHighContrastTheme, teamsLightTheme, tokens, typographyStyles, webDarkTheme, webLightTheme } from '@fluentui/react-theme';
|
|
8
6
|
export { useFluent_unstable as useFluent, useTooltipVisibility_unstable as useTooltipVisibility, useThemeClassName_unstable as useThemeClassName } from '@fluentui/react-shared-contexts';
|
|
9
|
-
export { getNativeElementProps, getPartitionedNativeProps, getSlots, resetIdsForTests, resolveShorthand, SSRProvider, useId, useIsomorphicLayoutEffect, useIsSSR, useMergedRefs } from '@fluentui/react-utilities';
|
|
10
|
-
|
|
7
|
+
export { getNativeElementProps, getPartitionedNativeProps, getSlots, resetIdsForTests, resolveShorthand, SSRProvider, useId, useIsomorphicLayoutEffect, useIsSSR, useMergedRefs, useScrollbarWidth } from '@fluentui/react-utilities';
|
|
8
|
+
// Components
|
|
11
9
|
export { Accordion, AccordionProvider, AccordionHeader, AccordionItem, AccordionItemProvider, AccordionPanel, accordionClassNames, accordionHeaderClassNames, accordionItemClassNames, accordionPanelClassNames, renderAccordion_unstable, renderAccordionHeader_unstable, renderAccordionItem_unstable, renderAccordionPanel_unstable, useAccordion_unstable, useAccordionContext_unstable, useAccordionContextValues_unstable, useAccordionHeader_unstable, useAccordionHeaderContextValues_unstable, useAccordionHeaderStyles_unstable, useAccordionItem_unstable, useAccordionItemContext_unstable, useAccordionItemContextValues_unstable, useAccordionItemStyles_unstable, useAccordionPanel_unstable, useAccordionPanelStyles_unstable, useAccordionStyles_unstable } from '@fluentui/react-accordion';
|
|
12
10
|
export { Avatar, avatarClassNames, renderAvatar_unstable, useAvatar_unstable, useAvatarStyles_unstable, AvatarGroup, avatarGroupClassNames, AvatarGroupItem, avatarGroupItemClassNames, AvatarGroupPopover, avatarGroupPopoverClassNames, AvatarGroupProvider, renderAvatarGroup_unstable, useAvatarGroupContextValues, useAvatarGroupStyles_unstable, useAvatarGroup_unstable, renderAvatarGroupItem_unstable, useAvatarGroupItemStyles_unstable, useAvatarGroupItem_unstable, renderAvatarGroupPopover_unstable, useAvatarGroupPopoverStyles_unstable, useAvatarGroupPopover_unstable, useAvatarGroupContext_unstable, partitionAvatarGroupItems } from '@fluentui/react-avatar';
|
|
13
11
|
export { Badge, CounterBadge, PresenceBadge, badgeClassNames, counterBadgeClassNames, presenceBadgeClassNames, renderBadge_unstable, useBadge_unstable, useBadgeStyles_unstable, useCounterBadge_unstable, useCounterBadgeStyles_unstable, usePresenceBadge_unstable } from '@fluentui/react-badge';
|
|
@@ -19,9 +17,12 @@ export { Image, imageClassNames, renderImage_unstable, useImage_unstable, useIma
|
|
|
19
17
|
export { Label, labelClassNames, renderLabel_unstable, useLabel_unstable, useLabelStyles_unstable } from '@fluentui/react-label';
|
|
20
18
|
export { Link, linkClassNames, renderLink_unstable, useLink_unstable, useLinkState_unstable, useLinkStyles_unstable } from '@fluentui/react-link';
|
|
21
19
|
export { Menu, MenuDivider, MenuGroup, MenuGroupContextProvider, MenuGroupHeader, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuList, MenuListProvider, MenuPopover, MenuProvider, MenuSplitGroup, MenuTrigger, MenuTriggerContextProvider, menuDividerClassNames, menuGroupClassNames, menuGroupHeaderClassNames, menuItemCheckboxClassNames, menuItemClassNames, menuItemRadioClassNames, menuListClassNames, menuPopoverClassNames, menuSplitGroupClassNames, renderMenu_unstable, renderMenuDivider_unstable, renderMenuGroup_unstable, renderMenuGroupHeader_unstable, renderMenuItem_unstable, renderMenuItemCheckbox_unstable, renderMenuItemRadio_unstable, renderMenuList_unstable, renderMenuPopover_unstable, renderMenuSplitGroup_unstable, renderMenuTrigger_unstable, useCheckmarkStyles_unstable, useMenu_unstable, useMenuContext_unstable, useMenuContextValues_unstable, useMenuDivider_unstable, useMenuDividerStyles_unstable, useMenuGroup_unstable, useMenuGroupContext_unstable, useMenuGroupContextValues_unstable, useMenuGroupHeader_unstable, useMenuGroupHeaderStyles_unstable, useMenuGroupStyles_unstable, useMenuItem_unstable, useMenuItemCheckbox_unstable, useMenuItemCheckboxStyles_unstable, useMenuItemRadio_unstable, useMenuItemRadioStyles_unstable, useMenuItemStyles_unstable, useMenuList_unstable, useMenuListContext_unstable, useMenuListContextValues_unstable, useMenuListStyles_unstable, useMenuPopover_unstable, useMenuPopoverStyles_unstable, useMenuSplitGroup_unstable, useMenuSplitGroupStyles_unstable, useMenuTrigger_unstable, useMenuTriggerContext_unstable } from '@fluentui/react-menu';
|
|
20
|
+
export { Persona, personaClassNames, renderPersona_unstable, usePersonaStyles_unstable, usePersona_unstable } from '@fluentui/react-persona';
|
|
22
21
|
export { Popover, PopoverSurface, PopoverProvider, PopoverTrigger, arrowHeights, popoverSurfaceClassNames, renderPopover_unstable, renderPopoverSurface_unstable, renderPopoverTrigger_unstable, usePopover_unstable, usePopoverContext_unstable, usePopoverSurface_unstable, usePopoverSurfaceStyles_unstable, usePopoverTrigger_unstable } from '@fluentui/react-popover';
|
|
23
22
|
export { Portal, usePortal_unstable, renderPortal_unstable } from '@fluentui/react-portal';
|
|
23
|
+
export { Radio, radioClassNames, RadioGroup, RadioGroupProvider, radioGroupClassNames, renderRadio_unstable, renderRadioGroup_unstable, useRadio_unstable, useRadioGroupContext_unstable, useRadioGroupContextValues, useRadioGroup_unstable, useRadioGroupStyles_unstable, useRadioStyles_unstable } from '@fluentui/react-radio';
|
|
24
24
|
export { Slider, sliderClassNames, sliderCSSVars, useSliderState_unstable, useSliderStyles_unstable, useSlider_unstable, renderSlider_unstable } from '@fluentui/react-slider';
|
|
25
|
+
export { SpinButton, renderSpinButton_unstable, spinButtonClassNames, useSpinButtonStyles_unstable, useSpinButton_unstable } from '@fluentui/react-spinbutton';
|
|
25
26
|
export { Spinner, spinnerClassNames, renderSpinner_unstable, useSpinner_unstable, useSpinnerStyles_unstable } from '@fluentui/react-spinner';
|
|
26
27
|
export { Switch, switchClassNames, renderSwitch_unstable, useSwitch_unstable, useSwitchStyles_unstable } from '@fluentui/react-switch';
|
|
27
28
|
export { renderTab_unstable, Tab, tabClassNames, useTabStyles_unstable, useTab_unstable, renderTabList_unstable, TabList, tabListClassNames, useTabListStyles_unstable, useTabList_unstable } from '@fluentui/react-tabs';
|