ingred-ui 10.2.0 → 10.2.1
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/ActionButton/ActionButton.stories.d.ts +25 -0
- package/dist/components/Badge/Badge.stories.d.ts +20 -0
- package/dist/components/Card/Card.stories.d.ts +26 -0
- package/dist/components/DatePicker/DatePicker.stories.d.ts +18 -0
- package/dist/components/Divider/Divider.stories.d.ts +23 -0
- package/dist/components/ErrorText/ErrorText.stories.d.ts +20 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.stories.d.ts +1 -1
- package/dist/components/Icon/styled.d.ts +1 -1
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +8 -5
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
5
|
+
icon: import("..").IconName;
|
|
6
|
+
color?: ("primary" | "warning") | undefined;
|
|
7
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
args: {
|
|
9
|
+
onClick: import("@storybook/addon-actions").HandlerFunction;
|
|
10
|
+
icon: string;
|
|
11
|
+
children: string;
|
|
12
|
+
};
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: {
|
|
15
|
+
source: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
page: () => JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
23
|
+
export declare const Primary: any;
|
|
24
|
+
export declare const Warning: any;
|
|
25
|
+
export declare const Disabled: any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BadgeProps } from "./Badge";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
components: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLAnchorElement | HTMLSpanElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
source: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
page: () => JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
export declare const Primary: any;
|
|
17
|
+
export declare const Secondary: any;
|
|
18
|
+
export declare const Success: any;
|
|
19
|
+
export declare const Warning: any;
|
|
20
|
+
export declare const Danger: any;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react/types-6-0";
|
|
3
|
+
import { CardProps } from "./";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../utils/spacer").SpacerProps & import("..").FlexProps & {
|
|
7
|
+
width?: import("csstype").Property.Width<0 | (string & {})> | undefined;
|
|
8
|
+
maxWidth?: import("csstype").Property.MaxWidth<0 | (string & {})> | undefined;
|
|
9
|
+
minWidth?: import("csstype").Property.MinWidth<0 | (string & {})> | undefined;
|
|
10
|
+
}, never>;
|
|
11
|
+
args: {
|
|
12
|
+
m: number;
|
|
13
|
+
p: number;
|
|
14
|
+
children: string;
|
|
15
|
+
};
|
|
16
|
+
parameters: {
|
|
17
|
+
docs: {
|
|
18
|
+
source: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
page: () => JSX.Element;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
26
|
+
export declare const Example: Story<CardProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Story } from "@storybook/react/types-6-0";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("./DatePicker").DatePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
source: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
page: () => JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
export declare const Basic: Story;
|
|
17
|
+
export declare const Error: Story;
|
|
18
|
+
export declare const Localize: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Story } from "@storybook/react/types-6-0";
|
|
3
|
+
import { DividerProps } from "./";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
components: React.ForwardRefExoticComponent<import("../../utils/spacer").SpacerProps & {
|
|
7
|
+
color?: string | undefined;
|
|
8
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
9
|
+
} & React.RefAttributes<HTMLHRElement>>;
|
|
10
|
+
parameters: {
|
|
11
|
+
docs: {
|
|
12
|
+
source: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
page: () => JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
20
|
+
export declare const Normal: any;
|
|
21
|
+
export declare const WithSpace: any;
|
|
22
|
+
export declare const OverrideColor: any;
|
|
23
|
+
export declare const Vertial: Story<DividerProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Story } from "@storybook/react/types-6-0";
|
|
3
|
+
import { ErrorTextProps } from "./ErrorText";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.ForwardRefExoticComponent<ErrorTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
args: {
|
|
8
|
+
children: string;
|
|
9
|
+
};
|
|
10
|
+
parameters: {
|
|
11
|
+
docs: {
|
|
12
|
+
source: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
page: () => JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
20
|
+
export declare const Example: Story<ErrorTextProps>;
|
|
@@ -19,5 +19,5 @@ export declare type Props = {
|
|
|
19
19
|
size?: IconSize;
|
|
20
20
|
color?: IconColor;
|
|
21
21
|
};
|
|
22
|
-
declare const Icon: React.ForwardRefExoticComponent<Props & React.RefAttributes<
|
|
22
|
+
declare const Icon: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLSpanElement>>;
|
|
23
23
|
export default Icon;
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { Props } from "./Icon";
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: React.ForwardRefExoticComponent<Props & React.RefAttributes<
|
|
5
|
+
component: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLSpanElement>>;
|
|
6
6
|
args: {
|
|
7
7
|
name: string;
|
|
8
8
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const Container: import("styled-components").StyledComponent<"
|
|
1
|
+
export declare const Container: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
|
|
2
2
|
size: number;
|
|
3
3
|
}, never>;
|