myshell-react-lib 0.1.34 → 0.1.35
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 +377 -544
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -18
- package/dist/index.d.ts +25 -18
- package/dist/index.js +371 -538
- package/dist/index.js.map +1 -1
- package/dist/styles/components-dark.scss +2 -2
- package/dist/styles/components-light.scss +1 -1
- 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 _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, children = param.children, _param_hasBackground = param.hasBackground, hasBackground = _param_hasBackground === void 0 ? true : _param_hasBackground, avatar = param.avatar, onSearchChange = param.onSearchChange, 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,115 +11485,75 @@ 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 && (!showSearchBar || !isMobile2) && (!(avatar === null || avatar === void 0 ? void 0 : avatar.logo) || !isMobile2) && /* @__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
|
-
}) : /* @__PURE__ */ (0,
|
|
11545
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", {
|
|
11546
|
+
className: "w-[76px]"
|
|
11547
|
+
})
|
|
11548
|
+
}),
|
|
11549
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", {
|
|
11550
|
+
className: "flex-1 flex justify-end items-center",
|
|
11551
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", {
|
|
11552
|
+
className: "flex items-center space-x-3",
|
|
11704
11553
|
children: [
|
|
11705
|
-
|
|
11706
|
-
"aria-label": clearText || "Clear Filters",
|
|
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", {
|
|
11554
|
+
showSearchBar && (!isMobile2 && pageType === 1 || pageType === 2) && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", {
|
|
11726
11555
|
className: "relative w-full md:w-60",
|
|
11727
|
-
children: /* @__PURE__ */ (0,
|
|
11556
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SearchBar, {
|
|
11728
11557
|
color: "gray",
|
|
11729
11558
|
size: "xs",
|
|
11730
11559
|
searchValue: searchValue,
|
|
@@ -11734,32 +11563,34 @@ function SecondaryNavigationBar(param) {
|
|
|
11734
11563
|
}
|
|
11735
11564
|
})
|
|
11736
11565
|
}),
|
|
11737
|
-
|
|
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
|
-
})
|
|
11566
|
+
children
|
|
11748
11567
|
]
|
|
11749
11568
|
})
|
|
11750
11569
|
})
|
|
11570
|
+
]
|
|
11571
|
+
}),
|
|
11572
|
+
showSearchBar && pageType === 1 && isMobile2 && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", {
|
|
11573
|
+
className: "relative w-full h-13 py-2",
|
|
11574
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SearchBar, {
|
|
11575
|
+
color: "gray",
|
|
11576
|
+
size: "xs",
|
|
11577
|
+
searchValue: searchValue,
|
|
11578
|
+
placeholder: searchPlaceholder || "Search",
|
|
11579
|
+
onSearchChange: function(value1) {
|
|
11580
|
+
onSearchChange && onSearchChange(value1);
|
|
11581
|
+
}
|
|
11751
11582
|
})
|
|
11752
|
-
|
|
11753
|
-
|
|
11583
|
+
})
|
|
11584
|
+
]
|
|
11754
11585
|
});
|
|
11755
11586
|
}
|
|
11756
11587
|
// src/components/select.tsx
|
|
11757
11588
|
var import_outline2 = require("@heroicons/react/24/outline");
|
|
11758
11589
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
11759
|
-
var
|
|
11760
|
-
var
|
|
11761
|
-
var
|
|
11762
|
-
var Select =
|
|
11590
|
+
var import_lucide_react10 = require("lucide-react");
|
|
11591
|
+
var React31 = __toESM(require("react"), 1);
|
|
11592
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
11593
|
+
var Select = React31.forwardRef(function(_param, ref) {
|
|
11763
11594
|
var children = _param.children, placeholder = _param.placeholder, options = _param.options, triggerClassName = _param.triggerClassName, props = _object_without_properties(_param, [
|
|
11764
11595
|
"children",
|
|
11765
11596
|
"placeholder",
|
|
@@ -11770,26 +11601,26 @@ var Select = React32.forwardRef(function(_param, ref) {
|
|
|
11770
11601
|
var icon = options === null || options === void 0 ? void 0 : (_options_find = options.find(function(item) {
|
|
11771
11602
|
return item.value === props.value;
|
|
11772
11603
|
})) === null || _options_find === void 0 ? void 0 : _options_find.icon;
|
|
11773
|
-
return /* @__PURE__ */ (0,
|
|
11774
|
-
children: Array.isArray(options) && options.length ? /* @__PURE__ */ (0,
|
|
11604
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Root, _object_spread_props(_object_spread({}, props), {
|
|
11605
|
+
children: Array.isArray(options) && options.length ? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, {
|
|
11775
11606
|
children: [
|
|
11776
|
-
/* @__PURE__ */ (0,
|
|
11607
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectTrigger, {
|
|
11777
11608
|
className: cn(triggerClassName),
|
|
11778
|
-
children: /* @__PURE__ */ (0,
|
|
11609
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", {
|
|
11779
11610
|
className: "flex items-center",
|
|
11780
11611
|
children: [
|
|
11781
|
-
/* @__PURE__ */ (0,
|
|
11612
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectIcon, {
|
|
11782
11613
|
icon: icon
|
|
11783
11614
|
}),
|
|
11784
|
-
/* @__PURE__ */ (0,
|
|
11615
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectValue, {
|
|
11785
11616
|
placeholder: placeholder
|
|
11786
11617
|
})
|
|
11787
11618
|
]
|
|
11788
11619
|
})
|
|
11789
11620
|
}),
|
|
11790
|
-
/* @__PURE__ */ (0,
|
|
11621
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectContent, {
|
|
11791
11622
|
children: options.map(function(item, i) {
|
|
11792
|
-
return /* @__PURE__ */ (0,
|
|
11623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectItem, _object_spread_props(_object_spread({}, item), {
|
|
11793
11624
|
children: item.label
|
|
11794
11625
|
}), "".concat(item.value, "_").concat(i));
|
|
11795
11626
|
})
|
|
@@ -11800,20 +11631,20 @@ var Select = React32.forwardRef(function(_param, ref) {
|
|
|
11800
11631
|
});
|
|
11801
11632
|
var SelectGroup = SelectPrimitive.Group;
|
|
11802
11633
|
var SelectValue = SelectPrimitive.Value;
|
|
11803
|
-
var SelectTrigger =
|
|
11634
|
+
var SelectTrigger = React31.forwardRef(function(_param, ref) {
|
|
11804
11635
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
11805
11636
|
"className",
|
|
11806
11637
|
"children"
|
|
11807
11638
|
]);
|
|
11808
|
-
return /* @__PURE__ */ (0,
|
|
11639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(SelectPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
11809
11640
|
ref: ref,
|
|
11810
11641
|
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
11642
|
}, props), {
|
|
11812
11643
|
children: [
|
|
11813
11644
|
children,
|
|
11814
|
-
/* @__PURE__ */ (0,
|
|
11645
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Icon, {
|
|
11815
11646
|
asChild: true,
|
|
11816
|
-
children: /* @__PURE__ */ (0,
|
|
11647
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronDown, {
|
|
11817
11648
|
className: "select-chevron h-5 w-5 text-Colors-Foreground-Subtle duration-200"
|
|
11818
11649
|
})
|
|
11819
11650
|
})
|
|
@@ -11821,47 +11652,47 @@ var SelectTrigger = React32.forwardRef(function(_param, ref) {
|
|
|
11821
11652
|
}));
|
|
11822
11653
|
});
|
|
11823
11654
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
11824
|
-
var SelectScrollUpButton =
|
|
11655
|
+
var SelectScrollUpButton = React31.forwardRef(function(_param, ref) {
|
|
11825
11656
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11826
11657
|
"className"
|
|
11827
11658
|
]);
|
|
11828
|
-
return /* @__PURE__ */ (0,
|
|
11659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.ScrollUpButton, _object_spread_props(_object_spread({
|
|
11829
11660
|
ref: ref,
|
|
11830
11661
|
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
11831
11662
|
}, props), {
|
|
11832
|
-
children: /* @__PURE__ */ (0,
|
|
11663
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronUp, {
|
|
11833
11664
|
className: "h-4 w-4"
|
|
11834
11665
|
})
|
|
11835
11666
|
}));
|
|
11836
11667
|
});
|
|
11837
11668
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
11838
|
-
var SelectScrollDownButton =
|
|
11669
|
+
var SelectScrollDownButton = React31.forwardRef(function(_param, ref) {
|
|
11839
11670
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11840
11671
|
"className"
|
|
11841
11672
|
]);
|
|
11842
|
-
return /* @__PURE__ */ (0,
|
|
11673
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.ScrollDownButton, _object_spread_props(_object_spread({
|
|
11843
11674
|
ref: ref,
|
|
11844
11675
|
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
11845
11676
|
}, props), {
|
|
11846
|
-
children: /* @__PURE__ */ (0,
|
|
11677
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronDown, {
|
|
11847
11678
|
className: "h-4 w-4"
|
|
11848
11679
|
})
|
|
11849
11680
|
}));
|
|
11850
11681
|
});
|
|
11851
11682
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
11852
|
-
var SelectContent =
|
|
11683
|
+
var SelectContent = React31.forwardRef(function(_param, ref) {
|
|
11853
11684
|
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
11685
|
"className",
|
|
11855
11686
|
"children",
|
|
11856
11687
|
"position"
|
|
11857
11688
|
]);
|
|
11858
|
-
return /* @__PURE__ */ (0,
|
|
11859
|
-
children: /* @__PURE__ */ (0,
|
|
11689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Portal, {
|
|
11690
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Content, _object_spread_props(_object_spread({
|
|
11860
11691
|
ref: ref,
|
|
11861
11692
|
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
11693
|
position: position
|
|
11863
11694
|
}, props), {
|
|
11864
|
-
children: /* @__PURE__ */ (0,
|
|
11695
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Viewport, {
|
|
11865
11696
|
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
11697
|
children: children
|
|
11867
11698
|
})
|
|
@@ -11869,11 +11700,11 @@ var SelectContent = React32.forwardRef(function(_param, ref) {
|
|
|
11869
11700
|
});
|
|
11870
11701
|
});
|
|
11871
11702
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
11872
|
-
var SelectLabel =
|
|
11703
|
+
var SelectLabel = React31.forwardRef(function(_param, ref) {
|
|
11873
11704
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11874
11705
|
"className"
|
|
11875
11706
|
]);
|
|
11876
|
-
return /* @__PURE__ */ (0,
|
|
11707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Label, _object_spread({
|
|
11877
11708
|
ref: ref,
|
|
11878
11709
|
className: cn("py-1 px-3 text-sm font-medium text-Colors-Text-Subtler", className)
|
|
11879
11710
|
}, props));
|
|
@@ -11884,55 +11715,55 @@ function SelectIcon(props) {
|
|
|
11884
11715
|
if (!icon) {
|
|
11885
11716
|
return null;
|
|
11886
11717
|
}
|
|
11887
|
-
return /* @__PURE__ */ (0,
|
|
11718
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Icon, {
|
|
11888
11719
|
children: typeof icon === "string" ? // 如果是字符串URL,作为背景图片显示
|
|
11889
|
-
/* @__PURE__ */ (0,
|
|
11720
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", {
|
|
11890
11721
|
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
11722
|
style: {
|
|
11892
11723
|
backgroundImage: "url('".concat(icon, "')")
|
|
11893
11724
|
}
|
|
11894
|
-
}) :
|
|
11895
|
-
/* @__PURE__ */ (0,
|
|
11725
|
+
}) : React31.isValidElement(icon) ? // 如果是React元素,直接渲染
|
|
11726
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", {
|
|
11896
11727
|
className: cn("mr-1.5 w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default"),
|
|
11897
11728
|
children: icon
|
|
11898
11729
|
}) : // 如果是组件类型,创建元素
|
|
11899
|
-
/* @__PURE__ */ (0,
|
|
11730
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", {
|
|
11900
11731
|
className: cn("mr-1.5 w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default"),
|
|
11901
|
-
children:
|
|
11732
|
+
children: React31.createElement(icon, {
|
|
11902
11733
|
className: cn("w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default")
|
|
11903
11734
|
})
|
|
11904
11735
|
})
|
|
11905
11736
|
});
|
|
11906
11737
|
}
|
|
11907
11738
|
SelectIcon.displayName = SelectPrimitive.Icon.displayName;
|
|
11908
|
-
var SelectItem =
|
|
11739
|
+
var SelectItem = React31.forwardRef(function(_param, ref) {
|
|
11909
11740
|
var className = _param.className, children = _param.children, icon = _param.icon, critical = _param.critical, props = _object_without_properties(_param, [
|
|
11910
11741
|
"className",
|
|
11911
11742
|
"children",
|
|
11912
11743
|
"icon",
|
|
11913
11744
|
"critical"
|
|
11914
11745
|
]);
|
|
11915
|
-
return /* @__PURE__ */ (0,
|
|
11746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(SelectPrimitive.Item, _object_spread_props(_object_spread({
|
|
11916
11747
|
ref: ref,
|
|
11917
11748
|
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
11749
|
}, props), {
|
|
11919
11750
|
children: [
|
|
11920
|
-
/* @__PURE__ */ (0,
|
|
11751
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", {
|
|
11921
11752
|
className: "flex items-center grow",
|
|
11922
11753
|
children: [
|
|
11923
|
-
/* @__PURE__ */ (0,
|
|
11754
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectIcon, {
|
|
11924
11755
|
icon: icon,
|
|
11925
11756
|
critical: critical
|
|
11926
11757
|
}),
|
|
11927
|
-
/* @__PURE__ */ (0,
|
|
11758
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.ItemText, {
|
|
11928
11759
|
children: children
|
|
11929
11760
|
})
|
|
11930
11761
|
]
|
|
11931
11762
|
}),
|
|
11932
|
-
/* @__PURE__ */ (0,
|
|
11763
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", {
|
|
11933
11764
|
className: "flex h-4 w-4 items-center justify-center",
|
|
11934
|
-
children: /* @__PURE__ */ (0,
|
|
11935
|
-
children: /* @__PURE__ */ (0,
|
|
11765
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.ItemIndicator, {
|
|
11766
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_outline2.CheckIcon, {
|
|
11936
11767
|
className: "h-4 w-4 text-Colors-Foreground-Subtle stroke-[2px]"
|
|
11937
11768
|
})
|
|
11938
11769
|
})
|
|
@@ -11941,11 +11772,11 @@ var SelectItem = React32.forwardRef(function(_param, ref) {
|
|
|
11941
11772
|
}));
|
|
11942
11773
|
});
|
|
11943
11774
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
11944
|
-
var SelectSeparator =
|
|
11775
|
+
var SelectSeparator = React31.forwardRef(function(_param, ref) {
|
|
11945
11776
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11946
11777
|
"className"
|
|
11947
11778
|
]);
|
|
11948
|
-
return /* @__PURE__ */ (0,
|
|
11779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectPrimitive.Separator, _object_spread({
|
|
11949
11780
|
ref: ref,
|
|
11950
11781
|
className: cn("-mx-1 my-1 h-px bg-border-default", className)
|
|
11951
11782
|
}, props));
|
|
@@ -11954,18 +11785,18 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
|
11954
11785
|
// src/components/sheet.tsx
|
|
11955
11786
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
11956
11787
|
var import_class_variance_authority14 = require("class-variance-authority");
|
|
11957
|
-
var
|
|
11958
|
-
var
|
|
11959
|
-
var
|
|
11788
|
+
var import_lucide_react11 = require("lucide-react");
|
|
11789
|
+
var React32 = __toESM(require("react"), 1);
|
|
11790
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
11960
11791
|
var Sheet = SheetPrimitive.Root;
|
|
11961
11792
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
11962
11793
|
var SheetClose = SheetPrimitive.Close;
|
|
11963
11794
|
var SheetPortal = SheetPrimitive.Portal;
|
|
11964
|
-
var SheetOverlay =
|
|
11795
|
+
var SheetOverlay = React32.forwardRef(function(_param, ref) {
|
|
11965
11796
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11966
11797
|
"className"
|
|
11967
11798
|
]);
|
|
11968
|
-
return /* @__PURE__ */ (0,
|
|
11799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SheetPrimitive.Overlay, _object_spread_props(_object_spread({
|
|
11969
11800
|
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
11801
|
}, props), {
|
|
11971
11802
|
ref: ref
|
|
@@ -11985,16 +11816,16 @@ var sheetVariants = (0, import_class_variance_authority14.cva)("fixed z-50 gap-4
|
|
|
11985
11816
|
side: "right"
|
|
11986
11817
|
}
|
|
11987
11818
|
});
|
|
11988
|
-
var SheetContent =
|
|
11819
|
+
var SheetContent = React32.forwardRef(function(_param, ref) {
|
|
11989
11820
|
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
11821
|
"side",
|
|
11991
11822
|
"className",
|
|
11992
11823
|
"children"
|
|
11993
11824
|
]);
|
|
11994
|
-
return /* @__PURE__ */ (0,
|
|
11825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(SheetPortal, {
|
|
11995
11826
|
children: [
|
|
11996
|
-
/* @__PURE__ */ (0,
|
|
11997
|
-
/* @__PURE__ */ (0,
|
|
11827
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SheetOverlay, {}),
|
|
11828
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(SheetPrimitive.Content, _object_spread_props(_object_spread({
|
|
11998
11829
|
ref: ref,
|
|
11999
11830
|
className: cn(sheetVariants({
|
|
12000
11831
|
side: side
|
|
@@ -12002,13 +11833,13 @@ var SheetContent = React33.forwardRef(function(_param, ref) {
|
|
|
12002
11833
|
}, props), {
|
|
12003
11834
|
children: [
|
|
12004
11835
|
children,
|
|
12005
|
-
/* @__PURE__ */ (0,
|
|
11836
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(SheetPrimitive.Close, {
|
|
12006
11837
|
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
11838
|
children: [
|
|
12008
|
-
/* @__PURE__ */ (0,
|
|
11839
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react11.X, {
|
|
12009
11840
|
className: "h-4 w-4"
|
|
12010
11841
|
}),
|
|
12011
|
-
/* @__PURE__ */ (0,
|
|
11842
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", {
|
|
12012
11843
|
className: "sr-only",
|
|
12013
11844
|
children: "Close"
|
|
12014
11845
|
})
|
|
@@ -12024,7 +11855,7 @@ var SheetHeader = function(_param) {
|
|
|
12024
11855
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12025
11856
|
"className"
|
|
12026
11857
|
]);
|
|
12027
|
-
return /* @__PURE__ */ (0,
|
|
11858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", _object_spread({
|
|
12028
11859
|
className: cn("flex flex-col space-y-2 text-center sm:text-left", className)
|
|
12029
11860
|
}, props));
|
|
12030
11861
|
};
|
|
@@ -12033,65 +11864,65 @@ var SheetFooter = function(_param) {
|
|
|
12033
11864
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12034
11865
|
"className"
|
|
12035
11866
|
]);
|
|
12036
|
-
return /* @__PURE__ */ (0,
|
|
11867
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", _object_spread({
|
|
12037
11868
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
|
|
12038
11869
|
}, props));
|
|
12039
11870
|
};
|
|
12040
11871
|
SheetFooter.displayName = "SheetFooter";
|
|
12041
|
-
var SheetTitle =
|
|
11872
|
+
var SheetTitle = React32.forwardRef(function(_param, ref) {
|
|
12042
11873
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12043
11874
|
"className"
|
|
12044
11875
|
]);
|
|
12045
|
-
return /* @__PURE__ */ (0,
|
|
11876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SheetPrimitive.Title, _object_spread({
|
|
12046
11877
|
ref: ref,
|
|
12047
11878
|
className: cn("text-lg font-semibold text-slate-950 dark:text-slate-50", className)
|
|
12048
11879
|
}, props));
|
|
12049
11880
|
});
|
|
12050
11881
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
12051
|
-
var SheetDescription =
|
|
11882
|
+
var SheetDescription = React32.forwardRef(function(_param, ref) {
|
|
12052
11883
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12053
11884
|
"className"
|
|
12054
11885
|
]);
|
|
12055
|
-
return /* @__PURE__ */ (0,
|
|
11886
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SheetPrimitive.Description, _object_spread({
|
|
12056
11887
|
ref: ref,
|
|
12057
11888
|
className: cn("text-sm text-slate-500 dark:text-slate-400", className)
|
|
12058
11889
|
}, props));
|
|
12059
11890
|
});
|
|
12060
11891
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
12061
11892
|
// src/components/skeleton.tsx
|
|
12062
|
-
var
|
|
11893
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
12063
11894
|
function Skeleton(_param) {
|
|
12064
11895
|
var className = _param.className, _param_animate = _param.animate, animate = _param_animate === void 0 ? true : _param_animate, props = _object_without_properties(_param, [
|
|
12065
11896
|
"className",
|
|
12066
11897
|
"animate"
|
|
12067
11898
|
]);
|
|
12068
|
-
return /* @__PURE__ */ (0,
|
|
11899
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", _object_spread({
|
|
12069
11900
|
className: cn("rounded-sm bg-Colors-Background-Normal-Secondary-Default", className, animate && "animate-pulse")
|
|
12070
11901
|
}, props));
|
|
12071
11902
|
}
|
|
12072
11903
|
// src/components/slider.tsx
|
|
12073
11904
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
|
|
12074
|
-
var
|
|
12075
|
-
var
|
|
12076
|
-
var Slider =
|
|
11905
|
+
var React33 = __toESM(require("react"), 1);
|
|
11906
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
11907
|
+
var Slider = React33.forwardRef(function(_param, ref) {
|
|
12077
11908
|
var className = _param.className, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, props = _object_without_properties(_param, [
|
|
12078
11909
|
"className",
|
|
12079
11910
|
"size"
|
|
12080
11911
|
]);
|
|
12081
|
-
return /* @__PURE__ */ (0,
|
|
11912
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", {
|
|
12082
11913
|
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,
|
|
11914
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
12084
11915
|
ref: ref,
|
|
12085
11916
|
className: cn("relative flex w-full touch-none select-none items-center", className)
|
|
12086
11917
|
}, props), {
|
|
12087
11918
|
children: [
|
|
12088
|
-
/* @__PURE__ */ (0,
|
|
11919
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SliderPrimitive.Track, {
|
|
12089
11920
|
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,
|
|
11921
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SliderPrimitive.Range, {
|
|
12091
11922
|
className: "absolute h-full bg-Colors-Background-Brand-Default data-[disabled]:opacity-30"
|
|
12092
11923
|
})
|
|
12093
11924
|
}),
|
|
12094
|
-
/* @__PURE__ */ (0,
|
|
11925
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SliderPrimitive.Thumb, {
|
|
12095
11926
|
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
11927
|
})
|
|
12097
11928
|
]
|
|
@@ -12099,7 +11930,7 @@ var Slider = React34.forwardRef(function(_param, ref) {
|
|
|
12099
11930
|
});
|
|
12100
11931
|
});
|
|
12101
11932
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
12102
|
-
var SliderSingle =
|
|
11933
|
+
var SliderSingle = React33.forwardRef(function(_param, ref) {
|
|
12103
11934
|
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
11935
|
"className",
|
|
12105
11936
|
"containerClassName",
|
|
@@ -12113,12 +11944,12 @@ var SliderSingle = React34.forwardRef(function(_param, ref) {
|
|
|
12113
11944
|
"onValueCommit",
|
|
12114
11945
|
"settable"
|
|
12115
11946
|
]);
|
|
12116
|
-
return /* @__PURE__ */ (0,
|
|
11947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", {
|
|
12117
11948
|
className: "flex w-full items-center space-x-1.5",
|
|
12118
11949
|
children: [
|
|
12119
|
-
/* @__PURE__ */ (0,
|
|
11950
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", {
|
|
12120
11951
|
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,
|
|
11952
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
12122
11953
|
ref: ref,
|
|
12123
11954
|
className: cn("relative flex w-full touch-none select-none items-center", className),
|
|
12124
11955
|
value: typeof value1 === "number" ? [
|
|
@@ -12135,21 +11966,21 @@ var SliderSingle = React34.forwardRef(function(_param, ref) {
|
|
|
12135
11966
|
}
|
|
12136
11967
|
}, props), {
|
|
12137
11968
|
children: [
|
|
12138
|
-
/* @__PURE__ */ (0,
|
|
11969
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SliderPrimitive.Track, {
|
|
12139
11970
|
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,
|
|
11971
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SliderPrimitive.Range, {
|
|
12141
11972
|
className: cn("absolute h-full bg-Colors-Background-Brand-Default data-[disabled]:opacity-30", rangeClassName)
|
|
12142
11973
|
})
|
|
12143
11974
|
}),
|
|
12144
|
-
/* @__PURE__ */ (0,
|
|
11975
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SliderPrimitive.Thumb, {
|
|
12145
11976
|
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
11977
|
})
|
|
12147
11978
|
]
|
|
12148
11979
|
}))
|
|
12149
11980
|
}),
|
|
12150
|
-
settable && /* @__PURE__ */ (0,
|
|
11981
|
+
settable && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", {
|
|
12151
11982
|
className: "flex-shrink-0 w-14 h-9 flex justify-center items-center rounded-md",
|
|
12152
|
-
children: /* @__PURE__ */ (0,
|
|
11983
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(NumberInput, {
|
|
12153
11984
|
value: value1,
|
|
12154
11985
|
min: props === null || props === void 0 ? void 0 : props.min,
|
|
12155
11986
|
max: props === null || props === void 0 ? void 0 : props.max,
|
|
@@ -12167,8 +11998,8 @@ var SliderSingle = React34.forwardRef(function(_param, ref) {
|
|
|
12167
11998
|
SliderSingle.displayName = "SliderSingle";
|
|
12168
11999
|
// src/components/spinner.tsx
|
|
12169
12000
|
var import_class_variance_authority15 = require("class-variance-authority");
|
|
12170
|
-
var
|
|
12171
|
-
var
|
|
12001
|
+
var import_lucide_react12 = require("lucide-react");
|
|
12002
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
12172
12003
|
var spinnerVariants = (0, import_class_variance_authority15.cva)("animate-spin", {
|
|
12173
12004
|
variants: {
|
|
12174
12005
|
size: {
|
|
@@ -12200,7 +12031,7 @@ var spinnerVariants = (0, import_class_variance_authority15.cva)("animate-spin",
|
|
|
12200
12031
|
});
|
|
12201
12032
|
function Spinner(props) {
|
|
12202
12033
|
var size = props.size, speed = props.speed, color = props.color, className = props.className;
|
|
12203
|
-
return /* @__PURE__ */ (0,
|
|
12034
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react12.Loader2, {
|
|
12204
12035
|
className: cn(spinnerVariants({
|
|
12205
12036
|
size: size,
|
|
12206
12037
|
speed: speed,
|
|
@@ -12211,8 +12042,8 @@ function Spinner(props) {
|
|
|
12211
12042
|
// src/components/switch.tsx
|
|
12212
12043
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
12213
12044
|
var import_class_variance_authority16 = require("class-variance-authority");
|
|
12214
|
-
var
|
|
12215
|
-
var
|
|
12045
|
+
var React34 = __toESM(require("react"), 1);
|
|
12046
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
12216
12047
|
var switchSize = {
|
|
12217
12048
|
sm: "w-7 h-4",
|
|
12218
12049
|
md: "w-[34px] h-5",
|
|
@@ -12294,7 +12125,7 @@ var switchThumbIconVariants = (0, import_class_variance_authority16.cva)("flex i
|
|
|
12294
12125
|
}
|
|
12295
12126
|
}
|
|
12296
12127
|
});
|
|
12297
|
-
var Switch =
|
|
12128
|
+
var Switch = React34.forwardRef(function(_param, ref) {
|
|
12298
12129
|
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
12130
|
"className",
|
|
12300
12131
|
"size",
|
|
@@ -12303,23 +12134,23 @@ var Switch = React35.forwardRef(function(_param, ref) {
|
|
|
12303
12134
|
"vertical",
|
|
12304
12135
|
"icon"
|
|
12305
12136
|
]);
|
|
12306
|
-
var Component = label ? "div" :
|
|
12307
|
-
return /* @__PURE__ */ (0,
|
|
12137
|
+
var Component = label ? "div" : React34.Fragment;
|
|
12138
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Component, {
|
|
12308
12139
|
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
12140
|
children: [
|
|
12310
|
-
/* @__PURE__ */ (0,
|
|
12141
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SwitchPrimitives.Root, _object_spread_props(_object_spread({
|
|
12311
12142
|
className: cn(switchRootVariants({
|
|
12312
12143
|
size: size,
|
|
12313
12144
|
vertical: vertical
|
|
12314
12145
|
}), className, vertical && "flex-col")
|
|
12315
12146
|
}, props), {
|
|
12316
12147
|
ref: ref,
|
|
12317
|
-
children: /* @__PURE__ */ (0,
|
|
12148
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SwitchPrimitives.Thumb, {
|
|
12318
12149
|
className: cn(switchThumbVariants({
|
|
12319
12150
|
size: size,
|
|
12320
12151
|
vertical: vertical
|
|
12321
12152
|
}), "flex items-center justify-center"),
|
|
12322
|
-
children: icon && /* @__PURE__ */ (0,
|
|
12153
|
+
children: icon && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, {
|
|
12323
12154
|
component: icon,
|
|
12324
12155
|
className: switchThumbIconVariants({
|
|
12325
12156
|
size: size
|
|
@@ -12327,7 +12158,7 @@ var Switch = React35.forwardRef(function(_param, ref) {
|
|
|
12327
12158
|
})
|
|
12328
12159
|
})
|
|
12329
12160
|
})),
|
|
12330
|
-
label && /* @__PURE__ */ (0,
|
|
12161
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", {
|
|
12331
12162
|
className: cn("text-sm", labelClassName),
|
|
12332
12163
|
children: label
|
|
12333
12164
|
})
|
|
@@ -12338,8 +12169,8 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
|
12338
12169
|
// src/components/tabs.tsx
|
|
12339
12170
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
12340
12171
|
var import_class_variance_authority17 = require("class-variance-authority");
|
|
12341
|
-
var
|
|
12342
|
-
var
|
|
12172
|
+
var React35 = __toESM(require("react"), 1);
|
|
12173
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
12343
12174
|
var TabsRoot = TabsPrimitive.Tabs;
|
|
12344
12175
|
var TabsList = TabsPrimitive.List;
|
|
12345
12176
|
var TabsTrigger = TabsPrimitive.Trigger;
|
|
@@ -12488,7 +12319,7 @@ var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-fl
|
|
|
12488
12319
|
rounded: "default"
|
|
12489
12320
|
}
|
|
12490
12321
|
});
|
|
12491
|
-
var Tabs2 =
|
|
12322
|
+
var Tabs2 = React35.forwardRef(function(_param, ref) {
|
|
12492
12323
|
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
12324
|
"className",
|
|
12494
12325
|
"listClassName",
|
|
@@ -12499,14 +12330,14 @@ var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
|
12499
12330
|
"rounded",
|
|
12500
12331
|
"items"
|
|
12501
12332
|
]);
|
|
12502
|
-
return /* @__PURE__ */ (0,
|
|
12333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(TabsPrimitive.Root, _object_spread_props(_object_spread({
|
|
12503
12334
|
ref: ref,
|
|
12504
12335
|
className: cn(className)
|
|
12505
12336
|
}, props), {
|
|
12506
12337
|
children: [
|
|
12507
|
-
/* @__PURE__ */ (0,
|
|
12338
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", {
|
|
12508
12339
|
className: "w-full flex justify-start items-center",
|
|
12509
|
-
children: /* @__PURE__ */ (0,
|
|
12340
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TabsPrimitive.List, _object_spread_props(_object_spread({
|
|
12510
12341
|
ref: ref,
|
|
12511
12342
|
className: cn(tabListVariants({
|
|
12512
12343
|
variant: variant,
|
|
@@ -12515,7 +12346,7 @@ var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
|
12515
12346
|
}), listClassName)
|
|
12516
12347
|
}, props), {
|
|
12517
12348
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
12518
|
-
return /* @__PURE__ */ (0,
|
|
12349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Tab, _object_spread({
|
|
12519
12350
|
isLink: isLink,
|
|
12520
12351
|
variant: variant,
|
|
12521
12352
|
size: size,
|
|
@@ -12524,10 +12355,10 @@ var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
|
12524
12355
|
})
|
|
12525
12356
|
}))
|
|
12526
12357
|
}),
|
|
12527
|
-
!isLink && /* @__PURE__ */ (0,
|
|
12358
|
+
!isLink && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", {
|
|
12528
12359
|
className: "w-full",
|
|
12529
12360
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
12530
|
-
return /* @__PURE__ */ (0,
|
|
12361
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TabsContent, {
|
|
12531
12362
|
value: item.value,
|
|
12532
12363
|
className: contentClassName,
|
|
12533
12364
|
children: item.children
|
|
@@ -12538,7 +12369,7 @@ var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
|
12538
12369
|
}));
|
|
12539
12370
|
});
|
|
12540
12371
|
Tabs2.displayName = TabsPrimitive.Root.displayName;
|
|
12541
|
-
var Tab =
|
|
12372
|
+
var Tab = React35.forwardRef(function(_param, ref) {
|
|
12542
12373
|
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
12374
|
"className",
|
|
12544
12375
|
"variant",
|
|
@@ -12553,10 +12384,10 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
12553
12384
|
"rounded",
|
|
12554
12385
|
"onClickCallback"
|
|
12555
12386
|
]);
|
|
12556
|
-
return /* @__PURE__ */ (0,
|
|
12387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Tooltip, _object_spread_props(_object_spread({
|
|
12557
12388
|
triggerClassName: cn("h-full flex justify-center items-center", variant === "underline" ? "w-fit justify-start items-end" : "w-full flex-1")
|
|
12558
12389
|
}, tooltip), {
|
|
12559
|
-
children: /* @__PURE__ */ (0,
|
|
12390
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TabsPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
12560
12391
|
ref: ref,
|
|
12561
12392
|
className: cn("tabtrigger min-w-fit", tabVariants({
|
|
12562
12393
|
variant: variant,
|
|
@@ -12568,7 +12399,7 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
12568
12399
|
e.stopPropagation();
|
|
12569
12400
|
onClickCallback === null || onClickCallback === void 0 ? void 0 : onClickCallback(props.value);
|
|
12570
12401
|
},
|
|
12571
|
-
children: isLink && link ? /* @__PURE__ */ (0,
|
|
12402
|
+
children: isLink && link ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(link_default, {
|
|
12572
12403
|
prefetch: true,
|
|
12573
12404
|
href: link,
|
|
12574
12405
|
className: cn("relative h-full w-full flex justify-center items-center"),
|
|
@@ -12579,28 +12410,28 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
12579
12410
|
},
|
|
12580
12411
|
children: [
|
|
12581
12412
|
label,
|
|
12582
|
-
hasUnRead && /* @__PURE__ */ (0,
|
|
12413
|
+
hasUnRead && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Badge, {
|
|
12583
12414
|
className: "-mt-2.5"
|
|
12584
12415
|
})
|
|
12585
12416
|
]
|
|
12586
|
-
}) : /* @__PURE__ */ (0,
|
|
12417
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", {
|
|
12587
12418
|
className: "relative flex justify-center items-center",
|
|
12588
12419
|
children: [
|
|
12589
|
-
label && /* @__PURE__ */ (0,
|
|
12420
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", {
|
|
12590
12421
|
className: cn("text-inherit"),
|
|
12591
12422
|
children: label
|
|
12592
12423
|
}),
|
|
12593
|
-
icon && /* @__PURE__ */ (0,
|
|
12424
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, {
|
|
12594
12425
|
component: icon,
|
|
12595
12426
|
size: "md",
|
|
12596
12427
|
className: "text-inherit"
|
|
12597
12428
|
}),
|
|
12598
|
-
count2 ? /* @__PURE__ */ (0,
|
|
12429
|
+
count2 ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Text, {
|
|
12599
12430
|
size: "sm",
|
|
12600
12431
|
className: "ml-1 text-Colors-Text-Subtlest",
|
|
12601
12432
|
children: count2
|
|
12602
12433
|
}) : null,
|
|
12603
|
-
hasUnRead && /* @__PURE__ */ (0,
|
|
12434
|
+
hasUnRead && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Badge, {
|
|
12604
12435
|
className: "-mt-2.5"
|
|
12605
12436
|
})
|
|
12606
12437
|
]
|
|
@@ -12609,20 +12440,20 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
12609
12440
|
}));
|
|
12610
12441
|
});
|
|
12611
12442
|
Tab.displayName = TabsPrimitive.Trigger.displayName;
|
|
12612
|
-
var TabsContent =
|
|
12443
|
+
var TabsContent = React35.forwardRef(function(_param, ref) {
|
|
12613
12444
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12614
12445
|
"className"
|
|
12615
12446
|
]);
|
|
12616
|
-
return /* @__PURE__ */ (0,
|
|
12447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TabsPrimitive.Content, _object_spread({
|
|
12617
12448
|
ref: ref,
|
|
12618
12449
|
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
12450
|
}, props));
|
|
12620
12451
|
});
|
|
12621
12452
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
12622
12453
|
// src/components/textarea.tsx
|
|
12623
|
-
var
|
|
12624
|
-
var
|
|
12625
|
-
var Textarea =
|
|
12454
|
+
var React36 = __toESM(require("react"), 1);
|
|
12455
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
12456
|
+
var Textarea = React36.forwardRef(function(_param, ref) {
|
|
12626
12457
|
var className = _param.className, maxLength = _param.maxLength, value1 = _param.value, error = _param.error, maxLengthClassName = _param.maxLengthClassName, props = _object_without_properties(_param, [
|
|
12627
12458
|
"className",
|
|
12628
12459
|
"maxLength",
|
|
@@ -12631,20 +12462,20 @@ var Textarea = React37.forwardRef(function(_param, ref) {
|
|
|
12631
12462
|
"maxLengthClassName"
|
|
12632
12463
|
]);
|
|
12633
12464
|
var _value_toString, _value_toString1;
|
|
12634
|
-
return /* @__PURE__ */ (0,
|
|
12465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", {
|
|
12635
12466
|
children: [
|
|
12636
|
-
/* @__PURE__ */ (0,
|
|
12467
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", {
|
|
12637
12468
|
className: "relative",
|
|
12638
12469
|
children: [
|
|
12639
|
-
/* @__PURE__ */ (0,
|
|
12470
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("textarea", _object_spread({
|
|
12640
12471
|
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
12472
|
ref: ref,
|
|
12642
12473
|
maxLength: maxLength,
|
|
12643
12474
|
value: value1
|
|
12644
12475
|
}, props)),
|
|
12645
|
-
maxLength ? /* @__PURE__ */ (0,
|
|
12476
|
+
maxLength ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", {
|
|
12646
12477
|
className: cn("absolute text-right bottom-5 right-4 border-Colors-Border-Default", maxLengthClassName),
|
|
12647
|
-
children: /* @__PURE__ */ (0,
|
|
12478
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Text, {
|
|
12648
12479
|
size: "sm",
|
|
12649
12480
|
color: "subtlest",
|
|
12650
12481
|
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 +12483,9 @@ var Textarea = React37.forwardRef(function(_param, ref) {
|
|
|
12652
12483
|
}) : null
|
|
12653
12484
|
]
|
|
12654
12485
|
}),
|
|
12655
|
-
error && /* @__PURE__ */ (0,
|
|
12486
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", {
|
|
12656
12487
|
className: "w-full",
|
|
12657
|
-
children: /* @__PURE__ */ (0,
|
|
12488
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Text, {
|
|
12658
12489
|
className: "text-wrap",
|
|
12659
12490
|
size: "sm",
|
|
12660
12491
|
weight: "regular",
|
|
@@ -12669,8 +12500,8 @@ Textarea.displayName = "Textarea";
|
|
|
12669
12500
|
// src/components/toggle.tsx
|
|
12670
12501
|
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
|
|
12671
12502
|
var import_class_variance_authority18 = require("class-variance-authority");
|
|
12672
|
-
var
|
|
12673
|
-
var
|
|
12503
|
+
var React37 = __toESM(require("react"), 1);
|
|
12504
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
12674
12505
|
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
12506
|
variants: {
|
|
12676
12507
|
variant: {
|
|
@@ -12689,13 +12520,13 @@ var toggleVariants = (0, import_class_variance_authority18.cva)("inline-flex ite
|
|
|
12689
12520
|
size: "default"
|
|
12690
12521
|
}
|
|
12691
12522
|
});
|
|
12692
|
-
var Toggle =
|
|
12523
|
+
var Toggle = React37.forwardRef(function(_param, ref) {
|
|
12693
12524
|
var className = _param.className, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
|
|
12694
12525
|
"className",
|
|
12695
12526
|
"variant",
|
|
12696
12527
|
"size"
|
|
12697
12528
|
]);
|
|
12698
|
-
return /* @__PURE__ */ (0,
|
|
12529
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TogglePrimitive.Root, _object_spread({
|
|
12699
12530
|
ref: ref,
|
|
12700
12531
|
className: cn(toggleVariants({
|
|
12701
12532
|
variant: variant,
|
|
@@ -12707,24 +12538,24 @@ var Toggle = React38.forwardRef(function(_param, ref) {
|
|
|
12707
12538
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
12708
12539
|
// src/components/toggle-group.tsx
|
|
12709
12540
|
var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
|
|
12710
|
-
var
|
|
12711
|
-
var
|
|
12712
|
-
var ToggleGroupContext =
|
|
12541
|
+
var React38 = __toESM(require("react"), 1);
|
|
12542
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
12543
|
+
var ToggleGroupContext = React38.createContext({
|
|
12713
12544
|
size: "default",
|
|
12714
12545
|
variant: "default"
|
|
12715
12546
|
});
|
|
12716
|
-
var ToggleGroup =
|
|
12547
|
+
var ToggleGroup = React38.forwardRef(function(_param, ref) {
|
|
12717
12548
|
var className = _param.className, variant = _param.variant, size = _param.size, children = _param.children, props = _object_without_properties(_param, [
|
|
12718
12549
|
"className",
|
|
12719
12550
|
"variant",
|
|
12720
12551
|
"size",
|
|
12721
12552
|
"children"
|
|
12722
12553
|
]);
|
|
12723
|
-
return /* @__PURE__ */ (0,
|
|
12554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ToggleGroupPrimitive.Root, _object_spread_props(_object_spread({
|
|
12724
12555
|
ref: ref,
|
|
12725
12556
|
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
12557
|
}, props), {
|
|
12727
|
-
children: /* @__PURE__ */ (0,
|
|
12558
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ToggleGroupContext.Provider, {
|
|
12728
12559
|
value: {
|
|
12729
12560
|
variant: variant,
|
|
12730
12561
|
size: size
|
|
@@ -12734,15 +12565,15 @@ var ToggleGroup = React39.forwardRef(function(_param, ref) {
|
|
|
12734
12565
|
}));
|
|
12735
12566
|
});
|
|
12736
12567
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
12737
|
-
var ToggleGroupItem =
|
|
12568
|
+
var ToggleGroupItem = React38.forwardRef(function(_param, ref) {
|
|
12738
12569
|
var className = _param.className, children = _param.children, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
|
|
12739
12570
|
"className",
|
|
12740
12571
|
"children",
|
|
12741
12572
|
"variant",
|
|
12742
12573
|
"size"
|
|
12743
12574
|
]);
|
|
12744
|
-
var context =
|
|
12745
|
-
return /* @__PURE__ */ (0,
|
|
12575
|
+
var context = React38.useContext(ToggleGroupContext);
|
|
12576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ToggleGroupPrimitive.Item, _object_spread_props(_object_spread({
|
|
12746
12577
|
ref: ref,
|
|
12747
12578
|
className: cn(toggleVariants({
|
|
12748
12579
|
variant: context.variant || variant,
|
|
@@ -12755,7 +12586,7 @@ var ToggleGroupItem = React39.forwardRef(function(_param, ref) {
|
|
|
12755
12586
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
12756
12587
|
// src/components/chips.tsx
|
|
12757
12588
|
var import_class_variance_authority19 = require("class-variance-authority");
|
|
12758
|
-
var
|
|
12589
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
12759
12590
|
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
12591
|
variants: {
|
|
12761
12592
|
variant: {
|
|
@@ -12774,7 +12605,7 @@ var chipsVariants = (0, import_class_variance_authority19.cva)('min-w-10 flex it
|
|
|
12774
12605
|
});
|
|
12775
12606
|
function Chips(props) {
|
|
12776
12607
|
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,
|
|
12608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", {
|
|
12778
12609
|
"data-disabled": disabled,
|
|
12779
12610
|
"data-selected": selected,
|
|
12780
12611
|
className: cn(chipsVariants({
|
|
@@ -12783,7 +12614,7 @@ function Chips(props) {
|
|
|
12783
12614
|
}), className),
|
|
12784
12615
|
children: [
|
|
12785
12616
|
label,
|
|
12786
|
-
count2 && count2 > 0 ? /* @__PURE__ */ (0,
|
|
12617
|
+
count2 && count2 > 0 ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", {
|
|
12787
12618
|
className: "h-full pt-0.5 ml-1 font-medium text-xs leading-[1.3]",
|
|
12788
12619
|
children: count2
|
|
12789
12620
|
}) : null
|
|
@@ -12793,9 +12624,9 @@ function Chips(props) {
|
|
|
12793
12624
|
// src/components/toast/toast.tsx
|
|
12794
12625
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"), 1);
|
|
12795
12626
|
var import_class_variance_authority20 = require("class-variance-authority");
|
|
12796
|
-
var
|
|
12627
|
+
var React39 = __toESM(require("react"), 1);
|
|
12797
12628
|
var import_XMarkIcon3 = __toESM(require("@heroicons/react/24/outline/esm/XMarkIcon"), 1);
|
|
12798
|
-
var
|
|
12629
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
12799
12630
|
var ToastProvider = ToastPrimitives.Provider;
|
|
12800
12631
|
var viewportPositionVariants = (0, import_class_variance_authority20.cva)("fixed z-[1000001] flex max-h-screen w-full p-0 gap-2", {
|
|
12801
12632
|
variants: {
|
|
@@ -12814,12 +12645,12 @@ var viewportPositionVariants = (0, import_class_variance_authority20.cva)("fixed
|
|
|
12814
12645
|
position: "top-right"
|
|
12815
12646
|
}
|
|
12816
12647
|
});
|
|
12817
|
-
var ToastViewport =
|
|
12648
|
+
var ToastViewport = React39.forwardRef(function(_param, ref) {
|
|
12818
12649
|
var className = _param.className, position = _param.position, props = _object_without_properties(_param, [
|
|
12819
12650
|
"className",
|
|
12820
12651
|
"position"
|
|
12821
12652
|
]);
|
|
12822
|
-
return /* @__PURE__ */ (0,
|
|
12653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitives.Viewport, _object_spread({
|
|
12823
12654
|
ref: ref,
|
|
12824
12655
|
className: cn(viewportPositionVariants({
|
|
12825
12656
|
position: position
|
|
@@ -12851,13 +12682,13 @@ var toastVariants = (0, import_class_variance_authority20.cva)("group pointer-ev
|
|
|
12851
12682
|
position: "top-right"
|
|
12852
12683
|
}
|
|
12853
12684
|
});
|
|
12854
|
-
var Toast =
|
|
12685
|
+
var Toast = React39.forwardRef(function(_param, ref) {
|
|
12855
12686
|
var className = _param.className, variant = _param.variant, position = _param.position, props = _object_without_properties(_param, [
|
|
12856
12687
|
"className",
|
|
12857
12688
|
"variant",
|
|
12858
12689
|
"position"
|
|
12859
12690
|
]);
|
|
12860
|
-
return /* @__PURE__ */ (0,
|
|
12691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitives.Root, _object_spread({
|
|
12861
12692
|
ref: ref,
|
|
12862
12693
|
className: cn(toastVariants({
|
|
12863
12694
|
variant: variant,
|
|
@@ -12867,46 +12698,46 @@ var Toast = React40.forwardRef(function(_param, ref) {
|
|
|
12867
12698
|
}, props));
|
|
12868
12699
|
});
|
|
12869
12700
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
12870
|
-
var ToastAction =
|
|
12701
|
+
var ToastAction = React39.forwardRef(function(_param, ref) {
|
|
12871
12702
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12872
12703
|
"className"
|
|
12873
12704
|
]);
|
|
12874
|
-
return /* @__PURE__ */ (0,
|
|
12705
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitives.Action, _object_spread({
|
|
12875
12706
|
ref: ref,
|
|
12876
12707
|
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
12708
|
}, props));
|
|
12878
12709
|
});
|
|
12879
12710
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
12880
|
-
var ToastClose =
|
|
12711
|
+
var ToastClose = React39.forwardRef(function(_param, ref) {
|
|
12881
12712
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12882
12713
|
"className"
|
|
12883
12714
|
]);
|
|
12884
|
-
return /* @__PURE__ */ (0,
|
|
12715
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitives.Close, _object_spread_props(_object_spread({
|
|
12885
12716
|
ref: ref,
|
|
12886
12717
|
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
12718
|
"toast-close": ""
|
|
12888
12719
|
}, props), {
|
|
12889
|
-
children: /* @__PURE__ */ (0,
|
|
12720
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_XMarkIcon3.default, {
|
|
12890
12721
|
className: "h-5 w-5"
|
|
12891
12722
|
})
|
|
12892
12723
|
}));
|
|
12893
12724
|
});
|
|
12894
12725
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
12895
|
-
var ToastTitle =
|
|
12726
|
+
var ToastTitle = React39.forwardRef(function(_param, ref) {
|
|
12896
12727
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12897
12728
|
"className"
|
|
12898
12729
|
]);
|
|
12899
|
-
return /* @__PURE__ */ (0,
|
|
12730
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitives.Title, _object_spread({
|
|
12900
12731
|
ref: ref,
|
|
12901
12732
|
className: cn("text-sm font-semibold", className)
|
|
12902
12733
|
}, props));
|
|
12903
12734
|
});
|
|
12904
12735
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
12905
|
-
var ToastDescription =
|
|
12736
|
+
var ToastDescription = React39.forwardRef(function(_param, ref) {
|
|
12906
12737
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12907
12738
|
"className"
|
|
12908
12739
|
]);
|
|
12909
|
-
return /* @__PURE__ */ (0,
|
|
12740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitives.Description, _object_spread({
|
|
12910
12741
|
ref: ref,
|
|
12911
12742
|
className: cn("text-sm opacity-90", className)
|
|
12912
12743
|
}, props));
|
|
@@ -12917,8 +12748,8 @@ var import_CheckCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/C
|
|
|
12917
12748
|
var import_InformationCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/InformationCircleIcon"), 1);
|
|
12918
12749
|
var import_XCircleIcon2 = __toESM(require("@heroicons/react/24/outline/esm/XCircleIcon"), 1);
|
|
12919
12750
|
// src/components/toast/use-toast.tsx
|
|
12920
|
-
var
|
|
12921
|
-
var
|
|
12751
|
+
var React40 = __toESM(require("react"), 1);
|
|
12752
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
12922
12753
|
var TOAST_LIMIT = 8;
|
|
12923
12754
|
var TOAST_REMOVE_DELAY = 1e3;
|
|
12924
12755
|
var count = 0;
|
|
@@ -13021,10 +12852,10 @@ function toast(_param) {
|
|
|
13021
12852
|
toast: _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, props), {
|
|
13022
12853
|
position: position
|
|
13023
12854
|
}), actions && {
|
|
13024
|
-
action: /* @__PURE__ */ (0,
|
|
12855
|
+
action: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", {
|
|
13025
12856
|
className: "flex justify-start items-center gap-2",
|
|
13026
12857
|
children: [
|
|
13027
|
-
(actions === null || actions === void 0 ? void 0 : actions.dismissText) && /* @__PURE__ */ (0,
|
|
12858
|
+
(actions === null || actions === void 0 ? void 0 : actions.dismissText) && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, {
|
|
13028
12859
|
size: "sm",
|
|
13029
12860
|
weight: "medium",
|
|
13030
12861
|
color: "brand",
|
|
@@ -13034,13 +12865,13 @@ function toast(_param) {
|
|
|
13034
12865
|
},
|
|
13035
12866
|
children: actions === null || actions === void 0 ? void 0 : actions.dismissText
|
|
13036
12867
|
}),
|
|
13037
|
-
(actions === null || actions === void 0 ? void 0 : actions.view) && actions.viewUrl && /* @__PURE__ */ (0,
|
|
12868
|
+
(actions === null || actions === void 0 ? void 0 : actions.view) && actions.viewUrl && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(link_default, {
|
|
13038
12869
|
href: actions.viewUrl,
|
|
13039
12870
|
target: "_blank",
|
|
13040
12871
|
rel: "noreferrer noopener",
|
|
13041
|
-
children: /* @__PURE__ */ (0,
|
|
12872
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", {
|
|
13042
12873
|
className: "flex items-center gap-1.5",
|
|
13043
|
-
children: /* @__PURE__ */ (0,
|
|
12874
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, {
|
|
13044
12875
|
size: "sm",
|
|
13045
12876
|
weight: "medium",
|
|
13046
12877
|
color: "default",
|
|
@@ -13066,8 +12897,8 @@ function toast(_param) {
|
|
|
13066
12897
|
};
|
|
13067
12898
|
}
|
|
13068
12899
|
function useToast() {
|
|
13069
|
-
var
|
|
13070
|
-
|
|
12900
|
+
var _React40_useState = _sliced_to_array(React40.useState(memoryState), 2), state = _React40_useState[0], setState = _React40_useState[1];
|
|
12901
|
+
React40.useEffect(function() {
|
|
13071
12902
|
listeners.push(setState);
|
|
13072
12903
|
return function() {
|
|
13073
12904
|
var index = listeners.indexOf(setState);
|
|
@@ -13091,7 +12922,7 @@ function useToast() {
|
|
|
13091
12922
|
// src/components/toast/toaster.tsx
|
|
13092
12923
|
var import_react15 = __toESM(require("react"), 1);
|
|
13093
12924
|
var import_outline3 = require("@heroicons/react/24/outline");
|
|
13094
|
-
var
|
|
12925
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
13095
12926
|
function Toaster() {
|
|
13096
12927
|
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
12928
|
var toasts = useToast().toasts;
|
|
@@ -13125,22 +12956,22 @@ function Toaster() {
|
|
|
13125
12956
|
]);
|
|
13126
12957
|
var renderToast = function(toast4) {
|
|
13127
12958
|
var id = toast4.id, title = toast4.title, description = toast4.description, action = toast4.action, variant = toast4.variant, toastPosition = toast4.position;
|
|
13128
|
-
var
|
|
12959
|
+
var renderIcon2 = function(variant2) {
|
|
13129
12960
|
switch(variant2){
|
|
13130
12961
|
case "info":
|
|
13131
|
-
return /* @__PURE__ */ (0,
|
|
12962
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_InformationCircleIcon2.default, {
|
|
13132
12963
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
13133
12964
|
});
|
|
13134
12965
|
case "success":
|
|
13135
|
-
return /* @__PURE__ */ (0,
|
|
12966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_CheckCircleIcon2.default, {
|
|
13136
12967
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
13137
12968
|
});
|
|
13138
12969
|
case "warning":
|
|
13139
|
-
return /* @__PURE__ */ (0,
|
|
12970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_outline3.ExclamationTriangleIcon, {
|
|
13140
12971
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
13141
12972
|
});
|
|
13142
12973
|
case "error":
|
|
13143
|
-
return /* @__PURE__ */ (0,
|
|
12974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_XCircleIcon2.default, {
|
|
13144
12975
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
13145
12976
|
});
|
|
13146
12977
|
}
|
|
@@ -13157,26 +12988,26 @@ function Toaster() {
|
|
|
13157
12988
|
return "bg-Colors-Background-Critical-Default";
|
|
13158
12989
|
}
|
|
13159
12990
|
};
|
|
13160
|
-
return /* @__PURE__ */ (0,
|
|
12991
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Toast, _object_spread_props(_object_spread({}, toast4), {
|
|
13161
12992
|
position: toastPosition,
|
|
13162
12993
|
children: [
|
|
13163
|
-
/* @__PURE__ */ (0,
|
|
12994
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", {
|
|
13164
12995
|
className: "flex flex-col gap-3",
|
|
13165
|
-
children: /* @__PURE__ */ (0,
|
|
12996
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", {
|
|
13166
12997
|
className: "flex items-start gap-3",
|
|
13167
12998
|
children: [
|
|
13168
|
-
/* @__PURE__ */ (0,
|
|
12999
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", {
|
|
13169
13000
|
className: cn("flex h-10 w-10 flex-shrink-0 flex-grow-0 items-center justify-center rounded-full", getBackgroundColor(variant)),
|
|
13170
|
-
children:
|
|
13001
|
+
children: renderIcon2(variant)
|
|
13171
13002
|
}),
|
|
13172
|
-
/* @__PURE__ */ (0,
|
|
13003
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", {
|
|
13173
13004
|
className: "grid gap-1",
|
|
13174
13005
|
children: [
|
|
13175
|
-
title && /* @__PURE__ */ (0,
|
|
13006
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ToastTitle, {
|
|
13176
13007
|
className: "text-base text-Colors-Text-Default",
|
|
13177
13008
|
children: title
|
|
13178
13009
|
}),
|
|
13179
|
-
description && /* @__PURE__ */ (0,
|
|
13010
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ToastDescription, {
|
|
13180
13011
|
className: "text-sm text-Colors-Text-Subtle",
|
|
13181
13012
|
children: description
|
|
13182
13013
|
}),
|
|
@@ -13186,17 +13017,17 @@ function Toaster() {
|
|
|
13186
13017
|
]
|
|
13187
13018
|
})
|
|
13188
13019
|
}),
|
|
13189
|
-
/* @__PURE__ */ (0,
|
|
13020
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ToastClose, {})
|
|
13190
13021
|
]
|
|
13191
13022
|
}), id);
|
|
13192
13023
|
};
|
|
13193
|
-
return /* @__PURE__ */ (0,
|
|
13024
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ToastProvider, {
|
|
13194
13025
|
children: Object.entries(positionGroups).map(function(param) {
|
|
13195
13026
|
var _param = _sliced_to_array(param, 2), pos = _param[0], toastsForPosition = _param[1];
|
|
13196
|
-
return /* @__PURE__ */ (0,
|
|
13027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react15.default.Fragment, {
|
|
13197
13028
|
children: [
|
|
13198
13029
|
toastsForPosition.map(renderToast),
|
|
13199
|
-
toastsForPosition.length > 0 && /* @__PURE__ */ (0,
|
|
13030
|
+
toastsForPosition.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ToastViewport, {
|
|
13200
13031
|
position: pos
|
|
13201
13032
|
})
|
|
13202
13033
|
]
|
|
@@ -13218,7 +13049,7 @@ var import_pagination = require("swiper/css/pagination");
|
|
|
13218
13049
|
// src/components/swiper/index.module.scss
|
|
13219
13050
|
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
13051
|
// src/components/swiper/index.tsx
|
|
13221
|
-
var
|
|
13052
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
13222
13053
|
var swiperVariants = (0, import_class_variance_authority21.cva)("", {
|
|
13223
13054
|
variants: {
|
|
13224
13055
|
rounded: {
|
|
@@ -13354,9 +13185,9 @@ function Swiper(props) {
|
|
|
13354
13185
|
}
|
|
13355
13186
|
}
|
|
13356
13187
|
};
|
|
13357
|
-
return /* @__PURE__ */ (0,
|
|
13188
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", {
|
|
13358
13189
|
className: index_module_default.swiperBox,
|
|
13359
|
-
children: /* @__PURE__ */ (0,
|
|
13190
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react17.Swiper, _object_spread_props(_object_spread({
|
|
13360
13191
|
observer: true,
|
|
13361
13192
|
observeParents: true
|
|
13362
13193
|
}, swiperConfigs), {
|
|
@@ -13366,9 +13197,9 @@ function Swiper(props) {
|
|
|
13366
13197
|
swiperRef.current = swiper;
|
|
13367
13198
|
},
|
|
13368
13199
|
children: swiperList.map(function(item, index) {
|
|
13369
|
-
return /* @__PURE__ */ (0,
|
|
13200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react17.SwiperSlide, {
|
|
13370
13201
|
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,
|
|
13202
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Com, {
|
|
13372
13203
|
item: item,
|
|
13373
13204
|
index: index,
|
|
13374
13205
|
onClick: handleSlideItemClick,
|
|
@@ -13389,48 +13220,48 @@ var import_ExclamationCircleIcon = __toESM(require("@heroicons/react/24/solid/es
|
|
|
13389
13220
|
var import_InformationCircleIcon3 = __toESM(require("@heroicons/react/24/solid/esm/InformationCircleIcon"), 1);
|
|
13390
13221
|
var import_XCircleIcon3 = __toESM(require("@heroicons/react/24/solid/esm/XCircleIcon"), 1);
|
|
13391
13222
|
var import_react_hot_toast = require("react-hot-toast");
|
|
13392
|
-
var
|
|
13223
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
13393
13224
|
function CustomNotification(param) {
|
|
13394
13225
|
var tProps = param.tProps, customProps = param.customProps;
|
|
13395
13226
|
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
13227
|
var id = tProps.id;
|
|
13397
13228
|
var displayedContent = !isString(content) ? JSON.stringify(content) : content;
|
|
13398
|
-
return /* @__PURE__ */ (0,
|
|
13399
|
-
children: /* @__PURE__ */ (0,
|
|
13229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", {
|
|
13230
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", {
|
|
13400
13231
|
id: id,
|
|
13401
13232
|
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,
|
|
13233
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", {
|
|
13403
13234
|
className: "flex w-full items-center justify-center gap-2",
|
|
13404
13235
|
children: [
|
|
13405
|
-
loading && /* @__PURE__ */ (0,
|
|
13406
|
-
!loading && type && /* @__PURE__ */ (0,
|
|
13236
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Spinner, {}),
|
|
13237
|
+
!loading && type && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", {
|
|
13407
13238
|
className: "flex flex-shrink-0 items-center",
|
|
13408
13239
|
children: [
|
|
13409
|
-
type === "info" && /* @__PURE__ */ (0,
|
|
13240
|
+
type === "info" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_InformationCircleIcon3.default, {
|
|
13410
13241
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
13411
13242
|
}),
|
|
13412
|
-
type === "success" && /* @__PURE__ */ (0,
|
|
13243
|
+
type === "success" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_CheckCircleIcon3.default, {
|
|
13413
13244
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
13414
13245
|
}),
|
|
13415
|
-
type === "warning" && /* @__PURE__ */ (0,
|
|
13246
|
+
type === "warning" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_ExclamationCircleIcon.default, {
|
|
13416
13247
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
13417
13248
|
}),
|
|
13418
|
-
type === "error" && /* @__PURE__ */ (0,
|
|
13249
|
+
type === "error" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_XCircleIcon3.default, {
|
|
13419
13250
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
13420
13251
|
})
|
|
13421
13252
|
]
|
|
13422
13253
|
}),
|
|
13423
|
-
/* @__PURE__ */ (0,
|
|
13254
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", {
|
|
13424
13255
|
className: "flex flex-grow flex-col space-y-1 overflow-hidden",
|
|
13425
13256
|
children: [
|
|
13426
|
-
title && /* @__PURE__ */ (0,
|
|
13257
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Text, {
|
|
13427
13258
|
size: "sm",
|
|
13428
13259
|
weight: "regular",
|
|
13429
13260
|
color: "default",
|
|
13430
13261
|
children: title
|
|
13431
13262
|
}),
|
|
13432
|
-
/* @__PURE__ */ (0,
|
|
13433
|
-
children: /* @__PURE__ */ (0,
|
|
13263
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", {
|
|
13264
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Text, {
|
|
13434
13265
|
size: "sm",
|
|
13435
13266
|
weight: "regular",
|
|
13436
13267
|
color: "default",
|
|
@@ -13439,16 +13270,16 @@ function CustomNotification(param) {
|
|
|
13439
13270
|
})
|
|
13440
13271
|
]
|
|
13441
13272
|
}),
|
|
13442
|
-
action && /* @__PURE__ */ (0,
|
|
13273
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, {
|
|
13443
13274
|
children: [
|
|
13444
|
-
/* @__PURE__ */ (0,
|
|
13275
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Separator, {
|
|
13445
13276
|
orientation: "vertical",
|
|
13446
13277
|
className: "h-3"
|
|
13447
13278
|
}),
|
|
13448
13279
|
action
|
|
13449
13280
|
]
|
|
13450
13281
|
}),
|
|
13451
|
-
isClosable && /* @__PURE__ */ (0,
|
|
13282
|
+
isClosable && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(IconButton, {
|
|
13452
13283
|
size: "sm",
|
|
13453
13284
|
variant: "plain",
|
|
13454
13285
|
icon: import_XMarkIcon4.default,
|
|
@@ -13465,14 +13296,14 @@ function CustomNotification(param) {
|
|
|
13465
13296
|
// src/common/hooks/useNotification.tsx
|
|
13466
13297
|
var import_react18 = require("react");
|
|
13467
13298
|
var import_react_hot_toast2 = require("react-hot-toast");
|
|
13468
|
-
var
|
|
13299
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
13469
13300
|
function useNotification() {
|
|
13470
13301
|
var addToast = (0, import_react18.useCallback)(function(config2, duration2) {
|
|
13471
13302
|
if (config2.id) {
|
|
13472
13303
|
import_react_hot_toast2.toast.remove(config2.id);
|
|
13473
13304
|
}
|
|
13474
13305
|
import_react_hot_toast2.toast.custom(function(t) {
|
|
13475
|
-
return /* @__PURE__ */ (0,
|
|
13306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CustomNotification, {
|
|
13476
13307
|
tProps: _object_spread_props(_object_spread({}, t), {
|
|
13477
13308
|
duration: duration2
|
|
13478
13309
|
}),
|
|
@@ -13533,7 +13364,7 @@ var Message = /*#__PURE__*/ function() {
|
|
|
13533
13364
|
}
|
|
13534
13365
|
var addToast = function() {
|
|
13535
13366
|
import_react_hot_toast2.toast.custom(function(t) {
|
|
13536
|
-
return /* @__PURE__ */ (0,
|
|
13367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CustomNotification, {
|
|
13537
13368
|
tProps: _object_spread_props(_object_spread({}, t), {
|
|
13538
13369
|
duration: duration2
|
|
13539
13370
|
}),
|
|
@@ -13589,11 +13420,11 @@ var Message = /*#__PURE__*/ function() {
|
|
|
13589
13420
|
return Message;
|
|
13590
13421
|
}();
|
|
13591
13422
|
// src/components/icons/outline/ArrowLeftIcon.tsx
|
|
13592
|
-
var
|
|
13593
|
-
var
|
|
13594
|
-
var ArrowLeftIcon2 =
|
|
13595
|
-
return /* @__PURE__ */ (0,
|
|
13596
|
-
children: /* @__PURE__ */ (0,
|
|
13423
|
+
var React42 = __toESM(require("react"), 1);
|
|
13424
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
13425
|
+
var ArrowLeftIcon2 = React42.forwardRef(function(props, ref) {
|
|
13426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13427
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("svg", {
|
|
13597
13428
|
ref: ref,
|
|
13598
13429
|
className: "w-full h-full",
|
|
13599
13430
|
viewBox: "0 0 24 24",
|
|
@@ -13601,7 +13432,7 @@ var ArrowLeftIcon2 = React43.forwardRef(function(props, ref) {
|
|
|
13601
13432
|
strokeWidth: "1.5",
|
|
13602
13433
|
stroke: "currentColor",
|
|
13603
13434
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13604
|
-
children: /* @__PURE__ */ (0,
|
|
13435
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", {
|
|
13605
13436
|
strokeLinecap: "round",
|
|
13606
13437
|
strokeLinejoin: "round",
|
|
13607
13438
|
d: "M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"
|
|
@@ -13610,11 +13441,11 @@ var ArrowLeftIcon2 = React43.forwardRef(function(props, ref) {
|
|
|
13610
13441
|
}));
|
|
13611
13442
|
});
|
|
13612
13443
|
// src/components/icons/outline/ArrowUpTrayIcon.tsx
|
|
13613
|
-
var
|
|
13614
|
-
var
|
|
13615
|
-
var ArrowUpTrayIcon =
|
|
13616
|
-
return /* @__PURE__ */ (0,
|
|
13617
|
-
children: /* @__PURE__ */ (0,
|
|
13444
|
+
var React43 = __toESM(require("react"), 1);
|
|
13445
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
13446
|
+
var ArrowUpTrayIcon = React43.forwardRef(function(props, ref) {
|
|
13447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13448
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", {
|
|
13618
13449
|
ref: ref,
|
|
13619
13450
|
className: "w-full h-full",
|
|
13620
13451
|
viewBox: "0 0 24 24",
|
|
@@ -13622,7 +13453,7 @@ var ArrowUpTrayIcon = React44.forwardRef(function(props, ref) {
|
|
|
13622
13453
|
strokeWidth: "1.5",
|
|
13623
13454
|
stroke: "currentColor",
|
|
13624
13455
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13625
|
-
children: /* @__PURE__ */ (0,
|
|
13456
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("path", {
|
|
13626
13457
|
strokeLinecap: "round",
|
|
13627
13458
|
strokeLinejoin: "round",
|
|
13628
13459
|
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 +13462,11 @@ var ArrowUpTrayIcon = React44.forwardRef(function(props, ref) {
|
|
|
13631
13462
|
}));
|
|
13632
13463
|
});
|
|
13633
13464
|
// src/components/icons/outline/WindowIcon.tsx
|
|
13634
|
-
var
|
|
13635
|
-
var
|
|
13636
|
-
var WindowIcon =
|
|
13637
|
-
return /* @__PURE__ */ (0,
|
|
13638
|
-
children: /* @__PURE__ */ (0,
|
|
13465
|
+
var React44 = __toESM(require("react"), 1);
|
|
13466
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
13467
|
+
var WindowIcon = React44.forwardRef(function(props, ref) {
|
|
13468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13469
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", {
|
|
13639
13470
|
ref: ref,
|
|
13640
13471
|
className: "w-full h-full",
|
|
13641
13472
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13643,7 +13474,7 @@ var WindowIcon = React45.forwardRef(function(props, ref) {
|
|
|
13643
13474
|
fill: "none",
|
|
13644
13475
|
strokeWidth: "1.5",
|
|
13645
13476
|
stroke: "currentColor",
|
|
13646
|
-
children: /* @__PURE__ */ (0,
|
|
13477
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("path", {
|
|
13647
13478
|
strokeLinecap: "round",
|
|
13648
13479
|
strokeLinejoin: "round",
|
|
13649
13480
|
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 +13483,21 @@ var WindowIcon = React45.forwardRef(function(props, ref) {
|
|
|
13652
13483
|
}));
|
|
13653
13484
|
});
|
|
13654
13485
|
// src/components/icons/outline/CheckCircleIcon.tsx
|
|
13655
|
-
var
|
|
13656
|
-
var
|
|
13657
|
-
var CheckCircleIcon4 =
|
|
13658
|
-
return /* @__PURE__ */ (0,
|
|
13659
|
-
children: /* @__PURE__ */ (0,
|
|
13486
|
+
var React45 = __toESM(require("react"), 1);
|
|
13487
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
13488
|
+
var CheckCircleIcon4 = React45.forwardRef(function(props, ref) {
|
|
13489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13490
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("svg", {
|
|
13660
13491
|
ref: ref,
|
|
13661
13492
|
className: "w-full h-full",
|
|
13662
13493
|
viewBox: "0 0 24 24",
|
|
13663
13494
|
fill: "currentColor",
|
|
13664
13495
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13665
13496
|
children: [
|
|
13666
|
-
/* @__PURE__ */ (0,
|
|
13497
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", {
|
|
13667
13498
|
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
13499
|
}),
|
|
13669
|
-
/* @__PURE__ */ (0,
|
|
13500
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", {
|
|
13670
13501
|
fillRule: "evenodd",
|
|
13671
13502
|
clipRule: "evenodd",
|
|
13672
13503
|
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 +13506,14 @@ var CheckCircleIcon4 = React46.forwardRef(function(props, ref) {
|
|
|
13675
13506
|
})
|
|
13676
13507
|
}));
|
|
13677
13508
|
});
|
|
13509
|
+
// src/components/icons/outline/FilterIcon.tsx
|
|
13510
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
13678
13511
|
// src/components/icons/outline/PencilSquareIcon.tsx
|
|
13679
|
-
var
|
|
13680
|
-
var
|
|
13681
|
-
var PencilSquareIcon =
|
|
13682
|
-
return /* @__PURE__ */ (0,
|
|
13683
|
-
children: /* @__PURE__ */ (0,
|
|
13512
|
+
var React46 = __toESM(require("react"), 1);
|
|
13513
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
13514
|
+
var PencilSquareIcon = React46.forwardRef(function(props, ref) {
|
|
13515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13516
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("svg", {
|
|
13684
13517
|
ref: ref,
|
|
13685
13518
|
className: "w-full h-full",
|
|
13686
13519
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13688,7 +13521,7 @@ var PencilSquareIcon = React47.forwardRef(function(props, ref) {
|
|
|
13688
13521
|
viewBox: "0 0 24 24",
|
|
13689
13522
|
strokeWidth: "1.5",
|
|
13690
13523
|
stroke: "currentColor",
|
|
13691
|
-
children: /* @__PURE__ */ (0,
|
|
13524
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("path", {
|
|
13692
13525
|
strokeLinecap: "round",
|
|
13693
13526
|
strokeLinejoin: "round",
|
|
13694
13527
|
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 +13530,35 @@ var PencilSquareIcon = React47.forwardRef(function(props, ref) {
|
|
|
13697
13530
|
}));
|
|
13698
13531
|
});
|
|
13699
13532
|
// src/components/icons/outline/ConfigIcon.tsx
|
|
13700
|
-
var
|
|
13701
|
-
var
|
|
13702
|
-
var ConfigIcon =
|
|
13703
|
-
return /* @__PURE__ */ (0,
|
|
13704
|
-
children: /* @__PURE__ */ (0,
|
|
13533
|
+
var React47 = __toESM(require("react"), 1);
|
|
13534
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
13535
|
+
var ConfigIcon = React47.forwardRef(function(props, ref) {
|
|
13536
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13537
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("svg", {
|
|
13705
13538
|
width: "18",
|
|
13706
13539
|
height: "18",
|
|
13707
13540
|
viewBox: "0 0 18 18",
|
|
13708
13541
|
fill: "none",
|
|
13709
13542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13710
13543
|
className: "cursor-pointer",
|
|
13711
|
-
children: /* @__PURE__ */ (0,
|
|
13544
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("g", {
|
|
13712
13545
|
id: "wrapper",
|
|
13713
|
-
children: /* @__PURE__ */ (0,
|
|
13546
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("g", {
|
|
13714
13547
|
id: "Union",
|
|
13715
13548
|
children: [
|
|
13716
|
-
/* @__PURE__ */ (0,
|
|
13549
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", {
|
|
13717
13550
|
fillRule: "evenodd",
|
|
13718
13551
|
clipRule: "evenodd",
|
|
13719
13552
|
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
13553
|
fill: "#6D7175"
|
|
13721
13554
|
}),
|
|
13722
|
-
/* @__PURE__ */ (0,
|
|
13555
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", {
|
|
13723
13556
|
fillRule: "evenodd",
|
|
13724
13557
|
clipRule: "evenodd",
|
|
13725
13558
|
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
13559
|
fill: "#6D7175"
|
|
13727
13560
|
}),
|
|
13728
|
-
/* @__PURE__ */ (0,
|
|
13561
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", {
|
|
13729
13562
|
fillRule: "evenodd",
|
|
13730
13563
|
clipRule: "evenodd",
|
|
13731
13564
|
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 +13571,38 @@ var ConfigIcon = React48.forwardRef(function(props, ref) {
|
|
|
13738
13571
|
}));
|
|
13739
13572
|
});
|
|
13740
13573
|
// src/components/icons/solid/CaretDownIcon.tsx
|
|
13741
|
-
var
|
|
13742
|
-
var
|
|
13743
|
-
var CaretDownIcon =
|
|
13744
|
-
return /* @__PURE__ */ (0,
|
|
13745
|
-
children: /* @__PURE__ */ (0,
|
|
13574
|
+
var React48 = __toESM(require("react"), 1);
|
|
13575
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
13576
|
+
var CaretDownIcon = React48.forwardRef(function(props, ref) {
|
|
13577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13578
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("svg", {
|
|
13746
13579
|
ref: ref,
|
|
13747
13580
|
className: "w-full h-full",
|
|
13748
13581
|
viewBox: "0 0 24 24",
|
|
13749
13582
|
fill: "currentColor",
|
|
13750
13583
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13751
|
-
children: /* @__PURE__ */ (0,
|
|
13584
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("path", {
|
|
13752
13585
|
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
13586
|
})
|
|
13754
13587
|
})
|
|
13755
13588
|
}));
|
|
13756
13589
|
});
|
|
13757
13590
|
// src/components/icons/solid/CodeIcon.tsx
|
|
13758
|
-
var
|
|
13759
|
-
var
|
|
13760
|
-
var CodeIcon =
|
|
13761
|
-
return /* @__PURE__ */ (0,
|
|
13762
|
-
children: /* @__PURE__ */ (0,
|
|
13591
|
+
var React49 = __toESM(require("react"), 1);
|
|
13592
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
13593
|
+
var CodeIcon = React49.forwardRef(function(props, ref) {
|
|
13594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13595
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("svg", {
|
|
13763
13596
|
ref: ref,
|
|
13764
13597
|
className: "w-full h-full",
|
|
13765
13598
|
viewBox: "0 0 24 24",
|
|
13766
13599
|
fill: "currentColor",
|
|
13767
13600
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13768
13601
|
children: [
|
|
13769
|
-
/* @__PURE__ */ (0,
|
|
13602
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", {
|
|
13770
13603
|
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
13604
|
}),
|
|
13772
|
-
/* @__PURE__ */ (0,
|
|
13605
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", {
|
|
13773
13606
|
fillRule: "evenodd",
|
|
13774
13607
|
clipRule: "evenodd",
|
|
13775
13608
|
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 +13612,17 @@ var CodeIcon = React50.forwardRef(function(props, ref) {
|
|
|
13779
13612
|
}));
|
|
13780
13613
|
});
|
|
13781
13614
|
// src/components/icons/solid/DragIcon.tsx
|
|
13782
|
-
var
|
|
13783
|
-
var
|
|
13784
|
-
var DragIcon =
|
|
13785
|
-
return /* @__PURE__ */ (0,
|
|
13786
|
-
children: /* @__PURE__ */ (0,
|
|
13615
|
+
var React50 = __toESM(require("react"), 1);
|
|
13616
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
13617
|
+
var DragIcon = React50.forwardRef(function(props, ref) {
|
|
13618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13619
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("svg", {
|
|
13787
13620
|
ref: ref,
|
|
13788
13621
|
className: "w-full h-full",
|
|
13789
13622
|
viewBox: "0 0 24 24",
|
|
13790
13623
|
fill: "currentColor",
|
|
13791
13624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13792
|
-
children: /* @__PURE__ */ (0,
|
|
13625
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", {
|
|
13793
13626
|
fillRule: "evenodd",
|
|
13794
13627
|
clipRule: "evenodd",
|
|
13795
13628
|
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 +13631,22 @@ var DragIcon = React51.forwardRef(function(props, ref) {
|
|
|
13798
13631
|
}));
|
|
13799
13632
|
});
|
|
13800
13633
|
// src/components/icons/solid/PhoneIcon.tsx
|
|
13801
|
-
var
|
|
13802
|
-
var
|
|
13803
|
-
var PhoneIcon =
|
|
13804
|
-
return /* @__PURE__ */ (0,
|
|
13805
|
-
children: /* @__PURE__ */ (0,
|
|
13634
|
+
var React51 = __toESM(require("react"), 1);
|
|
13635
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
13636
|
+
var PhoneIcon = React51.forwardRef(function(props, ref) {
|
|
13637
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13638
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("svg", {
|
|
13806
13639
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13807
13640
|
width: "20",
|
|
13808
13641
|
height: "20",
|
|
13809
13642
|
viewBox: "0 0 20 20",
|
|
13810
13643
|
fill: "none",
|
|
13811
13644
|
children: [
|
|
13812
|
-
/* @__PURE__ */ (0,
|
|
13645
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", {
|
|
13813
13646
|
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
13647
|
fill: "#3E5CFA"
|
|
13815
13648
|
}),
|
|
13816
|
-
/* @__PURE__ */ (0,
|
|
13649
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", {
|
|
13817
13650
|
fillRule: "evenodd",
|
|
13818
13651
|
clipRule: "evenodd",
|
|
13819
13652
|
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 +13657,17 @@ var PhoneIcon = React52.forwardRef(function(props, ref) {
|
|
|
13824
13657
|
}));
|
|
13825
13658
|
});
|
|
13826
13659
|
// src/components/icons/solid/RectangleGroupIcon.tsx
|
|
13827
|
-
var
|
|
13828
|
-
var
|
|
13829
|
-
var RectangleGroupIcon =
|
|
13830
|
-
return /* @__PURE__ */ (0,
|
|
13831
|
-
children: /* @__PURE__ */ (0,
|
|
13660
|
+
var React52 = __toESM(require("react"), 1);
|
|
13661
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
13662
|
+
var RectangleGroupIcon = React52.forwardRef(function(props, ref) {
|
|
13663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon, _object_spread_props(_object_spread({}, props), {
|
|
13664
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("svg", {
|
|
13832
13665
|
ref: ref,
|
|
13833
13666
|
className: "w-full h-full",
|
|
13834
13667
|
viewBox: "0 0 24 24",
|
|
13835
13668
|
fill: "currentColor",
|
|
13836
13669
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13837
|
-
children: /* @__PURE__ */ (0,
|
|
13670
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", {
|
|
13838
13671
|
fillRule: "evenodd",
|
|
13839
13672
|
clipRule: "evenodd",
|
|
13840
13673
|
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 +13804,7 @@ var RectangleGroupIcon = React53.forwardRef(function(props, ref) {
|
|
|
13971
13804
|
MenubarSubTrigger: MenubarSubTrigger,
|
|
13972
13805
|
MenubarTrigger: MenubarTrigger,
|
|
13973
13806
|
Message: Message,
|
|
13807
|
+
MiddleBar: MiddleBar,
|
|
13974
13808
|
Modal: Modal,
|
|
13975
13809
|
ModalBody: ModalBody,
|
|
13976
13810
|
ModalContent: ModalContent,
|
|
@@ -13979,7 +13813,6 @@ var RectangleGroupIcon = React53.forwardRef(function(props, ref) {
|
|
|
13979
13813
|
ModalOverlay: ModalOverlay,
|
|
13980
13814
|
ModalRoot: ModalRoot,
|
|
13981
13815
|
ModalTitle: ModalTitle,
|
|
13982
|
-
NavigationBar: NavigationBar,
|
|
13983
13816
|
NumberInput: NumberInput,
|
|
13984
13817
|
Paragraph: Paragraph,
|
|
13985
13818
|
PencilSquareIcon: PencilSquareIcon,
|
|
@@ -13997,7 +13830,6 @@ var RectangleGroupIcon = React53.forwardRef(function(props, ref) {
|
|
|
13997
13830
|
ScrollArea: ScrollArea,
|
|
13998
13831
|
ScrollBar: ScrollBar,
|
|
13999
13832
|
SearchBar: SearchBar,
|
|
14000
|
-
SecondaryNavigationBar: SecondaryNavigationBar,
|
|
14001
13833
|
Select: Select,
|
|
14002
13834
|
SelectContent: SelectContent,
|
|
14003
13835
|
SelectGroup: SelectGroup,
|
|
@@ -14051,6 +13883,7 @@ var RectangleGroupIcon = React53.forwardRef(function(props, ref) {
|
|
|
14051
13883
|
ToggleGroupItem: ToggleGroupItem,
|
|
14052
13884
|
Tooltip: Tooltip,
|
|
14053
13885
|
TooltipProvider: TooltipProvider,
|
|
13886
|
+
TopNavigationBar: TopNavigationBar,
|
|
14054
13887
|
WindowIcon: WindowIcon,
|
|
14055
13888
|
buttonVariants: buttonVariants,
|
|
14056
13889
|
dangerouText: dangerouText,
|