@onesaz/ui 0.3.23 → 0.3.24
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 +33 -1
- package/dist/index.js +637 -522
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4529,108 +4529,105 @@ var DataGridPagination = ({
|
|
|
4529
4529
|
const currentPage = table.getState().pagination.pageIndex;
|
|
4530
4530
|
const totalRows = paginationMode === "server" && rowCount ? rowCount : table.getFilteredRowModel().rows.length;
|
|
4531
4531
|
const pageSize = table.getState().pagination.pageSize;
|
|
4532
|
-
const getPageNumbers = () => {
|
|
4532
|
+
const getPageNumbers = (maxVisible) => {
|
|
4533
4533
|
const pages = [];
|
|
4534
|
-
const maxVisible = 3;
|
|
4535
4534
|
if (pageCount <= maxVisible) {
|
|
4536
4535
|
for (let i = 0; i < pageCount; i++) pages.push(i);
|
|
4537
4536
|
} else {
|
|
4537
|
+
const half = Math.floor(maxVisible / 2);
|
|
4538
|
+
const start = Math.max(1, currentPage - half);
|
|
4539
|
+
const end = Math.min(pageCount - 2, currentPage + half);
|
|
4538
4540
|
pages.push(0);
|
|
4539
|
-
if (
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
pages.push(currentPage);
|
|
4544
|
-
}
|
|
4545
|
-
if (currentPage < pageCount - 2) {
|
|
4546
|
-
pages.push("ellipsis");
|
|
4547
|
-
}
|
|
4548
|
-
if (!pages.includes(pageCount - 1)) {
|
|
4549
|
-
pages.push(pageCount - 1);
|
|
4550
|
-
}
|
|
4541
|
+
if (start > 1) pages.push("ellipsis");
|
|
4542
|
+
for (let i = start; i <= end; i++) pages.push(i);
|
|
4543
|
+
if (end < pageCount - 2) pages.push("ellipsis");
|
|
4544
|
+
pages.push(pageCount - 1);
|
|
4551
4545
|
}
|
|
4552
4546
|
return pages;
|
|
4553
4547
|
};
|
|
4554
4548
|
const startRow = currentPage * pageSize + 1;
|
|
4555
4549
|
const endRow = Math.min((currentPage + 1) * pageSize, totalRows);
|
|
4556
|
-
|
|
4557
|
-
/* @__PURE__ */
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
startRow,
|
|
4572
|
-
"\u2013",
|
|
4573
|
-
endRow,
|
|
4574
|
-
" of ",
|
|
4575
|
-
totalRows
|
|
4576
|
-
] })
|
|
4577
|
-
] }),
|
|
4578
|
-
/* @__PURE__ */ jsx36("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx36(PaginationNamespace, { className: "mx-0 w-auto", children: /* @__PURE__ */ jsxs22(PaginationContent, { children: [
|
|
4579
|
-
/* @__PURE__ */ jsx36(PaginationItem, { children: /* @__PURE__ */ jsx36(
|
|
4580
|
-
Button,
|
|
4581
|
-
{
|
|
4582
|
-
variant: "outline",
|
|
4583
|
-
size: "icon",
|
|
4584
|
-
className: "h-8 w-8",
|
|
4585
|
-
onClick: () => table.setPageIndex(0),
|
|
4586
|
-
disabled: !table.getCanPreviousPage(),
|
|
4587
|
-
children: /* @__PURE__ */ jsx36("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx36("path", { d: "M11 17l-5-5 5-5M18 17l-5-5 5-5" }) })
|
|
4588
|
-
}
|
|
4589
|
-
) }),
|
|
4590
|
-
/* @__PURE__ */ jsx36(PaginationItem, { children: /* @__PURE__ */ jsx36(
|
|
4591
|
-
Button,
|
|
4592
|
-
{
|
|
4593
|
-
variant: "outline",
|
|
4594
|
-
size: "icon",
|
|
4595
|
-
className: "h-8 w-8",
|
|
4596
|
-
onClick: () => table.previousPage(),
|
|
4597
|
-
disabled: !table.getCanPreviousPage(),
|
|
4598
|
-
children: /* @__PURE__ */ jsx36("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx36("path", { d: "M15 18l-6-6 6-6" }) })
|
|
4599
|
-
}
|
|
4600
|
-
) }),
|
|
4601
|
-
getPageNumbers().map(
|
|
4602
|
-
(page, idx) => page === "ellipsis" ? /* @__PURE__ */ jsx36(PaginationItem, { children: /* @__PURE__ */ jsx36(PaginationEllipsis, {}) }, `ellipsis-${idx}`) : /* @__PURE__ */ jsx36(PaginationItem, { children: /* @__PURE__ */ jsx36(
|
|
4603
|
-
PaginationLink,
|
|
4604
|
-
{
|
|
4605
|
-
isActive: page === currentPage,
|
|
4606
|
-
onClick: () => table.setPageIndex(page),
|
|
4607
|
-
children: page + 1
|
|
4608
|
-
}
|
|
4609
|
-
) }, page)
|
|
4610
|
-
),
|
|
4611
|
-
/* @__PURE__ */ jsx36(PaginationItem, { children: /* @__PURE__ */ jsx36(
|
|
4612
|
-
Button,
|
|
4613
|
-
{
|
|
4614
|
-
variant: "outline",
|
|
4615
|
-
size: "icon",
|
|
4616
|
-
className: "h-8 w-8",
|
|
4617
|
-
onClick: () => table.nextPage(),
|
|
4618
|
-
disabled: !table.getCanNextPage(),
|
|
4619
|
-
children: /* @__PURE__ */ jsx36("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx36("path", { d: "M9 18l6-6-6-6" }) })
|
|
4620
|
-
}
|
|
4621
|
-
) }),
|
|
4622
|
-
/* @__PURE__ */ jsx36(PaginationItem, { children: /* @__PURE__ */ jsx36(
|
|
4623
|
-
Button,
|
|
4550
|
+
const renderPageNumbers = (maxVisible) => getPageNumbers(maxVisible).map(
|
|
4551
|
+
(page, idx) => page === "ellipsis" ? /* @__PURE__ */ jsx36(PaginationItem, { children: /* @__PURE__ */ jsx36(PaginationEllipsis, {}) }, `ellipsis-${idx}`) : /* @__PURE__ */ jsx36(PaginationItem, { children: /* @__PURE__ */ jsx36(
|
|
4552
|
+
PaginationLink,
|
|
4553
|
+
{
|
|
4554
|
+
isActive: page === currentPage,
|
|
4555
|
+
onClick: () => table.setPageIndex(page),
|
|
4556
|
+
children: page + 1
|
|
4557
|
+
}
|
|
4558
|
+
) }, page)
|
|
4559
|
+
);
|
|
4560
|
+
const infoSection = /* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-4 flex-wrap", children: [
|
|
4561
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-2 text-xs text-muted-foreground whitespace-nowrap", children: [
|
|
4562
|
+
/* @__PURE__ */ jsx36("span", { children: "Rows per page:" }),
|
|
4563
|
+
/* @__PURE__ */ jsx36(
|
|
4564
|
+
"select",
|
|
4624
4565
|
{
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
className: "h-8
|
|
4628
|
-
|
|
4629
|
-
disabled: !table.getCanNextPage(),
|
|
4630
|
-
children: /* @__PURE__ */ jsx36("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx36("path", { d: "M13 17l5-5-5-5M6 17l5-5-5-5" }) })
|
|
4566
|
+
value: pageSize,
|
|
4567
|
+
onChange: (e) => table.setPageSize(Number(e.target.value)),
|
|
4568
|
+
className: "h-8 rounded-md border border-border bg-background px-2 text-xs text-foreground focus:outline-none focus:ring-2 focus:ring-ring",
|
|
4569
|
+
children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx36("option", { value: size, children: size }, size))
|
|
4631
4570
|
}
|
|
4632
|
-
)
|
|
4633
|
-
] })
|
|
4571
|
+
)
|
|
4572
|
+
] }),
|
|
4573
|
+
/* @__PURE__ */ jsxs22("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: [
|
|
4574
|
+
startRow,
|
|
4575
|
+
"\u2013",
|
|
4576
|
+
endRow,
|
|
4577
|
+
" of ",
|
|
4578
|
+
totalRows
|
|
4579
|
+
] })
|
|
4580
|
+
] });
|
|
4581
|
+
const navSection = (maxVisible) => /* @__PURE__ */ jsx36(PaginationNamespace, { className: "mx-0 w-auto", children: /* @__PURE__ */ jsxs22(PaginationContent, { children: [
|
|
4582
|
+
/* @__PURE__ */ jsx36(PaginationItem, { children: /* @__PURE__ */ jsx36(
|
|
4583
|
+
Button,
|
|
4584
|
+
{
|
|
4585
|
+
variant: "outline",
|
|
4586
|
+
size: "icon",
|
|
4587
|
+
className: "h-8 w-8",
|
|
4588
|
+
onClick: () => table.setPageIndex(0),
|
|
4589
|
+
disabled: !table.getCanPreviousPage(),
|
|
4590
|
+
children: /* @__PURE__ */ jsx36("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx36("path", { d: "M11 17l-5-5 5-5M18 17l-5-5 5-5" }) })
|
|
4591
|
+
}
|
|
4592
|
+
) }),
|
|
4593
|
+
/* @__PURE__ */ jsx36(PaginationItem, { children: /* @__PURE__ */ jsx36(
|
|
4594
|
+
Button,
|
|
4595
|
+
{
|
|
4596
|
+
variant: "outline",
|
|
4597
|
+
size: "icon",
|
|
4598
|
+
className: "h-8 w-8",
|
|
4599
|
+
onClick: () => table.previousPage(),
|
|
4600
|
+
disabled: !table.getCanPreviousPage(),
|
|
4601
|
+
children: /* @__PURE__ */ jsx36("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx36("path", { d: "M15 18l-6-6 6-6" }) })
|
|
4602
|
+
}
|
|
4603
|
+
) }),
|
|
4604
|
+
renderPageNumbers(maxVisible),
|
|
4605
|
+
/* @__PURE__ */ jsx36(PaginationItem, { children: /* @__PURE__ */ jsx36(
|
|
4606
|
+
Button,
|
|
4607
|
+
{
|
|
4608
|
+
variant: "outline",
|
|
4609
|
+
size: "icon",
|
|
4610
|
+
className: "h-8 w-8",
|
|
4611
|
+
onClick: () => table.nextPage(),
|
|
4612
|
+
disabled: !table.getCanNextPage(),
|
|
4613
|
+
children: /* @__PURE__ */ jsx36("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx36("path", { d: "M9 18l6-6-6-6" }) })
|
|
4614
|
+
}
|
|
4615
|
+
) }),
|
|
4616
|
+
/* @__PURE__ */ jsx36(PaginationItem, { children: /* @__PURE__ */ jsx36(
|
|
4617
|
+
Button,
|
|
4618
|
+
{
|
|
4619
|
+
variant: "outline",
|
|
4620
|
+
size: "icon",
|
|
4621
|
+
className: "h-8 w-8",
|
|
4622
|
+
onClick: () => table.setPageIndex(pageCount - 1),
|
|
4623
|
+
disabled: !table.getCanNextPage(),
|
|
4624
|
+
children: /* @__PURE__ */ jsx36("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx36("path", { d: "M13 17l5-5-5-5M6 17l5-5-5-5" }) })
|
|
4625
|
+
}
|
|
4626
|
+
) })
|
|
4627
|
+
] }) });
|
|
4628
|
+
return /* @__PURE__ */ jsxs22("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 border-t border-border bg-background", children: [
|
|
4629
|
+
infoSection,
|
|
4630
|
+
/* @__PURE__ */ jsx36("div", { className: "ml-auto", children: navSection(5) })
|
|
4634
4631
|
] });
|
|
4635
4632
|
};
|
|
4636
4633
|
var ExportDropdown = ({
|
|
@@ -5659,6 +5656,7 @@ function DataGrid({
|
|
|
5659
5656
|
return /* @__PURE__ */ jsxs22(
|
|
5660
5657
|
"th",
|
|
5661
5658
|
{
|
|
5659
|
+
title: meta?.headerName,
|
|
5662
5660
|
className: cn(
|
|
5663
5661
|
"px-4 text-left text-xs font-medium text-muted-foreground border-b border-border bg-muted overflow-hidden relative",
|
|
5664
5662
|
showColumnVerticalBorder && "border-r last:border-r-0",
|
|
@@ -5683,12 +5681,12 @@ function DataGrid({
|
|
|
5683
5681
|
},
|
|
5684
5682
|
onClick: header.column.getToggleSortingHandler(),
|
|
5685
5683
|
children: [
|
|
5686
|
-
/* @__PURE__ */ jsxs22("div", { className:
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext()),
|
|
5684
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-1 min-w-0", children: [
|
|
5685
|
+
/* @__PURE__ */ jsx36("div", { className: cn(
|
|
5686
|
+
"flex-1 truncate min-w-0",
|
|
5687
|
+
align === "center" && "text-center",
|
|
5688
|
+
align === "right" && "text-right"
|
|
5689
|
+
), children: header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext()) }),
|
|
5692
5690
|
header.column.getCanSort() && /* @__PURE__ */ jsx36(SortIcon, { direction: header.column.getIsSorted() })
|
|
5693
5691
|
] }),
|
|
5694
5692
|
resizableColumns && header.column.id !== "__select__" && /* @__PURE__ */ jsx36(
|
|
@@ -6064,8 +6062,121 @@ function VirtualList({
|
|
|
6064
6062
|
);
|
|
6065
6063
|
}
|
|
6066
6064
|
|
|
6067
|
-
// src/components/
|
|
6065
|
+
// src/components/data-list.tsx
|
|
6068
6066
|
import * as React38 from "react";
|
|
6067
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
6068
|
+
var DataListContext = React38.createContext({
|
|
6069
|
+
orientation: "horizontal",
|
|
6070
|
+
size: "2"
|
|
6071
|
+
});
|
|
6072
|
+
var sizeStyles = {
|
|
6073
|
+
"1": "text-xs gap-y-1",
|
|
6074
|
+
"2": "text-sm gap-y-2",
|
|
6075
|
+
"3": "text-base gap-y-3"
|
|
6076
|
+
};
|
|
6077
|
+
var DataList = React38.forwardRef(
|
|
6078
|
+
({ className, orientation = "horizontal", size = "2", children, ...props }, ref) => {
|
|
6079
|
+
return /* @__PURE__ */ jsx38(DataListContext.Provider, { value: { orientation, size }, children: /* @__PURE__ */ jsx38(
|
|
6080
|
+
"dl",
|
|
6081
|
+
{
|
|
6082
|
+
ref,
|
|
6083
|
+
className: cn("grid", sizeStyles[size], className),
|
|
6084
|
+
...props,
|
|
6085
|
+
children
|
|
6086
|
+
}
|
|
6087
|
+
) });
|
|
6088
|
+
}
|
|
6089
|
+
);
|
|
6090
|
+
DataList.displayName = "DataList";
|
|
6091
|
+
var alignStyles = {
|
|
6092
|
+
start: "items-start",
|
|
6093
|
+
center: "items-center",
|
|
6094
|
+
end: "items-end",
|
|
6095
|
+
baseline: "items-baseline",
|
|
6096
|
+
stretch: "items-stretch"
|
|
6097
|
+
};
|
|
6098
|
+
var DataListItem = React38.forwardRef(
|
|
6099
|
+
({ className, align = "baseline", children, ...props }, ref) => {
|
|
6100
|
+
const { orientation } = React38.useContext(DataListContext);
|
|
6101
|
+
return /* @__PURE__ */ jsx38(
|
|
6102
|
+
"div",
|
|
6103
|
+
{
|
|
6104
|
+
ref,
|
|
6105
|
+
className: cn(
|
|
6106
|
+
"flex gap-2 min-w-0",
|
|
6107
|
+
orientation === "horizontal" ? [alignStyles[align], "flex-row"] : "flex-col gap-0.5",
|
|
6108
|
+
className
|
|
6109
|
+
),
|
|
6110
|
+
...props,
|
|
6111
|
+
children
|
|
6112
|
+
}
|
|
6113
|
+
);
|
|
6114
|
+
}
|
|
6115
|
+
);
|
|
6116
|
+
DataListItem.displayName = "DataListItem";
|
|
6117
|
+
var colorStyles = {
|
|
6118
|
+
default: "text-foreground",
|
|
6119
|
+
muted: "text-muted-foreground",
|
|
6120
|
+
primary: "text-primary",
|
|
6121
|
+
success: "text-green-600 dark:text-green-400",
|
|
6122
|
+
warning: "text-yellow-600 dark:text-yellow-400",
|
|
6123
|
+
error: "text-destructive",
|
|
6124
|
+
info: "text-blue-600 dark:text-blue-400"
|
|
6125
|
+
};
|
|
6126
|
+
var DataListLabel = React38.forwardRef(
|
|
6127
|
+
({
|
|
6128
|
+
className,
|
|
6129
|
+
style,
|
|
6130
|
+
width,
|
|
6131
|
+
minWidth,
|
|
6132
|
+
maxWidth,
|
|
6133
|
+
color = "muted",
|
|
6134
|
+
highContrast = false,
|
|
6135
|
+
children,
|
|
6136
|
+
...props
|
|
6137
|
+
}, ref) => {
|
|
6138
|
+
const { orientation } = React38.useContext(DataListContext);
|
|
6139
|
+
const resolvedColor = highContrast ? "text-foreground" : colorStyles[color];
|
|
6140
|
+
return /* @__PURE__ */ jsx38(
|
|
6141
|
+
"dt",
|
|
6142
|
+
{
|
|
6143
|
+
ref,
|
|
6144
|
+
className: cn(
|
|
6145
|
+
"font-medium shrink-0 leading-snug",
|
|
6146
|
+
resolvedColor,
|
|
6147
|
+
orientation === "horizontal" && "pt-px",
|
|
6148
|
+
className
|
|
6149
|
+
),
|
|
6150
|
+
style: {
|
|
6151
|
+
width: orientation === "horizontal" ? width : void 0,
|
|
6152
|
+
minWidth: orientation === "horizontal" ? minWidth : void 0,
|
|
6153
|
+
maxWidth: orientation === "horizontal" ? maxWidth : void 0,
|
|
6154
|
+
...style
|
|
6155
|
+
},
|
|
6156
|
+
...props,
|
|
6157
|
+
children
|
|
6158
|
+
}
|
|
6159
|
+
);
|
|
6160
|
+
}
|
|
6161
|
+
);
|
|
6162
|
+
DataListLabel.displayName = "DataListLabel";
|
|
6163
|
+
var DataListValue = React38.forwardRef(
|
|
6164
|
+
({ className, children, ...props }, ref) => {
|
|
6165
|
+
return /* @__PURE__ */ jsx38(
|
|
6166
|
+
"dd",
|
|
6167
|
+
{
|
|
6168
|
+
ref,
|
|
6169
|
+
className: cn("min-w-0 flex-1 leading-snug text-foreground", className),
|
|
6170
|
+
...props,
|
|
6171
|
+
children
|
|
6172
|
+
}
|
|
6173
|
+
);
|
|
6174
|
+
}
|
|
6175
|
+
);
|
|
6176
|
+
DataListValue.displayName = "DataListValue";
|
|
6177
|
+
|
|
6178
|
+
// src/components/charts.tsx
|
|
6179
|
+
import * as React39 from "react";
|
|
6069
6180
|
import {
|
|
6070
6181
|
BarChart as RechartsBarChart,
|
|
6071
6182
|
Bar,
|
|
@@ -6092,7 +6203,7 @@ import {
|
|
|
6092
6203
|
LabelList
|
|
6093
6204
|
} from "recharts";
|
|
6094
6205
|
import { accentColors as accentColors2 } from "@onesaz/tokens";
|
|
6095
|
-
import { Fragment as Fragment5, jsx as
|
|
6206
|
+
import { Fragment as Fragment5, jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
6096
6207
|
var BarChart = ({
|
|
6097
6208
|
data,
|
|
6098
6209
|
dataKey,
|
|
@@ -6125,7 +6236,7 @@ var BarChart = ({
|
|
|
6125
6236
|
accentColors2[accentColor][1]
|
|
6126
6237
|
];
|
|
6127
6238
|
const chartColors = colors || defaultColors;
|
|
6128
|
-
const bars = dataKeys ? dataKeys.map((keyConfig, index) => /* @__PURE__ */
|
|
6239
|
+
const bars = dataKeys ? dataKeys.map((keyConfig, index) => /* @__PURE__ */ jsx39(
|
|
6129
6240
|
Bar,
|
|
6130
6241
|
{
|
|
6131
6242
|
dataKey: keyConfig.dataKey,
|
|
@@ -6134,7 +6245,7 @@ var BarChart = ({
|
|
|
6134
6245
|
radius: barProps.radius,
|
|
6135
6246
|
maxBarSize: barProps.maxBarSize,
|
|
6136
6247
|
...barProps.minPointSize !== void 0 && { minPointSize: barProps.minPointSize },
|
|
6137
|
-
children: labelList && /* @__PURE__ */
|
|
6248
|
+
children: labelList && /* @__PURE__ */ jsx39(
|
|
6138
6249
|
LabelList,
|
|
6139
6250
|
{
|
|
6140
6251
|
dataKey: labelList.dataKey || keyConfig.dataKey,
|
|
@@ -6155,7 +6266,7 @@ var BarChart = ({
|
|
|
6155
6266
|
maxBarSize: barProps.maxBarSize,
|
|
6156
6267
|
...barProps.minPointSize !== void 0 && { minPointSize: barProps.minPointSize },
|
|
6157
6268
|
children: [
|
|
6158
|
-
labelList && /* @__PURE__ */
|
|
6269
|
+
labelList && /* @__PURE__ */ jsx39(
|
|
6159
6270
|
LabelList,
|
|
6160
6271
|
{
|
|
6161
6272
|
dataKey: labelList.dataKey || dataKey,
|
|
@@ -6164,7 +6275,7 @@ var BarChart = ({
|
|
|
6164
6275
|
formatter: labelList.formatter
|
|
6165
6276
|
}
|
|
6166
6277
|
),
|
|
6167
|
-
data.map((_entry, index) => /* @__PURE__ */
|
|
6278
|
+
data.map((_entry, index) => /* @__PURE__ */ jsx39(
|
|
6168
6279
|
Cell,
|
|
6169
6280
|
{
|
|
6170
6281
|
fill: chartColors[index % chartColors.length]
|
|
@@ -6174,7 +6285,7 @@ var BarChart = ({
|
|
|
6174
6285
|
]
|
|
6175
6286
|
}
|
|
6176
6287
|
);
|
|
6177
|
-
const customTooltip = tooltip ? /* @__PURE__ */
|
|
6288
|
+
const customTooltip = tooltip ? /* @__PURE__ */ jsx39(
|
|
6178
6289
|
Tooltip2,
|
|
6179
6290
|
{
|
|
6180
6291
|
formatter: tooltip.formatter,
|
|
@@ -6182,8 +6293,8 @@ var BarChart = ({
|
|
|
6182
6293
|
labelStyle: tooltip.labelStyle,
|
|
6183
6294
|
contentStyle: tooltip.contentStyle
|
|
6184
6295
|
}
|
|
6185
|
-
) : showTooltip ? /* @__PURE__ */
|
|
6186
|
-
return /* @__PURE__ */
|
|
6296
|
+
) : showTooltip ? /* @__PURE__ */ jsx39(Tooltip2, { contentStyle: { backgroundColor: "hsl(var(--background))", border: "1px solid hsl(var(--border))", borderRadius: "6px", color: "hsl(var(--foreground))" } }) : null;
|
|
6297
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(
|
|
6187
6298
|
RechartsBarChart,
|
|
6188
6299
|
{
|
|
6189
6300
|
data,
|
|
@@ -6191,8 +6302,8 @@ var BarChart = ({
|
|
|
6191
6302
|
barCategoryGap: barProps.barCategoryGap,
|
|
6192
6303
|
barGap: barProps.barGap,
|
|
6193
6304
|
children: [
|
|
6194
|
-
showGrid && /* @__PURE__ */
|
|
6195
|
-
xAxis && !xAxis.hide && /* @__PURE__ */
|
|
6305
|
+
showGrid && /* @__PURE__ */ jsx39(CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--muted-foreground))", opacity: 0.3 }),
|
|
6306
|
+
xAxis && !xAxis.hide && /* @__PURE__ */ jsx39(
|
|
6196
6307
|
XAxis,
|
|
6197
6308
|
{
|
|
6198
6309
|
dataKey: xAxis.dataKey,
|
|
@@ -6206,7 +6317,7 @@ var BarChart = ({
|
|
|
6206
6317
|
label: xAxis.label ? { value: xAxis.label, position: "insideBottom", offset: -5 } : void 0
|
|
6207
6318
|
}
|
|
6208
6319
|
),
|
|
6209
|
-
yAxis && !yAxis.hide && /* @__PURE__ */
|
|
6320
|
+
yAxis && !yAxis.hide && /* @__PURE__ */ jsx39(
|
|
6210
6321
|
YAxis,
|
|
6211
6322
|
{
|
|
6212
6323
|
type: yAxis.type,
|
|
@@ -6217,7 +6328,7 @@ var BarChart = ({
|
|
|
6217
6328
|
}
|
|
6218
6329
|
),
|
|
6219
6330
|
customTooltip,
|
|
6220
|
-
showLegend && /* @__PURE__ */
|
|
6331
|
+
showLegend && /* @__PURE__ */ jsx39(Legend, {}),
|
|
6221
6332
|
bars
|
|
6222
6333
|
]
|
|
6223
6334
|
}
|
|
@@ -6250,7 +6361,7 @@ var LineChart = ({
|
|
|
6250
6361
|
accentColors2[accentColor][12],
|
|
6251
6362
|
accentColors2[accentColor][1]
|
|
6252
6363
|
];
|
|
6253
|
-
const lines = dataKeys ? dataKeys.map((keyConfig, index) => /* @__PURE__ */
|
|
6364
|
+
const lines = dataKeys ? dataKeys.map((keyConfig, index) => /* @__PURE__ */ jsx39(
|
|
6254
6365
|
Line,
|
|
6255
6366
|
{
|
|
6256
6367
|
type: "monotone",
|
|
@@ -6260,7 +6371,7 @@ var LineChart = ({
|
|
|
6260
6371
|
name: keyConfig.name || keyConfig.dataKey
|
|
6261
6372
|
},
|
|
6262
6373
|
keyConfig.dataKey
|
|
6263
|
-
)) : /* @__PURE__ */
|
|
6374
|
+
)) : /* @__PURE__ */ jsx39(
|
|
6264
6375
|
Line,
|
|
6265
6376
|
{
|
|
6266
6377
|
type: "monotone",
|
|
@@ -6270,9 +6381,9 @@ var LineChart = ({
|
|
|
6270
6381
|
name: name || dataKey
|
|
6271
6382
|
}
|
|
6272
6383
|
);
|
|
6273
|
-
return /* @__PURE__ */
|
|
6274
|
-
showGrid && /* @__PURE__ */
|
|
6275
|
-
xAxis && !xAxis.hide && /* @__PURE__ */
|
|
6384
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(RechartsLineChart, { data, margin, children: [
|
|
6385
|
+
showGrid && /* @__PURE__ */ jsx39(CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--muted-foreground))", opacity: 0.3 }),
|
|
6386
|
+
xAxis && !xAxis.hide && /* @__PURE__ */ jsx39(
|
|
6276
6387
|
XAxis,
|
|
6277
6388
|
{
|
|
6278
6389
|
dataKey: xAxis.dataKey,
|
|
@@ -6282,7 +6393,7 @@ var LineChart = ({
|
|
|
6282
6393
|
label: xAxis.label ? { value: xAxis.label, position: "insideBottom", offset: -5 } : void 0
|
|
6283
6394
|
}
|
|
6284
6395
|
),
|
|
6285
|
-
yAxis && !yAxis.hide && /* @__PURE__ */
|
|
6396
|
+
yAxis && !yAxis.hide && /* @__PURE__ */ jsx39(
|
|
6286
6397
|
YAxis,
|
|
6287
6398
|
{
|
|
6288
6399
|
type: yAxis.type,
|
|
@@ -6291,8 +6402,8 @@ var LineChart = ({
|
|
|
6291
6402
|
label: yAxis.label ? { value: yAxis.label, angle: -90, position: "insideLeft" } : void 0
|
|
6292
6403
|
}
|
|
6293
6404
|
),
|
|
6294
|
-
showTooltip && /* @__PURE__ */
|
|
6295
|
-
showLegend && /* @__PURE__ */
|
|
6405
|
+
showTooltip && /* @__PURE__ */ jsx39(Tooltip2, { contentStyle: { backgroundColor: "hsl(var(--background))", border: "1px solid hsl(var(--border))", borderRadius: "6px", color: "hsl(var(--foreground))" } }),
|
|
6406
|
+
showLegend && /* @__PURE__ */ jsx39(Legend, {}),
|
|
6296
6407
|
lines
|
|
6297
6408
|
] }) }) });
|
|
6298
6409
|
};
|
|
@@ -6323,8 +6434,8 @@ var PieChart = ({
|
|
|
6323
6434
|
accentColors2[accentColor][1]
|
|
6324
6435
|
];
|
|
6325
6436
|
const chartColors = colors || defaultColors;
|
|
6326
|
-
return /* @__PURE__ */
|
|
6327
|
-
/* @__PURE__ */
|
|
6437
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(RechartsPieChart, { children: [
|
|
6438
|
+
/* @__PURE__ */ jsx39(
|
|
6328
6439
|
Pie,
|
|
6329
6440
|
{
|
|
6330
6441
|
data,
|
|
@@ -6335,11 +6446,11 @@ var PieChart = ({
|
|
|
6335
6446
|
fill: "#8884d8",
|
|
6336
6447
|
dataKey,
|
|
6337
6448
|
nameKey,
|
|
6338
|
-
children: data.map((_entry, index) => /* @__PURE__ */
|
|
6449
|
+
children: data.map((_entry, index) => /* @__PURE__ */ jsx39(Cell, { fill: chartColors[index % chartColors.length] }, `cell-${index}`))
|
|
6339
6450
|
}
|
|
6340
6451
|
),
|
|
6341
|
-
showTooltip && /* @__PURE__ */
|
|
6342
|
-
showLegend && /* @__PURE__ */
|
|
6452
|
+
showTooltip && /* @__PURE__ */ jsx39(Tooltip2, { contentStyle: { backgroundColor: "hsl(var(--background))", border: "1px solid hsl(var(--border))", borderRadius: "6px", color: "hsl(var(--foreground))" } }),
|
|
6453
|
+
showLegend && /* @__PURE__ */ jsx39(Legend, {})
|
|
6343
6454
|
] }) }) });
|
|
6344
6455
|
};
|
|
6345
6456
|
var AreaChart = ({
|
|
@@ -6371,7 +6482,7 @@ var AreaChart = ({
|
|
|
6371
6482
|
accentColors2[accentColor][12],
|
|
6372
6483
|
accentColors2[accentColor][1]
|
|
6373
6484
|
];
|
|
6374
|
-
const areas = dataKeys ? dataKeys.map((keyConfig, index) => /* @__PURE__ */
|
|
6485
|
+
const areas = dataKeys ? dataKeys.map((keyConfig, index) => /* @__PURE__ */ jsx39(
|
|
6375
6486
|
Area,
|
|
6376
6487
|
{
|
|
6377
6488
|
type: "monotone",
|
|
@@ -6382,7 +6493,7 @@ var AreaChart = ({
|
|
|
6382
6493
|
name: keyConfig.name || keyConfig.dataKey
|
|
6383
6494
|
},
|
|
6384
6495
|
keyConfig.dataKey
|
|
6385
|
-
)) : /* @__PURE__ */
|
|
6496
|
+
)) : /* @__PURE__ */ jsx39(
|
|
6386
6497
|
Area,
|
|
6387
6498
|
{
|
|
6388
6499
|
type: "monotone",
|
|
@@ -6392,9 +6503,9 @@ var AreaChart = ({
|
|
|
6392
6503
|
name: name || dataKey
|
|
6393
6504
|
}
|
|
6394
6505
|
);
|
|
6395
|
-
return /* @__PURE__ */
|
|
6396
|
-
showGrid && /* @__PURE__ */
|
|
6397
|
-
xAxis && !xAxis.hide && /* @__PURE__ */
|
|
6506
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(RechartsAreaChart, { data, margin, children: [
|
|
6507
|
+
showGrid && /* @__PURE__ */ jsx39(CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--muted-foreground))", opacity: 0.3 }),
|
|
6508
|
+
xAxis && !xAxis.hide && /* @__PURE__ */ jsx39(
|
|
6398
6509
|
XAxis,
|
|
6399
6510
|
{
|
|
6400
6511
|
dataKey: xAxis.dataKey,
|
|
@@ -6404,7 +6515,7 @@ var AreaChart = ({
|
|
|
6404
6515
|
label: xAxis.label ? { value: xAxis.label, position: "insideBottom", offset: -5 } : void 0
|
|
6405
6516
|
}
|
|
6406
6517
|
),
|
|
6407
|
-
yAxis && !yAxis.hide && /* @__PURE__ */
|
|
6518
|
+
yAxis && !yAxis.hide && /* @__PURE__ */ jsx39(
|
|
6408
6519
|
YAxis,
|
|
6409
6520
|
{
|
|
6410
6521
|
type: yAxis.type,
|
|
@@ -6413,8 +6524,8 @@ var AreaChart = ({
|
|
|
6413
6524
|
label: yAxis.label ? { value: yAxis.label, angle: -90, position: "insideLeft" } : void 0
|
|
6414
6525
|
}
|
|
6415
6526
|
),
|
|
6416
|
-
showTooltip && /* @__PURE__ */
|
|
6417
|
-
showLegend && /* @__PURE__ */
|
|
6527
|
+
showTooltip && /* @__PURE__ */ jsx39(Tooltip2, { contentStyle: { backgroundColor: "hsl(var(--background))", border: "1px solid hsl(var(--border))", borderRadius: "6px", color: "hsl(var(--foreground))" } }),
|
|
6528
|
+
showLegend && /* @__PURE__ */ jsx39(Legend, {}),
|
|
6418
6529
|
areas
|
|
6419
6530
|
] }) }) });
|
|
6420
6531
|
};
|
|
@@ -6435,9 +6546,9 @@ var ScatterChart = ({
|
|
|
6435
6546
|
className
|
|
6436
6547
|
}) => {
|
|
6437
6548
|
const { accentColor } = useTheme();
|
|
6438
|
-
return /* @__PURE__ */
|
|
6439
|
-
showGrid && /* @__PURE__ */
|
|
6440
|
-
xAxis && !xAxis.hide && /* @__PURE__ */
|
|
6549
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(RechartsScatterChart, { data, margin, children: [
|
|
6550
|
+
showGrid && /* @__PURE__ */ jsx39(CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--muted-foreground))", opacity: 0.3 }),
|
|
6551
|
+
xAxis && !xAxis.hide && /* @__PURE__ */ jsx39(
|
|
6441
6552
|
XAxis,
|
|
6442
6553
|
{
|
|
6443
6554
|
dataKey: xDataKey,
|
|
@@ -6447,7 +6558,7 @@ var ScatterChart = ({
|
|
|
6447
6558
|
label: xAxis.label ? { value: xAxis.label, position: "insideBottom", offset: -5 } : void 0
|
|
6448
6559
|
}
|
|
6449
6560
|
),
|
|
6450
|
-
yAxis && !yAxis.hide && /* @__PURE__ */
|
|
6561
|
+
yAxis && !yAxis.hide && /* @__PURE__ */ jsx39(
|
|
6451
6562
|
YAxis,
|
|
6452
6563
|
{
|
|
6453
6564
|
dataKey: yDataKey,
|
|
@@ -6457,9 +6568,9 @@ var ScatterChart = ({
|
|
|
6457
6568
|
label: yAxis.label ? { value: yAxis.label, angle: -90, position: "insideLeft" } : void 0
|
|
6458
6569
|
}
|
|
6459
6570
|
),
|
|
6460
|
-
showTooltip && /* @__PURE__ */
|
|
6461
|
-
showLegend && /* @__PURE__ */
|
|
6462
|
-
/* @__PURE__ */
|
|
6571
|
+
showTooltip && /* @__PURE__ */ jsx39(Tooltip2, { contentStyle: { backgroundColor: "hsl(var(--background))", border: "1px solid hsl(var(--border))", borderRadius: "6px", color: "hsl(var(--foreground))" } }),
|
|
6572
|
+
showLegend && /* @__PURE__ */ jsx39(Legend, {}),
|
|
6573
|
+
/* @__PURE__ */ jsx39(Scatter, { name, dataKey: yDataKey, fill: fill || accentColors2[accentColor][6] })
|
|
6463
6574
|
] }) }) });
|
|
6464
6575
|
};
|
|
6465
6576
|
var RadarChart = ({
|
|
@@ -6476,11 +6587,11 @@ var RadarChart = ({
|
|
|
6476
6587
|
className
|
|
6477
6588
|
}) => {
|
|
6478
6589
|
const { accentColor } = useTheme();
|
|
6479
|
-
return /* @__PURE__ */
|
|
6480
|
-
/* @__PURE__ */
|
|
6481
|
-
/* @__PURE__ */
|
|
6482
|
-
/* @__PURE__ */
|
|
6483
|
-
/* @__PURE__ */
|
|
6590
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(RechartsRadarChart, { data, children: [
|
|
6591
|
+
/* @__PURE__ */ jsx39(PolarGrid, {}),
|
|
6592
|
+
/* @__PURE__ */ jsx39(PolarAngleAxis, { dataKey: nameKey }),
|
|
6593
|
+
/* @__PURE__ */ jsx39(PolarRadiusAxis, {}),
|
|
6594
|
+
/* @__PURE__ */ jsx39(
|
|
6484
6595
|
Radar,
|
|
6485
6596
|
{
|
|
6486
6597
|
name: name || dataKey,
|
|
@@ -6490,8 +6601,8 @@ var RadarChart = ({
|
|
|
6490
6601
|
fillOpacity: 0.6
|
|
6491
6602
|
}
|
|
6492
6603
|
),
|
|
6493
|
-
showTooltip && /* @__PURE__ */
|
|
6494
|
-
showLegend && /* @__PURE__ */
|
|
6604
|
+
showTooltip && /* @__PURE__ */ jsx39(Tooltip2, { contentStyle: { backgroundColor: "hsl(var(--background))", border: "1px solid hsl(var(--border))", borderRadius: "6px", color: "hsl(var(--foreground))" } }),
|
|
6605
|
+
showLegend && /* @__PURE__ */ jsx39(Legend, {})
|
|
6495
6606
|
] }) }) });
|
|
6496
6607
|
};
|
|
6497
6608
|
var DonutChart = ({
|
|
@@ -6548,9 +6659,9 @@ var DonutChart = ({
|
|
|
6548
6659
|
width: "200%",
|
|
6549
6660
|
height: "200%",
|
|
6550
6661
|
children: [
|
|
6551
|
-
/* @__PURE__ */
|
|
6552
|
-
/* @__PURE__ */
|
|
6553
|
-
/* @__PURE__ */
|
|
6662
|
+
/* @__PURE__ */ jsx39("feOffset", { dx: "0", dy: "2" }),
|
|
6663
|
+
/* @__PURE__ */ jsx39("feGaussianBlur", { stdDeviation: "2", result: "offsetBlur" }),
|
|
6664
|
+
/* @__PURE__ */ jsx39(
|
|
6554
6665
|
"feComposite",
|
|
6555
6666
|
{
|
|
6556
6667
|
in: "SourceAlpha",
|
|
@@ -6559,8 +6670,8 @@ var DonutChart = ({
|
|
|
6559
6670
|
result: "innerShadow"
|
|
6560
6671
|
}
|
|
6561
6672
|
),
|
|
6562
|
-
/* @__PURE__ */
|
|
6563
|
-
/* @__PURE__ */
|
|
6673
|
+
/* @__PURE__ */ jsx39("feFlood", { floodColor: "hsl(var(--muted))", floodOpacity: "0.9", result: "color" }),
|
|
6674
|
+
/* @__PURE__ */ jsx39(
|
|
6564
6675
|
"feComposite",
|
|
6565
6676
|
{
|
|
6566
6677
|
in: "color",
|
|
@@ -6569,7 +6680,7 @@ var DonutChart = ({
|
|
|
6569
6680
|
result: "shadow"
|
|
6570
6681
|
}
|
|
6571
6682
|
),
|
|
6572
|
-
/* @__PURE__ */
|
|
6683
|
+
/* @__PURE__ */ jsx39(
|
|
6573
6684
|
"feComposite",
|
|
6574
6685
|
{
|
|
6575
6686
|
in: "shadow",
|
|
@@ -6580,7 +6691,7 @@ var DonutChart = ({
|
|
|
6580
6691
|
]
|
|
6581
6692
|
}
|
|
6582
6693
|
),
|
|
6583
|
-
styling.enableShadows && /* @__PURE__ */
|
|
6694
|
+
styling.enableShadows && /* @__PURE__ */ jsx39(
|
|
6584
6695
|
"filter",
|
|
6585
6696
|
{
|
|
6586
6697
|
id: "dropShadow",
|
|
@@ -6588,7 +6699,7 @@ var DonutChart = ({
|
|
|
6588
6699
|
y: "-10%",
|
|
6589
6700
|
width: "120%",
|
|
6590
6701
|
height: "120%",
|
|
6591
|
-
children: /* @__PURE__ */
|
|
6702
|
+
children: /* @__PURE__ */ jsx39(
|
|
6592
6703
|
"feDropShadow",
|
|
6593
6704
|
{
|
|
6594
6705
|
dx: "0",
|
|
@@ -6609,14 +6720,14 @@ var DonutChart = ({
|
|
|
6609
6720
|
x2: gradient.x2 || "100%",
|
|
6610
6721
|
y2: gradient.y2 || "100%",
|
|
6611
6722
|
children: [
|
|
6612
|
-
/* @__PURE__ */
|
|
6613
|
-
/* @__PURE__ */
|
|
6723
|
+
/* @__PURE__ */ jsx39("stop", { offset: "0%", stopColor: gradient.colors[0] }),
|
|
6724
|
+
/* @__PURE__ */ jsx39("stop", { offset: "100%", stopColor: gradient.colors[1] })
|
|
6614
6725
|
]
|
|
6615
6726
|
},
|
|
6616
6727
|
gradient.id
|
|
6617
6728
|
))
|
|
6618
6729
|
] }) : null;
|
|
6619
|
-
const customTooltip = tooltip ? /* @__PURE__ */
|
|
6730
|
+
const customTooltip = tooltip ? /* @__PURE__ */ jsx39(
|
|
6620
6731
|
Tooltip2,
|
|
6621
6732
|
{
|
|
6622
6733
|
formatter: tooltip.formatter,
|
|
@@ -6624,10 +6735,10 @@ var DonutChart = ({
|
|
|
6624
6735
|
labelStyle: tooltip.labelStyle,
|
|
6625
6736
|
contentStyle: tooltip.contentStyle
|
|
6626
6737
|
}
|
|
6627
|
-
) : showTooltip ? /* @__PURE__ */
|
|
6628
|
-
return /* @__PURE__ */
|
|
6738
|
+
) : showTooltip ? /* @__PURE__ */ jsx39(Tooltip2, { contentStyle: { backgroundColor: "hsl(var(--background))", border: "1px solid hsl(var(--border))", borderRadius: "6px", color: "hsl(var(--foreground))" } }) : null;
|
|
6739
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(RechartsPieChart, { children: [
|
|
6629
6740
|
gradientDefs,
|
|
6630
|
-
/* @__PURE__ */
|
|
6741
|
+
/* @__PURE__ */ jsx39(
|
|
6631
6742
|
Pie,
|
|
6632
6743
|
{
|
|
6633
6744
|
data,
|
|
@@ -6640,7 +6751,7 @@ var DonutChart = ({
|
|
|
6640
6751
|
nameKey,
|
|
6641
6752
|
strokeLinecap: styling.progressArc.strokeLinecap,
|
|
6642
6753
|
filter: styling.progressArc.filter,
|
|
6643
|
-
children: data.map((_entry, index) => /* @__PURE__ */
|
|
6754
|
+
children: data.map((_entry, index) => /* @__PURE__ */ jsx39(
|
|
6644
6755
|
Cell,
|
|
6645
6756
|
{
|
|
6646
6757
|
fill: chartColors[index % chartColors.length]
|
|
@@ -6650,7 +6761,7 @@ var DonutChart = ({
|
|
|
6650
6761
|
}
|
|
6651
6762
|
),
|
|
6652
6763
|
customTooltip,
|
|
6653
|
-
showLegend && /* @__PURE__ */
|
|
6764
|
+
showLegend && /* @__PURE__ */ jsx39(Legend, {})
|
|
6654
6765
|
] }) }) });
|
|
6655
6766
|
};
|
|
6656
6767
|
var ProgressCard = ({
|
|
@@ -6698,13 +6809,13 @@ var ProgressCard = ({
|
|
|
6698
6809
|
onClick: () => onClick?.(questionNum),
|
|
6699
6810
|
children: [
|
|
6700
6811
|
/* @__PURE__ */ jsxs24("div", { className: "flex flex-col items-center", children: [
|
|
6701
|
-
/* @__PURE__ */
|
|
6812
|
+
/* @__PURE__ */ jsx39("span", { className: cn("font-bold", typography.questionFontSize, typography.questionColor), children: questionNum }),
|
|
6702
6813
|
/* @__PURE__ */ jsxs24("span", { className: cn("font-bold", typography.percentageFontSize, percentageTextColor), children: [
|
|
6703
6814
|
normalizedPercentage.toFixed(1),
|
|
6704
6815
|
"%"
|
|
6705
6816
|
] })
|
|
6706
6817
|
] }),
|
|
6707
|
-
/* @__PURE__ */
|
|
6818
|
+
/* @__PURE__ */ jsx39("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: [
|
|
6708
6819
|
/* @__PURE__ */ jsxs24("defs", { children: [
|
|
6709
6820
|
enableGradients && /* @__PURE__ */ jsxs24(
|
|
6710
6821
|
"linearGradient",
|
|
@@ -6715,8 +6826,8 @@ var ProgressCard = ({
|
|
|
6715
6826
|
x2: "100%",
|
|
6716
6827
|
y2: "100%",
|
|
6717
6828
|
children: [
|
|
6718
|
-
/* @__PURE__ */
|
|
6719
|
-
/* @__PURE__ */
|
|
6829
|
+
/* @__PURE__ */ jsx39("stop", { offset: "0%", stopColor: startColor }),
|
|
6830
|
+
/* @__PURE__ */ jsx39("stop", { offset: "100%", stopColor: endColor })
|
|
6720
6831
|
]
|
|
6721
6832
|
}
|
|
6722
6833
|
),
|
|
@@ -6730,9 +6841,9 @@ var ProgressCard = ({
|
|
|
6730
6841
|
width: "200%",
|
|
6731
6842
|
height: "200%",
|
|
6732
6843
|
children: [
|
|
6733
|
-
/* @__PURE__ */
|
|
6734
|
-
/* @__PURE__ */
|
|
6735
|
-
/* @__PURE__ */
|
|
6844
|
+
/* @__PURE__ */ jsx39("feOffset", { dx: "0", dy: "2" }),
|
|
6845
|
+
/* @__PURE__ */ jsx39("feGaussianBlur", { stdDeviation: "2", result: "offsetBlur" }),
|
|
6846
|
+
/* @__PURE__ */ jsx39(
|
|
6736
6847
|
"feComposite",
|
|
6737
6848
|
{
|
|
6738
6849
|
in: "SourceAlpha",
|
|
@@ -6741,8 +6852,8 @@ var ProgressCard = ({
|
|
|
6741
6852
|
result: "innerShadow"
|
|
6742
6853
|
}
|
|
6743
6854
|
),
|
|
6744
|
-
/* @__PURE__ */
|
|
6745
|
-
/* @__PURE__ */
|
|
6855
|
+
/* @__PURE__ */ jsx39("feFlood", { floodColor: "#c0c0c0", floodOpacity: "0.9", result: "color" }),
|
|
6856
|
+
/* @__PURE__ */ jsx39(
|
|
6746
6857
|
"feComposite",
|
|
6747
6858
|
{
|
|
6748
6859
|
in: "color",
|
|
@@ -6751,7 +6862,7 @@ var ProgressCard = ({
|
|
|
6751
6862
|
result: "shadow"
|
|
6752
6863
|
}
|
|
6753
6864
|
),
|
|
6754
|
-
/* @__PURE__ */
|
|
6865
|
+
/* @__PURE__ */ jsx39(
|
|
6755
6866
|
"feComposite",
|
|
6756
6867
|
{
|
|
6757
6868
|
in: "shadow",
|
|
@@ -6762,7 +6873,7 @@ var ProgressCard = ({
|
|
|
6762
6873
|
]
|
|
6763
6874
|
}
|
|
6764
6875
|
),
|
|
6765
|
-
/* @__PURE__ */
|
|
6876
|
+
/* @__PURE__ */ jsx39(
|
|
6766
6877
|
"filter",
|
|
6767
6878
|
{
|
|
6768
6879
|
id: shadowId,
|
|
@@ -6770,7 +6881,7 @@ var ProgressCard = ({
|
|
|
6770
6881
|
y: "-10%",
|
|
6771
6882
|
width: "120%",
|
|
6772
6883
|
height: "120%",
|
|
6773
|
-
children: /* @__PURE__ */
|
|
6884
|
+
children: /* @__PURE__ */ jsx39(
|
|
6774
6885
|
"feDropShadow",
|
|
6775
6886
|
{
|
|
6776
6887
|
dx: "0",
|
|
@@ -6784,7 +6895,7 @@ var ProgressCard = ({
|
|
|
6784
6895
|
)
|
|
6785
6896
|
] })
|
|
6786
6897
|
] }),
|
|
6787
|
-
/* @__PURE__ */
|
|
6898
|
+
/* @__PURE__ */ jsx39(
|
|
6788
6899
|
"circle",
|
|
6789
6900
|
{
|
|
6790
6901
|
cx: "50",
|
|
@@ -6796,7 +6907,7 @@ var ProgressCard = ({
|
|
|
6796
6907
|
filter: enableShadows ? `url(#${bgShadowId})` : void 0
|
|
6797
6908
|
}
|
|
6798
6909
|
),
|
|
6799
|
-
/* @__PURE__ */
|
|
6910
|
+
/* @__PURE__ */ jsx39(
|
|
6800
6911
|
"circle",
|
|
6801
6912
|
{
|
|
6802
6913
|
cx: "50",
|
|
@@ -6850,10 +6961,10 @@ var ProgressDonut = ({
|
|
|
6850
6961
|
accentColors2[accentColor][1]
|
|
6851
6962
|
];
|
|
6852
6963
|
if (!data || data.length === 0) {
|
|
6853
|
-
return /* @__PURE__ */
|
|
6964
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("text-gray-500", className), children: "No data provided" });
|
|
6854
6965
|
}
|
|
6855
|
-
return /* @__PURE__ */
|
|
6856
|
-
/* @__PURE__ */
|
|
6966
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs24(RechartsPieChart, { children: [
|
|
6967
|
+
/* @__PURE__ */ jsx39(
|
|
6857
6968
|
Pie,
|
|
6858
6969
|
{
|
|
6859
6970
|
data,
|
|
@@ -6867,12 +6978,12 @@ var ProgressDonut = ({
|
|
|
6867
6978
|
children: data.map((_entry, index) => {
|
|
6868
6979
|
const percentage = Math.min(100, Math.max(0, _entry.value));
|
|
6869
6980
|
const fillColor = colorFn(percentage) || defaultColors[index % defaultColors.length];
|
|
6870
|
-
return /* @__PURE__ */
|
|
6981
|
+
return /* @__PURE__ */ jsx39(Cell, { fill: fillColor }, `cell-${index}`);
|
|
6871
6982
|
})
|
|
6872
6983
|
}
|
|
6873
6984
|
),
|
|
6874
|
-
showTooltip && /* @__PURE__ */
|
|
6875
|
-
showLegend && /* @__PURE__ */
|
|
6985
|
+
showTooltip && /* @__PURE__ */ jsx39(Tooltip2, { contentStyle: { backgroundColor: "hsl(var(--background))", border: "1px solid hsl(var(--border))", borderRadius: "6px", color: "hsl(var(--foreground))" } }),
|
|
6986
|
+
showLegend && /* @__PURE__ */ jsx39(Legend, {})
|
|
6876
6987
|
] }) }) });
|
|
6877
6988
|
};
|
|
6878
6989
|
var MultiProgressDonut = ({
|
|
@@ -6899,16 +7010,16 @@ var MultiProgressDonut = ({
|
|
|
6899
7010
|
};
|
|
6900
7011
|
const colorFn = getColor || defaultGetColor;
|
|
6901
7012
|
if (!data || data.length === 0) {
|
|
6902
|
-
return /* @__PURE__ */
|
|
7013
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("text-gray-500", className), children: "No data provided" });
|
|
6903
7014
|
}
|
|
6904
|
-
return /* @__PURE__ */
|
|
7015
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("flex flex-wrap gap-4", className), children: data.map((item, index) => {
|
|
6905
7016
|
const percentage = Math.min(100, Math.max(0, item.value));
|
|
6906
7017
|
const gradientId = `progress-gradient-${index}`;
|
|
6907
7018
|
const shadowId = `progress-shadow-${index}`;
|
|
6908
7019
|
const bgShadowId = `progress-bg-shadow-${index}`;
|
|
6909
7020
|
const [startColor, endColor] = colorFn(percentage);
|
|
6910
7021
|
return /* @__PURE__ */ jsxs24("div", { className: "flex flex-col items-center gap-2", children: [
|
|
6911
|
-
item.label && /* @__PURE__ */
|
|
7022
|
+
item.label && /* @__PURE__ */ jsx39("div", { className: "text-sm font-medium text-gray-700 dark:text-gray-300", children: item.label }),
|
|
6912
7023
|
/* @__PURE__ */ jsxs24("div", { className: "relative", children: [
|
|
6913
7024
|
/* @__PURE__ */ jsxs24("svg", { width: size, height: size, viewBox: "0 0 100 100", children: [
|
|
6914
7025
|
/* @__PURE__ */ jsxs24("defs", { children: [
|
|
@@ -6921,8 +7032,8 @@ var MultiProgressDonut = ({
|
|
|
6921
7032
|
x2: "100%",
|
|
6922
7033
|
y2: "100%",
|
|
6923
7034
|
children: [
|
|
6924
|
-
/* @__PURE__ */
|
|
6925
|
-
/* @__PURE__ */
|
|
7035
|
+
/* @__PURE__ */ jsx39("stop", { offset: "0%", stopColor: startColor }),
|
|
7036
|
+
/* @__PURE__ */ jsx39("stop", { offset: "100%", stopColor: endColor })
|
|
6926
7037
|
]
|
|
6927
7038
|
}
|
|
6928
7039
|
),
|
|
@@ -6936,9 +7047,9 @@ var MultiProgressDonut = ({
|
|
|
6936
7047
|
width: "200%",
|
|
6937
7048
|
height: "200%",
|
|
6938
7049
|
children: [
|
|
6939
|
-
/* @__PURE__ */
|
|
6940
|
-
/* @__PURE__ */
|
|
6941
|
-
/* @__PURE__ */
|
|
7050
|
+
/* @__PURE__ */ jsx39("feOffset", { dx: "0", dy: "2" }),
|
|
7051
|
+
/* @__PURE__ */ jsx39("feGaussianBlur", { stdDeviation: "2", result: "offsetBlur" }),
|
|
7052
|
+
/* @__PURE__ */ jsx39(
|
|
6942
7053
|
"feComposite",
|
|
6943
7054
|
{
|
|
6944
7055
|
in: "SourceAlpha",
|
|
@@ -6947,8 +7058,8 @@ var MultiProgressDonut = ({
|
|
|
6947
7058
|
result: "innerShadow"
|
|
6948
7059
|
}
|
|
6949
7060
|
),
|
|
6950
|
-
/* @__PURE__ */
|
|
6951
|
-
/* @__PURE__ */
|
|
7061
|
+
/* @__PURE__ */ jsx39("feFlood", { floodColor: "#c0c0c0", floodOpacity: "0.9", result: "color" }),
|
|
7062
|
+
/* @__PURE__ */ jsx39(
|
|
6952
7063
|
"feComposite",
|
|
6953
7064
|
{
|
|
6954
7065
|
in: "color",
|
|
@@ -6957,7 +7068,7 @@ var MultiProgressDonut = ({
|
|
|
6957
7068
|
result: "shadow"
|
|
6958
7069
|
}
|
|
6959
7070
|
),
|
|
6960
|
-
/* @__PURE__ */
|
|
7071
|
+
/* @__PURE__ */ jsx39(
|
|
6961
7072
|
"feComposite",
|
|
6962
7073
|
{
|
|
6963
7074
|
in: "shadow",
|
|
@@ -6968,7 +7079,7 @@ var MultiProgressDonut = ({
|
|
|
6968
7079
|
]
|
|
6969
7080
|
}
|
|
6970
7081
|
),
|
|
6971
|
-
/* @__PURE__ */
|
|
7082
|
+
/* @__PURE__ */ jsx39(
|
|
6972
7083
|
"filter",
|
|
6973
7084
|
{
|
|
6974
7085
|
id: shadowId,
|
|
@@ -6976,7 +7087,7 @@ var MultiProgressDonut = ({
|
|
|
6976
7087
|
y: "-10%",
|
|
6977
7088
|
width: "120%",
|
|
6978
7089
|
height: "120%",
|
|
6979
|
-
children: /* @__PURE__ */
|
|
7090
|
+
children: /* @__PURE__ */ jsx39(
|
|
6980
7091
|
"feDropShadow",
|
|
6981
7092
|
{
|
|
6982
7093
|
dx: "0",
|
|
@@ -6990,7 +7101,7 @@ var MultiProgressDonut = ({
|
|
|
6990
7101
|
)
|
|
6991
7102
|
] })
|
|
6992
7103
|
] }),
|
|
6993
|
-
/* @__PURE__ */
|
|
7104
|
+
/* @__PURE__ */ jsx39(
|
|
6994
7105
|
"circle",
|
|
6995
7106
|
{
|
|
6996
7107
|
cx: "50",
|
|
@@ -7002,7 +7113,7 @@ var MultiProgressDonut = ({
|
|
|
7002
7113
|
filter: enableShadows ? `url(#${bgShadowId})` : void 0
|
|
7003
7114
|
}
|
|
7004
7115
|
),
|
|
7005
|
-
/* @__PURE__ */
|
|
7116
|
+
/* @__PURE__ */ jsx39(
|
|
7006
7117
|
"circle",
|
|
7007
7118
|
{
|
|
7008
7119
|
cx: "50",
|
|
@@ -7019,7 +7130,7 @@ var MultiProgressDonut = ({
|
|
|
7019
7130
|
}
|
|
7020
7131
|
)
|
|
7021
7132
|
] }),
|
|
7022
|
-
showPercentage && /* @__PURE__ */
|
|
7133
|
+
showPercentage && /* @__PURE__ */ jsx39("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: [
|
|
7023
7134
|
percentage.toFixed(1),
|
|
7024
7135
|
"%"
|
|
7025
7136
|
] }) })
|
|
@@ -7090,10 +7201,10 @@ var PackedBubbleChart = ({
|
|
|
7090
7201
|
titleStyle,
|
|
7091
7202
|
className
|
|
7092
7203
|
}) => {
|
|
7093
|
-
const containerRef =
|
|
7094
|
-
const [dimensions, setDimensions] =
|
|
7095
|
-
const [bubbles, setBubbles] =
|
|
7096
|
-
|
|
7204
|
+
const containerRef = React39.useRef(null);
|
|
7205
|
+
const [dimensions, setDimensions] = React39.useState({ width: 400, height: 300 });
|
|
7206
|
+
const [bubbles, setBubbles] = React39.useState([]);
|
|
7207
|
+
React39.useEffect(() => {
|
|
7097
7208
|
const updateDimensions = () => {
|
|
7098
7209
|
if (containerRef.current) {
|
|
7099
7210
|
const rect = containerRef.current.getBoundingClientRect();
|
|
@@ -7107,7 +7218,7 @@ var PackedBubbleChart = ({
|
|
|
7107
7218
|
window.addEventListener("resize", updateDimensions);
|
|
7108
7219
|
return () => window.removeEventListener("resize", updateDimensions);
|
|
7109
7220
|
}, [height]);
|
|
7110
|
-
|
|
7221
|
+
React39.useEffect(() => {
|
|
7111
7222
|
if (data.length === 0) {
|
|
7112
7223
|
setBubbles([]);
|
|
7113
7224
|
return;
|
|
@@ -7129,7 +7240,7 @@ var PackedBubbleChart = ({
|
|
|
7129
7240
|
className: cn("relative w-full", className),
|
|
7130
7241
|
style: { height: typeof height === "number" ? `${height}px` : height },
|
|
7131
7242
|
children: [
|
|
7132
|
-
title && /* @__PURE__ */
|
|
7243
|
+
title && /* @__PURE__ */ jsx39(
|
|
7133
7244
|
"div",
|
|
7134
7245
|
{
|
|
7135
7246
|
className: "text-center text-sm font-bold text-[#31456A] dark:text-slate-200",
|
|
@@ -7137,13 +7248,13 @@ var PackedBubbleChart = ({
|
|
|
7137
7248
|
children: title
|
|
7138
7249
|
}
|
|
7139
7250
|
),
|
|
7140
|
-
/* @__PURE__ */
|
|
7251
|
+
/* @__PURE__ */ jsx39("svg", { width: "100%", height: "100%", className: "overflow-visible", children: bubbles.map((bubble, index) => /* @__PURE__ */ jsxs24(
|
|
7141
7252
|
"g",
|
|
7142
7253
|
{
|
|
7143
7254
|
onClick: () => onBubbleClick?.(bubble.data),
|
|
7144
7255
|
style: { cursor: onBubbleClick ? "pointer" : "default" },
|
|
7145
7256
|
children: [
|
|
7146
|
-
/* @__PURE__ */
|
|
7257
|
+
/* @__PURE__ */ jsx39(
|
|
7147
7258
|
"circle",
|
|
7148
7259
|
{
|
|
7149
7260
|
cx: bubble.x,
|
|
@@ -7154,7 +7265,7 @@ var PackedBubbleChart = ({
|
|
|
7154
7265
|
className: "transition-all duration-200 hover:opacity-100"
|
|
7155
7266
|
}
|
|
7156
7267
|
),
|
|
7157
|
-
showLabels && /* @__PURE__ */
|
|
7268
|
+
showLabels && /* @__PURE__ */ jsx39(
|
|
7158
7269
|
"text",
|
|
7159
7270
|
{
|
|
7160
7271
|
x: bubble.x,
|
|
@@ -7170,7 +7281,7 @@ var PackedBubbleChart = ({
|
|
|
7170
7281
|
children: bubble.data.name
|
|
7171
7282
|
}
|
|
7172
7283
|
),
|
|
7173
|
-
showValues && /* @__PURE__ */
|
|
7284
|
+
showValues && /* @__PURE__ */ jsx39(
|
|
7174
7285
|
"text",
|
|
7175
7286
|
{
|
|
7176
7287
|
x: bubble.x,
|
|
@@ -7186,7 +7297,7 @@ var PackedBubbleChart = ({
|
|
|
7186
7297
|
children: bubble.data.value
|
|
7187
7298
|
}
|
|
7188
7299
|
),
|
|
7189
|
-
/* @__PURE__ */
|
|
7300
|
+
/* @__PURE__ */ jsx39("title", { children: `${bubble.data.name}: ${bubble.data.value}` })
|
|
7190
7301
|
]
|
|
7191
7302
|
},
|
|
7192
7303
|
`bubble-${index}-${bubble.data.name}`
|
|
@@ -7197,18 +7308,18 @@ var PackedBubbleChart = ({
|
|
|
7197
7308
|
};
|
|
7198
7309
|
|
|
7199
7310
|
// src/components/bottom-navigation.tsx
|
|
7200
|
-
import * as
|
|
7201
|
-
import { jsx as
|
|
7202
|
-
var BottomNavigationContext =
|
|
7311
|
+
import * as React40 from "react";
|
|
7312
|
+
import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
7313
|
+
var BottomNavigationContext = React40.createContext({
|
|
7203
7314
|
value: null,
|
|
7204
7315
|
onChange: () => {
|
|
7205
7316
|
},
|
|
7206
7317
|
showLabels: false
|
|
7207
7318
|
});
|
|
7208
|
-
var BottomNavigation =
|
|
7319
|
+
var BottomNavigation = React40.forwardRef(
|
|
7209
7320
|
({ className, value, onChange = () => {
|
|
7210
7321
|
}, showLabels = false, children, ...props }, ref) => {
|
|
7211
|
-
return /* @__PURE__ */
|
|
7322
|
+
return /* @__PURE__ */ jsx40(BottomNavigationContext.Provider, { value: { value, onChange, showLabels }, children: /* @__PURE__ */ jsx40(
|
|
7212
7323
|
"div",
|
|
7213
7324
|
{
|
|
7214
7325
|
ref,
|
|
@@ -7224,9 +7335,9 @@ var BottomNavigation = React39.forwardRef(
|
|
|
7224
7335
|
}
|
|
7225
7336
|
);
|
|
7226
7337
|
BottomNavigation.displayName = "BottomNavigation";
|
|
7227
|
-
var BottomNavigationAction =
|
|
7338
|
+
var BottomNavigationAction = React40.forwardRef(
|
|
7228
7339
|
({ className, label, icon, value, showLabel, disabled, onClick, ...props }, ref) => {
|
|
7229
|
-
const ctx =
|
|
7340
|
+
const ctx = React40.useContext(BottomNavigationContext);
|
|
7230
7341
|
const selected = ctx.value !== void 0 && ctx.value !== null && ctx.value === value;
|
|
7231
7342
|
const labelVisible = showLabel ?? ctx.showLabels ?? selected;
|
|
7232
7343
|
const handleClick = (e) => {
|
|
@@ -7252,7 +7363,7 @@ var BottomNavigationAction = React39.forwardRef(
|
|
|
7252
7363
|
),
|
|
7253
7364
|
...props,
|
|
7254
7365
|
children: [
|
|
7255
|
-
icon && /* @__PURE__ */
|
|
7366
|
+
icon && /* @__PURE__ */ jsx40(
|
|
7256
7367
|
"span",
|
|
7257
7368
|
{
|
|
7258
7369
|
className: cn(
|
|
@@ -7262,7 +7373,7 @@ var BottomNavigationAction = React39.forwardRef(
|
|
|
7262
7373
|
children: icon
|
|
7263
7374
|
}
|
|
7264
7375
|
),
|
|
7265
|
-
label !== void 0 && /* @__PURE__ */
|
|
7376
|
+
label !== void 0 && /* @__PURE__ */ jsx40(
|
|
7266
7377
|
"span",
|
|
7267
7378
|
{
|
|
7268
7379
|
className: cn(
|
|
@@ -7280,9 +7391,9 @@ var BottomNavigationAction = React39.forwardRef(
|
|
|
7280
7391
|
BottomNavigationAction.displayName = "BottomNavigationAction";
|
|
7281
7392
|
|
|
7282
7393
|
// src/components/breadcrumbs.tsx
|
|
7283
|
-
import * as
|
|
7284
|
-
import { jsx as
|
|
7285
|
-
var Breadcrumbs =
|
|
7394
|
+
import * as React41 from "react";
|
|
7395
|
+
import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
7396
|
+
var Breadcrumbs = React41.forwardRef(
|
|
7286
7397
|
({
|
|
7287
7398
|
separator,
|
|
7288
7399
|
maxItems,
|
|
@@ -7292,9 +7403,9 @@ var Breadcrumbs = React40.forwardRef(
|
|
|
7292
7403
|
children,
|
|
7293
7404
|
...props
|
|
7294
7405
|
}, ref) => {
|
|
7295
|
-
const childArray =
|
|
7406
|
+
const childArray = React41.Children.toArray(children);
|
|
7296
7407
|
const totalItems = childArray.length;
|
|
7297
|
-
const separatorElement = separator ?? /* @__PURE__ */
|
|
7408
|
+
const separatorElement = separator ?? /* @__PURE__ */ jsx41(
|
|
7298
7409
|
"svg",
|
|
7299
7410
|
{
|
|
7300
7411
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7307,7 +7418,7 @@ var Breadcrumbs = React40.forwardRef(
|
|
|
7307
7418
|
strokeLinecap: "round",
|
|
7308
7419
|
strokeLinejoin: "round",
|
|
7309
7420
|
className: "text-muted-foreground",
|
|
7310
|
-
children: /* @__PURE__ */
|
|
7421
|
+
children: /* @__PURE__ */ jsx41("path", { d: "m9 18 6-6-6-6" })
|
|
7311
7422
|
}
|
|
7312
7423
|
);
|
|
7313
7424
|
const shouldCollapse = maxItems && totalItems > maxItems;
|
|
@@ -7317,20 +7428,20 @@ var Breadcrumbs = React40.forwardRef(
|
|
|
7317
7428
|
const endItems = childArray.slice(-itemsAfterCollapse);
|
|
7318
7429
|
displayedItems = [
|
|
7319
7430
|
...startItems,
|
|
7320
|
-
/* @__PURE__ */
|
|
7431
|
+
/* @__PURE__ */ jsx41(BreadcrumbEllipsis, {}, "ellipsis"),
|
|
7321
7432
|
...endItems
|
|
7322
7433
|
];
|
|
7323
7434
|
} else {
|
|
7324
7435
|
displayedItems = childArray;
|
|
7325
7436
|
}
|
|
7326
|
-
return /* @__PURE__ */
|
|
7327
|
-
index > 0 && /* @__PURE__ */
|
|
7437
|
+
return /* @__PURE__ */ jsx41("nav", { ref, "aria-label": "Breadcrumb", className, ...props, children: /* @__PURE__ */ jsx41("ol", { className: "flex items-center gap-1.5 flex-wrap", children: displayedItems.map((child, index) => /* @__PURE__ */ jsxs26("li", { className: "flex items-center gap-1.5", children: [
|
|
7438
|
+
index > 0 && /* @__PURE__ */ jsx41("span", { className: "flex items-center", "aria-hidden": "true", children: separatorElement }),
|
|
7328
7439
|
child
|
|
7329
7440
|
] }, index)) }) });
|
|
7330
7441
|
}
|
|
7331
7442
|
);
|
|
7332
7443
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
7333
|
-
var BreadcrumbItem =
|
|
7444
|
+
var BreadcrumbItem = React41.forwardRef(
|
|
7334
7445
|
({ current = false, href, onClick, className, children, ...props }, ref) => {
|
|
7335
7446
|
const baseClasses = cn(
|
|
7336
7447
|
"text-sm transition-colors",
|
|
@@ -7339,7 +7450,7 @@ var BreadcrumbItem = React40.forwardRef(
|
|
|
7339
7450
|
className
|
|
7340
7451
|
);
|
|
7341
7452
|
if (current) {
|
|
7342
|
-
return /* @__PURE__ */
|
|
7453
|
+
return /* @__PURE__ */ jsx41(
|
|
7343
7454
|
"span",
|
|
7344
7455
|
{
|
|
7345
7456
|
ref,
|
|
@@ -7351,7 +7462,7 @@ var BreadcrumbItem = React40.forwardRef(
|
|
|
7351
7462
|
);
|
|
7352
7463
|
}
|
|
7353
7464
|
if (href) {
|
|
7354
|
-
return /* @__PURE__ */
|
|
7465
|
+
return /* @__PURE__ */ jsx41(
|
|
7355
7466
|
"a",
|
|
7356
7467
|
{
|
|
7357
7468
|
href,
|
|
@@ -7361,7 +7472,7 @@ var BreadcrumbItem = React40.forwardRef(
|
|
|
7361
7472
|
}
|
|
7362
7473
|
);
|
|
7363
7474
|
}
|
|
7364
|
-
return /* @__PURE__ */
|
|
7475
|
+
return /* @__PURE__ */ jsx41(
|
|
7365
7476
|
"span",
|
|
7366
7477
|
{
|
|
7367
7478
|
ref,
|
|
@@ -7382,8 +7493,8 @@ var BreadcrumbItem = React40.forwardRef(
|
|
|
7382
7493
|
}
|
|
7383
7494
|
);
|
|
7384
7495
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
7385
|
-
var BreadcrumbLink =
|
|
7386
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7496
|
+
var BreadcrumbLink = React41.forwardRef(
|
|
7497
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
|
|
7387
7498
|
"a",
|
|
7388
7499
|
{
|
|
7389
7500
|
ref,
|
|
@@ -7396,8 +7507,8 @@ var BreadcrumbLink = React40.forwardRef(
|
|
|
7396
7507
|
)
|
|
7397
7508
|
);
|
|
7398
7509
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
7399
|
-
var BreadcrumbSeparator =
|
|
7400
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
7510
|
+
var BreadcrumbSeparator = React41.forwardRef(
|
|
7511
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx41(
|
|
7401
7512
|
"span",
|
|
7402
7513
|
{
|
|
7403
7514
|
ref,
|
|
@@ -7405,7 +7516,7 @@ var BreadcrumbSeparator = React40.forwardRef(
|
|
|
7405
7516
|
"aria-hidden": "true",
|
|
7406
7517
|
className: cn("text-muted-foreground", className),
|
|
7407
7518
|
...props,
|
|
7408
|
-
children: children ?? /* @__PURE__ */
|
|
7519
|
+
children: children ?? /* @__PURE__ */ jsx41(
|
|
7409
7520
|
"svg",
|
|
7410
7521
|
{
|
|
7411
7522
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7417,15 +7528,15 @@ var BreadcrumbSeparator = React40.forwardRef(
|
|
|
7417
7528
|
strokeWidth: "2",
|
|
7418
7529
|
strokeLinecap: "round",
|
|
7419
7530
|
strokeLinejoin: "round",
|
|
7420
|
-
children: /* @__PURE__ */
|
|
7531
|
+
children: /* @__PURE__ */ jsx41("path", { d: "m9 18 6-6-6-6" })
|
|
7421
7532
|
}
|
|
7422
7533
|
)
|
|
7423
7534
|
}
|
|
7424
7535
|
)
|
|
7425
7536
|
);
|
|
7426
7537
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
7427
|
-
var BreadcrumbEllipsis =
|
|
7428
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7538
|
+
var BreadcrumbEllipsis = React41.forwardRef(
|
|
7539
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
|
|
7429
7540
|
"span",
|
|
7430
7541
|
{
|
|
7431
7542
|
ref,
|
|
@@ -7446,9 +7557,9 @@ var BreadcrumbEllipsis = React40.forwardRef(
|
|
|
7446
7557
|
strokeLinecap: "round",
|
|
7447
7558
|
strokeLinejoin: "round",
|
|
7448
7559
|
children: [
|
|
7449
|
-
/* @__PURE__ */
|
|
7450
|
-
/* @__PURE__ */
|
|
7451
|
-
/* @__PURE__ */
|
|
7560
|
+
/* @__PURE__ */ jsx41("circle", { cx: "12", cy: "12", r: "1" }),
|
|
7561
|
+
/* @__PURE__ */ jsx41("circle", { cx: "19", cy: "12", r: "1" }),
|
|
7562
|
+
/* @__PURE__ */ jsx41("circle", { cx: "5", cy: "12", r: "1" })
|
|
7452
7563
|
]
|
|
7453
7564
|
}
|
|
7454
7565
|
)
|
|
@@ -7456,8 +7567,8 @@ var BreadcrumbEllipsis = React40.forwardRef(
|
|
|
7456
7567
|
)
|
|
7457
7568
|
);
|
|
7458
7569
|
BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
|
|
7459
|
-
var BreadcrumbPage =
|
|
7460
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7570
|
+
var BreadcrumbPage = React41.forwardRef(
|
|
7571
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
|
|
7461
7572
|
"span",
|
|
7462
7573
|
{
|
|
7463
7574
|
ref,
|
|
@@ -7470,16 +7581,16 @@ var BreadcrumbPage = React40.forwardRef(
|
|
|
7470
7581
|
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
7471
7582
|
|
|
7472
7583
|
// src/components/dropdown-menu.tsx
|
|
7473
|
-
import * as
|
|
7584
|
+
import * as React42 from "react";
|
|
7474
7585
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
7475
|
-
import { jsx as
|
|
7586
|
+
import { jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
7476
7587
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
7477
7588
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
7478
7589
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
7479
7590
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
7480
7591
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
7481
7592
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
7482
|
-
var DropdownMenuSubTrigger =
|
|
7593
|
+
var DropdownMenuSubTrigger = React42.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs27(
|
|
7483
7594
|
DropdownMenuPrimitive.SubTrigger,
|
|
7484
7595
|
{
|
|
7485
7596
|
ref,
|
|
@@ -7493,7 +7604,7 @@ var DropdownMenuSubTrigger = React41.forwardRef(({ className, inset, children, .
|
|
|
7493
7604
|
...props,
|
|
7494
7605
|
children: [
|
|
7495
7606
|
children,
|
|
7496
|
-
/* @__PURE__ */
|
|
7607
|
+
/* @__PURE__ */ jsx42(
|
|
7497
7608
|
"svg",
|
|
7498
7609
|
{
|
|
7499
7610
|
className: "ml-auto h-4 w-4",
|
|
@@ -7504,14 +7615,14 @@ var DropdownMenuSubTrigger = React41.forwardRef(({ className, inset, children, .
|
|
|
7504
7615
|
strokeWidth: "2",
|
|
7505
7616
|
strokeLinecap: "round",
|
|
7506
7617
|
strokeLinejoin: "round",
|
|
7507
|
-
children: /* @__PURE__ */
|
|
7618
|
+
children: /* @__PURE__ */ jsx42("path", { d: "m9 18 6-6-6-6" })
|
|
7508
7619
|
}
|
|
7509
7620
|
)
|
|
7510
7621
|
]
|
|
7511
7622
|
}
|
|
7512
7623
|
));
|
|
7513
7624
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
7514
|
-
var DropdownMenuSubContent =
|
|
7625
|
+
var DropdownMenuSubContent = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx42(
|
|
7515
7626
|
DropdownMenuPrimitive.SubContent,
|
|
7516
7627
|
{
|
|
7517
7628
|
ref,
|
|
@@ -7528,7 +7639,7 @@ var DropdownMenuSubContent = React41.forwardRef(({ className, ...props }, ref) =
|
|
|
7528
7639
|
}
|
|
7529
7640
|
));
|
|
7530
7641
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
7531
|
-
var DropdownMenuContent =
|
|
7642
|
+
var DropdownMenuContent = React42.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx42(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx42(
|
|
7532
7643
|
DropdownMenuPrimitive.Content,
|
|
7533
7644
|
{
|
|
7534
7645
|
ref,
|
|
@@ -7546,7 +7657,7 @@ var DropdownMenuContent = React41.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
7546
7657
|
}
|
|
7547
7658
|
) }));
|
|
7548
7659
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
7549
|
-
var DropdownMenuItem =
|
|
7660
|
+
var DropdownMenuItem = React42.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx42(
|
|
7550
7661
|
DropdownMenuPrimitive.Item,
|
|
7551
7662
|
{
|
|
7552
7663
|
ref,
|
|
@@ -7562,7 +7673,7 @@ var DropdownMenuItem = React41.forwardRef(({ className, inset, ...props }, ref)
|
|
|
7562
7673
|
}
|
|
7563
7674
|
));
|
|
7564
7675
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
7565
|
-
var DropdownMenuCheckboxItem =
|
|
7676
|
+
var DropdownMenuCheckboxItem = React42.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs27(
|
|
7566
7677
|
DropdownMenuPrimitive.CheckboxItem,
|
|
7567
7678
|
{
|
|
7568
7679
|
ref,
|
|
@@ -7575,7 +7686,7 @@ var DropdownMenuCheckboxItem = React41.forwardRef(({ className, children, checke
|
|
|
7575
7686
|
checked,
|
|
7576
7687
|
...props,
|
|
7577
7688
|
children: [
|
|
7578
|
-
/* @__PURE__ */
|
|
7689
|
+
/* @__PURE__ */ jsx42("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx42(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx42(
|
|
7579
7690
|
"svg",
|
|
7580
7691
|
{
|
|
7581
7692
|
className: "h-4 w-4",
|
|
@@ -7586,7 +7697,7 @@ var DropdownMenuCheckboxItem = React41.forwardRef(({ className, children, checke
|
|
|
7586
7697
|
strokeWidth: "2",
|
|
7587
7698
|
strokeLinecap: "round",
|
|
7588
7699
|
strokeLinejoin: "round",
|
|
7589
|
-
children: /* @__PURE__ */
|
|
7700
|
+
children: /* @__PURE__ */ jsx42("path", { d: "M20 6 9 17l-5-5" })
|
|
7590
7701
|
}
|
|
7591
7702
|
) }) }),
|
|
7592
7703
|
children
|
|
@@ -7594,7 +7705,7 @@ var DropdownMenuCheckboxItem = React41.forwardRef(({ className, children, checke
|
|
|
7594
7705
|
}
|
|
7595
7706
|
));
|
|
7596
7707
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
7597
|
-
var DropdownMenuRadioItem =
|
|
7708
|
+
var DropdownMenuRadioItem = React42.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs27(
|
|
7598
7709
|
DropdownMenuPrimitive.RadioItem,
|
|
7599
7710
|
{
|
|
7600
7711
|
ref,
|
|
@@ -7606,13 +7717,13 @@ var DropdownMenuRadioItem = React41.forwardRef(({ className, children, ...props
|
|
|
7606
7717
|
),
|
|
7607
7718
|
...props,
|
|
7608
7719
|
children: [
|
|
7609
|
-
/* @__PURE__ */
|
|
7720
|
+
/* @__PURE__ */ jsx42("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx42(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx42(
|
|
7610
7721
|
"svg",
|
|
7611
7722
|
{
|
|
7612
7723
|
className: "h-2 w-2 fill-current",
|
|
7613
7724
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7614
7725
|
viewBox: "0 0 24 24",
|
|
7615
|
-
children: /* @__PURE__ */
|
|
7726
|
+
children: /* @__PURE__ */ jsx42("circle", { cx: "12", cy: "12", r: "10" })
|
|
7616
7727
|
}
|
|
7617
7728
|
) }) }),
|
|
7618
7729
|
children
|
|
@@ -7620,7 +7731,7 @@ var DropdownMenuRadioItem = React41.forwardRef(({ className, children, ...props
|
|
|
7620
7731
|
}
|
|
7621
7732
|
));
|
|
7622
7733
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
7623
|
-
var DropdownMenuLabel =
|
|
7734
|
+
var DropdownMenuLabel = React42.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx42(
|
|
7624
7735
|
DropdownMenuPrimitive.Label,
|
|
7625
7736
|
{
|
|
7626
7737
|
ref,
|
|
@@ -7633,7 +7744,7 @@ var DropdownMenuLabel = React41.forwardRef(({ className, inset, ...props }, ref)
|
|
|
7633
7744
|
}
|
|
7634
7745
|
));
|
|
7635
7746
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
7636
|
-
var DropdownMenuSeparator =
|
|
7747
|
+
var DropdownMenuSeparator = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx42(
|
|
7637
7748
|
DropdownMenuPrimitive.Separator,
|
|
7638
7749
|
{
|
|
7639
7750
|
ref,
|
|
@@ -7646,7 +7757,7 @@ var DropdownMenuShortcut = ({
|
|
|
7646
7757
|
className,
|
|
7647
7758
|
...props
|
|
7648
7759
|
}) => {
|
|
7649
|
-
return /* @__PURE__ */
|
|
7760
|
+
return /* @__PURE__ */ jsx42(
|
|
7650
7761
|
"span",
|
|
7651
7762
|
{
|
|
7652
7763
|
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
|
|
@@ -7657,14 +7768,14 @@ var DropdownMenuShortcut = ({
|
|
|
7657
7768
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
7658
7769
|
|
|
7659
7770
|
// src/components/drawer.tsx
|
|
7660
|
-
import * as
|
|
7771
|
+
import * as React43 from "react";
|
|
7661
7772
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
7662
|
-
import { jsx as
|
|
7773
|
+
import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
7663
7774
|
var Drawer = DialogPrimitive2.Root;
|
|
7664
7775
|
var DrawerTrigger = DialogPrimitive2.Trigger;
|
|
7665
7776
|
var DrawerClose = DialogPrimitive2.Close;
|
|
7666
7777
|
var DrawerPortal = DialogPrimitive2.Portal;
|
|
7667
|
-
var DrawerOverlay =
|
|
7778
|
+
var DrawerOverlay = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
7668
7779
|
DialogPrimitive2.Overlay,
|
|
7669
7780
|
{
|
|
7670
7781
|
ref,
|
|
@@ -7684,8 +7795,8 @@ var slideVariants = {
|
|
|
7684
7795
|
top: "inset-x-0 top-0 w-full data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
7685
7796
|
bottom: "inset-x-0 bottom-0 w-full data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom"
|
|
7686
7797
|
};
|
|
7687
|
-
var DrawerContent =
|
|
7688
|
-
/* @__PURE__ */
|
|
7798
|
+
var DrawerContent = React43.forwardRef(({ side = "right", showClose = true, className, children, ...props }, ref) => /* @__PURE__ */ jsxs28(DrawerPortal, { children: [
|
|
7799
|
+
/* @__PURE__ */ jsx43(DrawerOverlay, {}),
|
|
7689
7800
|
/* @__PURE__ */ jsxs28(
|
|
7690
7801
|
DialogPrimitive2.Content,
|
|
7691
7802
|
{
|
|
@@ -7710,7 +7821,7 @@ var DrawerContent = React42.forwardRef(({ side = "right", showClose = true, clas
|
|
|
7710
7821
|
"disabled:pointer-events-none"
|
|
7711
7822
|
),
|
|
7712
7823
|
children: [
|
|
7713
|
-
/* @__PURE__ */
|
|
7824
|
+
/* @__PURE__ */ jsx43(
|
|
7714
7825
|
"svg",
|
|
7715
7826
|
{
|
|
7716
7827
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7723,10 +7834,10 @@ var DrawerContent = React42.forwardRef(({ side = "right", showClose = true, clas
|
|
|
7723
7834
|
strokeLinecap: "round",
|
|
7724
7835
|
strokeLinejoin: "round",
|
|
7725
7836
|
className: "h-4 w-4",
|
|
7726
|
-
children: /* @__PURE__ */
|
|
7837
|
+
children: /* @__PURE__ */ jsx43("path", { d: "M18 6 6 18M6 6l12 12" })
|
|
7727
7838
|
}
|
|
7728
7839
|
),
|
|
7729
|
-
/* @__PURE__ */
|
|
7840
|
+
/* @__PURE__ */ jsx43("span", { className: "sr-only", children: "Close" })
|
|
7730
7841
|
]
|
|
7731
7842
|
}
|
|
7732
7843
|
)
|
|
@@ -7735,8 +7846,8 @@ var DrawerContent = React42.forwardRef(({ side = "right", showClose = true, clas
|
|
|
7735
7846
|
)
|
|
7736
7847
|
] }));
|
|
7737
7848
|
DrawerContent.displayName = "DrawerContent";
|
|
7738
|
-
var DrawerHeader =
|
|
7739
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7849
|
+
var DrawerHeader = React43.forwardRef(
|
|
7850
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
7740
7851
|
"div",
|
|
7741
7852
|
{
|
|
7742
7853
|
ref,
|
|
@@ -7746,7 +7857,7 @@ var DrawerHeader = React42.forwardRef(
|
|
|
7746
7857
|
)
|
|
7747
7858
|
);
|
|
7748
7859
|
DrawerHeader.displayName = "DrawerHeader";
|
|
7749
|
-
var DrawerTitle =
|
|
7860
|
+
var DrawerTitle = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
7750
7861
|
DialogPrimitive2.Title,
|
|
7751
7862
|
{
|
|
7752
7863
|
ref,
|
|
@@ -7755,7 +7866,7 @@ var DrawerTitle = React42.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
7755
7866
|
}
|
|
7756
7867
|
));
|
|
7757
7868
|
DrawerTitle.displayName = DialogPrimitive2.Title.displayName;
|
|
7758
|
-
var DrawerDescription =
|
|
7869
|
+
var DrawerDescription = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
7759
7870
|
DialogPrimitive2.Description,
|
|
7760
7871
|
{
|
|
7761
7872
|
ref,
|
|
@@ -7764,8 +7875,8 @@ var DrawerDescription = React42.forwardRef(({ className, ...props }, ref) => /*
|
|
|
7764
7875
|
}
|
|
7765
7876
|
));
|
|
7766
7877
|
DrawerDescription.displayName = DialogPrimitive2.Description.displayName;
|
|
7767
|
-
var DrawerBody =
|
|
7768
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7878
|
+
var DrawerBody = React43.forwardRef(
|
|
7879
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
7769
7880
|
"div",
|
|
7770
7881
|
{
|
|
7771
7882
|
ref,
|
|
@@ -7775,8 +7886,8 @@ var DrawerBody = React42.forwardRef(
|
|
|
7775
7886
|
)
|
|
7776
7887
|
);
|
|
7777
7888
|
DrawerBody.displayName = "DrawerBody";
|
|
7778
|
-
var DrawerFooter =
|
|
7779
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7889
|
+
var DrawerFooter = React43.forwardRef(
|
|
7890
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
7780
7891
|
"div",
|
|
7781
7892
|
{
|
|
7782
7893
|
ref,
|
|
@@ -7802,16 +7913,16 @@ var SheetBody = DrawerBody;
|
|
|
7802
7913
|
var SheetFooter = DrawerFooter;
|
|
7803
7914
|
|
|
7804
7915
|
// src/components/topbar.tsx
|
|
7805
|
-
import * as
|
|
7806
|
-
import { Fragment as Fragment6, jsx as
|
|
7916
|
+
import * as React44 from "react";
|
|
7917
|
+
import { Fragment as Fragment6, jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
7807
7918
|
var sizeClasses5 = {
|
|
7808
7919
|
sm: "h-12",
|
|
7809
7920
|
md: "h-14",
|
|
7810
7921
|
lg: "h-16"
|
|
7811
7922
|
};
|
|
7812
|
-
var TopBar =
|
|
7923
|
+
var TopBar = React44.forwardRef(
|
|
7813
7924
|
({ className, bordered = true, sticky = false, size = "md", children, ...props }, ref) => {
|
|
7814
|
-
return /* @__PURE__ */
|
|
7925
|
+
return /* @__PURE__ */ jsx44(
|
|
7815
7926
|
"header",
|
|
7816
7927
|
{
|
|
7817
7928
|
ref,
|
|
@@ -7829,23 +7940,23 @@ var TopBar = React43.forwardRef(
|
|
|
7829
7940
|
}
|
|
7830
7941
|
);
|
|
7831
7942
|
TopBar.displayName = "TopBar";
|
|
7832
|
-
var TopBarBrand =
|
|
7943
|
+
var TopBarBrand = React44.forwardRef(
|
|
7833
7944
|
({ className, logo, name, href, children, ...props }, ref) => {
|
|
7834
7945
|
const content = /* @__PURE__ */ jsxs29(Fragment6, { children: [
|
|
7835
|
-
logo && /* @__PURE__ */
|
|
7836
|
-
name && /* @__PURE__ */
|
|
7946
|
+
logo && /* @__PURE__ */ jsx44("span", { className: "shrink-0", children: logo }),
|
|
7947
|
+
name && /* @__PURE__ */ jsx44("span", { className: "font-semibold text-lg", children: name }),
|
|
7837
7948
|
children
|
|
7838
7949
|
] });
|
|
7839
7950
|
if (href) {
|
|
7840
|
-
return /* @__PURE__ */
|
|
7951
|
+
return /* @__PURE__ */ jsx44("div", { ref, className: cn("flex items-center gap-2", className), ...props, children: /* @__PURE__ */ jsx44("a", { href, className: "flex items-center gap-2 hover:opacity-80 transition-opacity", children: content }) });
|
|
7841
7952
|
}
|
|
7842
|
-
return /* @__PURE__ */
|
|
7953
|
+
return /* @__PURE__ */ jsx44("div", { ref, className: cn("flex items-center gap-2", className), ...props, children: content });
|
|
7843
7954
|
}
|
|
7844
7955
|
);
|
|
7845
7956
|
TopBarBrand.displayName = "TopBarBrand";
|
|
7846
|
-
var TopBarNav =
|
|
7957
|
+
var TopBarNav = React44.forwardRef(
|
|
7847
7958
|
({ className, children, ...props }, ref) => {
|
|
7848
|
-
return /* @__PURE__ */
|
|
7959
|
+
return /* @__PURE__ */ jsx44(
|
|
7849
7960
|
"nav",
|
|
7850
7961
|
{
|
|
7851
7962
|
ref,
|
|
@@ -7857,9 +7968,9 @@ var TopBarNav = React43.forwardRef(
|
|
|
7857
7968
|
}
|
|
7858
7969
|
);
|
|
7859
7970
|
TopBarNav.displayName = "TopBarNav";
|
|
7860
|
-
var TopBarNavItem =
|
|
7971
|
+
var TopBarNavItem = React44.forwardRef(
|
|
7861
7972
|
({ className, active, children, ...props }, ref) => {
|
|
7862
|
-
return /* @__PURE__ */
|
|
7973
|
+
return /* @__PURE__ */ jsx44(
|
|
7863
7974
|
"a",
|
|
7864
7975
|
{
|
|
7865
7976
|
ref,
|
|
@@ -7875,9 +7986,9 @@ var TopBarNavItem = React43.forwardRef(
|
|
|
7875
7986
|
}
|
|
7876
7987
|
);
|
|
7877
7988
|
TopBarNavItem.displayName = "TopBarNavItem";
|
|
7878
|
-
var TopBarSection =
|
|
7989
|
+
var TopBarSection = React44.forwardRef(
|
|
7879
7990
|
({ className, align = "left", children, ...props }, ref) => {
|
|
7880
|
-
return /* @__PURE__ */
|
|
7991
|
+
return /* @__PURE__ */ jsx44(
|
|
7881
7992
|
"div",
|
|
7882
7993
|
{
|
|
7883
7994
|
ref,
|
|
@@ -7897,9 +8008,9 @@ var TopBarSection = React43.forwardRef(
|
|
|
7897
8008
|
}
|
|
7898
8009
|
);
|
|
7899
8010
|
TopBarSection.displayName = "TopBarSection";
|
|
7900
|
-
var TopBarDivider =
|
|
8011
|
+
var TopBarDivider = React44.forwardRef(
|
|
7901
8012
|
({ className, ...props }, ref) => {
|
|
7902
|
-
return /* @__PURE__ */
|
|
8013
|
+
return /* @__PURE__ */ jsx44(
|
|
7903
8014
|
"div",
|
|
7904
8015
|
{
|
|
7905
8016
|
ref,
|
|
@@ -7912,17 +8023,17 @@ var TopBarDivider = React43.forwardRef(
|
|
|
7912
8023
|
TopBarDivider.displayName = "TopBarDivider";
|
|
7913
8024
|
|
|
7914
8025
|
// src/components/sidebar.tsx
|
|
7915
|
-
import * as
|
|
7916
|
-
import { Fragment as Fragment7, jsx as
|
|
7917
|
-
var SidebarContext =
|
|
8026
|
+
import * as React45 from "react";
|
|
8027
|
+
import { Fragment as Fragment7, jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
8028
|
+
var SidebarContext = React45.createContext(void 0);
|
|
7918
8029
|
var useSidebar = () => {
|
|
7919
|
-
const context =
|
|
8030
|
+
const context = React45.useContext(SidebarContext);
|
|
7920
8031
|
if (!context) {
|
|
7921
8032
|
throw new Error("useSidebar must be used within a Sidebar");
|
|
7922
8033
|
}
|
|
7923
8034
|
return context;
|
|
7924
8035
|
};
|
|
7925
|
-
var Sidebar =
|
|
8036
|
+
var Sidebar = React45.forwardRef(
|
|
7926
8037
|
({
|
|
7927
8038
|
className,
|
|
7928
8039
|
collapsed: controlledCollapsed,
|
|
@@ -7934,10 +8045,10 @@ var Sidebar = React44.forwardRef(
|
|
|
7934
8045
|
children,
|
|
7935
8046
|
...props
|
|
7936
8047
|
}, ref) => {
|
|
7937
|
-
const [uncontrolledCollapsed, setUncontrolledCollapsed] =
|
|
8048
|
+
const [uncontrolledCollapsed, setUncontrolledCollapsed] = React45.useState(defaultCollapsed);
|
|
7938
8049
|
const isControlled = controlledCollapsed !== void 0;
|
|
7939
8050
|
const collapsed = isControlled ? controlledCollapsed : uncontrolledCollapsed;
|
|
7940
|
-
const setCollapsed =
|
|
8051
|
+
const setCollapsed = React45.useCallback(
|
|
7941
8052
|
(value) => {
|
|
7942
8053
|
if (!isControlled) {
|
|
7943
8054
|
setUncontrolledCollapsed(value);
|
|
@@ -7946,7 +8057,7 @@ var Sidebar = React44.forwardRef(
|
|
|
7946
8057
|
},
|
|
7947
8058
|
[isControlled, onCollapsedChange]
|
|
7948
8059
|
);
|
|
7949
|
-
return /* @__PURE__ */
|
|
8060
|
+
return /* @__PURE__ */ jsx45(SidebarContext.Provider, { value: { collapsed, setCollapsed }, children: /* @__PURE__ */ jsx45(
|
|
7950
8061
|
"aside",
|
|
7951
8062
|
{
|
|
7952
8063
|
ref,
|
|
@@ -7966,9 +8077,9 @@ var Sidebar = React44.forwardRef(
|
|
|
7966
8077
|
}
|
|
7967
8078
|
);
|
|
7968
8079
|
Sidebar.displayName = "Sidebar";
|
|
7969
|
-
var SidebarHeader =
|
|
8080
|
+
var SidebarHeader = React45.forwardRef(
|
|
7970
8081
|
({ className, children, ...props }, ref) => {
|
|
7971
|
-
return /* @__PURE__ */
|
|
8082
|
+
return /* @__PURE__ */ jsx45(
|
|
7972
8083
|
"div",
|
|
7973
8084
|
{
|
|
7974
8085
|
ref,
|
|
@@ -7980,9 +8091,9 @@ var SidebarHeader = React44.forwardRef(
|
|
|
7980
8091
|
}
|
|
7981
8092
|
);
|
|
7982
8093
|
SidebarHeader.displayName = "SidebarHeader";
|
|
7983
|
-
var SidebarContent =
|
|
8094
|
+
var SidebarContent = React45.forwardRef(
|
|
7984
8095
|
({ className, children, ...props }, ref) => {
|
|
7985
|
-
return /* @__PURE__ */
|
|
8096
|
+
return /* @__PURE__ */ jsx45(
|
|
7986
8097
|
"div",
|
|
7987
8098
|
{
|
|
7988
8099
|
ref,
|
|
@@ -7994,9 +8105,9 @@ var SidebarContent = React44.forwardRef(
|
|
|
7994
8105
|
}
|
|
7995
8106
|
);
|
|
7996
8107
|
SidebarContent.displayName = "SidebarContent";
|
|
7997
|
-
var SidebarFooter =
|
|
8108
|
+
var SidebarFooter = React45.forwardRef(
|
|
7998
8109
|
({ className, children, ...props }, ref) => {
|
|
7999
|
-
return /* @__PURE__ */
|
|
8110
|
+
return /* @__PURE__ */ jsx45(
|
|
8000
8111
|
"div",
|
|
8001
8112
|
{
|
|
8002
8113
|
ref,
|
|
@@ -8008,25 +8119,25 @@ var SidebarFooter = React44.forwardRef(
|
|
|
8008
8119
|
}
|
|
8009
8120
|
);
|
|
8010
8121
|
SidebarFooter.displayName = "SidebarFooter";
|
|
8011
|
-
var SidebarGroup =
|
|
8122
|
+
var SidebarGroup = React45.forwardRef(
|
|
8012
8123
|
({ className, label, children, ...props }, ref) => {
|
|
8013
8124
|
const { collapsed } = useSidebar();
|
|
8014
8125
|
return /* @__PURE__ */ jsxs30("div", { ref, className: cn("px-2 py-2", className), ...props, children: [
|
|
8015
|
-
label && !collapsed && /* @__PURE__ */
|
|
8016
|
-
label && collapsed && /* @__PURE__ */
|
|
8017
|
-
/* @__PURE__ */
|
|
8126
|
+
label && !collapsed && /* @__PURE__ */ jsx45("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider", children: label }),
|
|
8127
|
+
label && collapsed && /* @__PURE__ */ jsx45("div", { className: "flex justify-center py-1.5", children: /* @__PURE__ */ jsx45("div", { className: "h-px w-4 bg-border" }) }),
|
|
8128
|
+
/* @__PURE__ */ jsx45("div", { className: "space-y-1", children })
|
|
8018
8129
|
] });
|
|
8019
8130
|
}
|
|
8020
8131
|
);
|
|
8021
8132
|
SidebarGroup.displayName = "SidebarGroup";
|
|
8022
|
-
var SidebarItem =
|
|
8133
|
+
var SidebarItem = React45.forwardRef(
|
|
8023
8134
|
({ className, icon, active, disabled, badge, onClick, href, children, ...props }, ref) => {
|
|
8024
8135
|
const { collapsed } = useSidebar();
|
|
8025
8136
|
const content = /* @__PURE__ */ jsxs30(Fragment7, { children: [
|
|
8026
|
-
icon && /* @__PURE__ */
|
|
8137
|
+
icon && /* @__PURE__ */ jsx45("span", { className: cn("shrink-0", collapsed ? "mx-auto" : ""), children: icon }),
|
|
8027
8138
|
!collapsed && /* @__PURE__ */ jsxs30(Fragment7, { children: [
|
|
8028
|
-
/* @__PURE__ */
|
|
8029
|
-
badge && /* @__PURE__ */
|
|
8139
|
+
/* @__PURE__ */ jsx45("span", { className: "flex-1 truncate", children }),
|
|
8140
|
+
badge && /* @__PURE__ */ jsx45("span", { className: "shrink-0", children: badge })
|
|
8030
8141
|
] })
|
|
8031
8142
|
] });
|
|
8032
8143
|
const itemClasses = cn(
|
|
@@ -8037,9 +8148,9 @@ var SidebarItem = React44.forwardRef(
|
|
|
8037
8148
|
className
|
|
8038
8149
|
);
|
|
8039
8150
|
if (href) {
|
|
8040
|
-
return /* @__PURE__ */
|
|
8151
|
+
return /* @__PURE__ */ jsx45("div", { ref, ...props, children: /* @__PURE__ */ jsx45("a", { href, className: itemClasses, children: content }) });
|
|
8041
8152
|
}
|
|
8042
|
-
return /* @__PURE__ */
|
|
8153
|
+
return /* @__PURE__ */ jsx45(
|
|
8043
8154
|
"div",
|
|
8044
8155
|
{
|
|
8045
8156
|
ref,
|
|
@@ -8054,17 +8165,17 @@ var SidebarItem = React44.forwardRef(
|
|
|
8054
8165
|
}
|
|
8055
8166
|
);
|
|
8056
8167
|
SidebarItem.displayName = "SidebarItem";
|
|
8057
|
-
var SidebarSubMenu =
|
|
8168
|
+
var SidebarSubMenu = React45.forwardRef(
|
|
8058
8169
|
({ className, icon, label, defaultOpen = false, children, ...props }, ref) => {
|
|
8059
|
-
const [open, setOpen] =
|
|
8170
|
+
const [open, setOpen] = React45.useState(defaultOpen);
|
|
8060
8171
|
const { collapsed } = useSidebar();
|
|
8061
|
-
|
|
8172
|
+
React45.useEffect(() => {
|
|
8062
8173
|
if (collapsed) {
|
|
8063
8174
|
setOpen(false);
|
|
8064
8175
|
}
|
|
8065
8176
|
}, [collapsed]);
|
|
8066
8177
|
if (collapsed) {
|
|
8067
|
-
return /* @__PURE__ */
|
|
8178
|
+
return /* @__PURE__ */ jsx45(SidebarItem, { icon, className, children: label });
|
|
8068
8179
|
}
|
|
8069
8180
|
return /* @__PURE__ */ jsxs30("div", { ref, className, ...props, children: [
|
|
8070
8181
|
/* @__PURE__ */ jsxs30(
|
|
@@ -8078,9 +8189,9 @@ var SidebarSubMenu = React44.forwardRef(
|
|
|
8078
8189
|
role: "button",
|
|
8079
8190
|
tabIndex: 0,
|
|
8080
8191
|
children: [
|
|
8081
|
-
icon && /* @__PURE__ */
|
|
8082
|
-
/* @__PURE__ */
|
|
8083
|
-
/* @__PURE__ */
|
|
8192
|
+
icon && /* @__PURE__ */ jsx45("span", { className: "shrink-0", children: icon }),
|
|
8193
|
+
/* @__PURE__ */ jsx45("span", { className: "flex-1 truncate", children: label }),
|
|
8194
|
+
/* @__PURE__ */ jsx45(
|
|
8084
8195
|
"svg",
|
|
8085
8196
|
{
|
|
8086
8197
|
className: cn("h-4 w-4 shrink-0 transition-transform", open && "rotate-90"),
|
|
@@ -8091,21 +8202,21 @@ var SidebarSubMenu = React44.forwardRef(
|
|
|
8091
8202
|
strokeWidth: "2",
|
|
8092
8203
|
strokeLinecap: "round",
|
|
8093
8204
|
strokeLinejoin: "round",
|
|
8094
|
-
children: /* @__PURE__ */
|
|
8205
|
+
children: /* @__PURE__ */ jsx45("path", { d: "m9 18 6-6-6-6" })
|
|
8095
8206
|
}
|
|
8096
8207
|
)
|
|
8097
8208
|
]
|
|
8098
8209
|
}
|
|
8099
8210
|
),
|
|
8100
|
-
open && /* @__PURE__ */
|
|
8211
|
+
open && /* @__PURE__ */ jsx45("div", { className: "ml-4 pl-3 border-l border-border space-y-1 mt-1", children })
|
|
8101
8212
|
] });
|
|
8102
8213
|
}
|
|
8103
8214
|
);
|
|
8104
8215
|
SidebarSubMenu.displayName = "SidebarSubMenu";
|
|
8105
|
-
var SidebarToggle =
|
|
8216
|
+
var SidebarToggle = React45.forwardRef(
|
|
8106
8217
|
({ className, children, ...props }, ref) => {
|
|
8107
8218
|
const { collapsed, setCollapsed } = useSidebar();
|
|
8108
|
-
return /* @__PURE__ */
|
|
8219
|
+
return /* @__PURE__ */ jsx45(
|
|
8109
8220
|
"button",
|
|
8110
8221
|
{
|
|
8111
8222
|
ref,
|
|
@@ -8131,9 +8242,9 @@ var SidebarToggle = React44.forwardRef(
|
|
|
8131
8242
|
strokeLinecap: "round",
|
|
8132
8243
|
strokeLinejoin: "round",
|
|
8133
8244
|
children: [
|
|
8134
|
-
/* @__PURE__ */
|
|
8135
|
-
/* @__PURE__ */
|
|
8136
|
-
/* @__PURE__ */
|
|
8245
|
+
/* @__PURE__ */ jsx45("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
8246
|
+
/* @__PURE__ */ jsx45("path", { d: "M9 3v18" }),
|
|
8247
|
+
/* @__PURE__ */ jsx45("path", { d: "m14 9 3 3-3 3" })
|
|
8137
8248
|
]
|
|
8138
8249
|
}
|
|
8139
8250
|
)
|
|
@@ -8144,17 +8255,17 @@ var SidebarToggle = React44.forwardRef(
|
|
|
8144
8255
|
SidebarToggle.displayName = "SidebarToggle";
|
|
8145
8256
|
|
|
8146
8257
|
// src/components/sidebar-rail.tsx
|
|
8147
|
-
import * as
|
|
8148
|
-
import { Fragment as Fragment8, jsx as
|
|
8149
|
-
var SidebarRailContext =
|
|
8258
|
+
import * as React46 from "react";
|
|
8259
|
+
import { Fragment as Fragment8, jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
8260
|
+
var SidebarRailContext = React46.createContext(void 0);
|
|
8150
8261
|
var useSidebarRail = () => {
|
|
8151
|
-
const context =
|
|
8262
|
+
const context = React46.useContext(SidebarRailContext);
|
|
8152
8263
|
if (!context) {
|
|
8153
8264
|
throw new Error("useSidebarRail must be used within a SidebarRail");
|
|
8154
8265
|
}
|
|
8155
8266
|
return context;
|
|
8156
8267
|
};
|
|
8157
|
-
var SidebarRail =
|
|
8268
|
+
var SidebarRail = React46.forwardRef(
|
|
8158
8269
|
({
|
|
8159
8270
|
className,
|
|
8160
8271
|
defaultActiveRail = null,
|
|
@@ -8172,14 +8283,14 @@ var SidebarRail = React45.forwardRef(
|
|
|
8172
8283
|
children,
|
|
8173
8284
|
...props
|
|
8174
8285
|
}, ref) => {
|
|
8175
|
-
const [uncontrolledActiveRail, setUncontrolledActiveRail] =
|
|
8176
|
-
const [expanded, setExpanded] =
|
|
8177
|
-
const [uncontrolledRailExpanded, setUncontrolledRailExpanded] =
|
|
8286
|
+
const [uncontrolledActiveRail, setUncontrolledActiveRail] = React46.useState(defaultActiveRail);
|
|
8287
|
+
const [expanded, setExpanded] = React46.useState(!!defaultActiveRail);
|
|
8288
|
+
const [uncontrolledRailExpanded, setUncontrolledRailExpanded] = React46.useState(defaultRailExpanded);
|
|
8178
8289
|
const isControlled = controlledActiveRail !== void 0;
|
|
8179
8290
|
const activeRail = isControlled ? controlledActiveRail : uncontrolledActiveRail;
|
|
8180
8291
|
const isRailControlled = controlledRailExpanded !== void 0;
|
|
8181
8292
|
const railExpanded = isRailControlled ? controlledRailExpanded : uncontrolledRailExpanded;
|
|
8182
|
-
const setActiveRail =
|
|
8293
|
+
const setActiveRail = React46.useCallback(
|
|
8183
8294
|
(rail) => {
|
|
8184
8295
|
if (!isControlled) {
|
|
8185
8296
|
setUncontrolledActiveRail(rail);
|
|
@@ -8189,7 +8300,7 @@ var SidebarRail = React45.forwardRef(
|
|
|
8189
8300
|
},
|
|
8190
8301
|
[isControlled, onActiveRailChange]
|
|
8191
8302
|
);
|
|
8192
|
-
const setRailExpanded =
|
|
8303
|
+
const setRailExpanded = React46.useCallback(
|
|
8193
8304
|
(value) => {
|
|
8194
8305
|
if (!isRailControlled) {
|
|
8195
8306
|
setUncontrolledRailExpanded(value);
|
|
@@ -8198,7 +8309,7 @@ var SidebarRail = React45.forwardRef(
|
|
|
8198
8309
|
},
|
|
8199
8310
|
[isRailControlled, onRailExpandedChange]
|
|
8200
8311
|
);
|
|
8201
|
-
return /* @__PURE__ */
|
|
8312
|
+
return /* @__PURE__ */ jsx46(
|
|
8202
8313
|
SidebarRailContext.Provider,
|
|
8203
8314
|
{
|
|
8204
8315
|
value: {
|
|
@@ -8212,7 +8323,7 @@ var SidebarRail = React45.forwardRef(
|
|
|
8212
8323
|
overlayRail: overlayRail && expandableRail,
|
|
8213
8324
|
expandableRail
|
|
8214
8325
|
},
|
|
8215
|
-
children: /* @__PURE__ */
|
|
8326
|
+
children: /* @__PURE__ */ jsx46(
|
|
8216
8327
|
"div",
|
|
8217
8328
|
{
|
|
8218
8329
|
ref,
|
|
@@ -8235,11 +8346,11 @@ var SidebarRail = React45.forwardRef(
|
|
|
8235
8346
|
}
|
|
8236
8347
|
);
|
|
8237
8348
|
SidebarRail.displayName = "SidebarRail";
|
|
8238
|
-
var IconRail =
|
|
8349
|
+
var IconRail = React46.forwardRef(
|
|
8239
8350
|
({ className, children, ...props }, ref) => {
|
|
8240
8351
|
const { railExpanded, overlayRail, expandableRail } = useSidebarRail();
|
|
8241
8352
|
const isExpanded = expandableRail && railExpanded;
|
|
8242
|
-
return /* @__PURE__ */
|
|
8353
|
+
return /* @__PURE__ */ jsx46(
|
|
8243
8354
|
"div",
|
|
8244
8355
|
{
|
|
8245
8356
|
ref,
|
|
@@ -8248,7 +8359,7 @@ var IconRail = React45.forwardRef(
|
|
|
8248
8359
|
isExpanded && !overlayRail ? "w-[var(--rail-expanded-width)]" : "w-[var(--rail-width)]"
|
|
8249
8360
|
),
|
|
8250
8361
|
...props,
|
|
8251
|
-
children: /* @__PURE__ */
|
|
8362
|
+
children: /* @__PURE__ */ jsx46(
|
|
8252
8363
|
"div",
|
|
8253
8364
|
{
|
|
8254
8365
|
className: cn(
|
|
@@ -8265,9 +8376,9 @@ var IconRail = React45.forwardRef(
|
|
|
8265
8376
|
}
|
|
8266
8377
|
);
|
|
8267
8378
|
IconRail.displayName = "IconRail";
|
|
8268
|
-
var IconRailHeader =
|
|
8379
|
+
var IconRailHeader = React46.forwardRef(
|
|
8269
8380
|
({ className, children, ...props }, ref) => {
|
|
8270
|
-
return /* @__PURE__ */
|
|
8381
|
+
return /* @__PURE__ */ jsx46(
|
|
8271
8382
|
"div",
|
|
8272
8383
|
{
|
|
8273
8384
|
ref,
|
|
@@ -8282,9 +8393,9 @@ var IconRailHeader = React45.forwardRef(
|
|
|
8282
8393
|
}
|
|
8283
8394
|
);
|
|
8284
8395
|
IconRailHeader.displayName = "IconRailHeader";
|
|
8285
|
-
var IconRailContent =
|
|
8396
|
+
var IconRailContent = React46.forwardRef(
|
|
8286
8397
|
({ className, children, ...props }, ref) => {
|
|
8287
|
-
return /* @__PURE__ */
|
|
8398
|
+
return /* @__PURE__ */ jsx46(
|
|
8288
8399
|
"div",
|
|
8289
8400
|
{
|
|
8290
8401
|
ref,
|
|
@@ -8296,9 +8407,9 @@ var IconRailContent = React45.forwardRef(
|
|
|
8296
8407
|
}
|
|
8297
8408
|
);
|
|
8298
8409
|
IconRailContent.displayName = "IconRailContent";
|
|
8299
|
-
var IconRailFooter =
|
|
8410
|
+
var IconRailFooter = React46.forwardRef(
|
|
8300
8411
|
({ className, children, ...props }, ref) => {
|
|
8301
|
-
return /* @__PURE__ */
|
|
8412
|
+
return /* @__PURE__ */ jsx46(
|
|
8302
8413
|
"div",
|
|
8303
8414
|
{
|
|
8304
8415
|
ref,
|
|
@@ -8313,7 +8424,7 @@ var IconRailFooter = React45.forwardRef(
|
|
|
8313
8424
|
}
|
|
8314
8425
|
);
|
|
8315
8426
|
IconRailFooter.displayName = "IconRailFooter";
|
|
8316
|
-
var IconRailItem =
|
|
8427
|
+
var IconRailItem = React46.forwardRef(
|
|
8317
8428
|
({ className, railId, icon, label, asButton = false, toggleRail = false, onClick, ...props }, ref) => {
|
|
8318
8429
|
const {
|
|
8319
8430
|
activeRail,
|
|
@@ -8358,14 +8469,14 @@ var IconRailItem = React45.forwardRef(
|
|
|
8358
8469
|
...props,
|
|
8359
8470
|
children: [
|
|
8360
8471
|
icon,
|
|
8361
|
-
isRailExpanded && label && /* @__PURE__ */
|
|
8472
|
+
isRailExpanded && label && /* @__PURE__ */ jsx46("span", { className: "text-sm font-medium truncate", children: label })
|
|
8362
8473
|
]
|
|
8363
8474
|
}
|
|
8364
8475
|
);
|
|
8365
8476
|
}
|
|
8366
8477
|
);
|
|
8367
8478
|
IconRailItem.displayName = "IconRailItem";
|
|
8368
|
-
var RailPanel =
|
|
8479
|
+
var RailPanel = React46.forwardRef(
|
|
8369
8480
|
({ className, railId, title, children, ...props }, ref) => {
|
|
8370
8481
|
const { activeRail, setActiveRail, hoverExpand } = useSidebarRail();
|
|
8371
8482
|
const isVisible = activeRail === railId;
|
|
@@ -8389,8 +8500,8 @@ var RailPanel = React45.forwardRef(
|
|
|
8389
8500
|
...props,
|
|
8390
8501
|
children: [
|
|
8391
8502
|
title && /* @__PURE__ */ jsxs31("div", { className: "flex items-center justify-between h-14 px-4 border-b border-border shrink-0", children: [
|
|
8392
|
-
/* @__PURE__ */
|
|
8393
|
-
/* @__PURE__ */
|
|
8503
|
+
/* @__PURE__ */ jsx46("span", { className: "font-semibold text-sm", children: title }),
|
|
8504
|
+
/* @__PURE__ */ jsx46(
|
|
8394
8505
|
"button",
|
|
8395
8506
|
{
|
|
8396
8507
|
type: "button",
|
|
@@ -8409,36 +8520,36 @@ var RailPanel = React45.forwardRef(
|
|
|
8409
8520
|
strokeLinecap: "round",
|
|
8410
8521
|
strokeLinejoin: "round",
|
|
8411
8522
|
children: [
|
|
8412
|
-
/* @__PURE__ */
|
|
8413
|
-
/* @__PURE__ */
|
|
8523
|
+
/* @__PURE__ */ jsx46("path", { d: "M18 6 6 18" }),
|
|
8524
|
+
/* @__PURE__ */ jsx46("path", { d: "m6 6 12 12" })
|
|
8414
8525
|
]
|
|
8415
8526
|
}
|
|
8416
8527
|
)
|
|
8417
8528
|
}
|
|
8418
8529
|
)
|
|
8419
8530
|
] }),
|
|
8420
|
-
/* @__PURE__ */
|
|
8531
|
+
/* @__PURE__ */ jsx46("div", { className: "flex-1 overflow-y-auto", children })
|
|
8421
8532
|
]
|
|
8422
8533
|
}
|
|
8423
8534
|
);
|
|
8424
8535
|
}
|
|
8425
8536
|
);
|
|
8426
8537
|
RailPanel.displayName = "RailPanel";
|
|
8427
|
-
var RailPanelGroup =
|
|
8538
|
+
var RailPanelGroup = React46.forwardRef(
|
|
8428
8539
|
({ className, label, children, ...props }, ref) => {
|
|
8429
8540
|
return /* @__PURE__ */ jsxs31("div", { ref, className: cn("px-2 py-2", className), ...props, children: [
|
|
8430
|
-
label && /* @__PURE__ */
|
|
8431
|
-
/* @__PURE__ */
|
|
8541
|
+
label && /* @__PURE__ */ jsx46("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider", children: label }),
|
|
8542
|
+
/* @__PURE__ */ jsx46("div", { className: "space-y-1", children })
|
|
8432
8543
|
] });
|
|
8433
8544
|
}
|
|
8434
8545
|
);
|
|
8435
8546
|
RailPanelGroup.displayName = "RailPanelGroup";
|
|
8436
|
-
var RailPanelItem =
|
|
8547
|
+
var RailPanelItem = React46.forwardRef(
|
|
8437
8548
|
({ className, icon, active, disabled, badge, href, children, onClick, ...props }, ref) => {
|
|
8438
8549
|
const content = /* @__PURE__ */ jsxs31(Fragment8, { children: [
|
|
8439
|
-
icon && /* @__PURE__ */
|
|
8440
|
-
/* @__PURE__ */
|
|
8441
|
-
badge && /* @__PURE__ */
|
|
8550
|
+
icon && /* @__PURE__ */ jsx46("span", { className: "shrink-0", children: icon }),
|
|
8551
|
+
/* @__PURE__ */ jsx46("span", { className: "flex-1 truncate", children }),
|
|
8552
|
+
badge && /* @__PURE__ */ jsx46("span", { className: "shrink-0", children: badge })
|
|
8442
8553
|
] });
|
|
8443
8554
|
const itemClasses = cn(
|
|
8444
8555
|
"flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-colors cursor-pointer",
|
|
@@ -8447,9 +8558,9 @@ var RailPanelItem = React45.forwardRef(
|
|
|
8447
8558
|
className
|
|
8448
8559
|
);
|
|
8449
8560
|
if (href) {
|
|
8450
|
-
return /* @__PURE__ */
|
|
8561
|
+
return /* @__PURE__ */ jsx46("div", { ref, ...props, children: /* @__PURE__ */ jsx46("a", { href, className: itemClasses, children: content }) });
|
|
8451
8562
|
}
|
|
8452
|
-
return /* @__PURE__ */
|
|
8563
|
+
return /* @__PURE__ */ jsx46(
|
|
8453
8564
|
"div",
|
|
8454
8565
|
{
|
|
8455
8566
|
ref,
|
|
@@ -8466,34 +8577,34 @@ var RailPanelItem = React45.forwardRef(
|
|
|
8466
8577
|
RailPanelItem.displayName = "RailPanelItem";
|
|
8467
8578
|
|
|
8468
8579
|
// src/playground.tsx
|
|
8469
|
-
import * as
|
|
8470
|
-
import { jsx as
|
|
8580
|
+
import * as React47 from "react";
|
|
8581
|
+
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
8471
8582
|
var Section = ({ title, children }) => /* @__PURE__ */ jsxs32("div", { className: "mb-8", children: [
|
|
8472
|
-
/* @__PURE__ */
|
|
8473
|
-
/* @__PURE__ */
|
|
8583
|
+
/* @__PURE__ */ jsx47("h2", { className: "text-xl font-semibold mb-4 text-foreground", children: title }),
|
|
8584
|
+
/* @__PURE__ */ jsx47("div", { className: "p-4 border border-border rounded-lg bg-background", children })
|
|
8474
8585
|
] });
|
|
8475
8586
|
var ThemeToggle = () => {
|
|
8476
8587
|
const { theme, setTheme } = useTheme();
|
|
8477
8588
|
return /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2", children: [
|
|
8478
|
-
/* @__PURE__ */
|
|
8589
|
+
/* @__PURE__ */ jsx47(Label, { children: "Theme:" }),
|
|
8479
8590
|
/* @__PURE__ */ jsxs32(SelectNamespace, { value: theme, onValueChange: (value) => setTheme(value), children: [
|
|
8480
|
-
/* @__PURE__ */
|
|
8591
|
+
/* @__PURE__ */ jsx47(SelectTrigger, { className: "w-32", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Select theme" }) }),
|
|
8481
8592
|
/* @__PURE__ */ jsxs32(SelectContent, { children: [
|
|
8482
|
-
/* @__PURE__ */
|
|
8483
|
-
/* @__PURE__ */
|
|
8484
|
-
/* @__PURE__ */
|
|
8593
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "light", children: "Light" }),
|
|
8594
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "dark", children: "Dark" }),
|
|
8595
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "system", children: "System" })
|
|
8485
8596
|
] })
|
|
8486
8597
|
] })
|
|
8487
8598
|
] });
|
|
8488
8599
|
};
|
|
8489
8600
|
var PlaygroundContent = () => {
|
|
8490
|
-
const [dialogOpen, setDialogOpen] =
|
|
8491
|
-
const [checkboxChecked, setCheckboxChecked] =
|
|
8492
|
-
const [switchChecked, setSwitchChecked] =
|
|
8493
|
-
const [inputValue, setInputValue] =
|
|
8494
|
-
const [textareaValue, setTextareaValue] =
|
|
8495
|
-
const [selectValue, setSelectValue] =
|
|
8496
|
-
const [comboboxValue, setComboboxValue] =
|
|
8601
|
+
const [dialogOpen, setDialogOpen] = React47.useState(false);
|
|
8602
|
+
const [checkboxChecked, setCheckboxChecked] = React47.useState(false);
|
|
8603
|
+
const [switchChecked, setSwitchChecked] = React47.useState(false);
|
|
8604
|
+
const [inputValue, setInputValue] = React47.useState("");
|
|
8605
|
+
const [textareaValue, setTextareaValue] = React47.useState("");
|
|
8606
|
+
const [selectValue, setSelectValue] = React47.useState("");
|
|
8607
|
+
const [comboboxValue, setComboboxValue] = React47.useState(null);
|
|
8497
8608
|
const comboboxOptions = [
|
|
8498
8609
|
{ value: "react", label: "React" },
|
|
8499
8610
|
{ value: "vue", label: "Vue" },
|
|
@@ -8501,35 +8612,35 @@ var PlaygroundContent = () => {
|
|
|
8501
8612
|
{ value: "svelte", label: "Svelte" },
|
|
8502
8613
|
{ value: "solid", label: "SolidJS" }
|
|
8503
8614
|
];
|
|
8504
|
-
return /* @__PURE__ */
|
|
8615
|
+
return /* @__PURE__ */ jsx47("div", { className: "min-h-screen bg-background p-8", children: /* @__PURE__ */ jsxs32("div", { className: "max-w-4xl mx-auto", children: [
|
|
8505
8616
|
/* @__PURE__ */ jsxs32("div", { className: "flex items-center justify-between mb-8", children: [
|
|
8506
|
-
/* @__PURE__ */
|
|
8507
|
-
/* @__PURE__ */
|
|
8617
|
+
/* @__PURE__ */ jsx47("h1", { className: "text-3xl font-bold text-foreground", children: "@onesaz/ui Playground" }),
|
|
8618
|
+
/* @__PURE__ */ jsx47(ThemeToggle, {})
|
|
8508
8619
|
] }),
|
|
8509
8620
|
/* @__PURE__ */ jsxs32(Section, { title: "Button", children: [
|
|
8510
8621
|
/* @__PURE__ */ jsxs32("div", { className: "flex flex-wrap gap-4", children: [
|
|
8511
|
-
/* @__PURE__ */
|
|
8512
|
-
/* @__PURE__ */
|
|
8513
|
-
/* @__PURE__ */
|
|
8514
|
-
/* @__PURE__ */
|
|
8515
|
-
/* @__PURE__ */
|
|
8516
|
-
/* @__PURE__ */
|
|
8622
|
+
/* @__PURE__ */ jsx47(Button, { variant: "default", children: "Default" }),
|
|
8623
|
+
/* @__PURE__ */ jsx47(Button, { variant: "destructive", children: "Destructive" }),
|
|
8624
|
+
/* @__PURE__ */ jsx47(Button, { variant: "outline", children: "Outline" }),
|
|
8625
|
+
/* @__PURE__ */ jsx47(Button, { variant: "secondary", children: "Secondary" }),
|
|
8626
|
+
/* @__PURE__ */ jsx47(Button, { variant: "ghost", children: "Ghost" }),
|
|
8627
|
+
/* @__PURE__ */ jsx47(Button, { variant: "link", children: "Link" })
|
|
8517
8628
|
] }),
|
|
8518
8629
|
/* @__PURE__ */ jsxs32("div", { className: "flex flex-wrap gap-4 mt-4", children: [
|
|
8519
|
-
/* @__PURE__ */
|
|
8520
|
-
/* @__PURE__ */
|
|
8521
|
-
/* @__PURE__ */
|
|
8522
|
-
/* @__PURE__ */
|
|
8630
|
+
/* @__PURE__ */ jsx47(Button, { size: "sm", children: "Small" }),
|
|
8631
|
+
/* @__PURE__ */ jsx47(Button, { size: "default", children: "Default" }),
|
|
8632
|
+
/* @__PURE__ */ jsx47(Button, { size: "lg", children: "Large" }),
|
|
8633
|
+
/* @__PURE__ */ jsx47(Button, { size: "icon", children: "\u{1F514}" })
|
|
8523
8634
|
] }),
|
|
8524
8635
|
/* @__PURE__ */ jsxs32("div", { className: "flex flex-wrap gap-4 mt-4", children: [
|
|
8525
|
-
/* @__PURE__ */
|
|
8526
|
-
/* @__PURE__ */
|
|
8636
|
+
/* @__PURE__ */ jsx47(Button, { disabled: true, children: "Disabled" }),
|
|
8637
|
+
/* @__PURE__ */ jsx47(Button, { variant: "outline", disabled: true, children: "Disabled Outline" })
|
|
8527
8638
|
] })
|
|
8528
8639
|
] }),
|
|
8529
|
-
/* @__PURE__ */
|
|
8640
|
+
/* @__PURE__ */ jsx47(Section, { title: "Input", children: /* @__PURE__ */ jsxs32("div", { className: "space-y-4 max-w-md", children: [
|
|
8530
8641
|
/* @__PURE__ */ jsxs32("div", { children: [
|
|
8531
|
-
/* @__PURE__ */
|
|
8532
|
-
/* @__PURE__ */
|
|
8642
|
+
/* @__PURE__ */ jsx47(Label, { htmlFor: "input-default", children: "Default Input" }),
|
|
8643
|
+
/* @__PURE__ */ jsx47(
|
|
8533
8644
|
Input,
|
|
8534
8645
|
{
|
|
8535
8646
|
id: "input-default",
|
|
@@ -8540,18 +8651,18 @@ var PlaygroundContent = () => {
|
|
|
8540
8651
|
)
|
|
8541
8652
|
] }),
|
|
8542
8653
|
/* @__PURE__ */ jsxs32("div", { children: [
|
|
8543
|
-
/* @__PURE__ */
|
|
8544
|
-
/* @__PURE__ */
|
|
8654
|
+
/* @__PURE__ */ jsx47(Label, { htmlFor: "input-disabled", children: "Disabled Input" }),
|
|
8655
|
+
/* @__PURE__ */ jsx47(Input, { id: "input-disabled", placeholder: "Disabled...", disabled: true })
|
|
8545
8656
|
] }),
|
|
8546
8657
|
/* @__PURE__ */ jsxs32("div", { children: [
|
|
8547
|
-
/* @__PURE__ */
|
|
8548
|
-
/* @__PURE__ */
|
|
8658
|
+
/* @__PURE__ */ jsx47(Label, { htmlFor: "input-type", children: "Email Input" }),
|
|
8659
|
+
/* @__PURE__ */ jsx47(Input, { id: "input-type", type: "email", placeholder: "email@example.com" })
|
|
8549
8660
|
] })
|
|
8550
8661
|
] }) }),
|
|
8551
|
-
/* @__PURE__ */
|
|
8662
|
+
/* @__PURE__ */ jsx47(Section, { title: "Textarea", children: /* @__PURE__ */ jsxs32("div", { className: "space-y-4 max-w-md", children: [
|
|
8552
8663
|
/* @__PURE__ */ jsxs32("div", { children: [
|
|
8553
|
-
/* @__PURE__ */
|
|
8554
|
-
/* @__PURE__ */
|
|
8664
|
+
/* @__PURE__ */ jsx47(Label, { htmlFor: "textarea-default", children: "Default Textarea" }),
|
|
8665
|
+
/* @__PURE__ */ jsx47(
|
|
8555
8666
|
Textarea,
|
|
8556
8667
|
{
|
|
8557
8668
|
id: "textarea-default",
|
|
@@ -8562,51 +8673,51 @@ var PlaygroundContent = () => {
|
|
|
8562
8673
|
)
|
|
8563
8674
|
] }),
|
|
8564
8675
|
/* @__PURE__ */ jsxs32("div", { children: [
|
|
8565
|
-
/* @__PURE__ */
|
|
8566
|
-
/* @__PURE__ */
|
|
8676
|
+
/* @__PURE__ */ jsx47(Label, { htmlFor: "textarea-disabled", children: "Disabled Textarea" }),
|
|
8677
|
+
/* @__PURE__ */ jsx47(Textarea, { id: "textarea-disabled", placeholder: "Disabled...", disabled: true })
|
|
8567
8678
|
] })
|
|
8568
8679
|
] }) }),
|
|
8569
|
-
/* @__PURE__ */
|
|
8680
|
+
/* @__PURE__ */ jsx47(Section, { title: "Select", children: /* @__PURE__ */ jsxs32("div", { className: "space-y-4 max-w-md", children: [
|
|
8570
8681
|
/* @__PURE__ */ jsxs32("div", { children: [
|
|
8571
|
-
/* @__PURE__ */
|
|
8682
|
+
/* @__PURE__ */ jsx47(Label, { children: "Default Select" }),
|
|
8572
8683
|
/* @__PURE__ */ jsxs32(SelectNamespace, { value: selectValue, onValueChange: setSelectValue, children: [
|
|
8573
|
-
/* @__PURE__ */
|
|
8684
|
+
/* @__PURE__ */ jsx47(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Select an option..." }) }),
|
|
8574
8685
|
/* @__PURE__ */ jsxs32(SelectContent, { children: [
|
|
8575
|
-
/* @__PURE__ */
|
|
8576
|
-
/* @__PURE__ */
|
|
8577
|
-
/* @__PURE__ */
|
|
8686
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "option1", children: "Option 1" }),
|
|
8687
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "option2", children: "Option 2" }),
|
|
8688
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "option3", children: "Option 3" })
|
|
8578
8689
|
] })
|
|
8579
8690
|
] })
|
|
8580
8691
|
] }),
|
|
8581
8692
|
/* @__PURE__ */ jsxs32("div", { children: [
|
|
8582
|
-
/* @__PURE__ */
|
|
8693
|
+
/* @__PURE__ */ jsx47(Label, { children: "Grouped Select" }),
|
|
8583
8694
|
/* @__PURE__ */ jsxs32(SelectNamespace, { children: [
|
|
8584
|
-
/* @__PURE__ */
|
|
8695
|
+
/* @__PURE__ */ jsx47(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Select a food..." }) }),
|
|
8585
8696
|
/* @__PURE__ */ jsxs32(SelectContent, { children: [
|
|
8586
8697
|
/* @__PURE__ */ jsxs32(SelectGroup, { children: [
|
|
8587
|
-
/* @__PURE__ */
|
|
8588
|
-
/* @__PURE__ */
|
|
8589
|
-
/* @__PURE__ */
|
|
8698
|
+
/* @__PURE__ */ jsx47(SelectLabel, { children: "Fruits" }),
|
|
8699
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "apple", children: "Apple" }),
|
|
8700
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "banana", children: "Banana" })
|
|
8590
8701
|
] }),
|
|
8591
8702
|
/* @__PURE__ */ jsxs32(SelectGroup, { children: [
|
|
8592
|
-
/* @__PURE__ */
|
|
8593
|
-
/* @__PURE__ */
|
|
8594
|
-
/* @__PURE__ */
|
|
8703
|
+
/* @__PURE__ */ jsx47(SelectLabel, { children: "Vegetables" }),
|
|
8704
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "carrot", children: "Carrot" }),
|
|
8705
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "potato", children: "Potato" })
|
|
8595
8706
|
] })
|
|
8596
8707
|
] })
|
|
8597
8708
|
] })
|
|
8598
8709
|
] }),
|
|
8599
8710
|
/* @__PURE__ */ jsxs32("div", { children: [
|
|
8600
|
-
/* @__PURE__ */
|
|
8711
|
+
/* @__PURE__ */ jsx47(Label, { children: "Disabled Select" }),
|
|
8601
8712
|
/* @__PURE__ */ jsxs32(SelectNamespace, { disabled: true, children: [
|
|
8602
|
-
/* @__PURE__ */
|
|
8603
|
-
/* @__PURE__ */
|
|
8713
|
+
/* @__PURE__ */ jsx47(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Disabled..." }) }),
|
|
8714
|
+
/* @__PURE__ */ jsx47(SelectContent, { children: /* @__PURE__ */ jsx47(SelectItem, { value: "none", children: "None" }) })
|
|
8604
8715
|
] })
|
|
8605
8716
|
] })
|
|
8606
8717
|
] }) }),
|
|
8607
|
-
/* @__PURE__ */
|
|
8608
|
-
/* @__PURE__ */
|
|
8609
|
-
/* @__PURE__ */
|
|
8718
|
+
/* @__PURE__ */ jsx47(Section, { title: "Combobox (Searchable Select)", children: /* @__PURE__ */ jsx47("div", { className: "space-y-4 max-w-md", children: /* @__PURE__ */ jsxs32("div", { children: [
|
|
8719
|
+
/* @__PURE__ */ jsx47(Label, { children: "Framework" }),
|
|
8720
|
+
/* @__PURE__ */ jsx47(
|
|
8610
8721
|
Combobox,
|
|
8611
8722
|
{
|
|
8612
8723
|
options: comboboxOptions,
|
|
@@ -8618,9 +8729,9 @@ var PlaygroundContent = () => {
|
|
|
8618
8729
|
}
|
|
8619
8730
|
)
|
|
8620
8731
|
] }) }) }),
|
|
8621
|
-
/* @__PURE__ */
|
|
8732
|
+
/* @__PURE__ */ jsx47(Section, { title: "Checkbox & Switch", children: /* @__PURE__ */ jsxs32("div", { className: "space-y-4", children: [
|
|
8622
8733
|
/* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2", children: [
|
|
8623
|
-
/* @__PURE__ */
|
|
8734
|
+
/* @__PURE__ */ jsx47(
|
|
8624
8735
|
Checkbox,
|
|
8625
8736
|
{
|
|
8626
8737
|
id: "checkbox",
|
|
@@ -8628,15 +8739,15 @@ var PlaygroundContent = () => {
|
|
|
8628
8739
|
onChange: (e) => setCheckboxChecked(e.target.checked)
|
|
8629
8740
|
}
|
|
8630
8741
|
),
|
|
8631
|
-
/* @__PURE__ */
|
|
8742
|
+
/* @__PURE__ */ jsx47(Label, { htmlFor: "checkbox", children: "Accept terms and conditions" })
|
|
8632
8743
|
] }),
|
|
8633
8744
|
/* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2", children: [
|
|
8634
|
-
/* @__PURE__ */
|
|
8635
|
-
/* @__PURE__ */
|
|
8745
|
+
/* @__PURE__ */ jsx47(Checkbox, { id: "checkbox-disabled", disabled: true }),
|
|
8746
|
+
/* @__PURE__ */ jsx47(Label, { htmlFor: "checkbox-disabled", children: "Disabled checkbox" })
|
|
8636
8747
|
] }),
|
|
8637
|
-
/* @__PURE__ */
|
|
8748
|
+
/* @__PURE__ */ jsx47(Separator, {}),
|
|
8638
8749
|
/* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2", children: [
|
|
8639
|
-
/* @__PURE__ */
|
|
8750
|
+
/* @__PURE__ */ jsx47(
|
|
8640
8751
|
Switch,
|
|
8641
8752
|
{
|
|
8642
8753
|
id: "switch",
|
|
@@ -8644,160 +8755,160 @@ var PlaygroundContent = () => {
|
|
|
8644
8755
|
onChange: (e) => setSwitchChecked(e.target.checked)
|
|
8645
8756
|
}
|
|
8646
8757
|
),
|
|
8647
|
-
/* @__PURE__ */
|
|
8758
|
+
/* @__PURE__ */ jsx47(Label, { htmlFor: "switch", children: "Enable notifications" })
|
|
8648
8759
|
] }),
|
|
8649
8760
|
/* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2", children: [
|
|
8650
|
-
/* @__PURE__ */
|
|
8651
|
-
/* @__PURE__ */
|
|
8761
|
+
/* @__PURE__ */ jsx47(Switch, { id: "switch-disabled", disabled: true }),
|
|
8762
|
+
/* @__PURE__ */ jsx47(Label, { htmlFor: "switch-disabled", children: "Disabled switch" })
|
|
8652
8763
|
] })
|
|
8653
8764
|
] }) }),
|
|
8654
|
-
/* @__PURE__ */
|
|
8655
|
-
/* @__PURE__ */
|
|
8656
|
-
/* @__PURE__ */
|
|
8657
|
-
/* @__PURE__ */
|
|
8658
|
-
/* @__PURE__ */
|
|
8765
|
+
/* @__PURE__ */ jsx47(Section, { title: "Badge", children: /* @__PURE__ */ jsxs32("div", { className: "flex flex-wrap gap-4", children: [
|
|
8766
|
+
/* @__PURE__ */ jsx47(Badge, { children: "Default" }),
|
|
8767
|
+
/* @__PURE__ */ jsx47(Badge, { variant: "secondary", children: "Secondary" }),
|
|
8768
|
+
/* @__PURE__ */ jsx47(Badge, { variant: "destructive", children: "Destructive" }),
|
|
8769
|
+
/* @__PURE__ */ jsx47(Badge, { variant: "outline", children: "Outline" })
|
|
8659
8770
|
] }) }),
|
|
8660
|
-
/* @__PURE__ */
|
|
8771
|
+
/* @__PURE__ */ jsx47(Section, { title: "Card", children: /* @__PURE__ */ jsxs32("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
8661
8772
|
/* @__PURE__ */ jsxs32(Card, { children: [
|
|
8662
8773
|
/* @__PURE__ */ jsxs32(CardHeader, { children: [
|
|
8663
|
-
/* @__PURE__ */
|
|
8664
|
-
/* @__PURE__ */
|
|
8774
|
+
/* @__PURE__ */ jsx47(CardTitle, { children: "Card Title" }),
|
|
8775
|
+
/* @__PURE__ */ jsx47(CardDescription, { children: "Card description goes here" })
|
|
8665
8776
|
] }),
|
|
8666
|
-
/* @__PURE__ */
|
|
8777
|
+
/* @__PURE__ */ jsx47(CardContent, { children: /* @__PURE__ */ jsx47("p", { className: "text-foreground", children: "This is the card content area." }) }),
|
|
8667
8778
|
/* @__PURE__ */ jsxs32(CardFooter, { children: [
|
|
8668
|
-
/* @__PURE__ */
|
|
8669
|
-
/* @__PURE__ */
|
|
8779
|
+
/* @__PURE__ */ jsx47(Button, { variant: "outline", className: "mr-2", children: "Cancel" }),
|
|
8780
|
+
/* @__PURE__ */ jsx47(Button, { children: "Submit" })
|
|
8670
8781
|
] })
|
|
8671
8782
|
] }),
|
|
8672
8783
|
/* @__PURE__ */ jsxs32(Card, { children: [
|
|
8673
8784
|
/* @__PURE__ */ jsxs32(CardHeader, { children: [
|
|
8674
|
-
/* @__PURE__ */
|
|
8675
|
-
/* @__PURE__ */
|
|
8785
|
+
/* @__PURE__ */ jsx47(CardTitle, { children: "Another Card" }),
|
|
8786
|
+
/* @__PURE__ */ jsx47(CardDescription, { children: "With different content" })
|
|
8676
8787
|
] }),
|
|
8677
|
-
/* @__PURE__ */
|
|
8678
|
-
/* @__PURE__ */
|
|
8679
|
-
/* @__PURE__ */
|
|
8788
|
+
/* @__PURE__ */ jsx47(CardContent, { children: /* @__PURE__ */ jsxs32("div", { className: "space-y-2", children: [
|
|
8789
|
+
/* @__PURE__ */ jsx47(Label, { htmlFor: "card-input", children: "Name" }),
|
|
8790
|
+
/* @__PURE__ */ jsx47(Input, { id: "card-input", placeholder: "Enter name..." })
|
|
8680
8791
|
] }) }),
|
|
8681
|
-
/* @__PURE__ */
|
|
8792
|
+
/* @__PURE__ */ jsx47(CardFooter, { children: /* @__PURE__ */ jsx47(Button, { className: "w-full", children: "Save" }) })
|
|
8682
8793
|
] })
|
|
8683
8794
|
] }) }),
|
|
8684
8795
|
/* @__PURE__ */ jsxs32(Section, { title: "Dialog", children: [
|
|
8685
|
-
/* @__PURE__ */
|
|
8686
|
-
/* @__PURE__ */
|
|
8796
|
+
/* @__PURE__ */ jsx47(Button, { onClick: () => setDialogOpen(true), children: "Open Dialog" }),
|
|
8797
|
+
/* @__PURE__ */ jsx47(DialogNamespace, { open: dialogOpen, onOpenChange: setDialogOpen, children: /* @__PURE__ */ jsxs32(DialogContent, { children: [
|
|
8687
8798
|
/* @__PURE__ */ jsxs32(DialogHeader, { children: [
|
|
8688
|
-
/* @__PURE__ */
|
|
8689
|
-
/* @__PURE__ */
|
|
8799
|
+
/* @__PURE__ */ jsx47(DialogTitle, { children: "Create New Zone" }),
|
|
8800
|
+
/* @__PURE__ */ jsx47(DialogDescription, { children: "Fill in the details below to create a new zone." })
|
|
8690
8801
|
] }),
|
|
8691
8802
|
/* @__PURE__ */ jsxs32("div", { className: "space-y-4 py-4", children: [
|
|
8692
8803
|
/* @__PURE__ */ jsxs32("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
8693
8804
|
/* @__PURE__ */ jsxs32("div", { children: [
|
|
8694
|
-
/* @__PURE__ */
|
|
8695
|
-
/* @__PURE__ */
|
|
8805
|
+
/* @__PURE__ */ jsx47(Label, { htmlFor: "zone-name", children: "Zone Name *" }),
|
|
8806
|
+
/* @__PURE__ */ jsx47(Input, { id: "zone-name", placeholder: "eg:hyderabad" })
|
|
8696
8807
|
] }),
|
|
8697
8808
|
/* @__PURE__ */ jsxs32("div", { children: [
|
|
8698
|
-
/* @__PURE__ */
|
|
8699
|
-
/* @__PURE__ */
|
|
8809
|
+
/* @__PURE__ */ jsx47(Label, { htmlFor: "zone-code", children: "Zone Code *" }),
|
|
8810
|
+
/* @__PURE__ */ jsx47(Input, { id: "zone-code", placeholder: "eg :hyd022" })
|
|
8700
8811
|
] })
|
|
8701
8812
|
] }),
|
|
8702
8813
|
/* @__PURE__ */ jsxs32("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
8703
8814
|
/* @__PURE__ */ jsxs32("div", { children: [
|
|
8704
|
-
/* @__PURE__ */
|
|
8815
|
+
/* @__PURE__ */ jsx47(Label, { children: "State *" }),
|
|
8705
8816
|
/* @__PURE__ */ jsxs32(SelectNamespace, { children: [
|
|
8706
|
-
/* @__PURE__ */
|
|
8817
|
+
/* @__PURE__ */ jsx47(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Select state" }) }),
|
|
8707
8818
|
/* @__PURE__ */ jsxs32(SelectContent, { children: [
|
|
8708
|
-
/* @__PURE__ */
|
|
8709
|
-
/* @__PURE__ */
|
|
8819
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "telangana", children: "TELANGANA" }),
|
|
8820
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "andhra", children: "ANDHRA PRADESH" })
|
|
8710
8821
|
] })
|
|
8711
8822
|
] })
|
|
8712
8823
|
] }),
|
|
8713
8824
|
/* @__PURE__ */ jsxs32("div", { children: [
|
|
8714
|
-
/* @__PURE__ */
|
|
8825
|
+
/* @__PURE__ */ jsx47(Label, { children: "District *" }),
|
|
8715
8826
|
/* @__PURE__ */ jsxs32(SelectNamespace, { children: [
|
|
8716
|
-
/* @__PURE__ */
|
|
8827
|
+
/* @__PURE__ */ jsx47(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Select District" }) }),
|
|
8717
8828
|
/* @__PURE__ */ jsxs32(SelectContent, { children: [
|
|
8718
|
-
/* @__PURE__ */
|
|
8719
|
-
/* @__PURE__ */
|
|
8829
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "hyderabad", children: "HYDERABAD" }),
|
|
8830
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "rangareddy", children: "RANGAREDDY" })
|
|
8720
8831
|
] })
|
|
8721
8832
|
] })
|
|
8722
8833
|
] })
|
|
8723
8834
|
] })
|
|
8724
8835
|
] }),
|
|
8725
8836
|
/* @__PURE__ */ jsxs32(DialogFooter, { children: [
|
|
8726
|
-
/* @__PURE__ */
|
|
8727
|
-
/* @__PURE__ */
|
|
8837
|
+
/* @__PURE__ */ jsx47(Button, { variant: "outline", onClick: () => setDialogOpen(false), children: "CANCEL" }),
|
|
8838
|
+
/* @__PURE__ */ jsx47(Button, { onClick: () => setDialogOpen(false), children: "Create" })
|
|
8728
8839
|
] })
|
|
8729
8840
|
] }) })
|
|
8730
8841
|
] }),
|
|
8731
|
-
/* @__PURE__ */
|
|
8732
|
-
/* @__PURE__ */
|
|
8733
|
-
/* @__PURE__ */
|
|
8734
|
-
/* @__PURE__ */
|
|
8735
|
-
/* @__PURE__ */
|
|
8736
|
-
/* @__PURE__ */
|
|
8737
|
-
/* @__PURE__ */
|
|
8842
|
+
/* @__PURE__ */ jsx47(Section, { title: "Table", children: /* @__PURE__ */ jsxs32(TableNamespace, { children: [
|
|
8843
|
+
/* @__PURE__ */ jsx47(TableCaption, { children: "A list of recent invoices" }),
|
|
8844
|
+
/* @__PURE__ */ jsx47(TableHeader, { children: /* @__PURE__ */ jsxs32(TableRow, { children: [
|
|
8845
|
+
/* @__PURE__ */ jsx47(TableHead, { children: "Invoice" }),
|
|
8846
|
+
/* @__PURE__ */ jsx47(TableHead, { children: "Status" }),
|
|
8847
|
+
/* @__PURE__ */ jsx47(TableHead, { children: "Method" }),
|
|
8848
|
+
/* @__PURE__ */ jsx47(TableHead, { className: "text-right", children: "Amount" })
|
|
8738
8849
|
] }) }),
|
|
8739
8850
|
/* @__PURE__ */ jsxs32(TableBody, { children: [
|
|
8740
8851
|
/* @__PURE__ */ jsxs32(TableRow, { children: [
|
|
8741
|
-
/* @__PURE__ */
|
|
8742
|
-
/* @__PURE__ */
|
|
8743
|
-
/* @__PURE__ */
|
|
8744
|
-
/* @__PURE__ */
|
|
8852
|
+
/* @__PURE__ */ jsx47(TableCell, { children: "INV001" }),
|
|
8853
|
+
/* @__PURE__ */ jsx47(TableCell, { children: /* @__PURE__ */ jsx47(Badge, { children: "Paid" }) }),
|
|
8854
|
+
/* @__PURE__ */ jsx47(TableCell, { children: "Credit Card" }),
|
|
8855
|
+
/* @__PURE__ */ jsx47(TableCell, { className: "text-right", children: "$250.00" })
|
|
8745
8856
|
] }),
|
|
8746
8857
|
/* @__PURE__ */ jsxs32(TableRow, { children: [
|
|
8747
|
-
/* @__PURE__ */
|
|
8748
|
-
/* @__PURE__ */
|
|
8749
|
-
/* @__PURE__ */
|
|
8750
|
-
/* @__PURE__ */
|
|
8858
|
+
/* @__PURE__ */ jsx47(TableCell, { children: "INV002" }),
|
|
8859
|
+
/* @__PURE__ */ jsx47(TableCell, { children: /* @__PURE__ */ jsx47(Badge, { variant: "secondary", children: "Pending" }) }),
|
|
8860
|
+
/* @__PURE__ */ jsx47(TableCell, { children: "PayPal" }),
|
|
8861
|
+
/* @__PURE__ */ jsx47(TableCell, { className: "text-right", children: "$150.00" })
|
|
8751
8862
|
] }),
|
|
8752
8863
|
/* @__PURE__ */ jsxs32(TableRow, { children: [
|
|
8753
|
-
/* @__PURE__ */
|
|
8754
|
-
/* @__PURE__ */
|
|
8755
|
-
/* @__PURE__ */
|
|
8756
|
-
/* @__PURE__ */
|
|
8864
|
+
/* @__PURE__ */ jsx47(TableCell, { children: "INV003" }),
|
|
8865
|
+
/* @__PURE__ */ jsx47(TableCell, { children: /* @__PURE__ */ jsx47(Badge, { variant: "destructive", children: "Failed" }) }),
|
|
8866
|
+
/* @__PURE__ */ jsx47(TableCell, { children: "Bank Transfer" }),
|
|
8867
|
+
/* @__PURE__ */ jsx47(TableCell, { className: "text-right", children: "$350.00" })
|
|
8757
8868
|
] })
|
|
8758
8869
|
] })
|
|
8759
8870
|
] }) }),
|
|
8760
|
-
/* @__PURE__ */
|
|
8761
|
-
/* @__PURE__ */
|
|
8762
|
-
/* @__PURE__ */
|
|
8763
|
-
/* @__PURE__ */
|
|
8764
|
-
/* @__PURE__ */
|
|
8765
|
-
/* @__PURE__ */
|
|
8766
|
-
/* @__PURE__ */
|
|
8871
|
+
/* @__PURE__ */ jsx47(Section, { title: "Pagination", children: /* @__PURE__ */ jsx47(PaginationNamespace, { children: /* @__PURE__ */ jsxs32(PaginationContent, { children: [
|
|
8872
|
+
/* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(PaginationPrevious, { onClick: () => console.log("Previous") }) }),
|
|
8873
|
+
/* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(PaginationLink, { isActive: true, children: "1" }) }),
|
|
8874
|
+
/* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(PaginationLink, { children: "2" }) }),
|
|
8875
|
+
/* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(PaginationLink, { children: "3" }) }),
|
|
8876
|
+
/* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(PaginationEllipsis, {}) }),
|
|
8877
|
+
/* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(PaginationNext, { onClick: () => console.log("Next") }) })
|
|
8767
8878
|
] }) }) }),
|
|
8768
|
-
/* @__PURE__ */
|
|
8879
|
+
/* @__PURE__ */ jsx47(Section, { title: "Spinner", children: /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-8", children: [
|
|
8769
8880
|
/* @__PURE__ */ jsxs32("div", { className: "text-center", children: [
|
|
8770
|
-
/* @__PURE__ */
|
|
8771
|
-
/* @__PURE__ */
|
|
8881
|
+
/* @__PURE__ */ jsx47(Spinner, { size: "sm" }),
|
|
8882
|
+
/* @__PURE__ */ jsx47("p", { className: "text-sm text-muted-foreground mt-2", children: "Small" })
|
|
8772
8883
|
] }),
|
|
8773
8884
|
/* @__PURE__ */ jsxs32("div", { className: "text-center", children: [
|
|
8774
|
-
/* @__PURE__ */
|
|
8775
|
-
/* @__PURE__ */
|
|
8885
|
+
/* @__PURE__ */ jsx47(Spinner, { size: "default" }),
|
|
8886
|
+
/* @__PURE__ */ jsx47("p", { className: "text-sm text-muted-foreground mt-2", children: "Default" })
|
|
8776
8887
|
] }),
|
|
8777
8888
|
/* @__PURE__ */ jsxs32("div", { className: "text-center", children: [
|
|
8778
|
-
/* @__PURE__ */
|
|
8779
|
-
/* @__PURE__ */
|
|
8889
|
+
/* @__PURE__ */ jsx47(Spinner, { size: "lg" }),
|
|
8890
|
+
/* @__PURE__ */ jsx47("p", { className: "text-sm text-muted-foreground mt-2", children: "Large" })
|
|
8780
8891
|
] })
|
|
8781
8892
|
] }) }),
|
|
8782
|
-
/* @__PURE__ */
|
|
8783
|
-
/* @__PURE__ */
|
|
8784
|
-
/* @__PURE__ */
|
|
8785
|
-
/* @__PURE__ */
|
|
8893
|
+
/* @__PURE__ */ jsx47(Section, { title: "Separator", children: /* @__PURE__ */ jsxs32("div", { className: "space-y-4", children: [
|
|
8894
|
+
/* @__PURE__ */ jsx47("p", { className: "text-foreground", children: "Content above separator" }),
|
|
8895
|
+
/* @__PURE__ */ jsx47(Separator, {}),
|
|
8896
|
+
/* @__PURE__ */ jsx47("p", { className: "text-foreground", children: "Content below separator" }),
|
|
8786
8897
|
/* @__PURE__ */ jsxs32("div", { className: "flex items-center h-10", children: [
|
|
8787
|
-
/* @__PURE__ */
|
|
8788
|
-
/* @__PURE__ */
|
|
8789
|
-
/* @__PURE__ */
|
|
8898
|
+
/* @__PURE__ */ jsx47("span", { className: "text-foreground", children: "Left" }),
|
|
8899
|
+
/* @__PURE__ */ jsx47(Separator, { orientation: "vertical", className: "mx-4" }),
|
|
8900
|
+
/* @__PURE__ */ jsx47("span", { className: "text-foreground", children: "Right" })
|
|
8790
8901
|
] })
|
|
8791
8902
|
] }) }),
|
|
8792
|
-
/* @__PURE__ */
|
|
8793
|
-
/* @__PURE__ */
|
|
8794
|
-
/* @__PURE__ */
|
|
8795
|
-
/* @__PURE__ */
|
|
8796
|
-
/* @__PURE__ */
|
|
8903
|
+
/* @__PURE__ */ jsx47(Section, { title: "Typography & Colors", children: /* @__PURE__ */ jsxs32("div", { className: "space-y-2", children: [
|
|
8904
|
+
/* @__PURE__ */ jsx47("p", { className: "text-foreground", children: "text-foreground - Primary text color" }),
|
|
8905
|
+
/* @__PURE__ */ jsx47("p", { className: "text-muted-foreground", children: "text-muted-foreground - Muted text color" }),
|
|
8906
|
+
/* @__PURE__ */ jsx47("p", { className: "text-accent", children: "text-accent - Accent color" }),
|
|
8907
|
+
/* @__PURE__ */ jsx47("p", { className: "text-destructive", children: "text-destructive - Destructive color" })
|
|
8797
8908
|
] }) })
|
|
8798
8909
|
] }) });
|
|
8799
8910
|
};
|
|
8800
|
-
var Playground = () => /* @__PURE__ */
|
|
8911
|
+
var Playground = () => /* @__PURE__ */ jsx47(ThemeProvider, { defaultTheme: "light", children: /* @__PURE__ */ jsx47(PlaygroundContent, {}) });
|
|
8801
8912
|
export {
|
|
8802
8913
|
Accordion,
|
|
8803
8914
|
AccordionContent,
|
|
@@ -8846,6 +8957,10 @@ export {
|
|
|
8846
8957
|
Combobox,
|
|
8847
8958
|
DataGrid,
|
|
8848
8959
|
DataGrid as DataGridV0,
|
|
8960
|
+
DataList,
|
|
8961
|
+
DataListItem,
|
|
8962
|
+
DataListLabel,
|
|
8963
|
+
DataListValue,
|
|
8849
8964
|
DialogNamespace as Dialog,
|
|
8850
8965
|
DialogClose,
|
|
8851
8966
|
DialogContent,
|