analytica-frontend-lib 1.0.44 → 1.0.46

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.mts CHANGED
@@ -18,10 +18,76 @@ export { default as Input } from './Input/index.mjs';
18
18
  export { default as Chips } from './Chips/index.mjs';
19
19
  export { default as ProgressBar } from './ProgressBar/index.mjs';
20
20
  export { default as ProgressCircle } from './ProgressCircle/index.mjs';
21
+ export { default as Stepper } from './Stepper/index.mjs';
21
22
  export { default as Calendar } from './Calendar/index.mjs';
23
+ import * as react_jsx_runtime from 'react/jsx-runtime';
24
+ import { ReactNode } from 'react';
22
25
  export { default as DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, MenuContent, MenuLabel, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuSection, ProfileMenuTrigger } from './DropdownMenu/index.mjs';
23
26
  export { default as Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './Select/index.mjs';
24
27
  export { default as Menu, MenuItem, MenuSeparator } from './Menu/index.mjs';
25
- import 'react/jsx-runtime';
26
- import 'react';
28
+ export { CardActivesResults, CardPerformance, CardProgress, CardQuestions, CardResults, CardStatus, CardTopic } from './Card/index.mjs';
27
29
  import 'zustand';
30
+
31
+ /**
32
+ * Modal component props interface
33
+ */
34
+ type ModalProps = {
35
+ /** Whether the modal is open */
36
+ isOpen: boolean;
37
+ /** Function to close the modal */
38
+ onClose: () => void;
39
+ /** Modal title */
40
+ title: string;
41
+ /** Modal description/content */
42
+ children: ReactNode;
43
+ /** Size of the modal */
44
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
45
+ /** Additional CSS classes for the modal content */
46
+ className?: string;
47
+ /** Whether clicking the backdrop should close the modal */
48
+ closeOnBackdropClick?: boolean;
49
+ /** Whether pressing Escape should close the modal */
50
+ closeOnEscape?: boolean;
51
+ /** Footer content (typically buttons) */
52
+ footer?: ReactNode;
53
+ /** Hide the close button */
54
+ hideCloseButton?: boolean;
55
+ };
56
+ /**
57
+ * Modal component for Analytica Ensino platforms
58
+ *
59
+ * A flexible modal component with multiple size variants and customizable behavior.
60
+ *
61
+ * @param isOpen - Whether the modal is currently open
62
+ * @param onClose - Callback function called when the modal should be closed
63
+ * @param title - The title displayed at the top of the modal
64
+ * @param children - The main content of the modal
65
+ * @param size - The size variant (xs, sm, md, lg, xl)
66
+ * @param className - Additional CSS classes for the modal content
67
+ * @param closeOnBackdropClick - Whether clicking the backdrop closes the modal (default: true)
68
+ * @param closeOnEscape - Whether pressing Escape closes the modal (default: true)
69
+ * @param footer - Footer content, typically action buttons
70
+ * @param hideCloseButton - Whether to hide the X close button (default: false)
71
+ * @returns A modal overlay with content
72
+ *
73
+ * @example
74
+ * ```tsx
75
+ * <Modal
76
+ * isOpen={isModalOpen}
77
+ * onClose={() => setIsModalOpen(false)}
78
+ * title="Invite your team"
79
+ * size="md"
80
+ * footer={
81
+ * <div className="flex gap-3">
82
+ * <Button variant="outline" onClick={() => setIsModalOpen(false)}>Cancel</Button>
83
+ * <Button variant="solid" onClick={handleExplore}>Explore</Button>
84
+ * </div>
85
+ * }
86
+ * >
87
+ * Elevate user interactions with our versatile modals.
88
+ * </Modal>
89
+ * ```
90
+ */
91
+ declare const Modal: ({ isOpen, onClose, title, children, size, className, closeOnBackdropClick, closeOnEscape, footer, hideCloseButton, }: ModalProps) => react_jsx_runtime.JSX.Element | null;
92
+
93
+ export { Modal };
package/dist/index.d.ts CHANGED
@@ -18,10 +18,76 @@ export { default as Input } from './Input/index.js';
18
18
  export { default as Chips } from './Chips/index.js';
19
19
  export { default as ProgressBar } from './ProgressBar/index.js';
20
20
  export { default as ProgressCircle } from './ProgressCircle/index.js';
21
+ export { default as Stepper } from './Stepper/index.js';
21
22
  export { default as Calendar } from './Calendar/index.js';
23
+ import * as react_jsx_runtime from 'react/jsx-runtime';
24
+ import { ReactNode } from 'react';
22
25
  export { default as DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, MenuContent, MenuLabel, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuSection, ProfileMenuTrigger } from './DropdownMenu/index.js';
23
26
  export { default as Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './Select/index.js';
24
27
  export { default as Menu, MenuItem, MenuSeparator } from './Menu/index.js';
25
- import 'react/jsx-runtime';
26
- import 'react';
28
+ export { CardActivesResults, CardPerformance, CardProgress, CardQuestions, CardResults, CardStatus, CardTopic } from './Card/index.js';
27
29
  import 'zustand';
30
+
31
+ /**
32
+ * Modal component props interface
33
+ */
34
+ type ModalProps = {
35
+ /** Whether the modal is open */
36
+ isOpen: boolean;
37
+ /** Function to close the modal */
38
+ onClose: () => void;
39
+ /** Modal title */
40
+ title: string;
41
+ /** Modal description/content */
42
+ children: ReactNode;
43
+ /** Size of the modal */
44
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
45
+ /** Additional CSS classes for the modal content */
46
+ className?: string;
47
+ /** Whether clicking the backdrop should close the modal */
48
+ closeOnBackdropClick?: boolean;
49
+ /** Whether pressing Escape should close the modal */
50
+ closeOnEscape?: boolean;
51
+ /** Footer content (typically buttons) */
52
+ footer?: ReactNode;
53
+ /** Hide the close button */
54
+ hideCloseButton?: boolean;
55
+ };
56
+ /**
57
+ * Modal component for Analytica Ensino platforms
58
+ *
59
+ * A flexible modal component with multiple size variants and customizable behavior.
60
+ *
61
+ * @param isOpen - Whether the modal is currently open
62
+ * @param onClose - Callback function called when the modal should be closed
63
+ * @param title - The title displayed at the top of the modal
64
+ * @param children - The main content of the modal
65
+ * @param size - The size variant (xs, sm, md, lg, xl)
66
+ * @param className - Additional CSS classes for the modal content
67
+ * @param closeOnBackdropClick - Whether clicking the backdrop closes the modal (default: true)
68
+ * @param closeOnEscape - Whether pressing Escape closes the modal (default: true)
69
+ * @param footer - Footer content, typically action buttons
70
+ * @param hideCloseButton - Whether to hide the X close button (default: false)
71
+ * @returns A modal overlay with content
72
+ *
73
+ * @example
74
+ * ```tsx
75
+ * <Modal
76
+ * isOpen={isModalOpen}
77
+ * onClose={() => setIsModalOpen(false)}
78
+ * title="Invite your team"
79
+ * size="md"
80
+ * footer={
81
+ * <div className="flex gap-3">
82
+ * <Button variant="outline" onClick={() => setIsModalOpen(false)}>Cancel</Button>
83
+ * <Button variant="solid" onClick={handleExplore}>Explore</Button>
84
+ * </div>
85
+ * }
86
+ * >
87
+ * Elevate user interactions with our versatile modals.
88
+ * </Modal>
89
+ * ```
90
+ */
91
+ declare const Modal: ({ isOpen, onClose, title, children, size, className, closeOnBackdropClick, closeOnEscape, footer, hideCloseButton, }: ModalProps) => react_jsx_runtime.JSX.Element | null;
92
+
93
+ export { Modal };