@dilipod/ui 0.2.13 → 0.2.15
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/select.d.ts +7 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/toast.d.ts +2 -2
- package/dist/components/toast.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +116 -88
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +115 -88
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
- package/src/components/dialog.stories.tsx +91 -0
- package/src/components/dialog.tsx +2 -2
- package/src/components/dropdown-menu.stories.tsx +102 -0
- package/src/components/dropdown-menu.tsx +2 -2
- package/src/components/select.tsx +36 -0
- package/src/components/toast.tsx +4 -1
- package/src/index.ts +3 -0
- package/src/styles/globals.css +99 -0
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React25 from 'react';
|
|
2
2
|
import { Slot, createSlot } from '@radix-ui/react-slot';
|
|
3
3
|
import { cva } from 'class-variance-authority';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
@@ -95,6 +95,7 @@ __export(index_exports, {
|
|
|
95
95
|
NavigationMenuTrigger: () => NavigationMenuTrigger,
|
|
96
96
|
NavigationMenuViewport: () => NavigationMenuViewport,
|
|
97
97
|
Progress: () => Progress,
|
|
98
|
+
Select: () => Select,
|
|
98
99
|
Separator: () => Separator2,
|
|
99
100
|
Sheet: () => Sheet,
|
|
100
101
|
SheetClose: () => SheetClose,
|
|
@@ -174,7 +175,7 @@ var buttonVariants = cva(
|
|
|
174
175
|
}
|
|
175
176
|
}
|
|
176
177
|
);
|
|
177
|
-
var Button =
|
|
178
|
+
var Button = React25.forwardRef(
|
|
178
179
|
({ className, variant, size, asChild = false, loading, loadingText, children, disabled, ...props }, ref) => {
|
|
179
180
|
const Comp = asChild ? Slot : "button";
|
|
180
181
|
const isDisabled = disabled || loading;
|
|
@@ -227,7 +228,7 @@ var Sheet = SheetPrimitive.Root;
|
|
|
227
228
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
228
229
|
var SheetClose = SheetPrimitive.Close;
|
|
229
230
|
var SheetPortal = SheetPrimitive.Portal;
|
|
230
|
-
var SheetOverlay =
|
|
231
|
+
var SheetOverlay = React25.forwardRef(({ className, ...props }, ref) => (
|
|
231
232
|
// @ts-ignore - Radix Dialog Overlay accepts className at runtime
|
|
232
233
|
/* @__PURE__ */ jsx(
|
|
233
234
|
SheetPrimitive.Overlay,
|
|
@@ -258,7 +259,7 @@ var sheetVariants = cva(
|
|
|
258
259
|
}
|
|
259
260
|
}
|
|
260
261
|
);
|
|
261
|
-
var SheetContent =
|
|
262
|
+
var SheetContent = React25.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
262
263
|
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
263
264
|
/* @__PURE__ */ jsxs(
|
|
264
265
|
SheetPrimitive.Content,
|
|
@@ -305,7 +306,7 @@ var SheetFooter = ({
|
|
|
305
306
|
}
|
|
306
307
|
);
|
|
307
308
|
SheetFooter.displayName = "SheetFooter";
|
|
308
|
-
var SheetTitle =
|
|
309
|
+
var SheetTitle = React25.forwardRef(({ className, ...props }, ref) => (
|
|
309
310
|
// @ts-ignore - Radix Dialog Title accepts className at runtime
|
|
310
311
|
/* @__PURE__ */ jsx(
|
|
311
312
|
SheetPrimitive.Title,
|
|
@@ -317,7 +318,7 @@ var SheetTitle = React24.forwardRef(({ className, ...props }, ref) => (
|
|
|
317
318
|
)
|
|
318
319
|
));
|
|
319
320
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
320
|
-
var SheetDescription =
|
|
321
|
+
var SheetDescription = React25.forwardRef(({ className, ...props }, ref) => (
|
|
321
322
|
// @ts-ignore - Radix Dialog Description accepts className at runtime
|
|
322
323
|
/* @__PURE__ */ jsx(
|
|
323
324
|
SheetPrimitive.Description,
|
|
@@ -417,7 +418,7 @@ var badgeVariants = cva(
|
|
|
417
418
|
}
|
|
418
419
|
}
|
|
419
420
|
);
|
|
420
|
-
var Badge =
|
|
421
|
+
var Badge = React25.forwardRef(
|
|
421
422
|
({ className, variant, size, pulse, pulseColor: pulseColorProp, children, ...props }, ref) => {
|
|
422
423
|
const getPulseColorClass = () => {
|
|
423
424
|
const color = pulseColorProp || variant || "default";
|
|
@@ -471,7 +472,7 @@ var Badge = React24.forwardRef(
|
|
|
471
472
|
}
|
|
472
473
|
);
|
|
473
474
|
Badge.displayName = "Badge";
|
|
474
|
-
var Card =
|
|
475
|
+
var Card = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
475
476
|
"div",
|
|
476
477
|
{
|
|
477
478
|
ref,
|
|
@@ -483,7 +484,7 @@ var Card = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
483
484
|
}
|
|
484
485
|
));
|
|
485
486
|
Card.displayName = "Card";
|
|
486
|
-
var CardHeader =
|
|
487
|
+
var CardHeader = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
487
488
|
"div",
|
|
488
489
|
{
|
|
489
490
|
ref,
|
|
@@ -492,7 +493,7 @@ var CardHeader = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
492
493
|
}
|
|
493
494
|
));
|
|
494
495
|
CardHeader.displayName = "CardHeader";
|
|
495
|
-
var CardTitle =
|
|
496
|
+
var CardTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
496
497
|
"h3",
|
|
497
498
|
{
|
|
498
499
|
ref,
|
|
@@ -504,7 +505,7 @@ var CardTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
504
505
|
}
|
|
505
506
|
));
|
|
506
507
|
CardTitle.displayName = "CardTitle";
|
|
507
|
-
var CardDescription =
|
|
508
|
+
var CardDescription = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
508
509
|
"p",
|
|
509
510
|
{
|
|
510
511
|
ref,
|
|
@@ -513,9 +514,9 @@ var CardDescription = React24.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
513
514
|
}
|
|
514
515
|
));
|
|
515
516
|
CardDescription.displayName = "CardDescription";
|
|
516
|
-
var CardContent =
|
|
517
|
+
var CardContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
517
518
|
CardContent.displayName = "CardContent";
|
|
518
|
-
var CardFooter =
|
|
519
|
+
var CardFooter = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
519
520
|
"div",
|
|
520
521
|
{
|
|
521
522
|
ref,
|
|
@@ -538,7 +539,7 @@ var progressVariants = cva("h-full rounded-full transition-all duration-300", {
|
|
|
538
539
|
variant: "default"
|
|
539
540
|
}
|
|
540
541
|
});
|
|
541
|
-
var Progress =
|
|
542
|
+
var Progress = React25.forwardRef(
|
|
542
543
|
({ className, value, variant, showLabel, label = "Progress", size = "default", ...props }, ref) => {
|
|
543
544
|
const clampedValue = Math.min(100, Math.max(0, value));
|
|
544
545
|
const heightClass = {
|
|
@@ -605,7 +606,7 @@ var iconBoxVariants = cva(
|
|
|
605
606
|
}
|
|
606
607
|
}
|
|
607
608
|
);
|
|
608
|
-
var IconBox =
|
|
609
|
+
var IconBox = React25.forwardRef(
|
|
609
610
|
({ className, variant, size, rounded, children, ...props }, ref) => {
|
|
610
611
|
return /* @__PURE__ */ jsx(
|
|
611
612
|
"div",
|
|
@@ -641,7 +642,7 @@ var tagVariants = cva(
|
|
|
641
642
|
}
|
|
642
643
|
}
|
|
643
644
|
);
|
|
644
|
-
var Tag =
|
|
645
|
+
var Tag = React25.forwardRef(
|
|
645
646
|
({ className, variant, size, icon, children, ...props }, ref) => {
|
|
646
647
|
return /* @__PURE__ */ jsxs(
|
|
647
648
|
"span",
|
|
@@ -695,7 +696,7 @@ var valueVariants = cva("font-bold", {
|
|
|
695
696
|
color: "default"
|
|
696
697
|
}
|
|
697
698
|
});
|
|
698
|
-
var Stat =
|
|
699
|
+
var Stat = React25.forwardRef(
|
|
699
700
|
({
|
|
700
701
|
className,
|
|
701
702
|
variant,
|
|
@@ -777,7 +778,7 @@ var iconVariants = cva("h-5 w-5", {
|
|
|
777
778
|
color: "cyan"
|
|
778
779
|
}
|
|
779
780
|
});
|
|
780
|
-
var MetricCard =
|
|
781
|
+
var MetricCard = React25.forwardRef(
|
|
781
782
|
({
|
|
782
783
|
className,
|
|
783
784
|
variant,
|
|
@@ -836,7 +837,7 @@ var progressColorVariants = cva("", {
|
|
|
836
837
|
color: "cyan"
|
|
837
838
|
}
|
|
838
839
|
});
|
|
839
|
-
var UsageBar =
|
|
840
|
+
var UsageBar = React25.forwardRef(
|
|
840
841
|
({
|
|
841
842
|
className,
|
|
842
843
|
size,
|
|
@@ -908,7 +909,7 @@ var UsageBar = React24.forwardRef(
|
|
|
908
909
|
}
|
|
909
910
|
);
|
|
910
911
|
UsageBar.displayName = "UsageBar";
|
|
911
|
-
var UsageChart =
|
|
912
|
+
var UsageChart = React25.forwardRef(
|
|
912
913
|
({
|
|
913
914
|
className,
|
|
914
915
|
data,
|
|
@@ -919,8 +920,8 @@ var UsageChart = React24.forwardRef(
|
|
|
919
920
|
formatValue = (v) => v.toLocaleString(),
|
|
920
921
|
...props
|
|
921
922
|
}, ref) => {
|
|
922
|
-
const [hoveredIndex, setHoveredIndex] =
|
|
923
|
-
const maxValue =
|
|
923
|
+
const [hoveredIndex, setHoveredIndex] = React25.useState(null);
|
|
924
|
+
const maxValue = React25.useMemo(() => {
|
|
924
925
|
return Math.max(
|
|
925
926
|
...data.map((d) => d.value + (d.secondaryValue || 0)),
|
|
926
927
|
1
|
|
@@ -1047,7 +1048,7 @@ var UsageChart = React24.forwardRef(
|
|
|
1047
1048
|
}
|
|
1048
1049
|
);
|
|
1049
1050
|
UsageChart.displayName = "UsageChart";
|
|
1050
|
-
var Input =
|
|
1051
|
+
var Input = React25.forwardRef(
|
|
1051
1052
|
({ className, type, error, ...props }, ref) => {
|
|
1052
1053
|
return /* @__PURE__ */ jsx(
|
|
1053
1054
|
"input",
|
|
@@ -1087,7 +1088,7 @@ var NODES = [
|
|
|
1087
1088
|
];
|
|
1088
1089
|
var Primitive = NODES.reduce((primitive, node) => {
|
|
1089
1090
|
const Slot2 = createSlot(`Primitive.${node}`);
|
|
1090
|
-
const Node =
|
|
1091
|
+
const Node = React25.forwardRef((props, forwardedRef) => {
|
|
1091
1092
|
const { asChild, ...primitiveProps } = props;
|
|
1092
1093
|
const Comp = asChild ? Slot2 : node;
|
|
1093
1094
|
if (typeof window !== "undefined") {
|
|
@@ -1099,7 +1100,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
1099
1100
|
return { ...primitive, [node]: Node };
|
|
1100
1101
|
}, {});
|
|
1101
1102
|
var NAME = "Label";
|
|
1102
|
-
var Label =
|
|
1103
|
+
var Label = React25.forwardRef((props, forwardedRef) => {
|
|
1103
1104
|
return /* @__PURE__ */ jsx(
|
|
1104
1105
|
Primitive.label,
|
|
1105
1106
|
{
|
|
@@ -1119,7 +1120,7 @@ var Root2 = Label;
|
|
|
1119
1120
|
var labelVariants = cva(
|
|
1120
1121
|
"text-sm font-medium leading-none text-[var(--black)] peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1121
1122
|
);
|
|
1122
|
-
var Label2 =
|
|
1123
|
+
var Label2 = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1123
1124
|
Root2,
|
|
1124
1125
|
{
|
|
1125
1126
|
ref,
|
|
@@ -1128,7 +1129,7 @@ var Label2 = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1128
1129
|
}
|
|
1129
1130
|
));
|
|
1130
1131
|
Label2.displayName = Root2.displayName;
|
|
1131
|
-
var Textarea =
|
|
1132
|
+
var Textarea = React25.forwardRef(
|
|
1132
1133
|
({ className, error, ...props }, ref) => {
|
|
1133
1134
|
return /* @__PURE__ */ jsx(
|
|
1134
1135
|
"textarea",
|
|
@@ -1146,11 +1147,34 @@ var Textarea = React24.forwardRef(
|
|
|
1146
1147
|
}
|
|
1147
1148
|
);
|
|
1148
1149
|
Textarea.displayName = "Textarea";
|
|
1150
|
+
var Select = React25.forwardRef(
|
|
1151
|
+
({ className, error, children, ...props }, ref) => {
|
|
1152
|
+
return /* @__PURE__ */ jsx(
|
|
1153
|
+
"select",
|
|
1154
|
+
{
|
|
1155
|
+
ref,
|
|
1156
|
+
className: cn(
|
|
1157
|
+
"h-10 w-full rounded-sm border bg-white px-3 py-2 text-base text-[var(--black)] ring-offset-background",
|
|
1158
|
+
"placeholder:text-gray-500",
|
|
1159
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
1160
|
+
"disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors",
|
|
1161
|
+
`appearance-none bg-[url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E")] bg-[length:16px_16px] bg-[right_12px_center] bg-no-repeat pr-10`,
|
|
1162
|
+
error ? "border-red-500 focus-visible:ring-red-500" : "border-gray-300 focus-visible:ring-[var(--cyan)]",
|
|
1163
|
+
className
|
|
1164
|
+
),
|
|
1165
|
+
"aria-invalid": error ? "true" : void 0,
|
|
1166
|
+
...props,
|
|
1167
|
+
children
|
|
1168
|
+
}
|
|
1169
|
+
);
|
|
1170
|
+
}
|
|
1171
|
+
);
|
|
1172
|
+
Select.displayName = "Select";
|
|
1149
1173
|
|
|
1150
1174
|
// src/icons.ts
|
|
1151
1175
|
var icons_exports = {};
|
|
1152
1176
|
__reExport(icons_exports, react_star);
|
|
1153
|
-
var Checkbox =
|
|
1177
|
+
var Checkbox = React25.forwardRef(
|
|
1154
1178
|
({ className, checked, onCheckedChange, ...props }, ref) => {
|
|
1155
1179
|
return /* @__PURE__ */ jsxs("label", { className: "relative inline-flex items-center cursor-pointer", children: [
|
|
1156
1180
|
/* @__PURE__ */ jsx(
|
|
@@ -1182,7 +1206,7 @@ var Checkbox = React24.forwardRef(
|
|
|
1182
1206
|
);
|
|
1183
1207
|
Checkbox.displayName = "Checkbox";
|
|
1184
1208
|
var Accordion = AccordionPrimitive.Root;
|
|
1185
|
-
var AccordionItem =
|
|
1209
|
+
var AccordionItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1186
1210
|
AccordionPrimitive.Item,
|
|
1187
1211
|
{
|
|
1188
1212
|
ref,
|
|
@@ -1191,7 +1215,7 @@ var AccordionItem = React24.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1191
1215
|
}
|
|
1192
1216
|
));
|
|
1193
1217
|
AccordionItem.displayName = "AccordionItem";
|
|
1194
|
-
var AccordionTrigger =
|
|
1218
|
+
var AccordionTrigger = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
1195
1219
|
AccordionPrimitive.Trigger,
|
|
1196
1220
|
{
|
|
1197
1221
|
ref,
|
|
@@ -1207,7 +1231,7 @@ var AccordionTrigger = React24.forwardRef(({ className, children, ...props }, re
|
|
|
1207
1231
|
}
|
|
1208
1232
|
) }));
|
|
1209
1233
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
1210
|
-
var AccordionContent =
|
|
1234
|
+
var AccordionContent = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1211
1235
|
AccordionPrimitive.Content,
|
|
1212
1236
|
{
|
|
1213
1237
|
ref,
|
|
@@ -1238,7 +1262,7 @@ var NODES2 = [
|
|
|
1238
1262
|
];
|
|
1239
1263
|
var Primitive2 = NODES2.reduce((primitive, node) => {
|
|
1240
1264
|
const Slot2 = createSlot(`Primitive.${node}`);
|
|
1241
|
-
const Node =
|
|
1265
|
+
const Node = React25.forwardRef((props, forwardedRef) => {
|
|
1242
1266
|
const { asChild, ...primitiveProps } = props;
|
|
1243
1267
|
const Comp = asChild ? Slot2 : node;
|
|
1244
1268
|
if (typeof window !== "undefined") {
|
|
@@ -1252,7 +1276,7 @@ var Primitive2 = NODES2.reduce((primitive, node) => {
|
|
|
1252
1276
|
var NAME2 = "Separator";
|
|
1253
1277
|
var DEFAULT_ORIENTATION = "horizontal";
|
|
1254
1278
|
var ORIENTATIONS = ["horizontal", "vertical"];
|
|
1255
|
-
var Separator =
|
|
1279
|
+
var Separator = React25.forwardRef((props, forwardedRef) => {
|
|
1256
1280
|
const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;
|
|
1257
1281
|
const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;
|
|
1258
1282
|
const ariaOrientation = orientation === "vertical" ? orientation : void 0;
|
|
@@ -1272,7 +1296,7 @@ function isValidOrientation(orientation) {
|
|
|
1272
1296
|
return ORIENTATIONS.includes(orientation);
|
|
1273
1297
|
}
|
|
1274
1298
|
var Root4 = Separator;
|
|
1275
|
-
var Separator2 =
|
|
1299
|
+
var Separator2 = React25.forwardRef(
|
|
1276
1300
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1277
1301
|
Root4,
|
|
1278
1302
|
{
|
|
@@ -1289,7 +1313,7 @@ var Separator2 = React24.forwardRef(
|
|
|
1289
1313
|
)
|
|
1290
1314
|
);
|
|
1291
1315
|
Separator2.displayName = Root4.displayName;
|
|
1292
|
-
var NavigationMenu =
|
|
1316
|
+
var NavigationMenu = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1293
1317
|
NavigationMenuPrimitive.Root,
|
|
1294
1318
|
{
|
|
1295
1319
|
ref,
|
|
@@ -1305,7 +1329,7 @@ var NavigationMenu = React24.forwardRef(({ className, children, ...props }, ref)
|
|
|
1305
1329
|
}
|
|
1306
1330
|
));
|
|
1307
1331
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
1308
|
-
var NavigationMenuList =
|
|
1332
|
+
var NavigationMenuList = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1309
1333
|
NavigationMenuPrimitive.List,
|
|
1310
1334
|
{
|
|
1311
1335
|
ref,
|
|
@@ -1321,7 +1345,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
1321
1345
|
var navigationMenuTriggerStyle = cva(
|
|
1322
1346
|
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-white px-4 py-2 text-sm font-medium text-[var(--black)] transition-colors hover:bg-gray-100 hover:text-[var(--black)] focus:bg-gray-100 focus:text-[var(--black)] focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-[var(--black)] data-[state=open]:bg-gray-100/50 data-[state=open]:hover:bg-gray-100 data-[state=open]:focus:bg-gray-100"
|
|
1323
1347
|
);
|
|
1324
|
-
var NavigationMenuTrigger =
|
|
1348
|
+
var NavigationMenuTrigger = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1325
1349
|
NavigationMenuPrimitive.Trigger,
|
|
1326
1350
|
{
|
|
1327
1351
|
ref,
|
|
@@ -1341,7 +1365,7 @@ var NavigationMenuTrigger = React24.forwardRef(({ className, children, ...props
|
|
|
1341
1365
|
}
|
|
1342
1366
|
));
|
|
1343
1367
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
1344
|
-
var NavigationMenuContent =
|
|
1368
|
+
var NavigationMenuContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1345
1369
|
NavigationMenuPrimitive.Content,
|
|
1346
1370
|
{
|
|
1347
1371
|
ref,
|
|
@@ -1354,7 +1378,7 @@ var NavigationMenuContent = React24.forwardRef(({ className, ...props }, ref) =>
|
|
|
1354
1378
|
));
|
|
1355
1379
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
1356
1380
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
1357
|
-
var NavigationMenuViewport =
|
|
1381
|
+
var NavigationMenuViewport = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx(
|
|
1358
1382
|
NavigationMenuPrimitive.Viewport,
|
|
1359
1383
|
{
|
|
1360
1384
|
className: cn(
|
|
@@ -1366,7 +1390,7 @@ var NavigationMenuViewport = React24.forwardRef(({ className, ...props }, ref) =
|
|
|
1366
1390
|
}
|
|
1367
1391
|
) }));
|
|
1368
1392
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1369
|
-
var NavigationMenuIndicator =
|
|
1393
|
+
var NavigationMenuIndicator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1370
1394
|
NavigationMenuPrimitive.Indicator,
|
|
1371
1395
|
{
|
|
1372
1396
|
ref,
|
|
@@ -1379,7 +1403,7 @@ var NavigationMenuIndicator = React24.forwardRef(({ className, ...props }, ref)
|
|
|
1379
1403
|
}
|
|
1380
1404
|
));
|
|
1381
1405
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
1382
|
-
var Avatar =
|
|
1406
|
+
var Avatar = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1383
1407
|
AvatarPrimitive.Root,
|
|
1384
1408
|
{
|
|
1385
1409
|
ref,
|
|
@@ -1391,7 +1415,7 @@ var Avatar = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1391
1415
|
}
|
|
1392
1416
|
));
|
|
1393
1417
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
1394
|
-
var AvatarImage =
|
|
1418
|
+
var AvatarImage = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1395
1419
|
AvatarPrimitive.Image,
|
|
1396
1420
|
{
|
|
1397
1421
|
ref,
|
|
@@ -1400,7 +1424,7 @@ var AvatarImage = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1400
1424
|
}
|
|
1401
1425
|
));
|
|
1402
1426
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
1403
|
-
var AvatarFallback =
|
|
1427
|
+
var AvatarFallback = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1404
1428
|
AvatarPrimitive.Fallback,
|
|
1405
1429
|
{
|
|
1406
1430
|
ref,
|
|
@@ -1418,7 +1442,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
1418
1442
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1419
1443
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1420
1444
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1421
|
-
var DropdownMenuSubTrigger =
|
|
1445
|
+
var DropdownMenuSubTrigger = React25.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1422
1446
|
DropdownMenuPrimitive.SubTrigger,
|
|
1423
1447
|
{
|
|
1424
1448
|
ref,
|
|
@@ -1435,32 +1459,32 @@ var DropdownMenuSubTrigger = React24.forwardRef(({ className, inset, children, .
|
|
|
1435
1459
|
}
|
|
1436
1460
|
));
|
|
1437
1461
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1438
|
-
var DropdownMenuSubContent =
|
|
1462
|
+
var DropdownMenuSubContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1439
1463
|
DropdownMenuPrimitive.SubContent,
|
|
1440
1464
|
{
|
|
1441
1465
|
ref,
|
|
1442
1466
|
className: cn(
|
|
1443
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-sm border bg-popover p-1 text-popover-foreground shadow-lg
|
|
1467
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-sm border bg-popover p-1 text-popover-foreground shadow-lg",
|
|
1444
1468
|
className
|
|
1445
1469
|
),
|
|
1446
1470
|
...props
|
|
1447
1471
|
}
|
|
1448
1472
|
));
|
|
1449
1473
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1450
|
-
var DropdownMenuContent =
|
|
1474
|
+
var DropdownMenuContent = React25.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
1451
1475
|
DropdownMenuPrimitive.Content,
|
|
1452
1476
|
{
|
|
1453
1477
|
ref,
|
|
1454
1478
|
sideOffset,
|
|
1455
1479
|
className: cn(
|
|
1456
|
-
"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
|
|
1480
|
+
"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",
|
|
1457
1481
|
className
|
|
1458
1482
|
),
|
|
1459
1483
|
...props
|
|
1460
1484
|
}
|
|
1461
1485
|
) }));
|
|
1462
1486
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1463
|
-
var DropdownMenuItem =
|
|
1487
|
+
var DropdownMenuItem = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1464
1488
|
DropdownMenuPrimitive.Item,
|
|
1465
1489
|
{
|
|
1466
1490
|
ref,
|
|
@@ -1473,7 +1497,7 @@ var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1473
1497
|
}
|
|
1474
1498
|
));
|
|
1475
1499
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1476
|
-
var DropdownMenuCheckboxItem =
|
|
1500
|
+
var DropdownMenuCheckboxItem = React25.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1477
1501
|
DropdownMenuPrimitive.CheckboxItem,
|
|
1478
1502
|
{
|
|
1479
1503
|
ref,
|
|
@@ -1490,7 +1514,7 @@ var DropdownMenuCheckboxItem = React24.forwardRef(({ className, children, checke
|
|
|
1490
1514
|
}
|
|
1491
1515
|
));
|
|
1492
1516
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1493
|
-
var DropdownMenuRadioItem =
|
|
1517
|
+
var DropdownMenuRadioItem = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1494
1518
|
DropdownMenuPrimitive.RadioItem,
|
|
1495
1519
|
{
|
|
1496
1520
|
ref,
|
|
@@ -1506,7 +1530,7 @@ var DropdownMenuRadioItem = React24.forwardRef(({ className, children, ...props
|
|
|
1506
1530
|
}
|
|
1507
1531
|
));
|
|
1508
1532
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1509
|
-
var DropdownMenuLabel =
|
|
1533
|
+
var DropdownMenuLabel = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1510
1534
|
DropdownMenuPrimitive.Label,
|
|
1511
1535
|
{
|
|
1512
1536
|
ref,
|
|
@@ -1519,7 +1543,7 @@ var DropdownMenuLabel = React24.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1519
1543
|
}
|
|
1520
1544
|
));
|
|
1521
1545
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1522
|
-
var DropdownMenuSeparator =
|
|
1546
|
+
var DropdownMenuSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1523
1547
|
DropdownMenuPrimitive.Separator,
|
|
1524
1548
|
{
|
|
1525
1549
|
ref,
|
|
@@ -1541,7 +1565,7 @@ var DropdownMenuShortcut = ({
|
|
|
1541
1565
|
);
|
|
1542
1566
|
};
|
|
1543
1567
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1544
|
-
var SidebarNavItem =
|
|
1568
|
+
var SidebarNavItem = React25.forwardRef(
|
|
1545
1569
|
({ item, isActive, className, LinkComponent, ...props }, ref) => {
|
|
1546
1570
|
const Icon = item.icon;
|
|
1547
1571
|
const baseClassName = cn(
|
|
@@ -1581,7 +1605,7 @@ var SidebarNavItem = React24.forwardRef(
|
|
|
1581
1605
|
}
|
|
1582
1606
|
);
|
|
1583
1607
|
SidebarNavItem.displayName = "SidebarNavItem";
|
|
1584
|
-
var Sidebar =
|
|
1608
|
+
var Sidebar = React25.forwardRef(
|
|
1585
1609
|
({
|
|
1586
1610
|
mainNav = [],
|
|
1587
1611
|
bottomNav = [],
|
|
@@ -1691,7 +1715,7 @@ var alertVariants = cva(
|
|
|
1691
1715
|
}
|
|
1692
1716
|
}
|
|
1693
1717
|
);
|
|
1694
|
-
var Alert =
|
|
1718
|
+
var Alert = React25.forwardRef(
|
|
1695
1719
|
({ className, variant, icon, title, action, children, ...props }, ref) => {
|
|
1696
1720
|
return /* @__PURE__ */ jsx(
|
|
1697
1721
|
"div",
|
|
@@ -1714,7 +1738,7 @@ var Alert = React24.forwardRef(
|
|
|
1714
1738
|
}
|
|
1715
1739
|
);
|
|
1716
1740
|
Alert.displayName = "Alert";
|
|
1717
|
-
var EmptyState =
|
|
1741
|
+
var EmptyState = React25.forwardRef(
|
|
1718
1742
|
({ className, icon, title, description, action, size = "default", ...props }, ref) => {
|
|
1719
1743
|
const paddingClass = {
|
|
1720
1744
|
sm: "p-8",
|
|
@@ -1742,7 +1766,7 @@ var EmptyState = React24.forwardRef(
|
|
|
1742
1766
|
}
|
|
1743
1767
|
);
|
|
1744
1768
|
EmptyState.displayName = "EmptyState";
|
|
1745
|
-
var CodeBlock =
|
|
1769
|
+
var CodeBlock = React25.forwardRef(
|
|
1746
1770
|
({ className, children, language, ...props }, ref) => {
|
|
1747
1771
|
return /* @__PURE__ */ jsx(
|
|
1748
1772
|
"pre",
|
|
@@ -1760,15 +1784,15 @@ var CodeBlock = React24.forwardRef(
|
|
|
1760
1784
|
}
|
|
1761
1785
|
);
|
|
1762
1786
|
CodeBlock.displayName = "CodeBlock";
|
|
1763
|
-
var FormField =
|
|
1787
|
+
var FormField = React25.forwardRef(
|
|
1764
1788
|
({ label, error, helperText, hint, required, id, className, children, ...props }, ref) => {
|
|
1765
|
-
const fieldId = id ||
|
|
1789
|
+
const fieldId = id || React25.useId();
|
|
1766
1790
|
const errorId = `${fieldId}-error`;
|
|
1767
1791
|
const helperId = `${fieldId}-helper`;
|
|
1768
|
-
const enhancedChildren =
|
|
1769
|
-
if (
|
|
1792
|
+
const enhancedChildren = React25.Children.map(children, (child) => {
|
|
1793
|
+
if (React25.isValidElement(child)) {
|
|
1770
1794
|
const childProps = child.props;
|
|
1771
|
-
return
|
|
1795
|
+
return React25.cloneElement(child, {
|
|
1772
1796
|
id: fieldId,
|
|
1773
1797
|
"aria-invalid": error ? "true" : void 0,
|
|
1774
1798
|
"aria-describedby": error ? errorId : helperText ? helperId : void 0,
|
|
@@ -1792,7 +1816,7 @@ var FormField = React24.forwardRef(
|
|
|
1792
1816
|
}
|
|
1793
1817
|
);
|
|
1794
1818
|
FormField.displayName = "FormField";
|
|
1795
|
-
var Table =
|
|
1819
|
+
var Table = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsx(
|
|
1796
1820
|
"table",
|
|
1797
1821
|
{
|
|
1798
1822
|
ref,
|
|
@@ -1801,11 +1825,11 @@ var Table = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1801
1825
|
}
|
|
1802
1826
|
) }));
|
|
1803
1827
|
Table.displayName = "Table";
|
|
1804
|
-
var TableHeader =
|
|
1828
|
+
var TableHeader = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("", className), ...props }));
|
|
1805
1829
|
TableHeader.displayName = "TableHeader";
|
|
1806
|
-
var TableBody =
|
|
1830
|
+
var TableBody = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: cn("", className), ...props }));
|
|
1807
1831
|
TableBody.displayName = "TableBody";
|
|
1808
|
-
var TableFooter =
|
|
1832
|
+
var TableFooter = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1809
1833
|
"tfoot",
|
|
1810
1834
|
{
|
|
1811
1835
|
ref,
|
|
@@ -1814,7 +1838,7 @@ var TableFooter = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1814
1838
|
}
|
|
1815
1839
|
));
|
|
1816
1840
|
TableFooter.displayName = "TableFooter";
|
|
1817
|
-
var TableRow =
|
|
1841
|
+
var TableRow = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1818
1842
|
"tr",
|
|
1819
1843
|
{
|
|
1820
1844
|
ref,
|
|
@@ -1823,7 +1847,7 @@ var TableRow = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1823
1847
|
}
|
|
1824
1848
|
));
|
|
1825
1849
|
TableRow.displayName = "TableRow";
|
|
1826
|
-
var TableHead =
|
|
1850
|
+
var TableHead = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1827
1851
|
"th",
|
|
1828
1852
|
{
|
|
1829
1853
|
ref,
|
|
@@ -1835,7 +1859,7 @@ var TableHead = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1835
1859
|
}
|
|
1836
1860
|
));
|
|
1837
1861
|
TableHead.displayName = "TableHead";
|
|
1838
|
-
var TableCell =
|
|
1862
|
+
var TableCell = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1839
1863
|
"td",
|
|
1840
1864
|
{
|
|
1841
1865
|
ref,
|
|
@@ -1844,7 +1868,7 @@ var TableCell = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1844
1868
|
}
|
|
1845
1869
|
));
|
|
1846
1870
|
TableCell.displayName = "TableCell";
|
|
1847
|
-
var TableCaption =
|
|
1871
|
+
var TableCaption = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1848
1872
|
"caption",
|
|
1849
1873
|
{
|
|
1850
1874
|
ref,
|
|
@@ -1853,7 +1877,7 @@ var TableCaption = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1853
1877
|
}
|
|
1854
1878
|
));
|
|
1855
1879
|
TableCaption.displayName = "TableCaption";
|
|
1856
|
-
var Divider =
|
|
1880
|
+
var Divider = React25.forwardRef(
|
|
1857
1881
|
({ className, text, orientation = "horizontal", ...props }, ref) => {
|
|
1858
1882
|
if (orientation === "vertical") {
|
|
1859
1883
|
return /* @__PURE__ */ jsx(
|
|
@@ -1895,26 +1919,26 @@ var Dialog = SheetPrimitive.Root;
|
|
|
1895
1919
|
var DialogTrigger = SheetPrimitive.Trigger;
|
|
1896
1920
|
var DialogPortal = SheetPrimitive.Portal;
|
|
1897
1921
|
var DialogClose = SheetPrimitive.Close;
|
|
1898
|
-
var DialogOverlay =
|
|
1922
|
+
var DialogOverlay = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1899
1923
|
SheetPrimitive.Overlay,
|
|
1900
1924
|
{
|
|
1901
1925
|
ref,
|
|
1902
1926
|
className: cn(
|
|
1903
|
-
"fixed inset-0 z-50 bg-black/60
|
|
1927
|
+
"fixed inset-0 z-50 bg-black/60",
|
|
1904
1928
|
className
|
|
1905
1929
|
),
|
|
1906
1930
|
...props
|
|
1907
1931
|
}
|
|
1908
1932
|
));
|
|
1909
1933
|
DialogOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
1910
|
-
var DialogContent =
|
|
1934
|
+
var DialogContent = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
1911
1935
|
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
1912
1936
|
/* @__PURE__ */ jsxs(
|
|
1913
1937
|
SheetPrimitive.Content,
|
|
1914
1938
|
{
|
|
1915
1939
|
ref,
|
|
1916
1940
|
className: cn(
|
|
1917
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg
|
|
1941
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg gap-4 border border-border bg-white p-6 shadow-lg rounded-sm",
|
|
1918
1942
|
className
|
|
1919
1943
|
),
|
|
1920
1944
|
...props,
|
|
@@ -1957,7 +1981,7 @@ var DialogFooter = ({
|
|
|
1957
1981
|
}
|
|
1958
1982
|
);
|
|
1959
1983
|
DialogFooter.displayName = "DialogFooter";
|
|
1960
|
-
var DialogTitle =
|
|
1984
|
+
var DialogTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1961
1985
|
SheetPrimitive.Title,
|
|
1962
1986
|
{
|
|
1963
1987
|
ref,
|
|
@@ -1969,7 +1993,7 @@ var DialogTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1969
1993
|
}
|
|
1970
1994
|
));
|
|
1971
1995
|
DialogTitle.displayName = SheetPrimitive.Title.displayName;
|
|
1972
|
-
var DialogDescription =
|
|
1996
|
+
var DialogDescription = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1973
1997
|
SheetPrimitive.Description,
|
|
1974
1998
|
{
|
|
1975
1999
|
ref,
|
|
@@ -1979,7 +2003,7 @@ var DialogDescription = React24.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1979
2003
|
));
|
|
1980
2004
|
DialogDescription.displayName = SheetPrimitive.Description.displayName;
|
|
1981
2005
|
var ToastProvider = ToastPrimitives.Provider;
|
|
1982
|
-
var ToastViewport =
|
|
2006
|
+
var ToastViewport = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1983
2007
|
ToastPrimitives.Viewport,
|
|
1984
2008
|
{
|
|
1985
2009
|
ref,
|
|
@@ -1999,7 +2023,8 @@ var toastVariants = cva(
|
|
|
1999
2023
|
default: "bg-[var(--black)] text-white",
|
|
2000
2024
|
success: "bg-[var(--black)] text-white",
|
|
2001
2025
|
error: "bg-[var(--black)] text-white",
|
|
2002
|
-
warning: "bg-[var(--black)] text-white"
|
|
2026
|
+
warning: "bg-[var(--black)] text-white",
|
|
2027
|
+
info: "bg-[var(--black)] text-white"
|
|
2003
2028
|
}
|
|
2004
2029
|
},
|
|
2005
2030
|
defaultVariants: {
|
|
@@ -2007,7 +2032,7 @@ var toastVariants = cva(
|
|
|
2007
2032
|
}
|
|
2008
2033
|
}
|
|
2009
2034
|
);
|
|
2010
|
-
var Toast =
|
|
2035
|
+
var Toast = React25.forwardRef(({ className, variant, ...props }, ref) => {
|
|
2011
2036
|
return /* @__PURE__ */ jsx(
|
|
2012
2037
|
ToastPrimitives.Root,
|
|
2013
2038
|
{
|
|
@@ -2018,7 +2043,7 @@ var Toast = React24.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
2018
2043
|
);
|
|
2019
2044
|
});
|
|
2020
2045
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
2021
|
-
var ToastAction =
|
|
2046
|
+
var ToastAction = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2022
2047
|
ToastPrimitives.Action,
|
|
2023
2048
|
{
|
|
2024
2049
|
ref,
|
|
@@ -2030,7 +2055,7 @@ var ToastAction = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2030
2055
|
}
|
|
2031
2056
|
));
|
|
2032
2057
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
2033
|
-
var ToastClose =
|
|
2058
|
+
var ToastClose = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2034
2059
|
ToastPrimitives.Close,
|
|
2035
2060
|
{
|
|
2036
2061
|
ref,
|
|
@@ -2044,7 +2069,7 @@ var ToastClose = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2044
2069
|
}
|
|
2045
2070
|
));
|
|
2046
2071
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
2047
|
-
var ToastTitle =
|
|
2072
|
+
var ToastTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2048
2073
|
ToastPrimitives.Title,
|
|
2049
2074
|
{
|
|
2050
2075
|
ref,
|
|
@@ -2053,7 +2078,7 @@ var ToastTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2053
2078
|
}
|
|
2054
2079
|
));
|
|
2055
2080
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
2056
|
-
var ToastDescription =
|
|
2081
|
+
var ToastDescription = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2057
2082
|
ToastPrimitives.Description,
|
|
2058
2083
|
{
|
|
2059
2084
|
ref,
|
|
@@ -2070,6 +2095,8 @@ var ToastIcon = ({ variant }) => {
|
|
|
2070
2095
|
return /* @__PURE__ */ jsx(WarningCircle, { size: 18, weight: "fill", className: "text-red-400" });
|
|
2071
2096
|
case "warning":
|
|
2072
2097
|
return /* @__PURE__ */ jsx(WarningCircle, { size: 18, weight: "fill", className: "text-amber-400" });
|
|
2098
|
+
case "info":
|
|
2099
|
+
return /* @__PURE__ */ jsx(Info, { size: 18, weight: "fill", className: "text-[var(--cyan)]" });
|
|
2073
2100
|
default:
|
|
2074
2101
|
return /* @__PURE__ */ jsx(Info, { size: 18, weight: "fill", className: "text-white/70" });
|
|
2075
2102
|
}
|
|
@@ -2190,8 +2217,8 @@ function toast({ ...props }) {
|
|
|
2190
2217
|
};
|
|
2191
2218
|
}
|
|
2192
2219
|
function useToast() {
|
|
2193
|
-
const [state, setState] =
|
|
2194
|
-
|
|
2220
|
+
const [state, setState] = React25.useState(memoryState);
|
|
2221
|
+
React25.useEffect(() => {
|
|
2195
2222
|
listeners.push(setState);
|
|
2196
2223
|
return () => {
|
|
2197
2224
|
const index = listeners.indexOf(setState);
|
|
@@ -2230,6 +2257,6 @@ function Toaster() {
|
|
|
2230
2257
|
// src/index.ts
|
|
2231
2258
|
__reExport(index_exports, icons_exports);
|
|
2232
2259
|
|
|
2233
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FormField, IconBox, Input, Label2 as Label, Logo, MetricCard, 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, Toast, ToastAction, ToastClose, ToastDescription, ToastIcon, ToastProvider, ToastTitle, ToastViewport, Toaster, UsageBar, UsageChart, alertVariants, badgeVariants, buttonVariants, cn, iconBoxVariants, metricCardVariants, navigationMenuTriggerStyle, progressVariants, statVariants, tagVariants, toast, usageBarVariants, useToast, valueVariants };
|
|
2260
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, Avatar, AvatarFallback, AvatarImage, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FormField, IconBox, Input, Label2 as Label, Logo, MetricCard, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Progress, Select, 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, Toast, ToastAction, ToastClose, ToastDescription, ToastIcon, ToastProvider, ToastTitle, ToastViewport, Toaster, UsageBar, UsageChart, alertVariants, badgeVariants, buttonVariants, cn, iconBoxVariants, metricCardVariants, navigationMenuTriggerStyle, progressVariants, statVariants, tagVariants, toast, usageBarVariants, useToast, valueVariants };
|
|
2234
2261
|
//# sourceMappingURL=index.mjs.map
|
|
2235
2262
|
//# sourceMappingURL=index.mjs.map
|