@integrigo/integrigo-ui 1.3.9 → 1.4.2
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/lib/components/atoms/Button/BasicButton.d.ts +6 -0
- package/lib/components/atoms/Button/Button.d.ts +8 -3
- package/lib/components/atoms/Button/Ghost.d.ts +6 -0
- package/lib/components/atoms/Button/Primary.d.ts +4 -0
- package/lib/components/atoms/Icon/Icon.d.ts +19 -8
- package/lib/components/atoms/Icon/IconAddition.d.ts +11 -0
- package/lib/components/atoms/Icon/icons/Bars.d.ts +1 -2
- package/lib/components/atoms/Icon/icons/Envelope.d.ts +1 -2
- package/lib/components/atoms/Icon/icons/Facebook.d.ts +1 -2
- package/lib/components/atoms/Icon/icons/Instagram.d.ts +1 -2
- package/lib/components/atoms/Icon/icons/Linkedin.d.ts +1 -2
- package/lib/components/atoms/Icon/icons/Minus.d.ts +1 -2
- package/lib/components/atoms/Icon/icons/Phone.d.ts +1 -2
- package/lib/components/atoms/Icon/icons/Plus.d.ts +1 -2
- package/lib/components/atoms/Icon/icons/UserCircle.d.ts +3 -0
- package/lib/components/atoms/Icon/index.d.ts +2 -0
- package/lib/components/atoms/index.d.ts +0 -2
- package/lib/components/molecules/Button/BasicButton.d.ts +6 -0
- package/lib/components/molecules/Button/Button.d.ts +12 -0
- package/lib/components/molecules/Button/Ghost.d.ts +6 -0
- package/lib/components/molecules/Button/Primary.d.ts +4 -0
- package/lib/components/molecules/Button/index.d.ts +1 -0
- package/lib/components/molecules/Input/Input.d.ts +17 -0
- package/lib/components/molecules/Input/index.d.ts +1 -0
- package/lib/components/molecules/TextArea/TextArea.d.ts +6 -0
- package/lib/components/molecules/TextArea/index.d.ts +1 -0
- package/lib/components/molecules/index.d.ts +4 -1
- package/lib/helpers/validation.d.ts +3 -0
- package/lib/index.d.ts +3 -3
- package/lib/index.esm.js +1 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/styles/colors.d.ts +17 -1
- package/lib/styles/index.d.ts +1 -1
- package/lib/types/validation.d.ts +1 -0
- package/package.json +2 -7
@@ -0,0 +1,6 @@
|
|
1
|
+
import { FlattenSimpleInterpolation } from "styled-components";
|
2
|
+
export declare const getDirectionPadding: (direction?: "rtl" | "ltr" | undefined, ghost?: boolean | undefined) => FlattenSimpleInterpolation;
|
3
|
+
export declare const BasicButton: import("styled-components").StyledComponent<"button", any, {
|
4
|
+
direction?: "rtl" | "ltr" | undefined;
|
5
|
+
ghost?: boolean | undefined;
|
6
|
+
}, never>;
|
@@ -1,7 +1,12 @@
|
|
1
1
|
import React from "react";
|
2
|
-
|
2
|
+
import { IconType } from "../Icon";
|
3
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
3
4
|
primary?: boolean;
|
4
5
|
ghost?: boolean;
|
5
|
-
|
6
|
+
icon?: IconType;
|
7
|
+
direction?: "rtl" | "ltr";
|
8
|
+
size?: "ultra-small" | "small" | "medium" | "big";
|
9
|
+
children: string;
|
10
|
+
onIconClick?: () => void;
|
6
11
|
}
|
7
|
-
export declare const Button:
|
12
|
+
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
@@ -1,11 +1,22 @@
|
|
1
1
|
import React from "react";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
2
|
+
export declare const iconHashMap: {
|
3
|
+
bars: React.FCS<{}>;
|
4
|
+
envelope: React.FCS<{}>;
|
5
|
+
facebook: React.FCS<{}>;
|
6
|
+
instagram: React.FCS<{}>;
|
7
|
+
linkedin: React.FCS<{}>;
|
8
|
+
minus: React.FCS<{}>;
|
9
|
+
phone: React.FCS<{}>;
|
10
|
+
plus: React.FCS<{}>;
|
11
|
+
"user-circle": React.FCS<{}>;
|
9
12
|
};
|
10
|
-
export declare
|
13
|
+
export declare type IconType = keyof typeof iconHashMap;
|
14
|
+
declare type IconProps = React.SVGProps<SVGSVGElement> & {
|
15
|
+
type: IconType;
|
16
|
+
size?: "ultra-small" | "small" | "medium" | "big" | {
|
17
|
+
width: number;
|
18
|
+
height: number;
|
19
|
+
};
|
20
|
+
};
|
21
|
+
export declare const Icon: React.FCS<IconProps>;
|
11
22
|
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { IconType } from "./Icon";
|
3
|
+
interface IconAdditionProps {
|
4
|
+
disabled?: boolean;
|
5
|
+
icon?: IconType;
|
6
|
+
direction?: "rtl" | "ltr";
|
7
|
+
colorVariant?: 'grey' | 'white' | 'ghost';
|
8
|
+
onClick?: () => void;
|
9
|
+
}
|
10
|
+
export declare const IconAddition: React.FC<IconAdditionProps>;
|
11
|
+
export {};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { FlattenSimpleInterpolation } from "styled-components";
|
2
|
+
export declare const getDirectionPadding: (direction?: "rtl" | "ltr" | undefined, ghost?: boolean | undefined) => FlattenSimpleInterpolation;
|
3
|
+
export declare const BasicButton: import("styled-components").StyledComponent<"button", any, {
|
4
|
+
direction?: "rtl" | "ltr" | undefined;
|
5
|
+
ghost?: boolean | undefined;
|
6
|
+
}, never>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { IconType } from "../../atoms/Icon";
|
3
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
4
|
+
primary?: boolean;
|
5
|
+
ghost?: boolean;
|
6
|
+
icon?: IconType;
|
7
|
+
direction?: "rtl" | "ltr";
|
8
|
+
size?: "ultra-small" | "small" | "medium" | "big";
|
9
|
+
children: string;
|
10
|
+
onIconClick?: () => void;
|
11
|
+
}
|
12
|
+
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Button } from './Button';
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { ValidationType } from "../../../types/validation";
|
3
|
+
import { IconType } from "../../atoms/Icon";
|
4
|
+
export declare type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
5
|
+
validationType?: ValidationType;
|
6
|
+
icon?: IconType;
|
7
|
+
size?: "ultra-small" | "small" | "medium" | "big";
|
8
|
+
direction?: "ltr" | "rtl";
|
9
|
+
onIconClick?: () => void;
|
10
|
+
};
|
11
|
+
export declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
12
|
+
validationType?: ValidationType | undefined;
|
13
|
+
icon?: "bars" | "envelope" | "facebook" | "instagram" | "linkedin" | "minus" | "phone" | "plus" | "user-circle" | undefined;
|
14
|
+
size?: "ultra-small" | "small" | "medium" | "big" | undefined;
|
15
|
+
direction?: "ltr" | "rtl" | undefined;
|
16
|
+
onIconClick?: (() => void) | undefined;
|
17
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Input } from './Input';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { ValidationType } from "../../../types/validation";
|
3
|
+
export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
4
|
+
validationType?: ValidationType;
|
5
|
+
}
|
6
|
+
export declare const TextArea: React.FC<TextAreaProps>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { TextArea } from './TextArea';
|
package/lib/index.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
export {
|
2
|
-
export { InfoCard } from
|
3
|
-
export { GlobalStyles as IntegrigoUI, Color } from
|
1
|
+
export { Card, Icon, Nav, Pill, Typography } from "./components/atoms";
|
2
|
+
export { InfoCard, Input, TextArea, Button } from "./components/molecules";
|
3
|
+
export { GlobalStyles as IntegrigoUI, Color } from "./styles";
|