@dilipod/ui 0.2.13 → 0.2.14
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/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +107 -83
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +106 -83
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/select.tsx +35 -0
- package/src/index.ts +3 -0
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var React25 = require('react');
|
|
4
4
|
var reactSlot = require('@radix-ui/react-slot');
|
|
5
5
|
var classVarianceAuthority = require('class-variance-authority');
|
|
6
6
|
var clsx = require('clsx');
|
|
@@ -33,7 +33,7 @@ function _interopNamespace(e) {
|
|
|
33
33
|
return Object.freeze(n);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var React25__namespace = /*#__PURE__*/_interopNamespace(React25);
|
|
37
37
|
var SheetPrimitive__namespace = /*#__PURE__*/_interopNamespace(SheetPrimitive);
|
|
38
38
|
var react_star__namespace = /*#__PURE__*/_interopNamespace(react_star);
|
|
39
39
|
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
@@ -123,6 +123,7 @@ __export(index_exports, {
|
|
|
123
123
|
NavigationMenuTrigger: () => NavigationMenuTrigger,
|
|
124
124
|
NavigationMenuViewport: () => NavigationMenuViewport,
|
|
125
125
|
Progress: () => Progress,
|
|
126
|
+
Select: () => Select,
|
|
126
127
|
Separator: () => Separator2,
|
|
127
128
|
Sheet: () => Sheet,
|
|
128
129
|
SheetClose: () => SheetClose,
|
|
@@ -202,7 +203,7 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
205
|
);
|
|
205
|
-
var Button =
|
|
206
|
+
var Button = React25__namespace.forwardRef(
|
|
206
207
|
({ className, variant, size, asChild = false, loading, loadingText, children, disabled, ...props }, ref) => {
|
|
207
208
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
208
209
|
const isDisabled = disabled || loading;
|
|
@@ -255,7 +256,7 @@ var Sheet = SheetPrimitive__namespace.Root;
|
|
|
255
256
|
var SheetTrigger = SheetPrimitive__namespace.Trigger;
|
|
256
257
|
var SheetClose = SheetPrimitive__namespace.Close;
|
|
257
258
|
var SheetPortal = SheetPrimitive__namespace.Portal;
|
|
258
|
-
var SheetOverlay =
|
|
259
|
+
var SheetOverlay = React25__namespace.forwardRef(({ className, ...props }, ref) => (
|
|
259
260
|
// @ts-ignore - Radix Dialog Overlay accepts className at runtime
|
|
260
261
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
261
262
|
SheetPrimitive__namespace.Overlay,
|
|
@@ -286,7 +287,7 @@ var sheetVariants = classVarianceAuthority.cva(
|
|
|
286
287
|
}
|
|
287
288
|
}
|
|
288
289
|
);
|
|
289
|
-
var SheetContent =
|
|
290
|
+
var SheetContent = React25__namespace.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
|
|
290
291
|
/* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
|
|
291
292
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
292
293
|
SheetPrimitive__namespace.Content,
|
|
@@ -333,7 +334,7 @@ var SheetFooter = ({
|
|
|
333
334
|
}
|
|
334
335
|
);
|
|
335
336
|
SheetFooter.displayName = "SheetFooter";
|
|
336
|
-
var SheetTitle =
|
|
337
|
+
var SheetTitle = React25__namespace.forwardRef(({ className, ...props }, ref) => (
|
|
337
338
|
// @ts-ignore - Radix Dialog Title accepts className at runtime
|
|
338
339
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
339
340
|
SheetPrimitive__namespace.Title,
|
|
@@ -345,7 +346,7 @@ var SheetTitle = React24__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
345
346
|
)
|
|
346
347
|
));
|
|
347
348
|
SheetTitle.displayName = SheetPrimitive__namespace.Title.displayName;
|
|
348
|
-
var SheetDescription =
|
|
349
|
+
var SheetDescription = React25__namespace.forwardRef(({ className, ...props }, ref) => (
|
|
349
350
|
// @ts-ignore - Radix Dialog Description accepts className at runtime
|
|
350
351
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
351
352
|
SheetPrimitive__namespace.Description,
|
|
@@ -445,7 +446,7 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
445
446
|
}
|
|
446
447
|
}
|
|
447
448
|
);
|
|
448
|
-
var Badge =
|
|
449
|
+
var Badge = React25__namespace.forwardRef(
|
|
449
450
|
({ className, variant, size, pulse, pulseColor: pulseColorProp, children, ...props }, ref) => {
|
|
450
451
|
const getPulseColorClass = () => {
|
|
451
452
|
const color = pulseColorProp || variant || "default";
|
|
@@ -499,7 +500,7 @@ var Badge = React24__namespace.forwardRef(
|
|
|
499
500
|
}
|
|
500
501
|
);
|
|
501
502
|
Badge.displayName = "Badge";
|
|
502
|
-
var Card =
|
|
503
|
+
var Card = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
503
504
|
"div",
|
|
504
505
|
{
|
|
505
506
|
ref,
|
|
@@ -511,7 +512,7 @@ var Card = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
511
512
|
}
|
|
512
513
|
));
|
|
513
514
|
Card.displayName = "Card";
|
|
514
|
-
var CardHeader =
|
|
515
|
+
var CardHeader = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
515
516
|
"div",
|
|
516
517
|
{
|
|
517
518
|
ref,
|
|
@@ -520,7 +521,7 @@ var CardHeader = React24__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
520
521
|
}
|
|
521
522
|
));
|
|
522
523
|
CardHeader.displayName = "CardHeader";
|
|
523
|
-
var CardTitle =
|
|
524
|
+
var CardTitle = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
524
525
|
"h3",
|
|
525
526
|
{
|
|
526
527
|
ref,
|
|
@@ -532,7 +533,7 @@ var CardTitle = React24__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
532
533
|
}
|
|
533
534
|
));
|
|
534
535
|
CardTitle.displayName = "CardTitle";
|
|
535
|
-
var CardDescription =
|
|
536
|
+
var CardDescription = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
536
537
|
"p",
|
|
537
538
|
{
|
|
538
539
|
ref,
|
|
@@ -541,9 +542,9 @@ var CardDescription = React24__namespace.forwardRef(({ className, ...props }, re
|
|
|
541
542
|
}
|
|
542
543
|
));
|
|
543
544
|
CardDescription.displayName = "CardDescription";
|
|
544
|
-
var CardContent =
|
|
545
|
+
var CardContent = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
545
546
|
CardContent.displayName = "CardContent";
|
|
546
|
-
var CardFooter =
|
|
547
|
+
var CardFooter = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
547
548
|
"div",
|
|
548
549
|
{
|
|
549
550
|
ref,
|
|
@@ -566,7 +567,7 @@ var progressVariants = classVarianceAuthority.cva("h-full rounded-full transitio
|
|
|
566
567
|
variant: "default"
|
|
567
568
|
}
|
|
568
569
|
});
|
|
569
|
-
var Progress =
|
|
570
|
+
var Progress = React25__namespace.forwardRef(
|
|
570
571
|
({ className, value, variant, showLabel, label = "Progress", size = "default", ...props }, ref) => {
|
|
571
572
|
const clampedValue = Math.min(100, Math.max(0, value));
|
|
572
573
|
const heightClass = {
|
|
@@ -633,7 +634,7 @@ var iconBoxVariants = classVarianceAuthority.cva(
|
|
|
633
634
|
}
|
|
634
635
|
}
|
|
635
636
|
);
|
|
636
|
-
var IconBox =
|
|
637
|
+
var IconBox = React25__namespace.forwardRef(
|
|
637
638
|
({ className, variant, size, rounded, children, ...props }, ref) => {
|
|
638
639
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
639
640
|
"div",
|
|
@@ -669,7 +670,7 @@ var tagVariants = classVarianceAuthority.cva(
|
|
|
669
670
|
}
|
|
670
671
|
}
|
|
671
672
|
);
|
|
672
|
-
var Tag =
|
|
673
|
+
var Tag = React25__namespace.forwardRef(
|
|
673
674
|
({ className, variant, size, icon, children, ...props }, ref) => {
|
|
674
675
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
675
676
|
"span",
|
|
@@ -723,7 +724,7 @@ var valueVariants = classVarianceAuthority.cva("font-bold", {
|
|
|
723
724
|
color: "default"
|
|
724
725
|
}
|
|
725
726
|
});
|
|
726
|
-
var Stat =
|
|
727
|
+
var Stat = React25__namespace.forwardRef(
|
|
727
728
|
({
|
|
728
729
|
className,
|
|
729
730
|
variant,
|
|
@@ -805,7 +806,7 @@ var iconVariants = classVarianceAuthority.cva("h-5 w-5", {
|
|
|
805
806
|
color: "cyan"
|
|
806
807
|
}
|
|
807
808
|
});
|
|
808
|
-
var MetricCard =
|
|
809
|
+
var MetricCard = React25__namespace.forwardRef(
|
|
809
810
|
({
|
|
810
811
|
className,
|
|
811
812
|
variant,
|
|
@@ -864,7 +865,7 @@ var progressColorVariants = classVarianceAuthority.cva("", {
|
|
|
864
865
|
color: "cyan"
|
|
865
866
|
}
|
|
866
867
|
});
|
|
867
|
-
var UsageBar =
|
|
868
|
+
var UsageBar = React25__namespace.forwardRef(
|
|
868
869
|
({
|
|
869
870
|
className,
|
|
870
871
|
size,
|
|
@@ -936,7 +937,7 @@ var UsageBar = React24__namespace.forwardRef(
|
|
|
936
937
|
}
|
|
937
938
|
);
|
|
938
939
|
UsageBar.displayName = "UsageBar";
|
|
939
|
-
var UsageChart =
|
|
940
|
+
var UsageChart = React25__namespace.forwardRef(
|
|
940
941
|
({
|
|
941
942
|
className,
|
|
942
943
|
data,
|
|
@@ -947,8 +948,8 @@ var UsageChart = React24__namespace.forwardRef(
|
|
|
947
948
|
formatValue = (v) => v.toLocaleString(),
|
|
948
949
|
...props
|
|
949
950
|
}, ref) => {
|
|
950
|
-
const [hoveredIndex, setHoveredIndex] =
|
|
951
|
-
const maxValue =
|
|
951
|
+
const [hoveredIndex, setHoveredIndex] = React25__namespace.useState(null);
|
|
952
|
+
const maxValue = React25__namespace.useMemo(() => {
|
|
952
953
|
return Math.max(
|
|
953
954
|
...data.map((d) => d.value + (d.secondaryValue || 0)),
|
|
954
955
|
1
|
|
@@ -1075,7 +1076,7 @@ var UsageChart = React24__namespace.forwardRef(
|
|
|
1075
1076
|
}
|
|
1076
1077
|
);
|
|
1077
1078
|
UsageChart.displayName = "UsageChart";
|
|
1078
|
-
var Input =
|
|
1079
|
+
var Input = React25__namespace.forwardRef(
|
|
1079
1080
|
({ className, type, error, ...props }, ref) => {
|
|
1080
1081
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1081
1082
|
"input",
|
|
@@ -1115,7 +1116,7 @@ var NODES = [
|
|
|
1115
1116
|
];
|
|
1116
1117
|
var Primitive = NODES.reduce((primitive, node) => {
|
|
1117
1118
|
const Slot2 = reactSlot.createSlot(`Primitive.${node}`);
|
|
1118
|
-
const Node =
|
|
1119
|
+
const Node = React25__namespace.forwardRef((props, forwardedRef) => {
|
|
1119
1120
|
const { asChild, ...primitiveProps } = props;
|
|
1120
1121
|
const Comp = asChild ? Slot2 : node;
|
|
1121
1122
|
if (typeof window !== "undefined") {
|
|
@@ -1127,7 +1128,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
1127
1128
|
return { ...primitive, [node]: Node };
|
|
1128
1129
|
}, {});
|
|
1129
1130
|
var NAME = "Label";
|
|
1130
|
-
var Label =
|
|
1131
|
+
var Label = React25__namespace.forwardRef((props, forwardedRef) => {
|
|
1131
1132
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1132
1133
|
Primitive.label,
|
|
1133
1134
|
{
|
|
@@ -1147,7 +1148,7 @@ var Root2 = Label;
|
|
|
1147
1148
|
var labelVariants = classVarianceAuthority.cva(
|
|
1148
1149
|
"text-sm font-medium leading-none text-[var(--black)] peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1149
1150
|
);
|
|
1150
|
-
var Label2 =
|
|
1151
|
+
var Label2 = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1151
1152
|
Root2,
|
|
1152
1153
|
{
|
|
1153
1154
|
ref,
|
|
@@ -1156,7 +1157,7 @@ var Label2 = React24__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1156
1157
|
}
|
|
1157
1158
|
));
|
|
1158
1159
|
Label2.displayName = Root2.displayName;
|
|
1159
|
-
var Textarea =
|
|
1160
|
+
var Textarea = React25__namespace.forwardRef(
|
|
1160
1161
|
({ className, error, ...props }, ref) => {
|
|
1161
1162
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1162
1163
|
"textarea",
|
|
@@ -1174,11 +1175,33 @@ var Textarea = React24__namespace.forwardRef(
|
|
|
1174
1175
|
}
|
|
1175
1176
|
);
|
|
1176
1177
|
Textarea.displayName = "Textarea";
|
|
1178
|
+
var Select = React25__namespace.forwardRef(
|
|
1179
|
+
({ className, error, children, ...props }, ref) => {
|
|
1180
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1181
|
+
"select",
|
|
1182
|
+
{
|
|
1183
|
+
ref,
|
|
1184
|
+
className: cn(
|
|
1185
|
+
"flex h-10 w-full rounded-sm border bg-white px-3 py-2 text-base text-[var(--black)] ring-offset-background",
|
|
1186
|
+
"placeholder:text-gray-500",
|
|
1187
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
1188
|
+
"disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors",
|
|
1189
|
+
error ? "border-red-500 focus-visible:ring-red-500" : "border-gray-300 focus-visible:ring-[var(--cyan)]",
|
|
1190
|
+
className
|
|
1191
|
+
),
|
|
1192
|
+
"aria-invalid": error ? "true" : void 0,
|
|
1193
|
+
...props,
|
|
1194
|
+
children
|
|
1195
|
+
}
|
|
1196
|
+
);
|
|
1197
|
+
}
|
|
1198
|
+
);
|
|
1199
|
+
Select.displayName = "Select";
|
|
1177
1200
|
|
|
1178
1201
|
// src/icons.ts
|
|
1179
1202
|
var icons_exports = {};
|
|
1180
1203
|
__reExport(icons_exports, react_star__namespace);
|
|
1181
|
-
var Checkbox =
|
|
1204
|
+
var Checkbox = React25__namespace.forwardRef(
|
|
1182
1205
|
({ className, checked, onCheckedChange, ...props }, ref) => {
|
|
1183
1206
|
return /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "relative inline-flex items-center cursor-pointer", children: [
|
|
1184
1207
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1210,7 +1233,7 @@ var Checkbox = React24__namespace.forwardRef(
|
|
|
1210
1233
|
);
|
|
1211
1234
|
Checkbox.displayName = "Checkbox";
|
|
1212
1235
|
var Accordion = AccordionPrimitive__namespace.Root;
|
|
1213
|
-
var AccordionItem =
|
|
1236
|
+
var AccordionItem = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1214
1237
|
AccordionPrimitive__namespace.Item,
|
|
1215
1238
|
{
|
|
1216
1239
|
ref,
|
|
@@ -1219,7 +1242,7 @@ var AccordionItem = React24__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1219
1242
|
}
|
|
1220
1243
|
));
|
|
1221
1244
|
AccordionItem.displayName = "AccordionItem";
|
|
1222
|
-
var AccordionTrigger =
|
|
1245
|
+
var AccordionTrigger = React25__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1223
1246
|
AccordionPrimitive__namespace.Trigger,
|
|
1224
1247
|
{
|
|
1225
1248
|
ref,
|
|
@@ -1235,7 +1258,7 @@ var AccordionTrigger = React24__namespace.forwardRef(({ className, children, ...
|
|
|
1235
1258
|
}
|
|
1236
1259
|
) }));
|
|
1237
1260
|
AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
|
|
1238
|
-
var AccordionContent =
|
|
1261
|
+
var AccordionContent = React25__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1239
1262
|
AccordionPrimitive__namespace.Content,
|
|
1240
1263
|
{
|
|
1241
1264
|
ref,
|
|
@@ -1266,7 +1289,7 @@ var NODES2 = [
|
|
|
1266
1289
|
];
|
|
1267
1290
|
var Primitive2 = NODES2.reduce((primitive, node) => {
|
|
1268
1291
|
const Slot2 = reactSlot.createSlot(`Primitive.${node}`);
|
|
1269
|
-
const Node =
|
|
1292
|
+
const Node = React25__namespace.forwardRef((props, forwardedRef) => {
|
|
1270
1293
|
const { asChild, ...primitiveProps } = props;
|
|
1271
1294
|
const Comp = asChild ? Slot2 : node;
|
|
1272
1295
|
if (typeof window !== "undefined") {
|
|
@@ -1280,7 +1303,7 @@ var Primitive2 = NODES2.reduce((primitive, node) => {
|
|
|
1280
1303
|
var NAME2 = "Separator";
|
|
1281
1304
|
var DEFAULT_ORIENTATION = "horizontal";
|
|
1282
1305
|
var ORIENTATIONS = ["horizontal", "vertical"];
|
|
1283
|
-
var Separator =
|
|
1306
|
+
var Separator = React25__namespace.forwardRef((props, forwardedRef) => {
|
|
1284
1307
|
const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;
|
|
1285
1308
|
const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;
|
|
1286
1309
|
const ariaOrientation = orientation === "vertical" ? orientation : void 0;
|
|
@@ -1300,7 +1323,7 @@ function isValidOrientation(orientation) {
|
|
|
1300
1323
|
return ORIENTATIONS.includes(orientation);
|
|
1301
1324
|
}
|
|
1302
1325
|
var Root4 = Separator;
|
|
1303
|
-
var Separator2 =
|
|
1326
|
+
var Separator2 = React25__namespace.forwardRef(
|
|
1304
1327
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1305
1328
|
Root4,
|
|
1306
1329
|
{
|
|
@@ -1317,7 +1340,7 @@ var Separator2 = React24__namespace.forwardRef(
|
|
|
1317
1340
|
)
|
|
1318
1341
|
);
|
|
1319
1342
|
Separator2.displayName = Root4.displayName;
|
|
1320
|
-
var NavigationMenu =
|
|
1343
|
+
var NavigationMenu = React25__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1321
1344
|
NavigationMenuPrimitive__namespace.Root,
|
|
1322
1345
|
{
|
|
1323
1346
|
ref,
|
|
@@ -1333,7 +1356,7 @@ var NavigationMenu = React24__namespace.forwardRef(({ className, children, ...pr
|
|
|
1333
1356
|
}
|
|
1334
1357
|
));
|
|
1335
1358
|
NavigationMenu.displayName = NavigationMenuPrimitive__namespace.Root.displayName;
|
|
1336
|
-
var NavigationMenuList =
|
|
1359
|
+
var NavigationMenuList = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1337
1360
|
NavigationMenuPrimitive__namespace.List,
|
|
1338
1361
|
{
|
|
1339
1362
|
ref,
|
|
@@ -1349,7 +1372,7 @@ var NavigationMenuItem = NavigationMenuPrimitive__namespace.Item;
|
|
|
1349
1372
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
1350
1373
|
"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"
|
|
1351
1374
|
);
|
|
1352
|
-
var NavigationMenuTrigger =
|
|
1375
|
+
var NavigationMenuTrigger = React25__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1353
1376
|
NavigationMenuPrimitive__namespace.Trigger,
|
|
1354
1377
|
{
|
|
1355
1378
|
ref,
|
|
@@ -1369,7 +1392,7 @@ var NavigationMenuTrigger = React24__namespace.forwardRef(({ className, children
|
|
|
1369
1392
|
}
|
|
1370
1393
|
));
|
|
1371
1394
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive__namespace.Trigger.displayName;
|
|
1372
|
-
var NavigationMenuContent =
|
|
1395
|
+
var NavigationMenuContent = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1373
1396
|
NavigationMenuPrimitive__namespace.Content,
|
|
1374
1397
|
{
|
|
1375
1398
|
ref,
|
|
@@ -1382,7 +1405,7 @@ var NavigationMenuContent = React24__namespace.forwardRef(({ className, ...props
|
|
|
1382
1405
|
));
|
|
1383
1406
|
NavigationMenuContent.displayName = NavigationMenuPrimitive__namespace.Content.displayName;
|
|
1384
1407
|
var NavigationMenuLink = NavigationMenuPrimitive__namespace.Link;
|
|
1385
|
-
var NavigationMenuViewport =
|
|
1408
|
+
var NavigationMenuViewport = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1386
1409
|
NavigationMenuPrimitive__namespace.Viewport,
|
|
1387
1410
|
{
|
|
1388
1411
|
className: cn(
|
|
@@ -1394,7 +1417,7 @@ var NavigationMenuViewport = React24__namespace.forwardRef(({ className, ...prop
|
|
|
1394
1417
|
}
|
|
1395
1418
|
) }));
|
|
1396
1419
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive__namespace.Viewport.displayName;
|
|
1397
|
-
var NavigationMenuIndicator =
|
|
1420
|
+
var NavigationMenuIndicator = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1398
1421
|
NavigationMenuPrimitive__namespace.Indicator,
|
|
1399
1422
|
{
|
|
1400
1423
|
ref,
|
|
@@ -1407,7 +1430,7 @@ var NavigationMenuIndicator = React24__namespace.forwardRef(({ className, ...pro
|
|
|
1407
1430
|
}
|
|
1408
1431
|
));
|
|
1409
1432
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive__namespace.Indicator.displayName;
|
|
1410
|
-
var Avatar =
|
|
1433
|
+
var Avatar = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1411
1434
|
AvatarPrimitive__namespace.Root,
|
|
1412
1435
|
{
|
|
1413
1436
|
ref,
|
|
@@ -1419,7 +1442,7 @@ var Avatar = React24__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1419
1442
|
}
|
|
1420
1443
|
));
|
|
1421
1444
|
Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
|
|
1422
|
-
var AvatarImage =
|
|
1445
|
+
var AvatarImage = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1423
1446
|
AvatarPrimitive__namespace.Image,
|
|
1424
1447
|
{
|
|
1425
1448
|
ref,
|
|
@@ -1428,7 +1451,7 @@ var AvatarImage = React24__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1428
1451
|
}
|
|
1429
1452
|
));
|
|
1430
1453
|
AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
|
|
1431
|
-
var AvatarFallback =
|
|
1454
|
+
var AvatarFallback = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1432
1455
|
AvatarPrimitive__namespace.Fallback,
|
|
1433
1456
|
{
|
|
1434
1457
|
ref,
|
|
@@ -1446,7 +1469,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
|
1446
1469
|
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
1447
1470
|
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
1448
1471
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
1449
|
-
var DropdownMenuSubTrigger =
|
|
1472
|
+
var DropdownMenuSubTrigger = React25__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1450
1473
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
1451
1474
|
{
|
|
1452
1475
|
ref,
|
|
@@ -1463,7 +1486,7 @@ var DropdownMenuSubTrigger = React24__namespace.forwardRef(({ className, inset,
|
|
|
1463
1486
|
}
|
|
1464
1487
|
));
|
|
1465
1488
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
1466
|
-
var DropdownMenuSubContent =
|
|
1489
|
+
var DropdownMenuSubContent = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1467
1490
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
1468
1491
|
{
|
|
1469
1492
|
ref,
|
|
@@ -1475,7 +1498,7 @@ var DropdownMenuSubContent = React24__namespace.forwardRef(({ className, ...prop
|
|
|
1475
1498
|
}
|
|
1476
1499
|
));
|
|
1477
1500
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
1478
|
-
var DropdownMenuContent =
|
|
1501
|
+
var DropdownMenuContent = React25__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1479
1502
|
DropdownMenuPrimitive__namespace.Content,
|
|
1480
1503
|
{
|
|
1481
1504
|
ref,
|
|
@@ -1488,7 +1511,7 @@ var DropdownMenuContent = React24__namespace.forwardRef(({ className, sideOffset
|
|
|
1488
1511
|
}
|
|
1489
1512
|
) }));
|
|
1490
1513
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
1491
|
-
var DropdownMenuItem =
|
|
1514
|
+
var DropdownMenuItem = React25__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1492
1515
|
DropdownMenuPrimitive__namespace.Item,
|
|
1493
1516
|
{
|
|
1494
1517
|
ref,
|
|
@@ -1501,7 +1524,7 @@ var DropdownMenuItem = React24__namespace.forwardRef(({ className, inset, ...pro
|
|
|
1501
1524
|
}
|
|
1502
1525
|
));
|
|
1503
1526
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
1504
|
-
var DropdownMenuCheckboxItem =
|
|
1527
|
+
var DropdownMenuCheckboxItem = React25__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1505
1528
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
1506
1529
|
{
|
|
1507
1530
|
ref,
|
|
@@ -1518,7 +1541,7 @@ var DropdownMenuCheckboxItem = React24__namespace.forwardRef(({ className, child
|
|
|
1518
1541
|
}
|
|
1519
1542
|
));
|
|
1520
1543
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
1521
|
-
var DropdownMenuRadioItem =
|
|
1544
|
+
var DropdownMenuRadioItem = React25__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1522
1545
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
1523
1546
|
{
|
|
1524
1547
|
ref,
|
|
@@ -1534,7 +1557,7 @@ var DropdownMenuRadioItem = React24__namespace.forwardRef(({ className, children
|
|
|
1534
1557
|
}
|
|
1535
1558
|
));
|
|
1536
1559
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
1537
|
-
var DropdownMenuLabel =
|
|
1560
|
+
var DropdownMenuLabel = React25__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1538
1561
|
DropdownMenuPrimitive__namespace.Label,
|
|
1539
1562
|
{
|
|
1540
1563
|
ref,
|
|
@@ -1547,7 +1570,7 @@ var DropdownMenuLabel = React24__namespace.forwardRef(({ className, inset, ...pr
|
|
|
1547
1570
|
}
|
|
1548
1571
|
));
|
|
1549
1572
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
1550
|
-
var DropdownMenuSeparator =
|
|
1573
|
+
var DropdownMenuSeparator = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1551
1574
|
DropdownMenuPrimitive__namespace.Separator,
|
|
1552
1575
|
{
|
|
1553
1576
|
ref,
|
|
@@ -1569,7 +1592,7 @@ var DropdownMenuShortcut = ({
|
|
|
1569
1592
|
);
|
|
1570
1593
|
};
|
|
1571
1594
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1572
|
-
var SidebarNavItem =
|
|
1595
|
+
var SidebarNavItem = React25__namespace.forwardRef(
|
|
1573
1596
|
({ item, isActive, className, LinkComponent, ...props }, ref) => {
|
|
1574
1597
|
const Icon = item.icon;
|
|
1575
1598
|
const baseClassName = cn(
|
|
@@ -1609,7 +1632,7 @@ var SidebarNavItem = React24__namespace.forwardRef(
|
|
|
1609
1632
|
}
|
|
1610
1633
|
);
|
|
1611
1634
|
SidebarNavItem.displayName = "SidebarNavItem";
|
|
1612
|
-
var Sidebar =
|
|
1635
|
+
var Sidebar = React25__namespace.forwardRef(
|
|
1613
1636
|
({
|
|
1614
1637
|
mainNav = [],
|
|
1615
1638
|
bottomNav = [],
|
|
@@ -1719,7 +1742,7 @@ var alertVariants = classVarianceAuthority.cva(
|
|
|
1719
1742
|
}
|
|
1720
1743
|
}
|
|
1721
1744
|
);
|
|
1722
|
-
var Alert =
|
|
1745
|
+
var Alert = React25__namespace.forwardRef(
|
|
1723
1746
|
({ className, variant, icon, title, action, children, ...props }, ref) => {
|
|
1724
1747
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1725
1748
|
"div",
|
|
@@ -1742,7 +1765,7 @@ var Alert = React24__namespace.forwardRef(
|
|
|
1742
1765
|
}
|
|
1743
1766
|
);
|
|
1744
1767
|
Alert.displayName = "Alert";
|
|
1745
|
-
var EmptyState =
|
|
1768
|
+
var EmptyState = React25__namespace.forwardRef(
|
|
1746
1769
|
({ className, icon, title, description, action, size = "default", ...props }, ref) => {
|
|
1747
1770
|
const paddingClass = {
|
|
1748
1771
|
sm: "p-8",
|
|
@@ -1770,7 +1793,7 @@ var EmptyState = React24__namespace.forwardRef(
|
|
|
1770
1793
|
}
|
|
1771
1794
|
);
|
|
1772
1795
|
EmptyState.displayName = "EmptyState";
|
|
1773
|
-
var CodeBlock =
|
|
1796
|
+
var CodeBlock = React25__namespace.forwardRef(
|
|
1774
1797
|
({ className, children, language, ...props }, ref) => {
|
|
1775
1798
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1776
1799
|
"pre",
|
|
@@ -1788,15 +1811,15 @@ var CodeBlock = React24__namespace.forwardRef(
|
|
|
1788
1811
|
}
|
|
1789
1812
|
);
|
|
1790
1813
|
CodeBlock.displayName = "CodeBlock";
|
|
1791
|
-
var FormField =
|
|
1814
|
+
var FormField = React25__namespace.forwardRef(
|
|
1792
1815
|
({ label, error, helperText, hint, required, id, className, children, ...props }, ref) => {
|
|
1793
|
-
const fieldId = id ||
|
|
1816
|
+
const fieldId = id || React25__namespace.useId();
|
|
1794
1817
|
const errorId = `${fieldId}-error`;
|
|
1795
1818
|
const helperId = `${fieldId}-helper`;
|
|
1796
|
-
const enhancedChildren =
|
|
1797
|
-
if (
|
|
1819
|
+
const enhancedChildren = React25__namespace.Children.map(children, (child) => {
|
|
1820
|
+
if (React25__namespace.isValidElement(child)) {
|
|
1798
1821
|
const childProps = child.props;
|
|
1799
|
-
return
|
|
1822
|
+
return React25__namespace.cloneElement(child, {
|
|
1800
1823
|
id: fieldId,
|
|
1801
1824
|
"aria-invalid": error ? "true" : void 0,
|
|
1802
1825
|
"aria-describedby": error ? errorId : helperText ? helperId : void 0,
|
|
@@ -1820,7 +1843,7 @@ var FormField = React24__namespace.forwardRef(
|
|
|
1820
1843
|
}
|
|
1821
1844
|
);
|
|
1822
1845
|
FormField.displayName = "FormField";
|
|
1823
|
-
var Table =
|
|
1846
|
+
var Table = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1824
1847
|
"table",
|
|
1825
1848
|
{
|
|
1826
1849
|
ref,
|
|
@@ -1829,11 +1852,11 @@ var Table = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1829
1852
|
}
|
|
1830
1853
|
) }));
|
|
1831
1854
|
Table.displayName = "Table";
|
|
1832
|
-
var TableHeader =
|
|
1855
|
+
var TableHeader = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("", className), ...props }));
|
|
1833
1856
|
TableHeader.displayName = "TableHeader";
|
|
1834
|
-
var TableBody =
|
|
1857
|
+
var TableBody = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: cn("", className), ...props }));
|
|
1835
1858
|
TableBody.displayName = "TableBody";
|
|
1836
|
-
var TableFooter =
|
|
1859
|
+
var TableFooter = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1837
1860
|
"tfoot",
|
|
1838
1861
|
{
|
|
1839
1862
|
ref,
|
|
@@ -1842,7 +1865,7 @@ var TableFooter = React24__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1842
1865
|
}
|
|
1843
1866
|
));
|
|
1844
1867
|
TableFooter.displayName = "TableFooter";
|
|
1845
|
-
var TableRow =
|
|
1868
|
+
var TableRow = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1846
1869
|
"tr",
|
|
1847
1870
|
{
|
|
1848
1871
|
ref,
|
|
@@ -1851,7 +1874,7 @@ var TableRow = React24__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
1851
1874
|
}
|
|
1852
1875
|
));
|
|
1853
1876
|
TableRow.displayName = "TableRow";
|
|
1854
|
-
var TableHead =
|
|
1877
|
+
var TableHead = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1855
1878
|
"th",
|
|
1856
1879
|
{
|
|
1857
1880
|
ref,
|
|
@@ -1863,7 +1886,7 @@ var TableHead = React24__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
1863
1886
|
}
|
|
1864
1887
|
));
|
|
1865
1888
|
TableHead.displayName = "TableHead";
|
|
1866
|
-
var TableCell =
|
|
1889
|
+
var TableCell = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1867
1890
|
"td",
|
|
1868
1891
|
{
|
|
1869
1892
|
ref,
|
|
@@ -1872,7 +1895,7 @@ var TableCell = React24__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
1872
1895
|
}
|
|
1873
1896
|
));
|
|
1874
1897
|
TableCell.displayName = "TableCell";
|
|
1875
|
-
var TableCaption =
|
|
1898
|
+
var TableCaption = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1876
1899
|
"caption",
|
|
1877
1900
|
{
|
|
1878
1901
|
ref,
|
|
@@ -1881,7 +1904,7 @@ var TableCaption = React24__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1881
1904
|
}
|
|
1882
1905
|
));
|
|
1883
1906
|
TableCaption.displayName = "TableCaption";
|
|
1884
|
-
var Divider =
|
|
1907
|
+
var Divider = React25__namespace.forwardRef(
|
|
1885
1908
|
({ className, text, orientation = "horizontal", ...props }, ref) => {
|
|
1886
1909
|
if (orientation === "vertical") {
|
|
1887
1910
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1923,7 +1946,7 @@ var Dialog = SheetPrimitive__namespace.Root;
|
|
|
1923
1946
|
var DialogTrigger = SheetPrimitive__namespace.Trigger;
|
|
1924
1947
|
var DialogPortal = SheetPrimitive__namespace.Portal;
|
|
1925
1948
|
var DialogClose = SheetPrimitive__namespace.Close;
|
|
1926
|
-
var DialogOverlay =
|
|
1949
|
+
var DialogOverlay = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1927
1950
|
SheetPrimitive__namespace.Overlay,
|
|
1928
1951
|
{
|
|
1929
1952
|
ref,
|
|
@@ -1935,7 +1958,7 @@ var DialogOverlay = React24__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1935
1958
|
}
|
|
1936
1959
|
));
|
|
1937
1960
|
DialogOverlay.displayName = SheetPrimitive__namespace.Overlay.displayName;
|
|
1938
|
-
var DialogContent =
|
|
1961
|
+
var DialogContent = React25__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
1939
1962
|
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
1940
1963
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1941
1964
|
SheetPrimitive__namespace.Content,
|
|
@@ -1985,7 +2008,7 @@ var DialogFooter = ({
|
|
|
1985
2008
|
}
|
|
1986
2009
|
);
|
|
1987
2010
|
DialogFooter.displayName = "DialogFooter";
|
|
1988
|
-
var DialogTitle =
|
|
2011
|
+
var DialogTitle = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1989
2012
|
SheetPrimitive__namespace.Title,
|
|
1990
2013
|
{
|
|
1991
2014
|
ref,
|
|
@@ -1997,7 +2020,7 @@ var DialogTitle = React24__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1997
2020
|
}
|
|
1998
2021
|
));
|
|
1999
2022
|
DialogTitle.displayName = SheetPrimitive__namespace.Title.displayName;
|
|
2000
|
-
var DialogDescription =
|
|
2023
|
+
var DialogDescription = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2001
2024
|
SheetPrimitive__namespace.Description,
|
|
2002
2025
|
{
|
|
2003
2026
|
ref,
|
|
@@ -2007,7 +2030,7 @@ var DialogDescription = React24__namespace.forwardRef(({ className, ...props },
|
|
|
2007
2030
|
));
|
|
2008
2031
|
DialogDescription.displayName = SheetPrimitive__namespace.Description.displayName;
|
|
2009
2032
|
var ToastProvider = ToastPrimitives__namespace.Provider;
|
|
2010
|
-
var ToastViewport =
|
|
2033
|
+
var ToastViewport = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2011
2034
|
ToastPrimitives__namespace.Viewport,
|
|
2012
2035
|
{
|
|
2013
2036
|
ref,
|
|
@@ -2035,7 +2058,7 @@ var toastVariants = classVarianceAuthority.cva(
|
|
|
2035
2058
|
}
|
|
2036
2059
|
}
|
|
2037
2060
|
);
|
|
2038
|
-
var Toast =
|
|
2061
|
+
var Toast = React25__namespace.forwardRef(({ className, variant, ...props }, ref) => {
|
|
2039
2062
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2040
2063
|
ToastPrimitives__namespace.Root,
|
|
2041
2064
|
{
|
|
@@ -2046,7 +2069,7 @@ var Toast = React24__namespace.forwardRef(({ className, variant, ...props }, ref
|
|
|
2046
2069
|
);
|
|
2047
2070
|
});
|
|
2048
2071
|
Toast.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
2049
|
-
var ToastAction =
|
|
2072
|
+
var ToastAction = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2050
2073
|
ToastPrimitives__namespace.Action,
|
|
2051
2074
|
{
|
|
2052
2075
|
ref,
|
|
@@ -2058,7 +2081,7 @@ var ToastAction = React24__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2058
2081
|
}
|
|
2059
2082
|
));
|
|
2060
2083
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
2061
|
-
var ToastClose =
|
|
2084
|
+
var ToastClose = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2062
2085
|
ToastPrimitives__namespace.Close,
|
|
2063
2086
|
{
|
|
2064
2087
|
ref,
|
|
@@ -2072,7 +2095,7 @@ var ToastClose = React24__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2072
2095
|
}
|
|
2073
2096
|
));
|
|
2074
2097
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
2075
|
-
var ToastTitle =
|
|
2098
|
+
var ToastTitle = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2076
2099
|
ToastPrimitives__namespace.Title,
|
|
2077
2100
|
{
|
|
2078
2101
|
ref,
|
|
@@ -2081,7 +2104,7 @@ var ToastTitle = React24__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2081
2104
|
}
|
|
2082
2105
|
));
|
|
2083
2106
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
2084
|
-
var ToastDescription =
|
|
2107
|
+
var ToastDescription = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2085
2108
|
ToastPrimitives__namespace.Description,
|
|
2086
2109
|
{
|
|
2087
2110
|
ref,
|
|
@@ -2218,8 +2241,8 @@ function toast({ ...props }) {
|
|
|
2218
2241
|
};
|
|
2219
2242
|
}
|
|
2220
2243
|
function useToast() {
|
|
2221
|
-
const [state, setState] =
|
|
2222
|
-
|
|
2244
|
+
const [state, setState] = React25__namespace.useState(memoryState);
|
|
2245
|
+
React25__namespace.useEffect(() => {
|
|
2223
2246
|
listeners.push(setState);
|
|
2224
2247
|
return () => {
|
|
2225
2248
|
const index = listeners.indexOf(setState);
|
|
@@ -2318,6 +2341,7 @@ exports.NavigationMenuList = NavigationMenuList;
|
|
|
2318
2341
|
exports.NavigationMenuTrigger = NavigationMenuTrigger;
|
|
2319
2342
|
exports.NavigationMenuViewport = NavigationMenuViewport;
|
|
2320
2343
|
exports.Progress = Progress;
|
|
2344
|
+
exports.Select = Select;
|
|
2321
2345
|
exports.Separator = Separator2;
|
|
2322
2346
|
exports.Sheet = Sheet;
|
|
2323
2347
|
exports.SheetClose = SheetClose;
|