@minimalstuff/ui 0.0.3 → 0.0.8
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 +31 -5
- package/dist/index.es.js +272 -244
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +31 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { Context } from 'react';
|
|
3
|
+
import { DetailedHTMLProps } from 'react';
|
|
4
|
+
import { ElementType } from 'react';
|
|
5
|
+
import { HTMLAttributes } from 'react';
|
|
6
|
+
import { JSX as JSX_2 } from 'react';
|
|
7
|
+
import { StyledComponent } from '@emotion/styled';
|
|
8
|
+
import { Theme } from '@emotion/react';
|
|
3
9
|
|
|
4
|
-
export declare
|
|
5
|
-
|
|
6
|
-
|
|
10
|
+
export declare const Button: StyledComponent< {
|
|
11
|
+
theme?: Theme | undefined;
|
|
12
|
+
as?: ElementType<any, keyof JSX_2.IntrinsicElements> | undefined;
|
|
13
|
+
} & ButtonProps, DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
14
|
+
|
|
15
|
+
declare type ButtonProps = {
|
|
16
|
+
danger?: boolean;
|
|
17
|
+
secondary?: boolean;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export declare const TextEllipsis: StyledComponent< {
|
|
21
|
+
theme?: Theme | undefined;
|
|
22
|
+
as?: ElementType<any, keyof JSX_2.IntrinsicElements> | undefined;
|
|
23
|
+
} & TextEllipsisProps, DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
24
|
+
|
|
25
|
+
declare type TextEllipsisProps = {
|
|
26
|
+
lines?: number;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export declare const ThemeContext: Context< {
|
|
30
|
+
isDarkTheme: boolean;
|
|
31
|
+
toggleDarkTheme: (_value: boolean) => void;
|
|
32
|
+
}>;
|
|
7
33
|
|
|
8
34
|
export { }
|
|
9
35
|
|