@latte-macchiat-io/latte-vanilla-components 0.0.158 → 0.0.160
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.
- package/dist/index.cjs.js +52 -4
- package/dist/index.es.js +7996 -6800
- package/dist/latte-vanilla-components.css +1 -1
- package/dist/types/components/Actions/Actions.css.d.ts +74 -0
- package/dist/types/components/Actions/Actions.d.ts +7 -0
- package/dist/types/components/Actions/export.d.ts +0 -4
- package/dist/types/components/Actions/stories.d.ts +0 -6
- package/dist/types/components/Button/Button.css.d.ts +65 -0
- package/dist/types/components/Button/Button.d.ts +8 -0
- package/dist/types/components/Button/export.d.ts +0 -4
- package/dist/types/components/Button/stories.d.ts +0 -0
- package/dist/types/components/Carousel/Carousel.css.d.ts +33 -0
- package/dist/types/components/Carousel/Carousel.d.ts +15 -0
- package/dist/types/components/Carousel/export.d.ts +0 -3
- package/dist/types/components/Carousel/index.d.ts +0 -12
- package/dist/types/components/Columns/Columns.css.d.ts +104 -0
- package/dist/types/components/Columns/Columns.d.ts +8 -0
- package/dist/types/components/Columns/export.d.ts +0 -4
- package/dist/types/components/Columns/index.d.ts +0 -12
- package/dist/types/components/Columns/stories.d.ts +1 -1
- package/dist/types/components/Columns/styles.css.d.ts +10 -15
- package/dist/types/components/ConsentCookie/ConsentCookie.css.d.ts +23 -0
- package/dist/types/components/ConsentCookie/ConsentCookie.d.ts +17 -0
- package/dist/types/components/ConsentCookie/export.d.ts +0 -3
- package/dist/types/components/ConsentCookie/index.d.ts +0 -15
- package/dist/types/components/Footer/Footer.css.d.ts +50 -0
- package/dist/types/components/Footer/Footer.d.ts +7 -0
- package/dist/types/components/Footer/export.d.ts +0 -3
- package/dist/types/components/Footer/index.d.ts +0 -7
- package/dist/types/components/Form/Form.css.d.ts +46 -0
- package/dist/types/components/Form/Form.d.ts +7 -0
- package/dist/types/components/Form/Row/Row.css.d.ts +51 -0
- package/dist/types/components/Form/Row/Row.d.ts +9 -0
- package/dist/types/components/Form/Row/index.d.ts +0 -11
- package/dist/types/components/Form/TextField/Input/Input.css.d.ts +32 -0
- package/dist/types/components/Form/TextField/Input/Input.d.ts +10 -0
- package/dist/types/components/Form/TextField/Input/export.d.ts +0 -4
- package/dist/types/components/Form/TextField/Input/index.d.ts +0 -18
- package/dist/types/components/Form/TextField/Label/Label.css.d.ts +23 -0
- package/dist/types/components/Form/TextField/Label/Label.d.ts +9 -0
- package/dist/types/components/Form/TextField/Label/index.d.ts +0 -9
- package/dist/types/components/Form/TextField/TextField.css.d.ts +19 -0
- package/dist/types/components/Form/TextField/TextField.d.ts +21 -0
- package/dist/types/components/Form/TextField/Textarea/Textarea.css.d.ts +56 -0
- package/dist/types/components/Form/TextField/Textarea/Textarea.d.ts +8 -0
- package/dist/types/components/Form/TextField/Textarea/export.d.ts +0 -4
- package/dist/types/components/Form/TextField/Textarea/index.d.ts +0 -16
- package/dist/types/components/Form/TextField/export.d.ts +0 -3
- package/dist/types/components/Form/TextField/index.d.ts +0 -22
- package/dist/types/components/Form/export.d.ts +0 -3
- package/dist/types/components/Form/index.d.ts +0 -8
- package/dist/types/components/Header/Header.css.d.ts +51 -0
- package/dist/types/components/Header/Header.d.ts +11 -0
- package/dist/types/components/Header/HeaderOverlay/index.d.ts +2 -2
- package/dist/types/components/Header/ToggleNav/index.d.ts +2 -2
- package/dist/types/components/Header/export.d.ts +0 -3
- package/dist/types/components/Header/index.d.ts +0 -11
- package/dist/types/components/Icon/Icon.css.d.ts +77 -0
- package/dist/types/components/Icon/Icon.d.ts +12 -0
- package/dist/types/components/Icon/export.d.ts +0 -3
- package/dist/types/components/Icon/index.d.ts +0 -11
- package/dist/types/components/Icon/stories.d.ts +1 -1
- package/dist/types/components/KeyNumber/KeyNumber.css.d.ts +46 -0
- package/dist/types/components/KeyNumber/KeyNumber.d.ts +15 -0
- package/dist/types/components/KeyNumber/export.d.ts +0 -3
- package/dist/types/components/KeyNumber/index.d.ts +0 -9
- package/dist/types/components/LanguageSwitcher/LanguageSwitcher.css.d.ts +18 -0
- package/dist/types/components/LanguageSwitcher/LanguageSwitcher.d.ts +16 -0
- package/dist/types/components/LanguageSwitcher/export.d.ts +0 -3
- package/dist/types/components/LanguageSwitcher/index.d.ts +0 -15
- package/dist/types/components/Logo/Logo.css.d.ts +54 -0
- package/dist/types/components/Logo/Logo.d.ts +8 -0
- package/dist/types/components/Logo/export.d.ts +0 -3
- package/dist/types/components/Logo/index.d.ts +0 -7
- package/dist/types/components/Main/Main.css.d.ts +32 -0
- package/dist/types/components/Main/Main.d.ts +7 -0
- package/dist/types/components/Main/export.d.ts +0 -3
- package/dist/types/components/Main/index.d.ts +0 -7
- package/dist/types/components/Main/stories.d.ts +1 -1
- package/dist/types/components/Modal/Modal.css.d.ts +82 -0
- package/dist/types/components/Modal/Modal.d.ts +15 -0
- package/dist/types/components/Modal/export.d.ts +0 -3
- package/dist/types/components/Modal/index.d.ts +0 -10
- package/dist/types/components/Modal/styles.css.d.ts +0 -13
- package/dist/types/components/Nav/Nav.css.d.ts +52 -0
- package/dist/types/components/Nav/Nav.d.ts +7 -0
- package/dist/types/components/Nav/export.d.ts +0 -3
- package/dist/types/components/Nav/index.d.ts +0 -7
- package/dist/types/components/NavLegal/NavLegal.css.d.ts +57 -0
- package/dist/types/components/NavLegal/NavLegal.d.ts +7 -0
- package/dist/types/components/NavLegal/export.d.ts +0 -3
- package/dist/types/components/NavLegal/index.d.ts +0 -7
- package/dist/types/components/NavSocial/NavSocial.css.d.ts +30 -0
- package/dist/types/components/NavSocial/NavSocial.d.ts +15 -0
- package/dist/types/components/NavSocial/export.d.ts +0 -4
- package/dist/types/components/NavSocial/index.d.ts +0 -11
- package/dist/types/components/Section/Section.d.ts +7 -0
- package/dist/types/components/Section/Section.recipe.d.ts +60 -0
- package/dist/types/components/Section/export.d.ts +0 -5
- package/dist/types/components/Section/stories.d.ts +0 -16
- package/dist/types/components/Video/Video.css.d.ts +43 -0
- package/dist/types/components/Video/Video.d.ts +17 -0
- package/dist/types/components/Video/export.d.ts +0 -3
- package/dist/types/components/Video/index.d.ts +0 -17
- package/dist/types/components/VideoFullWidth/VideoFullWidth.css.d.ts +18 -0
- package/dist/types/components/VideoFullWidth/VideoFullWidth.d.ts +14 -0
- package/dist/types/components/VideoFullWidth/export.d.ts +0 -3
- package/dist/types/components/VideoFullWidth/index.d.ts +0 -11
- package/dist/types/index.d.ts +28 -25
- package/package.json +11 -11
- package/dist/types/components/Actions/index.d.ts +0 -9
- package/dist/types/components/Actions/types.d.ts +0 -5
- package/dist/types/components/Button/index.d.ts +0 -16
- package/dist/types/components/Button/types.d.ts +0 -18
- package/dist/types/components/Columns/types.d.ts +0 -5
- package/dist/types/components/Form/Row/export.d.ts +0 -3
- package/dist/types/components/Form/Row/types.d.ts +0 -5
- package/dist/types/components/Form/TextField/Input/stories.d.ts +0 -13
- package/dist/types/components/Form/TextField/Input/types.d.ts +0 -8
- package/dist/types/components/Form/TextField/Label/stories.d.ts +0 -7
- package/dist/types/components/Form/TextField/Textarea/types.d.ts +0 -3
- package/dist/types/components/Form/TextField/stories.d.ts +0 -12
- package/dist/types/components/Form/stories.d.ts +0 -6
- package/dist/types/components/Section/index.d.ts +0 -17
- package/dist/types/components/Section/types.d.ts +0 -5
- package/dist/types/components/Section/variants.d.ts +0 -15
- package/dist/types/components/Video/styles.css.d.ts +0 -14
- package/dist/types/components/VideoFullWidth/styles.css.d.ts +0 -14
@@ -0,0 +1,23 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
declare const consentContent: string;
|
3
|
+
declare const consentActions: string;
|
4
|
+
export declare const consentRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
5
|
+
position: {
|
6
|
+
'bottom-right': {};
|
7
|
+
'bottom-left': {};
|
8
|
+
'bottom-center': {};
|
9
|
+
'top-right': {};
|
10
|
+
'top-left': {};
|
11
|
+
'top-center': {};
|
12
|
+
};
|
13
|
+
variant: {
|
14
|
+
modal: {};
|
15
|
+
banner: {
|
16
|
+
'::before': {
|
17
|
+
display: "none";
|
18
|
+
};
|
19
|
+
};
|
20
|
+
};
|
21
|
+
}>;
|
22
|
+
export { consentContent, consentActions };
|
23
|
+
export type ConsentCookieVariants = RecipeVariants<typeof consentRecipe>;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { ConsentCookieVariants } from './ConsentCookie.css';
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
+
export interface ConsentCookieProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, Sprinkles, NonNullable<ConsentCookieVariants> {
|
4
|
+
css?: string;
|
5
|
+
cookieName?: string;
|
6
|
+
cookieExpirationDays?: number;
|
7
|
+
onAccept?: () => void;
|
8
|
+
onReject?: () => void;
|
9
|
+
translations?: {
|
10
|
+
actions: {
|
11
|
+
accept: string;
|
12
|
+
reject: string;
|
13
|
+
};
|
14
|
+
};
|
15
|
+
enableGoogleAnalytics?: boolean;
|
16
|
+
}
|
17
|
+
export declare const ConsentCookie: import('react').ForwardRefExoticComponent<ConsentCookieProps & import('react').RefAttributes<HTMLDivElement>>;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { WithClassName } from '../../types/withClassName';
|
2
|
-
import { Theme } from '../../types/theme';
|
3
|
-
export type ConsentCookieProps = {
|
4
|
-
theme?: Theme;
|
5
|
-
children?: React.ReactNode;
|
6
|
-
cookieName?: string;
|
7
|
-
cookieExpirationDays?: number;
|
8
|
-
translations?: {
|
9
|
-
actions: {
|
10
|
-
accept: string;
|
11
|
-
reject: string;
|
12
|
-
};
|
13
|
-
};
|
14
|
-
};
|
15
|
-
export declare const ConsentCookie: ({ children, theme, cookieName, translations, cookieExpirationDays, className, }: ConsentCookieProps & WithClassName) => import("react").JSX.Element | null;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
export declare const footerRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
3
|
+
variant: {
|
4
|
+
default: {
|
5
|
+
backgroundColor: `var(--${string})`;
|
6
|
+
borderTop: `1px solid var(--${string})`;
|
7
|
+
};
|
8
|
+
dark: {
|
9
|
+
backgroundColor: `var(--${string})`;
|
10
|
+
color: `var(--${string})`;
|
11
|
+
borderTop: `1px solid var(--${string})`;
|
12
|
+
};
|
13
|
+
minimal: {
|
14
|
+
backgroundColor: "transparent";
|
15
|
+
borderTop: "none";
|
16
|
+
};
|
17
|
+
};
|
18
|
+
size: {
|
19
|
+
sm: {
|
20
|
+
paddingTop: `var(--${string})`;
|
21
|
+
paddingBottom: `var(--${string})`;
|
22
|
+
fontSize: `var(--${string})`;
|
23
|
+
};
|
24
|
+
md: {
|
25
|
+
paddingTop: `var(--${string})`;
|
26
|
+
paddingBottom: `var(--${string})`;
|
27
|
+
fontSize: `var(--${string})`;
|
28
|
+
};
|
29
|
+
lg: {
|
30
|
+
paddingTop: `var(--${string})`;
|
31
|
+
paddingBottom: `var(--${string})`;
|
32
|
+
fontSize: `var(--${string})`;
|
33
|
+
};
|
34
|
+
};
|
35
|
+
layout: {
|
36
|
+
stacked: {
|
37
|
+
flexDirection: "column";
|
38
|
+
textAlign: "center";
|
39
|
+
};
|
40
|
+
horizontal: {
|
41
|
+
'@media': {
|
42
|
+
[x: string]: {
|
43
|
+
flexDirection: "row";
|
44
|
+
textAlign: "left";
|
45
|
+
};
|
46
|
+
};
|
47
|
+
};
|
48
|
+
};
|
49
|
+
}>;
|
50
|
+
export type FooterVariants = RecipeVariants<typeof footerRecipe>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { FooterVariants } from './Footer.css';
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
+
export interface FooterProps extends Omit<React.HTMLAttributes<HTMLElement>, 'color'>, Sprinkles, NonNullable<FooterVariants> {
|
4
|
+
css?: string;
|
5
|
+
as?: 'footer' | 'div';
|
6
|
+
}
|
7
|
+
export declare const Footer: import('react').ForwardRefExoticComponent<FooterProps & import('react').RefAttributes<HTMLElement>>;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { Theme } from '../../types/theme';
|
2
|
-
import { WithClassName } from '../../types/withClassName';
|
3
|
-
export type FooterProps = {
|
4
|
-
theme?: Theme;
|
5
|
-
children: React.ReactNode;
|
6
|
-
};
|
7
|
-
export declare const Footer: ({ children, className, theme }: FooterProps & WithClassName) => import("react").JSX.Element;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
export declare const formRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
3
|
+
spacing: {
|
4
|
+
none: {
|
5
|
+
gap: number;
|
6
|
+
};
|
7
|
+
sm: {
|
8
|
+
display: "flex";
|
9
|
+
flexDirection: "column";
|
10
|
+
gap: `var(--${string})`;
|
11
|
+
};
|
12
|
+
md: {
|
13
|
+
display: "flex";
|
14
|
+
flexDirection: "column";
|
15
|
+
gap: `var(--${string})`;
|
16
|
+
};
|
17
|
+
lg: {
|
18
|
+
display: "flex";
|
19
|
+
flexDirection: "column";
|
20
|
+
gap: `var(--${string})`;
|
21
|
+
};
|
22
|
+
xl: {
|
23
|
+
display: "flex";
|
24
|
+
flexDirection: "column";
|
25
|
+
gap: `var(--${string})`;
|
26
|
+
};
|
27
|
+
};
|
28
|
+
layout: {
|
29
|
+
stacked: {
|
30
|
+
display: "flex";
|
31
|
+
flexDirection: "column";
|
32
|
+
};
|
33
|
+
inline: {
|
34
|
+
display: "flex";
|
35
|
+
flexDirection: "row";
|
36
|
+
flexWrap: "wrap";
|
37
|
+
alignItems: "flex-end";
|
38
|
+
};
|
39
|
+
grid: {
|
40
|
+
display: "grid";
|
41
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(250px, 1fr))";
|
42
|
+
gap: `var(--${string})`;
|
43
|
+
};
|
44
|
+
};
|
45
|
+
}>;
|
46
|
+
export type FormVariants = RecipeVariants<typeof formRecipe>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { FormVariants } from './Form.css';
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
+
export interface FormProps extends Omit<React.FormHTMLAttributes<HTMLFormElement>, 'color'>, Sprinkles, NonNullable<FormVariants> {
|
4
|
+
css?: string;
|
5
|
+
children: React.ReactNode;
|
6
|
+
}
|
7
|
+
export declare const Form: import('react').ForwardRefExoticComponent<FormProps & import('react').RefAttributes<HTMLFormElement>>;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
export declare const rowRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
3
|
+
align: {
|
4
|
+
left: {
|
5
|
+
justifyContent: "flex-start";
|
6
|
+
textAlign: "left";
|
7
|
+
};
|
8
|
+
center: {
|
9
|
+
justifyContent: "center";
|
10
|
+
textAlign: "center";
|
11
|
+
};
|
12
|
+
right: {
|
13
|
+
justifyContent: "flex-end";
|
14
|
+
textAlign: "right";
|
15
|
+
};
|
16
|
+
};
|
17
|
+
variant: {
|
18
|
+
default: {
|
19
|
+
flexDirection: "column";
|
20
|
+
gap: `var(--${string})`;
|
21
|
+
};
|
22
|
+
actions: {
|
23
|
+
flexDirection: "row";
|
24
|
+
alignItems: "center";
|
25
|
+
gap: `var(--${string})`;
|
26
|
+
marginTop: `var(--${string})`;
|
27
|
+
};
|
28
|
+
message: {
|
29
|
+
flexDirection: "column";
|
30
|
+
padding: `var(--${string})`;
|
31
|
+
backgroundColor: `var(--${string})`;
|
32
|
+
borderRadius: `var(--${string})`;
|
33
|
+
border: `1px solid var(--${string})`;
|
34
|
+
};
|
35
|
+
};
|
36
|
+
spacing: {
|
37
|
+
none: {
|
38
|
+
gap: number;
|
39
|
+
};
|
40
|
+
sm: {
|
41
|
+
gap: `var(--${string})`;
|
42
|
+
};
|
43
|
+
md: {
|
44
|
+
gap: `var(--${string})`;
|
45
|
+
};
|
46
|
+
lg: {
|
47
|
+
gap: `var(--${string})`;
|
48
|
+
};
|
49
|
+
};
|
50
|
+
}>;
|
51
|
+
export type RowVariants = RecipeVariants<typeof rowRecipe>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { RowVariants } from './Row.css';
|
2
|
+
import { Sprinkles } from '../../../styles/sprinkles.css';
|
3
|
+
export interface RowProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, Sprinkles, NonNullable<RowVariants> {
|
4
|
+
css?: string;
|
5
|
+
children: React.ReactNode;
|
6
|
+
isActions?: boolean;
|
7
|
+
isMessage?: boolean;
|
8
|
+
}
|
9
|
+
export declare const Row: import('react').ForwardRefExoticComponent<RowProps & import('react').RefAttributes<HTMLDivElement>>;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { WithClassName } from '../../../types/withClassName';
|
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
|
-
children: React.ReactNode;
|
10
|
-
};
|
11
|
-
export declare const Row: ({ children, theme, className, align, isMessage, isActions, }: RowProps & WithClassName) => import("react").JSX.Element;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
export declare const inputRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
3
|
+
size: {
|
4
|
+
sm: {
|
5
|
+
fontSize: `var(--${string})`;
|
6
|
+
padding: `var(--${string}) var(--${string})`;
|
7
|
+
};
|
8
|
+
md: {};
|
9
|
+
lg: {
|
10
|
+
fontSize: `var(--${string})`;
|
11
|
+
padding: `var(--${string}) var(--${string})`;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
variant: {
|
15
|
+
default: {};
|
16
|
+
filled: {
|
17
|
+
backgroundColor: `var(--${string})`;
|
18
|
+
border: "none";
|
19
|
+
};
|
20
|
+
outlined: {
|
21
|
+
backgroundColor: "transparent";
|
22
|
+
};
|
23
|
+
underlined: {
|
24
|
+
backgroundColor: "transparent";
|
25
|
+
border: "none";
|
26
|
+
borderBottom: `1px solid var(--${string})`;
|
27
|
+
borderRadius: number;
|
28
|
+
padding: `var(--${string}) 0`;
|
29
|
+
};
|
30
|
+
};
|
31
|
+
}>;
|
32
|
+
export type InputVariants = RecipeVariants<typeof inputRecipe>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { InputVariants } from './Input.css';
|
2
|
+
import { Sprinkles } from '../../../../styles/sprinkles.css';
|
3
|
+
export type InputType = 'text' | 'email' | 'search' | 'number' | 'hidden' | 'password' | 'tel' | 'url' | 'date' | 'time' | 'datetime-local' | 'color';
|
4
|
+
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'color' | 'size' | 'height' | 'width'>, Sprinkles, NonNullable<InputVariants> {
|
5
|
+
css?: string;
|
6
|
+
name: string;
|
7
|
+
type?: InputType;
|
8
|
+
hasError?: boolean;
|
9
|
+
}
|
10
|
+
export declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { WithClassName } from '../../../../types/withClassName';
|
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
|
-
onChange?: (e: {
|
13
|
-
target: {
|
14
|
-
value: string | undefined;
|
15
|
-
};
|
16
|
-
}) => void | undefined;
|
17
|
-
};
|
18
|
-
export declare const TextFieldInput: ({ name, value, type, disabled, placeholder, theme, onChange, className, }: TextFieldInputProps & WithClassName) => import("react").JSX.Element;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
export declare const labelRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
3
|
+
size: {
|
4
|
+
sm: {
|
5
|
+
fontSize: `var(--${string})`;
|
6
|
+
paddingBottom: `var(--${string})`;
|
7
|
+
};
|
8
|
+
md: {};
|
9
|
+
lg: {
|
10
|
+
fontSize: `var(--${string})`;
|
11
|
+
paddingBottom: `var(--${string})`;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
variant: {
|
15
|
+
default: {};
|
16
|
+
inline: {
|
17
|
+
display: "inline-block";
|
18
|
+
marginRight: `var(--${string})`;
|
19
|
+
paddingBottom: number;
|
20
|
+
};
|
21
|
+
};
|
22
|
+
}>;
|
23
|
+
export type LabelVariants = RecipeVariants<typeof labelRecipe>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { LabelVariants } from './Label.css';
|
2
|
+
import { Sprinkles } from '../../../../styles/sprinkles.css';
|
3
|
+
export interface LabelProps extends Omit<React.LabelHTMLAttributes<HTMLLabelElement>, 'color'>, Sprinkles, NonNullable<LabelVariants> {
|
4
|
+
css?: string;
|
5
|
+
label: string;
|
6
|
+
name: string;
|
7
|
+
required?: boolean;
|
8
|
+
}
|
9
|
+
export declare const Label: import('react').ForwardRefExoticComponent<LabelProps & import('react').RefAttributes<HTMLLabelElement>>;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { WithClassName } from '../../../../types/withClassName';
|
2
|
-
import { Theme } from '../../../../types/theme';
|
3
|
-
export type TextFieldLabelProps = {
|
4
|
-
name: string;
|
5
|
-
label: string;
|
6
|
-
theme?: Theme;
|
7
|
-
required?: boolean;
|
8
|
-
};
|
9
|
-
export declare const TextFieldLabel: ({ name, label, required, theme, className, }: TextFieldLabelProps & WithClassName) => import("react").JSX.Element;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
declare const labelBase: string;
|
3
|
+
declare const inputBase: string;
|
4
|
+
declare const textareaBase: string;
|
5
|
+
declare const messageContainer: string;
|
6
|
+
declare const errorMessage: string;
|
7
|
+
export declare const textFieldRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
8
|
+
size: {
|
9
|
+
sm: {
|
10
|
+
gap: `var(--${string})`;
|
11
|
+
};
|
12
|
+
md: {};
|
13
|
+
lg: {
|
14
|
+
gap: `var(--${string})`;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
}>;
|
18
|
+
export { labelBase, inputBase, textareaBase, messageContainer, errorMessage };
|
19
|
+
export type TextFieldVariants = RecipeVariants<typeof textFieldRecipe>;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { Sprinkles } from '../../../styles/sprinkles.css';
|
2
|
+
import { TextFieldVariants } from './TextField.css';
|
3
|
+
export type InputType = 'text' | 'email' | 'search' | 'number' | 'hidden' | 'password' | 'textarea';
|
4
|
+
export interface TextFieldProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color' | 'onChange'>, Sprinkles, NonNullable<TextFieldVariants> {
|
5
|
+
css?: string;
|
6
|
+
name: string;
|
7
|
+
label?: string;
|
8
|
+
value?: string;
|
9
|
+
rows?: number;
|
10
|
+
disabled?: boolean;
|
11
|
+
required?: boolean;
|
12
|
+
placeholder?: string;
|
13
|
+
errors?: string | string[];
|
14
|
+
type?: InputType;
|
15
|
+
onChange?: (e: {
|
16
|
+
target: {
|
17
|
+
value: string | undefined;
|
18
|
+
};
|
19
|
+
}) => void | undefined;
|
20
|
+
}
|
21
|
+
export declare const TextField: import('react').ForwardRefExoticComponent<TextFieldProps & import('react').RefAttributes<HTMLDivElement>>;
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
export declare const textareaRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
3
|
+
size: {
|
4
|
+
sm: {
|
5
|
+
fontSize: `var(--${string})`;
|
6
|
+
padding: `var(--${string}) var(--${string})`;
|
7
|
+
minHeight: "60px";
|
8
|
+
};
|
9
|
+
md: {};
|
10
|
+
lg: {
|
11
|
+
fontSize: `var(--${string})`;
|
12
|
+
padding: `var(--${string}) var(--${string})`;
|
13
|
+
minHeight: "100px";
|
14
|
+
};
|
15
|
+
};
|
16
|
+
variant: {
|
17
|
+
default: {};
|
18
|
+
filled: {
|
19
|
+
backgroundColor: `var(--${string})`;
|
20
|
+
border: "none";
|
21
|
+
':focus': {
|
22
|
+
backgroundColor: `var(--${string})`;
|
23
|
+
border: `1px solid var(--${string})`;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
outlined: {
|
27
|
+
backgroundColor: "transparent";
|
28
|
+
};
|
29
|
+
underlined: {
|
30
|
+
backgroundColor: "transparent";
|
31
|
+
border: "none";
|
32
|
+
borderBottom: `1px solid var(--${string})`;
|
33
|
+
borderRadius: number;
|
34
|
+
padding: `var(--${string}) 0`;
|
35
|
+
':focus': {
|
36
|
+
borderBottom: `2px solid var(--${string})`;
|
37
|
+
outline: "none";
|
38
|
+
};
|
39
|
+
};
|
40
|
+
};
|
41
|
+
resize: {
|
42
|
+
vertical: {
|
43
|
+
resize: "vertical";
|
44
|
+
};
|
45
|
+
horizontal: {
|
46
|
+
resize: "horizontal";
|
47
|
+
};
|
48
|
+
both: {
|
49
|
+
resize: "both";
|
50
|
+
};
|
51
|
+
none: {
|
52
|
+
resize: "none";
|
53
|
+
};
|
54
|
+
};
|
55
|
+
}>;
|
56
|
+
export type TextareaVariants = RecipeVariants<typeof textareaRecipe>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { TextareaVariants } from './Textarea.css';
|
2
|
+
import { Sprinkles } from '../../../../styles/sprinkles.css';
|
3
|
+
export interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'color' | 'size'>, Sprinkles, NonNullable<TextareaVariants> {
|
4
|
+
css?: string;
|
5
|
+
name: string;
|
6
|
+
hasError?: boolean;
|
7
|
+
}
|
8
|
+
export declare const Textarea: import('react').ForwardRefExoticComponent<TextareaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { WithClassName } from '../../../../types/withClassName';
|
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
|
-
onChange?: (e: {
|
11
|
-
target: {
|
12
|
-
value: string | undefined;
|
13
|
-
};
|
14
|
-
}) => void | undefined;
|
15
|
-
};
|
16
|
-
export declare const TextFieldTextarea: ({ name, value, rows, disabled, placeholder, onChange, theme, className, }: TextFieldTextareaProps & WithClassName) => import("react").JSX.Element;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { WithClassName } from '../../../types/withClassName';
|
2
|
-
import { Theme } from '../../../types/theme';
|
3
|
-
import { Type as InputType } from './Input/types';
|
4
|
-
import { Type as TextAreaType } from './Textarea/types';
|
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
|
-
errors?: string | string[];
|
15
|
-
type?: InputType | TextAreaType;
|
16
|
-
onChange?: (e: {
|
17
|
-
target: {
|
18
|
-
value: string | undefined;
|
19
|
-
};
|
20
|
-
}) => void | undefined;
|
21
|
-
};
|
22
|
-
export declare const TextField: ({ name, label, value, rows, required, disabled, placeholder, errors, theme, onChange, type, className, }: TextFieldProps & WithClassName) => import("react").JSX.Element;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { WithClassName } from '../../types/withClassName';
|
2
|
-
import { Theme } from '../../types/theme';
|
3
|
-
export type FormProps = {
|
4
|
-
theme?: Theme;
|
5
|
-
children: React.ReactNode;
|
6
|
-
action: ((formData: FormData) => void | Promise<void>) | string;
|
7
|
-
};
|
8
|
-
export declare const Form: ({ action, children, theme, className }: FormProps & WithClassName) => import("react").JSX.Element;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
export declare const headerRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
3
|
+
position: {
|
4
|
+
relative: {
|
5
|
+
position: "relative";
|
6
|
+
};
|
7
|
+
fixed: {
|
8
|
+
position: "fixed";
|
9
|
+
top: number;
|
10
|
+
left: number;
|
11
|
+
right: number;
|
12
|
+
};
|
13
|
+
sticky: {
|
14
|
+
position: "sticky";
|
15
|
+
top: number;
|
16
|
+
};
|
17
|
+
};
|
18
|
+
variant: {
|
19
|
+
default: {
|
20
|
+
backgroundColor: `var(--${string})`;
|
21
|
+
borderBottom: `1px solid var(--${string})`;
|
22
|
+
};
|
23
|
+
transparent: {
|
24
|
+
backgroundColor: "transparent";
|
25
|
+
borderBottom: "none";
|
26
|
+
};
|
27
|
+
dark: {
|
28
|
+
backgroundColor: `var(--${string})`;
|
29
|
+
color: `var(--${string})`;
|
30
|
+
};
|
31
|
+
};
|
32
|
+
size: {
|
33
|
+
sm: {
|
34
|
+
height: "60px";
|
35
|
+
paddingTop: `var(--${string})`;
|
36
|
+
paddingBottom: `var(--${string})`;
|
37
|
+
};
|
38
|
+
md: {
|
39
|
+
height: `var(--${string})`;
|
40
|
+
paddingTop: `var(--${string})`;
|
41
|
+
paddingBottom: `var(--${string})`;
|
42
|
+
};
|
43
|
+
lg: {
|
44
|
+
height: "100px";
|
45
|
+
paddingTop: `var(--${string})`;
|
46
|
+
paddingBottom: `var(--${string})`;
|
47
|
+
};
|
48
|
+
};
|
49
|
+
}>;
|
50
|
+
export declare const headerPlaceholder: string;
|
51
|
+
export type HeaderVariants = RecipeVariants<typeof headerRecipe>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { HeaderVariants } from './Header.css';
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
+
export interface HeaderProps extends Omit<React.HTMLAttributes<HTMLElement>, 'color'>, Sprinkles, NonNullable<HeaderVariants> {
|
4
|
+
css?: string;
|
5
|
+
isFixed?: boolean;
|
6
|
+
hideToggleNav?: boolean;
|
7
|
+
childrenOverlay?: React.ReactNode;
|
8
|
+
displayToggleNavOnDesktop?: boolean;
|
9
|
+
as?: 'header' | 'div';
|
10
|
+
}
|
11
|
+
export declare const Header: import('react').ForwardRefExoticComponent<HeaderProps & import('react').RefAttributes<HTMLElement>>;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { WithClassName } from '../../../types/withClassName';
|
2
1
|
import { Theme } from '../../../types/theme';
|
2
|
+
import { WithClassName } from '../../../types/withClassName';
|
3
3
|
export interface HeaderOverlayProps {
|
4
4
|
theme: Theme;
|
5
5
|
isOpen: boolean;
|
6
6
|
children: React.ReactNode;
|
7
7
|
}
|
8
|
-
declare const HeaderOverlay: ({ theme, isOpen, children, className
|
8
|
+
declare const HeaderOverlay: ({ theme, isOpen, children, className }: HeaderOverlayProps & WithClassName) => import("react").JSX.Element;
|
9
9
|
export default HeaderOverlay;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { WithClassName } from '../../../types/withClassName';
|
2
1
|
import { Theme } from '../../../types/theme';
|
2
|
+
import { WithClassName } from '../../../types/withClassName';
|
3
3
|
export type ToggleNavProps = {
|
4
4
|
theme?: Theme;
|
5
5
|
isNavOpen: boolean;
|
6
6
|
onToggleNav: () => void;
|
7
7
|
displayOnDesktop: boolean;
|
8
8
|
};
|
9
|
-
export declare const ToggleNav: ({ theme, isNavOpen, onToggleNav, displayOnDesktop, className
|
9
|
+
export declare const ToggleNav: ({ theme, isNavOpen, onToggleNav, displayOnDesktop, className }: ToggleNavProps & WithClassName) => import("react").JSX.Element;
|