@fluentui/react-shared-contexts 9.7.2 → 9.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +44 -2
- package/CHANGELOG.md +23 -3
- package/dist/index.d.ts +15 -6
- package/lib/AnnounceContext/AnnounceContext.js.map +1 -1
- package/lib/BackgroundAppearanceContext/BackgroundAppearanceContext.js.map +1 -1
- package/lib/CustomStyleHooksContext/CustomStyleHooksContext.js.map +1 -1
- package/lib/OverridesContext/OverridesContext.js.map +1 -1
- package/lib/PortalMountNodeContext.js.map +1 -1
- package/lib/ProviderContext/ProviderContext.js.map +1 -1
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib/TooltipVisibilityContext/TooltipContext.js.map +1 -1
- package/lib-commonjs/AnnounceContext/AnnounceContext.js +8 -4
- package/lib-commonjs/AnnounceContext/AnnounceContext.js.map +1 -1
- package/lib-commonjs/AnnounceContext/index.js +2 -2
- package/lib-commonjs/AnnounceContext/index.js.map +1 -1
- package/lib-commonjs/BackgroundAppearanceContext/BackgroundAppearanceContext.js +11 -5
- package/lib-commonjs/BackgroundAppearanceContext/BackgroundAppearanceContext.js.map +1 -1
- package/lib-commonjs/BackgroundAppearanceContext/index.js +2 -2
- package/lib-commonjs/BackgroundAppearanceContext/index.js.map +1 -1
- package/lib-commonjs/CustomStyleHooksContext/CustomStyleHooksContext.js +11 -5
- package/lib-commonjs/CustomStyleHooksContext/CustomStyleHooksContext.js.map +1 -1
- package/lib-commonjs/CustomStyleHooksContext/index.js +2 -2
- package/lib-commonjs/CustomStyleHooksContext/index.js.map +1 -1
- package/lib-commonjs/CustomStyleHooksContext.js +2 -2
- package/lib-commonjs/CustomStyleHooksContext.js.map +1 -1
- package/lib-commonjs/OverridesContext/OverridesContext.js +11 -5
- package/lib-commonjs/OverridesContext/OverridesContext.js.map +1 -1
- package/lib-commonjs/OverridesContext/index.js +2 -2
- package/lib-commonjs/OverridesContext/index.js.map +1 -1
- package/lib-commonjs/PortalMountNodeContext.js +8 -4
- package/lib-commonjs/PortalMountNodeContext.js.map +1 -1
- package/lib-commonjs/ProviderContext/ProviderContext.js +8 -4
- package/lib-commonjs/ProviderContext/ProviderContext.js.map +1 -1
- package/lib-commonjs/ProviderContext/index.js +2 -2
- package/lib-commonjs/ProviderContext/index.js.map +1 -1
- package/lib-commonjs/ProviderContext.js +2 -2
- package/lib-commonjs/ProviderContext.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js +8 -4
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext/index.js +2 -2
- package/lib-commonjs/ThemeClassNameContext/index.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext.js +2 -2
- package/lib-commonjs/ThemeClassNameContext.js.map +1 -1
- package/lib-commonjs/ThemeContext/ThemeContext.js +8 -4
- package/lib-commonjs/ThemeContext/ThemeContext.js.map +1 -1
- package/lib-commonjs/ThemeContext/index.js +2 -2
- package/lib-commonjs/ThemeContext/index.js.map +1 -1
- package/lib-commonjs/ThemeContext.js +2 -2
- package/lib-commonjs/ThemeContext.js.map +1 -1
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js +8 -4
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js.map +1 -1
- package/lib-commonjs/TooltipVisibilityContext/index.js +2 -2
- package/lib-commonjs/TooltipVisibilityContext/index.js.map +1 -1
- package/lib-commonjs/TooltipVisibilityContext.js +2 -2
- package/lib-commonjs/TooltipVisibilityContext.js.map +1 -1
- package/lib-commonjs/index.js +66 -28
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,49 @@
|
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "Wed,
|
5
|
+
"date": "Wed, 20 Sep 2023 14:13:58 GMT",
|
6
|
+
"tag": "@fluentui/react-shared-contexts_v9.8.0",
|
7
|
+
"version": "9.8.0",
|
8
|
+
"comments": {
|
9
|
+
"minor": [
|
10
|
+
{
|
11
|
+
"author": "marcosvmmoura@gmail.com",
|
12
|
+
"package": "@fluentui/react-shared-contexts",
|
13
|
+
"commit": "921694374c78c37ecf18d7bb99000bb0bb67551b",
|
14
|
+
"comment": "feat: add custom styling hooks for Drawer subcomponents"
|
15
|
+
}
|
16
|
+
]
|
17
|
+
}
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"date": "Tue, 05 Sep 2023 13:29:02 GMT",
|
21
|
+
"tag": "@fluentui/react-shared-contexts_v9.7.3",
|
22
|
+
"version": "9.7.3",
|
23
|
+
"comments": {
|
24
|
+
"patch": [
|
25
|
+
{
|
26
|
+
"author": "bernardo.sunderhus@gmail.com",
|
27
|
+
"package": "@fluentui/react-shared-contexts",
|
28
|
+
"commit": "b93c2ac22355b6cb6f33dd509c6cd9c21f4fffc8",
|
29
|
+
"comment": "bumps @swc/helpers version to 0.5.1"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"author": "bernardo.sunderhus@gmail.com",
|
33
|
+
"package": "@fluentui/react-shared-contexts",
|
34
|
+
"commit": "eea6d93a62249ba4fba3347fb291c67ee1a3fb24",
|
35
|
+
"comment": "bumps react peer dependencies to v16.14.0"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"author": "beachball",
|
39
|
+
"package": "@fluentui/react-shared-contexts",
|
40
|
+
"comment": "Bump @fluentui/react-theme to v9.1.12",
|
41
|
+
"commit": "da959e66f36b429e40ae61810d08dc71c16e154a"
|
42
|
+
}
|
43
|
+
]
|
44
|
+
}
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"date": "Wed, 09 Aug 2023 13:17:11 GMT",
|
6
48
|
"tag": "@fluentui/react-shared-contexts_v9.7.2",
|
7
49
|
"version": "9.7.2",
|
8
50
|
"comments": {
|
@@ -11,7 +53,7 @@
|
|
11
53
|
"author": "beachball",
|
12
54
|
"package": "@fluentui/react-shared-contexts",
|
13
55
|
"comment": "Bump @fluentui/react-theme to v9.1.11",
|
14
|
-
"commit": "
|
56
|
+
"commit": "9509e950254d838cdfe3718a775ba5c78cb8f11a"
|
15
57
|
}
|
16
58
|
]
|
17
59
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,17 +1,37 @@
|
|
1
1
|
# Change Log - @fluentui/react-shared-contexts
|
2
2
|
|
3
|
-
This log was last generated on Wed,
|
3
|
+
This log was last generated on Wed, 20 Sep 2023 14:13:58 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.8.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.8.0)
|
8
|
+
|
9
|
+
Wed, 20 Sep 2023 14:13:58 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.7.3..@fluentui/react-shared-contexts_v9.8.0)
|
11
|
+
|
12
|
+
### Minor changes
|
13
|
+
|
14
|
+
- feat: add custom styling hooks for Drawer subcomponents ([PR #29041](https://github.com/microsoft/fluentui/pull/29041) by marcosvmmoura@gmail.com)
|
15
|
+
|
16
|
+
## [9.7.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.7.3)
|
17
|
+
|
18
|
+
Tue, 05 Sep 2023 13:29:02 GMT
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.7.2..@fluentui/react-shared-contexts_v9.7.3)
|
20
|
+
|
21
|
+
### Patches
|
22
|
+
|
23
|
+
- bumps @swc/helpers version to 0.5.1 ([PR #28989](https://github.com/microsoft/fluentui/pull/28989) by bernardo.sunderhus@gmail.com)
|
24
|
+
- bumps react peer dependencies to v16.14.0 ([PR #28959](https://github.com/microsoft/fluentui/pull/28959) by bernardo.sunderhus@gmail.com)
|
25
|
+
- Bump @fluentui/react-theme to v9.1.12 ([PR #29056](https://github.com/microsoft/fluentui/pull/29056) by beachball)
|
26
|
+
|
7
27
|
## [9.7.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.7.2)
|
8
28
|
|
9
|
-
Wed, 09 Aug 2023 13:11
|
29
|
+
Wed, 09 Aug 2023 13:17:11 GMT
|
10
30
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.7.1..@fluentui/react-shared-contexts_v9.7.2)
|
11
31
|
|
12
32
|
### Patches
|
13
33
|
|
14
|
-
- Bump @fluentui/react-theme to v9.1.11 ([
|
34
|
+
- Bump @fluentui/react-theme to v9.1.11 ([PR #28775](https://github.com/microsoft/fluentui/pull/28775) by beachball)
|
15
35
|
|
16
36
|
## [9.7.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.7.1)
|
17
37
|
|
package/dist/index.d.ts
CHANGED
@@ -120,10 +120,13 @@ export declare const CustomStyleHooksContext_unstable: React_2.Context<Partial<{
|
|
120
120
|
useDataGridHeaderCellStyles_unstable: CustomStyleHook;
|
121
121
|
useDataGridSelectionCellStyles_unstable: CustomStyleHook;
|
122
122
|
useDrawerStyles_unstable: CustomStyleHook;
|
123
|
-
|
123
|
+
useDrawerInlineStyles_unstable: CustomStyleHook;
|
124
|
+
useDrawerOverlayStyles_unstable: CustomStyleHook;
|
124
125
|
useDrawerHeaderStyles_unstable: CustomStyleHook;
|
125
|
-
useDrawerHeaderTitleStyles_unstable: CustomStyleHook;
|
126
126
|
useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;
|
127
|
+
useDrawerHeaderTitleStyles_unstable: CustomStyleHook;
|
128
|
+
useDrawerBodyStyles_unstable: CustomStyleHook;
|
129
|
+
useDrawerFooterStyles_unstable: CustomStyleHook;
|
127
130
|
}> | undefined>;
|
128
131
|
|
129
132
|
export declare type CustomStyleHooksContextValue_unstable = Partial<{
|
@@ -211,10 +214,13 @@ export declare type CustomStyleHooksContextValue_unstable = Partial<{
|
|
211
214
|
useDataGridHeaderCellStyles_unstable: CustomStyleHook;
|
212
215
|
useDataGridSelectionCellStyles_unstable: CustomStyleHook;
|
213
216
|
useDrawerStyles_unstable: CustomStyleHook;
|
214
|
-
|
217
|
+
useDrawerInlineStyles_unstable: CustomStyleHook;
|
218
|
+
useDrawerOverlayStyles_unstable: CustomStyleHook;
|
215
219
|
useDrawerHeaderStyles_unstable: CustomStyleHook;
|
216
|
-
useDrawerHeaderTitleStyles_unstable: CustomStyleHook;
|
217
220
|
useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;
|
221
|
+
useDrawerHeaderTitleStyles_unstable: CustomStyleHook;
|
222
|
+
useDrawerBodyStyles_unstable: CustomStyleHook;
|
223
|
+
useDrawerFooterStyles_unstable: CustomStyleHook;
|
218
224
|
}>;
|
219
225
|
|
220
226
|
/**
|
@@ -305,10 +311,13 @@ export declare const CustomStyleHooksProvider_unstable: React_2.Provider<Partial
|
|
305
311
|
useDataGridHeaderCellStyles_unstable: CustomStyleHook;
|
306
312
|
useDataGridSelectionCellStyles_unstable: CustomStyleHook;
|
307
313
|
useDrawerStyles_unstable: CustomStyleHook;
|
308
|
-
|
314
|
+
useDrawerInlineStyles_unstable: CustomStyleHook;
|
315
|
+
useDrawerOverlayStyles_unstable: CustomStyleHook;
|
309
316
|
useDrawerHeaderStyles_unstable: CustomStyleHook;
|
310
|
-
useDrawerHeaderTitleStyles_unstable: CustomStyleHook;
|
311
317
|
useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;
|
318
|
+
useDrawerHeaderTitleStyles_unstable: CustomStyleHook;
|
319
|
+
useDrawerBodyStyles_unstable: CustomStyleHook;
|
320
|
+
useDrawerFooterStyles_unstable: CustomStyleHook;
|
312
321
|
}> | undefined>;
|
313
322
|
|
314
323
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["AnnounceContext.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type AnnounceOptions = {\n alert?: boolean;\n batchId?: string;\n polite?: boolean;\n priority?: number;\n};\n\n/**\n * @internal\n */\nexport type AnnounceContextValue = {\n announce: (message: string, options?: AnnounceOptions) => void;\n};\n\n/**\n * @internal\n */\nconst AnnounceContext = React.createContext<AnnounceContextValue | undefined>(undefined);\n\n/**\n * @internal\n */\nexport const AnnounceProvider = AnnounceContext.Provider;\n\nexport function useAnnounce(): AnnounceContextValue {\n return React.useContext(AnnounceContext) ?? { announce: () => undefined };\n}\n"],"names":["React","AnnounceContext","createContext","undefined","AnnounceProvider","Provider","useAnnounce","useContext","announce"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAgB/B;;CAEC,GACD,MAAMC,kBAAkBD,MAAME,aAAa,CAAmCC;AAE9E;;CAEC,GACD,OAAO,MAAMC,mBAAmBH,gBAAgBI,QAAQ,CAAC;AAEzD,OAAO,SAASC
|
1
|
+
{"version":3,"sources":["AnnounceContext.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type AnnounceOptions = {\n alert?: boolean;\n batchId?: string;\n polite?: boolean;\n priority?: number;\n};\n\n/**\n * @internal\n */\nexport type AnnounceContextValue = {\n announce: (message: string, options?: AnnounceOptions) => void;\n};\n\n/**\n * @internal\n */\nconst AnnounceContext = React.createContext<AnnounceContextValue | undefined>(undefined);\n\n/**\n * @internal\n */\nexport const AnnounceProvider = AnnounceContext.Provider;\n\nexport function useAnnounce(): AnnounceContextValue {\n return React.useContext(AnnounceContext) ?? { announce: () => undefined };\n}\n"],"names":["React","AnnounceContext","createContext","undefined","AnnounceProvider","Provider","useAnnounce","useContext","announce"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAgB/B;;CAEC,GACD,MAAMC,kBAAkBD,MAAME,aAAa,CAAmCC;AAE9E;;CAEC,GACD,OAAO,MAAMC,mBAAmBH,gBAAgBI,QAAQ,CAAC;AAEzD,OAAO,SAASC;QACPN;IAAP,OAAOA,CAAAA,oBAAAA,MAAMO,UAAU,CAACN,8BAAjBD,+BAAAA,oBAAqC;QAAEQ,UAAU,IAAML;IAAU;AAC1E"}
|
@@ -1 +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
|
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;IACd,OAAON,MAAMO,UAAU,CAACN;AAC1B"}
|
@@ -1 +1 @@
|
|
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
|
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 useDrawerInlineStyles_unstable: CustomStyleHook;\n useDrawerOverlayStyles_unstable: CustomStyleHook;\n useDrawerHeaderStyles_unstable: CustomStyleHook;\n useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;\n useDrawerHeaderTitleStyles_unstable: CustomStyleHook;\n useDrawerBodyStyles_unstable: CustomStyleHook;\n useDrawerFooterStyles_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;AAmG/B;;CAEC,GACD,OAAO,MAAMC,0BAA0BD,MAAME,aAAa,CAA2CC,WAAW;AAEhH,MAAMC,OAAO,KAAO;AAEpB;;CAEC,GACD,OAAO,MAAMC,2BAA2BJ,wBAAwBK,QAAQ,CAAC;AAEzE;;;;CAIC,GACD,OAAO,MAAMC,qBAAqB,CAACC;QAC1BR;QAAAA;IAAP,OAAOA,CAAAA,0BAAAA,oBAAAA,MAAMS,UAAU,CAACR,sCAAjBD,wCAAAA,iBAA2C,CAACQ,KAAK,cAAjDR,oCAAAA,yBAAqDI;AAC9D,EAAE"}
|
@@ -1 +1 @@
|
|
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
|
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;QACPN;IAAP,OAAOA,CAAAA,oBAAAA,MAAMO,UAAU,CAACN,+BAAjBD,+BAAAA,oBAAsC,CAAC;AAChD"}
|
@@ -1 +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
|
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;IACd,OAAON,MAAMO,UAAU,CAACN;AAC1B"}
|
@@ -1 +1 @@
|
|
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
|
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;IAC1DI,KAAK;AACP;AAEA;;CAEC,GACD,OAAO,MAAMC,WAAWP,gBAAgBO,QAAQ,CAAC;AAEjD,OAAO,SAASC;QACPT;IAAP,OAAOA,CAAAA,oBAAAA,MAAMU,UAAU,CAACT,8BAAjBD,+BAAAA,oBAAqCI;AAC9C"}
|
@@ -1 +1 @@
|
|
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
|
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;QACPP;IAAP,OAAOA,CAAAA,oBAAAA,MAAMQ,UAAU,CAACP,oCAAjBD,+BAAAA,oBAA2CI;AACpD"}
|
@@ -1 +1 @@
|
|
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
|
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;QACPP;IAAP,OAAOA,CAAAA,oBAAAA,MAAMQ,UAAU,CAACP,uCAAjBD,+BAAAA,oBAA8CI;AACvD"}
|
@@ -9,11 +9,15 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
-
AnnounceProvider: ()
|
13
|
-
|
12
|
+
AnnounceProvider: function() {
|
13
|
+
return AnnounceProvider;
|
14
|
+
},
|
15
|
+
useAnnounce: function() {
|
16
|
+
return useAnnounce;
|
17
|
+
}
|
14
18
|
});
|
15
|
-
const
|
16
|
-
const _react = /*#__PURE__*/
|
19
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
20
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
17
21
|
/**
|
18
22
|
* @internal
|
19
23
|
*/ const AnnounceContext = /*#__PURE__*/ _react.createContext(undefined);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["AnnounceContext.js"],"sourcesContent":["import * as React from 'react';\n/**\n * @internal\n */ const AnnounceContext = React.createContext(undefined);\n/**\n * @internal\n */ export const AnnounceProvider = AnnounceContext.Provider;\nexport function useAnnounce() {\n var _React_useContext;\n return (_React_useContext = React.useContext(AnnounceContext)) !== null && _React_useContext !== void 0 ? _React_useContext : {\n announce: ()=>undefined\n };\n}\n"],"names":["AnnounceProvider","useAnnounce","AnnounceContext","React","createContext","undefined","Provider","_React_useContext","useContext","announce"],"mappings":";;;;;;;;;;;IAMiBA,gBAAgB
|
1
|
+
{"version":3,"sources":["AnnounceContext.js"],"sourcesContent":["import * as React from 'react';\n/**\n * @internal\n */ const AnnounceContext = React.createContext(undefined);\n/**\n * @internal\n */ export const AnnounceProvider = AnnounceContext.Provider;\nexport function useAnnounce() {\n var _React_useContext;\n return (_React_useContext = React.useContext(AnnounceContext)) !== null && _React_useContext !== void 0 ? _React_useContext : {\n announce: ()=>undefined\n };\n}\n"],"names":["AnnounceProvider","useAnnounce","AnnounceContext","React","createContext","undefined","Provider","_React_useContext","useContext","announce"],"mappings":";;;;;;;;;;;IAMiBA,gBAAgB;eAAhBA;;IACDC,WAAW;eAAXA;;;;iEAPO;AACvB;;CAEC,GAAG,MAAMC,gCAAkBC,OAAMC,aAAa,CAACC;AAGrC,MAAML,mBAAmBE,gBAAgBI,QAAQ;AACrD,SAASL;IACZ,IAAIM;IACJ,OAAO,AAACA,CAAAA,oBAAoBJ,OAAMK,UAAU,CAACN,gBAAe,MAAO,QAAQK,sBAAsB,KAAK,IAAIA,oBAAoB;QAC1HE,UAAU,IAAIJ;IAClB;AACJ"}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
const
|
6
|
-
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
6
|
+
_export_star._(require("./AnnounceContext"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './AnnounceContext';\n"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './AnnounceContext';\n"],"names":[],"mappings":";;;;;uBAAc"}
|
@@ -9,12 +9,18 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
-
BackgroundAppearanceContext: ()
|
13
|
-
|
14
|
-
|
12
|
+
BackgroundAppearanceContext: function() {
|
13
|
+
return BackgroundAppearanceContext;
|
14
|
+
},
|
15
|
+
BackgroundAppearanceProvider: function() {
|
16
|
+
return BackgroundAppearanceProvider;
|
17
|
+
},
|
18
|
+
useBackgroundAppearance: function() {
|
19
|
+
return useBackgroundAppearance;
|
20
|
+
}
|
15
21
|
});
|
16
|
-
const
|
17
|
-
const _react = /*#__PURE__*/
|
22
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
23
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
18
24
|
const BackgroundAppearanceContext = /*#__PURE__*/ _react.createContext(undefined);
|
19
25
|
const BackgroundAppearanceProvider = BackgroundAppearanceContext.Provider;
|
20
26
|
function useBackgroundAppearance() {
|
@@ -1 +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
|
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;eAA3BA;;IAGAC,4BAA4B;eAA5BA;;IACDC,uBAAuB;eAAvBA;;;;iEAPO;AAGZ,MAAMF,4CAA8BG,OAAMC,aAAa,CAACC;AAGxD,MAAMJ,+BAA+BD,4BAA4BM,QAAQ;AAC7E,SAASJ;IACZ,OAAOC,OAAMI,UAAU,CAACP;AAC5B"}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
const
|
6
|
-
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
6
|
+
_export_star._(require("./BackgroundAppearanceContext"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './BackgroundAppearanceContext';\n"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './BackgroundAppearanceContext';\n"],"names":[],"mappings":";;;;;uBAAc"}
|
@@ -9,12 +9,18 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
-
CustomStyleHooksContext: ()
|
13
|
-
|
14
|
-
|
12
|
+
CustomStyleHooksContext: function() {
|
13
|
+
return CustomStyleHooksContext;
|
14
|
+
},
|
15
|
+
CustomStyleHooksProvider: function() {
|
16
|
+
return CustomStyleHooksProvider;
|
17
|
+
},
|
18
|
+
useCustomStyleHook: function() {
|
19
|
+
return useCustomStyleHook;
|
20
|
+
}
|
15
21
|
});
|
16
|
-
const
|
17
|
-
const _react = /*#__PURE__*/
|
22
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
23
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
18
24
|
const CustomStyleHooksContext = /*#__PURE__*/ _react.createContext(undefined);
|
19
25
|
const noop = ()=>{};
|
20
26
|
const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
|
@@ -1 +1 @@
|
|
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
|
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;eAAvBA;;IAIAC,wBAAwB;eAAxBA;;IAKAC,kBAAkB;eAAlBA;;;;iEAZ2B;AAGjC,MAAMF,wCAA0BG,OAAMC,aAAa,CAACC;AAC/D,MAAMC,OAAO,KAAK;AAGP,MAAML,2BAA2BD,wBAAwBO,QAAQ;AAKjE,MAAML,qBAAqB,CAACM;IACnC,IAAIC;IACJ,IAAIC;IACJ,OAAO,AAACA,CAAAA,yBAAyB,AAACD,CAAAA,oBAAoBN,OAAMQ,UAAU,CAACX,wBAAuB,MAAO,QAAQS,sBAAsB,KAAK,IAAI,KAAK,IAAIA,iBAAiB,CAACD,KAAK,AAAD,MAAO,QAAQE,2BAA2B,KAAK,IAAIA,yBAAyBJ;AAC3P"}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
const
|
6
|
-
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
6
|
+
_export_star._(require("./CustomStyleHooksContext"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './CustomStyleHooksContext';\n"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './CustomStyleHooksContext';\n"],"names":[],"mappings":";;;;;uBAAc"}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
const
|
6
|
-
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
6
|
+
_export_star._(require("./CustomStyleHooksContext/index"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["CustomStyleHooksContext.js"],"sourcesContent":["export * from './CustomStyleHooksContext/index';\n"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"sources":["CustomStyleHooksContext.js"],"sourcesContent":["export * from './CustomStyleHooksContext/index';\n"],"names":[],"mappings":";;;;;uBAAc"}
|
@@ -9,12 +9,18 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
-
OverridesContext: ()
|
13
|
-
|
14
|
-
|
12
|
+
OverridesContext: function() {
|
13
|
+
return OverridesContext;
|
14
|
+
},
|
15
|
+
OverridesProvider: function() {
|
16
|
+
return OverridesProvider;
|
17
|
+
},
|
18
|
+
useOverrides: function() {
|
19
|
+
return useOverrides;
|
20
|
+
}
|
15
21
|
});
|
16
|
-
const
|
17
|
-
const _react = /*#__PURE__*/
|
22
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
23
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
18
24
|
const OverridesContext = /*#__PURE__*/ _react.createContext(undefined);
|
19
25
|
const OverridesProvider = OverridesContext.Provider;
|
20
26
|
function useOverrides() {
|
@@ -1 +1 @@
|
|
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
|
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;eAAhBA;;IAGAC,iBAAiB;eAAjBA;;IACDC,YAAY;eAAZA;;;;iEAPO;AAGZ,MAAMF,iCAAmBG,OAAMC,aAAa,CAACC;AAG7C,MAAMJ,oBAAoBD,iBAAiBM,QAAQ;AACvD,SAASJ;IACZ,IAAIK;IACJ,OAAO,AAACA,CAAAA,oBAAoBJ,OAAMK,UAAU,CAACR,iBAAgB,MAAO,QAAQO,sBAAsB,KAAK,IAAIA,oBAAoB,CAAC;AACpI"}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
const
|
6
|
-
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
6
|
+
_export_star._(require("./OverridesContext"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './OverridesContext';\n"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './OverridesContext';\n"],"names":[],"mappings":";;;;;uBAAc"}
|
@@ -9,11 +9,15 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
-
PortalMountNodeProvider: ()
|
13
|
-
|
12
|
+
PortalMountNodeProvider: function() {
|
13
|
+
return PortalMountNodeProvider;
|
14
|
+
},
|
15
|
+
usePortalMountNode: function() {
|
16
|
+
return usePortalMountNode;
|
17
|
+
}
|
14
18
|
});
|
15
|
-
const
|
16
|
-
const _react = /*#__PURE__*/
|
19
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
20
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
17
21
|
/**
|
18
22
|
* Provides a mount node for portals to render into.
|
19
23
|
*
|
@@ -1 +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
|
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;eAAvBA;;IACDC,kBAAkB;eAAlBA;;;;iEATO;AACvB;;;;CAIC,GAAG,MAAMC,uCAAyBC,OAAMC,aAAa,CAACC;AAG5C,MAAML,0BAA0BE,uBAAuBI,QAAQ;AACnE,SAASL;IACZ,OAAOE,OAAMI,UAAU,CAACL;AAC5B"}
|
@@ -9,11 +9,15 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
-
Provider: ()
|
13
|
-
|
12
|
+
Provider: function() {
|
13
|
+
return Provider;
|
14
|
+
},
|
15
|
+
useFluent: function() {
|
16
|
+
return useFluent;
|
17
|
+
}
|
14
18
|
});
|
15
|
-
const
|
16
|
-
const _react = /*#__PURE__*/
|
19
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
20
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
17
21
|
/**
|
18
22
|
* @internal
|
19
23
|
*/ const ProviderContext = /*#__PURE__*/ _react.createContext(undefined);
|
@@ -1 +1 @@
|
|
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
|
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;eAARA;;IACDC,SAAS;eAATA;;;;iEAXO;AACvB;;CAEC,GAAG,MAAMC,gCAAkBC,OAAMC,aAAa,CAACC;AAChD,MAAMC,8BAA8B;IAChCC,gBAAgB,OAAOC,aAAa,WAAWA,WAAWH;IAC1DI,KAAK;AACT;AAGW,MAAMT,WAAWE,gBAAgBF,QAAQ;AAC7C,SAASC;IACZ,IAAIS;IACJ,OAAO,AAACA,CAAAA,oBAAoBP,OAAMQ,UAAU,CAACT,gBAAe,MAAO,QAAQQ,sBAAsB,KAAK,IAAIA,oBAAoBJ;AAClI"}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
const
|
6
|
-
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
6
|
+
_export_star._(require("./ProviderContext"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './ProviderContext';\n"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './ProviderContext';\n"],"names":[],"mappings":";;;;;uBAAc"}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
const
|
6
|
-
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
6
|
+
_export_star._(require("./ProviderContext/index"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ProviderContext.js"],"sourcesContent":["export * from './ProviderContext/index';\n"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"sources":["ProviderContext.js"],"sourcesContent":["export * from './ProviderContext/index';\n"],"names":[],"mappings":";;;;;uBAAc"}
|
@@ -9,11 +9,15 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
-
ThemeClassNameProvider: ()
|
13
|
-
|
12
|
+
ThemeClassNameProvider: function() {
|
13
|
+
return ThemeClassNameProvider;
|
14
|
+
},
|
15
|
+
useThemeClassName: function() {
|
16
|
+
return useThemeClassName;
|
17
|
+
}
|
14
18
|
});
|
15
|
-
const
|
16
|
-
const _react = /*#__PURE__*/
|
19
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
20
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
17
21
|
/**
|
18
22
|
* @internal
|
19
23
|
* Used to provide a CSS class that applies theme css variables
|
@@ -1 +1 @@
|
|
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
|
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;eAAtBA;;IAGOC,iBAAiB;eAAjBA;;;;iEAXG;AACvB;;;;;CAKC,GAAG,MAAMC,sCAAwBC,OAAMC,aAAa,CAACC;AACtD,MAAMC,mCAAmC;AAClC,MAAMN,yBAAyBE,sBAAsBK,QAAQ;AAGzD,SAASN;IAChB,IAAIO;IACJ,OAAO,AAACA,CAAAA,oBAAoBL,OAAMM,UAAU,CAACP,sBAAqB,MAAO,QAAQM,sBAAsB,KAAK,IAAIA,oBAAoBF;AACxI"}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
const
|
6
|
-
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
6
|
+
_export_star._(require("./ThemeClassNameContext"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './ThemeClassNameContext';\n"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './ThemeClassNameContext';\n"],"names":[],"mappings":";;;;;uBAAc"}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
const
|
6
|
-
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
6
|
+
_export_star._(require("./ThemeClassNameContext/index"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeClassNameContext.js"],"sourcesContent":["export * from './ThemeClassNameContext/index';\n"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"sources":["ThemeClassNameContext.js"],"sourcesContent":["export * from './ThemeClassNameContext/index';\n"],"names":[],"mappings":";;;;;uBAAc"}
|
@@ -9,10 +9,14 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
-
ThemeContext: ()
|
13
|
-
|
12
|
+
ThemeContext: function() {
|
13
|
+
return ThemeContext;
|
14
|
+
},
|
15
|
+
ThemeProvider: function() {
|
16
|
+
return ThemeProvider;
|
17
|
+
}
|
14
18
|
});
|
15
|
-
const
|
16
|
-
const _react = /*#__PURE__*/
|
19
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
20
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
17
21
|
const ThemeContext = /*#__PURE__*/ _react.createContext(undefined);
|
18
22
|
const ThemeProvider = ThemeContext.Provider;
|
@@ -1 +1 @@
|
|
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
|
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;eAAZA;;IAGAC,aAAa;eAAbA;;;;iEANM;AAGZ,MAAMD,6BAAeE,OAAMC,aAAa,CAACC;AAGzC,MAAMH,gBAAgBD,aAAaK,QAAQ"}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
const
|
6
|
-
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
6
|
+
_export_star._(require("./ThemeContext"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './ThemeContext';\n"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './ThemeContext';\n"],"names":[],"mappings":";;;;;uBAAc"}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
const
|
6
|
-
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
6
|
+
_export_star._(require("./ThemeContext/index"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeContext.js"],"sourcesContent":["export * from './ThemeContext/index';\n"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"sources":["ThemeContext.js"],"sourcesContent":["export * from './ThemeContext/index';\n"],"names":[],"mappings":";;;;;uBAAc"}
|
@@ -9,11 +9,15 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
-
TooltipVisibilityProvider: ()
|
13
|
-
|
12
|
+
TooltipVisibilityProvider: function() {
|
13
|
+
return TooltipVisibilityProvider;
|
14
|
+
},
|
15
|
+
useTooltipVisibility: function() {
|
16
|
+
return useTooltipVisibility;
|
17
|
+
}
|
14
18
|
});
|
15
|
-
const
|
16
|
-
const _react = /*#__PURE__*/
|
19
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
20
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
17
21
|
/**
|
18
22
|
* @internal
|
19
23
|
* Context shared by all of the tooltips in the app
|
@@ -1 +1 @@
|
|
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
|
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;eAAzBA;;IACDC,oBAAoB;eAApBA;;;;iEATO;AACvB;;;CAGC,GAAG,MAAMC,yCAA2BC,OAAMC,aAAa,CAACC;AACzD,MAAMC,uCAAuC,CAAC;AAGnC,MAAMN,4BAA4BE,yBAAyBK,QAAQ;AACvE,SAASN;IACZ,IAAIO;IACJ,OAAO,AAACA,CAAAA,oBAAoBL,OAAMM,UAAU,CAACP,yBAAwB,MAAO,QAAQM,sBAAsB,KAAK,IAAIA,oBAAoBF;AAC3I"}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
const
|
6
|
-
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
6
|
+
_export_star._(require("./TooltipContext"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './TooltipContext';\n"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './TooltipContext';\n"],"names":[],"mappings":";;;;;uBAAc"}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
const
|
6
|
-
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
6
|
+
_export_star._(require("./TooltipVisibilityContext/index"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["TooltipVisibilityContext.js"],"sourcesContent":["export * from './TooltipVisibilityContext/index';\n"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"sources":["TooltipVisibilityContext.js"],"sourcesContent":["export * from './TooltipVisibilityContext/index';\n"],"names":[],"mappings":";;;;;uBAAc"}
|
package/lib-commonjs/index.js
CHANGED
@@ -9,32 +9,70 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
-
ThemeContext_unstable: ()
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
12
|
+
ThemeContext_unstable: function() {
|
13
|
+
return _ThemeContext.ThemeContext;
|
14
|
+
},
|
15
|
+
ThemeProvider_unstable: function() {
|
16
|
+
return _ThemeContext.ThemeProvider;
|
17
|
+
},
|
18
|
+
ThemeClassNameProvider_unstable: function() {
|
19
|
+
return _ThemeClassNameContext.ThemeClassNameProvider;
|
20
|
+
},
|
21
|
+
useThemeClassName_unstable: function() {
|
22
|
+
return _ThemeClassNameContext.useThemeClassName;
|
23
|
+
},
|
24
|
+
TooltipVisibilityProvider_unstable: function() {
|
25
|
+
return _TooltipVisibilityContext.TooltipVisibilityProvider;
|
26
|
+
},
|
27
|
+
useTooltipVisibility_unstable: function() {
|
28
|
+
return _TooltipVisibilityContext.useTooltipVisibility;
|
29
|
+
},
|
30
|
+
Provider_unstable: function() {
|
31
|
+
return _ProviderContext.Provider;
|
32
|
+
},
|
33
|
+
useFluent_unstable: function() {
|
34
|
+
return _ProviderContext.useFluent;
|
35
|
+
},
|
36
|
+
OverridesProvider_unstable: function() {
|
37
|
+
return _OverridesContext.OverridesProvider;
|
38
|
+
},
|
39
|
+
useOverrides_unstable: function() {
|
40
|
+
return _OverridesContext.useOverrides;
|
41
|
+
},
|
42
|
+
CustomStyleHooksContext_unstable: function() {
|
43
|
+
return _CustomStyleHooksContext.CustomStyleHooksContext;
|
44
|
+
},
|
45
|
+
CustomStyleHooksProvider_unstable: function() {
|
46
|
+
return _CustomStyleHooksContext.CustomStyleHooksProvider;
|
47
|
+
},
|
48
|
+
useCustomStyleHook_unstable: function() {
|
49
|
+
return _CustomStyleHooksContext.useCustomStyleHook;
|
50
|
+
},
|
51
|
+
BackgroundAppearanceProvider: function() {
|
52
|
+
return _BackgroundAppearanceContext.BackgroundAppearanceProvider;
|
53
|
+
},
|
54
|
+
useBackgroundAppearance: function() {
|
55
|
+
return _BackgroundAppearanceContext.useBackgroundAppearance;
|
56
|
+
},
|
57
|
+
PortalMountNodeProvider: function() {
|
58
|
+
return _PortalMountNodeContext.PortalMountNodeProvider;
|
59
|
+
},
|
60
|
+
usePortalMountNode: function() {
|
61
|
+
return _PortalMountNodeContext.usePortalMountNode;
|
62
|
+
},
|
63
|
+
AnnounceProvider_unstable: function() {
|
64
|
+
return _AnnounceContext.AnnounceProvider;
|
65
|
+
},
|
66
|
+
useAnnounce_unstable: function() {
|
67
|
+
return _AnnounceContext.useAnnounce;
|
68
|
+
}
|
31
69
|
});
|
32
|
-
const
|
33
|
-
const
|
34
|
-
const
|
35
|
-
const
|
36
|
-
const
|
37
|
-
const
|
38
|
-
const
|
39
|
-
const
|
40
|
-
const
|
70
|
+
const _ThemeContext = require("./ThemeContext");
|
71
|
+
const _ThemeClassNameContext = require("./ThemeClassNameContext");
|
72
|
+
const _TooltipVisibilityContext = require("./TooltipVisibilityContext");
|
73
|
+
const _ProviderContext = require("./ProviderContext");
|
74
|
+
const _OverridesContext = require("./OverridesContext");
|
75
|
+
const _CustomStyleHooksContext = require("./CustomStyleHooksContext");
|
76
|
+
const _BackgroundAppearanceContext = require("./BackgroundAppearanceContext");
|
77
|
+
const _PortalMountNodeContext = require("./PortalMountNodeContext");
|
78
|
+
const _AnnounceContext = require("./AnnounceContext");
|
@@ -1 +1 @@
|
|
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';\nexport { AnnounceProvider as AnnounceProvider_unstable, useAnnounce as useAnnounce_unstable } from './AnnounceContext';\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","AnnounceProvider_unstable","AnnounceProvider","useAnnounce_unstable","useAnnounce"],"mappings":";;;;;;;;;;;IAAyBA,qBAAqB,
|
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';\nexport { AnnounceProvider as AnnounceProvider_unstable, useAnnounce as useAnnounce_unstable } from './AnnounceContext';\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","AnnounceProvider_unstable","AnnounceProvider","useAnnounce_unstable","useAnnounce"],"mappings":";;;;;;;;;;;IAAyBA,qBAAqB;eAArCC,0BAAY;;IAA4CC,sBAAsB;eAAvCC,2BAAa;;IAC1BC,+BAA+B;eAAzDC,6CAAsB;;IAA0DC,0BAA0B;eAA/CC,wCAAiB;;IAC/CC,kCAAkC;eAA/DC,mDAAyB;;IAAgEC,6BAA6B;eAArDC,8CAAoB;;IACzEC,iBAAiB;eAA7BC,yBAAQ;;IAAoCC,kBAAkB;eAA/BC,0BAAS;;IACnBC,0BAA0B;eAA/CC,mCAAiB;;IAAgDC,qBAAqB;eAArCC,8BAAY;;IAClCC,gCAAgC;eAA3DC,gDAAuB;;IAAkEC,iCAAiC;eAA7DC,iDAAwB;;IAA6DC,2BAA2B;eAAjDC,2CAAkB;;IAC9IC,4BAA4B;eAA5BA,yDAA4B;;IAAEC,uBAAuB;eAAvBA,oDAAuB;;IACrDC,uBAAuB;eAAvBA,+CAAuB;;IAAEC,kBAAkB;eAAlBA,0CAAkB;;IACvBC,yBAAyB;eAA7CC,iCAAgB;;IAA8CC,oBAAoB;eAAnCC,4BAAW;;;8BAR4B;uCAC4B;0CACY;iCACxD;kCACwB;yCACuF;6CACxH;wCACV;iCACuC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.8.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,12 +28,12 @@
|
|
28
28
|
"@fluentui/scripts-tasks": "*"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@fluentui/react-theme": "^9.1.
|
32
|
-
"@swc/helpers": "^0.
|
31
|
+
"@fluentui/react-theme": "^9.1.12",
|
32
|
+
"@swc/helpers": "^0.5.1"
|
33
33
|
},
|
34
34
|
"peerDependencies": {
|
35
|
-
"@types/react": ">=16.
|
36
|
-
"react": ">=16.
|
35
|
+
"@types/react": ">=16.14.0 <19.0.0",
|
36
|
+
"react": ">=16.14.0 <19.0.0"
|
37
37
|
},
|
38
38
|
"beachball": {
|
39
39
|
"disallowedChangeTypes": [
|