@fluentui/react-shared-contexts 0.0.0-nightly-20230421-0417.1 → 0.0.0-nightly-20230425-0423.1

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,9 +2,9 @@
2
2
  "name": "@fluentui/react-shared-contexts",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 21 Apr 2023 04:23:29 GMT",
6
- "tag": "@fluentui/react-shared-contexts_v0.0.0-nightly-20230421-0417.1",
7
- "version": "0.0.0-nightly-20230421-0417.1",
5
+ "date": "Tue, 25 Apr 2023 04:31:09 GMT",
6
+ "tag": "@fluentui/react-shared-contexts_v0.0.0-nightly-20230425-0423.1",
7
+ "version": "0.0.0-nightly-20230425-0423.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
@@ -16,8 +16,8 @@
16
16
  {
17
17
  "author": "beachball",
18
18
  "package": "@fluentui/react-shared-contexts",
19
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20230421-0417.1",
20
- "commit": "f238c47321f20d55c86027637bac07ae1aece9bb"
19
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20230425-0423.1",
20
+ "commit": "1d8dc5de94f261d4780c66b3ecb6529c67f53cbd"
21
21
  }
22
22
  ]
23
23
  }
package/CHANGELOG.md CHANGED
@@ -1,18 +1,18 @@
1
1
  # Change Log - @fluentui/react-shared-contexts
2
2
 
3
- This log was last generated on Fri, 21 Apr 2023 04:23:29 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 25 Apr 2023 04:31:09 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20230421-0417.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v0.0.0-nightly-20230421-0417.1)
7
+ ## [0.0.0-nightly-20230425-0423.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v0.0.0-nightly-20230425-0423.1)
8
8
 
9
- Fri, 21 Apr 2023 04:23:29 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.3.2..@fluentui/react-shared-contexts_v0.0.0-nightly-20230421-0417.1)
9
+ Tue, 25 Apr 2023 04:31:09 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.3.2..@fluentui/react-shared-contexts_v0.0.0-nightly-20230425-0423.1)
11
11
 
12
12
  ### Changes
13
13
 
14
14
  - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
- - Bump @fluentui/react-theme to v0.0.0-nightly-20230421-0417.1 ([commit](https://github.com/microsoft/fluentui/commit/f238c47321f20d55c86027637bac07ae1aece9bb) by beachball)
15
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20230425-0423.1 ([commit](https://github.com/microsoft/fluentui/commit/1d8dc5de94f261d4780c66b3ecb6529c67f53cbd) by beachball)
16
16
 
17
17
  ## [9.3.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.3.2)
18
18
 
package/dist/index.d.ts CHANGED
@@ -6,9 +6,93 @@ 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
+ }> | undefined>;
10
94
 
11
- export declare type CustomStyleHooksContextValue_unstable = {
95
+ export declare type CustomStyleHooksContextValue_unstable = Partial<{
12
96
  useAccordionHeaderStyles_unstable: CustomStyleHook;
13
97
  useAccordionItemStyles_unstable: CustomStyleHook;
14
98
  useAccordionPanelStyles_unstable: CustomStyleHook;
@@ -92,12 +176,96 @@ export declare type CustomStyleHooksContextValue_unstable = {
92
176
  useDataGridHeaderStyles_unstable: CustomStyleHook;
93
177
  useDataGridHeaderCellStyles_unstable: CustomStyleHook;
94
178
  useDataGridSelectionCellStyles_unstable: CustomStyleHook;
95
- };
179
+ }>;
96
180
 
97
181
  /**
98
182
  * @internal
99
183
  */
100
- export declare const CustomStyleHooksProvider_unstable: React_2.Provider<CustomStyleHooksContextValue_unstable | undefined>;
184
+ export declare const CustomStyleHooksProvider_unstable: React_2.Provider<Partial<{
185
+ useAccordionHeaderStyles_unstable: CustomStyleHook;
186
+ useAccordionItemStyles_unstable: CustomStyleHook;
187
+ useAccordionPanelStyles_unstable: CustomStyleHook;
188
+ useAccordionStyles_unstable: CustomStyleHook;
189
+ useAvatarStyles_unstable: CustomStyleHook;
190
+ useAvatarGroupStyles_unstable: CustomStyleHook;
191
+ useAvatarGroupItemStyles_unstable: CustomStyleHook;
192
+ useAvatarGroupPopoverStyles_unstable: CustomStyleHook;
193
+ useBadgeStyles_unstable: CustomStyleHook;
194
+ useCounterBadgeStyles_unstable: CustomStyleHook;
195
+ useCardHeaderStyles_unstable: CustomStyleHook;
196
+ useCardStyles_unstable: CustomStyleHook;
197
+ useCardFooterStyles_unstable: CustomStyleHook;
198
+ useCardPreviewStyles_unstable: CustomStyleHook;
199
+ usePresenceBadgeStyles_unstable: CustomStyleHook;
200
+ useButtonStyles_unstable: CustomStyleHook;
201
+ useCompoundButtonStyles_unstable: CustomStyleHook;
202
+ useMenuButtonStyles_unstable: CustomStyleHook;
203
+ useSplitButtonStyles_unstable: CustomStyleHook;
204
+ useToggleButtonStyles_unstable: CustomStyleHook;
205
+ useCheckboxStyles_unstable: CustomStyleHook;
206
+ useComboboxStyles_unstable: CustomStyleHook;
207
+ useDropdownStyles_unstable: CustomStyleHook;
208
+ useListboxStyles_unstable: CustomStyleHook;
209
+ useOptionStyles_unstable: CustomStyleHook;
210
+ useOptionGroupStyles_unstable: CustomStyleHook;
211
+ useDividerStyles_unstable: CustomStyleHook;
212
+ useInputStyles_unstable: CustomStyleHook;
213
+ useImageStyles_unstable: CustomStyleHook;
214
+ useLabelStyles_unstable: CustomStyleHook;
215
+ useLinkStyles_unstable: CustomStyleHook;
216
+ useMenuDividerStyles_unstable: CustomStyleHook;
217
+ useMenuGroupHeaderStyles_unstable: CustomStyleHook;
218
+ useMenuGroupStyles_unstable: CustomStyleHook;
219
+ useMenuItemCheckboxStyles_unstable: CustomStyleHook;
220
+ useMenuItemRadioStyles_unstable: CustomStyleHook;
221
+ useMenuItemStyles_unstable: CustomStyleHook;
222
+ useMenuListStyles_unstable: CustomStyleHook;
223
+ useMenuPopoverStyles_unstable: CustomStyleHook;
224
+ useMenuSplitGroupStyles_unstable: CustomStyleHook;
225
+ usePersonaStyles_unstable: CustomStyleHook;
226
+ usePopoverSurfaceStyles_unstable: CustomStyleHook;
227
+ useRadioGroupStyles_unstable: CustomStyleHook;
228
+ useRadioStyles_unstable: CustomStyleHook;
229
+ useSelectStyles_unstable: CustomStyleHook;
230
+ useSliderStyles_unstable: CustomStyleHook;
231
+ useSpinButtonStyles_unstable: CustomStyleHook;
232
+ useSpinnerStyles_unstable: CustomStyleHook;
233
+ useSwitchStyles_unstable: CustomStyleHook;
234
+ useTabStyles_unstable: CustomStyleHook;
235
+ useTabListStyles_unstable: CustomStyleHook;
236
+ useTextStyles_unstable: CustomStyleHook;
237
+ useTextareaStyles_unstable: CustomStyleHook;
238
+ useTooltipStyles_unstable: CustomStyleHook;
239
+ useDialogTitleStyles_unstable: CustomStyleHook;
240
+ useDialogBodyStyles_unstable: CustomStyleHook;
241
+ useDialogActionsStyles_unstable: CustomStyleHook;
242
+ useDialogSurfaceStyles_unstable: CustomStyleHook;
243
+ useDialogContentStyles_unstable: CustomStyleHook;
244
+ useProgressBarStyles_unstable: CustomStyleHook;
245
+ useToolbarButtonStyles_unstable: CustomStyleHook;
246
+ useToolbarRadioButtonStyles_unstable: CustomStyleHook;
247
+ useToolbarGroupStyles_unstable: CustomStyleHook;
248
+ useToolbarToggleButtonStyles_unstable: CustomStyleHook;
249
+ useToolbarDividerStyles_unstable: CustomStyleHook;
250
+ useToolbarStyles_unstable: CustomStyleHook;
251
+ useTableCellStyles_unstable: CustomStyleHook;
252
+ useTableRowStyles_unstable: CustomStyleHook;
253
+ useTableBodyStyles_unstable: CustomStyleHook;
254
+ useTableStyles_unstable: CustomStyleHook;
255
+ useTableHeaderStyles_unstable: CustomStyleHook;
256
+ useTableHeaderCellStyles_unstable: CustomStyleHook;
257
+ useTableResizeHandleStyles_unstable: CustomStyleHook;
258
+ useTableSelectionCellStyles_unstable: CustomStyleHook;
259
+ useTableCellActionsStyles_unstable: CustomStyleHook;
260
+ useTableCellLayoutStyles_unstable: CustomStyleHook;
261
+ useDataGridCellStyles_unstable: CustomStyleHook;
262
+ useDataGridRowStyles_unstable: CustomStyleHook;
263
+ useDataGridBodyStyles_unstable: CustomStyleHook;
264
+ useDataGridStyles_unstable: CustomStyleHook;
265
+ useDataGridHeaderStyles_unstable: CustomStyleHook;
266
+ useDataGridHeaderCellStyles_unstable: CustomStyleHook;
267
+ useDataGridSelectionCellStyles_unstable: CustomStyleHook;
268
+ }> | undefined>;
101
269
 
102
270
  /**
103
271
  * @internal
@@ -157,7 +325,12 @@ export declare type TooltipVisibilityContextValue_unstable = {
157
325
  */
158
326
  export declare const TooltipVisibilityProvider_unstable: React_2.Provider<TooltipVisibilityContextValue_unstable>;
159
327
 
160
- export declare function useCustomStyleHooks_unstable(): CustomStyleHooksContextValue_unstable;
328
+ /**
329
+ * Gets a custom style hook
330
+ * @param hook - One of the hook properties in CustomStyleHooksContextValue
331
+ * @returns The corresponding hook when defined, otherwise a no-op function.
332
+ */
333
+ export declare const useCustomStyleHook_unstable: (hook: keyof CustomStyleHooksContextValue_unstable) => CustomStyleHook;
161
334
 
162
335
  export declare function useFluent_unstable(): ProviderContextValue_unstable;
163
336
 
@@ -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}>;\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;AA2FvB;;;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": "0.0.0-nightly-20230421-0417.1",
3
+ "version": "0.0.0-nightly-20230425-0423.1",
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": "0.0.0-nightly-20230421-0417.1",
30
+ "@fluentui/react-theme": "0.0.0-nightly-20230425-0423.1",
31
31
  "@swc/helpers": "^0.4.14"
32
32
  },
33
33
  "peerDependencies": {