@fluentui/react-shared-contexts 9.3.3 → 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 CHANGED
@@ -2,16 +2,44 @@
2
2
  "name": "@fluentui/react-shared-contexts",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 23 Mar 2023 12:28:44 GMT",
6
- "tag": "@fluentui/react-shared-contexts_v9.3.3",
7
- "version": "9.3.3",
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
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
+ ],
9
37
  "patch": [
10
38
  {
11
- "author": "matejera@microsoft.com",
39
+ "author": "olfedias@microsoft.com",
12
40
  "package": "@fluentui/react-shared-contexts",
13
- "commit": "925c9e74cc7c0ad2ad43760e39becd4f704d67cd",
14
- "comment": "Adding card related custom style hooks to the shared contexts package."
41
+ "commit": "c28decb23d191a0daaaf6d5d1832429715102129",
42
+ "comment": "chore: exclude .swcrc from being published"
15
43
  }
16
44
  ]
17
45
  }
package/CHANGELOG.md CHANGED
@@ -1,17 +1,23 @@
1
1
  # Change Log - @fluentui/react-shared-contexts
2
2
 
3
- This log was last generated on Thu, 23 Mar 2023 12:28:44 GMT and should not be manually modified.
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.3.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.3.3)
7
+ ## [9.4.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.4.0)
8
8
 
9
- Thu, 23 Mar 2023 12:28:44 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.3.2..@fluentui/react-shared-contexts_v9.3.3)
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)
11
17
 
12
18
  ### Patches
13
19
 
14
- - Adding card related custom style hooks to the shared contexts package. ([PR #27295](https://github.com/microsoft/fluentui/pull/27295) by matejera@microsoft.com)
20
+ - chore: exclude .swcrc from being published ([PR #27740](https://github.com/microsoft/fluentui/pull/27740) by olfedias@microsoft.com)
15
21
 
16
22
  ## [9.3.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.3.2)
17
23
 
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<CustomStyleHooksContextValue_unstable | undefined>;
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;
@@ -92,12 +178,100 @@ export declare type CustomStyleHooksContextValue_unstable = {
92
178
  useDataGridHeaderStyles_unstable: CustomStyleHook;
93
179
  useDataGridHeaderCellStyles_unstable: CustomStyleHook;
94
180
  useDataGridSelectionCellStyles_unstable: CustomStyleHook;
95
- };
181
+ useDrawerStyles_unstable: CustomStyleHook;
182
+ useDrawerBodyStyles_unstable: CustomStyleHook;
183
+ }>;
96
184
 
97
185
  /**
98
186
  * @internal
99
187
  */
100
- export declare const CustomStyleHooksProvider_unstable: React_2.Provider<CustomStyleHooksContextValue_unstable | undefined>;
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>;
101
275
 
102
276
  /**
103
277
  * @internal
@@ -157,7 +331,12 @@ export declare type TooltipVisibilityContextValue_unstable = {
157
331
  */
158
332
  export declare const TooltipVisibilityProvider_unstable: React_2.Provider<TooltipVisibilityContextValue_unstable>;
159
333
 
160
- export declare function useCustomStyleHooks_unstable(): CustomStyleHooksContextValue_unstable;
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;
161
340
 
162
341
  export declare function useFluent_unstable(): ProviderContextValue_unstable;
163
342
 
@@ -4,97 +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
- useCardHeaderStyles_unstable: noop,
19
- useCardStyles_unstable: noop,
20
- useCardFooterStyles_unstable: noop,
21
- useCardPreviewStyles_unstable: noop,
22
- usePresenceBadgeStyles_unstable: noop,
23
- useButtonStyles_unstable: noop,
24
- useCompoundButtonStyles_unstable: noop,
25
- useMenuButtonStyles_unstable: noop,
26
- useSplitButtonStyles_unstable: noop,
27
- useToggleButtonStyles_unstable: noop,
28
- useCheckboxStyles_unstable: noop,
29
- useComboboxStyles_unstable: noop,
30
- useDropdownStyles_unstable: noop,
31
- useListboxStyles_unstable: noop,
32
- useOptionStyles_unstable: noop,
33
- useOptionGroupStyles_unstable: noop,
34
- useDividerStyles_unstable: noop,
35
- useInputStyles_unstable: noop,
36
- useImageStyles_unstable: noop,
37
- useLabelStyles_unstable: noop,
38
- useLinkStyles_unstable: noop,
39
- useMenuDividerStyles_unstable: noop,
40
- useMenuGroupHeaderStyles_unstable: noop,
41
- useMenuGroupStyles_unstable: noop,
42
- useMenuItemCheckboxStyles_unstable: noop,
43
- useMenuItemRadioStyles_unstable: noop,
44
- useMenuItemStyles_unstable: noop,
45
- useMenuListStyles_unstable: noop,
46
- useMenuPopoverStyles_unstable: noop,
47
- useMenuSplitGroupStyles_unstable: noop,
48
- usePersonaStyles_unstable: noop,
49
- usePopoverSurfaceStyles_unstable: noop,
50
- useRadioGroupStyles_unstable: noop,
51
- useRadioStyles_unstable: noop,
52
- useSelectStyles_unstable: noop,
53
- useSliderStyles_unstable: noop,
54
- useSpinButtonStyles_unstable: noop,
55
- useSpinnerStyles_unstable: noop,
56
- useSwitchStyles_unstable: noop,
57
- useTabStyles_unstable: noop,
58
- useTabListStyles_unstable: noop,
59
- useTextStyles_unstable: noop,
60
- useTextareaStyles_unstable: noop,
61
- useTooltipStyles_unstable: noop,
62
- useDialogTitleStyles_unstable: noop,
63
- useDialogBodyStyles_unstable: noop,
64
- useDialogActionsStyles_unstable: noop,
65
- useDialogSurfaceStyles_unstable: noop,
66
- useDialogContentStyles_unstable: noop,
67
- useProgressBarStyles_unstable: noop,
68
- useToolbarButtonStyles_unstable: noop,
69
- useToolbarRadioButtonStyles_unstable: noop,
70
- useToolbarGroupStyles_unstable: noop,
71
- useToolbarToggleButtonStyles_unstable: noop,
72
- useToolbarDividerStyles_unstable: noop,
73
- useToolbarStyles_unstable: noop,
74
- useTableCellStyles_unstable: noop,
75
- useTableRowStyles_unstable: noop,
76
- useTableBodyStyles_unstable: noop,
77
- useTableStyles_unstable: noop,
78
- useTableHeaderStyles_unstable: noop,
79
- useTableHeaderCellStyles_unstable: noop,
80
- useTableResizeHandleStyles_unstable: noop,
81
- useTableSelectionCellStyles_unstable: noop,
82
- useTableCellActionsStyles_unstable: noop,
83
- useTableCellLayoutStyles_unstable: noop,
84
- useDataGridCellStyles_unstable: noop,
85
- useDataGridRowStyles_unstable: noop,
86
- useDataGridBodyStyles_unstable: noop,
87
- useDataGridStyles_unstable: noop,
88
- useDataGridHeaderStyles_unstable: noop,
89
- useDataGridHeaderCellStyles_unstable: noop,
90
- useDataGridSelectionCellStyles_unstable: noop
91
- };
92
7
  /**
93
8
  * @internal
94
9
  */
95
10
  export const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
96
- export function useCustomStyleHooks() {
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 => {
97
17
  var _React_useContext;
98
- return (_React_useContext = React.useContext(CustomStyleHooksContext)) !== null && _React_useContext !== void 0 ? _React_useContext : customStyleHooksContextDefaultValue;
99
- }
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
+ };
100
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","useCardHeaderStyles_unstable","useCardStyles_unstable","useCardFooterStyles_unstable","useCardPreviewStyles_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 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};\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 useCardHeaderStyles_unstable: noop,\n useCardStyles_unstable: noop,\n useCardFooterStyles_unstable: noop,\n useCardPreviewStyles_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":"AAAA,oBAEA,YAAYA,KAAA,MAAW;AA2FvB;;;AAGA,OAAO,MAAMC,uBAAA,gBAA0BD,KAAA,CAAME,aAAa,CAA2CC,SAAA;AAErG,MAAMC,IAAA,GAAOA,CAAA,KAAM,CAAC;AACpB,MAAMC,mCAAA,GAAoE;EACxEC,iCAAA,EAAmCF,IAAA;EACnCG,+BAAA,EAAiCH,IAAA;EACjCI,gCAAA,EAAkCJ,IAAA;EAClCK,2BAAA,EAA6BL,IAAA;EAC7BM,wBAAA,EAA0BN,IAAA;EAC1BO,6BAAA,EAA+BP,IAAA;EAC/BQ,iCAAA,EAAmCR,IAAA;EACnCS,oCAAA,EAAsCT,IAAA;EACtCU,uBAAA,EAAyBV,IAAA;EACzBW,8BAAA,EAAgCX,IAAA;EAChCY,4BAAA,EAA8BZ,IAAA;EAC9Ba,sBAAA,EAAwBb,IAAA;EACxBc,4BAAA,EAA8Bd,IAAA;EAC9Be,6BAAA,EAA+Bf,IAAA;EAC/BgB,+BAAA,EAAiChB,IAAA;EACjCiB,wBAAA,EAA0BjB,IAAA;EAC1BkB,gCAAA,EAAkClB,IAAA;EAClCmB,4BAAA,EAA8BnB,IAAA;EAC9BoB,6BAAA,EAA+BpB,IAAA;EAC/BqB,8BAAA,EAAgCrB,IAAA;EAChCsB,0BAAA,EAA4BtB,IAAA;EAC5BuB,0BAAA,EAA4BvB,IAAA;EAC5BwB,0BAAA,EAA4BxB,IAAA;EAC5ByB,yBAAA,EAA2BzB,IAAA;EAC3B0B,wBAAA,EAA0B1B,IAAA;EAC1B2B,6BAAA,EAA+B3B,IAAA;EAC/B4B,yBAAA,EAA2B5B,IAAA;EAC3B6B,uBAAA,EAAyB7B,IAAA;EACzB8B,uBAAA,EAAyB9B,IAAA;EACzB+B,uBAAA,EAAyB/B,IAAA;EACzBgC,sBAAA,EAAwBhC,IAAA;EACxBiC,6BAAA,EAA+BjC,IAAA;EAC/BkC,iCAAA,EAAmClC,IAAA;EACnCmC,2BAAA,EAA6BnC,IAAA;EAC7BoC,kCAAA,EAAoCpC,IAAA;EACpCqC,+BAAA,EAAiCrC,IAAA;EACjCsC,0BAAA,EAA4BtC,IAAA;EAC5BuC,0BAAA,EAA4BvC,IAAA;EAC5BwC,6BAAA,EAA+BxC,IAAA;EAC/ByC,gCAAA,EAAkCzC,IAAA;EAClC0C,yBAAA,EAA2B1C,IAAA;EAC3B2C,gCAAA,EAAkC3C,IAAA;EAClC4C,4BAAA,EAA8B5C,IAAA;EAC9B6C,uBAAA,EAAyB7C,IAAA;EACzB8C,wBAAA,EAA0B9C,IAAA;EAC1B+C,wBAAA,EAA0B/C,IAAA;EAC1BgD,4BAAA,EAA8BhD,IAAA;EAC9BiD,yBAAA,EAA2BjD,IAAA;EAC3BkD,wBAAA,EAA0BlD,IAAA;EAC1BmD,qBAAA,EAAuBnD,IAAA;EACvBoD,yBAAA,EAA2BpD,IAAA;EAC3BqD,sBAAA,EAAwBrD,IAAA;EACxBsD,0BAAA,EAA4BtD,IAAA;EAC5BuD,yBAAA,EAA2BvD,IAAA;EAC3BwD,6BAAA,EAA+BxD,IAAA;EAC/ByD,4BAAA,EAA8BzD,IAAA;EAC9B0D,+BAAA,EAAiC1D,IAAA;EACjC2D,+BAAA,EAAiC3D,IAAA;EACjC4D,+BAAA,EAAiC5D,IAAA;EACjC6D,6BAAA,EAA+B7D,IAAA;EAC/B8D,+BAAA,EAAiC9D,IAAA;EACjC+D,oCAAA,EAAsC/D,IAAA;EACtCgE,8BAAA,EAAgChE,IAAA;EAChCiE,qCAAA,EAAuCjE,IAAA;EACvCkE,gCAAA,EAAkClE,IAAA;EAClCmE,yBAAA,EAA2BnE,IAAA;EAC3BoE,2BAAA,EAA6BpE,IAAA;EAC7BqE,0BAAA,EAA4BrE,IAAA;EAC5BsE,2BAAA,EAA6BtE,IAAA;EAC7BuE,uBAAA,EAAyBvE,IAAA;EACzBwE,6BAAA,EAA+BxE,IAAA;EAC/ByE,iCAAA,EAAmCzE,IAAA;EACnC0E,mCAAA,EAAqC1E,IAAA;EACrC2E,oCAAA,EAAsC3E,IAAA;EACtC4E,kCAAA,EAAoC5E,IAAA;EACpC6E,iCAAA,EAAmC7E,IAAA;EACnC8E,8BAAA,EAAgC9E,IAAA;EAChC+E,6BAAA,EAA+B/E,IAAA;EAC/BgF,8BAAA,EAAgChF,IAAA;EAChCiF,0BAAA,EAA4BjF,IAAA;EAC5BkF,gCAAA,EAAkClF,IAAA;EAClCmF,oCAAA,EAAsCnF,IAAA;EACtCoF,uCAAA,EAAyCpF;AAC3C;AAEA;;;AAGA,OAAO,MAAMqF,wBAAA,GAA2BxF,uBAAA,CAAwByF,QAAQ;AAExE,OAAO,SAASC,oBAAA,EAAoD;MAC3DC,iBAAA;EAAP,OAAO,CAAAA,iBAAA,GAAA5F,KAAA,CAAM6F,UAAU,CAAC5F,uBAAA,eAAjB2F,iBAAA,cAAAA,iBAAA,GAA6CvF,mCAAmC;AACzF"}
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, useCustomStyleHooks as useCustomStyleHooks_unstable } from './CustomStyleHooksContext';
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","useCustomStyleHooks","useCustomStyleHooks_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 CustomStyleHooksProvider as CustomStyleHooksProvider_unstable,\n useCustomStyleHooks as useCustomStyleHooks_unstable,\n} from './CustomStyleHooksContext';\nexport type {\n CustomStyleHooksContextValue as CustomStyleHooksContextValue_unstable,\n CustomStyleHooksContext as CustomStyleHooksContext_unstable,\n} 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,wBAAA,IAA4BC,iCAAiC,EAC7DC,mBAAA,IAAuBC,4BAA4B,QAC9C"}
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,101 +11,17 @@ function _export(target, all) {
11
11
  _export(exports, {
12
12
  CustomStyleHooksContext: ()=>CustomStyleHooksContext,
13
13
  CustomStyleHooksProvider: ()=>CustomStyleHooksProvider,
14
- useCustomStyleHooks: ()=>useCustomStyleHooks
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
- useCardHeaderStyles_unstable: noop,
32
- useCardStyles_unstable: noop,
33
- useCardFooterStyles_unstable: noop,
34
- useCardPreviewStyles_unstable: noop,
35
- usePresenceBadgeStyles_unstable: noop,
36
- useButtonStyles_unstable: noop,
37
- useCompoundButtonStyles_unstable: noop,
38
- useMenuButtonStyles_unstable: noop,
39
- useSplitButtonStyles_unstable: noop,
40
- useToggleButtonStyles_unstable: noop,
41
- useCheckboxStyles_unstable: noop,
42
- useComboboxStyles_unstable: noop,
43
- useDropdownStyles_unstable: noop,
44
- useListboxStyles_unstable: noop,
45
- useOptionStyles_unstable: noop,
46
- useOptionGroupStyles_unstable: noop,
47
- useDividerStyles_unstable: noop,
48
- useInputStyles_unstable: noop,
49
- useImageStyles_unstable: noop,
50
- useLabelStyles_unstable: noop,
51
- useLinkStyles_unstable: noop,
52
- useMenuDividerStyles_unstable: noop,
53
- useMenuGroupHeaderStyles_unstable: noop,
54
- useMenuGroupStyles_unstable: noop,
55
- useMenuItemCheckboxStyles_unstable: noop,
56
- useMenuItemRadioStyles_unstable: noop,
57
- useMenuItemStyles_unstable: noop,
58
- useMenuListStyles_unstable: noop,
59
- useMenuPopoverStyles_unstable: noop,
60
- useMenuSplitGroupStyles_unstable: noop,
61
- usePersonaStyles_unstable: noop,
62
- usePopoverSurfaceStyles_unstable: noop,
63
- useRadioGroupStyles_unstable: noop,
64
- useRadioStyles_unstable: noop,
65
- useSelectStyles_unstable: noop,
66
- useSliderStyles_unstable: noop,
67
- useSpinButtonStyles_unstable: noop,
68
- useSpinnerStyles_unstable: noop,
69
- useSwitchStyles_unstable: noop,
70
- useTabStyles_unstable: noop,
71
- useTabListStyles_unstable: noop,
72
- useTextStyles_unstable: noop,
73
- useTextareaStyles_unstable: noop,
74
- useTooltipStyles_unstable: noop,
75
- useDialogTitleStyles_unstable: noop,
76
- useDialogBodyStyles_unstable: noop,
77
- useDialogActionsStyles_unstable: noop,
78
- useDialogSurfaceStyles_unstable: noop,
79
- useDialogContentStyles_unstable: noop,
80
- useProgressBarStyles_unstable: noop,
81
- useToolbarButtonStyles_unstable: noop,
82
- useToolbarRadioButtonStyles_unstable: noop,
83
- useToolbarGroupStyles_unstable: noop,
84
- useToolbarToggleButtonStyles_unstable: noop,
85
- useToolbarDividerStyles_unstable: noop,
86
- useToolbarStyles_unstable: noop,
87
- useTableCellStyles_unstable: noop,
88
- useTableRowStyles_unstable: noop,
89
- useTableBodyStyles_unstable: noop,
90
- useTableStyles_unstable: noop,
91
- useTableHeaderStyles_unstable: noop,
92
- useTableHeaderCellStyles_unstable: noop,
93
- useTableResizeHandleStyles_unstable: noop,
94
- useTableSelectionCellStyles_unstable: noop,
95
- useTableCellActionsStyles_unstable: noop,
96
- useTableCellLayoutStyles_unstable: noop,
97
- useDataGridCellStyles_unstable: noop,
98
- useDataGridRowStyles_unstable: noop,
99
- useDataGridBodyStyles_unstable: noop,
100
- useDataGridStyles_unstable: noop,
101
- useDataGridHeaderStyles_unstable: noop,
102
- useDataGridHeaderCellStyles_unstable: noop,
103
- useDataGridSelectionCellStyles_unstable: noop
104
- };
105
20
  const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
106
- function useCustomStyleHooks() {
21
+ const useCustomStyleHook = (hook)=>{
107
22
  var _React_useContext;
108
- return (_React_useContext = _react.useContext(CustomStyleHooksContext)) !== null && _React_useContext !== void 0 ? _React_useContext : customStyleHooksContextDefaultValue;
109
- } //# sourceMappingURL=CustomStyleHooksContext.js.map
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
110
26
 
111
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 = () => {};\nconst customStyleHooksContextDefaultValue = {\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 useCardHeaderStyles_unstable: noop,\n useCardStyles_unstable: noop,\n useCardFooterStyles_unstable: noop,\n useCardPreviewStyles_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 * @internal\n */\nexport const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;\nexport function useCustomStyleHooks() {\n var _React_useContext;\n return (_React_useContext = React.useContext(CustomStyleHooksContext)) !== null && _React_useContext !== void 0 ? _React_useContext : customStyleHooksContextDefaultValue;\n}\n//# sourceMappingURL=CustomStyleHooksContext.js.map"],"names":["CustomStyleHooksContext","CustomStyleHooksProvider","useCustomStyleHooks","React","createContext","undefined","noop","customStyleHooksContextDefaultValue","useAccordionHeaderStyles_unstable","useAccordionItemStyles_unstable","useAccordionPanelStyles_unstable","useAccordionStyles_unstable","useAvatarStyles_unstable","useAvatarGroupStyles_unstable","useAvatarGroupItemStyles_unstable","useAvatarGroupPopoverStyles_unstable","useBadgeStyles_unstable","useCounterBadgeStyles_unstable","useCardHeaderStyles_unstable","useCardStyles_unstable","useCardFooterStyles_unstable","useCardPreviewStyles_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","Provider","_React_useContext","useContext"],"mappings":"AAAA,kBAAkB;;;;;;;;;;;IAILA,uBAAuB,MAAvBA;IA0FAC,wBAAwB,MAAxBA;IACGC,mBAAmB,MAAnBA;;;6DA/F2B;AAIpC,MAAMF,0BAA0B,WAAW,GAAEG,OAAMC,aAAa,CAACC;AACxE,MAAMC,OAAO,IAAM,CAAC;AACpB,MAAMC,sCAAsC;IAC1CC,mCAAmCF;IACnCG,iCAAiCH;IACjCI,kCAAkCJ;IAClCK,6BAA6BL;IAC7BM,0BAA0BN;IAC1BO,+BAA+BP;IAC/BQ,mCAAmCR;IACnCS,sCAAsCT;IACtCU,yBAAyBV;IACzBW,gCAAgCX;IAChCY,8BAA8BZ;IAC9Ba,wBAAwBb;IACxBc,8BAA8Bd;IAC9Be,+BAA+Bf;IAC/BgB,iCAAiChB;IACjCiB,0BAA0BjB;IAC1BkB,kCAAkClB;IAClCmB,8BAA8BnB;IAC9BoB,+BAA+BpB;IAC/BqB,gCAAgCrB;IAChCsB,4BAA4BtB;IAC5BuB,4BAA4BvB;IAC5BwB,4BAA4BxB;IAC5ByB,2BAA2BzB;IAC3B0B,0BAA0B1B;IAC1B2B,+BAA+B3B;IAC/B4B,2BAA2B5B;IAC3B6B,yBAAyB7B;IACzB8B,yBAAyB9B;IACzB+B,yBAAyB/B;IACzBgC,wBAAwBhC;IACxBiC,+BAA+BjC;IAC/BkC,mCAAmClC;IACnCmC,6BAA6BnC;IAC7BoC,oCAAoCpC;IACpCqC,iCAAiCrC;IACjCsC,4BAA4BtC;IAC5BuC,4BAA4BvC;IAC5BwC,+BAA+BxC;IAC/ByC,kCAAkCzC;IAClC0C,2BAA2B1C;IAC3B2C,kCAAkC3C;IAClC4C,8BAA8B5C;IAC9B6C,yBAAyB7C;IACzB8C,0BAA0B9C;IAC1B+C,0BAA0B/C;IAC1BgD,8BAA8BhD;IAC9BiD,2BAA2BjD;IAC3BkD,0BAA0BlD;IAC1BmD,uBAAuBnD;IACvBoD,2BAA2BpD;IAC3BqD,wBAAwBrD;IACxBsD,4BAA4BtD;IAC5BuD,2BAA2BvD;IAC3BwD,+BAA+BxD;IAC/ByD,8BAA8BzD;IAC9B0D,iCAAiC1D;IACjC2D,iCAAiC3D;IACjC4D,iCAAiC5D;IACjC6D,+BAA+B7D;IAC/B8D,iCAAiC9D;IACjC+D,sCAAsC/D;IACtCgE,gCAAgChE;IAChCiE,uCAAuCjE;IACvCkE,kCAAkClE;IAClCmE,2BAA2BnE;IAC3BoE,6BAA6BpE;IAC7BqE,4BAA4BrE;IAC5BsE,6BAA6BtE;IAC7BuE,yBAAyBvE;IACzBwE,+BAA+BxE;IAC/ByE,mCAAmCzE;IACnC0E,qCAAqC1E;IACrC2E,sCAAsC3E;IACtC4E,oCAAoC5E;IACpC6E,mCAAmC7E;IACnC8E,gCAAgC9E;IAChC+E,+BAA+B/E;IAC/BgF,gCAAgChF;IAChCiF,4BAA4BjF;IAC5BkF,kCAAkClF;IAClCmF,sCAAsCnF;IACtCoF,yCAAyCpF;AAC3C;AAIO,MAAML,2BAA2BD,wBAAwB2F,QAAQ;AACjE,SAASzF,sBAAsB;IACpC,IAAI0F;IACJ,OAAO,AAACA,CAAAA,oBAAoBzF,OAAM0F,UAAU,CAAC7F,wBAAuB,MAAO,IAAI,IAAI4F,sBAAsB,KAAK,IAAIA,oBAAoBrF,mCAAmC;AAC3K,EACA,mDAAmD"}
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"}
@@ -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
- useCustomStyleHooks_unstable: ()=>_customStyleHooksContext.useCustomStyleHooks
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, useCustomStyleHooks as useCustomStyleHooks_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","CustomStyleHooksProvider_unstable","CustomStyleHooksProvider","useCustomStyleHooks_unstable","useCustomStyleHooks"],"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;IACjCC,iCAAiC,MAA7DC,iDAAwB;IAA8DC,4BAA4B,MAAnDC,4CAAmB;;8BALI;uCAC4B;0CACY;iCACxD;kCACwB;yCAC4B;CACnI,iCAAiC"}
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.3",
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.7",
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
- }