analytica-frontend-lib 1.0.22 → 1.0.24

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 (88) hide show
  1. package/dist/chunk-CETSS3RA.mjs +52 -0
  2. package/dist/chunk-GSEO6POW.mjs +93 -0
  3. package/dist/chunk-IB4IJ3GF.mjs +60 -0
  4. package/dist/chunk-IH5TEC64.mjs +35 -0
  5. package/dist/chunk-JNPCNN67.mjs +86 -0
  6. package/dist/chunk-KT6HNGRV.mjs +241 -0
  7. package/dist/chunk-LYOJCBOM.mjs +195 -0
  8. package/dist/chunk-MI5FIRHM.mjs +75 -0
  9. package/dist/chunk-NWGRQN6R.mjs +108 -0
  10. package/dist/chunk-QODEDLAX.mjs +142 -0
  11. package/dist/chunk-QOFMTSHE.mjs +44 -0
  12. package/dist/chunk-RPYPJ5O5.mjs +55 -0
  13. package/dist/chunk-SESX5OEP.mjs +57 -0
  14. package/dist/chunk-TT3VCQGR.mjs +53 -0
  15. package/dist/chunk-WIOCQOM7.mjs +20 -0
  16. package/dist/client-components.d.mts +9 -0
  17. package/dist/client-components.d.ts +9 -0
  18. package/dist/client-components.js +755 -0
  19. package/dist/client-components.mjs +39 -0
  20. package/dist/components/Alert/Alert.d.mts +13 -0
  21. package/dist/components/Alert/Alert.d.ts +13 -0
  22. package/dist/components/Alert/Alert.js +158 -0
  23. package/dist/components/Alert/Alert.mjs +7 -0
  24. package/dist/components/Badge/Badge.d.mts +47 -0
  25. package/dist/components/Badge/Badge.d.ts +47 -0
  26. package/dist/components/Badge/Badge.js +117 -0
  27. package/dist/components/Badge/Badge.mjs +6 -0
  28. package/dist/components/Button/Button.d.mts +46 -0
  29. package/dist/components/Button/Button.d.ts +46 -0
  30. package/dist/components/Button/Button.js +84 -0
  31. package/dist/components/Button/Button.mjs +6 -0
  32. package/dist/components/CheckBox/CheckBox.d.mts +74 -0
  33. package/dist/components/CheckBox/CheckBox.d.ts +74 -0
  34. package/dist/components/CheckBox/CheckBox.js +264 -0
  35. package/dist/components/CheckBox/CheckBox.mjs +8 -0
  36. package/dist/components/DropdownMenu/DropdownMenu.d.mts +29 -0
  37. package/dist/components/DropdownMenu/DropdownMenu.d.ts +29 -0
  38. package/dist/components/DropdownMenu/DropdownMenu.js +262 -0
  39. package/dist/components/DropdownMenu/DropdownMenu.mjs +17 -0
  40. package/dist/components/IconButton/IconButton.d.mts +77 -0
  41. package/dist/components/IconButton/IconButton.d.ts +77 -0
  42. package/dist/components/IconButton/IconButton.js +79 -0
  43. package/dist/components/IconButton/IconButton.mjs +6 -0
  44. package/dist/components/IconRoundedButton/IconRoundedButton.d.mts +35 -0
  45. package/dist/components/IconRoundedButton/IconRoundedButton.d.ts +35 -0
  46. package/dist/components/IconRoundedButton/IconRoundedButton.js +68 -0
  47. package/dist/components/IconRoundedButton/IconRoundedButton.mjs +6 -0
  48. package/dist/components/NavButton/NavButton.d.mts +58 -0
  49. package/dist/components/NavButton/NavButton.d.ts +58 -0
  50. package/dist/components/NavButton/NavButton.js +76 -0
  51. package/dist/components/NavButton/NavButton.mjs +6 -0
  52. package/dist/components/SelectionButton/SelectionButton.d.mts +58 -0
  53. package/dist/components/SelectionButton/SelectionButton.d.ts +58 -0
  54. package/dist/components/SelectionButton/SelectionButton.js +81 -0
  55. package/dist/components/SelectionButton/SelectionButton.mjs +6 -0
  56. package/dist/components/Table/Table.d.mts +17 -0
  57. package/dist/components/Table/Table.d.ts +17 -0
  58. package/dist/components/Table/Table.js +139 -0
  59. package/dist/components/Table/Table.mjs +20 -0
  60. package/dist/components/Text/Text.d.mts +59 -0
  61. package/dist/components/Text/Text.d.ts +59 -0
  62. package/dist/components/Text/Text.js +77 -0
  63. package/dist/components/Text/Text.mjs +6 -0
  64. package/dist/components/TextArea/TextArea.d.mts +69 -0
  65. package/dist/components/TextArea/TextArea.d.ts +69 -0
  66. package/dist/components/TextArea/TextArea.js +211 -0
  67. package/dist/components/TextArea/TextArea.mjs +8 -0
  68. package/dist/components/Toast/Toast.d.mts +17 -0
  69. package/dist/components/Toast/Toast.d.ts +17 -0
  70. package/dist/components/Toast/Toast.js +100 -0
  71. package/dist/components/Toast/Toast.mjs +7 -0
  72. package/dist/components/Toast/utils/ToastStore.d.mts +19 -0
  73. package/dist/components/Toast/utils/ToastStore.d.ts +19 -0
  74. package/dist/components/Toast/utils/ToastStore.js +44 -0
  75. package/dist/components/Toast/utils/ToastStore.mjs +6 -0
  76. package/dist/components/Toast/utils/Toaster.d.mts +11 -0
  77. package/dist/components/Toast/utils/Toaster.d.ts +11 -0
  78. package/dist/components/Toast/utils/Toaster.js +145 -0
  79. package/dist/components/Toast/utils/Toaster.mjs +11 -0
  80. package/dist/index.d.mts +168 -355
  81. package/dist/index.d.ts +168 -355
  82. package/dist/index.js +341 -936
  83. package/dist/index.mjs +340 -941
  84. package/dist/server-components.d.mts +11 -0
  85. package/dist/server-components.d.ts +11 -0
  86. package/dist/server-components.js +629 -0
  87. package/dist/server-components.mjs +52 -0
  88. package/package.json +76 -3
@@ -0,0 +1,74 @@
1
+ import * as react from 'react';
2
+ import { ReactNode, InputHTMLAttributes } from 'react';
3
+
4
+ /**
5
+ * CheckBox size variants
6
+ */
7
+ type CheckBoxSize = 'small' | 'medium' | 'large';
8
+ /**
9
+ * CheckBox visual state
10
+ */
11
+ type CheckBoxState = 'default' | 'hovered' | 'focused' | 'invalid' | 'disabled';
12
+ /**
13
+ * CheckBox component props interface
14
+ */
15
+ type CheckBoxProps = {
16
+ /** Label text to display next to the checkbox */
17
+ label?: ReactNode;
18
+ /** Size variant of the checkbox */
19
+ size?: CheckBoxSize;
20
+ /** Visual state of the checkbox */
21
+ state?: CheckBoxState;
22
+ /** Indeterminate state for partial selections */
23
+ indeterminate?: boolean;
24
+ /** Error message to display */
25
+ errorMessage?: string;
26
+ /** Helper text to display */
27
+ helperText?: string;
28
+ /** Additional CSS classes */
29
+ className?: string;
30
+ /** Label CSS classes */
31
+ labelClassName?: string;
32
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>;
33
+ /**
34
+ * CheckBox component for Analytica Ensino platforms
35
+ *
36
+ * A checkbox component with essential states, sizes and themes.
37
+ * Uses the Analytica Ensino Design System colors from styles.css with automatic
38
+ * light/dark mode support. Includes Text component integration for consistent typography.
39
+ *
40
+ * @example
41
+ * ```tsx
42
+ * // Basic checkbox
43
+ * <CheckBox label="Option" />
44
+ *
45
+ * // Small size
46
+ * <CheckBox size="small" label="Small option" />
47
+ *
48
+ * // Invalid state
49
+ * <CheckBox state="invalid" label="Required field" />
50
+ *
51
+ * // Disabled state
52
+ * <CheckBox disabled label="Disabled option" />
53
+ * ```
54
+ */
55
+ declare const CheckBox: react.ForwardRefExoticComponent<{
56
+ /** Label text to display next to the checkbox */
57
+ label?: ReactNode;
58
+ /** Size variant of the checkbox */
59
+ size?: CheckBoxSize;
60
+ /** Visual state of the checkbox */
61
+ state?: CheckBoxState;
62
+ /** Indeterminate state for partial selections */
63
+ indeterminate?: boolean;
64
+ /** Error message to display */
65
+ errorMessage?: string;
66
+ /** Helper text to display */
67
+ helperText?: string;
68
+ /** Additional CSS classes */
69
+ className?: string;
70
+ /** Label CSS classes */
71
+ labelClassName?: string;
72
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & react.RefAttributes<HTMLInputElement>>;
73
+
74
+ export { CheckBox, type CheckBoxProps };
@@ -0,0 +1,74 @@
1
+ import * as react from 'react';
2
+ import { ReactNode, InputHTMLAttributes } from 'react';
3
+
4
+ /**
5
+ * CheckBox size variants
6
+ */
7
+ type CheckBoxSize = 'small' | 'medium' | 'large';
8
+ /**
9
+ * CheckBox visual state
10
+ */
11
+ type CheckBoxState = 'default' | 'hovered' | 'focused' | 'invalid' | 'disabled';
12
+ /**
13
+ * CheckBox component props interface
14
+ */
15
+ type CheckBoxProps = {
16
+ /** Label text to display next to the checkbox */
17
+ label?: ReactNode;
18
+ /** Size variant of the checkbox */
19
+ size?: CheckBoxSize;
20
+ /** Visual state of the checkbox */
21
+ state?: CheckBoxState;
22
+ /** Indeterminate state for partial selections */
23
+ indeterminate?: boolean;
24
+ /** Error message to display */
25
+ errorMessage?: string;
26
+ /** Helper text to display */
27
+ helperText?: string;
28
+ /** Additional CSS classes */
29
+ className?: string;
30
+ /** Label CSS classes */
31
+ labelClassName?: string;
32
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>;
33
+ /**
34
+ * CheckBox component for Analytica Ensino platforms
35
+ *
36
+ * A checkbox component with essential states, sizes and themes.
37
+ * Uses the Analytica Ensino Design System colors from styles.css with automatic
38
+ * light/dark mode support. Includes Text component integration for consistent typography.
39
+ *
40
+ * @example
41
+ * ```tsx
42
+ * // Basic checkbox
43
+ * <CheckBox label="Option" />
44
+ *
45
+ * // Small size
46
+ * <CheckBox size="small" label="Small option" />
47
+ *
48
+ * // Invalid state
49
+ * <CheckBox state="invalid" label="Required field" />
50
+ *
51
+ * // Disabled state
52
+ * <CheckBox disabled label="Disabled option" />
53
+ * ```
54
+ */
55
+ declare const CheckBox: react.ForwardRefExoticComponent<{
56
+ /** Label text to display next to the checkbox */
57
+ label?: ReactNode;
58
+ /** Size variant of the checkbox */
59
+ size?: CheckBoxSize;
60
+ /** Visual state of the checkbox */
61
+ state?: CheckBoxState;
62
+ /** Indeterminate state for partial selections */
63
+ indeterminate?: boolean;
64
+ /** Error message to display */
65
+ errorMessage?: string;
66
+ /** Helper text to display */
67
+ helperText?: string;
68
+ /** Additional CSS classes */
69
+ className?: string;
70
+ /** Label CSS classes */
71
+ labelClassName?: string;
72
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & react.RefAttributes<HTMLInputElement>>;
73
+
74
+ export { CheckBox, type CheckBoxProps };
@@ -0,0 +1,264 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/components/CheckBox/CheckBox.tsx
22
+ var CheckBox_exports = {};
23
+ __export(CheckBox_exports, {
24
+ CheckBox: () => CheckBox
25
+ });
26
+ module.exports = __toCommonJS(CheckBox_exports);
27
+ var import_react = require("react");
28
+
29
+ // src/components/Text/Text.tsx
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var Text = ({
32
+ children,
33
+ size = "md",
34
+ weight = "normal",
35
+ color = "text-text-950",
36
+ as,
37
+ className = "",
38
+ ...props
39
+ }) => {
40
+ let sizeClasses = "";
41
+ let weightClasses = "";
42
+ const sizeClassMap = {
43
+ "2xs": "text-2xs",
44
+ xs: "text-xs",
45
+ sm: "text-sm",
46
+ md: "text-md",
47
+ lg: "text-lg",
48
+ xl: "text-xl",
49
+ "2xl": "text-2xl",
50
+ "3xl": "text-3xl",
51
+ "4xl": "text-4xl",
52
+ "5xl": "text-5xl",
53
+ "6xl": "text-6xl"
54
+ };
55
+ sizeClasses = sizeClassMap[size] ?? sizeClassMap.md;
56
+ const weightClassMap = {
57
+ hairline: "font-hairline",
58
+ light: "font-light",
59
+ normal: "font-normal",
60
+ medium: "font-medium",
61
+ semibold: "font-semibold",
62
+ bold: "font-bold",
63
+ extrabold: "font-extrabold",
64
+ black: "font-black"
65
+ };
66
+ weightClasses = weightClassMap[weight] ?? weightClassMap.normal;
67
+ const baseClasses = "font-primary";
68
+ const Component = as ?? "p";
69
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
70
+ Component,
71
+ {
72
+ className: `${baseClasses} ${sizeClasses} ${weightClasses} ${color} ${className}`,
73
+ ...props,
74
+ children
75
+ }
76
+ );
77
+ };
78
+
79
+ // src/components/CheckBox/CheckBox.tsx
80
+ var import_phosphor_react = require("phosphor-react");
81
+ var import_jsx_runtime2 = require("react/jsx-runtime");
82
+ var SIZE_CLASSES = {
83
+ small: {
84
+ checkbox: "w-4 h-4",
85
+ // 16px x 16px
86
+ textSize: "sm",
87
+ spacing: "gap-1.5",
88
+ // 6px
89
+ borderWidth: "border-2",
90
+ iconSize: 14,
91
+ // pixels for Phosphor icons
92
+ labelHeight: "h-[21px]"
93
+ },
94
+ medium: {
95
+ checkbox: "w-5 h-5",
96
+ // 20px x 20px
97
+ textSize: "md",
98
+ spacing: "gap-2",
99
+ // 8px
100
+ borderWidth: "border-2",
101
+ iconSize: 16,
102
+ // pixels for Phosphor icons
103
+ labelHeight: "h-6"
104
+ },
105
+ large: {
106
+ checkbox: "w-6 h-6",
107
+ // 24px x 24px
108
+ textSize: "lg",
109
+ spacing: "gap-2",
110
+ // 8px
111
+ borderWidth: "border-[3px]",
112
+ // 3px border
113
+ iconSize: 20,
114
+ // pixels for Phosphor icons
115
+ labelHeight: "h-[27px]"
116
+ }
117
+ };
118
+ var BASE_CHECKBOX_CLASSES = "rounded border cursor-pointer transition-all duration-200 flex items-center justify-center focus:outline-none";
119
+ var STATE_CLASSES = {
120
+ default: {
121
+ unchecked: "border-border-400 bg-background hover:border-border-500",
122
+ checked: "border-primary-950 bg-primary-950 text-text hover:border-primary-800 hover:bg-primary-800"
123
+ },
124
+ hovered: {
125
+ unchecked: "border-border-500 bg-background",
126
+ checked: "border-primary-800 bg-primary-800 text-text"
127
+ },
128
+ focused: {
129
+ unchecked: "border-indicator-info bg-background ring-2 ring-indicator-info/20",
130
+ checked: "border-indicator-info bg-primary-950 text-text ring-2 ring-indicator-info/20"
131
+ },
132
+ invalid: {
133
+ unchecked: "border-error-700 bg-background hover:border-error-600",
134
+ checked: "border-error-700 bg-primary-950 text-text"
135
+ },
136
+ disabled: {
137
+ unchecked: "border-border-400 bg-background cursor-not-allowed opacity-40",
138
+ checked: "border-primary-600 bg-primary-600 text-text cursor-not-allowed opacity-40"
139
+ }
140
+ };
141
+ var CheckBox = (0, import_react.forwardRef)(
142
+ ({
143
+ label,
144
+ size = "medium",
145
+ state = "default",
146
+ indeterminate = false,
147
+ errorMessage,
148
+ helperText,
149
+ className = "",
150
+ labelClassName = "",
151
+ checked: checkedProp,
152
+ disabled,
153
+ id,
154
+ onChange,
155
+ ...props
156
+ }, ref) => {
157
+ const generatedId = (0, import_react.useId)();
158
+ const inputId = id ?? `checkbox-${generatedId}`;
159
+ const [internalChecked, setInternalChecked] = (0, import_react.useState)(false);
160
+ const isControlled = checkedProp !== void 0;
161
+ const checked = isControlled ? checkedProp : internalChecked;
162
+ const handleChange = (event) => {
163
+ if (!isControlled) {
164
+ setInternalChecked(event.target.checked);
165
+ }
166
+ onChange?.(event);
167
+ };
168
+ const currentState = disabled ? "disabled" : state;
169
+ const sizeClasses = SIZE_CLASSES[size];
170
+ const checkVariant = checked || indeterminate ? "checked" : "unchecked";
171
+ const stylingClasses = STATE_CLASSES[currentState][checkVariant];
172
+ const borderWidthClass = state === "focused" || state === "hovered" && size === "large" ? "border-[3px]" : sizeClasses.borderWidth;
173
+ const checkboxClasses = `${BASE_CHECKBOX_CLASSES} ${sizeClasses.checkbox} ${borderWidthClass} ${stylingClasses} ${className}`;
174
+ const renderIcon = () => {
175
+ if (indeterminate) {
176
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
177
+ import_phosphor_react.Minus,
178
+ {
179
+ size: sizeClasses.iconSize,
180
+ weight: "bold",
181
+ color: "currentColor"
182
+ }
183
+ );
184
+ }
185
+ if (checked) {
186
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
187
+ import_phosphor_react.Check,
188
+ {
189
+ size: sizeClasses.iconSize,
190
+ weight: "bold",
191
+ color: "currentColor"
192
+ }
193
+ );
194
+ }
195
+ return null;
196
+ };
197
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex flex-col", children: [
198
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
199
+ "div",
200
+ {
201
+ className: `flex flex-row items-center ${sizeClasses.spacing} ${disabled ? "opacity-40" : ""}`,
202
+ children: [
203
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
204
+ "input",
205
+ {
206
+ ref,
207
+ type: "checkbox",
208
+ id: inputId,
209
+ checked,
210
+ disabled,
211
+ onChange: handleChange,
212
+ className: "sr-only",
213
+ ...props
214
+ }
215
+ ),
216
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("label", { htmlFor: inputId, className: checkboxClasses, children: renderIcon() }),
217
+ label && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
218
+ "div",
219
+ {
220
+ className: `flex flex-row items-center ${sizeClasses.labelHeight}`,
221
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
222
+ Text,
223
+ {
224
+ as: "label",
225
+ htmlFor: inputId,
226
+ size: sizeClasses.textSize,
227
+ weight: "normal",
228
+ className: `cursor-pointer select-none leading-[150%] flex items-center font-roboto ${labelClassName}`,
229
+ children: label
230
+ }
231
+ )
232
+ }
233
+ )
234
+ ]
235
+ }
236
+ ),
237
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
238
+ Text,
239
+ {
240
+ size: "sm",
241
+ weight: "normal",
242
+ className: "mt-1.5",
243
+ color: "text-error-600",
244
+ children: errorMessage
245
+ }
246
+ ),
247
+ helperText && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
248
+ Text,
249
+ {
250
+ size: "sm",
251
+ weight: "normal",
252
+ className: "mt-1.5",
253
+ color: "text-text-500",
254
+ children: helperText
255
+ }
256
+ )
257
+ ] });
258
+ }
259
+ );
260
+ CheckBox.displayName = "CheckBox";
261
+ // Annotate the CommonJS export names for ESM import in node:
262
+ 0 && (module.exports = {
263
+ CheckBox
264
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ CheckBox
4
+ } from "../../chunk-LYOJCBOM.mjs";
5
+ import "../../chunk-TT3VCQGR.mjs";
6
+ export {
7
+ CheckBox
8
+ };
@@ -0,0 +1,29 @@
1
+ import * as react from 'react';
2
+ import { ReactNode, ButtonHTMLAttributes, HTMLAttributes } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+
5
+ interface DropdownMenuProps {
6
+ children: ReactNode;
7
+ open?: boolean;
8
+ onOpenChange?: (open: boolean) => void;
9
+ }
10
+ declare const DropdownMenu: ({ children, open, onOpenChange }: DropdownMenuProps) => react_jsx_runtime.JSX.Element;
11
+ declare const DropdownMenuTrigger: react.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
12
+ declare const MenuLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFieldSetElement> & {
13
+ inset?: boolean;
14
+ } & react.RefAttributes<HTMLFieldSetElement>>;
15
+ declare const MenuContent: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
16
+ align?: "start" | "center" | "end";
17
+ side?: "top" | "right" | "bottom" | "left";
18
+ sideOffset?: number;
19
+ } & react.RefAttributes<HTMLDivElement>>;
20
+ declare const MenuItem: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
21
+ inset?: boolean;
22
+ size?: "small" | "medium";
23
+ iconLeft?: ReactNode;
24
+ iconRight?: ReactNode;
25
+ disabled?: boolean;
26
+ } & react.RefAttributes<HTMLDivElement>>;
27
+ declare const MenuSeparator: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
28
+
29
+ export { DropdownMenu, DropdownMenuTrigger, MenuContent, MenuItem, MenuLabel, MenuSeparator };
@@ -0,0 +1,29 @@
1
+ import * as react from 'react';
2
+ import { ReactNode, ButtonHTMLAttributes, HTMLAttributes } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+
5
+ interface DropdownMenuProps {
6
+ children: ReactNode;
7
+ open?: boolean;
8
+ onOpenChange?: (open: boolean) => void;
9
+ }
10
+ declare const DropdownMenu: ({ children, open, onOpenChange }: DropdownMenuProps) => react_jsx_runtime.JSX.Element;
11
+ declare const DropdownMenuTrigger: react.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
12
+ declare const MenuLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFieldSetElement> & {
13
+ inset?: boolean;
14
+ } & react.RefAttributes<HTMLFieldSetElement>>;
15
+ declare const MenuContent: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
16
+ align?: "start" | "center" | "end";
17
+ side?: "top" | "right" | "bottom" | "left";
18
+ sideOffset?: number;
19
+ } & react.RefAttributes<HTMLDivElement>>;
20
+ declare const MenuItem: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
21
+ inset?: boolean;
22
+ size?: "small" | "medium";
23
+ iconLeft?: ReactNode;
24
+ iconRight?: ReactNode;
25
+ disabled?: boolean;
26
+ } & react.RefAttributes<HTMLDivElement>>;
27
+ declare const MenuSeparator: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
28
+
29
+ export { DropdownMenu, DropdownMenuTrigger, MenuContent, MenuItem, MenuLabel, MenuSeparator };