@latte-macchiat-io/latte-vanilla-components 0.0.117

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 (114) hide show
  1. package/README.md +22 -0
  2. package/dist/index.cjs.js +16 -0
  3. package/dist/index.es.js +8443 -0
  4. package/dist/types/components/Actions/export.d.ts +3 -0
  5. package/dist/types/components/Actions/index.d.ts +10 -0
  6. package/dist/types/components/Actions/stories.d.ts +6 -0
  7. package/dist/types/components/Actions/styles.d.ts +13 -0
  8. package/dist/types/components/Actions/types.d.ts +5 -0
  9. package/dist/types/components/Button/export.d.ts +3 -0
  10. package/dist/types/components/Button/index.d.ts +17 -0
  11. package/dist/types/components/Button/styles.d.ts +17 -0
  12. package/dist/types/components/Button/types.d.ts +18 -0
  13. package/dist/types/components/Carousel/export.d.ts +2 -0
  14. package/dist/types/components/Carousel/index.d.ts +12 -0
  15. package/dist/types/components/Carousel/styles.d.ts +52 -0
  16. package/dist/types/components/Columns/export.d.ts +3 -0
  17. package/dist/types/components/Columns/index.d.ts +13 -0
  18. package/dist/types/components/Columns/stories.d.ts +14 -0
  19. package/dist/types/components/Columns/styles.d.ts +16 -0
  20. package/dist/types/components/Columns/types.d.ts +5 -0
  21. package/dist/types/components/ConsentCookie/export.d.ts +2 -0
  22. package/dist/types/components/ConsentCookie/index.d.ts +16 -0
  23. package/dist/types/components/ConsentCookie/stories.d.ts +6 -0
  24. package/dist/types/components/ConsentCookie/styles.d.ts +25 -0
  25. package/dist/types/components/Footer/export.d.ts +2 -0
  26. package/dist/types/components/Footer/index.d.ts +8 -0
  27. package/dist/types/components/Footer/stories.d.ts +6 -0
  28. package/dist/types/components/Footer/styles.d.ts +11 -0
  29. package/dist/types/components/Form/Row/export.d.ts +3 -0
  30. package/dist/types/components/Form/Row/index.d.ts +12 -0
  31. package/dist/types/components/Form/Row/stories.d.ts +7 -0
  32. package/dist/types/components/Form/Row/styles.d.ts +15 -0
  33. package/dist/types/components/Form/Row/types.d.ts +5 -0
  34. package/dist/types/components/Form/TextField/Input/export.d.ts +3 -0
  35. package/dist/types/components/Form/TextField/Input/index.d.ts +19 -0
  36. package/dist/types/components/Form/TextField/Input/stories.d.ts +13 -0
  37. package/dist/types/components/Form/TextField/Input/styles.d.ts +11 -0
  38. package/dist/types/components/Form/TextField/Input/types.d.ts +8 -0
  39. package/dist/types/components/Form/TextField/Label/export.d.ts +2 -0
  40. package/dist/types/components/Form/TextField/Label/index.d.ts +9 -0
  41. package/dist/types/components/Form/TextField/Label/stories.d.ts +7 -0
  42. package/dist/types/components/Form/TextField/Label/styles.d.ts +9 -0
  43. package/dist/types/components/Form/TextField/Textarea/export.d.ts +3 -0
  44. package/dist/types/components/Form/TextField/Textarea/index.d.ts +17 -0
  45. package/dist/types/components/Form/TextField/Textarea/stories.d.ts +9 -0
  46. package/dist/types/components/Form/TextField/Textarea/styles.d.ts +11 -0
  47. package/dist/types/components/Form/TextField/Textarea/types.d.ts +3 -0
  48. package/dist/types/components/Form/TextField/export.d.ts +2 -0
  49. package/dist/types/components/Form/TextField/index.d.ts +23 -0
  50. package/dist/types/components/Form/TextField/stories.d.ts +12 -0
  51. package/dist/types/components/Form/TextField/styles.d.ts +21 -0
  52. package/dist/types/components/Form/export.d.ts +2 -0
  53. package/dist/types/components/Form/index.d.ts +9 -0
  54. package/dist/types/components/Form/stories.d.ts +6 -0
  55. package/dist/types/components/Form/styles.d.ts +11 -0
  56. package/dist/types/components/Header/HeaderOverlay/index.d.ts +8 -0
  57. package/dist/types/components/Header/HeaderOverlay/styles.d.ts +10 -0
  58. package/dist/types/components/Header/ToggleNav/index.d.ts +9 -0
  59. package/dist/types/components/Header/ToggleNav/styles.d.ts +17 -0
  60. package/dist/types/components/Header/export.d.ts +2 -0
  61. package/dist/types/components/Header/index.d.ts +12 -0
  62. package/dist/types/components/Header/stories.d.ts +6 -0
  63. package/dist/types/components/Header/styles.d.ts +19 -0
  64. package/dist/types/components/Icon/export.d.ts +2 -0
  65. package/dist/types/components/Icon/index.d.ts +12 -0
  66. package/dist/types/components/Icon/path.d.ts +19 -0
  67. package/dist/types/components/Icon/stories.d.ts +13 -0
  68. package/dist/types/components/Icon/styles.d.ts +16 -0
  69. package/dist/types/components/KeyNumber/export.d.ts +2 -0
  70. package/dist/types/components/KeyNumber/index.d.ts +10 -0
  71. package/dist/types/components/KeyNumber/styles.d.ts +13 -0
  72. package/dist/types/components/LanguageSwitcher/export.d.ts +2 -0
  73. package/dist/types/components/LanguageSwitcher/index.d.ts +16 -0
  74. package/dist/types/components/LanguageSwitcher/styles.d.ts +22 -0
  75. package/dist/types/components/Logo/export.d.ts +2 -0
  76. package/dist/types/components/Logo/index.d.ts +8 -0
  77. package/dist/types/components/Logo/stories.d.ts +6 -0
  78. package/dist/types/components/Logo/styles.d.ts +11 -0
  79. package/dist/types/components/Main/export.d.ts +2 -0
  80. package/dist/types/components/Main/index.d.ts +8 -0
  81. package/dist/types/components/Main/stories.d.ts +13 -0
  82. package/dist/types/components/Main/styles.d.ts +11 -0
  83. package/dist/types/components/Modal/export.d.ts +2 -0
  84. package/dist/types/components/Modal/index.d.ts +11 -0
  85. package/dist/types/components/Modal/styles.d.ts +24 -0
  86. package/dist/types/components/Modal/types.d.ts +5 -0
  87. package/dist/types/components/Nav/export.d.ts +2 -0
  88. package/dist/types/components/Nav/index.d.ts +8 -0
  89. package/dist/types/components/Nav/stories.d.ts +6 -0
  90. package/dist/types/components/Nav/styles.d.ts +11 -0
  91. package/dist/types/components/NavLegal/export.d.ts +2 -0
  92. package/dist/types/components/NavLegal/index.d.ts +8 -0
  93. package/dist/types/components/NavLegal/stories.d.ts +6 -0
  94. package/dist/types/components/NavLegal/styles.d.ts +11 -0
  95. package/dist/types/components/NavLegal/types.d.ts +1 -0
  96. package/dist/types/components/NavSocial/export.d.ts +3 -0
  97. package/dist/types/components/NavSocial/index.d.ts +12 -0
  98. package/dist/types/components/NavSocial/stories.d.ts +6 -0
  99. package/dist/types/components/NavSocial/styles.d.ts +15 -0
  100. package/dist/types/components/NavSocial/types.d.ts +1 -0
  101. package/dist/types/components/Section/export.d.ts +2 -0
  102. package/dist/types/components/Section/index.d.ts +18 -0
  103. package/dist/types/components/Section/stories.d.ts +14 -0
  104. package/dist/types/components/Section/styles.d.ts +22 -0
  105. package/dist/types/components/Section/types.d.ts +5 -0
  106. package/dist/types/components/Section/variants.d.ts +15 -0
  107. package/dist/types/components/Video/export.d.ts +2 -0
  108. package/dist/types/components/Video/index.d.ts +18 -0
  109. package/dist/types/components/Video/styles.d.ts +49 -0
  110. package/dist/types/components/VideoFullWidth/export.d.ts +2 -0
  111. package/dist/types/components/VideoFullWidth/index.d.ts +12 -0
  112. package/dist/types/components/VideoFullWidth/styles.d.ts +11 -0
  113. package/dist/types/index.d.ts +25 -0
  114. package/package.json +70 -0
@@ -0,0 +1,3 @@
1
+ export { Actions } from '.';
2
+ export type { ActionsProps } from '.';
3
+ export { Align as ActionsAlign } from './types';
@@ -0,0 +1,10 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Align } from './types';
3
+ import { Theme } from '../../types/theme';
4
+ export type ActionsProps = {
5
+ align?: Align;
6
+ theme?: Theme;
7
+ styles?: CSSProperties;
8
+ children: React.ReactNode;
9
+ };
10
+ export declare const Actions: ({ children, styles, theme, align }: ActionsProps) => import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Actions } from '../../index';
3
+ declare const meta: Meta<typeof Actions>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,13 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Align } from './types';
3
+ import { Theme } from '../../types/theme';
4
+ interface IStyledActions {
5
+ align: Align;
6
+ theme: Theme;
7
+ styles: CSSProperties;
8
+ }
9
+ export declare const StyledActions: import('@emotion/styled').StyledComponent<{
10
+ theme?: import('@emotion/react').Theme;
11
+ as?: React.ElementType;
12
+ } & IStyledActions, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare enum Align {
2
+ Center = 0,
3
+ Left = 1,
4
+ Right = 2
5
+ }
@@ -0,0 +1,3 @@
1
+ export { Button } from '.';
2
+ export type { ButtonProps } from '.';
3
+ export { Type as ButtonType, Size as ButtonSize, Style as ButtonStyle, Variant as ButtonVariant } from './types';
@@ -0,0 +1,17 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Size, Style, Type, Variant } from './types';
3
+ import { Theme } from '../../types/theme';
4
+ export type ButtonProps = {
5
+ type?: Type;
6
+ size?: Size;
7
+ style?: Style;
8
+ theme?: Theme;
9
+ variant?: Variant;
10
+ isPending?: boolean;
11
+ isDisabled?: boolean;
12
+ staticColor?: string;
13
+ onClick?: () => void;
14
+ styles?: CSSProperties;
15
+ children: React.ReactNode;
16
+ };
17
+ export declare const Button: ({ children, styles, staticColor, isPending, isDisabled, type, style, size, onClick, theme, variant, }: ButtonProps) => import("react").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Theme } from '../../types/theme';
3
+ interface IStyledButton {
4
+ theme: Theme;
5
+ isSmall: boolean;
6
+ isLarge: boolean;
7
+ isDisabled: boolean;
8
+ isOutlined: boolean;
9
+ isSecondary: boolean;
10
+ staticColor: string;
11
+ styles: CSSProperties;
12
+ }
13
+ export declare const StyledButton: import('@emotion/styled').StyledComponent<{
14
+ theme?: import('@emotion/react').Theme;
15
+ as?: React.ElementType;
16
+ } & IStyledButton, import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
17
+ export {};
@@ -0,0 +1,18 @@
1
+ export declare enum Variant {
2
+ Primary = 0,
3
+ Secondary = 1
4
+ }
5
+ export declare enum Style {
6
+ Fill = 0,
7
+ Outline = 1
8
+ }
9
+ export declare enum Size {
10
+ Small = 0,
11
+ Medium = 1,
12
+ Large = 2
13
+ }
14
+ export declare enum Type {
15
+ Reset = "reset",
16
+ Button = "button",
17
+ Submit = "submit"
18
+ }
@@ -0,0 +1,2 @@
1
+ export { Carousel } from '.';
2
+ export type { CarouselProps } from '.';
@@ -0,0 +1,12 @@
1
+ import { default as React, CSSProperties, ReactNode } from 'react';
2
+ import { Theme } from '../../types/theme';
3
+ export type CarouselProps = {
4
+ data: ReactNode[];
5
+ theme?: Theme;
6
+ displayItem?: number;
7
+ isFullWidth?: boolean;
8
+ styles?: CSSProperties;
9
+ displayNavButtons?: boolean;
10
+ displayNavBullets?: boolean;
11
+ };
12
+ export declare const Carousel: ({ data, styles, displayItem, theme, isFullWidth, displayNavBullets, displayNavButtons, }: CarouselProps) => React.JSX.Element;
@@ -0,0 +1,52 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Theme } from '../../types/theme';
3
+ interface IStyledCarousel {
4
+ styles: CSSProperties;
5
+ isFullWidth: boolean;
6
+ theme: Theme;
7
+ }
8
+ export declare const StyledCarousel: import('@emotion/styled').StyledComponent<{
9
+ theme?: import('@emotion/react').Theme;
10
+ as?: React.ElementType;
11
+ } & IStyledCarousel, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
+ export declare const StyledCarouselContent: import('@emotion/styled').StyledComponent<{
13
+ theme?: import('@emotion/react').Theme;
14
+ as?: React.ElementType;
15
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
+ interface IStyledCarouselContentList {
17
+ gap: number;
18
+ left: number;
19
+ width: number;
20
+ }
21
+ export declare const StyledCarouselContentList: import('@emotion/styled').StyledComponent<{
22
+ theme?: import('@emotion/react').Theme;
23
+ as?: React.ElementType;
24
+ } & IStyledCarouselContentList, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
25
+ export declare const StyledCarouselContentListItem: import('@emotion/styled').StyledComponent<{
26
+ theme?: import('@emotion/react').Theme;
27
+ as?: React.ElementType;
28
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
29
+ export declare const StyledCarouselNav: import('@emotion/styled').StyledComponent<{
30
+ theme?: import('@emotion/react').Theme;
31
+ as?: React.ElementType;
32
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
33
+ interface IStyledCarouselNavButton {
34
+ isDisabled: boolean;
35
+ }
36
+ export declare const StyledCarouselNavButton: import('@emotion/styled').StyledComponent<{
37
+ theme?: import('@emotion/react').Theme;
38
+ as?: React.ElementType;
39
+ } & IStyledCarouselNavButton, import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
40
+ export declare const StyledCarouselBullet: import('@emotion/styled').StyledComponent<{
41
+ theme?: import('@emotion/react').Theme;
42
+ as?: React.ElementType;
43
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
44
+ interface IStyledCarouselBulletItem {
45
+ theme: Theme;
46
+ isActive: boolean;
47
+ }
48
+ export declare const StyledCarouselBulletItem: import('@emotion/styled').StyledComponent<{
49
+ theme?: import('@emotion/react').Theme;
50
+ as?: React.ElementType;
51
+ } & IStyledCarouselBulletItem, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
52
+ export {};
@@ -0,0 +1,3 @@
1
+ export { Columns } from '.';
2
+ export type { ColumnsProps } from '.';
3
+ export { Align as ColumnsAlign } from './types';
@@ -0,0 +1,13 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Align } from './types';
3
+ import { Theme } from '../../types/theme';
4
+ export type ColumnsProps = {
5
+ align?: Align;
6
+ theme?: Theme;
7
+ columns: number[];
8
+ isCentered?: boolean;
9
+ isInverted?: boolean;
10
+ styles?: CSSProperties;
11
+ children: React.ReactNode;
12
+ };
13
+ export declare const Columns: ({ columns, children, styles, align, isCentered, isInverted, theme, }: ColumnsProps) => React.ReactElement;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ columns, children, styles, align, isCentered, isInverted, theme, }: import('.').ColumnsProps) => React.ReactElement;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {};
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Default: Story;
14
+ export declare const Default3Col: Story;
@@ -0,0 +1,16 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Align } from './types';
3
+ import { Theme } from '../../types/theme';
4
+ interface IStyledColumns {
5
+ align: Align;
6
+ theme: Theme;
7
+ columns: number[];
8
+ isCentered: boolean;
9
+ isInverted: boolean;
10
+ styles: CSSProperties;
11
+ }
12
+ export declare const StyledColumns: import('@emotion/styled').StyledComponent<{
13
+ theme?: import('@emotion/react').Theme;
14
+ as?: React.ElementType;
15
+ } & IStyledColumns, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare enum Align {
2
+ Center = 0,
3
+ Left = 1,
4
+ Right = 2
5
+ }
@@ -0,0 +1,2 @@
1
+ export { ConsentCookie } from '.';
2
+ export type { ConsentCookieProps } from '.';
@@ -0,0 +1,16 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Theme } from '../../types/theme';
3
+ export type ConsentCookieProps = {
4
+ theme?: Theme;
5
+ styles?: CSSProperties;
6
+ children?: React.ReactNode;
7
+ cookieName?: string;
8
+ cookieExpirationDays?: number;
9
+ translations?: {
10
+ actions: {
11
+ accept: string;
12
+ reject: string;
13
+ };
14
+ };
15
+ };
16
+ export declare const ConsentCookie: ({ styles, children, theme, cookieName, translations, cookieExpirationDays, }: ConsentCookieProps) => import("react").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { ConsentCookie } from '.';
3
+ declare const meta: Meta<typeof ConsentCookie>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,25 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Theme } from '../../types/theme';
3
+ interface IStyledConsentCookie {
4
+ theme: Theme;
5
+ styles: CSSProperties;
6
+ }
7
+ export declare const StyledConsentCookie: import('@emotion/styled').StyledComponent<{
8
+ theme?: import('@emotion/react').Theme;
9
+ as?: React.ElementType;
10
+ } & IStyledConsentCookie, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
+ interface IStyledConsentCookieContent {
12
+ theme: Theme;
13
+ }
14
+ export declare const StyledConsentCookieContent: import('@emotion/styled').StyledComponent<{
15
+ theme?: import('@emotion/react').Theme;
16
+ as?: React.ElementType;
17
+ } & IStyledConsentCookieContent, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
+ interface IStyledConsentCookieActions {
19
+ theme: Theme;
20
+ }
21
+ export declare const StyledConsentCookieActions: import('@emotion/styled').StyledComponent<{
22
+ theme?: import('@emotion/react').Theme;
23
+ as?: React.ElementType;
24
+ } & IStyledConsentCookieActions, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
25
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Footer } from '.';
2
+ export type { FooterProps } from '.';
@@ -0,0 +1,8 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Theme } from '../../types/theme';
3
+ export type FooterProps = {
4
+ theme?: Theme;
5
+ styles?: CSSProperties;
6
+ children: React.ReactNode;
7
+ };
8
+ export declare const Footer: ({ children, styles, theme }: FooterProps) => import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Footer } from '../../index';
3
+ declare const meta: Meta<typeof Footer>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,11 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Theme } from '../../types/theme';
3
+ interface IStyledFooter {
4
+ theme: Theme;
5
+ styles: CSSProperties;
6
+ }
7
+ export declare const StyledFooter: import('@emotion/styled').StyledComponent<{
8
+ theme?: import('@emotion/react').Theme;
9
+ as?: React.ElementType;
10
+ } & IStyledFooter, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
11
+ export {};
@@ -0,0 +1,3 @@
1
+ export { Row as FormRow } from '.';
2
+ export type { RowProps as FormRowProps } from '.';
3
+ export { Align as FormRowAlign } from './types';
@@ -0,0 +1,12 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Theme } from '../../../types/theme';
3
+ import { Align } from './types';
4
+ export type RowProps = {
5
+ align?: Align;
6
+ theme?: Theme;
7
+ isMessage?: boolean;
8
+ isActions?: boolean;
9
+ styles?: CSSProperties;
10
+ children: React.ReactNode;
11
+ };
12
+ export declare const Row: ({ children, theme, styles, isActions, isMessage, align }: RowProps) => import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Row } from '.';
3
+ declare const meta: Meta<typeof Row>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const MultipleChildren: Story;
@@ -0,0 +1,15 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Theme } from '../../../types/theme';
3
+ import { Align } from './types';
4
+ interface IStyledFormRow {
5
+ align: Align;
6
+ theme: Theme;
7
+ isActions: boolean;
8
+ isMessage: boolean;
9
+ styles: CSSProperties;
10
+ }
11
+ export declare const StyledFormRow: import('@emotion/styled').StyledComponent<{
12
+ theme?: import('@emotion/react').Theme;
13
+ as?: React.ElementType;
14
+ } & IStyledFormRow, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
15
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare enum Align {
2
+ Center = 0,
3
+ Left = 1,
4
+ Right = 2
5
+ }
@@ -0,0 +1,3 @@
1
+ export { TextFieldInput } from '.';
2
+ export type { TextFieldInputProps } from '.';
3
+ export { Type as InputType } from './types';
@@ -0,0 +1,19 @@
1
+ import { default as React, CSSProperties } from 'react';
2
+ import { Theme } from '../../../../types/theme';
3
+ import { Type } from './types';
4
+ export type TextFieldInputProps = {
5
+ type?: Type;
6
+ name: string;
7
+ theme?: Theme;
8
+ value?: string;
9
+ disabled?: boolean;
10
+ required?: boolean;
11
+ placeholder?: string;
12
+ styles?: CSSProperties;
13
+ onChange?: (e: {
14
+ target: {
15
+ value: string | undefined;
16
+ };
17
+ }) => void | undefined;
18
+ };
19
+ export declare const TextFieldInput: ({ name, value, styles, type, disabled, placeholder, theme, onChange, }: TextFieldInputProps) => React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { TextFieldInput } from './export';
3
+ declare const meta: Meta<typeof TextFieldInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Placeholder: Story;
8
+ export declare const Disabled: Story;
9
+ export declare const TypeEmail: Story;
10
+ export declare const TypeNumber: Story;
11
+ export declare const TypePassword: Story;
12
+ export declare const TypeSearch: Story;
13
+ export declare const TypeHidden: Story;
@@ -0,0 +1,11 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Theme } from '../../../../types/theme';
3
+ interface IStyledInputField {
4
+ theme: Theme;
5
+ styles: CSSProperties;
6
+ }
7
+ export declare const StyledInputField: import('@emotion/styled').StyledComponent<{
8
+ theme?: import('@emotion/react').Theme;
9
+ as?: React.ElementType;
10
+ } & IStyledInputField, import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
11
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare enum Type {
2
+ Text = "text",
3
+ Email = "email",
4
+ Search = "search",
5
+ Number = "number",
6
+ Hidden = "hidden",
7
+ Password = "password"
8
+ }
@@ -0,0 +1,2 @@
1
+ export { TextFieldLabel } from '.';
2
+ export type { TextFieldLabelProps } from '.';
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { Theme } from '../../../../types/theme';
3
+ export type TextFieldLabelProps = {
4
+ name: string;
5
+ theme?: Theme;
6
+ label: string;
7
+ required?: boolean;
8
+ };
9
+ export declare const TextFieldLabel: ({ name, label, required, theme }: TextFieldLabelProps) => React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { TextFieldLabel } from './export';
3
+ declare const meta: Meta<typeof TextFieldLabel>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Required: Story;
@@ -0,0 +1,9 @@
1
+ import { Theme } from '../../../../types/theme';
2
+ interface IStyledTextFieldLabel {
3
+ theme: Theme;
4
+ }
5
+ export declare const StyledTextFieldLabel: import('@emotion/styled').StyledComponent<{
6
+ theme?: import('@emotion/react').Theme;
7
+ as?: React.ElementType;
8
+ } & IStyledTextFieldLabel, import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ export { TextFieldTextarea } from '.';
2
+ export type { TextFieldTextareaProps } from '.';
3
+ export { Type as TextareaType } from './types';
@@ -0,0 +1,17 @@
1
+ import { default as React, CSSProperties } from 'react';
2
+ import { Theme } from '../../../../types/theme';
3
+ export type TextFieldTextareaProps = {
4
+ name: string;
5
+ value?: string;
6
+ rows?: number;
7
+ theme?: Theme;
8
+ disabled?: boolean;
9
+ placeholder?: string;
10
+ styles?: CSSProperties;
11
+ onChange?: (e: {
12
+ target: {
13
+ value: string | undefined;
14
+ };
15
+ }) => void | undefined;
16
+ };
17
+ export declare const TextFieldTextarea: ({ name, value, rows, disabled, styles, placeholder, onChange, theme, }: TextFieldTextareaProps) => React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { TextFieldTextarea } from '../../../../index';
3
+ declare const meta: Meta<typeof TextFieldTextarea>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Placeholder: Story;
8
+ export declare const Disabled: Story;
9
+ export declare const Rows10: Story;
@@ -0,0 +1,11 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Theme } from '../../../../types/theme';
3
+ interface IStyledTextareaField {
4
+ theme: Theme;
5
+ styles: CSSProperties;
6
+ }
7
+ export declare const StyledTextareaField: import('@emotion/styled').StyledComponent<{
8
+ theme?: import('@emotion/react').Theme;
9
+ as?: React.ElementType;
10
+ } & IStyledTextareaField, import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, {}>;
11
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare enum Type {
2
+ Textarea = "textarea"
3
+ }
@@ -0,0 +1,2 @@
1
+ export { TextField } from '.';
2
+ export type { TextFieldProps } from '.';
@@ -0,0 +1,23 @@
1
+ import { default as React, CSSProperties } from 'react';
2
+ import { Type as InputType } from './Input/types';
3
+ import { Type as TextAreaType } from './Textarea/types';
4
+ import { Theme } from '../../../types/theme';
5
+ export type TextFieldProps = {
6
+ name: string;
7
+ theme?: Theme;
8
+ label?: string;
9
+ value?: string;
10
+ rows?: number;
11
+ disabled?: boolean;
12
+ required?: boolean;
13
+ placeholder?: string;
14
+ styles?: CSSProperties;
15
+ errors?: string | string[];
16
+ type?: InputType | TextAreaType;
17
+ onChange?: (e: {
18
+ target: {
19
+ value: string | undefined;
20
+ };
21
+ }) => void | undefined;
22
+ };
23
+ export declare const TextField: ({ name, label, value, styles, rows, required, disabled, placeholder, errors, theme, onChange, type, }: TextFieldProps) => React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { TextField } from '.';
3
+ declare const meta: Meta<typeof TextField>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Textarea: Story;
8
+ export declare const WithoutLabel: Story;
9
+ export declare const Placeholder: Story;
10
+ export declare const Required: Story;
11
+ export declare const errorDefault: Story;
12
+ export declare const errorMultipleMessages: Story;
@@ -0,0 +1,21 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Theme } from '../../../types/theme';
3
+ interface IStyledTextField {
4
+ styles: CSSProperties;
5
+ }
6
+ export declare const StyledTextField: import('@emotion/styled').StyledComponent<{
7
+ theme?: import('@emotion/react').Theme;
8
+ as?: React.ElementType;
9
+ } & IStyledTextField, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ export declare const StyledTextFieldMessage: import('@emotion/styled').StyledComponent<{
11
+ theme?: import('@emotion/react').Theme;
12
+ as?: React.ElementType;
13
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ interface IStyledErrorMessage {
15
+ theme: Theme;
16
+ }
17
+ export declare const StyledErrorMessage: import('@emotion/styled').StyledComponent<{
18
+ theme?: import('@emotion/react').Theme;
19
+ as?: React.ElementType;
20
+ } & IStyledErrorMessage, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
21
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Form } from '.';
2
+ export type { FormProps } from '.';
@@ -0,0 +1,9 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Theme } from '../../types/theme';
3
+ export type FormProps = {
4
+ theme?: Theme;
5
+ styles?: CSSProperties;
6
+ children: React.ReactNode;
7
+ action: ((formData: FormData) => void | Promise<void>) | string;
8
+ };
9
+ export declare const Form: ({ action, children, styles, theme }: FormProps) => import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Form } from '.';
3
+ type Story = StoryObj<typeof meta>;
4
+ declare const meta: Meta<typeof Form>;
5
+ export default meta;
6
+ export declare const Default: Story;
@@ -0,0 +1,11 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Theme } from '../../types/theme';
3
+ interface IStyledForm {
4
+ theme: Theme;
5
+ styles: CSSProperties;
6
+ }
7
+ export declare const StyledForm: import('@emotion/styled').StyledComponent<{
8
+ theme?: import('@emotion/react').Theme;
9
+ as?: React.ElementType;
10
+ } & IStyledForm, import('react').DetailedHTMLProps<import('react').FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, {}>;
11
+ export {};