@integrigo/integrigo-ui 1.6.17 → 1.6.18

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 (79) hide show
  1. package/jest.config.js +1 -1
  2. package/lib/index.d.ts +2 -0
  3. package/lib/index.esm.js +1 -1
  4. package/lib/index.esm.js.map +1 -1
  5. package/lib/index.js +1 -1
  6. package/lib/index.js.map +1 -1
  7. package/lib/src/components/atoms/Chip/Chip.d.ts +5 -4
  8. package/lib/src/components/atoms/Chip/Chip.stories.d.ts +3 -3
  9. package/lib/src/components/atoms/Dot/Dot.stories.d.ts +3 -3
  10. package/lib/src/components/atoms/Icon/Icon.d.ts +11 -1
  11. package/lib/src/components/atoms/Icon/Icon.stories.d.ts +2 -2
  12. package/lib/src/components/atoms/Icon/IconAddition.d.ts +5 -5
  13. package/lib/src/components/atoms/Icon/icons/Calendar.d.ts +3 -0
  14. package/lib/src/components/atoms/Icon/icons/CloseSquare.d.ts +3 -0
  15. package/lib/src/components/atoms/Icon/icons/CommentDots.d.ts +3 -0
  16. package/lib/src/components/atoms/Icon/icons/DiceOne.d.ts +3 -0
  17. package/lib/src/components/atoms/Icon/icons/Eye.d.ts +3 -0
  18. package/lib/src/components/atoms/Icon/icons/Heart.d.ts +3 -0
  19. package/lib/src/components/atoms/Icon/icons/HeartAlt.d.ts +3 -0
  20. package/lib/src/components/atoms/Icon/icons/HourGlass.d.ts +3 -0
  21. package/lib/src/components/atoms/Icon/icons/QuestionCircle.d.ts +3 -0
  22. package/lib/src/components/atoms/Icon/icons/Rocket.d.ts +3 -0
  23. package/lib/src/components/atoms/Icon/icons/Search.d.ts +3 -0
  24. package/lib/src/components/atoms/Typography/Hero.d.ts +1 -1
  25. package/lib/src/components/atoms/index.d.ts +1 -0
  26. package/lib/src/components/molecules/Checkbox/Checkbox.stories.d.ts +4 -4
  27. package/lib/src/components/molecules/Input/Input.d.ts +8 -8
  28. package/lib/src/components/molecules/Input/Input.stories.d.ts +9 -9
  29. package/lib/src/components/molecules/Radio/Radio.stories.d.ts +4 -4
  30. package/lib/src/components/molecules/Switch/Switch.d.ts +13 -0
  31. package/lib/src/components/molecules/Switch/Switch.stories.d.ts +7 -0
  32. package/lib/src/components/molecules/Switch/index.d.ts +1 -0
  33. package/lib/src/components/molecules/index.d.ts +1 -0
  34. package/lib/src/components/organisms/Modal/Divider.d.ts +2 -0
  35. package/lib/src/components/organisms/Modal/Modal.d.ts +5 -1
  36. package/lib/src/components/organisms/Modal/Modal.stories.d.ts +2 -2
  37. package/lib/src/components/organisms/Table/Table.d.ts +12 -0
  38. package/lib/src/components/organisms/Table/Table.stories.d.ts +7 -0
  39. package/lib/src/components/organisms/Table/Table.test.d.ts +1 -0
  40. package/lib/src/components/organisms/Table/index.d.ts +1 -0
  41. package/lib/src/components/organisms/index.d.ts +1 -0
  42. package/lib/src/index.d.ts +4 -4
  43. package/package.json +7 -6
  44. package/src/components/atoms/Chip/Chip.stories.tsx +6 -8
  45. package/src/components/atoms/Chip/Chip.tsx +28 -17
  46. package/src/components/atoms/Icon/Icon.tsx +21 -1
  47. package/src/components/atoms/Icon/IconAddition.tsx +22 -20
  48. package/src/components/atoms/Icon/icons/Calendar.tsx +9 -0
  49. package/src/components/atoms/Icon/icons/CloseSquare.tsx +9 -0
  50. package/src/components/atoms/Icon/icons/CommentDots.tsx +9 -0
  51. package/src/components/atoms/Icon/icons/DiceOne.tsx +9 -0
  52. package/src/components/atoms/Icon/icons/Eye.tsx +9 -0
  53. package/src/components/atoms/Icon/icons/Heart.tsx +9 -0
  54. package/src/components/atoms/Icon/icons/HeartAlt.tsx +9 -0
  55. package/src/components/atoms/Icon/icons/HourGlass.tsx +9 -0
  56. package/src/components/atoms/Icon/icons/QuestionCircle.tsx +9 -0
  57. package/src/components/atoms/Icon/icons/Rocket.tsx +9 -0
  58. package/src/components/atoms/Icon/icons/Search.tsx +9 -0
  59. package/src/components/atoms/Typography/Hero.tsx +3 -2
  60. package/src/components/atoms/index.ts +1 -0
  61. package/src/components/molecules/Button/BasicButton.tsx +2 -1
  62. package/src/components/molecules/Button/Button.tsx +5 -4
  63. package/src/components/molecules/Input/Input.tsx +51 -47
  64. package/src/components/molecules/Profile/Profile.tsx +2 -2
  65. package/src/components/molecules/Switch/Switch.stories.tsx +39 -0
  66. package/src/components/molecules/Switch/Switch.tsx +94 -0
  67. package/src/components/molecules/Switch/index.ts +1 -0
  68. package/src/components/molecules/index.ts +1 -0
  69. package/src/components/organisms/Modal/Divider.tsx +13 -0
  70. package/src/components/organisms/Modal/Modal.stories.tsx +2 -0
  71. package/src/components/organisms/Modal/Modal.tsx +9 -6
  72. package/src/components/organisms/Table/Table.stories.tsx +180 -0
  73. package/src/components/organisms/Table/Table.test.tsx +82 -0
  74. package/src/components/organisms/Table/Table.tsx +162 -0
  75. package/src/components/organisms/Table/__snapshots__/Table.test.tsx.snap +101 -0
  76. package/src/components/organisms/Table/index.ts +1 -0
  77. package/src/components/organisms/index.ts +3 -2
  78. package/src/index.ts +6 -4
  79. package/src/styles/global.ts +7 -1
@@ -1,13 +1,14 @@
1
- import { MouseEvent, FC } from "react";
1
+ import { MouseEvent } from "react";
2
2
  import { IconType } from "../Icon";
3
3
  declare type OnClickFunctionType = (e: MouseEvent<HTMLDivElement>) => void;
4
4
  export interface ChipProps {
5
5
  iconLeft?: IconType;
6
6
  iconRight?: IconType;
7
- size?: 's' | 'm' | 'l' | 'xl';
7
+ iconColor?: string;
8
+ size?: "s" | "m" | "l" | "xl";
8
9
  label: React.ReactNode;
9
- variant?: 'transparent' | 'white' | 'primary' | 'secondary' | 'grey';
10
+ variant?: "transparent" | "white" | "primary" | "secondary" | "grey";
10
11
  onClick?: OnClickFunctionType;
11
12
  }
12
- export declare const Chip: FC<ChipProps>;
13
+ export declare const Chip: React.FCS<ChipProps>;
13
14
  export {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ComponentMeta, ComponentStory } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FC<import("./Chip").ChipProps>>;
3
+ declare const _default: ComponentMeta<React.FCS<import("./Chip").ChipProps>>;
4
4
  export default _default;
5
- export declare const Basic: ComponentStory<React.FC<import("./Chip").ChipProps>>;
6
- export declare const Clickable: ComponentStory<React.FC<import("./Chip").ChipProps>>;
5
+ export declare const Basic: ComponentStory<React.FCS<import("./Chip").ChipProps>>;
6
+ export declare const Clickable: ComponentStory<React.FCS<import("./Chip").ChipProps>>;
@@ -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-slash" | "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
+ 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";
6
6
  size?: "big" | "small" | "ultra-small" | "medium" | {
7
7
  width: number;
8
8
  height: number;
@@ -16,7 +16,7 @@ declare const _default: ComponentMeta<import("react").FCS<{
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-slash" | "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";
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";
20
20
  size?: "big" | "small" | "ultra-small" | "medium" | {
21
21
  width: number;
22
22
  height: number;
@@ -29,7 +29,7 @@ export declare const Icon: ComponentStory<import("react").FCS<{
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-slash" | "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";
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";
33
33
  size?: "big" | "small" | "ultra-small" | "medium" | {
34
34
  width: number;
35
35
  height: number;
@@ -5,13 +5,17 @@ export declare const iconHashMap: {
5
5
  "arrow-right": React.FCS<{}>;
6
6
  bars: React.FCS<{}>;
7
7
  bell: React.FCS<{}>;
8
+ calendar: React.FCS<{}>;
8
9
  "calendar-slash": React.FCS<{}>;
9
10
  "check-circle": React.FCS<{}>;
10
11
  "check-square": React.FCS<{}>;
11
12
  "clipboad-notes": React.FCS<{}>;
12
13
  close: React.FCS<{}>;
14
+ "close-square": React.FCS<{}>;
15
+ "comment-dots": React.FCS<{}>;
13
16
  "create-dashboard": React.FCS<{}>;
14
17
  "dice-five": React.FCS<{}>;
18
+ "dice-one": React.FCS<{}>;
15
19
  edit: React.FCS<{}>;
16
20
  "ellipsis-horizontal": React.FCS<{}>;
17
21
  "ellipsis-vertical": React.FCS<{}>;
@@ -19,8 +23,12 @@ export declare const iconHashMap: {
19
23
  "exclamation-circle": React.FCS<{}>;
20
24
  "exclamation-triangle": React.FCS<{}>;
21
25
  exit: React.FCS<{}>;
26
+ eye: React.FCS<{}>;
22
27
  facebook: React.FCS<{}>;
28
+ heart: React.FCS<{}>;
29
+ "heart-alt": React.FCS<{}>;
23
30
  home: React.FCS<{}>;
31
+ "hour-glass": React.FCS<{}>;
24
32
  "image-edit": React.FCS<{}>;
25
33
  instagram: React.FCS<{}>;
26
34
  linkedin: React.FCS<{}>;
@@ -28,9 +36,11 @@ export declare const iconHashMap: {
28
36
  minus: React.FCS<{}>;
29
37
  phone: React.FCS<{}>;
30
38
  plus: React.FCS<{}>;
31
- process: React.FCS<{}>;
32
39
  "points-circle": React.FCS<{}>;
40
+ process: React.FCS<{}>;
41
+ "question-circle": React.FCS<{}>;
33
42
  redo: React.FCS<{}>;
43
+ rocket: React.FCS<{}>;
34
44
  setting: React.FCS<{}>;
35
45
  user: React.FCS<{}>;
36
46
  "user-circle": 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-slash" | "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";
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";
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-slash" | "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";
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";
13
13
  size?: "big" | "small" | "ultra-small" | "medium" | {
14
14
  width: number;
15
15
  height: number;
@@ -1,11 +1,11 @@
1
- import React from 'react';
2
- import { IconType } from './Icon';
1
+ import React from "react";
2
+ import { IconType } from "./Icon";
3
3
  interface IconAdditionProps {
4
4
  disabled?: boolean;
5
5
  icon?: IconType;
6
- direction?: 'rtl' | 'ltr';
7
- colorVariant?: 'grey' | 'white' | 'ghost';
8
- size?: 'xl' | 'l' | 'm' | 's';
6
+ direction?: "rtl" | "ltr";
7
+ colorVariant?: "grey" | "white" | "ghost";
8
+ size?: "xl" | "l" | "m" | "s";
9
9
  onClick?: () => void;
10
10
  }
11
11
  export declare const IconAddition: React.FC<IconAdditionProps>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const Calendar: React.FCS;
3
+ export default Calendar;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const CloseSquare: React.FCS;
3
+ export default CloseSquare;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const CommentDots: React.FCS;
3
+ export default CommentDots;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const DiceOne: React.FCS;
3
+ export default DiceOne;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const Eye: React.FCS;
3
+ export default Eye;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const Heart: React.FCS;
3
+ export default Heart;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const HeartAlt: React.FCS;
3
+ export default HeartAlt;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const HourGlass: React.FCS;
3
+ export default HourGlass;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const QuestionCircle: React.FCS;
3
+ export default QuestionCircle;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const Rocket: React.FCS;
3
+ export default Rocket;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const Search: React.FCS;
3
+ export default Search;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  export interface HeroProps {
3
- size?: 's' | 'm' | 'l' | 'xl' | 'xxl';
3
+ size?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
4
4
  }
5
5
  export declare const Hero: React.FCS<HeroProps>;
@@ -2,6 +2,7 @@ export { Alert } from "./Alert";
2
2
  export { Avatar } from "./Avatar";
3
3
  export { Card } from "./Card";
4
4
  export { Divider } from "./Divider";
5
+ export { DateTime } from "./DateTime";
5
6
  export { Icon } from "./Icon";
6
7
  export { Pill } from "./Pill";
7
8
  export { Typography } from "./Typography";
@@ -1,19 +1,19 @@
1
1
  import React from 'react';
2
2
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
3
+ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
4
4
  size?: "s" | "m" | "l" | "xl" | undefined;
5
5
  label?: string | undefined;
6
6
  } & React.RefAttributes<HTMLInputElement>>>;
7
7
  export default _default;
8
- export declare const Basic: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
8
+ export declare const Basic: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
9
9
  size?: "s" | "m" | "l" | "xl" | undefined;
10
10
  label?: string | undefined;
11
11
  } & React.RefAttributes<HTMLInputElement>>>;
12
- export declare const Controlled: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
12
+ export declare const Controlled: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
13
13
  size?: "s" | "m" | "l" | "xl" | undefined;
14
14
  label?: string | undefined;
15
15
  } & React.RefAttributes<HTMLInputElement>>>;
16
- export declare const WithLabel: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
16
+ export declare const WithLabel: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
17
17
  size?: "s" | "m" | "l" | "xl" | undefined;
18
18
  label?: string | undefined;
19
19
  } & React.RefAttributes<HTMLInputElement>>>;
@@ -1,19 +1,19 @@
1
- import React from 'react';
2
- import { FieldProps } from 'formik';
3
- import { ValidationType } from '../../../types/validation';
4
- import { IconType } from '../../atoms/Icon';
5
- export declare type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> & FieldProps & {
1
+ import React from "react";
2
+ import { FieldProps } from "formik";
3
+ import { ValidationType } from "../../../types/validation";
4
+ import { IconType } from "../../atoms/Icon";
5
+ export declare type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & FieldProps & {
6
6
  label?: string;
7
7
  validationType?: ValidationType;
8
8
  icon?: IconType;
9
- size?: 'xl' | 'l' | 'm' | 's';
10
- direction?: 'ltr' | 'rtl';
9
+ size?: "xl" | "l" | "m" | "s";
10
+ direction?: "ltr" | "rtl";
11
11
  onIconClick?: () => void;
12
12
  };
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-slash" | "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;
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;
17
17
  size?: "xl" | "l" | "m" | "s" | undefined;
18
18
  direction?: "ltr" | "rtl" | undefined;
19
19
  onIconClick?: (() => void) | undefined;
@@ -3,7 +3,7 @@ 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-slash" | "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;
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
7
  size?: "s" | "m" | "l" | "xl" | undefined;
8
8
  direction?: "rtl" | "ltr" | undefined;
9
9
  onIconClick?: (() => void) | undefined;
@@ -12,7 +12,7 @@ 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-slash" | "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;
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
16
  size?: "s" | "m" | "l" | "xl" | undefined;
17
17
  direction?: "rtl" | "ltr" | undefined;
18
18
  onIconClick?: (() => void) | undefined;
@@ -20,7 +20,7 @@ export declare const Basic: ComponentStory<React.ForwardRefExoticComponent<Omit<
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-slash" | "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;
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
24
  size?: "s" | "m" | "l" | "xl" | undefined;
25
25
  direction?: "rtl" | "ltr" | undefined;
26
26
  onIconClick?: (() => void) | undefined;
@@ -28,7 +28,7 @@ export declare const Success: ComponentStory<React.ForwardRefExoticComponent<Omi
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-slash" | "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;
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
32
  size?: "s" | "m" | "l" | "xl" | undefined;
33
33
  direction?: "rtl" | "ltr" | undefined;
34
34
  onIconClick?: (() => void) | undefined;
@@ -36,7 +36,7 @@ export declare const Error: ComponentStory<React.ForwardRefExoticComponent<Omit<
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-slash" | "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;
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
40
  size?: "s" | "m" | "l" | "xl" | undefined;
41
41
  direction?: "rtl" | "ltr" | undefined;
42
42
  onIconClick?: (() => void) | undefined;
@@ -44,7 +44,7 @@ export declare const Disabled: ComponentStory<React.ForwardRefExoticComponent<Om
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-slash" | "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;
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
48
  size?: "s" | "m" | "l" | "xl" | undefined;
49
49
  direction?: "rtl" | "ltr" | undefined;
50
50
  onIconClick?: (() => void) | undefined;
@@ -52,7 +52,7 @@ export declare const IconLTR: ComponentStory<React.ForwardRefExoticComponent<Omi
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-slash" | "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;
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
56
  size?: "s" | "m" | "l" | "xl" | undefined;
57
57
  direction?: "rtl" | "ltr" | undefined;
58
58
  onIconClick?: (() => void) | undefined;
@@ -60,7 +60,7 @@ export declare const IconRTL: ComponentStory<React.ForwardRefExoticComponent<Omi
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-slash" | "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;
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
64
  size?: "s" | "m" | "l" | "xl" | undefined;
65
65
  direction?: "rtl" | "ltr" | undefined;
66
66
  onIconClick?: (() => void) | undefined;
@@ -68,7 +68,7 @@ export declare const DisabledIcon: ComponentStory<React.ForwardRefExoticComponen
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-slash" | "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;
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
72
  size?: "s" | "m" | "l" | "xl" | undefined;
73
73
  direction?: "rtl" | "ltr" | undefined;
74
74
  onIconClick?: (() => void) | undefined;
@@ -1,20 +1,20 @@
1
1
  import React from 'react';
2
2
  import { ComponentMeta, ComponentStory } from '@storybook/react';
3
3
  import { Size } from './Radio';
4
- declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
4
+ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
5
5
  size?: Size | undefined;
6
6
  label?: string | undefined;
7
7
  } & React.RefAttributes<HTMLInputElement>>>;
8
8
  export default _default;
9
- export declare const Basic: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
9
+ export declare const Basic: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
10
10
  size?: Size | undefined;
11
11
  label?: string | undefined;
12
12
  } & React.RefAttributes<HTMLInputElement>>>;
13
- export declare const Controlled: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
13
+ export declare const Controlled: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
14
14
  size?: Size | undefined;
15
15
  label?: string | undefined;
16
16
  } & React.RefAttributes<HTMLInputElement>>>;
17
- export declare const WithLabel: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
17
+ export declare const WithLabel: ComponentStory<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
18
18
  size?: Size | undefined;
19
19
  label?: string | undefined;
20
20
  } & React.RefAttributes<HTMLInputElement>>>;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ interface SwitchOption {
3
+ id: string;
4
+ name: string;
5
+ disabled?: boolean;
6
+ }
7
+ export interface SwitchProps {
8
+ options: [SwitchOption, SwitchOption] | [SwitchOption, SwitchOption, SwitchOption];
9
+ active?: SwitchOption["id"];
10
+ onClick: (id: SwitchOption["id"]) => void;
11
+ }
12
+ export declare const Switch: React.FC<SwitchProps>;
13
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory, ComponentMeta } from "@storybook/react";
3
+ declare const _default: ComponentMeta<import("react").FC<import("./Switch").SwitchProps>>;
4
+ export default _default;
5
+ export declare const TwoOptions: ComponentStory<import("react").FC<import("./Switch").SwitchProps>>;
6
+ export declare const ThreeOptions: ComponentStory<import("react").FC<import("./Switch").SwitchProps>>;
7
+ export declare const ThreeWithDisabled: ComponentStory<import("react").FC<import("./Switch").SwitchProps>>;
@@ -0,0 +1 @@
1
+ export { Switch } from './Switch';
@@ -7,3 +7,4 @@ 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';
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const Divider: React.FC;
@@ -1,6 +1,10 @@
1
1
  import React, { PropsWithChildren } from "react";
2
+ import { Divider } from "./Divider";
3
+ export interface ModalStaticProps {
4
+ Divider: typeof Divider;
5
+ }
2
6
  export interface ModalProps {
3
7
  show: boolean;
4
8
  onClose: () => void;
5
9
  }
6
- export declare const Modal: React.FCS<PropsWithChildren<ModalProps>>;
10
+ export declare const Modal: React.FCS<PropsWithChildren<ModalProps>> & ModalStaticProps;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentStory, ComponentMeta } from "@storybook/react";
3
- declare const _default: ComponentMeta<import("react").FCS<import("react").PropsWithChildren<import("./Modal").ModalProps>>>;
3
+ declare const _default: ComponentMeta<import("react").FCS<import("react").PropsWithChildren<import("./Modal").ModalProps>> & import("./Modal").ModalStaticProps>;
4
4
  export default _default;
5
- export declare const Basic: ComponentStory<import("react").FCS<import("react").PropsWithChildren<import("./Modal").ModalProps>>>;
5
+ export declare const Basic: ComponentStory<import("react").FCS<import("react").PropsWithChildren<import("./Modal").ModalProps>> & import("./Modal").ModalStaticProps>;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { Column } from '@tanstack/react-table';
3
+ declare type Variant = 'primary' | 'secondary';
4
+ declare type Alignment = 'left' | 'right' | 'center';
5
+ export interface Props<T extends Record<string, unknown>> extends React.TableHTMLAttributes<HTMLTableElement> {
6
+ data: T[];
7
+ columns: Column<T>[];
8
+ variant?: Variant;
9
+ textAlign?: Alignment;
10
+ }
11
+ export declare const Table: <T extends Record<string, unknown>>({ data, columns, variant, textAlign, ...props }: Props<T>) => JSX.Element;
12
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { Table } from './Table';
3
+ import { ComponentMeta, ComponentStory } from '@storybook/react';
4
+ declare const _default: ComponentMeta<(<T extends Record<string, unknown>>({ data, columns, variant, textAlign, ...props }: import("./Table").Props<T>) => JSX.Element)>;
5
+ export default _default;
6
+ export declare const Primary: ComponentStory<typeof Table>;
7
+ export declare const WithProfile: ComponentStory<typeof Table>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { Table } from './Table';
@@ -2,3 +2,4 @@ export { Menu } from './Menu';
2
2
  export { Setting } from './Setting';
3
3
  export { Modal } from './Modal';
4
4
  export { Select } from './Select';
5
+ export { Table } from './Table';
@@ -1,4 +1,4 @@
1
- export { Alert, Avatar, Card, Divider, Icon, Nav, Pill, Typography, Spinner, Chip, Dot, Gradient, } from "./components/atoms";
2
- export { InfoCard, Input, TextArea, Button, Checkbox, Dropdown, Profile, Radio, Tile, } from "./components/molecules";
3
- export { Menu, Setting, Modal, Select } 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, } from './components/molecules';
3
+ export { Menu, Setting, Modal, Select, Table } 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.17",
6
+ "version": "1.6.18",
7
7
  "main": "lib/index.js",
8
8
  "module": "lib/index.esm.js",
9
9
  "types": "lib/index.d.ts",
@@ -14,11 +14,11 @@
14
14
  "@babel/preset-typescript": "^7.18.6",
15
15
  "@rollup/plugin-commonjs": "^21.0.2",
16
16
  "@rollup/plugin-node-resolve": "^13.1.3",
17
- "@storybook/addon-actions": "^6.5.10",
18
- "@storybook/addon-essentials": "^6.5.10",
19
- "@storybook/addon-interactions": "^6.5.10",
20
- "@storybook/addon-links": "^6.5.10",
21
- "@storybook/react": "^6.5.10",
17
+ "@storybook/addon-actions": "^6.5.12",
18
+ "@storybook/addon-essentials": "^6.5.12",
19
+ "@storybook/addon-interactions": "^6.5.12",
20
+ "@storybook/addon-links": "^6.5.12",
21
+ "@storybook/react": "^6.5.12",
22
22
  "@storybook/testing-library": "^0.0.13",
23
23
  "@testing-library/jest-dom": "^5.16.4",
24
24
  "@testing-library/react": "^13.3.0",
@@ -55,6 +55,7 @@
55
55
  "typescript": "^4.7.4"
56
56
  },
57
57
  "dependencies": {
58
+ "@tanstack/react-table": "8.5.13",
58
59
  "formik": "^2.2.9"
59
60
  },
60
61
  "peerDependencies": {