@integrigo/integrigo-ui 1.3.9 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/lib/components/atoms/Button/BasicButton.d.ts +6 -0
  2. package/lib/components/atoms/Button/Button.d.ts +8 -3
  3. package/lib/components/atoms/Button/Ghost.d.ts +6 -0
  4. package/lib/components/atoms/Button/Primary.d.ts +4 -0
  5. package/lib/components/atoms/Icon/Icon.d.ts +19 -8
  6. package/lib/components/atoms/Icon/IconAddition.d.ts +11 -0
  7. package/lib/components/atoms/Icon/icons/Bars.d.ts +1 -2
  8. package/lib/components/atoms/Icon/icons/Envelope.d.ts +1 -2
  9. package/lib/components/atoms/Icon/icons/Facebook.d.ts +1 -2
  10. package/lib/components/atoms/Icon/icons/Instagram.d.ts +1 -2
  11. package/lib/components/atoms/Icon/icons/Linkedin.d.ts +1 -2
  12. package/lib/components/atoms/Icon/icons/Minus.d.ts +1 -2
  13. package/lib/components/atoms/Icon/icons/Phone.d.ts +1 -2
  14. package/lib/components/atoms/Icon/icons/Plus.d.ts +1 -2
  15. package/lib/components/atoms/Icon/icons/UserCircle.d.ts +3 -0
  16. package/lib/components/atoms/Icon/index.d.ts +2 -0
  17. package/lib/components/atoms/index.d.ts +0 -2
  18. package/lib/components/molecules/Button/BasicButton.d.ts +6 -0
  19. package/lib/components/molecules/Button/Button.d.ts +12 -0
  20. package/lib/components/molecules/Button/Ghost.d.ts +6 -0
  21. package/lib/components/molecules/Button/Primary.d.ts +4 -0
  22. package/lib/components/molecules/Button/index.d.ts +1 -0
  23. package/lib/components/molecules/Input/Input.d.ts +17 -0
  24. package/lib/components/molecules/Input/index.d.ts +1 -0
  25. package/lib/components/molecules/TextArea/TextArea.d.ts +6 -0
  26. package/lib/components/molecules/TextArea/index.d.ts +1 -0
  27. package/lib/components/molecules/index.d.ts +4 -1
  28. package/lib/helpers/validation.d.ts +3 -0
  29. package/lib/index.d.ts +3 -3
  30. package/lib/index.esm.js +1 -1
  31. package/lib/index.esm.js.map +1 -1
  32. package/lib/index.js +1 -1
  33. package/lib/index.js.map +1 -1
  34. package/lib/styles/colors.d.ts +17 -1
  35. package/lib/styles/index.d.ts +1 -1
  36. package/lib/types/validation.d.ts +1 -0
  37. package/package.json +2 -7
@@ -0,0 +1,6 @@
1
+ import { FlattenSimpleInterpolation } from "styled-components";
2
+ export declare const getDirectionPadding: (direction?: "rtl" | "ltr" | undefined, ghost?: boolean | undefined) => FlattenSimpleInterpolation;
3
+ export declare const BasicButton: import("styled-components").StyledComponent<"button", any, {
4
+ direction?: "rtl" | "ltr" | undefined;
5
+ ghost?: boolean | undefined;
6
+ }, never>;
@@ -1,7 +1,12 @@
1
1
  import React from "react";
2
- export interface ButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
2
+ import { IconType } from "../Icon";
3
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
4
  primary?: boolean;
4
5
  ghost?: boolean;
5
- size?: "small" | "medium" | "large";
6
+ icon?: IconType;
7
+ direction?: "rtl" | "ltr";
8
+ size?: "ultra-small" | "small" | "medium" | "big";
9
+ children: string;
10
+ onIconClick?: () => void;
6
11
  }
7
- export declare const Button: import("styled-components").StyledComponent<"button", any, Omit<ButtonProps, "label">, never>;
12
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,6 @@
1
+ export declare const Ghost: import("styled-components").StyledComponent<"button", any, {
2
+ direction?: "ltr" | "rtl" | undefined;
3
+ ghost?: boolean | undefined;
4
+ } & {
5
+ direction?: "ltr" | "rtl" | undefined;
6
+ }, never>;
@@ -0,0 +1,4 @@
1
+ export declare const Primary: import("styled-components").StyledComponent<"button", any, {
2
+ direction?: "ltr" | "rtl" | undefined;
3
+ ghost?: boolean | undefined;
4
+ }, never>;
@@ -1,11 +1,22 @@
1
1
  import React from "react";
2
- import { FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
3
- declare const ICONS: string[];
4
- declare const SOCIAL_ICONS: string[];
5
- declare type IconType = typeof ICONS[number];
6
- declare type IconSocialType = typeof SOCIAL_ICONS[number];
7
- declare type IconProps = Omit<FontAwesomeIconProps, "icon"> & {
8
- icon: IconType | IconSocialType;
2
+ export declare const iconHashMap: {
3
+ bars: React.FCS<{}>;
4
+ envelope: React.FCS<{}>;
5
+ facebook: React.FCS<{}>;
6
+ instagram: React.FCS<{}>;
7
+ linkedin: React.FCS<{}>;
8
+ minus: React.FCS<{}>;
9
+ phone: React.FCS<{}>;
10
+ plus: React.FCS<{}>;
11
+ "user-circle": React.FCS<{}>;
9
12
  };
10
- export declare const Icon: React.FC<IconProps>;
13
+ export declare type IconType = keyof typeof iconHashMap;
14
+ declare type IconProps = React.SVGProps<SVGSVGElement> & {
15
+ type: IconType;
16
+ size?: "ultra-small" | "small" | "medium" | "big" | {
17
+ width: number;
18
+ height: number;
19
+ };
20
+ };
21
+ export declare const Icon: React.FCS<IconProps>;
11
22
  export {};
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { IconType } from "./Icon";
3
+ interface IconAdditionProps {
4
+ disabled?: boolean;
5
+ icon?: IconType;
6
+ direction?: "rtl" | "ltr";
7
+ colorVariant?: 'grey' | 'white' | 'ghost';
8
+ onClick?: () => void;
9
+ }
10
+ export declare const IconAddition: React.FC<IconAdditionProps>;
11
+ export {};
@@ -1,4 +1,3 @@
1
1
  import React from "react";
2
- import { FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
3
- declare const Bars: React.FC<Omit<FontAwesomeIconProps, 'icon'>>;
2
+ declare const Bars: React.FCS;
4
3
  export default Bars;
@@ -1,4 +1,3 @@
1
1
  import React from "react";
2
- import { FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
3
- declare const Envelope: React.FC<Omit<FontAwesomeIconProps, 'icon'>>;
2
+ declare const Envelope: React.FCS;
4
3
  export default Envelope;
@@ -1,4 +1,3 @@
1
1
  import React from "react";
2
- import { FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
3
- declare const Facebook: React.FC<Omit<FontAwesomeIconProps, 'icon'>>;
2
+ declare const Facebook: React.FCS;
4
3
  export default Facebook;
@@ -1,4 +1,3 @@
1
1
  import React from "react";
2
- import { FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
3
- declare const Instagram: React.FC<Omit<FontAwesomeIconProps, 'icon'>>;
2
+ declare const Instagram: React.FCS;
4
3
  export default Instagram;
@@ -1,4 +1,3 @@
1
1
  import React from "react";
2
- import { FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
3
- declare const Linkedin: React.FC<Omit<FontAwesomeIconProps, 'icon'>>;
2
+ declare const Linkedin: React.FCS;
4
3
  export default Linkedin;
@@ -1,4 +1,3 @@
1
1
  import React from "react";
2
- import { FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
3
- declare const Minus: React.FC<Omit<FontAwesomeIconProps, 'icon'>>;
2
+ declare const Minus: React.FCS;
4
3
  export default Minus;
@@ -1,4 +1,3 @@
1
1
  import React from "react";
2
- import { FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
3
- declare const Phone: React.FC<Omit<FontAwesomeIconProps, 'icon'>>;
2
+ declare const Phone: React.FCS;
4
3
  export default Phone;
@@ -1,4 +1,3 @@
1
1
  import React from "react";
2
- import { FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
3
- declare const Plus: React.FC<Omit<FontAwesomeIconProps, 'icon'>>;
2
+ declare const Plus: React.FCS;
4
3
  export default Plus;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const UserCircle: React.FCS;
3
+ export default UserCircle;
@@ -1 +1,3 @@
1
1
  export { Icon } from './Icon';
2
+ export { IconAddition } from './IconAddition';
3
+ export type { IconType } from './Icon';
@@ -1,7 +1,5 @@
1
- export { Button } from './Button';
2
1
  export { Card } from './Card';
3
2
  export { Icon } from './Icon';
4
- export { Input } from './Input';
5
3
  export { Pill } from './Pill';
6
4
  export { Typography } from './Typography';
7
5
  export { Nav } from './Nav';
@@ -0,0 +1,6 @@
1
+ import { FlattenSimpleInterpolation } from "styled-components";
2
+ export declare const getDirectionPadding: (direction?: "rtl" | "ltr" | undefined, ghost?: boolean | undefined) => FlattenSimpleInterpolation;
3
+ export declare const BasicButton: import("styled-components").StyledComponent<"button", any, {
4
+ direction?: "rtl" | "ltr" | undefined;
5
+ ghost?: boolean | undefined;
6
+ }, never>;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { IconType } from "../../atoms/Icon";
3
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ primary?: boolean;
5
+ ghost?: boolean;
6
+ icon?: IconType;
7
+ direction?: "rtl" | "ltr";
8
+ size?: "ultra-small" | "small" | "medium" | "big";
9
+ children: string;
10
+ onIconClick?: () => void;
11
+ }
12
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,6 @@
1
+ export declare const Ghost: import("styled-components").StyledComponent<"button", any, {
2
+ direction?: "ltr" | "rtl" | undefined;
3
+ ghost?: boolean | undefined;
4
+ } & {
5
+ direction?: "ltr" | "rtl" | undefined;
6
+ }, never>;
@@ -0,0 +1,4 @@
1
+ export declare const Primary: import("styled-components").StyledComponent<"button", any, {
2
+ direction?: "ltr" | "rtl" | undefined;
3
+ ghost?: boolean | undefined;
4
+ }, never>;
@@ -0,0 +1 @@
1
+ export { Button } from './Button';
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { ValidationType } from "../../../types/validation";
3
+ import { IconType } from "../../atoms/Icon";
4
+ export declare type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & {
5
+ validationType?: ValidationType;
6
+ icon?: IconType;
7
+ size?: "ultra-small" | "small" | "medium" | "big";
8
+ direction?: "ltr" | "rtl";
9
+ onIconClick?: () => void;
10
+ };
11
+ export declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & {
12
+ validationType?: ValidationType | undefined;
13
+ icon?: "bars" | "envelope" | "facebook" | "instagram" | "linkedin" | "minus" | "phone" | "plus" | "user-circle" | undefined;
14
+ size?: "ultra-small" | "small" | "medium" | "big" | undefined;
15
+ direction?: "ltr" | "rtl" | undefined;
16
+ onIconClick?: (() => void) | undefined;
17
+ } & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export { Input } from './Input';
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { ValidationType } from "../../../types/validation";
3
+ export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
4
+ validationType?: ValidationType;
5
+ }
6
+ export declare const TextArea: React.FC<TextAreaProps>;
@@ -0,0 +1 @@
1
+ export { TextArea } from './TextArea';
@@ -1 +1,4 @@
1
- export { InfoCard } from './InfoCard';
1
+ export { InfoCard } from "./InfoCard";
2
+ export { Input } from "./Input";
3
+ export { TextArea } from "./TextArea";
4
+ export { Button } from "./Button";
@@ -0,0 +1,3 @@
1
+ import { FlattenSimpleInterpolation } from "styled-components";
2
+ import { ValidationType } from "../types/validation";
3
+ export declare const getValidationTypeProps: (type?: ValidationType | undefined) => FlattenSimpleInterpolation;
package/lib/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { Button, Card, Icon, Input, Nav, Pill, Typography } from './components/atoms';
2
- export { InfoCard } from './components/molecules';
3
- export { GlobalStyles as IntegrigoUI, Color } from './styles';
1
+ export { Card, Icon, Nav, Pill, Typography } from "./components/atoms";
2
+ export { InfoCard, Input, TextArea, Button } from "./components/molecules";
3
+ export { GlobalStyles as IntegrigoUI, Color } from "./styles";