@dilipod/ui 0.2.4 → 0.2.5
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/components/accordion.d.ts +8 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/alert.d.ts +16 -0
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/avatar.d.ts +7 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/badge.d.ts +15 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/button.d.ts +16 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/card.d.ts +9 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/checkbox.d.ts +7 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/code-block.d.ts +10 -0
- package/dist/components/code-block.d.ts.map +1 -0
- package/dist/components/divider.d.ts +10 -0
- package/dist/components/divider.d.ts.map +1 -0
- package/dist/components/dropdown-menu.d.ts +28 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/empty-state.d.ts +16 -0
- package/dist/components/empty-state.d.ts.map +1 -0
- package/dist/components/form-field.d.ts +20 -0
- package/dist/components/form-field.d.ts.map +1 -0
- package/dist/components/icon-box.d.ts +12 -0
- package/dist/components/icon-box.d.ts.map +1 -0
- package/dist/components/input.d.ts +8 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/label.d.ts +7 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/logo.d.ts +17 -0
- package/dist/components/logo.d.ts.map +1 -0
- package/dist/components/navigation-menu.d.ts +13 -0
- package/dist/components/navigation-menu.d.ts.map +1 -0
- package/dist/components/progress.d.ts +18 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/separator.d.ts +6 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/sheet.d.ts +26 -0
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sidebar.d.ts +51 -0
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/stat.d.ts +25 -0
- package/dist/components/stat.d.ts.map +1 -0
- package/dist/components/table.d.ts +11 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/tag.d.ts +13 -0
- package/dist/components/tag.d.ts.map +1 -0
- package/dist/components/textarea.d.ts +8 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/icons.d.ts +17 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +278 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +266 -12
- package/dist/index.mjs.map +1 -1
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/components/alert.tsx +67 -0
- package/src/components/button.tsx +33 -2
- package/src/components/code-block.tsx +32 -0
- package/src/components/divider.tsx +52 -0
- package/src/components/dropdown-menu.tsx +3 -3
- package/src/components/empty-state.tsx +63 -0
- package/src/components/form-field.tsx +73 -0
- package/src/components/input.tsx +10 -3
- package/src/components/sidebar.tsx +4 -4
- package/src/components/table.tsx +108 -0
- package/src/components/textarea.tsx +10 -3
- package/src/index.ts +26 -0
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { Slot, createSlot } from '@radix-ui/react-slot';
|
|
|
3
3
|
import { cva } from 'class-variance-authority';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import {
|
|
6
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
7
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
8
8
|
import { X, Check, CaretDown, CaretRight, Circle } from '@phosphor-icons/react';
|
|
9
9
|
export { AddressBook, ArrowLeft, ArrowRight, ArrowSquareOut, ArrowUpRight, Brain, Briefcase, Buildings, Calendar, CaretDown, CaretRight, CaretUp, ChartBar, ChartLineUp, ChatCircle, Check, CheckCircle, CheckSquare, Circle, Clock, Copy, Crosshair, Database, DotsThree, DotsThreeVertical, Download, Envelope, EnvelopeSimple, Eye, EyeSlash, File, FileText, Files, FirstAid, Funnel, Gear, GearSix, Globe, Handshake, House, Info, Lightning, Link, LinkedinLogo, List, MagnifyingGlass, Minus, Pause, PencilSimple, Phone, Play, Plus, Question, Quotes, Receipt, Robot, Rocket, ShieldCheck, ShoppingCart, SignIn, SignOut, SortAscending, SortDescending, Stop, Target, Trash, TrendUp, Upload, User, UserCircleCheck, UserPlus, Users, UsersThree, VideoCamera, Wallet, Warning, WarningCircle, X, XLogo } from '@phosphor-icons/react';
|
|
@@ -44,14 +44,49 @@ var buttonVariants = cva(
|
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
46
|
var Button = React21.forwardRef(
|
|
47
|
-
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
47
|
+
({ className, variant, size, asChild = false, loading, loadingText, children, disabled, ...props }, ref) => {
|
|
48
48
|
const Comp = asChild ? Slot : "button";
|
|
49
|
-
|
|
49
|
+
const isDisabled = disabled || loading;
|
|
50
|
+
return /* @__PURE__ */ jsxs(
|
|
50
51
|
Comp,
|
|
51
52
|
{
|
|
52
53
|
className: cn(buttonVariants({ variant, size, className })),
|
|
53
54
|
ref,
|
|
54
|
-
|
|
55
|
+
disabled: isDisabled,
|
|
56
|
+
...props,
|
|
57
|
+
children: [
|
|
58
|
+
loading && /* @__PURE__ */ jsxs(
|
|
59
|
+
"svg",
|
|
60
|
+
{
|
|
61
|
+
className: "animate-spin h-4 w-4",
|
|
62
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
63
|
+
fill: "none",
|
|
64
|
+
viewBox: "0 0 24 24",
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ jsx(
|
|
67
|
+
"circle",
|
|
68
|
+
{
|
|
69
|
+
className: "opacity-25",
|
|
70
|
+
cx: "12",
|
|
71
|
+
cy: "12",
|
|
72
|
+
r: "10",
|
|
73
|
+
stroke: "currentColor",
|
|
74
|
+
strokeWidth: "4"
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ jsx(
|
|
78
|
+
"path",
|
|
79
|
+
{
|
|
80
|
+
className: "opacity-75",
|
|
81
|
+
fill: "currentColor",
|
|
82
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
loading ? loadingText || children : children
|
|
89
|
+
]
|
|
55
90
|
}
|
|
56
91
|
);
|
|
57
92
|
}
|
|
@@ -571,16 +606,18 @@ var Stat = React21.forwardRef(
|
|
|
571
606
|
);
|
|
572
607
|
Stat.displayName = "Stat";
|
|
573
608
|
var Input = React21.forwardRef(
|
|
574
|
-
({ className, type, ...props }, ref) => {
|
|
609
|
+
({ className, type, error, ...props }, ref) => {
|
|
575
610
|
return /* @__PURE__ */ jsx(
|
|
576
611
|
"input",
|
|
577
612
|
{
|
|
578
613
|
type,
|
|
579
614
|
className: cn(
|
|
580
|
-
"flex h-10 w-full rounded-
|
|
615
|
+
"flex h-10 w-full rounded-sm border bg-white px-3 py-2 text-base text-[var(--black)] ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-[var(--black)] placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors",
|
|
616
|
+
error ? "border-red-500 focus-visible:ring-red-500" : "border-gray-300 focus-visible:ring-[var(--cyan)]",
|
|
581
617
|
className
|
|
582
618
|
),
|
|
583
619
|
ref,
|
|
620
|
+
"aria-invalid": error ? "true" : void 0,
|
|
584
621
|
...props
|
|
585
622
|
}
|
|
586
623
|
);
|
|
@@ -650,15 +687,17 @@ var Label2 = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
650
687
|
));
|
|
651
688
|
Label2.displayName = Root2.displayName;
|
|
652
689
|
var Textarea = React21.forwardRef(
|
|
653
|
-
({ className, ...props }, ref) => {
|
|
690
|
+
({ className, error, ...props }, ref) => {
|
|
654
691
|
return /* @__PURE__ */ jsx(
|
|
655
692
|
"textarea",
|
|
656
693
|
{
|
|
657
694
|
className: cn(
|
|
658
|
-
"flex min-h-[80px] w-full rounded-
|
|
695
|
+
"flex min-h-[80px] w-full rounded-sm border bg-white px-3 py-2 text-base text-[var(--black)] ring-offset-background placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors resize-none",
|
|
696
|
+
error ? "border-red-500 focus-visible:ring-red-500" : "border-gray-300 focus-visible:ring-[var(--cyan)]",
|
|
659
697
|
className
|
|
660
698
|
),
|
|
661
699
|
ref,
|
|
700
|
+
"aria-invalid": error ? "true" : void 0,
|
|
662
701
|
...props
|
|
663
702
|
}
|
|
664
703
|
);
|
|
@@ -968,7 +1007,7 @@ var DropdownMenuContent = React21.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
968
1007
|
ref,
|
|
969
1008
|
sideOffset,
|
|
970
1009
|
className: cn(
|
|
971
|
-
"z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-sm border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
1010
|
+
"z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-sm border bg-popover p-1.5 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
972
1011
|
className
|
|
973
1012
|
),
|
|
974
1013
|
...props
|
|
@@ -980,7 +1019,7 @@ var DropdownMenuItem = React21.forwardRef(({ className, inset, ...props }, ref)
|
|
|
980
1019
|
{
|
|
981
1020
|
ref,
|
|
982
1021
|
className: cn(
|
|
983
|
-
"relative flex cursor-
|
|
1022
|
+
"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-3 py-2 text-sm outline-none transition-colors focus:bg-muted focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
984
1023
|
inset && "pl-8",
|
|
985
1024
|
className
|
|
986
1025
|
),
|
|
@@ -1026,7 +1065,7 @@ var DropdownMenuLabel = React21.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1026
1065
|
{
|
|
1027
1066
|
ref,
|
|
1028
1067
|
className: cn(
|
|
1029
|
-
"px-
|
|
1068
|
+
"px-3 py-2 text-sm font-semibold text-foreground",
|
|
1030
1069
|
inset && "pl-8",
|
|
1031
1070
|
className
|
|
1032
1071
|
),
|
|
@@ -1176,7 +1215,222 @@ var Sidebar = React21.forwardRef(
|
|
|
1176
1215
|
}
|
|
1177
1216
|
);
|
|
1178
1217
|
Sidebar.displayName = "Sidebar";
|
|
1218
|
+
var alertVariants = cva(
|
|
1219
|
+
"rounded-sm border p-3 text-sm",
|
|
1220
|
+
{
|
|
1221
|
+
variants: {
|
|
1222
|
+
variant: {
|
|
1223
|
+
default: "bg-background border-border text-foreground",
|
|
1224
|
+
success: "bg-green-50 border-green-200 text-green-900",
|
|
1225
|
+
error: "bg-red-50 border-red-200 text-red-900",
|
|
1226
|
+
warning: "bg-amber-50 border-amber-200 text-amber-900",
|
|
1227
|
+
info: "bg-blue-50 border-blue-200 text-blue-900",
|
|
1228
|
+
primary: "bg-[var(--cyan)]/10 border-[var(--cyan)]/20 text-[var(--cyan)]"
|
|
1229
|
+
}
|
|
1230
|
+
},
|
|
1231
|
+
defaultVariants: {
|
|
1232
|
+
variant: "default"
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
);
|
|
1236
|
+
var Alert = React21.forwardRef(
|
|
1237
|
+
({ className, variant, icon, title, action, children, ...props }, ref) => {
|
|
1238
|
+
return /* @__PURE__ */ jsx(
|
|
1239
|
+
"div",
|
|
1240
|
+
{
|
|
1241
|
+
ref,
|
|
1242
|
+
className: cn(alertVariants({ variant }), className),
|
|
1243
|
+
...props,
|
|
1244
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
1245
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 flex-1", children: [
|
|
1246
|
+
icon && /* @__PURE__ */ jsx("div", { className: "shrink-0 mt-0.5", children: icon }),
|
|
1247
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
1248
|
+
title && /* @__PURE__ */ jsx("p", { className: "font-semibold mb-1", children: title }),
|
|
1249
|
+
/* @__PURE__ */ jsx("div", { className: title ? "text-sm" : "", children })
|
|
1250
|
+
] })
|
|
1251
|
+
] }),
|
|
1252
|
+
action && /* @__PURE__ */ jsx("div", { className: "shrink-0", children: action })
|
|
1253
|
+
] })
|
|
1254
|
+
}
|
|
1255
|
+
);
|
|
1256
|
+
}
|
|
1257
|
+
);
|
|
1258
|
+
Alert.displayName = "Alert";
|
|
1259
|
+
var EmptyState = React21.forwardRef(
|
|
1260
|
+
({ className, icon, title, description, action, size = "default", ...props }, ref) => {
|
|
1261
|
+
const paddingClass = {
|
|
1262
|
+
sm: "p-8",
|
|
1263
|
+
default: "p-12",
|
|
1264
|
+
lg: "p-16"
|
|
1265
|
+
}[size];
|
|
1266
|
+
return /* @__PURE__ */ jsxs(
|
|
1267
|
+
"div",
|
|
1268
|
+
{
|
|
1269
|
+
ref,
|
|
1270
|
+
className: cn(
|
|
1271
|
+
"rounded-sm border border-dashed text-center",
|
|
1272
|
+
paddingClass,
|
|
1273
|
+
className
|
|
1274
|
+
),
|
|
1275
|
+
...props,
|
|
1276
|
+
children: [
|
|
1277
|
+
icon && /* @__PURE__ */ jsx("div", { className: "flex justify-center mb-4", children: icon }),
|
|
1278
|
+
title && /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-foreground mb-1", children: title }),
|
|
1279
|
+
description && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mb-4", children: description }),
|
|
1280
|
+
action && /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: action })
|
|
1281
|
+
]
|
|
1282
|
+
}
|
|
1283
|
+
);
|
|
1284
|
+
}
|
|
1285
|
+
);
|
|
1286
|
+
EmptyState.displayName = "EmptyState";
|
|
1287
|
+
var CodeBlock = React21.forwardRef(
|
|
1288
|
+
({ className, children, language, ...props }, ref) => {
|
|
1289
|
+
return /* @__PURE__ */ jsx(
|
|
1290
|
+
"pre",
|
|
1291
|
+
{
|
|
1292
|
+
ref,
|
|
1293
|
+
className: cn(
|
|
1294
|
+
"rounded-sm bg-muted p-4 text-sm overflow-auto font-mono",
|
|
1295
|
+
className
|
|
1296
|
+
),
|
|
1297
|
+
...language && { "data-language": language },
|
|
1298
|
+
...props,
|
|
1299
|
+
children: /* @__PURE__ */ jsx("code", { children })
|
|
1300
|
+
}
|
|
1301
|
+
);
|
|
1302
|
+
}
|
|
1303
|
+
);
|
|
1304
|
+
CodeBlock.displayName = "CodeBlock";
|
|
1305
|
+
var FormField = React21.forwardRef(
|
|
1306
|
+
({ label, error, helperText, required, id, className, children, ...props }, ref) => {
|
|
1307
|
+
const fieldId = id || React21.useId();
|
|
1308
|
+
const errorId = `${fieldId}-error`;
|
|
1309
|
+
const helperId = `${fieldId}-helper`;
|
|
1310
|
+
const enhancedChildren = React21.Children.map(children, (child) => {
|
|
1311
|
+
if (React21.isValidElement(child)) {
|
|
1312
|
+
const childProps = child.props;
|
|
1313
|
+
return React21.cloneElement(child, {
|
|
1314
|
+
id: fieldId,
|
|
1315
|
+
"aria-invalid": error ? "true" : void 0,
|
|
1316
|
+
"aria-describedby": error ? errorId : helperText ? helperId : void 0,
|
|
1317
|
+
className: cn(
|
|
1318
|
+
childProps.className,
|
|
1319
|
+
error && "border-red-500 focus-visible:ring-red-500"
|
|
1320
|
+
)
|
|
1321
|
+
});
|
|
1322
|
+
}
|
|
1323
|
+
return child;
|
|
1324
|
+
});
|
|
1325
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: cn("space-y-2", className), ...props, children: [
|
|
1326
|
+
label && /* @__PURE__ */ jsx(Label2, { htmlFor: fieldId, className: required ? 'after:content-["*"] after:ml-0.5 after:text-red-500' : "", children: label }),
|
|
1327
|
+
enhancedChildren,
|
|
1328
|
+
error && /* @__PURE__ */ jsx("p", { id: errorId, className: "text-sm text-red-600", role: "alert", children: error }),
|
|
1329
|
+
helperText && !error && /* @__PURE__ */ jsx("p", { id: helperId, className: "text-xs text-muted-foreground", children: helperText })
|
|
1330
|
+
] });
|
|
1331
|
+
}
|
|
1332
|
+
);
|
|
1333
|
+
FormField.displayName = "FormField";
|
|
1334
|
+
var Table = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsx(
|
|
1335
|
+
"table",
|
|
1336
|
+
{
|
|
1337
|
+
ref,
|
|
1338
|
+
className: cn("w-full border-collapse", className),
|
|
1339
|
+
...props
|
|
1340
|
+
}
|
|
1341
|
+
) }));
|
|
1342
|
+
Table.displayName = "Table";
|
|
1343
|
+
var TableHeader = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("", className), ...props }));
|
|
1344
|
+
TableHeader.displayName = "TableHeader";
|
|
1345
|
+
var TableBody = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: cn("", className), ...props }));
|
|
1346
|
+
TableBody.displayName = "TableBody";
|
|
1347
|
+
var TableFooter = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1348
|
+
"tfoot",
|
|
1349
|
+
{
|
|
1350
|
+
ref,
|
|
1351
|
+
className: cn("border-t bg-muted/50 font-medium", className),
|
|
1352
|
+
...props
|
|
1353
|
+
}
|
|
1354
|
+
));
|
|
1355
|
+
TableFooter.displayName = "TableFooter";
|
|
1356
|
+
var TableRow = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1357
|
+
"tr",
|
|
1358
|
+
{
|
|
1359
|
+
ref,
|
|
1360
|
+
className: cn("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", className),
|
|
1361
|
+
...props
|
|
1362
|
+
}
|
|
1363
|
+
));
|
|
1364
|
+
TableRow.displayName = "TableRow";
|
|
1365
|
+
var TableHead = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1366
|
+
"th",
|
|
1367
|
+
{
|
|
1368
|
+
ref,
|
|
1369
|
+
className: cn(
|
|
1370
|
+
"h-12 px-4 text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
1371
|
+
className
|
|
1372
|
+
),
|
|
1373
|
+
...props
|
|
1374
|
+
}
|
|
1375
|
+
));
|
|
1376
|
+
TableHead.displayName = "TableHead";
|
|
1377
|
+
var TableCell = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1378
|
+
"td",
|
|
1379
|
+
{
|
|
1380
|
+
ref,
|
|
1381
|
+
className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className),
|
|
1382
|
+
...props
|
|
1383
|
+
}
|
|
1384
|
+
));
|
|
1385
|
+
TableCell.displayName = "TableCell";
|
|
1386
|
+
var TableCaption = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1387
|
+
"caption",
|
|
1388
|
+
{
|
|
1389
|
+
ref,
|
|
1390
|
+
className: cn("mt-4 text-sm text-muted-foreground", className),
|
|
1391
|
+
...props
|
|
1392
|
+
}
|
|
1393
|
+
));
|
|
1394
|
+
TableCaption.displayName = "TableCaption";
|
|
1395
|
+
var Divider = React21.forwardRef(
|
|
1396
|
+
({ className, text, orientation = "horizontal", ...props }, ref) => {
|
|
1397
|
+
if (orientation === "vertical") {
|
|
1398
|
+
return /* @__PURE__ */ jsx(
|
|
1399
|
+
"div",
|
|
1400
|
+
{
|
|
1401
|
+
ref,
|
|
1402
|
+
className: cn("w-px h-full bg-border", className),
|
|
1403
|
+
...props
|
|
1404
|
+
}
|
|
1405
|
+
);
|
|
1406
|
+
}
|
|
1407
|
+
if (text) {
|
|
1408
|
+
return /* @__PURE__ */ jsxs(
|
|
1409
|
+
"div",
|
|
1410
|
+
{
|
|
1411
|
+
ref,
|
|
1412
|
+
className: cn("relative flex items-center", className),
|
|
1413
|
+
...props,
|
|
1414
|
+
children: [
|
|
1415
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 border-t" }),
|
|
1416
|
+
/* @__PURE__ */ jsx("span", { className: "px-2 text-xs uppercase text-muted-foreground bg-background", children: text }),
|
|
1417
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 border-t" })
|
|
1418
|
+
]
|
|
1419
|
+
}
|
|
1420
|
+
);
|
|
1421
|
+
}
|
|
1422
|
+
return /* @__PURE__ */ jsx(
|
|
1423
|
+
"div",
|
|
1424
|
+
{
|
|
1425
|
+
ref,
|
|
1426
|
+
className: cn("border-t", className),
|
|
1427
|
+
...props
|
|
1428
|
+
}
|
|
1429
|
+
);
|
|
1430
|
+
}
|
|
1431
|
+
);
|
|
1432
|
+
Divider.displayName = "Divider";
|
|
1179
1433
|
|
|
1180
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, IconBox, Input, Label2 as Label, Logo, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Progress, Separator2 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarNavItem, Stat, Tag, Textarea, badgeVariants, buttonVariants, cn, iconBoxVariants, navigationMenuTriggerStyle, progressVariants, statVariants, tagVariants, valueVariants };
|
|
1434
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Divider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FormField, IconBox, Input, Label2 as Label, Logo, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Progress, Separator2 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarNavItem, Stat, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tag, Textarea, alertVariants, badgeVariants, buttonVariants, cn, iconBoxVariants, navigationMenuTriggerStyle, progressVariants, statVariants, tagVariants, valueVariants };
|
|
1181
1435
|
//# sourceMappingURL=index.mjs.map
|
|
1182
1436
|
//# sourceMappingURL=index.mjs.map
|