@fluentui/react-shared-contexts 9.20.1 → 9.21.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.md +25 -2
- package/dist/index.d.ts +30 -0
- package/lib/AnnounceContext/AnnounceContext.js.map +1 -1
- package/lib/AnnounceContext/index.js.map +1 -1
- package/lib/BackgroundAppearanceContext/BackgroundAppearanceContext.js.map +1 -1
- package/lib/BackgroundAppearanceContext/index.js.map +1 -1
- package/lib/CustomStyleHooksContext/CustomStyleHooksContext.js.map +1 -1
- package/lib/CustomStyleHooksContext/index.js.map +1 -1
- package/lib/CustomStyleHooksContext.js.map +1 -1
- package/lib/OverridesContext/OverridesContext.js.map +1 -1
- package/lib/OverridesContext/index.js.map +1 -1
- package/lib/PortalMountNodeContext.js.map +1 -1
- package/lib/ProviderContext/ProviderContext.js +1 -1
- package/lib/ProviderContext/ProviderContext.js.map +1 -1
- package/lib/ProviderContext/index.js.map +1 -1
- package/lib/ProviderContext.js.map +1 -1
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib/ThemeClassNameContext/index.js.map +1 -1
- package/lib/ThemeClassNameContext.js.map +1 -1
- package/lib/ThemeContext/ThemeContext.js.map +1 -1
- package/lib/ThemeContext/index.js.map +1 -1
- package/lib/ThemeContext.js.map +1 -1
- package/lib/TooltipVisibilityContext/TooltipContext.js.map +1 -1
- package/lib/TooltipVisibilityContext/index.js.map +1 -1
- package/lib/TooltipVisibilityContext.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/AnnounceContext/AnnounceContext.js +1 -1
- package/lib-commonjs/AnnounceContext/AnnounceContext.js.map +1 -1
- package/lib-commonjs/AnnounceContext/index.js.map +1 -1
- package/lib-commonjs/BackgroundAppearanceContext/BackgroundAppearanceContext.js +1 -1
- package/lib-commonjs/BackgroundAppearanceContext/BackgroundAppearanceContext.js.map +1 -1
- package/lib-commonjs/BackgroundAppearanceContext/index.js.map +1 -1
- package/lib-commonjs/CustomStyleHooksContext/CustomStyleHooksContext.js +1 -1
- package/lib-commonjs/CustomStyleHooksContext/CustomStyleHooksContext.js.map +1 -1
- package/lib-commonjs/CustomStyleHooksContext/index.js.map +1 -1
- package/lib-commonjs/CustomStyleHooksContext.js.map +1 -1
- package/lib-commonjs/OverridesContext/OverridesContext.js +1 -1
- package/lib-commonjs/OverridesContext/OverridesContext.js.map +1 -1
- package/lib-commonjs/OverridesContext/index.js.map +1 -1
- package/lib-commonjs/PortalMountNodeContext.js +1 -1
- package/lib-commonjs/PortalMountNodeContext.js.map +1 -1
- package/lib-commonjs/ProviderContext/ProviderContext.js +2 -2
- package/lib-commonjs/ProviderContext/ProviderContext.js.map +1 -1
- package/lib-commonjs/ProviderContext/index.js.map +1 -1
- package/lib-commonjs/ProviderContext.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js +1 -1
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext/index.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext.js.map +1 -1
- package/lib-commonjs/ThemeContext/ThemeContext.js +1 -1
- package/lib-commonjs/ThemeContext/ThemeContext.js.map +1 -1
- package/lib-commonjs/ThemeContext/index.js.map +1 -1
- package/lib-commonjs/ThemeContext.js.map +1 -1
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js +1 -1
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js.map +1 -1
- package/lib-commonjs/TooltipVisibilityContext/index.js.map +1 -1
- package/lib-commonjs/TooltipVisibilityContext.js.map +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +3 -16
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,35 @@
|
|
1
1
|
# Change Log - @fluentui/react-shared-contexts
|
2
2
|
|
3
|
-
This log was last generated on Mon,
|
3
|
+
This log was last generated on Mon, 11 Nov 2024 09:55:19 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.21.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.21.0)
|
8
|
+
|
9
|
+
Mon, 11 Nov 2024 09:55:19 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.20.2..@fluentui/react-shared-contexts_v9.21.0)
|
11
|
+
|
12
|
+
### Minor changes
|
13
|
+
|
14
|
+
- feat: Add custom style hooks for Carousel components ([PR #33155](https://github.com/microsoft/fluentui/pull/33155) by mifraser@microsoft.com)
|
15
|
+
- Bump @fluentui/react-theme to v9.1.22 ([PR #31887](https://github.com/microsoft/fluentui/pull/31887) by beachball)
|
16
|
+
|
17
|
+
### Patches
|
18
|
+
|
19
|
+
- chore: replace npm-scripts and just-scrtips with nx inferred tasks ([PR #33074](https://github.com/microsoft/fluentui/pull/33074) by martinhochel@microsoft.com)
|
20
|
+
|
21
|
+
## [9.20.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.20.2)
|
22
|
+
|
23
|
+
Tue, 15 Oct 2024 17:17:50 GMT
|
24
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.20.1..@fluentui/react-shared-contexts_v9.20.2)
|
25
|
+
|
26
|
+
### Patches
|
27
|
+
|
28
|
+
- Bump @fluentui/react-theme to v9.1.21 ([PR #32999](https://github.com/microsoft/fluentui/pull/32999) by beachball)
|
29
|
+
|
7
30
|
## [9.20.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.20.1)
|
8
31
|
|
9
|
-
Mon, 23 Sep 2024 12:
|
32
|
+
Mon, 23 Sep 2024 12:40:17 GMT
|
10
33
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.20.0..@fluentui/react-shared-contexts_v9.20.1)
|
11
34
|
|
12
35
|
### Patches
|
package/dist/index.d.ts
CHANGED
@@ -186,6 +186,16 @@ export declare const CustomStyleHooksContext_unstable: React_2.Context<Partial<{
|
|
186
186
|
useEmptySwatchStyles_unstable: CustomStyleHook;
|
187
187
|
useSwatchPickerRowStyles_unstable: CustomStyleHook;
|
188
188
|
useSwatchPickerStyles_unstable: CustomStyleHook;
|
189
|
+
useCarouselViewportStyles_unstable: CustomStyleHook;
|
190
|
+
useCarouselSliderStyles_unstable: CustomStyleHook;
|
191
|
+
useCarouselStyles_unstable: CustomStyleHook;
|
192
|
+
useCarouselAutoplayButtonStyles_unstable: CustomStyleHook;
|
193
|
+
useCarouselButtonStyles_unstable: CustomStyleHook;
|
194
|
+
useCarouselCardStyles_unstable: CustomStyleHook;
|
195
|
+
useCarouselNavStyles_unstable: CustomStyleHook;
|
196
|
+
useCarouselNavButtonStyles_unstable: CustomStyleHook;
|
197
|
+
useCarouselNavContainerStyles_unstable: CustomStyleHook;
|
198
|
+
useCarouselNavImageButtonStyles_unstable: CustomStyleHook;
|
189
199
|
}> | undefined>;
|
190
200
|
|
191
201
|
export declare type CustomStyleHooksContextValue_unstable = Partial<{
|
@@ -330,6 +340,16 @@ export declare type CustomStyleHooksContextValue_unstable = Partial<{
|
|
330
340
|
useEmptySwatchStyles_unstable: CustomStyleHook;
|
331
341
|
useSwatchPickerRowStyles_unstable: CustomStyleHook;
|
332
342
|
useSwatchPickerStyles_unstable: CustomStyleHook;
|
343
|
+
useCarouselViewportStyles_unstable: CustomStyleHook;
|
344
|
+
useCarouselSliderStyles_unstable: CustomStyleHook;
|
345
|
+
useCarouselStyles_unstable: CustomStyleHook;
|
346
|
+
useCarouselAutoplayButtonStyles_unstable: CustomStyleHook;
|
347
|
+
useCarouselButtonStyles_unstable: CustomStyleHook;
|
348
|
+
useCarouselCardStyles_unstable: CustomStyleHook;
|
349
|
+
useCarouselNavStyles_unstable: CustomStyleHook;
|
350
|
+
useCarouselNavButtonStyles_unstable: CustomStyleHook;
|
351
|
+
useCarouselNavContainerStyles_unstable: CustomStyleHook;
|
352
|
+
useCarouselNavImageButtonStyles_unstable: CustomStyleHook;
|
333
353
|
}>;
|
334
354
|
|
335
355
|
/**
|
@@ -477,6 +497,16 @@ export declare const CustomStyleHooksProvider_unstable: React_2.Provider<Partial
|
|
477
497
|
useEmptySwatchStyles_unstable: CustomStyleHook;
|
478
498
|
useSwatchPickerRowStyles_unstable: CustomStyleHook;
|
479
499
|
useSwatchPickerStyles_unstable: CustomStyleHook;
|
500
|
+
useCarouselViewportStyles_unstable: CustomStyleHook;
|
501
|
+
useCarouselSliderStyles_unstable: CustomStyleHook;
|
502
|
+
useCarouselStyles_unstable: CustomStyleHook;
|
503
|
+
useCarouselAutoplayButtonStyles_unstable: CustomStyleHook;
|
504
|
+
useCarouselButtonStyles_unstable: CustomStyleHook;
|
505
|
+
useCarouselCardStyles_unstable: CustomStyleHook;
|
506
|
+
useCarouselNavStyles_unstable: CustomStyleHook;
|
507
|
+
useCarouselNavButtonStyles_unstable: CustomStyleHook;
|
508
|
+
useCarouselNavContainerStyles_unstable: CustomStyleHook;
|
509
|
+
useCarouselNavImageButtonStyles_unstable: CustomStyleHook;
|
480
510
|
}> | undefined>;
|
481
511
|
|
482
512
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["AnnounceContext.ts"],"sourcesContent":["import * as React from 'react';\n\n/**\n * Defines options for a message to be announced.\n */\nexport type AnnounceOptions = {\n alert?: boolean;\n\n /**\n * A unique identifier for the message. If a message with the same id is already announced, it will be replaced.\n */\n batchId?: string;\n\n /**\n * Indicates that the message announcement can be interrupted by another message and will be announced only\n * user is idle.\n */\n polite?: boolean;\n\n /** Defines the priority of the message. Higher priority messages will be announced first. */\n priority?: number;\n};\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\nexport const AnnounceProvider = AnnounceContext.Provider;\n\n/**\n * Returns a function that can be used to announce messages to screen readers.\n */\nexport function useAnnounce(): AnnounceContextValue {\n return React.useContext(AnnounceContext) ?? { announce: () => undefined };\n}\n"],"names":["React","AnnounceContext","createContext","undefined","AnnounceProvider","Provider","useAnnounce","useContext","announce"],"rangeMappings":";;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AA2B/B;;CAEC,GACD,MAAMC,kBAAkBD,MAAME,aAAa,CAAmCC;AAE9E,OAAO,MAAMC,mBAAmBH,gBAAgBI,QAAQ,CAAC;AAEzD;;CAEC,GACD,OAAO,SAASC;QACPN;IAAP,OAAOA,CAAAA,oBAAAA,MAAMO,UAAU,CAACN,8BAAjBD,+BAAAA,oBAAqC;QAAEQ,UAAU,IAAML;IAAU;AAC1E"}
|
1
|
+
{"version":3,"sources":["../src/AnnounceContext/AnnounceContext.ts"],"sourcesContent":["import * as React from 'react';\n\n/**\n * Defines options for a message to be announced.\n */\nexport type AnnounceOptions = {\n alert?: boolean;\n\n /**\n * A unique identifier for the message. If a message with the same id is already announced, it will be replaced.\n */\n batchId?: string;\n\n /**\n * Indicates that the message announcement can be interrupted by another message and will be announced only\n * user is idle.\n */\n polite?: boolean;\n\n /** Defines the priority of the message. Higher priority messages will be announced first. */\n priority?: number;\n};\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\nexport const AnnounceProvider = AnnounceContext.Provider;\n\n/**\n * Returns a function that can be used to announce messages to screen readers.\n */\nexport function useAnnounce(): AnnounceContextValue {\n return React.useContext(AnnounceContext) ?? { announce: () => undefined };\n}\n"],"names":["React","AnnounceContext","createContext","undefined","AnnounceProvider","Provider","useAnnounce","useContext","announce"],"rangeMappings":";;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AA2B/B;;CAEC,GACD,MAAMC,kBAAkBD,MAAME,aAAa,CAAmCC;AAE9E,OAAO,MAAMC,mBAAmBH,gBAAgBI,QAAQ,CAAC;AAEzD;;CAEC,GACD,OAAO,SAASC;QACPN;IAAP,OAAOA,CAAAA,oBAAAA,MAAMO,UAAU,CAACN,8BAAjBD,+BAAAA,oBAAqC;QAAEQ,UAAU,IAAML;IAAU;AAC1E"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './AnnounceContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,oBAAoB"}
|
1
|
+
{"version":3,"sources":["../src/AnnounceContext/index.ts"],"sourcesContent":["export * from './AnnounceContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,oBAAoB"}
|
@@ -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"],"rangeMappings":";;;;;;;;;","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
|
+
{"version":3,"sources":["../src/BackgroundAppearanceContext/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"],"rangeMappings":";;;;;;;;;","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":["index.ts"],"sourcesContent":["export * from './BackgroundAppearanceContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,gCAAgC"}
|
1
|
+
{"version":3,"sources":["../src/BackgroundAppearanceContext/index.ts"],"sourcesContent":["export * from './BackgroundAppearanceContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,gCAAgC"}
|
@@ -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 useListStyles_unstable: CustomStyleHook;\n useListItemStyles_unstable: CustomStyleHook;\n /* @deprecated Use onClick handler on the ListItem itself instead. */\n useListItemButtonStyles_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 useMenuItemSwitchStyles_unstable: CustomStyleHook;\n useMenuItemRadioStyles_unstable: CustomStyleHook;\n useMenuItemStyles_unstable: CustomStyleHook;\n useMenuItemLinkStyles_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 /** @deprecated Use useInlineDrawerStyles_unstable instead. */\n useDrawerInlineStyles_unstable: CustomStyleHook;\n /** @deprecated Use useOverlayDrawerStyles_unstable instead. */\n useDrawerOverlayStyles_unstable: CustomStyleHook;\n useInlineDrawerStyles_unstable: CustomStyleHook;\n useOverlayDrawerStyles_unstable: CustomStyleHook;\n useDrawerHeaderStyles_unstable: CustomStyleHook;\n useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;\n useDrawerHeaderTitleStyles_unstable: CustomStyleHook;\n useDrawerBodyStyles_unstable: CustomStyleHook;\n useDrawerFooterStyles_unstable: CustomStyleHook;\n useInteractionTagStyles_unstable: CustomStyleHook;\n useInteractionTagPrimaryStyles_unstable: CustomStyleHook;\n useInteractionTagSecondaryStyles_unstable: CustomStyleHook;\n useTagStyles_unstable: CustomStyleHook;\n useTagGroupStyles_unstable: CustomStyleHook;\n useBreadcrumbStyles_unstable: CustomStyleHook;\n useBreadcrumbButtonStyles_unstable: CustomStyleHook;\n useBreadcrumbItemStyles_unstable: CustomStyleHook;\n useBreadcrumbDividerStyles_unstable: CustomStyleHook;\n useMessageBarStyles_unstable: CustomStyleHook;\n useMessageBarBodyStyles_unstable: CustomStyleHook;\n useMessageBarTitleStyles_unstable: CustomStyleHook;\n useMessageBarActionsStyles_unstable: CustomStyleHook;\n useMessageBarGroupStyles_unstable: CustomStyleHook;\n useToasterStyles_unstable: CustomStyleHook;\n /** @deprecated TeachingPopover wrapper has no styles (non-UI hooks only). */\n useTeachingPopoverStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel internal functionality. */\n useTeachingPopoverActionsStyles_unstable: CustomStyleHook;\n useTeachingPopoverBodyStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel styling hooks */\n useTeachingPopoverButtonStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselStyles_unstable: CustomStyleHook;\n useTeachingPopoverHeaderStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverCarouselNav styling hooks */\n useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;\n useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;\n useTeachingPopoverTitleStyles_unstable: CustomStyleHook;\n useTimePickerCompatStyles_unstable: CustomStyleHook;\n useTagPickerInputStyles_unstable: CustomStyleHook;\n useTagPickerButtonStyles_unstable: CustomStyleHook;\n useTagPickerControlStyles_unstable: CustomStyleHook;\n useTagPickerGroupStyles_unstable: CustomStyleHook;\n useTagPickerListStyles_unstable: CustomStyleHook;\n useTagPickerOptionStyles_unstable: CustomStyleHook;\n useTagPickerOptionGroupStyles_unstable: CustomStyleHook;\n useColorSwatchStyles_unstable: CustomStyleHook;\n useImageSwatchStyles_unstable: CustomStyleHook;\n useEmptySwatchStyles_unstable: CustomStyleHook;\n useSwatchPickerRowStyles_unstable: CustomStyleHook;\n useSwatchPickerStyles_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"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":"AAAA,kBAAkB,GAElB,YAAYA,WAAW,QAAQ;
|
1
|
+
{"version":3,"sources":["../src/CustomStyleHooksContext/CustomStyleHooksContext.ts"],"sourcesContent":["/* eslint-disable */\n\nimport * as React from 'react';\n\ntype CustomStyleHook = (state: unknown) => void;\n\n// The list of hooks is built from the exports from react-components/src/index\nexport type CustomStyleHooksContextValue = Partial<{\n useAccordionHeaderStyles_unstable: CustomStyleHook;\n useAccordionItemStyles_unstable: CustomStyleHook;\n useAccordionPanelStyles_unstable: CustomStyleHook;\n useAccordionStyles_unstable: CustomStyleHook;\n useAvatarStyles_unstable: CustomStyleHook;\n useAvatarGroupStyles_unstable: CustomStyleHook;\n useAvatarGroupItemStyles_unstable: CustomStyleHook;\n useAvatarGroupPopoverStyles_unstable: CustomStyleHook;\n useBadgeStyles_unstable: CustomStyleHook;\n useCounterBadgeStyles_unstable: CustomStyleHook;\n useCardHeaderStyles_unstable: CustomStyleHook;\n useCardStyles_unstable: CustomStyleHook;\n useCardFooterStyles_unstable: CustomStyleHook;\n useCardPreviewStyles_unstable: CustomStyleHook;\n usePresenceBadgeStyles_unstable: CustomStyleHook;\n useButtonStyles_unstable: CustomStyleHook;\n useCompoundButtonStyles_unstable: CustomStyleHook;\n useMenuButtonStyles_unstable: CustomStyleHook;\n useSplitButtonStyles_unstable: CustomStyleHook;\n useToggleButtonStyles_unstable: CustomStyleHook;\n useCheckboxStyles_unstable: CustomStyleHook;\n useComboboxStyles_unstable: CustomStyleHook;\n useDropdownStyles_unstable: CustomStyleHook;\n useListboxStyles_unstable: CustomStyleHook;\n useListStyles_unstable: CustomStyleHook;\n useListItemStyles_unstable: CustomStyleHook;\n /* @deprecated Use onClick handler on the ListItem itself instead. */\n useListItemButtonStyles_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 useMenuItemSwitchStyles_unstable: CustomStyleHook;\n useMenuItemRadioStyles_unstable: CustomStyleHook;\n useMenuItemStyles_unstable: CustomStyleHook;\n useMenuItemLinkStyles_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 /** @deprecated Use useInlineDrawerStyles_unstable instead. */\n useDrawerInlineStyles_unstable: CustomStyleHook;\n /** @deprecated Use useOverlayDrawerStyles_unstable instead. */\n useDrawerOverlayStyles_unstable: CustomStyleHook;\n useInlineDrawerStyles_unstable: CustomStyleHook;\n useOverlayDrawerStyles_unstable: CustomStyleHook;\n useDrawerHeaderStyles_unstable: CustomStyleHook;\n useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;\n useDrawerHeaderTitleStyles_unstable: CustomStyleHook;\n useDrawerBodyStyles_unstable: CustomStyleHook;\n useDrawerFooterStyles_unstable: CustomStyleHook;\n useInteractionTagStyles_unstable: CustomStyleHook;\n useInteractionTagPrimaryStyles_unstable: CustomStyleHook;\n useInteractionTagSecondaryStyles_unstable: CustomStyleHook;\n useTagStyles_unstable: CustomStyleHook;\n useTagGroupStyles_unstable: CustomStyleHook;\n useBreadcrumbStyles_unstable: CustomStyleHook;\n useBreadcrumbButtonStyles_unstable: CustomStyleHook;\n useBreadcrumbItemStyles_unstable: CustomStyleHook;\n useBreadcrumbDividerStyles_unstable: CustomStyleHook;\n useMessageBarStyles_unstable: CustomStyleHook;\n useMessageBarBodyStyles_unstable: CustomStyleHook;\n useMessageBarTitleStyles_unstable: CustomStyleHook;\n useMessageBarActionsStyles_unstable: CustomStyleHook;\n useMessageBarGroupStyles_unstable: CustomStyleHook;\n useToasterStyles_unstable: CustomStyleHook;\n /** @deprecated TeachingPopover wrapper has no styles (non-UI hooks only). */\n useTeachingPopoverStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel internal functionality. */\n useTeachingPopoverActionsStyles_unstable: CustomStyleHook;\n useTeachingPopoverBodyStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel styling hooks */\n useTeachingPopoverButtonStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselStyles_unstable: CustomStyleHook;\n useTeachingPopoverHeaderStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverCarouselNav styling hooks */\n useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;\n useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;\n useTeachingPopoverTitleStyles_unstable: CustomStyleHook;\n useTimePickerCompatStyles_unstable: CustomStyleHook;\n useTagPickerInputStyles_unstable: CustomStyleHook;\n useTagPickerButtonStyles_unstable: CustomStyleHook;\n useTagPickerControlStyles_unstable: CustomStyleHook;\n useTagPickerGroupStyles_unstable: CustomStyleHook;\n useTagPickerListStyles_unstable: CustomStyleHook;\n useTagPickerOptionStyles_unstable: CustomStyleHook;\n useTagPickerOptionGroupStyles_unstable: CustomStyleHook;\n useColorSwatchStyles_unstable: CustomStyleHook;\n useImageSwatchStyles_unstable: CustomStyleHook;\n useEmptySwatchStyles_unstable: CustomStyleHook;\n useSwatchPickerRowStyles_unstable: CustomStyleHook;\n useSwatchPickerStyles_unstable: CustomStyleHook;\n useCarouselViewportStyles_unstable: CustomStyleHook;\n useCarouselSliderStyles_unstable: CustomStyleHook;\n useCarouselStyles_unstable: CustomStyleHook;\n useCarouselAutoplayButtonStyles_unstable: CustomStyleHook;\n useCarouselButtonStyles_unstable: CustomStyleHook;\n useCarouselCardStyles_unstable: CustomStyleHook;\n useCarouselNavStyles_unstable: CustomStyleHook;\n useCarouselNavButtonStyles_unstable: CustomStyleHook;\n useCarouselNavContainerStyles_unstable: CustomStyleHook;\n useCarouselNavImageButtonStyles_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"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":"AAAA,kBAAkB,GAElB,YAAYA,WAAW,QAAQ;AAgK/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":["index.ts"],"sourcesContent":["export * from './CustomStyleHooksContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,4BAA4B"}
|
1
|
+
{"version":3,"sources":["../src/CustomStyleHooksContext/index.ts"],"sourcesContent":["export * from './CustomStyleHooksContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,4BAA4B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["CustomStyleHooksContext.ts"],"sourcesContent":["export * from './CustomStyleHooksContext/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,kCAAkC"}
|
1
|
+
{"version":3,"sources":["../src/CustomStyleHooksContext.ts"],"sourcesContent":["export * from './CustomStyleHooksContext/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,kCAAkC"}
|
@@ -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"],"rangeMappings":";;;;;;;;;;","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
|
+
{"version":3,"sources":["../src/OverridesContext/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"],"rangeMappings":";;;;;;;;;;","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":["index.ts"],"sourcesContent":["export * from './OverridesContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,qBAAqB"}
|
1
|
+
{"version":3,"sources":["../src/OverridesContext/index.ts"],"sourcesContent":["export * from './OverridesContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,qBAAqB"}
|
@@ -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"],"rangeMappings":";;;;;;;;;;;","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
|
+
{"version":3,"sources":["../src/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"],"rangeMappings":";;;;;;;;;;;","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"}
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
3
3
|
* @internal
|
4
4
|
*/ const ProviderContext = React.createContext(undefined);
|
5
5
|
const providerContextDefaultValue = {
|
6
|
-
// eslint-disable-next-line no-restricted-globals
|
6
|
+
// eslint-disable-next-line @nx/workspace-no-restricted-globals -- expected ignore ( SSR friendly acquisition of globals )
|
7
7
|
targetDocument: typeof document === 'object' ? document : undefined,
|
8
8
|
dir: 'ltr'
|
9
9
|
};
|
@@ -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 // eslint-disable-next-line no-restricted-globals\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"],"rangeMappings":";;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAU/B;;CAEC,GACD,MAAMC,kBAAkBD,MAAME,aAAa,CACzCC;AAGF,MAAMC,8BAAoD;IACxD,
|
1
|
+
{"version":3,"sources":["../src/ProviderContext/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 // eslint-disable-next-line @nx/workspace-no-restricted-globals -- expected ignore ( SSR friendly acquisition of globals )\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"],"rangeMappings":";;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAU/B;;CAEC,GACD,MAAMC,kBAAkBD,MAAME,aAAa,CACzCC;AAGF,MAAMC,8BAAoD;IACxD,0HAA0H;IAC1HC,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":["index.ts"],"sourcesContent":["export * from './ProviderContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,oBAAoB"}
|
1
|
+
{"version":3,"sources":["../src/ProviderContext/index.ts"],"sourcesContent":["export * from './ProviderContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,oBAAoB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ProviderContext.ts"],"sourcesContent":["export * from './ProviderContext/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,0BAA0B"}
|
1
|
+
{"version":3,"sources":["../src/ProviderContext.ts"],"sourcesContent":["export * from './ProviderContext/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,0BAA0B"}
|
@@ -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"],"rangeMappings":";;;;;;;;;;;;;;","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
|
+
{"version":3,"sources":["../src/ThemeClassNameContext/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"],"rangeMappings":";;;;;;;;;;;;;;","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":["index.ts"],"sourcesContent":["export * from './ThemeClassNameContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,0BAA0B"}
|
1
|
+
{"version":3,"sources":["../src/ThemeClassNameContext/index.ts"],"sourcesContent":["export * from './ThemeClassNameContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,0BAA0B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeClassNameContext.ts"],"sourcesContent":["export * from './ThemeClassNameContext/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,gCAAgC"}
|
1
|
+
{"version":3,"sources":["../src/ThemeClassNameContext.ts"],"sourcesContent":["export * from './ThemeClassNameContext/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,gCAAgC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeContext.ts"],"sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\n/**\n * @internal\n */\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const ThemeProvider = ThemeContext.Provider;\n"],"names":["React","ThemeContext","createContext","undefined","ThemeProvider","Provider"],"rangeMappings":";;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAK/B;;CAEC,GACD,OAAO,MAAMC,eAAeD,MAAME,aAAa,CAAoBC,WAAW;AAE9E;;CAEC,GACD,OAAO,MAAMC,gBAAgBH,aAAaI,QAAQ,CAAC"}
|
1
|
+
{"version":3,"sources":["../src/ThemeContext/ThemeContext.ts"],"sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\n/**\n * @internal\n */\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const ThemeProvider = ThemeContext.Provider;\n"],"names":["React","ThemeContext","createContext","undefined","ThemeProvider","Provider"],"rangeMappings":";;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAK/B;;CAEC,GACD,OAAO,MAAMC,eAAeD,MAAME,aAAa,CAAoBC,WAAW;AAE9E;;CAEC,GACD,OAAO,MAAMC,gBAAgBH,aAAaI,QAAQ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './ThemeContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,iBAAiB"}
|
1
|
+
{"version":3,"sources":["../src/ThemeContext/index.ts"],"sourcesContent":["export * from './ThemeContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,iBAAiB"}
|
package/lib/ThemeContext.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeContext.ts"],"sourcesContent":["export * from './ThemeContext/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,uBAAuB"}
|
1
|
+
{"version":3,"sources":["../src/ThemeContext.ts"],"sourcesContent":["export * from './ThemeContext/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,uBAAuB"}
|
@@ -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"],"rangeMappings":";;;;;;;;;;;;","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"}
|
1
|
+
{"version":3,"sources":["../src/TooltipVisibilityContext/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"],"rangeMappings":";;;;;;;;;;;;","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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './TooltipContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,mBAAmB"}
|
1
|
+
{"version":3,"sources":["../src/TooltipVisibilityContext/index.ts"],"sourcesContent":["export * from './TooltipContext';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,mBAAmB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["TooltipVisibilityContext.ts"],"sourcesContent":["export * from './TooltipVisibilityContext/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,mCAAmC"}
|
1
|
+
{"version":3,"sources":["../src/TooltipVisibilityContext.ts"],"sourcesContent":["export * from './TooltipVisibilityContext/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,mCAAmC"}
|
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"],"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"}
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from './ThemeContext';\nexport type { ThemeContextValue as ThemeContextValue_unstable } from './ThemeContext';\n\nexport {\n ThemeClassNameProvider as ThemeClassNameProvider_unstable,\n useThemeClassName as useThemeClassName_unstable,\n} from './ThemeClassNameContext';\nexport type { ThemeClassNameContextValue as ThemeClassNameContextValue_unstable } from './ThemeClassNameContext';\n\nexport {\n TooltipVisibilityProvider as TooltipVisibilityProvider_unstable,\n useTooltipVisibility as useTooltipVisibility_unstable,\n} from './TooltipVisibilityContext';\nexport type { TooltipVisibilityContextValue as TooltipVisibilityContextValue_unstable } from './TooltipVisibilityContext';\n\nexport { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';\nexport type { ProviderContextValue as ProviderContextValue_unstable } from './ProviderContext';\n\nexport {\n OverridesProvider as OverridesProvider_unstable,\n useOverrides as useOverrides_unstable,\n} from './OverridesContext';\nexport type { OverridesContextValue as OverridesContextValue_unstable } from './OverridesContext';\n\nexport {\n CustomStyleHooksContext as CustomStyleHooksContext_unstable,\n CustomStyleHooksProvider as CustomStyleHooksProvider_unstable,\n useCustomStyleHook as useCustomStyleHook_unstable,\n} from './CustomStyleHooksContext';\nexport type { CustomStyleHooksContextValue as CustomStyleHooksContextValue_unstable } from './CustomStyleHooksContext';\n\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"}
|
@@ -20,7 +20,7 @@ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildc
|
|
20
20
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
21
21
|
/**
|
22
22
|
* @internal
|
23
|
-
*/ const AnnounceContext =
|
23
|
+
*/ const AnnounceContext = _react.createContext(undefined);
|
24
24
|
const AnnounceProvider = AnnounceContext.Provider;
|
25
25
|
function useAnnounce() {
|
26
26
|
var _React_useContext;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["AnnounceContext.ts"],"sourcesContent":["import * as React from 'react';\n\n/**\n * Defines options for a message to be announced.\n */\nexport type AnnounceOptions = {\n alert?: boolean;\n\n /**\n * A unique identifier for the message. If a message with the same id is already announced, it will be replaced.\n */\n batchId?: string;\n\n /**\n * Indicates that the message announcement can be interrupted by another message and will be announced only\n * user is idle.\n */\n polite?: boolean;\n\n /** Defines the priority of the message. Higher priority messages will be announced first. */\n priority?: number;\n};\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\nexport const AnnounceProvider = AnnounceContext.Provider;\n\n/**\n * Returns a function that can be used to announce messages to screen readers.\n */\nexport function useAnnounce(): AnnounceContextValue {\n return React.useContext(AnnounceContext) ?? { announce: () => undefined };\n}\n"],"names":["AnnounceProvider","useAnnounce","AnnounceContext","React","createContext","undefined","Provider","useContext","announce"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAgCaA,
|
1
|
+
{"version":3,"sources":["../src/AnnounceContext/AnnounceContext.ts"],"sourcesContent":["import * as React from 'react';\n\n/**\n * Defines options for a message to be announced.\n */\nexport type AnnounceOptions = {\n alert?: boolean;\n\n /**\n * A unique identifier for the message. If a message with the same id is already announced, it will be replaced.\n */\n batchId?: string;\n\n /**\n * Indicates that the message announcement can be interrupted by another message and will be announced only\n * user is idle.\n */\n polite?: boolean;\n\n /** Defines the priority of the message. Higher priority messages will be announced first. */\n priority?: number;\n};\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\nexport const AnnounceProvider = AnnounceContext.Provider;\n\n/**\n * Returns a function that can be used to announce messages to screen readers.\n */\nexport function useAnnounce(): AnnounceContextValue {\n return React.useContext(AnnounceContext) ?? { announce: () => undefined };\n}\n"],"names":["AnnounceProvider","useAnnounce","AnnounceContext","React","createContext","undefined","Provider","useContext","announce"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAgCaA,gBAAgB;eAAhBA;;IAKGC,WAAW;eAAXA;;;;iEArCO;AA2BvB;;CAEC,GACD,MAAMC,kBAAkBC,OAAMC,aAAa,CAAmCC;AAEvE,MAAML,mBAAmBE,gBAAgBI,QAAQ;AAKjD,SAASL;QACPE;IAAP,OAAOA,CAAAA,oBAAAA,OAAMI,UAAU,CAACL,8BAAjBC,+BAAAA,oBAAqC;QAAEK,UAAU,IAAMH;IAAU;AAC1E"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './AnnounceContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
1
|
+
{"version":3,"sources":["../src/AnnounceContext/index.ts"],"sourcesContent":["export * from './AnnounceContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
@@ -21,7 +21,7 @@ _export(exports, {
|
|
21
21
|
});
|
22
22
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
23
23
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
24
|
-
const BackgroundAppearanceContext =
|
24
|
+
const BackgroundAppearanceContext = _react.createContext(undefined);
|
25
25
|
const BackgroundAppearanceProvider = BackgroundAppearanceContext.Provider;
|
26
26
|
function useBackgroundAppearance() {
|
27
27
|
return _react.useContext(BackgroundAppearanceContext);
|
@@ -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":["BackgroundAppearanceContext","BackgroundAppearanceProvider","useBackgroundAppearance","React","createContext","undefined","Provider","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAUaA,
|
1
|
+
{"version":3,"sources":["../src/BackgroundAppearanceContext/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":["BackgroundAppearanceContext","BackgroundAppearanceProvider","useBackgroundAppearance","React","createContext","undefined","Provider","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAUaA,2BAA2B;eAA3BA;;IAKAC,4BAA4B;eAA5BA;;IAEGC,uBAAuB;eAAvBA;;;;iEAjBO;AAUhB,MAAMF,8BAA8BG,OAAMC,aAAa,CAA+CC;AAKtG,MAAMJ,+BAA+BD,4BAA4BM,QAAQ;AAEzE,SAASJ;IACd,OAAOC,OAAMI,UAAU,CAACP;AAC1B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './BackgroundAppearanceContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
1
|
+
{"version":3,"sources":["../src/BackgroundAppearanceContext/index.ts"],"sourcesContent":["export * from './BackgroundAppearanceContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
@@ -21,7 +21,7 @@ _export(exports, {
|
|
21
21
|
});
|
22
22
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
23
23
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
24
|
-
const CustomStyleHooksContext =
|
24
|
+
const CustomStyleHooksContext = _react.createContext(undefined);
|
25
25
|
const noop = ()=>{};
|
26
26
|
const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
|
27
27
|
const useCustomStyleHook = (hook)=>{
|
@@ -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 useListStyles_unstable: CustomStyleHook;\n useListItemStyles_unstable: CustomStyleHook;\n /* @deprecated Use onClick handler on the ListItem itself instead. */\n useListItemButtonStyles_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 useMenuItemSwitchStyles_unstable: CustomStyleHook;\n useMenuItemRadioStyles_unstable: CustomStyleHook;\n useMenuItemStyles_unstable: CustomStyleHook;\n useMenuItemLinkStyles_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 /** @deprecated Use useInlineDrawerStyles_unstable instead. */\n useDrawerInlineStyles_unstable: CustomStyleHook;\n /** @deprecated Use useOverlayDrawerStyles_unstable instead. */\n useDrawerOverlayStyles_unstable: CustomStyleHook;\n useInlineDrawerStyles_unstable: CustomStyleHook;\n useOverlayDrawerStyles_unstable: CustomStyleHook;\n useDrawerHeaderStyles_unstable: CustomStyleHook;\n useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;\n useDrawerHeaderTitleStyles_unstable: CustomStyleHook;\n useDrawerBodyStyles_unstable: CustomStyleHook;\n useDrawerFooterStyles_unstable: CustomStyleHook;\n useInteractionTagStyles_unstable: CustomStyleHook;\n useInteractionTagPrimaryStyles_unstable: CustomStyleHook;\n useInteractionTagSecondaryStyles_unstable: CustomStyleHook;\n useTagStyles_unstable: CustomStyleHook;\n useTagGroupStyles_unstable: CustomStyleHook;\n useBreadcrumbStyles_unstable: CustomStyleHook;\n useBreadcrumbButtonStyles_unstable: CustomStyleHook;\n useBreadcrumbItemStyles_unstable: CustomStyleHook;\n useBreadcrumbDividerStyles_unstable: CustomStyleHook;\n useMessageBarStyles_unstable: CustomStyleHook;\n useMessageBarBodyStyles_unstable: CustomStyleHook;\n useMessageBarTitleStyles_unstable: CustomStyleHook;\n useMessageBarActionsStyles_unstable: CustomStyleHook;\n useMessageBarGroupStyles_unstable: CustomStyleHook;\n useToasterStyles_unstable: CustomStyleHook;\n /** @deprecated TeachingPopover wrapper has no styles (non-UI hooks only). */\n useTeachingPopoverStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel internal functionality. */\n useTeachingPopoverActionsStyles_unstable: CustomStyleHook;\n useTeachingPopoverBodyStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel styling hooks */\n useTeachingPopoverButtonStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselStyles_unstable: CustomStyleHook;\n useTeachingPopoverHeaderStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverCarouselNav styling hooks */\n useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;\n useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;\n useTeachingPopoverTitleStyles_unstable: CustomStyleHook;\n useTimePickerCompatStyles_unstable: CustomStyleHook;\n useTagPickerInputStyles_unstable: CustomStyleHook;\n useTagPickerButtonStyles_unstable: CustomStyleHook;\n useTagPickerControlStyles_unstable: CustomStyleHook;\n useTagPickerGroupStyles_unstable: CustomStyleHook;\n useTagPickerListStyles_unstable: CustomStyleHook;\n useTagPickerOptionStyles_unstable: CustomStyleHook;\n useTagPickerOptionGroupStyles_unstable: CustomStyleHook;\n useColorSwatchStyles_unstable: CustomStyleHook;\n useImageSwatchStyles_unstable: CustomStyleHook;\n useEmptySwatchStyles_unstable: CustomStyleHook;\n useSwatchPickerRowStyles_unstable: CustomStyleHook;\n useSwatchPickerStyles_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":["CustomStyleHooksContext","CustomStyleHooksProvider","useCustomStyleHook","React","createContext","undefined","noop","Provider","hook","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,kBAAkB;;;;;;;;;;;
|
1
|
+
{"version":3,"sources":["../src/CustomStyleHooksContext/CustomStyleHooksContext.ts"],"sourcesContent":["/* eslint-disable */\n\nimport * as React from 'react';\n\ntype CustomStyleHook = (state: unknown) => void;\n\n// The list of hooks is built from the exports from react-components/src/index\nexport type CustomStyleHooksContextValue = Partial<{\n useAccordionHeaderStyles_unstable: CustomStyleHook;\n useAccordionItemStyles_unstable: CustomStyleHook;\n useAccordionPanelStyles_unstable: CustomStyleHook;\n useAccordionStyles_unstable: CustomStyleHook;\n useAvatarStyles_unstable: CustomStyleHook;\n useAvatarGroupStyles_unstable: CustomStyleHook;\n useAvatarGroupItemStyles_unstable: CustomStyleHook;\n useAvatarGroupPopoverStyles_unstable: CustomStyleHook;\n useBadgeStyles_unstable: CustomStyleHook;\n useCounterBadgeStyles_unstable: CustomStyleHook;\n useCardHeaderStyles_unstable: CustomStyleHook;\n useCardStyles_unstable: CustomStyleHook;\n useCardFooterStyles_unstable: CustomStyleHook;\n useCardPreviewStyles_unstable: CustomStyleHook;\n usePresenceBadgeStyles_unstable: CustomStyleHook;\n useButtonStyles_unstable: CustomStyleHook;\n useCompoundButtonStyles_unstable: CustomStyleHook;\n useMenuButtonStyles_unstable: CustomStyleHook;\n useSplitButtonStyles_unstable: CustomStyleHook;\n useToggleButtonStyles_unstable: CustomStyleHook;\n useCheckboxStyles_unstable: CustomStyleHook;\n useComboboxStyles_unstable: CustomStyleHook;\n useDropdownStyles_unstable: CustomStyleHook;\n useListboxStyles_unstable: CustomStyleHook;\n useListStyles_unstable: CustomStyleHook;\n useListItemStyles_unstable: CustomStyleHook;\n /* @deprecated Use onClick handler on the ListItem itself instead. */\n useListItemButtonStyles_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 useMenuItemSwitchStyles_unstable: CustomStyleHook;\n useMenuItemRadioStyles_unstable: CustomStyleHook;\n useMenuItemStyles_unstable: CustomStyleHook;\n useMenuItemLinkStyles_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 /** @deprecated Use useInlineDrawerStyles_unstable instead. */\n useDrawerInlineStyles_unstable: CustomStyleHook;\n /** @deprecated Use useOverlayDrawerStyles_unstable instead. */\n useDrawerOverlayStyles_unstable: CustomStyleHook;\n useInlineDrawerStyles_unstable: CustomStyleHook;\n useOverlayDrawerStyles_unstable: CustomStyleHook;\n useDrawerHeaderStyles_unstable: CustomStyleHook;\n useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;\n useDrawerHeaderTitleStyles_unstable: CustomStyleHook;\n useDrawerBodyStyles_unstable: CustomStyleHook;\n useDrawerFooterStyles_unstable: CustomStyleHook;\n useInteractionTagStyles_unstable: CustomStyleHook;\n useInteractionTagPrimaryStyles_unstable: CustomStyleHook;\n useInteractionTagSecondaryStyles_unstable: CustomStyleHook;\n useTagStyles_unstable: CustomStyleHook;\n useTagGroupStyles_unstable: CustomStyleHook;\n useBreadcrumbStyles_unstable: CustomStyleHook;\n useBreadcrumbButtonStyles_unstable: CustomStyleHook;\n useBreadcrumbItemStyles_unstable: CustomStyleHook;\n useBreadcrumbDividerStyles_unstable: CustomStyleHook;\n useMessageBarStyles_unstable: CustomStyleHook;\n useMessageBarBodyStyles_unstable: CustomStyleHook;\n useMessageBarTitleStyles_unstable: CustomStyleHook;\n useMessageBarActionsStyles_unstable: CustomStyleHook;\n useMessageBarGroupStyles_unstable: CustomStyleHook;\n useToasterStyles_unstable: CustomStyleHook;\n /** @deprecated TeachingPopover wrapper has no styles (non-UI hooks only). */\n useTeachingPopoverStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel internal functionality. */\n useTeachingPopoverActionsStyles_unstable: CustomStyleHook;\n useTeachingPopoverBodyStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel styling hooks */\n useTeachingPopoverButtonStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselStyles_unstable: CustomStyleHook;\n useTeachingPopoverHeaderStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverCarouselNav styling hooks */\n useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;\n useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;\n useTeachingPopoverTitleStyles_unstable: CustomStyleHook;\n useTimePickerCompatStyles_unstable: CustomStyleHook;\n useTagPickerInputStyles_unstable: CustomStyleHook;\n useTagPickerButtonStyles_unstable: CustomStyleHook;\n useTagPickerControlStyles_unstable: CustomStyleHook;\n useTagPickerGroupStyles_unstable: CustomStyleHook;\n useTagPickerListStyles_unstable: CustomStyleHook;\n useTagPickerOptionStyles_unstable: CustomStyleHook;\n useTagPickerOptionGroupStyles_unstable: CustomStyleHook;\n useColorSwatchStyles_unstable: CustomStyleHook;\n useImageSwatchStyles_unstable: CustomStyleHook;\n useEmptySwatchStyles_unstable: CustomStyleHook;\n useSwatchPickerRowStyles_unstable: CustomStyleHook;\n useSwatchPickerStyles_unstable: CustomStyleHook;\n useCarouselViewportStyles_unstable: CustomStyleHook;\n useCarouselSliderStyles_unstable: CustomStyleHook;\n useCarouselStyles_unstable: CustomStyleHook;\n useCarouselAutoplayButtonStyles_unstable: CustomStyleHook;\n useCarouselButtonStyles_unstable: CustomStyleHook;\n useCarouselCardStyles_unstable: CustomStyleHook;\n useCarouselNavStyles_unstable: CustomStyleHook;\n useCarouselNavButtonStyles_unstable: CustomStyleHook;\n useCarouselNavContainerStyles_unstable: CustomStyleHook;\n useCarouselNavImageButtonStyles_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":["CustomStyleHooksContext","CustomStyleHooksProvider","useCustomStyleHook","React","createContext","undefined","noop","Provider","hook","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,kBAAkB;;;;;;;;;;;IAqKLA,uBAAuB;eAAvBA;;IAOAC,wBAAwB;eAAxBA;;IAOAC,kBAAkB;eAAlBA;;;;iEAjLU;AAmKhB,MAAMF,0BAA0BG,OAAMC,aAAa,CAA2CC;AAErG,MAAMC,OAAO,KAAO;AAKb,MAAML,2BAA2BD,wBAAwBO,QAAQ;AAOjE,MAAML,qBAAqB,CAACM;QAC1BL;QAAAA;IAAP,OAAOA,CAAAA,0BAAAA,oBAAAA,OAAMM,UAAU,CAACT,sCAAjBG,wCAAAA,iBAA2C,CAACK,KAAK,cAAjDL,oCAAAA,yBAAqDG;AAC9D"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './CustomStyleHooksContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
1
|
+
{"version":3,"sources":["../src/CustomStyleHooksContext/index.ts"],"sourcesContent":["export * from './CustomStyleHooksContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["CustomStyleHooksContext.ts"],"sourcesContent":["export * from './CustomStyleHooksContext/index';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
1
|
+
{"version":3,"sources":["../src/CustomStyleHooksContext.ts"],"sourcesContent":["export * from './CustomStyleHooksContext/index';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
@@ -21,7 +21,7 @@ _export(exports, {
|
|
21
21
|
});
|
22
22
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
23
23
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
24
|
-
const OverridesContext =
|
24
|
+
const OverridesContext = _react.createContext(undefined);
|
25
25
|
const OverridesProvider = OverridesContext.Provider;
|
26
26
|
function useOverrides() {
|
27
27
|
var _React_useContext;
|
@@ -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":["OverridesContext","OverridesProvider","useOverrides","React","createContext","undefined","Provider","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAaaA,
|
1
|
+
{"version":3,"sources":["../src/OverridesContext/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":["OverridesContext","OverridesProvider","useOverrides","React","createContext","undefined","Provider","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAaaA,gBAAgB;eAAhBA;;IAKAC,iBAAiB;eAAjBA;;IAEGC,YAAY;eAAZA;;;;iEApBO;AAahB,MAAMF,mBAAmBG,OAAMC,aAAa,CAAoCC;AAKhF,MAAMJ,oBAAoBD,iBAAiBM,QAAQ;AAEnD,SAASJ;QACPC;IAAP,OAAOA,CAAAA,oBAAAA,OAAMI,UAAU,CAACP,+BAAjBG,+BAAAA,oBAAsC,CAAC;AAChD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './OverridesContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
1
|
+
{"version":3,"sources":["../src/OverridesContext/index.ts"],"sourcesContent":["export * from './OverridesContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
@@ -22,7 +22,7 @@ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
22
22
|
* Provides a mount node for portals to render into.
|
23
23
|
*
|
24
24
|
* @internal
|
25
|
-
*/ const PortalMountNodeContext =
|
25
|
+
*/ const PortalMountNodeContext = _react.createContext(undefined);
|
26
26
|
const PortalMountNodeProvider = PortalMountNodeContext.Provider;
|
27
27
|
function usePortalMountNode() {
|
28
28
|
return _react.useContext(PortalMountNodeContext);
|
@@ -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":["PortalMountNodeProvider","usePortalMountNode","PortalMountNodeContext","React","createContext","undefined","Provider","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAcaA,
|
1
|
+
{"version":3,"sources":["../src/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":["PortalMountNodeProvider","usePortalMountNode","PortalMountNodeContext","React","createContext","undefined","Provider","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAcaA,uBAAuB;eAAvBA;;IAEGC,kBAAkB;eAAlBA;;;;iEAhBO;AAIvB;;;;CAIC,GACD,MAAMC,yBAAyBC,OAAMC,aAAa,CAA8BC;AAKzE,MAAML,0BAA0BE,uBAAuBI,QAAQ;AAE/D,SAASL;IACd,OAAOE,OAAMI,UAAU,CAACL;AAC1B"}
|
@@ -20,9 +20,9 @@ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildc
|
|
20
20
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
21
21
|
/**
|
22
22
|
* @internal
|
23
|
-
*/ const ProviderContext =
|
23
|
+
*/ const ProviderContext = _react.createContext(undefined);
|
24
24
|
const providerContextDefaultValue = {
|
25
|
-
// eslint-disable-next-line no-restricted-globals
|
25
|
+
// eslint-disable-next-line @nx/workspace-no-restricted-globals -- expected ignore ( SSR friendly acquisition of globals )
|
26
26
|
targetDocument: typeof document === 'object' ? document : undefined,
|
27
27
|
dir: 'ltr'
|
28
28
|
};
|
@@ -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 // eslint-disable-next-line no-restricted-globals\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":["Provider","useFluent","ProviderContext","React","createContext","undefined","providerContextDefaultValue","targetDocument","document","dir","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IA0BaA,
|
1
|
+
{"version":3,"sources":["../src/ProviderContext/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 // eslint-disable-next-line @nx/workspace-no-restricted-globals -- expected ignore ( SSR friendly acquisition of globals )\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":["Provider","useFluent","ProviderContext","React","createContext","undefined","providerContextDefaultValue","targetDocument","document","dir","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IA0BaA,QAAQ;eAARA;;IAEGC,SAAS;eAATA;;;;iEA5BO;AAUvB;;CAEC,GACD,MAAMC,kBAAkBC,OAAMC,aAAa,CACzCC;AAGF,MAAMC,8BAAoD;IACxD,0HAA0H;IAC1HC,gBAAgB,OAAOC,aAAa,WAAWA,WAAWH;IAC1DI,KAAK;AACP;AAKO,MAAMT,WAAWE,gBAAgBF,QAAQ;AAEzC,SAASC;QACPE;IAAP,OAAOA,CAAAA,oBAAAA,OAAMO,UAAU,CAACR,8BAAjBC,+BAAAA,oBAAqCG;AAC9C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './ProviderContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
1
|
+
{"version":3,"sources":["../src/ProviderContext/index.ts"],"sourcesContent":["export * from './ProviderContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ProviderContext.ts"],"sourcesContent":["export * from './ProviderContext/index';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
1
|
+
{"version":3,"sources":["../src/ProviderContext.ts"],"sourcesContent":["export * from './ProviderContext/index';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
@@ -23,7 +23,7 @@ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
23
23
|
* Used to provide a CSS class that applies theme css variables
|
24
24
|
*
|
25
25
|
* Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals
|
26
|
-
*/ const ThemeClassNameContext =
|
26
|
+
*/ const ThemeClassNameContext = _react.createContext(undefined);
|
27
27
|
const themeClassNameContextDefaultVaue = '';
|
28
28
|
const ThemeClassNameProvider = ThemeClassNameContext.Provider;
|
29
29
|
function useThemeClassName() {
|
@@ -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":["ThemeClassNameProvider","useThemeClassName","ThemeClassNameContext","React","createContext","undefined","themeClassNameContextDefaultVaue","Provider","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAgBaA,
|
1
|
+
{"version":3,"sources":["../src/ThemeClassNameContext/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":["ThemeClassNameProvider","useThemeClassName","ThemeClassNameContext","React","createContext","undefined","themeClassNameContextDefaultVaue","Provider","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAgBaA,sBAAsB;eAAtBA;;IAKGC,iBAAiB;eAAjBA;;;;iEArBO;AAIvB;;;;;CAKC,GACD,MAAMC,wBAAwBC,OAAMC,aAAa,CAC/CC;AAGF,MAAMC,mCAAmC;AAElC,MAAMN,yBAAyBE,sBAAsBK,QAAQ;AAK7D,SAASN;QACPE;IAAP,OAAOA,CAAAA,oBAAAA,OAAMK,UAAU,CAACN,oCAAjBC,+BAAAA,oBAA2CG;AACpD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './ThemeClassNameContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
1
|
+
{"version":3,"sources":["../src/ThemeClassNameContext/index.ts"],"sourcesContent":["export * from './ThemeClassNameContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeClassNameContext.ts"],"sourcesContent":["export * from './ThemeClassNameContext/index';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
1
|
+
{"version":3,"sources":["../src/ThemeClassNameContext.ts"],"sourcesContent":["export * from './ThemeClassNameContext/index';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
@@ -18,5 +18,5 @@ _export(exports, {
|
|
18
18
|
});
|
19
19
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
20
20
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
21
|
-
const ThemeContext =
|
21
|
+
const ThemeContext = _react.createContext(undefined);
|
22
22
|
const ThemeProvider = ThemeContext.Provider;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeContext.ts"],"sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\n/**\n * @internal\n */\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const ThemeProvider = ThemeContext.Provider;\n"],"names":["ThemeContext","ThemeProvider","React","createContext","undefined","Provider"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAQaA,
|
1
|
+
{"version":3,"sources":["../src/ThemeContext/ThemeContext.ts"],"sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\n/**\n * @internal\n */\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const ThemeProvider = ThemeContext.Provider;\n"],"names":["ThemeContext","ThemeProvider","React","createContext","undefined","Provider"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAQaA,YAAY;eAAZA;;IAKAC,aAAa;eAAbA;;;;iEAbU;AAQhB,MAAMD,eAAeE,OAAMC,aAAa,CAAoBC;AAK5D,MAAMH,gBAAgBD,aAAaK,QAAQ"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './ThemeContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
1
|
+
{"version":3,"sources":["../src/ThemeContext/index.ts"],"sourcesContent":["export * from './ThemeContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeContext.ts"],"sourcesContent":["export * from './ThemeContext/index';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
1
|
+
{"version":3,"sources":["../src/ThemeContext.ts"],"sourcesContent":["export * from './ThemeContext/index';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
@@ -21,7 +21,7 @@ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
21
21
|
/**
|
22
22
|
* @internal
|
23
23
|
* Context shared by all of the tooltips in the app
|
24
|
-
*/ const TooltipVisibilityContext =
|
24
|
+
*/ const TooltipVisibilityContext = _react.createContext(undefined);
|
25
25
|
const tooltipVisibilityContextDefaultValue = {};
|
26
26
|
const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
|
27
27
|
function useTooltipVisibility() {
|
@@ -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":["TooltipVisibilityProvider","useTooltipVisibility","TooltipVisibilityContext","React","createContext","undefined","tooltipVisibilityContextDefaultValue","Provider","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IA4BaA,
|
1
|
+
{"version":3,"sources":["../src/TooltipVisibilityContext/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":["TooltipVisibilityProvider","useTooltipVisibility","TooltipVisibilityContext","React","createContext","undefined","tooltipVisibilityContextDefaultValue","Provider","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IA4BaA,yBAAyB;eAAzBA;;IAEGC,oBAAoB;eAApBA;;;;iEA9BO;AAevB;;;CAGC,GACD,MAAMC,2BAA2BC,OAAMC,aAAa,CAClDC;AAGF,MAAMC,uCAAsE,CAAC;AAKtE,MAAMN,4BAA4BE,yBAAyBK,QAAQ;AAEnE,SAASN;QACPE;IAAP,OAAOA,CAAAA,oBAAAA,OAAMK,UAAU,CAACN,uCAAjBC,+BAAAA,oBAA8CG;AACvD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './TooltipContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
1
|
+
{"version":3,"sources":["../src/TooltipVisibilityContext/index.ts"],"sourcesContent":["export * from './TooltipContext';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["TooltipVisibilityContext.ts"],"sourcesContent":["export * from './TooltipVisibilityContext/index';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
1
|
+
{"version":3,"sources":["../src/TooltipVisibilityContext.ts"],"sourcesContent":["export * from './TooltipVisibilityContext/index';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
@@ -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"],"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,
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from './ThemeContext';\nexport type { ThemeContextValue as ThemeContextValue_unstable } from './ThemeContext';\n\nexport {\n ThemeClassNameProvider as ThemeClassNameProvider_unstable,\n useThemeClassName as useThemeClassName_unstable,\n} from './ThemeClassNameContext';\nexport type { ThemeClassNameContextValue as ThemeClassNameContextValue_unstable } from './ThemeClassNameContext';\n\nexport {\n TooltipVisibilityProvider as TooltipVisibilityProvider_unstable,\n useTooltipVisibility as useTooltipVisibility_unstable,\n} from './TooltipVisibilityContext';\nexport type { TooltipVisibilityContextValue as TooltipVisibilityContextValue_unstable } from './TooltipVisibilityContext';\n\nexport { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';\nexport type { ProviderContextValue as ProviderContextValue_unstable } from './ProviderContext';\n\nexport {\n OverridesProvider as OverridesProvider_unstable,\n useOverrides as useOverrides_unstable,\n} from './OverridesContext';\nexport type { OverridesContextValue as OverridesContextValue_unstable } from './OverridesContext';\n\nexport {\n CustomStyleHooksContext as CustomStyleHooksContext_unstable,\n CustomStyleHooksProvider as CustomStyleHooksProvider_unstable,\n useCustomStyleHook as useCustomStyleHook_unstable,\n} from './CustomStyleHooksContext';\nexport type { CustomStyleHooksContextValue as CustomStyleHooksContextValue_unstable } from './CustomStyleHooksContext';\n\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,iCAAgB;;IARTE,4BAA4B;eAA5BA,yDAA4B;;IANRC,gCAAgC;eAA3DC,gDAAuB;;IACKC,iCAAiC;eAA7DC,iDAAwB;;IAPHC,0BAA0B;eAA/CC,mCAAiB;;IAeVC,uBAAuB;eAAvBA,+CAAuB;;IAnBXC,iBAAiB;eAA7BC,yBAAQ;;IAXWC,+BAA+B;eAAzDC,6CAAsB;;IAJCC,qBAAqB;eAArCC,0BAAY;;IAA4CC,sBAAsB;eAAvCC,2BAAa;;IAU9BC,kCAAkC;eAA/DC,mDAAyB;;IA8BzBC,WAAW;eAAXA,4BAAW;;IAEIC,oBAAoB;eADnC,yCAAyC,GACzCD,4BAAW;;IAX0BE,uBAAuB;eAAvBA,oDAAuB;;IAJtCC,2BAA2B;eAAjDC,2CAAkB;;IAZiCC,kBAAkB;eAA/BC,0BAAS;;IAK/BC,qBAAqB;eAArCC,8BAAY;;IAcoBC,kBAAkB;eAAlBA,0CAAkB;;IA7B7BC,0BAA0B;eAA/CC,wCAAiB;;IAMOC,6BAA6B;eAArDC,8CAAoB;;;8BAXyE;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": "9.
|
3
|
+
"version": "9.21.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",
|
@@ -11,25 +11,12 @@
|
|
11
11
|
"url": "https://github.com/microsoft/fluentui"
|
12
12
|
},
|
13
13
|
"license": "MIT",
|
14
|
-
"scripts": {
|
15
|
-
"build": "just-scripts build",
|
16
|
-
"clean": "just-scripts clean",
|
17
|
-
"code-style": "just-scripts code-style",
|
18
|
-
"just": "just-scripts",
|
19
|
-
"lint": "just-scripts lint",
|
20
|
-
"test": "jest --passWithNoTests",
|
21
|
-
"type-check": "just-scripts type-check",
|
22
|
-
"generate-api": "just-scripts generate-api",
|
23
|
-
"storybook": "yarn --cwd ../stories storybook",
|
24
|
-
"start": "yarn storybook"
|
25
|
-
},
|
26
14
|
"devDependencies": {
|
27
15
|
"@fluentui/eslint-plugin": "*",
|
28
|
-
"@fluentui/scripts-api-extractor": "*"
|
29
|
-
"@fluentui/scripts-tasks": "*"
|
16
|
+
"@fluentui/scripts-api-extractor": "*"
|
30
17
|
},
|
31
18
|
"dependencies": {
|
32
|
-
"@fluentui/react-theme": "^9.1.
|
19
|
+
"@fluentui/react-theme": "^9.1.22",
|
33
20
|
"@swc/helpers": "^0.5.1"
|
34
21
|
},
|
35
22
|
"peerDependencies": {
|