@integrigo/integrigo-ui 1.6.12 → 1.6.14
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/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/src/components/atoms/Avatar/Avatar.stories.d.ts +2 -2
- package/lib/src/components/atoms/Card/Card.d.ts +1 -1
- package/lib/src/components/atoms/Dot/Dot.stories.d.ts +6 -6
- package/lib/src/components/atoms/Icon/Icon.d.ts +35 -30
- package/lib/src/components/atoms/Icon/Icon.stories.d.ts +2 -2
- package/lib/src/components/atoms/Icon/icons/ArrowRight.d.ts +3 -0
- package/lib/src/components/atoms/Icon/icons/CheckSquare.d.ts +3 -0
- package/lib/src/components/atoms/Icon/icons/CreateDashboard.d.ts +3 -0
- package/lib/src/components/atoms/Icon/icons/Edit.d.ts +1 -1
- package/lib/src/components/atoms/Icon/icons/EllipsisHorizontal.d.ts +3 -0
- package/lib/src/components/atoms/Icon/icons/EllipsisVertical.d.ts +3 -0
- package/lib/src/components/atoms/Icon/icons/ImageEdit.d.ts +1 -1
- package/lib/src/components/atoms/Icon/icons/Lock.d.ts +1 -1
- package/lib/src/components/atoms/Icon/icons/User.d.ts +1 -1
- package/lib/src/components/atoms/Icon/icons/UserPlus.d.ts +3 -0
- package/lib/src/components/atoms/Initials/Initials.stories.d.ts +2 -2
- package/lib/src/components/molecules/Checkbox/Checkbox.stories.d.ts +4 -4
- package/lib/src/components/molecules/Input/Input.d.ts +1 -1
- package/lib/src/components/molecules/Input/Input.stories.d.ts +18 -18
- package/lib/src/components/molecules/Profile/Profile.stories.d.ts +3 -3
- package/lib/src/components/organisms/Setting/Setting.d.ts +2 -2
- package/lib/src/index.d.ts +4 -4
- package/package.json +1 -1
- package/rollup.config.js +1 -0
- package/src/components/atoms/Card/Card.tsx +8 -8
- package/src/components/atoms/Icon/Icon.stories.tsx +2 -0
- package/src/components/atoms/Icon/Icon.tsx +54 -64
- package/src/components/atoms/Icon/icons/AngleDown.tsx +2 -2
- package/src/components/atoms/Icon/icons/ArrowLeft.tsx +2 -2
- package/src/components/atoms/Icon/icons/ArrowRight.tsx +9 -0
- package/src/components/atoms/Icon/icons/Bars.tsx +2 -2
- package/src/components/atoms/Icon/icons/Bell.tsx +2 -2
- package/src/components/atoms/Icon/icons/CheckCircle.tsx +2 -2
- package/src/components/atoms/Icon/icons/CheckSquare.tsx +9 -0
- package/src/components/atoms/Icon/icons/ClipboardNotes.tsx +2 -2
- package/src/components/atoms/Icon/icons/Close.tsx +2 -2
- package/src/components/atoms/Icon/icons/CreateDashboard.tsx +9 -0
- package/src/components/atoms/Icon/icons/DiceFive.tsx +2 -2
- package/src/components/atoms/Icon/icons/Edit.tsx +3 -3
- package/src/components/atoms/Icon/icons/EllipsisHorizontal.tsx +9 -0
- package/src/components/atoms/Icon/icons/EllipsisVertical.tsx +9 -0
- package/src/components/atoms/Icon/icons/Envelope.tsx +2 -2
- package/src/components/atoms/Icon/icons/ExclamationCircle.tsx +2 -2
- package/src/components/atoms/Icon/icons/ExclamationTriangle.tsx +2 -2
- package/src/components/atoms/Icon/icons/Exit.tsx +2 -2
- package/src/components/atoms/Icon/icons/Facebook.tsx +2 -2
- package/src/components/atoms/Icon/icons/Home.tsx +2 -2
- package/src/components/atoms/Icon/icons/ImageEdit.tsx +3 -3
- package/src/components/atoms/Icon/icons/Instagram.tsx +2 -2
- package/src/components/atoms/Icon/icons/Linkedin.tsx +2 -2
- package/src/components/atoms/Icon/icons/Lock.tsx +3 -3
- package/src/components/atoms/Icon/icons/Minus.tsx +2 -2
- package/src/components/atoms/Icon/icons/Phone.tsx +2 -2
- package/src/components/atoms/Icon/icons/Plus.tsx +2 -2
- package/src/components/atoms/Icon/icons/PointsCircle.tsx +2 -2
- package/src/components/atoms/Icon/icons/Process.tsx +1 -1
- package/src/components/atoms/Icon/icons/Redo.tsx +2 -2
- package/src/components/atoms/Icon/icons/Setting.tsx +2 -2
- package/src/components/atoms/Icon/icons/User.tsx +3 -6
- package/src/components/atoms/Icon/icons/UserCircle.tsx +2 -2
- package/src/components/atoms/Icon/icons/UserPlus.tsx +9 -0
- package/src/components/atoms/Icon/icons/Users.tsx +2 -2
- package/src/components/molecules/Profile/Profile.tsx +1 -1
- package/src/components/organisms/Setting/Setting.tsx +6 -6
- package/src/index.ts +4 -4
- package/src/components/atoms/Icon/icons/ChechSquare.tsx +0 -9
@@ -1,35 +1,40 @@
|
|
1
1
|
import React from "react";
|
2
2
|
export declare const iconHashMap: {
|
3
|
-
"angle-down":
|
4
|
-
"arrow-left":
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
"check-
|
9
|
-
"
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
"
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
"
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
"
|
32
|
-
|
3
|
+
"angle-down": string;
|
4
|
+
"arrow-left": string;
|
5
|
+
"arrow-right": string;
|
6
|
+
bars: string;
|
7
|
+
bell: string;
|
8
|
+
"check-circle": string;
|
9
|
+
"check-square": string;
|
10
|
+
"clipboad-notes": string;
|
11
|
+
close: string;
|
12
|
+
"create-dashboard": string;
|
13
|
+
"dice-five": string;
|
14
|
+
edit: string;
|
15
|
+
"ellipsis-horizontal": string;
|
16
|
+
"ellipsis-vertical": string;
|
17
|
+
envelope: string;
|
18
|
+
"exclamation-circle": string;
|
19
|
+
"exclamation-triangle": string;
|
20
|
+
exit: string;
|
21
|
+
facebook: string;
|
22
|
+
home: string;
|
23
|
+
"image-edit": string;
|
24
|
+
instagram: string;
|
25
|
+
linkedin: string;
|
26
|
+
lock: string;
|
27
|
+
minus: string;
|
28
|
+
phone: string;
|
29
|
+
plus: string;
|
30
|
+
process: string;
|
31
|
+
"points-circle": string;
|
32
|
+
redo: string;
|
33
|
+
setting: string;
|
34
|
+
user: string;
|
35
|
+
"user-circle": string;
|
36
|
+
"user-plus": string;
|
37
|
+
users: string;
|
33
38
|
};
|
34
39
|
export declare type IconType = keyof typeof iconHashMap;
|
35
40
|
declare type IconProps = React.SVGProps<SVGSVGElement> & {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
3
|
declare const _default: ComponentMeta<React.FCS<React.SVGProps<SVGSVGElement> & {
|
4
|
-
type: "close" | "angle-down" | "arrow-left" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "dice-five" | "edit" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "users";
|
4
|
+
type: "close" | "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "create-dashboard" | "dice-five" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "user-plus" | "users";
|
5
5
|
size?: "big" | "small" | "ultra-small" | "medium" | {
|
6
6
|
width: number;
|
7
7
|
height: number;
|
@@ -9,7 +9,7 @@ declare const _default: ComponentMeta<React.FCS<React.SVGProps<SVGSVGElement> &
|
|
9
9
|
}>>;
|
10
10
|
export default _default;
|
11
11
|
export declare const SimpleIcon: ComponentStory<React.FCS<React.SVGProps<SVGSVGElement> & {
|
12
|
-
type: "close" | "angle-down" | "arrow-left" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "dice-five" | "edit" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "users";
|
12
|
+
type: "close" | "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "create-dashboard" | "dice-five" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "user-plus" | "users";
|
13
13
|
size?: "big" | "small" | "ultra-small" | "medium" | {
|
14
14
|
width: number;
|
15
15
|
height: number;
|
@@ -2,10 +2,10 @@
|
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
3
|
declare const _default: ComponentMeta<import("react").FC<{
|
4
4
|
text: string;
|
5
|
-
size?: "s" | "
|
5
|
+
size?: "s" | "xl" | "l" | "m" | "xxl" | undefined;
|
6
6
|
}>>;
|
7
7
|
export default _default;
|
8
8
|
export declare const Basic: ComponentStory<import("react").FC<{
|
9
9
|
text: string;
|
10
|
-
size?: "s" | "
|
10
|
+
size?: "s" | "xl" | "l" | "m" | "xxl" | undefined;
|
11
11
|
}>>;
|
@@ -1,19 +1,19 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
3
|
declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
|
4
|
-
size?: "s" | "
|
4
|
+
size?: "s" | "xl" | "l" | "m" | undefined;
|
5
5
|
label?: string | undefined;
|
6
6
|
} & React.RefAttributes<HTMLInputElement>>>;
|
7
7
|
export default _default;
|
8
8
|
export declare const Basic: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
|
9
|
-
size?: "s" | "
|
9
|
+
size?: "s" | "xl" | "l" | "m" | undefined;
|
10
10
|
label?: string | undefined;
|
11
11
|
} & React.RefAttributes<HTMLInputElement>>>;
|
12
12
|
export declare const Controlled: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
|
13
|
-
size?: "s" | "
|
13
|
+
size?: "s" | "xl" | "l" | "m" | undefined;
|
14
14
|
label?: string | undefined;
|
15
15
|
} & React.RefAttributes<HTMLInputElement>>>;
|
16
16
|
export declare const WithLabel: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
|
17
|
-
size?: "s" | "
|
17
|
+
size?: "s" | "xl" | "l" | "m" | undefined;
|
18
18
|
label?: string | undefined;
|
19
19
|
} & React.RefAttributes<HTMLInputElement>>>;
|
@@ -13,7 +13,7 @@ export declare type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement
|
|
13
13
|
export declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & FieldProps<any, any> & {
|
14
14
|
label?: string | undefined;
|
15
15
|
validationType?: ValidationType | undefined;
|
16
|
-
icon?: "angle-down" | "arrow-left" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "close" | "dice-five" | "edit" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "users" | undefined;
|
16
|
+
icon?: "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "close" | "create-dashboard" | "dice-five" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
|
17
17
|
size?: "xl" | "l" | "m" | "s" | undefined;
|
18
18
|
direction?: "ltr" | "rtl" | undefined;
|
19
19
|
onIconClick?: (() => void) | undefined;
|
@@ -3,8 +3,8 @@ import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
3
|
declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & import("formik").FieldProps<any, any> & {
|
4
4
|
label?: string | undefined;
|
5
5
|
validationType?: import("../../../types/validation").ValidationType | undefined;
|
6
|
-
icon?: "close" | "angle-down" | "arrow-left" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "dice-five" | "edit" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "users" | undefined;
|
7
|
-
size?: "s" | "
|
6
|
+
icon?: "close" | "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "create-dashboard" | "dice-five" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
|
7
|
+
size?: "s" | "xl" | "l" | "m" | undefined;
|
8
8
|
direction?: "rtl" | "ltr" | undefined;
|
9
9
|
onIconClick?: (() => void) | undefined;
|
10
10
|
} & React.RefAttributes<HTMLInputElement>>>;
|
@@ -12,64 +12,64 @@ export default _default;
|
|
12
12
|
export declare const Basic: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & import("formik").FieldProps<any, any> & {
|
13
13
|
label?: string | undefined;
|
14
14
|
validationType?: import("../../../types/validation").ValidationType | undefined;
|
15
|
-
icon?: "close" | "angle-down" | "arrow-left" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "dice-five" | "edit" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "users" | undefined;
|
16
|
-
size?: "s" | "
|
15
|
+
icon?: "close" | "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "create-dashboard" | "dice-five" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
|
16
|
+
size?: "s" | "xl" | "l" | "m" | undefined;
|
17
17
|
direction?: "rtl" | "ltr" | undefined;
|
18
18
|
onIconClick?: (() => void) | undefined;
|
19
19
|
} & React.RefAttributes<HTMLInputElement>>>;
|
20
20
|
export declare const Success: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & import("formik").FieldProps<any, any> & {
|
21
21
|
label?: string | undefined;
|
22
22
|
validationType?: import("../../../types/validation").ValidationType | undefined;
|
23
|
-
icon?: "close" | "angle-down" | "arrow-left" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "dice-five" | "edit" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "users" | undefined;
|
24
|
-
size?: "s" | "
|
23
|
+
icon?: "close" | "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "create-dashboard" | "dice-five" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
|
24
|
+
size?: "s" | "xl" | "l" | "m" | undefined;
|
25
25
|
direction?: "rtl" | "ltr" | undefined;
|
26
26
|
onIconClick?: (() => void) | undefined;
|
27
27
|
} & React.RefAttributes<HTMLInputElement>>>;
|
28
28
|
export declare const Error: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & import("formik").FieldProps<any, any> & {
|
29
29
|
label?: string | undefined;
|
30
30
|
validationType?: import("../../../types/validation").ValidationType | undefined;
|
31
|
-
icon?: "close" | "angle-down" | "arrow-left" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "dice-five" | "edit" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "users" | undefined;
|
32
|
-
size?: "s" | "
|
31
|
+
icon?: "close" | "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "create-dashboard" | "dice-five" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
|
32
|
+
size?: "s" | "xl" | "l" | "m" | undefined;
|
33
33
|
direction?: "rtl" | "ltr" | undefined;
|
34
34
|
onIconClick?: (() => void) | undefined;
|
35
35
|
} & React.RefAttributes<HTMLInputElement>>>;
|
36
36
|
export declare const Disabled: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & import("formik").FieldProps<any, any> & {
|
37
37
|
label?: string | undefined;
|
38
38
|
validationType?: import("../../../types/validation").ValidationType | undefined;
|
39
|
-
icon?: "close" | "angle-down" | "arrow-left" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "dice-five" | "edit" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "users" | undefined;
|
40
|
-
size?: "s" | "
|
39
|
+
icon?: "close" | "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "create-dashboard" | "dice-five" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
|
40
|
+
size?: "s" | "xl" | "l" | "m" | undefined;
|
41
41
|
direction?: "rtl" | "ltr" | undefined;
|
42
42
|
onIconClick?: (() => void) | undefined;
|
43
43
|
} & React.RefAttributes<HTMLInputElement>>>;
|
44
44
|
export declare const IconLTR: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & import("formik").FieldProps<any, any> & {
|
45
45
|
label?: string | undefined;
|
46
46
|
validationType?: import("../../../types/validation").ValidationType | undefined;
|
47
|
-
icon?: "close" | "angle-down" | "arrow-left" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "dice-five" | "edit" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "users" | undefined;
|
48
|
-
size?: "s" | "
|
47
|
+
icon?: "close" | "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "create-dashboard" | "dice-five" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
|
48
|
+
size?: "s" | "xl" | "l" | "m" | undefined;
|
49
49
|
direction?: "rtl" | "ltr" | undefined;
|
50
50
|
onIconClick?: (() => void) | undefined;
|
51
51
|
} & React.RefAttributes<HTMLInputElement>>>;
|
52
52
|
export declare const IconRTL: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & import("formik").FieldProps<any, any> & {
|
53
53
|
label?: string | undefined;
|
54
54
|
validationType?: import("../../../types/validation").ValidationType | undefined;
|
55
|
-
icon?: "close" | "angle-down" | "arrow-left" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "dice-five" | "edit" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "users" | undefined;
|
56
|
-
size?: "s" | "
|
55
|
+
icon?: "close" | "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "create-dashboard" | "dice-five" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
|
56
|
+
size?: "s" | "xl" | "l" | "m" | undefined;
|
57
57
|
direction?: "rtl" | "ltr" | undefined;
|
58
58
|
onIconClick?: (() => void) | undefined;
|
59
59
|
} & React.RefAttributes<HTMLInputElement>>>;
|
60
60
|
export declare const DisabledIcon: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & import("formik").FieldProps<any, any> & {
|
61
61
|
label?: string | undefined;
|
62
62
|
validationType?: import("../../../types/validation").ValidationType | undefined;
|
63
|
-
icon?: "close" | "angle-down" | "arrow-left" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "dice-five" | "edit" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "users" | undefined;
|
64
|
-
size?: "s" | "
|
63
|
+
icon?: "close" | "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "create-dashboard" | "dice-five" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
|
64
|
+
size?: "s" | "xl" | "l" | "m" | undefined;
|
65
65
|
direction?: "rtl" | "ltr" | undefined;
|
66
66
|
onIconClick?: (() => void) | undefined;
|
67
67
|
} & React.RefAttributes<HTMLInputElement>>>;
|
68
68
|
export declare const WithLabel: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & import("formik").FieldProps<any, any> & {
|
69
69
|
label?: string | undefined;
|
70
70
|
validationType?: import("../../../types/validation").ValidationType | undefined;
|
71
|
-
icon?: "close" | "angle-down" | "arrow-left" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "dice-five" | "edit" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "users" | undefined;
|
72
|
-
size?: "s" | "
|
71
|
+
icon?: "close" | "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "check-circle" | "check-square" | "clipboad-notes" | "create-dashboard" | "dice-five" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "facebook" | "home" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "process" | "points-circle" | "redo" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
|
72
|
+
size?: "s" | "xl" | "l" | "m" | undefined;
|
73
73
|
direction?: "rtl" | "ltr" | undefined;
|
74
74
|
onIconClick?: (() => void) | undefined;
|
75
75
|
} & React.RefAttributes<HTMLInputElement>>>;
|
@@ -3,7 +3,7 @@ import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
3
|
declare const _default: ComponentMeta<import("react").FC<Partial<{
|
4
4
|
src: string;
|
5
5
|
alt: string;
|
6
|
-
size?: "s" | "
|
6
|
+
size?: "s" | "xl" | "l" | "m" | "xxl" | undefined;
|
7
7
|
} & {
|
8
8
|
children?: import("react").ReactNode;
|
9
9
|
}> & {
|
@@ -14,7 +14,7 @@ export default _default;
|
|
14
14
|
export declare const Basic: ComponentStory<import("react").FC<Partial<{
|
15
15
|
src: string;
|
16
16
|
alt: string;
|
17
|
-
size?: "s" | "
|
17
|
+
size?: "s" | "xl" | "l" | "m" | "xxl" | undefined;
|
18
18
|
} & {
|
19
19
|
children?: import("react").ReactNode;
|
20
20
|
}> & {
|
@@ -24,7 +24,7 @@ export declare const Basic: ComponentStory<import("react").FC<Partial<{
|
|
24
24
|
export declare const WithInitials: ComponentStory<import("react").FC<Partial<{
|
25
25
|
src: string;
|
26
26
|
alt: string;
|
27
|
-
size?: "s" | "
|
27
|
+
size?: "s" | "xl" | "l" | "m" | "xxl" | undefined;
|
28
28
|
} & {
|
29
29
|
children?: import("react").ReactNode;
|
30
30
|
}> & {
|
package/lib/src/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { Alert, Avatar, Card, Divider, Icon, Nav, Pill, Typography, Spinner, Chip, Dot, } from
|
2
|
-
export { InfoCard, Input, TextArea, Button, Checkbox, Dropdown, Profile, Radio, } from
|
3
|
-
export { Menu, Setting } from
|
4
|
-
export { GlobalStyles as IntegrigoUI, Color } from
|
1
|
+
export { Alert, Avatar, Card, Divider, Icon, Nav, Pill, Typography, Spinner, Chip, Dot, } from './components/atoms';
|
2
|
+
export { InfoCard, Input, TextArea, Button, Checkbox, Dropdown, Profile, Radio, } from './components/molecules';
|
3
|
+
export { Menu, Setting } from './components/organisms';
|
4
|
+
export { GlobalStyles as IntegrigoUI, Color } from './styles';
|
package/package.json
CHANGED
package/rollup.config.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import styled from
|
1
|
+
import styled from 'styled-components';
|
2
2
|
|
3
3
|
export interface CardProps {
|
4
4
|
inverse?: boolean;
|
5
|
-
size?:
|
5
|
+
size?: 's' | 'm' | 'l';
|
6
6
|
flat?: boolean;
|
7
7
|
}
|
8
8
|
|
@@ -23,11 +23,11 @@ const sizeVariants = {
|
|
23
23
|
|
24
24
|
export const Card = styled.div<CardProps>`
|
25
25
|
background-color: ${(p) =>
|
26
|
-
p.inverse ?
|
27
|
-
box-shadow: ${(p) => (p.flat ?
|
28
|
-
color: ${(p) => (p.inverse ?
|
29
|
-
padding: ${(p) => sizeVariants[p.size ||
|
30
|
-
border-radius: ${(p) => sizeVariants[p.size ||
|
26
|
+
p.inverse ? 'var(--color-navy)' : 'var(--color-white)'};
|
27
|
+
box-shadow: ${(p) => (p.flat ? 'none' : '0px 4px 4px rgba(0, 0, 0, 0.25)')};
|
28
|
+
color: ${(p) => (p.inverse ? 'var(--color-white)' : 'var(--color-navy)')};
|
29
|
+
padding: ${(p) => sizeVariants[p.size || 'l'].padding}px;
|
30
|
+
border-radius: ${(p) => sizeVariants[p.size || 'l'].borderRadius}px;
|
31
31
|
`;
|
32
32
|
|
33
|
-
Card.displayName =
|
33
|
+
Card.displayName = 'Card';
|
@@ -17,6 +17,7 @@ export const AllIcons = () => (
|
|
17
17
|
<div
|
18
18
|
style={{
|
19
19
|
display: 'flex',
|
20
|
+
flexWrap: 'wrap',
|
20
21
|
}}
|
21
22
|
>
|
22
23
|
{Object.keys(iconHashMap).map((type) => (
|
@@ -25,6 +26,7 @@ export const AllIcons = () => (
|
|
25
26
|
style={{
|
26
27
|
padding: '12px',
|
27
28
|
borderRight: '1px solid black',
|
29
|
+
borderBottom: '1px solid black',
|
28
30
|
display: 'flex',
|
29
31
|
flexDirection: 'column',
|
30
32
|
alignItems: 'center',
|
@@ -1,68 +1,42 @@
|
|
1
|
-
import React from "react";
|
1
|
+
import React, { Suspense } from "react";
|
2
2
|
import { Color } from "../../../styles";
|
3
3
|
|
4
|
-
import AngleDown from "./icons/AngleDown";
|
5
|
-
import ArrowLeft from "./icons/ArrowLeft";
|
6
|
-
import Bars from "./icons/Bars";
|
7
|
-
import Bell from "./icons/Bell";
|
8
|
-
import CheckCircle from "./icons/CheckCircle";
|
9
|
-
import CheckSquare from "./icons/ChechSquare";
|
10
|
-
import ClipboardNotes from "./icons/ClipboardNotes";
|
11
|
-
import Close from "./icons/Close";
|
12
|
-
import DiceFive from "./icons/DiceFive";
|
13
|
-
import Edit from "./icons/Edit";
|
14
|
-
import Envelope from "./icons/Envelope";
|
15
|
-
import ExclamationCircle from "./icons/ExclamationCircle";
|
16
|
-
import ExclamationTriangle from "./icons/ExclamationTriangle";
|
17
|
-
import Exit from "./icons/Exit";
|
18
|
-
import Facebook from "./icons/Facebook";
|
19
|
-
import Home from "./icons/Home";
|
20
|
-
import ImageEdit from "./icons/ImageEdit";
|
21
|
-
import Instagram from "./icons/Instagram";
|
22
|
-
import Linkedin from "./icons/Linkedin";
|
23
|
-
import Lock from "./icons/Lock";
|
24
|
-
import Minus from "./icons/Minus";
|
25
|
-
import Phone from "./icons/Phone";
|
26
|
-
import Plus from "./icons/Plus";
|
27
|
-
import PointsCircle from "./icons/PointsCircle";
|
28
|
-
import Process from "./icons/Process";
|
29
|
-
import Redo from "./icons/Redo";
|
30
|
-
import Setting from "./icons/Setting";
|
31
|
-
import User from "./icons/User";
|
32
|
-
import UserCircle from "./icons/UserCircle";
|
33
|
-
import Users from "./icons/Users";
|
34
|
-
|
35
4
|
export const iconHashMap = {
|
36
|
-
"angle-down": AngleDown,
|
37
|
-
"arrow-left": ArrowLeft,
|
38
|
-
|
39
|
-
|
40
|
-
"
|
41
|
-
"check-
|
42
|
-
"
|
43
|
-
|
44
|
-
"
|
45
|
-
|
46
|
-
|
47
|
-
"
|
48
|
-
"
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
"
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
"
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
"
|
65
|
-
|
5
|
+
"angle-down": "AngleDown",
|
6
|
+
"arrow-left": "ArrowLeft",
|
7
|
+
"arrow-right": "ArrowRight",
|
8
|
+
bars: "Bars",
|
9
|
+
bell: "Bell",
|
10
|
+
"check-circle": "CheckCircle",
|
11
|
+
"check-square": "CheckSquare",
|
12
|
+
"clipboad-notes": "ClipboardNotes",
|
13
|
+
close: "Close",
|
14
|
+
"create-dashboard": "CreateDashboard",
|
15
|
+
"dice-five": "DiceFive",
|
16
|
+
edit: "Edit",
|
17
|
+
"ellipsis-horizontal": "EllipsisHorizontal",
|
18
|
+
"ellipsis-vertical": "EllipsisVertical",
|
19
|
+
envelope: "Envelope",
|
20
|
+
"exclamation-circle": "ExclamationCircle",
|
21
|
+
"exclamation-triangle": "ExclamationTriangle",
|
22
|
+
exit: "Exit",
|
23
|
+
facebook: "Facebook",
|
24
|
+
home: "Home",
|
25
|
+
"image-edit": "ImageEdit",
|
26
|
+
instagram: "Instagram",
|
27
|
+
linkedin: "Linkedin",
|
28
|
+
lock: "Lock",
|
29
|
+
minus: "Minus",
|
30
|
+
phone: "Phone",
|
31
|
+
plus: "Plus",
|
32
|
+
process: "Process",
|
33
|
+
"points-circle": "PointsCircle",
|
34
|
+
redo: "Redo",
|
35
|
+
setting: "Setting",
|
36
|
+
user: "User",
|
37
|
+
"user-circle": "UserCircle",
|
38
|
+
"user-plus": "UserPlus",
|
39
|
+
users: "Users",
|
66
40
|
};
|
67
41
|
|
68
42
|
export type IconType = keyof typeof iconHashMap;
|
@@ -102,10 +76,26 @@ export const Icon: React.FCS<IconProps> = ({
|
|
102
76
|
size = "ultra-small",
|
103
77
|
...props
|
104
78
|
}) => {
|
105
|
-
const Component = iconHashMap[type];
|
79
|
+
const Component = React.lazy(() => import(`./icons/${iconHashMap[type]}`));
|
106
80
|
const sizes = typeof size === "string" ? sizeHashMap[size] : size;
|
107
81
|
|
108
82
|
return (
|
109
|
-
<
|
83
|
+
<Suspense
|
84
|
+
fallback={
|
85
|
+
<svg
|
86
|
+
viewBox="0 0 24 24"
|
87
|
+
width="20"
|
88
|
+
height="20"
|
89
|
+
xmlns="http://www.w3.org/2000/svg"
|
90
|
+
/>
|
91
|
+
}
|
92
|
+
>
|
93
|
+
<Component
|
94
|
+
className={className}
|
95
|
+
fill={Color.Navy}
|
96
|
+
{...sizes}
|
97
|
+
{...props}
|
98
|
+
/>
|
99
|
+
</Suspense>
|
110
100
|
);
|
111
101
|
};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
|
3
3
|
const AngleDown: React.FCS = (props) => (
|
4
|
-
<svg viewBox="0 0
|
5
|
-
<path d="
|
4
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" {...props}>
|
5
|
+
<path d="M16.9999 9.17C16.8126 8.98375 16.5591 8.87921 16.2949 8.87921C16.0308 8.87921 15.7773 8.98375 15.5899 9.17L11.9999 12.71L8.45995 9.17C8.27259 8.98375 8.01913 8.87921 7.75495 8.87921C7.49076 8.87921 7.23731 8.98375 7.04995 9.17C6.95622 9.26296 6.88183 9.37356 6.83106 9.49542C6.78029 9.61728 6.75415 9.74799 6.75415 9.88C6.75415 10.012 6.78029 10.1427 6.83106 10.2646C6.88183 10.3864 6.95622 10.497 7.04995 10.59L11.2899 14.83C11.3829 14.9237 11.4935 14.9981 11.6154 15.0489C11.7372 15.0997 11.8679 15.1258 11.9999 15.1258C12.132 15.1258 12.2627 15.0997 12.3845 15.0489C12.5064 14.9981 12.617 14.9237 12.7099 14.83L16.9999 10.59C17.0937 10.497 17.1681 10.3864 17.2188 10.2646C17.2696 10.1427 17.2957 10.012 17.2957 9.88C17.2957 9.74799 17.2696 9.61728 17.2188 9.49542C17.1681 9.37356 17.0937 9.26296 16.9999 9.17Z" />
|
6
6
|
</svg>
|
7
7
|
);
|
8
8
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
|
3
3
|
const ArrowLeft: React.FCS = (props) => (
|
4
|
-
<svg viewBox="0 0
|
5
|
-
<path d="
|
4
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" {...props}>
|
5
|
+
<path d="M17 11H9.41002L12.71 7.71C12.8983 7.5217 13.0041 7.2663 13.0041 7C13.0041 6.7337 12.8983 6.47831 12.71 6.29C12.5217 6.1017 12.2663 5.99591 12 5.99591C11.7337 5.99591 11.4783 6.1017 11.29 6.29L6.29002 11.29C6.19898 11.3851 6.12761 11.4973 6.08002 11.62C5.98 11.8635 5.98 12.1365 6.08002 12.38C6.12761 12.5028 6.19898 12.6149 6.29002 12.71L11.29 17.71C11.383 17.8037 11.4936 17.8781 11.6154 17.9289C11.7373 17.9797 11.868 18.0058 12 18.0058C12.132 18.0058 12.2627 17.9797 12.3846 17.9289C12.5065 17.8781 12.6171 17.8037 12.71 17.71C12.8037 17.617 12.8781 17.5064 12.9289 17.3846C12.9797 17.2627 13.0058 17.132 13.0058 17C13.0058 16.868 12.9797 16.7373 12.9289 16.6154C12.8781 16.4936 12.8037 16.383 12.71 16.29L9.41002 13H17C17.2652 13 17.5196 12.8946 17.7071 12.7071C17.8947 12.5196 18 12.2652 18 12C18 11.7348 17.8947 11.4804 17.7071 11.2929C17.5196 11.1054 17.2652 11 17 11Z" />
|
6
6
|
</svg>
|
7
7
|
);
|
8
8
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from "react";
|
2
|
+
|
3
|
+
const ArrowRight: React.FCS = (props) => (
|
4
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" {...props}>
|
5
|
+
<path d="M17.92 11.62C17.8724 11.4973 17.801 11.3851 17.71 11.29L12.71 6.29C12.6168 6.19676 12.5061 6.1228 12.3842 6.07234C12.2624 6.02188 12.1319 5.99591 12 5.99591C11.7337 5.99591 11.4783 6.1017 11.29 6.29C11.1968 6.38324 11.1228 6.49393 11.0723 6.61575C11.0219 6.73758 10.9959 6.86814 10.9959 7C10.9959 7.2663 11.1017 7.5217 11.29 7.71L14.59 11H7C6.73478 11 6.48043 11.1054 6.29289 11.2929C6.10536 11.4804 6 11.7348 6 12C6 12.2652 6.10536 12.5196 6.29289 12.7071C6.48043 12.8946 6.73478 13 7 13H14.59L11.29 16.29C11.1963 16.383 11.1219 16.4936 11.0711 16.6154C11.0203 16.7373 10.9942 16.868 10.9942 17C10.9942 17.132 11.0203 17.2627 11.0711 17.3846C11.1219 17.5064 11.1963 17.617 11.29 17.71C11.383 17.8037 11.4936 17.8781 11.6154 17.9289C11.7373 17.9797 11.868 18.0058 12 18.0058C12.132 18.0058 12.2627 17.9797 12.3846 17.9289C12.5064 17.8781 12.617 17.8037 12.71 17.71L17.71 12.71C17.801 12.6149 17.8724 12.5028 17.92 12.38C18.02 12.1365 18.02 11.8635 17.92 11.62Z" />
|
6
|
+
</svg>
|
7
|
+
);
|
8
|
+
|
9
|
+
export default ArrowRight;
|