@fluentui/react-shared-contexts 9.26.1 → 9.26.3
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 +21 -2
- package/dist/index.d.cts +753 -0
- package/lib/AnnounceContext/AnnounceContext.js +1 -1
- package/lib/AnnounceContext/index.js +1 -1
- package/lib/AnnounceContext/index.js.map +1 -1
- package/lib/BackgroundAppearanceContext/BackgroundAppearanceContext.js +1 -1
- package/lib/BackgroundAppearanceContext/index.js +1 -1
- package/lib/BackgroundAppearanceContext/index.js.map +1 -1
- package/lib/CustomStyleHooksContext/CustomStyleHooksContext.js +4 -2
- package/lib/CustomStyleHooksContext/CustomStyleHooksContext.js.map +1 -1
- package/lib/CustomStyleHooksContext/index.js +1 -1
- package/lib/CustomStyleHooksContext/index.js.map +1 -1
- package/lib/CustomStyleHooksContext.js +1 -1
- package/lib/CustomStyleHooksContext.js.map +1 -1
- package/lib/OverridesContext/OverridesContext.js +1 -1
- package/lib/OverridesContext/index.js +1 -1
- package/lib/OverridesContext/index.js.map +1 -1
- package/lib/PortalMountNodeContext.js +1 -1
- package/lib/ProviderContext/ProviderContext.js +1 -1
- package/lib/ProviderContext/index.js +1 -1
- package/lib/ProviderContext/index.js.map +1 -1
- package/lib/ProviderContext.js +1 -1
- package/lib/ProviderContext.js.map +1 -1
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js +3 -2
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib/ThemeClassNameContext/index.js +1 -1
- package/lib/ThemeClassNameContext/index.js.map +1 -1
- package/lib/ThemeClassNameContext.js +1 -1
- package/lib/ThemeClassNameContext.js.map +1 -1
- package/lib/ThemeContext/ThemeContext.js +1 -1
- package/lib/ThemeContext/index.js +1 -1
- package/lib/ThemeContext/index.js.map +1 -1
- package/lib/ThemeContext.js +1 -1
- package/lib/ThemeContext.js.map +1 -1
- package/lib/TooltipVisibilityContext/TooltipContext.js +3 -2
- package/lib/TooltipVisibilityContext/TooltipContext.js.map +1 -1
- package/lib/TooltipVisibilityContext/index.js +1 -1
- package/lib/TooltipVisibilityContext/index.js.map +1 -1
- package/lib/TooltipVisibilityContext.js +1 -1
- package/lib/TooltipVisibilityContext.js.map +1 -1
- package/lib/index.js +9 -9
- package/lib/index.js.map +1 -1
- package/lib-commonjs/AnnounceContext/{index.js → index.cjs} +1 -1
- package/lib-commonjs/BackgroundAppearanceContext/{index.js → index.cjs} +1 -1
- package/lib-commonjs/CustomStyleHooksContext/{CustomStyleHooksContext.js → CustomStyleHooksContext.cjs} +3 -1
- package/lib-commonjs/CustomStyleHooksContext/CustomStyleHooksContext.cjs.map +1 -0
- package/lib-commonjs/CustomStyleHooksContext/{index.js → index.cjs} +1 -1
- package/lib-commonjs/{CustomStyleHooksContext.js → CustomStyleHooksContext.cjs} +1 -1
- package/lib-commonjs/OverridesContext/{index.js → index.cjs} +1 -1
- package/lib-commonjs/ProviderContext/{index.js → index.cjs} +1 -1
- package/lib-commonjs/{ProviderContext.js → ProviderContext.cjs} +1 -1
- package/lib-commonjs/ThemeClassNameContext/{ThemeClassNameContext.js → ThemeClassNameContext.cjs} +2 -1
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.cjs.map +1 -0
- package/lib-commonjs/ThemeClassNameContext/{index.js → index.cjs} +1 -1
- package/lib-commonjs/{ThemeClassNameContext.js → ThemeClassNameContext.cjs} +1 -1
- package/lib-commonjs/ThemeContext/{index.js → index.cjs} +1 -1
- package/lib-commonjs/{ThemeContext.js → ThemeContext.cjs} +1 -1
- package/lib-commonjs/TooltipVisibilityContext/{TooltipContext.js → TooltipContext.cjs} +2 -1
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.cjs.map +1 -0
- package/lib-commonjs/TooltipVisibilityContext/{index.js → index.cjs} +1 -1
- package/lib-commonjs/{TooltipVisibilityContext.js → TooltipVisibilityContext.cjs} +1 -1
- package/lib-commonjs/{index.js → index.cjs} +9 -9
- package/package.json +14 -8
- package/lib-commonjs/CustomStyleHooksContext/CustomStyleHooksContext.js.map +0 -1
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js.map +0 -1
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js.map +0 -1
- /package/lib-commonjs/AnnounceContext/{AnnounceContext.js → AnnounceContext.cjs} +0 -0
- /package/lib-commonjs/AnnounceContext/{AnnounceContext.js.map → AnnounceContext.cjs.map} +0 -0
- /package/lib-commonjs/AnnounceContext/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/BackgroundAppearanceContext/{BackgroundAppearanceContext.js → BackgroundAppearanceContext.cjs} +0 -0
- /package/lib-commonjs/BackgroundAppearanceContext/{BackgroundAppearanceContext.js.map → BackgroundAppearanceContext.cjs.map} +0 -0
- /package/lib-commonjs/BackgroundAppearanceContext/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/CustomStyleHooksContext/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/{CustomStyleHooksContext.js.map → CustomStyleHooksContext.cjs.map} +0 -0
- /package/lib-commonjs/OverridesContext/{OverridesContext.js → OverridesContext.cjs} +0 -0
- /package/lib-commonjs/OverridesContext/{OverridesContext.js.map → OverridesContext.cjs.map} +0 -0
- /package/lib-commonjs/OverridesContext/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/{PortalMountNodeContext.js → PortalMountNodeContext.cjs} +0 -0
- /package/lib-commonjs/{PortalMountNodeContext.js.map → PortalMountNodeContext.cjs.map} +0 -0
- /package/lib-commonjs/ProviderContext/{ProviderContext.js → ProviderContext.cjs} +0 -0
- /package/lib-commonjs/ProviderContext/{ProviderContext.js.map → ProviderContext.cjs.map} +0 -0
- /package/lib-commonjs/ProviderContext/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/{ProviderContext.js.map → ProviderContext.cjs.map} +0 -0
- /package/lib-commonjs/ThemeClassNameContext/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/{ThemeClassNameContext.js.map → ThemeClassNameContext.cjs.map} +0 -0
- /package/lib-commonjs/ThemeContext/{ThemeContext.js → ThemeContext.cjs} +0 -0
- /package/lib-commonjs/ThemeContext/{ThemeContext.js.map → ThemeContext.cjs.map} +0 -0
- /package/lib-commonjs/ThemeContext/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/{ThemeContext.js.map → ThemeContext.cjs.map} +0 -0
- /package/lib-commonjs/TooltipVisibilityContext/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/{TooltipVisibilityContext.js.map → TooltipVisibilityContext.cjs.map} +0 -0
- /package/lib-commonjs/{index.js.map → index.cjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AnnounceProvider, useAnnounce } from
|
|
1
|
+
export { AnnounceProvider, useAnnounce } from "./AnnounceContext.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/AnnounceContext/index.ts"],"sourcesContent":["export type { AnnounceContextValue, AnnounceOptions } from './AnnounceContext';\nexport { AnnounceProvider, useAnnounce } from './AnnounceContext';\n"],"names":["AnnounceProvider","useAnnounce"],"mappings":"AACA,SAASA,gBAAgB,EAAEC,WAAW,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/AnnounceContext/index.ts"],"sourcesContent":["export type { AnnounceContextValue, AnnounceOptions } from './AnnounceContext';\nexport { AnnounceProvider, useAnnounce } from './AnnounceContext';\n"],"names":["AnnounceProvider","useAnnounce"],"mappings":"AACA,SAASA,gBAAgB,EAAEC,WAAW,QAAQ,uBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { BackgroundAppearanceContext, BackgroundAppearanceProvider, useBackgroundAppearance } from
|
|
1
|
+
export { BackgroundAppearanceContext, BackgroundAppearanceProvider, useBackgroundAppearance } from "./BackgroundAppearanceContext.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/BackgroundAppearanceContext/index.ts"],"sourcesContent":["export type { BackgroundAppearanceContextValue } from './BackgroundAppearanceContext';\nexport {\n BackgroundAppearanceContext,\n BackgroundAppearanceProvider,\n useBackgroundAppearance,\n} from './BackgroundAppearanceContext';\n"],"names":["BackgroundAppearanceContext","BackgroundAppearanceProvider","useBackgroundAppearance"],"mappings":"AACA,SACEA,2BAA2B,EAC3BC,4BAA4B,EAC5BC,uBAAuB,QAClB,
|
|
1
|
+
{"version":3,"sources":["../src/BackgroundAppearanceContext/index.ts"],"sourcesContent":["export type { BackgroundAppearanceContextValue } from './BackgroundAppearanceContext';\nexport {\n BackgroundAppearanceContext,\n BackgroundAppearanceProvider,\n useBackgroundAppearance,\n} from './BackgroundAppearanceContext';\n"],"names":["BackgroundAppearanceContext","BackgroundAppearanceProvider","useBackgroundAppearance"],"mappings":"AACA,SACEA,2BAA2B,EAC3BC,4BAA4B,EAC5BC,uBAAuB,QAClB,mCAAgC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
/* eslint-enable */ /**
|
|
3
4
|
* @internal
|
|
4
5
|
*/ export const CustomStyleHooksContext = React.createContext(undefined);
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
5
7
|
const noop = ()=>{};
|
|
6
8
|
/**
|
|
7
9
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
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 useAlphaSliderStyles_unstable: CustomStyleHook;\n useAvatarGroupItemStyles_unstable: CustomStyleHook;\n useAvatarGroupPopoverStyles_unstable: CustomStyleHook;\n useAvatarGroupStyles_unstable: CustomStyleHook;\n useAvatarStyles_unstable: CustomStyleHook;\n useBadgeStyles_unstable: CustomStyleHook;\n useBreadcrumbButtonStyles_unstable: CustomStyleHook;\n useBreadcrumbDividerStyles_unstable: CustomStyleHook;\n useBreadcrumbItemStyles_unstable: CustomStyleHook;\n useBreadcrumbStyles_unstable: CustomStyleHook;\n useButtonStyles_unstable: CustomStyleHook;\n useCardFooterStyles_unstable: CustomStyleHook;\n useCardHeaderStyles_unstable: CustomStyleHook;\n useCardPreviewStyles_unstable: CustomStyleHook;\n useCardStyles_unstable: CustomStyleHook;\n useCarouselAutoplayButtonStyles_unstable: CustomStyleHook;\n useCarouselButtonStyles_unstable: CustomStyleHook;\n useCarouselCardStyles_unstable: CustomStyleHook;\n useCarouselNavButtonStyles_unstable: CustomStyleHook;\n useCarouselNavContainerStyles_unstable: CustomStyleHook;\n useCarouselNavImageButtonStyles_unstable: CustomStyleHook;\n useCarouselNavStyles_unstable: CustomStyleHook;\n useCarouselSliderStyles_unstable: CustomStyleHook;\n useCarouselStyles_unstable: CustomStyleHook;\n useCarouselViewportStyles_unstable: CustomStyleHook;\n useCheckboxStyles_unstable: CustomStyleHook;\n useComboboxStyles_unstable: CustomStyleHook;\n useCompoundButtonStyles_unstable: CustomStyleHook;\n useColorAreaStyles_unstable: CustomStyleHook;\n useColorPickerStyles_unstable: CustomStyleHook;\n useColorSliderStyles_unstable: CustomStyleHook;\n useColorSwatchStyles_unstable: CustomStyleHook;\n useCounterBadgeStyles_unstable: CustomStyleHook;\n useDataGridBodyStyles_unstable: CustomStyleHook;\n useDataGridCellStyles_unstable: CustomStyleHook;\n useDataGridHeaderCellStyles_unstable: CustomStyleHook;\n useDataGridHeaderStyles_unstable: CustomStyleHook;\n useDataGridRowStyles_unstable: CustomStyleHook;\n useDataGridSelectionCellStyles_unstable: CustomStyleHook;\n useDataGridStyles_unstable: CustomStyleHook;\n useDialogActionsStyles_unstable: CustomStyleHook;\n useDialogBodyStyles_unstable: CustomStyleHook;\n useDialogContentStyles_unstable: CustomStyleHook;\n useDialogSurfaceStyles_unstable: CustomStyleHook;\n useDialogTitleStyles_unstable: CustomStyleHook;\n useDividerStyles_unstable: CustomStyleHook;\n useDrawerBodyStyles_unstable: CustomStyleHook;\n useDrawerFooterStyles_unstable: CustomStyleHook;\n useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;\n useDrawerHeaderStyles_unstable: CustomStyleHook;\n useDrawerHeaderTitleStyles_unstable: CustomStyleHook;\n /** @deprecated Use useInlineDrawerStyles_unstable instead. */\n useDrawerInlineStyles_unstable: CustomStyleHook;\n /** @deprecated Use useOverlayDrawerStyles_unstable instead. */\n useDrawerOverlayStyles_unstable: CustomStyleHook;\n useOverlayDrawerSurfaceStyles_unstable: CustomStyleHook;\n useDrawerStyles_unstable: CustomStyleHook;\n useDropdownStyles_unstable: CustomStyleHook;\n useEmptySwatchStyles_unstable: CustomStyleHook;\n useFieldStyles_unstable: CustomStyleHook;\n useFlatTreeStyles_unstable: CustomStyleHook;\n useImageStyles_unstable: CustomStyleHook;\n useImageSwatchStyles_unstable: CustomStyleHook;\n useInfoButtonStyles_unstable: CustomStyleHook;\n useInfoLabelStyles_unstable: CustomStyleHook;\n useInlineDrawerStyles_unstable: CustomStyleHook;\n useInputStyles_unstable: CustomStyleHook;\n useInteractionTagPrimaryStyles_unstable: CustomStyleHook;\n useInteractionTagSecondaryStyles_unstable: CustomStyleHook;\n useInteractionTagStyles_unstable: CustomStyleHook;\n useLabelStyles_unstable: CustomStyleHook;\n useLinkStyles_unstable: CustomStyleHook;\n /** @deprecated Use onClick handler on the ListItem itself instead. */\n useListItemButtonStyles_unstable: CustomStyleHook;\n useListItemStyles_unstable: CustomStyleHook;\n useListStyles_unstable: CustomStyleHook;\n useListboxStyles_unstable: CustomStyleHook;\n useMenuButtonStyles_unstable: CustomStyleHook;\n useMenuDividerStyles_unstable: CustomStyleHook;\n useMenuGroupHeaderStyles_unstable: CustomStyleHook;\n useMenuGroupStyles_unstable: CustomStyleHook;\n useMenuItemCheckboxStyles_unstable: CustomStyleHook;\n useMenuItemLinkStyles_unstable: CustomStyleHook;\n useMenuItemRadioStyles_unstable: CustomStyleHook;\n useMenuItemStyles_unstable: CustomStyleHook;\n useMenuItemSwitchStyles_unstable: CustomStyleHook;\n useMenuListStyles_unstable: CustomStyleHook;\n useMenuPopoverStyles_unstable: CustomStyleHook;\n useMenuSplitGroupStyles_unstable: CustomStyleHook;\n useMessageBarActionsStyles_unstable: CustomStyleHook;\n useMessageBarBodyStyles_unstable: CustomStyleHook;\n useMessageBarGroupStyles_unstable: CustomStyleHook;\n useMessageBarStyles_unstable: CustomStyleHook;\n useMessageBarTitleStyles_unstable: CustomStyleHook;\n useAppItemStyles_unstable: CustomStyleHook;\n useAppItemStaticStyles_unstable: CustomStyleHook;\n useHamburgerStyles_unstable: CustomStyleHook;\n useNavCategoryItemStyles: CustomStyleHook;\n useNavDividerStyles_unstable: CustomStyleHook;\n useNavDrawerStyles_unstable: CustomStyleHook;\n useNavDrawerBodyStyles_unstable: CustomStyleHook;\n useNavDrawerFooterStyles_unstable: CustomStyleHook;\n useNavDrawerHeaderStyles_unstable: CustomStyleHook;\n useNavItemStyles_unstable: CustomStyleHook;\n useNavSectionHeaderStyles_unstable: CustomStyleHook;\n useNavSubItemStyles_unstable: CustomStyleHook;\n useNavSubItemGroupStyles_unstable: CustomStyleHook;\n useSplitNavItemStyles_unstable: CustomStyleHook;\n useOptionGroupStyles_unstable: CustomStyleHook;\n useOptionStyles_unstable: CustomStyleHook;\n useOverlayDrawerStyles_unstable: CustomStyleHook;\n usePersonaStyles_unstable: CustomStyleHook;\n usePopoverSurfaceStyles_unstable: CustomStyleHook;\n usePresenceBadgeStyles_unstable: CustomStyleHook;\n useProgressBarStyles_unstable: CustomStyleHook;\n useRadioGroupStyles_unstable: CustomStyleHook;\n useRadioStyles_unstable: CustomStyleHook;\n useRatingDisplayStyles_unstable: CustomStyleHook;\n useRatingItemStyles_unstable: CustomStyleHook;\n useRatingStyles_unstable: CustomStyleHook;\n useSearchBoxStyles_unstable: CustomStyleHook;\n useSelectStyles_unstable: CustomStyleHook;\n useSkeletonItemStyles_unstable: CustomStyleHook;\n useSkeletonStyles_unstable: CustomStyleHook;\n useSliderStyles_unstable: CustomStyleHook;\n useSpinButtonStyles_unstable: CustomStyleHook;\n useSpinnerStyles_unstable: CustomStyleHook;\n useSplitButtonStyles_unstable: CustomStyleHook;\n useSwatchPickerRowStyles_unstable: CustomStyleHook;\n useSwatchPickerStyles_unstable: CustomStyleHook;\n useSwitchStyles_unstable: CustomStyleHook;\n useTabListStyles_unstable: CustomStyleHook;\n useTabStyles_unstable: CustomStyleHook;\n useTeachingPopoverBodyStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselCardStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselFooterButtonStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselFooterStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselNavButtonStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselNavStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselPageCountStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselStyles_unstable: CustomStyleHook;\n useTeachingPopoverFooterStyles_unstable: CustomStyleHook;\n useTeachingPopoverHeaderStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel internal functionality. */\n useTeachingPopoverActionsStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel styling hooks */\n useTeachingPopoverButtonStyles_unstable: CustomStyleHook;\n /** @deprecated TeachingPopover wrapper has no styles (non-UI hooks only). */\n useTeachingPopoverStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverCarouselNav styling hooks */\n useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;\n useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;\n useTeachingPopoverTitleStyles_unstable: CustomStyleHook;\n useTagGroupStyles_unstable: CustomStyleHook;\n useTagPickerButtonStyles_unstable: CustomStyleHook;\n useTagPickerControlStyles_unstable: CustomStyleHook;\n useTagPickerGroupStyles_unstable: CustomStyleHook;\n useTagPickerInputStyles_unstable: CustomStyleHook;\n useTagPickerListStyles_unstable: CustomStyleHook;\n useTagPickerOptionGroupStyles_unstable: CustomStyleHook;\n useTagPickerOptionStyles_unstable: CustomStyleHook;\n useTagStyles_unstable: CustomStyleHook;\n useTableBodyStyles_unstable: CustomStyleHook;\n useTableCellActionsStyles_unstable: CustomStyleHook;\n useTableCellLayoutStyles_unstable: CustomStyleHook;\n useTableCellStyles_unstable: CustomStyleHook;\n useTableHeaderCellStyles_unstable: CustomStyleHook;\n useTableHeaderStyles_unstable: CustomStyleHook;\n useTableResizeHandleStyles_unstable: CustomStyleHook;\n useTableRowStyles_unstable: CustomStyleHook;\n useTableSelectionCellStyles_unstable: CustomStyleHook;\n useTableStyles_unstable: CustomStyleHook;\n useTextareaStyles_unstable: CustomStyleHook;\n useTextStyles_unstable: CustomStyleHook;\n useTimePickerCompatStyles_unstable: CustomStyleHook;\n useToastBodyStyles_unstable: CustomStyleHook;\n useToastContainerStyles_unstable: CustomStyleHook;\n useToasterStyles_unstable: CustomStyleHook;\n useToastFooterStyles_unstable: CustomStyleHook;\n useToastStyles_unstable: CustomStyleHook;\n useToastTitleStyles_unstable: CustomStyleHook;\n useToggleButtonStyles_unstable: CustomStyleHook;\n useToolbarButtonStyles_unstable: CustomStyleHook;\n useToolbarDividerStyles_unstable: CustomStyleHook;\n useToolbarGroupStyles_unstable: CustomStyleHook;\n useToolbarRadioButtonStyles_unstable: CustomStyleHook;\n useToolbarToggleButtonStyles_unstable: CustomStyleHook;\n useToolbarStyles_unstable: CustomStyleHook;\n useTooltipStyles_unstable: CustomStyleHook;\n useTreeItemLayoutStyles_unstable: CustomStyleHook;\n useTreeItemPersonaLayoutStyles_unstable: CustomStyleHook;\n useTreeItemStyles_unstable: CustomStyleHook;\n useTreeStyles_unstable: CustomStyleHook;\n useVirtualizerScrollViewDynamicStyles_unstable: CustomStyleHook;\n useVirtualizerScrollViewStyles_unstable: CustomStyleHook;\n useVirtualizerStyles_unstable: CustomStyleHook;\n}>;\n\n/**\n * @internal\n */\nexport const CustomStyleHooksContext = React.createContext<CustomStyleHooksContextValue | undefined>(undefined);\n\nconst noop = () => {};\n\n/**\n * @internal\n */\nexport const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;\n\n/**\n * Gets a custom style hook\n * @param hook - One of the hook properties in CustomStyleHooksContextValue\n * @returns The corresponding hook when defined, otherwise a no-op function.\n */\nexport const useCustomStyleHook = (hook: keyof CustomStyleHooksContextValue): CustomStyleHook => {\n return React.useContext(CustomStyleHooksContext)?.[hook] ?? noop;\n};\n"],"names":["React","CustomStyleHooksContext","createContext","undefined","noop","CustomStyleHooksProvider","Provider","useCustomStyleHook","hook","useContext"],"mappings":"AAAA,kBAAkB,GAElB,YAAYA,WAAW,QAAQ;AAgN/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
|
+
{"version":3,"sources":["../src/CustomStyleHooksContext/CustomStyleHooksContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\ntype CustomStyleHook = (state: unknown) => void;\n\n/* eslint-disable @typescript-eslint/naming-convention */\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 useAlphaSliderStyles_unstable: CustomStyleHook;\n useAvatarGroupItemStyles_unstable: CustomStyleHook;\n useAvatarGroupPopoverStyles_unstable: CustomStyleHook;\n useAvatarGroupStyles_unstable: CustomStyleHook;\n useAvatarStyles_unstable: CustomStyleHook;\n useBadgeStyles_unstable: CustomStyleHook;\n useBreadcrumbButtonStyles_unstable: CustomStyleHook;\n useBreadcrumbDividerStyles_unstable: CustomStyleHook;\n useBreadcrumbItemStyles_unstable: CustomStyleHook;\n useBreadcrumbStyles_unstable: CustomStyleHook;\n useButtonStyles_unstable: CustomStyleHook;\n useCardFooterStyles_unstable: CustomStyleHook;\n useCardHeaderStyles_unstable: CustomStyleHook;\n useCardPreviewStyles_unstable: CustomStyleHook;\n useCardStyles_unstable: CustomStyleHook;\n useCarouselAutoplayButtonStyles_unstable: CustomStyleHook;\n useCarouselButtonStyles_unstable: CustomStyleHook;\n useCarouselCardStyles_unstable: CustomStyleHook;\n useCarouselNavButtonStyles_unstable: CustomStyleHook;\n useCarouselNavContainerStyles_unstable: CustomStyleHook;\n useCarouselNavImageButtonStyles_unstable: CustomStyleHook;\n useCarouselNavStyles_unstable: CustomStyleHook;\n useCarouselSliderStyles_unstable: CustomStyleHook;\n useCarouselStyles_unstable: CustomStyleHook;\n useCarouselViewportStyles_unstable: CustomStyleHook;\n useCheckboxStyles_unstable: CustomStyleHook;\n useComboboxStyles_unstable: CustomStyleHook;\n useCompoundButtonStyles_unstable: CustomStyleHook;\n useColorAreaStyles_unstable: CustomStyleHook;\n useColorPickerStyles_unstable: CustomStyleHook;\n useColorSliderStyles_unstable: CustomStyleHook;\n useColorSwatchStyles_unstable: CustomStyleHook;\n useCounterBadgeStyles_unstable: CustomStyleHook;\n useDataGridBodyStyles_unstable: CustomStyleHook;\n useDataGridCellStyles_unstable: CustomStyleHook;\n useDataGridHeaderCellStyles_unstable: CustomStyleHook;\n useDataGridHeaderStyles_unstable: CustomStyleHook;\n useDataGridRowStyles_unstable: CustomStyleHook;\n useDataGridSelectionCellStyles_unstable: CustomStyleHook;\n useDataGridStyles_unstable: CustomStyleHook;\n useDialogActionsStyles_unstable: CustomStyleHook;\n useDialogBodyStyles_unstable: CustomStyleHook;\n useDialogContentStyles_unstable: CustomStyleHook;\n useDialogSurfaceStyles_unstable: CustomStyleHook;\n useDialogTitleStyles_unstable: CustomStyleHook;\n useDividerStyles_unstable: CustomStyleHook;\n useDrawerBodyStyles_unstable: CustomStyleHook;\n useDrawerFooterStyles_unstable: CustomStyleHook;\n useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;\n useDrawerHeaderStyles_unstable: CustomStyleHook;\n useDrawerHeaderTitleStyles_unstable: CustomStyleHook;\n /** @deprecated Use useInlineDrawerStyles_unstable instead. */\n useDrawerInlineStyles_unstable: CustomStyleHook;\n /** @deprecated Use useOverlayDrawerStyles_unstable instead. */\n useDrawerOverlayStyles_unstable: CustomStyleHook;\n useOverlayDrawerSurfaceStyles_unstable: CustomStyleHook;\n useDrawerStyles_unstable: CustomStyleHook;\n useDropdownStyles_unstable: CustomStyleHook;\n useEmptySwatchStyles_unstable: CustomStyleHook;\n useFieldStyles_unstable: CustomStyleHook;\n useFlatTreeStyles_unstable: CustomStyleHook;\n useImageStyles_unstable: CustomStyleHook;\n useImageSwatchStyles_unstable: CustomStyleHook;\n useInfoButtonStyles_unstable: CustomStyleHook;\n useInfoLabelStyles_unstable: CustomStyleHook;\n useInlineDrawerStyles_unstable: CustomStyleHook;\n useInputStyles_unstable: CustomStyleHook;\n useInteractionTagPrimaryStyles_unstable: CustomStyleHook;\n useInteractionTagSecondaryStyles_unstable: CustomStyleHook;\n useInteractionTagStyles_unstable: CustomStyleHook;\n useLabelStyles_unstable: CustomStyleHook;\n useLinkStyles_unstable: CustomStyleHook;\n /** @deprecated Use onClick handler on the ListItem itself instead. */\n useListItemButtonStyles_unstable: CustomStyleHook;\n useListItemStyles_unstable: CustomStyleHook;\n useListStyles_unstable: CustomStyleHook;\n useListboxStyles_unstable: CustomStyleHook;\n useMenuButtonStyles_unstable: CustomStyleHook;\n useMenuDividerStyles_unstable: CustomStyleHook;\n useMenuGroupHeaderStyles_unstable: CustomStyleHook;\n useMenuGroupStyles_unstable: CustomStyleHook;\n useMenuItemCheckboxStyles_unstable: CustomStyleHook;\n useMenuItemLinkStyles_unstable: CustomStyleHook;\n useMenuItemRadioStyles_unstable: CustomStyleHook;\n useMenuItemStyles_unstable: CustomStyleHook;\n useMenuItemSwitchStyles_unstable: CustomStyleHook;\n useMenuListStyles_unstable: CustomStyleHook;\n useMenuPopoverStyles_unstable: CustomStyleHook;\n useMenuSplitGroupStyles_unstable: CustomStyleHook;\n useMessageBarActionsStyles_unstable: CustomStyleHook;\n useMessageBarBodyStyles_unstable: CustomStyleHook;\n useMessageBarGroupStyles_unstable: CustomStyleHook;\n useMessageBarStyles_unstable: CustomStyleHook;\n useMessageBarTitleStyles_unstable: CustomStyleHook;\n useAppItemStyles_unstable: CustomStyleHook;\n useAppItemStaticStyles_unstable: CustomStyleHook;\n useHamburgerStyles_unstable: CustomStyleHook;\n useNavCategoryItemStyles: CustomStyleHook;\n useNavDividerStyles_unstable: CustomStyleHook;\n useNavDrawerStyles_unstable: CustomStyleHook;\n useNavDrawerBodyStyles_unstable: CustomStyleHook;\n useNavDrawerFooterStyles_unstable: CustomStyleHook;\n useNavDrawerHeaderStyles_unstable: CustomStyleHook;\n useNavItemStyles_unstable: CustomStyleHook;\n useNavSectionHeaderStyles_unstable: CustomStyleHook;\n useNavSubItemStyles_unstable: CustomStyleHook;\n useNavSubItemGroupStyles_unstable: CustomStyleHook;\n useSplitNavItemStyles_unstable: CustomStyleHook;\n useOptionGroupStyles_unstable: CustomStyleHook;\n useOptionStyles_unstable: CustomStyleHook;\n useOverlayDrawerStyles_unstable: CustomStyleHook;\n usePersonaStyles_unstable: CustomStyleHook;\n usePopoverSurfaceStyles_unstable: CustomStyleHook;\n usePresenceBadgeStyles_unstable: CustomStyleHook;\n useProgressBarStyles_unstable: CustomStyleHook;\n useRadioGroupStyles_unstable: CustomStyleHook;\n useRadioStyles_unstable: CustomStyleHook;\n useRatingDisplayStyles_unstable: CustomStyleHook;\n useRatingItemStyles_unstable: CustomStyleHook;\n useRatingStyles_unstable: CustomStyleHook;\n useSearchBoxStyles_unstable: CustomStyleHook;\n useSelectStyles_unstable: CustomStyleHook;\n useSkeletonItemStyles_unstable: CustomStyleHook;\n useSkeletonStyles_unstable: CustomStyleHook;\n useSliderStyles_unstable: CustomStyleHook;\n useSpinButtonStyles_unstable: CustomStyleHook;\n useSpinnerStyles_unstable: CustomStyleHook;\n useSplitButtonStyles_unstable: CustomStyleHook;\n useSwatchPickerRowStyles_unstable: CustomStyleHook;\n useSwatchPickerStyles_unstable: CustomStyleHook;\n useSwitchStyles_unstable: CustomStyleHook;\n useTabListStyles_unstable: CustomStyleHook;\n useTabStyles_unstable: CustomStyleHook;\n useTeachingPopoverBodyStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselCardStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselFooterButtonStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselFooterStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselNavButtonStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselNavStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselPageCountStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselStyles_unstable: CustomStyleHook;\n useTeachingPopoverFooterStyles_unstable: CustomStyleHook;\n useTeachingPopoverHeaderStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel internal functionality. */\n useTeachingPopoverActionsStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel styling hooks */\n useTeachingPopoverButtonStyles_unstable: CustomStyleHook;\n /** @deprecated TeachingPopover wrapper has no styles (non-UI hooks only). */\n useTeachingPopoverStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverCarouselNav styling hooks */\n useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;\n useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;\n useTeachingPopoverTitleStyles_unstable: CustomStyleHook;\n useTagGroupStyles_unstable: CustomStyleHook;\n useTagPickerButtonStyles_unstable: CustomStyleHook;\n useTagPickerControlStyles_unstable: CustomStyleHook;\n useTagPickerGroupStyles_unstable: CustomStyleHook;\n useTagPickerInputStyles_unstable: CustomStyleHook;\n useTagPickerListStyles_unstable: CustomStyleHook;\n useTagPickerOptionGroupStyles_unstable: CustomStyleHook;\n useTagPickerOptionStyles_unstable: CustomStyleHook;\n useTagStyles_unstable: CustomStyleHook;\n useTableBodyStyles_unstable: CustomStyleHook;\n useTableCellActionsStyles_unstable: CustomStyleHook;\n useTableCellLayoutStyles_unstable: CustomStyleHook;\n useTableCellStyles_unstable: CustomStyleHook;\n useTableHeaderCellStyles_unstable: CustomStyleHook;\n useTableHeaderStyles_unstable: CustomStyleHook;\n useTableResizeHandleStyles_unstable: CustomStyleHook;\n useTableRowStyles_unstable: CustomStyleHook;\n useTableSelectionCellStyles_unstable: CustomStyleHook;\n useTableStyles_unstable: CustomStyleHook;\n useTextareaStyles_unstable: CustomStyleHook;\n useTextStyles_unstable: CustomStyleHook;\n useTimePickerCompatStyles_unstable: CustomStyleHook;\n useToastBodyStyles_unstable: CustomStyleHook;\n useToastContainerStyles_unstable: CustomStyleHook;\n useToasterStyles_unstable: CustomStyleHook;\n useToastFooterStyles_unstable: CustomStyleHook;\n useToastStyles_unstable: CustomStyleHook;\n useToastTitleStyles_unstable: CustomStyleHook;\n useToggleButtonStyles_unstable: CustomStyleHook;\n useToolbarButtonStyles_unstable: CustomStyleHook;\n useToolbarDividerStyles_unstable: CustomStyleHook;\n useToolbarGroupStyles_unstable: CustomStyleHook;\n useToolbarRadioButtonStyles_unstable: CustomStyleHook;\n useToolbarToggleButtonStyles_unstable: CustomStyleHook;\n useToolbarStyles_unstable: CustomStyleHook;\n useTooltipStyles_unstable: CustomStyleHook;\n useTreeItemLayoutStyles_unstable: CustomStyleHook;\n useTreeItemPersonaLayoutStyles_unstable: CustomStyleHook;\n useTreeItemStyles_unstable: CustomStyleHook;\n useTreeStyles_unstable: CustomStyleHook;\n useVirtualizerScrollViewDynamicStyles_unstable: CustomStyleHook;\n useVirtualizerScrollViewStyles_unstable: CustomStyleHook;\n useVirtualizerStyles_unstable: CustomStyleHook;\n}>;\n/* eslint-enable */\n\n/**\n * @internal\n */\nexport const CustomStyleHooksContext = React.createContext<CustomStyleHooksContextValue | undefined>(undefined);\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst noop = () => {};\n\n/**\n * @internal\n */\nexport const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;\n\n/**\n * Gets a custom style hook\n * @param hook - One of the hook properties in CustomStyleHooksContextValue\n * @returns The corresponding hook when defined, otherwise a no-op function.\n */\nexport const useCustomStyleHook = (hook: keyof CustomStyleHooksContextValue): CustomStyleHook => {\n return React.useContext(CustomStyleHooksContext)?.[hook] ?? noop;\n};\n"],"names":["React","CustomStyleHooksContext","createContext","undefined","noop","CustomStyleHooksProvider","Provider","useCustomStyleHook","hook","useContext"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAgN/B,iBAAiB,GAEjB;;CAEC,GACD,OAAO,MAAMC,0BAA0BD,MAAME,aAAa,CAA2CC,WAAW;AAEhH,gEAAgE;AAChE,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
|
-
export { CustomStyleHooksContext, CustomStyleHooksProvider, useCustomStyleHook } from
|
|
1
|
+
export { CustomStyleHooksContext, CustomStyleHooksProvider, useCustomStyleHook } from "./CustomStyleHooksContext.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/CustomStyleHooksContext/index.ts"],"sourcesContent":["export type { CustomStyleHooksContextValue } from './CustomStyleHooksContext';\nexport { CustomStyleHooksContext, CustomStyleHooksProvider, useCustomStyleHook } from './CustomStyleHooksContext';\n"],"names":["CustomStyleHooksContext","CustomStyleHooksProvider","useCustomStyleHook"],"mappings":"AACA,SAASA,uBAAuB,EAAEC,wBAAwB,EAAEC,kBAAkB,QAAQ
|
|
1
|
+
{"version":3,"sources":["../src/CustomStyleHooksContext/index.ts"],"sourcesContent":["export type { CustomStyleHooksContextValue } from './CustomStyleHooksContext';\nexport { CustomStyleHooksContext, CustomStyleHooksProvider, useCustomStyleHook } from './CustomStyleHooksContext';\n"],"names":["CustomStyleHooksContext","CustomStyleHooksProvider","useCustomStyleHook"],"mappings":"AACA,SAASA,uBAAuB,EAAEC,wBAAwB,EAAEC,kBAAkB,QAAQ,+BAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CustomStyleHooksContext, CustomStyleHooksProvider, useCustomStyleHook } from
|
|
1
|
+
export { CustomStyleHooksContext, CustomStyleHooksProvider, useCustomStyleHook } from "./CustomStyleHooksContext/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/CustomStyleHooksContext.ts"],"sourcesContent":["export type { CustomStyleHooksContextValue } from './CustomStyleHooksContext/index';\nexport { CustomStyleHooksContext, CustomStyleHooksProvider, useCustomStyleHook } from './CustomStyleHooksContext/index';\n"],"names":["CustomStyleHooksContext","CustomStyleHooksProvider","useCustomStyleHook"],"mappings":"AACA,SAASA,uBAAuB,EAAEC,wBAAwB,EAAEC,kBAAkB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/CustomStyleHooksContext.ts"],"sourcesContent":["export type { CustomStyleHooksContextValue } from './CustomStyleHooksContext/index';\nexport { CustomStyleHooksContext, CustomStyleHooksProvider, useCustomStyleHook } from './CustomStyleHooksContext/index';\n"],"names":["CustomStyleHooksContext","CustomStyleHooksProvider","useCustomStyleHook"],"mappings":"AACA,SAASA,uBAAuB,EAAEC,wBAAwB,EAAEC,kBAAkB,QAAQ,qCAAkC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { OverridesContext, OverridesProvider, useOverrides } from
|
|
1
|
+
export { OverridesContext, OverridesProvider, useOverrides } from "./OverridesContext.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/OverridesContext/index.ts"],"sourcesContent":["export type { OverridesContextValue } from './OverridesContext';\nexport { OverridesContext, OverridesProvider, useOverrides } from './OverridesContext';\n"],"names":["OverridesContext","OverridesProvider","useOverrides"],"mappings":"AACA,SAASA,gBAAgB,EAAEC,iBAAiB,EAAEC,YAAY,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/OverridesContext/index.ts"],"sourcesContent":["export type { OverridesContextValue } from './OverridesContext';\nexport { OverridesContext, OverridesProvider, useOverrides } from './OverridesContext';\n"],"names":["OverridesContext","OverridesProvider","useOverrides"],"mappings":"AACA,SAASA,gBAAgB,EAAEC,iBAAiB,EAAEC,YAAY,QAAQ,wBAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Provider, useFluent } from
|
|
1
|
+
export { Provider, useFluent } from "./ProviderContext.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ProviderContext/index.ts"],"sourcesContent":["export type { ProviderContextValue } from './ProviderContext';\nexport { Provider, useFluent } from './ProviderContext';\n"],"names":["Provider","useFluent"],"mappings":"AACA,SAASA,QAAQ,EAAEC,SAAS,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/ProviderContext/index.ts"],"sourcesContent":["export type { ProviderContextValue } from './ProviderContext';\nexport { Provider, useFluent } from './ProviderContext';\n"],"names":["Provider","useFluent"],"mappings":"AACA,SAASA,QAAQ,EAAEC,SAAS,QAAQ,uBAAoB"}
|
package/lib/ProviderContext.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Provider, useFluent } from
|
|
1
|
+
export { Provider, useFluent } from "./ProviderContext/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ProviderContext.ts"],"sourcesContent":["export type { ProviderContextValue } from './ProviderContext/index';\nexport { Provider, useFluent } from './ProviderContext/index';\n"],"names":["Provider","useFluent"],"mappings":"AACA,SAASA,QAAQ,EAAEC,SAAS,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/ProviderContext.ts"],"sourcesContent":["export type { ProviderContextValue } from './ProviderContext/index';\nexport { Provider, useFluent } from './ProviderContext/index';\n"],"names":["Provider","useFluent"],"mappings":"AACA,SAASA,QAAQ,EAAEC,SAAS,QAAQ,6BAA0B"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import * as React from
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
/**
|
|
4
|
-
* @internal
|
|
5
4
|
* Used to provide a CSS class that applies theme css variables
|
|
6
5
|
*
|
|
7
6
|
* Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
8
9
|
*/ const ThemeClassNameContext = React.createContext(undefined);
|
|
9
10
|
const themeClassNameContextDefaultVaue = '';
|
|
10
11
|
export const ThemeClassNameProvider = ThemeClassNameContext.Provider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ThemeClassNameContext/ThemeClassNameContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nexport type ThemeClassNameContextValue = string;\n\n/**\n *
|
|
1
|
+
{"version":3,"sources":["../src/ThemeClassNameContext/ThemeClassNameContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nexport type ThemeClassNameContextValue = string;\n\n/**\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 *\n * @internal\n */\nconst ThemeClassNameContext = React.createContext<ThemeClassNameContextValue | undefined>(\n undefined,\n) as React.Context<ThemeClassNameContextValue>;\n\nconst themeClassNameContextDefaultVaue = '';\n\nexport const ThemeClassNameProvider = ThemeClassNameContext.Provider;\n\n/**\n * @returns CSS class that applies css variables\n */\nexport function useThemeClassName(): ThemeClassNameContextValue {\n return React.useContext(ThemeClassNameContext) ?? themeClassNameContextDefaultVaue;\n}\n"],"names":["React","ThemeClassNameContext","createContext","undefined","themeClassNameContextDefaultVaue","ThemeClassNameProvider","Provider","useThemeClassName","useContext"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAI/B;;;;;;CAMC,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
|
-
export { ThemeClassNameProvider, useThemeClassName } from
|
|
1
|
+
export { ThemeClassNameProvider, useThemeClassName } from "./ThemeClassNameContext.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ThemeClassNameContext/index.ts"],"sourcesContent":["export type { ThemeClassNameContextValue } from './ThemeClassNameContext';\nexport { ThemeClassNameProvider, useThemeClassName } from './ThemeClassNameContext';\n"],"names":["ThemeClassNameProvider","useThemeClassName"],"mappings":"AACA,SAASA,sBAAsB,EAAEC,iBAAiB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/ThemeClassNameContext/index.ts"],"sourcesContent":["export type { ThemeClassNameContextValue } from './ThemeClassNameContext';\nexport { ThemeClassNameProvider, useThemeClassName } from './ThemeClassNameContext';\n"],"names":["ThemeClassNameProvider","useThemeClassName"],"mappings":"AACA,SAASA,sBAAsB,EAAEC,iBAAiB,QAAQ,6BAA0B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ThemeClassNameProvider, useThemeClassName } from
|
|
1
|
+
export { ThemeClassNameProvider, useThemeClassName } from "./ThemeClassNameContext/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ThemeClassNameContext.ts"],"sourcesContent":["export type { ThemeClassNameContextValue } from './ThemeClassNameContext/index';\nexport { ThemeClassNameProvider, useThemeClassName } from './ThemeClassNameContext/index';\n"],"names":["ThemeClassNameProvider","useThemeClassName"],"mappings":"AACA,SAASA,sBAAsB,EAAEC,iBAAiB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/ThemeClassNameContext.ts"],"sourcesContent":["export type { ThemeClassNameContextValue } from './ThemeClassNameContext/index';\nexport { ThemeClassNameProvider, useThemeClassName } from './ThemeClassNameContext/index';\n"],"names":["ThemeClassNameProvider","useThemeClassName"],"mappings":"AACA,SAASA,sBAAsB,EAAEC,iBAAiB,QAAQ,mCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ThemeContext, ThemeProvider } from
|
|
1
|
+
export { ThemeContext, ThemeProvider } from "./ThemeContext.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ThemeContext/index.ts"],"sourcesContent":["export type { ThemeContextValue } from './ThemeContext';\nexport { ThemeContext, ThemeProvider } from './ThemeContext';\n"],"names":["ThemeContext","ThemeProvider"],"mappings":"AACA,SAASA,YAAY,EAAEC,aAAa,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/ThemeContext/index.ts"],"sourcesContent":["export type { ThemeContextValue } from './ThemeContext';\nexport { ThemeContext, ThemeProvider } from './ThemeContext';\n"],"names":["ThemeContext","ThemeProvider"],"mappings":"AACA,SAASA,YAAY,EAAEC,aAAa,QAAQ,oBAAiB"}
|
package/lib/ThemeContext.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ThemeContext, ThemeProvider } from
|
|
1
|
+
export { ThemeContext, ThemeProvider } from "./ThemeContext/index.js";
|
package/lib/ThemeContext.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ThemeContext.ts"],"sourcesContent":["export type { ThemeContextValue } from './ThemeContext/index';\nexport { ThemeContext, ThemeProvider } from './ThemeContext/index';\n"],"names":["ThemeContext","ThemeProvider"],"mappings":"AACA,SAASA,YAAY,EAAEC,aAAa,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/ThemeContext.ts"],"sourcesContent":["export type { ThemeContextValue } from './ThemeContext/index';\nexport { ThemeContext, ThemeProvider } from './ThemeContext/index';\n"],"names":["ThemeContext","ThemeProvider"],"mappings":"AACA,SAASA,YAAY,EAAEC,aAAa,QAAQ,0BAAuB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import * as React from
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
/**
|
|
4
|
-
* @internal
|
|
5
4
|
* Context shared by all of the tooltips in the app
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
6
7
|
*/ const TooltipVisibilityContext = React.createContext(undefined);
|
|
7
8
|
const tooltipVisibilityContextDefaultValue = {};
|
|
8
9
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/TooltipVisibilityContext/TooltipContext.ts"],"sourcesContent":["'use client';\n\nimport * 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 *
|
|
1
|
+
{"version":3,"sources":["../src/TooltipVisibilityContext/TooltipContext.ts"],"sourcesContent":["'use client';\n\nimport * 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 * Context shared by all of the tooltips in the app\n *\n * @internal\n */\nconst TooltipVisibilityContext = React.createContext<TooltipVisibilityContextValue | undefined>(\n undefined,\n) as React.Context<TooltipVisibilityContextValue>;\n\nconst tooltipVisibilityContextDefaultValue: TooltipVisibilityContextValue = {};\n\n/**\n * @internal\n */\nexport const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;\n\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext) ?? tooltipVisibilityContextDefaultValue;\n}\n"],"names":["React","TooltipVisibilityContext","createContext","undefined","tooltipVisibilityContextDefaultValue","TooltipVisibilityProvider","Provider","useTooltipVisibility","useContext"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAe/B;;;;CAIC,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
|
-
export { TooltipVisibilityProvider, useTooltipVisibility } from
|
|
1
|
+
export { TooltipVisibilityProvider, useTooltipVisibility } from "./TooltipContext.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/TooltipVisibilityContext/index.ts"],"sourcesContent":["export type { TooltipVisibilityContextValue } from './TooltipContext';\nexport { TooltipVisibilityProvider, useTooltipVisibility } from './TooltipContext';\n"],"names":["TooltipVisibilityProvider","useTooltipVisibility"],"mappings":"AACA,SAASA,yBAAyB,EAAEC,oBAAoB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/TooltipVisibilityContext/index.ts"],"sourcesContent":["export type { TooltipVisibilityContextValue } from './TooltipContext';\nexport { TooltipVisibilityProvider, useTooltipVisibility } from './TooltipContext';\n"],"names":["TooltipVisibilityProvider","useTooltipVisibility"],"mappings":"AACA,SAASA,yBAAyB,EAAEC,oBAAoB,QAAQ,sBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { TooltipVisibilityProvider, useTooltipVisibility } from
|
|
1
|
+
export { TooltipVisibilityProvider, useTooltipVisibility } from "./TooltipVisibilityContext/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/TooltipVisibilityContext.ts"],"sourcesContent":["export type { TooltipVisibilityContextValue } from './TooltipVisibilityContext/index';\nexport { TooltipVisibilityProvider, useTooltipVisibility } from './TooltipVisibilityContext/index';\n"],"names":["TooltipVisibilityProvider","useTooltipVisibility"],"mappings":"AACA,SAASA,yBAAyB,EAAEC,oBAAoB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/TooltipVisibilityContext.ts"],"sourcesContent":["export type { TooltipVisibilityContextValue } from './TooltipVisibilityContext/index';\nexport { TooltipVisibilityProvider, useTooltipVisibility } from './TooltipVisibilityContext/index';\n"],"names":["TooltipVisibilityProvider","useTooltipVisibility"],"mappings":"AACA,SAASA,yBAAyB,EAAEC,oBAAoB,QAAQ,sCAAmC"}
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from
|
|
2
|
-
export { ThemeClassNameProvider as ThemeClassNameProvider_unstable, useThemeClassName as useThemeClassName_unstable } from
|
|
3
|
-
export { TooltipVisibilityProvider as TooltipVisibilityProvider_unstable, useTooltipVisibility as useTooltipVisibility_unstable } from
|
|
4
|
-
export { Provider as Provider_unstable, useFluent as useFluent_unstable } from
|
|
5
|
-
export { OverridesProvider as OverridesProvider_unstable, useOverrides as useOverrides_unstable } from
|
|
6
|
-
export { CustomStyleHooksContext as CustomStyleHooksContext_unstable, CustomStyleHooksProvider as CustomStyleHooksProvider_unstable, useCustomStyleHook as useCustomStyleHook_unstable } from
|
|
7
|
-
export { BackgroundAppearanceProvider, useBackgroundAppearance } from
|
|
8
|
-
export { PortalMountNodeProvider, usePortalMountNode } from
|
|
9
|
-
export { AnnounceProvider, /** @deprecated Use AnnounceProvider instead. */ AnnounceProvider as AnnounceProvider_unstable, useAnnounce, /** @deprecated Use useAnnounce instead. */ useAnnounce as useAnnounce_unstable } from
|
|
1
|
+
export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from "./ThemeContext.js";
|
|
2
|
+
export { ThemeClassNameProvider as ThemeClassNameProvider_unstable, useThemeClassName as useThemeClassName_unstable } from "./ThemeClassNameContext.js";
|
|
3
|
+
export { TooltipVisibilityProvider as TooltipVisibilityProvider_unstable, useTooltipVisibility as useTooltipVisibility_unstable } from "./TooltipVisibilityContext.js";
|
|
4
|
+
export { Provider as Provider_unstable, useFluent as useFluent_unstable } from "./ProviderContext.js";
|
|
5
|
+
export { OverridesProvider as OverridesProvider_unstable, useOverrides as useOverrides_unstable } from "./OverridesContext/index.js";
|
|
6
|
+
export { CustomStyleHooksContext as CustomStyleHooksContext_unstable, CustomStyleHooksProvider as CustomStyleHooksProvider_unstable, useCustomStyleHook as useCustomStyleHook_unstable } from "./CustomStyleHooksContext.js";
|
|
7
|
+
export { BackgroundAppearanceProvider, useBackgroundAppearance } from "./BackgroundAppearanceContext/index.js";
|
|
8
|
+
export { PortalMountNodeProvider, usePortalMountNode } from "./PortalMountNodeContext.js";
|
|
9
|
+
export { AnnounceProvider, /** @deprecated Use AnnounceProvider instead. */ AnnounceProvider as AnnounceProvider_unstable, useAnnounce, /** @deprecated Use useAnnounce instead. */ useAnnounce as useAnnounce_unstable } from "./AnnounceContext/index.js";
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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"],"mappings":"AAAA,SAASA,gBAAgBC,qBAAqB,EAAEC,iBAAiBC,sBAAsB,QAAQ,
|
|
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"],"mappings":"AAAA,SAASA,gBAAgBC,qBAAqB,EAAEC,iBAAiBC,sBAAsB,QAAQ,oBAAiB;AAGhH,SACEC,0BAA0BC,+BAA+B,EACzDC,qBAAqBC,0BAA0B,QAC1C,6BAA0B;AAGjC,SACEC,6BAA6BC,kCAAkC,EAC/DC,wBAAwBC,6BAA6B,QAChD,gCAA6B;AAGpC,SAASC,YAAYC,iBAAiB,EAAEC,aAAaC,kBAAkB,QAAQ,uBAAoB;AAGnG,SACEC,qBAAqBC,0BAA0B,EAC/CC,gBAAgBC,qBAAqB,QAChC,8BAAqB;AAG5B,SACEC,2BAA2BC,gCAAgC,EAC3DC,4BAA4BC,iCAAiC,EAC7DC,sBAAsBC,2BAA2B,QAC5C,+BAA4B;AAGnC,SAASC,4BAA4B,EAAEC,uBAAuB,QAAQ,yCAAgC;AAGtG,SAASC,uBAAuB,EAAEC,kBAAkB,QAAQ,8BAA2B;AAEvF,SACEC,gBAAgB,EAChB,8CAA8C,GAC9CA,oBAAoBC,yBAAyB,EAC7CC,WAAW,EACX,yCAAyC,GACzCA,eAAeC,oBAAoB,QAC9B,6BAAoB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
|
3
4
|
value: true
|
|
4
5
|
});
|
|
@@ -22,6 +23,7 @@ _export(exports, {
|
|
|
22
23
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
23
24
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
24
25
|
const CustomStyleHooksContext = _react.createContext(undefined);
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
25
27
|
const noop = ()=>{};
|
|
26
28
|
const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
|
|
27
29
|
const useCustomStyleHook = (hook)=>{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/CustomStyleHooksContext/CustomStyleHooksContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\ntype CustomStyleHook = (state: unknown) => void;\n\n/* eslint-disable @typescript-eslint/naming-convention */\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 useAlphaSliderStyles_unstable: CustomStyleHook;\n useAvatarGroupItemStyles_unstable: CustomStyleHook;\n useAvatarGroupPopoverStyles_unstable: CustomStyleHook;\n useAvatarGroupStyles_unstable: CustomStyleHook;\n useAvatarStyles_unstable: CustomStyleHook;\n useBadgeStyles_unstable: CustomStyleHook;\n useBreadcrumbButtonStyles_unstable: CustomStyleHook;\n useBreadcrumbDividerStyles_unstable: CustomStyleHook;\n useBreadcrumbItemStyles_unstable: CustomStyleHook;\n useBreadcrumbStyles_unstable: CustomStyleHook;\n useButtonStyles_unstable: CustomStyleHook;\n useCardFooterStyles_unstable: CustomStyleHook;\n useCardHeaderStyles_unstable: CustomStyleHook;\n useCardPreviewStyles_unstable: CustomStyleHook;\n useCardStyles_unstable: CustomStyleHook;\n useCarouselAutoplayButtonStyles_unstable: CustomStyleHook;\n useCarouselButtonStyles_unstable: CustomStyleHook;\n useCarouselCardStyles_unstable: CustomStyleHook;\n useCarouselNavButtonStyles_unstable: CustomStyleHook;\n useCarouselNavContainerStyles_unstable: CustomStyleHook;\n useCarouselNavImageButtonStyles_unstable: CustomStyleHook;\n useCarouselNavStyles_unstable: CustomStyleHook;\n useCarouselSliderStyles_unstable: CustomStyleHook;\n useCarouselStyles_unstable: CustomStyleHook;\n useCarouselViewportStyles_unstable: CustomStyleHook;\n useCheckboxStyles_unstable: CustomStyleHook;\n useComboboxStyles_unstable: CustomStyleHook;\n useCompoundButtonStyles_unstable: CustomStyleHook;\n useColorAreaStyles_unstable: CustomStyleHook;\n useColorPickerStyles_unstable: CustomStyleHook;\n useColorSliderStyles_unstable: CustomStyleHook;\n useColorSwatchStyles_unstable: CustomStyleHook;\n useCounterBadgeStyles_unstable: CustomStyleHook;\n useDataGridBodyStyles_unstable: CustomStyleHook;\n useDataGridCellStyles_unstable: CustomStyleHook;\n useDataGridHeaderCellStyles_unstable: CustomStyleHook;\n useDataGridHeaderStyles_unstable: CustomStyleHook;\n useDataGridRowStyles_unstable: CustomStyleHook;\n useDataGridSelectionCellStyles_unstable: CustomStyleHook;\n useDataGridStyles_unstable: CustomStyleHook;\n useDialogActionsStyles_unstable: CustomStyleHook;\n useDialogBodyStyles_unstable: CustomStyleHook;\n useDialogContentStyles_unstable: CustomStyleHook;\n useDialogSurfaceStyles_unstable: CustomStyleHook;\n useDialogTitleStyles_unstable: CustomStyleHook;\n useDividerStyles_unstable: CustomStyleHook;\n useDrawerBodyStyles_unstable: CustomStyleHook;\n useDrawerFooterStyles_unstable: CustomStyleHook;\n useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;\n useDrawerHeaderStyles_unstable: CustomStyleHook;\n useDrawerHeaderTitleStyles_unstable: CustomStyleHook;\n /** @deprecated Use useInlineDrawerStyles_unstable instead. */\n useDrawerInlineStyles_unstable: CustomStyleHook;\n /** @deprecated Use useOverlayDrawerStyles_unstable instead. */\n useDrawerOverlayStyles_unstable: CustomStyleHook;\n useOverlayDrawerSurfaceStyles_unstable: CustomStyleHook;\n useDrawerStyles_unstable: CustomStyleHook;\n useDropdownStyles_unstable: CustomStyleHook;\n useEmptySwatchStyles_unstable: CustomStyleHook;\n useFieldStyles_unstable: CustomStyleHook;\n useFlatTreeStyles_unstable: CustomStyleHook;\n useImageStyles_unstable: CustomStyleHook;\n useImageSwatchStyles_unstable: CustomStyleHook;\n useInfoButtonStyles_unstable: CustomStyleHook;\n useInfoLabelStyles_unstable: CustomStyleHook;\n useInlineDrawerStyles_unstable: CustomStyleHook;\n useInputStyles_unstable: CustomStyleHook;\n useInteractionTagPrimaryStyles_unstable: CustomStyleHook;\n useInteractionTagSecondaryStyles_unstable: CustomStyleHook;\n useInteractionTagStyles_unstable: CustomStyleHook;\n useLabelStyles_unstable: CustomStyleHook;\n useLinkStyles_unstable: CustomStyleHook;\n /** @deprecated Use onClick handler on the ListItem itself instead. */\n useListItemButtonStyles_unstable: CustomStyleHook;\n useListItemStyles_unstable: CustomStyleHook;\n useListStyles_unstable: CustomStyleHook;\n useListboxStyles_unstable: CustomStyleHook;\n useMenuButtonStyles_unstable: CustomStyleHook;\n useMenuDividerStyles_unstable: CustomStyleHook;\n useMenuGroupHeaderStyles_unstable: CustomStyleHook;\n useMenuGroupStyles_unstable: CustomStyleHook;\n useMenuItemCheckboxStyles_unstable: CustomStyleHook;\n useMenuItemLinkStyles_unstable: CustomStyleHook;\n useMenuItemRadioStyles_unstable: CustomStyleHook;\n useMenuItemStyles_unstable: CustomStyleHook;\n useMenuItemSwitchStyles_unstable: CustomStyleHook;\n useMenuListStyles_unstable: CustomStyleHook;\n useMenuPopoverStyles_unstable: CustomStyleHook;\n useMenuSplitGroupStyles_unstable: CustomStyleHook;\n useMessageBarActionsStyles_unstable: CustomStyleHook;\n useMessageBarBodyStyles_unstable: CustomStyleHook;\n useMessageBarGroupStyles_unstable: CustomStyleHook;\n useMessageBarStyles_unstable: CustomStyleHook;\n useMessageBarTitleStyles_unstable: CustomStyleHook;\n useAppItemStyles_unstable: CustomStyleHook;\n useAppItemStaticStyles_unstable: CustomStyleHook;\n useHamburgerStyles_unstable: CustomStyleHook;\n useNavCategoryItemStyles: CustomStyleHook;\n useNavDividerStyles_unstable: CustomStyleHook;\n useNavDrawerStyles_unstable: CustomStyleHook;\n useNavDrawerBodyStyles_unstable: CustomStyleHook;\n useNavDrawerFooterStyles_unstable: CustomStyleHook;\n useNavDrawerHeaderStyles_unstable: CustomStyleHook;\n useNavItemStyles_unstable: CustomStyleHook;\n useNavSectionHeaderStyles_unstable: CustomStyleHook;\n useNavSubItemStyles_unstable: CustomStyleHook;\n useNavSubItemGroupStyles_unstable: CustomStyleHook;\n useSplitNavItemStyles_unstable: CustomStyleHook;\n useOptionGroupStyles_unstable: CustomStyleHook;\n useOptionStyles_unstable: CustomStyleHook;\n useOverlayDrawerStyles_unstable: CustomStyleHook;\n usePersonaStyles_unstable: CustomStyleHook;\n usePopoverSurfaceStyles_unstable: CustomStyleHook;\n usePresenceBadgeStyles_unstable: CustomStyleHook;\n useProgressBarStyles_unstable: CustomStyleHook;\n useRadioGroupStyles_unstable: CustomStyleHook;\n useRadioStyles_unstable: CustomStyleHook;\n useRatingDisplayStyles_unstable: CustomStyleHook;\n useRatingItemStyles_unstable: CustomStyleHook;\n useRatingStyles_unstable: CustomStyleHook;\n useSearchBoxStyles_unstable: CustomStyleHook;\n useSelectStyles_unstable: CustomStyleHook;\n useSkeletonItemStyles_unstable: CustomStyleHook;\n useSkeletonStyles_unstable: CustomStyleHook;\n useSliderStyles_unstable: CustomStyleHook;\n useSpinButtonStyles_unstable: CustomStyleHook;\n useSpinnerStyles_unstable: CustomStyleHook;\n useSplitButtonStyles_unstable: CustomStyleHook;\n useSwatchPickerRowStyles_unstable: CustomStyleHook;\n useSwatchPickerStyles_unstable: CustomStyleHook;\n useSwitchStyles_unstable: CustomStyleHook;\n useTabListStyles_unstable: CustomStyleHook;\n useTabStyles_unstable: CustomStyleHook;\n useTeachingPopoverBodyStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselCardStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselFooterButtonStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselFooterStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselNavButtonStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselNavStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselPageCountStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselStyles_unstable: CustomStyleHook;\n useTeachingPopoverFooterStyles_unstable: CustomStyleHook;\n useTeachingPopoverHeaderStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel internal functionality. */\n useTeachingPopoverActionsStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel styling hooks */\n useTeachingPopoverButtonStyles_unstable: CustomStyleHook;\n /** @deprecated TeachingPopover wrapper has no styles (non-UI hooks only). */\n useTeachingPopoverStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverCarouselNav styling hooks */\n useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;\n useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;\n useTeachingPopoverTitleStyles_unstable: CustomStyleHook;\n useTagGroupStyles_unstable: CustomStyleHook;\n useTagPickerButtonStyles_unstable: CustomStyleHook;\n useTagPickerControlStyles_unstable: CustomStyleHook;\n useTagPickerGroupStyles_unstable: CustomStyleHook;\n useTagPickerInputStyles_unstable: CustomStyleHook;\n useTagPickerListStyles_unstable: CustomStyleHook;\n useTagPickerOptionGroupStyles_unstable: CustomStyleHook;\n useTagPickerOptionStyles_unstable: CustomStyleHook;\n useTagStyles_unstable: CustomStyleHook;\n useTableBodyStyles_unstable: CustomStyleHook;\n useTableCellActionsStyles_unstable: CustomStyleHook;\n useTableCellLayoutStyles_unstable: CustomStyleHook;\n useTableCellStyles_unstable: CustomStyleHook;\n useTableHeaderCellStyles_unstable: CustomStyleHook;\n useTableHeaderStyles_unstable: CustomStyleHook;\n useTableResizeHandleStyles_unstable: CustomStyleHook;\n useTableRowStyles_unstable: CustomStyleHook;\n useTableSelectionCellStyles_unstable: CustomStyleHook;\n useTableStyles_unstable: CustomStyleHook;\n useTextareaStyles_unstable: CustomStyleHook;\n useTextStyles_unstable: CustomStyleHook;\n useTimePickerCompatStyles_unstable: CustomStyleHook;\n useToastBodyStyles_unstable: CustomStyleHook;\n useToastContainerStyles_unstable: CustomStyleHook;\n useToasterStyles_unstable: CustomStyleHook;\n useToastFooterStyles_unstable: CustomStyleHook;\n useToastStyles_unstable: CustomStyleHook;\n useToastTitleStyles_unstable: CustomStyleHook;\n useToggleButtonStyles_unstable: CustomStyleHook;\n useToolbarButtonStyles_unstable: CustomStyleHook;\n useToolbarDividerStyles_unstable: CustomStyleHook;\n useToolbarGroupStyles_unstable: CustomStyleHook;\n useToolbarRadioButtonStyles_unstable: CustomStyleHook;\n useToolbarToggleButtonStyles_unstable: CustomStyleHook;\n useToolbarStyles_unstable: CustomStyleHook;\n useTooltipStyles_unstable: CustomStyleHook;\n useTreeItemLayoutStyles_unstable: CustomStyleHook;\n useTreeItemPersonaLayoutStyles_unstable: CustomStyleHook;\n useTreeItemStyles_unstable: CustomStyleHook;\n useTreeStyles_unstable: CustomStyleHook;\n useVirtualizerScrollViewDynamicStyles_unstable: CustomStyleHook;\n useVirtualizerScrollViewStyles_unstable: CustomStyleHook;\n useVirtualizerStyles_unstable: CustomStyleHook;\n}>;\n/* eslint-enable */\n\n/**\n * @internal\n */\nexport const CustomStyleHooksContext = React.createContext<CustomStyleHooksContextValue | undefined>(undefined);\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\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"],"mappings":"AAAA;;;;;;;;;;;;IAuNaA,uBAAuB;eAAvBA;;IAQAC,wBAAwB;eAAxBA;;IAOAC,kBAAkB;eAAlBA;;;;iEApOU;AAqNhB,MAAMF,0BAA0BG,OAAMC,aAAa,CAA2CC;AAErG,gEAAgE;AAChE,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"}
|
package/lib-commonjs/ThemeClassNameContext/{ThemeClassNameContext.js → ThemeClassNameContext.cjs}
RENAMED
|
@@ -20,10 +20,11 @@ _export(exports, {
|
|
|
20
20
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
21
21
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
22
22
|
/**
|
|
23
|
-
* @internal
|
|
24
23
|
* Used to provide a CSS class that applies theme css variables
|
|
25
24
|
*
|
|
26
25
|
* Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals
|
|
26
|
+
*
|
|
27
|
+
* @internal
|
|
27
28
|
*/ const ThemeClassNameContext = _react.createContext(undefined);
|
|
28
29
|
const themeClassNameContextDefaultVaue = '';
|
|
29
30
|
const ThemeClassNameProvider = ThemeClassNameContext.Provider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ThemeClassNameContext/ThemeClassNameContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nexport type ThemeClassNameContextValue = string;\n\n/**\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 *\n * @internal\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"],"mappings":"AAAA;;;;;;;;;;;;IAmBaA,sBAAsB;eAAtBA;;IAKGC,iBAAiB;eAAjBA;;;;iEAtBO;AAIvB;;;;;;CAMC,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"}
|
|
@@ -20,8 +20,9 @@ _export(exports, {
|
|
|
20
20
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
21
21
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
22
22
|
/**
|
|
23
|
-
* @internal
|
|
24
23
|
* Context shared by all of the tooltips in the app
|
|
24
|
+
*
|
|
25
|
+
* @internal
|
|
25
26
|
*/ const TooltipVisibilityContext = _react.createContext(undefined);
|
|
26
27
|
const tooltipVisibilityContextDefaultValue = {};
|
|
27
28
|
const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/TooltipVisibilityContext/TooltipContext.ts"],"sourcesContent":["'use client';\n\nimport * 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 * Context shared by all of the tooltips in the app\n *\n * @internal\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"],"mappings":"AAAA;;;;;;;;;;;;IA+BaA,yBAAyB;eAAzBA;;IAEGC,oBAAoB;eAApBA;;;;iEA/BO;AAevB;;;;CAIC,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"}
|
|
@@ -73,12 +73,12 @@ _export(exports, {
|
|
|
73
73
|
return _TooltipVisibilityContext.useTooltipVisibility;
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
|
-
const _ThemeContext = require("./ThemeContext");
|
|
77
|
-
const _ThemeClassNameContext = require("./ThemeClassNameContext");
|
|
78
|
-
const _TooltipVisibilityContext = require("./TooltipVisibilityContext");
|
|
79
|
-
const _ProviderContext = require("./ProviderContext");
|
|
80
|
-
const _OverridesContext = require("./OverridesContext");
|
|
81
|
-
const _CustomStyleHooksContext = require("./CustomStyleHooksContext");
|
|
82
|
-
const _BackgroundAppearanceContext = require("./BackgroundAppearanceContext");
|
|
83
|
-
const _PortalMountNodeContext = require("./PortalMountNodeContext");
|
|
84
|
-
const _AnnounceContext = require("./AnnounceContext");
|
|
76
|
+
const _ThemeContext = require("./ThemeContext.cjs");
|
|
77
|
+
const _ThemeClassNameContext = require("./ThemeClassNameContext.cjs");
|
|
78
|
+
const _TooltipVisibilityContext = require("./TooltipVisibilityContext.cjs");
|
|
79
|
+
const _ProviderContext = require("./ProviderContext.cjs");
|
|
80
|
+
const _OverridesContext = require("./OverridesContext/index.cjs");
|
|
81
|
+
const _CustomStyleHooksContext = require("./CustomStyleHooksContext.cjs");
|
|
82
|
+
const _BackgroundAppearanceContext = require("./BackgroundAppearanceContext/index.cjs");
|
|
83
|
+
const _PortalMountNodeContext = require("./PortalMountNodeContext.cjs");
|
|
84
|
+
const _AnnounceContext = require("./AnnounceContext/index.cjs");
|