@onesaz/ui 0.3.18 → 0.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +60 -7
- package/dist/index.js +712 -417
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1185,31 +1185,117 @@ TextField.displayName = "TextField";
|
|
|
1185
1185
|
|
|
1186
1186
|
// src/components/checkbox.tsx
|
|
1187
1187
|
import * as React12 from "react";
|
|
1188
|
-
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1188
|
+
import { jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1189
1189
|
var Checkbox = React12.forwardRef(
|
|
1190
|
-
({
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1190
|
+
({
|
|
1191
|
+
className,
|
|
1192
|
+
checked,
|
|
1193
|
+
defaultChecked,
|
|
1194
|
+
onChange,
|
|
1195
|
+
disabled,
|
|
1196
|
+
indeterminate = false,
|
|
1197
|
+
...props
|
|
1198
|
+
}, ref) => {
|
|
1199
|
+
const inputRef = React12.useRef(null);
|
|
1200
|
+
React12.useImperativeHandle(ref, () => inputRef.current);
|
|
1201
|
+
const [isChecked, setIsChecked] = React12.useState(
|
|
1202
|
+
checked !== void 0 ? Boolean(checked) : Boolean(defaultChecked)
|
|
1203
|
+
);
|
|
1204
|
+
React12.useEffect(() => {
|
|
1205
|
+
if (checked !== void 0) setIsChecked(Boolean(checked));
|
|
1206
|
+
}, [checked]);
|
|
1207
|
+
React12.useEffect(() => {
|
|
1208
|
+
if (inputRef.current) {
|
|
1209
|
+
inputRef.current.indeterminate = indeterminate;
|
|
1210
|
+
}
|
|
1211
|
+
}, [indeterminate]);
|
|
1212
|
+
const handleChange = (e) => {
|
|
1213
|
+
if (checked === void 0) setIsChecked(e.target.checked);
|
|
1214
|
+
onChange?.(e);
|
|
1215
|
+
};
|
|
1216
|
+
const active = isChecked || indeterminate;
|
|
1217
|
+
return /* @__PURE__ */ jsxs3(
|
|
1218
|
+
"label",
|
|
1219
|
+
{
|
|
1220
|
+
className: cn(
|
|
1221
|
+
"relative inline-flex h-4 w-4 shrink-0",
|
|
1222
|
+
disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
1223
|
+
className
|
|
1224
|
+
),
|
|
1225
|
+
children: [
|
|
1226
|
+
/* @__PURE__ */ jsx12(
|
|
1227
|
+
"input",
|
|
1228
|
+
{
|
|
1229
|
+
ref: inputRef,
|
|
1230
|
+
type: "checkbox",
|
|
1231
|
+
checked,
|
|
1232
|
+
defaultChecked,
|
|
1233
|
+
onChange: handleChange,
|
|
1234
|
+
disabled,
|
|
1235
|
+
className: "peer sr-only",
|
|
1236
|
+
...props
|
|
1237
|
+
}
|
|
1238
|
+
),
|
|
1239
|
+
/* @__PURE__ */ jsx12(
|
|
1240
|
+
"span",
|
|
1241
|
+
{
|
|
1242
|
+
"aria-hidden": "true",
|
|
1243
|
+
className: cn(
|
|
1244
|
+
"h-4 w-4 rounded-sm border transition-colors duration-150",
|
|
1245
|
+
"flex items-center justify-center",
|
|
1246
|
+
// Focus ring mirrors the hidden input's focus-visible state
|
|
1247
|
+
"peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-background peer-focus-visible:outline-none",
|
|
1248
|
+
active ? "bg-accent border-accent text-accent-foreground" : "bg-background border-border text-transparent"
|
|
1249
|
+
),
|
|
1250
|
+
children: indeterminate ? (
|
|
1251
|
+
// Dash for indeterminate
|
|
1252
|
+
/* @__PURE__ */ jsx12(
|
|
1253
|
+
"svg",
|
|
1254
|
+
{
|
|
1255
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1256
|
+
width: "10",
|
|
1257
|
+
height: "10",
|
|
1258
|
+
viewBox: "0 0 24 24",
|
|
1259
|
+
fill: "none",
|
|
1260
|
+
stroke: "currentColor",
|
|
1261
|
+
strokeWidth: "3.5",
|
|
1262
|
+
strokeLinecap: "round",
|
|
1263
|
+
strokeLinejoin: "round",
|
|
1264
|
+
children: /* @__PURE__ */ jsx12("path", { d: "M5 12h14" })
|
|
1265
|
+
}
|
|
1266
|
+
)
|
|
1267
|
+
) : (
|
|
1268
|
+
// Checkmark
|
|
1269
|
+
/* @__PURE__ */ jsx12(
|
|
1270
|
+
"svg",
|
|
1271
|
+
{
|
|
1272
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1273
|
+
width: "10",
|
|
1274
|
+
height: "10",
|
|
1275
|
+
viewBox: "0 0 24 24",
|
|
1276
|
+
fill: "none",
|
|
1277
|
+
stroke: "currentColor",
|
|
1278
|
+
strokeWidth: "3.5",
|
|
1279
|
+
strokeLinecap: "round",
|
|
1280
|
+
strokeLinejoin: "round",
|
|
1281
|
+
children: /* @__PURE__ */ jsx12("polyline", { points: "20 6 9 17 4 12" })
|
|
1282
|
+
}
|
|
1283
|
+
)
|
|
1284
|
+
)
|
|
1285
|
+
}
|
|
1286
|
+
)
|
|
1287
|
+
]
|
|
1288
|
+
}
|
|
1289
|
+
);
|
|
1290
|
+
}
|
|
1205
1291
|
);
|
|
1206
1292
|
Checkbox.displayName = "Checkbox";
|
|
1207
1293
|
|
|
1208
1294
|
// src/components/switch.tsx
|
|
1209
1295
|
import * as React13 from "react";
|
|
1210
|
-
import { jsx as jsx13, jsxs as
|
|
1296
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1211
1297
|
var Switch = React13.forwardRef(
|
|
1212
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1298
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxs4("label", { className: cn("relative inline-flex items-center cursor-pointer", className), children: [
|
|
1213
1299
|
/* @__PURE__ */ jsx13(
|
|
1214
1300
|
"input",
|
|
1215
1301
|
{
|
|
@@ -1241,7 +1327,7 @@ Switch.displayName = "Switch";
|
|
|
1241
1327
|
// src/components/radio.tsx
|
|
1242
1328
|
import * as React14 from "react";
|
|
1243
1329
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
1244
|
-
import { jsx as jsx14, jsxs as
|
|
1330
|
+
import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1245
1331
|
var RadioGroupContext = React14.createContext({});
|
|
1246
1332
|
var RadioGroup = React14.forwardRef(({ className, orientation = "vertical", size = "md", ...props }, ref) => {
|
|
1247
1333
|
return /* @__PURE__ */ jsx14(RadioGroupContext.Provider, { value: { size }, children: /* @__PURE__ */ jsx14(
|
|
@@ -1306,9 +1392,9 @@ var Radio = React14.forwardRef(({ className, label, description, id: idProp, val
|
|
|
1306
1392
|
if (!label && !description) {
|
|
1307
1393
|
return /* @__PURE__ */ jsx14(RadioGroupItem, { ref, value, size, ...props });
|
|
1308
1394
|
}
|
|
1309
|
-
return /* @__PURE__ */
|
|
1395
|
+
return /* @__PURE__ */ jsxs5("div", { className: cn("flex items-start gap-3", className), children: [
|
|
1310
1396
|
/* @__PURE__ */ jsx14(RadioGroupItem, { ref, id, value, size, ...props }),
|
|
1311
|
-
/* @__PURE__ */
|
|
1397
|
+
/* @__PURE__ */ jsxs5("div", { className: "grid gap-1", children: [
|
|
1312
1398
|
label && /* @__PURE__ */ jsx14(
|
|
1313
1399
|
"label",
|
|
1314
1400
|
{
|
|
@@ -1325,7 +1411,7 @@ Radio.displayName = "Radio";
|
|
|
1325
1411
|
|
|
1326
1412
|
// src/components/form.tsx
|
|
1327
1413
|
import * as React15 from "react";
|
|
1328
|
-
import { jsx as jsx15, jsxs as
|
|
1414
|
+
import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1329
1415
|
var FormControlContext = React15.createContext({});
|
|
1330
1416
|
function useFormControl() {
|
|
1331
1417
|
return React15.useContext(FormControlContext);
|
|
@@ -1374,7 +1460,7 @@ var FormLabel = React15.forwardRef(
|
|
|
1374
1460
|
const disabled = disabledProp ?? context.disabled;
|
|
1375
1461
|
const required = requiredProp ?? context.required;
|
|
1376
1462
|
const id = htmlFor ?? context.id;
|
|
1377
|
-
return /* @__PURE__ */
|
|
1463
|
+
return /* @__PURE__ */ jsxs6(
|
|
1378
1464
|
"label",
|
|
1379
1465
|
{
|
|
1380
1466
|
ref,
|
|
@@ -1440,7 +1526,7 @@ FormGroup.displayName = "FormGroup";
|
|
|
1440
1526
|
// src/components/slider.tsx
|
|
1441
1527
|
import * as React16 from "react";
|
|
1442
1528
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
1443
|
-
import { Fragment as Fragment2, jsx as jsx16, jsxs as
|
|
1529
|
+
import { Fragment as Fragment2, jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1444
1530
|
var Slider = React16.forwardRef(({
|
|
1445
1531
|
className,
|
|
1446
1532
|
min = 0,
|
|
@@ -1469,7 +1555,7 @@ var Slider = React16.forwardRef(({
|
|
|
1469
1555
|
};
|
|
1470
1556
|
const currentValue = internalValue[0];
|
|
1471
1557
|
const displayValue = valueFormatter ? valueFormatter(currentValue) : currentValue.toString();
|
|
1472
|
-
const sliderElement = /* @__PURE__ */
|
|
1558
|
+
const sliderElement = /* @__PURE__ */ jsxs7(
|
|
1473
1559
|
SliderPrimitive.Root,
|
|
1474
1560
|
{
|
|
1475
1561
|
ref,
|
|
@@ -1501,19 +1587,19 @@ var Slider = React16.forwardRef(({
|
|
|
1501
1587
|
right: "flex items-center gap-3"
|
|
1502
1588
|
};
|
|
1503
1589
|
const orderMap = {
|
|
1504
|
-
top: /* @__PURE__ */
|
|
1590
|
+
top: /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
1505
1591
|
valueElement,
|
|
1506
1592
|
sliderElement
|
|
1507
1593
|
] }),
|
|
1508
|
-
bottom: /* @__PURE__ */
|
|
1594
|
+
bottom: /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
1509
1595
|
sliderElement,
|
|
1510
1596
|
valueElement
|
|
1511
1597
|
] }),
|
|
1512
|
-
left: /* @__PURE__ */
|
|
1598
|
+
left: /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
1513
1599
|
valueElement,
|
|
1514
1600
|
sliderElement
|
|
1515
1601
|
] }),
|
|
1516
|
-
right: /* @__PURE__ */
|
|
1602
|
+
right: /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
1517
1603
|
sliderElement,
|
|
1518
1604
|
valueElement
|
|
1519
1605
|
] })
|
|
@@ -1525,7 +1611,7 @@ Slider.displayName = SliderPrimitive.Root.displayName;
|
|
|
1525
1611
|
// src/components/range-slider.tsx
|
|
1526
1612
|
import * as React17 from "react";
|
|
1527
1613
|
import * as SliderPrimitive2 from "@radix-ui/react-slider";
|
|
1528
|
-
import { jsx as jsx17, jsxs as
|
|
1614
|
+
import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1529
1615
|
var RangeSlider = React17.forwardRef(({
|
|
1530
1616
|
className,
|
|
1531
1617
|
min = 0,
|
|
@@ -1560,18 +1646,18 @@ var RangeSlider = React17.forwardRef(({
|
|
|
1560
1646
|
};
|
|
1561
1647
|
const minValue = internalValue[0];
|
|
1562
1648
|
const maxValue = internalValue[1];
|
|
1563
|
-
return /* @__PURE__ */
|
|
1564
|
-
showValues && valuePosition === "top" && /* @__PURE__ */
|
|
1565
|
-
/* @__PURE__ */
|
|
1649
|
+
return /* @__PURE__ */ jsxs8("div", { className: cn("w-full", className), children: [
|
|
1650
|
+
showValues && valuePosition === "top" && /* @__PURE__ */ jsxs8("div", { className: "flex justify-between mb-2", children: [
|
|
1651
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex flex-col items-start", children: [
|
|
1566
1652
|
/* @__PURE__ */ jsx17("span", { className: "text-xs text-muted-foreground", children: minLabel }),
|
|
1567
1653
|
/* @__PURE__ */ jsx17("span", { className: "text-sm font-semibold text-accent", children: formatValue(minValue) })
|
|
1568
1654
|
] }),
|
|
1569
|
-
/* @__PURE__ */
|
|
1655
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex flex-col items-end", children: [
|
|
1570
1656
|
/* @__PURE__ */ jsx17("span", { className: "text-xs text-muted-foreground", children: maxLabel }),
|
|
1571
1657
|
/* @__PURE__ */ jsx17("span", { className: "text-sm font-semibold text-accent", children: formatValue(maxValue) })
|
|
1572
1658
|
] })
|
|
1573
1659
|
] }),
|
|
1574
|
-
/* @__PURE__ */
|
|
1660
|
+
/* @__PURE__ */ jsxs8(
|
|
1575
1661
|
SliderPrimitive2.Root,
|
|
1576
1662
|
{
|
|
1577
1663
|
ref,
|
|
@@ -1604,17 +1690,17 @@ var RangeSlider = React17.forwardRef(({
|
|
|
1604
1690
|
]
|
|
1605
1691
|
}
|
|
1606
1692
|
),
|
|
1607
|
-
showValues && valuePosition === "bottom" && /* @__PURE__ */
|
|
1608
|
-
/* @__PURE__ */
|
|
1693
|
+
showValues && valuePosition === "bottom" && /* @__PURE__ */ jsxs8("div", { className: "flex justify-between mt-2", children: [
|
|
1694
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex flex-col items-start", children: [
|
|
1609
1695
|
/* @__PURE__ */ jsx17("span", { className: "text-xs text-muted-foreground", children: minLabel }),
|
|
1610
1696
|
/* @__PURE__ */ jsx17("span", { className: "text-sm font-semibold text-accent", children: formatValue(minValue) })
|
|
1611
1697
|
] }),
|
|
1612
|
-
/* @__PURE__ */
|
|
1698
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex flex-col items-end", children: [
|
|
1613
1699
|
/* @__PURE__ */ jsx17("span", { className: "text-xs text-muted-foreground", children: maxLabel }),
|
|
1614
1700
|
/* @__PURE__ */ jsx17("span", { className: "text-sm font-semibold text-accent", children: formatValue(maxValue) })
|
|
1615
1701
|
] })
|
|
1616
1702
|
] }),
|
|
1617
|
-
showValues && /* @__PURE__ */ jsx17("div", { className: "flex justify-center mt-1", children: /* @__PURE__ */
|
|
1703
|
+
showValues && /* @__PURE__ */ jsx17("div", { className: "flex justify-center mt-1", children: /* @__PURE__ */ jsxs8("span", { className: "text-xs text-muted-foreground", children: [
|
|
1618
1704
|
"Range: ",
|
|
1619
1705
|
formatValue(minValue),
|
|
1620
1706
|
" - ",
|
|
@@ -1722,7 +1808,7 @@ Badge.displayName = "Badge";
|
|
|
1722
1808
|
|
|
1723
1809
|
// src/components/chip.tsx
|
|
1724
1810
|
import * as React20 from "react";
|
|
1725
|
-
import { jsx as jsx20, jsxs as
|
|
1811
|
+
import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1726
1812
|
var filledColorClasses = {
|
|
1727
1813
|
default: "bg-muted text-foreground",
|
|
1728
1814
|
primary: "bg-accent text-accent-foreground",
|
|
@@ -1764,7 +1850,7 @@ var Chip = React20.forwardRef(
|
|
|
1764
1850
|
}, ref) => {
|
|
1765
1851
|
const isClickable = clickable || !!onClick;
|
|
1766
1852
|
const content = label ?? children;
|
|
1767
|
-
return /* @__PURE__ */
|
|
1853
|
+
return /* @__PURE__ */ jsxs9(
|
|
1768
1854
|
"div",
|
|
1769
1855
|
{
|
|
1770
1856
|
ref,
|
|
@@ -1843,7 +1929,7 @@ Separator.displayName = "Separator";
|
|
|
1843
1929
|
// src/components/accordion.tsx
|
|
1844
1930
|
import * as React22 from "react";
|
|
1845
1931
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
1846
|
-
import { jsx as jsx22, jsxs as
|
|
1932
|
+
import { jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1847
1933
|
var Accordion = AccordionPrimitive.Root;
|
|
1848
1934
|
var AccordionItem = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
1849
1935
|
AccordionPrimitive.Item,
|
|
@@ -1857,7 +1943,7 @@ var AccordionItem = React22.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1857
1943
|
}
|
|
1858
1944
|
));
|
|
1859
1945
|
AccordionItem.displayName = "AccordionItem";
|
|
1860
|
-
var AccordionTrigger = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx22(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */
|
|
1946
|
+
var AccordionTrigger = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx22(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs10(
|
|
1861
1947
|
AccordionPrimitive.Trigger,
|
|
1862
1948
|
{
|
|
1863
1949
|
ref,
|
|
@@ -1907,7 +1993,7 @@ AccordionContent.displayName = "AccordionContent";
|
|
|
1907
1993
|
// src/components/select/index.tsx
|
|
1908
1994
|
import * as React23 from "react";
|
|
1909
1995
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
1910
|
-
import { jsx as jsx23, jsxs as
|
|
1996
|
+
import { jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1911
1997
|
var ChevronDownIcon = () => /* @__PURE__ */ jsx23(
|
|
1912
1998
|
"svg",
|
|
1913
1999
|
{
|
|
@@ -1956,7 +2042,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx23(
|
|
|
1956
2042
|
var Select = SelectPrimitive.Root;
|
|
1957
2043
|
var SelectGroup = SelectPrimitive.Group;
|
|
1958
2044
|
var SelectValue = SelectPrimitive.Value;
|
|
1959
|
-
var SelectTrigger = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
2045
|
+
var SelectTrigger = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
1960
2046
|
SelectPrimitive.Trigger,
|
|
1961
2047
|
{
|
|
1962
2048
|
ref,
|
|
@@ -2004,7 +2090,7 @@ var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) =
|
|
|
2004
2090
|
}
|
|
2005
2091
|
));
|
|
2006
2092
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
2007
|
-
var SelectContent = React23.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx23(SelectPrimitive.Portal, { children: /* @__PURE__ */
|
|
2093
|
+
var SelectContent = React23.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx23(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs11(
|
|
2008
2094
|
SelectPrimitive.Content,
|
|
2009
2095
|
{
|
|
2010
2096
|
ref,
|
|
@@ -2047,7 +2133,7 @@ var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2047
2133
|
}
|
|
2048
2134
|
));
|
|
2049
2135
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2050
|
-
var SelectItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
2136
|
+
var SelectItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
2051
2137
|
SelectPrimitive.Item,
|
|
2052
2138
|
{
|
|
2053
2139
|
ref,
|
|
@@ -2111,7 +2197,7 @@ NativeSelectOption.displayName = "NativeSelectOption";
|
|
|
2111
2197
|
// src/components/dialog/index.tsx
|
|
2112
2198
|
import * as React24 from "react";
|
|
2113
2199
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2114
|
-
import { jsx as jsx24, jsxs as
|
|
2200
|
+
import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2115
2201
|
var Dialog = DialogPrimitive.Root;
|
|
2116
2202
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
2117
2203
|
var DialogPortal = DialogPrimitive.Portal;
|
|
@@ -2129,9 +2215,9 @@ var DialogOverlay = React24.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2129
2215
|
}
|
|
2130
2216
|
));
|
|
2131
2217
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
2132
|
-
var DialogContent = React24.forwardRef(({ className, children, hideCloseButton = false, size = "lg", ...props }, ref) => /* @__PURE__ */
|
|
2218
|
+
var DialogContent = React24.forwardRef(({ className, children, hideCloseButton = false, size = "lg", ...props }, ref) => /* @__PURE__ */ jsxs12(DialogPortal, { children: [
|
|
2133
2219
|
/* @__PURE__ */ jsx24(DialogOverlay, {}),
|
|
2134
|
-
/* @__PURE__ */
|
|
2220
|
+
/* @__PURE__ */ jsxs12(
|
|
2135
2221
|
DialogPrimitive.Content,
|
|
2136
2222
|
{
|
|
2137
2223
|
ref,
|
|
@@ -2152,8 +2238,8 @@ var DialogContent = React24.forwardRef(({ className, children, hideCloseButton =
|
|
|
2152
2238
|
...props,
|
|
2153
2239
|
children: [
|
|
2154
2240
|
children,
|
|
2155
|
-
!hideCloseButton && /* @__PURE__ */
|
|
2156
|
-
/* @__PURE__ */
|
|
2241
|
+
!hideCloseButton && /* @__PURE__ */ jsxs12(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
2242
|
+
/* @__PURE__ */ jsxs12(
|
|
2157
2243
|
"svg",
|
|
2158
2244
|
{
|
|
2159
2245
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2234,7 +2320,7 @@ var DialogNamespace = Object.assign(Dialog, {
|
|
|
2234
2320
|
// src/components/alert-dialog.tsx
|
|
2235
2321
|
import * as React25 from "react";
|
|
2236
2322
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
2237
|
-
import { jsx as jsx25, jsxs as
|
|
2323
|
+
import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2238
2324
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
2239
2325
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
2240
2326
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
@@ -2275,23 +2361,23 @@ var variantStyles = {
|
|
|
2275
2361
|
}
|
|
2276
2362
|
};
|
|
2277
2363
|
var VariantIcons = {
|
|
2278
|
-
default: ({ className }) => /* @__PURE__ */
|
|
2364
|
+
default: ({ className }) => /* @__PURE__ */ jsxs13("svg", { className, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2279
2365
|
/* @__PURE__ */ jsx25("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2280
2366
|
/* @__PURE__ */ jsx25("path", { d: "M12 16v-4M12 8h.01" })
|
|
2281
2367
|
] }),
|
|
2282
|
-
destructive: ({ className }) => /* @__PURE__ */
|
|
2368
|
+
destructive: ({ className }) => /* @__PURE__ */ jsxs13("svg", { className, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2283
2369
|
/* @__PURE__ */ jsx25("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2284
2370
|
/* @__PURE__ */ jsx25("path", { d: "m15 9-6 6M9 9l6 6" })
|
|
2285
2371
|
] }),
|
|
2286
|
-
success: ({ className }) => /* @__PURE__ */
|
|
2372
|
+
success: ({ className }) => /* @__PURE__ */ jsxs13("svg", { className, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2287
2373
|
/* @__PURE__ */ jsx25("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2288
2374
|
/* @__PURE__ */ jsx25("path", { d: "m9 12 2 2 4-4" })
|
|
2289
2375
|
] }),
|
|
2290
|
-
warning: ({ className }) => /* @__PURE__ */
|
|
2376
|
+
warning: ({ className }) => /* @__PURE__ */ jsxs13("svg", { className, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2291
2377
|
/* @__PURE__ */ jsx25("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }),
|
|
2292
2378
|
/* @__PURE__ */ jsx25("path", { d: "M12 9v4M12 17h.01" })
|
|
2293
2379
|
] }),
|
|
2294
|
-
info: ({ className }) => /* @__PURE__ */
|
|
2380
|
+
info: ({ className }) => /* @__PURE__ */ jsxs13("svg", { className, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2295
2381
|
/* @__PURE__ */ jsx25("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2296
2382
|
/* @__PURE__ */ jsx25("path", { d: "M12 16v-4M12 8h.01" })
|
|
2297
2383
|
] })
|
|
@@ -2299,7 +2385,7 @@ var VariantIcons = {
|
|
|
2299
2385
|
var AlertDialogContent = React25.forwardRef(({ className, variant = "default", showIcon = true, children, ...props }, ref) => {
|
|
2300
2386
|
const IconComponent = VariantIcons[variant];
|
|
2301
2387
|
const styles = variantStyles[variant];
|
|
2302
|
-
return /* @__PURE__ */
|
|
2388
|
+
return /* @__PURE__ */ jsxs13(AlertDialogPortal, { children: [
|
|
2303
2389
|
/* @__PURE__ */ jsx25(AlertDialogOverlay, {}),
|
|
2304
2390
|
/* @__PURE__ */ jsx25(
|
|
2305
2391
|
AlertDialogPrimitive.Content,
|
|
@@ -2318,7 +2404,7 @@ var AlertDialogContent = React25.forwardRef(({ className, variant = "default", s
|
|
|
2318
2404
|
className
|
|
2319
2405
|
),
|
|
2320
2406
|
...props,
|
|
2321
|
-
children: /* @__PURE__ */
|
|
2407
|
+
children: /* @__PURE__ */ jsxs13("div", { className: "flex gap-4 items-start", children: [
|
|
2322
2408
|
showIcon && /* @__PURE__ */ jsx25("div", { className: cn("shrink-0 mt-1", styles.icon), children: /* @__PURE__ */ jsx25(IconComponent, { className: "h-6 w-6" }) }),
|
|
2323
2409
|
/* @__PURE__ */ jsx25("div", { className: "flex-1", children })
|
|
2324
2410
|
] })
|
|
@@ -2436,7 +2522,7 @@ Spinner.displayName = "Spinner";
|
|
|
2436
2522
|
|
|
2437
2523
|
// src/components/alert.tsx
|
|
2438
2524
|
import * as React27 from "react";
|
|
2439
|
-
import { jsx as jsx27, jsxs as
|
|
2525
|
+
import { jsx as jsx27, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2440
2526
|
var variants = {
|
|
2441
2527
|
default: {
|
|
2442
2528
|
iconBg: "bg-zinc-900",
|
|
@@ -2480,7 +2566,7 @@ var CheckIcon2 = ({ className }) => /* @__PURE__ */ jsx27(
|
|
|
2480
2566
|
children: /* @__PURE__ */ jsx27("path", { d: "m5 13 4 4L19 7" })
|
|
2481
2567
|
}
|
|
2482
2568
|
);
|
|
2483
|
-
var InfoIcon = ({ className }) => /* @__PURE__ */
|
|
2569
|
+
var InfoIcon = ({ className }) => /* @__PURE__ */ jsxs14(
|
|
2484
2570
|
"svg",
|
|
2485
2571
|
{
|
|
2486
2572
|
className,
|
|
@@ -2494,7 +2580,7 @@ var InfoIcon = ({ className }) => /* @__PURE__ */ jsxs13(
|
|
|
2494
2580
|
]
|
|
2495
2581
|
}
|
|
2496
2582
|
);
|
|
2497
|
-
var WarningIcon = ({ className }) => /* @__PURE__ */
|
|
2583
|
+
var WarningIcon = ({ className }) => /* @__PURE__ */ jsxs14(
|
|
2498
2584
|
"svg",
|
|
2499
2585
|
{
|
|
2500
2586
|
className,
|
|
@@ -2508,7 +2594,7 @@ var WarningIcon = ({ className }) => /* @__PURE__ */ jsxs13(
|
|
|
2508
2594
|
]
|
|
2509
2595
|
}
|
|
2510
2596
|
);
|
|
2511
|
-
var XCircleIcon = ({ className }) => /* @__PURE__ */
|
|
2597
|
+
var XCircleIcon = ({ className }) => /* @__PURE__ */ jsxs14(
|
|
2512
2598
|
"svg",
|
|
2513
2599
|
{
|
|
2514
2600
|
className,
|
|
@@ -2576,7 +2662,7 @@ var Alert = ({
|
|
|
2576
2662
|
onClose?.();
|
|
2577
2663
|
};
|
|
2578
2664
|
if (!visible) return null;
|
|
2579
|
-
return /* @__PURE__ */
|
|
2665
|
+
return /* @__PURE__ */ jsxs14(
|
|
2580
2666
|
"div",
|
|
2581
2667
|
{
|
|
2582
2668
|
role: "alert",
|
|
@@ -2652,7 +2738,7 @@ var AlertDescription = ({
|
|
|
2652
2738
|
// src/components/tabs.tsx
|
|
2653
2739
|
import * as React28 from "react";
|
|
2654
2740
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
2655
|
-
import { jsx as jsx28, jsxs as
|
|
2741
|
+
import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2656
2742
|
var Tabs = TabsPrimitive.Root;
|
|
2657
2743
|
var TabsList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
2658
2744
|
TabsPrimitive.List,
|
|
@@ -2709,7 +2795,7 @@ var UnderlineTabsList = React28.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2709
2795
|
}
|
|
2710
2796
|
));
|
|
2711
2797
|
UnderlineTabsList.displayName = "UnderlineTabsList";
|
|
2712
|
-
var UnderlineTabsTrigger = React28.forwardRef(({ className, children, count, ...props }, ref) => /* @__PURE__ */
|
|
2798
|
+
var UnderlineTabsTrigger = React28.forwardRef(({ className, children, count, ...props }, ref) => /* @__PURE__ */ jsxs15(
|
|
2713
2799
|
TabsPrimitive.Trigger,
|
|
2714
2800
|
{
|
|
2715
2801
|
ref,
|
|
@@ -2772,7 +2858,7 @@ var VerticalTabsList = React28.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2772
2858
|
}
|
|
2773
2859
|
));
|
|
2774
2860
|
VerticalTabsList.displayName = "VerticalTabsList";
|
|
2775
|
-
var VerticalTabsTrigger = React28.forwardRef(({ className, children, icon, ...props }, ref) => /* @__PURE__ */
|
|
2861
|
+
var VerticalTabsTrigger = React28.forwardRef(({ className, children, icon, ...props }, ref) => /* @__PURE__ */ jsxs15(
|
|
2776
2862
|
TabsPrimitive.Trigger,
|
|
2777
2863
|
{
|
|
2778
2864
|
ref,
|
|
@@ -2825,7 +2911,7 @@ VerticalTabsGroupLabel.displayName = "VerticalTabsGroupLabel";
|
|
|
2825
2911
|
// src/components/tooltip.tsx
|
|
2826
2912
|
import * as React29 from "react";
|
|
2827
2913
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
2828
|
-
import { Fragment as Fragment3, jsx as jsx29, jsxs as
|
|
2914
|
+
import { Fragment as Fragment3, jsx as jsx29, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2829
2915
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
2830
2916
|
var TooltipRoot = TooltipPrimitive.Root;
|
|
2831
2917
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
@@ -2839,7 +2925,7 @@ var TooltipArrow = React29.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2839
2925
|
}
|
|
2840
2926
|
));
|
|
2841
2927
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
|
2842
|
-
var TooltipContent = React29.forwardRef(({ className, sideOffset = 4, showArrow = false, children, ...props }, ref) => /* @__PURE__ */
|
|
2928
|
+
var TooltipContent = React29.forwardRef(({ className, sideOffset = 4, showArrow = false, children, ...props }, ref) => /* @__PURE__ */ jsxs16(
|
|
2843
2929
|
TooltipPrimitive.Content,
|
|
2844
2930
|
{
|
|
2845
2931
|
ref,
|
|
@@ -2878,7 +2964,7 @@ var Tooltip = React29.forwardRef(
|
|
|
2878
2964
|
if (disabled) {
|
|
2879
2965
|
return /* @__PURE__ */ jsx29(Fragment3, { children });
|
|
2880
2966
|
}
|
|
2881
|
-
return /* @__PURE__ */ jsx29(TooltipProvider, { children: /* @__PURE__ */
|
|
2967
|
+
return /* @__PURE__ */ jsx29(TooltipProvider, { children: /* @__PURE__ */ jsxs16(
|
|
2882
2968
|
TooltipRoot,
|
|
2883
2969
|
{
|
|
2884
2970
|
delayDuration,
|
|
@@ -2905,7 +2991,7 @@ Tooltip.displayName = "Tooltip";
|
|
|
2905
2991
|
|
|
2906
2992
|
// src/components/progress.tsx
|
|
2907
2993
|
import * as React30 from "react";
|
|
2908
|
-
import { jsx as jsx30, jsxs as
|
|
2994
|
+
import { jsx as jsx30, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2909
2995
|
var linearSizeClasses = {
|
|
2910
2996
|
sm: "h-1",
|
|
2911
2997
|
md: "h-2",
|
|
@@ -2930,7 +3016,7 @@ var LinearProgress = React30.forwardRef(
|
|
|
2930
3016
|
...props
|
|
2931
3017
|
}, ref) => {
|
|
2932
3018
|
const isIndeterminate = value === void 0;
|
|
2933
|
-
return /* @__PURE__ */
|
|
3019
|
+
return /* @__PURE__ */ jsxs17("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
2934
3020
|
/* @__PURE__ */ jsx30(
|
|
2935
3021
|
"div",
|
|
2936
3022
|
{
|
|
@@ -2991,7 +3077,7 @@ var CircularProgress = React30.forwardRef(
|
|
|
2991
3077
|
const radius = (sizeValue - thickness) / 2;
|
|
2992
3078
|
const circumference = 2 * Math.PI * radius;
|
|
2993
3079
|
const strokeDashoffset = isIndeterminate ? 0 : circumference - Math.min(100, Math.max(0, value)) / 100 * circumference;
|
|
2994
|
-
return /* @__PURE__ */
|
|
3080
|
+
return /* @__PURE__ */ jsxs17(
|
|
2995
3081
|
"div",
|
|
2996
3082
|
{
|
|
2997
3083
|
ref,
|
|
@@ -3003,7 +3089,7 @@ var CircularProgress = React30.forwardRef(
|
|
|
3003
3089
|
"aria-valuemax": 100,
|
|
3004
3090
|
...props,
|
|
3005
3091
|
children: [
|
|
3006
|
-
/* @__PURE__ */
|
|
3092
|
+
/* @__PURE__ */ jsxs17(
|
|
3007
3093
|
"svg",
|
|
3008
3094
|
{
|
|
3009
3095
|
className: cn(isIndeterminate && "animate-spin"),
|
|
@@ -3155,7 +3241,7 @@ var TableNamespace = Object.assign(Table, {
|
|
|
3155
3241
|
|
|
3156
3242
|
// src/components/avatar.tsx
|
|
3157
3243
|
import * as React32 from "react";
|
|
3158
|
-
import { jsx as jsx32, jsxs as
|
|
3244
|
+
import { jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3159
3245
|
var sizeClasses4 = {
|
|
3160
3246
|
xs: "h-6 w-6 text-xs",
|
|
3161
3247
|
sm: "h-8 w-8 text-sm",
|
|
@@ -3210,7 +3296,7 @@ var Avatar = React32.forwardRef(
|
|
|
3210
3296
|
}
|
|
3211
3297
|
) : fallbackElement ? fallbackElement : fallback ? /* @__PURE__ */ jsx32("span", { className: "font-medium", children: getInitials(fallback) }) : (
|
|
3212
3298
|
// Default user icon
|
|
3213
|
-
/* @__PURE__ */
|
|
3299
|
+
/* @__PURE__ */ jsxs18(
|
|
3214
3300
|
"svg",
|
|
3215
3301
|
{
|
|
3216
3302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3238,7 +3324,7 @@ var AvatarGroup = React32.forwardRef(
|
|
|
3238
3324
|
const childArray = React32.Children.toArray(children);
|
|
3239
3325
|
const visibleChildren = max ? childArray.slice(0, max) : childArray;
|
|
3240
3326
|
const remainingCount = max ? childArray.length - max : 0;
|
|
3241
|
-
return /* @__PURE__ */
|
|
3327
|
+
return /* @__PURE__ */ jsxs18(
|
|
3242
3328
|
"div",
|
|
3243
3329
|
{
|
|
3244
3330
|
ref,
|
|
@@ -3274,7 +3360,7 @@ AvatarGroup.displayName = "AvatarGroup";
|
|
|
3274
3360
|
|
|
3275
3361
|
// src/components/skeleton.tsx
|
|
3276
3362
|
import * as React33 from "react";
|
|
3277
|
-
import { jsx as jsx33, jsxs as
|
|
3363
|
+
import { jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3278
3364
|
var Skeleton = React33.forwardRef(
|
|
3279
3365
|
({
|
|
3280
3366
|
variant = "text",
|
|
@@ -3380,7 +3466,7 @@ var SkeletonCard = React33.forwardRef(
|
|
|
3380
3466
|
className,
|
|
3381
3467
|
...props
|
|
3382
3468
|
}, ref) => {
|
|
3383
|
-
return /* @__PURE__ */
|
|
3469
|
+
return /* @__PURE__ */ jsxs19(
|
|
3384
3470
|
"div",
|
|
3385
3471
|
{
|
|
3386
3472
|
ref,
|
|
@@ -3395,7 +3481,7 @@ var SkeletonCard = React33.forwardRef(
|
|
|
3395
3481
|
animation
|
|
3396
3482
|
}
|
|
3397
3483
|
),
|
|
3398
|
-
/* @__PURE__ */
|
|
3484
|
+
/* @__PURE__ */ jsxs19("div", { className: "space-y-2", children: [
|
|
3399
3485
|
/* @__PURE__ */ jsx33(Skeleton, { variant: "text", width: "60%", animation }),
|
|
3400
3486
|
/* @__PURE__ */ jsx33(SkeletonText, { lines, animation })
|
|
3401
3487
|
] })
|
|
@@ -3430,7 +3516,7 @@ SkeletonTableRow.displayName = "SkeletonTableRow";
|
|
|
3430
3516
|
|
|
3431
3517
|
// src/components/pagination.tsx
|
|
3432
3518
|
import * as React34 from "react";
|
|
3433
|
-
import { jsx as jsx34, jsxs as
|
|
3519
|
+
import { jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3434
3520
|
var Pagination = React34.forwardRef(
|
|
3435
3521
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
3436
3522
|
"nav",
|
|
@@ -3468,7 +3554,7 @@ var PaginationLink = React34.forwardRef(
|
|
|
3468
3554
|
)
|
|
3469
3555
|
);
|
|
3470
3556
|
PaginationLink.displayName = "PaginationLink";
|
|
3471
|
-
var PaginationPrevious = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3557
|
+
var PaginationPrevious = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs20(
|
|
3472
3558
|
Button,
|
|
3473
3559
|
{
|
|
3474
3560
|
ref,
|
|
@@ -3498,7 +3584,7 @@ var PaginationPrevious = React34.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3498
3584
|
}
|
|
3499
3585
|
));
|
|
3500
3586
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
3501
|
-
var PaginationNext = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3587
|
+
var PaginationNext = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs20(
|
|
3502
3588
|
Button,
|
|
3503
3589
|
{
|
|
3504
3590
|
ref,
|
|
@@ -3528,7 +3614,7 @@ var PaginationNext = React34.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
3528
3614
|
}
|
|
3529
3615
|
));
|
|
3530
3616
|
PaginationNext.displayName = "PaginationNext";
|
|
3531
|
-
var PaginationEllipsis = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3617
|
+
var PaginationEllipsis = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs20(
|
|
3532
3618
|
"span",
|
|
3533
3619
|
{
|
|
3534
3620
|
ref,
|
|
@@ -3536,7 +3622,7 @@ var PaginationEllipsis = React34.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3536
3622
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
3537
3623
|
...props,
|
|
3538
3624
|
children: [
|
|
3539
|
-
/* @__PURE__ */
|
|
3625
|
+
/* @__PURE__ */ jsxs20(
|
|
3540
3626
|
"svg",
|
|
3541
3627
|
{
|
|
3542
3628
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3572,7 +3658,8 @@ var PaginationNamespace = Object.assign(Pagination, {
|
|
|
3572
3658
|
|
|
3573
3659
|
// src/components/combobox/index.tsx
|
|
3574
3660
|
import * as React35 from "react";
|
|
3575
|
-
import {
|
|
3661
|
+
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
3662
|
+
import { Fragment as Fragment4, jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3576
3663
|
function isMultipleProps(props) {
|
|
3577
3664
|
return props.multiple === true;
|
|
3578
3665
|
}
|
|
@@ -3597,6 +3684,71 @@ function Adornment({
|
|
|
3597
3684
|
}
|
|
3598
3685
|
return /* @__PURE__ */ jsx35("span", { className: cn("shrink-0 pointer-events-none opacity-50", className), children });
|
|
3599
3686
|
}
|
|
3687
|
+
function OptionItem({
|
|
3688
|
+
option,
|
|
3689
|
+
isSelected,
|
|
3690
|
+
isMultiple,
|
|
3691
|
+
onSelect
|
|
3692
|
+
}) {
|
|
3693
|
+
return /* @__PURE__ */ jsxs21(
|
|
3694
|
+
"button",
|
|
3695
|
+
{
|
|
3696
|
+
type: "button",
|
|
3697
|
+
disabled: option.disabled,
|
|
3698
|
+
onClick: onSelect,
|
|
3699
|
+
className: cn(
|
|
3700
|
+
"relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none",
|
|
3701
|
+
"hover:bg-muted hover:text-foreground",
|
|
3702
|
+
"focus:bg-muted focus:text-foreground",
|
|
3703
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
3704
|
+
isSelected && "bg-muted"
|
|
3705
|
+
),
|
|
3706
|
+
children: [
|
|
3707
|
+
/* @__PURE__ */ jsx35("span", { className: "absolute left-2 flex h-4 w-4 items-center justify-center", children: isMultiple ? /* @__PURE__ */ jsx35(
|
|
3708
|
+
"div",
|
|
3709
|
+
{
|
|
3710
|
+
className: cn(
|
|
3711
|
+
"flex h-4 w-4 items-center justify-center rounded border border-input",
|
|
3712
|
+
isSelected && "bg-accent border-accent"
|
|
3713
|
+
),
|
|
3714
|
+
children: isSelected && /* @__PURE__ */ jsx35(
|
|
3715
|
+
"svg",
|
|
3716
|
+
{
|
|
3717
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3718
|
+
width: "24",
|
|
3719
|
+
height: "24",
|
|
3720
|
+
viewBox: "0 0 24 24",
|
|
3721
|
+
fill: "none",
|
|
3722
|
+
stroke: "white",
|
|
3723
|
+
strokeWidth: "3",
|
|
3724
|
+
strokeLinecap: "round",
|
|
3725
|
+
strokeLinejoin: "round",
|
|
3726
|
+
className: "h-3 w-3",
|
|
3727
|
+
children: /* @__PURE__ */ jsx35("polyline", { points: "20 6 9 17 4 12" })
|
|
3728
|
+
}
|
|
3729
|
+
)
|
|
3730
|
+
}
|
|
3731
|
+
) : isSelected && /* @__PURE__ */ jsx35(
|
|
3732
|
+
"svg",
|
|
3733
|
+
{
|
|
3734
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3735
|
+
width: "24",
|
|
3736
|
+
height: "24",
|
|
3737
|
+
viewBox: "0 0 24 24",
|
|
3738
|
+
fill: "none",
|
|
3739
|
+
stroke: "currentColor",
|
|
3740
|
+
strokeWidth: "2",
|
|
3741
|
+
strokeLinecap: "round",
|
|
3742
|
+
strokeLinejoin: "round",
|
|
3743
|
+
className: "h-4 w-4",
|
|
3744
|
+
children: /* @__PURE__ */ jsx35("polyline", { points: "20 6 9 17 4 12" })
|
|
3745
|
+
}
|
|
3746
|
+
) }),
|
|
3747
|
+
option.label
|
|
3748
|
+
]
|
|
3749
|
+
}
|
|
3750
|
+
);
|
|
3751
|
+
}
|
|
3600
3752
|
var Combobox = React35.forwardRef(
|
|
3601
3753
|
(props, ref) => {
|
|
3602
3754
|
const {
|
|
@@ -3611,7 +3763,9 @@ var Combobox = React35.forwardRef(
|
|
|
3611
3763
|
startAdornment,
|
|
3612
3764
|
onStartAdornmentClick,
|
|
3613
3765
|
endAdornment,
|
|
3614
|
-
onEndAdornmentClick
|
|
3766
|
+
onEndAdornmentClick,
|
|
3767
|
+
virtual = false,
|
|
3768
|
+
virtualItemHeight = 36
|
|
3615
3769
|
} = props;
|
|
3616
3770
|
const labelKey = props.labelKey ?? "label";
|
|
3617
3771
|
const valueKey = props.valueKey ?? "value";
|
|
@@ -3649,6 +3803,7 @@ var Combobox = React35.forwardRef(
|
|
|
3649
3803
|
const [internalSearch, setInternalSearch] = React35.useState("");
|
|
3650
3804
|
const containerRef = React35.useRef(null);
|
|
3651
3805
|
const searchInputRef = React35.useRef(null);
|
|
3806
|
+
const listContainerRef = React35.useRef(null);
|
|
3652
3807
|
const isMultiple = isMultipleProps(props);
|
|
3653
3808
|
const selectAll = isMultiple ? props.selectAll ?? false : false;
|
|
3654
3809
|
const selectAllLabel = isMultiple ? props.selectAllLabel ?? "Select all" : "Select all";
|
|
@@ -3674,6 +3829,12 @@ var Combobox = React35.forwardRef(
|
|
|
3674
3829
|
[normalizedOptions]
|
|
3675
3830
|
);
|
|
3676
3831
|
const allSelected = isMultiple && selectableOptions.length > 0 && selectableOptions.every((option) => selectedValueKeys.has(option.value));
|
|
3832
|
+
const rowVirtualizer = useVirtualizer({
|
|
3833
|
+
count: virtual ? filteredOptions.length : 0,
|
|
3834
|
+
getScrollElement: () => listContainerRef.current,
|
|
3835
|
+
estimateSize: () => virtualItemHeight,
|
|
3836
|
+
overscan: 5
|
|
3837
|
+
});
|
|
3677
3838
|
const handleSingleSelect = (option) => {
|
|
3678
3839
|
if (!isMultiple) {
|
|
3679
3840
|
if (props.value === void 0) {
|
|
@@ -3762,8 +3923,8 @@ var Combobox = React35.forwardRef(
|
|
|
3762
3923
|
const maxDisplayItems = isMultiple ? props.maxDisplayItems ?? 3 : 0;
|
|
3763
3924
|
const displayedOptions = selectedOptions.slice(0, maxDisplayItems);
|
|
3764
3925
|
const remainingCount = selectedOptions.length - maxDisplayItems;
|
|
3765
|
-
return /* @__PURE__ */
|
|
3766
|
-
/* @__PURE__ */
|
|
3926
|
+
return /* @__PURE__ */ jsxs21("div", { ref: containerRef, className: "relative", children: [
|
|
3927
|
+
/* @__PURE__ */ jsxs21(
|
|
3767
3928
|
"button",
|
|
3768
3929
|
{
|
|
3769
3930
|
type: "button",
|
|
@@ -3781,8 +3942,8 @@ var Combobox = React35.forwardRef(
|
|
|
3781
3942
|
),
|
|
3782
3943
|
children: [
|
|
3783
3944
|
startAdornment && /* @__PURE__ */ jsx35(Adornment, { onClick: onStartAdornmentClick, className: "mr-1.5", children: startAdornment }),
|
|
3784
|
-
isMultiple ? /* @__PURE__ */ jsx35("div", { className: "flex flex-1 flex-wrap items-center gap-1", children: selectedOptions.length === 0 ? /* @__PURE__ */ jsx35("span", { className: "text-muted-foreground", children: placeholder }) : /* @__PURE__ */
|
|
3785
|
-
displayedOptions.map((option) => /* @__PURE__ */
|
|
3945
|
+
isMultiple ? /* @__PURE__ */ jsx35("div", { className: "flex flex-1 flex-wrap items-center gap-1", children: selectedOptions.length === 0 ? /* @__PURE__ */ jsx35("span", { className: "text-muted-foreground", children: placeholder }) : /* @__PURE__ */ jsxs21(Fragment4, { children: [
|
|
3946
|
+
displayedOptions.map((option) => /* @__PURE__ */ jsxs21(
|
|
3786
3947
|
"span",
|
|
3787
3948
|
{
|
|
3788
3949
|
className: "inline-flex items-center gap-1 rounded-md bg-muted px-2 py-0.5 text-xs font-medium",
|
|
@@ -3815,13 +3976,13 @@ var Combobox = React35.forwardRef(
|
|
|
3815
3976
|
},
|
|
3816
3977
|
getOptionValue(option)
|
|
3817
3978
|
)),
|
|
3818
|
-
remainingCount > 0 && /* @__PURE__ */
|
|
3979
|
+
remainingCount > 0 && /* @__PURE__ */ jsxs21("span", { className: "text-xs text-muted-foreground", children: [
|
|
3819
3980
|
"+",
|
|
3820
3981
|
remainingCount,
|
|
3821
3982
|
" more"
|
|
3822
3983
|
] })
|
|
3823
3984
|
] }) }) : /* @__PURE__ */ jsx35("span", { className: cn("flex-1", !singleValue && "text-muted-foreground"), children: singleValue ? getOptionLabel(singleValue) : placeholder }),
|
|
3824
|
-
/* @__PURE__ */
|
|
3985
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-1", children: [
|
|
3825
3986
|
isMultiple && selectedOptions.length > 0 && /* @__PURE__ */ jsx35(
|
|
3826
3987
|
"button",
|
|
3827
3988
|
{
|
|
@@ -3895,9 +4056,9 @@ var Combobox = React35.forwardRef(
|
|
|
3895
4056
|
]
|
|
3896
4057
|
}
|
|
3897
4058
|
),
|
|
3898
|
-
open && /* @__PURE__ */
|
|
3899
|
-
/* @__PURE__ */
|
|
3900
|
-
/* @__PURE__ */
|
|
4059
|
+
open && /* @__PURE__ */ jsxs21("div", { className: "absolute z-50 mt-1 w-full overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md", children: [
|
|
4060
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex items-center border-b border-border px-3", children: [
|
|
4061
|
+
/* @__PURE__ */ jsxs21(
|
|
3901
4062
|
"svg",
|
|
3902
4063
|
{
|
|
3903
4064
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3935,117 +4096,104 @@ var Combobox = React35.forwardRef(
|
|
|
3935
4096
|
}
|
|
3936
4097
|
)
|
|
3937
4098
|
] }),
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
children:
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
),
|
|
3995
|
-
children: [
|
|
3996
|
-
/* @__PURE__ */ jsx35("span", { className: "absolute left-2 flex h-4 w-4 items-center justify-center", children: isMultiple ? (
|
|
3997
|
-
// Checkbox for multi-select
|
|
3998
|
-
/* @__PURE__ */ jsx35(
|
|
4099
|
+
isMultiple && selectAll && filteredOptions.length > 0 && /* @__PURE__ */ jsx35("div", { className: "px-1 pt-1", children: /* @__PURE__ */ jsxs21(
|
|
4100
|
+
"button",
|
|
4101
|
+
{
|
|
4102
|
+
type: "button",
|
|
4103
|
+
onClick: handleSelectAll,
|
|
4104
|
+
className: cn(
|
|
4105
|
+
"relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none",
|
|
4106
|
+
"hover:bg-muted hover:text-foreground",
|
|
4107
|
+
"focus:bg-muted focus:text-foreground",
|
|
4108
|
+
allSelected && "bg-muted"
|
|
4109
|
+
),
|
|
4110
|
+
children: [
|
|
4111
|
+
/* @__PURE__ */ jsx35("span", { className: "absolute left-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ jsx35(
|
|
4112
|
+
"div",
|
|
4113
|
+
{
|
|
4114
|
+
className: cn(
|
|
4115
|
+
"flex h-4 w-4 items-center justify-center rounded border border-input",
|
|
4116
|
+
allSelected && "bg-accent border-accent"
|
|
4117
|
+
),
|
|
4118
|
+
children: allSelected && /* @__PURE__ */ jsx35(
|
|
4119
|
+
"svg",
|
|
4120
|
+
{
|
|
4121
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4122
|
+
width: "24",
|
|
4123
|
+
height: "24",
|
|
4124
|
+
viewBox: "0 0 24 24",
|
|
4125
|
+
fill: "none",
|
|
4126
|
+
stroke: "white",
|
|
4127
|
+
strokeWidth: "3",
|
|
4128
|
+
strokeLinecap: "round",
|
|
4129
|
+
strokeLinejoin: "round",
|
|
4130
|
+
className: "h-3 w-3",
|
|
4131
|
+
children: /* @__PURE__ */ jsx35("polyline", { points: "20 6 9 17 4 12" })
|
|
4132
|
+
}
|
|
4133
|
+
)
|
|
4134
|
+
}
|
|
4135
|
+
) }),
|
|
4136
|
+
selectAllLabel
|
|
4137
|
+
]
|
|
4138
|
+
}
|
|
4139
|
+
) }),
|
|
4140
|
+
/* @__PURE__ */ jsx35(
|
|
4141
|
+
"div",
|
|
4142
|
+
{
|
|
4143
|
+
ref: listContainerRef,
|
|
4144
|
+
className: "max-h-[300px] overflow-y-auto p-1",
|
|
4145
|
+
children: filteredOptions.length === 0 ? /* @__PURE__ */ jsx35("div", { className: "py-6 text-center text-sm text-muted-foreground", children: emptyMessage }) : virtual ? (
|
|
4146
|
+
// ── Virtual list ──────────────────────────────────────────
|
|
4147
|
+
/* @__PURE__ */ jsx35(
|
|
4148
|
+
"div",
|
|
4149
|
+
{
|
|
4150
|
+
style: { height: rowVirtualizer.getTotalSize(), position: "relative" },
|
|
4151
|
+
children: rowVirtualizer.getVirtualItems().map((virtualRow) => {
|
|
4152
|
+
const option = filteredOptions[virtualRow.index];
|
|
4153
|
+
const isSelected = isMultiple ? selectedValueKeys.has(option.value) : option.value === singleValueKey;
|
|
4154
|
+
return /* @__PURE__ */ jsx35(
|
|
3999
4155
|
"div",
|
|
4000
4156
|
{
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4157
|
+
style: {
|
|
4158
|
+
position: "absolute",
|
|
4159
|
+
top: virtualRow.start,
|
|
4160
|
+
left: 0,
|
|
4161
|
+
right: 0,
|
|
4162
|
+
height: virtualRow.size
|
|
4163
|
+
},
|
|
4164
|
+
children: /* @__PURE__ */ jsx35(
|
|
4165
|
+
OptionItem,
|
|
4007
4166
|
{
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
fill: "none",
|
|
4013
|
-
stroke: "white",
|
|
4014
|
-
strokeWidth: "3",
|
|
4015
|
-
strokeLinecap: "round",
|
|
4016
|
-
strokeLinejoin: "round",
|
|
4017
|
-
className: "h-3 w-3",
|
|
4018
|
-
children: /* @__PURE__ */ jsx35("polyline", { points: "20 6 9 17 4 12" })
|
|
4167
|
+
option,
|
|
4168
|
+
isSelected,
|
|
4169
|
+
isMultiple,
|
|
4170
|
+
onSelect: () => isMultiple ? handleMultiSelect(option.raw) : handleSingleSelect(option.raw)
|
|
4019
4171
|
}
|
|
4020
4172
|
)
|
|
4021
|
-
}
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
option.value
|
|
4046
|
-
);
|
|
4047
|
-
})
|
|
4048
|
-
] }) })
|
|
4173
|
+
},
|
|
4174
|
+
virtualRow.key
|
|
4175
|
+
);
|
|
4176
|
+
})
|
|
4177
|
+
}
|
|
4178
|
+
)
|
|
4179
|
+
) : (
|
|
4180
|
+
// ── Normal list ───────────────────────────────────────────
|
|
4181
|
+
filteredOptions.map((option) => {
|
|
4182
|
+
const isSelected = isMultiple ? selectedValueKeys.has(option.value) : option.value === singleValueKey;
|
|
4183
|
+
return /* @__PURE__ */ jsx35(
|
|
4184
|
+
OptionItem,
|
|
4185
|
+
{
|
|
4186
|
+
option,
|
|
4187
|
+
isSelected,
|
|
4188
|
+
isMultiple,
|
|
4189
|
+
onSelect: () => isMultiple ? handleMultiSelect(option.raw) : handleSingleSelect(option.raw)
|
|
4190
|
+
},
|
|
4191
|
+
option.value
|
|
4192
|
+
);
|
|
4193
|
+
})
|
|
4194
|
+
)
|
|
4195
|
+
}
|
|
4196
|
+
)
|
|
4049
4197
|
] })
|
|
4050
4198
|
] });
|
|
4051
4199
|
}
|
|
@@ -4062,8 +4210,8 @@ import {
|
|
|
4062
4210
|
getFilteredRowModel,
|
|
4063
4211
|
flexRender
|
|
4064
4212
|
} from "@tanstack/react-table";
|
|
4065
|
-
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
4066
|
-
import { jsx as jsx36, jsxs as
|
|
4213
|
+
import { useVirtualizer as useVirtualizer2 } from "@tanstack/react-virtual";
|
|
4214
|
+
import { jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4067
4215
|
function convertColumns(columns, checkboxSelection) {
|
|
4068
4216
|
const tanstackColumns = [];
|
|
4069
4217
|
if (checkboxSelection) {
|
|
@@ -4250,8 +4398,8 @@ var ColumnVisibilityDropdown = ({
|
|
|
4250
4398
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
4251
4399
|
}, []);
|
|
4252
4400
|
const allColumns = table.getAllLeafColumns().filter((col) => col.id !== "__select__");
|
|
4253
|
-
return /* @__PURE__ */
|
|
4254
|
-
/* @__PURE__ */
|
|
4401
|
+
return /* @__PURE__ */ jsxs22("div", { className: "relative", ref: dropdownRef, children: [
|
|
4402
|
+
/* @__PURE__ */ jsxs22(
|
|
4255
4403
|
Button,
|
|
4256
4404
|
{
|
|
4257
4405
|
variant: "outline",
|
|
@@ -4259,7 +4407,7 @@ var ColumnVisibilityDropdown = ({
|
|
|
4259
4407
|
onClick: () => setOpen(!open),
|
|
4260
4408
|
className: "h-9 gap-2",
|
|
4261
4409
|
children: [
|
|
4262
|
-
/* @__PURE__ */
|
|
4410
|
+
/* @__PURE__ */ jsxs22("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
4263
4411
|
/* @__PURE__ */ jsx36("path", { d: "M12 3v18M3 12h18" }),
|
|
4264
4412
|
/* @__PURE__ */ jsx36("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
4265
4413
|
/* @__PURE__ */ jsx36("path", { d: "M3 9h18M3 15h18M9 3v18M15 3v18" })
|
|
@@ -4268,12 +4416,12 @@ var ColumnVisibilityDropdown = ({
|
|
|
4268
4416
|
]
|
|
4269
4417
|
}
|
|
4270
4418
|
),
|
|
4271
|
-
open && /* @__PURE__ */
|
|
4419
|
+
open && /* @__PURE__ */ jsxs22("div", { className: "absolute right-0 top-full mt-1 z-50 min-w-[180px] rounded-md border border-border bg-popover p-2 shadow-md", children: [
|
|
4272
4420
|
/* @__PURE__ */ jsx36("div", { className: "text-xs font-medium text-foreground mb-2 px-2", children: "Show/Hide Columns" }),
|
|
4273
4421
|
/* @__PURE__ */ jsx36("div", { className: "max-h-[300px] overflow-auto", children: allColumns.map((column) => {
|
|
4274
4422
|
const meta = column.columnDef.meta;
|
|
4275
4423
|
const headerName = meta?.headerName || column.id;
|
|
4276
|
-
return /* @__PURE__ */
|
|
4424
|
+
return /* @__PURE__ */ jsxs22(
|
|
4277
4425
|
"label",
|
|
4278
4426
|
{
|
|
4279
4427
|
className: "flex items-center gap-2 px-2 py-1.5 hover:bg-muted rounded cursor-pointer",
|
|
@@ -4291,7 +4439,7 @@ var ColumnVisibilityDropdown = ({
|
|
|
4291
4439
|
column.id
|
|
4292
4440
|
);
|
|
4293
4441
|
}) }),
|
|
4294
|
-
/* @__PURE__ */
|
|
4442
|
+
/* @__PURE__ */ jsxs22("div", { className: "border-t border-border mt-2 pt-2 flex gap-2 px-2", children: [
|
|
4295
4443
|
/* @__PURE__ */ jsx36(
|
|
4296
4444
|
Button,
|
|
4297
4445
|
{
|
|
@@ -4352,8 +4500,8 @@ var DataGridPagination = ({
|
|
|
4352
4500
|
};
|
|
4353
4501
|
const startRow = currentPage * pageSize + 1;
|
|
4354
4502
|
const endRow = Math.min((currentPage + 1) * pageSize, totalRows);
|
|
4355
|
-
return /* @__PURE__ */
|
|
4356
|
-
/* @__PURE__ */
|
|
4503
|
+
return /* @__PURE__ */ jsxs22("div", { className: "flex items-center justify-end gap-4 px-4 py-3 border-t border-border bg-background", children: [
|
|
4504
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-2 text-xs text-muted-foreground whitespace-nowrap", children: [
|
|
4357
4505
|
/* @__PURE__ */ jsx36("span", { children: "Rows per page:" }),
|
|
4358
4506
|
/* @__PURE__ */ jsx36(
|
|
4359
4507
|
"select",
|
|
@@ -4365,14 +4513,14 @@ var DataGridPagination = ({
|
|
|
4365
4513
|
}
|
|
4366
4514
|
)
|
|
4367
4515
|
] }),
|
|
4368
|
-
/* @__PURE__ */
|
|
4516
|
+
/* @__PURE__ */ jsxs22("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: [
|
|
4369
4517
|
startRow,
|
|
4370
4518
|
"-",
|
|
4371
4519
|
endRow,
|
|
4372
4520
|
" of ",
|
|
4373
4521
|
totalRows
|
|
4374
4522
|
] }),
|
|
4375
|
-
/* @__PURE__ */ jsx36(PaginationNamespace, { className: "mx-0 w-auto", children: /* @__PURE__ */
|
|
4523
|
+
/* @__PURE__ */ jsx36(PaginationNamespace, { className: "mx-0 w-auto", children: /* @__PURE__ */ jsxs22(PaginationContent, { children: [
|
|
4376
4524
|
/* @__PURE__ */ jsx36(PaginationItem, { children: /* @__PURE__ */ jsx36(
|
|
4377
4525
|
Button,
|
|
4378
4526
|
{
|
|
@@ -4434,6 +4582,7 @@ var ExportDropdown = ({
|
|
|
4434
4582
|
onExport,
|
|
4435
4583
|
rows,
|
|
4436
4584
|
columns,
|
|
4585
|
+
pinnedRows,
|
|
4437
4586
|
fileName = "data-export"
|
|
4438
4587
|
}) => {
|
|
4439
4588
|
const [open, setOpen] = React36.useState(false);
|
|
@@ -4451,7 +4600,12 @@ var ExportDropdown = ({
|
|
|
4451
4600
|
const visibleColumns = columns.filter((col) => !col.hide && !col.disableExport && !col.hideExport);
|
|
4452
4601
|
const headers = visibleColumns.map((col) => col.headerName || col.field);
|
|
4453
4602
|
const csvRows = [headers.join(",")];
|
|
4454
|
-
|
|
4603
|
+
const allRows = [
|
|
4604
|
+
...pinnedRows?.top || [],
|
|
4605
|
+
...rows,
|
|
4606
|
+
...pinnedRows?.bottom || []
|
|
4607
|
+
];
|
|
4608
|
+
allRows.forEach((row) => {
|
|
4455
4609
|
const values = visibleColumns.map((col) => {
|
|
4456
4610
|
let value;
|
|
4457
4611
|
if (col.valueGetter) {
|
|
@@ -4478,12 +4632,17 @@ var ExportDropdown = ({
|
|
|
4478
4632
|
};
|
|
4479
4633
|
const handleCustomExport = () => {
|
|
4480
4634
|
if (onExport) {
|
|
4481
|
-
|
|
4635
|
+
const allRows = [
|
|
4636
|
+
...pinnedRows?.top || [],
|
|
4637
|
+
...rows,
|
|
4638
|
+
...pinnedRows?.bottom || []
|
|
4639
|
+
];
|
|
4640
|
+
onExport(allRows, columns);
|
|
4482
4641
|
}
|
|
4483
4642
|
setOpen(false);
|
|
4484
4643
|
};
|
|
4485
|
-
return /* @__PURE__ */
|
|
4486
|
-
/* @__PURE__ */
|
|
4644
|
+
return /* @__PURE__ */ jsxs22("div", { className: "relative", ref: dropdownRef, children: [
|
|
4645
|
+
/* @__PURE__ */ jsxs22(
|
|
4487
4646
|
Button,
|
|
4488
4647
|
{
|
|
4489
4648
|
variant: "outline",
|
|
@@ -4491,7 +4650,7 @@ var ExportDropdown = ({
|
|
|
4491
4650
|
onClick: () => setOpen(!open),
|
|
4492
4651
|
className: "h-9 gap-2",
|
|
4493
4652
|
children: [
|
|
4494
|
-
/* @__PURE__ */
|
|
4653
|
+
/* @__PURE__ */ jsxs22("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
4495
4654
|
/* @__PURE__ */ jsx36("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
4496
4655
|
/* @__PURE__ */ jsx36("polyline", { points: "7 10 12 15 17 10" }),
|
|
4497
4656
|
/* @__PURE__ */ jsx36("line", { x1: "12", y1: "15", x2: "12", y2: "3" })
|
|
@@ -4500,14 +4659,14 @@ var ExportDropdown = ({
|
|
|
4500
4659
|
]
|
|
4501
4660
|
}
|
|
4502
4661
|
),
|
|
4503
|
-
open && /* @__PURE__ */
|
|
4504
|
-
/* @__PURE__ */
|
|
4662
|
+
open && /* @__PURE__ */ jsxs22("div", { className: "absolute right-0 top-full mt-1 z-50 min-w-[140px] rounded-md border border-border bg-popover p-1 shadow-md", children: [
|
|
4663
|
+
/* @__PURE__ */ jsxs22(
|
|
4505
4664
|
"button",
|
|
4506
4665
|
{
|
|
4507
4666
|
className: "flex w-full items-center gap-2 rounded px-3 py-2 text-xs hover:bg-muted",
|
|
4508
4667
|
onClick: exportToCSV,
|
|
4509
4668
|
children: [
|
|
4510
|
-
/* @__PURE__ */
|
|
4669
|
+
/* @__PURE__ */ jsxs22("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
4511
4670
|
/* @__PURE__ */ jsx36("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
|
|
4512
4671
|
/* @__PURE__ */ jsx36("polyline", { points: "14 2 14 8 20 8" })
|
|
4513
4672
|
] }),
|
|
@@ -4515,13 +4674,13 @@ var ExportDropdown = ({
|
|
|
4515
4674
|
]
|
|
4516
4675
|
}
|
|
4517
4676
|
),
|
|
4518
|
-
onExport && /* @__PURE__ */
|
|
4677
|
+
onExport && /* @__PURE__ */ jsxs22(
|
|
4519
4678
|
"button",
|
|
4520
4679
|
{
|
|
4521
4680
|
className: "flex w-full items-center gap-2 rounded px-3 py-2 text-xs hover:bg-muted",
|
|
4522
4681
|
onClick: handleCustomExport,
|
|
4523
4682
|
children: [
|
|
4524
|
-
/* @__PURE__ */
|
|
4683
|
+
/* @__PURE__ */ jsxs22("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
4525
4684
|
/* @__PURE__ */ jsx36("circle", { cx: "12", cy: "12", r: "3" }),
|
|
4526
4685
|
/* @__PURE__ */ jsx36("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" })
|
|
4527
4686
|
] }),
|
|
@@ -4547,7 +4706,7 @@ var MoreOptionsDropdown = ({
|
|
|
4547
4706
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
4548
4707
|
}, []);
|
|
4549
4708
|
if (options.length === 0) return null;
|
|
4550
|
-
return /* @__PURE__ */
|
|
4709
|
+
return /* @__PURE__ */ jsxs22("div", { className: "relative", ref: dropdownRef, children: [
|
|
4551
4710
|
/* @__PURE__ */ jsx36(
|
|
4552
4711
|
Button,
|
|
4553
4712
|
{
|
|
@@ -4555,14 +4714,14 @@ var MoreOptionsDropdown = ({
|
|
|
4555
4714
|
size: "icon",
|
|
4556
4715
|
onClick: () => setOpen(!open),
|
|
4557
4716
|
className: "h-9 w-9",
|
|
4558
|
-
children: /* @__PURE__ */
|
|
4717
|
+
children: /* @__PURE__ */ jsxs22("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
4559
4718
|
/* @__PURE__ */ jsx36("circle", { cx: "12", cy: "12", r: "1" }),
|
|
4560
4719
|
/* @__PURE__ */ jsx36("circle", { cx: "12", cy: "5", r: "1" }),
|
|
4561
4720
|
/* @__PURE__ */ jsx36("circle", { cx: "12", cy: "19", r: "1" })
|
|
4562
4721
|
] })
|
|
4563
4722
|
}
|
|
4564
4723
|
),
|
|
4565
|
-
open && /* @__PURE__ */ jsx36("div", { className: "absolute right-0 top-full mt-1 z-50 min-w-[160px] rounded-md border border-border bg-popover p-1 shadow-md", children: options.map((option, index) => /* @__PURE__ */
|
|
4724
|
+
open && /* @__PURE__ */ jsx36("div", { className: "absolute right-0 top-full mt-1 z-50 min-w-[160px] rounded-md border border-border bg-popover p-1 shadow-md", children: options.map((option, index) => /* @__PURE__ */ jsxs22(
|
|
4566
4725
|
"button",
|
|
4567
4726
|
{
|
|
4568
4727
|
className: "flex w-full items-center gap-2 rounded px-3 py-2 text-xs hover:bg-muted",
|
|
@@ -4591,12 +4750,13 @@ var DataGridToolbar = ({
|
|
|
4591
4750
|
columns,
|
|
4592
4751
|
onExport,
|
|
4593
4752
|
exportFileName,
|
|
4753
|
+
pinnedRows,
|
|
4594
4754
|
customButtons,
|
|
4595
4755
|
moreOptions = []
|
|
4596
4756
|
}) => {
|
|
4597
|
-
return /* @__PURE__ */
|
|
4757
|
+
return /* @__PURE__ */ jsxs22("div", { className: "flex items-center justify-between px-4 py-3 border-b border-border bg-background", children: [
|
|
4598
4758
|
title && /* @__PURE__ */ jsx36("h3", { className: "text-lg font-semibold text-foreground", children: title }),
|
|
4599
|
-
/* @__PURE__ */
|
|
4759
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-2 ml-auto", children: [
|
|
4600
4760
|
showQuickFilter && /* @__PURE__ */ jsx36(
|
|
4601
4761
|
Input,
|
|
4602
4762
|
{
|
|
@@ -4613,6 +4773,7 @@ var DataGridToolbar = ({
|
|
|
4613
4773
|
onExport,
|
|
4614
4774
|
rows,
|
|
4615
4775
|
columns,
|
|
4776
|
+
pinnedRows,
|
|
4616
4777
|
fileName: exportFileName
|
|
4617
4778
|
}
|
|
4618
4779
|
),
|
|
@@ -4836,7 +4997,7 @@ var VirtualizedTableBody = ({
|
|
|
4836
4997
|
gridColumns
|
|
4837
4998
|
}) => {
|
|
4838
4999
|
const rows = table.getRowModel().rows;
|
|
4839
|
-
const virtualizer =
|
|
5000
|
+
const virtualizer = useVirtualizer2({
|
|
4840
5001
|
count: rows.length,
|
|
4841
5002
|
getScrollElement: () => parentRef.current,
|
|
4842
5003
|
estimateSize: () => rowHeight,
|
|
@@ -4855,7 +5016,7 @@ var VirtualizedTableBody = ({
|
|
|
4855
5016
|
}
|
|
4856
5017
|
const paddingTop = virtualRows.length > 0 ? virtualRows[0].start : 0;
|
|
4857
5018
|
const paddingBottom = virtualRows.length > 0 ? virtualizer.getTotalSize() - virtualRows[virtualRows.length - 1].end : 0;
|
|
4858
|
-
return /* @__PURE__ */
|
|
5019
|
+
return /* @__PURE__ */ jsxs22("tbody", { children: [
|
|
4859
5020
|
paddingTop > 0 && /* @__PURE__ */ jsx36("tr", { children: /* @__PURE__ */ jsx36(
|
|
4860
5021
|
"td",
|
|
4861
5022
|
{
|
|
@@ -5350,7 +5511,7 @@ function DataGrid({
|
|
|
5350
5511
|
if (minHeight) containerStyle.minHeight = minHeight;
|
|
5351
5512
|
if (maxHeight) containerStyle.maxHeight = maxHeight;
|
|
5352
5513
|
}
|
|
5353
|
-
return /* @__PURE__ */
|
|
5514
|
+
return /* @__PURE__ */ jsxs22(
|
|
5354
5515
|
"div",
|
|
5355
5516
|
{
|
|
5356
5517
|
className: cn(
|
|
@@ -5373,18 +5534,19 @@ function DataGrid({
|
|
|
5373
5534
|
columns,
|
|
5374
5535
|
onExport,
|
|
5375
5536
|
exportFileName,
|
|
5537
|
+
pinnedRows,
|
|
5376
5538
|
customButtons,
|
|
5377
5539
|
moreOptions
|
|
5378
5540
|
}
|
|
5379
5541
|
),
|
|
5380
|
-
/* @__PURE__ */
|
|
5542
|
+
/* @__PURE__ */ jsxs22(
|
|
5381
5543
|
"div",
|
|
5382
5544
|
{
|
|
5383
5545
|
ref: tableContainerRef,
|
|
5384
5546
|
className: "relative flex-1 overflow-auto",
|
|
5385
5547
|
children: [
|
|
5386
5548
|
loading && /* @__PURE__ */ jsx36("div", { className: "absolute inset-0 bg-background/80 flex items-center justify-center z-10", children: /* @__PURE__ */ jsx36(Spinner, { size: "lg" }) }),
|
|
5387
|
-
/* @__PURE__ */
|
|
5549
|
+
/* @__PURE__ */ jsxs22("table", { className: "w-full border-separate border-spacing-0 table-fixed", children: [
|
|
5388
5550
|
/* @__PURE__ */ jsx36("colgroup", { children: table.getVisibleLeafColumns().map((column) => {
|
|
5389
5551
|
const colWidth = columnWidths.get(column.id);
|
|
5390
5552
|
return /* @__PURE__ */ jsx36(
|
|
@@ -5399,7 +5561,7 @@ function DataGrid({
|
|
|
5399
5561
|
column.id
|
|
5400
5562
|
);
|
|
5401
5563
|
}) }),
|
|
5402
|
-
/* @__PURE__ */
|
|
5564
|
+
/* @__PURE__ */ jsxs22("thead", { className: "sticky top-0 z-[3] bg-muted", children: [
|
|
5403
5565
|
columnGroupingModel && columnGroupingModel.length > 0 && /* @__PURE__ */ jsx36(
|
|
5404
5566
|
ColumnGroupHeader,
|
|
5405
5567
|
{
|
|
@@ -5419,7 +5581,7 @@ function DataGrid({
|
|
|
5419
5581
|
const colWidth = columnWidths.get(header.column.id);
|
|
5420
5582
|
const effectiveWidth = colWidth?.width || header.getSize();
|
|
5421
5583
|
const pinnedInfo = pinnedColumnOffsets?.get(header.column.id);
|
|
5422
|
-
return /* @__PURE__ */
|
|
5584
|
+
return /* @__PURE__ */ jsxs22(
|
|
5423
5585
|
"th",
|
|
5424
5586
|
{
|
|
5425
5587
|
className: cn(
|
|
@@ -5446,7 +5608,7 @@ function DataGrid({
|
|
|
5446
5608
|
},
|
|
5447
5609
|
onClick: header.column.getToggleSortingHandler(),
|
|
5448
5610
|
children: [
|
|
5449
|
-
/* @__PURE__ */
|
|
5611
|
+
/* @__PURE__ */ jsxs22("div", { className: cn(
|
|
5450
5612
|
"flex items-center gap-1 truncate",
|
|
5451
5613
|
align === "center" && "justify-center",
|
|
5452
5614
|
align === "right" && "justify-end"
|
|
@@ -5547,7 +5709,7 @@ function DataGrid({
|
|
|
5547
5709
|
paginationMode
|
|
5548
5710
|
}
|
|
5549
5711
|
),
|
|
5550
|
-
effectiveVirtualized && !hideFooter && /* @__PURE__ */ jsx36("div", { className: "flex items-center justify-end gap-4 px-4 py-3 border-t border-border bg-background", children: /* @__PURE__ */
|
|
5712
|
+
effectiveVirtualized && !hideFooter && /* @__PURE__ */ jsx36("div", { className: "flex items-center justify-end gap-4 px-4 py-3 border-t border-border bg-background", children: /* @__PURE__ */ jsxs22("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: [
|
|
5551
5713
|
table.getFilteredRowModel().rows.length,
|
|
5552
5714
|
" total rows (virtualized)"
|
|
5553
5715
|
] }) })
|
|
@@ -5559,9 +5721,17 @@ DataGrid.displayName = "DataGrid";
|
|
|
5559
5721
|
|
|
5560
5722
|
// src/components/list.tsx
|
|
5561
5723
|
import * as React37 from "react";
|
|
5562
|
-
import {
|
|
5724
|
+
import { useVirtualizer as useVirtualizer3 } from "@tanstack/react-virtual";
|
|
5725
|
+
import { jsx as jsx37, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5563
5726
|
var List2 = React37.forwardRef(
|
|
5564
|
-
({
|
|
5727
|
+
({
|
|
5728
|
+
dividers = false,
|
|
5729
|
+
dense = false,
|
|
5730
|
+
clickable = false,
|
|
5731
|
+
disablePadding = false,
|
|
5732
|
+
className,
|
|
5733
|
+
...props
|
|
5734
|
+
}, ref) => /* @__PURE__ */ jsx37(
|
|
5565
5735
|
"ul",
|
|
5566
5736
|
{
|
|
5567
5737
|
ref,
|
|
@@ -5569,7 +5739,7 @@ var List2 = React37.forwardRef(
|
|
|
5569
5739
|
"data-dividers": dividers,
|
|
5570
5740
|
"data-dense": dense,
|
|
5571
5741
|
"data-clickable": clickable,
|
|
5572
|
-
className: cn("flex flex-col", className),
|
|
5742
|
+
className: cn("flex flex-col", !disablePadding && "py-1", className),
|
|
5573
5743
|
...props
|
|
5574
5744
|
}
|
|
5575
5745
|
)
|
|
@@ -5583,10 +5753,13 @@ var ListItem = React37.forwardRef(
|
|
|
5583
5753
|
leading,
|
|
5584
5754
|
trailing,
|
|
5585
5755
|
secondaryAction,
|
|
5756
|
+
inset = false,
|
|
5757
|
+
disableGutters = false,
|
|
5758
|
+
alignItems = "center",
|
|
5586
5759
|
className,
|
|
5587
5760
|
children,
|
|
5588
5761
|
...props
|
|
5589
|
-
}, ref) => /* @__PURE__ */
|
|
5762
|
+
}, ref) => /* @__PURE__ */ jsxs23(
|
|
5590
5763
|
"li",
|
|
5591
5764
|
{
|
|
5592
5765
|
ref,
|
|
@@ -5595,10 +5768,13 @@ var ListItem = React37.forwardRef(
|
|
|
5595
5768
|
"aria-selected": selected,
|
|
5596
5769
|
"aria-disabled": disabled,
|
|
5597
5770
|
className: cn(
|
|
5598
|
-
"flex
|
|
5771
|
+
"relative flex gap-3 py-2",
|
|
5772
|
+
alignItems === "center" ? "items-center" : "items-start",
|
|
5773
|
+
!disableGutters && "px-4",
|
|
5599
5774
|
"border-b border-border last:border-b-0",
|
|
5600
5775
|
'[ul[data-dividers="false"]_&]:border-b-0',
|
|
5601
|
-
'[ul[data-dense="true"]_&]:py-
|
|
5776
|
+
'[ul[data-dense="true"]_&]:py-1',
|
|
5777
|
+
inset && "pl-14",
|
|
5602
5778
|
clickable && !disabled && [
|
|
5603
5779
|
"cursor-pointer",
|
|
5604
5780
|
"hover:bg-muted",
|
|
@@ -5607,43 +5783,115 @@ var ListItem = React37.forwardRef(
|
|
|
5607
5783
|
'[ul[data-clickable="true"]_&]:cursor-pointer [ul[data-clickable="true"]_&]:hover:bg-muted',
|
|
5608
5784
|
selected && "bg-muted",
|
|
5609
5785
|
disabled && "opacity-50 cursor-not-allowed",
|
|
5786
|
+
secondaryAction && "pr-12",
|
|
5610
5787
|
className
|
|
5611
5788
|
),
|
|
5612
5789
|
...props,
|
|
5613
5790
|
children: [
|
|
5614
|
-
leading && /* @__PURE__ */ jsx37(
|
|
5791
|
+
leading && /* @__PURE__ */ jsx37(
|
|
5792
|
+
"div",
|
|
5793
|
+
{
|
|
5794
|
+
className: cn(
|
|
5795
|
+
"shrink-0",
|
|
5796
|
+
alignItems === "center" ? "self-center" : "self-start mt-0.5"
|
|
5797
|
+
),
|
|
5798
|
+
children: leading
|
|
5799
|
+
}
|
|
5800
|
+
),
|
|
5615
5801
|
/* @__PURE__ */ jsx37("div", { className: "flex-1 min-w-0", children }),
|
|
5616
5802
|
trailing && /* @__PURE__ */ jsx37("div", { className: "shrink-0", children: trailing }),
|
|
5617
|
-
secondaryAction && /* @__PURE__ */ jsx37("div", { className: "
|
|
5803
|
+
secondaryAction && /* @__PURE__ */ jsx37("div", { className: "absolute right-4 top-1/2 -translate-y-1/2 shrink-0", children: secondaryAction })
|
|
5618
5804
|
]
|
|
5619
5805
|
}
|
|
5620
5806
|
)
|
|
5621
5807
|
);
|
|
5622
5808
|
ListItem.displayName = "ListItem";
|
|
5809
|
+
var ListItemButton = React37.forwardRef(
|
|
5810
|
+
({
|
|
5811
|
+
selected = false,
|
|
5812
|
+
dense = false,
|
|
5813
|
+
disableGutters = false,
|
|
5814
|
+
divider = false,
|
|
5815
|
+
alignItems = "center",
|
|
5816
|
+
autoFocus = false,
|
|
5817
|
+
disabled,
|
|
5818
|
+
className,
|
|
5819
|
+
children,
|
|
5820
|
+
...props
|
|
5821
|
+
}, ref) => /* @__PURE__ */ jsx37(
|
|
5822
|
+
"button",
|
|
5823
|
+
{
|
|
5824
|
+
ref,
|
|
5825
|
+
type: "button",
|
|
5826
|
+
autoFocus,
|
|
5827
|
+
disabled,
|
|
5828
|
+
"aria-selected": selected,
|
|
5829
|
+
className: cn(
|
|
5830
|
+
"relative flex w-full gap-3 py-2 text-left text-sm",
|
|
5831
|
+
"transition-colors",
|
|
5832
|
+
alignItems === "center" ? "items-center" : "items-start",
|
|
5833
|
+
!disableGutters && "px-4",
|
|
5834
|
+
dense ? "py-1" : "py-2",
|
|
5835
|
+
'[ul[data-dense="true"]_&]:py-1',
|
|
5836
|
+
divider && "border-b border-border",
|
|
5837
|
+
"hover:bg-muted",
|
|
5838
|
+
"focus:outline-none focus-visible:bg-muted",
|
|
5839
|
+
selected && "bg-muted text-foreground",
|
|
5840
|
+
disabled && "pointer-events-none opacity-50",
|
|
5841
|
+
className
|
|
5842
|
+
),
|
|
5843
|
+
...props,
|
|
5844
|
+
children
|
|
5845
|
+
}
|
|
5846
|
+
)
|
|
5847
|
+
);
|
|
5848
|
+
ListItemButton.displayName = "ListItemButton";
|
|
5623
5849
|
var ListItemText = React37.forwardRef(
|
|
5624
|
-
({
|
|
5625
|
-
primary
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5850
|
+
({
|
|
5851
|
+
primary,
|
|
5852
|
+
secondary,
|
|
5853
|
+
noWrap = false,
|
|
5854
|
+
inset = false,
|
|
5855
|
+
primaryTypographyProps,
|
|
5856
|
+
secondaryTypographyProps,
|
|
5857
|
+
className,
|
|
5858
|
+
children,
|
|
5859
|
+
...props
|
|
5860
|
+
}, ref) => /* @__PURE__ */ jsxs23(
|
|
5861
|
+
"div",
|
|
5862
|
+
{
|
|
5863
|
+
ref,
|
|
5864
|
+
className: cn("min-w-0 flex-1", inset && "pl-10", className),
|
|
5865
|
+
...props,
|
|
5866
|
+
children: [
|
|
5867
|
+
primary && /* @__PURE__ */ jsx37(
|
|
5868
|
+
"p",
|
|
5869
|
+
{
|
|
5870
|
+
...primaryTypographyProps,
|
|
5871
|
+
className: cn(
|
|
5872
|
+
"text-sm font-medium text-foreground leading-snug",
|
|
5873
|
+
noWrap && "truncate",
|
|
5874
|
+
primaryTypographyProps?.className
|
|
5875
|
+
),
|
|
5876
|
+
children: primary
|
|
5877
|
+
}
|
|
5631
5878
|
),
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5879
|
+
secondary && /* @__PURE__ */ jsx37(
|
|
5880
|
+
"p",
|
|
5881
|
+
{
|
|
5882
|
+
...secondaryTypographyProps,
|
|
5883
|
+
className: cn(
|
|
5884
|
+
"text-xs text-muted-foreground leading-snug mt-0.5",
|
|
5885
|
+
noWrap && "truncate",
|
|
5886
|
+
secondaryTypographyProps?.className
|
|
5887
|
+
),
|
|
5888
|
+
children: secondary
|
|
5889
|
+
}
|
|
5641
5890
|
),
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
] })
|
|
5891
|
+
!primary && !secondary && children
|
|
5892
|
+
]
|
|
5893
|
+
}
|
|
5894
|
+
)
|
|
5647
5895
|
);
|
|
5648
5896
|
ListItemText.displayName = "ListItemText";
|
|
5649
5897
|
var ListItemIcon = React37.forwardRef(
|
|
@@ -5651,7 +5899,7 @@ var ListItemIcon = React37.forwardRef(
|
|
|
5651
5899
|
"div",
|
|
5652
5900
|
{
|
|
5653
5901
|
ref,
|
|
5654
|
-
className: cn("shrink-0 text-muted-foreground", className),
|
|
5902
|
+
className: cn("shrink-0 flex items-center justify-center text-muted-foreground w-5", className),
|
|
5655
5903
|
...props
|
|
5656
5904
|
}
|
|
5657
5905
|
)
|
|
@@ -5662,19 +5910,23 @@ var ListItemAvatar = React37.forwardRef(
|
|
|
5662
5910
|
);
|
|
5663
5911
|
ListItemAvatar.displayName = "ListItemAvatar";
|
|
5664
5912
|
var ListSubheader = React37.forwardRef(
|
|
5665
|
-
({
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5913
|
+
({ disableSticky = false, disableGutters = false, sticky, className, ...props }, ref) => {
|
|
5914
|
+
const isSticky = sticky !== void 0 ? sticky : !disableSticky;
|
|
5915
|
+
return /* @__PURE__ */ jsx37(
|
|
5916
|
+
"li",
|
|
5917
|
+
{
|
|
5918
|
+
ref,
|
|
5919
|
+
role: "presentation",
|
|
5920
|
+
className: cn(
|
|
5921
|
+
"py-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground bg-background",
|
|
5922
|
+
!disableGutters && "px-4",
|
|
5923
|
+
isSticky && "sticky top-0 z-10",
|
|
5924
|
+
className
|
|
5925
|
+
),
|
|
5926
|
+
...props
|
|
5927
|
+
}
|
|
5928
|
+
);
|
|
5929
|
+
}
|
|
5678
5930
|
);
|
|
5679
5931
|
ListSubheader.displayName = "ListSubheader";
|
|
5680
5932
|
var ListDivider = React37.forwardRef(
|
|
@@ -5683,16 +5935,57 @@ var ListDivider = React37.forwardRef(
|
|
|
5683
5935
|
{
|
|
5684
5936
|
ref,
|
|
5685
5937
|
role: "separator",
|
|
5686
|
-
className: cn(
|
|
5687
|
-
"border-t border-border my-1",
|
|
5688
|
-
inset && "ml-14",
|
|
5689
|
-
className
|
|
5690
|
-
),
|
|
5938
|
+
className: cn("border-t border-border my-1", inset && "ml-14", className),
|
|
5691
5939
|
...props
|
|
5692
5940
|
}
|
|
5693
5941
|
)
|
|
5694
5942
|
);
|
|
5695
5943
|
ListDivider.displayName = "ListDivider";
|
|
5944
|
+
function VirtualList({
|
|
5945
|
+
items,
|
|
5946
|
+
itemHeight = 48,
|
|
5947
|
+
height = 400,
|
|
5948
|
+
overscan = 5,
|
|
5949
|
+
renderItem,
|
|
5950
|
+
className
|
|
5951
|
+
}) {
|
|
5952
|
+
const parentRef = React37.useRef(null);
|
|
5953
|
+
const virtualizer = useVirtualizer3({
|
|
5954
|
+
count: items.length,
|
|
5955
|
+
getScrollElement: () => parentRef.current,
|
|
5956
|
+
estimateSize: () => itemHeight,
|
|
5957
|
+
overscan
|
|
5958
|
+
});
|
|
5959
|
+
return /* @__PURE__ */ jsx37(
|
|
5960
|
+
"div",
|
|
5961
|
+
{
|
|
5962
|
+
ref: parentRef,
|
|
5963
|
+
style: { height, overflowY: "auto" },
|
|
5964
|
+
className: cn("relative", className),
|
|
5965
|
+
children: /* @__PURE__ */ jsx37(
|
|
5966
|
+
"ul",
|
|
5967
|
+
{
|
|
5968
|
+
role: "list",
|
|
5969
|
+
style: { height: virtualizer.getTotalSize(), position: "relative" },
|
|
5970
|
+
children: virtualizer.getVirtualItems().map((virtualRow) => /* @__PURE__ */ jsx37(
|
|
5971
|
+
"li",
|
|
5972
|
+
{
|
|
5973
|
+
style: {
|
|
5974
|
+
position: "absolute",
|
|
5975
|
+
top: virtualRow.start,
|
|
5976
|
+
left: 0,
|
|
5977
|
+
right: 0,
|
|
5978
|
+
height: virtualRow.size
|
|
5979
|
+
},
|
|
5980
|
+
children: renderItem(items[virtualRow.index], virtualRow.index)
|
|
5981
|
+
},
|
|
5982
|
+
virtualRow.key
|
|
5983
|
+
))
|
|
5984
|
+
}
|
|
5985
|
+
)
|
|
5986
|
+
}
|
|
5987
|
+
);
|
|
5988
|
+
}
|
|
5696
5989
|
|
|
5697
5990
|
// src/components/charts.tsx
|
|
5698
5991
|
import * as React38 from "react";
|
|
@@ -5722,7 +6015,7 @@ import {
|
|
|
5722
6015
|
LabelList
|
|
5723
6016
|
} from "recharts";
|
|
5724
6017
|
import { accentColors as accentColors2 } from "@onesaz/tokens";
|
|
5725
|
-
import { Fragment as Fragment5, jsx as jsx38, jsxs as
|
|
6018
|
+
import { Fragment as Fragment5, jsx as jsx38, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5726
6019
|
var BarChart = ({
|
|
5727
6020
|
data,
|
|
5728
6021
|
dataKey,
|
|
@@ -5775,7 +6068,7 @@ var BarChart = ({
|
|
|
5775
6068
|
)
|
|
5776
6069
|
},
|
|
5777
6070
|
keyConfig.dataKey
|
|
5778
|
-
)) : /* @__PURE__ */
|
|
6071
|
+
)) : /* @__PURE__ */ jsxs24(
|
|
5779
6072
|
Bar,
|
|
5780
6073
|
{
|
|
5781
6074
|
dataKey,
|
|
@@ -5813,7 +6106,7 @@ var BarChart = ({
|
|
|
5813
6106
|
contentStyle: tooltip.contentStyle
|
|
5814
6107
|
}
|
|
5815
6108
|
) : showTooltip ? /* @__PURE__ */ jsx38(Tooltip2, { contentStyle: { backgroundColor: "hsl(var(--background))", border: "1px solid hsl(var(--border))", borderRadius: "6px", color: "hsl(var(--foreground))" } }) : null;
|
|
5816
|
-
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6109
|
+
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(
|
|
5817
6110
|
RechartsBarChart,
|
|
5818
6111
|
{
|
|
5819
6112
|
data,
|
|
@@ -5900,7 +6193,7 @@ var LineChart = ({
|
|
|
5900
6193
|
name: name || dataKey
|
|
5901
6194
|
}
|
|
5902
6195
|
);
|
|
5903
|
-
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6196
|
+
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(RechartsLineChart, { data, margin, children: [
|
|
5904
6197
|
showGrid && /* @__PURE__ */ jsx38(CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--muted-foreground))", opacity: 0.3 }),
|
|
5905
6198
|
xAxis && !xAxis.hide && /* @__PURE__ */ jsx38(
|
|
5906
6199
|
XAxis,
|
|
@@ -5953,7 +6246,7 @@ var PieChart = ({
|
|
|
5953
6246
|
accentColors2[accentColor][1]
|
|
5954
6247
|
];
|
|
5955
6248
|
const chartColors = colors || defaultColors;
|
|
5956
|
-
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6249
|
+
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(RechartsPieChart, { children: [
|
|
5957
6250
|
/* @__PURE__ */ jsx38(
|
|
5958
6251
|
Pie,
|
|
5959
6252
|
{
|
|
@@ -6022,7 +6315,7 @@ var AreaChart = ({
|
|
|
6022
6315
|
name: name || dataKey
|
|
6023
6316
|
}
|
|
6024
6317
|
);
|
|
6025
|
-
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6318
|
+
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(RechartsAreaChart, { data, margin, children: [
|
|
6026
6319
|
showGrid && /* @__PURE__ */ jsx38(CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--muted-foreground))", opacity: 0.3 }),
|
|
6027
6320
|
xAxis && !xAxis.hide && /* @__PURE__ */ jsx38(
|
|
6028
6321
|
XAxis,
|
|
@@ -6065,7 +6358,7 @@ var ScatterChart = ({
|
|
|
6065
6358
|
className
|
|
6066
6359
|
}) => {
|
|
6067
6360
|
const { accentColor } = useTheme();
|
|
6068
|
-
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6361
|
+
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(RechartsScatterChart, { data, margin, children: [
|
|
6069
6362
|
showGrid && /* @__PURE__ */ jsx38(CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--muted-foreground))", opacity: 0.3 }),
|
|
6070
6363
|
xAxis && !xAxis.hide && /* @__PURE__ */ jsx38(
|
|
6071
6364
|
XAxis,
|
|
@@ -6106,7 +6399,7 @@ var RadarChart = ({
|
|
|
6106
6399
|
className
|
|
6107
6400
|
}) => {
|
|
6108
6401
|
const { accentColor } = useTheme();
|
|
6109
|
-
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6402
|
+
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(RechartsRadarChart, { data, children: [
|
|
6110
6403
|
/* @__PURE__ */ jsx38(PolarGrid, {}),
|
|
6111
6404
|
/* @__PURE__ */ jsx38(PolarAngleAxis, { dataKey: nameKey }),
|
|
6112
6405
|
/* @__PURE__ */ jsx38(PolarRadiusAxis, {}),
|
|
@@ -6168,8 +6461,8 @@ var DonutChart = ({
|
|
|
6168
6461
|
}
|
|
6169
6462
|
};
|
|
6170
6463
|
const styling = { ...defaultAdvancedStyling, ...advancedStyling };
|
|
6171
|
-
const gradientDefs = styling.enableGradients ? /* @__PURE__ */
|
|
6172
|
-
styling.enableShadows && /* @__PURE__ */
|
|
6464
|
+
const gradientDefs = styling.enableGradients ? /* @__PURE__ */ jsxs24("defs", { children: [
|
|
6465
|
+
styling.enableShadows && /* @__PURE__ */ jsxs24(
|
|
6173
6466
|
"filter",
|
|
6174
6467
|
{
|
|
6175
6468
|
id: "deepInsetShadow",
|
|
@@ -6230,7 +6523,7 @@ var DonutChart = ({
|
|
|
6230
6523
|
)
|
|
6231
6524
|
}
|
|
6232
6525
|
),
|
|
6233
|
-
styling.gradients?.map((gradient) => /* @__PURE__ */
|
|
6526
|
+
styling.gradients?.map((gradient) => /* @__PURE__ */ jsxs24(
|
|
6234
6527
|
"linearGradient",
|
|
6235
6528
|
{
|
|
6236
6529
|
id: gradient.id,
|
|
@@ -6255,7 +6548,7 @@ var DonutChart = ({
|
|
|
6255
6548
|
contentStyle: tooltip.contentStyle
|
|
6256
6549
|
}
|
|
6257
6550
|
) : showTooltip ? /* @__PURE__ */ jsx38(Tooltip2, { contentStyle: { backgroundColor: "hsl(var(--background))", border: "1px solid hsl(var(--border))", borderRadius: "6px", color: "hsl(var(--foreground))" } }) : null;
|
|
6258
|
-
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6551
|
+
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(RechartsPieChart, { children: [
|
|
6259
6552
|
gradientDefs,
|
|
6260
6553
|
/* @__PURE__ */ jsx38(
|
|
6261
6554
|
Pie,
|
|
@@ -6317,7 +6610,7 @@ var ProgressCard = ({
|
|
|
6317
6610
|
const bgShadowId = `progress-bg-shadow-${Math.random().toString(36).substr(2, 9)}`;
|
|
6318
6611
|
const [startColor, endColor] = colorFn(normalizedPercentage);
|
|
6319
6612
|
const percentageTextColor = typography.percentageColorAuto ? normalizedPercentage <= 30 ? "text-green-600" : normalizedPercentage <= 50 ? "text-blue-600" : "text-red-600" : "text-gray-900 dark:text-gray-100";
|
|
6320
|
-
return /* @__PURE__ */
|
|
6613
|
+
return /* @__PURE__ */ jsxs24(
|
|
6321
6614
|
"div",
|
|
6322
6615
|
{
|
|
6323
6616
|
className: cn(
|
|
@@ -6327,16 +6620,16 @@ var ProgressCard = ({
|
|
|
6327
6620
|
),
|
|
6328
6621
|
onClick: () => onClick?.(questionNum),
|
|
6329
6622
|
children: [
|
|
6330
|
-
/* @__PURE__ */
|
|
6623
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex flex-col items-center", children: [
|
|
6331
6624
|
/* @__PURE__ */ jsx38("span", { className: cn("font-bold", typography.questionFontSize, typography.questionColor), children: questionNum }),
|
|
6332
|
-
/* @__PURE__ */
|
|
6625
|
+
/* @__PURE__ */ jsxs24("span", { className: cn("font-bold", typography.percentageFontSize, percentageTextColor), children: [
|
|
6333
6626
|
normalizedPercentage.toFixed(1),
|
|
6334
6627
|
"%"
|
|
6335
6628
|
] })
|
|
6336
6629
|
] }),
|
|
6337
|
-
/* @__PURE__ */ jsx38("div", { className: "flex items-center", style: { width: `${donutSize + 10}px`, height: `${donutSize + 10}px` }, children: /* @__PURE__ */
|
|
6338
|
-
/* @__PURE__ */
|
|
6339
|
-
enableGradients && /* @__PURE__ */
|
|
6630
|
+
/* @__PURE__ */ jsx38("div", { className: "flex items-center", style: { width: `${donutSize + 10}px`, height: `${donutSize + 10}px` }, children: /* @__PURE__ */ jsxs24("svg", { width: donutSize + 10, height: donutSize + 10, viewBox: "0 0 100 100", children: [
|
|
6631
|
+
/* @__PURE__ */ jsxs24("defs", { children: [
|
|
6632
|
+
enableGradients && /* @__PURE__ */ jsxs24(
|
|
6340
6633
|
"linearGradient",
|
|
6341
6634
|
{
|
|
6342
6635
|
id: gradientId,
|
|
@@ -6350,8 +6643,8 @@ var ProgressCard = ({
|
|
|
6350
6643
|
]
|
|
6351
6644
|
}
|
|
6352
6645
|
),
|
|
6353
|
-
enableShadows && /* @__PURE__ */
|
|
6354
|
-
/* @__PURE__ */
|
|
6646
|
+
enableShadows && /* @__PURE__ */ jsxs24(Fragment5, { children: [
|
|
6647
|
+
/* @__PURE__ */ jsxs24(
|
|
6355
6648
|
"filter",
|
|
6356
6649
|
{
|
|
6357
6650
|
id: bgShadowId,
|
|
@@ -6482,7 +6775,7 @@ var ProgressDonut = ({
|
|
|
6482
6775
|
if (!data || data.length === 0) {
|
|
6483
6776
|
return /* @__PURE__ */ jsx38("div", { className: cn("text-gray-500", className), children: "No data provided" });
|
|
6484
6777
|
}
|
|
6485
|
-
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6778
|
+
return /* @__PURE__ */ jsx38("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx38(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(RechartsPieChart, { children: [
|
|
6486
6779
|
/* @__PURE__ */ jsx38(
|
|
6487
6780
|
Pie,
|
|
6488
6781
|
{
|
|
@@ -6537,12 +6830,12 @@ var MultiProgressDonut = ({
|
|
|
6537
6830
|
const shadowId = `progress-shadow-${index}`;
|
|
6538
6831
|
const bgShadowId = `progress-bg-shadow-${index}`;
|
|
6539
6832
|
const [startColor, endColor] = colorFn(percentage);
|
|
6540
|
-
return /* @__PURE__ */
|
|
6833
|
+
return /* @__PURE__ */ jsxs24("div", { className: "flex flex-col items-center gap-2", children: [
|
|
6541
6834
|
item.label && /* @__PURE__ */ jsx38("div", { className: "text-sm font-medium text-gray-700 dark:text-gray-300", children: item.label }),
|
|
6542
|
-
/* @__PURE__ */
|
|
6543
|
-
/* @__PURE__ */
|
|
6544
|
-
/* @__PURE__ */
|
|
6545
|
-
enableGradients && /* @__PURE__ */
|
|
6835
|
+
/* @__PURE__ */ jsxs24("div", { className: "relative", children: [
|
|
6836
|
+
/* @__PURE__ */ jsxs24("svg", { width: size, height: size, viewBox: "0 0 100 100", children: [
|
|
6837
|
+
/* @__PURE__ */ jsxs24("defs", { children: [
|
|
6838
|
+
enableGradients && /* @__PURE__ */ jsxs24(
|
|
6546
6839
|
"linearGradient",
|
|
6547
6840
|
{
|
|
6548
6841
|
id: gradientId,
|
|
@@ -6556,8 +6849,8 @@ var MultiProgressDonut = ({
|
|
|
6556
6849
|
]
|
|
6557
6850
|
}
|
|
6558
6851
|
),
|
|
6559
|
-
enableShadows && /* @__PURE__ */
|
|
6560
|
-
/* @__PURE__ */
|
|
6852
|
+
enableShadows && /* @__PURE__ */ jsxs24(Fragment5, { children: [
|
|
6853
|
+
/* @__PURE__ */ jsxs24(
|
|
6561
6854
|
"filter",
|
|
6562
6855
|
{
|
|
6563
6856
|
id: bgShadowId,
|
|
@@ -6649,7 +6942,7 @@ var MultiProgressDonut = ({
|
|
|
6649
6942
|
}
|
|
6650
6943
|
)
|
|
6651
6944
|
] }),
|
|
6652
|
-
showPercentage && /* @__PURE__ */ jsx38("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */
|
|
6945
|
+
showPercentage && /* @__PURE__ */ jsx38("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxs24("span", { className: "text-xs font-bold text-gray-700 dark:text-gray-300", children: [
|
|
6653
6946
|
percentage.toFixed(1),
|
|
6654
6947
|
"%"
|
|
6655
6948
|
] }) })
|
|
@@ -6752,7 +7045,7 @@ var PackedBubbleChart = ({
|
|
|
6752
7045
|
if (colorByValue) return colorByValue(item.value);
|
|
6753
7046
|
return defaultColor;
|
|
6754
7047
|
};
|
|
6755
|
-
return /* @__PURE__ */
|
|
7048
|
+
return /* @__PURE__ */ jsxs24(
|
|
6756
7049
|
"div",
|
|
6757
7050
|
{
|
|
6758
7051
|
ref: containerRef,
|
|
@@ -6767,7 +7060,7 @@ var PackedBubbleChart = ({
|
|
|
6767
7060
|
children: title
|
|
6768
7061
|
}
|
|
6769
7062
|
),
|
|
6770
|
-
/* @__PURE__ */ jsx38("svg", { width: "100%", height: "100%", className: "overflow-visible", children: bubbles.map((bubble, index) => /* @__PURE__ */
|
|
7063
|
+
/* @__PURE__ */ jsx38("svg", { width: "100%", height: "100%", className: "overflow-visible", children: bubbles.map((bubble, index) => /* @__PURE__ */ jsxs24(
|
|
6771
7064
|
"g",
|
|
6772
7065
|
{
|
|
6773
7066
|
onClick: () => onBubbleClick?.(bubble.data),
|
|
@@ -6828,7 +7121,7 @@ var PackedBubbleChart = ({
|
|
|
6828
7121
|
|
|
6829
7122
|
// src/components/breadcrumbs.tsx
|
|
6830
7123
|
import * as React39 from "react";
|
|
6831
|
-
import { jsx as jsx39, jsxs as
|
|
7124
|
+
import { jsx as jsx39, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
6832
7125
|
var Breadcrumbs = React39.forwardRef(
|
|
6833
7126
|
({
|
|
6834
7127
|
separator,
|
|
@@ -6870,7 +7163,7 @@ var Breadcrumbs = React39.forwardRef(
|
|
|
6870
7163
|
} else {
|
|
6871
7164
|
displayedItems = childArray;
|
|
6872
7165
|
}
|
|
6873
|
-
return /* @__PURE__ */ jsx39("nav", { ref, "aria-label": "Breadcrumb", className, ...props, children: /* @__PURE__ */ jsx39("ol", { className: "flex items-center gap-1.5 flex-wrap", children: displayedItems.map((child, index) => /* @__PURE__ */
|
|
7166
|
+
return /* @__PURE__ */ jsx39("nav", { ref, "aria-label": "Breadcrumb", className, ...props, children: /* @__PURE__ */ jsx39("ol", { className: "flex items-center gap-1.5 flex-wrap", children: displayedItems.map((child, index) => /* @__PURE__ */ jsxs25("li", { className: "flex items-center gap-1.5", children: [
|
|
6874
7167
|
index > 0 && /* @__PURE__ */ jsx39("span", { className: "flex items-center", "aria-hidden": "true", children: separatorElement }),
|
|
6875
7168
|
child
|
|
6876
7169
|
] }, index)) }) });
|
|
@@ -6980,7 +7273,7 @@ var BreadcrumbEllipsis = React39.forwardRef(
|
|
|
6980
7273
|
"aria-hidden": "true",
|
|
6981
7274
|
className: cn("text-sm text-muted-foreground", className),
|
|
6982
7275
|
...props,
|
|
6983
|
-
children: /* @__PURE__ */
|
|
7276
|
+
children: /* @__PURE__ */ jsxs25(
|
|
6984
7277
|
"svg",
|
|
6985
7278
|
{
|
|
6986
7279
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7019,14 +7312,14 @@ BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
|
7019
7312
|
// src/components/dropdown-menu.tsx
|
|
7020
7313
|
import * as React40 from "react";
|
|
7021
7314
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
7022
|
-
import { jsx as jsx40, jsxs as
|
|
7315
|
+
import { jsx as jsx40, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
7023
7316
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
7024
7317
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
7025
7318
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
7026
7319
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
7027
7320
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
7028
7321
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
7029
|
-
var DropdownMenuSubTrigger = React40.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */
|
|
7322
|
+
var DropdownMenuSubTrigger = React40.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs26(
|
|
7030
7323
|
DropdownMenuPrimitive.SubTrigger,
|
|
7031
7324
|
{
|
|
7032
7325
|
ref,
|
|
@@ -7109,7 +7402,7 @@ var DropdownMenuItem = React40.forwardRef(({ className, inset, ...props }, ref)
|
|
|
7109
7402
|
}
|
|
7110
7403
|
));
|
|
7111
7404
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
7112
|
-
var DropdownMenuCheckboxItem = React40.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */
|
|
7405
|
+
var DropdownMenuCheckboxItem = React40.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs26(
|
|
7113
7406
|
DropdownMenuPrimitive.CheckboxItem,
|
|
7114
7407
|
{
|
|
7115
7408
|
ref,
|
|
@@ -7141,7 +7434,7 @@ var DropdownMenuCheckboxItem = React40.forwardRef(({ className, children, checke
|
|
|
7141
7434
|
}
|
|
7142
7435
|
));
|
|
7143
7436
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
7144
|
-
var DropdownMenuRadioItem = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
7437
|
+
var DropdownMenuRadioItem = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs26(
|
|
7145
7438
|
DropdownMenuPrimitive.RadioItem,
|
|
7146
7439
|
{
|
|
7147
7440
|
ref,
|
|
@@ -7206,7 +7499,7 @@ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
|
7206
7499
|
// src/components/drawer.tsx
|
|
7207
7500
|
import * as React41 from "react";
|
|
7208
7501
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
7209
|
-
import { jsx as jsx41, jsxs as
|
|
7502
|
+
import { jsx as jsx41, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
7210
7503
|
var Drawer = DialogPrimitive2.Root;
|
|
7211
7504
|
var DrawerTrigger = DialogPrimitive2.Trigger;
|
|
7212
7505
|
var DrawerClose = DialogPrimitive2.Close;
|
|
@@ -7231,9 +7524,9 @@ var slideVariants = {
|
|
|
7231
7524
|
top: "inset-x-0 top-0 w-full data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
7232
7525
|
bottom: "inset-x-0 bottom-0 w-full data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom"
|
|
7233
7526
|
};
|
|
7234
|
-
var DrawerContent = React41.forwardRef(({ side = "right", showClose = true, className, children, ...props }, ref) => /* @__PURE__ */
|
|
7527
|
+
var DrawerContent = React41.forwardRef(({ side = "right", showClose = true, className, children, ...props }, ref) => /* @__PURE__ */ jsxs27(DrawerPortal, { children: [
|
|
7235
7528
|
/* @__PURE__ */ jsx41(DrawerOverlay, {}),
|
|
7236
|
-
/* @__PURE__ */
|
|
7529
|
+
/* @__PURE__ */ jsxs27(
|
|
7237
7530
|
DialogPrimitive2.Content,
|
|
7238
7531
|
{
|
|
7239
7532
|
ref,
|
|
@@ -7247,7 +7540,7 @@ var DrawerContent = React41.forwardRef(({ side = "right", showClose = true, clas
|
|
|
7247
7540
|
...props,
|
|
7248
7541
|
children: [
|
|
7249
7542
|
children,
|
|
7250
|
-
showClose && /* @__PURE__ */
|
|
7543
|
+
showClose && /* @__PURE__ */ jsxs27(
|
|
7251
7544
|
DrawerClose,
|
|
7252
7545
|
{
|
|
7253
7546
|
className: cn(
|
|
@@ -7350,7 +7643,7 @@ var SheetFooter = DrawerFooter;
|
|
|
7350
7643
|
|
|
7351
7644
|
// src/components/topbar.tsx
|
|
7352
7645
|
import * as React42 from "react";
|
|
7353
|
-
import { Fragment as Fragment6, jsx as jsx42, jsxs as
|
|
7646
|
+
import { Fragment as Fragment6, jsx as jsx42, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
7354
7647
|
var sizeClasses5 = {
|
|
7355
7648
|
sm: "h-12",
|
|
7356
7649
|
md: "h-14",
|
|
@@ -7378,7 +7671,7 @@ var TopBar = React42.forwardRef(
|
|
|
7378
7671
|
TopBar.displayName = "TopBar";
|
|
7379
7672
|
var TopBarBrand = React42.forwardRef(
|
|
7380
7673
|
({ className, logo, name, href, children, ...props }, ref) => {
|
|
7381
|
-
const content = /* @__PURE__ */
|
|
7674
|
+
const content = /* @__PURE__ */ jsxs28(Fragment6, { children: [
|
|
7382
7675
|
logo && /* @__PURE__ */ jsx42("span", { className: "shrink-0", children: logo }),
|
|
7383
7676
|
name && /* @__PURE__ */ jsx42("span", { className: "font-semibold text-lg", children: name }),
|
|
7384
7677
|
children
|
|
@@ -7460,7 +7753,7 @@ TopBarDivider.displayName = "TopBarDivider";
|
|
|
7460
7753
|
|
|
7461
7754
|
// src/components/sidebar.tsx
|
|
7462
7755
|
import * as React43 from "react";
|
|
7463
|
-
import { Fragment as Fragment7, jsx as jsx43, jsxs as
|
|
7756
|
+
import { Fragment as Fragment7, jsx as jsx43, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
7464
7757
|
var SidebarContext = React43.createContext(void 0);
|
|
7465
7758
|
var useSidebar = () => {
|
|
7466
7759
|
const context = React43.useContext(SidebarContext);
|
|
@@ -7558,7 +7851,7 @@ SidebarFooter.displayName = "SidebarFooter";
|
|
|
7558
7851
|
var SidebarGroup = React43.forwardRef(
|
|
7559
7852
|
({ className, label, children, ...props }, ref) => {
|
|
7560
7853
|
const { collapsed } = useSidebar();
|
|
7561
|
-
return /* @__PURE__ */
|
|
7854
|
+
return /* @__PURE__ */ jsxs29("div", { ref, className: cn("px-2 py-2", className), ...props, children: [
|
|
7562
7855
|
label && !collapsed && /* @__PURE__ */ jsx43("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider", children: label }),
|
|
7563
7856
|
label && collapsed && /* @__PURE__ */ jsx43("div", { className: "flex justify-center py-1.5", children: /* @__PURE__ */ jsx43("div", { className: "h-px w-4 bg-border" }) }),
|
|
7564
7857
|
/* @__PURE__ */ jsx43("div", { className: "space-y-1", children })
|
|
@@ -7569,9 +7862,9 @@ SidebarGroup.displayName = "SidebarGroup";
|
|
|
7569
7862
|
var SidebarItem = React43.forwardRef(
|
|
7570
7863
|
({ className, icon, active, disabled, badge, onClick, href, children, ...props }, ref) => {
|
|
7571
7864
|
const { collapsed } = useSidebar();
|
|
7572
|
-
const content = /* @__PURE__ */
|
|
7865
|
+
const content = /* @__PURE__ */ jsxs29(Fragment7, { children: [
|
|
7573
7866
|
icon && /* @__PURE__ */ jsx43("span", { className: cn("shrink-0", collapsed ? "mx-auto" : ""), children: icon }),
|
|
7574
|
-
!collapsed && /* @__PURE__ */
|
|
7867
|
+
!collapsed && /* @__PURE__ */ jsxs29(Fragment7, { children: [
|
|
7575
7868
|
/* @__PURE__ */ jsx43("span", { className: "flex-1 truncate", children }),
|
|
7576
7869
|
badge && /* @__PURE__ */ jsx43("span", { className: "shrink-0", children: badge })
|
|
7577
7870
|
] })
|
|
@@ -7613,8 +7906,8 @@ var SidebarSubMenu = React43.forwardRef(
|
|
|
7613
7906
|
if (collapsed) {
|
|
7614
7907
|
return /* @__PURE__ */ jsx43(SidebarItem, { icon, className, children: label });
|
|
7615
7908
|
}
|
|
7616
|
-
return /* @__PURE__ */
|
|
7617
|
-
/* @__PURE__ */
|
|
7909
|
+
return /* @__PURE__ */ jsxs29("div", { ref, className, ...props, children: [
|
|
7910
|
+
/* @__PURE__ */ jsxs29(
|
|
7618
7911
|
"div",
|
|
7619
7912
|
{
|
|
7620
7913
|
className: cn(
|
|
@@ -7666,7 +7959,7 @@ var SidebarToggle = React43.forwardRef(
|
|
|
7666
7959
|
),
|
|
7667
7960
|
"aria-label": collapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
7668
7961
|
...props,
|
|
7669
|
-
children: children || /* @__PURE__ */
|
|
7962
|
+
children: children || /* @__PURE__ */ jsxs29(
|
|
7670
7963
|
"svg",
|
|
7671
7964
|
{
|
|
7672
7965
|
className: cn("h-5 w-5 transition-transform", collapsed && "rotate-180"),
|
|
@@ -7692,7 +7985,7 @@ SidebarToggle.displayName = "SidebarToggle";
|
|
|
7692
7985
|
|
|
7693
7986
|
// src/components/sidebar-rail.tsx
|
|
7694
7987
|
import * as React44 from "react";
|
|
7695
|
-
import { Fragment as Fragment8, jsx as jsx44, jsxs as
|
|
7988
|
+
import { Fragment as Fragment8, jsx as jsx44, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
7696
7989
|
var SidebarRailContext = React44.createContext(void 0);
|
|
7697
7990
|
var useSidebarRail = () => {
|
|
7698
7991
|
const context = React44.useContext(SidebarRailContext);
|
|
@@ -7886,7 +8179,7 @@ var IconRailItem = React44.forwardRef(
|
|
|
7886
8179
|
setActiveRail(railId);
|
|
7887
8180
|
}
|
|
7888
8181
|
};
|
|
7889
|
-
return /* @__PURE__ */
|
|
8182
|
+
return /* @__PURE__ */ jsxs30(
|
|
7890
8183
|
"button",
|
|
7891
8184
|
{
|
|
7892
8185
|
ref,
|
|
@@ -7922,7 +8215,7 @@ var RailPanel = React44.forwardRef(
|
|
|
7922
8215
|
}
|
|
7923
8216
|
};
|
|
7924
8217
|
if (!isVisible) return null;
|
|
7925
|
-
return /* @__PURE__ */
|
|
8218
|
+
return /* @__PURE__ */ jsxs30(
|
|
7926
8219
|
"div",
|
|
7927
8220
|
{
|
|
7928
8221
|
ref,
|
|
@@ -7935,7 +8228,7 @@ var RailPanel = React44.forwardRef(
|
|
|
7935
8228
|
onMouseLeave: handleMouseLeave,
|
|
7936
8229
|
...props,
|
|
7937
8230
|
children: [
|
|
7938
|
-
title && /* @__PURE__ */
|
|
8231
|
+
title && /* @__PURE__ */ jsxs30("div", { className: "flex items-center justify-between h-14 px-4 border-b border-border shrink-0", children: [
|
|
7939
8232
|
/* @__PURE__ */ jsx44("span", { className: "font-semibold text-sm", children: title }),
|
|
7940
8233
|
/* @__PURE__ */ jsx44(
|
|
7941
8234
|
"button",
|
|
@@ -7944,7 +8237,7 @@ var RailPanel = React44.forwardRef(
|
|
|
7944
8237
|
onClick: () => setActiveRail(null),
|
|
7945
8238
|
className: "p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground cursor-pointer",
|
|
7946
8239
|
"aria-label": "Close panel",
|
|
7947
|
-
children: /* @__PURE__ */
|
|
8240
|
+
children: /* @__PURE__ */ jsxs30(
|
|
7948
8241
|
"svg",
|
|
7949
8242
|
{
|
|
7950
8243
|
className: "h-4 w-4",
|
|
@@ -7973,7 +8266,7 @@ var RailPanel = React44.forwardRef(
|
|
|
7973
8266
|
RailPanel.displayName = "RailPanel";
|
|
7974
8267
|
var RailPanelGroup = React44.forwardRef(
|
|
7975
8268
|
({ className, label, children, ...props }, ref) => {
|
|
7976
|
-
return /* @__PURE__ */
|
|
8269
|
+
return /* @__PURE__ */ jsxs30("div", { ref, className: cn("px-2 py-2", className), ...props, children: [
|
|
7977
8270
|
label && /* @__PURE__ */ jsx44("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider", children: label }),
|
|
7978
8271
|
/* @__PURE__ */ jsx44("div", { className: "space-y-1", children })
|
|
7979
8272
|
] });
|
|
@@ -7982,7 +8275,7 @@ var RailPanelGroup = React44.forwardRef(
|
|
|
7982
8275
|
RailPanelGroup.displayName = "RailPanelGroup";
|
|
7983
8276
|
var RailPanelItem = React44.forwardRef(
|
|
7984
8277
|
({ className, icon, active, disabled, badge, href, children, onClick, ...props }, ref) => {
|
|
7985
|
-
const content = /* @__PURE__ */
|
|
8278
|
+
const content = /* @__PURE__ */ jsxs30(Fragment8, { children: [
|
|
7986
8279
|
icon && /* @__PURE__ */ jsx44("span", { className: "shrink-0", children: icon }),
|
|
7987
8280
|
/* @__PURE__ */ jsx44("span", { className: "flex-1 truncate", children }),
|
|
7988
8281
|
badge && /* @__PURE__ */ jsx44("span", { className: "shrink-0", children: badge })
|
|
@@ -8014,18 +8307,18 @@ RailPanelItem.displayName = "RailPanelItem";
|
|
|
8014
8307
|
|
|
8015
8308
|
// src/playground.tsx
|
|
8016
8309
|
import * as React45 from "react";
|
|
8017
|
-
import { jsx as jsx45, jsxs as
|
|
8018
|
-
var Section = ({ title, children }) => /* @__PURE__ */
|
|
8310
|
+
import { jsx as jsx45, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
8311
|
+
var Section = ({ title, children }) => /* @__PURE__ */ jsxs31("div", { className: "mb-8", children: [
|
|
8019
8312
|
/* @__PURE__ */ jsx45("h2", { className: "text-xl font-semibold mb-4 text-foreground", children: title }),
|
|
8020
8313
|
/* @__PURE__ */ jsx45("div", { className: "p-4 border border-border rounded-lg bg-background", children })
|
|
8021
8314
|
] });
|
|
8022
8315
|
var ThemeToggle = () => {
|
|
8023
8316
|
const { theme, setTheme } = useTheme();
|
|
8024
|
-
return /* @__PURE__ */
|
|
8317
|
+
return /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-2", children: [
|
|
8025
8318
|
/* @__PURE__ */ jsx45(Label, { children: "Theme:" }),
|
|
8026
|
-
/* @__PURE__ */
|
|
8319
|
+
/* @__PURE__ */ jsxs31(SelectNamespace, { value: theme, onValueChange: (value) => setTheme(value), children: [
|
|
8027
8320
|
/* @__PURE__ */ jsx45(SelectTrigger, { className: "w-32", children: /* @__PURE__ */ jsx45(SelectValue, { placeholder: "Select theme" }) }),
|
|
8028
|
-
/* @__PURE__ */
|
|
8321
|
+
/* @__PURE__ */ jsxs31(SelectContent, { children: [
|
|
8029
8322
|
/* @__PURE__ */ jsx45(SelectItem, { value: "light", children: "Light" }),
|
|
8030
8323
|
/* @__PURE__ */ jsx45(SelectItem, { value: "dark", children: "Dark" }),
|
|
8031
8324
|
/* @__PURE__ */ jsx45(SelectItem, { value: "system", children: "System" })
|
|
@@ -8048,13 +8341,13 @@ var PlaygroundContent = () => {
|
|
|
8048
8341
|
{ value: "svelte", label: "Svelte" },
|
|
8049
8342
|
{ value: "solid", label: "SolidJS" }
|
|
8050
8343
|
];
|
|
8051
|
-
return /* @__PURE__ */ jsx45("div", { className: "min-h-screen bg-background p-8", children: /* @__PURE__ */
|
|
8052
|
-
/* @__PURE__ */
|
|
8344
|
+
return /* @__PURE__ */ jsx45("div", { className: "min-h-screen bg-background p-8", children: /* @__PURE__ */ jsxs31("div", { className: "max-w-4xl mx-auto", children: [
|
|
8345
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex items-center justify-between mb-8", children: [
|
|
8053
8346
|
/* @__PURE__ */ jsx45("h1", { className: "text-3xl font-bold text-foreground", children: "@onesaz/ui Playground" }),
|
|
8054
8347
|
/* @__PURE__ */ jsx45(ThemeToggle, {})
|
|
8055
8348
|
] }),
|
|
8056
|
-
/* @__PURE__ */
|
|
8057
|
-
/* @__PURE__ */
|
|
8349
|
+
/* @__PURE__ */ jsxs31(Section, { title: "Button", children: [
|
|
8350
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex flex-wrap gap-4", children: [
|
|
8058
8351
|
/* @__PURE__ */ jsx45(Button, { variant: "default", children: "Default" }),
|
|
8059
8352
|
/* @__PURE__ */ jsx45(Button, { variant: "destructive", children: "Destructive" }),
|
|
8060
8353
|
/* @__PURE__ */ jsx45(Button, { variant: "outline", children: "Outline" }),
|
|
@@ -8062,19 +8355,19 @@ var PlaygroundContent = () => {
|
|
|
8062
8355
|
/* @__PURE__ */ jsx45(Button, { variant: "ghost", children: "Ghost" }),
|
|
8063
8356
|
/* @__PURE__ */ jsx45(Button, { variant: "link", children: "Link" })
|
|
8064
8357
|
] }),
|
|
8065
|
-
/* @__PURE__ */
|
|
8358
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex flex-wrap gap-4 mt-4", children: [
|
|
8066
8359
|
/* @__PURE__ */ jsx45(Button, { size: "sm", children: "Small" }),
|
|
8067
8360
|
/* @__PURE__ */ jsx45(Button, { size: "default", children: "Default" }),
|
|
8068
8361
|
/* @__PURE__ */ jsx45(Button, { size: "lg", children: "Large" }),
|
|
8069
8362
|
/* @__PURE__ */ jsx45(Button, { size: "icon", children: "\u{1F514}" })
|
|
8070
8363
|
] }),
|
|
8071
|
-
/* @__PURE__ */
|
|
8364
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex flex-wrap gap-4 mt-4", children: [
|
|
8072
8365
|
/* @__PURE__ */ jsx45(Button, { disabled: true, children: "Disabled" }),
|
|
8073
8366
|
/* @__PURE__ */ jsx45(Button, { variant: "outline", disabled: true, children: "Disabled Outline" })
|
|
8074
8367
|
] })
|
|
8075
8368
|
] }),
|
|
8076
|
-
/* @__PURE__ */ jsx45(Section, { title: "Input", children: /* @__PURE__ */
|
|
8077
|
-
/* @__PURE__ */
|
|
8369
|
+
/* @__PURE__ */ jsx45(Section, { title: "Input", children: /* @__PURE__ */ jsxs31("div", { className: "space-y-4 max-w-md", children: [
|
|
8370
|
+
/* @__PURE__ */ jsxs31("div", { children: [
|
|
8078
8371
|
/* @__PURE__ */ jsx45(Label, { htmlFor: "input-default", children: "Default Input" }),
|
|
8079
8372
|
/* @__PURE__ */ jsx45(
|
|
8080
8373
|
Input,
|
|
@@ -8086,17 +8379,17 @@ var PlaygroundContent = () => {
|
|
|
8086
8379
|
}
|
|
8087
8380
|
)
|
|
8088
8381
|
] }),
|
|
8089
|
-
/* @__PURE__ */
|
|
8382
|
+
/* @__PURE__ */ jsxs31("div", { children: [
|
|
8090
8383
|
/* @__PURE__ */ jsx45(Label, { htmlFor: "input-disabled", children: "Disabled Input" }),
|
|
8091
8384
|
/* @__PURE__ */ jsx45(Input, { id: "input-disabled", placeholder: "Disabled...", disabled: true })
|
|
8092
8385
|
] }),
|
|
8093
|
-
/* @__PURE__ */
|
|
8386
|
+
/* @__PURE__ */ jsxs31("div", { children: [
|
|
8094
8387
|
/* @__PURE__ */ jsx45(Label, { htmlFor: "input-type", children: "Email Input" }),
|
|
8095
8388
|
/* @__PURE__ */ jsx45(Input, { id: "input-type", type: "email", placeholder: "email@example.com" })
|
|
8096
8389
|
] })
|
|
8097
8390
|
] }) }),
|
|
8098
|
-
/* @__PURE__ */ jsx45(Section, { title: "Textarea", children: /* @__PURE__ */
|
|
8099
|
-
/* @__PURE__ */
|
|
8391
|
+
/* @__PURE__ */ jsx45(Section, { title: "Textarea", children: /* @__PURE__ */ jsxs31("div", { className: "space-y-4 max-w-md", children: [
|
|
8392
|
+
/* @__PURE__ */ jsxs31("div", { children: [
|
|
8100
8393
|
/* @__PURE__ */ jsx45(Label, { htmlFor: "textarea-default", children: "Default Textarea" }),
|
|
8101
8394
|
/* @__PURE__ */ jsx45(
|
|
8102
8395
|
Textarea,
|
|
@@ -8108,34 +8401,34 @@ var PlaygroundContent = () => {
|
|
|
8108
8401
|
}
|
|
8109
8402
|
)
|
|
8110
8403
|
] }),
|
|
8111
|
-
/* @__PURE__ */
|
|
8404
|
+
/* @__PURE__ */ jsxs31("div", { children: [
|
|
8112
8405
|
/* @__PURE__ */ jsx45(Label, { htmlFor: "textarea-disabled", children: "Disabled Textarea" }),
|
|
8113
8406
|
/* @__PURE__ */ jsx45(Textarea, { id: "textarea-disabled", placeholder: "Disabled...", disabled: true })
|
|
8114
8407
|
] })
|
|
8115
8408
|
] }) }),
|
|
8116
|
-
/* @__PURE__ */ jsx45(Section, { title: "Select", children: /* @__PURE__ */
|
|
8117
|
-
/* @__PURE__ */
|
|
8409
|
+
/* @__PURE__ */ jsx45(Section, { title: "Select", children: /* @__PURE__ */ jsxs31("div", { className: "space-y-4 max-w-md", children: [
|
|
8410
|
+
/* @__PURE__ */ jsxs31("div", { children: [
|
|
8118
8411
|
/* @__PURE__ */ jsx45(Label, { children: "Default Select" }),
|
|
8119
|
-
/* @__PURE__ */
|
|
8412
|
+
/* @__PURE__ */ jsxs31(SelectNamespace, { value: selectValue, onValueChange: setSelectValue, children: [
|
|
8120
8413
|
/* @__PURE__ */ jsx45(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx45(SelectValue, { placeholder: "Select an option..." }) }),
|
|
8121
|
-
/* @__PURE__ */
|
|
8414
|
+
/* @__PURE__ */ jsxs31(SelectContent, { children: [
|
|
8122
8415
|
/* @__PURE__ */ jsx45(SelectItem, { value: "option1", children: "Option 1" }),
|
|
8123
8416
|
/* @__PURE__ */ jsx45(SelectItem, { value: "option2", children: "Option 2" }),
|
|
8124
8417
|
/* @__PURE__ */ jsx45(SelectItem, { value: "option3", children: "Option 3" })
|
|
8125
8418
|
] })
|
|
8126
8419
|
] })
|
|
8127
8420
|
] }),
|
|
8128
|
-
/* @__PURE__ */
|
|
8421
|
+
/* @__PURE__ */ jsxs31("div", { children: [
|
|
8129
8422
|
/* @__PURE__ */ jsx45(Label, { children: "Grouped Select" }),
|
|
8130
|
-
/* @__PURE__ */
|
|
8423
|
+
/* @__PURE__ */ jsxs31(SelectNamespace, { children: [
|
|
8131
8424
|
/* @__PURE__ */ jsx45(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx45(SelectValue, { placeholder: "Select a food..." }) }),
|
|
8132
|
-
/* @__PURE__ */
|
|
8133
|
-
/* @__PURE__ */
|
|
8425
|
+
/* @__PURE__ */ jsxs31(SelectContent, { children: [
|
|
8426
|
+
/* @__PURE__ */ jsxs31(SelectGroup, { children: [
|
|
8134
8427
|
/* @__PURE__ */ jsx45(SelectLabel, { children: "Fruits" }),
|
|
8135
8428
|
/* @__PURE__ */ jsx45(SelectItem, { value: "apple", children: "Apple" }),
|
|
8136
8429
|
/* @__PURE__ */ jsx45(SelectItem, { value: "banana", children: "Banana" })
|
|
8137
8430
|
] }),
|
|
8138
|
-
/* @__PURE__ */
|
|
8431
|
+
/* @__PURE__ */ jsxs31(SelectGroup, { children: [
|
|
8139
8432
|
/* @__PURE__ */ jsx45(SelectLabel, { children: "Vegetables" }),
|
|
8140
8433
|
/* @__PURE__ */ jsx45(SelectItem, { value: "carrot", children: "Carrot" }),
|
|
8141
8434
|
/* @__PURE__ */ jsx45(SelectItem, { value: "potato", children: "Potato" })
|
|
@@ -8143,15 +8436,15 @@ var PlaygroundContent = () => {
|
|
|
8143
8436
|
] })
|
|
8144
8437
|
] })
|
|
8145
8438
|
] }),
|
|
8146
|
-
/* @__PURE__ */
|
|
8439
|
+
/* @__PURE__ */ jsxs31("div", { children: [
|
|
8147
8440
|
/* @__PURE__ */ jsx45(Label, { children: "Disabled Select" }),
|
|
8148
|
-
/* @__PURE__ */
|
|
8441
|
+
/* @__PURE__ */ jsxs31(SelectNamespace, { disabled: true, children: [
|
|
8149
8442
|
/* @__PURE__ */ jsx45(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx45(SelectValue, { placeholder: "Disabled..." }) }),
|
|
8150
8443
|
/* @__PURE__ */ jsx45(SelectContent, { children: /* @__PURE__ */ jsx45(SelectItem, { value: "none", children: "None" }) })
|
|
8151
8444
|
] })
|
|
8152
8445
|
] })
|
|
8153
8446
|
] }) }),
|
|
8154
|
-
/* @__PURE__ */ jsx45(Section, { title: "Combobox (Searchable Select)", children: /* @__PURE__ */ jsx45("div", { className: "space-y-4 max-w-md", children: /* @__PURE__ */
|
|
8447
|
+
/* @__PURE__ */ jsx45(Section, { title: "Combobox (Searchable Select)", children: /* @__PURE__ */ jsx45("div", { className: "space-y-4 max-w-md", children: /* @__PURE__ */ jsxs31("div", { children: [
|
|
8155
8448
|
/* @__PURE__ */ jsx45(Label, { children: "Framework" }),
|
|
8156
8449
|
/* @__PURE__ */ jsx45(
|
|
8157
8450
|
Combobox,
|
|
@@ -8165,8 +8458,8 @@ var PlaygroundContent = () => {
|
|
|
8165
8458
|
}
|
|
8166
8459
|
)
|
|
8167
8460
|
] }) }) }),
|
|
8168
|
-
/* @__PURE__ */ jsx45(Section, { title: "Checkbox & Switch", children: /* @__PURE__ */
|
|
8169
|
-
/* @__PURE__ */
|
|
8461
|
+
/* @__PURE__ */ jsx45(Section, { title: "Checkbox & Switch", children: /* @__PURE__ */ jsxs31("div", { className: "space-y-4", children: [
|
|
8462
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-2", children: [
|
|
8170
8463
|
/* @__PURE__ */ jsx45(
|
|
8171
8464
|
Checkbox,
|
|
8172
8465
|
{
|
|
@@ -8177,12 +8470,12 @@ var PlaygroundContent = () => {
|
|
|
8177
8470
|
),
|
|
8178
8471
|
/* @__PURE__ */ jsx45(Label, { htmlFor: "checkbox", children: "Accept terms and conditions" })
|
|
8179
8472
|
] }),
|
|
8180
|
-
/* @__PURE__ */
|
|
8473
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-2", children: [
|
|
8181
8474
|
/* @__PURE__ */ jsx45(Checkbox, { id: "checkbox-disabled", disabled: true }),
|
|
8182
8475
|
/* @__PURE__ */ jsx45(Label, { htmlFor: "checkbox-disabled", children: "Disabled checkbox" })
|
|
8183
8476
|
] }),
|
|
8184
8477
|
/* @__PURE__ */ jsx45(Separator, {}),
|
|
8185
|
-
/* @__PURE__ */
|
|
8478
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-2", children: [
|
|
8186
8479
|
/* @__PURE__ */ jsx45(
|
|
8187
8480
|
Switch,
|
|
8188
8481
|
{
|
|
@@ -8193,75 +8486,75 @@ var PlaygroundContent = () => {
|
|
|
8193
8486
|
),
|
|
8194
8487
|
/* @__PURE__ */ jsx45(Label, { htmlFor: "switch", children: "Enable notifications" })
|
|
8195
8488
|
] }),
|
|
8196
|
-
/* @__PURE__ */
|
|
8489
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-2", children: [
|
|
8197
8490
|
/* @__PURE__ */ jsx45(Switch, { id: "switch-disabled", disabled: true }),
|
|
8198
8491
|
/* @__PURE__ */ jsx45(Label, { htmlFor: "switch-disabled", children: "Disabled switch" })
|
|
8199
8492
|
] })
|
|
8200
8493
|
] }) }),
|
|
8201
|
-
/* @__PURE__ */ jsx45(Section, { title: "Badge", children: /* @__PURE__ */
|
|
8494
|
+
/* @__PURE__ */ jsx45(Section, { title: "Badge", children: /* @__PURE__ */ jsxs31("div", { className: "flex flex-wrap gap-4", children: [
|
|
8202
8495
|
/* @__PURE__ */ jsx45(Badge, { children: "Default" }),
|
|
8203
8496
|
/* @__PURE__ */ jsx45(Badge, { variant: "secondary", children: "Secondary" }),
|
|
8204
8497
|
/* @__PURE__ */ jsx45(Badge, { variant: "destructive", children: "Destructive" }),
|
|
8205
8498
|
/* @__PURE__ */ jsx45(Badge, { variant: "outline", children: "Outline" })
|
|
8206
8499
|
] }) }),
|
|
8207
|
-
/* @__PURE__ */ jsx45(Section, { title: "Card", children: /* @__PURE__ */
|
|
8208
|
-
/* @__PURE__ */
|
|
8209
|
-
/* @__PURE__ */
|
|
8500
|
+
/* @__PURE__ */ jsx45(Section, { title: "Card", children: /* @__PURE__ */ jsxs31("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
8501
|
+
/* @__PURE__ */ jsxs31(Card, { children: [
|
|
8502
|
+
/* @__PURE__ */ jsxs31(CardHeader, { children: [
|
|
8210
8503
|
/* @__PURE__ */ jsx45(CardTitle, { children: "Card Title" }),
|
|
8211
8504
|
/* @__PURE__ */ jsx45(CardDescription, { children: "Card description goes here" })
|
|
8212
8505
|
] }),
|
|
8213
8506
|
/* @__PURE__ */ jsx45(CardContent, { children: /* @__PURE__ */ jsx45("p", { className: "text-foreground", children: "This is the card content area." }) }),
|
|
8214
|
-
/* @__PURE__ */
|
|
8507
|
+
/* @__PURE__ */ jsxs31(CardFooter, { children: [
|
|
8215
8508
|
/* @__PURE__ */ jsx45(Button, { variant: "outline", className: "mr-2", children: "Cancel" }),
|
|
8216
8509
|
/* @__PURE__ */ jsx45(Button, { children: "Submit" })
|
|
8217
8510
|
] })
|
|
8218
8511
|
] }),
|
|
8219
|
-
/* @__PURE__ */
|
|
8220
|
-
/* @__PURE__ */
|
|
8512
|
+
/* @__PURE__ */ jsxs31(Card, { children: [
|
|
8513
|
+
/* @__PURE__ */ jsxs31(CardHeader, { children: [
|
|
8221
8514
|
/* @__PURE__ */ jsx45(CardTitle, { children: "Another Card" }),
|
|
8222
8515
|
/* @__PURE__ */ jsx45(CardDescription, { children: "With different content" })
|
|
8223
8516
|
] }),
|
|
8224
|
-
/* @__PURE__ */ jsx45(CardContent, { children: /* @__PURE__ */
|
|
8517
|
+
/* @__PURE__ */ jsx45(CardContent, { children: /* @__PURE__ */ jsxs31("div", { className: "space-y-2", children: [
|
|
8225
8518
|
/* @__PURE__ */ jsx45(Label, { htmlFor: "card-input", children: "Name" }),
|
|
8226
8519
|
/* @__PURE__ */ jsx45(Input, { id: "card-input", placeholder: "Enter name..." })
|
|
8227
8520
|
] }) }),
|
|
8228
8521
|
/* @__PURE__ */ jsx45(CardFooter, { children: /* @__PURE__ */ jsx45(Button, { className: "w-full", children: "Save" }) })
|
|
8229
8522
|
] })
|
|
8230
8523
|
] }) }),
|
|
8231
|
-
/* @__PURE__ */
|
|
8524
|
+
/* @__PURE__ */ jsxs31(Section, { title: "Dialog", children: [
|
|
8232
8525
|
/* @__PURE__ */ jsx45(Button, { onClick: () => setDialogOpen(true), children: "Open Dialog" }),
|
|
8233
|
-
/* @__PURE__ */ jsx45(DialogNamespace, { open: dialogOpen, onOpenChange: setDialogOpen, children: /* @__PURE__ */
|
|
8234
|
-
/* @__PURE__ */
|
|
8526
|
+
/* @__PURE__ */ jsx45(DialogNamespace, { open: dialogOpen, onOpenChange: setDialogOpen, children: /* @__PURE__ */ jsxs31(DialogContent, { children: [
|
|
8527
|
+
/* @__PURE__ */ jsxs31(DialogHeader, { children: [
|
|
8235
8528
|
/* @__PURE__ */ jsx45(DialogTitle, { children: "Create New Zone" }),
|
|
8236
8529
|
/* @__PURE__ */ jsx45(DialogDescription, { children: "Fill in the details below to create a new zone." })
|
|
8237
8530
|
] }),
|
|
8238
|
-
/* @__PURE__ */
|
|
8239
|
-
/* @__PURE__ */
|
|
8240
|
-
/* @__PURE__ */
|
|
8531
|
+
/* @__PURE__ */ jsxs31("div", { className: "space-y-4 py-4", children: [
|
|
8532
|
+
/* @__PURE__ */ jsxs31("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
8533
|
+
/* @__PURE__ */ jsxs31("div", { children: [
|
|
8241
8534
|
/* @__PURE__ */ jsx45(Label, { htmlFor: "zone-name", children: "Zone Name *" }),
|
|
8242
8535
|
/* @__PURE__ */ jsx45(Input, { id: "zone-name", placeholder: "eg:hyderabad" })
|
|
8243
8536
|
] }),
|
|
8244
|
-
/* @__PURE__ */
|
|
8537
|
+
/* @__PURE__ */ jsxs31("div", { children: [
|
|
8245
8538
|
/* @__PURE__ */ jsx45(Label, { htmlFor: "zone-code", children: "Zone Code *" }),
|
|
8246
8539
|
/* @__PURE__ */ jsx45(Input, { id: "zone-code", placeholder: "eg :hyd022" })
|
|
8247
8540
|
] })
|
|
8248
8541
|
] }),
|
|
8249
|
-
/* @__PURE__ */
|
|
8250
|
-
/* @__PURE__ */
|
|
8542
|
+
/* @__PURE__ */ jsxs31("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
8543
|
+
/* @__PURE__ */ jsxs31("div", { children: [
|
|
8251
8544
|
/* @__PURE__ */ jsx45(Label, { children: "State *" }),
|
|
8252
|
-
/* @__PURE__ */
|
|
8545
|
+
/* @__PURE__ */ jsxs31(SelectNamespace, { children: [
|
|
8253
8546
|
/* @__PURE__ */ jsx45(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx45(SelectValue, { placeholder: "Select state" }) }),
|
|
8254
|
-
/* @__PURE__ */
|
|
8547
|
+
/* @__PURE__ */ jsxs31(SelectContent, { children: [
|
|
8255
8548
|
/* @__PURE__ */ jsx45(SelectItem, { value: "telangana", children: "TELANGANA" }),
|
|
8256
8549
|
/* @__PURE__ */ jsx45(SelectItem, { value: "andhra", children: "ANDHRA PRADESH" })
|
|
8257
8550
|
] })
|
|
8258
8551
|
] })
|
|
8259
8552
|
] }),
|
|
8260
|
-
/* @__PURE__ */
|
|
8553
|
+
/* @__PURE__ */ jsxs31("div", { children: [
|
|
8261
8554
|
/* @__PURE__ */ jsx45(Label, { children: "District *" }),
|
|
8262
|
-
/* @__PURE__ */
|
|
8555
|
+
/* @__PURE__ */ jsxs31(SelectNamespace, { children: [
|
|
8263
8556
|
/* @__PURE__ */ jsx45(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx45(SelectValue, { placeholder: "Select District" }) }),
|
|
8264
|
-
/* @__PURE__ */
|
|
8557
|
+
/* @__PURE__ */ jsxs31(SelectContent, { children: [
|
|
8265
8558
|
/* @__PURE__ */ jsx45(SelectItem, { value: "hyderabad", children: "HYDERABAD" }),
|
|
8266
8559
|
/* @__PURE__ */ jsx45(SelectItem, { value: "rangareddy", children: "RANGAREDDY" })
|
|
8267
8560
|
] })
|
|
@@ -8269,34 +8562,34 @@ var PlaygroundContent = () => {
|
|
|
8269
8562
|
] })
|
|
8270
8563
|
] })
|
|
8271
8564
|
] }),
|
|
8272
|
-
/* @__PURE__ */
|
|
8565
|
+
/* @__PURE__ */ jsxs31(DialogFooter, { children: [
|
|
8273
8566
|
/* @__PURE__ */ jsx45(Button, { variant: "outline", onClick: () => setDialogOpen(false), children: "CANCEL" }),
|
|
8274
8567
|
/* @__PURE__ */ jsx45(Button, { onClick: () => setDialogOpen(false), children: "Create" })
|
|
8275
8568
|
] })
|
|
8276
8569
|
] }) })
|
|
8277
8570
|
] }),
|
|
8278
|
-
/* @__PURE__ */ jsx45(Section, { title: "Table", children: /* @__PURE__ */
|
|
8571
|
+
/* @__PURE__ */ jsx45(Section, { title: "Table", children: /* @__PURE__ */ jsxs31(TableNamespace, { children: [
|
|
8279
8572
|
/* @__PURE__ */ jsx45(TableCaption, { children: "A list of recent invoices" }),
|
|
8280
|
-
/* @__PURE__ */ jsx45(TableHeader, { children: /* @__PURE__ */
|
|
8573
|
+
/* @__PURE__ */ jsx45(TableHeader, { children: /* @__PURE__ */ jsxs31(TableRow, { children: [
|
|
8281
8574
|
/* @__PURE__ */ jsx45(TableHead, { children: "Invoice" }),
|
|
8282
8575
|
/* @__PURE__ */ jsx45(TableHead, { children: "Status" }),
|
|
8283
8576
|
/* @__PURE__ */ jsx45(TableHead, { children: "Method" }),
|
|
8284
8577
|
/* @__PURE__ */ jsx45(TableHead, { className: "text-right", children: "Amount" })
|
|
8285
8578
|
] }) }),
|
|
8286
|
-
/* @__PURE__ */
|
|
8287
|
-
/* @__PURE__ */
|
|
8579
|
+
/* @__PURE__ */ jsxs31(TableBody, { children: [
|
|
8580
|
+
/* @__PURE__ */ jsxs31(TableRow, { children: [
|
|
8288
8581
|
/* @__PURE__ */ jsx45(TableCell, { children: "INV001" }),
|
|
8289
8582
|
/* @__PURE__ */ jsx45(TableCell, { children: /* @__PURE__ */ jsx45(Badge, { children: "Paid" }) }),
|
|
8290
8583
|
/* @__PURE__ */ jsx45(TableCell, { children: "Credit Card" }),
|
|
8291
8584
|
/* @__PURE__ */ jsx45(TableCell, { className: "text-right", children: "$250.00" })
|
|
8292
8585
|
] }),
|
|
8293
|
-
/* @__PURE__ */
|
|
8586
|
+
/* @__PURE__ */ jsxs31(TableRow, { children: [
|
|
8294
8587
|
/* @__PURE__ */ jsx45(TableCell, { children: "INV002" }),
|
|
8295
8588
|
/* @__PURE__ */ jsx45(TableCell, { children: /* @__PURE__ */ jsx45(Badge, { variant: "secondary", children: "Pending" }) }),
|
|
8296
8589
|
/* @__PURE__ */ jsx45(TableCell, { children: "PayPal" }),
|
|
8297
8590
|
/* @__PURE__ */ jsx45(TableCell, { className: "text-right", children: "$150.00" })
|
|
8298
8591
|
] }),
|
|
8299
|
-
/* @__PURE__ */
|
|
8592
|
+
/* @__PURE__ */ jsxs31(TableRow, { children: [
|
|
8300
8593
|
/* @__PURE__ */ jsx45(TableCell, { children: "INV003" }),
|
|
8301
8594
|
/* @__PURE__ */ jsx45(TableCell, { children: /* @__PURE__ */ jsx45(Badge, { variant: "destructive", children: "Failed" }) }),
|
|
8302
8595
|
/* @__PURE__ */ jsx45(TableCell, { children: "Bank Transfer" }),
|
|
@@ -8304,7 +8597,7 @@ var PlaygroundContent = () => {
|
|
|
8304
8597
|
] })
|
|
8305
8598
|
] })
|
|
8306
8599
|
] }) }),
|
|
8307
|
-
/* @__PURE__ */ jsx45(Section, { title: "Pagination", children: /* @__PURE__ */ jsx45(PaginationNamespace, { children: /* @__PURE__ */
|
|
8600
|
+
/* @__PURE__ */ jsx45(Section, { title: "Pagination", children: /* @__PURE__ */ jsx45(PaginationNamespace, { children: /* @__PURE__ */ jsxs31(PaginationContent, { children: [
|
|
8308
8601
|
/* @__PURE__ */ jsx45(PaginationItem, { children: /* @__PURE__ */ jsx45(PaginationPrevious, { onClick: () => console.log("Previous") }) }),
|
|
8309
8602
|
/* @__PURE__ */ jsx45(PaginationItem, { children: /* @__PURE__ */ jsx45(PaginationLink, { isActive: true, children: "1" }) }),
|
|
8310
8603
|
/* @__PURE__ */ jsx45(PaginationItem, { children: /* @__PURE__ */ jsx45(PaginationLink, { children: "2" }) }),
|
|
@@ -8312,31 +8605,31 @@ var PlaygroundContent = () => {
|
|
|
8312
8605
|
/* @__PURE__ */ jsx45(PaginationItem, { children: /* @__PURE__ */ jsx45(PaginationEllipsis, {}) }),
|
|
8313
8606
|
/* @__PURE__ */ jsx45(PaginationItem, { children: /* @__PURE__ */ jsx45(PaginationNext, { onClick: () => console.log("Next") }) })
|
|
8314
8607
|
] }) }) }),
|
|
8315
|
-
/* @__PURE__ */ jsx45(Section, { title: "Spinner", children: /* @__PURE__ */
|
|
8316
|
-
/* @__PURE__ */
|
|
8608
|
+
/* @__PURE__ */ jsx45(Section, { title: "Spinner", children: /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-8", children: [
|
|
8609
|
+
/* @__PURE__ */ jsxs31("div", { className: "text-center", children: [
|
|
8317
8610
|
/* @__PURE__ */ jsx45(Spinner, { size: "sm" }),
|
|
8318
8611
|
/* @__PURE__ */ jsx45("p", { className: "text-sm text-muted-foreground mt-2", children: "Small" })
|
|
8319
8612
|
] }),
|
|
8320
|
-
/* @__PURE__ */
|
|
8613
|
+
/* @__PURE__ */ jsxs31("div", { className: "text-center", children: [
|
|
8321
8614
|
/* @__PURE__ */ jsx45(Spinner, { size: "default" }),
|
|
8322
8615
|
/* @__PURE__ */ jsx45("p", { className: "text-sm text-muted-foreground mt-2", children: "Default" })
|
|
8323
8616
|
] }),
|
|
8324
|
-
/* @__PURE__ */
|
|
8617
|
+
/* @__PURE__ */ jsxs31("div", { className: "text-center", children: [
|
|
8325
8618
|
/* @__PURE__ */ jsx45(Spinner, { size: "lg" }),
|
|
8326
8619
|
/* @__PURE__ */ jsx45("p", { className: "text-sm text-muted-foreground mt-2", children: "Large" })
|
|
8327
8620
|
] })
|
|
8328
8621
|
] }) }),
|
|
8329
|
-
/* @__PURE__ */ jsx45(Section, { title: "Separator", children: /* @__PURE__ */
|
|
8622
|
+
/* @__PURE__ */ jsx45(Section, { title: "Separator", children: /* @__PURE__ */ jsxs31("div", { className: "space-y-4", children: [
|
|
8330
8623
|
/* @__PURE__ */ jsx45("p", { className: "text-foreground", children: "Content above separator" }),
|
|
8331
8624
|
/* @__PURE__ */ jsx45(Separator, {}),
|
|
8332
8625
|
/* @__PURE__ */ jsx45("p", { className: "text-foreground", children: "Content below separator" }),
|
|
8333
|
-
/* @__PURE__ */
|
|
8626
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex items-center h-10", children: [
|
|
8334
8627
|
/* @__PURE__ */ jsx45("span", { className: "text-foreground", children: "Left" }),
|
|
8335
8628
|
/* @__PURE__ */ jsx45(Separator, { orientation: "vertical", className: "mx-4" }),
|
|
8336
8629
|
/* @__PURE__ */ jsx45("span", { className: "text-foreground", children: "Right" })
|
|
8337
8630
|
] })
|
|
8338
8631
|
] }) }),
|
|
8339
|
-
/* @__PURE__ */ jsx45(Section, { title: "Typography & Colors", children: /* @__PURE__ */
|
|
8632
|
+
/* @__PURE__ */ jsx45(Section, { title: "Typography & Colors", children: /* @__PURE__ */ jsxs31("div", { className: "space-y-2", children: [
|
|
8340
8633
|
/* @__PURE__ */ jsx45("p", { className: "text-foreground", children: "text-foreground - Primary text color" }),
|
|
8341
8634
|
/* @__PURE__ */ jsx45("p", { className: "text-muted-foreground", children: "text-muted-foreground - Muted text color" }),
|
|
8342
8635
|
/* @__PURE__ */ jsx45("p", { className: "text-accent", children: "text-accent - Accent color" }),
|
|
@@ -8454,6 +8747,7 @@ export {
|
|
|
8454
8747
|
ListDivider,
|
|
8455
8748
|
ListItem,
|
|
8456
8749
|
ListItemAvatar,
|
|
8750
|
+
ListItemButton,
|
|
8457
8751
|
ListItemIcon,
|
|
8458
8752
|
ListItemText,
|
|
8459
8753
|
ListSubheader,
|
|
@@ -8562,6 +8856,7 @@ export {
|
|
|
8562
8856
|
VerticalTabsGroupLabel,
|
|
8563
8857
|
VerticalTabsList,
|
|
8564
8858
|
VerticalTabsTrigger,
|
|
8859
|
+
VirtualList,
|
|
8565
8860
|
cn,
|
|
8566
8861
|
useFormControl,
|
|
8567
8862
|
useSidebar,
|