analytica-frontend-lib 1.0.21 → 1.0.23
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/Alert/Alert.d.mts +13 -0
- package/dist/Alert/Alert.d.ts +13 -0
- package/dist/Alert/Alert.js +158 -0
- package/dist/Alert/Alert.mjs +85 -0
- package/dist/Badge/Badge.d.mts +47 -0
- package/dist/Badge/Badge.d.ts +47 -0
- package/dist/Badge/Badge.js +117 -0
- package/dist/Badge/Badge.mjs +92 -0
- package/dist/Button/Button.d.mts +46 -0
- package/dist/Button/Button.d.ts +46 -0
- package/dist/Button/Button.js +84 -0
- package/dist/Button/Button.mjs +59 -0
- package/dist/CheckBox/CheckBox.d.mts +74 -0
- package/dist/CheckBox/CheckBox.d.ts +74 -0
- package/dist/CheckBox/CheckBox.js +264 -0
- package/dist/CheckBox/CheckBox.mjs +195 -0
- package/dist/DropdownMenu/DropdownMenu.d.mts +29 -0
- package/dist/DropdownMenu/DropdownMenu.d.ts +29 -0
- package/dist/DropdownMenu/DropdownMenu.js +262 -0
- package/dist/DropdownMenu/DropdownMenu.mjs +242 -0
- package/dist/IconButton/IconButton.d.mts +77 -0
- package/dist/IconButton/IconButton.d.ts +77 -0
- package/dist/IconButton/IconButton.js +79 -0
- package/dist/IconButton/IconButton.mjs +54 -0
- package/dist/IconRoundedButton/IconRoundedButton.d.mts +35 -0
- package/dist/IconRoundedButton/IconRoundedButton.d.ts +35 -0
- package/dist/IconRoundedButton/IconRoundedButton.js +68 -0
- package/dist/IconRoundedButton/IconRoundedButton.mjs +43 -0
- package/dist/NavButton/NavButton.d.mts +58 -0
- package/dist/NavButton/NavButton.d.ts +58 -0
- package/dist/NavButton/NavButton.js +76 -0
- package/dist/NavButton/NavButton.mjs +51 -0
- package/dist/SelectionButton/SelectionButton.d.mts +58 -0
- package/dist/SelectionButton/SelectionButton.d.ts +58 -0
- package/dist/SelectionButton/SelectionButton.js +81 -0
- package/dist/SelectionButton/SelectionButton.mjs +56 -0
- package/dist/Table/Table.d.mts +17 -0
- package/dist/Table/Table.d.ts +17 -0
- package/dist/Table/Table.js +139 -0
- package/dist/Table/Table.mjs +107 -0
- package/dist/Text/Text.d.mts +59 -0
- package/dist/Text/Text.d.ts +59 -0
- package/dist/Text/Text.js +77 -0
- package/dist/Text/Text.mjs +6 -0
- package/dist/TextArea/TextArea.d.mts +69 -0
- package/dist/TextArea/TextArea.d.ts +69 -0
- package/dist/TextArea/TextArea.js +211 -0
- package/dist/TextArea/TextArea.mjs +142 -0
- package/dist/Toast/Toast.d.mts +17 -0
- package/dist/Toast/Toast.d.ts +17 -0
- package/dist/Toast/Toast.js +100 -0
- package/dist/Toast/Toast.mjs +7 -0
- package/dist/Toast/utils/ToastStore.d.mts +19 -0
- package/dist/Toast/utils/ToastStore.d.ts +19 -0
- package/dist/Toast/utils/ToastStore.js +44 -0
- package/dist/Toast/utils/ToastStore.mjs +6 -0
- package/dist/Toast/utils/Toaster.d.mts +11 -0
- package/dist/Toast/utils/Toaster.d.ts +11 -0
- package/dist/Toast/utils/Toaster.js +145 -0
- package/dist/Toast/utils/Toaster.mjs +35 -0
- package/dist/chunk-MI5FIRHM.mjs +75 -0
- package/dist/chunk-TT3VCQGR.mjs +53 -0
- package/dist/chunk-WIOCQOM7.mjs +20 -0
- package/dist/index.css +103 -0
- package/dist/index.d.mts +68 -2
- package/dist/index.d.ts +68 -2
- package/dist/index.js +217 -84
- package/dist/index.mjs +215 -79
- package/package.json +71 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ReactNode, ButtonHTMLAttributes, ElementType, ComponentPropsWithoutRef, HTMLAttributes, InputHTMLAttributes, TdHTMLAttributes } from 'react';
|
|
3
|
+
import react__default, { ReactNode, ButtonHTMLAttributes, ElementType, ComponentPropsWithoutRef, TextareaHTMLAttributes, HTMLAttributes, InputHTMLAttributes, TdHTMLAttributes } from 'react';
|
|
4
4
|
import * as zustand from 'zustand';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -185,6 +185,72 @@ type TextProps<T extends ElementType = 'p'> = BaseTextProps & {
|
|
|
185
185
|
*/
|
|
186
186
|
declare const Text: <T extends ElementType = "p">({ children, size, weight, color, as, className, ...props }: TextProps<T>) => react_jsx_runtime.JSX.Element;
|
|
187
187
|
|
|
188
|
+
/**
|
|
189
|
+
* TextArea size variants
|
|
190
|
+
*/
|
|
191
|
+
type TextAreaSize = 'small' | 'medium' | 'large' | 'extraLarge';
|
|
192
|
+
/**
|
|
193
|
+
* TextArea visual state
|
|
194
|
+
*/
|
|
195
|
+
type TextAreaState = 'default' | 'hovered' | 'focused' | 'invalid' | 'disabled';
|
|
196
|
+
/**
|
|
197
|
+
* TextArea component props interface
|
|
198
|
+
*/
|
|
199
|
+
type TextAreaProps = {
|
|
200
|
+
/** Label text to display above the textarea */
|
|
201
|
+
label?: ReactNode;
|
|
202
|
+
/** Size variant of the textarea */
|
|
203
|
+
size?: TextAreaSize;
|
|
204
|
+
/** Visual state of the textarea */
|
|
205
|
+
state?: TextAreaState;
|
|
206
|
+
/** Error message to display */
|
|
207
|
+
errorMessage?: string;
|
|
208
|
+
/** Helper text to display */
|
|
209
|
+
helperMessage?: string;
|
|
210
|
+
/** Additional CSS classes */
|
|
211
|
+
className?: string;
|
|
212
|
+
/** Label CSS classes */
|
|
213
|
+
labelClassName?: string;
|
|
214
|
+
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>;
|
|
215
|
+
/**
|
|
216
|
+
* TextArea component for Analytica Ensino platforms
|
|
217
|
+
*
|
|
218
|
+
* A textarea component with essential states, sizes and themes.
|
|
219
|
+
* Uses exact design specifications with 288px width, 96px height, and specific
|
|
220
|
+
* color values. Includes Text component integration for consistent typography.
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* ```tsx
|
|
224
|
+
* // Basic textarea
|
|
225
|
+
* <TextArea label="Description" placeholder="Enter description..." />
|
|
226
|
+
*
|
|
227
|
+
* // Small size
|
|
228
|
+
* <TextArea size="small" label="Comment" />
|
|
229
|
+
*
|
|
230
|
+
* // Invalid state
|
|
231
|
+
* <TextArea state="invalid" label="Required field" errorMessage="This field is required" />
|
|
232
|
+
*
|
|
233
|
+
* // Disabled state
|
|
234
|
+
* <TextArea disabled label="Read-only field" />
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
237
|
+
declare const TextArea: react__default.ForwardRefExoticComponent<{
|
|
238
|
+
/** Label text to display above the textarea */
|
|
239
|
+
label?: ReactNode;
|
|
240
|
+
/** Size variant of the textarea */
|
|
241
|
+
size?: TextAreaSize;
|
|
242
|
+
/** Visual state of the textarea */
|
|
243
|
+
state?: TextAreaState;
|
|
244
|
+
/** Error message to display */
|
|
245
|
+
errorMessage?: string;
|
|
246
|
+
/** Helper text to display */
|
|
247
|
+
helperMessage?: string;
|
|
248
|
+
/** Additional CSS classes */
|
|
249
|
+
className?: string;
|
|
250
|
+
/** Label CSS classes */
|
|
251
|
+
labelClassName?: string;
|
|
252
|
+
} & Omit<react__default.TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> & react__default.RefAttributes<HTMLTextAreaElement>>;
|
|
253
|
+
|
|
188
254
|
/**
|
|
189
255
|
* Badge component props interface
|
|
190
256
|
*/
|
|
@@ -497,4 +563,4 @@ declare const useToast: () => {
|
|
|
497
563
|
removeToast: (id: string) => void;
|
|
498
564
|
};
|
|
499
565
|
|
|
500
|
-
export { Badge, Button, CheckBox, type CheckBoxProps, DropdownMenu, DropdownMenuTrigger, IconButton, type IconButtonProps, IconRoundedButton, MenuContent, MenuItem, MenuLabel, MenuSeparator, NavButton, SelectionButton, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Text, Toast, type ToastData, Toaster, useToast, useToastStore };
|
|
566
|
+
export { Badge, Button, CheckBox, type CheckBoxProps, DropdownMenu, DropdownMenuTrigger, IconButton, type IconButtonProps, IconRoundedButton, MenuContent, MenuItem, MenuLabel, MenuSeparator, NavButton, SelectionButton, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Text, TextArea, type TextAreaProps, Toast, type ToastData, Toaster, useToast, useToastStore };
|