analytica-frontend-lib 1.0.25 → 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/index.js CHANGED
@@ -1,50 +1,11 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
19
2
 
20
- // src/index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- Alert: () => Alert,
24
- Badge: () => Badge,
25
- Button: () => Button,
26
- CheckBox: () => CheckBox,
27
- DropdownMenu: () => DropdownMenu,
28
- DropdownMenuContent: () => MenuContent,
29
- DropdownMenuItem: () => MenuItem,
30
- DropdownMenuLabel: () => MenuLabel,
31
- DropdownMenuSeparator: () => MenuSeparator,
32
- DropdownMenuTrigger: () => DropdownMenuTrigger,
33
- IconButton: () => IconButton,
34
- IconRoundedButton: () => IconRoundedButton,
35
- NavButton: () => NavButton,
36
- SelectionButton: () => SelectionButton,
37
- Table: () => Table,
38
- Text: () => Text,
39
- TextArea: () => TextArea,
40
- Toast: () => Toast,
41
- Toaster: () => Toaster,
42
- useToastStore: () => useToastStore
43
- });
44
- module.exports = __toCommonJS(index_exports);
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var phosphorReact = require('phosphor-react');
5
+ var react = require('react');
6
+ var zustand = require('zustand');
45
7
 
46
8
  // src/components/Text/Text.tsx
47
- var import_jsx_runtime = require("react/jsx-runtime");
48
9
  var Text = ({
49
10
  children,
50
11
  size = "md",
@@ -83,7 +44,7 @@ var Text = ({
83
44
  weightClasses = weightClassMap[weight] ?? weightClassMap.normal;
84
45
  const baseClasses = "font-primary";
85
46
  const Component = as ?? "p";
86
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
47
+ return /* @__PURE__ */ jsxRuntime.jsx(
87
48
  Component,
88
49
  {
89
50
  className: `${baseClasses} ${sizeClasses} ${weightClasses} ${color} ${className}`,
@@ -92,9 +53,6 @@ var Text = ({
92
53
  }
93
54
  );
94
55
  };
95
-
96
- // src/components/Button/Button.tsx
97
- var import_jsx_runtime2 = require("react/jsx-runtime");
98
56
  var VARIANT_ACTION_CLASSES = {
99
57
  solid: {
100
58
  primary: "bg-primary-950 text-text border border-primary-950 hover:bg-primary-800 hover:border-primary-800 focus-visible:outline-none focus-visible:bg-primary-950 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:bg-primary-700 active:border-primary-700 disabled:bg-primary-500 disabled:border-primary-500 disabled:opacity-40 disabled:cursor-not-allowed",
@@ -134,7 +92,7 @@ var Button = ({
134
92
  const sizeClasses = SIZE_CLASSES[size];
135
93
  const variantClasses = VARIANT_ACTION_CLASSES[variant][action];
136
94
  const baseClasses = "inline-flex items-center justify-center rounded-full cursor-pointer font-medium";
137
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
95
+ return /* @__PURE__ */ jsxRuntime.jsxs(
138
96
  "button",
139
97
  {
140
98
  className: `${baseClasses} ${variantClasses} ${sizeClasses} ${className}`,
@@ -142,17 +100,13 @@ var Button = ({
142
100
  type,
143
101
  ...props,
144
102
  children: [
145
- iconLeft && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "mr-2 flex items-center", children: iconLeft }),
103
+ iconLeft && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mr-2 flex items-center", children: iconLeft }),
146
104
  children,
147
- iconRight && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "ml-2 flex items-center", children: iconRight })
105
+ iconRight && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-2 flex items-center", children: iconRight })
148
106
  ]
149
107
  }
150
108
  );
151
109
  };
152
-
153
- // src/components/Badge/Badge.tsx
154
- var import_phosphor_react = require("phosphor-react");
155
- var import_jsx_runtime3 = require("react/jsx-runtime");
156
110
  var VARIANT_ACTION_CLASSES2 = {
157
111
  solid: {
158
112
  error: "bg-error text-error-700 focus-visible:outline-none",
@@ -169,7 +123,7 @@ var VARIANT_ACTION_CLASSES2 = {
169
123
  muted: "bg-background-muted text-background-800 border border-border-300 focus-visible:outline-none"
170
124
  },
171
125
  exams: {
172
- exam1: "bg-exam-1 text-info-200 focus-visible:outline-none",
126
+ exam1: "bg-exam-1 text-info-700 focus-visible:outline-none",
173
127
  exam2: "bg-exam-2 text-typography-1 focus-visible:outline-none",
174
128
  exam3: "bg-exam-3 text-typography-2 focus-visible:outline-none",
175
129
  exam4: "bg-exam-4 text-success-700 focus-visible:outline-none"
@@ -205,17 +159,17 @@ var Badge = ({
205
159
  const sizeClassesIcon = SIZE_CLASSES_ICON[size];
206
160
  const variantActionMap = VARIANT_ACTION_CLASSES2[variant] || {};
207
161
  const variantClasses = typeof variantActionMap === "string" ? variantActionMap : variantActionMap[action] ?? variantActionMap.muted ?? "";
208
- const baseClasses = "inline-flex items-center justify-center rounded-xs font-medium gap-1 relative";
162
+ const baseClasses = "inline-flex items-center justify-center rounded-xs font-normal gap-1 relative";
209
163
  const baseClassesIcon = "flex items-center";
210
164
  if (variant === "notification") {
211
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
165
+ return /* @__PURE__ */ jsxRuntime.jsxs(
212
166
  "div",
213
167
  {
214
168
  className: `${baseClasses} ${variantClasses} ${sizeClasses} ${className}`,
215
169
  ...props,
216
170
  children: [
217
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_phosphor_react.Bell, { size: 24, className: "text-primary-950" }),
218
- notificationActive && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
171
+ /* @__PURE__ */ jsxRuntime.jsx(phosphorReact.Bell, { size: 24, className: "text-primary-950" }),
172
+ notificationActive && /* @__PURE__ */ jsxRuntime.jsx(
219
173
  "span",
220
174
  {
221
175
  "data-testid": "notification-dot",
@@ -226,23 +180,19 @@ var Badge = ({
226
180
  }
227
181
  );
228
182
  }
229
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
183
+ return /* @__PURE__ */ jsxRuntime.jsxs(
230
184
  "div",
231
185
  {
232
186
  className: `${baseClasses} ${variantClasses} ${sizeClasses} ${className}`,
233
187
  ...props,
234
188
  children: [
235
- iconLeft && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: `${baseClassesIcon} ${sizeClassesIcon}`, children: iconLeft }),
189
+ iconLeft && /* @__PURE__ */ jsxRuntime.jsx("span", { className: `${baseClassesIcon} ${sizeClassesIcon}`, children: iconLeft }),
236
190
  children,
237
- iconRight && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: `${baseClassesIcon} ${sizeClassesIcon}`, children: iconRight })
191
+ iconRight && /* @__PURE__ */ jsxRuntime.jsx("span", { className: `${baseClassesIcon} ${sizeClassesIcon}`, children: iconRight })
238
192
  ]
239
193
  }
240
194
  );
241
195
  };
242
-
243
- // src/components/Alert/Alert.tsx
244
- var import_phosphor_react2 = require("phosphor-react");
245
- var import_jsx_runtime4 = require("react/jsx-runtime");
246
196
  var VARIANT_ACTION_CLASSES3 = {
247
197
  solid: {
248
198
  default: "bg-background-50 border-transparent",
@@ -267,11 +217,11 @@ var COLOR_CLASSES = {
267
217
  error: "text-error-800"
268
218
  };
269
219
  var ICONS = {
270
- default: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_phosphor_react2.CheckCircle, { size: 18 }),
271
- info: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_phosphor_react2.Info, { size: 18 }),
272
- success: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_phosphor_react2.CheckCircle, { size: 18 }),
273
- warning: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_phosphor_react2.WarningCircle, { size: 18 }),
274
- error: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_phosphor_react2.XCircle, { size: 18 })
220
+ default: /* @__PURE__ */ jsxRuntime.jsx(phosphorReact.CheckCircle, { size: 18 }),
221
+ info: /* @__PURE__ */ jsxRuntime.jsx(phosphorReact.Info, { size: 18 }),
222
+ success: /* @__PURE__ */ jsxRuntime.jsx(phosphorReact.CheckCircle, { size: 18 }),
223
+ warning: /* @__PURE__ */ jsxRuntime.jsx(phosphorReact.WarningCircle, { size: 18 }),
224
+ error: /* @__PURE__ */ jsxRuntime.jsx(phosphorReact.XCircle, { size: 18 })
275
225
  };
276
226
  var Alert = ({
277
227
  variant = "solid",
@@ -286,15 +236,15 @@ var Alert = ({
286
236
  const variantColor = COLOR_CLASSES[action];
287
237
  const variantIcon = ICONS[action];
288
238
  const hasHeading = Boolean(title);
289
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
239
+ return /* @__PURE__ */ jsxRuntime.jsxs(
290
240
  "div",
291
241
  {
292
242
  className: `${baseClasses} ${variantClasses} ${className ?? ""}`,
293
243
  ...props,
294
244
  children: [
295
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: `mt-0.5 ${variantColor}`, children: variantIcon }),
296
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
297
- hasHeading && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
245
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `mt-0.5 ${variantColor}`, children: variantIcon }),
246
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
247
+ hasHeading && /* @__PURE__ */ jsxRuntime.jsx(
298
248
  Text,
299
249
  {
300
250
  size: "md",
@@ -304,7 +254,7 @@ var Alert = ({
304
254
  children: title
305
255
  }
306
256
  ),
307
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
257
+ /* @__PURE__ */ jsxRuntime.jsx(
308
258
  Text,
309
259
  {
310
260
  size: hasHeading ? "sm" : "md",
@@ -318,11 +268,7 @@ var Alert = ({
318
268
  }
319
269
  );
320
270
  };
321
-
322
- // src/components/IconButton/IconButton.tsx
323
- var import_react = require("react");
324
- var import_jsx_runtime5 = require("react/jsx-runtime");
325
- var IconButton = (0, import_react.forwardRef)(
271
+ var IconButton = react.forwardRef(
326
272
  ({ icon, size = "md", active = false, className = "", disabled, ...props }, ref) => {
327
273
  const baseClasses = [
328
274
  "inline-flex",
@@ -354,7 +300,7 @@ var IconButton = (0, import_react.forwardRef)(
354
300
  ...activeClasses
355
301
  ].join(" ");
356
302
  const ariaLabel = props["aria-label"] ?? "Bot\xE3o de a\xE7\xE3o";
357
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
303
+ return /* @__PURE__ */ jsxRuntime.jsx(
358
304
  "button",
359
305
  {
360
306
  ref,
@@ -364,15 +310,12 @@ var IconButton = (0, import_react.forwardRef)(
364
310
  "aria-pressed": active,
365
311
  "aria-label": ariaLabel,
366
312
  ...props,
367
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "flex items-center justify-center", children: icon })
313
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center justify-center", children: icon })
368
314
  }
369
315
  );
370
316
  }
371
317
  );
372
318
  IconButton.displayName = "IconButton";
373
-
374
- // src/components/IconRoundedButton/IconRoundedButton.tsx
375
- var import_jsx_runtime6 = require("react/jsx-runtime");
376
319
  var IconRoundedButton = ({
377
320
  icon,
378
321
  className = "",
@@ -400,22 +343,18 @@ var IconRoundedButton = ({
400
343
  "disabled:opacity-50",
401
344
  "disabled:cursor-not-allowed"
402
345
  ].join(" ");
403
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
346
+ return /* @__PURE__ */ jsxRuntime.jsx(
404
347
  "button",
405
348
  {
406
349
  type: "button",
407
350
  className: `${baseClasses} ${className}`,
408
351
  disabled,
409
352
  ...props,
410
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "flex items-center justify-center w-5 h-5", children: icon })
353
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center justify-center w-5 h-5", children: icon })
411
354
  }
412
355
  );
413
356
  };
414
-
415
- // src/components/NavButton/NavButton.tsx
416
- var import_react2 = require("react");
417
- var import_jsx_runtime7 = require("react/jsx-runtime");
418
- var NavButton = (0, import_react2.forwardRef)(
357
+ var NavButton = react.forwardRef(
419
358
  ({ icon, label, selected = false, className = "", disabled, ...props }, ref) => {
420
359
  const baseClasses = [
421
360
  "flex",
@@ -442,7 +381,7 @@ var NavButton = (0, import_react2.forwardRef)(
442
381
  ];
443
382
  const stateClasses = selected ? ["bg-primary-50", "text-primary-950"] : [];
444
383
  const allClasses = [...baseClasses, ...stateClasses].join(" ");
445
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
384
+ return /* @__PURE__ */ jsxRuntime.jsxs(
446
385
  "button",
447
386
  {
448
387
  ref,
@@ -452,19 +391,15 @@ var NavButton = (0, import_react2.forwardRef)(
452
391
  "aria-pressed": selected,
453
392
  ...props,
454
393
  children: [
455
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "flex items-center justify-center w-5 h-5", children: icon }),
456
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "whitespace-nowrap", children: label })
394
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center justify-center w-5 h-5", children: icon }),
395
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "whitespace-nowrap", children: label })
457
396
  ]
458
397
  }
459
398
  );
460
399
  }
461
400
  );
462
401
  NavButton.displayName = "NavButton";
463
-
464
- // src/components/SelectionButton/SelectionButton.tsx
465
- var import_react3 = require("react");
466
- var import_jsx_runtime8 = require("react/jsx-runtime");
467
- var SelectionButton = (0, import_react3.forwardRef)(
402
+ var SelectionButton = react.forwardRef(
468
403
  ({ icon, label, selected = false, className = "", disabled, ...props }, ref) => {
469
404
  const baseClasses = [
470
405
  "inline-flex",
@@ -496,7 +431,7 @@ var SelectionButton = (0, import_react3.forwardRef)(
496
431
  ];
497
432
  const stateClasses = selected ? ["ring-primary-950", "ring-2", "ring-offset-0", "shadow-none"] : [];
498
433
  const allClasses = [...baseClasses, ...stateClasses].join(" ");
499
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
434
+ return /* @__PURE__ */ jsxRuntime.jsxs(
500
435
  "button",
501
436
  {
502
437
  ref,
@@ -506,34 +441,30 @@ var SelectionButton = (0, import_react3.forwardRef)(
506
441
  "aria-pressed": selected,
507
442
  ...props,
508
443
  children: [
509
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "flex items-center justify-center w-6 h-6", children: icon }),
510
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: label })
444
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center justify-center w-6 h-6", children: icon }),
445
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: label })
511
446
  ]
512
447
  }
513
448
  );
514
449
  }
515
450
  );
516
451
  SelectionButton.displayName = "SelectionButton";
517
-
518
- // src/components/Table/Table.tsx
519
- var import_react4 = require("react");
520
- var import_jsx_runtime9 = require("react/jsx-runtime");
521
- var Table = (0, import_react4.forwardRef)(
522
- ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "border border-border-200 rounded-xl relative w-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
452
+ var Table = react.forwardRef(
453
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border border-border-200 rounded-xl relative w-full overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsxs(
523
454
  "table",
524
455
  {
525
456
  ref,
526
457
  className: `w-full caption-bottom text-sm ${className ?? ""}`,
527
458
  ...props,
528
459
  children: [
529
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("caption", { className: "sr-only", children: "My Table" }),
460
+ /* @__PURE__ */ jsxRuntime.jsx("caption", { className: "sr-only", children: "My Table" }),
530
461
  children
531
462
  ]
532
463
  }
533
464
  ) })
534
465
  );
535
466
  Table.displayName = "Table";
536
- var TableHeader = (0, import_react4.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
467
+ var TableHeader = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
537
468
  "thead",
538
469
  {
539
470
  ref,
@@ -542,7 +473,7 @@ var TableHeader = (0, import_react4.forwardRef)(({ className, ...props }, ref) =
542
473
  }
543
474
  ));
544
475
  TableHeader.displayName = "TableHeader";
545
- var TableBody = (0, import_react4.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
476
+ var TableBody = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
546
477
  "tbody",
547
478
  {
548
479
  ref,
@@ -551,7 +482,7 @@ var TableBody = (0, import_react4.forwardRef)(({ className, ...props }, ref) =>
551
482
  }
552
483
  ));
553
484
  TableBody.displayName = "TableBody";
554
- var TableFooter = (0, import_react4.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
485
+ var TableFooter = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
555
486
  "tfoot",
556
487
  {
557
488
  ref,
@@ -566,9 +497,9 @@ var VARIANT_STATES_ROW = {
566
497
  invalid: "border-b-2 border-indicator-error",
567
498
  disabled: "border-b border-border-100 bg-background-50 opacity-50 cursor-not-allowed"
568
499
  };
569
- var TableRow = (0, import_react4.forwardRef)(
500
+ var TableRow = react.forwardRef(
570
501
  ({ state = "default", className, ...props }, ref) => {
571
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
502
+ return /* @__PURE__ */ jsxRuntime.jsx(
572
503
  "tr",
573
504
  {
574
505
  ref,
@@ -585,7 +516,7 @@ var TableRow = (0, import_react4.forwardRef)(
585
516
  }
586
517
  );
587
518
  TableRow.displayName = "TableRow";
588
- var TableHead = (0, import_react4.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
519
+ var TableHead = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
589
520
  "th",
590
521
  {
591
522
  ref,
@@ -594,7 +525,7 @@ var TableHead = (0, import_react4.forwardRef)(({ className, ...props }, ref) =>
594
525
  }
595
526
  ));
596
527
  TableHead.displayName = "TableHead";
597
- var TableCell = (0, import_react4.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
528
+ var TableCell = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
598
529
  "td",
599
530
  {
600
531
  ref,
@@ -603,7 +534,7 @@ var TableCell = (0, import_react4.forwardRef)(({ className, ...props }, ref) =>
603
534
  }
604
535
  ));
605
536
  TableCell.displayName = "TableCell";
606
- var TableCaption = (0, import_react4.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
537
+ var TableCaption = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
607
538
  "caption",
608
539
  {
609
540
  ref,
@@ -612,11 +543,6 @@ var TableCaption = (0, import_react4.forwardRef)(({ className, ...props }, ref)
612
543
  }
613
544
  ));
614
545
  TableCaption.displayName = "TableCaption";
615
-
616
- // src/components/CheckBox/CheckBox.tsx
617
- var import_react5 = require("react");
618
- var import_phosphor_react3 = require("phosphor-react");
619
- var import_jsx_runtime10 = require("react/jsx-runtime");
620
546
  var SIZE_CLASSES3 = {
621
547
  small: {
622
548
  checkbox: "w-4 h-4",
@@ -676,7 +602,7 @@ var STATE_CLASSES = {
676
602
  checked: "border-primary-600 bg-primary-600 text-text cursor-not-allowed opacity-40"
677
603
  }
678
604
  };
679
- var CheckBox = (0, import_react5.forwardRef)(
605
+ var CheckBox = react.forwardRef(
680
606
  ({
681
607
  label,
682
608
  size = "medium",
@@ -692,9 +618,9 @@ var CheckBox = (0, import_react5.forwardRef)(
692
618
  onChange,
693
619
  ...props
694
620
  }, ref) => {
695
- const generatedId = (0, import_react5.useId)();
621
+ const generatedId = react.useId();
696
622
  const inputId = id ?? `checkbox-${generatedId}`;
697
- const [internalChecked, setInternalChecked] = (0, import_react5.useState)(false);
623
+ const [internalChecked, setInternalChecked] = react.useState(false);
698
624
  const isControlled = checkedProp !== void 0;
699
625
  const checked = isControlled ? checkedProp : internalChecked;
700
626
  const handleChange = (event) => {
@@ -711,8 +637,8 @@ var CheckBox = (0, import_react5.forwardRef)(
711
637
  const checkboxClasses = `${BASE_CHECKBOX_CLASSES} ${sizeClasses.checkbox} ${borderWidthClass} ${stylingClasses} ${className}`;
712
638
  const renderIcon = () => {
713
639
  if (indeterminate) {
714
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
715
- import_phosphor_react3.Minus,
640
+ return /* @__PURE__ */ jsxRuntime.jsx(
641
+ phosphorReact.Minus,
716
642
  {
717
643
  size: sizeClasses.iconSize,
718
644
  weight: "bold",
@@ -721,8 +647,8 @@ var CheckBox = (0, import_react5.forwardRef)(
721
647
  );
722
648
  }
723
649
  if (checked) {
724
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
725
- import_phosphor_react3.Check,
650
+ return /* @__PURE__ */ jsxRuntime.jsx(
651
+ phosphorReact.Check,
726
652
  {
727
653
  size: sizeClasses.iconSize,
728
654
  weight: "bold",
@@ -732,13 +658,13 @@ var CheckBox = (0, import_react5.forwardRef)(
732
658
  }
733
659
  return null;
734
660
  };
735
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex flex-col", children: [
736
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
661
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
662
+ /* @__PURE__ */ jsxRuntime.jsxs(
737
663
  "div",
738
664
  {
739
665
  className: `flex flex-row items-center ${sizeClasses.spacing} ${disabled ? "opacity-40" : ""}`,
740
666
  children: [
741
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
667
+ /* @__PURE__ */ jsxRuntime.jsx(
742
668
  "input",
743
669
  {
744
670
  ref,
@@ -751,12 +677,12 @@ var CheckBox = (0, import_react5.forwardRef)(
751
677
  ...props
752
678
  }
753
679
  ),
754
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("label", { htmlFor: inputId, className: checkboxClasses, children: renderIcon() }),
755
- label && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
680
+ /* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: inputId, className: checkboxClasses, children: renderIcon() }),
681
+ label && /* @__PURE__ */ jsxRuntime.jsx(
756
682
  "div",
757
683
  {
758
684
  className: `flex flex-row items-center ${sizeClasses.labelHeight}`,
759
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
685
+ children: /* @__PURE__ */ jsxRuntime.jsx(
760
686
  Text,
761
687
  {
762
688
  as: "label",
@@ -772,7 +698,7 @@ var CheckBox = (0, import_react5.forwardRef)(
772
698
  ]
773
699
  }
774
700
  ),
775
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
701
+ errorMessage && /* @__PURE__ */ jsxRuntime.jsx(
776
702
  Text,
777
703
  {
778
704
  size: "sm",
@@ -782,7 +708,7 @@ var CheckBox = (0, import_react5.forwardRef)(
782
708
  children: errorMessage
783
709
  }
784
710
  ),
785
- helperText && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
711
+ helperText && !errorMessage && /* @__PURE__ */ jsxRuntime.jsx(
786
712
  Text,
787
713
  {
788
714
  size: "sm",
@@ -796,10 +722,6 @@ var CheckBox = (0, import_react5.forwardRef)(
796
722
  }
797
723
  );
798
724
  CheckBox.displayName = "CheckBox";
799
-
800
- // src/components/TextArea/TextArea.tsx
801
- var import_react6 = require("react");
802
- var import_jsx_runtime11 = require("react/jsx-runtime");
803
725
  var SIZE_CLASSES4 = {
804
726
  small: {
805
727
  container: "w-72",
@@ -858,7 +780,7 @@ var STATE_CLASSES2 = {
858
780
  focus: ""
859
781
  }
860
782
  };
861
- var TextArea = (0, import_react6.forwardRef)(
783
+ var TextArea = react.forwardRef(
862
784
  ({
863
785
  label,
864
786
  size = "medium",
@@ -873,9 +795,9 @@ var TextArea = (0, import_react6.forwardRef)(
873
795
  placeholder,
874
796
  ...props
875
797
  }, ref) => {
876
- const generatedId = (0, import_react6.useId)();
798
+ const generatedId = react.useId();
877
799
  const inputId = id ?? `textarea-${generatedId}`;
878
- const [isFocused, setIsFocused] = (0, import_react6.useState)(false);
800
+ const [isFocused, setIsFocused] = react.useState(false);
879
801
  const handleChange = (event) => {
880
802
  onChange?.(event);
881
803
  };
@@ -894,8 +816,8 @@ var TextArea = (0, import_react6.forwardRef)(
894
816
  const sizeClasses = SIZE_CLASSES4[size];
895
817
  const stateClasses = STATE_CLASSES2[currentState];
896
818
  const textareaClasses = `${BASE_TEXTAREA_CLASSES} ${sizeClasses.textarea} ${stateClasses.base} ${stateClasses.hover} ${stateClasses.focus} ${className}`;
897
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: `flex flex-col ${sizeClasses.container}`, children: [
898
- label && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
819
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex flex-col ${sizeClasses.container}`, children: [
820
+ label && /* @__PURE__ */ jsxRuntime.jsx(
899
821
  Text,
900
822
  {
901
823
  as: "label",
@@ -907,7 +829,7 @@ var TextArea = (0, import_react6.forwardRef)(
907
829
  children: label
908
830
  }
909
831
  ),
910
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
832
+ /* @__PURE__ */ jsxRuntime.jsx(
911
833
  "textarea",
912
834
  {
913
835
  ref,
@@ -921,31 +843,27 @@ var TextArea = (0, import_react6.forwardRef)(
921
843
  ...props
922
844
  }
923
845
  ),
924
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { size: "sm", weight: "normal", className: "mt-1.5 text-error-600", children: errorMessage }),
925
- helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { size: "sm", weight: "normal", className: "mt-1.5 text-text-500", children: helperMessage })
846
+ errorMessage && /* @__PURE__ */ jsxRuntime.jsx(Text, { size: "sm", weight: "normal", className: "mt-1.5 text-error-600", children: errorMessage }),
847
+ helperMessage && !errorMessage && /* @__PURE__ */ jsxRuntime.jsx(Text, { size: "sm", weight: "normal", className: "mt-1.5 text-text-500", children: helperMessage })
926
848
  ] });
927
849
  }
928
850
  );
929
851
  TextArea.displayName = "TextArea";
930
-
931
- // src/components/DropdownMenu/DropdownMenu.tsx
932
- var import_react7 = require("react");
933
- var import_jsx_runtime12 = require("react/jsx-runtime");
934
- var DropdownMenuContext = (0, import_react7.createContext)(
852
+ var DropdownMenuContext = react.createContext(
935
853
  void 0
936
854
  );
937
855
  var DropdownMenu = ({ children, open, onOpenChange }) => {
938
- const [internalOpen, setInternalOpen] = (0, import_react7.useState)(false);
856
+ const [internalOpen, setInternalOpen] = react.useState(false);
939
857
  const isControlled = open !== void 0;
940
858
  const currentOpen = isControlled ? open : internalOpen;
941
- const setOpen = (0, import_react7.useCallback)(
859
+ const setOpen = react.useCallback(
942
860
  (newOpen) => {
943
861
  if (onOpenChange) onOpenChange(newOpen);
944
862
  if (!isControlled) setInternalOpen(newOpen);
945
863
  },
946
864
  [isControlled, onOpenChange]
947
865
  );
948
- const menuRef = (0, import_react7.useRef)(null);
866
+ const menuRef = react.useRef(null);
949
867
  const handleArrowDownOrArrowUp = (event) => {
950
868
  const menuContent = menuRef.current?.querySelector('[role="menu"]');
951
869
  if (menuContent) {
@@ -979,7 +897,7 @@ var DropdownMenu = ({ children, open, onOpenChange }) => {
979
897
  setOpen(false);
980
898
  }
981
899
  };
982
- (0, import_react7.useEffect)(() => {
900
+ react.useEffect(() => {
983
901
  if (currentOpen) {
984
902
  document.addEventListener("mousedown", handleClickOutside);
985
903
  document.addEventListener("keydown", handleDownkey);
@@ -989,18 +907,18 @@ var DropdownMenu = ({ children, open, onOpenChange }) => {
989
907
  document.removeEventListener("keydown", handleDownkey);
990
908
  };
991
909
  }, [currentOpen]);
992
- const value = (0, import_react7.useMemo)(
910
+ const value = react.useMemo(
993
911
  () => ({ open: currentOpen, setOpen }),
994
912
  [currentOpen, setOpen]
995
913
  );
996
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DropdownMenuContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "relative", ref: menuRef, children }) });
914
+ return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuContext.Provider, { value, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative", ref: menuRef, children }) });
997
915
  };
998
- var DropdownMenuTrigger = (0, import_react7.forwardRef)(({ className, children, onClick, ...props }, ref) => {
999
- const context = (0, import_react7.useContext)(DropdownMenuContext);
916
+ var DropdownMenuTrigger = react.forwardRef(({ className, children, onClick, ...props }, ref) => {
917
+ const context = react.useContext(DropdownMenuContext);
1000
918
  if (!context)
1001
919
  throw new Error("DropdownMenuTrigger must be used within a DropdownMenu");
1002
920
  const { open, setOpen } = context;
1003
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
921
+ return /* @__PURE__ */ jsxRuntime.jsx(
1004
922
  "button",
1005
923
  {
1006
924
  ref,
@@ -1032,7 +950,7 @@ var ALIGN_CLASSES = {
1032
950
  center: "left-1/2 -translate-x-1/2",
1033
951
  end: "right-0"
1034
952
  };
1035
- var MenuLabel = (0, import_react7.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
953
+ var MenuLabel = react.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1036
954
  "fieldset",
1037
955
  {
1038
956
  ref,
@@ -1042,7 +960,7 @@ var MenuLabel = (0, import_react7.forwardRef)(({ className, inset, ...props }, r
1042
960
  }
1043
961
  ));
1044
962
  MenuLabel.displayName = "MenuLabel";
1045
- var MenuContent = (0, import_react7.forwardRef)(
963
+ var MenuContent = react.forwardRef(
1046
964
  ({
1047
965
  className,
1048
966
  align = "start",
@@ -1051,9 +969,9 @@ var MenuContent = (0, import_react7.forwardRef)(
1051
969
  children,
1052
970
  ...props
1053
971
  }, ref) => {
1054
- const { open } = (0, import_react7.useContext)(DropdownMenuContext);
1055
- const [isVisible, setIsVisible] = (0, import_react7.useState)(open);
1056
- (0, import_react7.useEffect)(() => {
972
+ const { open } = react.useContext(DropdownMenuContext);
973
+ const [isVisible, setIsVisible] = react.useState(open);
974
+ react.useEffect(() => {
1057
975
  if (open) {
1058
976
  setIsVisible(true);
1059
977
  } else {
@@ -1067,7 +985,7 @@ var MenuContent = (0, import_react7.forwardRef)(
1067
985
  const horizontal = ALIGN_CLASSES[align];
1068
986
  return `absolute ${vertical} ${horizontal}`;
1069
987
  };
1070
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
988
+ return /* @__PURE__ */ jsxRuntime.jsx(
1071
989
  "div",
1072
990
  {
1073
991
  ref,
@@ -1091,7 +1009,7 @@ var MenuContent = (0, import_react7.forwardRef)(
1091
1009
  }
1092
1010
  );
1093
1011
  MenuContent.displayName = "MenuContent";
1094
- var MenuItem = (0, import_react7.forwardRef)(
1012
+ var MenuItem = react.forwardRef(
1095
1013
  ({
1096
1014
  className,
1097
1015
  inset,
@@ -1112,7 +1030,7 @@ var MenuItem = (0, import_react7.forwardRef)(
1112
1030
  }
1113
1031
  onClick?.(e);
1114
1032
  };
1115
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1033
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1116
1034
  "div",
1117
1035
  {
1118
1036
  ref,
@@ -1142,7 +1060,7 @@ var MenuItem = (0, import_react7.forwardRef)(
1142
1060
  }
1143
1061
  );
1144
1062
  MenuItem.displayName = "MenuItem";
1145
- var MenuSeparator = (0, import_react7.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1063
+ var MenuSeparator = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1146
1064
  "div",
1147
1065
  {
1148
1066
  ref,
@@ -1151,10 +1069,6 @@ var MenuSeparator = (0, import_react7.forwardRef)(({ className, ...props }, ref)
1151
1069
  }
1152
1070
  ));
1153
1071
  MenuSeparator.displayName = "MenuSeparator";
1154
-
1155
- // src/components/Toast/Toast.tsx
1156
- var import_phosphor_react4 = require("phosphor-react");
1157
- var import_jsx_runtime13 = require("react/jsx-runtime");
1158
1072
  var VARIANT_ACTION_CLASSES4 = {
1159
1073
  solid: {
1160
1074
  warning: "bg-warning text-warning-800 border-none focus-visible:outline-none",
@@ -1162,15 +1076,15 @@ var VARIANT_ACTION_CLASSES4 = {
1162
1076
  info: "bg-info text-info-800 border-none focus-visible:outline-none"
1163
1077
  },
1164
1078
  outlined: {
1165
- warning: "bg-warning text-warning-800 border border-warning-200 focus-visible:outline-none",
1079
+ warning: "bg-warning text-warning-600 border border-warning-300 focus-visible:outline-none",
1166
1080
  success: "bg-success text-success-800 border border-success-200 focus-visible:outline-none",
1167
- info: "bg-info text-info-800 border border-info-200 focus-visible:outline-none"
1081
+ info: "bg-info text-info-600 border border-info-600 focus-visible:outline-none"
1168
1082
  }
1169
1083
  };
1170
1084
  var iconMap = {
1171
- success: import_phosphor_react4.CheckCircle,
1172
- info: import_phosphor_react4.Info,
1173
- warning: import_phosphor_react4.WarningCircle
1085
+ success: phosphorReact.CheckCircle,
1086
+ info: phosphorReact.Info,
1087
+ warning: phosphorReact.WarningCircle
1174
1088
  };
1175
1089
  var Toast = ({
1176
1090
  variant = "outlined",
@@ -1194,7 +1108,7 @@ var Toast = ({
1194
1108
  };
1195
1109
  const IconAction = iconMap[action] || iconMap["success"];
1196
1110
  const baseClasses = "max-w-[390px] w-full flex flex-row items-start justify-between shadow-lg rounded-lg border p-4 gap-6 group";
1197
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1111
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1198
1112
  "div",
1199
1113
  {
1200
1114
  role: "alert",
@@ -1203,30 +1117,27 @@ var Toast = ({
1203
1117
  className: `${baseClasses} ${positionClasses[position]} ${variantClasses} ${className}`,
1204
1118
  ...props,
1205
1119
  children: [
1206
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex flex-row items-start gap-3", children: [
1207
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "mt-1", "data-testid": `toast-icon-${action}`, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(IconAction, {}) }),
1208
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex flex-col items-start justify-start", children: [
1209
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "font-semibold text-md", children: title }),
1210
- description && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-md text-text-900", children: description })
1120
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row items-start gap-3", children: [
1121
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-1", "data-testid": `toast-icon-${action}`, children: /* @__PURE__ */ jsxRuntime.jsx(IconAction, {}) }),
1122
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start justify-start", children: [
1123
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-md", children: title }),
1124
+ description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-md text-text-900", children: description })
1211
1125
  ] })
1212
1126
  ] }),
1213
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1127
+ /* @__PURE__ */ jsxRuntime.jsx(
1214
1128
  "button",
1215
1129
  {
1216
1130
  onClick: onClose,
1217
1131
  "aria-label": "Dismiss notification",
1218
1132
  className: "text-background-500 cursor-pointer opacity-0 group-hover:opacity-100 transition-opacity",
1219
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_phosphor_react4.X, {})
1133
+ children: /* @__PURE__ */ jsxRuntime.jsx(phosphorReact.X, {})
1220
1134
  }
1221
1135
  )
1222
1136
  ]
1223
1137
  }
1224
1138
  );
1225
1139
  };
1226
-
1227
- // src/components/Toast/utils/ToastStore.ts
1228
- var import_zustand = require("zustand");
1229
- var useToastStore = (0, import_zustand.create)((set) => ({
1140
+ var useToastStore = zustand.create((set) => ({
1230
1141
  toasts: [],
1231
1142
  addToast: (toast) => {
1232
1143
  const id = crypto.randomUUID();
@@ -1240,13 +1151,10 @@ var useToastStore = (0, import_zustand.create)((set) => ({
1240
1151
  }));
1241
1152
  }
1242
1153
  }));
1243
-
1244
- // src/components/Toast/utils/Toaster.tsx
1245
- var import_jsx_runtime14 = require("react/jsx-runtime");
1246
1154
  var Toaster = () => {
1247
1155
  const toasts = useToastStore((state) => state.toasts);
1248
1156
  const removeToast = useToastStore((state) => state.removeToast);
1249
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jsx_runtime14.Fragment, { children: toasts.map((toast) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1157
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: toasts.map((toast) => /* @__PURE__ */ jsxRuntime.jsx(
1250
1158
  Toast,
1251
1159
  {
1252
1160
  title: toast.title,
@@ -1259,26 +1167,24 @@ var Toaster = () => {
1259
1167
  toast.id
1260
1168
  )) });
1261
1169
  };
1262
- // Annotate the CommonJS export names for ESM import in node:
1263
- 0 && (module.exports = {
1264
- Alert,
1265
- Badge,
1266
- Button,
1267
- CheckBox,
1268
- DropdownMenu,
1269
- DropdownMenuContent,
1270
- DropdownMenuItem,
1271
- DropdownMenuLabel,
1272
- DropdownMenuSeparator,
1273
- DropdownMenuTrigger,
1274
- IconButton,
1275
- IconRoundedButton,
1276
- NavButton,
1277
- SelectionButton,
1278
- Table,
1279
- Text,
1280
- TextArea,
1281
- Toast,
1282
- Toaster,
1283
- useToastStore
1284
- });
1170
+
1171
+ exports.Alert = Alert;
1172
+ exports.Badge = Badge;
1173
+ exports.Button = Button;
1174
+ exports.CheckBox = CheckBox;
1175
+ exports.DropdownMenu = DropdownMenu;
1176
+ exports.DropdownMenuContent = MenuContent;
1177
+ exports.DropdownMenuItem = MenuItem;
1178
+ exports.DropdownMenuLabel = MenuLabel;
1179
+ exports.DropdownMenuSeparator = MenuSeparator;
1180
+ exports.DropdownMenuTrigger = DropdownMenuTrigger;
1181
+ exports.IconButton = IconButton;
1182
+ exports.IconRoundedButton = IconRoundedButton;
1183
+ exports.NavButton = NavButton;
1184
+ exports.SelectionButton = SelectionButton;
1185
+ exports.Table = Table;
1186
+ exports.Text = Text;
1187
+ exports.TextArea = TextArea;
1188
+ exports.Toast = Toast;
1189
+ exports.Toaster = Toaster;
1190
+ exports.useToastStore = useToastStore;