@nimbus-ds/styles 9.7.0-rc.2 → 9.7.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/dist/index.d.ts CHANGED
@@ -1,12 +1,18 @@
1
1
  // Generated by dts-bundle-generator v7.2.0
2
2
 
3
3
  import React from 'react';
4
- import { HTMLAttributes } from 'react';
4
+ import { HTMLAttributes, MutableRefObject } from 'react';
5
5
 
6
+ export type Theme = "dark" | "base" | "next" | "next-dark";
6
7
  export interface ThemeProviderProps extends HTMLAttributes<HTMLElement> {
7
- theme?: "dark" | "base" | "next" | "next-dark";
8
+ theme?: Theme;
8
9
  }
9
10
  export declare const ThemeProvider: React.FC<ThemeProviderProps>;
11
+ export interface ThemeProviderContextProps {
12
+ refThemeProvider: MutableRefObject<null | HTMLDivElement>;
13
+ currentTheme: Theme;
14
+ }
15
+ export declare const useTheme: () => ThemeProviderContextProps;
10
16
  export declare const badge: {
11
17
  classnames: {
12
18
  surface: Record<"primary" | "success" | "warning" | "danger" | "neutral", string>;