@minimalstuff/ui 0.0.8 → 0.0.9

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
@@ -4,6 +4,8 @@ import { DetailedHTMLProps } from 'react';
4
4
  import { ElementType } from 'react';
5
5
  import { HTMLAttributes } from 'react';
6
6
  import { JSX as JSX_2 } from 'react';
7
+ import { JSX as JSX_3 } from '@emotion/react/jsx-runtime';
8
+ import { PropsWithChildren } from 'react';
7
9
  import { StyledComponent } from '@emotion/styled';
8
10
  import { Theme } from '@emotion/react';
9
11
 
@@ -26,11 +28,16 @@ declare type TextEllipsisProps = {
26
28
  lines?: number;
27
29
  };
28
30
 
29
- export declare const ThemeContext: Context< {
31
+ export declare const _ThemeContext: Context< {
30
32
  isDarkTheme: boolean;
31
33
  toggleDarkTheme: (_value: boolean) => void;
32
34
  }>;
33
35
 
36
+ export declare function ThemeContextProvider({ preferDarkTheme, children, onPreferenceChange, }: {
37
+ preferDarkTheme: boolean;
38
+ onPreferenceChange?: (isDarkTheme: boolean) => void;
39
+ } & PropsWithChildren): JSX_3.Element;
40
+
34
41
  export { }
35
42
 
36
43