@codepom/react 0.1.0

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.cjs ADDED
@@ -0,0 +1,1005 @@
1
+ "use client"
2
+ "use strict";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // src/index.ts
32
+ var index_exports = {};
33
+ __export(index_exports, {
34
+ Alert: () => Alert,
35
+ Avatar: () => Avatar,
36
+ Badge: () => Badge,
37
+ Breadcrumb: () => Breadcrumb,
38
+ Button: () => Button,
39
+ Card: () => Card,
40
+ CardBody: () => CardBody,
41
+ CardFooter: () => CardFooter,
42
+ CardHeader: () => CardHeader,
43
+ Field: () => Field,
44
+ Input: () => Input,
45
+ Label: () => Label,
46
+ Modal: () => Modal,
47
+ Navbar: () => Navbar,
48
+ Pagination: () => Pagination,
49
+ Popover: () => Popover,
50
+ Select: () => Select,
51
+ Sidebar: () => Sidebar,
52
+ Skeleton: () => Skeleton,
53
+ SkeletonCard: () => SkeletonCard,
54
+ SkeletonText: () => SkeletonText,
55
+ Table: () => Table,
56
+ Tabs: () => Tabs,
57
+ Textarea: () => Textarea,
58
+ ToastProvider: () => ToastProvider,
59
+ Tooltip: () => Tooltip,
60
+ useToast: () => useToast
61
+ });
62
+ module.exports = __toCommonJS(index_exports);
63
+
64
+ // src/components/Button.tsx
65
+ var import_react = __toESM(require("react"), 1);
66
+ var import_jsx_runtime = require("react/jsx-runtime");
67
+ var Button = import_react.default.forwardRef(
68
+ ({
69
+ variant = "primary",
70
+ size = "md",
71
+ loading = false,
72
+ icon,
73
+ iconPosition = "left",
74
+ fullWidth = false,
75
+ disabled,
76
+ children,
77
+ className = "",
78
+ ...props
79
+ }, ref) => {
80
+ const classes = [
81
+ "cp-btn",
82
+ `cp-btn--${variant}`,
83
+ `cp-btn--${size}`,
84
+ fullWidth ? "cp-btn--full" : "",
85
+ loading ? "cp-btn--loading" : "",
86
+ className
87
+ ].filter(Boolean).join(" ");
88
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
89
+ "button",
90
+ {
91
+ ref,
92
+ className: classes,
93
+ disabled: disabled || loading,
94
+ "aria-busy": loading || void 0,
95
+ ...props,
96
+ children: [
97
+ loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "cp-btn__spinner", "aria-hidden": "true" }),
98
+ icon && iconPosition === "left" && !loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "cp-btn__icon", "aria-hidden": "true", children: icon }),
99
+ children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children }),
100
+ icon && iconPosition === "right" && !loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "cp-btn__icon", "aria-hidden": "true", children: icon })
101
+ ]
102
+ }
103
+ );
104
+ }
105
+ );
106
+ Button.displayName = "Button";
107
+
108
+ // src/components/Badge.tsx
109
+ var import_jsx_runtime2 = require("react/jsx-runtime");
110
+ var Badge = ({
111
+ variant = "default",
112
+ size = "md",
113
+ dot = false,
114
+ children,
115
+ className = ""
116
+ }) => {
117
+ const classes = [
118
+ "cp-badge",
119
+ `cp-badge--${variant}`,
120
+ size === "sm" ? "cp-badge--sm" : "",
121
+ dot ? "cp-badge--dot" : "",
122
+ className
123
+ ].filter(Boolean).join(" ");
124
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: classes, children });
125
+ };
126
+
127
+ // src/components/Alert.tsx
128
+ var import_react2 = __toESM(require("react"), 1);
129
+ var import_jsx_runtime3 = require("react/jsx-runtime");
130
+ var icons = {
131
+ info: "\u2605",
132
+ success: "\u2713",
133
+ warning: "\u26A0",
134
+ error: "\u2715"
135
+ };
136
+ var Alert = ({
137
+ variant = "info",
138
+ title,
139
+ dismissible = false,
140
+ onDismiss,
141
+ children,
142
+ className = ""
143
+ }) => {
144
+ const [dismissed, setDismissed] = import_react2.default.useState(false);
145
+ const handleDismiss = () => {
146
+ setDismissed(true);
147
+ onDismiss?.();
148
+ };
149
+ if (dismissed) return null;
150
+ const classes = ["cp-alert", `cp-alert--${variant}`, className].filter(Boolean).join(" ");
151
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
152
+ "div",
153
+ {
154
+ role: "alert",
155
+ className: classes,
156
+ children: [
157
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "cp-alert__icon", "aria-hidden": "true", children: icons[variant] }),
158
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "cp-alert__body", children: [
159
+ title && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "cp-alert__title", children: title }),
160
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "cp-alert__content", children })
161
+ ] }),
162
+ dismissible && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
163
+ "button",
164
+ {
165
+ className: "cp-alert__close",
166
+ onClick: handleDismiss,
167
+ "aria-label": "Dismiss alert",
168
+ children: "\u2715"
169
+ }
170
+ )
171
+ ]
172
+ }
173
+ );
174
+ };
175
+
176
+ // src/components/Card.tsx
177
+ var import_jsx_runtime4 = require("react/jsx-runtime");
178
+ var Card = ({
179
+ elevation = 1,
180
+ padding = "md",
181
+ interactive = false,
182
+ children,
183
+ className = "",
184
+ as: Component = "div"
185
+ }) => {
186
+ const classes = [
187
+ "cp-card",
188
+ `cp-card--elevation-${elevation}`,
189
+ padding !== "none" ? `cp-card--pad-${padding}` : "",
190
+ interactive ? "cp-card--interactive" : "",
191
+ className
192
+ ].filter(Boolean).join(" ");
193
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Component, { className: classes, children });
194
+ };
195
+ var CardHeader = ({ children, className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: `cp-card__header ${className}`.trim(), children });
196
+ var CardBody = ({ children, className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: `cp-card__body ${className}`.trim(), children });
197
+ var CardFooter = ({ children, className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: `cp-card__footer ${className}`.trim(), children });
198
+
199
+ // src/components/Avatar.tsx
200
+ var import_jsx_runtime5 = require("react/jsx-runtime");
201
+ function getInitials(name) {
202
+ return name.split(" ").slice(0, 2).map((w) => w[0]).join("").toUpperCase();
203
+ }
204
+ var Avatar = ({
205
+ src,
206
+ alt,
207
+ initials,
208
+ name,
209
+ size = "md",
210
+ status = "none",
211
+ className = ""
212
+ }) => {
213
+ const displayInitials = initials ?? (name ? getInitials(name) : "?");
214
+ const label = alt ?? name ?? "Avatar";
215
+ const classes = [
216
+ "cp-avatar",
217
+ `cp-avatar--${size}`,
218
+ className
219
+ ].filter(Boolean).join(" ");
220
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: classes, role: "img", "aria-label": label, children: [
221
+ src ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("img", { src, alt: label, className: "cp-avatar__img" }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "cp-avatar__initials", "aria-hidden": "true", children: displayInitials }),
222
+ status !== "none" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
223
+ "span",
224
+ {
225
+ className: `cp-avatar__status cp-avatar__status--${status}`,
226
+ "aria-label": status
227
+ }
228
+ )
229
+ ] });
230
+ };
231
+
232
+ // src/components/Input.tsx
233
+ var import_react3 = __toESM(require("react"), 1);
234
+ var import_jsx_runtime6 = require("react/jsx-runtime");
235
+ var Label = ({ required, children, className = "", ...props }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("label", { className: `cp-label ${className}`.trim(), ...props, children: [
236
+ children,
237
+ required && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "cp-label__required", "aria-hidden": "true", children: " *" })
238
+ ] });
239
+ var Input = import_react3.default.forwardRef(
240
+ ({ inputSize = "md", error = false, leadingIcon, trailingIcon, className = "", ...props }, ref) => {
241
+ const classes = [
242
+ "cp-input",
243
+ `cp-input--${inputSize}`,
244
+ error ? "cp-input--error" : "",
245
+ leadingIcon ? "cp-input--has-leading" : "",
246
+ trailingIcon ? "cp-input--has-trailing" : "",
247
+ className
248
+ ].filter(Boolean).join(" ");
249
+ if (leadingIcon || trailingIcon) {
250
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "cp-input-wrapper", children: [
251
+ leadingIcon && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "cp-input__icon cp-input__icon--leading", "aria-hidden": "true", children: leadingIcon }),
252
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("input", { ref, className: classes, "aria-invalid": error || void 0, ...props }),
253
+ trailingIcon && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "cp-input__icon cp-input__icon--trailing", "aria-hidden": "true", children: trailingIcon })
254
+ ] });
255
+ }
256
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("input", { ref, className: classes, "aria-invalid": error || void 0, ...props });
257
+ }
258
+ );
259
+ Input.displayName = "Input";
260
+ var Textarea = import_react3.default.forwardRef(
261
+ ({ error = false, resize = "vertical", className = "", style, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
262
+ "textarea",
263
+ {
264
+ ref,
265
+ className: ["cp-textarea", error ? "cp-textarea--error" : "", className].filter(Boolean).join(" "),
266
+ "aria-invalid": error || void 0,
267
+ style: { resize, ...style },
268
+ ...props
269
+ }
270
+ )
271
+ );
272
+ Textarea.displayName = "Textarea";
273
+ var Select = import_react3.default.forwardRef(
274
+ ({ error = false, className = "", children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "cp-select-wrapper", children: [
275
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
276
+ "select",
277
+ {
278
+ ref,
279
+ className: ["cp-select", error ? "cp-select--error" : "", className].filter(Boolean).join(" "),
280
+ "aria-invalid": error || void 0,
281
+ ...props,
282
+ children
283
+ }
284
+ ),
285
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "cp-select__chevron", "aria-hidden": "true", children: "\u25BE" })
286
+ ] })
287
+ );
288
+ Select.displayName = "Select";
289
+ var Field = ({
290
+ label,
291
+ htmlFor,
292
+ hint,
293
+ error,
294
+ required,
295
+ children,
296
+ className = ""
297
+ }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: `cp-field ${className}`.trim(), children: [
298
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Label, { htmlFor, required, children: label }),
299
+ children,
300
+ hint && !error && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "cp-field__hint", children: hint }),
301
+ error && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "cp-field__error", role: "alert", children: error })
302
+ ] });
303
+
304
+ // src/components/Modal.tsx
305
+ var import_react4 = __toESM(require("react"), 1);
306
+ var import_jsx_runtime7 = require("react/jsx-runtime");
307
+ var Modal = ({
308
+ open,
309
+ onClose,
310
+ title,
311
+ size = "md",
312
+ children,
313
+ footer,
314
+ closeOnBackdrop = true,
315
+ className = ""
316
+ }) => {
317
+ const dialogRef = import_react4.default.useRef(null);
318
+ import_react4.default.useEffect(() => {
319
+ const dialog = dialogRef.current;
320
+ if (!dialog) return;
321
+ if (open) {
322
+ if (!dialog.open) dialog.showModal();
323
+ } else {
324
+ if (dialog.open) dialog.close();
325
+ }
326
+ }, [open]);
327
+ import_react4.default.useEffect(() => {
328
+ const dialog = dialogRef.current;
329
+ if (!dialog) return;
330
+ const handleClose = () => onClose();
331
+ dialog.addEventListener("close", handleClose);
332
+ return () => dialog.removeEventListener("close", handleClose);
333
+ }, [onClose]);
334
+ const handleBackdropClick = (e) => {
335
+ if (!closeOnBackdrop) return;
336
+ if (e.target === dialogRef.current) onClose();
337
+ };
338
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
339
+ "dialog",
340
+ {
341
+ ref: dialogRef,
342
+ className: ["cp-modal-backdrop", className].filter(Boolean).join(" "),
343
+ onClick: handleBackdropClick,
344
+ "aria-labelledby": title ? "cp-modal-title" : void 0,
345
+ "aria-modal": "true",
346
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: `cp-modal cp-modal--${size}`, children: [
347
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "cp-modal__header", children: [
348
+ title && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h2", { id: "cp-modal-title", className: "cp-modal__title", children: title }),
349
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
350
+ "button",
351
+ {
352
+ className: "cp-modal__close",
353
+ onClick: onClose,
354
+ "aria-label": "Close modal",
355
+ children: "\u2715"
356
+ }
357
+ )
358
+ ] }),
359
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "cp-modal__body", children }),
360
+ footer && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "cp-modal__footer", children: footer })
361
+ ] })
362
+ }
363
+ );
364
+ };
365
+
366
+ // src/components/Toast.tsx
367
+ var import_react5 = __toESM(require("react"), 1);
368
+ var import_jsx_runtime8 = require("react/jsx-runtime");
369
+ var ToastContext = import_react5.default.createContext(null);
370
+ var ToastProvider = ({
371
+ position = "top-right",
372
+ children
373
+ }) => {
374
+ const [toasts, setToasts] = import_react5.default.useState([]);
375
+ const dismiss = import_react5.default.useCallback((id) => {
376
+ setToasts((prev) => prev.filter((t) => t.id !== id));
377
+ }, []);
378
+ const show = import_react5.default.useCallback(
379
+ (toast) => {
380
+ const id = Math.random().toString(36).slice(2);
381
+ setToasts((prev) => [...prev, { ...toast, id }]);
382
+ const duration = toast.duration ?? 4e3;
383
+ if (duration > 0) {
384
+ setTimeout(() => dismiss(id), duration);
385
+ }
386
+ return id;
387
+ },
388
+ [dismiss]
389
+ );
390
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(ToastContext.Provider, { value: { show, dismiss }, children: [
391
+ children,
392
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
393
+ "div",
394
+ {
395
+ className: `cp-toast-region cp-toast-region--${position}`,
396
+ role: "region",
397
+ "aria-label": "Notifications",
398
+ "aria-live": "polite",
399
+ children: toasts.map((toast) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ToastCard, { toast, onDismiss: () => dismiss(toast.id) }, toast.id))
400
+ }
401
+ )
402
+ ] });
403
+ };
404
+ var icons2 = {
405
+ info: "\u2139",
406
+ success: "\u2713",
407
+ warning: "\u26A0",
408
+ error: "\u2715"
409
+ };
410
+ var ToastCard = ({ toast, onDismiss }) => {
411
+ const variant = toast.variant ?? "info";
412
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
413
+ "div",
414
+ {
415
+ role: "status",
416
+ className: `cp-toast cp-toast--${variant}`,
417
+ children: [
418
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "cp-toast__icon", "aria-hidden": "true", children: icons2[variant] }),
419
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "cp-toast__body", children: [
420
+ toast.title && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "cp-toast__title", children: toast.title }),
421
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "cp-toast__message", children: toast.message }),
422
+ toast.action && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { className: "cp-toast__action", onClick: toast.action.onClick, children: toast.action.label })
423
+ ] }),
424
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { className: "cp-toast__close", onClick: onDismiss, "aria-label": "Dismiss", children: "\u2715" })
425
+ ]
426
+ }
427
+ );
428
+ };
429
+ var useToast = () => {
430
+ const ctx = import_react5.default.useContext(ToastContext);
431
+ if (!ctx) throw new Error("useToast must be used within ToastProvider");
432
+ return ctx;
433
+ };
434
+
435
+ // src/components/Tabs.tsx
436
+ var import_react6 = __toESM(require("react"), 1);
437
+ var import_jsx_runtime9 = require("react/jsx-runtime");
438
+ var Tabs = ({
439
+ tabs,
440
+ defaultTab,
441
+ variant = "underline",
442
+ onChange,
443
+ className = ""
444
+ }) => {
445
+ const [active, setActive] = import_react6.default.useState(defaultTab ?? tabs[0]?.id);
446
+ const tablistRef = import_react6.default.useRef(null);
447
+ const activate = (id) => {
448
+ setActive(id);
449
+ onChange?.(id);
450
+ };
451
+ const handleKeyDown = (e, currentIndex) => {
452
+ const enabledTabs = tabs.filter((t) => !t.disabled);
453
+ const currentEnabledIndex = enabledTabs.findIndex((t) => t.id === tabs[currentIndex].id);
454
+ let nextIndex = -1;
455
+ if (e.key === "ArrowRight") nextIndex = (currentEnabledIndex + 1) % enabledTabs.length;
456
+ if (e.key === "ArrowLeft")
457
+ nextIndex = (currentEnabledIndex - 1 + enabledTabs.length) % enabledTabs.length;
458
+ if (e.key === "Home") nextIndex = 0;
459
+ if (e.key === "End") nextIndex = enabledTabs.length - 1;
460
+ if (nextIndex >= 0) {
461
+ e.preventDefault();
462
+ const nextTab = enabledTabs[nextIndex];
463
+ activate(nextTab.id);
464
+ const btn = tablistRef.current?.querySelector(
465
+ `[data-tab-id="${nextTab.id}"]`
466
+ );
467
+ btn?.focus();
468
+ }
469
+ };
470
+ const activeTab = tabs.find((t) => t.id === active);
471
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: `cp-tabs cp-tabs--${variant} ${className}`.trim(), children: [
472
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
473
+ "div",
474
+ {
475
+ ref: tablistRef,
476
+ role: "tablist",
477
+ className: "cp-tabs__list",
478
+ children: tabs.map((tab, i) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
479
+ "button",
480
+ {
481
+ role: "tab",
482
+ "data-tab-id": tab.id,
483
+ "aria-selected": active === tab.id,
484
+ "aria-controls": `tabpanel-${tab.id}`,
485
+ id: `tab-${tab.id}`,
486
+ disabled: tab.disabled,
487
+ tabIndex: active === tab.id ? 0 : -1,
488
+ className: [
489
+ "cp-tabs__tab",
490
+ active === tab.id ? "cp-tabs__tab--active" : ""
491
+ ].filter(Boolean).join(" "),
492
+ onClick: () => !tab.disabled && activate(tab.id),
493
+ onKeyDown: (e) => handleKeyDown(e, i),
494
+ children: [
495
+ tab.icon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "cp-tabs__tab-icon", "aria-hidden": "true", children: tab.icon }),
496
+ tab.label,
497
+ tab.badge !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "cp-tabs__badge", children: tab.badge })
498
+ ]
499
+ },
500
+ tab.id
501
+ ))
502
+ }
503
+ ),
504
+ tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
505
+ "div",
506
+ {
507
+ role: "tabpanel",
508
+ id: `tabpanel-${tab.id}`,
509
+ "aria-labelledby": `tab-${tab.id}`,
510
+ hidden: active !== tab.id,
511
+ className: "cp-tabs__panel",
512
+ children: tab.content
513
+ },
514
+ tab.id
515
+ ))
516
+ ] });
517
+ };
518
+
519
+ // src/components/Tooltip.tsx
520
+ var import_react7 = __toESM(require("react"), 1);
521
+ var import_jsx_runtime10 = require("react/jsx-runtime");
522
+ var Tooltip = ({
523
+ content,
524
+ placement = "top",
525
+ children
526
+ }) => {
527
+ const id = import_react7.default.useId();
528
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: `cp-tooltip-host cp-tooltip-host--${placement}`, children: [
529
+ import_react7.default.cloneElement(children, {
530
+ "aria-describedby": id
531
+ }),
532
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
533
+ "span",
534
+ {
535
+ role: "tooltip",
536
+ id,
537
+ className: `cp-tooltip cp-tooltip--${placement}`,
538
+ children: content
539
+ }
540
+ )
541
+ ] });
542
+ };
543
+
544
+ // src/components/Breadcrumb.tsx
545
+ var import_jsx_runtime11 = require("react/jsx-runtime");
546
+ var separatorChar = {
547
+ chevron: "\u203A",
548
+ slash: "/",
549
+ dot: "\xB7"
550
+ };
551
+ var Breadcrumb = ({
552
+ items,
553
+ separator = "chevron",
554
+ className = ""
555
+ }) => {
556
+ const sep = separatorChar[separator];
557
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("nav", { "aria-label": "Breadcrumb", className: `cp-breadcrumb ${className}`.trim(), children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("ol", { className: "cp-breadcrumb__list", children: items.map((item, i) => {
558
+ const isLast = i === items.length - 1;
559
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("li", { className: "cp-breadcrumb__item", children: [
560
+ i > 0 && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "cp-breadcrumb__sep", "aria-hidden": "true", children: sep }),
561
+ isLast ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { "aria-current": "page", className: "cp-breadcrumb__current", children: item.label }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("a", { href: item.href ?? "#", className: "cp-breadcrumb__link", children: item.label })
562
+ ] }, i);
563
+ }) }) });
564
+ };
565
+
566
+ // src/components/Pagination.tsx
567
+ var import_jsx_runtime12 = require("react/jsx-runtime");
568
+ function buildPages(current, total) {
569
+ if (total <= 7) return Array.from({ length: total }, (_, i) => i + 1);
570
+ if (current <= 4) return [1, 2, 3, 4, 5, "\u2026", total];
571
+ if (current >= total - 3) return [1, "\u2026", total - 4, total - 3, total - 2, total - 1, total];
572
+ return [1, "\u2026", current - 1, current, current + 1, "\u2026", total];
573
+ }
574
+ var Pagination = ({
575
+ total,
576
+ page,
577
+ perPage = 10,
578
+ onChange,
579
+ className = ""
580
+ }) => {
581
+ const totalPages = Math.max(1, Math.ceil(total / perPage));
582
+ const pages = buildPages(page, totalPages);
583
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
584
+ "nav",
585
+ {
586
+ "aria-label": "Pagination",
587
+ className: `cp-pagination ${className}`.trim(),
588
+ children: [
589
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
590
+ "button",
591
+ {
592
+ className: "cp-pagination__btn cp-pagination__btn--prev",
593
+ onClick: () => onChange(page - 1),
594
+ disabled: page <= 1,
595
+ "aria-label": "Previous page",
596
+ children: "\u2039"
597
+ }
598
+ ),
599
+ pages.map(
600
+ (p, i) => p === "\u2026" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "cp-pagination__ellipsis", "aria-hidden": "true", children: "\u2026" }, `ellipsis-${i}`) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
601
+ "button",
602
+ {
603
+ className: [
604
+ "cp-pagination__btn",
605
+ p === page ? "cp-pagination__btn--active" : ""
606
+ ].filter(Boolean).join(" "),
607
+ onClick: () => onChange(p),
608
+ "aria-current": p === page ? "page" : void 0,
609
+ "aria-label": `Page ${p}`,
610
+ children: p
611
+ },
612
+ p
613
+ )
614
+ ),
615
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
616
+ "button",
617
+ {
618
+ className: "cp-pagination__btn cp-pagination__btn--next",
619
+ onClick: () => onChange(page + 1),
620
+ disabled: page >= totalPages,
621
+ "aria-label": "Next page",
622
+ children: "\u203A"
623
+ }
624
+ )
625
+ ]
626
+ }
627
+ );
628
+ };
629
+
630
+ // src/components/Table.tsx
631
+ var import_jsx_runtime13 = require("react/jsx-runtime");
632
+ var Table = ({
633
+ columns,
634
+ rows,
635
+ striped = false,
636
+ hoverable = false,
637
+ loading = false,
638
+ className = ""
639
+ }) => {
640
+ const classes = [
641
+ "cp-table",
642
+ striped ? "cp-table--striped" : "",
643
+ hoverable ? "cp-table--hoverable" : "",
644
+ className
645
+ ].filter(Boolean).join(" ");
646
+ const skeletonRows = Array.from({ length: 5 });
647
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "cp-table-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("table", { className: classes, children: [
648
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("thead", { className: "cp-table__head", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("tr", { children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
649
+ "th",
650
+ {
651
+ className: "cp-table__th",
652
+ style: col.width != null ? { width: col.width } : void 0,
653
+ children: col.label
654
+ },
655
+ col.key
656
+ )) }) }),
657
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("tbody", { className: "cp-table__body", children: loading ? skeletonRows.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("tr", { className: "cp-table__row", children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("td", { className: "cp-table__td", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "cp-skeleton cp-skeleton--pulse", style: { display: "block", height: 16, borderRadius: 4 } }) }, col.key)) }, i)) : rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("tr", { className: "cp-table__row", children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("td", { className: "cp-table__td", children: row[col.key] }, col.key)) }, i)) })
658
+ ] }) });
659
+ };
660
+
661
+ // src/components/Skeleton.tsx
662
+ var import_jsx_runtime14 = require("react/jsx-runtime");
663
+ var Skeleton = ({
664
+ width,
665
+ height = 16,
666
+ rounded = false,
667
+ lines,
668
+ className = ""
669
+ }) => {
670
+ if (lines != null && lines > 1) {
671
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: `cp-skeleton-lines ${className}`.trim(), children: Array.from({ length: lines }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
672
+ "span",
673
+ {
674
+ className: "cp-skeleton cp-skeleton--pulse",
675
+ style: {
676
+ display: "block",
677
+ width: i === lines - 1 ? "65%" : width ?? "100%",
678
+ height,
679
+ borderRadius: rounded ? 9999 : 4
680
+ }
681
+ },
682
+ i
683
+ )) });
684
+ }
685
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
686
+ "span",
687
+ {
688
+ className: ["cp-skeleton", "cp-skeleton--pulse", className].filter(Boolean).join(" "),
689
+ style: {
690
+ display: "block",
691
+ width: width ?? "100%",
692
+ height,
693
+ borderRadius: rounded ? 9999 : 4
694
+ }
695
+ }
696
+ );
697
+ };
698
+ var SkeletonText = ({ lines = 3, className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: `cp-skeleton-lines ${className}`.trim(), style: { display: "flex", flexDirection: "column", gap: 8 }, children: Array.from({ length: lines }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
699
+ "span",
700
+ {
701
+ className: "cp-skeleton cp-skeleton--pulse",
702
+ style: {
703
+ display: "block",
704
+ width: i === lines - 1 ? "60%" : "100%",
705
+ height: 14,
706
+ borderRadius: 4
707
+ }
708
+ },
709
+ i
710
+ )) });
711
+ var SkeletonCard = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
712
+ "div",
713
+ {
714
+ className: `cp-skeleton-card ${className}`.trim(),
715
+ style: {
716
+ background: "var(--cp-card)",
717
+ border: "1px solid var(--cp-border)",
718
+ borderRadius: 12,
719
+ padding: 24,
720
+ display: "flex",
721
+ flexDirection: "column",
722
+ gap: 16
723
+ },
724
+ children: [
725
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: 12 }, children: [
726
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
727
+ "span",
728
+ {
729
+ className: "cp-skeleton cp-skeleton--pulse",
730
+ style: { display: "block", width: 40, height: 40, borderRadius: 9999, flexShrink: 0 }
731
+ }
732
+ ),
733
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 8 }, children: [
734
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
735
+ "span",
736
+ {
737
+ className: "cp-skeleton cp-skeleton--pulse",
738
+ style: { display: "block", width: "60%", height: 14, borderRadius: 4 }
739
+ }
740
+ ),
741
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
742
+ "span",
743
+ {
744
+ className: "cp-skeleton cp-skeleton--pulse",
745
+ style: { display: "block", width: "40%", height: 12, borderRadius: 4 }
746
+ }
747
+ )
748
+ ] })
749
+ ] }),
750
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(SkeletonText, { lines: 3 }),
751
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", gap: 8 }, children: [
752
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
753
+ "span",
754
+ {
755
+ className: "cp-skeleton cp-skeleton--pulse",
756
+ style: { display: "block", width: 80, height: 32, borderRadius: 6 }
757
+ }
758
+ ),
759
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
760
+ "span",
761
+ {
762
+ className: "cp-skeleton cp-skeleton--pulse",
763
+ style: { display: "block", width: 80, height: 32, borderRadius: 6 }
764
+ }
765
+ )
766
+ ] })
767
+ ]
768
+ }
769
+ );
770
+
771
+ // src/components/Navbar.tsx
772
+ var import_react8 = __toESM(require("react"), 1);
773
+ var import_jsx_runtime15 = require("react/jsx-runtime");
774
+ var Navbar = ({
775
+ logo,
776
+ links = [],
777
+ actions,
778
+ sticky = false,
779
+ className = ""
780
+ }) => {
781
+ const [menuOpen, setMenuOpen] = import_react8.default.useState(false);
782
+ const classes = [
783
+ "cp-navbar",
784
+ sticky ? "cp-navbar--sticky" : "",
785
+ className
786
+ ].filter(Boolean).join(" ");
787
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("nav", { className: classes, children: [
788
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "cp-navbar__inner", children: [
789
+ logo && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "cp-navbar__logo", children: logo }),
790
+ links.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("ul", { className: "cp-navbar__links", role: "list", children: links.map((link, i) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
791
+ "a",
792
+ {
793
+ href: link.href,
794
+ className: ["cp-navbar__link", link.active ? "cp-navbar__link--active" : ""].filter(Boolean).join(" "),
795
+ "aria-current": link.active ? "page" : void 0,
796
+ children: link.label
797
+ }
798
+ ) }, i)) }),
799
+ actions && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "cp-navbar__actions", children: actions }),
800
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
801
+ "button",
802
+ {
803
+ className: "cp-navbar__hamburger",
804
+ "aria-label": menuOpen ? "Close menu" : "Open menu",
805
+ "aria-expanded": menuOpen,
806
+ onClick: () => setMenuOpen((prev) => !prev),
807
+ children: [
808
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "cp-navbar__hamburger-bar" }),
809
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "cp-navbar__hamburger-bar" }),
810
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "cp-navbar__hamburger-bar" })
811
+ ]
812
+ }
813
+ )
814
+ ] }),
815
+ menuOpen && links.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "cp-navbar__mobile-menu", children: [
816
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("ul", { role: "list", children: links.map((link, i) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
817
+ "a",
818
+ {
819
+ href: link.href,
820
+ className: ["cp-navbar__mobile-link", link.active ? "cp-navbar__mobile-link--active" : ""].filter(Boolean).join(" "),
821
+ "aria-current": link.active ? "page" : void 0,
822
+ onClick: () => setMenuOpen(false),
823
+ children: link.label
824
+ }
825
+ ) }, i)) }),
826
+ actions && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "cp-navbar__mobile-actions", children: actions })
827
+ ] })
828
+ ] });
829
+ };
830
+
831
+ // src/components/Sidebar.tsx
832
+ var import_react9 = __toESM(require("react"), 1);
833
+ var import_jsx_runtime16 = require("react/jsx-runtime");
834
+ var Sidebar = ({
835
+ links = [],
836
+ collapsed = false,
837
+ onCollapse,
838
+ className = ""
839
+ }) => {
840
+ const [expandedGroups, setExpandedGroups] = import_react9.default.useState({});
841
+ const toggleGroup = (index) => {
842
+ setExpandedGroups((prev) => ({ ...prev, [index]: !prev[index] }));
843
+ };
844
+ const classes = [
845
+ "cp-sidebar",
846
+ collapsed ? "cp-sidebar--collapsed" : "",
847
+ className
848
+ ].filter(Boolean).join(" ");
849
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("aside", { className: classes, children: [
850
+ onCollapse && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "cp-sidebar__toggle-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
851
+ "button",
852
+ {
853
+ className: "cp-sidebar__toggle",
854
+ "aria-label": collapsed ? "Expand sidebar" : "Collapse sidebar",
855
+ onClick: () => onCollapse(!collapsed),
856
+ children: collapsed ? "\u203A" : "\u2039"
857
+ }
858
+ ) }),
859
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("nav", { className: "cp-sidebar__nav", "aria-label": "Sidebar navigation", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("ul", { className: "cp-sidebar__list", role: "list", children: links.map((link, i) => {
860
+ const hasChildren = link.children && link.children.length > 0;
861
+ const isExpanded = expandedGroups[i] ?? false;
862
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("li", { className: "cp-sidebar__item", children: hasChildren ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
863
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
864
+ "button",
865
+ {
866
+ className: [
867
+ "cp-sidebar__link",
868
+ link.active ? "cp-sidebar__link--active" : ""
869
+ ].filter(Boolean).join(" "),
870
+ "aria-expanded": isExpanded,
871
+ onClick: () => toggleGroup(i),
872
+ children: [
873
+ link.icon && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "cp-sidebar__icon", "aria-hidden": "true", children: link.icon }),
874
+ !collapsed && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
875
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "cp-sidebar__label", children: link.label }),
876
+ link.badge != null && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "cp-sidebar__badge", children: link.badge }),
877
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "cp-sidebar__chevron", "aria-hidden": "true", children: isExpanded ? "\u25BE" : "\u25B8" })
878
+ ] })
879
+ ]
880
+ }
881
+ ),
882
+ isExpanded && !collapsed && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("ul", { className: "cp-sidebar__sub-list", role: "list", children: link.children.map((child, j) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("li", { className: "cp-sidebar__sub-item", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
883
+ "a",
884
+ {
885
+ href: child.href,
886
+ className: [
887
+ "cp-sidebar__sub-link",
888
+ child.active ? "cp-sidebar__sub-link--active" : ""
889
+ ].filter(Boolean).join(" "),
890
+ "aria-current": child.active ? "page" : void 0,
891
+ children: child.label
892
+ }
893
+ ) }, j)) })
894
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
895
+ "a",
896
+ {
897
+ href: link.href,
898
+ className: [
899
+ "cp-sidebar__link",
900
+ link.active ? "cp-sidebar__link--active" : ""
901
+ ].filter(Boolean).join(" "),
902
+ "aria-current": link.active ? "page" : void 0,
903
+ children: [
904
+ link.icon && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "cp-sidebar__icon", "aria-hidden": "true", children: link.icon }),
905
+ !collapsed && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
906
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "cp-sidebar__label", children: link.label }),
907
+ link.badge != null && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "cp-sidebar__badge", children: link.badge })
908
+ ] })
909
+ ]
910
+ }
911
+ ) }, i);
912
+ }) }) })
913
+ ] });
914
+ };
915
+
916
+ // src/components/Popover.tsx
917
+ var import_react10 = __toESM(require("react"), 1);
918
+ var import_jsx_runtime17 = require("react/jsx-runtime");
919
+ var Popover = ({
920
+ trigger,
921
+ placement = "bottom",
922
+ children,
923
+ className = ""
924
+ }) => {
925
+ const [open, setOpen] = import_react10.default.useState(false);
926
+ const wrapperRef = import_react10.default.useRef(null);
927
+ import_react10.default.useEffect(() => {
928
+ if (!open) return;
929
+ const handleClick = (e) => {
930
+ if (wrapperRef.current && !wrapperRef.current.contains(e.target)) {
931
+ setOpen(false);
932
+ }
933
+ };
934
+ const handleKey = (e) => {
935
+ if (e.key === "Escape") setOpen(false);
936
+ };
937
+ document.addEventListener("mousedown", handleClick);
938
+ document.addEventListener("keydown", handleKey);
939
+ return () => {
940
+ document.removeEventListener("mousedown", handleClick);
941
+ document.removeEventListener("keydown", handleKey);
942
+ };
943
+ }, [open]);
944
+ const id = import_react10.default.useId();
945
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
946
+ "div",
947
+ {
948
+ ref: wrapperRef,
949
+ className: ["cp-popover-host", `cp-popover-host--${placement}`, className].filter(Boolean).join(" "),
950
+ style: { position: "relative", display: "inline-flex" },
951
+ children: [
952
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
953
+ "div",
954
+ {
955
+ className: "cp-popover-trigger",
956
+ onClick: () => setOpen((prev) => !prev),
957
+ "aria-expanded": open,
958
+ "aria-controls": id,
959
+ children: trigger
960
+ }
961
+ ),
962
+ open && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
963
+ "div",
964
+ {
965
+ id,
966
+ role: "dialog",
967
+ className: ["cp-popover", `cp-popover--${placement}`].join(" "),
968
+ children
969
+ }
970
+ )
971
+ ]
972
+ }
973
+ );
974
+ };
975
+ // Annotate the CommonJS export names for ESM import in node:
976
+ 0 && (module.exports = {
977
+ Alert,
978
+ Avatar,
979
+ Badge,
980
+ Breadcrumb,
981
+ Button,
982
+ Card,
983
+ CardBody,
984
+ CardFooter,
985
+ CardHeader,
986
+ Field,
987
+ Input,
988
+ Label,
989
+ Modal,
990
+ Navbar,
991
+ Pagination,
992
+ Popover,
993
+ Select,
994
+ Sidebar,
995
+ Skeleton,
996
+ SkeletonCard,
997
+ SkeletonText,
998
+ Table,
999
+ Tabs,
1000
+ Textarea,
1001
+ ToastProvider,
1002
+ Tooltip,
1003
+ useToast
1004
+ });
1005
+ //# sourceMappingURL=index.cjs.map