@fluentui/react-shared-contexts 9.3.2 → 9.4.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 +44 -1
- package/CHANGELOG.md +17 -2
- package/dist/index.d.ts +188 -5
- package/lib/CustomStyleHooksContext/CustomStyleHooksContext.js +9 -84
- package/lib/CustomStyleHooksContext/CustomStyleHooksContext.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/CustomStyleHooksContext/CustomStyleHooksContext.js +5 -85
- package/lib-commonjs/CustomStyleHooksContext/CustomStyleHooksContext.js.map +1 -1
- package/lib-commonjs/index.js +2 -1
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +2 -2
- package/.swcrc +0 -30
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,50 @@
|
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Fri, 12 May 2023 20:22:11 GMT",
|
6
|
+
"tag": "@fluentui/react-shared-contexts_v9.4.0",
|
7
|
+
"version": "9.4.0",
|
8
|
+
"comments": {
|
9
|
+
"minor": [
|
10
|
+
{
|
11
|
+
"author": "marcosvmmoura@gmail.com",
|
12
|
+
"package": "@fluentui/react-shared-contexts",
|
13
|
+
"commit": "3a9044346aced02d96e8cde65b46e88e8d9d32ec",
|
14
|
+
"comment": "feat: add style overrides for drawer components"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "gcox@microsoft.com",
|
18
|
+
"package": "@fluentui/react-shared-contexts",
|
19
|
+
"commit": "ee977e20d359922798949a4f18af7a036ca36ca3",
|
20
|
+
"comment": "Updated to provide single hook for noop tree-shaking"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "beachball",
|
24
|
+
"package": "@fluentui/react-shared-contexts",
|
25
|
+
"comment": "Bump @fluentui/react-theme to v9.1.8",
|
26
|
+
"commit": "79c08ce5bbf6387b2b18ba4c3d2d5681e0177d4b"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"none": [
|
30
|
+
{
|
31
|
+
"author": "martinhochel@microsoft.com",
|
32
|
+
"package": "@fluentui/react-shared-contexts",
|
33
|
+
"commit": "dbda7fa69e3000aaf8dd4a061e254ebd35198b8e",
|
34
|
+
"comment": "fix: update npmignore files to fix npm8/node16 regression how npm publish works"
|
35
|
+
}
|
36
|
+
],
|
37
|
+
"patch": [
|
38
|
+
{
|
39
|
+
"author": "olfedias@microsoft.com",
|
40
|
+
"package": "@fluentui/react-shared-contexts",
|
41
|
+
"commit": "c28decb23d191a0daaaf6d5d1832429715102129",
|
42
|
+
"comment": "chore: exclude .swcrc from being published"
|
43
|
+
}
|
44
|
+
]
|
45
|
+
}
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"date": "Tue, 21 Mar 2023 21:23:01 GMT",
|
6
49
|
"tag": "@fluentui/react-shared-contexts_v9.3.2",
|
7
50
|
"version": "9.3.2",
|
8
51
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,27 @@
|
|
1
1
|
# Change Log - @fluentui/react-shared-contexts
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Fri, 12 May 2023 20:22:11 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.4.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.4.0)
|
8
|
+
|
9
|
+
Fri, 12 May 2023 20:22:11 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.3.2..@fluentui/react-shared-contexts_v9.4.0)
|
11
|
+
|
12
|
+
### Minor changes
|
13
|
+
|
14
|
+
- feat: add style overrides for drawer components ([PR #27581](https://github.com/microsoft/fluentui/pull/27581) by marcosvmmoura@gmail.com)
|
15
|
+
- Updated to provide single hook for noop tree-shaking ([PR #27491](https://github.com/microsoft/fluentui/pull/27491) by gcox@microsoft.com)
|
16
|
+
- Bump @fluentui/react-theme to v9.1.8 ([PR #27827](https://github.com/microsoft/fluentui/pull/27827) by beachball)
|
17
|
+
|
18
|
+
### Patches
|
19
|
+
|
20
|
+
- chore: exclude .swcrc from being published ([PR #27740](https://github.com/microsoft/fluentui/pull/27740) by olfedias@microsoft.com)
|
21
|
+
|
7
22
|
## [9.3.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.3.2)
|
8
23
|
|
9
|
-
Tue, 21 Mar 2023 21:
|
24
|
+
Tue, 21 Mar 2023 21:23:01 GMT
|
10
25
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.3.1..@fluentui/react-shared-contexts_v9.3.2)
|
11
26
|
|
12
27
|
### Patches
|
package/dist/index.d.ts
CHANGED
@@ -6,9 +6,95 @@ declare type CustomStyleHook = (state: unknown) => void;
|
|
6
6
|
/**
|
7
7
|
* @internal
|
8
8
|
*/
|
9
|
-
export declare const CustomStyleHooksContext_unstable: React_2.Context<
|
9
|
+
export declare const CustomStyleHooksContext_unstable: React_2.Context<Partial<{
|
10
|
+
useAccordionHeaderStyles_unstable: CustomStyleHook;
|
11
|
+
useAccordionItemStyles_unstable: CustomStyleHook;
|
12
|
+
useAccordionPanelStyles_unstable: CustomStyleHook;
|
13
|
+
useAccordionStyles_unstable: CustomStyleHook;
|
14
|
+
useAvatarStyles_unstable: CustomStyleHook;
|
15
|
+
useAvatarGroupStyles_unstable: CustomStyleHook;
|
16
|
+
useAvatarGroupItemStyles_unstable: CustomStyleHook;
|
17
|
+
useAvatarGroupPopoverStyles_unstable: CustomStyleHook;
|
18
|
+
useBadgeStyles_unstable: CustomStyleHook;
|
19
|
+
useCounterBadgeStyles_unstable: CustomStyleHook;
|
20
|
+
useCardHeaderStyles_unstable: CustomStyleHook;
|
21
|
+
useCardStyles_unstable: CustomStyleHook;
|
22
|
+
useCardFooterStyles_unstable: CustomStyleHook;
|
23
|
+
useCardPreviewStyles_unstable: CustomStyleHook;
|
24
|
+
usePresenceBadgeStyles_unstable: CustomStyleHook;
|
25
|
+
useButtonStyles_unstable: CustomStyleHook;
|
26
|
+
useCompoundButtonStyles_unstable: CustomStyleHook;
|
27
|
+
useMenuButtonStyles_unstable: CustomStyleHook;
|
28
|
+
useSplitButtonStyles_unstable: CustomStyleHook;
|
29
|
+
useToggleButtonStyles_unstable: CustomStyleHook;
|
30
|
+
useCheckboxStyles_unstable: CustomStyleHook;
|
31
|
+
useComboboxStyles_unstable: CustomStyleHook;
|
32
|
+
useDropdownStyles_unstable: CustomStyleHook;
|
33
|
+
useListboxStyles_unstable: CustomStyleHook;
|
34
|
+
useOptionStyles_unstable: CustomStyleHook;
|
35
|
+
useOptionGroupStyles_unstable: CustomStyleHook;
|
36
|
+
useDividerStyles_unstable: CustomStyleHook;
|
37
|
+
useInputStyles_unstable: CustomStyleHook;
|
38
|
+
useImageStyles_unstable: CustomStyleHook;
|
39
|
+
useLabelStyles_unstable: CustomStyleHook;
|
40
|
+
useLinkStyles_unstable: CustomStyleHook;
|
41
|
+
useMenuDividerStyles_unstable: CustomStyleHook;
|
42
|
+
useMenuGroupHeaderStyles_unstable: CustomStyleHook;
|
43
|
+
useMenuGroupStyles_unstable: CustomStyleHook;
|
44
|
+
useMenuItemCheckboxStyles_unstable: CustomStyleHook;
|
45
|
+
useMenuItemRadioStyles_unstable: CustomStyleHook;
|
46
|
+
useMenuItemStyles_unstable: CustomStyleHook;
|
47
|
+
useMenuListStyles_unstable: CustomStyleHook;
|
48
|
+
useMenuPopoverStyles_unstable: CustomStyleHook;
|
49
|
+
useMenuSplitGroupStyles_unstable: CustomStyleHook;
|
50
|
+
usePersonaStyles_unstable: CustomStyleHook;
|
51
|
+
usePopoverSurfaceStyles_unstable: CustomStyleHook;
|
52
|
+
useRadioGroupStyles_unstable: CustomStyleHook;
|
53
|
+
useRadioStyles_unstable: CustomStyleHook;
|
54
|
+
useSelectStyles_unstable: CustomStyleHook;
|
55
|
+
useSliderStyles_unstable: CustomStyleHook;
|
56
|
+
useSpinButtonStyles_unstable: CustomStyleHook;
|
57
|
+
useSpinnerStyles_unstable: CustomStyleHook;
|
58
|
+
useSwitchStyles_unstable: CustomStyleHook;
|
59
|
+
useTabStyles_unstable: CustomStyleHook;
|
60
|
+
useTabListStyles_unstable: CustomStyleHook;
|
61
|
+
useTextStyles_unstable: CustomStyleHook;
|
62
|
+
useTextareaStyles_unstable: CustomStyleHook;
|
63
|
+
useTooltipStyles_unstable: CustomStyleHook;
|
64
|
+
useDialogTitleStyles_unstable: CustomStyleHook;
|
65
|
+
useDialogBodyStyles_unstable: CustomStyleHook;
|
66
|
+
useDialogActionsStyles_unstable: CustomStyleHook;
|
67
|
+
useDialogSurfaceStyles_unstable: CustomStyleHook;
|
68
|
+
useDialogContentStyles_unstable: CustomStyleHook;
|
69
|
+
useProgressBarStyles_unstable: CustomStyleHook;
|
70
|
+
useToolbarButtonStyles_unstable: CustomStyleHook;
|
71
|
+
useToolbarRadioButtonStyles_unstable: CustomStyleHook;
|
72
|
+
useToolbarGroupStyles_unstable: CustomStyleHook;
|
73
|
+
useToolbarToggleButtonStyles_unstable: CustomStyleHook;
|
74
|
+
useToolbarDividerStyles_unstable: CustomStyleHook;
|
75
|
+
useToolbarStyles_unstable: CustomStyleHook;
|
76
|
+
useTableCellStyles_unstable: CustomStyleHook;
|
77
|
+
useTableRowStyles_unstable: CustomStyleHook;
|
78
|
+
useTableBodyStyles_unstable: CustomStyleHook;
|
79
|
+
useTableStyles_unstable: CustomStyleHook;
|
80
|
+
useTableHeaderStyles_unstable: CustomStyleHook;
|
81
|
+
useTableHeaderCellStyles_unstable: CustomStyleHook;
|
82
|
+
useTableResizeHandleStyles_unstable: CustomStyleHook;
|
83
|
+
useTableSelectionCellStyles_unstable: CustomStyleHook;
|
84
|
+
useTableCellActionsStyles_unstable: CustomStyleHook;
|
85
|
+
useTableCellLayoutStyles_unstable: CustomStyleHook;
|
86
|
+
useDataGridCellStyles_unstable: CustomStyleHook;
|
87
|
+
useDataGridRowStyles_unstable: CustomStyleHook;
|
88
|
+
useDataGridBodyStyles_unstable: CustomStyleHook;
|
89
|
+
useDataGridStyles_unstable: CustomStyleHook;
|
90
|
+
useDataGridHeaderStyles_unstable: CustomStyleHook;
|
91
|
+
useDataGridHeaderCellStyles_unstable: CustomStyleHook;
|
92
|
+
useDataGridSelectionCellStyles_unstable: CustomStyleHook;
|
93
|
+
useDrawerStyles_unstable: CustomStyleHook;
|
94
|
+
useDrawerBodyStyles_unstable: CustomStyleHook;
|
95
|
+
}> | undefined>;
|
10
96
|
|
11
|
-
export declare type CustomStyleHooksContextValue_unstable = {
|
97
|
+
export declare type CustomStyleHooksContextValue_unstable = Partial<{
|
12
98
|
useAccordionHeaderStyles_unstable: CustomStyleHook;
|
13
99
|
useAccordionItemStyles_unstable: CustomStyleHook;
|
14
100
|
useAccordionPanelStyles_unstable: CustomStyleHook;
|
@@ -19,6 +105,10 @@ export declare type CustomStyleHooksContextValue_unstable = {
|
|
19
105
|
useAvatarGroupPopoverStyles_unstable: CustomStyleHook;
|
20
106
|
useBadgeStyles_unstable: CustomStyleHook;
|
21
107
|
useCounterBadgeStyles_unstable: CustomStyleHook;
|
108
|
+
useCardHeaderStyles_unstable: CustomStyleHook;
|
109
|
+
useCardStyles_unstable: CustomStyleHook;
|
110
|
+
useCardFooterStyles_unstable: CustomStyleHook;
|
111
|
+
useCardPreviewStyles_unstable: CustomStyleHook;
|
22
112
|
usePresenceBadgeStyles_unstable: CustomStyleHook;
|
23
113
|
useButtonStyles_unstable: CustomStyleHook;
|
24
114
|
useCompoundButtonStyles_unstable: CustomStyleHook;
|
@@ -88,12 +178,100 @@ export declare type CustomStyleHooksContextValue_unstable = {
|
|
88
178
|
useDataGridHeaderStyles_unstable: CustomStyleHook;
|
89
179
|
useDataGridHeaderCellStyles_unstable: CustomStyleHook;
|
90
180
|
useDataGridSelectionCellStyles_unstable: CustomStyleHook;
|
91
|
-
|
181
|
+
useDrawerStyles_unstable: CustomStyleHook;
|
182
|
+
useDrawerBodyStyles_unstable: CustomStyleHook;
|
183
|
+
}>;
|
92
184
|
|
93
185
|
/**
|
94
186
|
* @internal
|
95
187
|
*/
|
96
|
-
export declare const CustomStyleHooksProvider_unstable: React_2.Provider<
|
188
|
+
export declare const CustomStyleHooksProvider_unstable: React_2.Provider<Partial<{
|
189
|
+
useAccordionHeaderStyles_unstable: CustomStyleHook;
|
190
|
+
useAccordionItemStyles_unstable: CustomStyleHook;
|
191
|
+
useAccordionPanelStyles_unstable: CustomStyleHook;
|
192
|
+
useAccordionStyles_unstable: CustomStyleHook;
|
193
|
+
useAvatarStyles_unstable: CustomStyleHook;
|
194
|
+
useAvatarGroupStyles_unstable: CustomStyleHook;
|
195
|
+
useAvatarGroupItemStyles_unstable: CustomStyleHook;
|
196
|
+
useAvatarGroupPopoverStyles_unstable: CustomStyleHook;
|
197
|
+
useBadgeStyles_unstable: CustomStyleHook;
|
198
|
+
useCounterBadgeStyles_unstable: CustomStyleHook;
|
199
|
+
useCardHeaderStyles_unstable: CustomStyleHook;
|
200
|
+
useCardStyles_unstable: CustomStyleHook;
|
201
|
+
useCardFooterStyles_unstable: CustomStyleHook;
|
202
|
+
useCardPreviewStyles_unstable: CustomStyleHook;
|
203
|
+
usePresenceBadgeStyles_unstable: CustomStyleHook;
|
204
|
+
useButtonStyles_unstable: CustomStyleHook;
|
205
|
+
useCompoundButtonStyles_unstable: CustomStyleHook;
|
206
|
+
useMenuButtonStyles_unstable: CustomStyleHook;
|
207
|
+
useSplitButtonStyles_unstable: CustomStyleHook;
|
208
|
+
useToggleButtonStyles_unstable: CustomStyleHook;
|
209
|
+
useCheckboxStyles_unstable: CustomStyleHook;
|
210
|
+
useComboboxStyles_unstable: CustomStyleHook;
|
211
|
+
useDropdownStyles_unstable: CustomStyleHook;
|
212
|
+
useListboxStyles_unstable: CustomStyleHook;
|
213
|
+
useOptionStyles_unstable: CustomStyleHook;
|
214
|
+
useOptionGroupStyles_unstable: CustomStyleHook;
|
215
|
+
useDividerStyles_unstable: CustomStyleHook;
|
216
|
+
useInputStyles_unstable: CustomStyleHook;
|
217
|
+
useImageStyles_unstable: CustomStyleHook;
|
218
|
+
useLabelStyles_unstable: CustomStyleHook;
|
219
|
+
useLinkStyles_unstable: CustomStyleHook;
|
220
|
+
useMenuDividerStyles_unstable: CustomStyleHook;
|
221
|
+
useMenuGroupHeaderStyles_unstable: CustomStyleHook;
|
222
|
+
useMenuGroupStyles_unstable: CustomStyleHook;
|
223
|
+
useMenuItemCheckboxStyles_unstable: CustomStyleHook;
|
224
|
+
useMenuItemRadioStyles_unstable: CustomStyleHook;
|
225
|
+
useMenuItemStyles_unstable: CustomStyleHook;
|
226
|
+
useMenuListStyles_unstable: CustomStyleHook;
|
227
|
+
useMenuPopoverStyles_unstable: CustomStyleHook;
|
228
|
+
useMenuSplitGroupStyles_unstable: CustomStyleHook;
|
229
|
+
usePersonaStyles_unstable: CustomStyleHook;
|
230
|
+
usePopoverSurfaceStyles_unstable: CustomStyleHook;
|
231
|
+
useRadioGroupStyles_unstable: CustomStyleHook;
|
232
|
+
useRadioStyles_unstable: CustomStyleHook;
|
233
|
+
useSelectStyles_unstable: CustomStyleHook;
|
234
|
+
useSliderStyles_unstable: CustomStyleHook;
|
235
|
+
useSpinButtonStyles_unstable: CustomStyleHook;
|
236
|
+
useSpinnerStyles_unstable: CustomStyleHook;
|
237
|
+
useSwitchStyles_unstable: CustomStyleHook;
|
238
|
+
useTabStyles_unstable: CustomStyleHook;
|
239
|
+
useTabListStyles_unstable: CustomStyleHook;
|
240
|
+
useTextStyles_unstable: CustomStyleHook;
|
241
|
+
useTextareaStyles_unstable: CustomStyleHook;
|
242
|
+
useTooltipStyles_unstable: CustomStyleHook;
|
243
|
+
useDialogTitleStyles_unstable: CustomStyleHook;
|
244
|
+
useDialogBodyStyles_unstable: CustomStyleHook;
|
245
|
+
useDialogActionsStyles_unstable: CustomStyleHook;
|
246
|
+
useDialogSurfaceStyles_unstable: CustomStyleHook;
|
247
|
+
useDialogContentStyles_unstable: CustomStyleHook;
|
248
|
+
useProgressBarStyles_unstable: CustomStyleHook;
|
249
|
+
useToolbarButtonStyles_unstable: CustomStyleHook;
|
250
|
+
useToolbarRadioButtonStyles_unstable: CustomStyleHook;
|
251
|
+
useToolbarGroupStyles_unstable: CustomStyleHook;
|
252
|
+
useToolbarToggleButtonStyles_unstable: CustomStyleHook;
|
253
|
+
useToolbarDividerStyles_unstable: CustomStyleHook;
|
254
|
+
useToolbarStyles_unstable: CustomStyleHook;
|
255
|
+
useTableCellStyles_unstable: CustomStyleHook;
|
256
|
+
useTableRowStyles_unstable: CustomStyleHook;
|
257
|
+
useTableBodyStyles_unstable: CustomStyleHook;
|
258
|
+
useTableStyles_unstable: CustomStyleHook;
|
259
|
+
useTableHeaderStyles_unstable: CustomStyleHook;
|
260
|
+
useTableHeaderCellStyles_unstable: CustomStyleHook;
|
261
|
+
useTableResizeHandleStyles_unstable: CustomStyleHook;
|
262
|
+
useTableSelectionCellStyles_unstable: CustomStyleHook;
|
263
|
+
useTableCellActionsStyles_unstable: CustomStyleHook;
|
264
|
+
useTableCellLayoutStyles_unstable: CustomStyleHook;
|
265
|
+
useDataGridCellStyles_unstable: CustomStyleHook;
|
266
|
+
useDataGridRowStyles_unstable: CustomStyleHook;
|
267
|
+
useDataGridBodyStyles_unstable: CustomStyleHook;
|
268
|
+
useDataGridStyles_unstable: CustomStyleHook;
|
269
|
+
useDataGridHeaderStyles_unstable: CustomStyleHook;
|
270
|
+
useDataGridHeaderCellStyles_unstable: CustomStyleHook;
|
271
|
+
useDataGridSelectionCellStyles_unstable: CustomStyleHook;
|
272
|
+
useDrawerStyles_unstable: CustomStyleHook;
|
273
|
+
useDrawerBodyStyles_unstable: CustomStyleHook;
|
274
|
+
}> | undefined>;
|
97
275
|
|
98
276
|
/**
|
99
277
|
* @internal
|
@@ -153,7 +331,12 @@ export declare type TooltipVisibilityContextValue_unstable = {
|
|
153
331
|
*/
|
154
332
|
export declare const TooltipVisibilityProvider_unstable: React_2.Provider<TooltipVisibilityContextValue_unstable>;
|
155
333
|
|
156
|
-
|
334
|
+
/**
|
335
|
+
* Gets a custom style hook
|
336
|
+
* @param hook - One of the hook properties in CustomStyleHooksContextValue
|
337
|
+
* @returns The corresponding hook when defined, otherwise a no-op function.
|
338
|
+
*/
|
339
|
+
export declare const useCustomStyleHook_unstable: (hook: keyof CustomStyleHooksContextValue_unstable) => CustomStyleHook;
|
157
340
|
|
158
341
|
export declare function useFluent_unstable(): ProviderContextValue_unstable;
|
159
342
|
|
@@ -4,93 +4,18 @@
|
|
4
4
|
*/
|
5
5
|
export const CustomStyleHooksContext = /*#__PURE__*/React.createContext(undefined);
|
6
6
|
const noop = () => {};
|
7
|
-
const customStyleHooksContextDefaultValue = {
|
8
|
-
useAccordionHeaderStyles_unstable: noop,
|
9
|
-
useAccordionItemStyles_unstable: noop,
|
10
|
-
useAccordionPanelStyles_unstable: noop,
|
11
|
-
useAccordionStyles_unstable: noop,
|
12
|
-
useAvatarStyles_unstable: noop,
|
13
|
-
useAvatarGroupStyles_unstable: noop,
|
14
|
-
useAvatarGroupItemStyles_unstable: noop,
|
15
|
-
useAvatarGroupPopoverStyles_unstable: noop,
|
16
|
-
useBadgeStyles_unstable: noop,
|
17
|
-
useCounterBadgeStyles_unstable: noop,
|
18
|
-
usePresenceBadgeStyles_unstable: noop,
|
19
|
-
useButtonStyles_unstable: noop,
|
20
|
-
useCompoundButtonStyles_unstable: noop,
|
21
|
-
useMenuButtonStyles_unstable: noop,
|
22
|
-
useSplitButtonStyles_unstable: noop,
|
23
|
-
useToggleButtonStyles_unstable: noop,
|
24
|
-
useCheckboxStyles_unstable: noop,
|
25
|
-
useComboboxStyles_unstable: noop,
|
26
|
-
useDropdownStyles_unstable: noop,
|
27
|
-
useListboxStyles_unstable: noop,
|
28
|
-
useOptionStyles_unstable: noop,
|
29
|
-
useOptionGroupStyles_unstable: noop,
|
30
|
-
useDividerStyles_unstable: noop,
|
31
|
-
useInputStyles_unstable: noop,
|
32
|
-
useImageStyles_unstable: noop,
|
33
|
-
useLabelStyles_unstable: noop,
|
34
|
-
useLinkStyles_unstable: noop,
|
35
|
-
useMenuDividerStyles_unstable: noop,
|
36
|
-
useMenuGroupHeaderStyles_unstable: noop,
|
37
|
-
useMenuGroupStyles_unstable: noop,
|
38
|
-
useMenuItemCheckboxStyles_unstable: noop,
|
39
|
-
useMenuItemRadioStyles_unstable: noop,
|
40
|
-
useMenuItemStyles_unstable: noop,
|
41
|
-
useMenuListStyles_unstable: noop,
|
42
|
-
useMenuPopoverStyles_unstable: noop,
|
43
|
-
useMenuSplitGroupStyles_unstable: noop,
|
44
|
-
usePersonaStyles_unstable: noop,
|
45
|
-
usePopoverSurfaceStyles_unstable: noop,
|
46
|
-
useRadioGroupStyles_unstable: noop,
|
47
|
-
useRadioStyles_unstable: noop,
|
48
|
-
useSelectStyles_unstable: noop,
|
49
|
-
useSliderStyles_unstable: noop,
|
50
|
-
useSpinButtonStyles_unstable: noop,
|
51
|
-
useSpinnerStyles_unstable: noop,
|
52
|
-
useSwitchStyles_unstable: noop,
|
53
|
-
useTabStyles_unstable: noop,
|
54
|
-
useTabListStyles_unstable: noop,
|
55
|
-
useTextStyles_unstable: noop,
|
56
|
-
useTextareaStyles_unstable: noop,
|
57
|
-
useTooltipStyles_unstable: noop,
|
58
|
-
useDialogTitleStyles_unstable: noop,
|
59
|
-
useDialogBodyStyles_unstable: noop,
|
60
|
-
useDialogActionsStyles_unstable: noop,
|
61
|
-
useDialogSurfaceStyles_unstable: noop,
|
62
|
-
useDialogContentStyles_unstable: noop,
|
63
|
-
useProgressBarStyles_unstable: noop,
|
64
|
-
useToolbarButtonStyles_unstable: noop,
|
65
|
-
useToolbarRadioButtonStyles_unstable: noop,
|
66
|
-
useToolbarGroupStyles_unstable: noop,
|
67
|
-
useToolbarToggleButtonStyles_unstable: noop,
|
68
|
-
useToolbarDividerStyles_unstable: noop,
|
69
|
-
useToolbarStyles_unstable: noop,
|
70
|
-
useTableCellStyles_unstable: noop,
|
71
|
-
useTableRowStyles_unstable: noop,
|
72
|
-
useTableBodyStyles_unstable: noop,
|
73
|
-
useTableStyles_unstable: noop,
|
74
|
-
useTableHeaderStyles_unstable: noop,
|
75
|
-
useTableHeaderCellStyles_unstable: noop,
|
76
|
-
useTableResizeHandleStyles_unstable: noop,
|
77
|
-
useTableSelectionCellStyles_unstable: noop,
|
78
|
-
useTableCellActionsStyles_unstable: noop,
|
79
|
-
useTableCellLayoutStyles_unstable: noop,
|
80
|
-
useDataGridCellStyles_unstable: noop,
|
81
|
-
useDataGridRowStyles_unstable: noop,
|
82
|
-
useDataGridBodyStyles_unstable: noop,
|
83
|
-
useDataGridStyles_unstable: noop,
|
84
|
-
useDataGridHeaderStyles_unstable: noop,
|
85
|
-
useDataGridHeaderCellStyles_unstable: noop,
|
86
|
-
useDataGridSelectionCellStyles_unstable: noop
|
87
|
-
};
|
88
7
|
/**
|
89
8
|
* @internal
|
90
9
|
*/
|
91
10
|
export const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
|
92
|
-
|
11
|
+
/**
|
12
|
+
* Gets a custom style hook
|
13
|
+
* @param hook - One of the hook properties in CustomStyleHooksContextValue
|
14
|
+
* @returns The corresponding hook when defined, otherwise a no-op function.
|
15
|
+
*/
|
16
|
+
export const useCustomStyleHook = hook => {
|
93
17
|
var _React_useContext;
|
94
|
-
|
95
|
-
|
18
|
+
var _React_useContext_hook;
|
19
|
+
return (_React_useContext_hook = (_React_useContext = React.useContext(CustomStyleHooksContext)) === null || _React_useContext === void 0 ? void 0 : _React_useContext[hook]) !== null && _React_useContext_hook !== void 0 ? _React_useContext_hook : noop;
|
20
|
+
};
|
96
21
|
//# sourceMappingURL=CustomStyleHooksContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","CustomStyleHooksContext","createContext","undefined","noop","customStyleHooksContextDefaultValue","useAccordionHeaderStyles_unstable","useAccordionItemStyles_unstable","useAccordionPanelStyles_unstable","useAccordionStyles_unstable","useAvatarStyles_unstable","useAvatarGroupStyles_unstable","useAvatarGroupItemStyles_unstable","useAvatarGroupPopoverStyles_unstable","useBadgeStyles_unstable","useCounterBadgeStyles_unstable","usePresenceBadgeStyles_unstable","useButtonStyles_unstable","useCompoundButtonStyles_unstable","useMenuButtonStyles_unstable","useSplitButtonStyles_unstable","useToggleButtonStyles_unstable","useCheckboxStyles_unstable","useComboboxStyles_unstable","useDropdownStyles_unstable","useListboxStyles_unstable","useOptionStyles_unstable","useOptionGroupStyles_unstable","useDividerStyles_unstable","useInputStyles_unstable","useImageStyles_unstable","useLabelStyles_unstable","useLinkStyles_unstable","useMenuDividerStyles_unstable","useMenuGroupHeaderStyles_unstable","useMenuGroupStyles_unstable","useMenuItemCheckboxStyles_unstable","useMenuItemRadioStyles_unstable","useMenuItemStyles_unstable","useMenuListStyles_unstable","useMenuPopoverStyles_unstable","useMenuSplitGroupStyles_unstable","usePersonaStyles_unstable","usePopoverSurfaceStyles_unstable","useRadioGroupStyles_unstable","useRadioStyles_unstable","useSelectStyles_unstable","useSliderStyles_unstable","useSpinButtonStyles_unstable","useSpinnerStyles_unstable","useSwitchStyles_unstable","useTabStyles_unstable","useTabListStyles_unstable","useTextStyles_unstable","useTextareaStyles_unstable","useTooltipStyles_unstable","useDialogTitleStyles_unstable","useDialogBodyStyles_unstable","useDialogActionsStyles_unstable","useDialogSurfaceStyles_unstable","useDialogContentStyles_unstable","useProgressBarStyles_unstable","useToolbarButtonStyles_unstable","useToolbarRadioButtonStyles_unstable","useToolbarGroupStyles_unstable","useToolbarToggleButtonStyles_unstable","useToolbarDividerStyles_unstable","useToolbarStyles_unstable","useTableCellStyles_unstable","useTableRowStyles_unstable","useTableBodyStyles_unstable","useTableStyles_unstable","useTableHeaderStyles_unstable","useTableHeaderCellStyles_unstable","useTableResizeHandleStyles_unstable","useTableSelectionCellStyles_unstable","useTableCellActionsStyles_unstable","useTableCellLayoutStyles_unstable","useDataGridCellStyles_unstable","useDataGridRowStyles_unstable","useDataGridBodyStyles_unstable","useDataGridStyles_unstable","useDataGridHeaderStyles_unstable","useDataGridHeaderCellStyles_unstable","useDataGridSelectionCellStyles_unstable","CustomStyleHooksProvider","Provider","useCustomStyleHooks","_React_useContext","useContext"],"sources":["../../src/CustomStyleHooksContext/CustomStyleHooksContext.ts"],"sourcesContent":["/* eslint-disable */\n\nimport * as React from 'react';\n\ntype CustomStyleHook = (state: unknown) => void;\n\n// The list of hooks is built from the exports from react-components/src/index\nexport type CustomStyleHooksContextValue = {\n useAccordionHeaderStyles_unstable: CustomStyleHook;\n useAccordionItemStyles_unstable: CustomStyleHook;\n useAccordionPanelStyles_unstable: CustomStyleHook;\n useAccordionStyles_unstable: CustomStyleHook;\n useAvatarStyles_unstable: CustomStyleHook;\n useAvatarGroupStyles_unstable: CustomStyleHook;\n useAvatarGroupItemStyles_unstable: CustomStyleHook;\n useAvatarGroupPopoverStyles_unstable: CustomStyleHook;\n useBadgeStyles_unstable: CustomStyleHook;\n useCounterBadgeStyles_unstable: CustomStyleHook;\n usePresenceBadgeStyles_unstable: CustomStyleHook;\n useButtonStyles_unstable: CustomStyleHook;\n useCompoundButtonStyles_unstable: CustomStyleHook;\n useMenuButtonStyles_unstable: CustomStyleHook;\n useSplitButtonStyles_unstable: CustomStyleHook;\n useToggleButtonStyles_unstable: CustomStyleHook;\n useCheckboxStyles_unstable: CustomStyleHook;\n useComboboxStyles_unstable: CustomStyleHook;\n useDropdownStyles_unstable: CustomStyleHook;\n useListboxStyles_unstable: CustomStyleHook;\n useOptionStyles_unstable: CustomStyleHook;\n useOptionGroupStyles_unstable: CustomStyleHook;\n useDividerStyles_unstable: CustomStyleHook;\n useInputStyles_unstable: CustomStyleHook;\n useImageStyles_unstable: CustomStyleHook;\n useLabelStyles_unstable: CustomStyleHook;\n useLinkStyles_unstable: CustomStyleHook;\n useMenuDividerStyles_unstable: CustomStyleHook;\n useMenuGroupHeaderStyles_unstable: CustomStyleHook;\n useMenuGroupStyles_unstable: CustomStyleHook;\n useMenuItemCheckboxStyles_unstable: CustomStyleHook;\n useMenuItemRadioStyles_unstable: CustomStyleHook;\n useMenuItemStyles_unstable: CustomStyleHook;\n useMenuListStyles_unstable: CustomStyleHook;\n useMenuPopoverStyles_unstable: CustomStyleHook;\n useMenuSplitGroupStyles_unstable: CustomStyleHook;\n usePersonaStyles_unstable: CustomStyleHook;\n usePopoverSurfaceStyles_unstable: CustomStyleHook;\n useRadioGroupStyles_unstable: CustomStyleHook;\n useRadioStyles_unstable: CustomStyleHook;\n useSelectStyles_unstable: CustomStyleHook;\n useSliderStyles_unstable: CustomStyleHook;\n useSpinButtonStyles_unstable: CustomStyleHook;\n useSpinnerStyles_unstable: CustomStyleHook;\n useSwitchStyles_unstable: CustomStyleHook;\n useTabStyles_unstable: CustomStyleHook;\n useTabListStyles_unstable: CustomStyleHook;\n useTextStyles_unstable: CustomStyleHook;\n useTextareaStyles_unstable: CustomStyleHook;\n useTooltipStyles_unstable: CustomStyleHook;\n useDialogTitleStyles_unstable: CustomStyleHook;\n useDialogBodyStyles_unstable: CustomStyleHook;\n useDialogActionsStyles_unstable: CustomStyleHook;\n useDialogSurfaceStyles_unstable: CustomStyleHook;\n useDialogContentStyles_unstable: CustomStyleHook;\n useProgressBarStyles_unstable: CustomStyleHook;\n useToolbarButtonStyles_unstable: CustomStyleHook;\n useToolbarRadioButtonStyles_unstable: CustomStyleHook;\n useToolbarGroupStyles_unstable: CustomStyleHook;\n useToolbarToggleButtonStyles_unstable: CustomStyleHook;\n useToolbarDividerStyles_unstable: CustomStyleHook;\n useToolbarStyles_unstable: CustomStyleHook;\n useTableCellStyles_unstable: CustomStyleHook;\n useTableRowStyles_unstable: CustomStyleHook;\n useTableBodyStyles_unstable: CustomStyleHook;\n useTableStyles_unstable: CustomStyleHook;\n useTableHeaderStyles_unstable: CustomStyleHook;\n useTableHeaderCellStyles_unstable: CustomStyleHook;\n useTableResizeHandleStyles_unstable: CustomStyleHook;\n useTableSelectionCellStyles_unstable: CustomStyleHook;\n useTableCellActionsStyles_unstable: CustomStyleHook;\n useTableCellLayoutStyles_unstable: CustomStyleHook;\n useDataGridCellStyles_unstable: CustomStyleHook;\n useDataGridRowStyles_unstable: CustomStyleHook;\n useDataGridBodyStyles_unstable: CustomStyleHook;\n useDataGridStyles_unstable: CustomStyleHook;\n useDataGridHeaderStyles_unstable: CustomStyleHook;\n useDataGridHeaderCellStyles_unstable: CustomStyleHook;\n useDataGridSelectionCellStyles_unstable: CustomStyleHook;\n};\n\n/**\n * @internal\n */\nexport const CustomStyleHooksContext = React.createContext<CustomStyleHooksContextValue | undefined>(undefined);\n\nconst noop = () => {};\nconst customStyleHooksContextDefaultValue: CustomStyleHooksContextValue = {\n useAccordionHeaderStyles_unstable: noop,\n useAccordionItemStyles_unstable: noop,\n useAccordionPanelStyles_unstable: noop,\n useAccordionStyles_unstable: noop,\n useAvatarStyles_unstable: noop,\n useAvatarGroupStyles_unstable: noop,\n useAvatarGroupItemStyles_unstable: noop,\n useAvatarGroupPopoverStyles_unstable: noop,\n useBadgeStyles_unstable: noop,\n useCounterBadgeStyles_unstable: noop,\n usePresenceBadgeStyles_unstable: noop,\n useButtonStyles_unstable: noop,\n useCompoundButtonStyles_unstable: noop,\n useMenuButtonStyles_unstable: noop,\n useSplitButtonStyles_unstable: noop,\n useToggleButtonStyles_unstable: noop,\n useCheckboxStyles_unstable: noop,\n useComboboxStyles_unstable: noop,\n useDropdownStyles_unstable: noop,\n useListboxStyles_unstable: noop,\n useOptionStyles_unstable: noop,\n useOptionGroupStyles_unstable: noop,\n useDividerStyles_unstable: noop,\n useInputStyles_unstable: noop,\n useImageStyles_unstable: noop,\n useLabelStyles_unstable: noop,\n useLinkStyles_unstable: noop,\n useMenuDividerStyles_unstable: noop,\n useMenuGroupHeaderStyles_unstable: noop,\n useMenuGroupStyles_unstable: noop,\n useMenuItemCheckboxStyles_unstable: noop,\n useMenuItemRadioStyles_unstable: noop,\n useMenuItemStyles_unstable: noop,\n useMenuListStyles_unstable: noop,\n useMenuPopoverStyles_unstable: noop,\n useMenuSplitGroupStyles_unstable: noop,\n usePersonaStyles_unstable: noop,\n usePopoverSurfaceStyles_unstable: noop,\n useRadioGroupStyles_unstable: noop,\n useRadioStyles_unstable: noop,\n useSelectStyles_unstable: noop,\n useSliderStyles_unstable: noop,\n useSpinButtonStyles_unstable: noop,\n useSpinnerStyles_unstable: noop,\n useSwitchStyles_unstable: noop,\n useTabStyles_unstable: noop,\n useTabListStyles_unstable: noop,\n useTextStyles_unstable: noop,\n useTextareaStyles_unstable: noop,\n useTooltipStyles_unstable: noop,\n useDialogTitleStyles_unstable: noop,\n useDialogBodyStyles_unstable: noop,\n useDialogActionsStyles_unstable: noop,\n useDialogSurfaceStyles_unstable: noop,\n useDialogContentStyles_unstable: noop,\n useProgressBarStyles_unstable: noop,\n useToolbarButtonStyles_unstable: noop,\n useToolbarRadioButtonStyles_unstable: noop,\n useToolbarGroupStyles_unstable: noop,\n useToolbarToggleButtonStyles_unstable: noop,\n useToolbarDividerStyles_unstable: noop,\n useToolbarStyles_unstable: noop,\n useTableCellStyles_unstable: noop,\n useTableRowStyles_unstable: noop,\n useTableBodyStyles_unstable: noop,\n useTableStyles_unstable: noop,\n useTableHeaderStyles_unstable: noop,\n useTableHeaderCellStyles_unstable: noop,\n useTableResizeHandleStyles_unstable: noop,\n useTableSelectionCellStyles_unstable: noop,\n useTableCellActionsStyles_unstable: noop,\n useTableCellLayoutStyles_unstable: noop,\n useDataGridCellStyles_unstable: noop,\n useDataGridRowStyles_unstable: noop,\n useDataGridBodyStyles_unstable: noop,\n useDataGridStyles_unstable: noop,\n useDataGridHeaderStyles_unstable: noop,\n useDataGridHeaderCellStyles_unstable: noop,\n useDataGridSelectionCellStyles_unstable: noop,\n};\n\n/**\n * @internal\n */\nexport const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;\n\nexport function useCustomStyleHooks(): CustomStyleHooksContextValue {\n return React.useContext(CustomStyleHooksContext) ?? customStyleHooksContextDefaultValue;\n}\n"],"mappings":"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"}
|
1
|
+
{"version":3,"names":["React","CustomStyleHooksContext","createContext","undefined","noop","CustomStyleHooksProvider","Provider","useCustomStyleHook","hook","_React_useContext","_React_useContext_hook","useContext"],"sources":["../../src/CustomStyleHooksContext/CustomStyleHooksContext.ts"],"sourcesContent":["/* eslint-disable */\n\nimport * as React from 'react';\n\ntype CustomStyleHook = (state: unknown) => void;\n\n// The list of hooks is built from the exports from react-components/src/index\nexport type CustomStyleHooksContextValue = Partial<{\n useAccordionHeaderStyles_unstable: CustomStyleHook;\n useAccordionItemStyles_unstable: CustomStyleHook;\n useAccordionPanelStyles_unstable: CustomStyleHook;\n useAccordionStyles_unstable: CustomStyleHook;\n useAvatarStyles_unstable: CustomStyleHook;\n useAvatarGroupStyles_unstable: CustomStyleHook;\n useAvatarGroupItemStyles_unstable: CustomStyleHook;\n useAvatarGroupPopoverStyles_unstable: CustomStyleHook;\n useBadgeStyles_unstable: CustomStyleHook;\n useCounterBadgeStyles_unstable: CustomStyleHook;\n useCardHeaderStyles_unstable: CustomStyleHook;\n useCardStyles_unstable: CustomStyleHook;\n useCardFooterStyles_unstable: CustomStyleHook;\n useCardPreviewStyles_unstable: CustomStyleHook;\n usePresenceBadgeStyles_unstable: CustomStyleHook;\n useButtonStyles_unstable: CustomStyleHook;\n useCompoundButtonStyles_unstable: CustomStyleHook;\n useMenuButtonStyles_unstable: CustomStyleHook;\n useSplitButtonStyles_unstable: CustomStyleHook;\n useToggleButtonStyles_unstable: CustomStyleHook;\n useCheckboxStyles_unstable: CustomStyleHook;\n useComboboxStyles_unstable: CustomStyleHook;\n useDropdownStyles_unstable: CustomStyleHook;\n useListboxStyles_unstable: CustomStyleHook;\n useOptionStyles_unstable: CustomStyleHook;\n useOptionGroupStyles_unstable: CustomStyleHook;\n useDividerStyles_unstable: CustomStyleHook;\n useInputStyles_unstable: CustomStyleHook;\n useImageStyles_unstable: CustomStyleHook;\n useLabelStyles_unstable: CustomStyleHook;\n useLinkStyles_unstable: CustomStyleHook;\n useMenuDividerStyles_unstable: CustomStyleHook;\n useMenuGroupHeaderStyles_unstable: CustomStyleHook;\n useMenuGroupStyles_unstable: CustomStyleHook;\n useMenuItemCheckboxStyles_unstable: CustomStyleHook;\n useMenuItemRadioStyles_unstable: CustomStyleHook;\n useMenuItemStyles_unstable: CustomStyleHook;\n useMenuListStyles_unstable: CustomStyleHook;\n useMenuPopoverStyles_unstable: CustomStyleHook;\n useMenuSplitGroupStyles_unstable: CustomStyleHook;\n usePersonaStyles_unstable: CustomStyleHook;\n usePopoverSurfaceStyles_unstable: CustomStyleHook;\n useRadioGroupStyles_unstable: CustomStyleHook;\n useRadioStyles_unstable: CustomStyleHook;\n useSelectStyles_unstable: CustomStyleHook;\n useSliderStyles_unstable: CustomStyleHook;\n useSpinButtonStyles_unstable: CustomStyleHook;\n useSpinnerStyles_unstable: CustomStyleHook;\n useSwitchStyles_unstable: CustomStyleHook;\n useTabStyles_unstable: CustomStyleHook;\n useTabListStyles_unstable: CustomStyleHook;\n useTextStyles_unstable: CustomStyleHook;\n useTextareaStyles_unstable: CustomStyleHook;\n useTooltipStyles_unstable: CustomStyleHook;\n useDialogTitleStyles_unstable: CustomStyleHook;\n useDialogBodyStyles_unstable: CustomStyleHook;\n useDialogActionsStyles_unstable: CustomStyleHook;\n useDialogSurfaceStyles_unstable: CustomStyleHook;\n useDialogContentStyles_unstable: CustomStyleHook;\n useProgressBarStyles_unstable: CustomStyleHook;\n useToolbarButtonStyles_unstable: CustomStyleHook;\n useToolbarRadioButtonStyles_unstable: CustomStyleHook;\n useToolbarGroupStyles_unstable: CustomStyleHook;\n useToolbarToggleButtonStyles_unstable: CustomStyleHook;\n useToolbarDividerStyles_unstable: CustomStyleHook;\n useToolbarStyles_unstable: CustomStyleHook;\n useTableCellStyles_unstable: CustomStyleHook;\n useTableRowStyles_unstable: CustomStyleHook;\n useTableBodyStyles_unstable: CustomStyleHook;\n useTableStyles_unstable: CustomStyleHook;\n useTableHeaderStyles_unstable: CustomStyleHook;\n useTableHeaderCellStyles_unstable: CustomStyleHook;\n useTableResizeHandleStyles_unstable: CustomStyleHook;\n useTableSelectionCellStyles_unstable: CustomStyleHook;\n useTableCellActionsStyles_unstable: CustomStyleHook;\n useTableCellLayoutStyles_unstable: CustomStyleHook;\n useDataGridCellStyles_unstable: CustomStyleHook;\n useDataGridRowStyles_unstable: CustomStyleHook;\n useDataGridBodyStyles_unstable: CustomStyleHook;\n useDataGridStyles_unstable: CustomStyleHook;\n useDataGridHeaderStyles_unstable: CustomStyleHook;\n useDataGridHeaderCellStyles_unstable: CustomStyleHook;\n useDataGridSelectionCellStyles_unstable: CustomStyleHook;\n useDrawerStyles_unstable: CustomStyleHook;\n useDrawerBodyStyles_unstable: CustomStyleHook;\n}>;\n\n/**\n * @internal\n */\nexport const CustomStyleHooksContext = React.createContext<CustomStyleHooksContextValue | undefined>(undefined);\n\nconst noop = () => {};\n\n/**\n * @internal\n */\nexport const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;\n\n/**\n * Gets a custom style hook\n * @param hook - One of the hook properties in CustomStyleHooksContextValue\n * @returns The corresponding hook when defined, otherwise a no-op function.\n */\nexport const useCustomStyleHook = (hook: keyof CustomStyleHooksContextValue): CustomStyleHook => {\n return React.useContext(CustomStyleHooksContext)?.[hook] ?? noop;\n};\n"],"mappings":"AAAA,oBAEA,YAAYA,KAAA,MAAW;AA6FvB;;;AAGA,OAAO,MAAMC,uBAAA,gBAA0BD,KAAA,CAAME,aAAa,CAA2CC,SAAA;AAErG,MAAMC,IAAA,GAAOA,CAAA,KAAM,CAAC;AAEpB;;;AAGA,OAAO,MAAMC,wBAAA,GAA2BJ,uBAAA,CAAwBK,QAAQ;AAExE;;;;;AAKA,OAAO,MAAMC,kBAAA,GAAsBC,IAAA,IAA8D;MACxFC,iBAAA;MAAAC,sBAAA;EAAP,OAAO,CAAAA,sBAAA,IAAAD,iBAAA,GAAAT,KAAA,CAAMW,UAAU,CAACV,uBAAA,eAAjBQ,iBAAA,uBAAAA,iBAA2C,CAACD,IAAA,CAAK,cAAjDE,sBAAA,cAAAA,sBAAA,GAAqDN,IAAI;AAClE"}
|
package/lib/index.js
CHANGED
@@ -3,5 +3,5 @@ export { ThemeClassNameProvider as ThemeClassNameProvider_unstable, useThemeClas
|
|
3
3
|
export { TooltipVisibilityProvider as TooltipVisibilityProvider_unstable, useTooltipVisibility as useTooltipVisibility_unstable } from './TooltipVisibilityContext';
|
4
4
|
export { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';
|
5
5
|
export { OverridesProvider as OverridesProvider_unstable, useOverrides as useOverrides_unstable } from './OverridesContext';
|
6
|
-
export { CustomStyleHooksProvider as CustomStyleHooksProvider_unstable,
|
6
|
+
export { CustomStyleHooksContext as CustomStyleHooksContext_unstable, CustomStyleHooksProvider as CustomStyleHooksProvider_unstable, useCustomStyleHook as useCustomStyleHook_unstable } from './CustomStyleHooksContext';
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["ThemeContext","ThemeContext_unstable","ThemeProvider","ThemeProvider_unstable","ThemeClassNameProvider","ThemeClassNameProvider_unstable","useThemeClassName","useThemeClassName_unstable","TooltipVisibilityProvider","TooltipVisibilityProvider_unstable","useTooltipVisibility","useTooltipVisibility_unstable","Provider","Provider_unstable","useFluent","useFluent_unstable","OverridesProvider","OverridesProvider_unstable","useOverrides","useOverrides_unstable","CustomStyleHooksProvider","CustomStyleHooksProvider_unstable","
|
1
|
+
{"version":3,"names":["ThemeContext","ThemeContext_unstable","ThemeProvider","ThemeProvider_unstable","ThemeClassNameProvider","ThemeClassNameProvider_unstable","useThemeClassName","useThemeClassName_unstable","TooltipVisibilityProvider","TooltipVisibilityProvider_unstable","useTooltipVisibility","useTooltipVisibility_unstable","Provider","Provider_unstable","useFluent","useFluent_unstable","OverridesProvider","OverridesProvider_unstable","useOverrides","useOverrides_unstable","CustomStyleHooksContext","CustomStyleHooksContext_unstable","CustomStyleHooksProvider","CustomStyleHooksProvider_unstable","useCustomStyleHook","useCustomStyleHook_unstable"],"sources":["../src/index.ts"],"sourcesContent":["export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from './ThemeContext';\nexport type { ThemeContextValue as ThemeContextValue_unstable } from './ThemeContext';\n\nexport {\n ThemeClassNameProvider as ThemeClassNameProvider_unstable,\n useThemeClassName as useThemeClassName_unstable,\n} from './ThemeClassNameContext';\nexport type { ThemeClassNameContextValue as ThemeClassNameContextValue_unstable } from './ThemeClassNameContext';\n\nexport {\n TooltipVisibilityProvider as TooltipVisibilityProvider_unstable,\n useTooltipVisibility as useTooltipVisibility_unstable,\n} from './TooltipVisibilityContext';\nexport type { TooltipVisibilityContextValue as TooltipVisibilityContextValue_unstable } from './TooltipVisibilityContext';\n\nexport { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';\nexport type { ProviderContextValue as ProviderContextValue_unstable } from './ProviderContext';\n\nexport {\n OverridesProvider as OverridesProvider_unstable,\n useOverrides as useOverrides_unstable,\n} from './OverridesContext';\nexport type { OverridesContextValue as OverridesContextValue_unstable } from './OverridesContext';\n\nexport {\n CustomStyleHooksContext as CustomStyleHooksContext_unstable,\n CustomStyleHooksProvider as CustomStyleHooksProvider_unstable,\n useCustomStyleHook as useCustomStyleHook_unstable,\n} from './CustomStyleHooksContext';\nexport type { CustomStyleHooksContextValue as CustomStyleHooksContextValue_unstable } from './CustomStyleHooksContext';\n"],"mappings":"AAAA,SAASA,YAAA,IAAgBC,qBAAqB,EAAEC,aAAA,IAAiBC,sBAAsB,QAAQ;AAG/F,SACEC,sBAAA,IAA0BC,+BAA+B,EACzDC,iBAAA,IAAqBC,0BAA0B,QAC1C;AAGP,SACEC,yBAAA,IAA6BC,kCAAkC,EAC/DC,oBAAA,IAAwBC,6BAA6B,QAChD;AAGP,SAASC,QAAA,IAAYC,iBAAiB,EAAEC,SAAA,IAAaC,kBAAkB,QAAQ;AAG/E,SACEC,iBAAA,IAAqBC,0BAA0B,EAC/CC,YAAA,IAAgBC,qBAAqB,QAChC;AAGP,SACEC,uBAAA,IAA2BC,gCAAgC,EAC3DC,wBAAA,IAA4BC,iCAAiC,EAC7DC,kBAAA,IAAsBC,2BAA2B,QAC5C"}
|
@@ -11,97 +11,17 @@ function _export(target, all) {
|
|
11
11
|
_export(exports, {
|
12
12
|
CustomStyleHooksContext: ()=>CustomStyleHooksContext,
|
13
13
|
CustomStyleHooksProvider: ()=>CustomStyleHooksProvider,
|
14
|
-
|
14
|
+
useCustomStyleHook: ()=>useCustomStyleHook
|
15
15
|
});
|
16
16
|
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
17
17
|
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
18
18
|
const CustomStyleHooksContext = /*#__PURE__*/ _react.createContext(undefined);
|
19
19
|
const noop = ()=>{};
|
20
|
-
const customStyleHooksContextDefaultValue = {
|
21
|
-
useAccordionHeaderStyles_unstable: noop,
|
22
|
-
useAccordionItemStyles_unstable: noop,
|
23
|
-
useAccordionPanelStyles_unstable: noop,
|
24
|
-
useAccordionStyles_unstable: noop,
|
25
|
-
useAvatarStyles_unstable: noop,
|
26
|
-
useAvatarGroupStyles_unstable: noop,
|
27
|
-
useAvatarGroupItemStyles_unstable: noop,
|
28
|
-
useAvatarGroupPopoverStyles_unstable: noop,
|
29
|
-
useBadgeStyles_unstable: noop,
|
30
|
-
useCounterBadgeStyles_unstable: noop,
|
31
|
-
usePresenceBadgeStyles_unstable: noop,
|
32
|
-
useButtonStyles_unstable: noop,
|
33
|
-
useCompoundButtonStyles_unstable: noop,
|
34
|
-
useMenuButtonStyles_unstable: noop,
|
35
|
-
useSplitButtonStyles_unstable: noop,
|
36
|
-
useToggleButtonStyles_unstable: noop,
|
37
|
-
useCheckboxStyles_unstable: noop,
|
38
|
-
useComboboxStyles_unstable: noop,
|
39
|
-
useDropdownStyles_unstable: noop,
|
40
|
-
useListboxStyles_unstable: noop,
|
41
|
-
useOptionStyles_unstable: noop,
|
42
|
-
useOptionGroupStyles_unstable: noop,
|
43
|
-
useDividerStyles_unstable: noop,
|
44
|
-
useInputStyles_unstable: noop,
|
45
|
-
useImageStyles_unstable: noop,
|
46
|
-
useLabelStyles_unstable: noop,
|
47
|
-
useLinkStyles_unstable: noop,
|
48
|
-
useMenuDividerStyles_unstable: noop,
|
49
|
-
useMenuGroupHeaderStyles_unstable: noop,
|
50
|
-
useMenuGroupStyles_unstable: noop,
|
51
|
-
useMenuItemCheckboxStyles_unstable: noop,
|
52
|
-
useMenuItemRadioStyles_unstable: noop,
|
53
|
-
useMenuItemStyles_unstable: noop,
|
54
|
-
useMenuListStyles_unstable: noop,
|
55
|
-
useMenuPopoverStyles_unstable: noop,
|
56
|
-
useMenuSplitGroupStyles_unstable: noop,
|
57
|
-
usePersonaStyles_unstable: noop,
|
58
|
-
usePopoverSurfaceStyles_unstable: noop,
|
59
|
-
useRadioGroupStyles_unstable: noop,
|
60
|
-
useRadioStyles_unstable: noop,
|
61
|
-
useSelectStyles_unstable: noop,
|
62
|
-
useSliderStyles_unstable: noop,
|
63
|
-
useSpinButtonStyles_unstable: noop,
|
64
|
-
useSpinnerStyles_unstable: noop,
|
65
|
-
useSwitchStyles_unstable: noop,
|
66
|
-
useTabStyles_unstable: noop,
|
67
|
-
useTabListStyles_unstable: noop,
|
68
|
-
useTextStyles_unstable: noop,
|
69
|
-
useTextareaStyles_unstable: noop,
|
70
|
-
useTooltipStyles_unstable: noop,
|
71
|
-
useDialogTitleStyles_unstable: noop,
|
72
|
-
useDialogBodyStyles_unstable: noop,
|
73
|
-
useDialogActionsStyles_unstable: noop,
|
74
|
-
useDialogSurfaceStyles_unstable: noop,
|
75
|
-
useDialogContentStyles_unstable: noop,
|
76
|
-
useProgressBarStyles_unstable: noop,
|
77
|
-
useToolbarButtonStyles_unstable: noop,
|
78
|
-
useToolbarRadioButtonStyles_unstable: noop,
|
79
|
-
useToolbarGroupStyles_unstable: noop,
|
80
|
-
useToolbarToggleButtonStyles_unstable: noop,
|
81
|
-
useToolbarDividerStyles_unstable: noop,
|
82
|
-
useToolbarStyles_unstable: noop,
|
83
|
-
useTableCellStyles_unstable: noop,
|
84
|
-
useTableRowStyles_unstable: noop,
|
85
|
-
useTableBodyStyles_unstable: noop,
|
86
|
-
useTableStyles_unstable: noop,
|
87
|
-
useTableHeaderStyles_unstable: noop,
|
88
|
-
useTableHeaderCellStyles_unstable: noop,
|
89
|
-
useTableResizeHandleStyles_unstable: noop,
|
90
|
-
useTableSelectionCellStyles_unstable: noop,
|
91
|
-
useTableCellActionsStyles_unstable: noop,
|
92
|
-
useTableCellLayoutStyles_unstable: noop,
|
93
|
-
useDataGridCellStyles_unstable: noop,
|
94
|
-
useDataGridRowStyles_unstable: noop,
|
95
|
-
useDataGridBodyStyles_unstable: noop,
|
96
|
-
useDataGridStyles_unstable: noop,
|
97
|
-
useDataGridHeaderStyles_unstable: noop,
|
98
|
-
useDataGridHeaderCellStyles_unstable: noop,
|
99
|
-
useDataGridSelectionCellStyles_unstable: noop
|
100
|
-
};
|
101
20
|
const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
|
102
|
-
|
21
|
+
const useCustomStyleHook = (hook)=>{
|
103
22
|
var _React_useContext;
|
104
|
-
|
105
|
-
|
23
|
+
var _React_useContext_hook;
|
24
|
+
return (_React_useContext_hook = (_React_useContext = _react.useContext(CustomStyleHooksContext)) === null || _React_useContext === void 0 ? void 0 : _React_useContext[hook]) !== null && _React_useContext_hook !== void 0 ? _React_useContext_hook : noop;
|
25
|
+
}; //# sourceMappingURL=CustomStyleHooksContext.js.map
|
106
26
|
|
107
27
|
//# sourceMappingURL=CustomStyleHooksContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../lib/CustomStyleHooksContext/CustomStyleHooksContext.js"],"sourcesContent":["/* eslint-disable */import * as React from 'react';\n/**\n * @internal\n */\nexport const CustomStyleHooksContext = /*#__PURE__*/React.createContext(undefined);\nconst noop = () => {};\
|
1
|
+
{"version":3,"sources":["../../lib/CustomStyleHooksContext/CustomStyleHooksContext.js"],"sourcesContent":["/* eslint-disable */import * as React from 'react';\n/**\n * @internal\n */\nexport const CustomStyleHooksContext = /*#__PURE__*/React.createContext(undefined);\nconst noop = () => {};\n/**\n * @internal\n */\nexport const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;\n/**\n * Gets a custom style hook\n * @param hook - One of the hook properties in CustomStyleHooksContextValue\n * @returns The corresponding hook when defined, otherwise a no-op function.\n */\nexport const useCustomStyleHook = hook => {\n var _React_useContext;\n var _React_useContext_hook;\n return (_React_useContext_hook = (_React_useContext = React.useContext(CustomStyleHooksContext)) === null || _React_useContext === void 0 ? void 0 : _React_useContext[hook]) !== null && _React_useContext_hook !== void 0 ? _React_useContext_hook : noop;\n};\n//# sourceMappingURL=CustomStyleHooksContext.js.map"],"names":["CustomStyleHooksContext","CustomStyleHooksProvider","useCustomStyleHook","React","createContext","undefined","noop","Provider","hook","_React_useContext","_React_useContext_hook","useContext"],"mappings":"AAAA,kBAAkB;;;;;;;;;;;IAILA,uBAAuB,MAAvBA;IAKAC,wBAAwB,MAAxBA;IAMAC,kBAAkB,MAAlBA;;;6DAf8B;AAIpC,MAAMF,0BAA0B,WAAW,GAAEG,OAAMC,aAAa,CAACC;AACxE,MAAMC,OAAO,IAAM,CAAC;AAIb,MAAML,2BAA2BD,wBAAwBO,QAAQ;AAMjE,MAAML,qBAAqBM,CAAAA,OAAQ;IACxC,IAAIC;IACJ,IAAIC;IACJ,OAAO,AAACA,CAAAA,yBAAyB,AAACD,CAAAA,oBAAoBN,OAAMQ,UAAU,CAACX,wBAAuB,MAAO,IAAI,IAAIS,sBAAsB,KAAK,IAAI,KAAK,IAAIA,iBAAiB,CAACD,KAAK,AAAD,MAAO,IAAI,IAAIE,2BAA2B,KAAK,IAAIA,yBAAyBJ,IAAI;AAC7P,GACA,mDAAmD"}
|
package/lib-commonjs/index.js
CHANGED
@@ -19,8 +19,9 @@ _export(exports, {
|
|
19
19
|
useFluent_unstable: ()=>_providerContext.useFluent,
|
20
20
|
OverridesProvider_unstable: ()=>_overridesContext.OverridesProvider,
|
21
21
|
useOverrides_unstable: ()=>_overridesContext.useOverrides,
|
22
|
+
CustomStyleHooksContext_unstable: ()=>_customStyleHooksContext.CustomStyleHooksContext,
|
22
23
|
CustomStyleHooksProvider_unstable: ()=>_customStyleHooksContext.CustomStyleHooksProvider,
|
23
|
-
|
24
|
+
useCustomStyleHook_unstable: ()=>_customStyleHooksContext.useCustomStyleHook
|
24
25
|
});
|
25
26
|
const _themeContext = require("./ThemeContext");
|
26
27
|
const _themeClassNameContext = require("./ThemeClassNameContext");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../lib/index.js"],"sourcesContent":["export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from './ThemeContext';\nexport { ThemeClassNameProvider as ThemeClassNameProvider_unstable, useThemeClassName as useThemeClassName_unstable } from './ThemeClassNameContext';\nexport { TooltipVisibilityProvider as TooltipVisibilityProvider_unstable, useTooltipVisibility as useTooltipVisibility_unstable } from './TooltipVisibilityContext';\nexport { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';\nexport { OverridesProvider as OverridesProvider_unstable, useOverrides as useOverrides_unstable } from './OverridesContext';\nexport { CustomStyleHooksProvider as CustomStyleHooksProvider_unstable,
|
1
|
+
{"version":3,"sources":["../lib/index.js"],"sourcesContent":["export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from './ThemeContext';\nexport { ThemeClassNameProvider as ThemeClassNameProvider_unstable, useThemeClassName as useThemeClassName_unstable } from './ThemeClassNameContext';\nexport { TooltipVisibilityProvider as TooltipVisibilityProvider_unstable, useTooltipVisibility as useTooltipVisibility_unstable } from './TooltipVisibilityContext';\nexport { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';\nexport { OverridesProvider as OverridesProvider_unstable, useOverrides as useOverrides_unstable } from './OverridesContext';\nexport { CustomStyleHooksContext as CustomStyleHooksContext_unstable, CustomStyleHooksProvider as CustomStyleHooksProvider_unstable, useCustomStyleHook as useCustomStyleHook_unstable } from './CustomStyleHooksContext';\n//# sourceMappingURL=index.js.map"],"names":["ThemeContext_unstable","ThemeContext","ThemeProvider_unstable","ThemeProvider","ThemeClassNameProvider_unstable","ThemeClassNameProvider","useThemeClassName_unstable","useThemeClassName","TooltipVisibilityProvider_unstable","TooltipVisibilityProvider","useTooltipVisibility_unstable","useTooltipVisibility","Provider_unstable","Provider","useFluent_unstable","useFluent","OverridesProvider_unstable","OverridesProvider","useOverrides_unstable","useOverrides","CustomStyleHooksContext_unstable","CustomStyleHooksContext","CustomStyleHooksProvider_unstable","CustomStyleHooksProvider","useCustomStyleHook_unstable","useCustomStyleHook"],"mappings":";;;;;;;;;;;IAAyBA,qBAAqB,MAArCC,0BAAY;IAA4CC,sBAAsB,MAAvCC,2BAAa;IAC1BC,+BAA+B,MAAzDC,6CAAsB;IAA0DC,0BAA0B,MAA/CC,wCAAiB;IAC/CC,kCAAkC,MAA/DC,mDAAyB;IAAgEC,6BAA6B,MAArDC,8CAAoB;IACzEC,iBAAiB,MAA7BC,yBAAQ;IAAoCC,kBAAkB,MAA/BC,0BAAS;IACnBC,0BAA0B,MAA/CC,mCAAiB;IAAgDC,qBAAqB,MAArCC,8BAAY;IAClCC,gCAAgC,MAA3DC,gDAAuB;IAAkEC,iCAAiC,MAA7DC,iDAAwB;IAA6DC,2BAA2B,MAAjDC,2CAAkB;;8BALxD;uCAC4B;0CACY;iCACxD;kCACwB;yCACuF;CAC9L,iCAAiC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.4.0",
|
4
4
|
"description": "Fluent UI React Contexts shared by multiple components.",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"@fluentui/scripts-tasks": "*"
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
|
-
"@fluentui/react-theme": "^9.1.
|
30
|
+
"@fluentui/react-theme": "^9.1.8",
|
31
31
|
"@swc/helpers": "^0.4.14"
|
32
32
|
},
|
33
33
|
"peerDependencies": {
|
package/.swcrc
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "https://json.schemastore.org/swcrc",
|
3
|
-
"exclude": [
|
4
|
-
"/testing",
|
5
|
-
"/**/*.cy.ts",
|
6
|
-
"/**/*.cy.tsx",
|
7
|
-
"/**/*.spec.ts",
|
8
|
-
"/**/*.spec.tsx",
|
9
|
-
"/**/*.test.ts",
|
10
|
-
"/**/*.test.tsx"
|
11
|
-
],
|
12
|
-
"jsc": {
|
13
|
-
"parser": {
|
14
|
-
"syntax": "typescript",
|
15
|
-
"tsx": true,
|
16
|
-
"decorators": false,
|
17
|
-
"dynamicImport": false
|
18
|
-
},
|
19
|
-
"externalHelpers": true,
|
20
|
-
"transform": {
|
21
|
-
"react": {
|
22
|
-
"runtime": "classic",
|
23
|
-
"useSpread": true
|
24
|
-
}
|
25
|
-
},
|
26
|
-
"target": "es2019"
|
27
|
-
},
|
28
|
-
"minify": false,
|
29
|
-
"sourceMaps": true
|
30
|
-
}
|