@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,7 @@
|
|
1
|
+
import { NavLegalVariants } from './NavLegal.css';
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
+
export interface NavLegalProps extends Omit<React.HTMLAttributes<HTMLElement>, 'color'>, Sprinkles, NonNullable<NavLegalVariants> {
|
4
|
+
css?: string;
|
5
|
+
as?: 'nav' | 'div' | 'footer';
|
6
|
+
}
|
7
|
+
export declare const NavLegal: import('react').ForwardRefExoticComponent<NavLegalProps & import('react').RefAttributes<HTMLElement>>;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { Theme } from '../../types/theme';
|
2
|
-
import { WithClassName } from '../../types/withClassName';
|
3
|
-
export type NavLegalProps = {
|
4
|
-
theme?: Theme;
|
5
|
-
children: React.ReactNode;
|
6
|
-
};
|
7
|
-
export declare const NavLegal: ({ children, className, theme }: NavLegalProps & WithClassName) => import("react").JSX.Element;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
declare const navSocialLink: string;
|
3
|
+
export declare const navSocialRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
4
|
+
orientation: {
|
5
|
+
horizontal: {
|
6
|
+
flexDirection: "row";
|
7
|
+
};
|
8
|
+
vertical: {
|
9
|
+
flexDirection: "column";
|
10
|
+
};
|
11
|
+
};
|
12
|
+
size: {
|
13
|
+
sm: {
|
14
|
+
gap: `var(--${string})`;
|
15
|
+
};
|
16
|
+
md: {
|
17
|
+
gap: `var(--${string})`;
|
18
|
+
};
|
19
|
+
lg: {
|
20
|
+
gap: `var(--${string})`;
|
21
|
+
};
|
22
|
+
};
|
23
|
+
variant: {
|
24
|
+
default: {};
|
25
|
+
rounded: {};
|
26
|
+
outlined: {};
|
27
|
+
};
|
28
|
+
}>;
|
29
|
+
export { navSocialLink };
|
30
|
+
export type NavSocialVariants = RecipeVariants<typeof navSocialRecipe>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { NavSocialVariants } from './NavSocial.css';
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
+
export type SocialNetwork = 'instagram' | 'linkedIn' | 'facebook' | 'pinterest' | 'spotify' | 'X' | 'youtube' | 'tiktok';
|
4
|
+
export interface SocialLink {
|
5
|
+
name: SocialNetwork;
|
6
|
+
url: string;
|
7
|
+
label?: string;
|
8
|
+
}
|
9
|
+
export interface NavSocialProps extends Omit<React.HTMLAttributes<HTMLElement>, 'color'>, Sprinkles, NonNullable<NavSocialVariants> {
|
10
|
+
css?: string;
|
11
|
+
links: SocialLink[];
|
12
|
+
iconSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
13
|
+
as?: 'nav' | 'div' | 'ul';
|
14
|
+
}
|
15
|
+
export declare const NavSocial: import('react').ForwardRefExoticComponent<NavSocialProps & import('react').RefAttributes<HTMLElement>>;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { Theme } from '../../types/theme';
|
2
|
-
import { WithClassName } from '../../types/withClassName';
|
3
|
-
import { Social } from './types';
|
4
|
-
export type NavSocialProps = {
|
5
|
-
theme?: Theme;
|
6
|
-
navSocial: {
|
7
|
-
name: Social;
|
8
|
-
link: string;
|
9
|
-
}[];
|
10
|
-
};
|
11
|
-
export declare const NavSocial: ({ navSocial, className, theme }: NavSocialProps & WithClassName) => import("react").JSX.Element;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { SectionVariants } from './Section.recipe';
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
+
export interface SectionProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, Sprinkles, NonNullable<SectionVariants> {
|
4
|
+
css?: string;
|
5
|
+
as?: 'section' | 'div' | 'main' | 'article' | 'aside';
|
6
|
+
}
|
7
|
+
export declare const Section: import('react').ForwardRefExoticComponent<SectionProps & import('react').RefAttributes<HTMLDivElement>>;
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
export declare const sectionRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
3
|
+
align: {
|
4
|
+
left: {
|
5
|
+
textAlign: "left";
|
6
|
+
alignItems: "flex-start";
|
7
|
+
};
|
8
|
+
center: {
|
9
|
+
textAlign: "center";
|
10
|
+
alignItems: "center";
|
11
|
+
};
|
12
|
+
right: {
|
13
|
+
textAlign: "right";
|
14
|
+
alignItems: "flex-end";
|
15
|
+
};
|
16
|
+
};
|
17
|
+
isDark: {
|
18
|
+
true: {
|
19
|
+
backgroundColor: `var(--${string})`;
|
20
|
+
color: `var(--${string})`;
|
21
|
+
};
|
22
|
+
false: {
|
23
|
+
backgroundColor: `var(--${string})`;
|
24
|
+
color: `var(--${string})`;
|
25
|
+
};
|
26
|
+
};
|
27
|
+
isFullHeight: {
|
28
|
+
true: {
|
29
|
+
minHeight: "100vh";
|
30
|
+
justifyContent: "center";
|
31
|
+
};
|
32
|
+
false: {
|
33
|
+
minHeight: "auto";
|
34
|
+
justifyContent: "flex-start";
|
35
|
+
};
|
36
|
+
};
|
37
|
+
spacing: {
|
38
|
+
none: {
|
39
|
+
paddingTop: "0";
|
40
|
+
paddingBottom: "0";
|
41
|
+
};
|
42
|
+
sm: {
|
43
|
+
paddingTop: `var(--${string})`;
|
44
|
+
paddingBottom: `var(--${string})`;
|
45
|
+
};
|
46
|
+
md: {
|
47
|
+
paddingTop: `var(--${string})`;
|
48
|
+
paddingBottom: `var(--${string})`;
|
49
|
+
};
|
50
|
+
lg: {
|
51
|
+
paddingTop: `var(--${string})`;
|
52
|
+
paddingBottom: `var(--${string})`;
|
53
|
+
};
|
54
|
+
xl: {
|
55
|
+
paddingTop: `var(--${string})`;
|
56
|
+
paddingBottom: `var(--${string})`;
|
57
|
+
};
|
58
|
+
};
|
59
|
+
}>;
|
60
|
+
export type SectionVariants = RecipeVariants<typeof sectionRecipe>;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
2
|
-
declare const meta: {
|
3
|
-
title: string;
|
4
|
-
component: ({ children, className, zIndex, id, isDark, align, isFullHeight, noPaddingTop, theme, backgroundColor, noPaddingBottom, }: import('.').SectionProps & import('../../types/withClassName').WithClassName) => import("react").JSX.Element;
|
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 FullHeight: Story;
|
15
|
-
export declare const AlignCenter: Story;
|
16
|
-
export declare const BackgroundColor: Story;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
declare const videoElement: string;
|
3
|
+
declare const videoPoster: string;
|
4
|
+
declare const posterImage: string;
|
5
|
+
declare const playButton: string;
|
6
|
+
declare const closeButton: string;
|
7
|
+
declare const pauseButton: string;
|
8
|
+
declare const soundButton: string;
|
9
|
+
export declare const videoRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
10
|
+
size: {
|
11
|
+
sm: {
|
12
|
+
width: "300px";
|
13
|
+
height: "200px";
|
14
|
+
};
|
15
|
+
md: {
|
16
|
+
width: "500px";
|
17
|
+
height: "300px";
|
18
|
+
};
|
19
|
+
lg: {
|
20
|
+
width: "800px";
|
21
|
+
height: "450px";
|
22
|
+
};
|
23
|
+
fullWidth: {
|
24
|
+
width: "100vw";
|
25
|
+
height: number;
|
26
|
+
paddingBottom: "56.25%";
|
27
|
+
position: "relative";
|
28
|
+
};
|
29
|
+
};
|
30
|
+
aspectRatio: {
|
31
|
+
'16:9': {
|
32
|
+
aspectRatio: "16/9";
|
33
|
+
};
|
34
|
+
'4:3': {
|
35
|
+
aspectRatio: "4/3";
|
36
|
+
};
|
37
|
+
'1:1': {
|
38
|
+
aspectRatio: "1/1";
|
39
|
+
};
|
40
|
+
};
|
41
|
+
}>;
|
42
|
+
export { videoElement, videoPoster, posterImage, playButton, closeButton, pauseButton, soundButton };
|
43
|
+
export type VideoVariants = RecipeVariants<typeof videoRecipe>;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { VideoVariants } from './Video.css';
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
+
export interface VideoProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, Sprinkles, NonNullable<VideoVariants> {
|
4
|
+
css?: string;
|
5
|
+
video: string;
|
6
|
+
poster?: string;
|
7
|
+
isAutoPlay?: boolean;
|
8
|
+
startMuted?: boolean;
|
9
|
+
showControls?: boolean;
|
10
|
+
hidePlayButton?: boolean;
|
11
|
+
isVideoFullWidth?: boolean;
|
12
|
+
isPlayingFullScreen?: boolean;
|
13
|
+
onPlay?: () => void;
|
14
|
+
onClose?: () => void;
|
15
|
+
onEnded?: () => void;
|
16
|
+
}
|
17
|
+
export declare const Video: import('react').ForwardRefExoticComponent<VideoProps & import('react').RefAttributes<HTMLDivElement>>;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { Theme } from '../../types/theme';
|
2
|
-
import { WithClassName } from '../../types/withClassName';
|
3
|
-
export type VideoProps = {
|
4
|
-
video: string;
|
5
|
-
theme?: Theme;
|
6
|
-
isAutoPlay?: boolean;
|
7
|
-
startMuted?: boolean;
|
8
|
-
onPlay?: () => void;
|
9
|
-
onClose?: () => void;
|
10
|
-
onEnded?: () => void;
|
11
|
-
poster?: string | null;
|
12
|
-
showControls?: boolean;
|
13
|
-
hidePlayButton?: boolean;
|
14
|
-
isVideoFullWidth?: boolean;
|
15
|
-
isPlayingFullScreen?: boolean;
|
16
|
-
};
|
17
|
-
export declare const Video: ({ video, isAutoPlay, poster, startMuted, onPlay, onClose, onEnded, showControls, theme, hidePlayButton, isVideoFullWidth, isPlayingFullScreen, className, }: VideoProps & WithClassName) => import("react").JSX.Element;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
2
|
+
export declare const videoFullWidthRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
3
|
+
aspectRatio: {
|
4
|
+
'16:9': {
|
5
|
+
paddingBottom: "56.25%";
|
6
|
+
};
|
7
|
+
'4:3': {
|
8
|
+
paddingBottom: "75%";
|
9
|
+
};
|
10
|
+
'1:1': {
|
11
|
+
paddingBottom: "100%";
|
12
|
+
};
|
13
|
+
'21:9': {
|
14
|
+
paddingBottom: "42.86%";
|
15
|
+
};
|
16
|
+
};
|
17
|
+
}>;
|
18
|
+
export type VideoFullWidthVariants = RecipeVariants<typeof videoFullWidthRecipe>;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { VideoFullWidthVariants } from './VideoFullWidth.css';
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
3
|
+
export interface VideoFullWidthProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, Sprinkles, NonNullable<VideoFullWidthVariants> {
|
4
|
+
css?: string;
|
5
|
+
video: string;
|
6
|
+
poster?: string;
|
7
|
+
isAutoPlay?: boolean;
|
8
|
+
startMuted?: boolean;
|
9
|
+
showControls?: boolean;
|
10
|
+
onPlay?: () => void;
|
11
|
+
onClose?: () => void;
|
12
|
+
onEnded?: () => void;
|
13
|
+
}
|
14
|
+
export declare const VideoFullWidth: import('react').ForwardRefExoticComponent<VideoFullWidthProps & import('react').RefAttributes<HTMLDivElement>>;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { Theme } from '../../types/theme';
|
2
|
-
import { WithClassName } from '../../types/withClassName';
|
3
|
-
export type VideoFullWidthProps = {
|
4
|
-
theme?: Theme;
|
5
|
-
video: string;
|
6
|
-
poster?: string;
|
7
|
-
isAutoPlay?: boolean;
|
8
|
-
startMuted?: boolean;
|
9
|
-
showControls?: boolean;
|
10
|
-
};
|
11
|
-
export declare const VideoFullWidth: ({ video, poster, className, isAutoPlay, showControls, startMuted, theme, }: VideoFullWidthProps & WithClassName) => import("react").JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
@@ -1,25 +1,28 @@
|
|
1
|
-
export * from './
|
2
|
-
export
|
3
|
-
export
|
4
|
-
export
|
5
|
-
export
|
6
|
-
export
|
7
|
-
export
|
8
|
-
export
|
9
|
-
export
|
10
|
-
export
|
11
|
-
export
|
12
|
-
export
|
13
|
-
export
|
14
|
-
export
|
15
|
-
export
|
16
|
-
export
|
17
|
-
export
|
18
|
-
export
|
19
|
-
export
|
20
|
-
export
|
21
|
-
export
|
22
|
-
export
|
23
|
-
export
|
24
|
-
export
|
25
|
-
export
|
1
|
+
export * from './theme';
|
2
|
+
export { sprinkles, type Sprinkles } from './styles/sprinkles.css';
|
3
|
+
export { breakpoints, queries } from './styles/mediaqueries';
|
4
|
+
export { Button, type ButtonProps } from './components/Button/Button';
|
5
|
+
export { Section, type SectionProps } from './components/Section/Section';
|
6
|
+
export { Main, type MainProps } from './components/Main/Main';
|
7
|
+
export { Header, type HeaderProps } from './components/Header/Header';
|
8
|
+
export { Footer, type FooterProps } from './components/Footer/Footer';
|
9
|
+
export { Nav, type NavProps } from './components/Nav/Nav';
|
10
|
+
export { Icon, type IconProps } from './components/Icon/Icon';
|
11
|
+
export { Modal, type ModalProps } from './components/Modal/Modal';
|
12
|
+
export { Logo, type LogoProps } from './components/Logo/Logo';
|
13
|
+
export { Columns, type ColumnsProps } from './components/Columns/Columns';
|
14
|
+
export { Actions, type ActionsProps } from './components/Actions/Actions';
|
15
|
+
export { Carousel, type CarouselProps } from './components/Carousel/Carousel';
|
16
|
+
export { ConsentCookie, type ConsentCookieProps } from './components/ConsentCookie/ConsentCookie';
|
17
|
+
export { KeyNumber, type KeyNumberProps } from './components/KeyNumber/KeyNumber';
|
18
|
+
export { NavSocial, type NavSocialProps, type SocialNetwork, type SocialLink } from './components/NavSocial/NavSocial';
|
19
|
+
export { NavLegal, type NavLegalProps } from './components/NavLegal/NavLegal';
|
20
|
+
export { LanguageSwitcher, type LanguageSwitcherProps, type Locale } from './components/LanguageSwitcher/LanguageSwitcher';
|
21
|
+
export { Video, type VideoProps } from './components/Video/Video';
|
22
|
+
export { VideoFullWidth, type VideoFullWidthProps } from './components/VideoFullWidth/VideoFullWidth';
|
23
|
+
export { Form, type FormProps } from './components/Form/Form';
|
24
|
+
export { Row, type RowProps } from './components/Form/Row/Row';
|
25
|
+
export { TextField, type TextFieldProps, type InputType } from './components/Form/TextField/TextField';
|
26
|
+
export { Label, type LabelProps } from './components/Form/TextField/Label/Label';
|
27
|
+
export { Input, type InputProps, type InputType as InputFieldType } from './components/Form/TextField/Input/Input';
|
28
|
+
export { Textarea, type TextareaProps } from './components/Form/TextField/Textarea/Textarea';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@latte-macchiat-io/latte-vanilla-components",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.160",
|
4
4
|
"description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.es.js",
|
@@ -8,12 +8,7 @@
|
|
8
8
|
"exports": {
|
9
9
|
".": {
|
10
10
|
"import": "./dist/index.es.js",
|
11
|
-
"require": "./dist/index.cjs.js"
|
12
|
-
"types": "./dist/types/index.d.ts"
|
13
|
-
},
|
14
|
-
"./latte-css": {
|
15
|
-
"import": "./dist/latte-vanilla-components.css",
|
16
|
-
"require": "./dist/latte-vanilla-components.css"
|
11
|
+
"require": "./dist/index.cjs.js"
|
17
12
|
}
|
18
13
|
},
|
19
14
|
"files": [
|
@@ -40,11 +35,11 @@
|
|
40
35
|
"@types/react-dom": "^19",
|
41
36
|
"@typescript-eslint/eslint-plugin": "8.21.0",
|
42
37
|
"@vanilla-extract/css": "^1.17.4",
|
43
|
-
"@vanilla-extract/css-utils": "^0.1.6",
|
44
38
|
"@vanilla-extract/dynamic": "^2.1.5",
|
45
|
-
"@vanilla-extract/
|
46
|
-
"@vanilla-extract/
|
39
|
+
"@vanilla-extract/recipes": "^0.5.7",
|
40
|
+
"@vanilla-extract/sprinkles": "^1.6.5",
|
47
41
|
"@vitejs/plugin-react": "^4.3.4",
|
42
|
+
"clsx": "^2.1.1",
|
48
43
|
"eslint": "^9.15.0",
|
49
44
|
"eslint-config-next": "15.1.6",
|
50
45
|
"eslint-config-prettier": "^10.0.1",
|
@@ -68,6 +63,7 @@
|
|
68
63
|
]
|
69
64
|
},
|
70
65
|
"dependencies": {
|
66
|
+
"@vanilla-extract/vite-plugin": "^5.1.1",
|
71
67
|
"framer-motion": "^12.4.7",
|
72
68
|
"react-countup": "^6.5.3",
|
73
69
|
"react-intersection-observer": "^9.16.0"
|
@@ -76,6 +72,10 @@
|
|
76
72
|
"build": "vite build",
|
77
73
|
"test": "echo \"Error: no test specified\" && exit 1",
|
78
74
|
"storybook": "storybook dev -p 6006",
|
79
|
-
"build-storybook": "storybook build"
|
75
|
+
"build-storybook": "storybook build",
|
76
|
+
"lint": "eslint",
|
77
|
+
"lint:fix": "eslint --fix",
|
78
|
+
"prettier": "prettier --check \"**/*.{js,jsx,ts,tsx}\"",
|
79
|
+
"prettier:fix": "prettier --write \"**/*.{js,jsx,ts,tsx}\""
|
80
80
|
}
|
81
81
|
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { Theme } from '../../types/theme';
|
2
|
-
import { WithClassName } from '../../types/withClassName';
|
3
|
-
import { Align } from './types';
|
4
|
-
export type ActionsProps = {
|
5
|
-
align?: Align;
|
6
|
-
theme?: Theme;
|
7
|
-
children: React.ReactNode;
|
8
|
-
};
|
9
|
-
export declare const Actions: ({ children, className, theme, align }: ActionsProps & WithClassName) => import("react").JSX.Element;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { Theme } from '../../types/theme';
|
2
|
-
import { WithClassName } from '../../types/withClassName';
|
3
|
-
import { Size, Style, Type, Variant } from './types';
|
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
|
-
children: React.ReactNode;
|
15
|
-
};
|
16
|
-
export declare const Button: ({ children, className, staticColor, isPending, isDisabled, type, style, size, onClick, theme, variant, }: ButtonProps & WithClassName) => import("react").JSX.Element;
|
@@ -1,18 +0,0 @@
|
|
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
|
-
}
|
@@ -1,13 +0,0 @@
|
|
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;
|
@@ -1,7 +0,0 @@
|
|
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;
|
@@ -1,12 +0,0 @@
|
|
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;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { Theme } from '../../types/theme';
|
2
|
-
import { WithClassName } from '../../types/withClassName';
|
3
|
-
import { Align } from './types';
|
4
|
-
export type SectionProps = {
|
5
|
-
id?: string;
|
6
|
-
theme?: Theme;
|
7
|
-
align?: Align;
|
8
|
-
zIndex?: number;
|
9
|
-
isDark?: boolean;
|
10
|
-
isFullHeight?: boolean;
|
11
|
-
noPaddingTop?: boolean;
|
12
|
-
children: React.ReactNode;
|
13
|
-
noPaddingBottom?: boolean;
|
14
|
-
backgroundColor?: string;
|
15
|
-
backgroundGradient?: string;
|
16
|
-
};
|
17
|
-
export declare const Section: ({ children, className, zIndex, id, isDark, align, isFullHeight, noPaddingTop, theme, backgroundColor, noPaddingBottom, }: SectionProps & WithClassName) => import("react").JSX.Element;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
export declare const vars: {
|
2
|
-
videoOpacity: `var(--${string})`;
|
3
|
-
videoMaxHeight: `var(--${string})`;
|
4
|
-
videoPointerEvents: `var(--${string})`;
|
5
|
-
};
|
6
|
-
export declare const styles: {};
|
7
|
-
export declare const videoVideoTag: string;
|
8
|
-
export declare const videoStyle: string;
|
9
|
-
export declare const videoPosterStyle: string;
|
10
|
-
export declare const videoPosterImageStyle: string;
|
11
|
-
export declare const playButtonStyle: string;
|
12
|
-
export declare const pauseButtonStyle: string;
|
13
|
-
export declare const closeButtonStyle: string;
|
14
|
-
export declare const soundButtonStyle: string;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
export declare const vars: {
|
2
|
-
videoFullWidthLeft: `var(--${string})`;
|
3
|
-
videoFullWidthRight: `var(--${string})`;
|
4
|
-
};
|
5
|
-
export declare const styles: {
|
6
|
-
height: number;
|
7
|
-
width: string;
|
8
|
-
overflow: string;
|
9
|
-
position: string;
|
10
|
-
paddingBottom: string;
|
11
|
-
left: `var(--${string})`;
|
12
|
-
right: `var(--${string})`;
|
13
|
-
};
|
14
|
-
export declare const videoFullWidthStyles: string;
|