myshell-react-lib 0.1.34 → 0.1.36
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 +367 -555
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -53
- package/dist/index.d.ts +21 -53
- package/dist/index.js +361 -549
- package/dist/index.js.map +1 -1
- package/dist/styles/components-dark.scss +2 -2
- package/dist/styles/components-light.scss +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4420,6 +4420,9 @@ __export(index_exports, {
|
|
|
4420
4420
|
Message: function() {
|
|
4421
4421
|
return Message;
|
|
4422
4422
|
},
|
|
4423
|
+
MiddleBar: function() {
|
|
4424
|
+
return MiddleBar;
|
|
4425
|
+
},
|
|
4423
4426
|
Modal: function() {
|
|
4424
4427
|
return Modal;
|
|
4425
4428
|
},
|
|
@@ -4444,9 +4447,6 @@ __export(index_exports, {
|
|
|
4444
4447
|
ModalTitle: function() {
|
|
4445
4448
|
return ModalTitle;
|
|
4446
4449
|
},
|
|
4447
|
-
NavigationBar: function() {
|
|
4448
|
-
return NavigationBar;
|
|
4449
|
-
},
|
|
4450
4450
|
NumberInput: function() {
|
|
4451
4451
|
return NumberInput;
|
|
4452
4452
|
},
|
|
@@ -4498,9 +4498,6 @@ __export(index_exports, {
|
|
|
4498
4498
|
SearchBar: function() {
|
|
4499
4499
|
return SearchBar;
|
|
4500
4500
|
},
|
|
4501
|
-
SecondaryNavigationBar: function() {
|
|
4502
|
-
return SecondaryNavigationBar;
|
|
4503
|
-
},
|
|
4504
4501
|
Select: function() {
|
|
4505
4502
|
return Select;
|
|
4506
4503
|
},
|
|
@@ -4660,6 +4657,9 @@ __export(index_exports, {
|
|
|
4660
4657
|
TooltipProvider: function() {
|
|
4661
4658
|
return TooltipProvider;
|
|
4662
4659
|
},
|
|
4660
|
+
TopNavigationBar: function() {
|
|
4661
|
+
return TopNavigationBar;
|
|
4662
|
+
},
|
|
4663
4663
|
WindowIcon: function() {
|
|
4664
4664
|
return WindowIcon;
|
|
4665
4665
|
},
|
|
@@ -5417,7 +5417,7 @@ function Image2(_param) {
|
|
|
5417
5417
|
}
|
|
5418
5418
|
// src/components/button/button.styles.ts
|
|
5419
5419
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
5420
|
-
var BASE_BUTTON = "relative shrink-0 inline-flex items-center justify-center whitespace-nowrap rounded-sm font-medium transition-colors focus-visible:secondary-none focus-visible:shadow-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:pointer-events-none disabled:
|
|
5420
|
+
var BASE_BUTTON = "relative shrink-0 inline-flex items-center justify-center whitespace-nowrap rounded-sm font-medium transition-colors focus-visible:secondary-none focus-visible:shadow-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:pointer-events-none disabled:shadow-none [&>span>svg]:text-inherit [&>span>span>svg]:text-inherit";
|
|
5421
5421
|
var SIZE_CLASSES = {
|
|
5422
5422
|
lg: {
|
|
5423
5423
|
base: "h-11",
|
|
@@ -5440,19 +5440,19 @@ var SIZE_CLASSES = {
|
|
|
5440
5440
|
};
|
|
5441
5441
|
var COLOR_THEMES = {
|
|
5442
5442
|
default: {
|
|
5443
|
-
primary: "bg-cc-Button-Primary-bg-default text-cc-Button-Primary-fg-default hover:bg-cc-Button-Primary-bg-hover active:bg-cc-Button-Primary-bg-active disabled:bg-cc-Button-Primary-bg-disabled",
|
|
5443
|
+
primary: "bg-cc-Button-Primary-bg-default text-cc-Button-Primary-fg-default hover:bg-cc-Button-Primary-bg-hover active:bg-cc-Button-Primary-bg-active disabled:bg-cc-Button-Primary-bg-disabled disabled:text-cc-Button-Primary-fg-alt",
|
|
5444
5444
|
secondary: "border-cc-Button-Secondary-border-default text-cc-Button-Secondary-fg-default bg-cc-Button-Secondary-bg-default hover:bg-cc-Button-Secondary-bg-hover active:bg-cc-Button-Secondary-bg-active disabled:text-cc-Button-Secondary-fg-alt disabled:border-cc-Button-Secondary-border-disabled",
|
|
5445
5445
|
tertiary: "border border-cc-Button-Tertiary-border-default text-cc-Button-Tertiary-fg-default bg-cc-Button-Tertiary-bg-default hover:bg-cc-Button-Tertiary-bg-hover hover:border-cc-Button-Tertiary-border-alt focus:shadow-button-tertiary-shadow active:bg-cc-Button-Tertiary-bg-active disabled:text-cc-Button-Tertiary-fg-alt ",
|
|
5446
5446
|
link: "rounded-none font-normal underline-offset-4 hover:underline active:underline text-cc-Link-Button-Primary-fg-default hover:text-cc-Link-Button-Primary-fg-hover active:text-cc-Link-Button-Primary-fg-active disabled:text-cc-Link-Button-Primary-fg-disabled",
|
|
5447
5447
|
plain: "text-cc-Button-Plain-fg-default hover:bg-cc-Button-Plain-bg-hover focus:shadow-cc-Focus-Rings-Brand-default active:bg-cc-Button-Plain-bg-active disabled:text-cc-Button-Plain-fg-alt "
|
|
5448
5448
|
},
|
|
5449
5449
|
brand: {
|
|
5450
|
-
primary: "text-cc-Button-Brand-fg-default bg-cc-Button-Brand-bg-default hover:bg-cc-Button-Brand-bg-hover active:bg-cc-Button-Brand-bg-active disabled:bg-cc-Button-Brand-bg-disabled shadow-none hover:shadow-button-brand focus:shadow-cc-Focus-Rings-Brand-default",
|
|
5450
|
+
primary: "text-cc-Button-Brand-fg-default bg-cc-Button-Brand-bg-default hover:bg-cc-Button-Brand-bg-hover active:bg-cc-Button-Brand-bg-active disabled:bg-cc-Button-Brand-bg-disabled shadow-none hover:shadow-button-brand focus:shadow-cc-Focus-Rings-Brand-default disabled:text-cc-Button-Brand-fg-alt",
|
|
5451
5451
|
plain: "text-cc-Button-Plain-Brand-fg-default bg-cc-Button-Plain-Brand-bg-default hover:bg-cc-Button-Plain-Brand-bg-hover active:bg-cc-Button-Plain-Brand-bg-active disabled:text-cc-Button-Plain-Brand-fg-alt"
|
|
5452
5452
|
},
|
|
5453
5453
|
error: {
|
|
5454
|
-
primary: "text-cc-Button-Error-Primary-fg-default bg-cc-Button-Error-Primary-bg-default hover:bg-cc-Button-Error-Primary-bg-hover active:bg-cc-Button-Error-Primary-bg-active disabled:bg-cc-Button-Error-Primary-bg-disabled shadow-none",
|
|
5455
|
-
secondary: "border-cc-Button-Error-Secondary-border-default text-cc-Button-Error-Secondary-fg-default bg-cc-Button-Error-Secondary-bg-default hover:bg-cc-Button-Error-Secondary-bg-hover active:bg-cc-Button-Error-Secondary-bg-active disabled:text-cc-Button-Error-Secondary-fg-alt disabled:border-cc-Button-Error-Secondary-border-disabled"
|
|
5454
|
+
primary: "text-cc-Button-Error-Primary-fg-default bg-cc-Button-Error-Primary-bg-default hover:bg-cc-Button-Error-Primary-bg-hover active:bg-cc-Button-Error-Primary-bg-active disabled:bg-cc-Button-Error-Primary-bg-disabled disabled:text-cc-Button-Error-Primary-fg-alt shadow-none",
|
|
5455
|
+
secondary: "border-cc-Button-Error-Secondary-border-default text-cc-Button-Error-Secondary-fg-default bg-cc-Button-Error-Secondary-bg-default hover:bg-cc-Button-Error-Secondary-bg-hover active:bg-cc-Button-Error-Secondary-bg-active disabled:text-cc-Button-Error-Secondary-fg-alt disabled:border-cc-Button-Error-Secondary-border-disabled disabled:text-cc-Button-Error-Secondary-fg-alt disabled:bg-cc-Button-Error-Secondary-bg-disabled"
|
|
5456
5456
|
}
|
|
5457
5457
|
};
|
|
5458
5458
|
var VARIANT_BASE = {
|
|
@@ -6369,7 +6369,7 @@ var TooltipContent = React8.forwardRef(function(_param, ref) {
|
|
|
6369
6369
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
6370
6370
|
// src/components/button/icon-button.styles.ts
|
|
6371
6371
|
var import_class_variance_authority5 = require("class-variance-authority");
|
|
6372
|
-
var BASE_STYLES = "shrink-0 inline-flex items-center justify-center whitespace-nowrap rounded-sm font-medium transition-colors focus-visible:outline-none focus-visible:shadow-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:pointer-events-none disabled:
|
|
6372
|
+
var BASE_STYLES = "shrink-0 inline-flex items-center justify-center whitespace-nowrap rounded-sm font-medium transition-colors focus-visible:outline-none focus-visible:shadow-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:pointer-events-none disabled:shadow-none";
|
|
6373
6373
|
var VARIANT_STYLES = {
|
|
6374
6374
|
primary: "",
|
|
6375
6375
|
secondary: "border shadow-none",
|
|
@@ -6405,12 +6405,12 @@ var COMPOUND_VARIANTS = [
|
|
|
6405
6405
|
{
|
|
6406
6406
|
variant: "secondary",
|
|
6407
6407
|
color: "default",
|
|
6408
|
-
className: "border-cc-Button-Secondary-border-default text-cc-Button-Secondary-fg-default bg-cc-Button-Secondary-bg-default hover:bg-cc-Button-Secondary-bg-hover active:bg-cc-Button-Secondary-bg-active disabled:text-cc-Button-Secondary-fg-alt disabled:border-cc-Button-Secondary-border-disabled"
|
|
6408
|
+
className: "border-cc-Button-Secondary-border-default text-cc-Button-Secondary-fg-default bg-cc-Button-Secondary-bg-default hover:bg-cc-Button-Secondary-bg-hover active:bg-cc-Button-Secondary-bg-active disabled:text-cc-Button-Secondary-fg-alt disabled:border-cc-Button-Secondary-border-disabled disabled:text-cc-Button-Secondary-fg-alt disabled:bg-cc-Button-Secondary-bg-default"
|
|
6409
6409
|
},
|
|
6410
6410
|
{
|
|
6411
6411
|
variant: "secondary",
|
|
6412
6412
|
color: "error",
|
|
6413
|
-
className: "border-cc-Button-Error-Secondary-border-default text-cc-Button-Error-Secondary-fg-default bg-cc-Button-Error-Secondary-bg-default hover:bg-cc-Button-Error-Secondary-bg-hover active:bg-cc-Button-Error-Secondary-bg-active disabled:text-cc-Button-Error-Secondary-fg-alt disabled:border-cc-Button-Error-Secondary-border-disabled"
|
|
6413
|
+
className: "border-cc-Button-Error-Secondary-border-default text-cc-Button-Error-Secondary-fg-default bg-cc-Button-Error-Secondary-bg-default hover:bg-cc-Button-Error-Secondary-bg-hover active:bg-cc-Button-Error-Secondary-bg-active disabled:text-cc-Button-Error-Secondary-fg-alt disabled:border-cc-Button-Error-Secondary-border-disabled disabled:text-cc-Button-Error-Secondary-fg-alt disabled:bg-cc-Button-Error-Secondary-bg-disabled"
|
|
6414
6414
|
},
|
|
6415
6415
|
{
|
|
6416
6416
|
variant: "tertiary",
|
|
@@ -6425,12 +6425,12 @@ var COMPOUND_VARIANTS = [
|
|
|
6425
6425
|
{
|
|
6426
6426
|
variant: "plain",
|
|
6427
6427
|
color: "gray",
|
|
6428
|
-
className: "text-cc-Icon-Button-Plain-Gray-fg-default bg-cc-Button-Plain-Brand-bg-default hover:bg-cc-Button-Plain-Brand-bg-hover active:bg-cc-Button-Plain-Brand-bg-active disabled:text-cc-Button-Plain-
|
|
6428
|
+
className: "text-cc-Icon-Button-Plain-Gray-fg-default bg-cc-Button-Plain-Brand-bg-default hover:bg-cc-Button-Plain-Brand-bg-hover active:bg-cc-Button-Plain-Brand-bg-active disabled:text-cc-Button-Plain-Brand-fg-alt disabled:bg-cc-Button-Plain-Brand-bg-default"
|
|
6429
6429
|
},
|
|
6430
6430
|
{
|
|
6431
6431
|
variant: "plain",
|
|
6432
6432
|
color: "error",
|
|
6433
|
-
className: "text-cc-Button-Error-Secondary-fg-default bg-cc-Button-Plain-bg-default hover:bg-cc-Button-Error-Secondary-bg-hover active:bg-cc-Button-Error-Secondary-bg-active disabled:text-cc-Button-Plain-fg-default"
|
|
6433
|
+
className: "text-cc-Button-Error-Secondary-fg-default bg-cc-Button-Plain-bg-default hover:bg-cc-Button-Error-Secondary-bg-hover active:bg-cc-Button-Error-Secondary-bg-active disabled:text-cc-Button-Plain-fg-default disabled:bg-cc-Button-Plain-bg-default disabled:text-cc-Button-Error-Primary-fg-alt"
|
|
6434
6434
|
}
|
|
6435
6435
|
];
|
|
6436
6436
|
var DEFAULT_VARIANTS = {
|
|
@@ -8687,7 +8687,7 @@ var Modal = function(_param) {
|
|
|
8687
8687
|
})
|
|
8688
8688
|
}));
|
|
8689
8689
|
}
|
|
8690
|
-
var
|
|
8690
|
+
var renderIcon2 = function(state2) {
|
|
8691
8691
|
switch(state2){
|
|
8692
8692
|
case "info":
|
|
8693
8693
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_InformationCircleIcon.default, {
|
|
@@ -8734,7 +8734,7 @@ var Modal = function(_param) {
|
|
|
8734
8734
|
className: cn(isNotification && "border-none !pb-3"),
|
|
8735
8735
|
children: state && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", {
|
|
8736
8736
|
className: cn("flex items-center justify-center w-10 h-10 rounded-full flex-shrink-0 flex-grow-0", getBackgroundColor(state)),
|
|
8737
|
-
children:
|
|
8737
|
+
children: renderIcon2(state)
|
|
8738
8738
|
})
|
|
8739
8739
|
}),
|
|
8740
8740
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", {
|
|
@@ -8917,7 +8917,7 @@ function SearchBar(_param) {
|
|
|
8917
8917
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Input, _object_spread({
|
|
8918
8918
|
type: type,
|
|
8919
8919
|
placeholder: placeholder,
|
|
8920
|
-
rounded: roundedFill ? "full" : "
|
|
8920
|
+
rounded: roundedFill ? "full" : "sm",
|
|
8921
8921
|
size: size,
|
|
8922
8922
|
className: cn("relative w-full px-9 flex space-x-2 text-base shadow-none placeholder:text-Colors-Text-Subtlest", {
|
|
8923
8923
|
"focus-visible:ring-transparent": readOnly
|
|
@@ -9019,9 +9019,9 @@ function EnergyProgress(props) {
|
|
|
9019
9019
|
});
|
|
9020
9020
|
}
|
|
9021
9021
|
var energy_progress_default = EnergyProgress;
|
|
9022
|
-
// src/components/
|
|
9022
|
+
// src/components/middle-bar.tsx
|
|
9023
9023
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
9024
|
-
function
|
|
9024
|
+
function MiddleBar(param) {
|
|
9025
9025
|
var _param_showSearchBar = param.showSearchBar, showSearchBar = _param_showSearchBar === void 0 ? true : _param_showSearchBar, searchValue = param.searchValue, searchPlaceholder = param.searchPlaceholder, title = param.title, children = param.children, _param_energy = param.energy, energy = _param_energy === void 0 ? 0 : _param_energy, dailyEnergy = param.dailyEnergy, onSearchChange = param.onSearchChange;
|
|
9026
9026
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", {
|
|
9027
9027
|
className: cn("relative w-full flex flex-col justify-between items-center px-4 md:px-6"),
|
|
@@ -11457,144 +11457,13 @@ var ScrollBar = React30.forwardRef(function(_param, ref) {
|
|
|
11457
11457
|
}));
|
|
11458
11458
|
});
|
|
11459
11459
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
11460
|
-
// src/components/
|
|
11460
|
+
// src/components/top-navigation-bar.tsx
|
|
11461
11461
|
var import_outline = require("@heroicons/react/24/outline");
|
|
11462
11462
|
var import_react14 = require("react");
|
|
11463
11463
|
var import_react_use7 = require("react-use");
|
|
11464
|
-
// src/components/button/link-button.tsx
|
|
11465
|
-
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
11466
|
-
var import_lucide_react10 = require("lucide-react");
|
|
11467
|
-
var React31 = __toESM(require("react"), 1);
|
|
11468
11464
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
11469
|
-
|
|
11470
|
-
var
|
|
11471
|
-
"className",
|
|
11472
|
-
"iconClassName",
|
|
11473
|
-
"color",
|
|
11474
|
-
"icon",
|
|
11475
|
-
"iconDirection",
|
|
11476
|
-
"size",
|
|
11477
|
-
"asChild",
|
|
11478
|
-
"loading",
|
|
11479
|
-
"noStyle",
|
|
11480
|
-
"iconOutBox",
|
|
11481
|
-
"isBlock",
|
|
11482
|
-
"disabled",
|
|
11483
|
-
"children",
|
|
11484
|
-
"autoFocus",
|
|
11485
|
-
"asset",
|
|
11486
|
-
"assetNumber"
|
|
11487
|
-
]);
|
|
11488
|
-
var Comp = asChild ? import_react_slot5.Slot : "button";
|
|
11489
|
-
var disable = disabled || loading;
|
|
11490
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Comp, _object_spread_props(_object_spread({
|
|
11491
|
-
className: noStyle ? className : cn(buttonVariants({
|
|
11492
|
-
variant: "link",
|
|
11493
|
-
color: color,
|
|
11494
|
-
size: size,
|
|
11495
|
-
className: className
|
|
11496
|
-
}), disable && "!pointer-events-auto cursor-not-allowed", isBlock && "w-full"),
|
|
11497
|
-
ref: ref,
|
|
11498
|
-
disabled: disable,
|
|
11499
|
-
autoFocus: autoFocus
|
|
11500
|
-
}, props), {
|
|
11501
|
-
children: [
|
|
11502
|
-
loading && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", {
|
|
11503
|
-
className: "absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center",
|
|
11504
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react10.Loader2, {
|
|
11505
|
-
className: cn(iconVariants2({
|
|
11506
|
-
variant: "link",
|
|
11507
|
-
size: size
|
|
11508
|
-
}), "animate-spin", size === "lg" ? "h-6 w-6" : size === "md" ? "h-5 w-5" : "h-4.5 w-4.5")
|
|
11509
|
-
})
|
|
11510
|
-
}),
|
|
11511
|
-
!asset && icon && iconOutBox && iconDirection === "left" && renderIcon2(icon, "left", {
|
|
11512
|
-
loading: loading,
|
|
11513
|
-
noStyle: noStyle,
|
|
11514
|
-
iconClassName: iconClassName,
|
|
11515
|
-
size: size
|
|
11516
|
-
}),
|
|
11517
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("span", {
|
|
11518
|
-
className: cn("inline-flex w-full items-center justify-center", loading ? "opacity-0" : "opacity-100"),
|
|
11519
|
-
children: [
|
|
11520
|
-
!asset && icon && !iconOutBox && iconDirection === "left" && renderIcon2(icon, "left", {
|
|
11521
|
-
loading: loading,
|
|
11522
|
-
noStyle: noStyle,
|
|
11523
|
-
iconClassName: iconClassName,
|
|
11524
|
-
size: size
|
|
11525
|
-
}),
|
|
11526
|
-
children,
|
|
11527
|
-
asset ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, {
|
|
11528
|
-
children: [
|
|
11529
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Separator, {
|
|
11530
|
-
orientation: "vertical",
|
|
11531
|
-
className: cn("mx-1.5 h-3")
|
|
11532
|
-
}),
|
|
11533
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Image2, {
|
|
11534
|
-
src: asset === "energy" ? getAssetsUrl("image/bot/tag/20231214/1719340128612116720.png") : "",
|
|
11535
|
-
alt: asset,
|
|
11536
|
-
width: 16,
|
|
11537
|
-
height: 16,
|
|
11538
|
-
className: "flex-shrink-0"
|
|
11539
|
-
}),
|
|
11540
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Text, {
|
|
11541
|
-
size: "xs",
|
|
11542
|
-
className: cn("ml-0.5 text-inherit"),
|
|
11543
|
-
children: assetNumber
|
|
11544
|
-
})
|
|
11545
|
-
]
|
|
11546
|
-
}) : null,
|
|
11547
|
-
!asset && icon && !iconOutBox && iconDirection === "right" && renderIcon2(icon, "right", {
|
|
11548
|
-
loading: loading,
|
|
11549
|
-
noStyle: noStyle,
|
|
11550
|
-
iconClassName: iconClassName,
|
|
11551
|
-
size: size
|
|
11552
|
-
})
|
|
11553
|
-
]
|
|
11554
|
-
}),
|
|
11555
|
-
!asset && icon && iconOutBox && iconDirection === "right" && renderIcon2(icon, "right", {
|
|
11556
|
-
loading: loading,
|
|
11557
|
-
noStyle: noStyle,
|
|
11558
|
-
iconClassName: iconClassName,
|
|
11559
|
-
size: size
|
|
11560
|
-
})
|
|
11561
|
-
]
|
|
11562
|
-
}));
|
|
11563
|
-
});
|
|
11564
|
-
var renderIcon2 = function(icon, direction, param) {
|
|
11565
|
-
var loading = param.loading, noStyle = param.noStyle, iconClassName = param.iconClassName, _param_size = param.size, size = _param_size === void 0 ? "lg" : _param_size;
|
|
11566
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, {
|
|
11567
|
-
component: icon,
|
|
11568
|
-
className: noStyle ? iconClassName : cn(iconVariants2({
|
|
11569
|
-
variant: "link",
|
|
11570
|
-
size: size
|
|
11571
|
-
}), direction === "left" ? "mr-0.5" : "ml-0.5", iconClassName, loading ? "opacity-0" : "opacity-100")
|
|
11572
|
-
});
|
|
11573
|
-
};
|
|
11574
|
-
LinkButton.displayName = "LinkButton";
|
|
11575
|
-
// src/components/icons/outline/FilterIcon.tsx
|
|
11576
|
-
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
11577
|
-
function FilterIcon(param) {
|
|
11578
|
-
var className = param.className;
|
|
11579
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("svg", {
|
|
11580
|
-
className: className,
|
|
11581
|
-
width: "22",
|
|
11582
|
-
height: "22",
|
|
11583
|
-
viewBox: "0 0 22 22",
|
|
11584
|
-
fill: "none",
|
|
11585
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
11586
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", {
|
|
11587
|
-
fillRule: "evenodd",
|
|
11588
|
-
clipRule: "evenodd",
|
|
11589
|
-
d: "M10.0278 2.84729C7.67712 2.84729 5.37221 3.04531 3.12895 3.42572C2.37055 3.55432 1.83336 4.2145 1.83336 4.96859V5.84598C1.83336 6.51468 2.099 7.15598 2.57185 7.62882L7.13715 12.1941C7.37358 12.4305 7.5064 12.7511 7.5064 13.0855V18.6055C7.5064 18.8239 7.61951 19.0268 7.80535 19.1417C7.99118 19.2565 8.22323 19.267 8.41863 19.1693L11.1553 17.8009C12.0095 17.3738 12.5491 16.5008 12.5491 15.5458V13.0855C12.5491 12.7511 12.6819 12.4305 12.9183 12.1941L17.4837 7.62882C17.9565 7.15598 18.2221 6.51468 18.2221 5.84598V4.96857C18.2221 4.21448 17.6849 3.5543 16.9265 3.4257C14.6833 3.0453 12.3784 2.84729 10.0278 2.84729ZM3.33973 4.66863C5.51363 4.29998 7.74805 4.10794 10.0278 4.10794C12.3075 4.10794 14.5419 4.29998 16.7158 4.66861C16.8531 4.69189 16.9615 4.8142 16.9615 4.96857V5.84598C16.9615 6.18033 16.8286 6.50098 16.5922 6.7374L12.0269 11.3026C11.5541 11.7755 11.2884 12.4168 11.2884 13.0855V15.5458C11.2884 16.0233 11.0186 16.4598 10.5915 16.6734L8.76707 17.5856V13.0855C8.76707 12.4168 8.50143 11.7755 8.02859 11.3026L3.46328 6.7374C3.22685 6.50098 3.09403 6.18033 3.09403 5.84598V4.96859C3.09403 4.81422 3.20244 4.69191 3.33973 4.66863ZM15.1424 12.0035C14.9222 11.7833 14.5651 11.7833 14.3448 12.0035C14.1246 12.2238 14.1246 12.5809 14.3448 12.8011L16.3756 14.8318L14.3448 16.8625C14.1246 17.0828 14.1246 17.4399 14.3448 17.6601C14.5651 17.8804 14.9222 17.8804 15.1424 17.6601L17.1732 15.6294L19.2039 17.6601C19.4242 17.8804 19.7813 17.8804 20.0015 17.6601C20.2218 17.4399 20.2218 17.0828 20.0015 16.8625L17.9708 14.8318L20.0015 12.8011C20.2218 12.5809 20.2218 12.2238 20.0015 12.0035C19.7813 11.7833 19.4242 11.7833 19.2039 12.0035L17.1732 14.0342L15.1424 12.0035Z"
|
|
11590
|
-
})
|
|
11591
|
-
});
|
|
11592
|
-
}
|
|
11593
|
-
var FilterIcon_default = FilterIcon;
|
|
11594
|
-
// src/components/secondary-navigation-bar.tsx
|
|
11595
|
-
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
11596
|
-
function SecondaryNavigationBar(param) {
|
|
11597
|
-
var _param_showSearchBar = param.showSearchBar, showSearchBar = _param_showSearchBar === void 0 ? true : _param_showSearchBar, searchValue = param.searchValue, searchPlaceholder = param.searchPlaceholder, title = param.title, border = param.border, backUrl = param.backUrl, showClear = param.showClear, clearText = param.clearText, icons = param.icons, actions = param.actions, children = param.children, _param_hasBackground = param.hasBackground, hasBackground = _param_hasBackground === void 0 ? true : _param_hasBackground, avatar = param.avatar, onSearchChange = param.onSearchChange, onClear = param.onClear, onBack = param.onBack;
|
|
11465
|
+
function TopNavigationBar(param) {
|
|
11466
|
+
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 ? true : _param_hasBackground, avatar = param.avatar, onBack = param.onBack, _param_pageType = param.pageType, pageType = _param_pageType === void 0 ? 2 : _param_pageType;
|
|
11598
11467
|
var isMobile2 = (0, import_react_use7.useMedia)("(max-width: 768px)");
|
|
11599
11468
|
var navbarRef = (0, import_react14.useRef)(null);
|
|
11600
11469
|
var _ref = _sliced_to_array((0, import_react14.useState)(hasBackground), 2), showBackground = _ref[0], setShowBackground = _ref[1];
|
|
@@ -11616,150 +11485,91 @@ function SecondaryNavigationBar(param) {
|
|
|
11616
11485
|
}, [
|
|
11617
11486
|
hasBackground
|
|
11618
11487
|
]);
|
|
11619
|
-
return /* @__PURE__ */ (0,
|
|
11488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", {
|
|
11620
11489
|
ref: navbarRef,
|
|
11621
11490
|
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"),
|
|
11622
|
-
children:
|
|
11623
|
-
|
|
11624
|
-
|
|
11625
|
-
|
|
11626
|
-
|
|
11627
|
-
|
|
11628
|
-
|
|
11629
|
-
|
|
11630
|
-
|
|
11631
|
-
|
|
11632
|
-
|
|
11633
|
-
|
|
11634
|
-
|
|
11491
|
+
children: [
|
|
11492
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", {
|
|
11493
|
+
className: "relative w-full flex justify-between items-center h-13 md:h-15 pt-5 pb-1.5 md:pt-2 md:pb-2",
|
|
11494
|
+
children: [
|
|
11495
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", {
|
|
11496
|
+
className: "flex-1 flex items-center justify-start",
|
|
11497
|
+
children: [
|
|
11498
|
+
(backUrl || onBack) && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", {
|
|
11499
|
+
className: "flex justify-start items-center",
|
|
11500
|
+
children: [
|
|
11501
|
+
backUrl ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Link, {
|
|
11502
|
+
href: backUrl,
|
|
11503
|
+
className: "flex justify-center items-center",
|
|
11504
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(IconButton, {
|
|
11505
|
+
variant: !hasBackground ? "primary" : "plain",
|
|
11506
|
+
color: !hasBackground ? "gray" : "brand",
|
|
11507
|
+
size: "md",
|
|
11508
|
+
icon: import_outline.ArrowLeftIcon
|
|
11509
|
+
})
|
|
11510
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(IconButton, {
|
|
11635
11511
|
variant: !hasBackground ? "primary" : "plain",
|
|
11636
11512
|
color: !hasBackground ? "gray" : "brand",
|
|
11637
11513
|
size: "md",
|
|
11638
|
-
icon: import_outline.ArrowLeftIcon
|
|
11514
|
+
icon: import_outline.ArrowLeftIcon,
|
|
11515
|
+
onClick: onBack
|
|
11516
|
+
}),
|
|
11517
|
+
!isMobile2 && title && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Separator, {
|
|
11518
|
+
orientation: "vertical",
|
|
11519
|
+
className: "h-5 ml-1.5 mr-3"
|
|
11639
11520
|
})
|
|
11640
|
-
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
size: "md",
|
|
11644
|
-
icon: import_outline.ArrowLeftIcon,
|
|
11645
|
-
onClick: onBack
|
|
11646
|
-
}),
|
|
11647
|
-
!isMobile2 && title && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Separator, {
|
|
11648
|
-
orientation: "vertical",
|
|
11649
|
-
className: "h-5 ml-1.5 mr-3"
|
|
11650
|
-
})
|
|
11651
|
-
]
|
|
11652
|
-
}),
|
|
11653
|
-
title && (!showSearchBar || !isMobile2) && (!(avatar === null || avatar === void 0 ? void 0 : avatar.logo) || !isMobile2) && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", {
|
|
11654
|
-
className: "flex-1 flex-shrink-0 absolute w-full md:relative md:w-auto flex items-center justify-center md:justify-start",
|
|
11655
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Display, {
|
|
11521
|
+
]
|
|
11522
|
+
}),
|
|
11523
|
+
title && !(avatar === null || avatar === void 0 ? void 0 : avatar.logo) && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Display, {
|
|
11656
11524
|
size: isMobile2 ? "xs" : "sm",
|
|
11657
|
-
className:
|
|
11525
|
+
className: "line-clamp-1",
|
|
11658
11526
|
children: title
|
|
11659
11527
|
})
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Avatar, {
|
|
11667
|
-
size: "sm",
|
|
11668
|
-
src: avatar.logo
|
|
11669
|
-
}),
|
|
11670
|
-
avatar.name && !isMobile2 && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Text, {
|
|
11671
|
-
size: "lg",
|
|
11672
|
-
weight: "medium",
|
|
11673
|
-
children: avatar.name
|
|
11674
|
-
})
|
|
11675
|
-
]
|
|
11676
|
-
}),
|
|
11677
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", {
|
|
11678
|
-
className: cn("w-fit flex md:w-auto justify-end", !(avatar === null || avatar === void 0 ? void 0 : avatar.logo) && "flex-1"),
|
|
11679
|
-
children: children ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", {
|
|
11680
|
-
className: "w-fit",
|
|
11681
|
-
children: children
|
|
11682
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, {
|
|
11683
|
-
children: icons || actions ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", {
|
|
11684
|
-
className: cn("flex justify-end items-center", icons && "space-x-1 min-w-[76px]", actions && "space-x-3"),
|
|
11528
|
+
]
|
|
11529
|
+
}),
|
|
11530
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", {
|
|
11531
|
+
className: "flex-shrink-0 flex justify-center items-center",
|
|
11532
|
+
children: (avatar === null || avatar === void 0 ? void 0 : avatar.logo) ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", {
|
|
11533
|
+
className: "flex items-center space-x-1.5",
|
|
11685
11534
|
children: [
|
|
11686
|
-
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
color: "default",
|
|
11690
|
-
size: "md",
|
|
11691
|
-
icon: icon.icon,
|
|
11692
|
-
onClick: icon.onClick
|
|
11693
|
-
}, index);
|
|
11535
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Avatar, {
|
|
11536
|
+
size: "sm",
|
|
11537
|
+
src: avatar.logo
|
|
11694
11538
|
}),
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
children: action.label
|
|
11700
|
-
}), index);
|
|
11539
|
+
avatar.name && !isMobile2 && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Text, {
|
|
11540
|
+
size: "lg",
|
|
11541
|
+
weight: "medium",
|
|
11542
|
+
children: avatar.name
|
|
11701
11543
|
})
|
|
11702
11544
|
]
|
|
11703
|
-
}) :
|
|
11545
|
+
}) : null
|
|
11546
|
+
}),
|
|
11547
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", {
|
|
11548
|
+
className: "flex-1 flex justify-end items-center",
|
|
11549
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", {
|
|
11550
|
+
className: "flex items-center space-x-3",
|
|
11704
11551
|
children: [
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
size: "md",
|
|
11708
|
-
variant: "secondary",
|
|
11709
|
-
color: "default",
|
|
11710
|
-
className: "hidden md:flex relative text-sm font-medium ml-2 mr-3 px-4 justify-center items-center",
|
|
11711
|
-
onClick: onClear,
|
|
11712
|
-
children: [
|
|
11713
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", {
|
|
11714
|
-
className: "relative mr-1.5",
|
|
11715
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(FilterIcon_default, {
|
|
11716
|
-
className: "w-5 h-5 fill-cc-Button-Secondary-fg-default"
|
|
11717
|
-
})
|
|
11718
|
-
}),
|
|
11719
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", {
|
|
11720
|
-
className: "hidden md:block",
|
|
11721
|
-
children: clearText || "Clear Filters"
|
|
11722
|
-
})
|
|
11723
|
-
]
|
|
11724
|
-
}),
|
|
11725
|
-
showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", {
|
|
11726
|
-
className: "relative w-full md:w-60",
|
|
11727
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SearchBar, {
|
|
11728
|
-
color: "gray",
|
|
11729
|
-
size: "xs",
|
|
11730
|
-
searchValue: searchValue,
|
|
11731
|
-
placeholder: searchPlaceholder || "Search",
|
|
11732
|
-
onSearchChange: function(value1) {
|
|
11733
|
-
onSearchChange && onSearchChange(value1);
|
|
11734
|
-
}
|
|
11735
|
-
})
|
|
11736
|
-
}),
|
|
11737
|
-
showClear && isMobile2 && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(IconButton, {
|
|
11738
|
-
className: "flex-shrink-0 flex relative text-sm font-medium px-4 justify-center items-center ml-3",
|
|
11739
|
-
"aria-label": clearText || "Clear Filters",
|
|
11740
|
-
size: "md",
|
|
11741
|
-
variant: "primary",
|
|
11742
|
-
onClick: onClear,
|
|
11743
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", {
|
|
11744
|
-
className: "relative",
|
|
11745
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(FilterIcon_default, {})
|
|
11746
|
-
})
|
|
11747
|
-
})
|
|
11552
|
+
searchElement && (!isMobile2 && pageType === 1 || pageType === 2) && searchElement,
|
|
11553
|
+
children
|
|
11748
11554
|
]
|
|
11749
11555
|
})
|
|
11750
11556
|
})
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
|
|
11557
|
+
]
|
|
11558
|
+
}),
|
|
11559
|
+
searchElement && pageType === 1 && isMobile2 && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", {
|
|
11560
|
+
className: "relative w-full h-13 py-2",
|
|
11561
|
+
children: searchElement
|
|
11562
|
+
})
|
|
11563
|
+
]
|
|
11754
11564
|
});
|
|
11755
11565
|
}
|
|
11756
11566
|
// src/components/select.tsx
|
|
11757
11567
|
var import_outline2 = require("@heroicons/react/24/outline");
|
|
11758
11568
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
11759
|
-
var
|
|
11760
|
-
var
|
|
11761
|
-
var
|
|
11762
|
-
var Select =
|
|
11569
|
+
var import_lucide_react10 = require("lucide-react");
|
|
11570
|
+
var React31 = __toESM(require("react"), 1);
|
|
11571
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
11572
|
+
var Select = React31.forwardRef(function(_param, ref) {
|
|
11763
11573
|
var children = _param.children, placeholder = _param.placeholder, options = _param.options, triggerClassName = _param.triggerClassName, props = _object_without_properties(_param, [
|
|
11764
11574
|
"children",
|
|
11765
11575
|
"placeholder",
|
|
@@ -11770,26 +11580,26 @@ var Select = React32.forwardRef(function(_param, ref) {
|
|
|
11770
11580
|
var icon = options === null || options === void 0 ? void 0 : (_options_find = options.find(function(item) {
|
|
11771
11581
|
return item.value === props.value;
|
|
11772
11582
|
})) === null || _options_find === void 0 ? void 0 : _options_find.icon;
|
|
11773
|
-
return /* @__PURE__ */ (0,
|
|
11774
|
-
children: Array.isArray(options) && options.length ? /* @__PURE__ */ (0,
|
|
11583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Root, _object_spread_props(_object_spread({}, props), {
|
|
11584
|
+
children: Array.isArray(options) && options.length ? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, {
|
|
11775
11585
|
children: [
|
|
11776
|
-
/* @__PURE__ */ (0,
|
|
11586
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectTrigger, {
|
|
11777
11587
|
className: cn(triggerClassName),
|
|
11778
|
-
children: /* @__PURE__ */ (0,
|
|
11588
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", {
|
|
11779
11589
|
className: "flex items-center",
|
|
11780
11590
|
children: [
|
|
11781
|
-
/* @__PURE__ */ (0,
|
|
11591
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectIcon, {
|
|
11782
11592
|
icon: icon
|
|
11783
11593
|
}),
|
|
11784
|
-
/* @__PURE__ */ (0,
|
|
11594
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectValue, {
|
|
11785
11595
|
placeholder: placeholder
|
|
11786
11596
|
})
|
|
11787
11597
|
]
|
|
11788
11598
|
})
|
|
11789
11599
|
}),
|
|
11790
|
-
/* @__PURE__ */ (0,
|
|
11600
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectContent, {
|
|
11791
11601
|
children: options.map(function(item, i) {
|
|
11792
|
-
return /* @__PURE__ */ (0,
|
|
11602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectItem, _object_spread_props(_object_spread({}, item), {
|
|
11793
11603
|
children: item.label
|
|
11794
11604
|
}), "".concat(item.value, "_").concat(i));
|
|
11795
11605
|
})
|
|
@@ -11800,20 +11610,20 @@ var Select = React32.forwardRef(function(_param, ref) {
|
|
|
11800
11610
|
});
|
|
11801
11611
|
var SelectGroup = SelectPrimitive.Group;
|
|
11802
11612
|
var SelectValue = SelectPrimitive.Value;
|
|
11803
|
-
var SelectTrigger =
|
|
11613
|
+
var SelectTrigger = React31.forwardRef(function(_param, ref) {
|
|
11804
11614
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
11805
11615
|
"className",
|
|
11806
11616
|
"children"
|
|
11807
11617
|
]);
|
|
11808
|
-
return /* @__PURE__ */ (0,
|
|
11618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(SelectPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
11809
11619
|
ref: ref,
|
|
11810
11620
|
className: cn("flex 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)
|
|
11811
11621
|
}, props), {
|
|
11812
11622
|
children: [
|
|
11813
11623
|
children,
|
|
11814
|
-
/* @__PURE__ */ (0,
|
|
11624
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Icon, {
|
|
11815
11625
|
asChild: true,
|
|
11816
|
-
children: /* @__PURE__ */ (0,
|
|
11626
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronDown, {
|
|
11817
11627
|
className: "select-chevron h-5 w-5 text-Colors-Foreground-Subtle duration-200"
|
|
11818
11628
|
})
|
|
11819
11629
|
})
|
|
@@ -11821,47 +11631,47 @@ var SelectTrigger = React32.forwardRef(function(_param, ref) {
|
|
|
11821
11631
|
}));
|
|
11822
11632
|
});
|
|
11823
11633
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
11824
|
-
var SelectScrollUpButton =
|
|
11634
|
+
var SelectScrollUpButton = React31.forwardRef(function(_param, ref) {
|
|
11825
11635
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11826
11636
|
"className"
|
|
11827
11637
|
]);
|
|
11828
|
-
return /* @__PURE__ */ (0,
|
|
11638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.ScrollUpButton, _object_spread_props(_object_spread({
|
|
11829
11639
|
ref: ref,
|
|
11830
11640
|
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
11831
11641
|
}, props), {
|
|
11832
|
-
children: /* @__PURE__ */ (0,
|
|
11642
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronUp, {
|
|
11833
11643
|
className: "h-4 w-4"
|
|
11834
11644
|
})
|
|
11835
11645
|
}));
|
|
11836
11646
|
});
|
|
11837
11647
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
11838
|
-
var SelectScrollDownButton =
|
|
11648
|
+
var SelectScrollDownButton = React31.forwardRef(function(_param, ref) {
|
|
11839
11649
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11840
11650
|
"className"
|
|
11841
11651
|
]);
|
|
11842
|
-
return /* @__PURE__ */ (0,
|
|
11652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.ScrollDownButton, _object_spread_props(_object_spread({
|
|
11843
11653
|
ref: ref,
|
|
11844
11654
|
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
11845
11655
|
}, props), {
|
|
11846
|
-
children: /* @__PURE__ */ (0,
|
|
11656
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronDown, {
|
|
11847
11657
|
className: "h-4 w-4"
|
|
11848
11658
|
})
|
|
11849
11659
|
}));
|
|
11850
11660
|
});
|
|
11851
11661
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
11852
|
-
var SelectContent =
|
|
11662
|
+
var SelectContent = React31.forwardRef(function(_param, ref) {
|
|
11853
11663
|
var className = _param.className, children = _param.children, _param_position = _param.position, position = _param_position === void 0 ? "popper" : _param_position, props = _object_without_properties(_param, [
|
|
11854
11664
|
"className",
|
|
11855
11665
|
"children",
|
|
11856
11666
|
"position"
|
|
11857
11667
|
]);
|
|
11858
|
-
return /* @__PURE__ */ (0,
|
|
11859
|
-
children: /* @__PURE__ */ (0,
|
|
11668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Portal, {
|
|
11669
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Content, _object_spread_props(_object_spread({
|
|
11860
11670
|
ref: ref,
|
|
11861
11671
|
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),
|
|
11862
11672
|
position: position
|
|
11863
11673
|
}, props), {
|
|
11864
|
-
children: /* @__PURE__ */ (0,
|
|
11674
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Viewport, {
|
|
11865
11675
|
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)]"),
|
|
11866
11676
|
children: children
|
|
11867
11677
|
})
|
|
@@ -11869,11 +11679,11 @@ var SelectContent = React32.forwardRef(function(_param, ref) {
|
|
|
11869
11679
|
});
|
|
11870
11680
|
});
|
|
11871
11681
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
11872
|
-
var SelectLabel =
|
|
11682
|
+
var SelectLabel = React31.forwardRef(function(_param, ref) {
|
|
11873
11683
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11874
11684
|
"className"
|
|
11875
11685
|
]);
|
|
11876
|
-
return /* @__PURE__ */ (0,
|
|
11686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Label, _object_spread({
|
|
11877
11687
|
ref: ref,
|
|
11878
11688
|
className: cn("py-1 px-3 text-sm font-medium text-Colors-Text-Subtler", className)
|
|
11879
11689
|
}, props));
|
|
@@ -11884,55 +11694,55 @@ function SelectIcon(props) {
|
|
|
11884
11694
|
if (!icon) {
|
|
11885
11695
|
return null;
|
|
11886
11696
|
}
|
|
11887
|
-
return /* @__PURE__ */ (0,
|
|
11697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Icon, {
|
|
11888
11698
|
children: typeof icon === "string" ? // 如果是字符串URL,作为背景图片显示
|
|
11889
|
-
/* @__PURE__ */ (0,
|
|
11699
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", {
|
|
11890
11700
|
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"),
|
|
11891
11701
|
style: {
|
|
11892
11702
|
backgroundImage: "url('".concat(icon, "')")
|
|
11893
11703
|
}
|
|
11894
|
-
}) :
|
|
11895
|
-
/* @__PURE__ */ (0,
|
|
11704
|
+
}) : React31.isValidElement(icon) ? // 如果是React元素,直接渲染
|
|
11705
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", {
|
|
11896
11706
|
className: cn("mr-1.5 w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default"),
|
|
11897
11707
|
children: icon
|
|
11898
11708
|
}) : // 如果是组件类型,创建元素
|
|
11899
|
-
/* @__PURE__ */ (0,
|
|
11709
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", {
|
|
11900
11710
|
className: cn("mr-1.5 w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default"),
|
|
11901
|
-
children:
|
|
11711
|
+
children: React31.createElement(icon, {
|
|
11902
11712
|
className: cn("w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default")
|
|
11903
11713
|
})
|
|
11904
11714
|
})
|
|
11905
11715
|
});
|
|
11906
11716
|
}
|
|
11907
11717
|
SelectIcon.displayName = SelectPrimitive.Icon.displayName;
|
|
11908
|
-
var SelectItem =
|
|
11718
|
+
var SelectItem = React31.forwardRef(function(_param, ref) {
|
|
11909
11719
|
var className = _param.className, children = _param.children, icon = _param.icon, critical = _param.critical, props = _object_without_properties(_param, [
|
|
11910
11720
|
"className",
|
|
11911
11721
|
"children",
|
|
11912
11722
|
"icon",
|
|
11913
11723
|
"critical"
|
|
11914
11724
|
]);
|
|
11915
|
-
return /* @__PURE__ */ (0,
|
|
11725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(SelectPrimitive.Item, _object_spread_props(_object_spread({
|
|
11916
11726
|
ref: ref,
|
|
11917
11727
|
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)
|
|
11918
11728
|
}, props), {
|
|
11919
11729
|
children: [
|
|
11920
|
-
/* @__PURE__ */ (0,
|
|
11730
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", {
|
|
11921
11731
|
className: "flex items-center grow",
|
|
11922
11732
|
children: [
|
|
11923
|
-
/* @__PURE__ */ (0,
|
|
11733
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectIcon, {
|
|
11924
11734
|
icon: icon,
|
|
11925
11735
|
critical: critical
|
|
11926
11736
|
}),
|
|
11927
|
-
/* @__PURE__ */ (0,
|
|
11737
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.ItemText, {
|
|
11928
11738
|
children: children
|
|
11929
11739
|
})
|
|
11930
11740
|
]
|
|
11931
11741
|
}),
|
|
11932
|
-
/* @__PURE__ */ (0,
|
|
11742
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", {
|
|
11933
11743
|
className: "flex h-4 w-4 items-center justify-center",
|
|
11934
|
-
children: /* @__PURE__ */ (0,
|
|
11935
|
-
children: /* @__PURE__ */ (0,
|
|
11744
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.ItemIndicator, {
|
|
11745
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_outline2.CheckIcon, {
|
|
11936
11746
|
className: "h-4 w-4 text-Colors-Foreground-Subtle stroke-[2px]"
|
|
11937
11747
|
})
|
|
11938
11748
|
})
|
|
@@ -11941,11 +11751,11 @@ var SelectItem = React32.forwardRef(function(_param, ref) {
|
|
|
11941
11751
|
}));
|
|
11942
11752
|
});
|
|
11943
11753
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
11944
|
-
var SelectSeparator =
|
|
11754
|
+
var SelectSeparator = React31.forwardRef(function(_param, ref) {
|
|
11945
11755
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11946
11756
|
"className"
|
|
11947
11757
|
]);
|
|
11948
|
-
return /* @__PURE__ */ (0,
|
|
11758
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Separator, _object_spread({
|
|
11949
11759
|
ref: ref,
|
|
11950
11760
|
className: cn("-mx-1 my-1 h-px bg-border-default", className)
|
|
11951
11761
|
}, props));
|
|
@@ -11954,18 +11764,18 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
|
11954
11764
|
// src/components/sheet.tsx
|
|
11955
11765
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
11956
11766
|
var import_class_variance_authority14 = require("class-variance-authority");
|
|
11957
|
-
var
|
|
11958
|
-
var
|
|
11959
|
-
var
|
|
11767
|
+
var import_lucide_react11 = require("lucide-react");
|
|
11768
|
+
var React32 = __toESM(require("react"), 1);
|
|
11769
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
11960
11770
|
var Sheet = SheetPrimitive.Root;
|
|
11961
11771
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
11962
11772
|
var SheetClose = SheetPrimitive.Close;
|
|
11963
11773
|
var SheetPortal = SheetPrimitive.Portal;
|
|
11964
|
-
var SheetOverlay =
|
|
11774
|
+
var SheetOverlay = React32.forwardRef(function(_param, ref) {
|
|
11965
11775
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11966
11776
|
"className"
|
|
11967
11777
|
]);
|
|
11968
|
-
return /* @__PURE__ */ (0,
|
|
11778
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SheetPrimitive.Overlay, _object_spread_props(_object_spread({
|
|
11969
11779
|
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)
|
|
11970
11780
|
}, props), {
|
|
11971
11781
|
ref: ref
|
|
@@ -11985,16 +11795,16 @@ var sheetVariants = (0, import_class_variance_authority14.cva)("fixed z-50 gap-4
|
|
|
11985
11795
|
side: "right"
|
|
11986
11796
|
}
|
|
11987
11797
|
});
|
|
11988
|
-
var SheetContent =
|
|
11798
|
+
var SheetContent = React32.forwardRef(function(_param, ref) {
|
|
11989
11799
|
var _param_side = _param.side, side = _param_side === void 0 ? "right" : _param_side, className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
11990
11800
|
"side",
|
|
11991
11801
|
"className",
|
|
11992
11802
|
"children"
|
|
11993
11803
|
]);
|
|
11994
|
-
return /* @__PURE__ */ (0,
|
|
11804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(SheetPortal, {
|
|
11995
11805
|
children: [
|
|
11996
|
-
/* @__PURE__ */ (0,
|
|
11997
|
-
/* @__PURE__ */ (0,
|
|
11806
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SheetOverlay, {}),
|
|
11807
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(SheetPrimitive.Content, _object_spread_props(_object_spread({
|
|
11998
11808
|
ref: ref,
|
|
11999
11809
|
className: cn(sheetVariants({
|
|
12000
11810
|
side: side
|
|
@@ -12002,13 +11812,13 @@ var SheetContent = React33.forwardRef(function(_param, ref) {
|
|
|
12002
11812
|
}, props), {
|
|
12003
11813
|
children: [
|
|
12004
11814
|
children,
|
|
12005
|
-
/* @__PURE__ */ (0,
|
|
11815
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(SheetPrimitive.Close, {
|
|
12006
11816
|
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",
|
|
12007
11817
|
children: [
|
|
12008
|
-
/* @__PURE__ */ (0,
|
|
11818
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react11.X, {
|
|
12009
11819
|
className: "h-4 w-4"
|
|
12010
11820
|
}),
|
|
12011
|
-
/* @__PURE__ */ (0,
|
|
11821
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", {
|
|
12012
11822
|
className: "sr-only",
|
|
12013
11823
|
children: "Close"
|
|
12014
11824
|
})
|
|
@@ -12024,7 +11834,7 @@ var SheetHeader = function(_param) {
|
|
|
12024
11834
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12025
11835
|
"className"
|
|
12026
11836
|
]);
|
|
12027
|
-
return /* @__PURE__ */ (0,
|
|
11837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", _object_spread({
|
|
12028
11838
|
className: cn("flex flex-col space-y-2 text-center sm:text-left", className)
|
|
12029
11839
|
}, props));
|
|
12030
11840
|
};
|
|
@@ -12033,65 +11843,65 @@ var SheetFooter = function(_param) {
|
|
|
12033
11843
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12034
11844
|
"className"
|
|
12035
11845
|
]);
|
|
12036
|
-
return /* @__PURE__ */ (0,
|
|
11846
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", _object_spread({
|
|
12037
11847
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
|
|
12038
11848
|
}, props));
|
|
12039
11849
|
};
|
|
12040
11850
|
SheetFooter.displayName = "SheetFooter";
|
|
12041
|
-
var SheetTitle =
|
|
11851
|
+
var SheetTitle = React32.forwardRef(function(_param, ref) {
|
|
12042
11852
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12043
11853
|
"className"
|
|
12044
11854
|
]);
|
|
12045
|
-
return /* @__PURE__ */ (0,
|
|
11855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SheetPrimitive.Title, _object_spread({
|
|
12046
11856
|
ref: ref,
|
|
12047
11857
|
className: cn("text-lg font-semibold text-slate-950 dark:text-slate-50", className)
|
|
12048
11858
|
}, props));
|
|
12049
11859
|
});
|
|
12050
11860
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
12051
|
-
var SheetDescription =
|
|
11861
|
+
var SheetDescription = React32.forwardRef(function(_param, ref) {
|
|
12052
11862
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12053
11863
|
"className"
|
|
12054
11864
|
]);
|
|
12055
|
-
return /* @__PURE__ */ (0,
|
|
11865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SheetPrimitive.Description, _object_spread({
|
|
12056
11866
|
ref: ref,
|
|
12057
11867
|
className: cn("text-sm text-slate-500 dark:text-slate-400", className)
|
|
12058
11868
|
}, props));
|
|
12059
11869
|
});
|
|
12060
11870
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
12061
11871
|
// src/components/skeleton.tsx
|
|
12062
|
-
var
|
|
11872
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
12063
11873
|
function Skeleton(_param) {
|
|
12064
11874
|
var className = _param.className, _param_animate = _param.animate, animate = _param_animate === void 0 ? true : _param_animate, props = _object_without_properties(_param, [
|
|
12065
11875
|
"className",
|
|
12066
11876
|
"animate"
|
|
12067
11877
|
]);
|
|
12068
|
-
return /* @__PURE__ */ (0,
|
|
11878
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", _object_spread({
|
|
12069
11879
|
className: cn("rounded-sm bg-Colors-Background-Normal-Secondary-Default", className, animate && "animate-pulse")
|
|
12070
11880
|
}, props));
|
|
12071
11881
|
}
|
|
12072
11882
|
// src/components/slider.tsx
|
|
12073
11883
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
|
|
12074
|
-
var
|
|
12075
|
-
var
|
|
12076
|
-
var Slider =
|
|
11884
|
+
var React33 = __toESM(require("react"), 1);
|
|
11885
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
11886
|
+
var Slider = React33.forwardRef(function(_param, ref) {
|
|
12077
11887
|
var className = _param.className, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, props = _object_without_properties(_param, [
|
|
12078
11888
|
"className",
|
|
12079
11889
|
"size"
|
|
12080
11890
|
]);
|
|
12081
|
-
return /* @__PURE__ */ (0,
|
|
11891
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", {
|
|
12082
11892
|
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",
|
|
12083
|
-
children: /* @__PURE__ */ (0,
|
|
11893
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
12084
11894
|
ref: ref,
|
|
12085
11895
|
className: cn("relative flex w-full touch-none select-none items-center", className)
|
|
12086
11896
|
}, props), {
|
|
12087
11897
|
children: [
|
|
12088
|
-
/* @__PURE__ */ (0,
|
|
11898
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SliderPrimitive.Track, {
|
|
12089
11899
|
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"),
|
|
12090
|
-
children: /* @__PURE__ */ (0,
|
|
11900
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SliderPrimitive.Range, {
|
|
12091
11901
|
className: "absolute h-full bg-Colors-Background-Brand-Default data-[disabled]:opacity-30"
|
|
12092
11902
|
})
|
|
12093
11903
|
}),
|
|
12094
|
-
/* @__PURE__ */ (0,
|
|
11904
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SliderPrimitive.Thumb, {
|
|
12095
11905
|
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]")
|
|
12096
11906
|
})
|
|
12097
11907
|
]
|
|
@@ -12099,7 +11909,7 @@ var Slider = React34.forwardRef(function(_param, ref) {
|
|
|
12099
11909
|
});
|
|
12100
11910
|
});
|
|
12101
11911
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
12102
|
-
var SliderSingle =
|
|
11912
|
+
var SliderSingle = React33.forwardRef(function(_param, ref) {
|
|
12103
11913
|
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, [
|
|
12104
11914
|
"className",
|
|
12105
11915
|
"containerClassName",
|
|
@@ -12113,12 +11923,12 @@ var SliderSingle = React34.forwardRef(function(_param, ref) {
|
|
|
12113
11923
|
"onValueCommit",
|
|
12114
11924
|
"settable"
|
|
12115
11925
|
]);
|
|
12116
|
-
return /* @__PURE__ */ (0,
|
|
11926
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", {
|
|
12117
11927
|
className: "flex w-full items-center space-x-1.5",
|
|
12118
11928
|
children: [
|
|
12119
|
-
/* @__PURE__ */ (0,
|
|
11929
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", {
|
|
12120
11930
|
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),
|
|
12121
|
-
children: /* @__PURE__ */ (0,
|
|
11931
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
12122
11932
|
ref: ref,
|
|
12123
11933
|
className: cn("relative flex w-full touch-none select-none items-center", className),
|
|
12124
11934
|
value: typeof value1 === "number" ? [
|
|
@@ -12135,21 +11945,21 @@ var SliderSingle = React34.forwardRef(function(_param, ref) {
|
|
|
12135
11945
|
}
|
|
12136
11946
|
}, props), {
|
|
12137
11947
|
children: [
|
|
12138
|
-
/* @__PURE__ */ (0,
|
|
11948
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SliderPrimitive.Track, {
|
|
12139
11949
|
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),
|
|
12140
|
-
children: /* @__PURE__ */ (0,
|
|
11950
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SliderPrimitive.Range, {
|
|
12141
11951
|
className: cn("absolute h-full bg-Colors-Background-Brand-Default data-[disabled]:opacity-30", rangeClassName)
|
|
12142
11952
|
})
|
|
12143
11953
|
}),
|
|
12144
|
-
/* @__PURE__ */ (0,
|
|
11954
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SliderPrimitive.Thumb, {
|
|
12145
11955
|
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)
|
|
12146
11956
|
})
|
|
12147
11957
|
]
|
|
12148
11958
|
}))
|
|
12149
11959
|
}),
|
|
12150
|
-
settable && /* @__PURE__ */ (0,
|
|
11960
|
+
settable && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", {
|
|
12151
11961
|
className: "flex-shrink-0 w-14 h-9 flex justify-center items-center rounded-md",
|
|
12152
|
-
children: /* @__PURE__ */ (0,
|
|
11962
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(NumberInput, {
|
|
12153
11963
|
value: value1,
|
|
12154
11964
|
min: props === null || props === void 0 ? void 0 : props.min,
|
|
12155
11965
|
max: props === null || props === void 0 ? void 0 : props.max,
|
|
@@ -12167,8 +11977,8 @@ var SliderSingle = React34.forwardRef(function(_param, ref) {
|
|
|
12167
11977
|
SliderSingle.displayName = "SliderSingle";
|
|
12168
11978
|
// src/components/spinner.tsx
|
|
12169
11979
|
var import_class_variance_authority15 = require("class-variance-authority");
|
|
12170
|
-
var
|
|
12171
|
-
var
|
|
11980
|
+
var import_lucide_react12 = require("lucide-react");
|
|
11981
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
12172
11982
|
var spinnerVariants = (0, import_class_variance_authority15.cva)("animate-spin", {
|
|
12173
11983
|
variants: {
|
|
12174
11984
|
size: {
|
|
@@ -12200,7 +12010,7 @@ var spinnerVariants = (0, import_class_variance_authority15.cva)("animate-spin",
|
|
|
12200
12010
|
});
|
|
12201
12011
|
function Spinner(props) {
|
|
12202
12012
|
var size = props.size, speed = props.speed, color = props.color, className = props.className;
|
|
12203
|
-
return /* @__PURE__ */ (0,
|
|
12013
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react12.Loader2, {
|
|
12204
12014
|
className: cn(spinnerVariants({
|
|
12205
12015
|
size: size,
|
|
12206
12016
|
speed: speed,
|
|
@@ -12211,8 +12021,8 @@ function Spinner(props) {
|
|
|
12211
12021
|
// src/components/switch.tsx
|
|
12212
12022
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
12213
12023
|
var import_class_variance_authority16 = require("class-variance-authority");
|
|
12214
|
-
var
|
|
12215
|
-
var
|
|
12024
|
+
var React34 = __toESM(require("react"), 1);
|
|
12025
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
12216
12026
|
var switchSize = {
|
|
12217
12027
|
sm: "w-7 h-4",
|
|
12218
12028
|
md: "w-[34px] h-5",
|
|
@@ -12294,7 +12104,7 @@ var switchThumbIconVariants = (0, import_class_variance_authority16.cva)("flex i
|
|
|
12294
12104
|
}
|
|
12295
12105
|
}
|
|
12296
12106
|
});
|
|
12297
|
-
var Switch =
|
|
12107
|
+
var Switch = React34.forwardRef(function(_param, ref) {
|
|
12298
12108
|
var className = _param.className, size = _param.size, label = _param.label, labelClassName = _param.labelClassName, vertical = _param.vertical, icon = _param.icon, props = _object_without_properties(_param, [
|
|
12299
12109
|
"className",
|
|
12300
12110
|
"size",
|
|
@@ -12303,23 +12113,23 @@ var Switch = React35.forwardRef(function(_param, ref) {
|
|
|
12303
12113
|
"vertical",
|
|
12304
12114
|
"icon"
|
|
12305
12115
|
]);
|
|
12306
|
-
var Component = label ? "div" :
|
|
12307
|
-
return /* @__PURE__ */ (0,
|
|
12116
|
+
var Component = label ? "div" : React34.Fragment;
|
|
12117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Component, {
|
|
12308
12118
|
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"),
|
|
12309
12119
|
children: [
|
|
12310
|
-
/* @__PURE__ */ (0,
|
|
12120
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SwitchPrimitives.Root, _object_spread_props(_object_spread({
|
|
12311
12121
|
className: cn(switchRootVariants({
|
|
12312
12122
|
size: size,
|
|
12313
12123
|
vertical: vertical
|
|
12314
12124
|
}), className, vertical && "flex-col")
|
|
12315
12125
|
}, props), {
|
|
12316
12126
|
ref: ref,
|
|
12317
|
-
children: /* @__PURE__ */ (0,
|
|
12127
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SwitchPrimitives.Thumb, {
|
|
12318
12128
|
className: cn(switchThumbVariants({
|
|
12319
12129
|
size: size,
|
|
12320
12130
|
vertical: vertical
|
|
12321
12131
|
}), "flex items-center justify-center"),
|
|
12322
|
-
children: icon && /* @__PURE__ */ (0,
|
|
12132
|
+
children: icon && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, {
|
|
12323
12133
|
component: icon,
|
|
12324
12134
|
className: switchThumbIconVariants({
|
|
12325
12135
|
size: size
|
|
@@ -12327,7 +12137,7 @@ var Switch = React35.forwardRef(function(_param, ref) {
|
|
|
12327
12137
|
})
|
|
12328
12138
|
})
|
|
12329
12139
|
})),
|
|
12330
|
-
label && /* @__PURE__ */ (0,
|
|
12140
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", {
|
|
12331
12141
|
className: cn("text-sm", labelClassName),
|
|
12332
12142
|
children: label
|
|
12333
12143
|
})
|
|
@@ -12338,8 +12148,8 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
|
12338
12148
|
// src/components/tabs.tsx
|
|
12339
12149
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
12340
12150
|
var import_class_variance_authority17 = require("class-variance-authority");
|
|
12341
|
-
var
|
|
12342
|
-
var
|
|
12151
|
+
var React35 = __toESM(require("react"), 1);
|
|
12152
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
12343
12153
|
var TabsRoot = TabsPrimitive.Tabs;
|
|
12344
12154
|
var TabsList = TabsPrimitive.List;
|
|
12345
12155
|
var TabsTrigger = TabsPrimitive.Trigger;
|
|
@@ -12488,7 +12298,7 @@ var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-fl
|
|
|
12488
12298
|
rounded: "default"
|
|
12489
12299
|
}
|
|
12490
12300
|
});
|
|
12491
|
-
var Tabs2 =
|
|
12301
|
+
var Tabs2 = React35.forwardRef(function(_param, ref) {
|
|
12492
12302
|
var className = _param.className, listClassName = _param.listClassName, 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, [
|
|
12493
12303
|
"className",
|
|
12494
12304
|
"listClassName",
|
|
@@ -12499,14 +12309,14 @@ var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
|
12499
12309
|
"rounded",
|
|
12500
12310
|
"items"
|
|
12501
12311
|
]);
|
|
12502
|
-
return /* @__PURE__ */ (0,
|
|
12312
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(TabsPrimitive.Root, _object_spread_props(_object_spread({
|
|
12503
12313
|
ref: ref,
|
|
12504
12314
|
className: cn(className)
|
|
12505
12315
|
}, props), {
|
|
12506
12316
|
children: [
|
|
12507
|
-
/* @__PURE__ */ (0,
|
|
12317
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", {
|
|
12508
12318
|
className: "w-full flex justify-start items-center",
|
|
12509
|
-
children: /* @__PURE__ */ (0,
|
|
12319
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TabsPrimitive.List, _object_spread_props(_object_spread({
|
|
12510
12320
|
ref: ref,
|
|
12511
12321
|
className: cn(tabListVariants({
|
|
12512
12322
|
variant: variant,
|
|
@@ -12515,7 +12325,7 @@ var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
|
12515
12325
|
}), listClassName)
|
|
12516
12326
|
}, props), {
|
|
12517
12327
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
12518
|
-
return /* @__PURE__ */ (0,
|
|
12328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Tab, _object_spread({
|
|
12519
12329
|
isLink: isLink,
|
|
12520
12330
|
variant: variant,
|
|
12521
12331
|
size: size,
|
|
@@ -12524,10 +12334,10 @@ var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
|
12524
12334
|
})
|
|
12525
12335
|
}))
|
|
12526
12336
|
}),
|
|
12527
|
-
!isLink && /* @__PURE__ */ (0,
|
|
12337
|
+
!isLink && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", {
|
|
12528
12338
|
className: "w-full",
|
|
12529
12339
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
12530
|
-
return /* @__PURE__ */ (0,
|
|
12340
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TabsContent, {
|
|
12531
12341
|
value: item.value,
|
|
12532
12342
|
className: contentClassName,
|
|
12533
12343
|
children: item.children
|
|
@@ -12538,7 +12348,7 @@ var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
|
12538
12348
|
}));
|
|
12539
12349
|
});
|
|
12540
12350
|
Tabs2.displayName = TabsPrimitive.Root.displayName;
|
|
12541
|
-
var Tab =
|
|
12351
|
+
var Tab = React35.forwardRef(function(_param, ref) {
|
|
12542
12352
|
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, [
|
|
12543
12353
|
"className",
|
|
12544
12354
|
"variant",
|
|
@@ -12553,10 +12363,10 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
12553
12363
|
"rounded",
|
|
12554
12364
|
"onClickCallback"
|
|
12555
12365
|
]);
|
|
12556
|
-
return /* @__PURE__ */ (0,
|
|
12366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Tooltip, _object_spread_props(_object_spread({
|
|
12557
12367
|
triggerClassName: cn("h-full flex justify-center items-center", variant === "underline" ? "w-fit justify-start items-end" : "w-full flex-1")
|
|
12558
12368
|
}, tooltip), {
|
|
12559
|
-
children: /* @__PURE__ */ (0,
|
|
12369
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TabsPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
12560
12370
|
ref: ref,
|
|
12561
12371
|
className: cn("tabtrigger min-w-fit", tabVariants({
|
|
12562
12372
|
variant: variant,
|
|
@@ -12568,7 +12378,7 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
12568
12378
|
e.stopPropagation();
|
|
12569
12379
|
onClickCallback === null || onClickCallback === void 0 ? void 0 : onClickCallback(props.value);
|
|
12570
12380
|
},
|
|
12571
|
-
children: isLink && link ? /* @__PURE__ */ (0,
|
|
12381
|
+
children: isLink && link ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(link_default, {
|
|
12572
12382
|
prefetch: true,
|
|
12573
12383
|
href: link,
|
|
12574
12384
|
className: cn("relative h-full w-full flex justify-center items-center"),
|
|
@@ -12579,28 +12389,28 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
12579
12389
|
},
|
|
12580
12390
|
children: [
|
|
12581
12391
|
label,
|
|
12582
|
-
hasUnRead && /* @__PURE__ */ (0,
|
|
12392
|
+
hasUnRead && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Badge, {
|
|
12583
12393
|
className: "-mt-2.5"
|
|
12584
12394
|
})
|
|
12585
12395
|
]
|
|
12586
|
-
}) : /* @__PURE__ */ (0,
|
|
12396
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", {
|
|
12587
12397
|
className: "relative flex justify-center items-center",
|
|
12588
12398
|
children: [
|
|
12589
|
-
label && /* @__PURE__ */ (0,
|
|
12399
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", {
|
|
12590
12400
|
className: cn("text-inherit"),
|
|
12591
12401
|
children: label
|
|
12592
12402
|
}),
|
|
12593
|
-
icon && /* @__PURE__ */ (0,
|
|
12403
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, {
|
|
12594
12404
|
component: icon,
|
|
12595
12405
|
size: "md",
|
|
12596
12406
|
className: "text-inherit"
|
|
12597
12407
|
}),
|
|
12598
|
-
count2 ? /* @__PURE__ */ (0,
|
|
12408
|
+
count2 ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Text, {
|
|
12599
12409
|
size: "sm",
|
|
12600
12410
|
className: "ml-1 text-Colors-Text-Subtlest",
|
|
12601
12411
|
children: count2
|
|
12602
12412
|
}) : null,
|
|
12603
|
-
hasUnRead && /* @__PURE__ */ (0,
|
|
12413
|
+
hasUnRead && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Badge, {
|
|
12604
12414
|
className: "-mt-2.5"
|
|
12605
12415
|
})
|
|
12606
12416
|
]
|
|
@@ -12609,20 +12419,20 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
12609
12419
|
}));
|
|
12610
12420
|
});
|
|
12611
12421
|
Tab.displayName = TabsPrimitive.Trigger.displayName;
|
|
12612
|
-
var TabsContent =
|
|
12422
|
+
var TabsContent = React35.forwardRef(function(_param, ref) {
|
|
12613
12423
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12614
12424
|
"className"
|
|
12615
12425
|
]);
|
|
12616
|
-
return /* @__PURE__ */ (0,
|
|
12426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TabsPrimitive.Content, _object_spread({
|
|
12617
12427
|
ref: ref,
|
|
12618
12428
|
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)
|
|
12619
12429
|
}, props));
|
|
12620
12430
|
});
|
|
12621
12431
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
12622
12432
|
// src/components/textarea.tsx
|
|
12623
|
-
var
|
|
12624
|
-
var
|
|
12625
|
-
var Textarea =
|
|
12433
|
+
var React36 = __toESM(require("react"), 1);
|
|
12434
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
12435
|
+
var Textarea = React36.forwardRef(function(_param, ref) {
|
|
12626
12436
|
var className = _param.className, maxLength = _param.maxLength, value1 = _param.value, error = _param.error, maxLengthClassName = _param.maxLengthClassName, props = _object_without_properties(_param, [
|
|
12627
12437
|
"className",
|
|
12628
12438
|
"maxLength",
|
|
@@ -12631,20 +12441,20 @@ var Textarea = React37.forwardRef(function(_param, ref) {
|
|
|
12631
12441
|
"maxLengthClassName"
|
|
12632
12442
|
]);
|
|
12633
12443
|
var _value_toString, _value_toString1;
|
|
12634
|
-
return /* @__PURE__ */ (0,
|
|
12444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", {
|
|
12635
12445
|
children: [
|
|
12636
|
-
/* @__PURE__ */ (0,
|
|
12446
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", {
|
|
12637
12447
|
className: "relative",
|
|
12638
12448
|
children: [
|
|
12639
|
-
/* @__PURE__ */ (0,
|
|
12449
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("textarea", _object_spread({
|
|
12640
12450
|
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),
|
|
12641
12451
|
ref: ref,
|
|
12642
12452
|
maxLength: maxLength,
|
|
12643
12453
|
value: value1
|
|
12644
12454
|
}, props)),
|
|
12645
|
-
maxLength ? /* @__PURE__ */ (0,
|
|
12455
|
+
maxLength ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", {
|
|
12646
12456
|
className: cn("absolute text-right bottom-5 right-4 border-Colors-Border-Default", maxLengthClassName),
|
|
12647
|
-
children: /* @__PURE__ */ (0,
|
|
12457
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Text, {
|
|
12648
12458
|
size: "sm",
|
|
12649
12459
|
color: "subtlest",
|
|
12650
12460
|
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)
|
|
@@ -12652,9 +12462,9 @@ var Textarea = React37.forwardRef(function(_param, ref) {
|
|
|
12652
12462
|
}) : null
|
|
12653
12463
|
]
|
|
12654
12464
|
}),
|
|
12655
|
-
error && /* @__PURE__ */ (0,
|
|
12465
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", {
|
|
12656
12466
|
className: "w-full",
|
|
12657
|
-
children: /* @__PURE__ */ (0,
|
|
12467
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Text, {
|
|
12658
12468
|
className: "text-wrap",
|
|
12659
12469
|
size: "sm",
|
|
12660
12470
|
weight: "regular",
|
|
@@ -12669,8 +12479,8 @@ Textarea.displayName = "Textarea";
|
|
|
12669
12479
|
// src/components/toggle.tsx
|
|
12670
12480
|
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
|
|
12671
12481
|
var import_class_variance_authority18 = require("class-variance-authority");
|
|
12672
|
-
var
|
|
12673
|
-
var
|
|
12482
|
+
var React37 = __toESM(require("react"), 1);
|
|
12483
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
12674
12484
|
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", {
|
|
12675
12485
|
variants: {
|
|
12676
12486
|
variant: {
|
|
@@ -12689,13 +12499,13 @@ var toggleVariants = (0, import_class_variance_authority18.cva)("inline-flex ite
|
|
|
12689
12499
|
size: "default"
|
|
12690
12500
|
}
|
|
12691
12501
|
});
|
|
12692
|
-
var Toggle =
|
|
12502
|
+
var Toggle = React37.forwardRef(function(_param, ref) {
|
|
12693
12503
|
var className = _param.className, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
|
|
12694
12504
|
"className",
|
|
12695
12505
|
"variant",
|
|
12696
12506
|
"size"
|
|
12697
12507
|
]);
|
|
12698
|
-
return /* @__PURE__ */ (0,
|
|
12508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TogglePrimitive.Root, _object_spread({
|
|
12699
12509
|
ref: ref,
|
|
12700
12510
|
className: cn(toggleVariants({
|
|
12701
12511
|
variant: variant,
|
|
@@ -12707,24 +12517,24 @@ var Toggle = React38.forwardRef(function(_param, ref) {
|
|
|
12707
12517
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
12708
12518
|
// src/components/toggle-group.tsx
|
|
12709
12519
|
var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
|
|
12710
|
-
var
|
|
12711
|
-
var
|
|
12712
|
-
var ToggleGroupContext =
|
|
12520
|
+
var React38 = __toESM(require("react"), 1);
|
|
12521
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
12522
|
+
var ToggleGroupContext = React38.createContext({
|
|
12713
12523
|
size: "default",
|
|
12714
12524
|
variant: "default"
|
|
12715
12525
|
});
|
|
12716
|
-
var ToggleGroup =
|
|
12526
|
+
var ToggleGroup = React38.forwardRef(function(_param, ref) {
|
|
12717
12527
|
var className = _param.className, variant = _param.variant, size = _param.size, children = _param.children, props = _object_without_properties(_param, [
|
|
12718
12528
|
"className",
|
|
12719
12529
|
"variant",
|
|
12720
12530
|
"size",
|
|
12721
12531
|
"children"
|
|
12722
12532
|
]);
|
|
12723
|
-
return /* @__PURE__ */ (0,
|
|
12533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ToggleGroupPrimitive.Root, _object_spread_props(_object_spread({
|
|
12724
12534
|
ref: ref,
|
|
12725
12535
|
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)
|
|
12726
12536
|
}, props), {
|
|
12727
|
-
children: /* @__PURE__ */ (0,
|
|
12537
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ToggleGroupContext.Provider, {
|
|
12728
12538
|
value: {
|
|
12729
12539
|
variant: variant,
|
|
12730
12540
|
size: size
|
|
@@ -12734,15 +12544,15 @@ var ToggleGroup = React39.forwardRef(function(_param, ref) {
|
|
|
12734
12544
|
}));
|
|
12735
12545
|
});
|
|
12736
12546
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
12737
|
-
var ToggleGroupItem =
|
|
12547
|
+
var ToggleGroupItem = React38.forwardRef(function(_param, ref) {
|
|
12738
12548
|
var className = _param.className, children = _param.children, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
|
|
12739
12549
|
"className",
|
|
12740
12550
|
"children",
|
|
12741
12551
|
"variant",
|
|
12742
12552
|
"size"
|
|
12743
12553
|
]);
|
|
12744
|
-
var context =
|
|
12745
|
-
return /* @__PURE__ */ (0,
|
|
12554
|
+
var context = React38.useContext(ToggleGroupContext);
|
|
12555
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ToggleGroupPrimitive.Item, _object_spread_props(_object_spread({
|
|
12746
12556
|
ref: ref,
|
|
12747
12557
|
className: cn(toggleVariants({
|
|
12748
12558
|
variant: context.variant || variant,
|
|
@@ -12755,7 +12565,7 @@ var ToggleGroupItem = React39.forwardRef(function(_param, ref) {
|
|
|
12755
12565
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
12756
12566
|
// src/components/chips.tsx
|
|
12757
12567
|
var import_class_variance_authority19 = require("class-variance-authority");
|
|
12758
|
-
var
|
|
12568
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
12759
12569
|
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', {
|
|
12760
12570
|
variants: {
|
|
12761
12571
|
variant: {
|
|
@@ -12774,7 +12584,7 @@ var chipsVariants = (0, import_class_variance_authority19.cva)('min-w-10 flex it
|
|
|
12774
12584
|
});
|
|
12775
12585
|
function Chips(props) {
|
|
12776
12586
|
var variant = props.variant, size = props.size, count2 = props.count, className = props.className, label = props.label, disabled = props.disabled, selected = props.selected;
|
|
12777
|
-
return /* @__PURE__ */ (0,
|
|
12587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", {
|
|
12778
12588
|
"data-disabled": disabled,
|
|
12779
12589
|
"data-selected": selected,
|
|
12780
12590
|
className: cn(chipsVariants({
|
|
@@ -12783,7 +12593,7 @@ function Chips(props) {
|
|
|
12783
12593
|
}), className),
|
|
12784
12594
|
children: [
|
|
12785
12595
|
label,
|
|
12786
|
-
count2 && count2 > 0 ? /* @__PURE__ */ (0,
|
|
12596
|
+
count2 && count2 > 0 ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", {
|
|
12787
12597
|
className: "h-full pt-0.5 ml-1 font-medium text-xs leading-[1.3]",
|
|
12788
12598
|
children: count2
|
|
12789
12599
|
}) : null
|
|
@@ -12793,9 +12603,9 @@ function Chips(props) {
|
|
|
12793
12603
|
// src/components/toast/toast.tsx
|
|
12794
12604
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"), 1);
|
|
12795
12605
|
var import_class_variance_authority20 = require("class-variance-authority");
|
|
12796
|
-
var
|
|
12606
|
+
var React39 = __toESM(require("react"), 1);
|
|
12797
12607
|
var import_XMarkIcon3 = __toESM(require("@heroicons/react/24/outline/esm/XMarkIcon"), 1);
|
|
12798
|
-
var
|
|
12608
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
12799
12609
|
var ToastProvider = ToastPrimitives.Provider;
|
|
12800
12610
|
var viewportPositionVariants = (0, import_class_variance_authority20.cva)("fixed z-[1000001] flex max-h-screen w-full p-0 gap-2", {
|
|
12801
12611
|
variants: {
|
|
@@ -12814,12 +12624,12 @@ var viewportPositionVariants = (0, import_class_variance_authority20.cva)("fixed
|
|
|
12814
12624
|
position: "top-right"
|
|
12815
12625
|
}
|
|
12816
12626
|
});
|
|
12817
|
-
var ToastViewport =
|
|
12627
|
+
var ToastViewport = React39.forwardRef(function(_param, ref) {
|
|
12818
12628
|
var className = _param.className, position = _param.position, props = _object_without_properties(_param, [
|
|
12819
12629
|
"className",
|
|
12820
12630
|
"position"
|
|
12821
12631
|
]);
|
|
12822
|
-
return /* @__PURE__ */ (0,
|
|
12632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitives.Viewport, _object_spread({
|
|
12823
12633
|
ref: ref,
|
|
12824
12634
|
className: cn(viewportPositionVariants({
|
|
12825
12635
|
position: position
|
|
@@ -12851,13 +12661,13 @@ var toastVariants = (0, import_class_variance_authority20.cva)("group pointer-ev
|
|
|
12851
12661
|
position: "top-right"
|
|
12852
12662
|
}
|
|
12853
12663
|
});
|
|
12854
|
-
var Toast =
|
|
12664
|
+
var Toast = React39.forwardRef(function(_param, ref) {
|
|
12855
12665
|
var className = _param.className, variant = _param.variant, position = _param.position, props = _object_without_properties(_param, [
|
|
12856
12666
|
"className",
|
|
12857
12667
|
"variant",
|
|
12858
12668
|
"position"
|
|
12859
12669
|
]);
|
|
12860
|
-
return /* @__PURE__ */ (0,
|
|
12670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitives.Root, _object_spread({
|
|
12861
12671
|
ref: ref,
|
|
12862
12672
|
className: cn(toastVariants({
|
|
12863
12673
|
variant: variant,
|
|
@@ -12867,46 +12677,46 @@ var Toast = React40.forwardRef(function(_param, ref) {
|
|
|
12867
12677
|
}, props));
|
|
12868
12678
|
});
|
|
12869
12679
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
12870
|
-
var ToastAction =
|
|
12680
|
+
var ToastAction = React39.forwardRef(function(_param, ref) {
|
|
12871
12681
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12872
12682
|
"className"
|
|
12873
12683
|
]);
|
|
12874
|
-
return /* @__PURE__ */ (0,
|
|
12684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitives.Action, _object_spread({
|
|
12875
12685
|
ref: ref,
|
|
12876
12686
|
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)
|
|
12877
12687
|
}, props));
|
|
12878
12688
|
});
|
|
12879
12689
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
12880
|
-
var ToastClose =
|
|
12690
|
+
var ToastClose = React39.forwardRef(function(_param, ref) {
|
|
12881
12691
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12882
12692
|
"className"
|
|
12883
12693
|
]);
|
|
12884
|
-
return /* @__PURE__ */ (0,
|
|
12694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitives.Close, _object_spread_props(_object_spread({
|
|
12885
12695
|
ref: ref,
|
|
12886
12696
|
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),
|
|
12887
12697
|
"toast-close": ""
|
|
12888
12698
|
}, props), {
|
|
12889
|
-
children: /* @__PURE__ */ (0,
|
|
12699
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_XMarkIcon3.default, {
|
|
12890
12700
|
className: "h-5 w-5"
|
|
12891
12701
|
})
|
|
12892
12702
|
}));
|
|
12893
12703
|
});
|
|
12894
12704
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
12895
|
-
var ToastTitle =
|
|
12705
|
+
var ToastTitle = React39.forwardRef(function(_param, ref) {
|
|
12896
12706
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12897
12707
|
"className"
|
|
12898
12708
|
]);
|
|
12899
|
-
return /* @__PURE__ */ (0,
|
|
12709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitives.Title, _object_spread({
|
|
12900
12710
|
ref: ref,
|
|
12901
12711
|
className: cn("text-sm font-semibold", className)
|
|
12902
12712
|
}, props));
|
|
12903
12713
|
});
|
|
12904
12714
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
12905
|
-
var ToastDescription =
|
|
12715
|
+
var ToastDescription = React39.forwardRef(function(_param, ref) {
|
|
12906
12716
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12907
12717
|
"className"
|
|
12908
12718
|
]);
|
|
12909
|
-
return /* @__PURE__ */ (0,
|
|
12719
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitives.Description, _object_spread({
|
|
12910
12720
|
ref: ref,
|
|
12911
12721
|
className: cn("text-sm opacity-90", className)
|
|
12912
12722
|
}, props));
|
|
@@ -12917,8 +12727,8 @@ var import_CheckCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/C
|
|
|
12917
12727
|
var import_InformationCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/InformationCircleIcon"), 1);
|
|
12918
12728
|
var import_XCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/XCircleIcon"), 1);
|
|
12919
12729
|
// src/components/toast/use-toast.tsx
|
|
12920
|
-
var
|
|
12921
|
-
var
|
|
12730
|
+
var React40 = __toESM(require("react"), 1);
|
|
12731
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
12922
12732
|
var TOAST_LIMIT = 8;
|
|
12923
12733
|
var TOAST_REMOVE_DELAY = 1e3;
|
|
12924
12734
|
var count = 0;
|
|
@@ -13021,10 +12831,10 @@ function toast(_param) {
|
|
|
13021
12831
|
toast: _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, props), {
|
|
13022
12832
|
position: position
|
|
13023
12833
|
}), actions && {
|
|
13024
|
-
action: /* @__PURE__ */ (0,
|
|
12834
|
+
action: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", {
|
|
13025
12835
|
className: "flex justify-start items-center gap-2",
|
|
13026
12836
|
children: [
|
|
13027
|
-
(actions === null || actions === void 0 ? void 0 : actions.dismissText) && /* @__PURE__ */ (0,
|
|
12837
|
+
(actions === null || actions === void 0 ? void 0 : actions.dismissText) && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, {
|
|
13028
12838
|
size: "sm",
|
|
13029
12839
|
weight: "medium",
|
|
13030
12840
|
color: "brand",
|
|
@@ -13034,13 +12844,13 @@ function toast(_param) {
|
|
|
13034
12844
|
},
|
|
13035
12845
|
children: actions === null || actions === void 0 ? void 0 : actions.dismissText
|
|
13036
12846
|
}),
|
|
13037
|
-
(actions === null || actions === void 0 ? void 0 : actions.view) && actions.viewUrl && /* @__PURE__ */ (0,
|
|
12847
|
+
(actions === null || actions === void 0 ? void 0 : actions.view) && actions.viewUrl && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(link_default, {
|
|
13038
12848
|
href: actions.viewUrl,
|
|
13039
12849
|
target: "_blank",
|
|
13040
12850
|
rel: "noreferrer noopener",
|
|
13041
|
-
children: /* @__PURE__ */ (0,
|
|
12851
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", {
|
|
13042
12852
|
className: "flex items-center gap-1.5",
|
|
13043
|
-
children: /* @__PURE__ */ (0,
|
|
12853
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, {
|
|
13044
12854
|
size: "sm",
|
|
13045
12855
|
weight: "medium",
|
|
13046
12856
|
color: "default",
|
|
@@ -13066,8 +12876,8 @@ function toast(_param) {
|
|
|
13066
12876
|
};
|
|
13067
12877
|
}
|
|
13068
12878
|
function useToast() {
|
|
13069
|
-
var
|
|
13070
|
-
|
|
12879
|
+
var _React40_useState = _sliced_to_array(React40.useState(memoryState), 2), state = _React40_useState[0], setState = _React40_useState[1];
|
|
12880
|
+
React40.useEffect(function() {
|
|
13071
12881
|
listeners.push(setState);
|
|
13072
12882
|
return function() {
|
|
13073
12883
|
var index = listeners.indexOf(setState);
|
|
@@ -13091,7 +12901,7 @@ function useToast() {
|
|
|
13091
12901
|
// src/components/toast/toaster.tsx
|
|
13092
12902
|
var import_react15 = __toESM(require("react"), 1);
|
|
13093
12903
|
var import_outline3 = require("@heroicons/react/24/outline");
|
|
13094
|
-
var
|
|
12904
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
13095
12905
|
function Toaster() {
|
|
13096
12906
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref_position = _ref.position, position = _ref_position === void 0 ? "top-right" : _ref_position;
|
|
13097
12907
|
var toasts = useToast().toasts;
|
|
@@ -13125,22 +12935,22 @@ function Toaster() {
|
|
|
13125
12935
|
]);
|
|
13126
12936
|
var renderToast = function(toast4) {
|
|
13127
12937
|
var id = toast4.id, title = toast4.title, description = toast4.description, action = toast4.action, variant = toast4.variant, toastPosition = toast4.position;
|
|
13128
|
-
var
|
|
12938
|
+
var renderIcon2 = function(variant2) {
|
|
13129
12939
|
switch(variant2){
|
|
13130
12940
|
case "info":
|
|
13131
|
-
return /* @__PURE__ */ (0,
|
|
12941
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_InformationCircleIcon2.default, {
|
|
13132
12942
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
13133
12943
|
});
|
|
13134
12944
|
case "success":
|
|
13135
|
-
return /* @__PURE__ */ (0,
|
|
12945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_CheckCircleIcon2.default, {
|
|
13136
12946
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
13137
12947
|
});
|
|
13138
12948
|
case "warning":
|
|
13139
|
-
return /* @__PURE__ */ (0,
|
|
12949
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_outline3.ExclamationTriangleIcon, {
|
|
13140
12950
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
13141
12951
|
});
|
|
13142
12952
|
case "error":
|
|
13143
|
-
return /* @__PURE__ */ (0,
|
|
12953
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_XCircleIcon2.default, {
|
|
13144
12954
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
13145
12955
|
});
|
|
13146
12956
|
}
|
|
@@ -13157,26 +12967,26 @@ function Toaster() {
|
|
|
13157
12967
|
return "bg-Colors-Background-Critical-Default";
|
|
13158
12968
|
}
|
|
13159
12969
|
};
|
|
13160
|
-
return /* @__PURE__ */ (0,
|
|
12970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Toast, _object_spread_props(_object_spread({}, toast4), {
|
|
13161
12971
|
position: toastPosition,
|
|
13162
12972
|
children: [
|
|
13163
|
-
/* @__PURE__ */ (0,
|
|
12973
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", {
|
|
13164
12974
|
className: "flex flex-col gap-3",
|
|
13165
|
-
children: /* @__PURE__ */ (0,
|
|
12975
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", {
|
|
13166
12976
|
className: "flex items-start gap-3",
|
|
13167
12977
|
children: [
|
|
13168
|
-
/* @__PURE__ */ (0,
|
|
12978
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", {
|
|
13169
12979
|
className: cn("flex h-10 w-10 flex-shrink-0 flex-grow-0 items-center justify-center rounded-full", getBackgroundColor(variant)),
|
|
13170
|
-
children:
|
|
12980
|
+
children: renderIcon2(variant)
|
|
13171
12981
|
}),
|
|
13172
|
-
/* @__PURE__ */ (0,
|
|
12982
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", {
|
|
13173
12983
|
className: "grid gap-1",
|
|
13174
12984
|
children: [
|
|
13175
|
-
title && /* @__PURE__ */ (0,
|
|
12985
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ToastTitle, {
|
|
13176
12986
|
className: "text-base text-Colors-Text-Default",
|
|
13177
12987
|
children: title
|
|
13178
12988
|
}),
|
|
13179
|
-
description && /* @__PURE__ */ (0,
|
|
12989
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ToastDescription, {
|
|
13180
12990
|
className: "text-sm text-Colors-Text-Subtle",
|
|
13181
12991
|
children: description
|
|
13182
12992
|
}),
|
|
@@ -13186,17 +12996,17 @@ function Toaster() {
|
|
|
13186
12996
|
]
|
|
13187
12997
|
})
|
|
13188
12998
|
}),
|
|
13189
|
-
/* @__PURE__ */ (0,
|
|
12999
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ToastClose, {})
|
|
13190
13000
|
]
|
|
13191
13001
|
}), id);
|
|
13192
13002
|
};
|
|
13193
|
-
return /* @__PURE__ */ (0,
|
|
13003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ToastProvider, {
|
|
13194
13004
|
children: Object.entries(positionGroups).map(function(param) {
|
|
13195
13005
|
var _param = _sliced_to_array(param, 2), pos = _param[0], toastsForPosition = _param[1];
|
|
13196
|
-
return /* @__PURE__ */ (0,
|
|
13006
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react15.default.Fragment, {
|
|
13197
13007
|
children: [
|
|
13198
13008
|
toastsForPosition.map(renderToast),
|
|
13199
|
-
toastsForPosition.length > 0 && /* @__PURE__ */ (0,
|
|
13009
|
+
toastsForPosition.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ToastViewport, {
|
|
13200
13010
|
position: pos
|
|
13201
13011
|
})
|
|
13202
13012
|
]
|
|
@@ -13218,7 +13028,7 @@ var import_pagination = require("swiper/css/pagination");
|
|
|
13218
13028
|
// src/components/swiper/index.module.scss
|
|
13219
13029
|
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== */';
|
|
13220
13030
|
// src/components/swiper/index.tsx
|
|
13221
|
-
var
|
|
13031
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
13222
13032
|
var swiperVariants = (0, import_class_variance_authority21.cva)("", {
|
|
13223
13033
|
variants: {
|
|
13224
13034
|
rounded: {
|
|
@@ -13354,9 +13164,9 @@ function Swiper(props) {
|
|
|
13354
13164
|
}
|
|
13355
13165
|
}
|
|
13356
13166
|
};
|
|
13357
|
-
return /* @__PURE__ */ (0,
|
|
13167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", {
|
|
13358
13168
|
className: index_module_default.swiperBox,
|
|
13359
|
-
children: /* @__PURE__ */ (0,
|
|
13169
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react17.Swiper, _object_spread_props(_object_spread({
|
|
13360
13170
|
observer: true,
|
|
13361
13171
|
observeParents: true
|
|
13362
13172
|
}, swiperConfigs), {
|
|
@@ -13366,9 +13176,9 @@ function Swiper(props) {
|
|
|
13366
13176
|
swiperRef.current = swiper;
|
|
13367
13177
|
},
|
|
13368
13178
|
children: swiperList.map(function(item, index) {
|
|
13369
|
-
return /* @__PURE__ */ (0,
|
|
13179
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react17.SwiperSlide, {
|
|
13370
13180
|
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),
|
|
13371
|
-
children: /* @__PURE__ */ (0,
|
|
13181
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Com, {
|
|
13372
13182
|
item: item,
|
|
13373
13183
|
index: index,
|
|
13374
13184
|
onClick: handleSlideItemClick,
|
|
@@ -13389,48 +13199,48 @@ var import_ExclamationCircleIcon = __toESM(require("@heroicons/react/24/solid/es
|
|
|
13389
13199
|
var import_InformationCircleIcon3 = __toESM(require("@heroicons/react/24/solid/esm/InformationCircleIcon"), 1);
|
|
13390
13200
|
var import_XCircleIcon3 = __toESM(require("@heroicons/react/24/solid/esm/XCircleIcon"), 1);
|
|
13391
13201
|
var import_react_hot_toast = require("react-hot-toast");
|
|
13392
|
-
var
|
|
13202
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
13393
13203
|
function CustomNotification(param) {
|
|
13394
13204
|
var tProps = param.tProps, customProps = param.customProps;
|
|
13395
13205
|
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;
|
|
13396
13206
|
var id = tProps.id;
|
|
13397
13207
|
var displayedContent = !isString(content) ? JSON.stringify(content) : content;
|
|
13398
|
-
return /* @__PURE__ */ (0,
|
|
13399
|
-
children: /* @__PURE__ */ (0,
|
|
13208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", {
|
|
13209
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", {
|
|
13400
13210
|
id: id,
|
|
13401
13211
|
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]",
|
|
13402
|
-
children: /* @__PURE__ */ (0,
|
|
13212
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", {
|
|
13403
13213
|
className: "flex w-full items-center justify-center gap-2",
|
|
13404
13214
|
children: [
|
|
13405
|
-
loading && /* @__PURE__ */ (0,
|
|
13406
|
-
!loading && type && /* @__PURE__ */ (0,
|
|
13215
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Spinner, {}),
|
|
13216
|
+
!loading && type && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", {
|
|
13407
13217
|
className: "flex flex-shrink-0 items-center",
|
|
13408
13218
|
children: [
|
|
13409
|
-
type === "info" && /* @__PURE__ */ (0,
|
|
13219
|
+
type === "info" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_InformationCircleIcon3.default, {
|
|
13410
13220
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
13411
13221
|
}),
|
|
13412
|
-
type === "success" && /* @__PURE__ */ (0,
|
|
13222
|
+
type === "success" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_CheckCircleIcon3.default, {
|
|
13413
13223
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
13414
13224
|
}),
|
|
13415
|
-
type === "warning" && /* @__PURE__ */ (0,
|
|
13225
|
+
type === "warning" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_ExclamationCircleIcon.default, {
|
|
13416
13226
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
13417
13227
|
}),
|
|
13418
|
-
type === "error" && /* @__PURE__ */ (0,
|
|
13228
|
+
type === "error" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_XCircleIcon3.default, {
|
|
13419
13229
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
13420
13230
|
})
|
|
13421
13231
|
]
|
|
13422
13232
|
}),
|
|
13423
|
-
/* @__PURE__ */ (0,
|
|
13233
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", {
|
|
13424
13234
|
className: "flex flex-grow flex-col space-y-1 overflow-hidden",
|
|
13425
13235
|
children: [
|
|
13426
|
-
title && /* @__PURE__ */ (0,
|
|
13236
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Text, {
|
|
13427
13237
|
size: "sm",
|
|
13428
13238
|
weight: "regular",
|
|
13429
13239
|
color: "default",
|
|
13430
13240
|
children: title
|
|
13431
13241
|
}),
|
|
13432
|
-
/* @__PURE__ */ (0,
|
|
13433
|
-
children: /* @__PURE__ */ (0,
|
|
13242
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", {
|
|
13243
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Text, {
|
|
13434
13244
|
size: "sm",
|
|
13435
13245
|
weight: "regular",
|
|
13436
13246
|
color: "default",
|
|
@@ -13439,16 +13249,16 @@ function CustomNotification(param) {
|
|
|
13439
13249
|
})
|
|
13440
13250
|
]
|
|
13441
13251
|
}),
|
|
13442
|
-
action && /* @__PURE__ */ (0,
|
|
13252
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, {
|
|
13443
13253
|
children: [
|
|
13444
|
-
/* @__PURE__ */ (0,
|
|
13254
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Separator, {
|
|
13445
13255
|
orientation: "vertical",
|
|
13446
13256
|
className: "h-3"
|
|
13447
13257
|
}),
|
|
13448
13258
|
action
|
|
13449
13259
|
]
|
|
13450
13260
|
}),
|
|
13451
|
-
isClosable && /* @__PURE__ */ (0,
|
|
13261
|
+
isClosable && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(IconButton, {
|
|
13452
13262
|
size: "sm",
|
|
13453
13263
|
variant: "plain",
|
|
13454
13264
|
icon: import_XMarkIcon4.default,
|
|
@@ -13465,14 +13275,14 @@ function CustomNotification(param) {
|
|
|
13465
13275
|
// src/common/hooks/useNotification.tsx
|
|
13466
13276
|
var import_react18 = require("react");
|
|
13467
13277
|
var import_react_hot_toast2 = require("react-hot-toast");
|
|
13468
|
-
var
|
|
13278
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
13469
13279
|
function useNotification() {
|
|
13470
13280
|
var addToast = (0, import_react18.useCallback)(function(config2, duration2) {
|
|
13471
13281
|
if (config2.id) {
|
|
13472
13282
|
import_react_hot_toast2.toast.remove(config2.id);
|
|
13473
13283
|
}
|
|
13474
13284
|
import_react_hot_toast2.toast.custom(function(t) {
|
|
13475
|
-
return /* @__PURE__ */ (0,
|
|
13285
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CustomNotification, {
|
|
13476
13286
|
tProps: _object_spread_props(_object_spread({}, t), {
|
|
13477
13287
|
duration: duration2
|
|
13478
13288
|
}),
|
|
@@ -13533,7 +13343,7 @@ var Message = /*#__PURE__*/ function() {
|
|
|
13533
13343
|
}
|
|
13534
13344
|
var addToast = function() {
|
|
13535
13345
|
import_react_hot_toast2.toast.custom(function(t) {
|
|
13536
|
-
return /* @__PURE__ */ (0,
|
|
13346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CustomNotification, {
|
|
13537
13347
|
tProps: _object_spread_props(_object_spread({}, t), {
|
|
13538
13348
|
duration: duration2
|
|
13539
13349
|
}),
|
|
@@ -13589,11 +13399,11 @@ var Message = /*#__PURE__*/ function() {
|
|
|
13589
13399
|
return Message;
|
|
13590
13400
|
}();
|
|
13591
13401
|
// src/components/icons/outline/ArrowLeftIcon.tsx
|
|
13592
|
-
var
|
|
13593
|
-
var
|
|
13594
|
-
var ArrowLeftIcon2 =
|
|
13595
|
-
return /* @__PURE__ */ (0,
|
|
13596
|
-
children: /* @__PURE__ */ (0,
|
|
13402
|
+
var React42 = __toESM(require("react"), 1);
|
|
13403
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
13404
|
+
var ArrowLeftIcon2 = React42.forwardRef(function(props, ref) {
|
|
13405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13406
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("svg", {
|
|
13597
13407
|
ref: ref,
|
|
13598
13408
|
className: "w-full h-full",
|
|
13599
13409
|
viewBox: "0 0 24 24",
|
|
@@ -13601,7 +13411,7 @@ var ArrowLeftIcon2 = React43.forwardRef(function(props, ref) {
|
|
|
13601
13411
|
strokeWidth: "1.5",
|
|
13602
13412
|
stroke: "currentColor",
|
|
13603
13413
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13604
|
-
children: /* @__PURE__ */ (0,
|
|
13414
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", {
|
|
13605
13415
|
strokeLinecap: "round",
|
|
13606
13416
|
strokeLinejoin: "round",
|
|
13607
13417
|
d: "M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"
|
|
@@ -13610,11 +13420,11 @@ var ArrowLeftIcon2 = React43.forwardRef(function(props, ref) {
|
|
|
13610
13420
|
}));
|
|
13611
13421
|
});
|
|
13612
13422
|
// src/components/icons/outline/ArrowUpTrayIcon.tsx
|
|
13613
|
-
var
|
|
13614
|
-
var
|
|
13615
|
-
var ArrowUpTrayIcon =
|
|
13616
|
-
return /* @__PURE__ */ (0,
|
|
13617
|
-
children: /* @__PURE__ */ (0,
|
|
13423
|
+
var React43 = __toESM(require("react"), 1);
|
|
13424
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
13425
|
+
var ArrowUpTrayIcon = React43.forwardRef(function(props, ref) {
|
|
13426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13427
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", {
|
|
13618
13428
|
ref: ref,
|
|
13619
13429
|
className: "w-full h-full",
|
|
13620
13430
|
viewBox: "0 0 24 24",
|
|
@@ -13622,7 +13432,7 @@ var ArrowUpTrayIcon = React44.forwardRef(function(props, ref) {
|
|
|
13622
13432
|
strokeWidth: "1.5",
|
|
13623
13433
|
stroke: "currentColor",
|
|
13624
13434
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13625
|
-
children: /* @__PURE__ */ (0,
|
|
13435
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("path", {
|
|
13626
13436
|
strokeLinecap: "round",
|
|
13627
13437
|
strokeLinejoin: "round",
|
|
13628
13438
|
d: "M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"
|
|
@@ -13631,11 +13441,11 @@ var ArrowUpTrayIcon = React44.forwardRef(function(props, ref) {
|
|
|
13631
13441
|
}));
|
|
13632
13442
|
});
|
|
13633
13443
|
// src/components/icons/outline/WindowIcon.tsx
|
|
13634
|
-
var
|
|
13635
|
-
var
|
|
13636
|
-
var WindowIcon =
|
|
13637
|
-
return /* @__PURE__ */ (0,
|
|
13638
|
-
children: /* @__PURE__ */ (0,
|
|
13444
|
+
var React44 = __toESM(require("react"), 1);
|
|
13445
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
13446
|
+
var WindowIcon = React44.forwardRef(function(props, ref) {
|
|
13447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13448
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", {
|
|
13639
13449
|
ref: ref,
|
|
13640
13450
|
className: "w-full h-full",
|
|
13641
13451
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13643,7 +13453,7 @@ var WindowIcon = React45.forwardRef(function(props, ref) {
|
|
|
13643
13453
|
fill: "none",
|
|
13644
13454
|
strokeWidth: "1.5",
|
|
13645
13455
|
stroke: "currentColor",
|
|
13646
|
-
children: /* @__PURE__ */ (0,
|
|
13456
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("path", {
|
|
13647
13457
|
strokeLinecap: "round",
|
|
13648
13458
|
strokeLinejoin: "round",
|
|
13649
13459
|
d: "M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"
|
|
@@ -13652,21 +13462,21 @@ var WindowIcon = React45.forwardRef(function(props, ref) {
|
|
|
13652
13462
|
}));
|
|
13653
13463
|
});
|
|
13654
13464
|
// src/components/icons/outline/CheckCircleIcon.tsx
|
|
13655
|
-
var
|
|
13656
|
-
var
|
|
13657
|
-
var CheckCircleIcon4 =
|
|
13658
|
-
return /* @__PURE__ */ (0,
|
|
13659
|
-
children: /* @__PURE__ */ (0,
|
|
13465
|
+
var React45 = __toESM(require("react"), 1);
|
|
13466
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
13467
|
+
var CheckCircleIcon4 = React45.forwardRef(function(props, ref) {
|
|
13468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13469
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("svg", {
|
|
13660
13470
|
ref: ref,
|
|
13661
13471
|
className: "w-full h-full",
|
|
13662
13472
|
viewBox: "0 0 24 24",
|
|
13663
13473
|
fill: "currentColor",
|
|
13664
13474
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13665
13475
|
children: [
|
|
13666
|
-
/* @__PURE__ */ (0,
|
|
13476
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", {
|
|
13667
13477
|
d: "M15.4359 9.1397C15.773 9.38046 15.8511 9.84887 15.6103 10.1859L11.8603 15.4359C11.7322 15.6153 11.5316 15.7293 11.3119 15.7474C11.0921 15.7656 10.8756 15.6862 10.7197 15.5303L8.46967 13.2803C8.17678 12.9874 8.17678 12.5126 8.46967 12.2197C8.76256 11.9268 9.23744 11.9268 9.53033 12.2197L11.1543 13.8436L14.3897 9.31407C14.6305 8.97701 15.0989 8.89894 15.4359 9.1397Z"
|
|
13668
13478
|
}),
|
|
13669
|
-
/* @__PURE__ */ (0,
|
|
13479
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", {
|
|
13670
13480
|
fillRule: "evenodd",
|
|
13671
13481
|
clipRule: "evenodd",
|
|
13672
13482
|
d: "M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM12 3.75C7.44365 3.75 3.75 7.44365 3.75 12C3.75 16.5563 7.44365 20.25 12 20.25C16.5563 20.25 20.25 16.5563 20.25 12C20.25 7.44365 16.5563 3.75 12 3.75Z"
|
|
@@ -13675,12 +13485,14 @@ var CheckCircleIcon4 = React46.forwardRef(function(props, ref) {
|
|
|
13675
13485
|
})
|
|
13676
13486
|
}));
|
|
13677
13487
|
});
|
|
13488
|
+
// src/components/icons/outline/FilterIcon.tsx
|
|
13489
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
13678
13490
|
// src/components/icons/outline/PencilSquareIcon.tsx
|
|
13679
|
-
var
|
|
13680
|
-
var
|
|
13681
|
-
var PencilSquareIcon =
|
|
13682
|
-
return /* @__PURE__ */ (0,
|
|
13683
|
-
children: /* @__PURE__ */ (0,
|
|
13491
|
+
var React46 = __toESM(require("react"), 1);
|
|
13492
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
13493
|
+
var PencilSquareIcon = React46.forwardRef(function(props, ref) {
|
|
13494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13495
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("svg", {
|
|
13684
13496
|
ref: ref,
|
|
13685
13497
|
className: "w-full h-full",
|
|
13686
13498
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13688,7 +13500,7 @@ var PencilSquareIcon = React47.forwardRef(function(props, ref) {
|
|
|
13688
13500
|
viewBox: "0 0 24 24",
|
|
13689
13501
|
strokeWidth: "1.5",
|
|
13690
13502
|
stroke: "currentColor",
|
|
13691
|
-
children: /* @__PURE__ */ (0,
|
|
13503
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("path", {
|
|
13692
13504
|
strokeLinecap: "round",
|
|
13693
13505
|
strokeLinejoin: "round",
|
|
13694
13506
|
d: "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"
|
|
@@ -13697,35 +13509,35 @@ var PencilSquareIcon = React47.forwardRef(function(props, ref) {
|
|
|
13697
13509
|
}));
|
|
13698
13510
|
});
|
|
13699
13511
|
// src/components/icons/outline/ConfigIcon.tsx
|
|
13700
|
-
var
|
|
13701
|
-
var
|
|
13702
|
-
var ConfigIcon =
|
|
13703
|
-
return /* @__PURE__ */ (0,
|
|
13704
|
-
children: /* @__PURE__ */ (0,
|
|
13512
|
+
var React47 = __toESM(require("react"), 1);
|
|
13513
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
13514
|
+
var ConfigIcon = React47.forwardRef(function(props, ref) {
|
|
13515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13516
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("svg", {
|
|
13705
13517
|
width: "18",
|
|
13706
13518
|
height: "18",
|
|
13707
13519
|
viewBox: "0 0 18 18",
|
|
13708
13520
|
fill: "none",
|
|
13709
13521
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13710
13522
|
className: "cursor-pointer",
|
|
13711
|
-
children: /* @__PURE__ */ (0,
|
|
13523
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("g", {
|
|
13712
13524
|
id: "wrapper",
|
|
13713
|
-
children: /* @__PURE__ */ (0,
|
|
13525
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("g", {
|
|
13714
13526
|
id: "Union",
|
|
13715
13527
|
children: [
|
|
13716
|
-
/* @__PURE__ */ (0,
|
|
13528
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", {
|
|
13717
13529
|
fillRule: "evenodd",
|
|
13718
13530
|
clipRule: "evenodd",
|
|
13719
13531
|
d: "M4.5 2.25C4.81066 2.25 5.0625 2.50184 5.0625 2.8125L5.0625 9.65852C5.71792 9.89018 6.1875 10.5153 6.1875 11.25C6.1875 11.9847 5.71792 12.6098 5.0625 12.8415V15.1875C5.0625 15.4982 4.81066 15.75 4.5 15.75C4.18934 15.75 3.9375 15.4982 3.9375 15.1875V12.8415C3.28208 12.6098 2.8125 11.9847 2.8125 11.25C2.8125 10.5153 3.28208 9.89018 3.9375 9.65852L3.9375 2.8125C3.9375 2.50184 4.18934 2.25 4.5 2.25ZM4.5 10.6875C4.18934 10.6875 3.9375 10.9393 3.9375 11.25C3.9375 11.5607 4.18934 11.8125 4.5 11.8125C4.81066 11.8125 5.0625 11.5607 5.0625 11.25C5.0625 10.9393 4.81066 10.6875 4.5 10.6875Z",
|
|
13720
13532
|
fill: "#6D7175"
|
|
13721
13533
|
}),
|
|
13722
|
-
/* @__PURE__ */ (0,
|
|
13534
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", {
|
|
13723
13535
|
fillRule: "evenodd",
|
|
13724
13536
|
clipRule: "evenodd",
|
|
13725
13537
|
d: "M9 2.25C9.31066 2.25 9.5625 2.50184 9.5625 2.8125V5.15852C10.2179 5.39018 10.6875 6.01525 10.6875 6.75C10.6875 7.48475 10.2179 8.10982 9.5625 8.34148V15.1875C9.5625 15.4982 9.31066 15.75 9 15.75C8.68934 15.75 8.4375 15.4982 8.4375 15.1875V8.34148C7.78208 8.10982 7.3125 7.48475 7.3125 6.75C7.3125 6.01525 7.78208 5.39018 8.4375 5.15852V2.8125C8.4375 2.50184 8.68934 2.25 9 2.25ZM9 6.1875C8.68934 6.1875 8.4375 6.43934 8.4375 6.75C8.4375 7.06066 8.68934 7.3125 9 7.3125C9.31066 7.3125 9.5625 7.06066 9.5625 6.75C9.5625 6.43934 9.31066 6.1875 9 6.1875Z",
|
|
13726
13538
|
fill: "#6D7175"
|
|
13727
13539
|
}),
|
|
13728
|
-
/* @__PURE__ */ (0,
|
|
13540
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", {
|
|
13729
13541
|
fillRule: "evenodd",
|
|
13730
13542
|
clipRule: "evenodd",
|
|
13731
13543
|
d: "M13.5 2.25C13.8107 2.25 14.0625 2.50184 14.0625 2.8125V9.65852C14.7179 9.89018 15.1875 10.5153 15.1875 11.25C15.1875 11.9847 14.7179 12.6098 14.0625 12.8415L14.0625 15.1875C14.0625 15.4982 13.8107 15.75 13.5 15.75C13.1893 15.75 12.9375 15.4982 12.9375 15.1875L12.9375 12.8415C12.2821 12.6098 11.8125 11.9847 11.8125 11.25C11.8125 10.5153 12.2821 9.89018 12.9375 9.65852V2.8125C12.9375 2.50184 13.1893 2.25 13.5 2.25ZM13.5 10.6875C13.1893 10.6875 12.9375 10.9393 12.9375 11.25C12.9375 11.5607 13.1893 11.8125 13.5 11.8125C13.8107 11.8125 14.0625 11.5607 14.0625 11.25C14.0625 10.9393 13.8107 10.6875 13.5 10.6875Z",
|
|
@@ -13738,38 +13550,38 @@ var ConfigIcon = React48.forwardRef(function(props, ref) {
|
|
|
13738
13550
|
}));
|
|
13739
13551
|
});
|
|
13740
13552
|
// src/components/icons/solid/CaretDownIcon.tsx
|
|
13741
|
-
var
|
|
13742
|
-
var
|
|
13743
|
-
var CaretDownIcon =
|
|
13744
|
-
return /* @__PURE__ */ (0,
|
|
13745
|
-
children: /* @__PURE__ */ (0,
|
|
13553
|
+
var React48 = __toESM(require("react"), 1);
|
|
13554
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
13555
|
+
var CaretDownIcon = React48.forwardRef(function(props, ref) {
|
|
13556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13557
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("svg", {
|
|
13746
13558
|
ref: ref,
|
|
13747
13559
|
className: "w-full h-full",
|
|
13748
13560
|
viewBox: "0 0 24 24",
|
|
13749
13561
|
fill: "currentColor",
|
|
13750
13562
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13751
|
-
children: /* @__PURE__ */ (0,
|
|
13563
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("path", {
|
|
13752
13564
|
d: "M13.5119 17.7818C12.7143 18.7028 11.2857 18.7028 10.4881 17.7818L2.74159 8.83689C1.61984 7.54161 2.53995 5.52759 4.25345 5.52759L19.7466 5.52759C21.4601 5.52759 22.3802 7.54161 21.2584 8.8369L13.5119 17.7818Z"
|
|
13753
13565
|
})
|
|
13754
13566
|
})
|
|
13755
13567
|
}));
|
|
13756
13568
|
});
|
|
13757
13569
|
// src/components/icons/solid/CodeIcon.tsx
|
|
13758
|
-
var
|
|
13759
|
-
var
|
|
13760
|
-
var CodeIcon =
|
|
13761
|
-
return /* @__PURE__ */ (0,
|
|
13762
|
-
children: /* @__PURE__ */ (0,
|
|
13570
|
+
var React49 = __toESM(require("react"), 1);
|
|
13571
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
13572
|
+
var CodeIcon = React49.forwardRef(function(props, ref) {
|
|
13573
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13574
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("svg", {
|
|
13763
13575
|
ref: ref,
|
|
13764
13576
|
className: "w-full h-full",
|
|
13765
13577
|
viewBox: "0 0 24 24",
|
|
13766
13578
|
fill: "currentColor",
|
|
13767
13579
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13768
13580
|
children: [
|
|
13769
|
-
/* @__PURE__ */ (0,
|
|
13581
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", {
|
|
13770
13582
|
d: "M15.3995 7.375C15.6066 7.01628 15.4837 6.55759 15.125 6.35048C14.7663 6.14337 14.3076 6.26628 14.1005 6.625L8.35048 16.5843C8.14337 16.943 8.26628 17.4017 8.625 17.6088C8.98372 17.8159 9.44241 17.693 9.64952 17.3343L15.3995 7.375Z"
|
|
13771
13583
|
}),
|
|
13772
|
-
/* @__PURE__ */ (0,
|
|
13584
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", {
|
|
13773
13585
|
fillRule: "evenodd",
|
|
13774
13586
|
clipRule: "evenodd",
|
|
13775
13587
|
d: "M6 3C4.34315 3 3 4.34315 3 6V18C3 19.6569 4.34315 21 6 21H18C19.6569 21 21 19.6569 21 18V6C21 4.34315 19.6569 3 18 3H6ZM4.5 6C4.5 5.17157 5.17157 4.5 6 4.5H18C18.8284 4.5 19.5 5.17157 19.5 6V18C19.5 18.8284 18.8284 19.5 18 19.5H6C5.17157 19.5 4.5 18.8284 4.5 18V6Z"
|
|
@@ -13779,17 +13591,17 @@ var CodeIcon = React50.forwardRef(function(props, ref) {
|
|
|
13779
13591
|
}));
|
|
13780
13592
|
});
|
|
13781
13593
|
// src/components/icons/solid/DragIcon.tsx
|
|
13782
|
-
var
|
|
13783
|
-
var
|
|
13784
|
-
var DragIcon =
|
|
13785
|
-
return /* @__PURE__ */ (0,
|
|
13786
|
-
children: /* @__PURE__ */ (0,
|
|
13594
|
+
var React50 = __toESM(require("react"), 1);
|
|
13595
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
13596
|
+
var DragIcon = React50.forwardRef(function(props, ref) {
|
|
13597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13598
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("svg", {
|
|
13787
13599
|
ref: ref,
|
|
13788
13600
|
className: "w-full h-full",
|
|
13789
13601
|
viewBox: "0 0 24 24",
|
|
13790
13602
|
fill: "currentColor",
|
|
13791
13603
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13792
|
-
children: /* @__PURE__ */ (0,
|
|
13604
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", {
|
|
13793
13605
|
fillRule: "evenodd",
|
|
13794
13606
|
clipRule: "evenodd",
|
|
13795
13607
|
d: "M7.5 5C7.5 4.17157 8.17157 3.5 9 3.5C9.82843 3.5 10.5 4.17157 10.5 5C10.5 5.82843 9.82843 6.5 9 6.5C8.17157 6.5 7.5 5.82843 7.5 5ZM13.5 5C13.5 4.17157 14.1716 3.5 15 3.5C15.8284 3.5 16.5 4.17157 16.5 5C16.5 5.82843 15.8284 6.5 15 6.5C14.1716 6.5 13.5 5.82843 13.5 5ZM7.5 12C7.5 11.1716 8.17157 10.5 9 10.5C9.82843 10.5 10.5 11.1716 10.5 12C10.5 12.8284 9.82843 13.5 9 13.5C8.17157 13.5 7.5 12.8284 7.5 12ZM13.5 12C13.5 11.1716 14.1716 10.5 15 10.5C15.8284 10.5 16.5 11.1716 16.5 12C16.5 12.8284 15.8284 13.5 15 13.5C14.1716 13.5 13.5 12.8284 13.5 12ZM7.5 19C7.5 18.1716 8.17157 17.5 9 17.5C9.82843 17.5 10.5 18.1716 10.5 19C10.5 19.8284 9.82843 20.5 9 20.5C8.17157 20.5 7.5 19.8284 7.5 19ZM13.5 19C13.5 18.1716 14.1716 17.5 15 17.5C15.8284 17.5 16.5 18.1716 16.5 19C16.5 19.8284 15.8284 20.5 15 20.5C14.1716 20.5 13.5 19.8284 13.5 19Z"
|
|
@@ -13798,22 +13610,22 @@ var DragIcon = React51.forwardRef(function(props, ref) {
|
|
|
13798
13610
|
}));
|
|
13799
13611
|
});
|
|
13800
13612
|
// src/components/icons/solid/PhoneIcon.tsx
|
|
13801
|
-
var
|
|
13802
|
-
var
|
|
13803
|
-
var PhoneIcon =
|
|
13804
|
-
return /* @__PURE__ */ (0,
|
|
13805
|
-
children: /* @__PURE__ */ (0,
|
|
13613
|
+
var React51 = __toESM(require("react"), 1);
|
|
13614
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
13615
|
+
var PhoneIcon = React51.forwardRef(function(props, ref) {
|
|
13616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13617
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("svg", {
|
|
13806
13618
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13807
13619
|
width: "20",
|
|
13808
13620
|
height: "20",
|
|
13809
13621
|
viewBox: "0 0 20 20",
|
|
13810
13622
|
fill: "none",
|
|
13811
13623
|
children: [
|
|
13812
|
-
/* @__PURE__ */ (0,
|
|
13624
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", {
|
|
13813
13625
|
d: "M8.75 15.625C8.40482 15.625 8.125 15.9048 8.125 16.25C8.125 16.5952 8.40482 16.875 8.75 16.875H11.25C11.5952 16.875 11.875 16.5952 11.875 16.25C11.875 15.9048 11.5952 15.625 11.25 15.625H8.75Z",
|
|
13814
13626
|
fill: "#3E5CFA"
|
|
13815
13627
|
}),
|
|
13816
|
-
/* @__PURE__ */ (0,
|
|
13628
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", {
|
|
13817
13629
|
fillRule: "evenodd",
|
|
13818
13630
|
clipRule: "evenodd",
|
|
13819
13631
|
d: "M7.1875 0.625C5.6342 0.625 4.375 1.8842 4.375 3.4375V16.5625C4.375 18.1158 5.6342 19.375 7.1875 19.375H12.8125C14.3658 19.375 15.625 18.1158 15.625 16.5625V3.4375C15.625 1.8842 14.3658 0.625 12.8125 0.625H7.1875ZM6.25 3.4375C6.25 2.91973 6.66973 2.5 7.1875 2.5H8.125V2.8125C8.125 3.33027 8.54473 3.75 9.0625 3.75H10.9375C11.4553 3.75 11.875 3.33027 11.875 2.8125V2.5H12.8125C13.3303 2.5 13.75 2.91973 13.75 3.4375V16.5625C13.75 17.0803 13.3303 17.5 12.8125 17.5H7.1875C6.66973 17.5 6.25 17.0803 6.25 16.5625V3.4375Z",
|
|
@@ -13824,17 +13636,17 @@ var PhoneIcon = React52.forwardRef(function(props, ref) {
|
|
|
13824
13636
|
}));
|
|
13825
13637
|
});
|
|
13826
13638
|
// src/components/icons/solid/RectangleGroupIcon.tsx
|
|
13827
|
-
var
|
|
13828
|
-
var
|
|
13829
|
-
var RectangleGroupIcon =
|
|
13830
|
-
return /* @__PURE__ */ (0,
|
|
13831
|
-
children: /* @__PURE__ */ (0,
|
|
13639
|
+
var React52 = __toESM(require("react"), 1);
|
|
13640
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
13641
|
+
var RectangleGroupIcon = React52.forwardRef(function(props, ref) {
|
|
13642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13643
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("svg", {
|
|
13832
13644
|
ref: ref,
|
|
13833
13645
|
className: "w-full h-full",
|
|
13834
13646
|
viewBox: "0 0 24 24",
|
|
13835
13647
|
fill: "currentColor",
|
|
13836
13648
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13837
|
-
children: /* @__PURE__ */ (0,
|
|
13649
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", {
|
|
13838
13650
|
fillRule: "evenodd",
|
|
13839
13651
|
clipRule: "evenodd",
|
|
13840
13652
|
d: "M1.5 7.125C1.5 6.08947 2.33947 5.25 3.375 5.25H9.375C10.4105 5.25 11.25 6.08947 11.25 7.125V10.875C11.25 11.9105 10.4105 12.75 9.375 12.75H3.375C2.33947 12.75 1.5 11.9105 1.5 10.875V7.125ZM13.5 8.625C13.5 7.58947 14.3395 6.75 15.375 6.75H20.625C21.6605 6.75 22.5 7.58947 22.5 8.625V16.875C22.5 17.9105 21.6605 18.75 20.625 18.75H15.375C14.3395 18.75 13.5 17.9105 13.5 16.875V8.625ZM3 16.125C3 15.0895 3.83947 14.25 4.875 14.25H10.125C11.1605 14.25 12 15.0895 12 16.125V18.375C12 19.4105 11.1605 20.25 10.125 20.25H4.875C3.83947 20.25 3 19.4105 3 18.375V16.125Z"
|
|
@@ -13971,6 +13783,7 @@ var RectangleGroupIcon = React53.forwardRef(function(props, ref) {
|
|
|
13971
13783
|
MenubarSubTrigger: MenubarSubTrigger,
|
|
13972
13784
|
MenubarTrigger: MenubarTrigger,
|
|
13973
13785
|
Message: Message,
|
|
13786
|
+
MiddleBar: MiddleBar,
|
|
13974
13787
|
Modal: Modal,
|
|
13975
13788
|
ModalBody: ModalBody,
|
|
13976
13789
|
ModalContent: ModalContent,
|
|
@@ -13979,7 +13792,6 @@ var RectangleGroupIcon = React53.forwardRef(function(props, ref) {
|
|
|
13979
13792
|
ModalOverlay: ModalOverlay,
|
|
13980
13793
|
ModalRoot: ModalRoot,
|
|
13981
13794
|
ModalTitle: ModalTitle,
|
|
13982
|
-
NavigationBar: NavigationBar,
|
|
13983
13795
|
NumberInput: NumberInput,
|
|
13984
13796
|
Paragraph: Paragraph,
|
|
13985
13797
|
PencilSquareIcon: PencilSquareIcon,
|
|
@@ -13997,7 +13809,6 @@ var RectangleGroupIcon = React53.forwardRef(function(props, ref) {
|
|
|
13997
13809
|
ScrollArea: ScrollArea,
|
|
13998
13810
|
ScrollBar: ScrollBar,
|
|
13999
13811
|
SearchBar: SearchBar,
|
|
14000
|
-
SecondaryNavigationBar: SecondaryNavigationBar,
|
|
14001
13812
|
Select: Select,
|
|
14002
13813
|
SelectContent: SelectContent,
|
|
14003
13814
|
SelectGroup: SelectGroup,
|
|
@@ -14051,6 +13862,7 @@ var RectangleGroupIcon = React53.forwardRef(function(props, ref) {
|
|
|
14051
13862
|
ToggleGroupItem: ToggleGroupItem,
|
|
14052
13863
|
Tooltip: Tooltip,
|
|
14053
13864
|
TooltipProvider: TooltipProvider,
|
|
13865
|
+
TopNavigationBar: TopNavigationBar,
|
|
14054
13866
|
WindowIcon: WindowIcon,
|
|
14055
13867
|
buttonVariants: buttonVariants,
|
|
14056
13868
|
dangerouText: dangerouText,
|