analytica-frontend-lib 1.0.24 → 1.0.26
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/{chunk-JNPCNN67.mjs → Alert/Alert.mjs} +1 -2
- package/dist/{components/Badge → Badge}/Badge.js +2 -2
- package/dist/{chunk-GSEO6POW.mjs → Badge/Badge.mjs} +2 -3
- package/dist/{chunk-IB4IJ3GF.mjs → Button/Button.mjs} +0 -1
- package/dist/{chunk-LYOJCBOM.mjs → CheckBox/CheckBox.mjs} +2 -2
- package/dist/{chunk-KT6HNGRV.mjs → DropdownMenu/DropdownMenu.mjs} +3 -2
- package/dist/{chunk-RPYPJ5O5.mjs → IconButton/IconButton.mjs} +0 -1
- package/dist/{chunk-QOFMTSHE.mjs → IconRoundedButton/IconRoundedButton.mjs} +0 -1
- package/dist/{chunk-CETSS3RA.mjs → NavButton/NavButton.mjs} +0 -1
- package/dist/{chunk-SESX5OEP.mjs → SelectionButton/SelectionButton.mjs} +0 -1
- package/dist/{chunk-NWGRQN6R.mjs → Table/Table.mjs} +4 -5
- package/dist/{components/Text → Text}/Text.mjs +1 -1
- package/dist/{chunk-QODEDLAX.mjs → TextArea/TextArea.mjs} +2 -2
- package/dist/{components/Toast → Toast}/Toast.js +2 -2
- package/dist/{components/Toast → Toast}/Toast.mjs +1 -1
- package/dist/{components/Toast → Toast}/utils/ToastStore.d.mts +1 -1
- package/dist/{components/Toast → Toast}/utils/ToastStore.d.ts +1 -1
- package/dist/{components/Toast → Toast}/utils/ToastStore.mjs +1 -1
- package/dist/Toast/utils/Toaster.d.mts +16 -0
- package/dist/Toast/utils/Toaster.d.ts +16 -0
- package/dist/{components/Toast → Toast}/utils/Toaster.js +2 -2
- package/dist/{chunk-IH5TEC64.mjs → Toast/utils/Toaster.mjs} +3 -3
- package/dist/{chunk-MI5FIRHM.mjs → chunk-XYTNJU4A.mjs} +2 -2
- package/dist/index.css +14 -10
- package/dist/index.d.mts +154 -26
- package/dist/index.d.ts +154 -26
- package/dist/index.js +695 -134
- package/dist/index.mjs +673 -91
- package/package.json +19 -8
- package/dist/client-components.d.mts +0 -9
- package/dist/client-components.d.ts +0 -9
- package/dist/client-components.js +0 -755
- package/dist/client-components.mjs +0 -39
- package/dist/components/Alert/Alert.mjs +0 -7
- package/dist/components/Badge/Badge.mjs +0 -6
- package/dist/components/Button/Button.mjs +0 -6
- package/dist/components/CheckBox/CheckBox.mjs +0 -8
- package/dist/components/DropdownMenu/DropdownMenu.mjs +0 -17
- package/dist/components/IconButton/IconButton.mjs +0 -6
- package/dist/components/IconRoundedButton/IconRoundedButton.mjs +0 -6
- package/dist/components/NavButton/NavButton.mjs +0 -6
- package/dist/components/SelectionButton/SelectionButton.mjs +0 -6
- package/dist/components/Table/Table.mjs +0 -20
- package/dist/components/TextArea/TextArea.mjs +0 -8
- package/dist/components/Toast/utils/Toaster.d.mts +0 -11
- package/dist/components/Toast/utils/Toaster.d.ts +0 -11
- package/dist/components/Toast/utils/Toaster.mjs +0 -11
- package/dist/server-components.d.mts +0 -11
- package/dist/server-components.d.ts +0 -11
- package/dist/server-components.js +0 -629
- package/dist/server-components.mjs +0 -52
- /package/dist/{components/Alert → Alert}/Alert.d.mts +0 -0
- /package/dist/{components/Alert → Alert}/Alert.d.ts +0 -0
- /package/dist/{components/Alert → Alert}/Alert.js +0 -0
- /package/dist/{components/Badge → Badge}/Badge.d.mts +0 -0
- /package/dist/{components/Badge → Badge}/Badge.d.ts +0 -0
- /package/dist/{components/Button → Button}/Button.d.mts +0 -0
- /package/dist/{components/Button → Button}/Button.d.ts +0 -0
- /package/dist/{components/Button → Button}/Button.js +0 -0
- /package/dist/{components/CheckBox → CheckBox}/CheckBox.d.mts +0 -0
- /package/dist/{components/CheckBox → CheckBox}/CheckBox.d.ts +0 -0
- /package/dist/{components/CheckBox → CheckBox}/CheckBox.js +0 -0
- /package/dist/{components/DropdownMenu → DropdownMenu}/DropdownMenu.d.mts +0 -0
- /package/dist/{components/DropdownMenu → DropdownMenu}/DropdownMenu.d.ts +0 -0
- /package/dist/{components/DropdownMenu → DropdownMenu}/DropdownMenu.js +0 -0
- /package/dist/{components/IconButton → IconButton}/IconButton.d.mts +0 -0
- /package/dist/{components/IconButton → IconButton}/IconButton.d.ts +0 -0
- /package/dist/{components/IconButton → IconButton}/IconButton.js +0 -0
- /package/dist/{components/IconRoundedButton → IconRoundedButton}/IconRoundedButton.d.mts +0 -0
- /package/dist/{components/IconRoundedButton → IconRoundedButton}/IconRoundedButton.d.ts +0 -0
- /package/dist/{components/IconRoundedButton → IconRoundedButton}/IconRoundedButton.js +0 -0
- /package/dist/{components/NavButton → NavButton}/NavButton.d.mts +0 -0
- /package/dist/{components/NavButton → NavButton}/NavButton.d.ts +0 -0
- /package/dist/{components/NavButton → NavButton}/NavButton.js +0 -0
- /package/dist/{components/SelectionButton → SelectionButton}/SelectionButton.d.mts +0 -0
- /package/dist/{components/SelectionButton → SelectionButton}/SelectionButton.d.ts +0 -0
- /package/dist/{components/SelectionButton → SelectionButton}/SelectionButton.js +0 -0
- /package/dist/{components/Table → Table}/Table.d.mts +0 -0
- /package/dist/{components/Table → Table}/Table.d.ts +0 -0
- /package/dist/{components/Table → Table}/Table.js +0 -0
- /package/dist/{components/Text → Text}/Text.d.mts +0 -0
- /package/dist/{components/Text → Text}/Text.d.ts +0 -0
- /package/dist/{components/Text → Text}/Text.js +0 -0
- /package/dist/{components/TextArea → TextArea}/TextArea.d.mts +0 -0
- /package/dist/{components/TextArea → TextArea}/TextArea.d.ts +0 -0
- /package/dist/{components/TextArea → TextArea}/TextArea.js +0 -0
- /package/dist/{components/Toast → Toast}/Toast.d.mts +0 -0
- /package/dist/{components/Toast → Toast}/Toast.d.ts +0 -0
- /package/dist/{components/Toast → Toast}/utils/ToastStore.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Text
|
|
3
|
-
} from "
|
|
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
|
};
|
|
@@ -41,7 +41,7 @@ var VARIANT_ACTION_CLASSES = {
|
|
|
41
41
|
muted: "bg-background-muted text-background-800 border border-border-300 focus-visible:outline-none"
|
|
42
42
|
},
|
|
43
43
|
exams: {
|
|
44
|
-
exam1: "bg-exam-1 text-info-
|
|
44
|
+
exam1: "bg-exam-1 text-info-700 focus-visible:outline-none",
|
|
45
45
|
exam2: "bg-exam-2 text-typography-1 focus-visible:outline-none",
|
|
46
46
|
exam3: "bg-exam-3 text-typography-2 focus-visible:outline-none",
|
|
47
47
|
exam4: "bg-exam-4 text-success-700 focus-visible:outline-none"
|
|
@@ -77,7 +77,7 @@ var Badge = ({
|
|
|
77
77
|
const sizeClassesIcon = SIZE_CLASSES_ICON[size];
|
|
78
78
|
const variantActionMap = VARIANT_ACTION_CLASSES[variant] || {};
|
|
79
79
|
const variantClasses = typeof variantActionMap === "string" ? variantActionMap : variantActionMap[action] ?? variantActionMap.muted ?? "";
|
|
80
|
-
const baseClasses = "inline-flex items-center justify-center rounded-xs font-
|
|
80
|
+
const baseClasses = "inline-flex items-center justify-center rounded-xs font-normal gap-1 relative";
|
|
81
81
|
const baseClassesIcon = "flex items-center";
|
|
82
82
|
if (variant === "notification") {
|
|
83
83
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
@@ -17,7 +17,7 @@ var VARIANT_ACTION_CLASSES = {
|
|
|
17
17
|
muted: "bg-background-muted text-background-800 border border-border-300 focus-visible:outline-none"
|
|
18
18
|
},
|
|
19
19
|
exams: {
|
|
20
|
-
exam1: "bg-exam-1 text-info-
|
|
20
|
+
exam1: "bg-exam-1 text-info-700 focus-visible:outline-none",
|
|
21
21
|
exam2: "bg-exam-2 text-typography-1 focus-visible:outline-none",
|
|
22
22
|
exam3: "bg-exam-3 text-typography-2 focus-visible:outline-none",
|
|
23
23
|
exam4: "bg-exam-4 text-success-700 focus-visible:outline-none"
|
|
@@ -53,7 +53,7 @@ var Badge = ({
|
|
|
53
53
|
const sizeClassesIcon = SIZE_CLASSES_ICON[size];
|
|
54
54
|
const variantActionMap = VARIANT_ACTION_CLASSES[variant] || {};
|
|
55
55
|
const variantClasses = typeof variantActionMap === "string" ? variantActionMap : variantActionMap[action] ?? variantActionMap.muted ?? "";
|
|
56
|
-
const baseClasses = "inline-flex items-center justify-center rounded-xs font-
|
|
56
|
+
const baseClasses = "inline-flex items-center justify-center rounded-xs font-normal gap-1 relative";
|
|
57
57
|
const baseClassesIcon = "flex items-center";
|
|
58
58
|
if (variant === "notification") {
|
|
59
59
|
return /* @__PURE__ */ jsxs(
|
|
@@ -87,7 +87,6 @@ var Badge = ({
|
|
|
87
87
|
}
|
|
88
88
|
);
|
|
89
89
|
};
|
|
90
|
-
|
|
91
90
|
export {
|
|
92
91
|
Badge
|
|
93
92
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import {
|
|
2
3
|
Text
|
|
3
|
-
} from "
|
|
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
|
};
|
|
@@ -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
|
-
|
|
107
|
-
|
|
105
|
+
TableHeader,
|
|
106
|
+
TableRow
|
|
108
107
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import {
|
|
2
3
|
Text
|
|
3
|
-
} from "
|
|
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
|
};
|
|
@@ -33,9 +33,9 @@ var VARIANT_ACTION_CLASSES = {
|
|
|
33
33
|
info: "bg-info text-info-800 border-none focus-visible:outline-none"
|
|
34
34
|
},
|
|
35
35
|
outlined: {
|
|
36
|
-
warning: "bg-warning text-warning-
|
|
36
|
+
warning: "bg-warning text-warning-600 border border-warning-300 focus-visible:outline-none",
|
|
37
37
|
success: "bg-success text-success-800 border border-success-200 focus-visible:outline-none",
|
|
38
|
-
info: "bg-info text-info-
|
|
38
|
+
info: "bg-info text-info-600 border border-info-600 focus-visible:outline-none"
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
var iconMap = {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
declare const Toaster: () => react_jsx_runtime.JSX.Element;
|
|
4
|
+
declare const useToast: () => {
|
|
5
|
+
addToast: (toast: Omit<{
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
variant?: "solid" | "outlined";
|
|
10
|
+
action?: "warning" | "success" | "info";
|
|
11
|
+
position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "default";
|
|
12
|
+
}, "id">) => void;
|
|
13
|
+
removeToast: (id: string) => void;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { Toaster, useToast };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
declare const Toaster: () => react_jsx_runtime.JSX.Element;
|
|
4
|
+
declare const useToast: () => {
|
|
5
|
+
addToast: (toast: Omit<{
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
variant?: "solid" | "outlined";
|
|
10
|
+
action?: "warning" | "success" | "info";
|
|
11
|
+
position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "default";
|
|
12
|
+
}, "id">) => void;
|
|
13
|
+
removeToast: (id: string) => void;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { Toaster, useToast };
|
|
@@ -53,9 +53,9 @@ var VARIANT_ACTION_CLASSES = {
|
|
|
53
53
|
info: "bg-info text-info-800 border-none focus-visible:outline-none"
|
|
54
54
|
},
|
|
55
55
|
outlined: {
|
|
56
|
-
warning: "bg-warning text-warning-
|
|
56
|
+
warning: "bg-warning text-warning-600 border border-warning-300 focus-visible:outline-none",
|
|
57
57
|
success: "bg-success text-success-800 border border-success-200 focus-visible:outline-none",
|
|
58
|
-
info: "bg-info text-info-
|
|
58
|
+
info: "bg-info text-info-600 border border-info-600 focus-visible:outline-none"
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
var iconMap = {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import {
|
|
2
3
|
Toast
|
|
3
|
-
} from "
|
|
4
|
+
} from "../../chunk-XYTNJU4A.mjs";
|
|
4
5
|
import {
|
|
5
6
|
useToastStore
|
|
6
|
-
} from "
|
|
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
|
|
@@ -8,9 +8,9 @@ var VARIANT_ACTION_CLASSES = {
|
|
|
8
8
|
info: "bg-info text-info-800 border-none focus-visible:outline-none"
|
|
9
9
|
},
|
|
10
10
|
outlined: {
|
|
11
|
-
warning: "bg-warning text-warning-
|
|
11
|
+
warning: "bg-warning text-warning-600 border border-warning-300 focus-visible:outline-none",
|
|
12
12
|
success: "bg-success text-success-800 border border-success-200 focus-visible:outline-none",
|
|
13
|
-
info: "bg-info text-info-
|
|
13
|
+
info: "bg-info text-info-600 border border-info-600 focus-visible:outline-none"
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
var iconMap = {
|
package/dist/index.css
CHANGED
|
@@ -110,12 +110,13 @@
|
|
|
110
110
|
--color-error-700: #b91c1c;
|
|
111
111
|
--color-error-800: #991b1b;
|
|
112
112
|
--color-warning: #fff9f5;
|
|
113
|
-
--color-warning-200: #fecdaa;
|
|
114
113
|
--color-warning-300: #fdad74;
|
|
114
|
+
--color-warning-600: #d76c1f;
|
|
115
115
|
--color-warning-800: #824417;
|
|
116
116
|
--color-info: #ecf8fe;
|
|
117
|
-
--color-info-200: #7ccff8;
|
|
118
117
|
--color-info-300: #57c2f6;
|
|
118
|
+
--color-info-600: #0b8dcd;
|
|
119
|
+
--color-info-700: #0973a8;
|
|
119
120
|
--color-info-800: #075a83;
|
|
120
121
|
--color-indicator-primary: #373737;
|
|
121
122
|
--color-indicator-info: #5399ec;
|
|
@@ -728,12 +729,12 @@
|
|
|
728
729
|
.border-indicator-primary {
|
|
729
730
|
border-color: var(--color-indicator-primary);
|
|
730
731
|
}
|
|
731
|
-
.border-info-200 {
|
|
732
|
-
border-color: var(--color-info-200);
|
|
733
|
-
}
|
|
734
732
|
.border-info-300 {
|
|
735
733
|
border-color: var(--color-info-300);
|
|
736
734
|
}
|
|
735
|
+
.border-info-600 {
|
|
736
|
+
border-color: var(--color-info-600);
|
|
737
|
+
}
|
|
737
738
|
.border-primary-600 {
|
|
738
739
|
border-color: var(--color-primary-600);
|
|
739
740
|
}
|
|
@@ -758,9 +759,6 @@
|
|
|
758
759
|
.border-transparent {
|
|
759
760
|
border-color: transparent;
|
|
760
761
|
}
|
|
761
|
-
.border-warning-200 {
|
|
762
|
-
border-color: var(--color-warning-200);
|
|
763
|
-
}
|
|
764
762
|
.border-warning-300 {
|
|
765
763
|
border-color: var(--color-warning-300);
|
|
766
764
|
}
|
|
@@ -1007,8 +1005,11 @@
|
|
|
1007
1005
|
.text-gray-800 {
|
|
1008
1006
|
color: var(--color-gray-800);
|
|
1009
1007
|
}
|
|
1010
|
-
.text-info-
|
|
1011
|
-
color: var(--color-info-
|
|
1008
|
+
.text-info-600 {
|
|
1009
|
+
color: var(--color-info-600);
|
|
1010
|
+
}
|
|
1011
|
+
.text-info-700 {
|
|
1012
|
+
color: var(--color-info-700);
|
|
1012
1013
|
}
|
|
1013
1014
|
.text-info-800 {
|
|
1014
1015
|
color: var(--color-info-800);
|
|
@@ -1058,6 +1059,9 @@
|
|
|
1058
1059
|
.text-typography-2 {
|
|
1059
1060
|
color: var(--color-typography-2);
|
|
1060
1061
|
}
|
|
1062
|
+
.text-warning-600 {
|
|
1063
|
+
color: var(--color-warning-600);
|
|
1064
|
+
}
|
|
1061
1065
|
.text-warning-800 {
|
|
1062
1066
|
color: var(--color-warning-800);
|
|
1063
1067
|
}
|
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,
|
|
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
|
-
|
|
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
|
+
declare const Toaster: () => react_jsx_runtime.JSX.Element;
|
|
490
|
+
|
|
491
|
+
type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'default';
|
|
492
|
+
type ToastData = {
|
|
493
|
+
id: string;
|
|
494
|
+
title: string;
|
|
495
|
+
description?: string;
|
|
496
|
+
variant?: 'solid' | 'outlined';
|
|
497
|
+
action?: 'warning' | 'success' | 'info';
|
|
498
|
+
position?: ToastPosition;
|
|
499
|
+
};
|
|
500
|
+
type ToastStore = {
|
|
501
|
+
toasts: ToastData[];
|
|
502
|
+
addToast: (toast: Omit<ToastData, 'id'>) => void;
|
|
503
|
+
removeToast: (id: string) => void;
|
|
504
|
+
};
|
|
505
|
+
declare const useToastStore: zustand.UseBoundStore<zustand.StoreApi<ToastStore>>;
|
|
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, Toaster, useToastStore };
|