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