@latte-macchiat-io/latte-vanilla-components 0.0.159 → 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 +7995 -6796
- 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/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,77 @@
|
|
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
|
+
color: {
|
31
|
+
current: {
|
32
|
+
fill: "currentColor";
|
33
|
+
};
|
34
|
+
primary: {
|
35
|
+
fill: `var(--${string})`;
|
36
|
+
};
|
37
|
+
secondary: {
|
38
|
+
fill: `var(--${string})`;
|
39
|
+
};
|
40
|
+
accent: {
|
41
|
+
fill: `var(--${string})`;
|
42
|
+
};
|
43
|
+
text: {
|
44
|
+
fill: `var(--${string})`;
|
45
|
+
};
|
46
|
+
textSecondary: {
|
47
|
+
fill: `var(--${string})`;
|
48
|
+
};
|
49
|
+
error: {
|
50
|
+
fill: `var(--${string})`;
|
51
|
+
};
|
52
|
+
success: {
|
53
|
+
fill: `var(--${string})`;
|
54
|
+
};
|
55
|
+
warning: {
|
56
|
+
fill: `var(--${string})`;
|
57
|
+
};
|
58
|
+
info: {
|
59
|
+
fill: `var(--${string})`;
|
60
|
+
};
|
61
|
+
};
|
62
|
+
interactive: {
|
63
|
+
true: {
|
64
|
+
cursor: "pointer";
|
65
|
+
':hover': {
|
66
|
+
transform: "scale(1.1)";
|
67
|
+
opacity: number;
|
68
|
+
};
|
69
|
+
':active': {
|
70
|
+
transform: "scale(0.95)";
|
71
|
+
};
|
72
|
+
};
|
73
|
+
false: {};
|
74
|
+
};
|
75
|
+
}>;
|
76
|
+
export { iconPath };
|
77
|
+
export type IconVariants = RecipeVariants<typeof iconRecipe>;
|
@@ -0,0 +1,12 @@
|
|
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'>, 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>>;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { WithClassName } from '../../types/withClassName';
|
2
|
-
import { Theme } from '../../types/theme';
|
3
|
-
export type IconProps = {
|
4
|
-
theme?: Theme;
|
5
|
-
icon?: string;
|
6
|
-
iconPath?: string;
|
7
|
-
size?: number;
|
8
|
-
color?: string;
|
9
|
-
viewBox?: string;
|
10
|
-
};
|
11
|
-
export declare const Icon: ({ icon, size, iconPath, color, theme, viewBox, className, }: IconProps & WithClassName) => import("react").JSX.Element;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
2
2
|
declare const meta: {
|
3
3
|
title: string;
|
4
|
-
component:
|
4
|
+
component: import('react').ForwardRefExoticComponent<Omit<import('./Icon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
5
5
|
parameters: {
|
6
6
|
layout: string;
|
7
7
|
};
|
@@ -0,0 +1,46 @@
|
|
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
|
+
color: {
|
39
|
+
default: {};
|
40
|
+
primary: {};
|
41
|
+
accent: {};
|
42
|
+
success: {};
|
43
|
+
};
|
44
|
+
}>;
|
45
|
+
export { keyNumberValue, keyNumberLabel };
|
46
|
+
export type KeyNumberVariants = RecipeVariants<typeof keyNumberRecipe>;
|
@@ -0,0 +1,15 @@
|
|
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>>;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { Theme } from '../../types/theme';
|
2
|
-
import { WithClassName } from '../../types/withClassName';
|
3
|
-
export type KeyNumberProps = {
|
4
|
-
label: string;
|
5
|
-
theme?: Theme;
|
6
|
-
suffix: string;
|
7
|
-
keyNumber: number;
|
8
|
-
};
|
9
|
-
export declare const KeyNumber: ({ label, suffix, keyNumber, className, theme, }: KeyNumberProps & WithClassName) => import("react").JSX.Element;
|
@@ -0,0 +1,18 @@
|
|
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>;
|
@@ -0,0 +1,16 @@
|
|
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>>;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { Theme } from '../../types/theme';
|
2
|
-
import { WithClassName } from '../../types/withClassName';
|
3
|
-
export type LanguageSwitcherProps = {
|
4
|
-
theme?: Theme;
|
5
|
-
locales: string[];
|
6
|
-
currentLocale: string;
|
7
|
-
translations: {
|
8
|
-
[locale: string]: string;
|
9
|
-
};
|
10
|
-
handleChange: (event: {
|
11
|
-
target: HTMLSelectElement;
|
12
|
-
}) => void;
|
13
|
-
};
|
14
|
-
export declare const LanguageSwitcher: ({ currentLocale, handleChange, locales, theme, className, translations, }: LanguageSwitcherProps & WithClassName) => import("react").JSX.Element;
|
15
|
-
export default LanguageSwitcher;
|
@@ -0,0 +1,54 @@
|
|
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>;
|
@@ -0,0 +1,8 @@
|
|
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>>;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { WithClassName } from '../../types/withClassName';
|
2
|
-
import { Theme } from '../../types/theme';
|
3
|
-
export type LogoProps = {
|
4
|
-
theme?: Theme;
|
5
|
-
children: React.ReactNode;
|
6
|
-
};
|
7
|
-
export declare const Logo: ({ children, theme, className }: LogoProps & WithClassName) => import("react").JSX.Element;
|
@@ -0,0 +1,32 @@
|
|
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>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { MainVariants } from './Main.css';
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
+
export interface MainProps extends Omit<React.HTMLAttributes<HTMLElement>, 'color'>, Sprinkles, NonNullable<MainVariants> {
|
4
|
+
css?: string;
|
5
|
+
as?: 'main' | 'div';
|
6
|
+
}
|
7
|
+
export declare const Main: import('react').ForwardRefExoticComponent<MainProps & import('react').RefAttributes<HTMLElement>>;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { Theme } from '../../types/theme';
|
2
|
-
import { WithClassName } from '../../types/withClassName';
|
3
|
-
export type MainProps = {
|
4
|
-
theme?: Theme;
|
5
|
-
children: React.ReactNode;
|
6
|
-
};
|
7
|
-
export declare const Main: ({ children, className, theme }: MainProps & WithClassName) => import("react").JSX.Element;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
2
2
|
declare const meta: {
|
3
3
|
title: string;
|
4
|
-
component:
|
4
|
+
component: any;
|
5
5
|
parameters: {
|
6
6
|
layout: string;
|
7
7
|
};
|
@@ -0,0 +1,82 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
declare const modalCloseButton: string;
|
3
|
+
export declare const modalRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
4
|
+
size: {
|
5
|
+
sm: {};
|
6
|
+
md: {};
|
7
|
+
lg: {};
|
8
|
+
xl: {};
|
9
|
+
full: {
|
10
|
+
padding: number;
|
11
|
+
};
|
12
|
+
};
|
13
|
+
centered: {
|
14
|
+
true: {
|
15
|
+
alignItems: "center";
|
16
|
+
justifyContent: "center";
|
17
|
+
};
|
18
|
+
false: {
|
19
|
+
alignItems: "flex-start";
|
20
|
+
justifyContent: "center";
|
21
|
+
paddingTop: "5vh";
|
22
|
+
};
|
23
|
+
};
|
24
|
+
}>;
|
25
|
+
export declare const modalContentRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
26
|
+
size: {
|
27
|
+
sm: {
|
28
|
+
padding: `var(--${string})`;
|
29
|
+
'@media': {
|
30
|
+
[x: string]: {
|
31
|
+
maxWidth: "400px";
|
32
|
+
};
|
33
|
+
};
|
34
|
+
};
|
35
|
+
md: {
|
36
|
+
padding: `var(--${string})`;
|
37
|
+
'@media': {
|
38
|
+
[x: string]: {
|
39
|
+
maxWidth: "500px";
|
40
|
+
};
|
41
|
+
};
|
42
|
+
};
|
43
|
+
lg: {
|
44
|
+
padding: `var(--${string})`;
|
45
|
+
'@media': {
|
46
|
+
[x: string]: {
|
47
|
+
maxWidth: "700px";
|
48
|
+
};
|
49
|
+
};
|
50
|
+
};
|
51
|
+
xl: {
|
52
|
+
padding: `var(--${string})`;
|
53
|
+
'@media': {
|
54
|
+
[x: string]: {
|
55
|
+
maxWidth: "900px";
|
56
|
+
};
|
57
|
+
};
|
58
|
+
};
|
59
|
+
full: {
|
60
|
+
width: "100vw";
|
61
|
+
height: "100vh";
|
62
|
+
maxWidth: "none";
|
63
|
+
maxHeight: "none";
|
64
|
+
borderRadius: number;
|
65
|
+
padding: `var(--${string})`;
|
66
|
+
};
|
67
|
+
};
|
68
|
+
align: {
|
69
|
+
left: {
|
70
|
+
textAlign: "left";
|
71
|
+
};
|
72
|
+
center: {
|
73
|
+
textAlign: "center";
|
74
|
+
};
|
75
|
+
right: {
|
76
|
+
textAlign: "right";
|
77
|
+
};
|
78
|
+
};
|
79
|
+
}>;
|
80
|
+
export { modalCloseButton };
|
81
|
+
export type ModalVariants = RecipeVariants<typeof modalRecipe>;
|
82
|
+
export type ModalContentVariants = RecipeVariants<typeof modalContentRecipe>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { ModalContentVariants, ModalVariants } from './Modal.css';
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
+
export interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, Sprinkles, NonNullable<ModalVariants> {
|
4
|
+
css?: string;
|
5
|
+
isOpen: boolean;
|
6
|
+
onClose?: () => void;
|
7
|
+
showCloseButton?: boolean;
|
8
|
+
closeOnBackdropClick?: boolean;
|
9
|
+
closeOnEscape?: boolean;
|
10
|
+
contentProps?: ModalContentVariants & {
|
11
|
+
css?: string;
|
12
|
+
className?: string;
|
13
|
+
};
|
14
|
+
}
|
15
|
+
export declare const Modal: import('react').ForwardRefExoticComponent<ModalProps & import('react').RefAttributes<HTMLDivElement>>;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { Theme } from '../../types/theme';
|
2
|
-
import { WithClassName } from '../../types/withClassName';
|
3
|
-
import { Align } from './types';
|
4
|
-
export type ModalProps = {
|
5
|
-
theme?: Theme;
|
6
|
-
align?: Align;
|
7
|
-
onModalHide?: () => void;
|
8
|
-
children: React.ReactNode;
|
9
|
-
};
|
10
|
-
export declare const Modal: ({ children, align, theme, onModalHide, className, }: ModalProps & WithClassName) => import("react").JSX.Element;
|
@@ -19,19 +19,6 @@ export declare const styles: {
|
|
19
19
|
position: string;
|
20
20
|
width: string;
|
21
21
|
height: string;
|
22
|
-
selectors: {
|
23
|
-
'&:before': {
|
24
|
-
content: string;
|
25
|
-
position: string;
|
26
|
-
top: number;
|
27
|
-
left: number;
|
28
|
-
right: number;
|
29
|
-
bottom: number;
|
30
|
-
opacity: `var(--${string})`;
|
31
|
-
backgroundColor: `var(--${string})`;
|
32
|
-
backdropFilter: string;
|
33
|
-
};
|
34
|
-
};
|
35
22
|
};
|
36
23
|
export declare const modalStyle: string;
|
37
24
|
export declare const modalContentStyle: string;
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
export declare const navRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
3
|
+
orientation: {
|
4
|
+
horizontal: {
|
5
|
+
flexDirection: "row";
|
6
|
+
alignItems: "center";
|
7
|
+
};
|
8
|
+
vertical: {
|
9
|
+
flexDirection: "column";
|
10
|
+
alignItems: "flex-start";
|
11
|
+
};
|
12
|
+
responsive: {
|
13
|
+
flexDirection: "column";
|
14
|
+
alignItems: "flex-start";
|
15
|
+
'@media': {
|
16
|
+
[x: string]: {
|
17
|
+
flexDirection: "row";
|
18
|
+
alignItems: "center";
|
19
|
+
};
|
20
|
+
};
|
21
|
+
};
|
22
|
+
};
|
23
|
+
variant: {
|
24
|
+
default: {
|
25
|
+
gap: `var(--${string})`;
|
26
|
+
};
|
27
|
+
compact: {
|
28
|
+
gap: `var(--${string})`;
|
29
|
+
};
|
30
|
+
spacious: {
|
31
|
+
gap: `var(--${string})`;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
justify: {
|
35
|
+
start: {
|
36
|
+
justifyContent: "flex-start";
|
37
|
+
};
|
38
|
+
center: {
|
39
|
+
justifyContent: "center";
|
40
|
+
};
|
41
|
+
end: {
|
42
|
+
justifyContent: "flex-end";
|
43
|
+
};
|
44
|
+
between: {
|
45
|
+
justifyContent: "space-between";
|
46
|
+
};
|
47
|
+
around: {
|
48
|
+
justifyContent: "space-around";
|
49
|
+
};
|
50
|
+
};
|
51
|
+
}>;
|
52
|
+
export type NavVariants = RecipeVariants<typeof navRecipe>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { NavVariants } from './Nav.css';
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
+
export interface NavProps extends Omit<React.HTMLAttributes<HTMLElement>, 'color'>, Sprinkles, NonNullable<NavVariants> {
|
4
|
+
css?: string;
|
5
|
+
as?: 'nav' | 'div' | 'ul';
|
6
|
+
}
|
7
|
+
export declare const Nav: import('react').ForwardRefExoticComponent<NavProps & import('react').RefAttributes<HTMLElement>>;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { Theme } from '../../types/theme';
|
2
|
-
import { WithClassName } from '../../types/withClassName';
|
3
|
-
export type NavProps = {
|
4
|
-
theme?: Theme;
|
5
|
-
children: React.ReactNode;
|
6
|
-
};
|
7
|
-
export declare const Nav: ({ children, theme, className }: NavProps & WithClassName) => import("react").JSX.Element;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
export declare const navLegalRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
3
|
+
orientation: {
|
4
|
+
horizontal: {
|
5
|
+
flexDirection: "row";
|
6
|
+
};
|
7
|
+
vertical: {
|
8
|
+
flexDirection: "column";
|
9
|
+
alignItems: "flex-start";
|
10
|
+
};
|
11
|
+
responsive: {
|
12
|
+
flexDirection: "column";
|
13
|
+
alignItems: "flex-start";
|
14
|
+
'@media': {
|
15
|
+
[x: string]: {
|
16
|
+
flexDirection: "row";
|
17
|
+
alignItems: "center";
|
18
|
+
};
|
19
|
+
};
|
20
|
+
};
|
21
|
+
};
|
22
|
+
size: {
|
23
|
+
sm: {
|
24
|
+
fontSize: `var(--${string})`;
|
25
|
+
gap: `var(--${string})`;
|
26
|
+
};
|
27
|
+
md: {
|
28
|
+
fontSize: `var(--${string})`;
|
29
|
+
gap: `var(--${string})`;
|
30
|
+
};
|
31
|
+
lg: {
|
32
|
+
fontSize: `var(--${string})`;
|
33
|
+
gap: `var(--${string})`;
|
34
|
+
};
|
35
|
+
};
|
36
|
+
variant: {
|
37
|
+
default: {};
|
38
|
+
compact: {
|
39
|
+
gap: `var(--${string})`;
|
40
|
+
};
|
41
|
+
spacious: {
|
42
|
+
gap: `var(--${string})`;
|
43
|
+
};
|
44
|
+
};
|
45
|
+
align: {
|
46
|
+
left: {
|
47
|
+
justifyContent: "flex-start";
|
48
|
+
};
|
49
|
+
center: {
|
50
|
+
justifyContent: "center";
|
51
|
+
};
|
52
|
+
right: {
|
53
|
+
justifyContent: "flex-end";
|
54
|
+
};
|
55
|
+
};
|
56
|
+
}>;
|
57
|
+
export type NavLegalVariants = RecipeVariants<typeof navLegalRecipe>;
|