@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.
Files changed (127) hide show
  1. package/dist/index.cjs.js +52 -4
  2. package/dist/index.es.js +7995 -6796
  3. package/dist/latte-vanilla-components.css +1 -1
  4. package/dist/types/components/Actions/Actions.css.d.ts +74 -0
  5. package/dist/types/components/Actions/Actions.d.ts +7 -0
  6. package/dist/types/components/Actions/export.d.ts +0 -4
  7. package/dist/types/components/Actions/stories.d.ts +0 -6
  8. package/dist/types/components/Button/Button.css.d.ts +65 -0
  9. package/dist/types/components/Button/Button.d.ts +8 -0
  10. package/dist/types/components/Button/export.d.ts +0 -4
  11. package/dist/types/components/Button/stories.d.ts +0 -0
  12. package/dist/types/components/Carousel/Carousel.css.d.ts +33 -0
  13. package/dist/types/components/Carousel/Carousel.d.ts +15 -0
  14. package/dist/types/components/Carousel/export.d.ts +0 -3
  15. package/dist/types/components/Carousel/index.d.ts +0 -12
  16. package/dist/types/components/Columns/Columns.css.d.ts +104 -0
  17. package/dist/types/components/Columns/Columns.d.ts +8 -0
  18. package/dist/types/components/Columns/export.d.ts +0 -4
  19. package/dist/types/components/Columns/index.d.ts +0 -12
  20. package/dist/types/components/Columns/stories.d.ts +1 -1
  21. package/dist/types/components/ConsentCookie/ConsentCookie.css.d.ts +23 -0
  22. package/dist/types/components/ConsentCookie/ConsentCookie.d.ts +17 -0
  23. package/dist/types/components/ConsentCookie/export.d.ts +0 -3
  24. package/dist/types/components/ConsentCookie/index.d.ts +0 -15
  25. package/dist/types/components/Footer/Footer.css.d.ts +50 -0
  26. package/dist/types/components/Footer/Footer.d.ts +7 -0
  27. package/dist/types/components/Footer/export.d.ts +0 -3
  28. package/dist/types/components/Footer/index.d.ts +0 -7
  29. package/dist/types/components/Form/Form.css.d.ts +46 -0
  30. package/dist/types/components/Form/Form.d.ts +7 -0
  31. package/dist/types/components/Form/Row/Row.css.d.ts +51 -0
  32. package/dist/types/components/Form/Row/Row.d.ts +9 -0
  33. package/dist/types/components/Form/Row/index.d.ts +0 -11
  34. package/dist/types/components/Form/TextField/Input/Input.css.d.ts +32 -0
  35. package/dist/types/components/Form/TextField/Input/Input.d.ts +10 -0
  36. package/dist/types/components/Form/TextField/Input/export.d.ts +0 -4
  37. package/dist/types/components/Form/TextField/Input/index.d.ts +0 -18
  38. package/dist/types/components/Form/TextField/Label/Label.css.d.ts +23 -0
  39. package/dist/types/components/Form/TextField/Label/Label.d.ts +9 -0
  40. package/dist/types/components/Form/TextField/Label/index.d.ts +0 -9
  41. package/dist/types/components/Form/TextField/TextField.css.d.ts +19 -0
  42. package/dist/types/components/Form/TextField/TextField.d.ts +21 -0
  43. package/dist/types/components/Form/TextField/Textarea/Textarea.css.d.ts +56 -0
  44. package/dist/types/components/Form/TextField/Textarea/Textarea.d.ts +8 -0
  45. package/dist/types/components/Form/TextField/Textarea/export.d.ts +0 -4
  46. package/dist/types/components/Form/TextField/Textarea/index.d.ts +0 -16
  47. package/dist/types/components/Form/TextField/export.d.ts +0 -3
  48. package/dist/types/components/Form/TextField/index.d.ts +0 -22
  49. package/dist/types/components/Form/export.d.ts +0 -3
  50. package/dist/types/components/Form/index.d.ts +0 -8
  51. package/dist/types/components/Header/Header.css.d.ts +51 -0
  52. package/dist/types/components/Header/Header.d.ts +11 -0
  53. package/dist/types/components/Header/HeaderOverlay/index.d.ts +2 -2
  54. package/dist/types/components/Header/ToggleNav/index.d.ts +2 -2
  55. package/dist/types/components/Header/export.d.ts +0 -3
  56. package/dist/types/components/Header/index.d.ts +0 -11
  57. package/dist/types/components/Icon/Icon.css.d.ts +77 -0
  58. package/dist/types/components/Icon/Icon.d.ts +12 -0
  59. package/dist/types/components/Icon/export.d.ts +0 -3
  60. package/dist/types/components/Icon/index.d.ts +0 -11
  61. package/dist/types/components/Icon/stories.d.ts +1 -1
  62. package/dist/types/components/KeyNumber/KeyNumber.css.d.ts +46 -0
  63. package/dist/types/components/KeyNumber/KeyNumber.d.ts +15 -0
  64. package/dist/types/components/KeyNumber/export.d.ts +0 -3
  65. package/dist/types/components/KeyNumber/index.d.ts +0 -9
  66. package/dist/types/components/LanguageSwitcher/LanguageSwitcher.css.d.ts +18 -0
  67. package/dist/types/components/LanguageSwitcher/LanguageSwitcher.d.ts +16 -0
  68. package/dist/types/components/LanguageSwitcher/export.d.ts +0 -3
  69. package/dist/types/components/LanguageSwitcher/index.d.ts +0 -15
  70. package/dist/types/components/Logo/Logo.css.d.ts +54 -0
  71. package/dist/types/components/Logo/Logo.d.ts +8 -0
  72. package/dist/types/components/Logo/export.d.ts +0 -3
  73. package/dist/types/components/Logo/index.d.ts +0 -7
  74. package/dist/types/components/Main/Main.css.d.ts +32 -0
  75. package/dist/types/components/Main/Main.d.ts +7 -0
  76. package/dist/types/components/Main/export.d.ts +0 -3
  77. package/dist/types/components/Main/index.d.ts +0 -7
  78. package/dist/types/components/Main/stories.d.ts +1 -1
  79. package/dist/types/components/Modal/Modal.css.d.ts +82 -0
  80. package/dist/types/components/Modal/Modal.d.ts +15 -0
  81. package/dist/types/components/Modal/export.d.ts +0 -3
  82. package/dist/types/components/Modal/index.d.ts +0 -10
  83. package/dist/types/components/Modal/styles.css.d.ts +0 -13
  84. package/dist/types/components/Nav/Nav.css.d.ts +52 -0
  85. package/dist/types/components/Nav/Nav.d.ts +7 -0
  86. package/dist/types/components/Nav/export.d.ts +0 -3
  87. package/dist/types/components/Nav/index.d.ts +0 -7
  88. package/dist/types/components/NavLegal/NavLegal.css.d.ts +57 -0
  89. package/dist/types/components/NavLegal/NavLegal.d.ts +7 -0
  90. package/dist/types/components/NavLegal/export.d.ts +0 -3
  91. package/dist/types/components/NavLegal/index.d.ts +0 -7
  92. package/dist/types/components/NavSocial/NavSocial.css.d.ts +30 -0
  93. package/dist/types/components/NavSocial/NavSocial.d.ts +15 -0
  94. package/dist/types/components/NavSocial/export.d.ts +0 -4
  95. package/dist/types/components/NavSocial/index.d.ts +0 -11
  96. package/dist/types/components/Section/Section.d.ts +7 -0
  97. package/dist/types/components/Section/Section.recipe.d.ts +60 -0
  98. package/dist/types/components/Section/export.d.ts +0 -5
  99. package/dist/types/components/Section/stories.d.ts +0 -16
  100. package/dist/types/components/Video/Video.css.d.ts +43 -0
  101. package/dist/types/components/Video/Video.d.ts +17 -0
  102. package/dist/types/components/Video/export.d.ts +0 -3
  103. package/dist/types/components/Video/index.d.ts +0 -17
  104. package/dist/types/components/VideoFullWidth/VideoFullWidth.css.d.ts +18 -0
  105. package/dist/types/components/VideoFullWidth/VideoFullWidth.d.ts +14 -0
  106. package/dist/types/components/VideoFullWidth/export.d.ts +0 -3
  107. package/dist/types/components/VideoFullWidth/index.d.ts +0 -11
  108. package/dist/types/index.d.ts +28 -25
  109. package/package.json +11 -11
  110. package/dist/types/components/Actions/index.d.ts +0 -9
  111. package/dist/types/components/Actions/types.d.ts +0 -5
  112. package/dist/types/components/Button/index.d.ts +0 -16
  113. package/dist/types/components/Button/types.d.ts +0 -18
  114. package/dist/types/components/Columns/types.d.ts +0 -5
  115. package/dist/types/components/Form/Row/export.d.ts +0 -3
  116. package/dist/types/components/Form/Row/types.d.ts +0 -5
  117. package/dist/types/components/Form/TextField/Input/stories.d.ts +0 -13
  118. package/dist/types/components/Form/TextField/Input/types.d.ts +0 -8
  119. package/dist/types/components/Form/TextField/Label/stories.d.ts +0 -7
  120. package/dist/types/components/Form/TextField/Textarea/types.d.ts +0 -3
  121. package/dist/types/components/Form/TextField/stories.d.ts +0 -12
  122. package/dist/types/components/Form/stories.d.ts +0 -6
  123. package/dist/types/components/Section/index.d.ts +0 -17
  124. package/dist/types/components/Section/types.d.ts +0 -5
  125. package/dist/types/components/Section/variants.d.ts +0 -15
  126. package/dist/types/components/Video/styles.css.d.ts +0 -14
  127. 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,3 +0,0 @@
1
- export { NavLegal } from '.';
2
- export type { NavLegalProps } from '.';
3
- export { styles as NavLegalStyles } from './styles.css';
@@ -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,4 +0,0 @@
1
- export { NavSocial } from '.';
2
- export type { NavSocialProps } from '.';
3
- export type { Social as SocialType } from './types';
4
- export { styles as NavSocialStyles } from './styles.css';
@@ -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,5 +0,0 @@
1
- export { Section } from '.';
2
- export type { SectionProps } from '.';
3
- export { Align as SectionAlign } from './types';
4
- export * as allStyles from './styles.css';
5
- export { styles as SectionStyles } from './styles.css';
@@ -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,3 +0,0 @@
1
- export { Video } from '.';
2
- export type { VideoProps } from '.';
3
- export { styles as VideoStyles } from './styles.css';
@@ -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,3 +0,0 @@
1
- export { VideoFullWidth } from '.';
2
- export type { VideoFullWidthProps } from '.';
3
- export { styles as VideoFullWidthStyles } from './styles.css';
@@ -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;
@@ -1,25 +1,28 @@
1
- export * from './components/Button/export';
2
- export * from './components/Actions/export';
3
- export * from './components/Icon/export';
4
- export * from './components/Modal/export';
5
- export * from './components/Video/export';
6
- export * from './components/Logo/export';
7
- export * from './components/Carousel/export';
8
- export * from './components/KeyNumber/export';
9
- export * from './components/VideoFullWidth/export';
10
- export * from './components/LanguageSwitcher/export';
11
- export * from './components/Main/export';
12
- export * from './components/Header/export';
13
- export * from './components/Footer/export';
14
- export * from './components/Columns/export';
15
- export * from './components/Section/export';
16
- export * from './components/Nav/export';
17
- export * from './components/NavSocial/export';
18
- export * from './components/NavLegal/export';
19
- export * from './components/Form/export';
20
- export * from './components/Form/Row/export';
21
- export * from './components/Form/TextField/export';
22
- export * from './components/Form/TextField/Label/export';
23
- export * from './components/Form/TextField/Input/export';
24
- export * from './components/Form/TextField/Textarea/export';
25
- export * from './components/ConsentCookie/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.159",
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/next-plugin": "^2.4.14",
46
- "@vanilla-extract/vite-plugin": "^5.1.1",
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,5 +0,0 @@
1
- export declare enum Align {
2
- Center = 0,
3
- Left = 1,
4
- Right = 2
5
- }
@@ -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,5 +0,0 @@
1
- export declare enum Align {
2
- Center = 0,
3
- Left = 1,
4
- Right = 2
5
- }
@@ -1,3 +0,0 @@
1
- export { Row as FormRow } from '.';
2
- export type { RowProps as FormRowProps } from '.';
3
- export { Align as FormRowAlign } from './types';
@@ -1,5 +0,0 @@
1
- export declare enum Align {
2
- Center = 0,
3
- Left = 1,
4
- Right = 2
5
- }
@@ -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,8 +0,0 @@
1
- export declare enum Type {
2
- Text = "text",
3
- Email = "email",
4
- Search = "search",
5
- Number = "number",
6
- Hidden = "hidden",
7
- Password = "password"
8
- }
@@ -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,3 +0,0 @@
1
- export declare enum Type {
2
- Textarea = "textarea"
3
- }
@@ -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,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { Form } from '.';
3
- type Story = StoryObj<typeof meta>;
4
- declare const meta: Meta<typeof Form>;
5
- export default meta;
6
- export declare const Default: Story;
@@ -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,5 +0,0 @@
1
- export declare enum Align {
2
- Center = 0,
3
- Left = 1,
4
- Right = 2
5
- }
@@ -1,15 +0,0 @@
1
- declare const sectionVariants: {
2
- hidden: {
3
- opacity: number;
4
- };
5
- visible: {
6
- opacity: number;
7
- transition: {
8
- delay: number;
9
- bounce: number;
10
- duration: number;
11
- type: string;
12
- };
13
- };
14
- };
15
- export default sectionVariants;
@@ -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;