ingred-ui 9.4.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/components/Button/Button.d.ts +8 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +3 -19
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -20
- package/dist/index.js.map +1 -1
- package/dist/themes/createTheme.d.ts +1 -0
- package/dist/themes/palette.d.ts +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/utils/renderWithThemeProvider.d.ts +1 -1
- package/package.json +26 -26
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Props as BaseButtonProps } from "./internal/BaseButton";
|
|
3
|
+
import { Theme } from "../../themes";
|
|
3
4
|
export declare type ButtonSize = "small" | "medium" | "large";
|
|
4
|
-
export declare type ButtonColor = "primary" | "secondary" | "danger";
|
|
5
|
+
export declare type ButtonColor = "primary" | "secondary" | "danger" | "clear";
|
|
5
6
|
export declare type ButtonColorStyle = {
|
|
6
7
|
normal: {
|
|
7
8
|
background: string;
|
|
@@ -15,9 +16,15 @@ export declare type ButtonColorStyle = {
|
|
|
15
16
|
};
|
|
16
17
|
active: {
|
|
17
18
|
background?: string;
|
|
19
|
+
boxShadow: string;
|
|
18
20
|
border: string;
|
|
19
21
|
};
|
|
20
22
|
};
|
|
23
|
+
export declare type Padding = {
|
|
24
|
+
theme: Theme;
|
|
25
|
+
size: ButtonSize;
|
|
26
|
+
color: ButtonColor;
|
|
27
|
+
};
|
|
21
28
|
export declare type ButtonProps = Omit<BaseButtonProps, "color"> & {
|
|
22
29
|
/**
|
|
23
30
|
* The component used for the root node.
|
package/dist/index.d.ts
CHANGED