analytica-frontend-lib 1.0.24 → 1.0.25

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 (85) hide show
  1. package/dist/{chunk-JNPCNN67.mjs → Alert/Alert.mjs} +1 -2
  2. package/dist/{chunk-GSEO6POW.mjs → Badge/Badge.mjs} +0 -1
  3. package/dist/{chunk-IB4IJ3GF.mjs → Button/Button.mjs} +0 -1
  4. package/dist/{chunk-LYOJCBOM.mjs → CheckBox/CheckBox.mjs} +2 -2
  5. package/dist/{chunk-KT6HNGRV.mjs → DropdownMenu/DropdownMenu.mjs} +3 -2
  6. package/dist/{chunk-RPYPJ5O5.mjs → IconButton/IconButton.mjs} +0 -1
  7. package/dist/{chunk-QOFMTSHE.mjs → IconRoundedButton/IconRoundedButton.mjs} +0 -1
  8. package/dist/{chunk-CETSS3RA.mjs → NavButton/NavButton.mjs} +0 -1
  9. package/dist/{chunk-SESX5OEP.mjs → SelectionButton/SelectionButton.mjs} +0 -1
  10. package/dist/{chunk-NWGRQN6R.mjs → Table/Table.mjs} +4 -5
  11. package/dist/{components/Text → Text}/Text.mjs +1 -1
  12. package/dist/{chunk-QODEDLAX.mjs → TextArea/TextArea.mjs} +2 -2
  13. package/dist/{components/Toast → Toast}/Toast.mjs +1 -1
  14. package/dist/{components/Toast → Toast}/utils/ToastStore.mjs +1 -1
  15. package/dist/{chunk-IH5TEC64.mjs → Toast/utils/Toaster.mjs} +3 -3
  16. package/dist/index.d.mts +154 -26
  17. package/dist/index.d.ts +154 -26
  18. package/dist/index.js +671 -16
  19. package/dist/index.mjs +676 -8
  20. package/package.json +1 -6
  21. package/dist/client-components.d.mts +0 -9
  22. package/dist/client-components.d.ts +0 -9
  23. package/dist/client-components.js +0 -755
  24. package/dist/client-components.mjs +0 -39
  25. package/dist/components/Alert/Alert.mjs +0 -7
  26. package/dist/components/Badge/Badge.mjs +0 -6
  27. package/dist/components/Button/Button.mjs +0 -6
  28. package/dist/components/CheckBox/CheckBox.mjs +0 -8
  29. package/dist/components/DropdownMenu/DropdownMenu.mjs +0 -17
  30. package/dist/components/IconButton/IconButton.mjs +0 -6
  31. package/dist/components/IconRoundedButton/IconRoundedButton.mjs +0 -6
  32. package/dist/components/NavButton/NavButton.mjs +0 -6
  33. package/dist/components/SelectionButton/SelectionButton.mjs +0 -6
  34. package/dist/components/Table/Table.mjs +0 -20
  35. package/dist/components/TextArea/TextArea.mjs +0 -8
  36. package/dist/components/Toast/utils/Toaster.mjs +0 -11
  37. package/dist/server-components.d.mts +0 -11
  38. package/dist/server-components.d.ts +0 -11
  39. package/dist/server-components.js +0 -629
  40. package/dist/server-components.mjs +0 -52
  41. /package/dist/{components/Alert → Alert}/Alert.d.mts +0 -0
  42. /package/dist/{components/Alert → Alert}/Alert.d.ts +0 -0
  43. /package/dist/{components/Alert → Alert}/Alert.js +0 -0
  44. /package/dist/{components/Badge → Badge}/Badge.d.mts +0 -0
  45. /package/dist/{components/Badge → Badge}/Badge.d.ts +0 -0
  46. /package/dist/{components/Badge → Badge}/Badge.js +0 -0
  47. /package/dist/{components/Button → Button}/Button.d.mts +0 -0
  48. /package/dist/{components/Button → Button}/Button.d.ts +0 -0
  49. /package/dist/{components/Button → Button}/Button.js +0 -0
  50. /package/dist/{components/CheckBox → CheckBox}/CheckBox.d.mts +0 -0
  51. /package/dist/{components/CheckBox → CheckBox}/CheckBox.d.ts +0 -0
  52. /package/dist/{components/CheckBox → CheckBox}/CheckBox.js +0 -0
  53. /package/dist/{components/DropdownMenu → DropdownMenu}/DropdownMenu.d.mts +0 -0
  54. /package/dist/{components/DropdownMenu → DropdownMenu}/DropdownMenu.d.ts +0 -0
  55. /package/dist/{components/DropdownMenu → DropdownMenu}/DropdownMenu.js +0 -0
  56. /package/dist/{components/IconButton → IconButton}/IconButton.d.mts +0 -0
  57. /package/dist/{components/IconButton → IconButton}/IconButton.d.ts +0 -0
  58. /package/dist/{components/IconButton → IconButton}/IconButton.js +0 -0
  59. /package/dist/{components/IconRoundedButton → IconRoundedButton}/IconRoundedButton.d.mts +0 -0
  60. /package/dist/{components/IconRoundedButton → IconRoundedButton}/IconRoundedButton.d.ts +0 -0
  61. /package/dist/{components/IconRoundedButton → IconRoundedButton}/IconRoundedButton.js +0 -0
  62. /package/dist/{components/NavButton → NavButton}/NavButton.d.mts +0 -0
  63. /package/dist/{components/NavButton → NavButton}/NavButton.d.ts +0 -0
  64. /package/dist/{components/NavButton → NavButton}/NavButton.js +0 -0
  65. /package/dist/{components/SelectionButton → SelectionButton}/SelectionButton.d.mts +0 -0
  66. /package/dist/{components/SelectionButton → SelectionButton}/SelectionButton.d.ts +0 -0
  67. /package/dist/{components/SelectionButton → SelectionButton}/SelectionButton.js +0 -0
  68. /package/dist/{components/Table → Table}/Table.d.mts +0 -0
  69. /package/dist/{components/Table → Table}/Table.d.ts +0 -0
  70. /package/dist/{components/Table → Table}/Table.js +0 -0
  71. /package/dist/{components/Text → Text}/Text.d.mts +0 -0
  72. /package/dist/{components/Text → Text}/Text.d.ts +0 -0
  73. /package/dist/{components/Text → Text}/Text.js +0 -0
  74. /package/dist/{components/TextArea → TextArea}/TextArea.d.mts +0 -0
  75. /package/dist/{components/TextArea → TextArea}/TextArea.d.ts +0 -0
  76. /package/dist/{components/TextArea → TextArea}/TextArea.js +0 -0
  77. /package/dist/{components/Toast → Toast}/Toast.d.mts +0 -0
  78. /package/dist/{components/Toast → Toast}/Toast.d.ts +0 -0
  79. /package/dist/{components/Toast → Toast}/Toast.js +0 -0
  80. /package/dist/{components/Toast → Toast}/utils/ToastStore.d.mts +0 -0
  81. /package/dist/{components/Toast → Toast}/utils/ToastStore.d.ts +0 -0
  82. /package/dist/{components/Toast → Toast}/utils/ToastStore.js +0 -0
  83. /package/dist/{components/Toast → Toast}/utils/Toaster.d.mts +0 -0
  84. /package/dist/{components/Toast → Toast}/utils/Toaster.d.ts +0 -0
  85. /package/dist/{components/Toast → Toast}/utils/Toaster.js +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Text
3
- } from "./chunk-TT3VCQGR.mjs";
3
+ } from "../chunk-TT3VCQGR.mjs";
4
4
 
5
5
  // src/components/Alert/Alert.tsx
6
6
  import { CheckCircle, Info, WarningCircle, XCircle } from "phosphor-react";
@@ -80,7 +80,6 @@ var Alert = ({
80
80
  }
81
81
  );
82
82
  };
83
-
84
83
  export {
85
84
  Alert
86
85
  };
@@ -87,7 +87,6 @@ var Badge = ({
87
87
  }
88
88
  );
89
89
  };
90
-
91
90
  export {
92
91
  Badge
93
92
  };
@@ -54,7 +54,6 @@ var Button = ({
54
54
  }
55
55
  );
56
56
  };
57
-
58
57
  export {
59
58
  Button
60
59
  };
@@ -1,6 +1,7 @@
1
+ "use client";
1
2
  import {
2
3
  Text
3
- } from "./chunk-TT3VCQGR.mjs";
4
+ } from "../chunk-TT3VCQGR.mjs";
4
5
 
5
6
  // src/components/CheckBox/CheckBox.tsx
6
7
  import {
@@ -189,7 +190,6 @@ var CheckBox = forwardRef(
189
190
  }
190
191
  );
191
192
  CheckBox.displayName = "CheckBox";
192
-
193
193
  export {
194
194
  CheckBox
195
195
  };
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  // src/components/DropdownMenu/DropdownMenu.tsx
2
4
  import {
3
5
  createContext,
@@ -230,12 +232,11 @@ var MenuSeparator = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
230
232
  }
231
233
  ));
232
234
  MenuSeparator.displayName = "MenuSeparator";
233
-
234
235
  export {
235
236
  DropdownMenu,
236
237
  DropdownMenuTrigger,
237
- MenuLabel,
238
238
  MenuContent,
239
239
  MenuItem,
240
+ MenuLabel,
240
241
  MenuSeparator
241
242
  };
@@ -49,7 +49,6 @@ var IconButton = forwardRef(
49
49
  }
50
50
  );
51
51
  IconButton.displayName = "IconButton";
52
-
53
52
  export {
54
53
  IconButton
55
54
  };
@@ -38,7 +38,6 @@ var IconRoundedButton = ({
38
38
  }
39
39
  );
40
40
  };
41
-
42
41
  export {
43
42
  IconRoundedButton
44
43
  };
@@ -46,7 +46,6 @@ var NavButton = forwardRef(
46
46
  }
47
47
  );
48
48
  NavButton.displayName = "NavButton";
49
-
50
49
  export {
51
50
  NavButton
52
51
  };
@@ -51,7 +51,6 @@ var SelectionButton = forwardRef(
51
51
  }
52
52
  );
53
53
  SelectionButton.displayName = "SelectionButton";
54
-
55
54
  export {
56
55
  SelectionButton
57
56
  };
@@ -95,14 +95,13 @@ var TableCaption = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
95
95
  }
96
96
  ));
97
97
  TableCaption.displayName = "TableCaption";
98
-
99
98
  export {
100
99
  Table,
101
- TableHeader,
102
100
  TableBody,
101
+ TableCaption,
102
+ TableCell,
103
103
  TableFooter,
104
- TableRow,
105
104
  TableHead,
106
- TableCell,
107
- TableCaption
105
+ TableHeader,
106
+ TableRow
108
107
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Text
3
- } from "../../chunk-TT3VCQGR.mjs";
3
+ } from "../chunk-TT3VCQGR.mjs";
4
4
  export {
5
5
  Text
6
6
  };
@@ -1,6 +1,7 @@
1
+ "use client";
1
2
  import {
2
3
  Text
3
- } from "./chunk-TT3VCQGR.mjs";
4
+ } from "../chunk-TT3VCQGR.mjs";
4
5
 
5
6
  // src/components/TextArea/TextArea.tsx
6
7
  import {
@@ -136,7 +137,6 @@ var TextArea = forwardRef(
136
137
  }
137
138
  );
138
139
  TextArea.displayName = "TextArea";
139
-
140
140
  export {
141
141
  TextArea
142
142
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Toast
4
- } from "../../chunk-MI5FIRHM.mjs";
4
+ } from "../chunk-MI5FIRHM.mjs";
5
5
  export {
6
6
  Toast
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useToastStore
3
- } from "../../../chunk-WIOCQOM7.mjs";
3
+ } from "../../chunk-WIOCQOM7.mjs";
4
4
  export {
5
5
  useToastStore
6
6
  };
@@ -1,9 +1,10 @@
1
+ "use client";
1
2
  import {
2
3
  Toast
3
- } from "./chunk-MI5FIRHM.mjs";
4
+ } from "../../chunk-MI5FIRHM.mjs";
4
5
  import {
5
6
  useToastStore
6
- } from "./chunk-WIOCQOM7.mjs";
7
+ } from "../../chunk-WIOCQOM7.mjs";
7
8
 
8
9
  // src/components/Toast/utils/Toaster.tsx
9
10
  import { Fragment, jsx } from "react/jsx-runtime";
@@ -28,7 +29,6 @@ var useToast = () => {
28
29
  const removeToast = useToastStore((state) => state.removeToast);
29
30
  return { addToast, removeToast };
30
31
  };
31
-
32
32
  export {
33
33
  Toaster,
34
34
  useToast
package/dist/index.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
- import { ElementType, ReactNode, ComponentPropsWithoutRef, ButtonHTMLAttributes, HTMLAttributes, TdHTMLAttributes } from 'react';
3
+ import react__default, { ElementType, ReactNode, ComponentPropsWithoutRef, ButtonHTMLAttributes, HTMLAttributes, InputHTMLAttributes } from 'react';
4
+ import * as zustand from 'zustand';
4
5
 
5
6
  /**
6
7
  * Base text component props
@@ -151,19 +152,6 @@ type AlertProps = {
151
152
  } & HTMLAttributes<HTMLDivElement>;
152
153
  declare const Alert: ({ variant, title, description, action, className, ...props }: AlertProps) => react_jsx_runtime.JSX.Element;
153
154
 
154
- /**
155
- * IconButton component props interface
156
- */
157
- type IconButtonProps = {
158
- /** Ícone a ser exibido no botão */
159
- icon: ReactNode;
160
- /** Tamanho do botão */
161
- size?: 'sm' | 'md';
162
- /** Estado de seleção/ativo do botão - permanece ativo até ser clicado novamente ou outro botão ser ativado */
163
- active?: boolean;
164
- /** Additional CSS classes to apply */
165
- className?: string;
166
- } & ButtonHTMLAttributes<HTMLButtonElement>;
167
155
  /**
168
156
  * IconButton component for Analytica Ensino platforms
169
157
  *
@@ -363,17 +351,157 @@ declare const SelectionButton: react.ForwardRefExoticComponent<{
363
351
  className?: string;
364
352
  } & ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
365
353
 
366
- type TableRowState = 'default' | 'selected' | 'invalid' | 'disabled';
367
- interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
368
- state?: TableRowState;
369
- }
370
354
  declare const Table: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableElement> & react.RefAttributes<HTMLTableElement>>;
371
- declare const TableHeader: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
372
- declare const TableBody: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
373
- declare const TableFooter: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
374
- declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
375
- declare const TableHead: react.ForwardRefExoticComponent<TdHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>>;
376
- declare const TableCell: react.ForwardRefExoticComponent<TdHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>>;
377
- declare const TableCaption: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableCaptionElement> & react.RefAttributes<HTMLTableCaptionElement>>;
378
355
 
379
- export { Alert, Badge, Button, IconButton, type IconButtonProps, IconRoundedButton, NavButton, SelectionButton, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Text };
356
+ /**
357
+ * CheckBox size variants
358
+ */
359
+ type CheckBoxSize = 'small' | 'medium' | 'large';
360
+ /**
361
+ * CheckBox visual state
362
+ */
363
+ type CheckBoxState = 'default' | 'hovered' | 'focused' | 'invalid' | 'disabled';
364
+ /**
365
+ * CheckBox component for Analytica Ensino platforms
366
+ *
367
+ * A checkbox component with essential states, sizes and themes.
368
+ * Uses the Analytica Ensino Design System colors from styles.css with automatic
369
+ * light/dark mode support. Includes Text component integration for consistent typography.
370
+ *
371
+ * @example
372
+ * ```tsx
373
+ * // Basic checkbox
374
+ * <CheckBox label="Option" />
375
+ *
376
+ * // Small size
377
+ * <CheckBox size="small" label="Small option" />
378
+ *
379
+ * // Invalid state
380
+ * <CheckBox state="invalid" label="Required field" />
381
+ *
382
+ * // Disabled state
383
+ * <CheckBox disabled label="Disabled option" />
384
+ * ```
385
+ */
386
+ declare const CheckBox: react.ForwardRefExoticComponent<{
387
+ /** Label text to display next to the checkbox */
388
+ label?: ReactNode;
389
+ /** Size variant of the checkbox */
390
+ size?: CheckBoxSize;
391
+ /** Visual state of the checkbox */
392
+ state?: CheckBoxState;
393
+ /** Indeterminate state for partial selections */
394
+ indeterminate?: boolean;
395
+ /** Error message to display */
396
+ errorMessage?: string;
397
+ /** Helper text to display */
398
+ helperText?: string;
399
+ /** Additional CSS classes */
400
+ className?: string;
401
+ /** Label CSS classes */
402
+ labelClassName?: string;
403
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & react.RefAttributes<HTMLInputElement>>;
404
+
405
+ /**
406
+ * TextArea size variants
407
+ */
408
+ type TextAreaSize = 'small' | 'medium' | 'large' | 'extraLarge';
409
+ /**
410
+ * TextArea visual state
411
+ */
412
+ type TextAreaState = 'default' | 'hovered' | 'focused' | 'invalid' | 'disabled';
413
+ /**
414
+ * TextArea component for Analytica Ensino platforms
415
+ *
416
+ * A textarea component with essential states, sizes and themes.
417
+ * Uses exact design specifications with 288px width, 96px height, and specific
418
+ * color values. Includes Text component integration for consistent typography.
419
+ *
420
+ * @example
421
+ * ```tsx
422
+ * // Basic textarea
423
+ * <TextArea label="Description" placeholder="Enter description..." />
424
+ *
425
+ * // Small size
426
+ * <TextArea size="small" label="Comment" />
427
+ *
428
+ * // Invalid state
429
+ * <TextArea state="invalid" label="Required field" errorMessage="This field is required" />
430
+ *
431
+ * // Disabled state
432
+ * <TextArea disabled label="Read-only field" />
433
+ * ```
434
+ */
435
+ declare const TextArea: react__default.ForwardRefExoticComponent<{
436
+ /** Label text to display above the textarea */
437
+ label?: ReactNode;
438
+ /** Size variant of the textarea */
439
+ size?: TextAreaSize;
440
+ /** Visual state of the textarea */
441
+ state?: TextAreaState;
442
+ /** Error message to display */
443
+ errorMessage?: string;
444
+ /** Helper text to display */
445
+ helperMessage?: string;
446
+ /** Additional CSS classes */
447
+ className?: string;
448
+ /** Label CSS classes */
449
+ labelClassName?: string;
450
+ } & Omit<react__default.TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> & react__default.RefAttributes<HTMLTextAreaElement>>;
451
+
452
+ interface DropdownMenuProps {
453
+ children: ReactNode;
454
+ open?: boolean;
455
+ onOpenChange?: (open: boolean) => void;
456
+ }
457
+ declare const DropdownMenu: ({ children, open, onOpenChange }: DropdownMenuProps) => react_jsx_runtime.JSX.Element;
458
+ declare const DropdownMenuTrigger: react.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
459
+ declare const MenuLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFieldSetElement> & {
460
+ inset?: boolean;
461
+ } & react.RefAttributes<HTMLFieldSetElement>>;
462
+ declare const MenuContent: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
463
+ align?: "start" | "center" | "end";
464
+ side?: "top" | "right" | "bottom" | "left";
465
+ sideOffset?: number;
466
+ } & react.RefAttributes<HTMLDivElement>>;
467
+ declare const MenuItem: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
468
+ inset?: boolean;
469
+ size?: "small" | "medium";
470
+ iconLeft?: ReactNode;
471
+ iconRight?: ReactNode;
472
+ disabled?: boolean;
473
+ } & react.RefAttributes<HTMLDivElement>>;
474
+ declare const MenuSeparator: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
475
+
476
+ type ToastPosition$1 = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'default';
477
+ type ToastProps = {
478
+ title: string;
479
+ description?: string;
480
+ onClose: () => void;
481
+ /** Visual variant of the badge */
482
+ variant?: 'solid' | 'outlined';
483
+ /** Action type of the badge */
484
+ action?: 'warning' | 'success' | 'info';
485
+ position?: ToastPosition$1;
486
+ } & HTMLAttributes<HTMLDivElement>;
487
+ declare const Toast: ({ variant, action, className, onClose, title, description, position, ...props }: ToastProps) => react_jsx_runtime.JSX.Element;
488
+
489
+ type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'default';
490
+ type ToastData = {
491
+ id: string;
492
+ title: string;
493
+ description?: string;
494
+ variant?: 'solid' | 'outlined';
495
+ action?: 'warning' | 'success' | 'info';
496
+ position?: ToastPosition;
497
+ };
498
+ type ToastStore = {
499
+ toasts: ToastData[];
500
+ addToast: (toast: Omit<ToastData, 'id'>) => void;
501
+ removeToast: (id: string) => void;
502
+ };
503
+ declare const useToastStore: zustand.UseBoundStore<zustand.StoreApi<ToastStore>>;
504
+
505
+ declare const Toaster: () => react_jsx_runtime.JSX.Element;
506
+
507
+ export { Alert, Badge, Button, CheckBox, DropdownMenu, MenuContent as DropdownMenuContent, MenuItem as DropdownMenuItem, MenuLabel as DropdownMenuLabel, MenuSeparator as DropdownMenuSeparator, DropdownMenuTrigger, IconButton, IconRoundedButton, NavButton, SelectionButton, Table, Text, TextArea, Toast, type ToastData, Toaster, useToastStore };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
- import { ElementType, ReactNode, ComponentPropsWithoutRef, ButtonHTMLAttributes, HTMLAttributes, TdHTMLAttributes } from 'react';
3
+ import react__default, { ElementType, ReactNode, ComponentPropsWithoutRef, ButtonHTMLAttributes, HTMLAttributes, InputHTMLAttributes } from 'react';
4
+ import * as zustand from 'zustand';
4
5
 
5
6
  /**
6
7
  * Base text component props
@@ -151,19 +152,6 @@ type AlertProps = {
151
152
  } & HTMLAttributes<HTMLDivElement>;
152
153
  declare const Alert: ({ variant, title, description, action, className, ...props }: AlertProps) => react_jsx_runtime.JSX.Element;
153
154
 
154
- /**
155
- * IconButton component props interface
156
- */
157
- type IconButtonProps = {
158
- /** Ícone a ser exibido no botão */
159
- icon: ReactNode;
160
- /** Tamanho do botão */
161
- size?: 'sm' | 'md';
162
- /** Estado de seleção/ativo do botão - permanece ativo até ser clicado novamente ou outro botão ser ativado */
163
- active?: boolean;
164
- /** Additional CSS classes to apply */
165
- className?: string;
166
- } & ButtonHTMLAttributes<HTMLButtonElement>;
167
155
  /**
168
156
  * IconButton component for Analytica Ensino platforms
169
157
  *
@@ -363,17 +351,157 @@ declare const SelectionButton: react.ForwardRefExoticComponent<{
363
351
  className?: string;
364
352
  } & ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
365
353
 
366
- type TableRowState = 'default' | 'selected' | 'invalid' | 'disabled';
367
- interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
368
- state?: TableRowState;
369
- }
370
354
  declare const Table: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableElement> & react.RefAttributes<HTMLTableElement>>;
371
- declare const TableHeader: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
372
- declare const TableBody: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
373
- declare const TableFooter: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
374
- declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
375
- declare const TableHead: react.ForwardRefExoticComponent<TdHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>>;
376
- declare const TableCell: react.ForwardRefExoticComponent<TdHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>>;
377
- declare const TableCaption: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableCaptionElement> & react.RefAttributes<HTMLTableCaptionElement>>;
378
355
 
379
- export { Alert, Badge, Button, IconButton, type IconButtonProps, IconRoundedButton, NavButton, SelectionButton, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Text };
356
+ /**
357
+ * CheckBox size variants
358
+ */
359
+ type CheckBoxSize = 'small' | 'medium' | 'large';
360
+ /**
361
+ * CheckBox visual state
362
+ */
363
+ type CheckBoxState = 'default' | 'hovered' | 'focused' | 'invalid' | 'disabled';
364
+ /**
365
+ * CheckBox component for Analytica Ensino platforms
366
+ *
367
+ * A checkbox component with essential states, sizes and themes.
368
+ * Uses the Analytica Ensino Design System colors from styles.css with automatic
369
+ * light/dark mode support. Includes Text component integration for consistent typography.
370
+ *
371
+ * @example
372
+ * ```tsx
373
+ * // Basic checkbox
374
+ * <CheckBox label="Option" />
375
+ *
376
+ * // Small size
377
+ * <CheckBox size="small" label="Small option" />
378
+ *
379
+ * // Invalid state
380
+ * <CheckBox state="invalid" label="Required field" />
381
+ *
382
+ * // Disabled state
383
+ * <CheckBox disabled label="Disabled option" />
384
+ * ```
385
+ */
386
+ declare const CheckBox: react.ForwardRefExoticComponent<{
387
+ /** Label text to display next to the checkbox */
388
+ label?: ReactNode;
389
+ /** Size variant of the checkbox */
390
+ size?: CheckBoxSize;
391
+ /** Visual state of the checkbox */
392
+ state?: CheckBoxState;
393
+ /** Indeterminate state for partial selections */
394
+ indeterminate?: boolean;
395
+ /** Error message to display */
396
+ errorMessage?: string;
397
+ /** Helper text to display */
398
+ helperText?: string;
399
+ /** Additional CSS classes */
400
+ className?: string;
401
+ /** Label CSS classes */
402
+ labelClassName?: string;
403
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & react.RefAttributes<HTMLInputElement>>;
404
+
405
+ /**
406
+ * TextArea size variants
407
+ */
408
+ type TextAreaSize = 'small' | 'medium' | 'large' | 'extraLarge';
409
+ /**
410
+ * TextArea visual state
411
+ */
412
+ type TextAreaState = 'default' | 'hovered' | 'focused' | 'invalid' | 'disabled';
413
+ /**
414
+ * TextArea component for Analytica Ensino platforms
415
+ *
416
+ * A textarea component with essential states, sizes and themes.
417
+ * Uses exact design specifications with 288px width, 96px height, and specific
418
+ * color values. Includes Text component integration for consistent typography.
419
+ *
420
+ * @example
421
+ * ```tsx
422
+ * // Basic textarea
423
+ * <TextArea label="Description" placeholder="Enter description..." />
424
+ *
425
+ * // Small size
426
+ * <TextArea size="small" label="Comment" />
427
+ *
428
+ * // Invalid state
429
+ * <TextArea state="invalid" label="Required field" errorMessage="This field is required" />
430
+ *
431
+ * // Disabled state
432
+ * <TextArea disabled label="Read-only field" />
433
+ * ```
434
+ */
435
+ declare const TextArea: react__default.ForwardRefExoticComponent<{
436
+ /** Label text to display above the textarea */
437
+ label?: ReactNode;
438
+ /** Size variant of the textarea */
439
+ size?: TextAreaSize;
440
+ /** Visual state of the textarea */
441
+ state?: TextAreaState;
442
+ /** Error message to display */
443
+ errorMessage?: string;
444
+ /** Helper text to display */
445
+ helperMessage?: string;
446
+ /** Additional CSS classes */
447
+ className?: string;
448
+ /** Label CSS classes */
449
+ labelClassName?: string;
450
+ } & Omit<react__default.TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> & react__default.RefAttributes<HTMLTextAreaElement>>;
451
+
452
+ interface DropdownMenuProps {
453
+ children: ReactNode;
454
+ open?: boolean;
455
+ onOpenChange?: (open: boolean) => void;
456
+ }
457
+ declare const DropdownMenu: ({ children, open, onOpenChange }: DropdownMenuProps) => react_jsx_runtime.JSX.Element;
458
+ declare const DropdownMenuTrigger: react.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
459
+ declare const MenuLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFieldSetElement> & {
460
+ inset?: boolean;
461
+ } & react.RefAttributes<HTMLFieldSetElement>>;
462
+ declare const MenuContent: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
463
+ align?: "start" | "center" | "end";
464
+ side?: "top" | "right" | "bottom" | "left";
465
+ sideOffset?: number;
466
+ } & react.RefAttributes<HTMLDivElement>>;
467
+ declare const MenuItem: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
468
+ inset?: boolean;
469
+ size?: "small" | "medium";
470
+ iconLeft?: ReactNode;
471
+ iconRight?: ReactNode;
472
+ disabled?: boolean;
473
+ } & react.RefAttributes<HTMLDivElement>>;
474
+ declare const MenuSeparator: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
475
+
476
+ type ToastPosition$1 = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'default';
477
+ type ToastProps = {
478
+ title: string;
479
+ description?: string;
480
+ onClose: () => void;
481
+ /** Visual variant of the badge */
482
+ variant?: 'solid' | 'outlined';
483
+ /** Action type of the badge */
484
+ action?: 'warning' | 'success' | 'info';
485
+ position?: ToastPosition$1;
486
+ } & HTMLAttributes<HTMLDivElement>;
487
+ declare const Toast: ({ variant, action, className, onClose, title, description, position, ...props }: ToastProps) => react_jsx_runtime.JSX.Element;
488
+
489
+ type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'default';
490
+ type ToastData = {
491
+ id: string;
492
+ title: string;
493
+ description?: string;
494
+ variant?: 'solid' | 'outlined';
495
+ action?: 'warning' | 'success' | 'info';
496
+ position?: ToastPosition;
497
+ };
498
+ type ToastStore = {
499
+ toasts: ToastData[];
500
+ addToast: (toast: Omit<ToastData, 'id'>) => void;
501
+ removeToast: (id: string) => void;
502
+ };
503
+ declare const useToastStore: zustand.UseBoundStore<zustand.StoreApi<ToastStore>>;
504
+
505
+ declare const Toaster: () => react_jsx_runtime.JSX.Element;
506
+
507
+ export { Alert, Badge, Button, CheckBox, DropdownMenu, MenuContent as DropdownMenuContent, MenuItem as DropdownMenuItem, MenuLabel as DropdownMenuLabel, MenuSeparator as DropdownMenuSeparator, DropdownMenuTrigger, IconButton, IconRoundedButton, NavButton, SelectionButton, Table, Text, TextArea, Toast, type ToastData, Toaster, useToastStore };