@koaris/bloom-ui 1.2.5 → 1.3.0

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.d.cts CHANGED
@@ -66,7 +66,7 @@ interface CheckboxProps extends DetailedHTMLProps<HTMLAttributes<HTMLDivElement>
66
66
  }
67
67
  declare const Checkbox: ({ className, required, disabled }: CheckboxProps) => react_jsx_runtime.JSX.Element;
68
68
 
69
- type InputType = 'text' | 'password' | 'date' | 'cpf' | 'phone' | 'cnpj' | 'cep' | 'email';
69
+ type InputType = 'text' | 'password' | 'date' | 'datePicker' | 'cpf' | 'phone' | 'cnpj' | 'cep' | 'email';
70
70
  interface PasswordValidation {
71
71
  hasEightCharacters: boolean;
72
72
  hasSpecialCharacters: boolean;
@@ -105,42 +105,81 @@ interface TextInputProps extends DetailedHTMLProps<InputHTMLAttributes<HTMLInput
105
105
  }
106
106
  declare const TextInput: react.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
107
107
 
108
- interface TextAreaProps extends DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> {
108
+ type TextAreaSize = 'sm' | 'md' | 'lg';
109
+ type TextAreaVariant = 'primary' | 'secondary' | 'outline';
110
+ type TextAreaType = 'text' | 'markdown' | 'code' | 'json';
111
+ interface TextAreaProps extends Omit<DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, 'type'> {
109
112
  disabled?: boolean;
110
- reference?: React.RefObject<HTMLTextAreaElement>;
111
113
  placeholder?: string;
112
114
  value?: string;
113
115
  validated?: boolean;
114
- error: boolean;
116
+ error?: boolean;
115
117
  required?: boolean;
116
- resize?: boolean;
117
- type: 'text' | 'password' | 'date' | 'cpf' | 'phone' | 'cnpj' | 'cep';
118
+ resize?: 'none' | 'vertical' | 'horizontal' | 'both';
119
+ type?: TextAreaType;
120
+ errorMessage?: string;
121
+ onChange?: (event: ChangeEvent<HTMLTextAreaElement>) => void;
122
+ label?: string;
123
+ helperText?: string;
124
+ maxLength?: number;
125
+ minRows?: number;
126
+ maxRows?: number;
127
+ size?: TextAreaSize;
128
+ variant?: TextAreaVariant;
129
+ showCount?: boolean;
130
+ autoGrow?: boolean;
118
131
  }
119
- declare const TextArea: ({ className, disabled, reference, value, error, required, placeholder, resize, onClick, ...rest }: TextAreaProps) => react_jsx_runtime.JSX.Element;
132
+ declare const TextArea: react.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
120
133
 
121
- interface TextProps extends DetailedHTMLProps<HTMLAttributes<HTMLLabelElement>, HTMLLabelElement> {
134
+ interface TextProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
122
135
  children: ReactNode;
123
- color?: string;
136
+ color?: 'primary' | 'secondary' | 'accent' | 'neutral' | 'success' | 'warning' | 'error' | 'info';
137
+ colorShade?: '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
124
138
  size?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';
125
- tag?: 'p' | 'strong' | 'span' | 'label';
139
+ tag?: 'p' | 'span' | 'label' | 'strong' | 'em' | 'small' | 'div';
140
+ weight?: 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
141
+ tracking?: 'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest';
142
+ leading?: 'none' | 'tight' | 'snug' | 'normal' | 'relaxed' | 'loose';
143
+ alignment?: 'left' | 'center' | 'right' | 'justify';
144
+ truncate?: boolean;
145
+ italic?: boolean;
146
+ uppercase?: boolean;
147
+ lowercase?: boolean;
148
+ capitalize?: boolean;
126
149
  htmlFor?: string;
127
150
  }
128
- declare const Text: ({ children, color, size, tag, className, ...rest }: TextProps) => react_jsx_runtime.JSX.Element;
151
+ declare const Text: {
152
+ ({ children, color, colorShade, size, tag, weight, tracking, leading, alignment, truncate, italic, uppercase, lowercase, capitalize, className, ...rest }: TextProps): react_jsx_runtime.JSX.Element;
153
+ displayName: string;
154
+ };
129
155
 
130
- interface HeadingProps extends DetailedHTMLProps<HTMLAttributes<HTMLHeadElement>, HTMLHeadElement> {
156
+ interface HeadingProps extends DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> {
131
157
  children: React.ReactNode;
132
- color?: string;
158
+ color?: 'primary' | 'secondary' | 'accent' | 'neutral' | 'success' | 'warning' | 'error' | 'info';
159
+ colorShade?: '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
133
160
  size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';
134
- tag?: 'h1' | 'h2' | 'h3' | 'h4';
161
+ tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
162
+ weight?: 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold';
163
+ tracking?: 'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest';
164
+ alignment?: 'left' | 'center' | 'right';
165
+ truncate?: boolean;
166
+ uppercase?: boolean;
135
167
  }
136
- declare const Heading: ({ children, color, size, tag, className, }: HeadingProps) => react_jsx_runtime.JSX.Element;
168
+ declare const Heading: ({ children, color, colorShade, size, tag, weight, tracking, alignment, truncate, uppercase, className, ...rest }: HeadingProps) => react_jsx_runtime.JSX.Element;
137
169
 
170
+ type BoxVariant = 'primary' | 'secondary' | 'ghost' | 'outline';
171
+ type BoxSize = 'sm' | 'md' | 'lg' | 'xl';
138
172
  interface BoxProps extends DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
139
173
  children: React.ReactNode;
140
- tag?: 'div' | 'section' | 'article' | 'aside' | 'header' | 'footer';
141
- variant?: 'primary' | 'secondary';
174
+ tag?: 'div' | 'section' | 'article' | 'aside' | 'header' | 'footer' | 'main' | 'nav';
175
+ variant?: BoxVariant;
176
+ size?: BoxSize;
177
+ elevated?: boolean;
178
+ hasBorder?: boolean;
179
+ isInteractive?: boolean;
180
+ fullWidth?: boolean;
142
181
  }
143
- declare const Box: ({ className, children, tag, variant, }: BoxProps) => react_jsx_runtime.JSX.Element;
182
+ declare const Box: react.ForwardRefExoticComponent<Omit<BoxProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
144
183
 
145
184
  interface FormProps extends DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement> {
146
185
  children: React.ReactNode;
@@ -251,4 +290,4 @@ declare const ToastProvider: react__default.FC<{
251
290
  children: react__default.ReactNode;
252
291
  }>;
253
292
 
254
- export { Avatar, type AvatarProps, Box, type BoxProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardDirection, type CardProps, type CardSize, Checkbox, type CheckboxProps, Form, type FormProps, Heading, type HeadingProps, Input, type InputProps, type InputType, Link, type LinkProps, Loading, type LoadingColor, type LoadingProps, type LoadingSize, Modal, type ModalProps, MultiStep, type MultiStepProps, type PasswordValidation, type PhoneFormat, RadioGroup, type RadioGroupProps, Skeleton, type SkeletonProps, Text, TextArea, type TextAreaProps, TextInput, type TextInputProps, type TextProps, Toast, ToastContainer, type ToastContainerProps, type ToastPosition, type ToastProps, ToastProvider, type ToastVariant, Toggle, type ToggleProps, toastService, useToast };
293
+ export { Avatar, type AvatarProps, Box, type BoxProps, type BoxSize, type BoxVariant, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardDirection, type CardProps, type CardSize, Checkbox, type CheckboxProps, Form, type FormProps, Heading, type HeadingProps, Input, type InputProps, type InputType, Link, type LinkProps, Loading, type LoadingColor, type LoadingProps, type LoadingSize, Modal, type ModalProps, MultiStep, type MultiStepProps, type PasswordValidation, type PhoneFormat, RadioGroup, type RadioGroupProps, Skeleton, type SkeletonProps, Text, TextArea, type TextAreaProps, type TextAreaSize, type TextAreaType, type TextAreaVariant, TextInput, type TextInputProps, type TextProps, Toast, ToastContainer, type ToastContainerProps, type ToastPosition, type ToastProps, ToastProvider, type ToastVariant, Toggle, type ToggleProps, toastService, useToast };
package/dist/index.d.ts CHANGED
@@ -66,7 +66,7 @@ interface CheckboxProps extends DetailedHTMLProps<HTMLAttributes<HTMLDivElement>
66
66
  }
67
67
  declare const Checkbox: ({ className, required, disabled }: CheckboxProps) => react_jsx_runtime.JSX.Element;
68
68
 
69
- type InputType = 'text' | 'password' | 'date' | 'cpf' | 'phone' | 'cnpj' | 'cep' | 'email';
69
+ type InputType = 'text' | 'password' | 'date' | 'datePicker' | 'cpf' | 'phone' | 'cnpj' | 'cep' | 'email';
70
70
  interface PasswordValidation {
71
71
  hasEightCharacters: boolean;
72
72
  hasSpecialCharacters: boolean;
@@ -105,42 +105,81 @@ interface TextInputProps extends DetailedHTMLProps<InputHTMLAttributes<HTMLInput
105
105
  }
106
106
  declare const TextInput: react.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
107
107
 
108
- interface TextAreaProps extends DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> {
108
+ type TextAreaSize = 'sm' | 'md' | 'lg';
109
+ type TextAreaVariant = 'primary' | 'secondary' | 'outline';
110
+ type TextAreaType = 'text' | 'markdown' | 'code' | 'json';
111
+ interface TextAreaProps extends Omit<DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, 'type'> {
109
112
  disabled?: boolean;
110
- reference?: React.RefObject<HTMLTextAreaElement>;
111
113
  placeholder?: string;
112
114
  value?: string;
113
115
  validated?: boolean;
114
- error: boolean;
116
+ error?: boolean;
115
117
  required?: boolean;
116
- resize?: boolean;
117
- type: 'text' | 'password' | 'date' | 'cpf' | 'phone' | 'cnpj' | 'cep';
118
+ resize?: 'none' | 'vertical' | 'horizontal' | 'both';
119
+ type?: TextAreaType;
120
+ errorMessage?: string;
121
+ onChange?: (event: ChangeEvent<HTMLTextAreaElement>) => void;
122
+ label?: string;
123
+ helperText?: string;
124
+ maxLength?: number;
125
+ minRows?: number;
126
+ maxRows?: number;
127
+ size?: TextAreaSize;
128
+ variant?: TextAreaVariant;
129
+ showCount?: boolean;
130
+ autoGrow?: boolean;
118
131
  }
119
- declare const TextArea: ({ className, disabled, reference, value, error, required, placeholder, resize, onClick, ...rest }: TextAreaProps) => react_jsx_runtime.JSX.Element;
132
+ declare const TextArea: react.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
120
133
 
121
- interface TextProps extends DetailedHTMLProps<HTMLAttributes<HTMLLabelElement>, HTMLLabelElement> {
134
+ interface TextProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
122
135
  children: ReactNode;
123
- color?: string;
136
+ color?: 'primary' | 'secondary' | 'accent' | 'neutral' | 'success' | 'warning' | 'error' | 'info';
137
+ colorShade?: '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
124
138
  size?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';
125
- tag?: 'p' | 'strong' | 'span' | 'label';
139
+ tag?: 'p' | 'span' | 'label' | 'strong' | 'em' | 'small' | 'div';
140
+ weight?: 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
141
+ tracking?: 'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest';
142
+ leading?: 'none' | 'tight' | 'snug' | 'normal' | 'relaxed' | 'loose';
143
+ alignment?: 'left' | 'center' | 'right' | 'justify';
144
+ truncate?: boolean;
145
+ italic?: boolean;
146
+ uppercase?: boolean;
147
+ lowercase?: boolean;
148
+ capitalize?: boolean;
126
149
  htmlFor?: string;
127
150
  }
128
- declare const Text: ({ children, color, size, tag, className, ...rest }: TextProps) => react_jsx_runtime.JSX.Element;
151
+ declare const Text: {
152
+ ({ children, color, colorShade, size, tag, weight, tracking, leading, alignment, truncate, italic, uppercase, lowercase, capitalize, className, ...rest }: TextProps): react_jsx_runtime.JSX.Element;
153
+ displayName: string;
154
+ };
129
155
 
130
- interface HeadingProps extends DetailedHTMLProps<HTMLAttributes<HTMLHeadElement>, HTMLHeadElement> {
156
+ interface HeadingProps extends DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> {
131
157
  children: React.ReactNode;
132
- color?: string;
158
+ color?: 'primary' | 'secondary' | 'accent' | 'neutral' | 'success' | 'warning' | 'error' | 'info';
159
+ colorShade?: '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
133
160
  size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';
134
- tag?: 'h1' | 'h2' | 'h3' | 'h4';
161
+ tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
162
+ weight?: 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold';
163
+ tracking?: 'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest';
164
+ alignment?: 'left' | 'center' | 'right';
165
+ truncate?: boolean;
166
+ uppercase?: boolean;
135
167
  }
136
- declare const Heading: ({ children, color, size, tag, className, }: HeadingProps) => react_jsx_runtime.JSX.Element;
168
+ declare const Heading: ({ children, color, colorShade, size, tag, weight, tracking, alignment, truncate, uppercase, className, ...rest }: HeadingProps) => react_jsx_runtime.JSX.Element;
137
169
 
170
+ type BoxVariant = 'primary' | 'secondary' | 'ghost' | 'outline';
171
+ type BoxSize = 'sm' | 'md' | 'lg' | 'xl';
138
172
  interface BoxProps extends DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
139
173
  children: React.ReactNode;
140
- tag?: 'div' | 'section' | 'article' | 'aside' | 'header' | 'footer';
141
- variant?: 'primary' | 'secondary';
174
+ tag?: 'div' | 'section' | 'article' | 'aside' | 'header' | 'footer' | 'main' | 'nav';
175
+ variant?: BoxVariant;
176
+ size?: BoxSize;
177
+ elevated?: boolean;
178
+ hasBorder?: boolean;
179
+ isInteractive?: boolean;
180
+ fullWidth?: boolean;
142
181
  }
143
- declare const Box: ({ className, children, tag, variant, }: BoxProps) => react_jsx_runtime.JSX.Element;
182
+ declare const Box: react.ForwardRefExoticComponent<Omit<BoxProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
144
183
 
145
184
  interface FormProps extends DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement> {
146
185
  children: React.ReactNode;
@@ -251,4 +290,4 @@ declare const ToastProvider: react__default.FC<{
251
290
  children: react__default.ReactNode;
252
291
  }>;
253
292
 
254
- export { Avatar, type AvatarProps, Box, type BoxProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardDirection, type CardProps, type CardSize, Checkbox, type CheckboxProps, Form, type FormProps, Heading, type HeadingProps, Input, type InputProps, type InputType, Link, type LinkProps, Loading, type LoadingColor, type LoadingProps, type LoadingSize, Modal, type ModalProps, MultiStep, type MultiStepProps, type PasswordValidation, type PhoneFormat, RadioGroup, type RadioGroupProps, Skeleton, type SkeletonProps, Text, TextArea, type TextAreaProps, TextInput, type TextInputProps, type TextProps, Toast, ToastContainer, type ToastContainerProps, type ToastPosition, type ToastProps, ToastProvider, type ToastVariant, Toggle, type ToggleProps, toastService, useToast };
293
+ export { Avatar, type AvatarProps, Box, type BoxProps, type BoxSize, type BoxVariant, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardDirection, type CardProps, type CardSize, Checkbox, type CheckboxProps, Form, type FormProps, Heading, type HeadingProps, Input, type InputProps, type InputType, Link, type LinkProps, Loading, type LoadingColor, type LoadingProps, type LoadingSize, Modal, type ModalProps, MultiStep, type MultiStepProps, type PasswordValidation, type PhoneFormat, RadioGroup, type RadioGroupProps, Skeleton, type SkeletonProps, Text, TextArea, type TextAreaProps, type TextAreaSize, type TextAreaType, type TextAreaVariant, TextInput, type TextInputProps, type TextProps, Toast, ToastContainer, type ToastContainerProps, type ToastPosition, type ToastProps, ToastProvider, type ToastVariant, Toggle, type ToggleProps, toastService, useToast };