gantri-components 2.225.0 → 2.227.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.
@@ -2,6 +2,8 @@ export { getButtonsColors, getThemeColor, getThemeSpacing, palette, spacing, lig
2
2
  export { themeStyle } from './theme-style';
3
3
  export { type PaletteColor as Color } from './theme';
4
4
  export { ThemeProvider } from './theme-provider';
5
+ export { ScopedThemeProvider } from './scoped-theme-provider';
6
+ export { PopupThemeContext } from './popup-theme-context';
5
7
  export * from './animations';
6
8
  export { media } from './media';
7
9
  export * from './hooks';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { DefaultTheme } from 'styled-components';
3
+ export declare const PopupThemeContext: import("react").Context<DefaultTheme | undefined>;
@@ -0,0 +1,11 @@
1
+ import { CSSProperties, FC, PropsWithChildren } from 'react';
2
+ import { DefaultTheme } from 'styled-components';
3
+ interface ScopedThemeProviderProps {
4
+ theme: DefaultTheme;
5
+ /** Optional className applied to the scoping wrapper. */
6
+ className?: string;
7
+ /** Extra inline styles merged onto the wrapper. */
8
+ style?: CSSProperties;
9
+ }
10
+ export declare const ScopedThemeProvider: FC<PropsWithChildren<ScopedThemeProviderProps>>;
11
+ export {};
@@ -2,4 +2,5 @@ import { FC, PropsWithChildren } from 'react';
2
2
  import { DefaultTheme } from 'styled-components';
3
3
  export declare const ThemeProvider: FC<PropsWithChildren<{
4
4
  theme?: DefaultTheme;
5
+ popupTheme?: DefaultTheme;
5
6
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantri-components",
3
- "version": "2.225.0",
3
+ "version": "2.227.0",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",