@latte-macchiat-io/latte-vanilla-components 0.0.203 → 0.0.204

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.203",
3
+ "version": "0.0.204",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -6,7 +6,6 @@ import { buttonRecipe, type ButtonVariants } from './styles.css';
6
6
 
7
7
  export type ButtonProps = React.HTMLAttributes<HTMLButtonElement> &
8
8
  ButtonVariants & {
9
- css?: string;
10
9
  isPending?: boolean;
11
10
  isDisabled?: boolean;
12
11
  translation?: {
@@ -4,14 +4,13 @@ import { columnItem, columnsRecipe, ColumnsVariants } from './styles.css';
4
4
 
5
5
  export type ColumnsProps = React.HTMLAttributes<HTMLDivElement> &
6
6
  ColumnsVariants & {
7
- css?: string;
8
7
  columns: number[];
9
8
  children: React.ReactNode;
10
9
  };
11
10
 
12
- export const Columns = ({ align, vAlign, columns, children, className, css }: ColumnsProps) => {
11
+ export const Columns = ({ align, vAlign, columns, children, className }: ColumnsProps) => {
13
12
  return (
14
- <div className={clsx(columnsRecipe({ align, vAlign }), css, className)}>
13
+ <div className={clsx(columnsRecipe({ align, vAlign }), className)}>
15
14
  {Array.isArray(children) &&
16
15
  children.map((child, index) => (
17
16
  <div
@@ -3,8 +3,7 @@ import { clsx } from 'clsx';
3
3
  import { footerRecipe } from './styles.css';
4
4
 
5
5
  export type FooterProps = React.HTMLAttributes<HTMLDivElement> & {
6
- css?: string;
7
6
  children: React.ReactNode;
8
7
  };
9
8
 
10
- export const Footer = ({ children, css, className }: FooterProps) => <footer className={clsx(footerRecipe, css, className)}>{children}</footer>;
9
+ export const Footer = ({ children, className }: FooterProps) => <footer className={clsx(footerRecipe, className)}>{children}</footer>;
@@ -4,7 +4,6 @@ import { formRecipe, type FormVariants } from './Form.css';
4
4
  import { sprinkles, type Sprinkles } from '../../styles/sprinkles.css';
5
5
 
6
6
  export interface FormProps extends Omit<React.FormHTMLAttributes<HTMLFormElement>, 'color'>, Sprinkles, NonNullable<FormVariants> {
7
- css?: string;
8
7
  children: React.ReactNode;
9
8
  }
10
9
 
@@ -14,7 +13,6 @@ export const Form = forwardRef<HTMLFormElement, FormProps>(
14
13
  children,
15
14
  spacing,
16
15
  layout,
17
- css,
18
16
  className,
19
17
  // Extract sprinkles props
20
18
  margin,
@@ -114,7 +112,6 @@ export const Form = forwardRef<HTMLFormElement, FormProps>(
114
112
  overflowX,
115
113
  overflowY,
116
114
  }),
117
- css,
118
115
  className
119
116
  )}
120
117
  {...htmlProps}>
@@ -4,7 +4,6 @@ import { rowRecipe, type RowVariants } from './Row.css';
4
4
  import { sprinkles, type Sprinkles } from '../../../styles/sprinkles.css';
5
5
 
6
6
  export interface RowProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, Sprinkles, NonNullable<RowVariants> {
7
- css?: string;
8
7
  children: React.ReactNode;
9
8
  isActions?: boolean;
10
9
  isMessage?: boolean;
@@ -19,7 +18,6 @@ export const Row = forwardRef<HTMLDivElement, RowProps>(
19
18
  spacing,
20
19
  isActions = false,
21
20
  isMessage = false,
22
- css,
23
21
  className,
24
22
  // Extract sprinkles props
25
23
  margin,
@@ -124,7 +122,6 @@ export const Row = forwardRef<HTMLDivElement, RowProps>(
124
122
  overflowX,
125
123
  overflowY,
126
124
  }),
127
- css,
128
125
  className
129
126
  )}
130
127
  {...htmlProps}>
@@ -9,7 +9,6 @@ export interface InputProps
9
9
  extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'color' | 'size' | 'height' | 'width'>,
10
10
  Sprinkles,
11
11
  NonNullable<InputVariants> {
12
- css?: string;
13
12
  name: string;
14
13
  type?: InputType;
15
14
  hasError?: boolean;
@@ -23,7 +22,6 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(
23
22
  hasError = false,
24
23
  size,
25
24
  variant,
26
- css,
27
25
  className,
28
26
  // Extract sprinkles props
29
27
  margin,
@@ -126,7 +124,6 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(
126
124
  overflowX,
127
125
  overflowY,
128
126
  }),
129
- css,
130
127
  className
131
128
  )}
132
129
  data-error={hasError}
@@ -4,7 +4,6 @@ import { labelRecipe, type LabelVariants } from './Label.css';
4
4
  import { sprinkles, type Sprinkles } from '../../../../styles/sprinkles.css';
5
5
 
6
6
  export interface LabelProps extends Omit<React.LabelHTMLAttributes<HTMLLabelElement>, 'color'>, Sprinkles, NonNullable<LabelVariants> {
7
- css?: string;
8
7
  label: string;
9
8
  name: string;
10
9
  required?: boolean;
@@ -18,7 +17,6 @@ export const Label = forwardRef<HTMLLabelElement, LabelProps>(
18
17
  required = false,
19
18
  size,
20
19
  variant,
21
- css,
22
20
  className,
23
21
  // Extract sprinkles props
24
22
  margin,
@@ -119,7 +117,6 @@ export const Label = forwardRef<HTMLLabelElement, LabelProps>(
119
117
  overflowX,
120
118
  overflowY,
121
119
  }),
122
- css,
123
120
  className
124
121
  )}
125
122
  data-required={required}
@@ -6,7 +6,6 @@ import { sprinkles, type Sprinkles } from '../../../styles/sprinkles.css';
6
6
  export type InputType = 'text' | 'email' | 'search' | 'number' | 'hidden' | 'password' | 'textarea';
7
7
 
8
8
  export interface TextFieldProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color' | 'onChange'>, Sprinkles, NonNullable<TextFieldVariants> {
9
- css?: string;
10
9
  name: string;
11
10
  label?: string;
12
11
  value?: string;
@@ -33,7 +32,6 @@ export const TextField = forwardRef<HTMLDivElement, TextFieldProps>(
33
32
  type = 'text',
34
33
  onChange,
35
34
  size,
36
- css,
37
35
  className,
38
36
  // Extract sprinkles props
39
37
  margin,
@@ -141,7 +139,6 @@ export const TextField = forwardRef<HTMLDivElement, TextFieldProps>(
141
139
  overflowX,
142
140
  overflowY,
143
141
  }),
144
- css,
145
142
  className
146
143
  )}
147
144
  {...htmlProps}>
@@ -7,7 +7,6 @@ export interface TextareaProps
7
7
  extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'color' | 'size'>,
8
8
  Sprinkles,
9
9
  NonNullable<TextareaVariants> {
10
- css?: string;
11
10
  name: string;
12
11
  hasError?: boolean;
13
12
  }
@@ -20,7 +19,6 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(
20
19
  size,
21
20
  variant,
22
21
  resize,
23
- css,
24
22
  className,
25
23
  // Extract sprinkles props
26
24
  margin,
@@ -122,7 +120,6 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(
122
120
  overflowX,
123
121
  overflowY,
124
122
  }),
125
- css,
126
123
  className
127
124
  )}
128
125
  data-error={hasError}
@@ -5,13 +5,12 @@ import { AllowedHeading } from './types';
5
5
 
6
6
  export type HeadingProps = React.HTMLAttributes<HTMLHeadingElement> &
7
7
  HeadingVariants & {
8
- css?: string;
9
8
  as: AllowedHeading;
10
9
  children: React.ReactNode;
11
10
  };
12
11
 
13
- export const Heading = ({ as, size, weight, align, css, className, children }: HeadingProps) => {
12
+ export const Heading = ({ as, size, weight, align, className, children }: HeadingProps) => {
14
13
  const Component = as as AllowedHeading;
15
14
 
16
- return <Component className={clsx(headingRecipe({ size, weight, align }), css, className)}>{children}</Component>;
15
+ return <Component className={clsx(headingRecipe({ size, weight, align }), className)}>{children}</Component>;
17
16
  };
@@ -17,7 +17,6 @@ import {
17
17
 
18
18
  export type VideoProps = React.HTMLAttributes<HTMLDivElement> &
19
19
  VideoVariants & {
20
- css?: string;
21
20
  video: string;
22
21
  poster?: string;
23
22
  isAutoPlay?: boolean;