@fluentui/react-shared-contexts 9.5.0 → 9.6.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 +60 -1
- package/CHANGELOG.md +21 -2
- package/dist/index.d.ts +21 -0
- package/lib/BackgroundAppearanceContext/BackgroundAppearanceContext.js +10 -0
- package/lib/BackgroundAppearanceContext/BackgroundAppearanceContext.js.map +1 -0
- package/lib/BackgroundAppearanceContext/index.js +1 -0
- package/lib/BackgroundAppearanceContext/index.js.map +1 -0
- package/lib/CustomStyleHooksContext/CustomStyleHooksContext.js +8 -12
- package/lib/CustomStyleHooksContext/CustomStyleHooksContext.js.map +1 -1
- package/lib/CustomStyleHooksContext/index.js +0 -1
- package/lib/CustomStyleHooksContext/index.js.map +1 -1
- package/lib/CustomStyleHooksContext.js +0 -1
- package/lib/CustomStyleHooksContext.js.map +1 -1
- package/lib/OverridesContext/OverridesContext.js +4 -7
- package/lib/OverridesContext/OverridesContext.js.map +1 -1
- package/lib/OverridesContext/index.js +0 -1
- package/lib/OverridesContext/index.js.map +1 -1
- package/lib/PortalMountNodeContext.js +12 -0
- package/lib/PortalMountNodeContext.js.map +1 -0
- package/lib/ProviderContext/ProviderContext.js +6 -9
- package/lib/ProviderContext/ProviderContext.js.map +1 -1
- package/lib/ProviderContext/index.js +0 -1
- package/lib/ProviderContext/index.js.map +1 -1
- package/lib/ProviderContext.js +0 -1
- package/lib/ProviderContext.js.map +1 -1
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js +4 -7
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib/ThemeClassNameContext/index.js +0 -1
- package/lib/ThemeClassNameContext/index.js.map +1 -1
- package/lib/ThemeClassNameContext.js +0 -1
- package/lib/ThemeClassNameContext.js.map +1 -1
- package/lib/ThemeContext/ThemeContext.js +2 -5
- package/lib/ThemeContext/ThemeContext.js.map +1 -1
- package/lib/ThemeContext/index.js +0 -1
- package/lib/ThemeContext/index.js.map +1 -1
- package/lib/ThemeContext.js +0 -1
- package/lib/ThemeContext.js.map +1 -1
- package/lib/TooltipVisibilityContext/TooltipContext.js +4 -7
- package/lib/TooltipVisibilityContext/TooltipContext.js.map +1 -1
- package/lib/TooltipVisibilityContext/index.js +0 -1
- package/lib/TooltipVisibilityContext/index.js.map +1 -1
- package/lib/TooltipVisibilityContext.js +0 -1
- package/lib/TooltipVisibilityContext.js.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/BackgroundAppearanceContext/BackgroundAppearanceContext.js +22 -0
- package/lib-commonjs/BackgroundAppearanceContext/BackgroundAppearanceContext.js.map +1 -0
- package/lib-commonjs/BackgroundAppearanceContext/index.js +6 -0
- package/lib-commonjs/BackgroundAppearanceContext/index.js.map +1 -0
- package/lib-commonjs/CustomStyleHooksContext/CustomStyleHooksContext.js +1 -3
- package/lib-commonjs/CustomStyleHooksContext/CustomStyleHooksContext.js.map +1 -1
- package/lib-commonjs/CustomStyleHooksContext/index.js +0 -3
- package/lib-commonjs/CustomStyleHooksContext/index.js.map +1 -1
- package/lib-commonjs/CustomStyleHooksContext.js +0 -3
- package/lib-commonjs/CustomStyleHooksContext.js.map +1 -1
- package/lib-commonjs/OverridesContext/OverridesContext.js +1 -3
- package/lib-commonjs/OverridesContext/OverridesContext.js.map +1 -1
- package/lib-commonjs/OverridesContext/index.js +0 -3
- package/lib-commonjs/OverridesContext/index.js.map +1 -1
- package/lib-commonjs/PortalMountNodeContext.js +25 -0
- package/lib-commonjs/PortalMountNodeContext.js.map +1 -0
- package/lib-commonjs/ProviderContext/ProviderContext.js +1 -3
- package/lib-commonjs/ProviderContext/ProviderContext.js.map +1 -1
- package/lib-commonjs/ProviderContext/index.js +0 -3
- package/lib-commonjs/ProviderContext/index.js.map +1 -1
- package/lib-commonjs/ProviderContext.js +0 -3
- package/lib-commonjs/ProviderContext.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js +1 -3
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext/index.js +0 -3
- package/lib-commonjs/ThemeClassNameContext/index.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext.js +0 -3
- package/lib-commonjs/ThemeClassNameContext.js.map +1 -1
- package/lib-commonjs/ThemeContext/ThemeContext.js +1 -3
- package/lib-commonjs/ThemeContext/ThemeContext.js.map +1 -1
- package/lib-commonjs/ThemeContext/index.js +0 -3
- package/lib-commonjs/ThemeContext/index.js.map +1 -1
- package/lib-commonjs/ThemeContext.js +0 -3
- package/lib-commonjs/ThemeContext.js.map +1 -1
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js +1 -3
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js.map +1 -1
- package/lib-commonjs/TooltipVisibilityContext/index.js +0 -3
- package/lib-commonjs/TooltipVisibilityContext/index.js.map +1 -1
- package/lib-commonjs/TooltipVisibilityContext.js +0 -3
- package/lib-commonjs/TooltipVisibilityContext.js.map +1 -1
- package/lib-commonjs/index.js +7 -4
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,66 @@
|
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Mon, 03 Jul 2023 11:54:00 GMT",
|
6
|
+
"tag": "@fluentui/react-shared-contexts_v9.6.0",
|
7
|
+
"version": "9.6.0",
|
8
|
+
"comments": {
|
9
|
+
"minor": [
|
10
|
+
{
|
11
|
+
"author": "lingfan.gao@microsoft.com",
|
12
|
+
"package": "@fluentui/react-shared-contexts",
|
13
|
+
"commit": "7ad45a9f4e696e416c4420286cbac3f57a4b3a6f",
|
14
|
+
"comment": "feat: Background appearance context"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "olfedias@microsoft.com",
|
18
|
+
"package": "@fluentui/react-shared-contexts",
|
19
|
+
"commit": "3deadf5e6ab264e0be12a31092ca5e172d721241",
|
20
|
+
"comment": "feat: export PortalMountNodeProvider & usePortalMountNode"
|
21
|
+
}
|
22
|
+
]
|
23
|
+
}
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"date": "Wed, 28 Jun 2023 11:12:31 GMT",
|
27
|
+
"tag": "@fluentui/react-shared-contexts_v9.5.1",
|
28
|
+
"version": "9.5.1",
|
29
|
+
"comments": {
|
30
|
+
"none": [
|
31
|
+
{
|
32
|
+
"author": "martinhochel@microsoft.com",
|
33
|
+
"package": "@fluentui/react-shared-contexts",
|
34
|
+
"commit": "fbe878e9c9785588197481f172c42c2c0a230292",
|
35
|
+
"comment": "fix: update .npmignore to unify v8 packages and exclude project.json"
|
36
|
+
}
|
37
|
+
]
|
38
|
+
}
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"date": "Tue, 20 Jun 2023 12:39:03 GMT",
|
42
|
+
"tag": "@fluentui/react-shared-contexts_v9.5.1",
|
43
|
+
"version": "9.5.1",
|
44
|
+
"comments": {
|
45
|
+
"none": [
|
46
|
+
{
|
47
|
+
"author": "martinhochel@microsoft.com",
|
48
|
+
"package": "@fluentui/react-shared-contexts",
|
49
|
+
"commit": "cf6b94ba6559236150bc1f1814b023607edaeb20",
|
50
|
+
"comment": "chore: re-generate api.md"
|
51
|
+
}
|
52
|
+
],
|
53
|
+
"patch": [
|
54
|
+
{
|
55
|
+
"author": "beachball",
|
56
|
+
"package": "@fluentui/react-shared-contexts",
|
57
|
+
"comment": "Bump @fluentui/react-theme to v9.1.9",
|
58
|
+
"commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
|
59
|
+
}
|
60
|
+
]
|
61
|
+
}
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"date": "Wed, 24 May 2023 20:45:32 GMT",
|
6
65
|
"tag": "@fluentui/react-shared-contexts_v9.5.0",
|
7
66
|
"version": "9.5.0",
|
8
67
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,31 @@
|
|
1
1
|
# Change Log - @fluentui/react-shared-contexts
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Mon, 03 Jul 2023 11:54:00 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.6.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.6.0)
|
8
|
+
|
9
|
+
Mon, 03 Jul 2023 11:54:00 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.5.1..@fluentui/react-shared-contexts_v9.6.0)
|
11
|
+
|
12
|
+
### Minor changes
|
13
|
+
|
14
|
+
- feat: Background appearance context ([PR #28341](https://github.com/microsoft/fluentui/pull/28341) by lingfan.gao@microsoft.com)
|
15
|
+
- feat: export PortalMountNodeProvider & usePortalMountNode ([PR #28395](https://github.com/microsoft/fluentui/pull/28395) by olfedias@microsoft.com)
|
16
|
+
|
17
|
+
## [9.5.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.5.1)
|
18
|
+
|
19
|
+
Tue, 20 Jun 2023 12:39:03 GMT
|
20
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.5.0..@fluentui/react-shared-contexts_v9.5.1)
|
21
|
+
|
22
|
+
### Patches
|
23
|
+
|
24
|
+
- Bump @fluentui/react-theme to v9.1.9 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
|
25
|
+
|
7
26
|
## [9.5.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.5.0)
|
8
27
|
|
9
|
-
Wed, 24 May 2023 20:
|
28
|
+
Wed, 24 May 2023 20:45:32 GMT
|
10
29
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.4.0..@fluentui/react-shared-contexts_v9.5.0)
|
11
30
|
|
12
31
|
### Minor changes
|
package/dist/index.d.ts
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
import * as React_2 from 'react';
|
2
2
|
import type { Theme } from '@fluentui/react-theme';
|
3
3
|
|
4
|
+
/**
|
5
|
+
* @internal
|
6
|
+
*/
|
7
|
+
export declare type BackgroundAppearanceContextValue = 'inverted' | undefined;
|
8
|
+
|
9
|
+
/**
|
10
|
+
* @internal
|
11
|
+
*/
|
12
|
+
export declare const BackgroundAppearanceProvider: React_2.Provider<BackgroundAppearanceContextValue>;
|
13
|
+
|
4
14
|
declare type CustomStyleHook = (state: unknown) => void;
|
5
15
|
|
6
16
|
/**
|
@@ -294,6 +304,13 @@ export declare type OverridesContextValue_unstable = {
|
|
294
304
|
*/
|
295
305
|
export declare const OverridesProvider_unstable: React_2.Provider<OverridesContextValue_unstable | undefined>;
|
296
306
|
|
307
|
+
declare type PortalMountNodeContextValue = HTMLElement | ShadowRoot | undefined;
|
308
|
+
|
309
|
+
/**
|
310
|
+
* @internal
|
311
|
+
*/
|
312
|
+
export declare const PortalMountNodeProvider: React_2.Provider<PortalMountNodeContextValue>;
|
313
|
+
|
297
314
|
/**
|
298
315
|
* @internal
|
299
316
|
*/
|
@@ -340,6 +357,8 @@ export declare type TooltipVisibilityContextValue_unstable = {
|
|
340
357
|
*/
|
341
358
|
export declare const TooltipVisibilityProvider_unstable: React_2.Provider<TooltipVisibilityContextValue_unstable>;
|
342
359
|
|
360
|
+
export declare function useBackgroundAppearance(): BackgroundAppearanceContextValue;
|
361
|
+
|
343
362
|
/**
|
344
363
|
* Gets a custom style hook
|
345
364
|
* @param hook - One of the hook properties in CustomStyleHooksContextValue
|
@@ -351,6 +370,8 @@ export declare function useFluent_unstable(): ProviderContextValue_unstable;
|
|
351
370
|
|
352
371
|
export declare function useOverrides_unstable(): OverridesContextValue_unstable;
|
353
372
|
|
373
|
+
export declare function usePortalMountNode(): PortalMountNodeContextValue;
|
374
|
+
|
354
375
|
/**
|
355
376
|
* @returns CSS class that applies css variables
|
356
377
|
*/
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
/**
|
3
|
+
* @internal
|
4
|
+
*/ export const BackgroundAppearanceContext = React.createContext(undefined);
|
5
|
+
/**
|
6
|
+
* @internal
|
7
|
+
*/ export const BackgroundAppearanceProvider = BackgroundAppearanceContext.Provider;
|
8
|
+
export function useBackgroundAppearance() {
|
9
|
+
return React.useContext(BackgroundAppearanceContext);
|
10
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["BackgroundAppearanceContext.ts"],"sourcesContent":["import * as React from 'react';\n\n/**\n * @internal\n */\nexport type BackgroundAppearanceContextValue = 'inverted' | undefined;\n\n/**\n * @internal\n */\nexport const BackgroundAppearanceContext = React.createContext<BackgroundAppearanceContextValue | undefined>(undefined);\n\n/**\n * @internal\n */\nexport const BackgroundAppearanceProvider = BackgroundAppearanceContext.Provider;\n\nexport function useBackgroundAppearance(): BackgroundAppearanceContextValue {\n return React.useContext(BackgroundAppearanceContext);\n}\n"],"names":["React","BackgroundAppearanceContext","createContext","undefined","BackgroundAppearanceProvider","Provider","useBackgroundAppearance","useContext"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAO/B;;CAEC,GACD,OAAO,MAAMC,8BAA8BD,MAAME,aAAa,CAA+CC,WAAW;AAExH;;CAEC,GACD,OAAO,MAAMC,+BAA+BH,4BAA4BI,QAAQ,CAAC;AAEjF,OAAO,SAASC,0BAA4D;IAC1E,OAAON,MAAMO,UAAU,CAACN;AAC1B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './BackgroundAppearanceContext';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './BackgroundAppearanceContext';\n"],"names":[],"mappings":"AAAA,cAAc,gCAAgC"}
|
@@ -1,21 +1,17 @@
|
|
1
|
-
/* eslint-disable */import * as React from 'react';
|
1
|
+
/* eslint-disable */ import * as React from 'react';
|
2
2
|
/**
|
3
3
|
* @internal
|
4
|
-
*/
|
5
|
-
|
6
|
-
const noop = () => {};
|
4
|
+
*/ export const CustomStyleHooksContext = React.createContext(undefined);
|
5
|
+
const noop = ()=>{};
|
7
6
|
/**
|
8
7
|
* @internal
|
9
|
-
*/
|
10
|
-
export const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
|
8
|
+
*/ export const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
|
11
9
|
/**
|
12
10
|
* Gets a custom style hook
|
13
11
|
* @param hook - One of the hook properties in CustomStyleHooksContextValue
|
14
12
|
* @returns The corresponding hook when defined, otherwise a no-op function.
|
15
|
-
*/
|
16
|
-
|
17
|
-
|
18
|
-
|
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;
|
13
|
+
*/ export const useCustomStyleHook = (hook)=>{
|
14
|
+
var _React_useContext;
|
15
|
+
var _React_useContext_hook;
|
16
|
+
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
17
|
};
|
21
|
-
//# sourceMappingURL=CustomStyleHooksContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["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 useDrawerHeaderStyles_unstable: CustomStyleHook;\n useDrawerHeaderTitleStyles_unstable: CustomStyleHook;\n useDrawerHeaderNavigationStyles_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"],"names":["React","CustomStyleHooksContext","createContext","undefined","noop","CustomStyleHooksProvider","Provider","useCustomStyleHook","hook","useContext"],"mappings":"AAAA,kBAAkB,GAElB,YAAYA,WAAW,QAAQ;AAgG/B;;CAEC,GACD,OAAO,MAAMC,0BAA0BD,MAAME,aAAa,CAA2CC,WAAW;AAEhH,MAAMC,OAAO,IAAM,CAAC;AAEpB;;CAEC,GACD,OAAO,MAAMC,2BAA2BJ,wBAAwBK,QAAQ,CAAC;AAEzE;;;;CAIC,GACD,OAAO,MAAMC,qBAAqB,CAACC,OAA8D;QACxFR;QAAAA;IAAP,OAAOA,CAAAA,yBAAAA,CAAAA,oBAAAA,MAAMS,UAAU,CAACR,sCAAjBD,+BAAAA,KAAAA,IAAAA,iBAA2C,CAACQ,KAAK,cAAjDR,oCAAAA,yBAAqDI,IAAI;AAClE,EAAE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './CustomStyleHooksContext';\n"],"names":[],"mappings":"AAAA,cAAc,4BAA4B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["CustomStyleHooksContext.ts"],"sourcesContent":["export * from './CustomStyleHooksContext/index';\n"],"names":[],"mappings":"AAAA,cAAc,kCAAkC"}
|
@@ -1,14 +1,11 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
/**
|
3
3
|
* @internal
|
4
|
-
*/
|
5
|
-
export const OverridesContext = /*#__PURE__*/React.createContext(undefined);
|
4
|
+
*/ export const OverridesContext = React.createContext(undefined);
|
6
5
|
/**
|
7
6
|
* @internal
|
8
|
-
*/
|
9
|
-
export const OverridesProvider = OverridesContext.Provider;
|
7
|
+
*/ export const OverridesProvider = OverridesContext.Provider;
|
10
8
|
export function useOverrides() {
|
11
|
-
|
12
|
-
|
9
|
+
var _React_useContext;
|
10
|
+
return (_React_useContext = React.useContext(OverridesContext)) !== null && _React_useContext !== void 0 ? _React_useContext : {};
|
13
11
|
}
|
14
|
-
//# sourceMappingURL=OverridesContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["OverridesContext.ts"],"sourcesContent":["import * as React from 'react';\n\n/**\n * @internal\n */\nexport type OverridesContextValue = {\n // No 'underline' as it is not supported by TextArea\n inputDefaultAppearance?: 'outline' | 'filled-darker' | 'filled-lighter';\n};\n\n/**\n * @internal\n */\nexport const OverridesContext = React.createContext<OverridesContextValue | undefined>(undefined);\n\n/**\n * @internal\n */\nexport const OverridesProvider = OverridesContext.Provider;\n\nexport function useOverrides(): OverridesContextValue {\n return React.useContext(OverridesContext) ?? {};\n}\n"],"names":["React","OverridesContext","createContext","undefined","OverridesProvider","Provider","useOverrides","useContext"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAU/B;;CAEC,GACD,OAAO,MAAMC,mBAAmBD,MAAME,aAAa,CAAoCC,WAAW;AAElG;;CAEC,GACD,OAAO,MAAMC,oBAAoBH,iBAAiBI,QAAQ,CAAC;AAE3D,OAAO,SAASC,eAAsC;QAC7CN;IAAP,OAAOA,CAAAA,oBAAAA,MAAMO,UAAU,CAACN,+BAAjBD,+BAAAA,oBAAsC,CAAC,CAAC;AACjD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './OverridesContext';\n"],"names":[],"mappings":"AAAA,cAAc,qBAAqB"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
/**
|
3
|
+
* Provides a mount node for portals to render into.
|
4
|
+
*
|
5
|
+
* @internal
|
6
|
+
*/ const PortalMountNodeContext = React.createContext(undefined);
|
7
|
+
/**
|
8
|
+
* @internal
|
9
|
+
*/ export const PortalMountNodeProvider = PortalMountNodeContext.Provider;
|
10
|
+
export function usePortalMountNode() {
|
11
|
+
return React.useContext(PortalMountNodeContext);
|
12
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["PortalMountNodeContext.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type PortalMountNodeContextValue = HTMLElement | ShadowRoot | undefined;\n\n/**\n * Provides a mount node for portals to render into.\n *\n * @internal\n */\nconst PortalMountNodeContext = React.createContext<PortalMountNodeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const PortalMountNodeProvider = PortalMountNodeContext.Provider;\n\nexport function usePortalMountNode(): PortalMountNodeContextValue {\n return React.useContext(PortalMountNodeContext);\n}\n"],"names":["React","PortalMountNodeContext","createContext","undefined","PortalMountNodeProvider","Provider","usePortalMountNode","useContext"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAI/B;;;;CAIC,GACD,MAAMC,yBAAyBD,MAAME,aAAa,CAA8BC;AAEhF;;CAEC,GACD,OAAO,MAAMC,0BAA0BH,uBAAuBI,QAAQ,CAAC;AAEvE,OAAO,SAASC,qBAAkD;IAChE,OAAON,MAAMO,UAAU,CAACN;AAC1B,CAAC"}
|
@@ -1,18 +1,15 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
/**
|
3
3
|
* @internal
|
4
|
-
*/
|
5
|
-
const ProviderContext = /*#__PURE__*/React.createContext(undefined);
|
4
|
+
*/ const ProviderContext = React.createContext(undefined);
|
6
5
|
const providerContextDefaultValue = {
|
7
|
-
|
8
|
-
|
6
|
+
targetDocument: typeof document === 'object' ? document : undefined,
|
7
|
+
dir: 'ltr'
|
9
8
|
};
|
10
9
|
/**
|
11
10
|
* @internal
|
12
|
-
*/
|
13
|
-
export const Provider = ProviderContext.Provider;
|
11
|
+
*/ export const Provider = ProviderContext.Provider;
|
14
12
|
export function useFluent() {
|
15
|
-
|
16
|
-
|
13
|
+
var _React_useContext;
|
14
|
+
return (_React_useContext = React.useContext(ProviderContext)) !== null && _React_useContext !== void 0 ? _React_useContext : providerContextDefaultValue;
|
17
15
|
}
|
18
|
-
//# sourceMappingURL=ProviderContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["ProviderContext.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type ProviderContextValue = {\n /** Sets the direction of text & generated styles. */\n dir: 'ltr' | 'rtl';\n\n /** Provides the document, can be undefined during SSR render. */\n targetDocument?: Document;\n};\n\n/**\n * @internal\n */\nconst ProviderContext = React.createContext<ProviderContextValue | undefined>(\n undefined,\n) as React.Context<ProviderContextValue>;\n\nconst providerContextDefaultValue: ProviderContextValue = {\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr' as const,\n};\n\n/**\n * @internal\n */\nexport const Provider = ProviderContext.Provider;\n\nexport function useFluent(): ProviderContextValue {\n return React.useContext(ProviderContext) ?? providerContextDefaultValue;\n}\n"],"names":["React","ProviderContext","createContext","undefined","providerContextDefaultValue","targetDocument","document","dir","Provider","useFluent","useContext"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAU/B;;CAEC,GACD,MAAMC,kBAAkBD,MAAME,aAAa,CACzCC;AAGF,MAAMC,8BAAoD;IACxDC,gBAAgB,OAAOC,aAAa,WAAWA,WAAWH,SAAS;IACnEI,KAAK;AACP;AAEA;;CAEC,GACD,OAAO,MAAMC,WAAWP,gBAAgBO,QAAQ,CAAC;AAEjD,OAAO,SAASC,YAAkC;QACzCT;IAAP,OAAOA,CAAAA,oBAAAA,MAAMU,UAAU,CAACT,8BAAjBD,+BAAAA,oBAAqCI,2BAA2B;AACzE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './ProviderContext';\n"],"names":[],"mappings":"AAAA,cAAc,oBAAoB"}
|
package/lib/ProviderContext.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["ProviderContext.ts"],"sourcesContent":["export * from './ProviderContext/index';\n"],"names":[],"mappings":"AAAA,cAAc,0BAA0B"}
|
@@ -4,15 +4,12 @@ import * as React from 'react';
|
|
4
4
|
* Used to provide a CSS class that applies theme css variables
|
5
5
|
*
|
6
6
|
* Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals
|
7
|
-
*/
|
8
|
-
const ThemeClassNameContext = /*#__PURE__*/React.createContext(undefined);
|
7
|
+
*/ const ThemeClassNameContext = React.createContext(undefined);
|
9
8
|
const themeClassNameContextDefaultVaue = '';
|
10
9
|
export const ThemeClassNameProvider = ThemeClassNameContext.Provider;
|
11
10
|
/**
|
12
11
|
* @returns CSS class that applies css variables
|
13
|
-
*/
|
14
|
-
|
15
|
-
|
16
|
-
return (_React_useContext = React.useContext(ThemeClassNameContext)) !== null && _React_useContext !== void 0 ? _React_useContext : themeClassNameContextDefaultVaue;
|
12
|
+
*/ export function useThemeClassName() {
|
13
|
+
var _React_useContext;
|
14
|
+
return (_React_useContext = React.useContext(ThemeClassNameContext)) !== null && _React_useContext !== void 0 ? _React_useContext : themeClassNameContextDefaultVaue;
|
17
15
|
}
|
18
|
-
//# sourceMappingURL=ThemeClassNameContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["ThemeClassNameContext.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type ThemeClassNameContextValue = string;\n\n/**\n * @internal\n * Used to provide a CSS class that applies theme css variables\n *\n * Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals\n */\nconst ThemeClassNameContext = React.createContext<ThemeClassNameContextValue | undefined>(\n undefined,\n) as React.Context<ThemeClassNameContextValue>;\n\nconst themeClassNameContextDefaultVaue = '';\n\nexport const ThemeClassNameProvider = ThemeClassNameContext.Provider;\n\n/**\n * @returns CSS class that applies css variables\n */\nexport function useThemeClassName(): ThemeClassNameContextValue {\n return React.useContext(ThemeClassNameContext) ?? themeClassNameContextDefaultVaue;\n}\n"],"names":["React","ThemeClassNameContext","createContext","undefined","themeClassNameContextDefaultVaue","ThemeClassNameProvider","Provider","useThemeClassName","useContext"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAI/B;;;;;CAKC,GACD,MAAMC,wBAAwBD,MAAME,aAAa,CAC/CC;AAGF,MAAMC,mCAAmC;AAEzC,OAAO,MAAMC,yBAAyBJ,sBAAsBK,QAAQ,CAAC;AAErE;;CAEC,GACD,OAAO,SAASC,oBAAgD;QACvDP;IAAP,OAAOA,CAAAA,oBAAAA,MAAMQ,UAAU,CAACP,oCAAjBD,+BAAAA,oBAA2CI,gCAAgC;AACpF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './ThemeClassNameContext';\n"],"names":[],"mappings":"AAAA,cAAc,0BAA0B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["ThemeClassNameContext.ts"],"sourcesContent":["export * from './ThemeClassNameContext/index';\n"],"names":[],"mappings":"AAAA,cAAc,gCAAgC"}
|
@@ -1,10 +1,7 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
/**
|
3
3
|
* @internal
|
4
|
-
*/
|
5
|
-
export const ThemeContext = /*#__PURE__*/React.createContext(undefined);
|
4
|
+
*/ export const ThemeContext = React.createContext(undefined);
|
6
5
|
/**
|
7
6
|
* @internal
|
8
|
-
*/
|
9
|
-
export const ThemeProvider = ThemeContext.Provider;
|
10
|
-
//# sourceMappingURL=ThemeContext.js.map
|
7
|
+
*/ export const ThemeProvider = ThemeContext.Provider;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["ThemeContext.ts"],"sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\n/**\n * @internal\n */\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const ThemeProvider = ThemeContext.Provider;\n"],"names":["React","ThemeContext","createContext","undefined","ThemeProvider","Provider"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAK/B;;CAEC,GACD,OAAO,MAAMC,eAAeD,MAAME,aAAa,CAAoBC,WAAW;AAE9E;;CAEC,GACD,OAAO,MAAMC,gBAAgBH,aAAaI,QAAQ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './ThemeContext';\n"],"names":[],"mappings":"AAAA,cAAc,iBAAiB"}
|
package/lib/ThemeContext.js
CHANGED
package/lib/ThemeContext.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["ThemeContext.ts"],"sourcesContent":["export * from './ThemeContext/index';\n"],"names":[],"mappings":"AAAA,cAAc,uBAAuB"}
|
@@ -2,15 +2,12 @@ import * as React from 'react';
|
|
2
2
|
/**
|
3
3
|
* @internal
|
4
4
|
* Context shared by all of the tooltips in the app
|
5
|
-
*/
|
6
|
-
const TooltipVisibilityContext = /*#__PURE__*/React.createContext(undefined);
|
5
|
+
*/ const TooltipVisibilityContext = React.createContext(undefined);
|
7
6
|
const tooltipVisibilityContextDefaultValue = {};
|
8
7
|
/**
|
9
8
|
* @internal
|
10
|
-
*/
|
11
|
-
export const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
|
9
|
+
*/ export const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
|
12
10
|
export function useTooltipVisibility() {
|
13
|
-
|
14
|
-
|
11
|
+
var _React_useContext;
|
12
|
+
return (_React_useContext = React.useContext(TooltipVisibilityContext)) !== null && _React_useContext !== void 0 ? _React_useContext : tooltipVisibilityContextDefaultValue;
|
15
13
|
}
|
16
|
-
//# sourceMappingURL=TooltipContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["TooltipContext.ts"],"sourcesContent":["import * as React from 'react';\n\n/**\n * The context provided by TooltipProvider\n */\nexport type TooltipVisibilityContextValue = {\n /**\n * When a tooltip is shown, it sets itself as the visibleTooltip.\n * The next tooltip to become visible can use it to hide the previous tooltip immediately.\n */\n visibleTooltip?: {\n hide: () => void;\n };\n};\n\n/**\n * @internal\n * Context shared by all of the tooltips in the app\n */\nconst TooltipVisibilityContext = React.createContext<TooltipVisibilityContextValue | undefined>(\n undefined,\n) as React.Context<TooltipVisibilityContextValue>;\n\nconst tooltipVisibilityContextDefaultValue: TooltipVisibilityContextValue = {};\n\n/**\n * @internal\n */\nexport const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;\n\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext) ?? tooltipVisibilityContextDefaultValue;\n}\n"],"names":["React","TooltipVisibilityContext","createContext","undefined","tooltipVisibilityContextDefaultValue","TooltipVisibilityProvider","Provider","useTooltipVisibility","useContext"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAe/B;;;CAGC,GACD,MAAMC,2BAA2BD,MAAME,aAAa,CAClDC;AAGF,MAAMC,uCAAsE,CAAC;AAE7E;;CAEC,GACD,OAAO,MAAMC,4BAA4BJ,yBAAyBK,QAAQ,CAAC;AAE3E,OAAO,SAASC,uBAAsD;QAC7DP;IAAP,OAAOA,CAAAA,oBAAAA,MAAMQ,UAAU,CAACP,uCAAjBD,+BAAAA,oBAA8CI,oCAAoC;AAC3F,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './TooltipContext';\n"],"names":[],"mappings":"AAAA,cAAc,mBAAmB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["TooltipVisibilityContext.ts"],"sourcesContent":["export * from './TooltipVisibilityContext/index';\n"],"names":[],"mappings":"AAAA,cAAc,mCAAmC"}
|
package/lib/index.js
CHANGED
@@ -4,4 +4,5 @@ export { TooltipVisibilityProvider as TooltipVisibilityProvider_unstable, useToo
|
|
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
6
|
export { CustomStyleHooksContext as CustomStyleHooksContext_unstable, CustomStyleHooksProvider as CustomStyleHooksProvider_unstable, useCustomStyleHook as useCustomStyleHook_unstable } from './CustomStyleHooksContext';
|
7
|
-
|
7
|
+
export { BackgroundAppearanceProvider, useBackgroundAppearance } from './BackgroundAppearanceContext';
|
8
|
+
export { PortalMountNodeProvider, usePortalMountNode } from './PortalMountNodeContext';
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["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\nexport { BackgroundAppearanceProvider, useBackgroundAppearance } from './BackgroundAppearanceContext';\nexport type { BackgroundAppearanceContextValue } from './BackgroundAppearanceContext';\n\nexport { PortalMountNodeProvider, usePortalMountNode } from './PortalMountNodeContext';\n"],"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","BackgroundAppearanceProvider","useBackgroundAppearance","PortalMountNodeProvider","usePortalMountNode"],"mappings":"AAAA,SAASA,gBAAgBC,qBAAqB,EAAEC,iBAAiBC,sBAAsB,QAAQ,iBAAiB;AAGhH,SACEC,0BAA0BC,+BAA+B,EACzDC,qBAAqBC,0BAA0B,QAC1C,0BAA0B;AAGjC,SACEC,6BAA6BC,kCAAkC,EAC/DC,wBAAwBC,6BAA6B,QAChD,6BAA6B;AAGpC,SAASC,YAAYC,iBAAiB,EAAEC,aAAaC,kBAAkB,QAAQ,oBAAoB;AAGnG,SACEC,qBAAqBC,0BAA0B,EAC/CC,gBAAgBC,qBAAqB,QAChC,qBAAqB;AAG5B,SACEC,2BAA2BC,gCAAgC,EAC3DC,4BAA4BC,iCAAiC,EAC7DC,sBAAsBC,2BAA2B,QAC5C,4BAA4B;AAGnC,SAASC,4BAA4B,EAAEC,uBAAuB,QAAQ,gCAAgC;AAGtG,SAASC,uBAAuB,EAAEC,kBAAkB,QAAQ,2BAA2B"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
function _export(target, all) {
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
7
|
+
enumerable: true,
|
8
|
+
get: all[name]
|
9
|
+
});
|
10
|
+
}
|
11
|
+
_export(exports, {
|
12
|
+
BackgroundAppearanceContext: ()=>BackgroundAppearanceContext,
|
13
|
+
BackgroundAppearanceProvider: ()=>BackgroundAppearanceProvider,
|
14
|
+
useBackgroundAppearance: ()=>useBackgroundAppearance
|
15
|
+
});
|
16
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
17
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
18
|
+
const BackgroundAppearanceContext = /*#__PURE__*/ _react.createContext(undefined);
|
19
|
+
const BackgroundAppearanceProvider = BackgroundAppearanceContext.Provider;
|
20
|
+
function useBackgroundAppearance() {
|
21
|
+
return _react.useContext(BackgroundAppearanceContext);
|
22
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["BackgroundAppearanceContext.js"],"sourcesContent":["import * as React from 'react';\n/**\n * @internal\n */ export const BackgroundAppearanceContext = React.createContext(undefined);\n/**\n * @internal\n */ export const BackgroundAppearanceProvider = BackgroundAppearanceContext.Provider;\nexport function useBackgroundAppearance() {\n return React.useContext(BackgroundAppearanceContext);\n}\n"],"names":["BackgroundAppearanceContext","BackgroundAppearanceProvider","useBackgroundAppearance","React","createContext","undefined","Provider","useContext"],"mappings":";;;;;;;;;;;IAGiBA,2BAA2B,MAA3BA;IAGAC,4BAA4B,MAA5BA;IACDC,uBAAuB,MAAvBA;;;6DAPO;AAGZ,MAAMF,4CAA8BG,OAAMC,aAAa,CAACC;AAGxD,MAAMJ,+BAA+BD,4BAA4BM,QAAQ;AAC7E,SAASJ,0BAA0B;IACtC,OAAOC,OAAMI,UAAU,CAACP;AAC5B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './BackgroundAppearanceContext';\n"],"names":[],"mappings":";;;;;oBAAc"}
|
@@ -22,6 +22,4 @@ const useCustomStyleHook = (hook)=>{
|
|
22
22
|
var _React_useContext;
|
23
23
|
var _React_useContext_hook;
|
24
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
|
-
};
|
26
|
-
|
27
|
-
//# sourceMappingURL=CustomStyleHooksContext.js.map
|
25
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["CustomStyleHooksContext.js"],"sourcesContent":["/* eslint-disable */ import * as React from 'react';\n/**\n * @internal\n */ export const CustomStyleHooksContext = React.createContext(undefined);\nconst noop = ()=>{};\n/**\n * @internal\n */ export 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 */ export 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"],"names":["CustomStyleHooksContext","CustomStyleHooksProvider","useCustomStyleHook","React","createContext","undefined","noop","Provider","hook","_React_useContext","_React_useContext_hook","useContext"],"mappings":"AAAA,kBAAkB;;;;;;;;;;;IAGDA,uBAAuB,MAAvBA;IAIAC,wBAAwB,MAAxBA;IAKAC,kBAAkB,MAAlBA;;;6DAZ2B;AAGjC,MAAMF,wCAA0BG,OAAMC,aAAa,CAACC;AAC/D,MAAMC,OAAO,IAAI,CAAC;AAGP,MAAML,2BAA2BD,wBAAwBO,QAAQ;AAKjE,MAAML,qBAAqB,CAACM,OAAO;IAC1C,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;AAC/P"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './CustomStyleHooksContext';\n"],"names":[],"mappings":";;;;;oBAAc"}
|
@@ -4,6 +4,3 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
});
|
5
5
|
const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
6
6
|
_exportStar(require("./CustomStyleHooksContext/index"), exports);
|
7
|
-
//# sourceMappingURL=CustomStyleHooksContext.js.map
|
8
|
-
|
9
|
-
//# sourceMappingURL=CustomStyleHooksContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["CustomStyleHooksContext.js"],"sourcesContent":["export * from './CustomStyleHooksContext/index';\n"],"names":[],"mappings":";;;;;oBAAc"}
|
@@ -20,6 +20,4 @@ const OverridesProvider = OverridesContext.Provider;
|
|
20
20
|
function useOverrides() {
|
21
21
|
var _React_useContext;
|
22
22
|
return (_React_useContext = _react.useContext(OverridesContext)) !== null && _React_useContext !== void 0 ? _React_useContext : {};
|
23
|
-
}
|
24
|
-
|
25
|
-
//# sourceMappingURL=OverridesContext.js.map
|
23
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["OverridesContext.js"],"sourcesContent":["import * as React from 'react';\n/**\n * @internal\n */ export const OverridesContext = React.createContext(undefined);\n/**\n * @internal\n */ export const OverridesProvider = OverridesContext.Provider;\nexport function useOverrides() {\n var _React_useContext;\n return (_React_useContext = React.useContext(OverridesContext)) !== null && _React_useContext !== void 0 ? _React_useContext : {};\n}\n"],"names":["OverridesContext","OverridesProvider","useOverrides","React","createContext","undefined","Provider","_React_useContext","useContext"],"mappings":";;;;;;;;;;;IAGiBA,gBAAgB,MAAhBA;IAGAC,iBAAiB,MAAjBA;IACDC,YAAY,MAAZA;;;6DAPO;AAGZ,MAAMF,iCAAmBG,OAAMC,aAAa,CAACC;AAG7C,MAAMJ,oBAAoBD,iBAAiBM,QAAQ;AACvD,SAASJ,eAAe;IAC3B,IAAIK;IACJ,OAAO,AAACA,CAAAA,oBAAoBJ,OAAMK,UAAU,CAACR,iBAAgB,MAAO,IAAI,IAAIO,sBAAsB,KAAK,IAAIA,oBAAoB,CAAC,CAAC;AACrI"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './OverridesContext';\n"],"names":[],"mappings":";;;;;oBAAc"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
function _export(target, all) {
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
7
|
+
enumerable: true,
|
8
|
+
get: all[name]
|
9
|
+
});
|
10
|
+
}
|
11
|
+
_export(exports, {
|
12
|
+
PortalMountNodeProvider: ()=>PortalMountNodeProvider,
|
13
|
+
usePortalMountNode: ()=>usePortalMountNode
|
14
|
+
});
|
15
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
16
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
17
|
+
/**
|
18
|
+
* Provides a mount node for portals to render into.
|
19
|
+
*
|
20
|
+
* @internal
|
21
|
+
*/ const PortalMountNodeContext = /*#__PURE__*/ _react.createContext(undefined);
|
22
|
+
const PortalMountNodeProvider = PortalMountNodeContext.Provider;
|
23
|
+
function usePortalMountNode() {
|
24
|
+
return _react.useContext(PortalMountNodeContext);
|
25
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["PortalMountNodeContext.js"],"sourcesContent":["import * as React from 'react';\n/**\n * Provides a mount node for portals to render into.\n *\n * @internal\n */ const PortalMountNodeContext = React.createContext(undefined);\n/**\n * @internal\n */ export const PortalMountNodeProvider = PortalMountNodeContext.Provider;\nexport function usePortalMountNode() {\n return React.useContext(PortalMountNodeContext);\n}\n"],"names":["PortalMountNodeProvider","usePortalMountNode","PortalMountNodeContext","React","createContext","undefined","Provider","useContext"],"mappings":";;;;;;;;;;;IAQiBA,uBAAuB,MAAvBA;IACDC,kBAAkB,MAAlBA;;;6DATO;AACvB;;;;CAIC,GAAG,MAAMC,uCAAyBC,OAAMC,aAAa,CAACC;AAG5C,MAAML,0BAA0BE,uBAAuBI,QAAQ;AACnE,SAASL,qBAAqB;IACjC,OAAOE,OAAMI,UAAU,CAACL;AAC5B"}
|
@@ -25,6 +25,4 @@ const Provider = ProviderContext.Provider;
|
|
25
25
|
function useFluent() {
|
26
26
|
var _React_useContext;
|
27
27
|
return (_React_useContext = _react.useContext(ProviderContext)) !== null && _React_useContext !== void 0 ? _React_useContext : providerContextDefaultValue;
|
28
|
-
}
|
29
|
-
|
30
|
-
//# sourceMappingURL=ProviderContext.js.map
|
28
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["ProviderContext.js"],"sourcesContent":["import * as React from 'react';\n/**\n * @internal\n */ const ProviderContext = React.createContext(undefined);\nconst providerContextDefaultValue = {\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr'\n};\n/**\n * @internal\n */ export const Provider = ProviderContext.Provider;\nexport function useFluent() {\n var _React_useContext;\n return (_React_useContext = React.useContext(ProviderContext)) !== null && _React_useContext !== void 0 ? _React_useContext : providerContextDefaultValue;\n}\n"],"names":["Provider","useFluent","ProviderContext","React","createContext","undefined","providerContextDefaultValue","targetDocument","document","dir","_React_useContext","useContext"],"mappings":";;;;;;;;;;;IAUiBA,QAAQ,MAARA;IACDC,SAAS,MAATA;;;6DAXO;AACvB;;CAEC,GAAG,MAAMC,gCAAkBC,OAAMC,aAAa,CAACC;AAChD,MAAMC,8BAA8B;IAChCC,gBAAgB,OAAOC,aAAa,WAAWA,WAAWH,SAAS;IACnEI,KAAK;AACT;AAGW,MAAMT,WAAWE,gBAAgBF,QAAQ;AAC7C,SAASC,YAAY;IACxB,IAAIS;IACJ,OAAO,AAACA,CAAAA,oBAAoBP,OAAMQ,UAAU,CAACT,gBAAe,MAAO,IAAI,IAAIQ,sBAAsB,KAAK,IAAIA,oBAAoBJ,2BAA2B;AAC7J"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './ProviderContext';\n"],"names":[],"mappings":";;;;;oBAAc"}
|
@@ -4,6 +4,3 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
});
|
5
5
|
const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
6
6
|
_exportStar(require("./ProviderContext/index"), exports);
|
7
|
-
//# sourceMappingURL=ProviderContext.js.map
|
8
|
-
|
9
|
-
//# sourceMappingURL=ProviderContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["ProviderContext.js"],"sourcesContent":["export * from './ProviderContext/index';\n"],"names":[],"mappings":";;;;;oBAAc"}
|
@@ -25,6 +25,4 @@ const ThemeClassNameProvider = ThemeClassNameContext.Provider;
|
|
25
25
|
function useThemeClassName() {
|
26
26
|
var _React_useContext;
|
27
27
|
return (_React_useContext = _react.useContext(ThemeClassNameContext)) !== null && _React_useContext !== void 0 ? _React_useContext : themeClassNameContextDefaultVaue;
|
28
|
-
}
|
29
|
-
|
30
|
-
//# sourceMappingURL=ThemeClassNameContext.js.map
|
28
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["ThemeClassNameContext.js"],"sourcesContent":["import * as React from 'react';\n/**\n * @internal\n * Used to provide a CSS class that applies theme css variables\n *\n * Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals\n */ const ThemeClassNameContext = React.createContext(undefined);\nconst themeClassNameContextDefaultVaue = '';\nexport const ThemeClassNameProvider = ThemeClassNameContext.Provider;\n/**\n * @returns CSS class that applies css variables\n */ export function useThemeClassName() {\n var _React_useContext;\n return (_React_useContext = React.useContext(ThemeClassNameContext)) !== null && _React_useContext !== void 0 ? _React_useContext : themeClassNameContextDefaultVaue;\n}\n"],"names":["ThemeClassNameProvider","useThemeClassName","ThemeClassNameContext","React","createContext","undefined","themeClassNameContextDefaultVaue","Provider","_React_useContext","useContext"],"mappings":";;;;;;;;;;;IAQaA,sBAAsB,MAAtBA;IAGOC,iBAAiB,MAAjBA;;;6DAXG;AACvB;;;;;CAKC,GAAG,MAAMC,sCAAwBC,OAAMC,aAAa,CAACC;AACtD,MAAMC,mCAAmC;AAClC,MAAMN,yBAAyBE,sBAAsBK,QAAQ;AAGzD,SAASN,oBAAoB;IACpC,IAAIO;IACJ,OAAO,AAACA,CAAAA,oBAAoBL,OAAMM,UAAU,CAACP,sBAAqB,MAAO,IAAI,IAAIM,sBAAsB,KAAK,IAAIA,oBAAoBF,gCAAgC;AACxK"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './ThemeClassNameContext';\n"],"names":[],"mappings":";;;;;oBAAc"}
|
@@ -4,6 +4,3 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
});
|
5
5
|
const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
6
6
|
_exportStar(require("./ThemeClassNameContext/index"), exports);
|
7
|
-
//# sourceMappingURL=ThemeClassNameContext.js.map
|
8
|
-
|
9
|
-
//# sourceMappingURL=ThemeClassNameContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["ThemeClassNameContext.js"],"sourcesContent":["export * from './ThemeClassNameContext/index';\n"],"names":[],"mappings":";;;;;oBAAc"}
|
@@ -15,6 +15,4 @@ _export(exports, {
|
|
15
15
|
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
16
16
|
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
17
17
|
const ThemeContext = /*#__PURE__*/ _react.createContext(undefined);
|
18
|
-
const ThemeProvider = ThemeContext.Provider;
|
19
|
-
|
20
|
-
//# sourceMappingURL=ThemeContext.js.map
|
18
|
+
const ThemeProvider = ThemeContext.Provider;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["ThemeContext.js"],"sourcesContent":["import * as React from 'react';\n/**\n * @internal\n */ export const ThemeContext = React.createContext(undefined);\n/**\n * @internal\n */ export const ThemeProvider = ThemeContext.Provider;\n"],"names":["ThemeContext","ThemeProvider","React","createContext","undefined","Provider"],"mappings":";;;;;;;;;;;IAGiBA,YAAY,MAAZA;IAGAC,aAAa,MAAbA;;;6DANM;AAGZ,MAAMD,6BAAeE,OAAMC,aAAa,CAACC;AAGzC,MAAMH,gBAAgBD,aAAaK,QAAQ"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './ThemeContext';\n"],"names":[],"mappings":";;;;;oBAAc"}
|
@@ -4,6 +4,3 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
});
|
5
5
|
const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
6
6
|
_exportStar(require("./ThemeContext/index"), exports);
|
7
|
-
//# sourceMappingURL=ThemeContext.js.map
|
8
|
-
|
9
|
-
//# sourceMappingURL=ThemeContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["ThemeContext.js"],"sourcesContent":["export * from './ThemeContext/index';\n"],"names":[],"mappings":";;;;;oBAAc"}
|
@@ -23,6 +23,4 @@ const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
|
|
23
23
|
function useTooltipVisibility() {
|
24
24
|
var _React_useContext;
|
25
25
|
return (_React_useContext = _react.useContext(TooltipVisibilityContext)) !== null && _React_useContext !== void 0 ? _React_useContext : tooltipVisibilityContextDefaultValue;
|
26
|
-
}
|
27
|
-
|
28
|
-
//# sourceMappingURL=TooltipContext.js.map
|
26
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["TooltipContext.js"],"sourcesContent":["import * as React from 'react';\n/**\n * @internal\n * Context shared by all of the tooltips in the app\n */ const TooltipVisibilityContext = React.createContext(undefined);\nconst tooltipVisibilityContextDefaultValue = {};\n/**\n * @internal\n */ export const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;\nexport function useTooltipVisibility() {\n var _React_useContext;\n return (_React_useContext = React.useContext(TooltipVisibilityContext)) !== null && _React_useContext !== void 0 ? _React_useContext : tooltipVisibilityContextDefaultValue;\n}\n"],"names":["TooltipVisibilityProvider","useTooltipVisibility","TooltipVisibilityContext","React","createContext","undefined","tooltipVisibilityContextDefaultValue","Provider","_React_useContext","useContext"],"mappings":";;;;;;;;;;;IAQiBA,yBAAyB,MAAzBA;IACDC,oBAAoB,MAApBA;;;6DATO;AACvB;;;CAGC,GAAG,MAAMC,yCAA2BC,OAAMC,aAAa,CAACC;AACzD,MAAMC,uCAAuC,CAAC;AAGnC,MAAMN,4BAA4BE,yBAAyBK,QAAQ;AACvE,SAASN,uBAAuB;IACnC,IAAIO;IACJ,OAAO,AAACA,CAAAA,oBAAoBL,OAAMM,UAAU,CAACP,yBAAwB,MAAO,IAAI,IAAIM,sBAAsB,KAAK,IAAIA,oBAAoBF,oCAAoC;AAC/K"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './TooltipContext';\n"],"names":[],"mappings":";;;;;oBAAc"}
|
@@ -4,6 +4,3 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
});
|
5
5
|
const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
6
6
|
_exportStar(require("./TooltipVisibilityContext/index"), exports);
|
7
|
-
//# sourceMappingURL=TooltipVisibilityContext.js.map
|
8
|
-
|
9
|
-
//# sourceMappingURL=TooltipVisibilityContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["TooltipVisibilityContext.js"],"sourcesContent":["export * from './TooltipVisibilityContext/index';\n"],"names":[],"mappings":";;;;;oBAAc"}
|
package/lib-commonjs/index.js
CHANGED
@@ -21,7 +21,11 @@ _export(exports, {
|
|
21
21
|
useOverrides_unstable: ()=>_overridesContext.useOverrides,
|
22
22
|
CustomStyleHooksContext_unstable: ()=>_customStyleHooksContext.CustomStyleHooksContext,
|
23
23
|
CustomStyleHooksProvider_unstable: ()=>_customStyleHooksContext.CustomStyleHooksProvider,
|
24
|
-
useCustomStyleHook_unstable: ()=>_customStyleHooksContext.useCustomStyleHook
|
24
|
+
useCustomStyleHook_unstable: ()=>_customStyleHooksContext.useCustomStyleHook,
|
25
|
+
BackgroundAppearanceProvider: ()=>_backgroundAppearanceContext.BackgroundAppearanceProvider,
|
26
|
+
useBackgroundAppearance: ()=>_backgroundAppearanceContext.useBackgroundAppearance,
|
27
|
+
PortalMountNodeProvider: ()=>_portalMountNodeContext.PortalMountNodeProvider,
|
28
|
+
usePortalMountNode: ()=>_portalMountNodeContext.usePortalMountNode
|
25
29
|
});
|
26
30
|
const _themeContext = require("./ThemeContext");
|
27
31
|
const _themeClassNameContext = require("./ThemeClassNameContext");
|
@@ -29,6 +33,5 @@ const _tooltipVisibilityContext = require("./TooltipVisibilityContext");
|
|
29
33
|
const _providerContext = require("./ProviderContext");
|
30
34
|
const _overridesContext = require("./OverridesContext");
|
31
35
|
const _customStyleHooksContext = require("./CustomStyleHooksContext");
|
32
|
-
|
33
|
-
|
34
|
-
//# sourceMappingURL=index.js.map
|
36
|
+
const _backgroundAppearanceContext = require("./BackgroundAppearanceContext");
|
37
|
+
const _portalMountNodeContext = require("./PortalMountNodeContext");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["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';\nexport { BackgroundAppearanceProvider, useBackgroundAppearance } from './BackgroundAppearanceContext';\nexport { PortalMountNodeProvider, usePortalMountNode } from './PortalMountNodeContext';\n"],"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","BackgroundAppearanceProvider","useBackgroundAppearance","PortalMountNodeProvider","usePortalMountNode"],"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;IAC9IC,4BAA4B,MAA5BA,yDAA4B;IAAEC,uBAAuB,MAAvBA,oDAAuB;IACrDC,uBAAuB,MAAvBA,+CAAuB;IAAEC,kBAAkB,MAAlBA,0CAAkB;;8BAP2C;uCAC4B;0CACY;iCACxD;kCACwB;yCACuF;6CACxH;wCACV"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.6.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",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
"@fluentui/scripts-tasks": "*"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@fluentui/react-theme": "^9.1.
|
31
|
+
"@fluentui/react-theme": "^9.1.9",
|
32
32
|
"@swc/helpers": "^0.4.14"
|
33
33
|
},
|
34
34
|
"peerDependencies": {
|