myshell-react-lib 0.1.43 → 0.1.45
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 +297 -287
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +259 -249
- 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;
|
|
@@ -8860,7 +8860,7 @@ function ModalFooter(_param) {
|
|
|
8860
8860
|
"children"
|
|
8861
8861
|
]);
|
|
8862
8862
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", _object_spread_props(_object_spread({
|
|
8863
|
-
className: cn("border-t border-Colors-Border-Default flex justify-end
|
|
8863
|
+
className: cn("border-t border-Colors-Border-Default flex justify-end px-4 pt-3 pb-1.5", className)
|
|
8864
8864
|
}, props), {
|
|
8865
8865
|
children: children
|
|
8866
8866
|
}));
|
|
@@ -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 === 2 && !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 === 1 && isMobile2 && !(avatar === null || avatar === void 0 ? void 0 : avatar.logo) && /* @__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;
|
|
@@ -12177,7 +12205,7 @@ var tabListVariants = (0, import_class_variance_authority17.cva)("w-full relativ
|
|
|
12177
12205
|
},
|
|
12178
12206
|
variant: {
|
|
12179
12207
|
button: "justify-center border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5",
|
|
12180
|
-
underline:
|
|
12208
|
+
underline: 'justify-start space-x-6 rounded-none relative before:absolute before:content-[""] before:bottom-0 before:left-0 before:right-0 before:h-[1px] before:bg-[var(--Colors-Border-Default)]',
|
|
12181
12209
|
icon: "justify-center border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5"
|
|
12182
12210
|
},
|
|
12183
12211
|
rounded: {
|
|
@@ -12248,7 +12276,7 @@ var tabListVariants = (0, import_class_variance_authority17.cva)("w-full relativ
|
|
|
12248
12276
|
rounded: "default"
|
|
12249
12277
|
}
|
|
12250
12278
|
});
|
|
12251
|
-
var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-flex h-full items-center
|
|
12279
|
+
var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-flex h-full items-center whitespace-nowrap font-medium text-cc-Tabbar-fg-default aria-[selected=true]:text-cc-Tabbar-fg-bolder [&>div>span]:hover:text-cc-Tabbar-fg-bolder disabled:cursor-not-allowed disabled:text-cc-Tabbar-fg-disabled [&>div>span]:disabled:text-cc-Tabbar-fg-disabled data-[state=active]:text-cc-Tabbar-fg-bolder", {
|
|
12252
12280
|
variants: {
|
|
12253
12281
|
size: {
|
|
12254
12282
|
sm: "text-xs h-4.5",
|
|
@@ -12257,7 +12285,7 @@ var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-fl
|
|
|
12257
12285
|
},
|
|
12258
12286
|
variant: {
|
|
12259
12287
|
button: "w-full px-3 py-2.5 justify-center aria-[selected=true]:bg-cc-Tabbar-bg-select aria-[selected=true]:shadow-background-default",
|
|
12260
|
-
underline:
|
|
12288
|
+
underline: 'w-fit justify-start shadow-none rounded-none relative aria-[selected=true]:before:absolute aria-[selected=true]:before:content-[""] aria-[selected=true]:before:bottom-0 aria-[selected=true]:before:left-0 aria-[selected=true]:before:right-0 aria-[selected=true]:before:h-0.5 aria-[selected=true]:before:bg-cc-Tabbar-border-default aria-[selected=true]:before:z-20',
|
|
12261
12289
|
icon: "w-full px-4 justify-center aria-[selected=true]:bg-cc-Tabbar-bg-select aria-[selected=true]:shadow-background-default"
|
|
12262
12290
|
},
|
|
12263
12291
|
rounded: {
|
|
@@ -12304,7 +12332,7 @@ var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-fl
|
|
|
12304
12332
|
{
|
|
12305
12333
|
variant: "underline",
|
|
12306
12334
|
size: "lg",
|
|
12307
|
-
className: "h-
|
|
12335
|
+
className: "h-8"
|
|
12308
12336
|
}
|
|
12309
12337
|
],
|
|
12310
12338
|
defaultVariants: {
|
|
@@ -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,
|
|
12413
|
-
className: "relative flex justify-center items-center",
|
|
12440
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", {
|
|
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",
|
|
@@ -12737,7 +12765,7 @@ var stateIconUrls = {
|
|
|
12737
12765
|
"network-error": "https://myshellstatic.com/image/website/20250425/network-error.png"
|
|
12738
12766
|
};
|
|
12739
12767
|
var State2 = function(param) {
|
|
12740
|
-
var variant = param.variant, title = param.title, description = param.description, className = param.className, icon = param.icon, logo = param.logo, backBtnText = param.backBtnText, _param_hideLogo = param.hideLogo, hideLogo = _param_hideLogo === void 0 ? false : _param_hideLogo, onBack = param.onBack;
|
|
12768
|
+
var variant = param.variant, title = param.title, description = param.description, className = param.className, icon = param.icon, logo = param.logo, backBtnText = param.backBtnText, iconClassName = param.iconClassName, logoClassName = param.logoClassName, titleClassName = param.titleClassName, descriptionClassName = param.descriptionClassName, _param_hideLogo = param.hideLogo, hideLogo = _param_hideLogo === void 0 ? false : _param_hideLogo, onBack = param.onBack;
|
|
12741
12769
|
var router = (0, import_navigation.useRouter)();
|
|
12742
12770
|
var handleBack = function() {
|
|
12743
12771
|
if (onBack) {
|
|
@@ -12747,45 +12775,48 @@ 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
|
-
size: "4xl"
|
|
12780
|
+
size: "4xl",
|
|
12781
|
+
className: iconClassName
|
|
12753
12782
|
});
|
|
12754
12783
|
} : function() {
|
|
12755
|
-
return /* @__PURE__ */ (0,
|
|
12784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", {
|
|
12756
12785
|
className: "w-[146px] md:w-[220px] h-[146px] md:h-[220px] rounded-full object-cover",
|
|
12757
|
-
children: /* @__PURE__ */ (0,
|
|
12786
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Image2, {
|
|
12758
12787
|
src: logo || stateIconUrls[variant],
|
|
12759
12788
|
alt: "state icon",
|
|
12760
|
-
className: "w-full h-full rounded-full object-cover"
|
|
12789
|
+
className: cn("w-full h-full rounded-full object-cover", logoClassName)
|
|
12761
12790
|
})
|
|
12762
12791
|
});
|
|
12763
12792
|
};
|
|
12764
|
-
return /* @__PURE__ */ (0,
|
|
12793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", {
|
|
12765
12794
|
className: cn("flex flex-col items-center", className, {
|
|
12766
12795
|
"space-y-6": !icon,
|
|
12767
12796
|
"space-y-3": icon
|
|
12768
12797
|
}),
|
|
12769
12798
|
children: [
|
|
12770
|
-
!hideLogo && /* @__PURE__ */ (0,
|
|
12771
|
-
/* @__PURE__ */ (0,
|
|
12799
|
+
!hideLogo && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(IconComponent2, {}),
|
|
12800
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", {
|
|
12772
12801
|
className: "flex flex-col items-center space-y-4",
|
|
12773
12802
|
children: [
|
|
12774
|
-
/* @__PURE__ */ (0,
|
|
12803
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", {
|
|
12775
12804
|
className: "flex flex-col items-center space-y-1",
|
|
12776
12805
|
children: [
|
|
12777
|
-
title && /* @__PURE__ */ (0,
|
|
12806
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Display, {
|
|
12778
12807
|
size: "sm",
|
|
12808
|
+
className: titleClassName,
|
|
12779
12809
|
children: title
|
|
12780
12810
|
}),
|
|
12781
|
-
/* @__PURE__ */ (0,
|
|
12811
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, {
|
|
12782
12812
|
size: "sm",
|
|
12783
12813
|
color: "subtle",
|
|
12814
|
+
className: descriptionClassName,
|
|
12784
12815
|
children: description
|
|
12785
12816
|
})
|
|
12786
12817
|
]
|
|
12787
12818
|
}),
|
|
12788
|
-
backBtnText && /* @__PURE__ */ (0,
|
|
12819
|
+
backBtnText && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Button, {
|
|
12789
12820
|
size: "lg",
|
|
12790
12821
|
onClick: handleBack,
|
|
12791
12822
|
children: backBtnText
|
|
@@ -12796,31 +12827,31 @@ var State2 = function(param) {
|
|
|
12796
12827
|
});
|
|
12797
12828
|
};
|
|
12798
12829
|
var ErrorState = function(args) {
|
|
12799
|
-
return /* @__PURE__ */ (0,
|
|
12830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(State2, _object_spread_props(_object_spread({}, args), {
|
|
12800
12831
|
variant: "error"
|
|
12801
12832
|
}));
|
|
12802
12833
|
};
|
|
12803
12834
|
var NetworkErrorState = function(args) {
|
|
12804
|
-
return /* @__PURE__ */ (0,
|
|
12835
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(State2, _object_spread_props(_object_spread({}, args), {
|
|
12805
12836
|
variant: "network-error"
|
|
12806
12837
|
}));
|
|
12807
12838
|
};
|
|
12808
12839
|
var NotFoundState = function(args) {
|
|
12809
|
-
return /* @__PURE__ */ (0,
|
|
12840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(State2, _object_spread_props(_object_spread({}, args), {
|
|
12810
12841
|
variant: "not-found"
|
|
12811
12842
|
}));
|
|
12812
12843
|
};
|
|
12813
12844
|
var NoPageState = function(args) {
|
|
12814
|
-
return /* @__PURE__ */ (0,
|
|
12845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(State2, _object_spread_props(_object_spread({}, args), {
|
|
12815
12846
|
variant: "no-page"
|
|
12816
12847
|
}));
|
|
12817
12848
|
};
|
|
12818
12849
|
// src/components/toast/toast.tsx
|
|
12819
12850
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"), 1);
|
|
12820
12851
|
var import_class_variance_authority20 = require("class-variance-authority");
|
|
12821
|
-
var
|
|
12852
|
+
var React41 = __toESM(require("react"), 1);
|
|
12822
12853
|
var import_XMarkIcon3 = __toESM(require("@heroicons/react/24/outline/esm/XMarkIcon"), 1);
|
|
12823
|
-
var
|
|
12854
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
12824
12855
|
var ToastProvider = ToastPrimitives.Provider;
|
|
12825
12856
|
var viewportPositionVariants = (0, import_class_variance_authority20.cva)("fixed z-[1000001] flex max-h-screen w-full p-0 gap-2", {
|
|
12826
12857
|
variants: {
|
|
@@ -12839,12 +12870,12 @@ var viewportPositionVariants = (0, import_class_variance_authority20.cva)("fixed
|
|
|
12839
12870
|
position: "top-right"
|
|
12840
12871
|
}
|
|
12841
12872
|
});
|
|
12842
|
-
var ToastViewport =
|
|
12873
|
+
var ToastViewport = React41.forwardRef(function(_param, ref) {
|
|
12843
12874
|
var className = _param.className, position = _param.position, props = _object_without_properties(_param, [
|
|
12844
12875
|
"className",
|
|
12845
12876
|
"position"
|
|
12846
12877
|
]);
|
|
12847
|
-
return /* @__PURE__ */ (0,
|
|
12878
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ToastPrimitives.Viewport, _object_spread({
|
|
12848
12879
|
ref: ref,
|
|
12849
12880
|
className: cn(viewportPositionVariants({
|
|
12850
12881
|
position: position
|
|
@@ -12876,13 +12907,13 @@ var toastVariants = (0, import_class_variance_authority20.cva)("group pointer-ev
|
|
|
12876
12907
|
position: "top-right"
|
|
12877
12908
|
}
|
|
12878
12909
|
});
|
|
12879
|
-
var Toast =
|
|
12910
|
+
var Toast = React41.forwardRef(function(_param, ref) {
|
|
12880
12911
|
var className = _param.className, variant = _param.variant, position = _param.position, props = _object_without_properties(_param, [
|
|
12881
12912
|
"className",
|
|
12882
12913
|
"variant",
|
|
12883
12914
|
"position"
|
|
12884
12915
|
]);
|
|
12885
|
-
return /* @__PURE__ */ (0,
|
|
12916
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ToastPrimitives.Root, _object_spread({
|
|
12886
12917
|
ref: ref,
|
|
12887
12918
|
className: cn(toastVariants({
|
|
12888
12919
|
variant: variant,
|
|
@@ -12892,46 +12923,46 @@ var Toast = React40.forwardRef(function(_param, ref) {
|
|
|
12892
12923
|
}, props));
|
|
12893
12924
|
});
|
|
12894
12925
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
12895
|
-
var ToastAction =
|
|
12926
|
+
var ToastAction = React41.forwardRef(function(_param, ref) {
|
|
12896
12927
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12897
12928
|
"className"
|
|
12898
12929
|
]);
|
|
12899
|
-
return /* @__PURE__ */ (0,
|
|
12930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ToastPrimitives.Action, _object_spread({
|
|
12900
12931
|
ref: ref,
|
|
12901
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)
|
|
12902
12933
|
}, props));
|
|
12903
12934
|
});
|
|
12904
12935
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
12905
|
-
var ToastClose =
|
|
12936
|
+
var ToastClose = React41.forwardRef(function(_param, ref) {
|
|
12906
12937
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12907
12938
|
"className"
|
|
12908
12939
|
]);
|
|
12909
|
-
return /* @__PURE__ */ (0,
|
|
12940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ToastPrimitives.Close, _object_spread_props(_object_spread({
|
|
12910
12941
|
ref: ref,
|
|
12911
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),
|
|
12912
12943
|
"toast-close": ""
|
|
12913
12944
|
}, props), {
|
|
12914
|
-
children: /* @__PURE__ */ (0,
|
|
12945
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_XMarkIcon3.default, {
|
|
12915
12946
|
className: "h-5 w-5"
|
|
12916
12947
|
})
|
|
12917
12948
|
}));
|
|
12918
12949
|
});
|
|
12919
12950
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
12920
|
-
var ToastTitle =
|
|
12951
|
+
var ToastTitle = React41.forwardRef(function(_param, ref) {
|
|
12921
12952
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12922
12953
|
"className"
|
|
12923
12954
|
]);
|
|
12924
|
-
return /* @__PURE__ */ (0,
|
|
12955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ToastPrimitives.Title, _object_spread({
|
|
12925
12956
|
ref: ref,
|
|
12926
12957
|
className: cn("text-sm font-semibold", className)
|
|
12927
12958
|
}, props));
|
|
12928
12959
|
});
|
|
12929
12960
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
12930
|
-
var ToastDescription =
|
|
12961
|
+
var ToastDescription = React41.forwardRef(function(_param, ref) {
|
|
12931
12962
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12932
12963
|
"className"
|
|
12933
12964
|
]);
|
|
12934
|
-
return /* @__PURE__ */ (0,
|
|
12965
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ToastPrimitives.Description, _object_spread({
|
|
12935
12966
|
ref: ref,
|
|
12936
12967
|
className: cn("text-sm opacity-90", className)
|
|
12937
12968
|
}, props));
|
|
@@ -12942,8 +12973,8 @@ var import_CheckCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/C
|
|
|
12942
12973
|
var import_InformationCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/InformationCircleIcon"), 1);
|
|
12943
12974
|
var import_XCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/XCircleIcon"), 1);
|
|
12944
12975
|
// src/components/toast/use-toast.tsx
|
|
12945
|
-
var
|
|
12946
|
-
var
|
|
12976
|
+
var React42 = __toESM(require("react"), 1);
|
|
12977
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
12947
12978
|
var TOAST_LIMIT = 8;
|
|
12948
12979
|
var TOAST_REMOVE_DELAY = 1e3;
|
|
12949
12980
|
var count = 0;
|
|
@@ -13046,10 +13077,10 @@ function toast(_param) {
|
|
|
13046
13077
|
toast: _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, props), {
|
|
13047
13078
|
position: position
|
|
13048
13079
|
}), actions && {
|
|
13049
|
-
action: /* @__PURE__ */ (0,
|
|
13080
|
+
action: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", {
|
|
13050
13081
|
className: "flex justify-start items-center gap-2",
|
|
13051
13082
|
children: [
|
|
13052
|
-
(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, {
|
|
13053
13084
|
size: "sm",
|
|
13054
13085
|
weight: "medium",
|
|
13055
13086
|
color: "brand",
|
|
@@ -13059,13 +13090,13 @@ function toast(_param) {
|
|
|
13059
13090
|
},
|
|
13060
13091
|
children: actions === null || actions === void 0 ? void 0 : actions.dismissText
|
|
13061
13092
|
}),
|
|
13062
|
-
(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, {
|
|
13063
13094
|
href: actions.viewUrl,
|
|
13064
13095
|
target: "_blank",
|
|
13065
13096
|
rel: "noreferrer noopener",
|
|
13066
|
-
children: /* @__PURE__ */ (0,
|
|
13097
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", {
|
|
13067
13098
|
className: "flex items-center gap-1.5",
|
|
13068
|
-
children: /* @__PURE__ */ (0,
|
|
13099
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Text, {
|
|
13069
13100
|
size: "sm",
|
|
13070
13101
|
weight: "medium",
|
|
13071
13102
|
color: "default",
|
|
@@ -13091,8 +13122,8 @@ function toast(_param) {
|
|
|
13091
13122
|
};
|
|
13092
13123
|
}
|
|
13093
13124
|
function useToast() {
|
|
13094
|
-
var
|
|
13095
|
-
|
|
13125
|
+
var _React42_useState = _sliced_to_array(React42.useState(memoryState), 2), state = _React42_useState[0], setState = _React42_useState[1];
|
|
13126
|
+
React42.useEffect(function() {
|
|
13096
13127
|
listeners.push(setState);
|
|
13097
13128
|
return function() {
|
|
13098
13129
|
var index = listeners.indexOf(setState);
|
|
@@ -13115,8 +13146,8 @@ function useToast() {
|
|
|
13115
13146
|
}
|
|
13116
13147
|
// src/components/toast/toaster.tsx
|
|
13117
13148
|
var import_react15 = __toESM(require("react"), 1);
|
|
13118
|
-
var
|
|
13119
|
-
var
|
|
13149
|
+
var import_outline2 = require("@heroicons/react/24/outline");
|
|
13150
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
13120
13151
|
function Toaster() {
|
|
13121
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;
|
|
13122
13153
|
var toasts = useToast().toasts;
|
|
@@ -13153,19 +13184,19 @@ function Toaster() {
|
|
|
13153
13184
|
var renderIcon3 = function(variant2) {
|
|
13154
13185
|
switch(variant2){
|
|
13155
13186
|
case "info":
|
|
13156
|
-
return /* @__PURE__ */ (0,
|
|
13187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_InformationCircleIcon2.default, {
|
|
13157
13188
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
13158
13189
|
});
|
|
13159
13190
|
case "success":
|
|
13160
|
-
return /* @__PURE__ */ (0,
|
|
13191
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_CheckCircleIcon2.default, {
|
|
13161
13192
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
13162
13193
|
});
|
|
13163
13194
|
case "warning":
|
|
13164
|
-
return /* @__PURE__ */ (0,
|
|
13195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_outline2.ExclamationTriangleIcon, {
|
|
13165
13196
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
13166
13197
|
});
|
|
13167
13198
|
case "error":
|
|
13168
|
-
return /* @__PURE__ */ (0,
|
|
13199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_XCircleIcon2.default, {
|
|
13169
13200
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
13170
13201
|
});
|
|
13171
13202
|
}
|
|
@@ -13182,26 +13213,26 @@ function Toaster() {
|
|
|
13182
13213
|
return "bg-Colors-Background-Critical-Default";
|
|
13183
13214
|
}
|
|
13184
13215
|
};
|
|
13185
|
-
return /* @__PURE__ */ (0,
|
|
13216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Toast, _object_spread_props(_object_spread({}, toast4), {
|
|
13186
13217
|
position: toastPosition,
|
|
13187
13218
|
children: [
|
|
13188
|
-
/* @__PURE__ */ (0,
|
|
13219
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", {
|
|
13189
13220
|
className: "flex flex-col gap-3",
|
|
13190
|
-
children: /* @__PURE__ */ (0,
|
|
13221
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", {
|
|
13191
13222
|
className: "flex items-start gap-3",
|
|
13192
13223
|
children: [
|
|
13193
|
-
/* @__PURE__ */ (0,
|
|
13224
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", {
|
|
13194
13225
|
className: cn("flex h-10 w-10 flex-shrink-0 flex-grow-0 items-center justify-center rounded-full", getBackgroundColor(variant)),
|
|
13195
13226
|
children: renderIcon3(variant)
|
|
13196
13227
|
}),
|
|
13197
|
-
/* @__PURE__ */ (0,
|
|
13228
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", {
|
|
13198
13229
|
className: "grid gap-1",
|
|
13199
13230
|
children: [
|
|
13200
|
-
title && /* @__PURE__ */ (0,
|
|
13231
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ToastTitle, {
|
|
13201
13232
|
className: "text-base text-Colors-Text-Default",
|
|
13202
13233
|
children: title
|
|
13203
13234
|
}),
|
|
13204
|
-
description && /* @__PURE__ */ (0,
|
|
13235
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ToastDescription, {
|
|
13205
13236
|
className: "text-sm text-Colors-Text-Subtle",
|
|
13206
13237
|
children: description
|
|
13207
13238
|
}),
|
|
@@ -13211,17 +13242,17 @@ function Toaster() {
|
|
|
13211
13242
|
]
|
|
13212
13243
|
})
|
|
13213
13244
|
}),
|
|
13214
|
-
/* @__PURE__ */ (0,
|
|
13245
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ToastClose, {})
|
|
13215
13246
|
]
|
|
13216
13247
|
}), id);
|
|
13217
13248
|
};
|
|
13218
|
-
return /* @__PURE__ */ (0,
|
|
13249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ToastProvider, {
|
|
13219
13250
|
children: Object.entries(positionGroups).map(function(param) {
|
|
13220
13251
|
var _param = _sliced_to_array(param, 2), pos = _param[0], toastsForPosition = _param[1];
|
|
13221
|
-
return /* @__PURE__ */ (0,
|
|
13252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react15.default.Fragment, {
|
|
13222
13253
|
children: [
|
|
13223
13254
|
toastsForPosition.map(renderToast),
|
|
13224
|
-
toastsForPosition.length > 0 && /* @__PURE__ */ (0,
|
|
13255
|
+
toastsForPosition.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ToastViewport, {
|
|
13225
13256
|
position: pos
|
|
13226
13257
|
})
|
|
13227
13258
|
]
|
|
@@ -13243,7 +13274,7 @@ var import_pagination = require("swiper/css/pagination");
|
|
|
13243
13274
|
// src/components/swiper/index.module.scss
|
|
13244
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== */';
|
|
13245
13276
|
// src/components/swiper/index.tsx
|
|
13246
|
-
var
|
|
13277
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
13247
13278
|
var swiperVariants = (0, import_class_variance_authority21.cva)("", {
|
|
13248
13279
|
variants: {
|
|
13249
13280
|
rounded: {
|
|
@@ -13379,9 +13410,9 @@ function Swiper(props) {
|
|
|
13379
13410
|
}
|
|
13380
13411
|
}
|
|
13381
13412
|
};
|
|
13382
|
-
return /* @__PURE__ */ (0,
|
|
13413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {
|
|
13383
13414
|
className: index_module_default.swiperBox,
|
|
13384
|
-
children: /* @__PURE__ */ (0,
|
|
13415
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react17.Swiper, _object_spread_props(_object_spread({
|
|
13385
13416
|
observer: true,
|
|
13386
13417
|
observeParents: true
|
|
13387
13418
|
}, swiperConfigs), {
|
|
@@ -13391,9 +13422,9 @@ function Swiper(props) {
|
|
|
13391
13422
|
swiperRef.current = swiper;
|
|
13392
13423
|
},
|
|
13393
13424
|
children: swiperList.map(function(item, index) {
|
|
13394
|
-
return /* @__PURE__ */ (0,
|
|
13425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react17.SwiperSlide, {
|
|
13395
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),
|
|
13396
|
-
children: /* @__PURE__ */ (0,
|
|
13427
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Com, {
|
|
13397
13428
|
item: item,
|
|
13398
13429
|
index: index,
|
|
13399
13430
|
onClick: handleSlideItemClick,
|
|
@@ -13414,48 +13445,48 @@ var import_ExclamationCircleIcon = __toESM(require("@heroicons/react/24/solid/es
|
|
|
13414
13445
|
var import_InformationCircleIcon3 = __toESM(require("@heroicons/react/24/solid/esm/InformationCircleIcon"), 1);
|
|
13415
13446
|
var import_XCircleIcon3 = __toESM(require("@heroicons/react/24/solid/esm/XCircleIcon"), 1);
|
|
13416
13447
|
var import_react_hot_toast = require("react-hot-toast");
|
|
13417
|
-
var
|
|
13448
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
13418
13449
|
function CustomNotification(param) {
|
|
13419
13450
|
var tProps = param.tProps, customProps = param.customProps;
|
|
13420
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;
|
|
13421
13452
|
var id = tProps.id;
|
|
13422
13453
|
var displayedContent = !isString(content) ? JSON.stringify(content) : content;
|
|
13423
|
-
return /* @__PURE__ */ (0,
|
|
13424
|
-
children: /* @__PURE__ */ (0,
|
|
13454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", {
|
|
13455
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", {
|
|
13425
13456
|
id: id,
|
|
13426
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]",
|
|
13427
|
-
children: /* @__PURE__ */ (0,
|
|
13458
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", {
|
|
13428
13459
|
className: "flex w-full items-center justify-center gap-2",
|
|
13429
13460
|
children: [
|
|
13430
|
-
loading && /* @__PURE__ */ (0,
|
|
13431
|
-
!loading && type && /* @__PURE__ */ (0,
|
|
13461
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Spinner, {}),
|
|
13462
|
+
!loading && type && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", {
|
|
13432
13463
|
className: "flex flex-shrink-0 items-center",
|
|
13433
13464
|
children: [
|
|
13434
|
-
type === "info" && /* @__PURE__ */ (0,
|
|
13465
|
+
type === "info" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_InformationCircleIcon3.default, {
|
|
13435
13466
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
13436
13467
|
}),
|
|
13437
|
-
type === "success" && /* @__PURE__ */ (0,
|
|
13468
|
+
type === "success" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_CheckCircleIcon3.default, {
|
|
13438
13469
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
13439
13470
|
}),
|
|
13440
|
-
type === "warning" && /* @__PURE__ */ (0,
|
|
13471
|
+
type === "warning" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_ExclamationCircleIcon.default, {
|
|
13441
13472
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
13442
13473
|
}),
|
|
13443
|
-
type === "error" && /* @__PURE__ */ (0,
|
|
13474
|
+
type === "error" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_XCircleIcon3.default, {
|
|
13444
13475
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
13445
13476
|
})
|
|
13446
13477
|
]
|
|
13447
13478
|
}),
|
|
13448
|
-
/* @__PURE__ */ (0,
|
|
13479
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", {
|
|
13449
13480
|
className: "flex flex-grow flex-col space-y-1 overflow-hidden",
|
|
13450
13481
|
children: [
|
|
13451
|
-
title && /* @__PURE__ */ (0,
|
|
13482
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, {
|
|
13452
13483
|
size: "sm",
|
|
13453
13484
|
weight: "regular",
|
|
13454
13485
|
color: "default",
|
|
13455
13486
|
children: title
|
|
13456
13487
|
}),
|
|
13457
|
-
/* @__PURE__ */ (0,
|
|
13458
|
-
children: /* @__PURE__ */ (0,
|
|
13488
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", {
|
|
13489
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, {
|
|
13459
13490
|
size: "sm",
|
|
13460
13491
|
weight: "regular",
|
|
13461
13492
|
color: "default",
|
|
@@ -13464,16 +13495,16 @@ function CustomNotification(param) {
|
|
|
13464
13495
|
})
|
|
13465
13496
|
]
|
|
13466
13497
|
}),
|
|
13467
|
-
action && /* @__PURE__ */ (0,
|
|
13498
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, {
|
|
13468
13499
|
children: [
|
|
13469
|
-
/* @__PURE__ */ (0,
|
|
13500
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Separator, {
|
|
13470
13501
|
orientation: "vertical",
|
|
13471
13502
|
className: "h-3"
|
|
13472
13503
|
}),
|
|
13473
13504
|
action
|
|
13474
13505
|
]
|
|
13475
13506
|
}),
|
|
13476
|
-
isClosable && /* @__PURE__ */ (0,
|
|
13507
|
+
isClosable && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(IconButton, {
|
|
13477
13508
|
size: "sm",
|
|
13478
13509
|
variant: "plain",
|
|
13479
13510
|
icon: import_XMarkIcon4.default,
|
|
@@ -13490,14 +13521,14 @@ function CustomNotification(param) {
|
|
|
13490
13521
|
// src/common/hooks/useNotification.tsx
|
|
13491
13522
|
var import_react18 = require("react");
|
|
13492
13523
|
var import_react_hot_toast2 = require("react-hot-toast");
|
|
13493
|
-
var
|
|
13524
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
13494
13525
|
function useNotification() {
|
|
13495
13526
|
var addToast = (0, import_react18.useCallback)(function(config2, duration2) {
|
|
13496
13527
|
if (config2.id) {
|
|
13497
13528
|
import_react_hot_toast2.toast.remove(config2.id);
|
|
13498
13529
|
}
|
|
13499
13530
|
import_react_hot_toast2.toast.custom(function(t) {
|
|
13500
|
-
return /* @__PURE__ */ (0,
|
|
13531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CustomNotification, {
|
|
13501
13532
|
tProps: _object_spread_props(_object_spread({}, t), {
|
|
13502
13533
|
duration: duration2
|
|
13503
13534
|
}),
|
|
@@ -13558,7 +13589,7 @@ var Message = /*#__PURE__*/ function() {
|
|
|
13558
13589
|
}
|
|
13559
13590
|
var addToast = function() {
|
|
13560
13591
|
import_react_hot_toast2.toast.custom(function(t) {
|
|
13561
|
-
return /* @__PURE__ */ (0,
|
|
13592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CustomNotification, {
|
|
13562
13593
|
tProps: _object_spread_props(_object_spread({}, t), {
|
|
13563
13594
|
duration: duration2
|
|
13564
13595
|
}),
|
|
@@ -13613,27 +13644,6 @@ var Message = /*#__PURE__*/ function() {
|
|
|
13613
13644
|
]);
|
|
13614
13645
|
return Message;
|
|
13615
13646
|
}();
|
|
13616
|
-
// src/components/icons/outline/ArrowLeftIcon.tsx
|
|
13617
|
-
var React43 = __toESM(require("react"), 1);
|
|
13618
|
-
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
13619
|
-
var ArrowLeftIcon2 = React43.forwardRef(function(props, ref) {
|
|
13620
|
-
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13621
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", {
|
|
13622
|
-
ref: ref,
|
|
13623
|
-
className: "w-full h-full",
|
|
13624
|
-
viewBox: "0 0 24 24",
|
|
13625
|
-
fill: "none",
|
|
13626
|
-
strokeWidth: "1.5",
|
|
13627
|
-
stroke: "currentColor",
|
|
13628
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13629
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("path", {
|
|
13630
|
-
strokeLinecap: "round",
|
|
13631
|
-
strokeLinejoin: "round",
|
|
13632
|
-
d: "M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"
|
|
13633
|
-
})
|
|
13634
|
-
})
|
|
13635
|
-
}));
|
|
13636
|
-
});
|
|
13637
13647
|
// src/components/icons/outline/ArrowUpTrayIcon.tsx
|
|
13638
13648
|
var React44 = __toESM(require("react"), 1);
|
|
13639
13649
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|