@mailstep/design-system 0.0.9 → 0.1.0

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 (183) hide show
  1. package/README.md +66 -0
  2. package/build/2b1ddee3e1b3cc7f.png +0 -0
  3. package/build/ba2267d1dea00b65.png +0 -0
  4. package/build/dts/ui/Blocks/CornerDialog/CornerDialog.d.ts +3 -0
  5. package/build/dts/ui/Blocks/CornerDialog/index.d.ts +2 -0
  6. package/build/dts/ui/Blocks/CornerDialog/stories/CornerDialog.stories.d.ts +14 -0
  7. package/build/dts/ui/Blocks/CornerDialog/styles.d.ts +12 -0
  8. package/build/dts/ui/Blocks/CornerDialog/types.d.ts +16 -0
  9. package/build/dts/ui/Blocks/CornerDialog/utils.d.ts +3 -0
  10. package/build/dts/ui/Blocks/ImageList/ImageList.d.ts +3 -0
  11. package/build/dts/ui/Blocks/ImageList/components/AddPhoto/index.d.ts +7 -0
  12. package/build/dts/ui/Blocks/ImageList/components/AddPhoto/styles.d.ts +2 -0
  13. package/build/dts/ui/Blocks/ImageList/components/CloseButton/index.d.ts +6 -0
  14. package/build/dts/ui/Blocks/ImageList/components/CloseButton/styles.d.ts +1 -0
  15. package/build/dts/ui/Blocks/ImageList/components/ImageElement/index.d.ts +9 -0
  16. package/build/dts/ui/Blocks/ImageList/components/ImageElement/styles.d.ts +2 -0
  17. package/build/dts/ui/Blocks/ImageList/components/ImageTag/index.d.ts +6 -0
  18. package/build/dts/ui/Blocks/ImageList/components/ImageTag/styles.d.ts +1 -0
  19. package/build/dts/ui/Blocks/ImageList/index.d.ts +4 -0
  20. package/build/dts/ui/Blocks/ImageList/styles.d.ts +1 -0
  21. package/build/dts/ui/Blocks/ImageList/types.d.ts +12 -0
  22. package/build/dts/ui/Blocks/LightBox/LightBox.d.ts +4 -0
  23. package/build/dts/ui/Blocks/LightBox/hooks/useLightBox.d.ts +2 -0
  24. package/build/dts/ui/Blocks/LightBox/index.d.ts +3 -0
  25. package/build/dts/ui/Blocks/LightBox/styles.d.ts +3 -0
  26. package/build/dts/ui/Blocks/LightBox/types.d.ts +24 -0
  27. package/build/dts/ui/Blocks/Modal/Modal.d.ts +3 -0
  28. package/build/dts/ui/Blocks/Modal/hooks/useClickOutside.d.ts +3 -0
  29. package/build/dts/ui/Blocks/Modal/hooks/useModal.d.ts +2 -0
  30. package/build/dts/ui/Blocks/Modal/index.d.ts +4 -0
  31. package/build/dts/ui/Blocks/Modal/stories/Modal.stories.d.ts +26 -0
  32. package/build/dts/ui/Blocks/Modal/styles.d.ts +22 -0
  33. package/build/dts/ui/Blocks/Modal/types.d.ts +45 -0
  34. package/build/dts/ui/Blocks/Modal/utils.d.ts +3 -0
  35. package/build/dts/ui/Blocks/Tabs/TabContent.d.ts +2 -0
  36. package/build/dts/ui/Blocks/Tabs/Tabs.d.ts +3 -0
  37. package/build/dts/ui/Blocks/Tabs/hooks/useTabs.d.ts +2 -0
  38. package/build/dts/ui/Blocks/Tabs/index.d.ts +3 -0
  39. package/build/dts/ui/Blocks/Tabs/stories/Tabs.stories.d.ts +13 -0
  40. package/build/dts/ui/Blocks/Tabs/styles.d.ts +8 -0
  41. package/build/dts/ui/Blocks/Tabs/types.d.ts +27 -0
  42. package/build/dts/ui/Elements/Alert/Alert.d.ts +3 -0
  43. package/build/dts/ui/Elements/Alert/index.d.ts +2 -0
  44. package/build/dts/ui/Elements/Alert/stories/Alert.stories.d.ts +17 -0
  45. package/build/dts/ui/Elements/Alert/styles.d.ts +44 -0
  46. package/build/dts/ui/Elements/Alert/types.d.ts +18 -0
  47. package/build/dts/ui/Elements/Avatar/Avatar.d.ts +3 -0
  48. package/build/dts/ui/Elements/Avatar/index.d.ts +1 -0
  49. package/build/dts/ui/Elements/Avatar/stories/Avatar.stories.d.ts +12 -0
  50. package/build/dts/ui/Elements/Avatar/types.d.ts +8 -0
  51. package/build/dts/ui/Elements/Badge/Badge.d.ts +12 -0
  52. package/build/dts/ui/Elements/Badge/index.d.ts +2 -0
  53. package/build/dts/ui/Elements/Badge/stories/Badge.stories.d.ts +12 -0
  54. package/build/dts/ui/Elements/BorderedBox/BorderedBox.d.ts +4 -0
  55. package/build/dts/ui/Elements/BorderedBox/index.d.ts +2 -0
  56. package/build/dts/ui/Elements/BorderedBox/stories/BorderedBox.stories.d.ts +11 -0
  57. package/build/dts/ui/Elements/BorderedBox/types.d.ts +6 -0
  58. package/{dist → build/dts/ui}/Elements/Button/Button.d.ts +1 -0
  59. package/build/dts/ui/Elements/Button/stories/Button.stories.d.ts +20 -0
  60. package/build/dts/ui/Elements/Card/Card.d.ts +7 -0
  61. package/build/dts/ui/Elements/Card/index.d.ts +3 -0
  62. package/build/dts/ui/Elements/Card/stories/Card.stories.d.ts +16 -0
  63. package/build/dts/ui/Elements/Card/stories/CardComponent.stories.d.ts +12 -0
  64. package/build/dts/ui/Elements/Card/styles.d.ts +14 -0
  65. package/build/dts/ui/Elements/Card/types.d.ts +21 -0
  66. package/build/dts/ui/Elements/Dropdown/Dropdown.d.ts +4 -0
  67. package/build/dts/ui/Elements/Dropdown/index.d.ts +2 -0
  68. package/build/dts/ui/Elements/Dropdown/stories/Dropdown.stories.d.ts +11 -0
  69. package/build/dts/ui/Elements/Dropdown/types.d.ts +10 -0
  70. package/build/dts/ui/Elements/ErrorMessage/ErrorMessage.d.ts +4 -0
  71. package/build/dts/ui/Elements/ErrorMessage/index.d.ts +2 -0
  72. package/build/dts/ui/Elements/ErrorMessage/stories/ErrorMessage.stories.d.ts +12 -0
  73. package/build/dts/ui/Elements/ErrorMessage/types.d.ts +5 -0
  74. package/{dist → build/dts/ui}/Elements/Icon/BadgeIcon.d.ts +1 -0
  75. package/{dist → build/dts/ui}/Elements/Icon/Icon.d.ts +1 -0
  76. package/build/dts/ui/Elements/Icon/stories/BadgeIcon.stories.d.ts +24 -0
  77. package/build/dts/ui/Elements/Icon/stories/Icon.stories.d.ts +16 -0
  78. package/build/dts/ui/Elements/Image/Image.d.ts +4 -0
  79. package/build/dts/ui/Elements/Image/index.d.ts +2 -0
  80. package/build/dts/ui/Elements/Image/stories/Image.stories.d.ts +14 -0
  81. package/build/dts/ui/Elements/Image/types.d.ts +18 -0
  82. package/build/dts/ui/Elements/Label/Label.d.ts +6 -0
  83. package/build/dts/ui/Elements/Label/index.d.ts +3 -0
  84. package/build/dts/ui/Elements/Label/stories/Label.stories.d.ts +13 -0
  85. package/build/dts/ui/Elements/Line/Line.d.ts +3 -0
  86. package/build/dts/ui/Elements/Line/index.d.ts +2 -0
  87. package/build/dts/ui/Elements/Line/stories/Line.stories.d.ts +16 -0
  88. package/build/dts/ui/Elements/Line/types.d.ts +12 -0
  89. package/build/dts/ui/Elements/Link/Link.d.ts +29 -0
  90. package/build/dts/ui/Elements/Link/index.d.ts +2 -0
  91. package/build/dts/ui/Elements/Link/stories/Link.stories.d.ts +42 -0
  92. package/build/dts/ui/Elements/Logo/Logo.d.ts +4 -0
  93. package/build/dts/ui/Elements/Logo/index.d.ts +2 -0
  94. package/build/dts/ui/Elements/Logo/stories/Logo.stories.d.ts +34 -0
  95. package/build/dts/ui/Elements/Logo/types.d.ts +10 -0
  96. package/build/dts/ui/Elements/Overlay/PageOverlay.d.ts +5 -0
  97. package/build/dts/ui/Elements/Pagination/Pagination.d.ts +9 -0
  98. package/build/dts/ui/Elements/Pagination/index.d.ts +2 -0
  99. package/build/dts/ui/Elements/Pagination/stories/Pagination.stories.d.ts +12 -0
  100. package/build/dts/ui/Elements/Pagination/styled.d.ts +15 -0
  101. package/build/dts/ui/Elements/Paragraph/Paragraph.d.ts +2 -0
  102. package/build/dts/ui/Elements/Paragraph/index.d.ts +2 -0
  103. package/build/dts/ui/Elements/Paragraph/stories/Paragraph.stories.d.ts +17 -0
  104. package/build/dts/ui/Elements/Portal/index.d.ts +5 -0
  105. package/build/dts/ui/Elements/ProgressBar/ProgressBar.d.ts +10 -0
  106. package/build/dts/ui/Elements/ProgressBar/index.d.ts +2 -0
  107. package/build/dts/ui/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +19 -0
  108. package/build/dts/ui/Elements/ProgressBar/styles.d.ts +9 -0
  109. package/build/dts/ui/Elements/SimpleLink/Link.d.ts +19 -0
  110. package/build/dts/ui/Elements/SimpleLink/index.d.ts +2 -0
  111. package/build/dts/ui/Elements/SpaceAround/SpaceAround.d.ts +4 -0
  112. package/build/dts/ui/Elements/SpaceAround/index.d.ts +3 -0
  113. package/build/dts/ui/Elements/SpaceAround/stories/SpaceAround.stories.d.ts +12 -0
  114. package/build/dts/ui/Elements/SpaceAround/types.d.ts +14 -0
  115. package/build/dts/ui/Elements/Tag/Tag.d.ts +3 -0
  116. package/build/dts/ui/Elements/Tag/index.d.ts +3 -0
  117. package/build/dts/ui/Elements/Tag/palletes.d.ts +5 -0
  118. package/build/dts/ui/Elements/Tag/stories/Tag.stories.d.ts +19 -0
  119. package/build/dts/ui/Elements/Tag/stories/components/predefinedTags.d.ts +3 -0
  120. package/build/dts/ui/Elements/Tag/types.d.ts +16 -0
  121. package/build/dts/ui/Elements/Text/Text.d.ts +4 -0
  122. package/build/dts/ui/Elements/Text/index.d.ts +3 -0
  123. package/build/dts/ui/Elements/Text/stories/Text.stories.d.ts +16 -0
  124. package/build/dts/ui/Elements/Text/types.d.ts +13 -0
  125. package/build/dts/ui/Elements/Toast/Toast.d.ts +12 -0
  126. package/build/dts/ui/Elements/Toast/index.d.ts +3 -0
  127. package/build/dts/ui/Elements/Toggle/Toggle.d.ts +4 -0
  128. package/build/dts/ui/Elements/Toggle/index.d.ts +2 -0
  129. package/build/dts/ui/Elements/Toggle/stories/Toggle.stories.d.ts +14 -0
  130. package/build/dts/ui/Elements/Toggle/types.d.ts +21 -0
  131. package/build/dts/ui/Elements/Typography/Typography.d.ts +118 -0
  132. package/build/dts/ui/Elements/Typography/index.d.ts +1 -0
  133. package/build/dts/ui/Elements/Typography/stories/Typography.stories.d.ts +20 -0
  134. package/build/dts/ui/Forms/Checkbox/Checkbox.d.ts +4 -0
  135. package/build/dts/ui/Forms/Checkbox/index.d.ts +2 -0
  136. package/build/dts/ui/Forms/Checkbox/stories/Checkbox.stories.d.ts +14 -0
  137. package/build/dts/ui/Forms/Checkbox/styles.d.ts +11 -0
  138. package/build/dts/ui/Forms/Checkbox/types.d.ts +16 -0
  139. package/build/dts/ui/Forms/Input/Input.d.ts +3 -0
  140. package/build/dts/ui/Forms/Input/index.d.ts +4 -0
  141. package/build/dts/ui/Forms/Input/stories/Input.stories.d.ts +17 -0
  142. package/build/dts/ui/Forms/Input/styles.d.ts +31 -0
  143. package/build/dts/ui/Forms/Input/types.d.ts +49 -0
  144. package/build/dts/ui/Forms/RadioButton/RadioButton.d.ts +4 -0
  145. package/build/dts/ui/Forms/RadioButton/index.d.ts +2 -0
  146. package/build/dts/ui/Forms/RadioButton/stories/RadioButton.stories.d.ts +14 -0
  147. package/build/dts/ui/Forms/RadioButton/styles.d.ts +10 -0
  148. package/build/dts/ui/Forms/RadioButton/types.d.ts +12 -0
  149. package/build/dts/ui/index.d.ts +33 -0
  150. package/build/dts/utils/CreateRgba/createRgba.d.ts +3 -0
  151. package/build/dts/utils/CreateRgba/types.d.ts +1 -0
  152. package/build/dts/utils/KeyPress/KeyPress.d.ts +3 -0
  153. package/build/dts/utils/KeyPress/index.d.ts +2 -0
  154. package/build/dts/utils/KeyPress/types.d.ts +6 -0
  155. package/build/dts/utils/index.d.ts +3 -0
  156. package/build/index.es.js +8894 -0
  157. package/build/index.es.js.map +1 -0
  158. package/build/index.js +8933 -0
  159. package/build/index.js.map +1 -0
  160. package/package.json +62 -39
  161. package/dist/index.cjs.js +0 -324
  162. package/dist/index.d.ts +0 -1
  163. package/dist/index.es.js +0 -2856
  164. /package/{dist → build/dts/ui}/Elements/Button/index.d.ts +0 -0
  165. /package/{dist → build/dts/ui}/Elements/Button/styles.d.ts +0 -0
  166. /package/{dist → build/dts/ui}/Elements/Button/types.d.ts +0 -0
  167. /package/{dist → build/dts/ui}/Elements/Icon/icons/FlagCZ.d.ts +0 -0
  168. /package/{dist → build/dts/ui}/Elements/Icon/icons/FlagUSA.d.ts +0 -0
  169. /package/{dist → build/dts/ui}/Elements/Icon/icons/index.d.ts +0 -0
  170. /package/{dist → build/dts/ui}/Elements/Icon/index.d.ts +0 -0
  171. /package/{dist → build/dts/ui}/Elements/Icon/types.d.ts +0 -0
  172. /package/{dist → build/dts/ui}/Elements/Spinner/Spinner.d.ts +0 -0
  173. /package/{dist → build/dts/ui}/Elements/Spinner/index.d.ts +0 -0
  174. /package/{dist → build/dts/ui}/Elements/Spinner/stories/Spinner.stories.d.ts +0 -0
  175. /package/{dist → build/dts/ui}/Elements/Spinner/styles.d.ts +0 -0
  176. /package/{dist → build/dts/ui}/Elements/Spinner/types.d.ts +0 -0
  177. /package/{dist → build/dts/ui}/ThemeProvider/ThemeProvider.d.ts +0 -0
  178. /package/{dist → build/dts/ui}/ThemeProvider/index.d.ts +0 -0
  179. /package/{dist → build/dts/ui}/ThemeProvider/themes/default.d.ts +0 -0
  180. /package/{dist → build/dts/ui}/ThemeProvider/themes/index.d.ts +0 -0
  181. /package/{dist → build/dts/ui}/ThemeProvider/themes/light.d.ts +0 -0
  182. /package/{dist → build/dts/ui}/ThemeProvider/themes/mailwise.d.ts +0 -0
  183. /package/{dist → build/dts/ui}/ThemeProvider/types.d.ts +0 -0
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export type Props = {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ id?: string;
6
+ };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Props } from './types';
2
3
  declare const Button: ({ isLoading, loadingText, icon, appearance, disabled, sizing, buttonRef, onClick, fullWidth, ...props }: Props) => JSX.Element;
3
4
  export default Button;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ isLoading, loadingText, icon, appearance, disabled, sizing, buttonRef, onClick, fullWidth, ...props }: import("../types").Props) => JSX.Element;
6
+ tags: string[];
7
+ argTypes: {};
8
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const Primary: Story;
12
+ export declare const PrimaryLight: Story;
13
+ export declare const Secondary: Story;
14
+ export declare const Success: Story;
15
+ export declare const Large: Story;
16
+ export declare const Small: Story;
17
+ export declare const DisabledPrimary: Story;
18
+ export declare const DisabledSecondary: Story;
19
+ export declare const Loading: Story;
20
+ export declare const WithIcon: Story;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { CardComponentProps, CardProps, PropsBody, PropsCardImage } from './types';
3
+ export declare const Card: ({ children, block, hasBorder, backgroundColor, ...rest }: CardProps) => JSX.Element;
4
+ export declare const CardBody: ({ children, ...rest }: PropsBody) => JSX.Element;
5
+ export declare const CardImage: ({ children, color, ...rest }: PropsCardImage) => JSX.Element;
6
+ declare const CardComponent: ({ img, body, children, color }: CardComponentProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default CardComponent;
@@ -0,0 +1,3 @@
1
+ import Card from './Card';
2
+ export { Card, CardImage, CardBody } from './Card';
3
+ export default Card;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from '@storybook/react';
3
+ export declare const longText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
4
+ declare const meta: {
5
+ title: string;
6
+ component: ({ children, block, hasBorder, backgroundColor, ...rest }: import("../types").CardProps) => JSX.Element;
7
+ tags: string[];
8
+ argTypes: {};
9
+ };
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ export declare const Default: Story;
13
+ export declare const NoBorder: Story;
14
+ export declare const WithPadding: Story;
15
+ export declare const WithShadow: Story;
16
+ export declare const WithBackground: Story;
@@ -0,0 +1,12 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ img, body, children, color }: import("../types").CardComponentProps) => import("react/jsx-runtime").JSX.Element;
5
+ tags: string[];
6
+ argTypes: {};
7
+ };
8
+ export default meta;
9
+ type Story = StoryObj<typeof meta>;
10
+ export declare const Default: Story;
11
+ export declare const ColoredCard: Story;
12
+ export declare const CardWithoutImage: Story;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ export declare const CardWrapper: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {
3
+ block?: boolean | undefined;
4
+ }, never>;
5
+ export declare const StyledCard: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {
6
+ block?: boolean | undefined;
7
+ hasBorder?: boolean | undefined;
8
+ shadow?: boolean | undefined;
9
+ p?: string | undefined;
10
+ backgroundColor?: string | undefined;
11
+ }, never>;
12
+ export declare const ImageWrapper: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color">) => import("react").ReactElement<any, "div">, import("@xstyled/system").Theme, import("@xstyled/system").SystemProps<import("@xstyled/system").Theme>, "color">;
13
+ export declare const StyledImage: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color">) => import("react").ReactElement<any, "div">, import("@xstyled/system").Theme, import("@xstyled/system").SystemProps<import("@xstyled/system").Theme>, "color">;
14
+ export declare const StyledBody: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color">) => import("react").ReactElement<any, "div">, import("@xstyled/system").Theme, import("@xstyled/system").SystemProps<import("@xstyled/system").Theme>, "color">;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { StyledCard } from './styles';
3
+ export type CardProps = {
4
+ children: React.ReactNode;
5
+ shadow?: boolean;
6
+ block?: boolean;
7
+ hasBorder?: boolean;
8
+ } & React.ComponentProps<typeof StyledCard>;
9
+ export type PropsBody = {
10
+ children: React.ReactNode;
11
+ };
12
+ export type PropsCardImage = {
13
+ children: React.ReactNode;
14
+ color?: string;
15
+ };
16
+ export type CardComponentProps = {
17
+ img?: string;
18
+ children?: React.ReactNode;
19
+ body?: React.ReactNode;
20
+ color?: string;
21
+ };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DropdownProps } from './types';
3
+ declare const Dropdown: ({ show, className, wrapRef, children, showArrow, verticalShift, customDropdownPosition, }: DropdownProps) => JSX.Element;
4
+ export default Dropdown;
@@ -0,0 +1,2 @@
1
+ import Dropdown from './Dropdown';
2
+ export default Dropdown;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ show, className, wrapRef, children, showArrow, verticalShift, customDropdownPosition, }: import("../types").DropdownProps) => JSX.Element;
6
+ tags: string[];
7
+ argTypes: {};
8
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const Default: Story;
@@ -0,0 +1,10 @@
1
+ import { RefObject } from 'react';
2
+ export type DropdownProps = {
3
+ show?: boolean;
4
+ className?: string;
5
+ wrapRef?: RefObject<HTMLElement>;
6
+ showArrow?: boolean;
7
+ children?: React.ReactNode;
8
+ verticalShift?: boolean;
9
+ customDropdownPosition?: any;
10
+ };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { Props } from './types';
3
+ declare const ErrorMessage: ({ children, appearance }: Props) => JSX.Element;
4
+ export default ErrorMessage;
@@ -0,0 +1,2 @@
1
+ import ErrorMessage from './ErrorMessage';
2
+ export default ErrorMessage;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ children, appearance }: import("../types").Props) => JSX.Element;
6
+ tags: string[];
7
+ argTypes: {};
8
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const Default: Story;
12
+ export declare const Tooltip: Story;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ export type Props = {
3
+ children: ReactNode;
4
+ appearance?: 'inline' | 'tooltip';
5
+ };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from './types';
2
3
  type Props = {
3
4
  badge: 'warning';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconDefinition } from '@fortawesome/fontawesome-common-types';
2
3
  import { FlipProp } from '@fortawesome/fontawesome-svg-core';
3
4
  import { IconProps } from './types';
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ badge, ...iconProps }: {
6
+ badge: "warning";
7
+ } & import("..").IconProps) => JSX.Element;
8
+ decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
9
+ badge: "warning";
10
+ icon: string;
11
+ style?: "normal" | "light" | "solid" | undefined;
12
+ fill?: string | undefined;
13
+ size?: string | number | undefined;
14
+ className?: string | undefined;
15
+ fixedWidth?: boolean | undefined;
16
+ spinning?: boolean | undefined;
17
+ secondaryColor?: string | undefined;
18
+ }>) => import("react/jsx-runtime").JSX.Element)[];
19
+ tags: string[];
20
+ argTypes: {};
21
+ };
22
+ export default meta;
23
+ type Story = StoryObj<typeof meta>;
24
+ export declare const Default: Story;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning, }: import("..").IconProps) => JSX.Element;
6
+ tags: string[];
7
+ argTypes: {};
8
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const Expedition: Story;
12
+ export declare const Spinning: Story;
13
+ export declare const SmallExpedition: Story;
14
+ export declare const BigExpedition: Story;
15
+ export declare const ExpeditionPink: Story;
16
+ export declare const ExpeditionPinkSolid: Story;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ImageProps } from './types';
3
+ declare const Image: (props: ImageProps) => JSX.Element;
4
+ export default Image;
@@ -0,0 +1,2 @@
1
+ import Image from './Image';
2
+ export default Image;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: (props: import("../types").ImageProps) => JSX.Element;
6
+ tags: string[];
7
+ argTypes: {};
8
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const Default: Story;
12
+ export declare const WithLoader: Story;
13
+ export declare const CORS: Story;
14
+ export declare const SrcSet: Story;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ export type ImageProps = {
3
+ src: string;
4
+ loader?: JSX.Element | null;
5
+ unloader?: JSX.Element | null;
6
+ decode?: boolean;
7
+ container?: any;
8
+ crossOrigin?: "" | "anonymous" | "use-credentials";
9
+ srcSet?: {
10
+ [width: string]: string;
11
+ };
12
+ width?: string;
13
+ height?: string;
14
+ smartCrop?: boolean;
15
+ onClick?: any;
16
+ onMouseOver?: any;
17
+ onMouseOut?: any;
18
+ };
@@ -0,0 +1,6 @@
1
+ export declare const Label: import("styled-components").StyledComponent<"label", import("@xstyled/system").Theme, {
2
+ fontSize?: string | number | undefined;
3
+ }, never>;
4
+ export declare const FieldLabel: import("styled-components").StyledComponent<"label", import("@xstyled/system").Theme, {
5
+ $isInvalid?: boolean | undefined;
6
+ }, never>;
@@ -0,0 +1,3 @@
1
+ import { Label } from './Label';
2
+ export { Label, FieldLabel } from './Label';
3
+ export default Label;
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("styled-components").StyledComponent<"label", import("@xstyled/system").Theme, {
5
+ fontSize?: string | number | undefined;
6
+ }, never>;
7
+ tags: string[];
8
+ argTypes: {};
9
+ };
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ export declare const Default: Story;
13
+ export declare const ManyPages: Story;
@@ -0,0 +1,3 @@
1
+ import { ILine } from './types';
2
+ declare const Line: ILine;
3
+ export default Line;
@@ -0,0 +1,2 @@
1
+ import Line from './Line';
2
+ export default Line;
@@ -0,0 +1,16 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("../types").ILine;
5
+ tags: string[];
6
+ argTypes: {};
7
+ };
8
+ export default meta;
9
+ type Story = StoryObj<typeof meta>;
10
+ export declare const Default: Story;
11
+ export declare const Dashed: Story;
12
+ export declare const SmallGab: Story;
13
+ export declare const MediumGab: Story;
14
+ export declare const LargeGab: Story;
15
+ export declare const LargeTopGab: Story;
16
+ export declare const LargebottomGab: Story;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export type Gab = 'none' | 'small' | 'medium' | 'large';
3
+ export type Variant = 'solid' | 'dashed';
4
+ export type LineProps = {
5
+ gab?: Gab;
6
+ gabTop?: Gab;
7
+ gabBottom?: Gab;
8
+ variant?: Variant;
9
+ };
10
+ export interface ILine {
11
+ (props: LineProps): JSX.Element;
12
+ }
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ type ToObjectType = {
3
+ pathname?: string;
4
+ search?: string;
5
+ hash?: string;
6
+ state?: object;
7
+ };
8
+ type Props = {
9
+ as?: any;
10
+ children?: React.ReactNode;
11
+ to?: string | ToObjectType | Function;
12
+ target?: string;
13
+ color?: string;
14
+ size: number | 'inherit';
15
+ disabled?: boolean;
16
+ onClick?: Function;
17
+ };
18
+ declare const Link: {
19
+ (props: Props): JSX.Element;
20
+ defaultProps: {
21
+ to: string;
22
+ color: string;
23
+ disabled: boolean;
24
+ size: number;
25
+ padding: string;
26
+ replace: boolean;
27
+ };
28
+ };
29
+ export default Link;
@@ -0,0 +1,2 @@
1
+ import Link from './Link';
2
+ export default Link;
@@ -0,0 +1,42 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: {
6
+ (props: {
7
+ as?: any;
8
+ children?: import("react").ReactNode;
9
+ to?: string | Function | {
10
+ pathname?: string | undefined;
11
+ search?: string | undefined;
12
+ hash?: string | undefined;
13
+ state?: object | undefined;
14
+ } | undefined;
15
+ target?: string | undefined;
16
+ color?: string | undefined;
17
+ size: number | "inherit";
18
+ disabled?: boolean | undefined;
19
+ onClick?: Function | undefined;
20
+ }): JSX.Element;
21
+ defaultProps: {
22
+ to: string;
23
+ color: string;
24
+ disabled: boolean;
25
+ size: number;
26
+ padding: string;
27
+ replace: boolean;
28
+ };
29
+ };
30
+ tags: string[];
31
+ argTypes: {};
32
+ decorators: never[];
33
+ };
34
+ export default meta;
35
+ type Story = StoryObj<typeof meta>;
36
+ export declare const External: Story;
37
+ export declare const Success: Story;
38
+ export declare const Warning: Story;
39
+ export declare const Disabled: Story;
40
+ export declare const Size3: Story;
41
+ export declare const Size5: Story;
42
+ export declare const Size7: Story;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { LogoProps } from './types';
3
+ declare const Logo: ({ brand, variant, size, width, height, ...rest }: LogoProps) => JSX.Element | null;
4
+ export default Logo;
@@ -0,0 +1,2 @@
1
+ import Logo from './Logo';
2
+ export default Logo;
@@ -0,0 +1,34 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ brand, variant, size, width, height, ...rest }: import("../types").LogoProps) => JSX.Element | null;
6
+ parameters: {
7
+ backgrounds: {
8
+ default: string;
9
+ values: {
10
+ name: string;
11
+ value: string;
12
+ }[];
13
+ };
14
+ };
15
+ tags: string[];
16
+ argTypes: {};
17
+ };
18
+ export default meta;
19
+ type Story = StoryObj<typeof meta>;
20
+ export declare const MailshipBlack: Story;
21
+ export declare const MailshipWhite: Story;
22
+ export declare const MailshipM: Story;
23
+ export declare const MailshipS: Story;
24
+ export declare const MailwiseBlack: Story;
25
+ export declare const MailwiseS: Story;
26
+ export declare const MailstockBlack: Story;
27
+ export declare const MailwrapBlack: Story;
28
+ export declare const MailstepBlack: Story;
29
+ export declare const MailstepWhite: Story;
30
+ export declare const SizeSmall: Story;
31
+ export declare const SizeMedium: Story;
32
+ export declare const SizeBig: Story;
33
+ export declare const SizeCustomWidth: Story;
34
+ export declare const SizeCustomHeight: Story;
@@ -0,0 +1,10 @@
1
+ export type Brand = 'mailship' | 'mailwise' | 'mailstock' | 'mailstep' | 'mailwrap';
2
+ export type Variant = 'white' | 'black' | 'm' | 's';
3
+ export type Size = 'small' | 'medium' | 'big' | undefined;
4
+ export type LogoProps = {
5
+ variant?: Variant;
6
+ size?: Size;
7
+ brand?: Brand;
8
+ width?: string;
9
+ height?: string;
10
+ };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const Overlay: ({ children }: {
3
+ children: React.ReactNode;
4
+ }) => JSX.Element;
5
+ export default Overlay;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export type Props = {
3
+ page?: number;
4
+ itemCount?: number;
5
+ itemPerPage?: number;
6
+ onPageChange?: (number: number) => void;
7
+ };
8
+ declare const Pagination: ({ onPageChange, itemPerPage, itemCount, page }: Props) => JSX.Element;
9
+ export default Pagination;
@@ -0,0 +1,2 @@
1
+ import Pagination from './Pagination';
2
+ export default Pagination;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ onPageChange, itemPerPage, itemCount, page }: import("../Pagination").Props) => JSX.Element;
6
+ tags: string[];
7
+ argTypes: {};
8
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const Default: Story;
12
+ export declare const ManyPages: Story;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ export declare const Wrapper: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color">) => import("react").ReactElement<any, "div">, import("@xstyled/system").Theme, import("@xstyled/system").SystemProps<import("@xstyled/system").Theme>, "color">;
3
+ export declare const Btn: import("styled-components").StyledComponent<"button", import("@xstyled/system").Theme, {
4
+ disabled: boolean;
5
+ }, never>;
6
+ export declare const ArrowIcon: import("styled-components").StyledComponent<({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning, }: import("../Icon").IconProps) => JSX.Element, import("@xstyled/system").Theme, {
7
+ isActive: boolean;
8
+ }, never>;
9
+ export declare const GoIcon: import("styled-components").StyledComponent<({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning, }: import("../Icon").IconProps) => JSX.Element, import("@xstyled/system").Theme, {
10
+ isActive: boolean;
11
+ }, never>;
12
+ export declare const DotsWrapper: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {}, never>;
13
+ export declare const PageBtn: import("styled-components").StyledComponent<"span", import("@xstyled/system").Theme, {
14
+ isCurrent: boolean;
15
+ }, never>;
@@ -0,0 +1,2 @@
1
+ declare const Paragraph: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Paragraph;
@@ -0,0 +1,2 @@
1
+ import Paragraph from './Paragraph';
2
+ export default Paragraph;
@@ -0,0 +1,17 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: () => import("react/jsx-runtime").JSX.Element;
5
+ tags: string[];
6
+ argTypes: {
7
+ backgroundColor: {
8
+ control: string;
9
+ };
10
+ };
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Primary: Story;
15
+ export declare const Secondary: Story;
16
+ export declare const Large: Story;
17
+ export declare const Small: Story;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const Portal: ({ children }: {
3
+ children: JSX.Element;
4
+ }) => import("react").ReactPortal;
5
+ export default Portal;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ progress?: number;
4
+ status?: 'loading' | 'finished' | 'error';
5
+ errorMessage?: string;
6
+ noText?: boolean;
7
+ variant?: 'normal' | 'thin';
8
+ };
9
+ declare const ProgressBar: ({ progress, status, errorMessage, noText, variant }: Props) => JSX.Element;
10
+ export default ProgressBar;
@@ -0,0 +1,2 @@
1
+ import ProgressBar from './ProgressBar';
2
+ export default ProgressBar;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ progress, status, errorMessage, noText, variant }: {
6
+ progress?: number | undefined;
7
+ status?: "error" | "loading" | "finished" | undefined;
8
+ errorMessage?: string | undefined;
9
+ noText?: boolean | undefined;
10
+ variant?: "normal" | "thin" | undefined;
11
+ }) => JSX.Element;
12
+ tags: string[];
13
+ argTypes: {};
14
+ };
15
+ export default meta;
16
+ type Story = StoryObj<typeof meta>;
17
+ export declare const Loading: Story;
18
+ export declare const Finished: Story;
19
+ export declare const Error: Story;
@@ -0,0 +1,9 @@
1
+ export declare const StyledProgressBar: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {
2
+ status: string | null | undefined;
3
+ variant?: "normal" | "thin" | undefined;
4
+ }, never>;
5
+ export declare const Progress: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {
6
+ progress: number;
7
+ status: string | null | undefined;
8
+ }, never>;
9
+ export declare const ProgressDescription: import("styled-components").StyledComponent<"span", import("@xstyled/system").Theme, {}, never>;