@integrigo/integrigo-ui 1.6.18-c → 1.6.18-e

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.
Files changed (39) hide show
  1. package/lib/index.d.ts +2 -1
  2. package/lib/index.esm.js +1 -1
  3. package/lib/index.esm.js.map +1 -1
  4. package/lib/index.js +1 -1
  5. package/lib/index.js.map +1 -1
  6. package/lib/src/components/atoms/Avatar/Avatar.stories.d.ts +2 -2
  7. package/lib/src/components/atoms/Dot/Dot.stories.d.ts +6 -6
  8. package/lib/src/components/atoms/Gradient/Gradient.stories.d.ts +2 -2
  9. package/lib/src/components/atoms/Icon/Icon.d.ts +1 -0
  10. package/lib/src/components/atoms/Icon/Icon.stories.d.ts +2 -2
  11. package/lib/src/components/atoms/Icon/icons/ArrowCircleRight.d.ts +3 -0
  12. package/lib/src/components/atoms/Initials/Initials.stories.d.ts +2 -2
  13. package/lib/src/components/molecules/Checkbox/Checkbox.stories.d.ts +4 -4
  14. package/lib/src/components/molecules/IconButton/IconButton.d.ts +7 -0
  15. package/lib/src/components/molecules/IconButton/IconButton.stories.d.ts +5 -0
  16. package/lib/src/components/molecules/IconButton/index.d.ts +1 -0
  17. package/lib/src/components/molecules/Input/Input.d.ts +1 -1
  18. package/lib/src/components/molecules/Input/Input.stories.d.ts +18 -18
  19. package/lib/src/components/molecules/Profile/Profile.stories.d.ts +3 -3
  20. package/lib/src/components/molecules/TextArea/TextArea.d.ts +3 -2
  21. package/lib/src/components/molecules/index.d.ts +1 -0
  22. package/lib/src/components/organisms/Comment/Comment.d.ts +11 -0
  23. package/lib/src/components/organisms/Comment/Comment.stories.d.ts +5 -0
  24. package/lib/src/components/organisms/Comment/index.d.ts +1 -0
  25. package/lib/src/components/organisms/index.d.ts +1 -0
  26. package/lib/src/index.d.ts +4 -4
  27. package/package.json +1 -1
  28. package/src/components/atoms/Icon/Icon.tsx +2 -0
  29. package/src/components/atoms/Icon/icons/ArrowCircleRight.tsx +9 -0
  30. package/src/components/molecules/IconButton/IconButton.stories.tsx +18 -0
  31. package/src/components/molecules/IconButton/IconButton.tsx +60 -0
  32. package/src/components/molecules/IconButton/index.ts +1 -0
  33. package/src/components/molecules/TextArea/TextArea.tsx +4 -4
  34. package/src/components/molecules/index.ts +2 -1
  35. package/src/components/organisms/Comment/Comment.stories.tsx +29 -0
  36. package/src/components/organisms/Comment/Comment.tsx +59 -0
  37. package/src/components/organisms/Comment/index.ts +1 -0
  38. package/src/components/organisms/index.ts +2 -1
  39. package/src/index.ts +12 -4
@@ -3,11 +3,11 @@ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
  declare const _default: ComponentMeta<React.FC<{
4
4
  src: string;
5
5
  alt: string;
6
- size?: "s" | "m" | "l" | "xl" | "xxl" | undefined;
6
+ size?: "xl" | "l" | "m" | "s" | "xxl" | undefined;
7
7
  }>>;
8
8
  export default _default;
9
9
  export declare const Basic: ComponentStory<React.FC<{
10
10
  src: string;
11
11
  alt: string;
12
- size?: "s" | "m" | "l" | "xl" | "xxl" | undefined;
12
+ size?: "xl" | "l" | "m" | "s" | "xxl" | undefined;
13
13
  }>>;
@@ -2,7 +2,7 @@
2
2
  import { ComponentMeta, ComponentStory } from '@storybook/react';
3
3
  declare const _default: ComponentMeta<import("react").FCS<{
4
4
  icon?: (import("react").SVGProps<SVGSVGElement> & {
5
- type: "close" | "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users";
5
+ type: "close" | "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users";
6
6
  size?: "big" | "small" | "ultra-small" | "medium" | {
7
7
  width: number;
8
8
  height: number;
@@ -11,12 +11,12 @@ declare const _default: ComponentMeta<import("react").FCS<{
11
11
  children?: import("react").ReactNode;
12
12
  }) | undefined;
13
13
  children?: import("react").ReactNode;
14
- size?: "s" | "m" | "l" | "xl" | undefined;
14
+ size?: "xl" | "l" | "m" | "s" | undefined;
15
15
  }>>;
16
16
  export default _default;
17
17
  export declare const Icon: ComponentStory<import("react").FCS<{
18
18
  icon?: (import("react").SVGProps<SVGSVGElement> & {
19
- type: "close" | "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users";
19
+ type: "close" | "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users";
20
20
  size?: "big" | "small" | "ultra-small" | "medium" | {
21
21
  width: number;
22
22
  height: number;
@@ -25,11 +25,11 @@ export declare const Icon: ComponentStory<import("react").FCS<{
25
25
  children?: import("react").ReactNode;
26
26
  }) | undefined;
27
27
  children?: import("react").ReactNode;
28
- size?: "s" | "m" | "l" | "xl" | undefined;
28
+ size?: "xl" | "l" | "m" | "s" | undefined;
29
29
  }>>;
30
30
  export declare const Basic: ComponentStory<import("react").FCS<{
31
31
  icon?: (import("react").SVGProps<SVGSVGElement> & {
32
- type: "close" | "angle-down" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users";
32
+ type: "close" | "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users";
33
33
  size?: "big" | "small" | "ultra-small" | "medium" | {
34
34
  width: number;
35
35
  height: number;
@@ -38,5 +38,5 @@ export declare const Basic: ComponentStory<import("react").FCS<{
38
38
  children?: import("react").ReactNode;
39
39
  }) | undefined;
40
40
  children?: import("react").ReactNode;
41
- size?: "s" | "m" | "l" | "xl" | undefined;
41
+ size?: "xl" | "l" | "m" | "s" | undefined;
42
42
  }>>;
@@ -1,6 +1,6 @@
1
1
  import { ComponentStory, ComponentMeta } from "@storybook/react";
2
2
  declare const _default: ComponentMeta<import("styled-components").StyledComponent<"div", any, {
3
- size?: "s" | "m" | "l" | "xl" | "xxl" | undefined;
3
+ size?: "xl" | "l" | "m" | "s" | "xxl" | undefined;
4
4
  width?: number | undefined;
5
5
  height?: number | undefined;
6
6
  variant?: number | undefined;
@@ -8,7 +8,7 @@ declare const _default: ComponentMeta<import("styled-components").StyledComponen
8
8
  }, never>>;
9
9
  export default _default;
10
10
  export declare const Basic: ComponentStory<import("styled-components").StyledComponent<"div", any, {
11
- size?: "s" | "m" | "l" | "xl" | "xxl" | undefined;
11
+ size?: "xl" | "l" | "m" | "s" | "xxl" | undefined;
12
12
  width?: number | undefined;
13
13
  height?: number | undefined;
14
14
  variant?: number | undefined;
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  export declare const iconHashMap: {
3
3
  "angle-down": React.FCS<{}>;
4
+ "arrow-circle-right": React.FCS<{}>;
4
5
  "arrow-left": React.FCS<{}>;
5
6
  "arrow-right": React.FCS<{}>;
6
7
  bars: React.FCS<{}>;
@@ -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" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users";
4
+ type: "close" | "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "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" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users";
12
+ type: "close" | "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users";
13
13
  size?: "big" | "small" | "ultra-small" | "medium" | {
14
14
  width: number;
15
15
  height: number;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const ArrowCircleRight: React.FCS;
3
+ export default ArrowCircleRight;
@@ -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" | "m" | "l" | "xl" | "xxl" | undefined;
5
+ size?: "xl" | "l" | "m" | "s" | "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" | "m" | "l" | "xl" | "xxl" | undefined;
10
+ size?: "xl" | "l" | "m" | "s" | "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" | "m" | "l" | "xl" | undefined;
4
+ size?: "xl" | "l" | "m" | "s" | 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" | "m" | "l" | "xl" | undefined;
9
+ size?: "xl" | "l" | "m" | "s" | 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" | "m" | "l" | "xl" | undefined;
13
+ size?: "xl" | "l" | "m" | "s" | 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" | "m" | "l" | "xl" | undefined;
17
+ size?: "xl" | "l" | "m" | "s" | undefined;
18
18
  label?: string | undefined;
19
19
  } & React.RefAttributes<HTMLInputElement>>>;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { IconType } from "../../atoms/Icon";
3
+ export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ size?: "m" | "l";
5
+ icon: IconType;
6
+ }
7
+ export declare const IconButton: React.FC<IconButtonProps>;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { ComponentStory, ComponentMeta } from "@storybook/react";
3
+ declare const _default: ComponentMeta<React.FC<import("./IconButton").IconButtonProps>>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<React.FC<import("./IconButton").IconButtonProps>>;
@@ -0,0 +1 @@
1
+ export { IconButton } from "./IconButton";
@@ -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" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
16
+ icon?: "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "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" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
7
- size?: "s" | "m" | "l" | "xl" | undefined;
6
+ icon?: "close" | "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
7
+ size?: "xl" | "l" | "m" | "s" | 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" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
16
- size?: "s" | "m" | "l" | "xl" | undefined;
15
+ icon?: "close" | "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
16
+ size?: "xl" | "l" | "m" | "s" | 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" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
24
- size?: "s" | "m" | "l" | "xl" | undefined;
23
+ icon?: "close" | "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
24
+ size?: "xl" | "l" | "m" | "s" | 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" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
32
- size?: "s" | "m" | "l" | "xl" | undefined;
31
+ icon?: "close" | "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
32
+ size?: "xl" | "l" | "m" | "s" | 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" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
40
- size?: "s" | "m" | "l" | "xl" | undefined;
39
+ icon?: "close" | "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
40
+ size?: "xl" | "l" | "m" | "s" | 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" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
48
- size?: "s" | "m" | "l" | "xl" | undefined;
47
+ icon?: "close" | "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
48
+ size?: "xl" | "l" | "m" | "s" | 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" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
56
- size?: "s" | "m" | "l" | "xl" | undefined;
55
+ icon?: "close" | "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
56
+ size?: "xl" | "l" | "m" | "s" | 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" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
64
- size?: "s" | "m" | "l" | "xl" | undefined;
63
+ icon?: "close" | "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
64
+ size?: "xl" | "l" | "m" | "s" | 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" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
72
- size?: "s" | "m" | "l" | "xl" | undefined;
71
+ icon?: "close" | "angle-down" | "arrow-circle-right" | "arrow-left" | "arrow-right" | "bars" | "bell" | "calendar" | "calendar-slash" | "check-circle" | "check-square" | "clipboad-notes" | "close-square" | "comment-dots" | "create-dashboard" | "dice-five" | "dice-one" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "exit" | "eye" | "facebook" | "heart" | "heart-alt" | "home" | "hour-glass" | "image-edit" | "instagram" | "linkedin" | "lock" | "minus" | "phone" | "plus" | "points-circle" | "process" | "question-circle" | "redo" | "rocket" | "setting" | "user" | "user-circle" | "user-plus" | "users" | undefined;
72
+ size?: "xl" | "l" | "m" | "s" | 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" | "m" | "l" | "xl" | "xxl" | undefined;
6
+ size?: "xl" | "l" | "m" | "s" | "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" | "m" | "l" | "xl" | "xxl" | undefined;
17
+ size?: "xl" | "l" | "m" | "s" | "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" | "m" | "l" | "xl" | "xxl" | undefined;
27
+ size?: "xl" | "l" | "m" | "s" | "xxl" | undefined;
28
28
  } & {
29
29
  children?: import("react").ReactNode;
30
30
  }> & {
@@ -1,7 +1,8 @@
1
+ import { FieldProps } from 'formik';
1
2
  import React from 'react';
2
3
  import { ValidationType } from '../../../types/validation';
3
- export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
4
+ export declare type TextAreaProps = Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> & FieldProps & {
4
5
  validationType?: ValidationType;
5
6
  size?: "xl" | "l" | "m" | "s";
6
- }
7
+ };
7
8
  export declare const TextArea: React.FC<TextAreaProps>;
@@ -8,3 +8,4 @@ export { Radio } from './Radio';
8
8
  export { Profile } from './Profile';
9
9
  export { Tile } from './Tile';
10
10
  export { Switch } from './Switch';
11
+ export { IconButton } from './IconButton';
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ export interface CommentProps {
3
+ avatar: {
4
+ src: string;
5
+ alt: string;
6
+ };
7
+ body: string;
8
+ author: string;
9
+ createdAt: Date;
10
+ }
11
+ export declare const Comment: React.FC<CommentProps>;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory, ComponentMeta } from "@storybook/react";
3
+ declare const _default: ComponentMeta<import("react").FC<import("./Comment").CommentProps>>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<import("react").FC<import("./Comment").CommentProps>>;
@@ -0,0 +1 @@
1
+ export { Comment } from './Comment';
@@ -3,3 +3,4 @@ export { Setting } from './Setting';
3
3
  export { Modal } from './Modal';
4
4
  export { Select } from './Select';
5
5
  export { Table } from './Table';
6
+ export { Comment } from './Comment';
@@ -1,4 +1,4 @@
1
- export { Alert, Avatar, Card, Divider, DateTime, Icon, Nav, Pill, Typography, Spinner, Chip, Dot, Gradient, } from './components/atoms';
2
- export { InfoCard, Input, TextArea, Button, Checkbox, Dropdown, Profile, Radio, Tile, Switch, } from './components/molecules';
3
- export { Menu, Setting, Modal, Select, Table } from './components/organisms';
4
- export { GlobalStyles as IntegrigoUI, Color } from './styles';
1
+ export { Alert, Avatar, Card, Divider, DateTime, Icon, Nav, Pill, Typography, Spinner, Chip, Dot, Gradient, } from "./components/atoms";
2
+ export { InfoCard, Input, TextArea, Button, Checkbox, Dropdown, Profile, Radio, Tile, Switch, IconButton, } from "./components/molecules";
3
+ export { Menu, Setting, Modal, Select, Table, Comment, } from "./components/organisms";
4
+ export { GlobalStyles as IntegrigoUI, Color } from "./styles";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://npm.pkg.github.com/integrigo"
5
5
  },
6
- "version": "1.6.18c",
6
+ "version": "1.6.18e",
7
7
  "main": "lib/index.js",
8
8
  "module": "lib/index.esm.js",
9
9
  "types": "lib/index.d.ts",
@@ -2,6 +2,7 @@ import React, { Suspense } from "react";
2
2
  import { Color } from "../../../styles";
3
3
 
4
4
  import AngleDown from "./icons/AngleDown";
5
+ import ArrowCircleRight from "./icons/ArrowCircleRight";
5
6
  import ArrowLeft from "./icons/ArrowLeft";
6
7
  import ArrowRight from "./icons/ArrowRight";
7
8
  import Bars from "./icons/Bars";
@@ -50,6 +51,7 @@ import Users from "./icons/Users";
50
51
 
51
52
  export const iconHashMap = {
52
53
  "angle-down": AngleDown,
54
+ "arrow-circle-right": ArrowCircleRight,
53
55
  "arrow-left": ArrowLeft,
54
56
  "arrow-right": ArrowRight,
55
57
  bars: Bars,
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+
3
+ const ArrowCircleRight: React.FCS = (props) => (
4
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" {...props}>
5
+ <path d="M15.71 12.71C15.801 12.6149 15.8724 12.5027 15.92 12.38C16.02 12.1365 16.02 11.8635 15.92 11.62C15.8724 11.4972 15.801 11.3851 15.71 11.29L12.71 8.29C12.5217 8.10169 12.2663 7.9959 12 7.9959C11.7337 7.9959 11.4783 8.10169 11.29 8.29C11.1017 8.4783 10.9959 8.7337 10.9959 9C10.9959 9.2663 11.1017 9.52169 11.29 9.71L12.59 11H9C8.73479 11 8.48043 11.1054 8.2929 11.2929C8.10536 11.4804 8 11.7348 8 12C8 12.2652 8.10536 12.5196 8.2929 12.7071C8.48043 12.8946 8.73479 13 9 13H12.59L11.29 14.29C11.1963 14.383 11.1219 14.4936 11.0711 14.6154C11.0203 14.7373 10.9942 14.868 10.9942 15C10.9942 15.132 11.0203 15.2627 11.0711 15.3846C11.1219 15.5064 11.1963 15.617 11.29 15.71C11.383 15.8037 11.4936 15.8781 11.6154 15.9289C11.7373 15.9797 11.868 16.0058 12 16.0058C12.132 16.0058 12.2627 15.9797 12.3846 15.9289C12.5064 15.8781 12.617 15.8037 12.71 15.71L15.71 12.71ZM22 12C22 10.0222 21.4135 8.08879 20.3147 6.44429C19.2159 4.7998 17.6541 3.51808 15.8268 2.7612C13.9996 2.00433 11.9889 1.80629 10.0491 2.19214C8.10929 2.578 6.32746 3.5304 4.92894 4.92893C3.53041 6.32745 2.578 8.10928 2.19215 10.0491C1.8063 11.9889 2.00433 13.9996 2.76121 15.8268C3.51809 17.6541 4.79981 19.2159 6.4443 20.3147C8.08879 21.4135 10.0222 22 12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12ZM4 12C4 10.4177 4.4692 8.87103 5.34825 7.55543C6.2273 6.23984 7.47673 5.21446 8.93854 4.60896C10.4003 4.00346 12.0089 3.84503 13.5607 4.15371C15.1126 4.4624 16.538 5.22432 17.6569 6.34314C18.7757 7.46196 19.5376 8.88743 19.8463 10.4393C20.155 11.9911 19.9965 13.5997 19.391 15.0615C18.7855 16.5233 17.7602 17.7727 16.4446 18.6518C15.129 19.5308 13.5823 20 12 20C9.87827 20 7.84344 19.1571 6.34315 17.6569C4.84286 16.1566 4 14.1217 4 12Z" />
6
+ </svg>
7
+ );
8
+
9
+ export default ArrowCircleRight;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { ComponentStory, ComponentMeta } from "@storybook/react";
3
+
4
+ import { IconButton } from "./IconButton";
5
+
6
+ export default {
7
+ title: "Molecules/IconButton",
8
+ component: IconButton,
9
+ } as ComponentMeta<typeof IconButton>;
10
+
11
+ const Template: ComponentStory<typeof IconButton> = (args) => (
12
+ <IconButton {...args} />
13
+ );
14
+
15
+ export const Basic = Template.bind({});
16
+ Basic.args = {
17
+ icon: 'arrow-circle-right'
18
+ };
@@ -0,0 +1,60 @@
1
+ import React from "react";
2
+ import styled from "styled-components";
3
+ import { Color } from "../../../styles";
4
+ import { Icon } from "../../atoms";
5
+ import { IconType } from "../../atoms/Icon";
6
+
7
+ export interface IconButtonProps
8
+ extends React.ButtonHTMLAttributes<HTMLButtonElement> {
9
+ size?: "m" | "l";
10
+ icon: IconType;
11
+ }
12
+
13
+ const sizeVariant = {
14
+ m: 36,
15
+ l: 48,
16
+ };
17
+
18
+ export const IconButton: React.FC<IconButtonProps> = ({
19
+ size = "m",
20
+ icon,
21
+ ...props
22
+ }) => {
23
+ const iconSize = (5 / 9) * sizeVariant[size];
24
+
25
+ return (
26
+ <Root size={size} {...props}>
27
+ <Icon
28
+ type={icon}
29
+ width={iconSize}
30
+ height={iconSize}
31
+ fill={Color.Orange}
32
+ />
33
+ </Root>
34
+ );
35
+ };
36
+
37
+ const Root = styled.button<{ size: "m" | "l" }>`
38
+ border: none;
39
+ display: flex;
40
+ cursor: pointer;
41
+ align-items: center;
42
+ justify-content: center;
43
+ width: ${(p) => sizeVariant[p.size]}px;
44
+ height: ${(p) => sizeVariant[p.size]}px;
45
+ border-radius: calc(${(p) => sizeVariant[p.size]}px / 2);
46
+ background-color: var(--color-ecru);
47
+ transition: background-color var(--transition-speed);
48
+
49
+ & svg {
50
+ transition: fill var(--transition-speed);
51
+ }
52
+
53
+ &:hover {
54
+ background-color: var(--color-orange);
55
+
56
+ & svg {
57
+ fill: var(--color-ecru);
58
+ }
59
+ }
60
+ `;
@@ -0,0 +1 @@
1
+ export { IconButton } from "./IconButton";
@@ -1,17 +1,17 @@
1
+ import { FieldProps } from 'formik';
1
2
  import React from 'react';
2
3
  import styled from 'styled-components';
3
4
  import { getValidationTypeProps } from '../../../helpers/validation';
4
5
  import { ValidationType } from '../../../types/validation';
5
6
  import { fieldSizeVariants } from '../../atoms/Field';
6
7
 
7
- export interface TextAreaProps
8
- extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
8
+ export type TextAreaProps = Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> & FieldProps & {
9
9
  validationType?: ValidationType;
10
10
  size?: "xl" | "l" | "m" | "s";
11
11
  }
12
12
 
13
- export const TextArea: React.FC<TextAreaProps> = (props) => {
14
- return <TextAreaElement rows={4} {...props} />;
13
+ export const TextArea: React.FC<TextAreaProps> = ({ field, ...props }) => {
14
+ return <TextAreaElement rows={4} {...field} {...props} />;
15
15
  };
16
16
 
17
17
  const TextAreaElement = styled.textarea<Pick<TextAreaProps, 'validationType' | 'size'>>`
@@ -7,4 +7,5 @@ export { Dropdown } from './Dropdown';
7
7
  export { Radio } from './Radio';
8
8
  export { Profile } from './Profile';
9
9
  export { Tile } from './Tile'
10
- export { Switch } from './Switch'
10
+ export { Switch } from './Switch'
11
+ export { IconButton } from './IconButton'
@@ -0,0 +1,29 @@
1
+ import { ComponentStory, ComponentMeta } from "@storybook/react";
2
+
3
+ import { Comment } from "./Comment";
4
+
5
+ export default {
6
+ title: "Organisms/Comment",
7
+ component: Comment,
8
+ argTypes: {
9
+ show: {
10
+ control: "boolean",
11
+ defaultValue: true,
12
+ },
13
+ },
14
+ } as ComponentMeta<typeof Comment>;
15
+
16
+ const Template: ComponentStory<typeof Comment> = (args) => (
17
+ <Comment {...args} />
18
+ );
19
+
20
+ export const Basic = Template.bind({});
21
+ Basic.args = {
22
+ avatar: {
23
+ src: "https://img.freepik.com/darmowe-zdjecie/dosc-usmiechnieta-radosnie-kobieta-o-jasnych-wlosach-ubrana-swobodnie-wygladajaca-z-zadowoleniem_176420-15187.jpg?w=1380&t=st=1660198496~exp=1660199096~hmac=7401572065d2cd7bb67d9f43dbde5c116b90aad419b179fffac1196df24869f2",
24
+ alt: "Jane Doe",
25
+ },
26
+ body: "Comment body goes here!",
27
+ author: "Jane Doe",
28
+ createdAt: new Date(),
29
+ };