@trading-game/design-intelligence-layer 0.10.0 → 0.11.0
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/README.md +35 -1
- package/dist/index.cjs +317 -268
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +237 -190
- package/dist/index.js.map +1 -1
- package/guides/design-system-guide/trading-game-ds-guide.md +9 -3
- package/guides/rules/design-system-consuming-project.mdc +2 -1
- package/package.json +1 -1
- package/src/styles.css +2 -0
package/dist/index.cjs
CHANGED
|
@@ -264,6 +264,7 @@ __export(index_exports, {
|
|
|
264
264
|
NativeSelect: () => NativeSelect,
|
|
265
265
|
NativeSelectOptGroup: () => NativeSelectOptGroup,
|
|
266
266
|
NativeSelectOption: () => NativeSelectOption,
|
|
267
|
+
NavigationButton: () => NavigationButton,
|
|
267
268
|
NavigationMenu: () => NavigationMenu,
|
|
268
269
|
NavigationMenuContent: () => NavigationMenuContent,
|
|
269
270
|
NavigationMenuIndicator: () => NavigationMenuIndicator,
|
|
@@ -368,6 +369,7 @@ __export(index_exports, {
|
|
|
368
369
|
cn: () => cn,
|
|
369
370
|
inputVariants: () => inputVariants,
|
|
370
371
|
linkVariants: () => linkVariants,
|
|
372
|
+
navigationButtonVariants: () => navigationButtonVariants,
|
|
371
373
|
navigationMenuTriggerStyle: () => navigationMenuTriggerStyle,
|
|
372
374
|
tabsListVariants: () => tabsListVariants,
|
|
373
375
|
toggleVariants: () => toggleVariants,
|
|
@@ -4477,11 +4479,56 @@ function NativeSelectOptGroup(_a) {
|
|
|
4477
4479
|
);
|
|
4478
4480
|
}
|
|
4479
4481
|
|
|
4480
|
-
// components/ui/navigation-
|
|
4482
|
+
// components/ui/navigation-button.tsx
|
|
4481
4483
|
var import_class_variance_authority10 = require("class-variance-authority");
|
|
4482
|
-
var import_lucide_react14 = require("lucide-react");
|
|
4483
4484
|
var import_radix_ui21 = require("radix-ui");
|
|
4484
4485
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
4486
|
+
var navigationButtonVariants = (0, import_class_variance_authority10.cva)(
|
|
4487
|
+
"inline-flex shrink-0 items-center justify-center bg-transparent text-on-prominent hover:bg-secondary-hover transition-all duration-fast ease-standard outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 active:opacity-60 disabled:pointer-events-none disabled:opacity-24 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
4488
|
+
{
|
|
4489
|
+
variants: {
|
|
4490
|
+
size: {
|
|
4491
|
+
lg: "size-12 rounded-xs [&_svg:not([class*='size-'])]:size-6",
|
|
4492
|
+
md: "size-10 rounded-xs [&_svg:not([class*='size-'])]:size-5",
|
|
4493
|
+
sm: "size-8 rounded-xs [&_svg:not([class*='size-'])]:size-5",
|
|
4494
|
+
xs: "size-6 rounded-xs [&_svg:not([class*='size-'])]:size-4"
|
|
4495
|
+
}
|
|
4496
|
+
},
|
|
4497
|
+
defaultVariants: {
|
|
4498
|
+
size: "lg"
|
|
4499
|
+
}
|
|
4500
|
+
}
|
|
4501
|
+
);
|
|
4502
|
+
function NavigationButton(_a) {
|
|
4503
|
+
var _b = _a, {
|
|
4504
|
+
className,
|
|
4505
|
+
size = "lg",
|
|
4506
|
+
asChild = false,
|
|
4507
|
+
children
|
|
4508
|
+
} = _b, props = __objRest(_b, [
|
|
4509
|
+
"className",
|
|
4510
|
+
"size",
|
|
4511
|
+
"asChild",
|
|
4512
|
+
"children"
|
|
4513
|
+
]);
|
|
4514
|
+
const Comp = asChild ? import_radix_ui21.Slot.Root : "button";
|
|
4515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4516
|
+
Comp,
|
|
4517
|
+
__spreadProps(__spreadValues({
|
|
4518
|
+
"data-slot": "navigation-button",
|
|
4519
|
+
"data-size": size,
|
|
4520
|
+
className: cn(navigationButtonVariants({ size, className }))
|
|
4521
|
+
}, props), {
|
|
4522
|
+
children
|
|
4523
|
+
})
|
|
4524
|
+
);
|
|
4525
|
+
}
|
|
4526
|
+
|
|
4527
|
+
// components/ui/navigation-menu.tsx
|
|
4528
|
+
var import_class_variance_authority11 = require("class-variance-authority");
|
|
4529
|
+
var import_lucide_react14 = require("lucide-react");
|
|
4530
|
+
var import_radix_ui22 = require("radix-ui");
|
|
4531
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
4485
4532
|
function NavigationMenu(_a) {
|
|
4486
4533
|
var _b = _a, {
|
|
4487
4534
|
className,
|
|
@@ -4492,8 +4539,8 @@ function NavigationMenu(_a) {
|
|
|
4492
4539
|
"children",
|
|
4493
4540
|
"viewport"
|
|
4494
4541
|
]);
|
|
4495
|
-
return /* @__PURE__ */ (0,
|
|
4496
|
-
|
|
4542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
4543
|
+
import_radix_ui22.NavigationMenu.Root,
|
|
4497
4544
|
__spreadProps(__spreadValues({
|
|
4498
4545
|
"data-slot": "navigation-menu",
|
|
4499
4546
|
"data-viewport": viewport,
|
|
@@ -4504,7 +4551,7 @@ function NavigationMenu(_a) {
|
|
|
4504
4551
|
}, props), {
|
|
4505
4552
|
children: [
|
|
4506
4553
|
children,
|
|
4507
|
-
viewport && /* @__PURE__ */ (0,
|
|
4554
|
+
viewport && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(NavigationMenuViewport, {})
|
|
4508
4555
|
]
|
|
4509
4556
|
})
|
|
4510
4557
|
);
|
|
@@ -4515,8 +4562,8 @@ function NavigationMenuList(_a) {
|
|
|
4515
4562
|
} = _b, props = __objRest(_b, [
|
|
4516
4563
|
"className"
|
|
4517
4564
|
]);
|
|
4518
|
-
return /* @__PURE__ */ (0,
|
|
4519
|
-
|
|
4565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4566
|
+
import_radix_ui22.NavigationMenu.List,
|
|
4520
4567
|
__spreadValues({
|
|
4521
4568
|
"data-slot": "navigation-menu-list",
|
|
4522
4569
|
className: cn(
|
|
@@ -4532,15 +4579,15 @@ function NavigationMenuItem(_a) {
|
|
|
4532
4579
|
} = _b, props = __objRest(_b, [
|
|
4533
4580
|
"className"
|
|
4534
4581
|
]);
|
|
4535
|
-
return /* @__PURE__ */ (0,
|
|
4536
|
-
|
|
4582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4583
|
+
import_radix_ui22.NavigationMenu.Item,
|
|
4537
4584
|
__spreadValues({
|
|
4538
4585
|
"data-slot": "navigation-menu-item",
|
|
4539
4586
|
className: cn("relative", className)
|
|
4540
4587
|
}, props)
|
|
4541
4588
|
);
|
|
4542
4589
|
}
|
|
4543
|
-
var navigationMenuTriggerStyle = (0,
|
|
4590
|
+
var navigationMenuTriggerStyle = (0, import_class_variance_authority11.cva)(
|
|
4544
4591
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-prominent px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none hover:bg-secondary-hover hover:text-on-prominent focus:bg-secondary-hover focus:text-on-prominent focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-secondary-hover data-[state=open]:text-on-prominent data-[state=open]:hover:bg-secondary-hover data-[state=open]:focus:bg-secondary-hover"
|
|
4545
4592
|
);
|
|
4546
4593
|
function NavigationMenuTrigger(_a) {
|
|
@@ -4551,8 +4598,8 @@ function NavigationMenuTrigger(_a) {
|
|
|
4551
4598
|
"className",
|
|
4552
4599
|
"children"
|
|
4553
4600
|
]);
|
|
4554
|
-
return /* @__PURE__ */ (0,
|
|
4555
|
-
|
|
4601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
4602
|
+
import_radix_ui22.NavigationMenu.Trigger,
|
|
4556
4603
|
__spreadProps(__spreadValues({
|
|
4557
4604
|
"data-slot": "navigation-menu-trigger",
|
|
4558
4605
|
className: cn(navigationMenuTriggerStyle(), "group", className)
|
|
@@ -4560,7 +4607,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4560
4607
|
children: [
|
|
4561
4608
|
children,
|
|
4562
4609
|
" ",
|
|
4563
|
-
/* @__PURE__ */ (0,
|
|
4610
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4564
4611
|
import_lucide_react14.ChevronDownIcon,
|
|
4565
4612
|
{
|
|
4566
4613
|
className: "relative top-[1px] ml-1 size-3 transition duration-slow group-data-[state=open]:rotate-180",
|
|
@@ -4577,8 +4624,8 @@ function NavigationMenuContent(_a) {
|
|
|
4577
4624
|
} = _b, props = __objRest(_b, [
|
|
4578
4625
|
"className"
|
|
4579
4626
|
]);
|
|
4580
|
-
return /* @__PURE__ */ (0,
|
|
4581
|
-
|
|
4627
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4628
|
+
import_radix_ui22.NavigationMenu.Content,
|
|
4582
4629
|
__spreadValues({
|
|
4583
4630
|
"data-slot": "navigation-menu-content",
|
|
4584
4631
|
className: cn(
|
|
@@ -4595,14 +4642,14 @@ function NavigationMenuViewport(_a) {
|
|
|
4595
4642
|
} = _b, props = __objRest(_b, [
|
|
4596
4643
|
"className"
|
|
4597
4644
|
]);
|
|
4598
|
-
return /* @__PURE__ */ (0,
|
|
4645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4599
4646
|
"div",
|
|
4600
4647
|
{
|
|
4601
4648
|
className: cn(
|
|
4602
4649
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
4603
4650
|
),
|
|
4604
|
-
children: /* @__PURE__ */ (0,
|
|
4605
|
-
|
|
4651
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4652
|
+
import_radix_ui22.NavigationMenu.Viewport,
|
|
4606
4653
|
__spreadValues({
|
|
4607
4654
|
"data-slot": "navigation-menu-viewport",
|
|
4608
4655
|
className: cn(
|
|
@@ -4620,8 +4667,8 @@ function NavigationMenuLink(_a) {
|
|
|
4620
4667
|
} = _b, props = __objRest(_b, [
|
|
4621
4668
|
"className"
|
|
4622
4669
|
]);
|
|
4623
|
-
return /* @__PURE__ */ (0,
|
|
4624
|
-
|
|
4670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4671
|
+
import_radix_ui22.NavigationMenu.Link,
|
|
4625
4672
|
__spreadValues({
|
|
4626
4673
|
"data-slot": "navigation-menu-link",
|
|
4627
4674
|
className: cn(
|
|
@@ -4637,8 +4684,8 @@ function NavigationMenuIndicator(_a) {
|
|
|
4637
4684
|
} = _b, props = __objRest(_b, [
|
|
4638
4685
|
"className"
|
|
4639
4686
|
]);
|
|
4640
|
-
return /* @__PURE__ */ (0,
|
|
4641
|
-
|
|
4687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4688
|
+
import_radix_ui22.NavigationMenu.Indicator,
|
|
4642
4689
|
__spreadProps(__spreadValues({
|
|
4643
4690
|
"data-slot": "navigation-menu-indicator",
|
|
4644
4691
|
className: cn(
|
|
@@ -4646,17 +4693,17 @@ function NavigationMenuIndicator(_a) {
|
|
|
4646
4693
|
className
|
|
4647
4694
|
)
|
|
4648
4695
|
}, props), {
|
|
4649
|
-
children: /* @__PURE__ */ (0,
|
|
4696
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
4650
4697
|
})
|
|
4651
4698
|
);
|
|
4652
4699
|
}
|
|
4653
4700
|
|
|
4654
4701
|
// components/ui/pagination.tsx
|
|
4655
4702
|
var import_lucide_react15 = require("lucide-react");
|
|
4656
|
-
var
|
|
4703
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4657
4704
|
function Pagination(_a) {
|
|
4658
4705
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4659
|
-
return /* @__PURE__ */ (0,
|
|
4706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4660
4707
|
"nav",
|
|
4661
4708
|
__spreadValues({
|
|
4662
4709
|
role: "navigation",
|
|
@@ -4672,7 +4719,7 @@ function PaginationContent(_a) {
|
|
|
4672
4719
|
} = _b, props = __objRest(_b, [
|
|
4673
4720
|
"className"
|
|
4674
4721
|
]);
|
|
4675
|
-
return /* @__PURE__ */ (0,
|
|
4722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4676
4723
|
"ul",
|
|
4677
4724
|
__spreadValues({
|
|
4678
4725
|
"data-slot": "pagination-content",
|
|
@@ -4682,7 +4729,7 @@ function PaginationContent(_a) {
|
|
|
4682
4729
|
}
|
|
4683
4730
|
function PaginationItem(_a) {
|
|
4684
4731
|
var props = __objRest(_a, []);
|
|
4685
|
-
return /* @__PURE__ */ (0,
|
|
4732
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("li", __spreadValues({ "data-slot": "pagination-item" }, props));
|
|
4686
4733
|
}
|
|
4687
4734
|
function PaginationLink(_a) {
|
|
4688
4735
|
var _b = _a, {
|
|
@@ -4694,7 +4741,7 @@ function PaginationLink(_a) {
|
|
|
4694
4741
|
"isActive",
|
|
4695
4742
|
"size"
|
|
4696
4743
|
]);
|
|
4697
|
-
return /* @__PURE__ */ (0,
|
|
4744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4698
4745
|
"a",
|
|
4699
4746
|
__spreadValues({
|
|
4700
4747
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -4714,7 +4761,7 @@ function PaginationPrevious(_a) {
|
|
|
4714
4761
|
} = _b, props = __objRest(_b, [
|
|
4715
4762
|
"className"
|
|
4716
4763
|
]);
|
|
4717
|
-
return /* @__PURE__ */ (0,
|
|
4764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("a", __spreadProps(__spreadValues({ "aria-label": "Go to previous page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react15.ChevronLeftIcon, { className: "size-5" }) })) });
|
|
4718
4765
|
}
|
|
4719
4766
|
function PaginationNext(_a) {
|
|
4720
4767
|
var _b = _a, {
|
|
@@ -4722,7 +4769,7 @@ function PaginationNext(_a) {
|
|
|
4722
4769
|
} = _b, props = __objRest(_b, [
|
|
4723
4770
|
"className"
|
|
4724
4771
|
]);
|
|
4725
|
-
return /* @__PURE__ */ (0,
|
|
4772
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("a", __spreadProps(__spreadValues({ "aria-label": "Go to next page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react15.ChevronRightIcon, { className: "size-5" }) })) });
|
|
4726
4773
|
}
|
|
4727
4774
|
function PaginationEllipsis(_a) {
|
|
4728
4775
|
var _b = _a, {
|
|
@@ -4730,7 +4777,7 @@ function PaginationEllipsis(_a) {
|
|
|
4730
4777
|
} = _b, props = __objRest(_b, [
|
|
4731
4778
|
"className"
|
|
4732
4779
|
]);
|
|
4733
|
-
return /* @__PURE__ */ (0,
|
|
4780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4734
4781
|
"span",
|
|
4735
4782
|
__spreadProps(__spreadValues({
|
|
4736
4783
|
"aria-hidden": true,
|
|
@@ -4738,23 +4785,23 @@ function PaginationEllipsis(_a) {
|
|
|
4738
4785
|
className: cn("flex size-10 items-center justify-center", className)
|
|
4739
4786
|
}, props), {
|
|
4740
4787
|
children: [
|
|
4741
|
-
/* @__PURE__ */ (0,
|
|
4742
|
-
/* @__PURE__ */ (0,
|
|
4788
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react15.MoreHorizontalIcon, { className: "size-4" }),
|
|
4789
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "sr-only", children: "More pages" })
|
|
4743
4790
|
]
|
|
4744
4791
|
})
|
|
4745
4792
|
);
|
|
4746
4793
|
}
|
|
4747
4794
|
|
|
4748
4795
|
// components/ui/popover.tsx
|
|
4749
|
-
var
|
|
4750
|
-
var
|
|
4796
|
+
var import_radix_ui23 = require("radix-ui");
|
|
4797
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4751
4798
|
function Popover(_a) {
|
|
4752
4799
|
var props = __objRest(_a, []);
|
|
4753
|
-
return /* @__PURE__ */ (0,
|
|
4800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_radix_ui23.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
4754
4801
|
}
|
|
4755
4802
|
function PopoverTrigger(_a) {
|
|
4756
4803
|
var props = __objRest(_a, []);
|
|
4757
|
-
return /* @__PURE__ */ (0,
|
|
4804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_radix_ui23.Popover.Trigger, __spreadValues({ "data-slot": "popover-trigger" }, props));
|
|
4758
4805
|
}
|
|
4759
4806
|
function PopoverContent(_a) {
|
|
4760
4807
|
var _b = _a, {
|
|
@@ -4766,8 +4813,8 @@ function PopoverContent(_a) {
|
|
|
4766
4813
|
"align",
|
|
4767
4814
|
"sideOffset"
|
|
4768
4815
|
]);
|
|
4769
|
-
return /* @__PURE__ */ (0,
|
|
4770
|
-
|
|
4816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_radix_ui23.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4817
|
+
import_radix_ui23.Popover.Content,
|
|
4771
4818
|
__spreadValues({
|
|
4772
4819
|
"data-slot": "popover-content",
|
|
4773
4820
|
align,
|
|
@@ -4781,11 +4828,11 @@ function PopoverContent(_a) {
|
|
|
4781
4828
|
}
|
|
4782
4829
|
function PopoverAnchor(_a) {
|
|
4783
4830
|
var props = __objRest(_a, []);
|
|
4784
|
-
return /* @__PURE__ */ (0,
|
|
4831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_radix_ui23.Popover.Anchor, __spreadValues({ "data-slot": "popover-anchor" }, props));
|
|
4785
4832
|
}
|
|
4786
4833
|
function PopoverHeader(_a) {
|
|
4787
4834
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4788
|
-
return /* @__PURE__ */ (0,
|
|
4835
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4789
4836
|
"div",
|
|
4790
4837
|
__spreadValues({
|
|
4791
4838
|
"data-slot": "popover-header",
|
|
@@ -4795,7 +4842,7 @@ function PopoverHeader(_a) {
|
|
|
4795
4842
|
}
|
|
4796
4843
|
function PopoverTitle(_a) {
|
|
4797
4844
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4798
|
-
return /* @__PURE__ */ (0,
|
|
4845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4799
4846
|
"div",
|
|
4800
4847
|
__spreadValues({
|
|
4801
4848
|
"data-slot": "popover-title",
|
|
@@ -4809,7 +4856,7 @@ function PopoverDescription(_a) {
|
|
|
4809
4856
|
} = _b, props = __objRest(_b, [
|
|
4810
4857
|
"className"
|
|
4811
4858
|
]);
|
|
4812
|
-
return /* @__PURE__ */ (0,
|
|
4859
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4813
4860
|
"p",
|
|
4814
4861
|
__spreadValues({
|
|
4815
4862
|
"data-slot": "popover-description",
|
|
@@ -4819,8 +4866,8 @@ function PopoverDescription(_a) {
|
|
|
4819
4866
|
}
|
|
4820
4867
|
|
|
4821
4868
|
// components/ui/progress.tsx
|
|
4822
|
-
var
|
|
4823
|
-
var
|
|
4869
|
+
var import_radix_ui24 = require("radix-ui");
|
|
4870
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4824
4871
|
function Progress(_a) {
|
|
4825
4872
|
var _b = _a, {
|
|
4826
4873
|
className,
|
|
@@ -4829,8 +4876,8 @@ function Progress(_a) {
|
|
|
4829
4876
|
"className",
|
|
4830
4877
|
"value"
|
|
4831
4878
|
]);
|
|
4832
|
-
return /* @__PURE__ */ (0,
|
|
4833
|
-
|
|
4879
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4880
|
+
import_radix_ui24.Progress.Root,
|
|
4834
4881
|
__spreadProps(__spreadValues({
|
|
4835
4882
|
"data-slot": "progress",
|
|
4836
4883
|
className: cn(
|
|
@@ -4838,8 +4885,8 @@ function Progress(_a) {
|
|
|
4838
4885
|
className
|
|
4839
4886
|
)
|
|
4840
4887
|
}, props), {
|
|
4841
|
-
children: /* @__PURE__ */ (0,
|
|
4842
|
-
|
|
4888
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4889
|
+
import_radix_ui24.Progress.Indicator,
|
|
4843
4890
|
{
|
|
4844
4891
|
"data-slot": "progress-indicator",
|
|
4845
4892
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
@@ -4852,16 +4899,16 @@ function Progress(_a) {
|
|
|
4852
4899
|
|
|
4853
4900
|
// components/ui/radio-group.tsx
|
|
4854
4901
|
var import_lucide_react16 = require("lucide-react");
|
|
4855
|
-
var
|
|
4856
|
-
var
|
|
4902
|
+
var import_radix_ui25 = require("radix-ui");
|
|
4903
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4857
4904
|
function RadioGroup(_a) {
|
|
4858
4905
|
var _b = _a, {
|
|
4859
4906
|
className
|
|
4860
4907
|
} = _b, props = __objRest(_b, [
|
|
4861
4908
|
"className"
|
|
4862
4909
|
]);
|
|
4863
|
-
return /* @__PURE__ */ (0,
|
|
4864
|
-
|
|
4910
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4911
|
+
import_radix_ui25.RadioGroup.Root,
|
|
4865
4912
|
__spreadValues({
|
|
4866
4913
|
"data-slot": "radio-group",
|
|
4867
4914
|
className: cn("grid gap-3", className)
|
|
@@ -4874,8 +4921,8 @@ function RadioGroupItem(_a) {
|
|
|
4874
4921
|
} = _b, props = __objRest(_b, [
|
|
4875
4922
|
"className"
|
|
4876
4923
|
]);
|
|
4877
|
-
return /* @__PURE__ */ (0,
|
|
4878
|
-
|
|
4924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4925
|
+
import_radix_ui25.RadioGroup.Item,
|
|
4879
4926
|
__spreadProps(__spreadValues({
|
|
4880
4927
|
"data-slot": "radio-group-item",
|
|
4881
4928
|
className: cn(
|
|
@@ -4883,12 +4930,12 @@ function RadioGroupItem(_a) {
|
|
|
4883
4930
|
className
|
|
4884
4931
|
)
|
|
4885
4932
|
}, props), {
|
|
4886
|
-
children: /* @__PURE__ */ (0,
|
|
4887
|
-
|
|
4933
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4934
|
+
import_radix_ui25.RadioGroup.Indicator,
|
|
4888
4935
|
{
|
|
4889
4936
|
"data-slot": "radio-group-indicator",
|
|
4890
4937
|
className: "relative flex items-center justify-center",
|
|
4891
|
-
children: /* @__PURE__ */ (0,
|
|
4938
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react16.CircleIcon, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary" })
|
|
4892
4939
|
}
|
|
4893
4940
|
)
|
|
4894
4941
|
})
|
|
@@ -4898,14 +4945,14 @@ function RadioGroupItem(_a) {
|
|
|
4898
4945
|
// components/ui/resizable.tsx
|
|
4899
4946
|
var import_lucide_react17 = require("lucide-react");
|
|
4900
4947
|
var ResizablePrimitive = __toESM(require("react-resizable-panels"), 1);
|
|
4901
|
-
var
|
|
4948
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4902
4949
|
function ResizablePanelGroup(_a) {
|
|
4903
4950
|
var _b = _a, {
|
|
4904
4951
|
className
|
|
4905
4952
|
} = _b, props = __objRest(_b, [
|
|
4906
4953
|
"className"
|
|
4907
4954
|
]);
|
|
4908
|
-
return /* @__PURE__ */ (0,
|
|
4955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4909
4956
|
ResizablePrimitive.Group,
|
|
4910
4957
|
__spreadValues({
|
|
4911
4958
|
"data-slot": "resizable-panel-group",
|
|
@@ -4918,7 +4965,7 @@ function ResizablePanelGroup(_a) {
|
|
|
4918
4965
|
}
|
|
4919
4966
|
function ResizablePanel(_a) {
|
|
4920
4967
|
var props = __objRest(_a, []);
|
|
4921
|
-
return /* @__PURE__ */ (0,
|
|
4968
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ResizablePrimitive.Panel, __spreadValues({ "data-slot": "resizable-panel" }, props));
|
|
4922
4969
|
}
|
|
4923
4970
|
function ResizableHandle(_a) {
|
|
4924
4971
|
var _b = _a, {
|
|
@@ -4928,7 +4975,7 @@ function ResizableHandle(_a) {
|
|
|
4928
4975
|
"withHandle",
|
|
4929
4976
|
"className"
|
|
4930
4977
|
]);
|
|
4931
|
-
return /* @__PURE__ */ (0,
|
|
4978
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4932
4979
|
ResizablePrimitive.Separator,
|
|
4933
4980
|
__spreadProps(__spreadValues({
|
|
4934
4981
|
"data-slot": "resizable-handle",
|
|
@@ -4937,14 +4984,14 @@ function ResizableHandle(_a) {
|
|
|
4937
4984
|
className
|
|
4938
4985
|
)
|
|
4939
4986
|
}, props), {
|
|
4940
|
-
children: withHandle && /* @__PURE__ */ (0,
|
|
4987
|
+
children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react17.GripVerticalIcon, { className: "size-2.5" }) })
|
|
4941
4988
|
})
|
|
4942
4989
|
);
|
|
4943
4990
|
}
|
|
4944
4991
|
|
|
4945
4992
|
// components/ui/scroll-area.tsx
|
|
4946
|
-
var
|
|
4947
|
-
var
|
|
4993
|
+
var import_radix_ui26 = require("radix-ui");
|
|
4994
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4948
4995
|
function ScrollArea(_a) {
|
|
4949
4996
|
var _b = _a, {
|
|
4950
4997
|
className,
|
|
@@ -4953,23 +5000,23 @@ function ScrollArea(_a) {
|
|
|
4953
5000
|
"className",
|
|
4954
5001
|
"children"
|
|
4955
5002
|
]);
|
|
4956
|
-
return /* @__PURE__ */ (0,
|
|
4957
|
-
|
|
5003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
5004
|
+
import_radix_ui26.ScrollArea.Root,
|
|
4958
5005
|
__spreadProps(__spreadValues({
|
|
4959
5006
|
"data-slot": "scroll-area",
|
|
4960
5007
|
className: cn("relative", className)
|
|
4961
5008
|
}, props), {
|
|
4962
5009
|
children: [
|
|
4963
|
-
/* @__PURE__ */ (0,
|
|
4964
|
-
|
|
5010
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5011
|
+
import_radix_ui26.ScrollArea.Viewport,
|
|
4965
5012
|
{
|
|
4966
5013
|
"data-slot": "scroll-area-viewport",
|
|
4967
5014
|
className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",
|
|
4968
5015
|
children
|
|
4969
5016
|
}
|
|
4970
5017
|
),
|
|
4971
|
-
/* @__PURE__ */ (0,
|
|
4972
|
-
/* @__PURE__ */ (0,
|
|
5018
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ScrollBar, {}),
|
|
5019
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_radix_ui26.ScrollArea.Corner, {})
|
|
4973
5020
|
]
|
|
4974
5021
|
})
|
|
4975
5022
|
);
|
|
@@ -4982,8 +5029,8 @@ function ScrollBar(_a) {
|
|
|
4982
5029
|
"className",
|
|
4983
5030
|
"orientation"
|
|
4984
5031
|
]);
|
|
4985
|
-
return /* @__PURE__ */ (0,
|
|
4986
|
-
|
|
5032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5033
|
+
import_radix_ui26.ScrollArea.ScrollAreaScrollbar,
|
|
4987
5034
|
__spreadProps(__spreadValues({
|
|
4988
5035
|
"data-slot": "scroll-area-scrollbar",
|
|
4989
5036
|
orientation,
|
|
@@ -4994,8 +5041,8 @@ function ScrollBar(_a) {
|
|
|
4994
5041
|
className
|
|
4995
5042
|
)
|
|
4996
5043
|
}, props), {
|
|
4997
|
-
children: /* @__PURE__ */ (0,
|
|
4998
|
-
|
|
5044
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5045
|
+
import_radix_ui26.ScrollArea.ScrollAreaThumb,
|
|
4999
5046
|
{
|
|
5000
5047
|
"data-slot": "scroll-area-thumb",
|
|
5001
5048
|
className: "relative flex-1 rounded-full bg-border"
|
|
@@ -5007,24 +5054,24 @@ function ScrollBar(_a) {
|
|
|
5007
5054
|
|
|
5008
5055
|
// components/ui/select.tsx
|
|
5009
5056
|
var import_lucide_react18 = require("lucide-react");
|
|
5010
|
-
var
|
|
5011
|
-
var
|
|
5057
|
+
var import_radix_ui27 = require("radix-ui");
|
|
5058
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5012
5059
|
function Select(_a) {
|
|
5013
5060
|
var props = __objRest(_a, []);
|
|
5014
|
-
return /* @__PURE__ */ (0,
|
|
5061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Select.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
5015
5062
|
}
|
|
5016
5063
|
function SelectGroup(_a) {
|
|
5017
5064
|
var props = __objRest(_a, []);
|
|
5018
|
-
return /* @__PURE__ */ (0,
|
|
5065
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Select.Group, __spreadValues({ "data-slot": "select-group" }, props));
|
|
5019
5066
|
}
|
|
5020
5067
|
function SelectValue(_a) {
|
|
5021
5068
|
var props = __objRest(_a, []);
|
|
5022
|
-
return /* @__PURE__ */ (0,
|
|
5069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Select.Value, __spreadValues({ "data-slot": "select-value" }, props));
|
|
5023
5070
|
}
|
|
5024
5071
|
function SelectTrigger(_a) {
|
|
5025
5072
|
var _b = _a, {
|
|
5026
5073
|
className,
|
|
5027
|
-
size = "
|
|
5074
|
+
size = "md",
|
|
5028
5075
|
readOnly = false,
|
|
5029
5076
|
children
|
|
5030
5077
|
} = _b, props = __objRest(_b, [
|
|
@@ -5033,21 +5080,21 @@ function SelectTrigger(_a) {
|
|
|
5033
5080
|
"readOnly",
|
|
5034
5081
|
"children"
|
|
5035
5082
|
]);
|
|
5036
|
-
return /* @__PURE__ */ (0,
|
|
5037
|
-
|
|
5083
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
5084
|
+
import_radix_ui27.Select.Trigger,
|
|
5038
5085
|
__spreadProps(__spreadValues({
|
|
5039
5086
|
"data-slot": "select-trigger",
|
|
5040
5087
|
"data-size": size,
|
|
5041
5088
|
"data-readonly": readOnly ? "" : void 0,
|
|
5042
5089
|
disabled: readOnly || props.disabled,
|
|
5043
5090
|
className: cn(
|
|
5044
|
-
"flex w-fit items-center justify-between gap-2 rounded-sm border border-input bg-prominent appearance-none
|
|
5091
|
+
"flex w-fit items-center justify-between gap-2 rounded-sm border border-input bg-prominent appearance-none whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-on-subtle data-[size=sm]:h-8 data-[size=sm]:px-3 data-[size=sm]:py-1 data-[size=sm]:text-xs data-[size=md]:h-10 data-[size=md]:px-3 data-[size=md]:py-1 data-[size=md]:text-sm data-[size=lg]:h-12 data-[size=lg]:px-4 data-[size=lg]:py-2 data-[size=lg]:text-base *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-on-subtle data-[readonly]:cursor-default data-[readonly]:opacity-100",
|
|
5045
5092
|
className
|
|
5046
5093
|
)
|
|
5047
5094
|
}, props), {
|
|
5048
5095
|
children: [
|
|
5049
5096
|
children,
|
|
5050
|
-
/* @__PURE__ */ (0,
|
|
5097
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Select.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react18.ChevronDownIcon, { className: cn("size-4", readOnly ? "opacity-30" : "opacity-50") }) })
|
|
5051
5098
|
]
|
|
5052
5099
|
})
|
|
5053
5100
|
);
|
|
@@ -5064,8 +5111,8 @@ function SelectContent(_a) {
|
|
|
5064
5111
|
"position",
|
|
5065
5112
|
"align"
|
|
5066
5113
|
]);
|
|
5067
|
-
return /* @__PURE__ */ (0,
|
|
5068
|
-
|
|
5114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
5115
|
+
import_radix_ui27.Select.Content,
|
|
5069
5116
|
__spreadProps(__spreadValues({
|
|
5070
5117
|
"data-slot": "select-content",
|
|
5071
5118
|
className: cn(
|
|
@@ -5077,9 +5124,9 @@ function SelectContent(_a) {
|
|
|
5077
5124
|
align
|
|
5078
5125
|
}, props), {
|
|
5079
5126
|
children: [
|
|
5080
|
-
/* @__PURE__ */ (0,
|
|
5081
|
-
/* @__PURE__ */ (0,
|
|
5082
|
-
|
|
5127
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SelectScrollUpButton, {}),
|
|
5128
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5129
|
+
import_radix_ui27.Select.Viewport,
|
|
5083
5130
|
{
|
|
5084
5131
|
className: cn(
|
|
5085
5132
|
"p-1",
|
|
@@ -5088,7 +5135,7 @@ function SelectContent(_a) {
|
|
|
5088
5135
|
children
|
|
5089
5136
|
}
|
|
5090
5137
|
),
|
|
5091
|
-
/* @__PURE__ */ (0,
|
|
5138
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SelectScrollDownButton, {})
|
|
5092
5139
|
]
|
|
5093
5140
|
})
|
|
5094
5141
|
) });
|
|
@@ -5099,8 +5146,8 @@ function SelectLabel(_a) {
|
|
|
5099
5146
|
} = _b, props = __objRest(_b, [
|
|
5100
5147
|
"className"
|
|
5101
5148
|
]);
|
|
5102
|
-
return /* @__PURE__ */ (0,
|
|
5103
|
-
|
|
5149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5150
|
+
import_radix_ui27.Select.Label,
|
|
5104
5151
|
__spreadValues({
|
|
5105
5152
|
"data-slot": "select-label",
|
|
5106
5153
|
className: cn("px-2 py-1.5 text-xs text-on-subtle", className)
|
|
@@ -5115,8 +5162,8 @@ function SelectItem(_a) {
|
|
|
5115
5162
|
"className",
|
|
5116
5163
|
"children"
|
|
5117
5164
|
]);
|
|
5118
|
-
return /* @__PURE__ */ (0,
|
|
5119
|
-
|
|
5165
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
5166
|
+
import_radix_ui27.Select.Item,
|
|
5120
5167
|
__spreadProps(__spreadValues({
|
|
5121
5168
|
"data-slot": "select-item",
|
|
5122
5169
|
className: cn(
|
|
@@ -5125,15 +5172,15 @@ function SelectItem(_a) {
|
|
|
5125
5172
|
)
|
|
5126
5173
|
}, props), {
|
|
5127
5174
|
children: [
|
|
5128
|
-
/* @__PURE__ */ (0,
|
|
5175
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5129
5176
|
"span",
|
|
5130
5177
|
{
|
|
5131
5178
|
"data-slot": "select-item-indicator",
|
|
5132
5179
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
5133
|
-
children: /* @__PURE__ */ (0,
|
|
5180
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Select.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react18.CheckIcon, { className: "size-4 text-primary" }) })
|
|
5134
5181
|
}
|
|
5135
5182
|
),
|
|
5136
|
-
/* @__PURE__ */ (0,
|
|
5183
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui27.Select.ItemText, { children })
|
|
5137
5184
|
]
|
|
5138
5185
|
})
|
|
5139
5186
|
);
|
|
@@ -5144,8 +5191,8 @@ function SelectSeparator(_a) {
|
|
|
5144
5191
|
} = _b, props = __objRest(_b, [
|
|
5145
5192
|
"className"
|
|
5146
5193
|
]);
|
|
5147
|
-
return /* @__PURE__ */ (0,
|
|
5148
|
-
|
|
5194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5195
|
+
import_radix_ui27.Select.Separator,
|
|
5149
5196
|
__spreadValues({
|
|
5150
5197
|
"data-slot": "select-separator",
|
|
5151
5198
|
className: cn("pointer-events-none -mx-1 my-1 h-px bg-border", className)
|
|
@@ -5158,8 +5205,8 @@ function SelectScrollUpButton(_a) {
|
|
|
5158
5205
|
} = _b, props = __objRest(_b, [
|
|
5159
5206
|
"className"
|
|
5160
5207
|
]);
|
|
5161
|
-
return /* @__PURE__ */ (0,
|
|
5162
|
-
|
|
5208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5209
|
+
import_radix_ui27.Select.ScrollUpButton,
|
|
5163
5210
|
__spreadProps(__spreadValues({
|
|
5164
5211
|
"data-slot": "select-scroll-up-button",
|
|
5165
5212
|
className: cn(
|
|
@@ -5167,7 +5214,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5167
5214
|
className
|
|
5168
5215
|
)
|
|
5169
5216
|
}, props), {
|
|
5170
|
-
children: /* @__PURE__ */ (0,
|
|
5217
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react18.ChevronUpIcon, { className: "size-4" })
|
|
5171
5218
|
})
|
|
5172
5219
|
);
|
|
5173
5220
|
}
|
|
@@ -5177,8 +5224,8 @@ function SelectScrollDownButton(_a) {
|
|
|
5177
5224
|
} = _b, props = __objRest(_b, [
|
|
5178
5225
|
"className"
|
|
5179
5226
|
]);
|
|
5180
|
-
return /* @__PURE__ */ (0,
|
|
5181
|
-
|
|
5227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5228
|
+
import_radix_ui27.Select.ScrollDownButton,
|
|
5182
5229
|
__spreadProps(__spreadValues({
|
|
5183
5230
|
"data-slot": "select-scroll-down-button",
|
|
5184
5231
|
className: cn(
|
|
@@ -5186,30 +5233,30 @@ function SelectScrollDownButton(_a) {
|
|
|
5186
5233
|
className
|
|
5187
5234
|
)
|
|
5188
5235
|
}, props), {
|
|
5189
|
-
children: /* @__PURE__ */ (0,
|
|
5236
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react18.ChevronDownIcon, { className: "size-4" })
|
|
5190
5237
|
})
|
|
5191
5238
|
);
|
|
5192
5239
|
}
|
|
5193
5240
|
|
|
5194
5241
|
// components/ui/sheet.tsx
|
|
5195
5242
|
var import_lucide_react19 = require("lucide-react");
|
|
5196
|
-
var
|
|
5197
|
-
var
|
|
5243
|
+
var import_radix_ui28 = require("radix-ui");
|
|
5244
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
5198
5245
|
function Sheet(_a) {
|
|
5199
5246
|
var props = __objRest(_a, []);
|
|
5200
|
-
return /* @__PURE__ */ (0,
|
|
5247
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui28.Dialog.Root, __spreadValues({ "data-slot": "sheet" }, props));
|
|
5201
5248
|
}
|
|
5202
5249
|
function SheetTrigger(_a) {
|
|
5203
5250
|
var props = __objRest(_a, []);
|
|
5204
|
-
return /* @__PURE__ */ (0,
|
|
5251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui28.Dialog.Trigger, __spreadValues({ "data-slot": "sheet-trigger" }, props));
|
|
5205
5252
|
}
|
|
5206
5253
|
function SheetClose(_a) {
|
|
5207
5254
|
var props = __objRest(_a, []);
|
|
5208
|
-
return /* @__PURE__ */ (0,
|
|
5255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui28.Dialog.Close, __spreadValues({ "data-slot": "sheet-close" }, props));
|
|
5209
5256
|
}
|
|
5210
5257
|
function SheetPortal(_a) {
|
|
5211
5258
|
var props = __objRest(_a, []);
|
|
5212
|
-
return /* @__PURE__ */ (0,
|
|
5259
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui28.Dialog.Portal, __spreadValues({ "data-slot": "sheet-portal" }, props));
|
|
5213
5260
|
}
|
|
5214
5261
|
function SheetOverlay(_a) {
|
|
5215
5262
|
var _b = _a, {
|
|
@@ -5217,8 +5264,8 @@ function SheetOverlay(_a) {
|
|
|
5217
5264
|
} = _b, props = __objRest(_b, [
|
|
5218
5265
|
"className"
|
|
5219
5266
|
]);
|
|
5220
|
-
return /* @__PURE__ */ (0,
|
|
5221
|
-
|
|
5267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5268
|
+
import_radix_ui28.Dialog.Overlay,
|
|
5222
5269
|
__spreadValues({
|
|
5223
5270
|
"data-slot": "sheet-overlay",
|
|
5224
5271
|
className: cn(
|
|
@@ -5240,10 +5287,10 @@ function SheetContent(_a) {
|
|
|
5240
5287
|
"side",
|
|
5241
5288
|
"showCloseButton"
|
|
5242
5289
|
]);
|
|
5243
|
-
return /* @__PURE__ */ (0,
|
|
5244
|
-
/* @__PURE__ */ (0,
|
|
5245
|
-
/* @__PURE__ */ (0,
|
|
5246
|
-
|
|
5290
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(SheetPortal, { children: [
|
|
5291
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SheetOverlay, {}),
|
|
5292
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
5293
|
+
import_radix_ui28.Dialog.Content,
|
|
5247
5294
|
__spreadProps(__spreadValues({
|
|
5248
5295
|
"data-slot": "sheet-content",
|
|
5249
5296
|
className: cn(
|
|
@@ -5257,9 +5304,9 @@ function SheetContent(_a) {
|
|
|
5257
5304
|
}, props), {
|
|
5258
5305
|
children: [
|
|
5259
5306
|
children,
|
|
5260
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
5261
|
-
/* @__PURE__ */ (0,
|
|
5262
|
-
/* @__PURE__ */ (0,
|
|
5307
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_radix_ui28.Dialog.Close, { className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-prominent transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
5308
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react19.XIcon, { className: "size-4" }),
|
|
5309
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "sr-only", children: "Close" })
|
|
5263
5310
|
] })
|
|
5264
5311
|
]
|
|
5265
5312
|
})
|
|
@@ -5268,7 +5315,7 @@ function SheetContent(_a) {
|
|
|
5268
5315
|
}
|
|
5269
5316
|
function SheetHeader(_a) {
|
|
5270
5317
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5271
|
-
return /* @__PURE__ */ (0,
|
|
5318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5272
5319
|
"div",
|
|
5273
5320
|
__spreadValues({
|
|
5274
5321
|
"data-slot": "sheet-header",
|
|
@@ -5278,7 +5325,7 @@ function SheetHeader(_a) {
|
|
|
5278
5325
|
}
|
|
5279
5326
|
function SheetFooter(_a) {
|
|
5280
5327
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5281
|
-
return /* @__PURE__ */ (0,
|
|
5328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5282
5329
|
"div",
|
|
5283
5330
|
__spreadValues({
|
|
5284
5331
|
"data-slot": "sheet-footer",
|
|
@@ -5292,8 +5339,8 @@ function SheetTitle(_a) {
|
|
|
5292
5339
|
} = _b, props = __objRest(_b, [
|
|
5293
5340
|
"className"
|
|
5294
5341
|
]);
|
|
5295
|
-
return /* @__PURE__ */ (0,
|
|
5296
|
-
|
|
5342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5343
|
+
import_radix_ui28.Dialog.Title,
|
|
5297
5344
|
__spreadValues({
|
|
5298
5345
|
"data-slot": "sheet-title",
|
|
5299
5346
|
className: cn("font-semibold text-on-prominent", className)
|
|
@@ -5306,8 +5353,8 @@ function SheetDescription(_a) {
|
|
|
5306
5353
|
} = _b, props = __objRest(_b, [
|
|
5307
5354
|
"className"
|
|
5308
5355
|
]);
|
|
5309
|
-
return /* @__PURE__ */ (0,
|
|
5310
|
-
|
|
5356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5357
|
+
import_radix_ui28.Dialog.Description,
|
|
5311
5358
|
__spreadValues({
|
|
5312
5359
|
"data-slot": "sheet-description",
|
|
5313
5360
|
className: cn("text-sm text-on-subtle", className)
|
|
@@ -5317,9 +5364,9 @@ function SheetDescription(_a) {
|
|
|
5317
5364
|
|
|
5318
5365
|
// components/ui/sidebar.tsx
|
|
5319
5366
|
var React9 = __toESM(require("react"), 1);
|
|
5320
|
-
var
|
|
5367
|
+
var import_class_variance_authority12 = require("class-variance-authority");
|
|
5321
5368
|
var import_lucide_react20 = require("lucide-react");
|
|
5322
|
-
var
|
|
5369
|
+
var import_radix_ui30 = require("radix-ui");
|
|
5323
5370
|
|
|
5324
5371
|
// hooks/use-mobile.ts
|
|
5325
5372
|
var React8 = __toESM(require("react"), 1);
|
|
@@ -5339,10 +5386,10 @@ function useIsMobile() {
|
|
|
5339
5386
|
}
|
|
5340
5387
|
|
|
5341
5388
|
// components/ui/skeleton.tsx
|
|
5342
|
-
var
|
|
5389
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5343
5390
|
function Skeleton(_a) {
|
|
5344
5391
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5345
|
-
return /* @__PURE__ */ (0,
|
|
5392
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5346
5393
|
"div",
|
|
5347
5394
|
__spreadValues({
|
|
5348
5395
|
"data-slot": "skeleton",
|
|
@@ -5352,16 +5399,16 @@ function Skeleton(_a) {
|
|
|
5352
5399
|
}
|
|
5353
5400
|
|
|
5354
5401
|
// components/ui/tooltip.tsx
|
|
5355
|
-
var
|
|
5356
|
-
var
|
|
5402
|
+
var import_radix_ui29 = require("radix-ui");
|
|
5403
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
5357
5404
|
function TooltipProvider(_a) {
|
|
5358
5405
|
var _b = _a, {
|
|
5359
5406
|
delayDuration = 0
|
|
5360
5407
|
} = _b, props = __objRest(_b, [
|
|
5361
5408
|
"delayDuration"
|
|
5362
5409
|
]);
|
|
5363
|
-
return /* @__PURE__ */ (0,
|
|
5364
|
-
|
|
5410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5411
|
+
import_radix_ui29.Tooltip.Provider,
|
|
5365
5412
|
__spreadValues({
|
|
5366
5413
|
"data-slot": "tooltip-provider",
|
|
5367
5414
|
delayDuration
|
|
@@ -5370,11 +5417,11 @@ function TooltipProvider(_a) {
|
|
|
5370
5417
|
}
|
|
5371
5418
|
function Tooltip2(_a) {
|
|
5372
5419
|
var props = __objRest(_a, []);
|
|
5373
|
-
return /* @__PURE__ */ (0,
|
|
5420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_radix_ui29.Tooltip.Root, __spreadValues({ "data-slot": "tooltip" }, props));
|
|
5374
5421
|
}
|
|
5375
5422
|
function TooltipTrigger(_a) {
|
|
5376
5423
|
var props = __objRest(_a, []);
|
|
5377
|
-
return /* @__PURE__ */ (0,
|
|
5424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_radix_ui29.Tooltip.Trigger, __spreadValues({ "data-slot": "tooltip-trigger" }, props));
|
|
5378
5425
|
}
|
|
5379
5426
|
function TooltipContent(_a) {
|
|
5380
5427
|
var _b = _a, {
|
|
@@ -5386,8 +5433,8 @@ function TooltipContent(_a) {
|
|
|
5386
5433
|
"sideOffset",
|
|
5387
5434
|
"children"
|
|
5388
5435
|
]);
|
|
5389
|
-
return /* @__PURE__ */ (0,
|
|
5390
|
-
|
|
5436
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_radix_ui29.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
5437
|
+
import_radix_ui29.Tooltip.Content,
|
|
5391
5438
|
__spreadProps(__spreadValues({
|
|
5392
5439
|
"data-slot": "tooltip-content",
|
|
5393
5440
|
sideOffset,
|
|
@@ -5398,14 +5445,14 @@ function TooltipContent(_a) {
|
|
|
5398
5445
|
}, props), {
|
|
5399
5446
|
children: [
|
|
5400
5447
|
children,
|
|
5401
|
-
/* @__PURE__ */ (0,
|
|
5448
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_radix_ui29.Tooltip.Arrow, { className: "fill-primary" })
|
|
5402
5449
|
]
|
|
5403
5450
|
})
|
|
5404
5451
|
) });
|
|
5405
5452
|
}
|
|
5406
5453
|
|
|
5407
5454
|
// components/ui/sidebar.tsx
|
|
5408
|
-
var
|
|
5455
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5409
5456
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
5410
5457
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
5411
5458
|
var SIDEBAR_WIDTH = "16rem";
|
|
@@ -5478,7 +5525,7 @@ function SidebarProvider(_a) {
|
|
|
5478
5525
|
}),
|
|
5479
5526
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
5480
5527
|
);
|
|
5481
|
-
return /* @__PURE__ */ (0,
|
|
5528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5482
5529
|
"div",
|
|
5483
5530
|
__spreadProps(__spreadValues({
|
|
5484
5531
|
"data-slot": "sidebar-wrapper",
|
|
@@ -5511,7 +5558,7 @@ function Sidebar(_a) {
|
|
|
5511
5558
|
]);
|
|
5512
5559
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
5513
5560
|
if (collapsible === "none") {
|
|
5514
|
-
return /* @__PURE__ */ (0,
|
|
5561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5515
5562
|
"div",
|
|
5516
5563
|
__spreadProps(__spreadValues({
|
|
5517
5564
|
"data-slot": "sidebar",
|
|
@@ -5525,7 +5572,7 @@ function Sidebar(_a) {
|
|
|
5525
5572
|
);
|
|
5526
5573
|
}
|
|
5527
5574
|
if (isMobile) {
|
|
5528
|
-
return /* @__PURE__ */ (0,
|
|
5575
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Sheet, __spreadProps(__spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
5529
5576
|
SheetContent,
|
|
5530
5577
|
{
|
|
5531
5578
|
"data-sidebar": "sidebar",
|
|
@@ -5537,16 +5584,16 @@ function Sidebar(_a) {
|
|
|
5537
5584
|
},
|
|
5538
5585
|
side,
|
|
5539
5586
|
children: [
|
|
5540
|
-
/* @__PURE__ */ (0,
|
|
5541
|
-
/* @__PURE__ */ (0,
|
|
5542
|
-
/* @__PURE__ */ (0,
|
|
5587
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(SheetHeader, { className: "sr-only", children: [
|
|
5588
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SheetTitle, { children: "Sidebar" }),
|
|
5589
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
5543
5590
|
] }),
|
|
5544
|
-
/* @__PURE__ */ (0,
|
|
5591
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
5545
5592
|
]
|
|
5546
5593
|
}
|
|
5547
5594
|
) }));
|
|
5548
5595
|
}
|
|
5549
|
-
return /* @__PURE__ */ (0,
|
|
5596
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
5550
5597
|
"div",
|
|
5551
5598
|
{
|
|
5552
5599
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -5556,7 +5603,7 @@ function Sidebar(_a) {
|
|
|
5556
5603
|
"data-side": side,
|
|
5557
5604
|
"data-slot": "sidebar",
|
|
5558
5605
|
children: [
|
|
5559
|
-
/* @__PURE__ */ (0,
|
|
5606
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5560
5607
|
"div",
|
|
5561
5608
|
{
|
|
5562
5609
|
"data-slot": "sidebar-gap",
|
|
@@ -5568,7 +5615,7 @@ function Sidebar(_a) {
|
|
|
5568
5615
|
)
|
|
5569
5616
|
}
|
|
5570
5617
|
),
|
|
5571
|
-
/* @__PURE__ */ (0,
|
|
5618
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5572
5619
|
"div",
|
|
5573
5620
|
__spreadProps(__spreadValues({
|
|
5574
5621
|
"data-slot": "sidebar-container",
|
|
@@ -5580,7 +5627,7 @@ function Sidebar(_a) {
|
|
|
5580
5627
|
className
|
|
5581
5628
|
)
|
|
5582
5629
|
}, props), {
|
|
5583
|
-
children: /* @__PURE__ */ (0,
|
|
5630
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5584
5631
|
"div",
|
|
5585
5632
|
{
|
|
5586
5633
|
"data-sidebar": "sidebar",
|
|
@@ -5604,7 +5651,7 @@ function SidebarTrigger(_a) {
|
|
|
5604
5651
|
"onClick"
|
|
5605
5652
|
]);
|
|
5606
5653
|
const { toggleSidebar } = useSidebar();
|
|
5607
|
-
return /* @__PURE__ */ (0,
|
|
5654
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
5608
5655
|
Button,
|
|
5609
5656
|
__spreadProps(__spreadValues({
|
|
5610
5657
|
"data-sidebar": "trigger",
|
|
@@ -5618,8 +5665,8 @@ function SidebarTrigger(_a) {
|
|
|
5618
5665
|
}
|
|
5619
5666
|
}, props), {
|
|
5620
5667
|
children: [
|
|
5621
|
-
/* @__PURE__ */ (0,
|
|
5622
|
-
/* @__PURE__ */ (0,
|
|
5668
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react20.PanelLeftIcon, {}),
|
|
5669
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
5623
5670
|
]
|
|
5624
5671
|
})
|
|
5625
5672
|
);
|
|
@@ -5627,7 +5674,7 @@ function SidebarTrigger(_a) {
|
|
|
5627
5674
|
function SidebarRail(_a) {
|
|
5628
5675
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5629
5676
|
const { toggleSidebar } = useSidebar();
|
|
5630
|
-
return /* @__PURE__ */ (0,
|
|
5677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5631
5678
|
"button",
|
|
5632
5679
|
__spreadValues({
|
|
5633
5680
|
"data-sidebar": "rail",
|
|
@@ -5650,7 +5697,7 @@ function SidebarRail(_a) {
|
|
|
5650
5697
|
}
|
|
5651
5698
|
function SidebarInset(_a) {
|
|
5652
5699
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5653
|
-
return /* @__PURE__ */ (0,
|
|
5700
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5654
5701
|
"main",
|
|
5655
5702
|
__spreadValues({
|
|
5656
5703
|
"data-slot": "sidebar-inset",
|
|
@@ -5668,7 +5715,7 @@ function SidebarInput(_a) {
|
|
|
5668
5715
|
} = _b, props = __objRest(_b, [
|
|
5669
5716
|
"className"
|
|
5670
5717
|
]);
|
|
5671
|
-
return /* @__PURE__ */ (0,
|
|
5718
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5672
5719
|
Input,
|
|
5673
5720
|
__spreadValues({
|
|
5674
5721
|
"data-slot": "sidebar-input",
|
|
@@ -5679,7 +5726,7 @@ function SidebarInput(_a) {
|
|
|
5679
5726
|
}
|
|
5680
5727
|
function SidebarHeader(_a) {
|
|
5681
5728
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5682
|
-
return /* @__PURE__ */ (0,
|
|
5729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5683
5730
|
"div",
|
|
5684
5731
|
__spreadValues({
|
|
5685
5732
|
"data-slot": "sidebar-header",
|
|
@@ -5690,7 +5737,7 @@ function SidebarHeader(_a) {
|
|
|
5690
5737
|
}
|
|
5691
5738
|
function SidebarFooter(_a) {
|
|
5692
5739
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5693
|
-
return /* @__PURE__ */ (0,
|
|
5740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5694
5741
|
"div",
|
|
5695
5742
|
__spreadValues({
|
|
5696
5743
|
"data-slot": "sidebar-footer",
|
|
@@ -5705,7 +5752,7 @@ function SidebarSeparator(_a) {
|
|
|
5705
5752
|
} = _b, props = __objRest(_b, [
|
|
5706
5753
|
"className"
|
|
5707
5754
|
]);
|
|
5708
|
-
return /* @__PURE__ */ (0,
|
|
5755
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5709
5756
|
Separator,
|
|
5710
5757
|
__spreadValues({
|
|
5711
5758
|
"data-slot": "sidebar-separator",
|
|
@@ -5716,7 +5763,7 @@ function SidebarSeparator(_a) {
|
|
|
5716
5763
|
}
|
|
5717
5764
|
function SidebarContent(_a) {
|
|
5718
5765
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5719
|
-
return /* @__PURE__ */ (0,
|
|
5766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5720
5767
|
"div",
|
|
5721
5768
|
__spreadValues({
|
|
5722
5769
|
"data-slot": "sidebar-content",
|
|
@@ -5730,7 +5777,7 @@ function SidebarContent(_a) {
|
|
|
5730
5777
|
}
|
|
5731
5778
|
function SidebarGroup(_a) {
|
|
5732
5779
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5733
|
-
return /* @__PURE__ */ (0,
|
|
5780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5734
5781
|
"div",
|
|
5735
5782
|
__spreadValues({
|
|
5736
5783
|
"data-slot": "sidebar-group",
|
|
@@ -5747,8 +5794,8 @@ function SidebarGroupLabel(_a) {
|
|
|
5747
5794
|
"className",
|
|
5748
5795
|
"asChild"
|
|
5749
5796
|
]);
|
|
5750
|
-
const Comp = asChild ?
|
|
5751
|
-
return /* @__PURE__ */ (0,
|
|
5797
|
+
const Comp = asChild ? import_radix_ui30.Slot.Root : "div";
|
|
5798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5752
5799
|
Comp,
|
|
5753
5800
|
__spreadValues({
|
|
5754
5801
|
"data-slot": "sidebar-group-label",
|
|
@@ -5769,8 +5816,8 @@ function SidebarGroupAction(_a) {
|
|
|
5769
5816
|
"className",
|
|
5770
5817
|
"asChild"
|
|
5771
5818
|
]);
|
|
5772
|
-
const Comp = asChild ?
|
|
5773
|
-
return /* @__PURE__ */ (0,
|
|
5819
|
+
const Comp = asChild ? import_radix_ui30.Slot.Root : "button";
|
|
5820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5774
5821
|
Comp,
|
|
5775
5822
|
__spreadValues({
|
|
5776
5823
|
"data-slot": "sidebar-group-action",
|
|
@@ -5791,7 +5838,7 @@ function SidebarGroupContent(_a) {
|
|
|
5791
5838
|
} = _b, props = __objRest(_b, [
|
|
5792
5839
|
"className"
|
|
5793
5840
|
]);
|
|
5794
|
-
return /* @__PURE__ */ (0,
|
|
5841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5795
5842
|
"div",
|
|
5796
5843
|
__spreadValues({
|
|
5797
5844
|
"data-slot": "sidebar-group-content",
|
|
@@ -5802,7 +5849,7 @@ function SidebarGroupContent(_a) {
|
|
|
5802
5849
|
}
|
|
5803
5850
|
function SidebarMenu(_a) {
|
|
5804
5851
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5805
|
-
return /* @__PURE__ */ (0,
|
|
5852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5806
5853
|
"ul",
|
|
5807
5854
|
__spreadValues({
|
|
5808
5855
|
"data-slot": "sidebar-menu",
|
|
@@ -5813,7 +5860,7 @@ function SidebarMenu(_a) {
|
|
|
5813
5860
|
}
|
|
5814
5861
|
function SidebarMenuItem(_a) {
|
|
5815
5862
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5816
|
-
return /* @__PURE__ */ (0,
|
|
5863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5817
5864
|
"li",
|
|
5818
5865
|
__spreadValues({
|
|
5819
5866
|
"data-slot": "sidebar-menu-item",
|
|
@@ -5822,7 +5869,7 @@ function SidebarMenuItem(_a) {
|
|
|
5822
5869
|
}, props)
|
|
5823
5870
|
);
|
|
5824
5871
|
}
|
|
5825
|
-
var sidebarMenuButtonVariants = (0,
|
|
5872
|
+
var sidebarMenuButtonVariants = (0, import_class_variance_authority12.cva)(
|
|
5826
5873
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-sm p-2 text-left text-sidebar-foreground text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-secondary-hover hover:text-primary focus-visible:ring-2 active:bg-secondary-hover active:text-primary disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-secondary-hover data-[active=true]:font-semibold data-[active=true]:text-primary data-[active=true]:hover:bg-secondary-hover data-[active=true]:hover:text-primary data-[state=open]:hover:bg-secondary-hover data-[state=open]:hover:text-primary [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 data-[active=true]:[&>svg]:text-primary",
|
|
5827
5874
|
{
|
|
5828
5875
|
variants: {
|
|
@@ -5858,9 +5905,9 @@ function SidebarMenuButton(_a) {
|
|
|
5858
5905
|
"tooltip",
|
|
5859
5906
|
"className"
|
|
5860
5907
|
]);
|
|
5861
|
-
const Comp = asChild ?
|
|
5908
|
+
const Comp = asChild ? import_radix_ui30.Slot.Root : "button";
|
|
5862
5909
|
const { isMobile, state } = useSidebar();
|
|
5863
|
-
const button = /* @__PURE__ */ (0,
|
|
5910
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5864
5911
|
Comp,
|
|
5865
5912
|
__spreadValues({
|
|
5866
5913
|
"data-slot": "sidebar-menu-button",
|
|
@@ -5878,9 +5925,9 @@ function SidebarMenuButton(_a) {
|
|
|
5878
5925
|
children: tooltip
|
|
5879
5926
|
};
|
|
5880
5927
|
}
|
|
5881
|
-
return /* @__PURE__ */ (0,
|
|
5882
|
-
/* @__PURE__ */ (0,
|
|
5883
|
-
/* @__PURE__ */ (0,
|
|
5928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Tooltip2, { children: [
|
|
5929
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
5930
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5884
5931
|
TooltipContent,
|
|
5885
5932
|
__spreadValues({
|
|
5886
5933
|
side: "right",
|
|
@@ -5900,8 +5947,8 @@ function SidebarMenuAction(_a) {
|
|
|
5900
5947
|
"asChild",
|
|
5901
5948
|
"showOnHover"
|
|
5902
5949
|
]);
|
|
5903
|
-
const Comp = asChild ?
|
|
5904
|
-
return /* @__PURE__ */ (0,
|
|
5950
|
+
const Comp = asChild ? import_radix_ui30.Slot.Root : "button";
|
|
5951
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5905
5952
|
Comp,
|
|
5906
5953
|
__spreadValues({
|
|
5907
5954
|
"data-slot": "sidebar-menu-action",
|
|
@@ -5926,7 +5973,7 @@ function SidebarMenuBadge(_a) {
|
|
|
5926
5973
|
} = _b, props = __objRest(_b, [
|
|
5927
5974
|
"className"
|
|
5928
5975
|
]);
|
|
5929
|
-
return /* @__PURE__ */ (0,
|
|
5976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5930
5977
|
"div",
|
|
5931
5978
|
__spreadValues({
|
|
5932
5979
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -5952,7 +5999,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5952
5999
|
"showIcon"
|
|
5953
6000
|
]);
|
|
5954
6001
|
const width = "70%";
|
|
5955
|
-
return /* @__PURE__ */ (0,
|
|
6002
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
5956
6003
|
"div",
|
|
5957
6004
|
__spreadProps(__spreadValues({
|
|
5958
6005
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -5960,14 +6007,14 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5960
6007
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className)
|
|
5961
6008
|
}, props), {
|
|
5962
6009
|
children: [
|
|
5963
|
-
showIcon && /* @__PURE__ */ (0,
|
|
6010
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5964
6011
|
Skeleton,
|
|
5965
6012
|
{
|
|
5966
6013
|
className: "size-4 rounded-md",
|
|
5967
6014
|
"data-sidebar": "menu-skeleton-icon"
|
|
5968
6015
|
}
|
|
5969
6016
|
),
|
|
5970
|
-
/* @__PURE__ */ (0,
|
|
6017
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5971
6018
|
Skeleton,
|
|
5972
6019
|
{
|
|
5973
6020
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -5983,7 +6030,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5983
6030
|
}
|
|
5984
6031
|
function SidebarMenuSub(_a) {
|
|
5985
6032
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5986
|
-
return /* @__PURE__ */ (0,
|
|
6033
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5987
6034
|
"ul",
|
|
5988
6035
|
__spreadValues({
|
|
5989
6036
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -6002,7 +6049,7 @@ function SidebarMenuSubItem(_a) {
|
|
|
6002
6049
|
} = _b, props = __objRest(_b, [
|
|
6003
6050
|
"className"
|
|
6004
6051
|
]);
|
|
6005
|
-
return /* @__PURE__ */ (0,
|
|
6052
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
6006
6053
|
"li",
|
|
6007
6054
|
__spreadValues({
|
|
6008
6055
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -6023,8 +6070,8 @@ function SidebarMenuSubButton(_a) {
|
|
|
6023
6070
|
"isActive",
|
|
6024
6071
|
"className"
|
|
6025
6072
|
]);
|
|
6026
|
-
const Comp = asChild ?
|
|
6027
|
-
return /* @__PURE__ */ (0,
|
|
6073
|
+
const Comp = asChild ? import_radix_ui30.Slot.Root : "a";
|
|
6074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
6028
6075
|
Comp,
|
|
6029
6076
|
__spreadValues({
|
|
6030
6077
|
"data-slot": "sidebar-menu-sub-button",
|
|
@@ -6045,8 +6092,8 @@ function SidebarMenuSubButton(_a) {
|
|
|
6045
6092
|
|
|
6046
6093
|
// components/ui/slider.tsx
|
|
6047
6094
|
var React10 = __toESM(require("react"), 1);
|
|
6048
|
-
var
|
|
6049
|
-
var
|
|
6095
|
+
var import_radix_ui31 = require("radix-ui");
|
|
6096
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
6050
6097
|
function Slider(_a) {
|
|
6051
6098
|
var _b = _a, {
|
|
6052
6099
|
className,
|
|
@@ -6065,8 +6112,8 @@ function Slider(_a) {
|
|
|
6065
6112
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
6066
6113
|
[value, defaultValue, min, max]
|
|
6067
6114
|
);
|
|
6068
|
-
return /* @__PURE__ */ (0,
|
|
6069
|
-
|
|
6115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
6116
|
+
import_radix_ui31.Slider.Root,
|
|
6070
6117
|
__spreadProps(__spreadValues({
|
|
6071
6118
|
"data-slot": "slider",
|
|
6072
6119
|
defaultValue,
|
|
@@ -6079,15 +6126,15 @@ function Slider(_a) {
|
|
|
6079
6126
|
)
|
|
6080
6127
|
}, props), {
|
|
6081
6128
|
children: [
|
|
6082
|
-
/* @__PURE__ */ (0,
|
|
6083
|
-
|
|
6129
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6130
|
+
import_radix_ui31.Slider.Track,
|
|
6084
6131
|
{
|
|
6085
6132
|
"data-slot": "slider-track",
|
|
6086
6133
|
className: cn(
|
|
6087
6134
|
"relative grow overflow-hidden rounded-full bg-subtle data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
6088
6135
|
),
|
|
6089
|
-
children: /* @__PURE__ */ (0,
|
|
6090
|
-
|
|
6136
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6137
|
+
import_radix_ui31.Slider.Range,
|
|
6091
6138
|
{
|
|
6092
6139
|
"data-slot": "slider-range",
|
|
6093
6140
|
className: cn(
|
|
@@ -6097,8 +6144,8 @@ function Slider(_a) {
|
|
|
6097
6144
|
)
|
|
6098
6145
|
}
|
|
6099
6146
|
),
|
|
6100
|
-
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0,
|
|
6101
|
-
|
|
6147
|
+
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6148
|
+
import_radix_ui31.Slider.Thumb,
|
|
6102
6149
|
{
|
|
6103
6150
|
"data-slot": "slider-thumb",
|
|
6104
6151
|
className: "block size-4 shrink-0 rounded-[4px] border-0 bg-primary ring-ring/50 transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
@@ -6114,12 +6161,12 @@ function Slider(_a) {
|
|
|
6114
6161
|
var import_lucide_react21 = require("lucide-react");
|
|
6115
6162
|
var import_next_themes = require("next-themes");
|
|
6116
6163
|
var import_sonner = require("sonner");
|
|
6117
|
-
var
|
|
6164
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
6118
6165
|
var Toaster = (_a) => {
|
|
6119
6166
|
var props = __objRest(_a, []);
|
|
6120
6167
|
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
6121
6168
|
const isMobile = useIsMobile();
|
|
6122
|
-
return /* @__PURE__ */ (0,
|
|
6169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6123
6170
|
import_sonner.Toaster,
|
|
6124
6171
|
__spreadValues({
|
|
6125
6172
|
theme,
|
|
@@ -6128,11 +6175,11 @@ var Toaster = (_a) => {
|
|
|
6128
6175
|
visibleToasts: isMobile ? 1 : 3,
|
|
6129
6176
|
duration: 4e3,
|
|
6130
6177
|
icons: {
|
|
6131
|
-
success: /* @__PURE__ */ (0,
|
|
6132
|
-
info: /* @__PURE__ */ (0,
|
|
6133
|
-
warning: /* @__PURE__ */ (0,
|
|
6134
|
-
error: /* @__PURE__ */ (0,
|
|
6135
|
-
loading: /* @__PURE__ */ (0,
|
|
6178
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react21.CircleCheckIcon, { className: "size-4" }),
|
|
6179
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react21.InfoIcon, { className: "size-4" }),
|
|
6180
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react21.TriangleAlertIcon, { className: "size-4" }),
|
|
6181
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react21.OctagonXIcon, { className: "size-4" }),
|
|
6182
|
+
loading: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react21.Loader2Icon, { className: "size-4 animate-spin" })
|
|
6136
6183
|
},
|
|
6137
6184
|
toastOptions: {
|
|
6138
6185
|
classNames: {
|
|
@@ -6155,7 +6202,7 @@ var Toaster = (_a) => {
|
|
|
6155
6202
|
// components/ui/stepper.tsx
|
|
6156
6203
|
var React11 = __toESM(require("react"), 1);
|
|
6157
6204
|
var import_lucide_react22 = require("lucide-react");
|
|
6158
|
-
var
|
|
6205
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
6159
6206
|
function clamp(value, min, max) {
|
|
6160
6207
|
return Math.min(Math.max(value, min), max);
|
|
6161
6208
|
}
|
|
@@ -6248,14 +6295,14 @@ function Stepper({
|
|
|
6248
6295
|
}
|
|
6249
6296
|
}
|
|
6250
6297
|
}
|
|
6251
|
-
return /* @__PURE__ */ (0,
|
|
6298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
6252
6299
|
InputGroup,
|
|
6253
6300
|
{
|
|
6254
6301
|
"data-slot": "stepper",
|
|
6255
6302
|
"data-disabled": disabled || void 0,
|
|
6256
6303
|
className: cn("w-32", container, className),
|
|
6257
6304
|
children: [
|
|
6258
|
-
/* @__PURE__ */ (0,
|
|
6305
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(InputGroupAddon, { align: "inline-start", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
6259
6306
|
InputGroupButton,
|
|
6260
6307
|
{
|
|
6261
6308
|
size: buttonSize,
|
|
@@ -6263,10 +6310,10 @@ function Stepper({
|
|
|
6263
6310
|
onClick: handleDecrement,
|
|
6264
6311
|
disabled: disabled || currentValue <= min,
|
|
6265
6312
|
"aria-label": "Decrease value",
|
|
6266
|
-
children: /* @__PURE__ */ (0,
|
|
6313
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react22.Minus, { className: iconClass })
|
|
6267
6314
|
}
|
|
6268
6315
|
) }),
|
|
6269
|
-
/* @__PURE__ */ (0,
|
|
6316
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
6270
6317
|
InputGroupInput,
|
|
6271
6318
|
{
|
|
6272
6319
|
type: "text",
|
|
@@ -6288,9 +6335,9 @@ function Stepper({
|
|
|
6288
6335
|
className: "text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
|
|
6289
6336
|
}
|
|
6290
6337
|
),
|
|
6291
|
-
/* @__PURE__ */ (0,
|
|
6292
|
-
/* @__PURE__ */ (0,
|
|
6293
|
-
/* @__PURE__ */ (0,
|
|
6338
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(InputGroupAddon, { align: "inline-end", children: [
|
|
6339
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(InputGroupText, { className: "font-normal text-on-subtle", children: "USDT" }),
|
|
6340
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
6294
6341
|
InputGroupButton,
|
|
6295
6342
|
{
|
|
6296
6343
|
size: buttonSize,
|
|
@@ -6298,7 +6345,7 @@ function Stepper({
|
|
|
6298
6345
|
onClick: handleIncrement,
|
|
6299
6346
|
disabled: disabled || currentValue >= max,
|
|
6300
6347
|
"aria-label": "Increase value",
|
|
6301
|
-
children: /* @__PURE__ */ (0,
|
|
6348
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react22.Plus, { className: iconClass })
|
|
6302
6349
|
}
|
|
6303
6350
|
)
|
|
6304
6351
|
] })
|
|
@@ -6308,8 +6355,8 @@ function Stepper({
|
|
|
6308
6355
|
}
|
|
6309
6356
|
|
|
6310
6357
|
// components/ui/switch.tsx
|
|
6311
|
-
var
|
|
6312
|
-
var
|
|
6358
|
+
var import_radix_ui32 = require("radix-ui");
|
|
6359
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
6313
6360
|
function Switch(_a) {
|
|
6314
6361
|
var _b = _a, {
|
|
6315
6362
|
className,
|
|
@@ -6318,8 +6365,8 @@ function Switch(_a) {
|
|
|
6318
6365
|
"className",
|
|
6319
6366
|
"size"
|
|
6320
6367
|
]);
|
|
6321
|
-
return /* @__PURE__ */ (0,
|
|
6322
|
-
|
|
6368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6369
|
+
import_radix_ui32.Switch.Root,
|
|
6323
6370
|
__spreadProps(__spreadValues({
|
|
6324
6371
|
"data-slot": "switch",
|
|
6325
6372
|
"data-size": size,
|
|
@@ -6328,8 +6375,8 @@ function Switch(_a) {
|
|
|
6328
6375
|
className
|
|
6329
6376
|
)
|
|
6330
6377
|
}, props), {
|
|
6331
|
-
children: /* @__PURE__ */ (0,
|
|
6332
|
-
|
|
6378
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6379
|
+
import_radix_ui32.Switch.Thumb,
|
|
6333
6380
|
{
|
|
6334
6381
|
"data-slot": "switch-thumb",
|
|
6335
6382
|
className: cn(
|
|
@@ -6342,15 +6389,15 @@ function Switch(_a) {
|
|
|
6342
6389
|
}
|
|
6343
6390
|
|
|
6344
6391
|
// components/ui/table.tsx
|
|
6345
|
-
var
|
|
6392
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
6346
6393
|
function Table(_a) {
|
|
6347
6394
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6348
|
-
return /* @__PURE__ */ (0,
|
|
6395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6349
6396
|
"div",
|
|
6350
6397
|
{
|
|
6351
6398
|
"data-slot": "table-container",
|
|
6352
6399
|
className: "relative w-full overflow-x-auto",
|
|
6353
|
-
children: /* @__PURE__ */ (0,
|
|
6400
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6354
6401
|
"table",
|
|
6355
6402
|
__spreadValues({
|
|
6356
6403
|
"data-slot": "table",
|
|
@@ -6362,7 +6409,7 @@ function Table(_a) {
|
|
|
6362
6409
|
}
|
|
6363
6410
|
function TableHeader(_a) {
|
|
6364
6411
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6365
|
-
return /* @__PURE__ */ (0,
|
|
6412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6366
6413
|
"thead",
|
|
6367
6414
|
__spreadValues({
|
|
6368
6415
|
"data-slot": "table-header",
|
|
@@ -6372,7 +6419,7 @@ function TableHeader(_a) {
|
|
|
6372
6419
|
}
|
|
6373
6420
|
function TableBody(_a) {
|
|
6374
6421
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6375
|
-
return /* @__PURE__ */ (0,
|
|
6422
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6376
6423
|
"tbody",
|
|
6377
6424
|
__spreadValues({
|
|
6378
6425
|
"data-slot": "table-body",
|
|
@@ -6382,7 +6429,7 @@ function TableBody(_a) {
|
|
|
6382
6429
|
}
|
|
6383
6430
|
function TableFooter(_a) {
|
|
6384
6431
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6385
|
-
return /* @__PURE__ */ (0,
|
|
6432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6386
6433
|
"tfoot",
|
|
6387
6434
|
__spreadValues({
|
|
6388
6435
|
"data-slot": "table-footer",
|
|
@@ -6395,7 +6442,7 @@ function TableFooter(_a) {
|
|
|
6395
6442
|
}
|
|
6396
6443
|
function TableRow(_a) {
|
|
6397
6444
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6398
|
-
return /* @__PURE__ */ (0,
|
|
6445
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6399
6446
|
"tr",
|
|
6400
6447
|
__spreadValues({
|
|
6401
6448
|
"data-slot": "table-row",
|
|
@@ -6408,7 +6455,7 @@ function TableRow(_a) {
|
|
|
6408
6455
|
}
|
|
6409
6456
|
function TableHead(_a) {
|
|
6410
6457
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6411
|
-
return /* @__PURE__ */ (0,
|
|
6458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6412
6459
|
"th",
|
|
6413
6460
|
__spreadValues({
|
|
6414
6461
|
"data-slot": "table-head",
|
|
@@ -6421,7 +6468,7 @@ function TableHead(_a) {
|
|
|
6421
6468
|
}
|
|
6422
6469
|
function TableCell(_a) {
|
|
6423
6470
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6424
|
-
return /* @__PURE__ */ (0,
|
|
6471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6425
6472
|
"td",
|
|
6426
6473
|
__spreadValues({
|
|
6427
6474
|
"data-slot": "table-cell",
|
|
@@ -6438,7 +6485,7 @@ function TableCaption(_a) {
|
|
|
6438
6485
|
} = _b, props = __objRest(_b, [
|
|
6439
6486
|
"className"
|
|
6440
6487
|
]);
|
|
6441
|
-
return /* @__PURE__ */ (0,
|
|
6488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6442
6489
|
"caption",
|
|
6443
6490
|
__spreadValues({
|
|
6444
6491
|
"data-slot": "table-caption",
|
|
@@ -6448,9 +6495,9 @@ function TableCaption(_a) {
|
|
|
6448
6495
|
}
|
|
6449
6496
|
|
|
6450
6497
|
// components/ui/tabs.tsx
|
|
6451
|
-
var
|
|
6452
|
-
var
|
|
6453
|
-
var
|
|
6498
|
+
var import_class_variance_authority13 = require("class-variance-authority");
|
|
6499
|
+
var import_radix_ui33 = require("radix-ui");
|
|
6500
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
6454
6501
|
function Tabs(_a) {
|
|
6455
6502
|
var _b = _a, {
|
|
6456
6503
|
className,
|
|
@@ -6459,8 +6506,8 @@ function Tabs(_a) {
|
|
|
6459
6506
|
"className",
|
|
6460
6507
|
"orientation"
|
|
6461
6508
|
]);
|
|
6462
|
-
return /* @__PURE__ */ (0,
|
|
6463
|
-
|
|
6509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6510
|
+
import_radix_ui33.Tabs.Root,
|
|
6464
6511
|
__spreadValues({
|
|
6465
6512
|
"data-slot": "tabs",
|
|
6466
6513
|
"data-orientation": orientation,
|
|
@@ -6472,7 +6519,7 @@ function Tabs(_a) {
|
|
|
6472
6519
|
}, props)
|
|
6473
6520
|
);
|
|
6474
6521
|
}
|
|
6475
|
-
var tabsListVariants = (0,
|
|
6522
|
+
var tabsListVariants = (0, import_class_variance_authority13.cva)(
|
|
6476
6523
|
"group/tabs-list inline-flex w-fit items-center justify-center text-on-subtle group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none has-[[data-icon-position=top]]:h-auto",
|
|
6477
6524
|
{
|
|
6478
6525
|
variants: {
|
|
@@ -6502,8 +6549,8 @@ function TabsList(_a) {
|
|
|
6502
6549
|
"variant",
|
|
6503
6550
|
"size"
|
|
6504
6551
|
]);
|
|
6505
|
-
return /* @__PURE__ */ (0,
|
|
6506
|
-
|
|
6552
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6553
|
+
import_radix_ui33.Tabs.List,
|
|
6507
6554
|
__spreadValues({
|
|
6508
6555
|
"data-slot": "tabs-list",
|
|
6509
6556
|
"data-variant": variant,
|
|
@@ -6520,8 +6567,8 @@ function TabsTrigger(_a) {
|
|
|
6520
6567
|
"className",
|
|
6521
6568
|
"iconPosition"
|
|
6522
6569
|
]);
|
|
6523
|
-
return /* @__PURE__ */ (0,
|
|
6524
|
-
|
|
6570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6571
|
+
import_radix_ui33.Tabs.Trigger,
|
|
6525
6572
|
__spreadValues({
|
|
6526
6573
|
"data-slot": "tabs-trigger",
|
|
6527
6574
|
"data-icon-position": iconPosition,
|
|
@@ -6546,8 +6593,8 @@ function TabsContent(_a) {
|
|
|
6546
6593
|
} = _b, props = __objRest(_b, [
|
|
6547
6594
|
"className"
|
|
6548
6595
|
]);
|
|
6549
|
-
return /* @__PURE__ */ (0,
|
|
6550
|
-
|
|
6596
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6597
|
+
import_radix_ui33.Tabs.Content,
|
|
6551
6598
|
__spreadValues({
|
|
6552
6599
|
"data-slot": "tabs-content",
|
|
6553
6600
|
className: cn("flex-1 outline-none", className)
|
|
@@ -6557,7 +6604,7 @@ function TabsContent(_a) {
|
|
|
6557
6604
|
|
|
6558
6605
|
// components/ui/ticket-card.tsx
|
|
6559
6606
|
var import_lucide_react23 = require("lucide-react");
|
|
6560
|
-
var
|
|
6607
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
6561
6608
|
function TicketCard({
|
|
6562
6609
|
icon,
|
|
6563
6610
|
label,
|
|
@@ -6568,7 +6615,7 @@ function TicketCard({
|
|
|
6568
6615
|
stubDisabled = false,
|
|
6569
6616
|
className
|
|
6570
6617
|
}) {
|
|
6571
|
-
return /* @__PURE__ */ (0,
|
|
6618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
6572
6619
|
"div",
|
|
6573
6620
|
{
|
|
6574
6621
|
"data-slot": "ticket-card",
|
|
@@ -6578,27 +6625,27 @@ function TicketCard({
|
|
|
6578
6625
|
className
|
|
6579
6626
|
),
|
|
6580
6627
|
children: [
|
|
6581
|
-
/* @__PURE__ */ (0,
|
|
6582
|
-
icon && /* @__PURE__ */ (0,
|
|
6583
|
-
/* @__PURE__ */ (0,
|
|
6584
|
-
label && /* @__PURE__ */ (0,
|
|
6585
|
-
value && /* @__PURE__ */ (0,
|
|
6628
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "relative flex min-w-0 flex-1 items-center gap-3 px-4 py-4 sm:gap-4 sm:px-5", children: [
|
|
6629
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex shrink-0 size-11 rounded-full border-2 border-primary items-center justify-center text-primary sm:size-12", children: icon }),
|
|
6630
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5 overflow-hidden", children: [
|
|
6631
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-on-subtle text-xs font-semibold", children: label }),
|
|
6632
|
+
value && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "truncate text-lg font-bold text-on-prominent sm:text-xl", children: value })
|
|
6586
6633
|
] }),
|
|
6587
|
-
/* @__PURE__ */ (0,
|
|
6634
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6588
6635
|
"div",
|
|
6589
6636
|
{
|
|
6590
6637
|
"aria-hidden": true,
|
|
6591
6638
|
className: "pointer-events-none absolute right-0 top-0 z-10 size-5 -translate-y-1/2 translate-x-1/2 rounded-full bg-prominent"
|
|
6592
6639
|
}
|
|
6593
6640
|
),
|
|
6594
|
-
/* @__PURE__ */ (0,
|
|
6641
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6595
6642
|
"div",
|
|
6596
6643
|
{
|
|
6597
6644
|
"aria-hidden": true,
|
|
6598
6645
|
className: "pointer-events-none absolute bottom-0 right-0 z-10 size-5 translate-x-1/2 translate-y-1/2 rounded-full bg-prominent"
|
|
6599
6646
|
}
|
|
6600
6647
|
),
|
|
6601
|
-
/* @__PURE__ */ (0,
|
|
6648
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6602
6649
|
"div",
|
|
6603
6650
|
{
|
|
6604
6651
|
"aria-hidden": true,
|
|
@@ -6606,13 +6653,13 @@ function TicketCard({
|
|
|
6606
6653
|
}
|
|
6607
6654
|
)
|
|
6608
6655
|
] }),
|
|
6609
|
-
/* @__PURE__ */ (0,
|
|
6656
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6610
6657
|
"div",
|
|
6611
6658
|
{
|
|
6612
6659
|
className: cn(
|
|
6613
6660
|
"relative z-[1] inline-flex max-w-[72%] shrink-0 self-stretch sm:max-w-[44%]"
|
|
6614
6661
|
),
|
|
6615
|
-
children: /* @__PURE__ */ (0,
|
|
6662
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
6616
6663
|
"button",
|
|
6617
6664
|
{
|
|
6618
6665
|
type: "button",
|
|
@@ -6624,7 +6671,7 @@ function TicketCard({
|
|
|
6624
6671
|
stubDisabled ? "bg-primary/30 cursor-not-allowed opacity-50 pointer-events-none" : "bg-primary cursor-pointer hover:bg-primary-hover"
|
|
6625
6672
|
),
|
|
6626
6673
|
children: [
|
|
6627
|
-
!stubDisabled && /* @__PURE__ */ (0,
|
|
6674
|
+
!stubDisabled && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6628
6675
|
"span",
|
|
6629
6676
|
{
|
|
6630
6677
|
"aria-hidden": true,
|
|
@@ -6634,8 +6681,8 @@ function TicketCard({
|
|
|
6634
6681
|
}
|
|
6635
6682
|
}
|
|
6636
6683
|
),
|
|
6637
|
-
stubIcon != null ? stubIcon : /* @__PURE__ */ (0,
|
|
6638
|
-
stubLabel && /* @__PURE__ */ (0,
|
|
6684
|
+
stubIcon != null ? stubIcon : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react23.ArrowRight, { className: "relative size-5 shrink-0 text-on-prominent-static-inverse" }),
|
|
6685
|
+
stubLabel && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "max-w-full text-balance text-center text-xs font-bold leading-tight tracking-wide text-on-prominent-static-inverse sm:tracking-widest", children: stubLabel })
|
|
6639
6686
|
]
|
|
6640
6687
|
}
|
|
6641
6688
|
)
|
|
@@ -6647,10 +6694,10 @@ function TicketCard({
|
|
|
6647
6694
|
}
|
|
6648
6695
|
|
|
6649
6696
|
// components/ui/toggle.tsx
|
|
6650
|
-
var
|
|
6651
|
-
var
|
|
6652
|
-
var
|
|
6653
|
-
var toggleVariants = (0,
|
|
6697
|
+
var import_class_variance_authority14 = require("class-variance-authority");
|
|
6698
|
+
var import_radix_ui34 = require("radix-ui");
|
|
6699
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
6700
|
+
var toggleVariants = (0, import_class_variance_authority14.cva)(
|
|
6654
6701
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-secondary-hover hover:text-on-prominent focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-secondary-hover data-[state=on]:border-transparent data-[state=on]:text-primary [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
6655
6702
|
{
|
|
6656
6703
|
variants: {
|
|
@@ -6680,8 +6727,8 @@ function Toggle(_a) {
|
|
|
6680
6727
|
"variant",
|
|
6681
6728
|
"size"
|
|
6682
6729
|
]);
|
|
6683
|
-
return /* @__PURE__ */ (0,
|
|
6684
|
-
|
|
6730
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6731
|
+
import_radix_ui34.Toggle.Root,
|
|
6685
6732
|
__spreadValues({
|
|
6686
6733
|
"data-slot": "toggle",
|
|
6687
6734
|
className: cn(toggleVariants({ variant, size, className }))
|
|
@@ -6691,8 +6738,8 @@ function Toggle(_a) {
|
|
|
6691
6738
|
|
|
6692
6739
|
// components/ui/toggle-group.tsx
|
|
6693
6740
|
var React12 = __toESM(require("react"), 1);
|
|
6694
|
-
var
|
|
6695
|
-
var
|
|
6741
|
+
var import_radix_ui35 = require("radix-ui");
|
|
6742
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
6696
6743
|
var ToggleGroupContext = React12.createContext({
|
|
6697
6744
|
size: "default",
|
|
6698
6745
|
variant: "default",
|
|
@@ -6712,8 +6759,8 @@ function ToggleGroup(_a) {
|
|
|
6712
6759
|
"spacing",
|
|
6713
6760
|
"children"
|
|
6714
6761
|
]);
|
|
6715
|
-
return /* @__PURE__ */ (0,
|
|
6716
|
-
|
|
6762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
6763
|
+
import_radix_ui35.ToggleGroup.Root,
|
|
6717
6764
|
__spreadProps(__spreadValues({
|
|
6718
6765
|
"data-slot": "toggle-group",
|
|
6719
6766
|
"data-variant": variant,
|
|
@@ -6725,7 +6772,7 @@ function ToggleGroup(_a) {
|
|
|
6725
6772
|
className
|
|
6726
6773
|
)
|
|
6727
6774
|
}, props), {
|
|
6728
|
-
children: /* @__PURE__ */ (0,
|
|
6775
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
|
|
6729
6776
|
})
|
|
6730
6777
|
);
|
|
6731
6778
|
}
|
|
@@ -6742,8 +6789,8 @@ function ToggleGroupItem(_a) {
|
|
|
6742
6789
|
"size"
|
|
6743
6790
|
]);
|
|
6744
6791
|
const context = React12.useContext(ToggleGroupContext);
|
|
6745
|
-
return /* @__PURE__ */ (0,
|
|
6746
|
-
|
|
6792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
6793
|
+
import_radix_ui35.ToggleGroup.Item,
|
|
6747
6794
|
__spreadProps(__spreadValues({
|
|
6748
6795
|
"data-slot": "toggle-group-item",
|
|
6749
6796
|
"data-variant": context.variant || variant,
|
|
@@ -6969,6 +7016,7 @@ function ToggleGroupItem(_a) {
|
|
|
6969
7016
|
NativeSelect,
|
|
6970
7017
|
NativeSelectOptGroup,
|
|
6971
7018
|
NativeSelectOption,
|
|
7019
|
+
NavigationButton,
|
|
6972
7020
|
NavigationMenu,
|
|
6973
7021
|
NavigationMenuContent,
|
|
6974
7022
|
NavigationMenuIndicator,
|
|
@@ -7073,6 +7121,7 @@ function ToggleGroupItem(_a) {
|
|
|
7073
7121
|
cn,
|
|
7074
7122
|
inputVariants,
|
|
7075
7123
|
linkVariants,
|
|
7124
|
+
navigationButtonVariants,
|
|
7076
7125
|
navigationMenuTriggerStyle,
|
|
7077
7126
|
tabsListVariants,
|
|
7078
7127
|
toggleVariants,
|