@fluentui/react-shared-contexts 0.0.0-nightly-20240712-1436.1 → 0.0.0-nightly-20240716-0408.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -5
- package/dist/index.d.ts +0 -11
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/index.js +0 -7
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +2 -2
- package/lib/MaterialContext.js +0 -10
- package/lib/MaterialContext.js.map +0 -1
- package/lib-commonjs/MaterialContext.js +0 -28
- package/lib-commonjs/MaterialContext.js.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,18 +1,27 @@
|
|
1
1
|
# Change Log - @fluentui/react-shared-contexts
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 16 Jul 2024 04:18:27 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-nightly-
|
7
|
+
## [0.0.0-nightly-20240716-0408.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v0.0.0-nightly-20240716-0408.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.19.
|
9
|
+
Tue, 16 Jul 2024 04:18:27 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.19.1..@fluentui/react-shared-contexts_v0.0.0-nightly-20240716-0408.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
14
|
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
|
15
|
-
- Bump @fluentui/react-theme to v0.0.0-nightly-
|
15
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly-20240716-0408.1 ([commit](https://github.com/microsoft/fluentui/commit/065d6f514f238566b6bd9ea4c6e3f7a9688ff122) by beachball)
|
16
|
+
|
17
|
+
## [9.19.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.19.1)
|
18
|
+
|
19
|
+
Mon, 15 Jul 2024 17:25:45 GMT
|
20
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.19.0..@fluentui/react-shared-contexts_v9.19.1)
|
21
|
+
|
22
|
+
### Patches
|
23
|
+
|
24
|
+
- fix: revert incorectly set npm versions in all packages ([PR #31937](https://github.com/microsoft/fluentui/pull/31937) by martinhochel@microsoft.com)
|
16
25
|
|
17
26
|
## [9.19.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.19.0)
|
18
27
|
|
package/dist/index.d.ts
CHANGED
@@ -476,15 +476,6 @@ export declare const CustomStyleHooksProvider_unstable: React_2.Provider<Partial
|
|
476
476
|
useSwatchPickerStyles_unstable: CustomStyleHook;
|
477
477
|
}> | undefined>;
|
478
478
|
|
479
|
-
export declare type Material = 'tertiary';
|
480
|
-
|
481
|
-
export declare type MaterialContextValue = Material | undefined;
|
482
|
-
|
483
|
-
/**
|
484
|
-
* @internal
|
485
|
-
*/
|
486
|
-
export declare const MaterialProvider: React_2.Provider<MaterialContextValue>;
|
487
|
-
|
488
479
|
/**
|
489
480
|
* @internal
|
490
481
|
*/
|
@@ -568,8 +559,6 @@ export declare const useCustomStyleHook_unstable: (hook: keyof CustomStyleHooksC
|
|
568
559
|
|
569
560
|
export declare function useFluent_unstable(): ProviderContextValue_unstable;
|
570
561
|
|
571
|
-
export declare function useMaterial(): MaterialContextValue;
|
572
|
-
|
573
562
|
export declare function useOverrides_unstable(): OverridesContextValue_unstable;
|
574
563
|
|
575
564
|
export declare function usePortalMountNode(): PortalMountNodeContextValue;
|
package/lib/index.js
CHANGED
@@ -7,4 +7,3 @@ export { CustomStyleHooksContext as CustomStyleHooksContext_unstable, CustomStyl
|
|
7
7
|
export { BackgroundAppearanceProvider, useBackgroundAppearance } from './BackgroundAppearanceContext';
|
8
8
|
export { PortalMountNodeProvider, usePortalMountNode } from './PortalMountNodeContext';
|
9
9
|
export { AnnounceProvider, /** @deprecated Use AnnounceProvider instead. */ AnnounceProvider as AnnounceProvider_unstable, useAnnounce, /** @deprecated Use useAnnounce instead. */ useAnnounce as useAnnounce_unstable } from './AnnounceContext';
|
10
|
-
export { MaterialProvider, useMaterial } from './MaterialContext';
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
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\nexport {\n AnnounceProvider,\n /** @deprecated Use AnnounceProvider instead. */\n AnnounceProvider as AnnounceProvider_unstable,\n useAnnounce,\n /** @deprecated Use useAnnounce instead. */\n useAnnounce as useAnnounce_unstable,\n} from './AnnounceContext';\nexport type {\n AnnounceContextValue,\n /** @deprecated Use AnnounceContextValue instead. */\n AnnounceContextValue as AnnounceContextValue_unstable,\n AnnounceOptions,\n} from './AnnounceContext';\n
|
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\nexport {\n AnnounceProvider,\n /** @deprecated Use AnnounceProvider instead. */\n AnnounceProvider as AnnounceProvider_unstable,\n useAnnounce,\n /** @deprecated Use useAnnounce instead. */\n useAnnounce as useAnnounce_unstable,\n} from './AnnounceContext';\nexport type {\n AnnounceContextValue,\n /** @deprecated Use AnnounceContextValue instead. */\n AnnounceContextValue as AnnounceContextValue_unstable,\n AnnounceOptions,\n} from './AnnounceContext';\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","AnnounceProvider","AnnounceProvider_unstable","useAnnounce","useAnnounce_unstable"],"rangeMappings":";;;;;;;;","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;AAEvF,SACEC,gBAAgB,EAChB,8CAA8C,GAC9CA,oBAAoBC,yBAAyB,EAC7CC,WAAW,EACX,yCAAyC,GACzCA,eAAeC,oBAAoB,QAC9B,oBAAoB"}
|
package/lib-commonjs/index.js
CHANGED
@@ -24,9 +24,6 @@ _export(exports, {
|
|
24
24
|
CustomStyleHooksProvider_unstable: function() {
|
25
25
|
return _CustomStyleHooksContext.CustomStyleHooksProvider;
|
26
26
|
},
|
27
|
-
MaterialProvider: function() {
|
28
|
-
return _MaterialContext.MaterialProvider;
|
29
|
-
},
|
30
27
|
OverridesProvider_unstable: function() {
|
31
28
|
return _OverridesContext.OverridesProvider;
|
32
29
|
},
|
@@ -63,9 +60,6 @@ _export(exports, {
|
|
63
60
|
useFluent_unstable: function() {
|
64
61
|
return _ProviderContext.useFluent;
|
65
62
|
},
|
66
|
-
useMaterial: function() {
|
67
|
-
return _MaterialContext.useMaterial;
|
68
|
-
},
|
69
63
|
useOverrides_unstable: function() {
|
70
64
|
return _OverridesContext.useOverrides;
|
71
65
|
},
|
@@ -88,4 +82,3 @@ const _CustomStyleHooksContext = require("./CustomStyleHooksContext");
|
|
88
82
|
const _BackgroundAppearanceContext = require("./BackgroundAppearanceContext");
|
89
83
|
const _PortalMountNodeContext = require("./PortalMountNodeContext");
|
90
84
|
const _AnnounceContext = require("./AnnounceContext");
|
91
|
-
const _MaterialContext = require("./MaterialContext");
|
@@ -1 +1 @@
|
|
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\nexport {\n AnnounceProvider,\n /** @deprecated Use AnnounceProvider instead. */\n AnnounceProvider as AnnounceProvider_unstable,\n useAnnounce,\n /** @deprecated Use useAnnounce instead. */\n useAnnounce as useAnnounce_unstable,\n} from './AnnounceContext';\nexport type {\n AnnounceContextValue,\n /** @deprecated Use AnnounceContextValue instead. */\n AnnounceContextValue as AnnounceContextValue_unstable,\n AnnounceOptions,\n} from './AnnounceContext';\n
|
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\nexport {\n AnnounceProvider,\n /** @deprecated Use AnnounceProvider instead. */\n AnnounceProvider as AnnounceProvider_unstable,\n useAnnounce,\n /** @deprecated Use useAnnounce instead. */\n useAnnounce as useAnnounce_unstable,\n} from './AnnounceContext';\nexport type {\n AnnounceContextValue,\n /** @deprecated Use AnnounceContextValue instead. */\n AnnounceContextValue as AnnounceContextValue_unstable,\n AnnounceOptions,\n} from './AnnounceContext';\n"],"names":["AnnounceProvider","AnnounceProvider_unstable","BackgroundAppearanceProvider","CustomStyleHooksContext_unstable","CustomStyleHooksContext","CustomStyleHooksProvider_unstable","CustomStyleHooksProvider","OverridesProvider_unstable","OverridesProvider","PortalMountNodeProvider","Provider_unstable","Provider","ThemeClassNameProvider_unstable","ThemeClassNameProvider","ThemeContext_unstable","ThemeContext","ThemeProvider_unstable","ThemeProvider","TooltipVisibilityProvider_unstable","TooltipVisibilityProvider","useAnnounce","useAnnounce_unstable","useBackgroundAppearance","useCustomStyleHook_unstable","useCustomStyleHook","useFluent_unstable","useFluent","useOverrides_unstable","useOverrides","usePortalMountNode","useThemeClassName_unstable","useThemeClassName","useTooltipVisibility_unstable","useTooltipVisibility"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAqCEA,gBAAgB;eAAhBA,iCAAgB;;IAEIC,yBAAyB;eAD7C,8CAA8C,GAC9CD,iCAAAA;;IAROE,4BAA4B;eAA5BA,yDAA4B;;IANRC,gCAAgC;eAA3DC,gDAAAA;;IAC4BC,iCAAiC;eAA7DC,iDAAAA;;IAPqBC,0BAA0B;eAA/CC,mCAAAA;;IAeOC,uBAAuB;eAAvBA,+CAAuB;;IAnBXC,iBAAiB;eAA7BC,yBAAAA;;IAXmBC,+BAA+B;eAAzDC,6CAAAA;;IAJuBC,qBAAqB;eAArCC,0BAAAA;;IAAwDC,sBAAsB;eAAvCC,2BAAAA;;IAUjBC,kCAAkC;eAA/DC,mDAAAA;;IA8BAC,WAAW;eAAXA,4BAAW;;IAEIC,oBAAoB;eADnC,yCAAyC,GACzCD,4BAAAA;;IAXqCE,uBAAuB;eAAvBA,oDAAuB;;IAJtCC,2BAA2B;eAAjDC,2CAAAA;;IAZmDC,kBAAkB;eAA/BC,0BAAAA;;IAKtBC,qBAAqB;eAArCC,8BAAAA;;IAcgCC,kBAAkB;eAAlBA,0CAAkB;;IA7B7BC,0BAA0B;eAA/CC,wCAAAA;;IAMwBC,6BAA6B;eAArDC,8CAAAA;;;8BAX6F;uCAMxF;0CAMA;iCAGwE;kCAMxE;yCAOA;6CAG+D;wCAGV;iCASrD"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20240716-0408.1",
|
4
4
|
"description": "Fluent UI React Contexts shared by multiple components.",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"@fluentui/scripts-tasks": "*"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@fluentui/react-theme": "0.0.0-nightly-
|
32
|
+
"@fluentui/react-theme": "0.0.0-nightly-20240716-0408.1",
|
33
33
|
"@swc/helpers": "^0.5.1"
|
34
34
|
},
|
35
35
|
"peerDependencies": {
|
package/lib/MaterialContext.js
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
/**
|
3
|
-
* @internal
|
4
|
-
*/ export const MaterialContext = React.createContext(undefined);
|
5
|
-
/**
|
6
|
-
* @internal
|
7
|
-
*/ export const MaterialProvider = MaterialContext.Provider;
|
8
|
-
export function useMaterial() {
|
9
|
-
return React.useContext(MaterialContext);
|
10
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["MaterialContext.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type Material = 'tertiary';\n\nexport type MaterialContextValue = Material | undefined;\n\n/**\n * @internal\n */\nexport const MaterialContext = React.createContext<MaterialContextValue | undefined>(undefined);\n\n/**\n * @internal\n */\nexport const MaterialProvider = MaterialContext.Provider;\n\nexport function useMaterial(): MaterialContextValue {\n return React.useContext(MaterialContext);\n}\n"],"names":["React","MaterialContext","createContext","undefined","MaterialProvider","Provider","useMaterial","useContext"],"rangeMappings":";;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAM/B;;CAEC,GACD,OAAO,MAAMC,kBAAkBD,MAAME,aAAa,CAAmCC,WAAW;AAEhG;;CAEC,GACD,OAAO,MAAMC,mBAAmBH,gBAAgBI,QAAQ,CAAC;AAEzD,OAAO,SAASC;IACd,OAAON,MAAMO,UAAU,CAACN;AAC1B"}
|
@@ -1,28 +0,0 @@
|
|
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
|
-
MaterialContext: function() {
|
13
|
-
return MaterialContext;
|
14
|
-
},
|
15
|
-
MaterialProvider: function() {
|
16
|
-
return MaterialProvider;
|
17
|
-
},
|
18
|
-
useMaterial: function() {
|
19
|
-
return useMaterial;
|
20
|
-
}
|
21
|
-
});
|
22
|
-
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
23
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
24
|
-
const MaterialContext = /*#__PURE__*/ _react.createContext(undefined);
|
25
|
-
const MaterialProvider = MaterialContext.Provider;
|
26
|
-
function useMaterial() {
|
27
|
-
return _react.useContext(MaterialContext);
|
28
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["MaterialContext.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type Material = 'tertiary';\n\nexport type MaterialContextValue = Material | undefined;\n\n/**\n * @internal\n */\nexport const MaterialContext = React.createContext<MaterialContextValue | undefined>(undefined);\n\n/**\n * @internal\n */\nexport const MaterialProvider = MaterialContext.Provider;\n\nexport function useMaterial(): MaterialContextValue {\n return React.useContext(MaterialContext);\n}\n"],"names":["MaterialContext","MaterialProvider","useMaterial","React","createContext","undefined","Provider","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IASaA,eAAAA;eAAAA;;IAKAC,gBAAAA;eAAAA;;IAEGC,WAAAA;eAAAA;;;;iEAhBO;AAShB,MAAMF,gCAAkBG,OAAMC,aAAa,CAAmCC;AAK9E,MAAMJ,mBAAmBD,gBAAgBM,QAAQ;AAEjD,SAASJ;IACd,OAAOC,OAAMI,UAAU,CAACP;AAC1B"}
|