myshell-react-lib 0.1.44 → 0.1.46
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.cjs +285 -278
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +247 -240
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4085,7 +4085,7 @@ __export(index_exports, {
|
|
|
4085
4085
|
return AlertDialogTrigger;
|
|
4086
4086
|
},
|
|
4087
4087
|
ArrowLeftIcon: function() {
|
|
4088
|
-
return
|
|
4088
|
+
return ArrowLeftIcon;
|
|
4089
4089
|
},
|
|
4090
4090
|
ArrowUpTrayIcon: function() {
|
|
4091
4091
|
return ArrowUpTrayIcon;
|
|
@@ -11473,10 +11473,30 @@ var ScrollBar = React30.forwardRef(function(_param, ref) {
|
|
|
11473
11473
|
});
|
|
11474
11474
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
11475
11475
|
// src/components/top-navigation-bar.tsx
|
|
11476
|
-
var import_outline = require("@heroicons/react/24/outline");
|
|
11477
11476
|
var import_react14 = require("react");
|
|
11478
11477
|
var import_react_use7 = require("react-use");
|
|
11478
|
+
// src/components/icons/outline/ArrowLeftIcon.tsx
|
|
11479
|
+
var React31 = __toESM(require("react"), 1);
|
|
11479
11480
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
11481
|
+
var ArrowLeftIcon = React31.forwardRef(function(props, ref) {
|
|
11482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
11483
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("svg", {
|
|
11484
|
+
width: "22",
|
|
11485
|
+
height: "22",
|
|
11486
|
+
viewBox: "0 0 22 22",
|
|
11487
|
+
fill: "none",
|
|
11488
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11489
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", {
|
|
11490
|
+
"fill-rule": "evenodd",
|
|
11491
|
+
"clip-rule": "evenodd",
|
|
11492
|
+
d: "M11.4879 4.09541C11.7573 4.36487 11.7573 4.80175 11.4879 5.07121L6.24912 10.31H17.4166C17.7977 10.31 18.1066 10.6189 18.1066 11C18.1066 11.3811 17.7977 11.69 17.4166 11.69H6.24912L11.4879 16.9287C11.7573 17.1982 11.7573 17.6351 11.4879 17.9045C11.2184 18.174 10.7815 18.174 10.5121 17.9045L4.09541 11.4879C3.82595 11.2184 3.82595 10.7815 4.09541 10.5121L10.5121 4.09541C10.7815 3.82595 11.2184 3.82595 11.4879 4.09541Z",
|
|
11493
|
+
fill: "currentColor"
|
|
11494
|
+
})
|
|
11495
|
+
})
|
|
11496
|
+
}));
|
|
11497
|
+
});
|
|
11498
|
+
// src/components/top-navigation-bar.tsx
|
|
11499
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
11480
11500
|
function TopNavigationBar(param) {
|
|
11481
11501
|
var searchElement = param.searchElement, title = param.title, border = param.border, backUrl = param.backUrl, children = param.children, _param_hasBackground = param.hasBackground, hasBackground = _param_hasBackground === void 0 ? false : _param_hasBackground, avatar = param.avatar, onBack = param.onBack, _param_pageType = param.pageType, pageType = _param_pageType === void 0 ? 2 : _param_pageType, className = param.className;
|
|
11482
11502
|
var isMobile2 = (0, import_react_use7.useMedia)("(max-width: 768px)");
|
|
@@ -11500,69 +11520,77 @@ function TopNavigationBar(param) {
|
|
|
11500
11520
|
}, [
|
|
11501
11521
|
hasBackground
|
|
11502
11522
|
]);
|
|
11503
|
-
return /* @__PURE__ */ (0,
|
|
11523
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", {
|
|
11504
11524
|
ref: navbarRef,
|
|
11505
11525
|
className: cn("w-full flex flex-col md:flex-row justify-center items-center px-4 md:px-6", !isMobile2 && border && "border-b border-Colors-Border-Default", showBackground ? "bg-Colors-Background-Normal-Primary-Default" : "bg-cc-Button-Plain-bg-default md:bg-Colors-Background-Normal-Primary-Default", className),
|
|
11506
11526
|
children: [
|
|
11507
|
-
/* @__PURE__ */ (0,
|
|
11527
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", {
|
|
11508
11528
|
className: cn("relative w-full flex justify-between items-center h-13 md:h-15", searchElement && "pt-5 pb-1.5 md:pt-2 md:pb-2"),
|
|
11509
11529
|
children: [
|
|
11510
|
-
/* @__PURE__ */ (0,
|
|
11511
|
-
className: "flex
|
|
11530
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", {
|
|
11531
|
+
className: "flex items-center justify-start",
|
|
11512
11532
|
children: [
|
|
11513
|
-
(backUrl || onBack) && /* @__PURE__ */ (0,
|
|
11533
|
+
(backUrl || onBack) && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", {
|
|
11514
11534
|
className: "flex justify-start items-center",
|
|
11515
11535
|
children: [
|
|
11516
|
-
backUrl ? /* @__PURE__ */ (0,
|
|
11536
|
+
backUrl ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Link, {
|
|
11517
11537
|
href: backUrl,
|
|
11518
11538
|
className: "flex justify-center items-center",
|
|
11519
|
-
children: /* @__PURE__ */ (0,
|
|
11539
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IconButton, {
|
|
11520
11540
|
variant: !hasBackground ? "primary" : "plain",
|
|
11521
11541
|
color: !hasBackground ? "gray" : "brand",
|
|
11522
11542
|
size: "md",
|
|
11523
|
-
icon:
|
|
11543
|
+
icon: ArrowLeftIcon
|
|
11524
11544
|
})
|
|
11525
|
-
}) : /* @__PURE__ */ (0,
|
|
11545
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IconButton, {
|
|
11526
11546
|
variant: !hasBackground ? "primary" : "plain",
|
|
11527
11547
|
color: !hasBackground ? "gray" : "brand",
|
|
11528
11548
|
size: "md",
|
|
11529
|
-
icon:
|
|
11549
|
+
icon: ArrowLeftIcon,
|
|
11530
11550
|
onClick: onBack
|
|
11531
11551
|
}),
|
|
11532
|
-
!isMobile2 && title && /* @__PURE__ */ (0,
|
|
11552
|
+
!isMobile2 && title && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Separator, {
|
|
11533
11553
|
orientation: "vertical",
|
|
11534
11554
|
className: "h-5 ml-1.5 mr-3"
|
|
11535
11555
|
})
|
|
11536
11556
|
]
|
|
11537
11557
|
}),
|
|
11538
|
-
title && !(avatar === null || avatar === void 0 ? void 0 : avatar.logo) && /* @__PURE__ */ (0,
|
|
11558
|
+
title && (!(avatar === null || avatar === void 0 ? void 0 : avatar.logo) || !isMobile2) && (pageType === 1 && !searchElement || !isMobile2) && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Display, {
|
|
11539
11559
|
size: "sm",
|
|
11540
11560
|
className: "line-clamp-1 text-xl",
|
|
11541
11561
|
children: title
|
|
11542
11562
|
})
|
|
11543
11563
|
]
|
|
11544
11564
|
}),
|
|
11545
|
-
/* @__PURE__ */ (0,
|
|
11546
|
-
className: "
|
|
11547
|
-
children:
|
|
11565
|
+
pageType === 2 && isMobile2 && !(avatar === null || avatar === void 0 ? void 0 : avatar.logo) && !searchElement && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", {
|
|
11566
|
+
className: "absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 z-10",
|
|
11567
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Display, {
|
|
11568
|
+
size: "sm",
|
|
11569
|
+
className: "line-clamp-1 text-xl",
|
|
11570
|
+
children: title
|
|
11571
|
+
})
|
|
11572
|
+
}),
|
|
11573
|
+
(avatar === null || avatar === void 0 ? void 0 : avatar.logo) ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", {
|
|
11574
|
+
className: "flex-1 flex-shrink-0 flex justify-center items-center",
|
|
11575
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", {
|
|
11548
11576
|
className: "flex items-center space-x-1.5",
|
|
11549
11577
|
children: [
|
|
11550
|
-
/* @__PURE__ */ (0,
|
|
11578
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Avatar, {
|
|
11551
11579
|
size: "sm",
|
|
11552
11580
|
src: avatar.logo
|
|
11553
11581
|
}),
|
|
11554
|
-
avatar.name && !isMobile2 && /* @__PURE__ */ (0,
|
|
11582
|
+
avatar.name && !isMobile2 && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Text, {
|
|
11555
11583
|
size: "lg",
|
|
11556
11584
|
weight: "medium",
|
|
11557
11585
|
children: avatar.name
|
|
11558
11586
|
})
|
|
11559
11587
|
]
|
|
11560
|
-
})
|
|
11561
|
-
}),
|
|
11562
|
-
/* @__PURE__ */ (0,
|
|
11563
|
-
className: "flex
|
|
11564
|
-
children: /* @__PURE__ */ (0,
|
|
11565
|
-
className: "flex items-center space-x-3",
|
|
11588
|
+
})
|
|
11589
|
+
}) : null,
|
|
11590
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", {
|
|
11591
|
+
className: cn("flex justify-end items-center", pageType === 2 && isMobile2 && searchElement && "w-full"),
|
|
11592
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", {
|
|
11593
|
+
className: "w-full md:w-auto flex items-center space-x-3",
|
|
11566
11594
|
children: [
|
|
11567
11595
|
searchElement && (!isMobile2 && pageType === 1 || pageType === 2) && searchElement,
|
|
11568
11596
|
children
|
|
@@ -11571,7 +11599,7 @@ function TopNavigationBar(param) {
|
|
|
11571
11599
|
})
|
|
11572
11600
|
]
|
|
11573
11601
|
}),
|
|
11574
|
-
searchElement && pageType === 1 && isMobile2 && /* @__PURE__ */ (0,
|
|
11602
|
+
searchElement && pageType === 1 && isMobile2 && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", {
|
|
11575
11603
|
className: "relative w-full h-13 py-2",
|
|
11576
11604
|
children: searchElement
|
|
11577
11605
|
})
|
|
@@ -11579,12 +11607,12 @@ function TopNavigationBar(param) {
|
|
|
11579
11607
|
});
|
|
11580
11608
|
}
|
|
11581
11609
|
// src/components/select.tsx
|
|
11582
|
-
var
|
|
11610
|
+
var import_outline = require("@heroicons/react/24/outline");
|
|
11583
11611
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
11584
11612
|
var import_lucide_react10 = require("lucide-react");
|
|
11585
|
-
var
|
|
11586
|
-
var
|
|
11587
|
-
var Select =
|
|
11613
|
+
var React32 = __toESM(require("react"), 1);
|
|
11614
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
11615
|
+
var Select = React32.forwardRef(function(_param, ref) {
|
|
11588
11616
|
var children = _param.children, placeholder = _param.placeholder, options = _param.options, triggerClassName = _param.triggerClassName, props = _object_without_properties(_param, [
|
|
11589
11617
|
"children",
|
|
11590
11618
|
"placeholder",
|
|
@@ -11595,26 +11623,26 @@ var Select = React31.forwardRef(function(_param, ref) {
|
|
|
11595
11623
|
var icon = options === null || options === void 0 ? void 0 : (_options_find = options.find(function(item) {
|
|
11596
11624
|
return item.value === props.value;
|
|
11597
11625
|
})) === null || _options_find === void 0 ? void 0 : _options_find.icon;
|
|
11598
|
-
return /* @__PURE__ */ (0,
|
|
11599
|
-
children: Array.isArray(options) && options.length ? /* @__PURE__ */ (0,
|
|
11626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Root, _object_spread_props(_object_spread({}, props), {
|
|
11627
|
+
children: Array.isArray(options) && options.length ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, {
|
|
11600
11628
|
children: [
|
|
11601
|
-
/* @__PURE__ */ (0,
|
|
11629
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectTrigger, {
|
|
11602
11630
|
className: cn(triggerClassName),
|
|
11603
|
-
children: /* @__PURE__ */ (0,
|
|
11631
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", {
|
|
11604
11632
|
className: "flex items-center",
|
|
11605
11633
|
children: [
|
|
11606
|
-
/* @__PURE__ */ (0,
|
|
11634
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectIcon, {
|
|
11607
11635
|
icon: icon
|
|
11608
11636
|
}),
|
|
11609
|
-
/* @__PURE__ */ (0,
|
|
11637
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectValue, {
|
|
11610
11638
|
placeholder: placeholder
|
|
11611
11639
|
})
|
|
11612
11640
|
]
|
|
11613
11641
|
})
|
|
11614
11642
|
}),
|
|
11615
|
-
/* @__PURE__ */ (0,
|
|
11643
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectContent, {
|
|
11616
11644
|
children: options.map(function(item, i) {
|
|
11617
|
-
return /* @__PURE__ */ (0,
|
|
11645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectItem, _object_spread_props(_object_spread({}, item), {
|
|
11618
11646
|
children: item.label
|
|
11619
11647
|
}), "".concat(item.value, "_").concat(i));
|
|
11620
11648
|
})
|
|
@@ -11625,20 +11653,20 @@ var Select = React31.forwardRef(function(_param, ref) {
|
|
|
11625
11653
|
});
|
|
11626
11654
|
var SelectGroup = SelectPrimitive.Group;
|
|
11627
11655
|
var SelectValue = SelectPrimitive.Value;
|
|
11628
|
-
var SelectTrigger =
|
|
11656
|
+
var SelectTrigger = React32.forwardRef(function(_param, ref) {
|
|
11629
11657
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
11630
11658
|
"className",
|
|
11631
11659
|
"children"
|
|
11632
11660
|
]);
|
|
11633
|
-
return /* @__PURE__ */ (0,
|
|
11661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(SelectPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
11634
11662
|
ref: ref,
|
|
11635
11663
|
className: cn("flex h-7 md:h-10 w-full items-center justify-between rounded-sm border border-Colors-Border-Default bg-Colors-Background-Neutral-On-Surface-Default text-Colors-Text-Default text-sm p-3 focus:shadow-cc-Focus-Rings-Brand-default placeholder:text-Colors-Text-Subtlest focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-30 [&>span]:line-clamp-1 [&>.select-chevron]:aria-expanded:rotate-180", className)
|
|
11636
11664
|
}, props), {
|
|
11637
11665
|
children: [
|
|
11638
11666
|
children,
|
|
11639
|
-
/* @__PURE__ */ (0,
|
|
11667
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Icon, {
|
|
11640
11668
|
asChild: true,
|
|
11641
|
-
children: /* @__PURE__ */ (0,
|
|
11669
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronDown, {
|
|
11642
11670
|
className: "select-chevron h-5 w-5 text-Colors-Foreground-Subtle duration-200"
|
|
11643
11671
|
})
|
|
11644
11672
|
})
|
|
@@ -11646,47 +11674,47 @@ var SelectTrigger = React31.forwardRef(function(_param, ref) {
|
|
|
11646
11674
|
}));
|
|
11647
11675
|
});
|
|
11648
11676
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
11649
|
-
var SelectScrollUpButton =
|
|
11677
|
+
var SelectScrollUpButton = React32.forwardRef(function(_param, ref) {
|
|
11650
11678
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11651
11679
|
"className"
|
|
11652
11680
|
]);
|
|
11653
|
-
return /* @__PURE__ */ (0,
|
|
11681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.ScrollUpButton, _object_spread_props(_object_spread({
|
|
11654
11682
|
ref: ref,
|
|
11655
11683
|
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
11656
11684
|
}, props), {
|
|
11657
|
-
children: /* @__PURE__ */ (0,
|
|
11685
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronUp, {
|
|
11658
11686
|
className: "h-4 w-4"
|
|
11659
11687
|
})
|
|
11660
11688
|
}));
|
|
11661
11689
|
});
|
|
11662
11690
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
11663
|
-
var SelectScrollDownButton =
|
|
11691
|
+
var SelectScrollDownButton = React32.forwardRef(function(_param, ref) {
|
|
11664
11692
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11665
11693
|
"className"
|
|
11666
11694
|
]);
|
|
11667
|
-
return /* @__PURE__ */ (0,
|
|
11695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.ScrollDownButton, _object_spread_props(_object_spread({
|
|
11668
11696
|
ref: ref,
|
|
11669
11697
|
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
11670
11698
|
}, props), {
|
|
11671
|
-
children: /* @__PURE__ */ (0,
|
|
11699
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronDown, {
|
|
11672
11700
|
className: "h-4 w-4"
|
|
11673
11701
|
})
|
|
11674
11702
|
}));
|
|
11675
11703
|
});
|
|
11676
11704
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
11677
|
-
var SelectContent =
|
|
11705
|
+
var SelectContent = React32.forwardRef(function(_param, ref) {
|
|
11678
11706
|
var className = _param.className, children = _param.children, _param_position = _param.position, position = _param_position === void 0 ? "popper" : _param_position, props = _object_without_properties(_param, [
|
|
11679
11707
|
"className",
|
|
11680
11708
|
"children",
|
|
11681
11709
|
"position"
|
|
11682
11710
|
]);
|
|
11683
|
-
return /* @__PURE__ */ (0,
|
|
11684
|
-
children: /* @__PURE__ */ (0,
|
|
11711
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Portal, {
|
|
11712
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Content, _object_spread_props(_object_spread({
|
|
11685
11713
|
ref: ref,
|
|
11686
11714
|
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Opaque bg-Colors-Background-Normal-Primary-Default text-Colors-Text-Default shadow-modal-default data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
|
|
11687
11715
|
position: position
|
|
11688
11716
|
}, props), {
|
|
11689
|
-
children: /* @__PURE__ */ (0,
|
|
11717
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Viewport, {
|
|
11690
11718
|
className: cn("p-1.5 space-y-1.5", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
|
|
11691
11719
|
children: children
|
|
11692
11720
|
})
|
|
@@ -11694,11 +11722,11 @@ var SelectContent = React31.forwardRef(function(_param, ref) {
|
|
|
11694
11722
|
});
|
|
11695
11723
|
});
|
|
11696
11724
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
11697
|
-
var SelectLabel =
|
|
11725
|
+
var SelectLabel = React32.forwardRef(function(_param, ref) {
|
|
11698
11726
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11699
11727
|
"className"
|
|
11700
11728
|
]);
|
|
11701
|
-
return /* @__PURE__ */ (0,
|
|
11729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Label, _object_spread({
|
|
11702
11730
|
ref: ref,
|
|
11703
11731
|
className: cn("py-1 px-3 text-sm font-medium text-Colors-Text-Subtler", className)
|
|
11704
11732
|
}, props));
|
|
@@ -11709,55 +11737,55 @@ function SelectIcon(props) {
|
|
|
11709
11737
|
if (!icon) {
|
|
11710
11738
|
return null;
|
|
11711
11739
|
}
|
|
11712
|
-
return /* @__PURE__ */ (0,
|
|
11740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Icon, {
|
|
11713
11741
|
children: typeof icon === "string" ? // 如果是字符串URL,作为背景图片显示
|
|
11714
|
-
/* @__PURE__ */ (0,
|
|
11742
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", {
|
|
11715
11743
|
className: cn("aspect-[20/20] w-5 h-5 relative bg-cover bg-no-repeat rounded-sm overflow-hidden mr-1.5", critical && "text-Colors-Text-Critical-Default"),
|
|
11716
11744
|
style: {
|
|
11717
11745
|
backgroundImage: "url('".concat(icon, "')")
|
|
11718
11746
|
}
|
|
11719
|
-
}) :
|
|
11720
|
-
/* @__PURE__ */ (0,
|
|
11747
|
+
}) : React32.isValidElement(icon) ? // 如果是React元素,直接渲染
|
|
11748
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", {
|
|
11721
11749
|
className: cn("mr-1.5 w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default"),
|
|
11722
11750
|
children: icon
|
|
11723
11751
|
}) : // 如果是组件类型,创建元素
|
|
11724
|
-
/* @__PURE__ */ (0,
|
|
11752
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", {
|
|
11725
11753
|
className: cn("mr-1.5 w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default"),
|
|
11726
|
-
children:
|
|
11754
|
+
children: React32.createElement(icon, {
|
|
11727
11755
|
className: cn("w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default")
|
|
11728
11756
|
})
|
|
11729
11757
|
})
|
|
11730
11758
|
});
|
|
11731
11759
|
}
|
|
11732
11760
|
SelectIcon.displayName = SelectPrimitive.Icon.displayName;
|
|
11733
|
-
var SelectItem =
|
|
11761
|
+
var SelectItem = React32.forwardRef(function(_param, ref) {
|
|
11734
11762
|
var className = _param.className, children = _param.children, icon = _param.icon, critical = _param.critical, props = _object_without_properties(_param, [
|
|
11735
11763
|
"className",
|
|
11736
11764
|
"children",
|
|
11737
11765
|
"icon",
|
|
11738
11766
|
"critical"
|
|
11739
11767
|
]);
|
|
11740
|
-
return /* @__PURE__ */ (0,
|
|
11768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(SelectPrimitive.Item, _object_spread_props(_object_spread({
|
|
11741
11769
|
ref: ref,
|
|
11742
11770
|
className: cn("relative flex justify-between w-full text-sm cursor-pointer select-none items-center rounded-sm py-1 px-1.5 outline-none", "bg-Colors-Background-Normal-Secondary-Alt hover:bg-Colors-Background-Normal-Primary-Hover focus:bg-Colors-Background-Neutral-Primary-Default data-[disabled]:opacity-30 data-[disabled]:cursor-not-allowed", critical ? "text-Colors-Text-Critical-Default" : "focus:text-Colors-Text-Default", className)
|
|
11743
11771
|
}, props), {
|
|
11744
11772
|
children: [
|
|
11745
|
-
/* @__PURE__ */ (0,
|
|
11773
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("span", {
|
|
11746
11774
|
className: "flex items-center grow",
|
|
11747
11775
|
children: [
|
|
11748
|
-
/* @__PURE__ */ (0,
|
|
11776
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectIcon, {
|
|
11749
11777
|
icon: icon,
|
|
11750
11778
|
critical: critical
|
|
11751
11779
|
}),
|
|
11752
|
-
/* @__PURE__ */ (0,
|
|
11780
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.ItemText, {
|
|
11753
11781
|
children: children
|
|
11754
11782
|
})
|
|
11755
11783
|
]
|
|
11756
11784
|
}),
|
|
11757
|
-
/* @__PURE__ */ (0,
|
|
11785
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", {
|
|
11758
11786
|
className: "flex h-4 w-4 items-center justify-center",
|
|
11759
|
-
children: /* @__PURE__ */ (0,
|
|
11760
|
-
children: /* @__PURE__ */ (0,
|
|
11787
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.ItemIndicator, {
|
|
11788
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_outline.CheckIcon, {
|
|
11761
11789
|
className: "h-4 w-4 text-Colors-Foreground-Subtle stroke-[2px]"
|
|
11762
11790
|
})
|
|
11763
11791
|
})
|
|
@@ -11766,11 +11794,11 @@ var SelectItem = React31.forwardRef(function(_param, ref) {
|
|
|
11766
11794
|
}));
|
|
11767
11795
|
});
|
|
11768
11796
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
11769
|
-
var SelectSeparator =
|
|
11797
|
+
var SelectSeparator = React32.forwardRef(function(_param, ref) {
|
|
11770
11798
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11771
11799
|
"className"
|
|
11772
11800
|
]);
|
|
11773
|
-
return /* @__PURE__ */ (0,
|
|
11801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Separator, _object_spread({
|
|
11774
11802
|
ref: ref,
|
|
11775
11803
|
className: cn("-mx-1 my-1 h-px bg-border-default", className)
|
|
11776
11804
|
}, props));
|
|
@@ -11780,17 +11808,17 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
|
11780
11808
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
11781
11809
|
var import_class_variance_authority14 = require("class-variance-authority");
|
|
11782
11810
|
var import_lucide_react11 = require("lucide-react");
|
|
11783
|
-
var
|
|
11784
|
-
var
|
|
11811
|
+
var React33 = __toESM(require("react"), 1);
|
|
11812
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
11785
11813
|
var Sheet = SheetPrimitive.Root;
|
|
11786
11814
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
11787
11815
|
var SheetClose = SheetPrimitive.Close;
|
|
11788
11816
|
var SheetPortal = SheetPrimitive.Portal;
|
|
11789
|
-
var SheetOverlay =
|
|
11817
|
+
var SheetOverlay = React33.forwardRef(function(_param, ref) {
|
|
11790
11818
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11791
11819
|
"className"
|
|
11792
11820
|
]);
|
|
11793
|
-
return /* @__PURE__ */ (0,
|
|
11821
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SheetPrimitive.Overlay, _object_spread_props(_object_spread({
|
|
11794
11822
|
className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className)
|
|
11795
11823
|
}, props), {
|
|
11796
11824
|
ref: ref
|
|
@@ -11810,16 +11838,16 @@ var sheetVariants = (0, import_class_variance_authority14.cva)("fixed z-50 gap-4
|
|
|
11810
11838
|
side: "right"
|
|
11811
11839
|
}
|
|
11812
11840
|
});
|
|
11813
|
-
var SheetContent =
|
|
11841
|
+
var SheetContent = React33.forwardRef(function(_param, ref) {
|
|
11814
11842
|
var _param_side = _param.side, side = _param_side === void 0 ? "right" : _param_side, className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
11815
11843
|
"side",
|
|
11816
11844
|
"className",
|
|
11817
11845
|
"children"
|
|
11818
11846
|
]);
|
|
11819
|
-
return /* @__PURE__ */ (0,
|
|
11847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(SheetPortal, {
|
|
11820
11848
|
children: [
|
|
11821
|
-
/* @__PURE__ */ (0,
|
|
11822
|
-
/* @__PURE__ */ (0,
|
|
11849
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SheetOverlay, {}),
|
|
11850
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(SheetPrimitive.Content, _object_spread_props(_object_spread({
|
|
11823
11851
|
ref: ref,
|
|
11824
11852
|
className: cn(sheetVariants({
|
|
11825
11853
|
side: side
|
|
@@ -11827,13 +11855,13 @@ var SheetContent = React32.forwardRef(function(_param, ref) {
|
|
|
11827
11855
|
}, props), {
|
|
11828
11856
|
children: [
|
|
11829
11857
|
children,
|
|
11830
|
-
/* @__PURE__ */ (0,
|
|
11858
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(SheetPrimitive.Close, {
|
|
11831
11859
|
className: "absolute right-4 top-4 rounded-xxs opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-slate-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-slate-100 dark:ring-offset-slate-950 dark:focus:ring-slate-300 dark:data-[state=open]:bg-slate-800",
|
|
11832
11860
|
children: [
|
|
11833
|
-
/* @__PURE__ */ (0,
|
|
11861
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react11.X, {
|
|
11834
11862
|
className: "h-4 w-4"
|
|
11835
11863
|
}),
|
|
11836
|
-
/* @__PURE__ */ (0,
|
|
11864
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", {
|
|
11837
11865
|
className: "sr-only",
|
|
11838
11866
|
children: "Close"
|
|
11839
11867
|
})
|
|
@@ -11849,7 +11877,7 @@ var SheetHeader = function(_param) {
|
|
|
11849
11877
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11850
11878
|
"className"
|
|
11851
11879
|
]);
|
|
11852
|
-
return /* @__PURE__ */ (0,
|
|
11880
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", _object_spread({
|
|
11853
11881
|
className: cn("flex flex-col space-y-2 text-center sm:text-left", className)
|
|
11854
11882
|
}, props));
|
|
11855
11883
|
};
|
|
@@ -11858,65 +11886,65 @@ var SheetFooter = function(_param) {
|
|
|
11858
11886
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11859
11887
|
"className"
|
|
11860
11888
|
]);
|
|
11861
|
-
return /* @__PURE__ */ (0,
|
|
11889
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", _object_spread({
|
|
11862
11890
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
|
|
11863
11891
|
}, props));
|
|
11864
11892
|
};
|
|
11865
11893
|
SheetFooter.displayName = "SheetFooter";
|
|
11866
|
-
var SheetTitle =
|
|
11894
|
+
var SheetTitle = React33.forwardRef(function(_param, ref) {
|
|
11867
11895
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11868
11896
|
"className"
|
|
11869
11897
|
]);
|
|
11870
|
-
return /* @__PURE__ */ (0,
|
|
11898
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SheetPrimitive.Title, _object_spread({
|
|
11871
11899
|
ref: ref,
|
|
11872
11900
|
className: cn("text-lg font-semibold text-slate-950 dark:text-slate-50", className)
|
|
11873
11901
|
}, props));
|
|
11874
11902
|
});
|
|
11875
11903
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
11876
|
-
var SheetDescription =
|
|
11904
|
+
var SheetDescription = React33.forwardRef(function(_param, ref) {
|
|
11877
11905
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11878
11906
|
"className"
|
|
11879
11907
|
]);
|
|
11880
|
-
return /* @__PURE__ */ (0,
|
|
11908
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SheetPrimitive.Description, _object_spread({
|
|
11881
11909
|
ref: ref,
|
|
11882
11910
|
className: cn("text-sm text-slate-500 dark:text-slate-400", className)
|
|
11883
11911
|
}, props));
|
|
11884
11912
|
});
|
|
11885
11913
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
11886
11914
|
// src/components/skeleton.tsx
|
|
11887
|
-
var
|
|
11915
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
11888
11916
|
function Skeleton(_param) {
|
|
11889
11917
|
var className = _param.className, _param_animate = _param.animate, animate = _param_animate === void 0 ? true : _param_animate, props = _object_without_properties(_param, [
|
|
11890
11918
|
"className",
|
|
11891
11919
|
"animate"
|
|
11892
11920
|
]);
|
|
11893
|
-
return /* @__PURE__ */ (0,
|
|
11921
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", _object_spread({
|
|
11894
11922
|
className: cn("rounded-sm bg-Colors-Background-Normal-Secondary-Default", className, animate && "animate-pulse")
|
|
11895
11923
|
}, props));
|
|
11896
11924
|
}
|
|
11897
11925
|
// src/components/slider.tsx
|
|
11898
11926
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
|
|
11899
|
-
var
|
|
11900
|
-
var
|
|
11901
|
-
var Slider =
|
|
11927
|
+
var React34 = __toESM(require("react"), 1);
|
|
11928
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
11929
|
+
var Slider = React34.forwardRef(function(_param, ref) {
|
|
11902
11930
|
var className = _param.className, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, props = _object_without_properties(_param, [
|
|
11903
11931
|
"className",
|
|
11904
11932
|
"size"
|
|
11905
11933
|
]);
|
|
11906
|
-
return /* @__PURE__ */ (0,
|
|
11934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", {
|
|
11907
11935
|
className: "w-full p-3 flex justify-center items-center h-10 rounded-md border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active shadow-background-default text-sm text-Colors-Text-Default hover:border-Colors-Border-Hover hover:bg-Colors-Foreground-Subtle aria-[invalid=true]:border-Colors-Border-Critical aria-[invalid=true]:hover:border-Colors-Border-Critical aria-[invalid=true]:hover:bg-Colors-Utility-Terracotta-5 aria-[invalid=true]:focus-visible:ring-error file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-Colors-Text-Subtler focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-30",
|
|
11908
|
-
children: /* @__PURE__ */ (0,
|
|
11936
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
11909
11937
|
ref: ref,
|
|
11910
11938
|
className: cn("relative flex w-full touch-none select-none items-center", className)
|
|
11911
11939
|
}, props), {
|
|
11912
11940
|
children: [
|
|
11913
|
-
/* @__PURE__ */ (0,
|
|
11941
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SliderPrimitive.Track, {
|
|
11914
11942
|
className: cn("relative w-full grow overflow-hidden rounded-full bg-Colors-Background-Neutral-Primary-Hover data-[disabled]:opacity-30", size === "sm" ? "h-0.5" : "h-1.5"),
|
|
11915
|
-
children: /* @__PURE__ */ (0,
|
|
11943
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SliderPrimitive.Range, {
|
|
11916
11944
|
className: "absolute h-full bg-Colors-Background-Brand-Default data-[disabled]:opacity-30"
|
|
11917
11945
|
})
|
|
11918
11946
|
}),
|
|
11919
|
-
/* @__PURE__ */ (0,
|
|
11947
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SliderPrimitive.Thumb, {
|
|
11920
11948
|
className: cn("block rounded-full border-Colors-Utility-Lake-Blue-40 bg-Colors-Background-Normal-Primary-Default transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 data-[disabled]:pointer-events-none data-[disabled]:opacity-30", size === "sm" ? "w-2 h-2 border-[1.5px]" : "w-5 h-5 border-[3px]")
|
|
11921
11949
|
})
|
|
11922
11950
|
]
|
|
@@ -11924,7 +11952,7 @@ var Slider = React33.forwardRef(function(_param, ref) {
|
|
|
11924
11952
|
});
|
|
11925
11953
|
});
|
|
11926
11954
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
11927
|
-
var SliderSingle =
|
|
11955
|
+
var SliderSingle = React34.forwardRef(function(_param, ref) {
|
|
11928
11956
|
var className = _param.className, containerClassName = _param.containerClassName, trackClassName = _param.trackClassName, rangeClassName = _param.rangeClassName, thumbClassName = _param.thumbClassName, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, value1 = _param.value, defaultValue = _param.defaultValue, onValueChange = _param.onValueChange, onValueCommit = _param.onValueCommit, _param_settable = _param.settable, settable = _param_settable === void 0 ? true : _param_settable, props = _object_without_properties(_param, [
|
|
11929
11957
|
"className",
|
|
11930
11958
|
"containerClassName",
|
|
@@ -11938,12 +11966,12 @@ var SliderSingle = React33.forwardRef(function(_param, ref) {
|
|
|
11938
11966
|
"onValueCommit",
|
|
11939
11967
|
"settable"
|
|
11940
11968
|
]);
|
|
11941
|
-
return /* @__PURE__ */ (0,
|
|
11969
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", {
|
|
11942
11970
|
className: "flex w-full items-center space-x-1.5",
|
|
11943
11971
|
children: [
|
|
11944
|
-
/* @__PURE__ */ (0,
|
|
11972
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", {
|
|
11945
11973
|
className: cn("w-full p-3 flex justify-center items-center h-10 rounded-md border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active shadow-background-default text-sm text-Colors-Text-Default hover:border-Colors-Border-Hover hover:bg-Colors-Foreground-Subtle aria-[invalid=true]:border-Colors-Border-Critical aria-[invalid=true]:hover:border-Colors-Border-Critical aria-[invalid=true]:hover:bg-Colors-Utility-Terracotta-5 aria-[invalid=true]:focus-visible:ring-error file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-Colors-Text-Subtler focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-30", containerClassName),
|
|
11946
|
-
children: /* @__PURE__ */ (0,
|
|
11974
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
11947
11975
|
ref: ref,
|
|
11948
11976
|
className: cn("relative flex w-full touch-none select-none items-center", className),
|
|
11949
11977
|
value: typeof value1 === "number" ? [
|
|
@@ -11960,21 +11988,21 @@ var SliderSingle = React33.forwardRef(function(_param, ref) {
|
|
|
11960
11988
|
}
|
|
11961
11989
|
}, props), {
|
|
11962
11990
|
children: [
|
|
11963
|
-
/* @__PURE__ */ (0,
|
|
11991
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SliderPrimitive.Track, {
|
|
11964
11992
|
className: cn("relative w-full grow overflow-hidden rounded-full bg-Colors-Background-Neutral-Primary-Hover data-[disabled]:opacity-30", size === "sm" ? "h-0.5" : "h-1.5", trackClassName),
|
|
11965
|
-
children: /* @__PURE__ */ (0,
|
|
11993
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SliderPrimitive.Range, {
|
|
11966
11994
|
className: cn("absolute h-full bg-Colors-Background-Brand-Default data-[disabled]:opacity-30", rangeClassName)
|
|
11967
11995
|
})
|
|
11968
11996
|
}),
|
|
11969
|
-
/* @__PURE__ */ (0,
|
|
11997
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SliderPrimitive.Thumb, {
|
|
11970
11998
|
className: cn("cursor-pointer block rounded-full border-Colors-Utility-Lake-Blue-40 bg-Colors-Background-Normal-Primary-Default transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 data-[disabled]:pointer-events-none data-[disabled]:opacity-30", size === "sm" ? "w-2 h-2 border-[1.5px]" : "w-5 h-5 border-[3px]", thumbClassName)
|
|
11971
11999
|
})
|
|
11972
12000
|
]
|
|
11973
12001
|
}))
|
|
11974
12002
|
}),
|
|
11975
|
-
settable && /* @__PURE__ */ (0,
|
|
12003
|
+
settable && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", {
|
|
11976
12004
|
className: "flex-shrink-0 w-14 h-9 flex justify-center items-center rounded-md",
|
|
11977
|
-
children: /* @__PURE__ */ (0,
|
|
12005
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(NumberInput, {
|
|
11978
12006
|
value: value1,
|
|
11979
12007
|
min: props === null || props === void 0 ? void 0 : props.min,
|
|
11980
12008
|
max: props === null || props === void 0 ? void 0 : props.max,
|
|
@@ -11993,7 +12021,7 @@ SliderSingle.displayName = "SliderSingle";
|
|
|
11993
12021
|
// src/components/spinner.tsx
|
|
11994
12022
|
var import_class_variance_authority15 = require("class-variance-authority");
|
|
11995
12023
|
var import_lucide_react12 = require("lucide-react");
|
|
11996
|
-
var
|
|
12024
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
11997
12025
|
var spinnerVariants = (0, import_class_variance_authority15.cva)("animate-spin", {
|
|
11998
12026
|
variants: {
|
|
11999
12027
|
size: {
|
|
@@ -12025,7 +12053,7 @@ var spinnerVariants = (0, import_class_variance_authority15.cva)("animate-spin",
|
|
|
12025
12053
|
});
|
|
12026
12054
|
function Spinner(props) {
|
|
12027
12055
|
var size = props.size, speed = props.speed, color = props.color, className = props.className;
|
|
12028
|
-
return /* @__PURE__ */ (0,
|
|
12056
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react12.Loader2, {
|
|
12029
12057
|
className: cn(spinnerVariants({
|
|
12030
12058
|
size: size,
|
|
12031
12059
|
speed: speed,
|
|
@@ -12036,8 +12064,8 @@ function Spinner(props) {
|
|
|
12036
12064
|
// src/components/switch.tsx
|
|
12037
12065
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
12038
12066
|
var import_class_variance_authority16 = require("class-variance-authority");
|
|
12039
|
-
var
|
|
12040
|
-
var
|
|
12067
|
+
var React35 = __toESM(require("react"), 1);
|
|
12068
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
12041
12069
|
var switchSize = {
|
|
12042
12070
|
sm: "w-7 h-4",
|
|
12043
12071
|
md: "w-[34px] h-5",
|
|
@@ -12119,7 +12147,7 @@ var switchThumbIconVariants = (0, import_class_variance_authority16.cva)("flex i
|
|
|
12119
12147
|
}
|
|
12120
12148
|
}
|
|
12121
12149
|
});
|
|
12122
|
-
var Switch =
|
|
12150
|
+
var Switch = React35.forwardRef(function(_param, ref) {
|
|
12123
12151
|
var className = _param.className, size = _param.size, label = _param.label, labelClassName = _param.labelClassName, vertical = _param.vertical, icon = _param.icon, props = _object_without_properties(_param, [
|
|
12124
12152
|
"className",
|
|
12125
12153
|
"size",
|
|
@@ -12128,23 +12156,23 @@ var Switch = React34.forwardRef(function(_param, ref) {
|
|
|
12128
12156
|
"vertical",
|
|
12129
12157
|
"icon"
|
|
12130
12158
|
]);
|
|
12131
|
-
var Component = label ? "div" :
|
|
12132
|
-
return /* @__PURE__ */ (0,
|
|
12159
|
+
var Component = label ? "div" : React35.Fragment;
|
|
12160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Component, {
|
|
12133
12161
|
className: cn("flex items-center justify-center space-x-1.5 text-Colors-Text-Default", vertical && "flex-col space-x-0 space-y-1.5"),
|
|
12134
12162
|
children: [
|
|
12135
|
-
/* @__PURE__ */ (0,
|
|
12163
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SwitchPrimitives.Root, _object_spread_props(_object_spread({
|
|
12136
12164
|
className: cn(switchRootVariants({
|
|
12137
12165
|
size: size,
|
|
12138
12166
|
vertical: vertical
|
|
12139
12167
|
}), className, vertical && "flex-col")
|
|
12140
12168
|
}, props), {
|
|
12141
12169
|
ref: ref,
|
|
12142
|
-
children: /* @__PURE__ */ (0,
|
|
12170
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SwitchPrimitives.Thumb, {
|
|
12143
12171
|
className: cn(switchThumbVariants({
|
|
12144
12172
|
size: size,
|
|
12145
12173
|
vertical: vertical
|
|
12146
12174
|
}), "flex items-center justify-center"),
|
|
12147
|
-
children: icon && /* @__PURE__ */ (0,
|
|
12175
|
+
children: icon && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, {
|
|
12148
12176
|
component: icon,
|
|
12149
12177
|
className: switchThumbIconVariants({
|
|
12150
12178
|
size: size
|
|
@@ -12152,7 +12180,7 @@ var Switch = React34.forwardRef(function(_param, ref) {
|
|
|
12152
12180
|
})
|
|
12153
12181
|
})
|
|
12154
12182
|
})),
|
|
12155
|
-
label && /* @__PURE__ */ (0,
|
|
12183
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", {
|
|
12156
12184
|
className: cn("text-sm", labelClassName),
|
|
12157
12185
|
children: label
|
|
12158
12186
|
})
|
|
@@ -12163,8 +12191,8 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
|
12163
12191
|
// src/components/tabs.tsx
|
|
12164
12192
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
12165
12193
|
var import_class_variance_authority17 = require("class-variance-authority");
|
|
12166
|
-
var
|
|
12167
|
-
var
|
|
12194
|
+
var React36 = __toESM(require("react"), 1);
|
|
12195
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
12168
12196
|
var TabsRoot = TabsPrimitive.Tabs;
|
|
12169
12197
|
var TabsList = TabsPrimitive.List;
|
|
12170
12198
|
var TabsTrigger = TabsPrimitive.Trigger;
|
|
@@ -12313,7 +12341,7 @@ var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-fl
|
|
|
12313
12341
|
rounded: "default"
|
|
12314
12342
|
}
|
|
12315
12343
|
});
|
|
12316
|
-
var Tabs2 =
|
|
12344
|
+
var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
12317
12345
|
var className = _param.className, listClassName = _param.listClassName, listBoxClassName = _param.listBoxClassName, contentClassName = _param.contentClassName, _param_variant = _param.variant, variant = _param_variant === void 0 ? "button" : _param_variant, size = _param.size, _param_isLink = _param.isLink, isLink = _param_isLink === void 0 ? false : _param_isLink, _param_rounded = _param.rounded, rounded = _param_rounded === void 0 ? "default" : _param_rounded, items = _param.items, props = _object_without_properties(_param, [
|
|
12318
12346
|
"className",
|
|
12319
12347
|
"listClassName",
|
|
@@ -12325,14 +12353,14 @@ var Tabs2 = React35.forwardRef(function(_param, ref) {
|
|
|
12325
12353
|
"rounded",
|
|
12326
12354
|
"items"
|
|
12327
12355
|
]);
|
|
12328
|
-
return /* @__PURE__ */ (0,
|
|
12356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(TabsPrimitive.Root, _object_spread_props(_object_spread({
|
|
12329
12357
|
ref: ref,
|
|
12330
12358
|
className: cn(className)
|
|
12331
12359
|
}, props), {
|
|
12332
12360
|
children: [
|
|
12333
|
-
/* @__PURE__ */ (0,
|
|
12361
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", {
|
|
12334
12362
|
className: cn("w-full flex justify-start items-center", listBoxClassName),
|
|
12335
|
-
children: /* @__PURE__ */ (0,
|
|
12363
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TabsPrimitive.List, _object_spread_props(_object_spread({
|
|
12336
12364
|
ref: ref,
|
|
12337
12365
|
className: cn(tabListVariants({
|
|
12338
12366
|
variant: variant,
|
|
@@ -12341,7 +12369,7 @@ var Tabs2 = React35.forwardRef(function(_param, ref) {
|
|
|
12341
12369
|
}), listClassName)
|
|
12342
12370
|
}, props), {
|
|
12343
12371
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
12344
|
-
return /* @__PURE__ */ (0,
|
|
12372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Tab, _object_spread({
|
|
12345
12373
|
isLink: isLink,
|
|
12346
12374
|
variant: variant,
|
|
12347
12375
|
size: size,
|
|
@@ -12350,10 +12378,10 @@ var Tabs2 = React35.forwardRef(function(_param, ref) {
|
|
|
12350
12378
|
})
|
|
12351
12379
|
}))
|
|
12352
12380
|
}),
|
|
12353
|
-
!isLink && /* @__PURE__ */ (0,
|
|
12381
|
+
!isLink && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", {
|
|
12354
12382
|
className: "w-full",
|
|
12355
12383
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
12356
|
-
return /* @__PURE__ */ (0,
|
|
12384
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TabsContent, {
|
|
12357
12385
|
value: item.value,
|
|
12358
12386
|
className: contentClassName,
|
|
12359
12387
|
children: item.children
|
|
@@ -12364,7 +12392,7 @@ var Tabs2 = React35.forwardRef(function(_param, ref) {
|
|
|
12364
12392
|
}));
|
|
12365
12393
|
});
|
|
12366
12394
|
Tabs2.displayName = TabsPrimitive.Root.displayName;
|
|
12367
|
-
var Tab =
|
|
12395
|
+
var Tab = React36.forwardRef(function(_param, ref) {
|
|
12368
12396
|
var className = _param.className, variant = _param.variant, size = _param.size, isLink = _param.isLink, link = _param.link, count2 = _param.count, label = _param.label, icon = _param.icon, tooltip = _param.tooltip, hasUnRead = _param.hasUnRead, _param_rounded = _param.rounded, rounded = _param_rounded === void 0 ? "default" : _param_rounded, onClickCallback = _param.onClickCallback, props = _object_without_properties(_param, [
|
|
12369
12397
|
"className",
|
|
12370
12398
|
"variant",
|
|
@@ -12379,10 +12407,10 @@ var Tab = React35.forwardRef(function(_param, ref) {
|
|
|
12379
12407
|
"rounded",
|
|
12380
12408
|
"onClickCallback"
|
|
12381
12409
|
]);
|
|
12382
|
-
return /* @__PURE__ */ (0,
|
|
12410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Tooltip, _object_spread_props(_object_spread({
|
|
12383
12411
|
triggerClassName: cn("h-full flex justify-center items-center", variant === "underline" ? "w-fit justify-start items-end" : "w-full flex-1")
|
|
12384
12412
|
}, tooltip), {
|
|
12385
|
-
children: /* @__PURE__ */ (0,
|
|
12413
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TabsPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
12386
12414
|
ref: ref,
|
|
12387
12415
|
className: cn("tabtrigger min-w-fit", tabVariants({
|
|
12388
12416
|
variant: variant,
|
|
@@ -12394,7 +12422,7 @@ var Tab = React35.forwardRef(function(_param, ref) {
|
|
|
12394
12422
|
e.stopPropagation();
|
|
12395
12423
|
onClickCallback === null || onClickCallback === void 0 ? void 0 : onClickCallback(props.value);
|
|
12396
12424
|
},
|
|
12397
|
-
children: isLink && link ? /* @__PURE__ */ (0,
|
|
12425
|
+
children: isLink && link ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(link_default, {
|
|
12398
12426
|
prefetch: true,
|
|
12399
12427
|
href: link,
|
|
12400
12428
|
className: cn("relative h-full w-full flex justify-center items-center"),
|
|
@@ -12405,28 +12433,28 @@ var Tab = React35.forwardRef(function(_param, ref) {
|
|
|
12405
12433
|
},
|
|
12406
12434
|
children: [
|
|
12407
12435
|
label,
|
|
12408
|
-
hasUnRead && /* @__PURE__ */ (0,
|
|
12436
|
+
hasUnRead && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Badge, {
|
|
12409
12437
|
className: "-mt-2.5"
|
|
12410
12438
|
})
|
|
12411
12439
|
]
|
|
12412
|
-
}) : /* @__PURE__ */ (0,
|
|
12440
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", {
|
|
12413
12441
|
className: cn("relative flex justify-center items-center", variant === "underline" && "pb-2"),
|
|
12414
12442
|
children: [
|
|
12415
|
-
label && /* @__PURE__ */ (0,
|
|
12443
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", {
|
|
12416
12444
|
className: cn("text-inherit"),
|
|
12417
12445
|
children: label
|
|
12418
12446
|
}),
|
|
12419
|
-
icon && /* @__PURE__ */ (0,
|
|
12447
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, {
|
|
12420
12448
|
component: icon,
|
|
12421
12449
|
size: "md",
|
|
12422
12450
|
className: "text-inherit"
|
|
12423
12451
|
}),
|
|
12424
|
-
count2 ? /* @__PURE__ */ (0,
|
|
12452
|
+
count2 ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Text, {
|
|
12425
12453
|
size: "sm",
|
|
12426
12454
|
className: "ml-1 text-Colors-Text-Subtlest",
|
|
12427
12455
|
children: count2
|
|
12428
12456
|
}) : null,
|
|
12429
|
-
hasUnRead && /* @__PURE__ */ (0,
|
|
12457
|
+
hasUnRead && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Badge, {
|
|
12430
12458
|
className: "-mt-2.5"
|
|
12431
12459
|
})
|
|
12432
12460
|
]
|
|
@@ -12435,20 +12463,20 @@ var Tab = React35.forwardRef(function(_param, ref) {
|
|
|
12435
12463
|
}));
|
|
12436
12464
|
});
|
|
12437
12465
|
Tab.displayName = TabsPrimitive.Trigger.displayName;
|
|
12438
|
-
var TabsContent =
|
|
12466
|
+
var TabsContent = React36.forwardRef(function(_param, ref) {
|
|
12439
12467
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12440
12468
|
"className"
|
|
12441
12469
|
]);
|
|
12442
|
-
return /* @__PURE__ */ (0,
|
|
12470
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TabsPrimitive.Content, _object_spread({
|
|
12443
12471
|
ref: ref,
|
|
12444
12472
|
className: cn("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0", className)
|
|
12445
12473
|
}, props));
|
|
12446
12474
|
});
|
|
12447
12475
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
12448
12476
|
// src/components/textarea.tsx
|
|
12449
|
-
var
|
|
12450
|
-
var
|
|
12451
|
-
var Textarea =
|
|
12477
|
+
var React37 = __toESM(require("react"), 1);
|
|
12478
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
12479
|
+
var Textarea = React37.forwardRef(function(_param, ref) {
|
|
12452
12480
|
var className = _param.className, maxLength = _param.maxLength, value1 = _param.value, error = _param.error, maxLengthClassName = _param.maxLengthClassName, props = _object_without_properties(_param, [
|
|
12453
12481
|
"className",
|
|
12454
12482
|
"maxLength",
|
|
@@ -12457,20 +12485,20 @@ var Textarea = React36.forwardRef(function(_param, ref) {
|
|
|
12457
12485
|
"maxLengthClassName"
|
|
12458
12486
|
]);
|
|
12459
12487
|
var _value_toString, _value_toString1;
|
|
12460
|
-
return /* @__PURE__ */ (0,
|
|
12488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", {
|
|
12461
12489
|
children: [
|
|
12462
|
-
/* @__PURE__ */ (0,
|
|
12490
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", {
|
|
12463
12491
|
className: "relative",
|
|
12464
12492
|
children: [
|
|
12465
|
-
/* @__PURE__ */ (0,
|
|
12493
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("textarea", _object_spread({
|
|
12466
12494
|
className: cn("w-full min-h-[123px] p-3 pb-10 rounded-sm border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active ", "text-sm text-Colors-Text-Default placeholder:text-Colors-Text-Subtlest", "hover:border-Colors-Border-Hover bg-cc-Input-bg-default hover:bg-cc-Input-bg-hover disabled:bg-cc-Input-bg-disabled aria-[invalid=true]:border-Colors-Border-Critical aria-[invalid=true]:hover:bg-Colors-Background-Critical-Subtle", "aria-[invalid=true]:focus-visible:ring-error file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-Colors-Text-Subtler", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-30", maxLength && ((value1 === null || value1 === void 0 ? void 0 : (_value_toString = value1.toString()) === null || _value_toString === void 0 ? void 0 : _value_toString.length) || 0) > maxLength || error ? "border-Colors-Border-Critical hover:bg-Colors-Background-Critical-Subtle focus-visible:ring-error" : "", className),
|
|
12467
12495
|
ref: ref,
|
|
12468
12496
|
maxLength: maxLength,
|
|
12469
12497
|
value: value1
|
|
12470
12498
|
}, props)),
|
|
12471
|
-
maxLength ? /* @__PURE__ */ (0,
|
|
12499
|
+
maxLength ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", {
|
|
12472
12500
|
className: cn("absolute text-right bottom-5 right-4 border-Colors-Border-Default", maxLengthClassName),
|
|
12473
|
-
children: /* @__PURE__ */ (0,
|
|
12501
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Text, {
|
|
12474
12502
|
size: "sm",
|
|
12475
12503
|
color: "subtlest",
|
|
12476
12504
|
children: "".concat((value1 === null || value1 === void 0 ? void 0 : (_value_toString1 = value1.toString()) === null || _value_toString1 === void 0 ? void 0 : _value_toString1.length) || 0, "/").concat(maxLength)
|
|
@@ -12478,9 +12506,9 @@ var Textarea = React36.forwardRef(function(_param, ref) {
|
|
|
12478
12506
|
}) : null
|
|
12479
12507
|
]
|
|
12480
12508
|
}),
|
|
12481
|
-
error && /* @__PURE__ */ (0,
|
|
12509
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", {
|
|
12482
12510
|
className: "w-full",
|
|
12483
|
-
children: /* @__PURE__ */ (0,
|
|
12511
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Text, {
|
|
12484
12512
|
className: "text-wrap",
|
|
12485
12513
|
size: "sm",
|
|
12486
12514
|
weight: "regular",
|
|
@@ -12495,8 +12523,8 @@ Textarea.displayName = "Textarea";
|
|
|
12495
12523
|
// src/components/toggle.tsx
|
|
12496
12524
|
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
|
|
12497
12525
|
var import_class_variance_authority18 = require("class-variance-authority");
|
|
12498
|
-
var
|
|
12499
|
-
var
|
|
12526
|
+
var React38 = __toESM(require("react"), 1);
|
|
12527
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
12500
12528
|
var toggleVariants = (0, import_class_variance_authority18.cva)("inline-flex items-center justify-center rounded-sm text-sm font-medium ring-offset-white text-Colors-Text-Subtlest hover:bg-slate-100 hover:text-slate-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-Colors-Background-Normal-Primary-Active data-[state=on]:text-Colors-Text-Brand-Default [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2 dark:ring-offset-slate-950 dark:hover:bg-slate-800 dark:hover:text-Colors-Text-Brand-Default dark:focus-visible:ring-slate-300 dark:data-[state=on]:bg-Colors-Background-Normal-Primary-Active dark:data-[state=on]:text-Colors-Text-Brand-Default", {
|
|
12501
12529
|
variants: {
|
|
12502
12530
|
variant: {
|
|
@@ -12515,13 +12543,13 @@ var toggleVariants = (0, import_class_variance_authority18.cva)("inline-flex ite
|
|
|
12515
12543
|
size: "default"
|
|
12516
12544
|
}
|
|
12517
12545
|
});
|
|
12518
|
-
var Toggle =
|
|
12546
|
+
var Toggle = React38.forwardRef(function(_param, ref) {
|
|
12519
12547
|
var className = _param.className, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
|
|
12520
12548
|
"className",
|
|
12521
12549
|
"variant",
|
|
12522
12550
|
"size"
|
|
12523
12551
|
]);
|
|
12524
|
-
return /* @__PURE__ */ (0,
|
|
12552
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(TogglePrimitive.Root, _object_spread({
|
|
12525
12553
|
ref: ref,
|
|
12526
12554
|
className: cn(toggleVariants({
|
|
12527
12555
|
variant: variant,
|
|
@@ -12533,24 +12561,24 @@ var Toggle = React37.forwardRef(function(_param, ref) {
|
|
|
12533
12561
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
12534
12562
|
// src/components/toggle-group.tsx
|
|
12535
12563
|
var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
|
|
12536
|
-
var
|
|
12537
|
-
var
|
|
12538
|
-
var ToggleGroupContext =
|
|
12564
|
+
var React39 = __toESM(require("react"), 1);
|
|
12565
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
12566
|
+
var ToggleGroupContext = React39.createContext({
|
|
12539
12567
|
size: "default",
|
|
12540
12568
|
variant: "default"
|
|
12541
12569
|
});
|
|
12542
|
-
var ToggleGroup =
|
|
12570
|
+
var ToggleGroup = React39.forwardRef(function(_param, ref) {
|
|
12543
12571
|
var className = _param.className, variant = _param.variant, size = _param.size, children = _param.children, props = _object_without_properties(_param, [
|
|
12544
12572
|
"className",
|
|
12545
12573
|
"variant",
|
|
12546
12574
|
"size",
|
|
12547
12575
|
"children"
|
|
12548
12576
|
]);
|
|
12549
|
-
return /* @__PURE__ */ (0,
|
|
12577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ToggleGroupPrimitive.Root, _object_spread_props(_object_spread({
|
|
12550
12578
|
ref: ref,
|
|
12551
12579
|
className: cn("flex items-center justify-center gap-1 p-0.5 rounded-sm border border-Colors-Border-Default bg-Colors-Background-Neutral-Primary-Default", className)
|
|
12552
12580
|
}, props), {
|
|
12553
|
-
children: /* @__PURE__ */ (0,
|
|
12581
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ToggleGroupContext.Provider, {
|
|
12554
12582
|
value: {
|
|
12555
12583
|
variant: variant,
|
|
12556
12584
|
size: size
|
|
@@ -12560,15 +12588,15 @@ var ToggleGroup = React38.forwardRef(function(_param, ref) {
|
|
|
12560
12588
|
}));
|
|
12561
12589
|
});
|
|
12562
12590
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
12563
|
-
var ToggleGroupItem =
|
|
12591
|
+
var ToggleGroupItem = React39.forwardRef(function(_param, ref) {
|
|
12564
12592
|
var className = _param.className, children = _param.children, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
|
|
12565
12593
|
"className",
|
|
12566
12594
|
"children",
|
|
12567
12595
|
"variant",
|
|
12568
12596
|
"size"
|
|
12569
12597
|
]);
|
|
12570
|
-
var context =
|
|
12571
|
-
return /* @__PURE__ */ (0,
|
|
12598
|
+
var context = React39.useContext(ToggleGroupContext);
|
|
12599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ToggleGroupPrimitive.Item, _object_spread_props(_object_spread({
|
|
12572
12600
|
ref: ref,
|
|
12573
12601
|
className: cn(toggleVariants({
|
|
12574
12602
|
variant: context.variant || variant,
|
|
@@ -12581,7 +12609,7 @@ var ToggleGroupItem = React38.forwardRef(function(_param, ref) {
|
|
|
12581
12609
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
12582
12610
|
// src/components/chips.tsx
|
|
12583
12611
|
var import_class_variance_authority19 = require("class-variance-authority");
|
|
12584
|
-
var
|
|
12612
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
12585
12613
|
var chipsVariants = (0, import_class_variance_authority19.cva)('min-w-10 flex items-center justify-center text-Colors-Text-Subtle rounded-sm border px-1.5 text-sm cursor-pointer focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 data-[disabled="true"]:cursor-not-allowed font-medium', {
|
|
12586
12614
|
variants: {
|
|
12587
12615
|
variant: {
|
|
@@ -12600,7 +12628,7 @@ var chipsVariants = (0, import_class_variance_authority19.cva)('min-w-10 flex it
|
|
|
12600
12628
|
});
|
|
12601
12629
|
function Chips(props) {
|
|
12602
12630
|
var variant = props.variant, size = props.size, count2 = props.count, className = props.className, label = props.label, disabled = props.disabled, selected = props.selected;
|
|
12603
|
-
return /* @__PURE__ */ (0,
|
|
12631
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", {
|
|
12604
12632
|
"data-disabled": disabled,
|
|
12605
12633
|
"data-selected": selected,
|
|
12606
12634
|
className: cn(chipsVariants({
|
|
@@ -12609,7 +12637,7 @@ function Chips(props) {
|
|
|
12609
12637
|
}), className),
|
|
12610
12638
|
children: [
|
|
12611
12639
|
label,
|
|
12612
|
-
count2 && count2 > 0 ? /* @__PURE__ */ (0,
|
|
12640
|
+
count2 && count2 > 0 ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", {
|
|
12613
12641
|
className: "h-full pt-0.5 ml-1 font-medium text-xs leading-[1.3]",
|
|
12614
12642
|
children: count2
|
|
12615
12643
|
}) : null
|
|
@@ -12619,9 +12647,9 @@ function Chips(props) {
|
|
|
12619
12647
|
// src/components/button/link-button.tsx
|
|
12620
12648
|
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
12621
12649
|
var import_lucide_react13 = require("lucide-react");
|
|
12622
|
-
var
|
|
12623
|
-
var
|
|
12624
|
-
var LinkButton =
|
|
12650
|
+
var React40 = __toESM(require("react"), 1);
|
|
12651
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
12652
|
+
var LinkButton = React40.forwardRef(function(_param, ref) {
|
|
12625
12653
|
var _param_className = _param.className, className = _param_className === void 0 ? "" : _param_className, iconClassName = _param.iconClassName, _param_color = _param.color, color = _param_color === void 0 ? "default" : _param_color, icon = _param.icon, _param_iconDirection = _param.iconDirection, iconDirection = _param_iconDirection === void 0 ? "left" : _param_iconDirection, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, _param_asChild = _param.asChild, asChild = _param_asChild === void 0 ? false : _param_asChild, _param_loading = _param.loading, loading = _param_loading === void 0 ? false : _param_loading, _param_noStyle = _param.noStyle, noStyle = _param_noStyle === void 0 ? false : _param_noStyle, _param_iconOutBox = _param.iconOutBox, iconOutBox = _param_iconOutBox === void 0 ? false : _param_iconOutBox, _param_isBlock = _param.isBlock, isBlock = _param_isBlock === void 0 ? false : _param_isBlock, disabled = _param.disabled, children = _param.children, autoFocus = _param.autoFocus, asset = _param.asset, _param_assetNumber = _param.assetNumber, assetNumber = _param_assetNumber === void 0 ? 0 : _param_assetNumber, props = _object_without_properties(_param, [
|
|
12626
12654
|
"className",
|
|
12627
12655
|
"iconClassName",
|
|
@@ -12642,7 +12670,7 @@ var LinkButton = React39.forwardRef(function(_param, ref) {
|
|
|
12642
12670
|
]);
|
|
12643
12671
|
var Comp = asChild ? import_react_slot5.Slot : "button";
|
|
12644
12672
|
var disable = disabled || loading;
|
|
12645
|
-
return /* @__PURE__ */ (0,
|
|
12673
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Comp, _object_spread_props(_object_spread({
|
|
12646
12674
|
className: noStyle ? className : cn(buttonVariants({
|
|
12647
12675
|
variant: "link",
|
|
12648
12676
|
color: color,
|
|
@@ -12654,9 +12682,9 @@ var LinkButton = React39.forwardRef(function(_param, ref) {
|
|
|
12654
12682
|
autoFocus: autoFocus
|
|
12655
12683
|
}, props), {
|
|
12656
12684
|
children: [
|
|
12657
|
-
loading && /* @__PURE__ */ (0,
|
|
12685
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", {
|
|
12658
12686
|
className: "absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center",
|
|
12659
|
-
children: /* @__PURE__ */ (0,
|
|
12687
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_lucide_react13.Loader2, {
|
|
12660
12688
|
className: cn(iconVariants2({
|
|
12661
12689
|
variant: "link",
|
|
12662
12690
|
size: size
|
|
@@ -12669,7 +12697,7 @@ var LinkButton = React39.forwardRef(function(_param, ref) {
|
|
|
12669
12697
|
iconClassName: iconClassName,
|
|
12670
12698
|
size: size
|
|
12671
12699
|
}),
|
|
12672
|
-
/* @__PURE__ */ (0,
|
|
12700
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", {
|
|
12673
12701
|
className: cn("inline-flex w-full items-center justify-center", loading ? "opacity-0" : "opacity-100"),
|
|
12674
12702
|
children: [
|
|
12675
12703
|
!asset && icon && !iconOutBox && iconDirection === "left" && renderIcon2(icon, "left", {
|
|
@@ -12679,20 +12707,20 @@ var LinkButton = React39.forwardRef(function(_param, ref) {
|
|
|
12679
12707
|
size: size
|
|
12680
12708
|
}),
|
|
12681
12709
|
children,
|
|
12682
|
-
asset ? /* @__PURE__ */ (0,
|
|
12710
|
+
asset ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, {
|
|
12683
12711
|
children: [
|
|
12684
|
-
/* @__PURE__ */ (0,
|
|
12712
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Separator, {
|
|
12685
12713
|
orientation: "vertical",
|
|
12686
12714
|
className: cn("mx-1.5 h-3")
|
|
12687
12715
|
}),
|
|
12688
|
-
/* @__PURE__ */ (0,
|
|
12716
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Image2, {
|
|
12689
12717
|
src: asset === "energy" ? getAssetsUrl("image/bot/tag/20231214/1719340128612116720.png") : "",
|
|
12690
12718
|
alt: asset,
|
|
12691
12719
|
width: 16,
|
|
12692
12720
|
height: 16,
|
|
12693
12721
|
className: "flex-shrink-0"
|
|
12694
12722
|
}),
|
|
12695
|
-
/* @__PURE__ */ (0,
|
|
12723
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, {
|
|
12696
12724
|
size: "xs",
|
|
12697
12725
|
className: cn("ml-0.5 text-inherit"),
|
|
12698
12726
|
children: assetNumber
|
|
@@ -12718,7 +12746,7 @@ var LinkButton = React39.forwardRef(function(_param, ref) {
|
|
|
12718
12746
|
});
|
|
12719
12747
|
var renderIcon2 = function(icon, direction, param) {
|
|
12720
12748
|
var loading = param.loading, noStyle = param.noStyle, iconClassName = param.iconClassName, _param_size = param.size, size = _param_size === void 0 ? "lg" : _param_size;
|
|
12721
|
-
return /* @__PURE__ */ (0,
|
|
12749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, {
|
|
12722
12750
|
component: icon,
|
|
12723
12751
|
className: noStyle ? iconClassName : cn(iconVariants2({
|
|
12724
12752
|
variant: "link",
|
|
@@ -12729,7 +12757,7 @@ var renderIcon2 = function(icon, direction, param) {
|
|
|
12729
12757
|
LinkButton.displayName = "LinkButton";
|
|
12730
12758
|
// src/components/state.tsx
|
|
12731
12759
|
var import_navigation = require("next/navigation");
|
|
12732
|
-
var
|
|
12760
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
12733
12761
|
var stateIconUrls = {
|
|
12734
12762
|
"not-found": "https://myshellstatic.com/image/website/20250425/page-no-results.png",
|
|
12735
12763
|
"no-page": "https://myshellstatic.com/image/website/20250425/page-not-found.png",
|
|
@@ -12747,40 +12775,40 @@ var State2 = function(param) {
|
|
|
12747
12775
|
}
|
|
12748
12776
|
};
|
|
12749
12777
|
var IconComponent2 = icon ? function() {
|
|
12750
|
-
return /* @__PURE__ */ (0,
|
|
12778
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, {
|
|
12751
12779
|
component: icon,
|
|
12752
12780
|
size: "4xl",
|
|
12753
12781
|
className: iconClassName
|
|
12754
12782
|
});
|
|
12755
12783
|
} : function() {
|
|
12756
|
-
return /* @__PURE__ */ (0,
|
|
12784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", {
|
|
12757
12785
|
className: "w-[146px] md:w-[220px] h-[146px] md:h-[220px] rounded-full object-cover",
|
|
12758
|
-
children: /* @__PURE__ */ (0,
|
|
12786
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Image2, {
|
|
12759
12787
|
src: logo || stateIconUrls[variant],
|
|
12760
12788
|
alt: "state icon",
|
|
12761
12789
|
className: cn("w-full h-full rounded-full object-cover", logoClassName)
|
|
12762
12790
|
})
|
|
12763
12791
|
});
|
|
12764
12792
|
};
|
|
12765
|
-
return /* @__PURE__ */ (0,
|
|
12793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", {
|
|
12766
12794
|
className: cn("flex flex-col items-center", className, {
|
|
12767
12795
|
"space-y-6": !icon,
|
|
12768
12796
|
"space-y-3": icon
|
|
12769
12797
|
}),
|
|
12770
12798
|
children: [
|
|
12771
|
-
!hideLogo && /* @__PURE__ */ (0,
|
|
12772
|
-
/* @__PURE__ */ (0,
|
|
12799
|
+
!hideLogo && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(IconComponent2, {}),
|
|
12800
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", {
|
|
12773
12801
|
className: "flex flex-col items-center space-y-4",
|
|
12774
12802
|
children: [
|
|
12775
|
-
/* @__PURE__ */ (0,
|
|
12803
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", {
|
|
12776
12804
|
className: "flex flex-col items-center space-y-1",
|
|
12777
12805
|
children: [
|
|
12778
|
-
title && /* @__PURE__ */ (0,
|
|
12806
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Display, {
|
|
12779
12807
|
size: "sm",
|
|
12780
12808
|
className: titleClassName,
|
|
12781
12809
|
children: title
|
|
12782
12810
|
}),
|
|
12783
|
-
/* @__PURE__ */ (0,
|
|
12811
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, {
|
|
12784
12812
|
size: "sm",
|
|
12785
12813
|
color: "subtle",
|
|
12786
12814
|
className: descriptionClassName,
|
|
@@ -12788,7 +12816,7 @@ var State2 = function(param) {
|
|
|
12788
12816
|
})
|
|
12789
12817
|
]
|
|
12790
12818
|
}),
|
|
12791
|
-
backBtnText && /* @__PURE__ */ (0,
|
|
12819
|
+
backBtnText && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Button, {
|
|
12792
12820
|
size: "lg",
|
|
12793
12821
|
onClick: handleBack,
|
|
12794
12822
|
children: backBtnText
|
|
@@ -12799,31 +12827,31 @@ var State2 = function(param) {
|
|
|
12799
12827
|
});
|
|
12800
12828
|
};
|
|
12801
12829
|
var ErrorState = function(args) {
|
|
12802
|
-
return /* @__PURE__ */ (0,
|
|
12830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(State2, _object_spread_props(_object_spread({}, args), {
|
|
12803
12831
|
variant: "error"
|
|
12804
12832
|
}));
|
|
12805
12833
|
};
|
|
12806
12834
|
var NetworkErrorState = function(args) {
|
|
12807
|
-
return /* @__PURE__ */ (0,
|
|
12835
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(State2, _object_spread_props(_object_spread({}, args), {
|
|
12808
12836
|
variant: "network-error"
|
|
12809
12837
|
}));
|
|
12810
12838
|
};
|
|
12811
12839
|
var NotFoundState = function(args) {
|
|
12812
|
-
return /* @__PURE__ */ (0,
|
|
12840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(State2, _object_spread_props(_object_spread({}, args), {
|
|
12813
12841
|
variant: "not-found"
|
|
12814
12842
|
}));
|
|
12815
12843
|
};
|
|
12816
12844
|
var NoPageState = function(args) {
|
|
12817
|
-
return /* @__PURE__ */ (0,
|
|
12845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(State2, _object_spread_props(_object_spread({}, args), {
|
|
12818
12846
|
variant: "no-page"
|
|
12819
12847
|
}));
|
|
12820
12848
|
};
|
|
12821
12849
|
// src/components/toast/toast.tsx
|
|
12822
12850
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"), 1);
|
|
12823
12851
|
var import_class_variance_authority20 = require("class-variance-authority");
|
|
12824
|
-
var
|
|
12852
|
+
var React41 = __toESM(require("react"), 1);
|
|
12825
12853
|
var import_XMarkIcon3 = __toESM(require("@heroicons/react/24/outline/esm/XMarkIcon"), 1);
|
|
12826
|
-
var
|
|
12854
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
12827
12855
|
var ToastProvider = ToastPrimitives.Provider;
|
|
12828
12856
|
var viewportPositionVariants = (0, import_class_variance_authority20.cva)("fixed z-[1000001] flex max-h-screen w-full p-0 gap-2", {
|
|
12829
12857
|
variants: {
|
|
@@ -12842,12 +12870,12 @@ var viewportPositionVariants = (0, import_class_variance_authority20.cva)("fixed
|
|
|
12842
12870
|
position: "top-right"
|
|
12843
12871
|
}
|
|
12844
12872
|
});
|
|
12845
|
-
var ToastViewport =
|
|
12873
|
+
var ToastViewport = React41.forwardRef(function(_param, ref) {
|
|
12846
12874
|
var className = _param.className, position = _param.position, props = _object_without_properties(_param, [
|
|
12847
12875
|
"className",
|
|
12848
12876
|
"position"
|
|
12849
12877
|
]);
|
|
12850
|
-
return /* @__PURE__ */ (0,
|
|
12878
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ToastPrimitives.Viewport, _object_spread({
|
|
12851
12879
|
ref: ref,
|
|
12852
12880
|
className: cn(viewportPositionVariants({
|
|
12853
12881
|
position: position
|
|
@@ -12879,13 +12907,13 @@ var toastVariants = (0, import_class_variance_authority20.cva)("group pointer-ev
|
|
|
12879
12907
|
position: "top-right"
|
|
12880
12908
|
}
|
|
12881
12909
|
});
|
|
12882
|
-
var Toast =
|
|
12910
|
+
var Toast = React41.forwardRef(function(_param, ref) {
|
|
12883
12911
|
var className = _param.className, variant = _param.variant, position = _param.position, props = _object_without_properties(_param, [
|
|
12884
12912
|
"className",
|
|
12885
12913
|
"variant",
|
|
12886
12914
|
"position"
|
|
12887
12915
|
]);
|
|
12888
|
-
return /* @__PURE__ */ (0,
|
|
12916
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ToastPrimitives.Root, _object_spread({
|
|
12889
12917
|
ref: ref,
|
|
12890
12918
|
className: cn(toastVariants({
|
|
12891
12919
|
variant: variant,
|
|
@@ -12895,46 +12923,46 @@ var Toast = React40.forwardRef(function(_param, ref) {
|
|
|
12895
12923
|
}, props));
|
|
12896
12924
|
});
|
|
12897
12925
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
12898
|
-
var ToastAction =
|
|
12926
|
+
var ToastAction = React41.forwardRef(function(_param, ref) {
|
|
12899
12927
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12900
12928
|
"className"
|
|
12901
12929
|
]);
|
|
12902
|
-
return /* @__PURE__ */ (0,
|
|
12930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ToastPrimitives.Action, _object_spread({
|
|
12903
12931
|
ref: ref,
|
|
12904
12932
|
className: cn("inline-flex h-8 shrink-0 items-center justify-center rounded-sm border border-slate-200 bg-transparent px-3 text-sm font-medium ring-offset-white transition-colors hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-slate-950 focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-slate-100/40 group-[.destructive]:hover:border-red-500/30 group-[.destructive]:hover:bg-red-500 group-[.destructive]:hover:text-slate-50 group-[.destructive]:focus:ring-red-500 dark:border-slate-800 dark:ring-offset-slate-950 dark:hover:bg-slate-800 dark:focus:ring-slate-300 dark:group-[.destructive]:border-slate-800/40 dark:group-[.destructive]:hover:border-red-900/30 dark:group-[.destructive]:hover:bg-red-900 dark:group-[.destructive]:hover:text-slate-50 dark:group-[.destructive]:focus:ring-red-900", className)
|
|
12905
12933
|
}, props));
|
|
12906
12934
|
});
|
|
12907
12935
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
12908
|
-
var ToastClose =
|
|
12936
|
+
var ToastClose = React41.forwardRef(function(_param, ref) {
|
|
12909
12937
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12910
12938
|
"className"
|
|
12911
12939
|
]);
|
|
12912
|
-
return /* @__PURE__ */ (0,
|
|
12940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ToastPrimitives.Close, _object_spread_props(_object_spread({
|
|
12913
12941
|
ref: ref,
|
|
12914
12942
|
className: cn("absolute right-4 top-4 rounded-sm p-1 text-slate-950/50 transition-opacity hover:text-slate-950 outline-none focus:outline-none focus:ring-2 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 dark:text-slate-50/50 dark:hover:text-slate-50", className),
|
|
12915
12943
|
"toast-close": ""
|
|
12916
12944
|
}, props), {
|
|
12917
|
-
children: /* @__PURE__ */ (0,
|
|
12945
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_XMarkIcon3.default, {
|
|
12918
12946
|
className: "h-5 w-5"
|
|
12919
12947
|
})
|
|
12920
12948
|
}));
|
|
12921
12949
|
});
|
|
12922
12950
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
12923
|
-
var ToastTitle =
|
|
12951
|
+
var ToastTitle = React41.forwardRef(function(_param, ref) {
|
|
12924
12952
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12925
12953
|
"className"
|
|
12926
12954
|
]);
|
|
12927
|
-
return /* @__PURE__ */ (0,
|
|
12955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ToastPrimitives.Title, _object_spread({
|
|
12928
12956
|
ref: ref,
|
|
12929
12957
|
className: cn("text-sm font-semibold", className)
|
|
12930
12958
|
}, props));
|
|
12931
12959
|
});
|
|
12932
12960
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
12933
|
-
var ToastDescription =
|
|
12961
|
+
var ToastDescription = React41.forwardRef(function(_param, ref) {
|
|
12934
12962
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12935
12963
|
"className"
|
|
12936
12964
|
]);
|
|
12937
|
-
return /* @__PURE__ */ (0,
|
|
12965
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ToastPrimitives.Description, _object_spread({
|
|
12938
12966
|
ref: ref,
|
|
12939
12967
|
className: cn("text-sm opacity-90", className)
|
|
12940
12968
|
}, props));
|
|
@@ -12945,8 +12973,8 @@ var import_CheckCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/C
|
|
|
12945
12973
|
var import_InformationCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/InformationCircleIcon"), 1);
|
|
12946
12974
|
var import_XCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/XCircleIcon"), 1);
|
|
12947
12975
|
// src/components/toast/use-toast.tsx
|
|
12948
|
-
var
|
|
12949
|
-
var
|
|
12976
|
+
var React42 = __toESM(require("react"), 1);
|
|
12977
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
12950
12978
|
var TOAST_LIMIT = 8;
|
|
12951
12979
|
var TOAST_REMOVE_DELAY = 1e3;
|
|
12952
12980
|
var count = 0;
|
|
@@ -13049,10 +13077,10 @@ function toast(_param) {
|
|
|
13049
13077
|
toast: _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, props), {
|
|
13050
13078
|
position: position
|
|
13051
13079
|
}), actions && {
|
|
13052
|
-
action: /* @__PURE__ */ (0,
|
|
13080
|
+
action: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", {
|
|
13053
13081
|
className: "flex justify-start items-center gap-2",
|
|
13054
13082
|
children: [
|
|
13055
|
-
(actions === null || actions === void 0 ? void 0 : actions.dismissText) && /* @__PURE__ */ (0,
|
|
13083
|
+
(actions === null || actions === void 0 ? void 0 : actions.dismissText) && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Text, {
|
|
13056
13084
|
size: "sm",
|
|
13057
13085
|
weight: "medium",
|
|
13058
13086
|
color: "brand",
|
|
@@ -13062,13 +13090,13 @@ function toast(_param) {
|
|
|
13062
13090
|
},
|
|
13063
13091
|
children: actions === null || actions === void 0 ? void 0 : actions.dismissText
|
|
13064
13092
|
}),
|
|
13065
|
-
(actions === null || actions === void 0 ? void 0 : actions.view) && actions.viewUrl && /* @__PURE__ */ (0,
|
|
13093
|
+
(actions === null || actions === void 0 ? void 0 : actions.view) && actions.viewUrl && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(link_default, {
|
|
13066
13094
|
href: actions.viewUrl,
|
|
13067
13095
|
target: "_blank",
|
|
13068
13096
|
rel: "noreferrer noopener",
|
|
13069
|
-
children: /* @__PURE__ */ (0,
|
|
13097
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", {
|
|
13070
13098
|
className: "flex items-center gap-1.5",
|
|
13071
|
-
children: /* @__PURE__ */ (0,
|
|
13099
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Text, {
|
|
13072
13100
|
size: "sm",
|
|
13073
13101
|
weight: "medium",
|
|
13074
13102
|
color: "default",
|
|
@@ -13094,8 +13122,8 @@ function toast(_param) {
|
|
|
13094
13122
|
};
|
|
13095
13123
|
}
|
|
13096
13124
|
function useToast() {
|
|
13097
|
-
var
|
|
13098
|
-
|
|
13125
|
+
var _React42_useState = _sliced_to_array(React42.useState(memoryState), 2), state = _React42_useState[0], setState = _React42_useState[1];
|
|
13126
|
+
React42.useEffect(function() {
|
|
13099
13127
|
listeners.push(setState);
|
|
13100
13128
|
return function() {
|
|
13101
13129
|
var index = listeners.indexOf(setState);
|
|
@@ -13118,8 +13146,8 @@ function useToast() {
|
|
|
13118
13146
|
}
|
|
13119
13147
|
// src/components/toast/toaster.tsx
|
|
13120
13148
|
var import_react15 = __toESM(require("react"), 1);
|
|
13121
|
-
var
|
|
13122
|
-
var
|
|
13149
|
+
var import_outline2 = require("@heroicons/react/24/outline");
|
|
13150
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
13123
13151
|
function Toaster() {
|
|
13124
13152
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref_position = _ref.position, position = _ref_position === void 0 ? "top-right" : _ref_position;
|
|
13125
13153
|
var toasts = useToast().toasts;
|
|
@@ -13156,19 +13184,19 @@ function Toaster() {
|
|
|
13156
13184
|
var renderIcon3 = function(variant2) {
|
|
13157
13185
|
switch(variant2){
|
|
13158
13186
|
case "info":
|
|
13159
|
-
return /* @__PURE__ */ (0,
|
|
13187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_InformationCircleIcon2.default, {
|
|
13160
13188
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
13161
13189
|
});
|
|
13162
13190
|
case "success":
|
|
13163
|
-
return /* @__PURE__ */ (0,
|
|
13191
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_CheckCircleIcon2.default, {
|
|
13164
13192
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
13165
13193
|
});
|
|
13166
13194
|
case "warning":
|
|
13167
|
-
return /* @__PURE__ */ (0,
|
|
13195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_outline2.ExclamationTriangleIcon, {
|
|
13168
13196
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
13169
13197
|
});
|
|
13170
13198
|
case "error":
|
|
13171
|
-
return /* @__PURE__ */ (0,
|
|
13199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_XCircleIcon2.default, {
|
|
13172
13200
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
13173
13201
|
});
|
|
13174
13202
|
}
|
|
@@ -13185,26 +13213,26 @@ function Toaster() {
|
|
|
13185
13213
|
return "bg-Colors-Background-Critical-Default";
|
|
13186
13214
|
}
|
|
13187
13215
|
};
|
|
13188
|
-
return /* @__PURE__ */ (0,
|
|
13216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Toast, _object_spread_props(_object_spread({}, toast4), {
|
|
13189
13217
|
position: toastPosition,
|
|
13190
13218
|
children: [
|
|
13191
|
-
/* @__PURE__ */ (0,
|
|
13219
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", {
|
|
13192
13220
|
className: "flex flex-col gap-3",
|
|
13193
|
-
children: /* @__PURE__ */ (0,
|
|
13221
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", {
|
|
13194
13222
|
className: "flex items-start gap-3",
|
|
13195
13223
|
children: [
|
|
13196
|
-
/* @__PURE__ */ (0,
|
|
13224
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", {
|
|
13197
13225
|
className: cn("flex h-10 w-10 flex-shrink-0 flex-grow-0 items-center justify-center rounded-full", getBackgroundColor(variant)),
|
|
13198
13226
|
children: renderIcon3(variant)
|
|
13199
13227
|
}),
|
|
13200
|
-
/* @__PURE__ */ (0,
|
|
13228
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", {
|
|
13201
13229
|
className: "grid gap-1",
|
|
13202
13230
|
children: [
|
|
13203
|
-
title && /* @__PURE__ */ (0,
|
|
13231
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ToastTitle, {
|
|
13204
13232
|
className: "text-base text-Colors-Text-Default",
|
|
13205
13233
|
children: title
|
|
13206
13234
|
}),
|
|
13207
|
-
description && /* @__PURE__ */ (0,
|
|
13235
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ToastDescription, {
|
|
13208
13236
|
className: "text-sm text-Colors-Text-Subtle",
|
|
13209
13237
|
children: description
|
|
13210
13238
|
}),
|
|
@@ -13214,17 +13242,17 @@ function Toaster() {
|
|
|
13214
13242
|
]
|
|
13215
13243
|
})
|
|
13216
13244
|
}),
|
|
13217
|
-
/* @__PURE__ */ (0,
|
|
13245
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ToastClose, {})
|
|
13218
13246
|
]
|
|
13219
13247
|
}), id);
|
|
13220
13248
|
};
|
|
13221
|
-
return /* @__PURE__ */ (0,
|
|
13249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ToastProvider, {
|
|
13222
13250
|
children: Object.entries(positionGroups).map(function(param) {
|
|
13223
13251
|
var _param = _sliced_to_array(param, 2), pos = _param[0], toastsForPosition = _param[1];
|
|
13224
|
-
return /* @__PURE__ */ (0,
|
|
13252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react15.default.Fragment, {
|
|
13225
13253
|
children: [
|
|
13226
13254
|
toastsForPosition.map(renderToast),
|
|
13227
|
-
toastsForPosition.length > 0 && /* @__PURE__ */ (0,
|
|
13255
|
+
toastsForPosition.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ToastViewport, {
|
|
13228
13256
|
position: pos
|
|
13229
13257
|
})
|
|
13230
13258
|
]
|
|
@@ -13246,7 +13274,7 @@ var import_pagination = require("swiper/css/pagination");
|
|
|
13246
13274
|
// src/components/swiper/index.module.scss
|
|
13247
13275
|
var index_module_default = '.swiperBox {\n @apply w-full h-fit;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev) {\n @apply bg-contain bg-no-repeat;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iIzQxNDM0NSIgY2xhc3M9InNpemUtNSI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzggNS4yMmEuNzUuNzUgMCAwIDEgMCAxLjA2TDguMDYgMTBsMy43MiAzLjcyYS43NS43NSAwIDEgMS0xLjA2IDEuMDZsLTQuMjUtNC4yNWEuNzUuNzUgMCAwIDEgMC0xLjA2bDQuMjUtNC4yNWEuNzUuNzUgMCAwIDEgMS4wNiAwWiIgY2xpcC1ydWxlPSJldmVub2RkIiAvPgo8L3N2Zz4K");\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next) {\n @apply bg-contain bg-no-repeat;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iIzQxNDM0NSIgY2xhc3M9InNpemUtNSI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOC4yMiA1LjIyYS43NS43NSAwIDAgMSAxLjA2IDBsNC4yNSA0LjI1YS43NS43NSAwIDAgMSAwIDEuMDZsLTQuMjUgNC4yNWEuNzUuNzUgMCAwIDEtMS4wNi0xLjA2TDExLjk0IDEwIDguMjIgNi4yOGEuNzUuNzUgMCAwIDEgMC0xLjA2WiIgY2xpcC1ydWxlPSJldmVub2RkIiAvPgo8L3N2Zz4KCg==");\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev::after) {\n @apply text-Colors-Foreground-Default content-none;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next::after) {\n @apply text-Colors-Foreground-Default content-none;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.banner-swiper-slide.swiper-slide-prev) {\n @apply origin-right;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.banner-swiper-slide.swiper-slide-next) {\n @apply origin-left;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-slide-active) {\n @apply opacity-100;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-button-next) {\n @apply -right-4 md:right-0 3xl:right-[calc((100%-1200px)/2-16px)];\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-button-prev) {\n @apply -left-4 md:left-0 3xl:left-[calc((100%-1200px)/2-16px)];\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-next) {\n @apply right-0;\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-prev) {\n @apply left-0;\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-disabled) {\n @apply hidden;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-next) {\n @apply right-0;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-prev) {\n @apply left-0;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-disabled) {\n @apply hidden;\n}\n.swiperBox :global(.swiper.grid-swiper) :global(.swiper-wrapper) {\n @apply w-[100vw] md:w-full flex-wrap flex-col m-0;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next) {\n @apply hidden md:flex justify-center items-center absolute top-[50%] w-8 h-8 font-semibold text-Colors-Foreground-Default border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Default rounded-full cursor-pointer hover:bg-Colors-Background-Normal-Primary-Hover active:bg-Colors-Background-Normal-Primary-Active;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next)::after {\n @apply text-Colors-Foreground-Default text-xs font-bold;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev) {\n @apply hidden md:flex justify-center items-center absolute top-[50%] w-8 h-8 font-semibold text-Colors-Foreground-Default border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Default rounded-full cursor-pointer hover:bg-Colors-Background-Normal-Primary-Hover active:bg-Colors-Background-Normal-Primary-Active;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev)::after {\n @apply text-Colors-Foreground-Default text-xs font-bold;\n}\n\n.animate :global(.swiper-slide) {\n transition: transform 500ms linear;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL1VzZXJzL3hpYW9ndWFuZy9jb2RlL215c2hlbGwtcmVhY3QtbGliL3NyYy9jb21wb25lbnRzL3N3aXBlciIsInNvdXJjZXMiOlsiaW5kZXgubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRTs7QUFHRTtFQUNFO0VBQ0E7O0FBRUY7RUFDRTtFQUNBOztBQUVGO0VBQ0U7O0FBRUY7RUFDRTs7QUFJRjtFQUVFOztBQUVGO0VBRUU7O0FBRUY7RUFDRTs7QUFHRjtFQUNFOztBQUVGO0VBQ0U7O0FBSUY7RUFDRTs7QUFFRjtFQUNFOztBQUVGO0VBQ0U7O0FBSUY7RUFDRTs7QUFFRjtFQUNFOztBQUVGO0VBQ0U7O0FBSUY7RUFDRTs7QUFLRjtFQUNFOztBQUNFO0VBQ0U7O0FBR047RUFDRTs7QUFDRTtFQUNFOzs7QUFPUjtFQUNFIiwic291cmNlc0NvbnRlbnQiOlsiLnN3aXBlckJveHtcbiAgQGFwcGx5IHctZnVsbCBoLWZpdDtcbiAgXG4gIDpnbG9iYWwoLnN3aXBlcikge1xuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tcHJldil7XG4gICAgICBAYXBwbHkgYmctY29udGFpbiBiZy1uby1yZXBlYXQ7XG4gICAgICBiYWNrZ3JvdW5kLWltYWdlOiB1cmwoJ2RhdGE6aW1hZ2Uvc3ZnK3htbDtiYXNlNjQsUEhOMlp5QjRiV3h1Y3owaWFIUjBjRG92TDNkM2R5NTNNeTV2Y21jdk1qQXdNQzl6ZG1jaUlIWnBaWGRDYjNnOUlqQWdNQ0F5TUNBeU1DSWdabWxzYkQwaUl6UXhORE0wTlNJZ1kyeGhjM005SW5OcGVtVXROU0krQ2lBZ1BIQmhkR2dnWm1sc2JDMXlkV3hsUFNKbGRtVnViMlJrSWlCa1BTSk5NVEV1TnpnZ05TNHlNbUV1TnpVdU56VWdNQ0F3SURFZ01DQXhMakEyVERndU1EWWdNVEJzTXk0M01pQXpMamN5WVM0M05TNDNOU0F3SURFZ01TMHhMakEySURFdU1EWnNMVFF1TWpVdE5DNHlOV0V1TnpVdU56VWdNQ0F3SURFZ01DMHhMakEyYkRRdU1qVXROQzR5TldFdU56VXVOelVnTUNBd0lERWdNUzR3TmlBd1dpSWdZMnhwY0MxeWRXeGxQU0psZG1WdWIyUmtJaUF2UGdvOEwzTjJaejRLJyk7IFxuICAgIH1cbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLW5leHQpe1xuICAgICAgQGFwcGx5IGJnLWNvbnRhaW4gYmctbm8tcmVwZWF0O1xuICAgICAgYmFja2dyb3VuZC1pbWFnZTogdXJsKCdkYXRhOmltYWdlL3N2Zyt4bWw7YmFzZTY0LFBITjJaeUI0Yld4dWN6MGlhSFIwY0RvdkwzZDNkeTUzTXk1dmNtY3ZNakF3TUM5emRtY2lJSFpwWlhkQ2IzZzlJakFnTUNBeU1DQXlNQ0lnWm1sc2JEMGlJelF4TkRNME5TSWdZMnhoYzNNOUluTnBlbVV0TlNJK0NpQWdQSEJoZEdnZ1ptbHNiQzF5ZFd4bFBTSmxkbVZ1YjJSa0lpQmtQU0pOT0M0eU1pQTFMakl5WVM0M05TNDNOU0F3SURBZ01TQXhMakEySURCc05DNHlOU0EwTGpJMVlTNDNOUzQzTlNBd0lEQWdNU0F3SURFdU1EWnNMVFF1TWpVZ05DNHlOV0V1TnpVdU56VWdNQ0F3SURFdE1TNHdOaTB4TGpBMlRERXhMamswSURFd0lEZ3VNaklnTmk0eU9HRXVOelV1TnpVZ01DQXdJREVnTUMweExqQTJXaUlnWTJ4cGNDMXlkV3hsUFNKbGRtVnViMlJrSWlBdlBnbzhMM04yWno0S0NnPT0nKTsgXG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tcHJldjo6YWZ0ZXIpe1xuICAgICAgQGFwcGx5IHRleHQtQ29sb3JzLUZvcmVncm91bmQtRGVmYXVsdCBjb250ZW50LW5vbmU7XG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tbmV4dDo6YWZ0ZXIpe1xuICAgICAgQGFwcGx5IHRleHQtQ29sb3JzLUZvcmVncm91bmQtRGVmYXVsdCBjb250ZW50LW5vbmU7XG4gICAgfVxuICB9XG4gIDpnbG9iYWwoLnN3aXBlci5iYW5uZXItc3dpcGVyKSB7XG4gICAgOmdsb2JhbCguYmFubmVyLXN3aXBlci1zbGlkZS5zd2lwZXItc2xpZGUtcHJldikge1xuICAgICAgLy8gdHJhbnNmb3JtOiBzY2FsZSgwLjgpO1xuICAgICAgQGFwcGx5IG9yaWdpbi1yaWdodDtcbiAgICB9XG4gICAgOmdsb2JhbCguYmFubmVyLXN3aXBlci1zbGlkZS5zd2lwZXItc2xpZGUtbmV4dCkge1xuICAgICAgLy8gdHJhbnNmb3JtOiBzY2FsZSgwLjgpO1xuICAgICAgQGFwcGx5IG9yaWdpbi1sZWZ0O1xuICAgIH1cbiAgICA6Z2xvYmFsKC5zd2lwZXItc2xpZGUtYWN0aXZlKSB7XG4gICAgICBAYXBwbHkgb3BhY2l0eS0xMDA7XG4gICAgICAvLyB0cmFuc2Zvcm06IHNjYWxlKDEpIHRyYW5zbGF0ZVgoMCk7XG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tbmV4dCl7XG4gICAgICBAYXBwbHkgLXJpZ2h0LTQgbWQ6cmlnaHQtMCAzeGw6cmlnaHQtW2NhbGMoKDEwMCUtMTIwMHB4KS8yLTE2cHgpXTtcbiAgICB9XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1wcmV2KXtcbiAgICAgIEBhcHBseSAtbGVmdC00IG1kOmxlZnQtMCAzeGw6bGVmdC1bY2FsYygoMTAwJS0xMjAwcHgpLzItMTZweCldO1xuICAgIH1cbiAgfVxuICA6Z2xvYmFsKC5zd2lwZXIuZmVhdHVyZS1zd2lwZXIpIHtcbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLW5leHQpe1xuICAgICAgQGFwcGx5IHJpZ2h0LTA7XG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tcHJldil7XG4gICAgICBAYXBwbHkgbGVmdC0wO1xuICAgIH1cbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLWRpc2FibGVkKSB7XG4gICAgICBAYXBwbHkgaGlkZGVuO1xuICAgIH1cbiAgfVxuICA6Z2xvYmFsKC5zd2lwZXIucGF0cm9uLWJhZGdlLXN3aXBlcikge1xuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tbmV4dCl7XG4gICAgICBAYXBwbHkgcmlnaHQtMDtcbiAgICB9XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1wcmV2KXtcbiAgICAgIEBhcHBseSBsZWZ0LTA7XG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tZGlzYWJsZWQpIHtcbiAgICAgIEBhcHBseSBoaWRkZW47XG4gICAgfVxuICB9XG4gIDpnbG9iYWwoLnN3aXBlci5ncmlkLXN3aXBlcikge1xuICAgIDpnbG9iYWwoLnN3aXBlci13cmFwcGVyKSB7XG4gICAgICBAYXBwbHkgdy1bMTAwdnddIG1kOnctZnVsbCBmbGV4LXdyYXAgZmxleC1jb2wgbS0wO1xuICAgIH1cbiAgfVxuICA6Z2xvYmFsKC5zd2lwZXIpIHtcbiAgICBcbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLW5leHQpe1xuICAgICAgQGFwcGx5IGhpZGRlbiBtZDpmbGV4IGp1c3RpZnktY2VudGVyIGl0ZW1zLWNlbnRlciBhYnNvbHV0ZSB0b3AtWzUwJV0gdy04IGgtOCBmb250LXNlbWlib2xkIHRleHQtQ29sb3JzLUZvcmVncm91bmQtRGVmYXVsdCBib3JkZXIgYm9yZGVyLUNvbG9ycy1Cb3JkZXItRGVmYXVsdCBiZy1Db2xvcnMtQmFja2dyb3VuZC1Ob3JtYWwtUHJpbWFyeS1EZWZhdWx0IHJvdW5kZWQtZnVsbCBjdXJzb3ItcG9pbnRlciBob3ZlcjpiZy1Db2xvcnMtQmFja2dyb3VuZC1Ob3JtYWwtUHJpbWFyeS1Ib3ZlciBhY3RpdmU6YmctQ29sb3JzLUJhY2tncm91bmQtTm9ybWFsLVByaW1hcnktQWN0aXZlO1xuICAgICAgICAmOjphZnRlciB7XG4gICAgICAgICAgQGFwcGx5IHRleHQtQ29sb3JzLUZvcmVncm91bmQtRGVmYXVsdCB0ZXh0LXhzIGZvbnQtYm9sZDtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tcHJldil7XG4gICAgICBAYXBwbHkgaGlkZGVuIG1kOmZsZXgganVzdGlmeS1jZW50ZXIgaXRlbXMtY2VudGVyIGFic29sdXRlIHRvcC1bNTAlXSB3LTggaC04IGZvbnQtc2VtaWJvbGQgdGV4dC1Db2xvcnMtRm9yZWdyb3VuZC1EZWZhdWx0IGJvcmRlciBib3JkZXItQ29sb3JzLUJvcmRlci1EZWZhdWx0IGJnLUNvbG9ycy1CYWNrZ3JvdW5kLU5vcm1hbC1QcmltYXJ5LURlZmF1bHQgcm91bmRlZC1mdWxsIGN1cnNvci1wb2ludGVyIGhvdmVyOmJnLUNvbG9ycy1CYWNrZ3JvdW5kLU5vcm1hbC1QcmltYXJ5LUhvdmVyIGFjdGl2ZTpiZy1Db2xvcnMtQmFja2dyb3VuZC1Ob3JtYWwtUHJpbWFyeS1BY3RpdmU7XG4gICAgICAgICY6OmFmdGVyIHtcbiAgICAgICAgICBAYXBwbHkgdGV4dC1Db2xvcnMtRm9yZWdyb3VuZC1EZWZhdWx0IHRleHQteHMgZm9udC1ib2xkO1xuICAgICAgfVxuICAgIH1cbiAgfVxufVxuXG4uYW5pbWF0ZSB7XG4gIDpnbG9iYWwoLnN3aXBlci1zbGlkZSkge1xuICAgIHRyYW5zaXRpb246IHRyYW5zZm9ybSA1MDBtcyBsaW5lYXI7XG4gIH1cbn1cbiJdfQ== */';
|
|
13248
13276
|
// src/components/swiper/index.tsx
|
|
13249
|
-
var
|
|
13277
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
13250
13278
|
var swiperVariants = (0, import_class_variance_authority21.cva)("", {
|
|
13251
13279
|
variants: {
|
|
13252
13280
|
rounded: {
|
|
@@ -13382,9 +13410,9 @@ function Swiper(props) {
|
|
|
13382
13410
|
}
|
|
13383
13411
|
}
|
|
13384
13412
|
};
|
|
13385
|
-
return /* @__PURE__ */ (0,
|
|
13413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {
|
|
13386
13414
|
className: index_module_default.swiperBox,
|
|
13387
|
-
children: /* @__PURE__ */ (0,
|
|
13415
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react17.Swiper, _object_spread_props(_object_spread({
|
|
13388
13416
|
observer: true,
|
|
13389
13417
|
observeParents: true
|
|
13390
13418
|
}, swiperConfigs), {
|
|
@@ -13394,9 +13422,9 @@ function Swiper(props) {
|
|
|
13394
13422
|
swiperRef.current = swiper;
|
|
13395
13423
|
},
|
|
13396
13424
|
children: swiperList.map(function(item, index) {
|
|
13397
|
-
return /* @__PURE__ */ (0,
|
|
13425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react17.SwiperSlide, {
|
|
13398
13426
|
className: cn(isBanner && "banner-swiper-slide !w-[90%] md:!w-[98%] h-[220px] md:h-auto max-w-[1200px] aspect-[4/1] rounded-2xl opacity-30", isFeatured && "rounded-2xl !w-[100%-32px] md:!w-[100%-72px]", isGrid && "grid-swiper-slide !w-[100%-32px] md:!w-[100%-72px] !h-[100%/3] flex justify-center items-center rounded-2xl", "text-clip", slideClassName),
|
|
13399
|
-
children: /* @__PURE__ */ (0,
|
|
13427
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Com, {
|
|
13400
13428
|
item: item,
|
|
13401
13429
|
index: index,
|
|
13402
13430
|
onClick: handleSlideItemClick,
|
|
@@ -13417,48 +13445,48 @@ var import_ExclamationCircleIcon = __toESM(require("@heroicons/react/24/solid/es
|
|
|
13417
13445
|
var import_InformationCircleIcon3 = __toESM(require("@heroicons/react/24/solid/esm/InformationCircleIcon"), 1);
|
|
13418
13446
|
var import_XCircleIcon3 = __toESM(require("@heroicons/react/24/solid/esm/XCircleIcon"), 1);
|
|
13419
13447
|
var import_react_hot_toast = require("react-hot-toast");
|
|
13420
|
-
var
|
|
13448
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
13421
13449
|
function CustomNotification(param) {
|
|
13422
13450
|
var tProps = param.tProps, customProps = param.customProps;
|
|
13423
13451
|
var type = customProps.type, title = customProps.title, content = customProps.content, _customProps_isClosable = customProps.isClosable, isClosable = _customProps_isClosable === void 0 ? false : _customProps_isClosable, action = customProps.action, loading = customProps.loading;
|
|
13424
13452
|
var id = tProps.id;
|
|
13425
13453
|
var displayedContent = !isString(content) ? JSON.stringify(content) : content;
|
|
13426
|
-
return /* @__PURE__ */ (0,
|
|
13427
|
-
children: /* @__PURE__ */ (0,
|
|
13454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", {
|
|
13455
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", {
|
|
13428
13456
|
id: id,
|
|
13429
13457
|
className: "z-[10000000] min-h-10 w-fit max-w-[90vw] rounded-full border border-Colors-Border-Opaque bg-Colors-Background-Normal-Primary-Default px-3 py-2 shadow-modal-default md:max-w-[560px]",
|
|
13430
|
-
children: /* @__PURE__ */ (0,
|
|
13458
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", {
|
|
13431
13459
|
className: "flex w-full items-center justify-center gap-2",
|
|
13432
13460
|
children: [
|
|
13433
|
-
loading && /* @__PURE__ */ (0,
|
|
13434
|
-
!loading && type && /* @__PURE__ */ (0,
|
|
13461
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Spinner, {}),
|
|
13462
|
+
!loading && type && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", {
|
|
13435
13463
|
className: "flex flex-shrink-0 items-center",
|
|
13436
13464
|
children: [
|
|
13437
|
-
type === "info" && /* @__PURE__ */ (0,
|
|
13465
|
+
type === "info" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_InformationCircleIcon3.default, {
|
|
13438
13466
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
13439
13467
|
}),
|
|
13440
|
-
type === "success" && /* @__PURE__ */ (0,
|
|
13468
|
+
type === "success" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_CheckCircleIcon3.default, {
|
|
13441
13469
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
13442
13470
|
}),
|
|
13443
|
-
type === "warning" && /* @__PURE__ */ (0,
|
|
13471
|
+
type === "warning" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_ExclamationCircleIcon.default, {
|
|
13444
13472
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
13445
13473
|
}),
|
|
13446
|
-
type === "error" && /* @__PURE__ */ (0,
|
|
13474
|
+
type === "error" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_XCircleIcon3.default, {
|
|
13447
13475
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
13448
13476
|
})
|
|
13449
13477
|
]
|
|
13450
13478
|
}),
|
|
13451
|
-
/* @__PURE__ */ (0,
|
|
13479
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", {
|
|
13452
13480
|
className: "flex flex-grow flex-col space-y-1 overflow-hidden",
|
|
13453
13481
|
children: [
|
|
13454
|
-
title && /* @__PURE__ */ (0,
|
|
13482
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, {
|
|
13455
13483
|
size: "sm",
|
|
13456
13484
|
weight: "regular",
|
|
13457
13485
|
color: "default",
|
|
13458
13486
|
children: title
|
|
13459
13487
|
}),
|
|
13460
|
-
/* @__PURE__ */ (0,
|
|
13461
|
-
children: /* @__PURE__ */ (0,
|
|
13488
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", {
|
|
13489
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, {
|
|
13462
13490
|
size: "sm",
|
|
13463
13491
|
weight: "regular",
|
|
13464
13492
|
color: "default",
|
|
@@ -13467,16 +13495,16 @@ function CustomNotification(param) {
|
|
|
13467
13495
|
})
|
|
13468
13496
|
]
|
|
13469
13497
|
}),
|
|
13470
|
-
action && /* @__PURE__ */ (0,
|
|
13498
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, {
|
|
13471
13499
|
children: [
|
|
13472
|
-
/* @__PURE__ */ (0,
|
|
13500
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Separator, {
|
|
13473
13501
|
orientation: "vertical",
|
|
13474
13502
|
className: "h-3"
|
|
13475
13503
|
}),
|
|
13476
13504
|
action
|
|
13477
13505
|
]
|
|
13478
13506
|
}),
|
|
13479
|
-
isClosable && /* @__PURE__ */ (0,
|
|
13507
|
+
isClosable && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(IconButton, {
|
|
13480
13508
|
size: "sm",
|
|
13481
13509
|
variant: "plain",
|
|
13482
13510
|
icon: import_XMarkIcon4.default,
|
|
@@ -13493,14 +13521,14 @@ function CustomNotification(param) {
|
|
|
13493
13521
|
// src/common/hooks/useNotification.tsx
|
|
13494
13522
|
var import_react18 = require("react");
|
|
13495
13523
|
var import_react_hot_toast2 = require("react-hot-toast");
|
|
13496
|
-
var
|
|
13524
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
13497
13525
|
function useNotification() {
|
|
13498
13526
|
var addToast = (0, import_react18.useCallback)(function(config2, duration2) {
|
|
13499
13527
|
if (config2.id) {
|
|
13500
13528
|
import_react_hot_toast2.toast.remove(config2.id);
|
|
13501
13529
|
}
|
|
13502
13530
|
import_react_hot_toast2.toast.custom(function(t) {
|
|
13503
|
-
return /* @__PURE__ */ (0,
|
|
13531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CustomNotification, {
|
|
13504
13532
|
tProps: _object_spread_props(_object_spread({}, t), {
|
|
13505
13533
|
duration: duration2
|
|
13506
13534
|
}),
|
|
@@ -13561,7 +13589,7 @@ var Message = /*#__PURE__*/ function() {
|
|
|
13561
13589
|
}
|
|
13562
13590
|
var addToast = function() {
|
|
13563
13591
|
import_react_hot_toast2.toast.custom(function(t) {
|
|
13564
|
-
return /* @__PURE__ */ (0,
|
|
13592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CustomNotification, {
|
|
13565
13593
|
tProps: _object_spread_props(_object_spread({}, t), {
|
|
13566
13594
|
duration: duration2
|
|
13567
13595
|
}),
|
|
@@ -13616,27 +13644,6 @@ var Message = /*#__PURE__*/ function() {
|
|
|
13616
13644
|
]);
|
|
13617
13645
|
return Message;
|
|
13618
13646
|
}();
|
|
13619
|
-
// src/components/icons/outline/ArrowLeftIcon.tsx
|
|
13620
|
-
var React43 = __toESM(require("react"), 1);
|
|
13621
|
-
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
13622
|
-
var ArrowLeftIcon2 = React43.forwardRef(function(props, ref) {
|
|
13623
|
-
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13624
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", {
|
|
13625
|
-
ref: ref,
|
|
13626
|
-
className: "w-full h-full",
|
|
13627
|
-
viewBox: "0 0 24 24",
|
|
13628
|
-
fill: "none",
|
|
13629
|
-
strokeWidth: "1.5",
|
|
13630
|
-
stroke: "currentColor",
|
|
13631
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13632
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("path", {
|
|
13633
|
-
strokeLinecap: "round",
|
|
13634
|
-
strokeLinejoin: "round",
|
|
13635
|
-
d: "M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"
|
|
13636
|
-
})
|
|
13637
|
-
})
|
|
13638
|
-
}));
|
|
13639
|
-
});
|
|
13640
13647
|
// src/components/icons/outline/ArrowUpTrayIcon.tsx
|
|
13641
13648
|
var React44 = __toESM(require("react"), 1);
|
|
13642
13649
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|