@latte-macchiat-io/latte-vanilla-components 0.0.175 → 0.0.177
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/package.json +12 -23
- package/src/assets/styles/default-theme.ts +312 -0
- package/src/components/Button/stories.ts +127 -0
- package/src/components/Columns/stories.ts +35 -0
- package/src/components/Icon/path.ts +36 -0
- package/src/components/Icon/stories.ts +29 -0
- package/src/components/Main/stories.ts +33 -0
- package/src/components/Section/stories.ts +64 -0
- package/{dist/types/index.d.ts → src/index.ts} +38 -0
- package/src/styles/mediaqueries.ts +17 -0
- package/src/theme/baseThemeValues.ts +160 -0
- package/src/theme/index.ts +6 -0
- package/src/theme/utils.ts +76 -0
- package/src/types/theme.ts +295 -0
- package/src/types/withClassName.ts +3 -0
- package/src/utils/cookie.ts +24 -0
- package/src/utils/deep-merge-objects.ts +15 -0
- package/src/utils/use-breakpoint-key.ts +30 -0
- package/src/utils/use-window-size.ts +37 -0
- package/dist/components/Actions/Actions.css.ts +0 -113
- package/dist/components/Button/Button.css.ts +0 -119
- package/dist/components/Carousel/Carousel.css.ts +0 -179
- package/dist/components/Columns/Columns.css.ts +0 -185
- package/dist/components/ConsentCookie/ConsentCookie.css.ts +0 -167
- package/dist/components/Footer/Footer.css.ts +0 -108
- package/dist/components/Form/Form.css.ts +0 -64
- package/dist/components/Form/Row/Row.css.ts +0 -70
- package/dist/components/Form/TextField/Input/Input.css.ts +0 -106
- package/dist/components/Form/TextField/Label/Label.css.ts +0 -58
- package/dist/components/Form/TextField/TextField.css.ts +0 -139
- package/dist/components/Form/TextField/Textarea/Textarea.css.ts +0 -121
- package/dist/components/Header/Header.css.ts +0 -111
- package/dist/components/Header/HeaderOverlay/styles.css.ts +0 -33
- package/dist/components/Header/ToggleNav/styles.css.ts +0 -40
- package/dist/components/Icon/Icon.css.ts +0 -102
- package/dist/components/KeyNumber/KeyNumber.css.ts +0 -158
- package/dist/components/LanguageSwitcher/LanguageSwitcher.css.ts +0 -120
- package/dist/components/Logo/Logo.css.ts +0 -98
- package/dist/components/Main/Main.css.ts +0 -62
- package/dist/components/Modal/Modal.css.ts +0 -203
- package/dist/components/Nav/Nav.css.ts +0 -123
- package/dist/components/NavLegal/NavLegal.css.ts +0 -121
- package/dist/components/NavSocial/NavSocial.css.ts +0 -121
- package/dist/components/Section/Section.css.ts +0 -101
- package/dist/components/Video/Video.css.ts +0 -210
- package/dist/components/VideoFullWidth/VideoFullWidth.css.ts +0 -50
- package/dist/index.cjs.js +0 -2
- package/dist/index.es.js +0 -6813
- package/dist/styles/sprinkles.css.ts +0 -84
- package/dist/theme/contract.css.ts +0 -83
- package/dist/types/components/Actions/Actions.css.d.ts +0 -74
- package/dist/types/components/Actions/Actions.d.ts +0 -7
- package/dist/types/components/Actions/export.d.ts +0 -0
- package/dist/types/components/Actions/stories.d.ts +0 -0
- package/dist/types/components/Button/Button.css.d.ts +0 -65
- package/dist/types/components/Button/Button.d.ts +0 -8
- package/dist/types/components/Button/export.d.ts +0 -0
- package/dist/types/components/Button/stories.d.ts +0 -0
- package/dist/types/components/Carousel/Carousel.css.d.ts +0 -33
- package/dist/types/components/Carousel/Carousel.d.ts +0 -15
- package/dist/types/components/Carousel/export.d.ts +0 -0
- package/dist/types/components/Columns/Columns.css.d.ts +0 -104
- package/dist/types/components/Columns/Columns.d.ts +0 -8
- package/dist/types/components/Columns/export.d.ts +0 -0
- package/dist/types/components/Columns/stories.d.ts +0 -0
- package/dist/types/components/ConsentCookie/ConsentCookie.css.d.ts +0 -15
- package/dist/types/components/ConsentCookie/ConsentCookie.d.ts +0 -17
- package/dist/types/components/ConsentCookie/export.d.ts +0 -0
- package/dist/types/components/ConsentCookie/stories.d.ts +0 -0
- package/dist/types/components/Footer/Footer.css.d.ts +0 -50
- package/dist/types/components/Footer/Footer.d.ts +0 -7
- package/dist/types/components/Footer/export.d.ts +0 -0
- package/dist/types/components/Footer/stories.d.ts +0 -6
- package/dist/types/components/Form/Form.css.d.ts +0 -46
- package/dist/types/components/Form/Form.d.ts +0 -7
- package/dist/types/components/Form/Row/Row.css.d.ts +0 -51
- package/dist/types/components/Form/Row/Row.d.ts +0 -9
- package/dist/types/components/Form/Row/index.d.ts +0 -0
- package/dist/types/components/Form/Row/stories.d.ts +0 -0
- package/dist/types/components/Form/TextField/Input/Input.css.d.ts +0 -32
- package/dist/types/components/Form/TextField/Input/Input.d.ts +0 -10
- package/dist/types/components/Form/TextField/Input/export.d.ts +0 -0
- package/dist/types/components/Form/TextField/Label/Label.css.d.ts +0 -23
- package/dist/types/components/Form/TextField/Label/Label.d.ts +0 -9
- package/dist/types/components/Form/TextField/Label/export.d.ts +0 -0
- package/dist/types/components/Form/TextField/TextField.css.d.ts +0 -19
- package/dist/types/components/Form/TextField/TextField.d.ts +0 -21
- package/dist/types/components/Form/TextField/Textarea/Textarea.css.d.ts +0 -56
- package/dist/types/components/Form/TextField/Textarea/Textarea.d.ts +0 -8
- package/dist/types/components/Form/TextField/Textarea/export.d.ts +0 -0
- package/dist/types/components/Form/TextField/Textarea/stories.d.ts +0 -0
- package/dist/types/components/Form/TextField/export.d.ts +0 -0
- package/dist/types/components/Form/export.d.ts +0 -0
- package/dist/types/components/Header/Header.css.d.ts +0 -36
- package/dist/types/components/Header/Header.d.ts +0 -11
- package/dist/types/components/Header/HeaderOverlay/index.d.ts +0 -7
- package/dist/types/components/Header/HeaderOverlay/styles.css.d.ts +0 -5
- package/dist/types/components/Header/ToggleNav/index.d.ts +0 -9
- package/dist/types/components/Header/ToggleNav/styles.css.d.ts +0 -5
- package/dist/types/components/Header/export.d.ts +0 -0
- package/dist/types/components/Header/stories.d.ts +0 -6
- package/dist/types/components/Icon/Icon.css.d.ts +0 -45
- package/dist/types/components/Icon/Icon.d.ts +0 -12
- package/dist/types/components/Icon/export.d.ts +0 -0
- package/dist/types/components/Icon/path.d.ts +0 -19
- package/dist/types/components/Icon/stories.d.ts +0 -0
- package/dist/types/components/KeyNumber/KeyNumber.css.d.ts +0 -40
- package/dist/types/components/KeyNumber/KeyNumber.d.ts +0 -15
- package/dist/types/components/KeyNumber/export.d.ts +0 -0
- package/dist/types/components/LanguageSwitcher/LanguageSwitcher.css.d.ts +0 -18
- package/dist/types/components/LanguageSwitcher/LanguageSwitcher.d.ts +0 -16
- package/dist/types/components/LanguageSwitcher/export.d.ts +0 -0
- package/dist/types/components/Logo/Logo.css.d.ts +0 -54
- package/dist/types/components/Logo/Logo.d.ts +0 -8
- package/dist/types/components/Logo/export.d.ts +0 -0
- package/dist/types/components/Logo/stories.d.ts +0 -6
- package/dist/types/components/Main/Main.css.d.ts +0 -32
- package/dist/types/components/Main/Main.d.ts +0 -7
- package/dist/types/components/Main/export.d.ts +0 -0
- package/dist/types/components/Main/stories.d.ts +0 -0
- package/dist/types/components/Modal/Modal.css.d.ts +0 -82
- package/dist/types/components/Modal/Modal.d.ts +0 -15
- package/dist/types/components/Modal/export.d.ts +0 -0
- package/dist/types/components/Modal/types.d.ts +0 -5
- package/dist/types/components/Nav/Nav.css.d.ts +0 -52
- package/dist/types/components/Nav/Nav.d.ts +0 -7
- package/dist/types/components/Nav/export.d.ts +0 -0
- package/dist/types/components/Nav/stories.d.ts +0 -6
- package/dist/types/components/NavLegal/NavLegal.css.d.ts +0 -57
- package/dist/types/components/NavLegal/NavLegal.d.ts +0 -7
- package/dist/types/components/NavLegal/export.d.ts +0 -0
- package/dist/types/components/NavLegal/stories.d.ts +0 -6
- package/dist/types/components/NavLegal/types.d.ts +0 -1
- package/dist/types/components/NavSocial/NavSocial.css.d.ts +0 -30
- package/dist/types/components/NavSocial/NavSocial.d.ts +0 -15
- package/dist/types/components/NavSocial/export.d.ts +0 -0
- package/dist/types/components/NavSocial/stories.d.ts +0 -0
- package/dist/types/components/NavSocial/types.d.ts +0 -1
- package/dist/types/components/Section/Section.css.d.ts +0 -60
- package/dist/types/components/Section/Section.d.ts +0 -7
- package/dist/types/components/Section/export.d.ts +0 -0
- package/dist/types/components/Section/stories.d.ts +0 -0
- package/dist/types/components/ToRemove/ToRemove.d.ts +0 -1
- package/dist/types/components/Video/Video.css.d.ts +0 -43
- package/dist/types/components/Video/Video.d.ts +0 -17
- package/dist/types/components/Video/export.d.ts +0 -0
- package/dist/types/components/VideoFullWidth/VideoFullWidth.css.d.ts +0 -18
- package/dist/types/components/VideoFullWidth/VideoFullWidth.d.ts +0 -14
- package/dist/types/components/VideoFullWidth/export.d.ts +0 -0
- package/dist/types/utils/cookie.d.ts +0 -2
- package/dist/types/utils/deep-merge-objects.d.ts +0 -2
- package/dist/types/utils/theme.css.d.ts +0 -173
- package/dist/types/utils/use-breakpoint-key.d.ts +0 -1
- package/dist/types/utils/use-window-size.d.ts +0 -5
- package/dist/utils/theme.css.ts +0 -129
@@ -1,51 +0,0 @@
|
|
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>;
|
@@ -1,9 +0,0 @@
|
|
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>>;
|
File without changes
|
File without changes
|
@@ -1,32 +0,0 @@
|
|
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>;
|
@@ -1,10 +0,0 @@
|
|
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>>;
|
File without changes
|
@@ -1,23 +0,0 @@
|
|
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>;
|
@@ -1,9 +0,0 @@
|
|
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>>;
|
File without changes
|
@@ -1,19 +0,0 @@
|
|
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>;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { TextFieldVariants } from './TextField.css';
|
2
|
-
import { Sprinkles } from '../../../styles/sprinkles.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>>;
|
@@ -1,56 +0,0 @@
|
|
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>;
|
@@ -1,8 +0,0 @@
|
|
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>>;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,36 +0,0 @@
|
|
1
|
-
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
-
export declare const headerRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
3
|
-
variant: {
|
4
|
-
default: {
|
5
|
-
backgroundColor: `var(--${string})`;
|
6
|
-
borderBottom: `1px solid var(--${string})`;
|
7
|
-
};
|
8
|
-
transparent: {
|
9
|
-
backgroundColor: "transparent";
|
10
|
-
borderBottom: "none";
|
11
|
-
};
|
12
|
-
dark: {
|
13
|
-
backgroundColor: `var(--${string})`;
|
14
|
-
color: `var(--${string})`;
|
15
|
-
};
|
16
|
-
};
|
17
|
-
size: {
|
18
|
-
sm: {
|
19
|
-
height: "60px";
|
20
|
-
paddingTop: `var(--${string})`;
|
21
|
-
paddingBottom: `var(--${string})`;
|
22
|
-
};
|
23
|
-
md: {
|
24
|
-
height: `var(--${string})`;
|
25
|
-
paddingTop: `var(--${string})`;
|
26
|
-
paddingBottom: `var(--${string})`;
|
27
|
-
};
|
28
|
-
lg: {
|
29
|
-
height: "100px";
|
30
|
-
paddingTop: `var(--${string})`;
|
31
|
-
paddingBottom: `var(--${string})`;
|
32
|
-
};
|
33
|
-
};
|
34
|
-
}>;
|
35
|
-
export declare const headerPlaceholder: string;
|
36
|
-
export type HeaderVariants = RecipeVariants<typeof headerRecipe>;
|
@@ -1,11 +0,0 @@
|
|
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,7 +0,0 @@
|
|
1
|
-
import { WithClassName } from '../../../types/withClassName';
|
2
|
-
export interface HeaderOverlayProps {
|
3
|
-
isOpen: boolean;
|
4
|
-
children: React.ReactNode;
|
5
|
-
}
|
6
|
-
declare const HeaderOverlay: ({ isOpen, children, className }: HeaderOverlayProps & WithClassName) => import("react").JSX.Element;
|
7
|
-
export default HeaderOverlay;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { Theme } from '../../../types/theme';
|
2
|
-
import { WithClassName } from '../../../types/withClassName';
|
3
|
-
export type ToggleNavProps = {
|
4
|
-
theme?: Theme;
|
5
|
-
isNavOpen: boolean;
|
6
|
-
onToggleNav: () => void;
|
7
|
-
displayOnDesktop: boolean;
|
8
|
-
};
|
9
|
-
export declare const ToggleNav: ({ theme, isNavOpen, onToggleNav, displayOnDesktop, className }: ToggleNavProps & WithClassName) => import("react").JSX.Element;
|
File without changes
|
@@ -1,45 +0,0 @@
|
|
1
|
-
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
-
declare const iconPath: string;
|
3
|
-
export declare const iconRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
4
|
-
size: {
|
5
|
-
xs: {
|
6
|
-
width: "12px";
|
7
|
-
height: "12px";
|
8
|
-
};
|
9
|
-
sm: {
|
10
|
-
width: "16px";
|
11
|
-
height: "16px";
|
12
|
-
};
|
13
|
-
md: {
|
14
|
-
width: "24px";
|
15
|
-
height: "24px";
|
16
|
-
};
|
17
|
-
lg: {
|
18
|
-
width: "32px";
|
19
|
-
height: "32px";
|
20
|
-
};
|
21
|
-
xl: {
|
22
|
-
width: "48px";
|
23
|
-
height: "48px";
|
24
|
-
};
|
25
|
-
'2xl': {
|
26
|
-
width: "64px";
|
27
|
-
height: "64px";
|
28
|
-
};
|
29
|
-
};
|
30
|
-
interactive: {
|
31
|
-
true: {
|
32
|
-
cursor: "pointer";
|
33
|
-
':hover': {
|
34
|
-
transform: "scale(1.1)";
|
35
|
-
opacity: number;
|
36
|
-
};
|
37
|
-
':active': {
|
38
|
-
transform: "scale(0.95)";
|
39
|
-
};
|
40
|
-
};
|
41
|
-
false: {};
|
42
|
-
};
|
43
|
-
}>;
|
44
|
-
export { iconPath };
|
45
|
-
export type IconVariants = RecipeVariants<typeof iconRecipe>;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { IconVariants } from './Icon.css';
|
2
|
-
import { default as iconPaths } from './path';
|
3
|
-
import { Sprinkles } from '../../styles/sprinkles.css';
|
4
|
-
export interface IconProps extends Omit<React.SVGProps<SVGSVGElement>, 'color' | 'size' | 'display' | 'fontFamily' | 'fontSize' | 'fontWeight' | 'height' | 'opacity' | 'overflow' | 'width'>, Sprinkles, NonNullable<IconVariants> {
|
5
|
-
css?: string;
|
6
|
-
icon?: keyof typeof iconPaths;
|
7
|
-
iconPath?: string;
|
8
|
-
customSize?: number;
|
9
|
-
customColor?: string;
|
10
|
-
viewBox?: string;
|
11
|
-
}
|
12
|
-
export declare const Icon: import('react').ForwardRefExoticComponent<Omit<IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
File without changes
|
@@ -1,19 +0,0 @@
|
|
1
|
-
declare const icons: {
|
2
|
-
caret: string;
|
3
|
-
close: string;
|
4
|
-
arrowBack: string;
|
5
|
-
arrowForward: string;
|
6
|
-
play: string;
|
7
|
-
pause: string;
|
8
|
-
volumeMute: string;
|
9
|
-
volumeUp: string;
|
10
|
-
socialFacebook: string;
|
11
|
-
socialInstagram: string;
|
12
|
-
socialPinterest: string;
|
13
|
-
socialLinkedIn: string;
|
14
|
-
socialSpotify: string;
|
15
|
-
socialTiktok: string;
|
16
|
-
socialX: string;
|
17
|
-
socialYoutube: string;
|
18
|
-
};
|
19
|
-
export default icons;
|
File without changes
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
-
declare const keyNumberValue: string;
|
3
|
-
declare const keyNumberLabel: string;
|
4
|
-
export declare const keyNumberRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
5
|
-
size: {
|
6
|
-
sm: {};
|
7
|
-
md: {};
|
8
|
-
lg: {};
|
9
|
-
};
|
10
|
-
variant: {
|
11
|
-
default: {};
|
12
|
-
highlighted: {
|
13
|
-
padding: `var(--${string})`;
|
14
|
-
backgroundColor: `var(--${string})`;
|
15
|
-
borderRadius: `var(--${string})`;
|
16
|
-
boxShadow: `var(--${string})`;
|
17
|
-
};
|
18
|
-
outlined: {
|
19
|
-
padding: `var(--${string})`;
|
20
|
-
border: `2px solid var(--${string})`;
|
21
|
-
borderRadius: `var(--${string})`;
|
22
|
-
};
|
23
|
-
};
|
24
|
-
align: {
|
25
|
-
left: {
|
26
|
-
alignItems: "flex-start";
|
27
|
-
textAlign: "left";
|
28
|
-
};
|
29
|
-
center: {
|
30
|
-
alignItems: "center";
|
31
|
-
textAlign: "center";
|
32
|
-
};
|
33
|
-
right: {
|
34
|
-
alignItems: "flex-end";
|
35
|
-
textAlign: "right";
|
36
|
-
};
|
37
|
-
};
|
38
|
-
}>;
|
39
|
-
export { keyNumberValue, keyNumberLabel };
|
40
|
-
export type KeyNumberVariants = RecipeVariants<typeof keyNumberRecipe>;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { KeyNumberVariants } from './KeyNumber.css';
|
2
|
-
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
-
export interface KeyNumberProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, Sprinkles, NonNullable<KeyNumberVariants> {
|
4
|
-
css?: string;
|
5
|
-
value: number;
|
6
|
-
label: string;
|
7
|
-
suffix?: string;
|
8
|
-
prefix?: string;
|
9
|
-
duration?: number;
|
10
|
-
threshold?: number;
|
11
|
-
separator?: string;
|
12
|
-
decimals?: number;
|
13
|
-
as?: 'div' | 'section' | 'article';
|
14
|
-
}
|
15
|
-
export declare const KeyNumber: import('react').ForwardRefExoticComponent<KeyNumberProps & import('react').RefAttributes<HTMLDivElement>>;
|
File without changes
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
-
declare const languageSwitcherSelect: string;
|
3
|
-
declare const languageSwitcherIcon: string;
|
4
|
-
export declare const languageSwitcherRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
5
|
-
variant: {
|
6
|
-
default: {};
|
7
|
-
minimal: {};
|
8
|
-
outlined: {};
|
9
|
-
filled: {};
|
10
|
-
};
|
11
|
-
size: {
|
12
|
-
sm: {};
|
13
|
-
md: {};
|
14
|
-
lg: {};
|
15
|
-
};
|
16
|
-
}>;
|
17
|
-
export { languageSwitcherSelect, languageSwitcherIcon };
|
18
|
-
export type LanguageSwitcherVariants = RecipeVariants<typeof languageSwitcherRecipe>;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { LanguageSwitcherVariants } from './LanguageSwitcher.css';
|
2
|
-
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
-
export interface Locale {
|
4
|
-
code: string;
|
5
|
-
name: string;
|
6
|
-
label?: string;
|
7
|
-
}
|
8
|
-
export interface LanguageSwitcherProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color' | 'onChange'>, Sprinkles, NonNullable<LanguageSwitcherVariants> {
|
9
|
-
css?: string;
|
10
|
-
locales: Locale[];
|
11
|
-
currentLocale: string;
|
12
|
-
onChange: (locale: string) => void;
|
13
|
-
disabled?: boolean;
|
14
|
-
placeholder?: string;
|
15
|
-
}
|
16
|
-
export declare const LanguageSwitcher: import('react').ForwardRefExoticComponent<LanguageSwitcherProps & import('react').RefAttributes<HTMLDivElement>>;
|
File without changes
|
@@ -1,54 +0,0 @@
|
|
1
|
-
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
-
export declare const logoRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
3
|
-
size: {
|
4
|
-
xs: {
|
5
|
-
width: "80px";
|
6
|
-
height: "auto";
|
7
|
-
};
|
8
|
-
sm: {
|
9
|
-
width: "120px";
|
10
|
-
height: "auto";
|
11
|
-
};
|
12
|
-
md: {
|
13
|
-
width: "160px";
|
14
|
-
height: "auto";
|
15
|
-
};
|
16
|
-
lg: {
|
17
|
-
width: "200px";
|
18
|
-
height: "auto";
|
19
|
-
};
|
20
|
-
xl: {
|
21
|
-
width: "240px";
|
22
|
-
height: "auto";
|
23
|
-
};
|
24
|
-
auto: {
|
25
|
-
width: "auto";
|
26
|
-
height: "auto";
|
27
|
-
};
|
28
|
-
};
|
29
|
-
variant: {
|
30
|
-
default: {};
|
31
|
-
link: {
|
32
|
-
cursor: "pointer";
|
33
|
-
transition: "all 0.3s ease-in-out";
|
34
|
-
':hover': {
|
35
|
-
opacity: "0.8";
|
36
|
-
transform: "scale(1.05)";
|
37
|
-
};
|
38
|
-
':focus': {
|
39
|
-
outline: "2px solid";
|
40
|
-
outlineColor: `var(--${string})`;
|
41
|
-
outlineOffset: "2px";
|
42
|
-
borderRadius: `var(--${string})`;
|
43
|
-
};
|
44
|
-
};
|
45
|
-
};
|
46
|
-
responsive: {
|
47
|
-
true: {
|
48
|
-
maxWidth: "100%";
|
49
|
-
height: "auto";
|
50
|
-
};
|
51
|
-
false: {};
|
52
|
-
};
|
53
|
-
}>;
|
54
|
-
export type LogoVariants = RecipeVariants<typeof logoRecipe>;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { LogoVariants } from './Logo.css';
|
2
|
-
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
-
export interface LogoProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, Sprinkles, NonNullable<LogoVariants> {
|
4
|
-
css?: string;
|
5
|
-
as?: 'div' | 'a' | 'span';
|
6
|
-
href?: string;
|
7
|
-
}
|
8
|
-
export declare const Logo: import('react').ForwardRefExoticComponent<LogoProps & import('react').RefAttributes<HTMLDivElement>>;
|
File without changes
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
-
export declare const mainRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
3
|
-
centered: {
|
4
|
-
true: {
|
5
|
-
justifyContent: "center";
|
6
|
-
alignItems: "center";
|
7
|
-
};
|
8
|
-
false: {
|
9
|
-
justifyContent: "flex-start";
|
10
|
-
alignItems: "stretch";
|
11
|
-
};
|
12
|
-
};
|
13
|
-
fullWidth: {
|
14
|
-
true: {
|
15
|
-
maxWidth: "100%";
|
16
|
-
};
|
17
|
-
false: {
|
18
|
-
maxWidth: `var(--${string})`;
|
19
|
-
};
|
20
|
-
};
|
21
|
-
noPadding: {
|
22
|
-
true: {
|
23
|
-
paddingTop: "0";
|
24
|
-
paddingBottom: "0";
|
25
|
-
};
|
26
|
-
false: {
|
27
|
-
paddingTop: `var(--${string})`;
|
28
|
-
paddingBottom: `var(--${string})`;
|
29
|
-
};
|
30
|
-
};
|
31
|
-
}>;
|
32
|
-
export type MainVariants = RecipeVariants<typeof mainRecipe>;
|