myshell-react-lib 0.1.33 → 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 +392 -555
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -22
- package/dist/index.d.ts +29 -22
- package/dist/index.js +386 -549
- 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.js
CHANGED
|
@@ -4691,7 +4691,7 @@ function Image2(_param) {
|
|
|
4691
4691
|
}
|
|
4692
4692
|
// src/components/button/button.styles.ts
|
|
4693
4693
|
import { cva as cva4 } from "class-variance-authority";
|
|
4694
|
-
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:
|
|
4694
|
+
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";
|
|
4695
4695
|
var SIZE_CLASSES = {
|
|
4696
4696
|
lg: {
|
|
4697
4697
|
base: "h-11",
|
|
@@ -4714,19 +4714,19 @@ var SIZE_CLASSES = {
|
|
|
4714
4714
|
};
|
|
4715
4715
|
var COLOR_THEMES = {
|
|
4716
4716
|
default: {
|
|
4717
|
-
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",
|
|
4717
|
+
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",
|
|
4718
4718
|
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",
|
|
4719
4719
|
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 ",
|
|
4720
4720
|
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",
|
|
4721
4721
|
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 "
|
|
4722
4722
|
},
|
|
4723
4723
|
brand: {
|
|
4724
|
-
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",
|
|
4724
|
+
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",
|
|
4725
4725
|
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"
|
|
4726
4726
|
},
|
|
4727
4727
|
error: {
|
|
4728
|
-
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",
|
|
4729
|
-
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"
|
|
4728
|
+
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",
|
|
4729
|
+
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"
|
|
4730
4730
|
}
|
|
4731
4731
|
};
|
|
4732
4732
|
var VARIANT_BASE = {
|
|
@@ -5554,6 +5554,7 @@ var Tooltip = React8.forwardRef(function(_param, ref) {
|
|
|
5554
5554
|
}
|
|
5555
5555
|
return /* @__PURE__ */ jsx11(Fragment3, {
|
|
5556
5556
|
children: isDesktop ? /* @__PURE__ */ jsx11(TooltipProvider, {
|
|
5557
|
+
delayDuration: 100,
|
|
5557
5558
|
children: /* @__PURE__ */ jsxs5(TooltipPrimitive.Root, {
|
|
5558
5559
|
open: disabled || !description && !title ? false : open,
|
|
5559
5560
|
defaultOpen: defaultOpen,
|
|
@@ -5642,7 +5643,7 @@ var TooltipContent = React8.forwardRef(function(_param, ref) {
|
|
|
5642
5643
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
5643
5644
|
// src/components/button/icon-button.styles.ts
|
|
5644
5645
|
import { cva as cva5 } from "class-variance-authority";
|
|
5645
|
-
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:
|
|
5646
|
+
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";
|
|
5646
5647
|
var VARIANT_STYLES = {
|
|
5647
5648
|
primary: "",
|
|
5648
5649
|
secondary: "border shadow-none",
|
|
@@ -5678,12 +5679,12 @@ var COMPOUND_VARIANTS = [
|
|
|
5678
5679
|
{
|
|
5679
5680
|
variant: "secondary",
|
|
5680
5681
|
color: "default",
|
|
5681
|
-
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"
|
|
5682
|
+
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"
|
|
5682
5683
|
},
|
|
5683
5684
|
{
|
|
5684
5685
|
variant: "secondary",
|
|
5685
5686
|
color: "error",
|
|
5686
|
-
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"
|
|
5687
|
+
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"
|
|
5687
5688
|
},
|
|
5688
5689
|
{
|
|
5689
5690
|
variant: "tertiary",
|
|
@@ -5693,17 +5694,17 @@ var COMPOUND_VARIANTS = [
|
|
|
5693
5694
|
{
|
|
5694
5695
|
variant: "plain",
|
|
5695
5696
|
color: "default",
|
|
5696
|
-
className: "text-cc-Button-Plain-fg-default hover:bg-cc-Button-Plain-bg-hover
|
|
5697
|
+
className: "text-cc-Button-Plain-fg-default hover:bg-cc-Button-Plain-bg-hover active:bg-cc-Button-Plain-bg-active disabled:text-cc-Button-Plain-fg-alt"
|
|
5697
5698
|
},
|
|
5698
5699
|
{
|
|
5699
5700
|
variant: "plain",
|
|
5700
5701
|
color: "gray",
|
|
5701
|
-
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-
|
|
5702
|
+
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"
|
|
5702
5703
|
},
|
|
5703
5704
|
{
|
|
5704
5705
|
variant: "plain",
|
|
5705
5706
|
color: "error",
|
|
5706
|
-
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"
|
|
5707
|
+
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"
|
|
5707
5708
|
}
|
|
5708
5709
|
];
|
|
5709
5710
|
var DEFAULT_VARIANTS = {
|
|
@@ -6019,7 +6020,7 @@ var badgeVariants = cva7("rounded-full flex items-center justify-center text-Col
|
|
|
6019
6020
|
public: "w-2.5 h-2.5 bg-Colors-Utit border-[2px] bg-Colors-Utility-Lake-Blue-50 border-Colors-Utility-Lake-Blue-10",
|
|
6020
6021
|
private: "w-2.5 h-2.5 bg-Colors-Utility-Khaki-50 border-Colors-Utility-Khaki-10 border-[2px]",
|
|
6021
6022
|
hidden: "w-2.5 h-2.5 bg-Colors-Utility-Gray-40 border-Colors-Utility-Gray-10 border-[2px]",
|
|
6022
|
-
new: "w-
|
|
6023
|
+
new: "w-9 h-4.5 flex juctify-center items-center bg-Colors-Foreground-Critical-Default px-1.5"
|
|
6023
6024
|
}
|
|
6024
6025
|
},
|
|
6025
6026
|
defaultVariants: {
|
|
@@ -6034,7 +6035,7 @@ function Badge(props) {
|
|
|
6034
6035
|
status: status
|
|
6035
6036
|
}), className),
|
|
6036
6037
|
children: status === "new" ? /* @__PURE__ */ jsx17("span", {
|
|
6037
|
-
className: "text-2xs font-medium text-Colors-Text-Static-White leading-[
|
|
6038
|
+
className: "text-2xs font-medium text-Colors-Text-Static-White leading-[12px]",
|
|
6038
6039
|
children: "New"
|
|
6039
6040
|
}) : /* @__PURE__ */ jsx17("span", {
|
|
6040
6041
|
className: "font-medium text-2xs leading-[1.3]",
|
|
@@ -6986,7 +6987,7 @@ import { cva as cva11 } from "class-variance-authority";
|
|
|
6986
6987
|
import * as React20 from "react";
|
|
6987
6988
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
6988
6989
|
var Input = React20.forwardRef(function(_param, ref) {
|
|
6989
|
-
var className = _param.className, type = _param.type, _param_autoComplete = _param.autoComplete, autoComplete = _param_autoComplete === void 0 ? "off" : _param_autoComplete, _param_isFull = _param.isFull, isFull = _param_isFull === void 0 ? true : _param_isFull, _param_rounded = _param.rounded, rounded = _param_rounded === void 0 ? "
|
|
6990
|
+
var className = _param.className, type = _param.type, _param_autoComplete = _param.autoComplete, autoComplete = _param_autoComplete === void 0 ? "off" : _param_autoComplete, _param_isFull = _param.isFull, isFull = _param_isFull === void 0 ? true : _param_isFull, _param_rounded = _param.rounded, rounded = _param_rounded === void 0 ? "sm" : _param_rounded, _param_size = _param.size, size = _param_size === void 0 ? "sm" : _param_size, _param_border = _param.border, border = _param_border === void 0 ? "default" : _param_border, _param_outline = _param.outline, outline = _param_outline === void 0 ? "default" : _param_outline, _param_background = _param.background, background = _param_background === void 0 ? "default" : _param_background, _param_shadow = _param.shadow, shadow = _param_shadow === void 0 ? "default" : _param_shadow, props = _object_without_properties(_param, [
|
|
6990
6991
|
"className",
|
|
6991
6992
|
"type",
|
|
6992
6993
|
"autoComplete",
|
|
@@ -7003,13 +7004,16 @@ var Input = React20.forwardRef(function(_param, ref) {
|
|
|
7003
7004
|
variants: {
|
|
7004
7005
|
rounded: {
|
|
7005
7006
|
none: "rounded-none",
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7007
|
+
xxs: "rounded-xxs",
|
|
7008
|
+
xs: "rounded-xs",
|
|
7009
|
+
sm: "rounded-sm",
|
|
7010
|
+
md: "rounded-md",
|
|
7011
|
+
lg: "rounded-lg",
|
|
7010
7012
|
xl: "rounded-xl",
|
|
7011
7013
|
"2xl": "rounded-2xl",
|
|
7012
7014
|
"3xl": "rounded-3xl",
|
|
7015
|
+
"4xl": "rounded-4xl",
|
|
7016
|
+
"5xl": "rounded-5xl",
|
|
7013
7017
|
full: "rounded-full"
|
|
7014
7018
|
},
|
|
7015
7019
|
size: {
|
|
@@ -7957,7 +7961,7 @@ var Modal = function(_param) {
|
|
|
7957
7961
|
})
|
|
7958
7962
|
}));
|
|
7959
7963
|
}
|
|
7960
|
-
var
|
|
7964
|
+
var renderIcon2 = function(state2) {
|
|
7961
7965
|
switch(state2){
|
|
7962
7966
|
case "info":
|
|
7963
7967
|
return /* @__PURE__ */ jsx34(InformationCircleIcon, {
|
|
@@ -8004,7 +8008,7 @@ var Modal = function(_param) {
|
|
|
8004
8008
|
className: cn(isNotification && "border-none !pb-3"),
|
|
8005
8009
|
children: state && /* @__PURE__ */ jsx34("div", {
|
|
8006
8010
|
className: cn("flex items-center justify-center w-10 h-10 rounded-full flex-shrink-0 flex-grow-0", getBackgroundColor(state)),
|
|
8007
|
-
children:
|
|
8011
|
+
children: renderIcon2(state)
|
|
8008
8012
|
})
|
|
8009
8013
|
}),
|
|
8010
8014
|
/* @__PURE__ */ jsxs17("div", {
|
|
@@ -8071,7 +8075,7 @@ var Modal = function(_param) {
|
|
|
8071
8075
|
icon: XMarkIcon,
|
|
8072
8076
|
size: "md",
|
|
8073
8077
|
variant: "plain",
|
|
8074
|
-
color: "
|
|
8078
|
+
color: "gray",
|
|
8075
8079
|
className: iconClassName
|
|
8076
8080
|
}),
|
|
8077
8081
|
/* @__PURE__ */ jsx34("span", {
|
|
@@ -8187,7 +8191,7 @@ function SearchBar(_param) {
|
|
|
8187
8191
|
/* @__PURE__ */ jsx35(Input, _object_spread({
|
|
8188
8192
|
type: type,
|
|
8189
8193
|
placeholder: placeholder,
|
|
8190
|
-
rounded: roundedFill ? "full" : "
|
|
8194
|
+
rounded: roundedFill ? "full" : "sm",
|
|
8191
8195
|
size: size,
|
|
8192
8196
|
className: cn("relative w-full px-9 flex space-x-2 text-base shadow-none placeholder:text-Colors-Text-Subtlest", {
|
|
8193
8197
|
"focus-visible:ring-transparent": readOnly
|
|
@@ -8289,9 +8293,9 @@ function EnergyProgress(props) {
|
|
|
8289
8293
|
});
|
|
8290
8294
|
}
|
|
8291
8295
|
var energy_progress_default = EnergyProgress;
|
|
8292
|
-
// src/components/
|
|
8296
|
+
// src/components/middle-bar.tsx
|
|
8293
8297
|
import { Fragment as Fragment7, jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
8294
|
-
function
|
|
8298
|
+
function MiddleBar(param) {
|
|
8295
8299
|
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;
|
|
8296
8300
|
return /* @__PURE__ */ jsxs21("div", {
|
|
8297
8301
|
className: cn("relative w-full flex flex-col justify-between items-center px-4 md:px-6"),
|
|
@@ -10727,144 +10731,13 @@ var ScrollBar = React30.forwardRef(function(_param, ref) {
|
|
|
10727
10731
|
}));
|
|
10728
10732
|
});
|
|
10729
10733
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
10730
|
-
// src/components/
|
|
10734
|
+
// src/components/top-navigation-bar.tsx
|
|
10731
10735
|
import { ArrowLeftIcon } from "@heroicons/react/24/outline";
|
|
10732
10736
|
import { useEffect as useEffect10, useRef as useRef6, useState as useState8 } from "react";
|
|
10733
10737
|
import { useMedia as useMedia5 } from "react-use";
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
import * as React31 from "react";
|
|
10738
|
-
import { Fragment as Fragment8, jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
10739
|
-
var LinkButton = React31.forwardRef(function(_param, ref) {
|
|
10740
|
-
var _param_className = _param.className, className = _param_className === void 0 ? "" : _param_className, iconClassName = _param.iconClassName, _param_color = _param.color, color = _param_color === void 0 ? "default" : _param_color, icon = _param.icon, _param_iconDirection = _param.iconDirection, iconDirection = _param_iconDirection === void 0 ? "left" : _param_iconDirection, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, _param_asChild = _param.asChild, asChild = _param_asChild === void 0 ? false : _param_asChild, _param_loading = _param.loading, loading = _param_loading === void 0 ? false : _param_loading, _param_noStyle = _param.noStyle, noStyle = _param_noStyle === void 0 ? false : _param_noStyle, _param_iconOutBox = _param.iconOutBox, iconOutBox = _param_iconOutBox === void 0 ? false : _param_iconOutBox, _param_isBlock = _param.isBlock, isBlock = _param_isBlock === void 0 ? false : _param_isBlock, disabled = _param.disabled, children = _param.children, autoFocus = _param.autoFocus, asset = _param.asset, _param_assetNumber = _param.assetNumber, assetNumber = _param_assetNumber === void 0 ? 0 : _param_assetNumber, props = _object_without_properties(_param, [
|
|
10741
|
-
"className",
|
|
10742
|
-
"iconClassName",
|
|
10743
|
-
"color",
|
|
10744
|
-
"icon",
|
|
10745
|
-
"iconDirection",
|
|
10746
|
-
"size",
|
|
10747
|
-
"asChild",
|
|
10748
|
-
"loading",
|
|
10749
|
-
"noStyle",
|
|
10750
|
-
"iconOutBox",
|
|
10751
|
-
"isBlock",
|
|
10752
|
-
"disabled",
|
|
10753
|
-
"children",
|
|
10754
|
-
"autoFocus",
|
|
10755
|
-
"asset",
|
|
10756
|
-
"assetNumber"
|
|
10757
|
-
]);
|
|
10758
|
-
var Comp = asChild ? Slot5 : "button";
|
|
10759
|
-
var disable = disabled || loading;
|
|
10760
|
-
return /* @__PURE__ */ jsxs24(Comp, _object_spread_props(_object_spread({
|
|
10761
|
-
className: noStyle ? className : cn(buttonVariants({
|
|
10762
|
-
variant: "link",
|
|
10763
|
-
color: color,
|
|
10764
|
-
size: size,
|
|
10765
|
-
className: className
|
|
10766
|
-
}), disable && "!pointer-events-auto cursor-not-allowed", isBlock && "w-full"),
|
|
10767
|
-
ref: ref,
|
|
10768
|
-
disabled: disable,
|
|
10769
|
-
autoFocus: autoFocus
|
|
10770
|
-
}, props), {
|
|
10771
|
-
children: [
|
|
10772
|
-
loading && /* @__PURE__ */ jsx43("span", {
|
|
10773
|
-
className: "absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center",
|
|
10774
|
-
children: /* @__PURE__ */ jsx43(Loader23, {
|
|
10775
|
-
className: cn(iconVariants2({
|
|
10776
|
-
variant: "link",
|
|
10777
|
-
size: size
|
|
10778
|
-
}), "animate-spin", size === "lg" ? "h-6 w-6" : size === "md" ? "h-5 w-5" : "h-4.5 w-4.5")
|
|
10779
|
-
})
|
|
10780
|
-
}),
|
|
10781
|
-
!asset && icon && iconOutBox && iconDirection === "left" && renderIcon2(icon, "left", {
|
|
10782
|
-
loading: loading,
|
|
10783
|
-
noStyle: noStyle,
|
|
10784
|
-
iconClassName: iconClassName,
|
|
10785
|
-
size: size
|
|
10786
|
-
}),
|
|
10787
|
-
/* @__PURE__ */ jsxs24("span", {
|
|
10788
|
-
className: cn("inline-flex w-full items-center justify-center", loading ? "opacity-0" : "opacity-100"),
|
|
10789
|
-
children: [
|
|
10790
|
-
!asset && icon && !iconOutBox && iconDirection === "left" && renderIcon2(icon, "left", {
|
|
10791
|
-
loading: loading,
|
|
10792
|
-
noStyle: noStyle,
|
|
10793
|
-
iconClassName: iconClassName,
|
|
10794
|
-
size: size
|
|
10795
|
-
}),
|
|
10796
|
-
children,
|
|
10797
|
-
asset ? /* @__PURE__ */ jsxs24(Fragment8, {
|
|
10798
|
-
children: [
|
|
10799
|
-
/* @__PURE__ */ jsx43(Separator, {
|
|
10800
|
-
orientation: "vertical",
|
|
10801
|
-
className: cn("mx-1.5 h-3")
|
|
10802
|
-
}),
|
|
10803
|
-
/* @__PURE__ */ jsx43(Image2, {
|
|
10804
|
-
src: asset === "energy" ? getAssetsUrl("image/bot/tag/20231214/1719340128612116720.png") : "",
|
|
10805
|
-
alt: asset,
|
|
10806
|
-
width: 16,
|
|
10807
|
-
height: 16,
|
|
10808
|
-
className: "flex-shrink-0"
|
|
10809
|
-
}),
|
|
10810
|
-
/* @__PURE__ */ jsx43(Text, {
|
|
10811
|
-
size: "xs",
|
|
10812
|
-
className: cn("ml-0.5 text-inherit"),
|
|
10813
|
-
children: assetNumber
|
|
10814
|
-
})
|
|
10815
|
-
]
|
|
10816
|
-
}) : null,
|
|
10817
|
-
!asset && icon && !iconOutBox && iconDirection === "right" && renderIcon2(icon, "right", {
|
|
10818
|
-
loading: loading,
|
|
10819
|
-
noStyle: noStyle,
|
|
10820
|
-
iconClassName: iconClassName,
|
|
10821
|
-
size: size
|
|
10822
|
-
})
|
|
10823
|
-
]
|
|
10824
|
-
}),
|
|
10825
|
-
!asset && icon && iconOutBox && iconDirection === "right" && renderIcon2(icon, "right", {
|
|
10826
|
-
loading: loading,
|
|
10827
|
-
noStyle: noStyle,
|
|
10828
|
-
iconClassName: iconClassName,
|
|
10829
|
-
size: size
|
|
10830
|
-
})
|
|
10831
|
-
]
|
|
10832
|
-
}));
|
|
10833
|
-
});
|
|
10834
|
-
var renderIcon2 = function(icon, direction, param) {
|
|
10835
|
-
var loading = param.loading, noStyle = param.noStyle, iconClassName = param.iconClassName, _param_size = param.size, size = _param_size === void 0 ? "lg" : _param_size;
|
|
10836
|
-
return /* @__PURE__ */ jsx43(Icon, {
|
|
10837
|
-
component: icon,
|
|
10838
|
-
className: noStyle ? iconClassName : cn(iconVariants2({
|
|
10839
|
-
variant: "link",
|
|
10840
|
-
size: size
|
|
10841
|
-
}), direction === "left" ? "mr-0.5" : "ml-0.5", iconClassName, loading ? "opacity-0" : "opacity-100")
|
|
10842
|
-
});
|
|
10843
|
-
};
|
|
10844
|
-
LinkButton.displayName = "LinkButton";
|
|
10845
|
-
// src/components/icons/outline/FilterIcon.tsx
|
|
10846
|
-
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
10847
|
-
function FilterIcon(param) {
|
|
10848
|
-
var className = param.className;
|
|
10849
|
-
return /* @__PURE__ */ jsx44("svg", {
|
|
10850
|
-
className: className,
|
|
10851
|
-
width: "22",
|
|
10852
|
-
height: "22",
|
|
10853
|
-
viewBox: "0 0 22 22",
|
|
10854
|
-
fill: "none",
|
|
10855
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10856
|
-
children: /* @__PURE__ */ jsx44("path", {
|
|
10857
|
-
fillRule: "evenodd",
|
|
10858
|
-
clipRule: "evenodd",
|
|
10859
|
-
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"
|
|
10860
|
-
})
|
|
10861
|
-
});
|
|
10862
|
-
}
|
|
10863
|
-
var FilterIcon_default = FilterIcon;
|
|
10864
|
-
// src/components/secondary-navigation-bar.tsx
|
|
10865
|
-
import { Fragment as Fragment9, jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
10866
|
-
function SecondaryNavigationBar(param) {
|
|
10867
|
-
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;
|
|
10738
|
+
import { jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
10739
|
+
function TopNavigationBar(param) {
|
|
10740
|
+
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;
|
|
10868
10741
|
var isMobile2 = useMedia5("(max-width: 768px)");
|
|
10869
10742
|
var navbarRef = useRef6(null);
|
|
10870
10743
|
var _useState8 = _sliced_to_array(useState8(hasBackground), 2), showBackground = _useState8[0], setShowBackground = _useState8[1];
|
|
@@ -10886,115 +10759,75 @@ function SecondaryNavigationBar(param) {
|
|
|
10886
10759
|
}, [
|
|
10887
10760
|
hasBackground
|
|
10888
10761
|
]);
|
|
10889
|
-
return /* @__PURE__ */
|
|
10762
|
+
return /* @__PURE__ */ jsxs24("div", {
|
|
10890
10763
|
ref: navbarRef,
|
|
10891
10764
|
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"),
|
|
10892
|
-
children:
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10765
|
+
children: [
|
|
10766
|
+
/* @__PURE__ */ jsxs24("div", {
|
|
10767
|
+
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",
|
|
10768
|
+
children: [
|
|
10769
|
+
/* @__PURE__ */ jsxs24("div", {
|
|
10770
|
+
className: "flex-1 flex items-center justify-start",
|
|
10771
|
+
children: [
|
|
10772
|
+
(backUrl || onBack) && /* @__PURE__ */ jsxs24("div", {
|
|
10773
|
+
className: "flex justify-start items-center",
|
|
10774
|
+
children: [
|
|
10775
|
+
backUrl ? /* @__PURE__ */ jsx43(Link, {
|
|
10776
|
+
href: backUrl,
|
|
10777
|
+
className: "flex justify-center items-center",
|
|
10778
|
+
children: /* @__PURE__ */ jsx43(IconButton, {
|
|
10779
|
+
variant: !hasBackground ? "primary" : "plain",
|
|
10780
|
+
color: !hasBackground ? "gray" : "brand",
|
|
10781
|
+
size: "md",
|
|
10782
|
+
icon: ArrowLeftIcon
|
|
10783
|
+
})
|
|
10784
|
+
}) : /* @__PURE__ */ jsx43(IconButton, {
|
|
10905
10785
|
variant: !hasBackground ? "primary" : "plain",
|
|
10906
10786
|
color: !hasBackground ? "gray" : "brand",
|
|
10907
10787
|
size: "md",
|
|
10908
|
-
icon: ArrowLeftIcon
|
|
10788
|
+
icon: ArrowLeftIcon,
|
|
10789
|
+
onClick: onBack
|
|
10790
|
+
}),
|
|
10791
|
+
!isMobile2 && title && /* @__PURE__ */ jsx43(Separator, {
|
|
10792
|
+
orientation: "vertical",
|
|
10793
|
+
className: "h-5 ml-1.5 mr-3"
|
|
10909
10794
|
})
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
10913
|
-
size: "md",
|
|
10914
|
-
icon: ArrowLeftIcon,
|
|
10915
|
-
onClick: onBack
|
|
10916
|
-
}),
|
|
10917
|
-
!isMobile2 && title && /* @__PURE__ */ jsx45(Separator, {
|
|
10918
|
-
orientation: "vertical",
|
|
10919
|
-
className: "h-5 ml-1.5 mr-3"
|
|
10920
|
-
})
|
|
10921
|
-
]
|
|
10922
|
-
}),
|
|
10923
|
-
title && (!showSearchBar || !isMobile2) && (!(avatar === null || avatar === void 0 ? void 0 : avatar.logo) || !isMobile2) && /* @__PURE__ */ jsx45("div", {
|
|
10924
|
-
className: "flex-1 flex-shrink-0 absolute w-full md:relative md:w-auto flex items-center justify-center md:justify-start",
|
|
10925
|
-
children: /* @__PURE__ */ jsx45(Display, {
|
|
10795
|
+
]
|
|
10796
|
+
}),
|
|
10797
|
+
title && (!showSearchBar || !isMobile2) && (!(avatar === null || avatar === void 0 ? void 0 : avatar.logo) || !isMobile2) && /* @__PURE__ */ jsx43(Display, {
|
|
10926
10798
|
size: isMobile2 ? "xs" : "sm",
|
|
10927
|
-
className:
|
|
10799
|
+
className: "line-clamp-1",
|
|
10928
10800
|
children: title
|
|
10929
10801
|
})
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
/* @__PURE__ */ jsx45(Avatar, {
|
|
10937
|
-
size: "sm",
|
|
10938
|
-
src: avatar.logo
|
|
10939
|
-
}),
|
|
10940
|
-
avatar.name && !isMobile2 && /* @__PURE__ */ jsx45(Text, {
|
|
10941
|
-
size: "lg",
|
|
10942
|
-
weight: "medium",
|
|
10943
|
-
children: avatar.name
|
|
10944
|
-
})
|
|
10945
|
-
]
|
|
10946
|
-
}),
|
|
10947
|
-
/* @__PURE__ */ jsx45("div", {
|
|
10948
|
-
className: cn("w-fit flex md:w-auto justify-end", !(avatar === null || avatar === void 0 ? void 0 : avatar.logo) && "flex-1"),
|
|
10949
|
-
children: children ? /* @__PURE__ */ jsx45("div", {
|
|
10950
|
-
className: "w-fit",
|
|
10951
|
-
children: children
|
|
10952
|
-
}) : /* @__PURE__ */ jsx45(Fragment9, {
|
|
10953
|
-
children: icons || actions ? /* @__PURE__ */ jsxs25("div", {
|
|
10954
|
-
className: cn("flex justify-end items-center", icons && "space-x-1 min-w-[76px]", actions && "space-x-3"),
|
|
10802
|
+
]
|
|
10803
|
+
}),
|
|
10804
|
+
/* @__PURE__ */ jsx43("div", {
|
|
10805
|
+
className: "flex-shrink-0 flex justify-center items-center",
|
|
10806
|
+
children: (avatar === null || avatar === void 0 ? void 0 : avatar.logo) ? /* @__PURE__ */ jsxs24("div", {
|
|
10807
|
+
className: "flex items-center space-x-1.5",
|
|
10955
10808
|
children: [
|
|
10956
|
-
|
|
10957
|
-
|
|
10958
|
-
|
|
10959
|
-
color: "default",
|
|
10960
|
-
size: "md",
|
|
10961
|
-
icon: icon.icon,
|
|
10962
|
-
onClick: icon.onClick
|
|
10963
|
-
}, index);
|
|
10809
|
+
/* @__PURE__ */ jsx43(Avatar, {
|
|
10810
|
+
size: "sm",
|
|
10811
|
+
src: avatar.logo
|
|
10964
10812
|
}),
|
|
10965
|
-
|
|
10966
|
-
|
|
10967
|
-
|
|
10968
|
-
|
|
10969
|
-
children: action.label
|
|
10970
|
-
}), index);
|
|
10813
|
+
avatar.name && !isMobile2 && /* @__PURE__ */ jsx43(Text, {
|
|
10814
|
+
size: "lg",
|
|
10815
|
+
weight: "medium",
|
|
10816
|
+
children: avatar.name
|
|
10971
10817
|
})
|
|
10972
10818
|
]
|
|
10973
|
-
}) : /* @__PURE__ */
|
|
10819
|
+
}) : /* @__PURE__ */ jsx43("div", {
|
|
10820
|
+
className: "w-[76px]"
|
|
10821
|
+
})
|
|
10822
|
+
}),
|
|
10823
|
+
/* @__PURE__ */ jsx43("div", {
|
|
10824
|
+
className: "flex-1 flex justify-end items-center",
|
|
10825
|
+
children: /* @__PURE__ */ jsxs24("div", {
|
|
10826
|
+
className: "flex items-center space-x-3",
|
|
10974
10827
|
children: [
|
|
10975
|
-
|
|
10976
|
-
"aria-label": clearText || "Clear Filters",
|
|
10977
|
-
size: "md",
|
|
10978
|
-
variant: "secondary",
|
|
10979
|
-
color: "default",
|
|
10980
|
-
className: "hidden md:flex relative text-sm font-medium ml-2 mr-3 px-4 justify-center items-center",
|
|
10981
|
-
onClick: onClear,
|
|
10982
|
-
children: [
|
|
10983
|
-
/* @__PURE__ */ jsx45("div", {
|
|
10984
|
-
className: "relative mr-1.5",
|
|
10985
|
-
children: /* @__PURE__ */ jsx45(FilterIcon_default, {
|
|
10986
|
-
className: "w-5 h-5 fill-cc-Button-Secondary-fg-default"
|
|
10987
|
-
})
|
|
10988
|
-
}),
|
|
10989
|
-
/* @__PURE__ */ jsx45("span", {
|
|
10990
|
-
className: "hidden md:block",
|
|
10991
|
-
children: clearText || "Clear Filters"
|
|
10992
|
-
})
|
|
10993
|
-
]
|
|
10994
|
-
}),
|
|
10995
|
-
showSearchBar && /* @__PURE__ */ jsx45("div", {
|
|
10828
|
+
showSearchBar && (!isMobile2 && pageType === 1 || pageType === 2) && /* @__PURE__ */ jsx43("div", {
|
|
10996
10829
|
className: "relative w-full md:w-60",
|
|
10997
|
-
children: /* @__PURE__ */
|
|
10830
|
+
children: /* @__PURE__ */ jsx43(SearchBar, {
|
|
10998
10831
|
color: "gray",
|
|
10999
10832
|
size: "xs",
|
|
11000
10833
|
searchValue: searchValue,
|
|
@@ -11004,32 +10837,34 @@ function SecondaryNavigationBar(param) {
|
|
|
11004
10837
|
}
|
|
11005
10838
|
})
|
|
11006
10839
|
}),
|
|
11007
|
-
|
|
11008
|
-
className: "flex-shrink-0 flex relative text-sm font-medium px-4 justify-center items-center ml-3",
|
|
11009
|
-
"aria-label": clearText || "Clear Filters",
|
|
11010
|
-
size: "md",
|
|
11011
|
-
variant: "primary",
|
|
11012
|
-
onClick: onClear,
|
|
11013
|
-
children: /* @__PURE__ */ jsx45("div", {
|
|
11014
|
-
className: "relative",
|
|
11015
|
-
children: /* @__PURE__ */ jsx45(FilterIcon_default, {})
|
|
11016
|
-
})
|
|
11017
|
-
})
|
|
10840
|
+
children
|
|
11018
10841
|
]
|
|
11019
10842
|
})
|
|
11020
10843
|
})
|
|
10844
|
+
]
|
|
10845
|
+
}),
|
|
10846
|
+
showSearchBar && pageType === 1 && isMobile2 && /* @__PURE__ */ jsx43("div", {
|
|
10847
|
+
className: "relative w-full h-13 py-2",
|
|
10848
|
+
children: /* @__PURE__ */ jsx43(SearchBar, {
|
|
10849
|
+
color: "gray",
|
|
10850
|
+
size: "xs",
|
|
10851
|
+
searchValue: searchValue,
|
|
10852
|
+
placeholder: searchPlaceholder || "Search",
|
|
10853
|
+
onSearchChange: function(value1) {
|
|
10854
|
+
onSearchChange && onSearchChange(value1);
|
|
10855
|
+
}
|
|
11021
10856
|
})
|
|
11022
|
-
|
|
11023
|
-
|
|
10857
|
+
})
|
|
10858
|
+
]
|
|
11024
10859
|
});
|
|
11025
10860
|
}
|
|
11026
10861
|
// src/components/select.tsx
|
|
11027
10862
|
import { CheckIcon as CheckIcon2 } from "@heroicons/react/24/outline";
|
|
11028
10863
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
11029
10864
|
import { ChevronDown as ChevronDown2, ChevronUp } from "lucide-react";
|
|
11030
|
-
import * as
|
|
11031
|
-
import { Fragment as
|
|
11032
|
-
var Select =
|
|
10865
|
+
import * as React31 from "react";
|
|
10866
|
+
import { Fragment as Fragment8, jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
10867
|
+
var Select = React31.forwardRef(function(_param, ref) {
|
|
11033
10868
|
var children = _param.children, placeholder = _param.placeholder, options = _param.options, triggerClassName = _param.triggerClassName, props = _object_without_properties(_param, [
|
|
11034
10869
|
"children",
|
|
11035
10870
|
"placeholder",
|
|
@@ -11040,26 +10875,26 @@ var Select = React32.forwardRef(function(_param, ref) {
|
|
|
11040
10875
|
var icon = options === null || options === void 0 ? void 0 : (_options_find = options.find(function(item) {
|
|
11041
10876
|
return item.value === props.value;
|
|
11042
10877
|
})) === null || _options_find === void 0 ? void 0 : _options_find.icon;
|
|
11043
|
-
return /* @__PURE__ */
|
|
11044
|
-
children: Array.isArray(options) && options.length ? /* @__PURE__ */
|
|
10878
|
+
return /* @__PURE__ */ jsx44(SelectPrimitive.Root, _object_spread_props(_object_spread({}, props), {
|
|
10879
|
+
children: Array.isArray(options) && options.length ? /* @__PURE__ */ jsxs25(Fragment8, {
|
|
11045
10880
|
children: [
|
|
11046
|
-
/* @__PURE__ */
|
|
10881
|
+
/* @__PURE__ */ jsx44(SelectTrigger, {
|
|
11047
10882
|
className: cn(triggerClassName),
|
|
11048
|
-
children: /* @__PURE__ */
|
|
10883
|
+
children: /* @__PURE__ */ jsxs25("div", {
|
|
11049
10884
|
className: "flex items-center",
|
|
11050
10885
|
children: [
|
|
11051
|
-
/* @__PURE__ */
|
|
10886
|
+
/* @__PURE__ */ jsx44(SelectIcon, {
|
|
11052
10887
|
icon: icon
|
|
11053
10888
|
}),
|
|
11054
|
-
/* @__PURE__ */
|
|
10889
|
+
/* @__PURE__ */ jsx44(SelectValue, {
|
|
11055
10890
|
placeholder: placeholder
|
|
11056
10891
|
})
|
|
11057
10892
|
]
|
|
11058
10893
|
})
|
|
11059
10894
|
}),
|
|
11060
|
-
/* @__PURE__ */
|
|
10895
|
+
/* @__PURE__ */ jsx44(SelectContent, {
|
|
11061
10896
|
children: options.map(function(item, i) {
|
|
11062
|
-
return /* @__PURE__ */
|
|
10897
|
+
return /* @__PURE__ */ jsx44(SelectItem, _object_spread_props(_object_spread({}, item), {
|
|
11063
10898
|
children: item.label
|
|
11064
10899
|
}), "".concat(item.value, "_").concat(i));
|
|
11065
10900
|
})
|
|
@@ -11070,20 +10905,20 @@ var Select = React32.forwardRef(function(_param, ref) {
|
|
|
11070
10905
|
});
|
|
11071
10906
|
var SelectGroup = SelectPrimitive.Group;
|
|
11072
10907
|
var SelectValue = SelectPrimitive.Value;
|
|
11073
|
-
var SelectTrigger =
|
|
10908
|
+
var SelectTrigger = React31.forwardRef(function(_param, ref) {
|
|
11074
10909
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
11075
10910
|
"className",
|
|
11076
10911
|
"children"
|
|
11077
10912
|
]);
|
|
11078
|
-
return /* @__PURE__ */
|
|
10913
|
+
return /* @__PURE__ */ jsxs25(SelectPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
11079
10914
|
ref: ref,
|
|
11080
10915
|
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)
|
|
11081
10916
|
}, props), {
|
|
11082
10917
|
children: [
|
|
11083
10918
|
children,
|
|
11084
|
-
/* @__PURE__ */
|
|
10919
|
+
/* @__PURE__ */ jsx44(SelectPrimitive.Icon, {
|
|
11085
10920
|
asChild: true,
|
|
11086
|
-
children: /* @__PURE__ */
|
|
10921
|
+
children: /* @__PURE__ */ jsx44(ChevronDown2, {
|
|
11087
10922
|
className: "select-chevron h-5 w-5 text-Colors-Foreground-Subtle duration-200"
|
|
11088
10923
|
})
|
|
11089
10924
|
})
|
|
@@ -11091,47 +10926,47 @@ var SelectTrigger = React32.forwardRef(function(_param, ref) {
|
|
|
11091
10926
|
}));
|
|
11092
10927
|
});
|
|
11093
10928
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
11094
|
-
var SelectScrollUpButton =
|
|
10929
|
+
var SelectScrollUpButton = React31.forwardRef(function(_param, ref) {
|
|
11095
10930
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11096
10931
|
"className"
|
|
11097
10932
|
]);
|
|
11098
|
-
return /* @__PURE__ */
|
|
10933
|
+
return /* @__PURE__ */ jsx44(SelectPrimitive.ScrollUpButton, _object_spread_props(_object_spread({
|
|
11099
10934
|
ref: ref,
|
|
11100
10935
|
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
11101
10936
|
}, props), {
|
|
11102
|
-
children: /* @__PURE__ */
|
|
10937
|
+
children: /* @__PURE__ */ jsx44(ChevronUp, {
|
|
11103
10938
|
className: "h-4 w-4"
|
|
11104
10939
|
})
|
|
11105
10940
|
}));
|
|
11106
10941
|
});
|
|
11107
10942
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
11108
|
-
var SelectScrollDownButton =
|
|
10943
|
+
var SelectScrollDownButton = React31.forwardRef(function(_param, ref) {
|
|
11109
10944
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11110
10945
|
"className"
|
|
11111
10946
|
]);
|
|
11112
|
-
return /* @__PURE__ */
|
|
10947
|
+
return /* @__PURE__ */ jsx44(SelectPrimitive.ScrollDownButton, _object_spread_props(_object_spread({
|
|
11113
10948
|
ref: ref,
|
|
11114
10949
|
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
11115
10950
|
}, props), {
|
|
11116
|
-
children: /* @__PURE__ */
|
|
10951
|
+
children: /* @__PURE__ */ jsx44(ChevronDown2, {
|
|
11117
10952
|
className: "h-4 w-4"
|
|
11118
10953
|
})
|
|
11119
10954
|
}));
|
|
11120
10955
|
});
|
|
11121
10956
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
11122
|
-
var SelectContent =
|
|
10957
|
+
var SelectContent = React31.forwardRef(function(_param, ref) {
|
|
11123
10958
|
var className = _param.className, children = _param.children, _param_position = _param.position, position = _param_position === void 0 ? "popper" : _param_position, props = _object_without_properties(_param, [
|
|
11124
10959
|
"className",
|
|
11125
10960
|
"children",
|
|
11126
10961
|
"position"
|
|
11127
10962
|
]);
|
|
11128
|
-
return /* @__PURE__ */
|
|
11129
|
-
children: /* @__PURE__ */
|
|
10963
|
+
return /* @__PURE__ */ jsx44(SelectPrimitive.Portal, {
|
|
10964
|
+
children: /* @__PURE__ */ jsx44(SelectPrimitive.Content, _object_spread_props(_object_spread({
|
|
11130
10965
|
ref: ref,
|
|
11131
|
-
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-
|
|
10966
|
+
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),
|
|
11132
10967
|
position: position
|
|
11133
10968
|
}, props), {
|
|
11134
|
-
children: /* @__PURE__ */
|
|
10969
|
+
children: /* @__PURE__ */ jsx44(SelectPrimitive.Viewport, {
|
|
11135
10970
|
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)]"),
|
|
11136
10971
|
children: children
|
|
11137
10972
|
})
|
|
@@ -11139,11 +10974,11 @@ var SelectContent = React32.forwardRef(function(_param, ref) {
|
|
|
11139
10974
|
});
|
|
11140
10975
|
});
|
|
11141
10976
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
11142
|
-
var SelectLabel =
|
|
10977
|
+
var SelectLabel = React31.forwardRef(function(_param, ref) {
|
|
11143
10978
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11144
10979
|
"className"
|
|
11145
10980
|
]);
|
|
11146
|
-
return /* @__PURE__ */
|
|
10981
|
+
return /* @__PURE__ */ jsx44(SelectPrimitive.Label, _object_spread({
|
|
11147
10982
|
ref: ref,
|
|
11148
10983
|
className: cn("py-1 px-3 text-sm font-medium text-Colors-Text-Subtler", className)
|
|
11149
10984
|
}, props));
|
|
@@ -11154,55 +10989,55 @@ function SelectIcon(props) {
|
|
|
11154
10989
|
if (!icon) {
|
|
11155
10990
|
return null;
|
|
11156
10991
|
}
|
|
11157
|
-
return /* @__PURE__ */
|
|
10992
|
+
return /* @__PURE__ */ jsx44(SelectPrimitive.Icon, {
|
|
11158
10993
|
children: typeof icon === "string" ? // 如果是字符串URL,作为背景图片显示
|
|
11159
|
-
/* @__PURE__ */
|
|
10994
|
+
/* @__PURE__ */ jsx44("div", {
|
|
11160
10995
|
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"),
|
|
11161
10996
|
style: {
|
|
11162
10997
|
backgroundImage: "url('".concat(icon, "')")
|
|
11163
10998
|
}
|
|
11164
|
-
}) :
|
|
11165
|
-
/* @__PURE__ */
|
|
10999
|
+
}) : React31.isValidElement(icon) ? // 如果是React元素,直接渲染
|
|
11000
|
+
/* @__PURE__ */ jsx44("div", {
|
|
11166
11001
|
className: cn("mr-1.5 w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default"),
|
|
11167
11002
|
children: icon
|
|
11168
11003
|
}) : // 如果是组件类型,创建元素
|
|
11169
|
-
/* @__PURE__ */
|
|
11004
|
+
/* @__PURE__ */ jsx44("div", {
|
|
11170
11005
|
className: cn("mr-1.5 w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default"),
|
|
11171
|
-
children:
|
|
11006
|
+
children: React31.createElement(icon, {
|
|
11172
11007
|
className: cn("w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default")
|
|
11173
11008
|
})
|
|
11174
11009
|
})
|
|
11175
11010
|
});
|
|
11176
11011
|
}
|
|
11177
11012
|
SelectIcon.displayName = SelectPrimitive.Icon.displayName;
|
|
11178
|
-
var SelectItem =
|
|
11013
|
+
var SelectItem = React31.forwardRef(function(_param, ref) {
|
|
11179
11014
|
var className = _param.className, children = _param.children, icon = _param.icon, critical = _param.critical, props = _object_without_properties(_param, [
|
|
11180
11015
|
"className",
|
|
11181
11016
|
"children",
|
|
11182
11017
|
"icon",
|
|
11183
11018
|
"critical"
|
|
11184
11019
|
]);
|
|
11185
|
-
return /* @__PURE__ */
|
|
11020
|
+
return /* @__PURE__ */ jsxs25(SelectPrimitive.Item, _object_spread_props(_object_spread({
|
|
11186
11021
|
ref: ref,
|
|
11187
11022
|
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)
|
|
11188
11023
|
}, props), {
|
|
11189
11024
|
children: [
|
|
11190
|
-
/* @__PURE__ */
|
|
11025
|
+
/* @__PURE__ */ jsxs25("span", {
|
|
11191
11026
|
className: "flex items-center grow",
|
|
11192
11027
|
children: [
|
|
11193
|
-
/* @__PURE__ */
|
|
11028
|
+
/* @__PURE__ */ jsx44(SelectIcon, {
|
|
11194
11029
|
icon: icon,
|
|
11195
11030
|
critical: critical
|
|
11196
11031
|
}),
|
|
11197
|
-
/* @__PURE__ */
|
|
11032
|
+
/* @__PURE__ */ jsx44(SelectPrimitive.ItemText, {
|
|
11198
11033
|
children: children
|
|
11199
11034
|
})
|
|
11200
11035
|
]
|
|
11201
11036
|
}),
|
|
11202
|
-
/* @__PURE__ */
|
|
11037
|
+
/* @__PURE__ */ jsx44("span", {
|
|
11203
11038
|
className: "flex h-4 w-4 items-center justify-center",
|
|
11204
|
-
children: /* @__PURE__ */
|
|
11205
|
-
children: /* @__PURE__ */
|
|
11039
|
+
children: /* @__PURE__ */ jsx44(SelectPrimitive.ItemIndicator, {
|
|
11040
|
+
children: /* @__PURE__ */ jsx44(CheckIcon2, {
|
|
11206
11041
|
className: "h-4 w-4 text-Colors-Foreground-Subtle stroke-[2px]"
|
|
11207
11042
|
})
|
|
11208
11043
|
})
|
|
@@ -11211,11 +11046,11 @@ var SelectItem = React32.forwardRef(function(_param, ref) {
|
|
|
11211
11046
|
}));
|
|
11212
11047
|
});
|
|
11213
11048
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
11214
|
-
var SelectSeparator =
|
|
11049
|
+
var SelectSeparator = React31.forwardRef(function(_param, ref) {
|
|
11215
11050
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11216
11051
|
"className"
|
|
11217
11052
|
]);
|
|
11218
|
-
return /* @__PURE__ */
|
|
11053
|
+
return /* @__PURE__ */ jsx44(SelectPrimitive.Separator, _object_spread({
|
|
11219
11054
|
ref: ref,
|
|
11220
11055
|
className: cn("-mx-1 my-1 h-px bg-border-default", className)
|
|
11221
11056
|
}, props));
|
|
@@ -11225,17 +11060,17 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
|
11225
11060
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
11226
11061
|
import { cva as cva14 } from "class-variance-authority";
|
|
11227
11062
|
import { X as X2 } from "lucide-react";
|
|
11228
|
-
import * as
|
|
11229
|
-
import { jsx as
|
|
11063
|
+
import * as React32 from "react";
|
|
11064
|
+
import { jsx as jsx45, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
11230
11065
|
var Sheet = SheetPrimitive.Root;
|
|
11231
11066
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
11232
11067
|
var SheetClose = SheetPrimitive.Close;
|
|
11233
11068
|
var SheetPortal = SheetPrimitive.Portal;
|
|
11234
|
-
var SheetOverlay =
|
|
11069
|
+
var SheetOverlay = React32.forwardRef(function(_param, ref) {
|
|
11235
11070
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11236
11071
|
"className"
|
|
11237
11072
|
]);
|
|
11238
|
-
return /* @__PURE__ */
|
|
11073
|
+
return /* @__PURE__ */ jsx45(SheetPrimitive.Overlay, _object_spread_props(_object_spread({
|
|
11239
11074
|
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)
|
|
11240
11075
|
}, props), {
|
|
11241
11076
|
ref: ref
|
|
@@ -11255,16 +11090,16 @@ var sheetVariants = cva14("fixed z-50 gap-4 bg-white p-6 shadow-lg transition ea
|
|
|
11255
11090
|
side: "right"
|
|
11256
11091
|
}
|
|
11257
11092
|
});
|
|
11258
|
-
var SheetContent =
|
|
11093
|
+
var SheetContent = React32.forwardRef(function(_param, ref) {
|
|
11259
11094
|
var _param_side = _param.side, side = _param_side === void 0 ? "right" : _param_side, className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
11260
11095
|
"side",
|
|
11261
11096
|
"className",
|
|
11262
11097
|
"children"
|
|
11263
11098
|
]);
|
|
11264
|
-
return /* @__PURE__ */
|
|
11099
|
+
return /* @__PURE__ */ jsxs26(SheetPortal, {
|
|
11265
11100
|
children: [
|
|
11266
|
-
/* @__PURE__ */
|
|
11267
|
-
/* @__PURE__ */
|
|
11101
|
+
/* @__PURE__ */ jsx45(SheetOverlay, {}),
|
|
11102
|
+
/* @__PURE__ */ jsxs26(SheetPrimitive.Content, _object_spread_props(_object_spread({
|
|
11268
11103
|
ref: ref,
|
|
11269
11104
|
className: cn(sheetVariants({
|
|
11270
11105
|
side: side
|
|
@@ -11272,13 +11107,13 @@ var SheetContent = React33.forwardRef(function(_param, ref) {
|
|
|
11272
11107
|
}, props), {
|
|
11273
11108
|
children: [
|
|
11274
11109
|
children,
|
|
11275
|
-
/* @__PURE__ */
|
|
11110
|
+
/* @__PURE__ */ jsxs26(SheetPrimitive.Close, {
|
|
11276
11111
|
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",
|
|
11277
11112
|
children: [
|
|
11278
|
-
/* @__PURE__ */
|
|
11113
|
+
/* @__PURE__ */ jsx45(X2, {
|
|
11279
11114
|
className: "h-4 w-4"
|
|
11280
11115
|
}),
|
|
11281
|
-
/* @__PURE__ */
|
|
11116
|
+
/* @__PURE__ */ jsx45("span", {
|
|
11282
11117
|
className: "sr-only",
|
|
11283
11118
|
children: "Close"
|
|
11284
11119
|
})
|
|
@@ -11294,7 +11129,7 @@ var SheetHeader = function(_param) {
|
|
|
11294
11129
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11295
11130
|
"className"
|
|
11296
11131
|
]);
|
|
11297
|
-
return /* @__PURE__ */
|
|
11132
|
+
return /* @__PURE__ */ jsx45("div", _object_spread({
|
|
11298
11133
|
className: cn("flex flex-col space-y-2 text-center sm:text-left", className)
|
|
11299
11134
|
}, props));
|
|
11300
11135
|
};
|
|
@@ -11303,65 +11138,65 @@ var SheetFooter = function(_param) {
|
|
|
11303
11138
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11304
11139
|
"className"
|
|
11305
11140
|
]);
|
|
11306
|
-
return /* @__PURE__ */
|
|
11141
|
+
return /* @__PURE__ */ jsx45("div", _object_spread({
|
|
11307
11142
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
|
|
11308
11143
|
}, props));
|
|
11309
11144
|
};
|
|
11310
11145
|
SheetFooter.displayName = "SheetFooter";
|
|
11311
|
-
var SheetTitle =
|
|
11146
|
+
var SheetTitle = React32.forwardRef(function(_param, ref) {
|
|
11312
11147
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11313
11148
|
"className"
|
|
11314
11149
|
]);
|
|
11315
|
-
return /* @__PURE__ */
|
|
11150
|
+
return /* @__PURE__ */ jsx45(SheetPrimitive.Title, _object_spread({
|
|
11316
11151
|
ref: ref,
|
|
11317
11152
|
className: cn("text-lg font-semibold text-slate-950 dark:text-slate-50", className)
|
|
11318
11153
|
}, props));
|
|
11319
11154
|
});
|
|
11320
11155
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
11321
|
-
var SheetDescription =
|
|
11156
|
+
var SheetDescription = React32.forwardRef(function(_param, ref) {
|
|
11322
11157
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11323
11158
|
"className"
|
|
11324
11159
|
]);
|
|
11325
|
-
return /* @__PURE__ */
|
|
11160
|
+
return /* @__PURE__ */ jsx45(SheetPrimitive.Description, _object_spread({
|
|
11326
11161
|
ref: ref,
|
|
11327
11162
|
className: cn("text-sm text-slate-500 dark:text-slate-400", className)
|
|
11328
11163
|
}, props));
|
|
11329
11164
|
});
|
|
11330
11165
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
11331
11166
|
// src/components/skeleton.tsx
|
|
11332
|
-
import { jsx as
|
|
11167
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
11333
11168
|
function Skeleton(_param) {
|
|
11334
11169
|
var className = _param.className, _param_animate = _param.animate, animate = _param_animate === void 0 ? true : _param_animate, props = _object_without_properties(_param, [
|
|
11335
11170
|
"className",
|
|
11336
11171
|
"animate"
|
|
11337
11172
|
]);
|
|
11338
|
-
return /* @__PURE__ */
|
|
11173
|
+
return /* @__PURE__ */ jsx46("div", _object_spread({
|
|
11339
11174
|
className: cn("rounded-sm bg-Colors-Background-Normal-Secondary-Default", className, animate && "animate-pulse")
|
|
11340
11175
|
}, props));
|
|
11341
11176
|
}
|
|
11342
11177
|
// src/components/slider.tsx
|
|
11343
11178
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
11344
|
-
import * as
|
|
11345
|
-
import { jsx as
|
|
11346
|
-
var Slider =
|
|
11179
|
+
import * as React33 from "react";
|
|
11180
|
+
import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
11181
|
+
var Slider = React33.forwardRef(function(_param, ref) {
|
|
11347
11182
|
var className = _param.className, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, props = _object_without_properties(_param, [
|
|
11348
11183
|
"className",
|
|
11349
11184
|
"size"
|
|
11350
11185
|
]);
|
|
11351
|
-
return /* @__PURE__ */
|
|
11186
|
+
return /* @__PURE__ */ jsx47("div", {
|
|
11352
11187
|
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",
|
|
11353
|
-
children: /* @__PURE__ */
|
|
11188
|
+
children: /* @__PURE__ */ jsxs27(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
11354
11189
|
ref: ref,
|
|
11355
11190
|
className: cn("relative flex w-full touch-none select-none items-center", className)
|
|
11356
11191
|
}, props), {
|
|
11357
11192
|
children: [
|
|
11358
|
-
/* @__PURE__ */
|
|
11193
|
+
/* @__PURE__ */ jsx47(SliderPrimitive.Track, {
|
|
11359
11194
|
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"),
|
|
11360
|
-
children: /* @__PURE__ */
|
|
11195
|
+
children: /* @__PURE__ */ jsx47(SliderPrimitive.Range, {
|
|
11361
11196
|
className: "absolute h-full bg-Colors-Background-Brand-Default data-[disabled]:opacity-30"
|
|
11362
11197
|
})
|
|
11363
11198
|
}),
|
|
11364
|
-
/* @__PURE__ */
|
|
11199
|
+
/* @__PURE__ */ jsx47(SliderPrimitive.Thumb, {
|
|
11365
11200
|
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]")
|
|
11366
11201
|
})
|
|
11367
11202
|
]
|
|
@@ -11369,7 +11204,7 @@ var Slider = React34.forwardRef(function(_param, ref) {
|
|
|
11369
11204
|
});
|
|
11370
11205
|
});
|
|
11371
11206
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
11372
|
-
var SliderSingle =
|
|
11207
|
+
var SliderSingle = React33.forwardRef(function(_param, ref) {
|
|
11373
11208
|
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, [
|
|
11374
11209
|
"className",
|
|
11375
11210
|
"containerClassName",
|
|
@@ -11383,12 +11218,12 @@ var SliderSingle = React34.forwardRef(function(_param, ref) {
|
|
|
11383
11218
|
"onValueCommit",
|
|
11384
11219
|
"settable"
|
|
11385
11220
|
]);
|
|
11386
|
-
return /* @__PURE__ */
|
|
11221
|
+
return /* @__PURE__ */ jsxs27("div", {
|
|
11387
11222
|
className: "flex w-full items-center space-x-1.5",
|
|
11388
11223
|
children: [
|
|
11389
|
-
/* @__PURE__ */
|
|
11224
|
+
/* @__PURE__ */ jsx47("div", {
|
|
11390
11225
|
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),
|
|
11391
|
-
children: /* @__PURE__ */
|
|
11226
|
+
children: /* @__PURE__ */ jsxs27(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
11392
11227
|
ref: ref,
|
|
11393
11228
|
className: cn("relative flex w-full touch-none select-none items-center", className),
|
|
11394
11229
|
value: typeof value1 === "number" ? [
|
|
@@ -11405,21 +11240,21 @@ var SliderSingle = React34.forwardRef(function(_param, ref) {
|
|
|
11405
11240
|
}
|
|
11406
11241
|
}, props), {
|
|
11407
11242
|
children: [
|
|
11408
|
-
/* @__PURE__ */
|
|
11243
|
+
/* @__PURE__ */ jsx47(SliderPrimitive.Track, {
|
|
11409
11244
|
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),
|
|
11410
|
-
children: /* @__PURE__ */
|
|
11245
|
+
children: /* @__PURE__ */ jsx47(SliderPrimitive.Range, {
|
|
11411
11246
|
className: cn("absolute h-full bg-Colors-Background-Brand-Default data-[disabled]:opacity-30", rangeClassName)
|
|
11412
11247
|
})
|
|
11413
11248
|
}),
|
|
11414
|
-
/* @__PURE__ */
|
|
11249
|
+
/* @__PURE__ */ jsx47(SliderPrimitive.Thumb, {
|
|
11415
11250
|
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)
|
|
11416
11251
|
})
|
|
11417
11252
|
]
|
|
11418
11253
|
}))
|
|
11419
11254
|
}),
|
|
11420
|
-
settable && /* @__PURE__ */
|
|
11255
|
+
settable && /* @__PURE__ */ jsx47("div", {
|
|
11421
11256
|
className: "flex-shrink-0 w-14 h-9 flex justify-center items-center rounded-md",
|
|
11422
|
-
children: /* @__PURE__ */
|
|
11257
|
+
children: /* @__PURE__ */ jsx47(NumberInput, {
|
|
11423
11258
|
value: value1,
|
|
11424
11259
|
min: props === null || props === void 0 ? void 0 : props.min,
|
|
11425
11260
|
max: props === null || props === void 0 ? void 0 : props.max,
|
|
@@ -11437,8 +11272,8 @@ var SliderSingle = React34.forwardRef(function(_param, ref) {
|
|
|
11437
11272
|
SliderSingle.displayName = "SliderSingle";
|
|
11438
11273
|
// src/components/spinner.tsx
|
|
11439
11274
|
import { cva as cva15 } from "class-variance-authority";
|
|
11440
|
-
import { Loader2 as
|
|
11441
|
-
import { jsx as
|
|
11275
|
+
import { Loader2 as Loader23 } from "lucide-react";
|
|
11276
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
11442
11277
|
var spinnerVariants = cva15("animate-spin", {
|
|
11443
11278
|
variants: {
|
|
11444
11279
|
size: {
|
|
@@ -11470,7 +11305,7 @@ var spinnerVariants = cva15("animate-spin", {
|
|
|
11470
11305
|
});
|
|
11471
11306
|
function Spinner(props) {
|
|
11472
11307
|
var size = props.size, speed = props.speed, color = props.color, className = props.className;
|
|
11473
|
-
return /* @__PURE__ */
|
|
11308
|
+
return /* @__PURE__ */ jsx48(Loader23, {
|
|
11474
11309
|
className: cn(spinnerVariants({
|
|
11475
11310
|
size: size,
|
|
11476
11311
|
speed: speed,
|
|
@@ -11481,8 +11316,8 @@ function Spinner(props) {
|
|
|
11481
11316
|
// src/components/switch.tsx
|
|
11482
11317
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
11483
11318
|
import { cva as cva16 } from "class-variance-authority";
|
|
11484
|
-
import * as
|
|
11485
|
-
import { jsx as
|
|
11319
|
+
import * as React34 from "react";
|
|
11320
|
+
import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
11486
11321
|
var switchSize = {
|
|
11487
11322
|
sm: "w-7 h-4",
|
|
11488
11323
|
md: "w-[34px] h-5",
|
|
@@ -11564,7 +11399,7 @@ var switchThumbIconVariants = cva16("flex items-center justify-center", {
|
|
|
11564
11399
|
}
|
|
11565
11400
|
}
|
|
11566
11401
|
});
|
|
11567
|
-
var Switch =
|
|
11402
|
+
var Switch = React34.forwardRef(function(_param, ref) {
|
|
11568
11403
|
var className = _param.className, size = _param.size, label = _param.label, labelClassName = _param.labelClassName, vertical = _param.vertical, icon = _param.icon, props = _object_without_properties(_param, [
|
|
11569
11404
|
"className",
|
|
11570
11405
|
"size",
|
|
@@ -11573,23 +11408,23 @@ var Switch = React35.forwardRef(function(_param, ref) {
|
|
|
11573
11408
|
"vertical",
|
|
11574
11409
|
"icon"
|
|
11575
11410
|
]);
|
|
11576
|
-
var Component = label ? "div" :
|
|
11577
|
-
return /* @__PURE__ */
|
|
11411
|
+
var Component = label ? "div" : React34.Fragment;
|
|
11412
|
+
return /* @__PURE__ */ jsxs28(Component, {
|
|
11578
11413
|
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"),
|
|
11579
11414
|
children: [
|
|
11580
|
-
/* @__PURE__ */
|
|
11415
|
+
/* @__PURE__ */ jsx49(SwitchPrimitives.Root, _object_spread_props(_object_spread({
|
|
11581
11416
|
className: cn(switchRootVariants({
|
|
11582
11417
|
size: size,
|
|
11583
11418
|
vertical: vertical
|
|
11584
11419
|
}), className, vertical && "flex-col")
|
|
11585
11420
|
}, props), {
|
|
11586
11421
|
ref: ref,
|
|
11587
|
-
children: /* @__PURE__ */
|
|
11422
|
+
children: /* @__PURE__ */ jsx49(SwitchPrimitives.Thumb, {
|
|
11588
11423
|
className: cn(switchThumbVariants({
|
|
11589
11424
|
size: size,
|
|
11590
11425
|
vertical: vertical
|
|
11591
11426
|
}), "flex items-center justify-center"),
|
|
11592
|
-
children: icon && /* @__PURE__ */
|
|
11427
|
+
children: icon && /* @__PURE__ */ jsx49(Icon, {
|
|
11593
11428
|
component: icon,
|
|
11594
11429
|
className: switchThumbIconVariants({
|
|
11595
11430
|
size: size
|
|
@@ -11597,7 +11432,7 @@ var Switch = React35.forwardRef(function(_param, ref) {
|
|
|
11597
11432
|
})
|
|
11598
11433
|
})
|
|
11599
11434
|
})),
|
|
11600
|
-
label && /* @__PURE__ */
|
|
11435
|
+
label && /* @__PURE__ */ jsx49("span", {
|
|
11601
11436
|
className: cn("text-sm", labelClassName),
|
|
11602
11437
|
children: label
|
|
11603
11438
|
})
|
|
@@ -11608,8 +11443,8 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
|
11608
11443
|
// src/components/tabs.tsx
|
|
11609
11444
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
11610
11445
|
import { cva as cva17 } from "class-variance-authority";
|
|
11611
|
-
import * as
|
|
11612
|
-
import { jsx as
|
|
11446
|
+
import * as React35 from "react";
|
|
11447
|
+
import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
11613
11448
|
var TabsRoot = TabsPrimitive.Tabs;
|
|
11614
11449
|
var TabsList = TabsPrimitive.List;
|
|
11615
11450
|
var TabsTrigger = TabsPrimitive.Trigger;
|
|
@@ -11758,7 +11593,7 @@ var tabVariants = cva17("relative inline-flex h-full items-center overflow-hidde
|
|
|
11758
11593
|
rounded: "default"
|
|
11759
11594
|
}
|
|
11760
11595
|
});
|
|
11761
|
-
var Tabs2 =
|
|
11596
|
+
var Tabs2 = React35.forwardRef(function(_param, ref) {
|
|
11762
11597
|
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, [
|
|
11763
11598
|
"className",
|
|
11764
11599
|
"listClassName",
|
|
@@ -11769,14 +11604,14 @@ var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
|
11769
11604
|
"rounded",
|
|
11770
11605
|
"items"
|
|
11771
11606
|
]);
|
|
11772
|
-
return /* @__PURE__ */
|
|
11607
|
+
return /* @__PURE__ */ jsxs29(TabsPrimitive.Root, _object_spread_props(_object_spread({
|
|
11773
11608
|
ref: ref,
|
|
11774
11609
|
className: cn(className)
|
|
11775
11610
|
}, props), {
|
|
11776
11611
|
children: [
|
|
11777
|
-
/* @__PURE__ */
|
|
11612
|
+
/* @__PURE__ */ jsx50("div", {
|
|
11778
11613
|
className: "w-full flex justify-start items-center",
|
|
11779
|
-
children: /* @__PURE__ */
|
|
11614
|
+
children: /* @__PURE__ */ jsx50(TabsPrimitive.List, _object_spread_props(_object_spread({
|
|
11780
11615
|
ref: ref,
|
|
11781
11616
|
className: cn(tabListVariants({
|
|
11782
11617
|
variant: variant,
|
|
@@ -11785,7 +11620,7 @@ var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
|
11785
11620
|
}), listClassName)
|
|
11786
11621
|
}, props), {
|
|
11787
11622
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
11788
|
-
return /* @__PURE__ */
|
|
11623
|
+
return /* @__PURE__ */ jsx50(Tab, _object_spread({
|
|
11789
11624
|
isLink: isLink,
|
|
11790
11625
|
variant: variant,
|
|
11791
11626
|
size: size,
|
|
@@ -11794,10 +11629,10 @@ var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
|
11794
11629
|
})
|
|
11795
11630
|
}))
|
|
11796
11631
|
}),
|
|
11797
|
-
!isLink && /* @__PURE__ */
|
|
11632
|
+
!isLink && /* @__PURE__ */ jsx50("div", {
|
|
11798
11633
|
className: "w-full",
|
|
11799
11634
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
11800
|
-
return /* @__PURE__ */
|
|
11635
|
+
return /* @__PURE__ */ jsx50(TabsContent, {
|
|
11801
11636
|
value: item.value,
|
|
11802
11637
|
className: contentClassName,
|
|
11803
11638
|
children: item.children
|
|
@@ -11808,7 +11643,7 @@ var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
|
11808
11643
|
}));
|
|
11809
11644
|
});
|
|
11810
11645
|
Tabs2.displayName = TabsPrimitive.Root.displayName;
|
|
11811
|
-
var Tab =
|
|
11646
|
+
var Tab = React35.forwardRef(function(_param, ref) {
|
|
11812
11647
|
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, [
|
|
11813
11648
|
"className",
|
|
11814
11649
|
"variant",
|
|
@@ -11823,10 +11658,10 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
11823
11658
|
"rounded",
|
|
11824
11659
|
"onClickCallback"
|
|
11825
11660
|
]);
|
|
11826
|
-
return /* @__PURE__ */
|
|
11661
|
+
return /* @__PURE__ */ jsx50(Tooltip, _object_spread_props(_object_spread({
|
|
11827
11662
|
triggerClassName: cn("h-full flex justify-center items-center", variant === "underline" ? "w-fit justify-start items-end" : "w-full flex-1")
|
|
11828
11663
|
}, tooltip), {
|
|
11829
|
-
children: /* @__PURE__ */
|
|
11664
|
+
children: /* @__PURE__ */ jsx50(TabsPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
11830
11665
|
ref: ref,
|
|
11831
11666
|
className: cn("tabtrigger min-w-fit", tabVariants({
|
|
11832
11667
|
variant: variant,
|
|
@@ -11838,7 +11673,7 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
11838
11673
|
e.stopPropagation();
|
|
11839
11674
|
onClickCallback === null || onClickCallback === void 0 ? void 0 : onClickCallback(props.value);
|
|
11840
11675
|
},
|
|
11841
|
-
children: isLink && link ? /* @__PURE__ */
|
|
11676
|
+
children: isLink && link ? /* @__PURE__ */ jsxs29(link_default, {
|
|
11842
11677
|
prefetch: true,
|
|
11843
11678
|
href: link,
|
|
11844
11679
|
className: cn("relative h-full w-full flex justify-center items-center"),
|
|
@@ -11849,28 +11684,28 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
11849
11684
|
},
|
|
11850
11685
|
children: [
|
|
11851
11686
|
label,
|
|
11852
|
-
hasUnRead && /* @__PURE__ */
|
|
11687
|
+
hasUnRead && /* @__PURE__ */ jsx50(Badge, {
|
|
11853
11688
|
className: "-mt-2.5"
|
|
11854
11689
|
})
|
|
11855
11690
|
]
|
|
11856
|
-
}) : /* @__PURE__ */
|
|
11691
|
+
}) : /* @__PURE__ */ jsxs29("div", {
|
|
11857
11692
|
className: "relative flex justify-center items-center",
|
|
11858
11693
|
children: [
|
|
11859
|
-
label && /* @__PURE__ */
|
|
11694
|
+
label && /* @__PURE__ */ jsx50("span", {
|
|
11860
11695
|
className: cn("text-inherit"),
|
|
11861
11696
|
children: label
|
|
11862
11697
|
}),
|
|
11863
|
-
icon && /* @__PURE__ */
|
|
11698
|
+
icon && /* @__PURE__ */ jsx50(Icon, {
|
|
11864
11699
|
component: icon,
|
|
11865
11700
|
size: "md",
|
|
11866
11701
|
className: "text-inherit"
|
|
11867
11702
|
}),
|
|
11868
|
-
count2 ? /* @__PURE__ */
|
|
11703
|
+
count2 ? /* @__PURE__ */ jsx50(Text, {
|
|
11869
11704
|
size: "sm",
|
|
11870
11705
|
className: "ml-1 text-Colors-Text-Subtlest",
|
|
11871
11706
|
children: count2
|
|
11872
11707
|
}) : null,
|
|
11873
|
-
hasUnRead && /* @__PURE__ */
|
|
11708
|
+
hasUnRead && /* @__PURE__ */ jsx50(Badge, {
|
|
11874
11709
|
className: "-mt-2.5"
|
|
11875
11710
|
})
|
|
11876
11711
|
]
|
|
@@ -11879,20 +11714,20 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
11879
11714
|
}));
|
|
11880
11715
|
});
|
|
11881
11716
|
Tab.displayName = TabsPrimitive.Trigger.displayName;
|
|
11882
|
-
var TabsContent =
|
|
11717
|
+
var TabsContent = React35.forwardRef(function(_param, ref) {
|
|
11883
11718
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11884
11719
|
"className"
|
|
11885
11720
|
]);
|
|
11886
|
-
return /* @__PURE__ */
|
|
11721
|
+
return /* @__PURE__ */ jsx50(TabsPrimitive.Content, _object_spread({
|
|
11887
11722
|
ref: ref,
|
|
11888
11723
|
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)
|
|
11889
11724
|
}, props));
|
|
11890
11725
|
});
|
|
11891
11726
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
11892
11727
|
// src/components/textarea.tsx
|
|
11893
|
-
import * as
|
|
11894
|
-
import { jsx as
|
|
11895
|
-
var Textarea =
|
|
11728
|
+
import * as React36 from "react";
|
|
11729
|
+
import { jsx as jsx51, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
11730
|
+
var Textarea = React36.forwardRef(function(_param, ref) {
|
|
11896
11731
|
var className = _param.className, maxLength = _param.maxLength, value1 = _param.value, error = _param.error, maxLengthClassName = _param.maxLengthClassName, props = _object_without_properties(_param, [
|
|
11897
11732
|
"className",
|
|
11898
11733
|
"maxLength",
|
|
@@ -11901,20 +11736,20 @@ var Textarea = React37.forwardRef(function(_param, ref) {
|
|
|
11901
11736
|
"maxLengthClassName"
|
|
11902
11737
|
]);
|
|
11903
11738
|
var _value_toString, _value_toString1;
|
|
11904
|
-
return /* @__PURE__ */
|
|
11739
|
+
return /* @__PURE__ */ jsxs30("div", {
|
|
11905
11740
|
children: [
|
|
11906
|
-
/* @__PURE__ */
|
|
11741
|
+
/* @__PURE__ */ jsxs30("div", {
|
|
11907
11742
|
className: "relative",
|
|
11908
11743
|
children: [
|
|
11909
|
-
/* @__PURE__ */
|
|
11910
|
-
className: cn("w-full min-h-[123px] p-3 pb-10 rounded-
|
|
11744
|
+
/* @__PURE__ */ jsx51("textarea", _object_spread({
|
|
11745
|
+
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),
|
|
11911
11746
|
ref: ref,
|
|
11912
11747
|
maxLength: maxLength,
|
|
11913
11748
|
value: value1
|
|
11914
11749
|
}, props)),
|
|
11915
|
-
maxLength ? /* @__PURE__ */
|
|
11750
|
+
maxLength ? /* @__PURE__ */ jsx51("div", {
|
|
11916
11751
|
className: cn("absolute text-right bottom-5 right-4 border-Colors-Border-Default", maxLengthClassName),
|
|
11917
|
-
children: /* @__PURE__ */
|
|
11752
|
+
children: /* @__PURE__ */ jsx51(Text, {
|
|
11918
11753
|
size: "sm",
|
|
11919
11754
|
color: "subtlest",
|
|
11920
11755
|
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)
|
|
@@ -11922,9 +11757,9 @@ var Textarea = React37.forwardRef(function(_param, ref) {
|
|
|
11922
11757
|
}) : null
|
|
11923
11758
|
]
|
|
11924
11759
|
}),
|
|
11925
|
-
error && /* @__PURE__ */
|
|
11760
|
+
error && /* @__PURE__ */ jsx51("div", {
|
|
11926
11761
|
className: "w-full",
|
|
11927
|
-
children: /* @__PURE__ */
|
|
11762
|
+
children: /* @__PURE__ */ jsx51(Text, {
|
|
11928
11763
|
className: "text-wrap",
|
|
11929
11764
|
size: "sm",
|
|
11930
11765
|
weight: "regular",
|
|
@@ -11939,8 +11774,8 @@ Textarea.displayName = "Textarea";
|
|
|
11939
11774
|
// src/components/toggle.tsx
|
|
11940
11775
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
11941
11776
|
import { cva as cva18 } from "class-variance-authority";
|
|
11942
|
-
import * as
|
|
11943
|
-
import { jsx as
|
|
11777
|
+
import * as React37 from "react";
|
|
11778
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
11944
11779
|
var toggleVariants = cva18("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", {
|
|
11945
11780
|
variants: {
|
|
11946
11781
|
variant: {
|
|
@@ -11959,13 +11794,13 @@ var toggleVariants = cva18("inline-flex items-center justify-center rounded-sm t
|
|
|
11959
11794
|
size: "default"
|
|
11960
11795
|
}
|
|
11961
11796
|
});
|
|
11962
|
-
var Toggle =
|
|
11797
|
+
var Toggle = React37.forwardRef(function(_param, ref) {
|
|
11963
11798
|
var className = _param.className, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
|
|
11964
11799
|
"className",
|
|
11965
11800
|
"variant",
|
|
11966
11801
|
"size"
|
|
11967
11802
|
]);
|
|
11968
|
-
return /* @__PURE__ */
|
|
11803
|
+
return /* @__PURE__ */ jsx52(TogglePrimitive.Root, _object_spread({
|
|
11969
11804
|
ref: ref,
|
|
11970
11805
|
className: cn(toggleVariants({
|
|
11971
11806
|
variant: variant,
|
|
@@ -11977,24 +11812,24 @@ var Toggle = React38.forwardRef(function(_param, ref) {
|
|
|
11977
11812
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
11978
11813
|
// src/components/toggle-group.tsx
|
|
11979
11814
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
11980
|
-
import * as
|
|
11981
|
-
import { jsx as
|
|
11982
|
-
var ToggleGroupContext =
|
|
11815
|
+
import * as React38 from "react";
|
|
11816
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
11817
|
+
var ToggleGroupContext = React38.createContext({
|
|
11983
11818
|
size: "default",
|
|
11984
11819
|
variant: "default"
|
|
11985
11820
|
});
|
|
11986
|
-
var ToggleGroup =
|
|
11821
|
+
var ToggleGroup = React38.forwardRef(function(_param, ref) {
|
|
11987
11822
|
var className = _param.className, variant = _param.variant, size = _param.size, children = _param.children, props = _object_without_properties(_param, [
|
|
11988
11823
|
"className",
|
|
11989
11824
|
"variant",
|
|
11990
11825
|
"size",
|
|
11991
11826
|
"children"
|
|
11992
11827
|
]);
|
|
11993
|
-
return /* @__PURE__ */
|
|
11828
|
+
return /* @__PURE__ */ jsx53(ToggleGroupPrimitive.Root, _object_spread_props(_object_spread({
|
|
11994
11829
|
ref: ref,
|
|
11995
11830
|
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)
|
|
11996
11831
|
}, props), {
|
|
11997
|
-
children: /* @__PURE__ */
|
|
11832
|
+
children: /* @__PURE__ */ jsx53(ToggleGroupContext.Provider, {
|
|
11998
11833
|
value: {
|
|
11999
11834
|
variant: variant,
|
|
12000
11835
|
size: size
|
|
@@ -12004,15 +11839,15 @@ var ToggleGroup = React39.forwardRef(function(_param, ref) {
|
|
|
12004
11839
|
}));
|
|
12005
11840
|
});
|
|
12006
11841
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
12007
|
-
var ToggleGroupItem =
|
|
11842
|
+
var ToggleGroupItem = React38.forwardRef(function(_param, ref) {
|
|
12008
11843
|
var className = _param.className, children = _param.children, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
|
|
12009
11844
|
"className",
|
|
12010
11845
|
"children",
|
|
12011
11846
|
"variant",
|
|
12012
11847
|
"size"
|
|
12013
11848
|
]);
|
|
12014
|
-
var context =
|
|
12015
|
-
return /* @__PURE__ */
|
|
11849
|
+
var context = React38.useContext(ToggleGroupContext);
|
|
11850
|
+
return /* @__PURE__ */ jsx53(ToggleGroupPrimitive.Item, _object_spread_props(_object_spread({
|
|
12016
11851
|
ref: ref,
|
|
12017
11852
|
className: cn(toggleVariants({
|
|
12018
11853
|
variant: context.variant || variant,
|
|
@@ -12025,7 +11860,7 @@ var ToggleGroupItem = React39.forwardRef(function(_param, ref) {
|
|
|
12025
11860
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
12026
11861
|
// src/components/chips.tsx
|
|
12027
11862
|
import { cva as cva19 } from "class-variance-authority";
|
|
12028
|
-
import { jsx as
|
|
11863
|
+
import { jsx as jsx54, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
12029
11864
|
var chipsVariants = cva19('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', {
|
|
12030
11865
|
variants: {
|
|
12031
11866
|
variant: {
|
|
@@ -12044,7 +11879,7 @@ var chipsVariants = cva19('min-w-10 flex items-center justify-center text-Colors
|
|
|
12044
11879
|
});
|
|
12045
11880
|
function Chips(props) {
|
|
12046
11881
|
var variant = props.variant, size = props.size, count2 = props.count, className = props.className, label = props.label, disabled = props.disabled, selected = props.selected;
|
|
12047
|
-
return /* @__PURE__ */
|
|
11882
|
+
return /* @__PURE__ */ jsxs31("div", {
|
|
12048
11883
|
"data-disabled": disabled,
|
|
12049
11884
|
"data-selected": selected,
|
|
12050
11885
|
className: cn(chipsVariants({
|
|
@@ -12053,7 +11888,7 @@ function Chips(props) {
|
|
|
12053
11888
|
}), className),
|
|
12054
11889
|
children: [
|
|
12055
11890
|
label,
|
|
12056
|
-
count2 && count2 > 0 ? /* @__PURE__ */
|
|
11891
|
+
count2 && count2 > 0 ? /* @__PURE__ */ jsx54("span", {
|
|
12057
11892
|
className: "h-full pt-0.5 ml-1 font-medium text-xs leading-[1.3]",
|
|
12058
11893
|
children: count2
|
|
12059
11894
|
}) : null
|
|
@@ -12063,9 +11898,9 @@ function Chips(props) {
|
|
|
12063
11898
|
// src/components/toast/toast.tsx
|
|
12064
11899
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
12065
11900
|
import { cva as cva20 } from "class-variance-authority";
|
|
12066
|
-
import * as
|
|
11901
|
+
import * as React39 from "react";
|
|
12067
11902
|
import XMarkIcon3 from "@heroicons/react/24/outline/esm/XMarkIcon";
|
|
12068
|
-
import { jsx as
|
|
11903
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
12069
11904
|
var ToastProvider = ToastPrimitives.Provider;
|
|
12070
11905
|
var viewportPositionVariants = cva20("fixed z-[1000001] flex max-h-screen w-full p-0 gap-2", {
|
|
12071
11906
|
variants: {
|
|
@@ -12084,12 +11919,12 @@ var viewportPositionVariants = cva20("fixed z-[1000001] flex max-h-screen w-full
|
|
|
12084
11919
|
position: "top-right"
|
|
12085
11920
|
}
|
|
12086
11921
|
});
|
|
12087
|
-
var ToastViewport =
|
|
11922
|
+
var ToastViewport = React39.forwardRef(function(_param, ref) {
|
|
12088
11923
|
var className = _param.className, position = _param.position, props = _object_without_properties(_param, [
|
|
12089
11924
|
"className",
|
|
12090
11925
|
"position"
|
|
12091
11926
|
]);
|
|
12092
|
-
return /* @__PURE__ */
|
|
11927
|
+
return /* @__PURE__ */ jsx55(ToastPrimitives.Viewport, _object_spread({
|
|
12093
11928
|
ref: ref,
|
|
12094
11929
|
className: cn(viewportPositionVariants({
|
|
12095
11930
|
position: position
|
|
@@ -12121,13 +11956,13 @@ var toastVariants = cva20("group pointer-events-auto relative flex w-full items-
|
|
|
12121
11956
|
position: "top-right"
|
|
12122
11957
|
}
|
|
12123
11958
|
});
|
|
12124
|
-
var Toast =
|
|
11959
|
+
var Toast = React39.forwardRef(function(_param, ref) {
|
|
12125
11960
|
var className = _param.className, variant = _param.variant, position = _param.position, props = _object_without_properties(_param, [
|
|
12126
11961
|
"className",
|
|
12127
11962
|
"variant",
|
|
12128
11963
|
"position"
|
|
12129
11964
|
]);
|
|
12130
|
-
return /* @__PURE__ */
|
|
11965
|
+
return /* @__PURE__ */ jsx55(ToastPrimitives.Root, _object_spread({
|
|
12131
11966
|
ref: ref,
|
|
12132
11967
|
className: cn(toastVariants({
|
|
12133
11968
|
variant: variant,
|
|
@@ -12137,46 +11972,46 @@ var Toast = React40.forwardRef(function(_param, ref) {
|
|
|
12137
11972
|
}, props));
|
|
12138
11973
|
});
|
|
12139
11974
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
12140
|
-
var ToastAction =
|
|
11975
|
+
var ToastAction = React39.forwardRef(function(_param, ref) {
|
|
12141
11976
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12142
11977
|
"className"
|
|
12143
11978
|
]);
|
|
12144
|
-
return /* @__PURE__ */
|
|
11979
|
+
return /* @__PURE__ */ jsx55(ToastPrimitives.Action, _object_spread({
|
|
12145
11980
|
ref: ref,
|
|
12146
11981
|
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)
|
|
12147
11982
|
}, props));
|
|
12148
11983
|
});
|
|
12149
11984
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
12150
|
-
var ToastClose =
|
|
11985
|
+
var ToastClose = React39.forwardRef(function(_param, ref) {
|
|
12151
11986
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12152
11987
|
"className"
|
|
12153
11988
|
]);
|
|
12154
|
-
return /* @__PURE__ */
|
|
11989
|
+
return /* @__PURE__ */ jsx55(ToastPrimitives.Close, _object_spread_props(_object_spread({
|
|
12155
11990
|
ref: ref,
|
|
12156
11991
|
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),
|
|
12157
11992
|
"toast-close": ""
|
|
12158
11993
|
}, props), {
|
|
12159
|
-
children: /* @__PURE__ */
|
|
11994
|
+
children: /* @__PURE__ */ jsx55(XMarkIcon3, {
|
|
12160
11995
|
className: "h-5 w-5"
|
|
12161
11996
|
})
|
|
12162
11997
|
}));
|
|
12163
11998
|
});
|
|
12164
11999
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
12165
|
-
var ToastTitle =
|
|
12000
|
+
var ToastTitle = React39.forwardRef(function(_param, ref) {
|
|
12166
12001
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12167
12002
|
"className"
|
|
12168
12003
|
]);
|
|
12169
|
-
return /* @__PURE__ */
|
|
12004
|
+
return /* @__PURE__ */ jsx55(ToastPrimitives.Title, _object_spread({
|
|
12170
12005
|
ref: ref,
|
|
12171
12006
|
className: cn("text-sm font-semibold", className)
|
|
12172
12007
|
}, props));
|
|
12173
12008
|
});
|
|
12174
12009
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
12175
|
-
var ToastDescription =
|
|
12010
|
+
var ToastDescription = React39.forwardRef(function(_param, ref) {
|
|
12176
12011
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
12177
12012
|
"className"
|
|
12178
12013
|
]);
|
|
12179
|
-
return /* @__PURE__ */
|
|
12014
|
+
return /* @__PURE__ */ jsx55(ToastPrimitives.Description, _object_spread({
|
|
12180
12015
|
ref: ref,
|
|
12181
12016
|
className: cn("text-sm opacity-90", className)
|
|
12182
12017
|
}, props));
|
|
@@ -12187,8 +12022,8 @@ import CheckCircleIcon2 from "@heroicons/react/24/outline/esm/CheckCircleIcon";
|
|
|
12187
12022
|
import InformationCircleIcon2 from "@heroicons/react/24/outline/esm/InformationCircleIcon";
|
|
12188
12023
|
import XCircleIcon2 from "@heroicons/react/24/outline/esm/XCircleIcon";
|
|
12189
12024
|
// src/components/toast/use-toast.tsx
|
|
12190
|
-
import * as
|
|
12191
|
-
import { jsx as
|
|
12025
|
+
import * as React40 from "react";
|
|
12026
|
+
import { jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
12192
12027
|
var TOAST_LIMIT = 8;
|
|
12193
12028
|
var TOAST_REMOVE_DELAY = 1e3;
|
|
12194
12029
|
var count = 0;
|
|
@@ -12291,10 +12126,10 @@ function toast(_param) {
|
|
|
12291
12126
|
toast: _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, props), {
|
|
12292
12127
|
position: position
|
|
12293
12128
|
}), actions && {
|
|
12294
|
-
action: /* @__PURE__ */
|
|
12129
|
+
action: /* @__PURE__ */ jsxs32("div", {
|
|
12295
12130
|
className: "flex justify-start items-center gap-2",
|
|
12296
12131
|
children: [
|
|
12297
|
-
(actions === null || actions === void 0 ? void 0 : actions.dismissText) && /* @__PURE__ */
|
|
12132
|
+
(actions === null || actions === void 0 ? void 0 : actions.dismissText) && /* @__PURE__ */ jsx56(Text, {
|
|
12298
12133
|
size: "sm",
|
|
12299
12134
|
weight: "medium",
|
|
12300
12135
|
color: "brand",
|
|
@@ -12304,13 +12139,13 @@ function toast(_param) {
|
|
|
12304
12139
|
},
|
|
12305
12140
|
children: actions === null || actions === void 0 ? void 0 : actions.dismissText
|
|
12306
12141
|
}),
|
|
12307
|
-
(actions === null || actions === void 0 ? void 0 : actions.view) && actions.viewUrl && /* @__PURE__ */
|
|
12142
|
+
(actions === null || actions === void 0 ? void 0 : actions.view) && actions.viewUrl && /* @__PURE__ */ jsx56(link_default, {
|
|
12308
12143
|
href: actions.viewUrl,
|
|
12309
12144
|
target: "_blank",
|
|
12310
12145
|
rel: "noreferrer noopener",
|
|
12311
|
-
children: /* @__PURE__ */
|
|
12146
|
+
children: /* @__PURE__ */ jsx56("div", {
|
|
12312
12147
|
className: "flex items-center gap-1.5",
|
|
12313
|
-
children: /* @__PURE__ */
|
|
12148
|
+
children: /* @__PURE__ */ jsx56(Text, {
|
|
12314
12149
|
size: "sm",
|
|
12315
12150
|
weight: "medium",
|
|
12316
12151
|
color: "default",
|
|
@@ -12336,8 +12171,8 @@ function toast(_param) {
|
|
|
12336
12171
|
};
|
|
12337
12172
|
}
|
|
12338
12173
|
function useToast() {
|
|
12339
|
-
var
|
|
12340
|
-
|
|
12174
|
+
var _React40_useState = _sliced_to_array(React40.useState(memoryState), 2), state = _React40_useState[0], setState = _React40_useState[1];
|
|
12175
|
+
React40.useEffect(function() {
|
|
12341
12176
|
listeners.push(setState);
|
|
12342
12177
|
return function() {
|
|
12343
12178
|
var index = listeners.indexOf(setState);
|
|
@@ -12359,13 +12194,13 @@ function useToast() {
|
|
|
12359
12194
|
});
|
|
12360
12195
|
}
|
|
12361
12196
|
// src/components/toast/toaster.tsx
|
|
12362
|
-
import
|
|
12197
|
+
import React41 from "react";
|
|
12363
12198
|
import { ExclamationTriangleIcon as ExclamationTriangleIcon2 } from "@heroicons/react/24/outline";
|
|
12364
|
-
import { jsx as
|
|
12199
|
+
import { jsx as jsx57, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
12365
12200
|
function Toaster() {
|
|
12366
12201
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref_position = _ref.position, position = _ref_position === void 0 ? "top-right" : _ref_position;
|
|
12367
12202
|
var toasts = useToast().toasts;
|
|
12368
|
-
var positionGroups =
|
|
12203
|
+
var positionGroups = React41.useMemo(function() {
|
|
12369
12204
|
var groups = {};
|
|
12370
12205
|
var allPositions = [
|
|
12371
12206
|
"top-left",
|
|
@@ -12395,22 +12230,22 @@ function Toaster() {
|
|
|
12395
12230
|
]);
|
|
12396
12231
|
var renderToast = function(toast4) {
|
|
12397
12232
|
var id = toast4.id, title = toast4.title, description = toast4.description, action = toast4.action, variant = toast4.variant, toastPosition = toast4.position;
|
|
12398
|
-
var
|
|
12233
|
+
var renderIcon2 = function(variant2) {
|
|
12399
12234
|
switch(variant2){
|
|
12400
12235
|
case "info":
|
|
12401
|
-
return /* @__PURE__ */
|
|
12236
|
+
return /* @__PURE__ */ jsx57(InformationCircleIcon2, {
|
|
12402
12237
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
12403
12238
|
});
|
|
12404
12239
|
case "success":
|
|
12405
|
-
return /* @__PURE__ */
|
|
12240
|
+
return /* @__PURE__ */ jsx57(CheckCircleIcon2, {
|
|
12406
12241
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
12407
12242
|
});
|
|
12408
12243
|
case "warning":
|
|
12409
|
-
return /* @__PURE__ */
|
|
12244
|
+
return /* @__PURE__ */ jsx57(ExclamationTriangleIcon2, {
|
|
12410
12245
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
12411
12246
|
});
|
|
12412
12247
|
case "error":
|
|
12413
|
-
return /* @__PURE__ */
|
|
12248
|
+
return /* @__PURE__ */ jsx57(XCircleIcon2, {
|
|
12414
12249
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
12415
12250
|
});
|
|
12416
12251
|
}
|
|
@@ -12427,26 +12262,26 @@ function Toaster() {
|
|
|
12427
12262
|
return "bg-Colors-Background-Critical-Default";
|
|
12428
12263
|
}
|
|
12429
12264
|
};
|
|
12430
|
-
return /* @__PURE__ */
|
|
12265
|
+
return /* @__PURE__ */ jsxs33(Toast, _object_spread_props(_object_spread({}, toast4), {
|
|
12431
12266
|
position: toastPosition,
|
|
12432
12267
|
children: [
|
|
12433
|
-
/* @__PURE__ */
|
|
12268
|
+
/* @__PURE__ */ jsx57("div", {
|
|
12434
12269
|
className: "flex flex-col gap-3",
|
|
12435
|
-
children: /* @__PURE__ */
|
|
12270
|
+
children: /* @__PURE__ */ jsxs33("div", {
|
|
12436
12271
|
className: "flex items-start gap-3",
|
|
12437
12272
|
children: [
|
|
12438
|
-
/* @__PURE__ */
|
|
12273
|
+
/* @__PURE__ */ jsx57("div", {
|
|
12439
12274
|
className: cn("flex h-10 w-10 flex-shrink-0 flex-grow-0 items-center justify-center rounded-full", getBackgroundColor(variant)),
|
|
12440
|
-
children:
|
|
12275
|
+
children: renderIcon2(variant)
|
|
12441
12276
|
}),
|
|
12442
|
-
/* @__PURE__ */
|
|
12277
|
+
/* @__PURE__ */ jsxs33("div", {
|
|
12443
12278
|
className: "grid gap-1",
|
|
12444
12279
|
children: [
|
|
12445
|
-
title && /* @__PURE__ */
|
|
12280
|
+
title && /* @__PURE__ */ jsx57(ToastTitle, {
|
|
12446
12281
|
className: "text-base text-Colors-Text-Default",
|
|
12447
12282
|
children: title
|
|
12448
12283
|
}),
|
|
12449
|
-
description && /* @__PURE__ */
|
|
12284
|
+
description && /* @__PURE__ */ jsx57(ToastDescription, {
|
|
12450
12285
|
className: "text-sm text-Colors-Text-Subtle",
|
|
12451
12286
|
children: description
|
|
12452
12287
|
}),
|
|
@@ -12456,17 +12291,17 @@ function Toaster() {
|
|
|
12456
12291
|
]
|
|
12457
12292
|
})
|
|
12458
12293
|
}),
|
|
12459
|
-
/* @__PURE__ */
|
|
12294
|
+
/* @__PURE__ */ jsx57(ToastClose, {})
|
|
12460
12295
|
]
|
|
12461
12296
|
}), id);
|
|
12462
12297
|
};
|
|
12463
|
-
return /* @__PURE__ */
|
|
12298
|
+
return /* @__PURE__ */ jsx57(ToastProvider, {
|
|
12464
12299
|
children: Object.entries(positionGroups).map(function(param) {
|
|
12465
12300
|
var _param = _sliced_to_array(param, 2), pos = _param[0], toastsForPosition = _param[1];
|
|
12466
|
-
return /* @__PURE__ */
|
|
12301
|
+
return /* @__PURE__ */ jsxs33(React41.Fragment, {
|
|
12467
12302
|
children: [
|
|
12468
12303
|
toastsForPosition.map(renderToast),
|
|
12469
|
-
toastsForPosition.length > 0 && /* @__PURE__ */
|
|
12304
|
+
toastsForPosition.length > 0 && /* @__PURE__ */ jsx57(ToastViewport, {
|
|
12470
12305
|
position: pos
|
|
12471
12306
|
})
|
|
12472
12307
|
]
|
|
@@ -12488,7 +12323,7 @@ import "swiper/css/pagination";
|
|
|
12488
12323
|
// src/components/swiper/index.module.scss
|
|
12489
12324
|
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== */';
|
|
12490
12325
|
// src/components/swiper/index.tsx
|
|
12491
|
-
import { jsx as
|
|
12326
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
12492
12327
|
var swiperVariants = cva21("", {
|
|
12493
12328
|
variants: {
|
|
12494
12329
|
rounded: {
|
|
@@ -12624,9 +12459,9 @@ function Swiper(props) {
|
|
|
12624
12459
|
}
|
|
12625
12460
|
}
|
|
12626
12461
|
};
|
|
12627
|
-
return /* @__PURE__ */
|
|
12462
|
+
return /* @__PURE__ */ jsx58("div", {
|
|
12628
12463
|
className: index_module_default.swiperBox,
|
|
12629
|
-
children: /* @__PURE__ */
|
|
12464
|
+
children: /* @__PURE__ */ jsx58(SwiperComponent, _object_spread_props(_object_spread({
|
|
12630
12465
|
observer: true,
|
|
12631
12466
|
observeParents: true
|
|
12632
12467
|
}, swiperConfigs), {
|
|
@@ -12636,9 +12471,9 @@ function Swiper(props) {
|
|
|
12636
12471
|
swiperRef.current = swiper;
|
|
12637
12472
|
},
|
|
12638
12473
|
children: swiperList.map(function(item, index) {
|
|
12639
|
-
return /* @__PURE__ */
|
|
12474
|
+
return /* @__PURE__ */ jsx58(SwiperSlide, {
|
|
12640
12475
|
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),
|
|
12641
|
-
children: /* @__PURE__ */
|
|
12476
|
+
children: /* @__PURE__ */ jsx58(Com, {
|
|
12642
12477
|
item: item,
|
|
12643
12478
|
index: index,
|
|
12644
12479
|
onClick: handleSlideItemClick,
|
|
@@ -12659,48 +12494,48 @@ import ExclamationCircleIcon from "@heroicons/react/24/solid/esm/ExclamationCirc
|
|
|
12659
12494
|
import InformationCircleIcon3 from "@heroicons/react/24/solid/esm/InformationCircleIcon";
|
|
12660
12495
|
import XCircleIcon3 from "@heroicons/react/24/solid/esm/XCircleIcon";
|
|
12661
12496
|
import { toast as toast2 } from "react-hot-toast";
|
|
12662
|
-
import { Fragment as
|
|
12497
|
+
import { Fragment as Fragment10, jsx as jsx59, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
12663
12498
|
function CustomNotification(param) {
|
|
12664
12499
|
var tProps = param.tProps, customProps = param.customProps;
|
|
12665
12500
|
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;
|
|
12666
12501
|
var id = tProps.id;
|
|
12667
12502
|
var displayedContent = !isString(content) ? JSON.stringify(content) : content;
|
|
12668
|
-
return /* @__PURE__ */
|
|
12669
|
-
children: /* @__PURE__ */
|
|
12503
|
+
return /* @__PURE__ */ jsx59("div", {
|
|
12504
|
+
children: /* @__PURE__ */ jsx59("div", {
|
|
12670
12505
|
id: id,
|
|
12671
12506
|
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]",
|
|
12672
|
-
children: /* @__PURE__ */
|
|
12507
|
+
children: /* @__PURE__ */ jsxs34("div", {
|
|
12673
12508
|
className: "flex w-full items-center justify-center gap-2",
|
|
12674
12509
|
children: [
|
|
12675
|
-
loading && /* @__PURE__ */
|
|
12676
|
-
!loading && type && /* @__PURE__ */
|
|
12510
|
+
loading && /* @__PURE__ */ jsx59(Spinner, {}),
|
|
12511
|
+
!loading && type && /* @__PURE__ */ jsxs34("div", {
|
|
12677
12512
|
className: "flex flex-shrink-0 items-center",
|
|
12678
12513
|
children: [
|
|
12679
|
-
type === "info" && /* @__PURE__ */
|
|
12514
|
+
type === "info" && /* @__PURE__ */ jsx59(InformationCircleIcon3, {
|
|
12680
12515
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
12681
12516
|
}),
|
|
12682
|
-
type === "success" && /* @__PURE__ */
|
|
12517
|
+
type === "success" && /* @__PURE__ */ jsx59(CheckCircleIcon3, {
|
|
12683
12518
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
12684
12519
|
}),
|
|
12685
|
-
type === "warning" && /* @__PURE__ */
|
|
12520
|
+
type === "warning" && /* @__PURE__ */ jsx59(ExclamationCircleIcon, {
|
|
12686
12521
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
12687
12522
|
}),
|
|
12688
|
-
type === "error" && /* @__PURE__ */
|
|
12523
|
+
type === "error" && /* @__PURE__ */ jsx59(XCircleIcon3, {
|
|
12689
12524
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
12690
12525
|
})
|
|
12691
12526
|
]
|
|
12692
12527
|
}),
|
|
12693
|
-
/* @__PURE__ */
|
|
12528
|
+
/* @__PURE__ */ jsxs34("div", {
|
|
12694
12529
|
className: "flex flex-grow flex-col space-y-1 overflow-hidden",
|
|
12695
12530
|
children: [
|
|
12696
|
-
title && /* @__PURE__ */
|
|
12531
|
+
title && /* @__PURE__ */ jsx59(Text, {
|
|
12697
12532
|
size: "sm",
|
|
12698
12533
|
weight: "regular",
|
|
12699
12534
|
color: "default",
|
|
12700
12535
|
children: title
|
|
12701
12536
|
}),
|
|
12702
|
-
/* @__PURE__ */
|
|
12703
|
-
children: /* @__PURE__ */
|
|
12537
|
+
/* @__PURE__ */ jsx59("div", {
|
|
12538
|
+
children: /* @__PURE__ */ jsx59(Text, {
|
|
12704
12539
|
size: "sm",
|
|
12705
12540
|
weight: "regular",
|
|
12706
12541
|
color: "default",
|
|
@@ -12709,16 +12544,16 @@ function CustomNotification(param) {
|
|
|
12709
12544
|
})
|
|
12710
12545
|
]
|
|
12711
12546
|
}),
|
|
12712
|
-
action && /* @__PURE__ */
|
|
12547
|
+
action && /* @__PURE__ */ jsxs34(Fragment10, {
|
|
12713
12548
|
children: [
|
|
12714
|
-
/* @__PURE__ */
|
|
12549
|
+
/* @__PURE__ */ jsx59(Separator, {
|
|
12715
12550
|
orientation: "vertical",
|
|
12716
12551
|
className: "h-3"
|
|
12717
12552
|
}),
|
|
12718
12553
|
action
|
|
12719
12554
|
]
|
|
12720
12555
|
}),
|
|
12721
|
-
isClosable && /* @__PURE__ */
|
|
12556
|
+
isClosable && /* @__PURE__ */ jsx59(IconButton, {
|
|
12722
12557
|
size: "sm",
|
|
12723
12558
|
variant: "plain",
|
|
12724
12559
|
icon: XMarkIcon4,
|
|
@@ -12735,14 +12570,14 @@ function CustomNotification(param) {
|
|
|
12735
12570
|
// src/common/hooks/useNotification.tsx
|
|
12736
12571
|
import { useCallback as useCallback5 } from "react";
|
|
12737
12572
|
import { toast as toast3 } from "react-hot-toast";
|
|
12738
|
-
import { jsx as
|
|
12573
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
12739
12574
|
function useNotification() {
|
|
12740
12575
|
var addToast = useCallback5(function(config2, duration2) {
|
|
12741
12576
|
if (config2.id) {
|
|
12742
12577
|
toast3.remove(config2.id);
|
|
12743
12578
|
}
|
|
12744
12579
|
toast3.custom(function(t) {
|
|
12745
|
-
return /* @__PURE__ */
|
|
12580
|
+
return /* @__PURE__ */ jsx60(CustomNotification, {
|
|
12746
12581
|
tProps: _object_spread_props(_object_spread({}, t), {
|
|
12747
12582
|
duration: duration2
|
|
12748
12583
|
}),
|
|
@@ -12803,7 +12638,7 @@ var Message = /*#__PURE__*/ function() {
|
|
|
12803
12638
|
}
|
|
12804
12639
|
var addToast = function() {
|
|
12805
12640
|
toast3.custom(function(t) {
|
|
12806
|
-
return /* @__PURE__ */
|
|
12641
|
+
return /* @__PURE__ */ jsx60(CustomNotification, {
|
|
12807
12642
|
tProps: _object_spread_props(_object_spread({}, t), {
|
|
12808
12643
|
duration: duration2
|
|
12809
12644
|
}),
|
|
@@ -12859,11 +12694,11 @@ var Message = /*#__PURE__*/ function() {
|
|
|
12859
12694
|
return Message;
|
|
12860
12695
|
}();
|
|
12861
12696
|
// src/components/icons/outline/ArrowLeftIcon.tsx
|
|
12862
|
-
import * as
|
|
12863
|
-
import { jsx as
|
|
12864
|
-
var ArrowLeftIcon2 =
|
|
12865
|
-
return /* @__PURE__ */
|
|
12866
|
-
children: /* @__PURE__ */
|
|
12697
|
+
import * as React42 from "react";
|
|
12698
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
12699
|
+
var ArrowLeftIcon2 = React42.forwardRef(function(props, ref) {
|
|
12700
|
+
return /* @__PURE__ */ jsx61(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12701
|
+
children: /* @__PURE__ */ jsx61("svg", {
|
|
12867
12702
|
ref: ref,
|
|
12868
12703
|
className: "w-full h-full",
|
|
12869
12704
|
viewBox: "0 0 24 24",
|
|
@@ -12871,7 +12706,7 @@ var ArrowLeftIcon2 = React43.forwardRef(function(props, ref) {
|
|
|
12871
12706
|
strokeWidth: "1.5",
|
|
12872
12707
|
stroke: "currentColor",
|
|
12873
12708
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12874
|
-
children: /* @__PURE__ */
|
|
12709
|
+
children: /* @__PURE__ */ jsx61("path", {
|
|
12875
12710
|
strokeLinecap: "round",
|
|
12876
12711
|
strokeLinejoin: "round",
|
|
12877
12712
|
d: "M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"
|
|
@@ -12880,11 +12715,11 @@ var ArrowLeftIcon2 = React43.forwardRef(function(props, ref) {
|
|
|
12880
12715
|
}));
|
|
12881
12716
|
});
|
|
12882
12717
|
// src/components/icons/outline/ArrowUpTrayIcon.tsx
|
|
12883
|
-
import * as
|
|
12884
|
-
import { jsx as
|
|
12885
|
-
var ArrowUpTrayIcon =
|
|
12886
|
-
return /* @__PURE__ */
|
|
12887
|
-
children: /* @__PURE__ */
|
|
12718
|
+
import * as React43 from "react";
|
|
12719
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
12720
|
+
var ArrowUpTrayIcon = React43.forwardRef(function(props, ref) {
|
|
12721
|
+
return /* @__PURE__ */ jsx62(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12722
|
+
children: /* @__PURE__ */ jsx62("svg", {
|
|
12888
12723
|
ref: ref,
|
|
12889
12724
|
className: "w-full h-full",
|
|
12890
12725
|
viewBox: "0 0 24 24",
|
|
@@ -12892,7 +12727,7 @@ var ArrowUpTrayIcon = React44.forwardRef(function(props, ref) {
|
|
|
12892
12727
|
strokeWidth: "1.5",
|
|
12893
12728
|
stroke: "currentColor",
|
|
12894
12729
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12895
|
-
children: /* @__PURE__ */
|
|
12730
|
+
children: /* @__PURE__ */ jsx62("path", {
|
|
12896
12731
|
strokeLinecap: "round",
|
|
12897
12732
|
strokeLinejoin: "round",
|
|
12898
12733
|
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"
|
|
@@ -12901,11 +12736,11 @@ var ArrowUpTrayIcon = React44.forwardRef(function(props, ref) {
|
|
|
12901
12736
|
}));
|
|
12902
12737
|
});
|
|
12903
12738
|
// src/components/icons/outline/WindowIcon.tsx
|
|
12904
|
-
import * as
|
|
12905
|
-
import { jsx as
|
|
12906
|
-
var WindowIcon =
|
|
12907
|
-
return /* @__PURE__ */
|
|
12908
|
-
children: /* @__PURE__ */
|
|
12739
|
+
import * as React44 from "react";
|
|
12740
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
12741
|
+
var WindowIcon = React44.forwardRef(function(props, ref) {
|
|
12742
|
+
return /* @__PURE__ */ jsx63(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12743
|
+
children: /* @__PURE__ */ jsx63("svg", {
|
|
12909
12744
|
ref: ref,
|
|
12910
12745
|
className: "w-full h-full",
|
|
12911
12746
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12913,7 +12748,7 @@ var WindowIcon = React45.forwardRef(function(props, ref) {
|
|
|
12913
12748
|
fill: "none",
|
|
12914
12749
|
strokeWidth: "1.5",
|
|
12915
12750
|
stroke: "currentColor",
|
|
12916
|
-
children: /* @__PURE__ */
|
|
12751
|
+
children: /* @__PURE__ */ jsx63("path", {
|
|
12917
12752
|
strokeLinecap: "round",
|
|
12918
12753
|
strokeLinejoin: "round",
|
|
12919
12754
|
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"
|
|
@@ -12922,21 +12757,21 @@ var WindowIcon = React45.forwardRef(function(props, ref) {
|
|
|
12922
12757
|
}));
|
|
12923
12758
|
});
|
|
12924
12759
|
// src/components/icons/outline/CheckCircleIcon.tsx
|
|
12925
|
-
import * as
|
|
12926
|
-
import { jsx as
|
|
12927
|
-
var CheckCircleIcon4 =
|
|
12928
|
-
return /* @__PURE__ */
|
|
12929
|
-
children: /* @__PURE__ */
|
|
12760
|
+
import * as React45 from "react";
|
|
12761
|
+
import { jsx as jsx64, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
12762
|
+
var CheckCircleIcon4 = React45.forwardRef(function(props, ref) {
|
|
12763
|
+
return /* @__PURE__ */ jsx64(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12764
|
+
children: /* @__PURE__ */ jsxs35("svg", {
|
|
12930
12765
|
ref: ref,
|
|
12931
12766
|
className: "w-full h-full",
|
|
12932
12767
|
viewBox: "0 0 24 24",
|
|
12933
12768
|
fill: "currentColor",
|
|
12934
12769
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12935
12770
|
children: [
|
|
12936
|
-
/* @__PURE__ */
|
|
12771
|
+
/* @__PURE__ */ jsx64("path", {
|
|
12937
12772
|
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"
|
|
12938
12773
|
}),
|
|
12939
|
-
/* @__PURE__ */
|
|
12774
|
+
/* @__PURE__ */ jsx64("path", {
|
|
12940
12775
|
fillRule: "evenodd",
|
|
12941
12776
|
clipRule: "evenodd",
|
|
12942
12777
|
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"
|
|
@@ -12945,12 +12780,14 @@ var CheckCircleIcon4 = React46.forwardRef(function(props, ref) {
|
|
|
12945
12780
|
})
|
|
12946
12781
|
}));
|
|
12947
12782
|
});
|
|
12783
|
+
// src/components/icons/outline/FilterIcon.tsx
|
|
12784
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
12948
12785
|
// src/components/icons/outline/PencilSquareIcon.tsx
|
|
12949
|
-
import * as
|
|
12950
|
-
import { jsx as
|
|
12951
|
-
var PencilSquareIcon =
|
|
12952
|
-
return /* @__PURE__ */
|
|
12953
|
-
children: /* @__PURE__ */
|
|
12786
|
+
import * as React46 from "react";
|
|
12787
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
12788
|
+
var PencilSquareIcon = React46.forwardRef(function(props, ref) {
|
|
12789
|
+
return /* @__PURE__ */ jsx66(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12790
|
+
children: /* @__PURE__ */ jsx66("svg", {
|
|
12954
12791
|
ref: ref,
|
|
12955
12792
|
className: "w-full h-full",
|
|
12956
12793
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12958,7 +12795,7 @@ var PencilSquareIcon = React47.forwardRef(function(props, ref) {
|
|
|
12958
12795
|
viewBox: "0 0 24 24",
|
|
12959
12796
|
strokeWidth: "1.5",
|
|
12960
12797
|
stroke: "currentColor",
|
|
12961
|
-
children: /* @__PURE__ */
|
|
12798
|
+
children: /* @__PURE__ */ jsx66("path", {
|
|
12962
12799
|
strokeLinecap: "round",
|
|
12963
12800
|
strokeLinejoin: "round",
|
|
12964
12801
|
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"
|
|
@@ -12967,35 +12804,35 @@ var PencilSquareIcon = React47.forwardRef(function(props, ref) {
|
|
|
12967
12804
|
}));
|
|
12968
12805
|
});
|
|
12969
12806
|
// src/components/icons/outline/ConfigIcon.tsx
|
|
12970
|
-
import * as
|
|
12971
|
-
import { jsx as
|
|
12972
|
-
var ConfigIcon =
|
|
12973
|
-
return /* @__PURE__ */
|
|
12974
|
-
children: /* @__PURE__ */
|
|
12807
|
+
import * as React47 from "react";
|
|
12808
|
+
import { jsx as jsx67, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
12809
|
+
var ConfigIcon = React47.forwardRef(function(props, ref) {
|
|
12810
|
+
return /* @__PURE__ */ jsx67(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12811
|
+
children: /* @__PURE__ */ jsx67("svg", {
|
|
12975
12812
|
width: "18",
|
|
12976
12813
|
height: "18",
|
|
12977
12814
|
viewBox: "0 0 18 18",
|
|
12978
12815
|
fill: "none",
|
|
12979
12816
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12980
12817
|
className: "cursor-pointer",
|
|
12981
|
-
children: /* @__PURE__ */
|
|
12818
|
+
children: /* @__PURE__ */ jsx67("g", {
|
|
12982
12819
|
id: "wrapper",
|
|
12983
|
-
children: /* @__PURE__ */
|
|
12820
|
+
children: /* @__PURE__ */ jsxs36("g", {
|
|
12984
12821
|
id: "Union",
|
|
12985
12822
|
children: [
|
|
12986
|
-
/* @__PURE__ */
|
|
12823
|
+
/* @__PURE__ */ jsx67("path", {
|
|
12987
12824
|
fillRule: "evenodd",
|
|
12988
12825
|
clipRule: "evenodd",
|
|
12989
12826
|
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",
|
|
12990
12827
|
fill: "#6D7175"
|
|
12991
12828
|
}),
|
|
12992
|
-
/* @__PURE__ */
|
|
12829
|
+
/* @__PURE__ */ jsx67("path", {
|
|
12993
12830
|
fillRule: "evenodd",
|
|
12994
12831
|
clipRule: "evenodd",
|
|
12995
12832
|
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",
|
|
12996
12833
|
fill: "#6D7175"
|
|
12997
12834
|
}),
|
|
12998
|
-
/* @__PURE__ */
|
|
12835
|
+
/* @__PURE__ */ jsx67("path", {
|
|
12999
12836
|
fillRule: "evenodd",
|
|
13000
12837
|
clipRule: "evenodd",
|
|
13001
12838
|
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",
|
|
@@ -13008,38 +12845,38 @@ var ConfigIcon = React48.forwardRef(function(props, ref) {
|
|
|
13008
12845
|
}));
|
|
13009
12846
|
});
|
|
13010
12847
|
// src/components/icons/solid/CaretDownIcon.tsx
|
|
13011
|
-
import * as
|
|
13012
|
-
import { jsx as
|
|
13013
|
-
var CaretDownIcon =
|
|
13014
|
-
return /* @__PURE__ */
|
|
13015
|
-
children: /* @__PURE__ */
|
|
12848
|
+
import * as React48 from "react";
|
|
12849
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
12850
|
+
var CaretDownIcon = React48.forwardRef(function(props, ref) {
|
|
12851
|
+
return /* @__PURE__ */ jsx68(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12852
|
+
children: /* @__PURE__ */ jsx68("svg", {
|
|
13016
12853
|
ref: ref,
|
|
13017
12854
|
className: "w-full h-full",
|
|
13018
12855
|
viewBox: "0 0 24 24",
|
|
13019
12856
|
fill: "currentColor",
|
|
13020
12857
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13021
|
-
children: /* @__PURE__ */
|
|
12858
|
+
children: /* @__PURE__ */ jsx68("path", {
|
|
13022
12859
|
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"
|
|
13023
12860
|
})
|
|
13024
12861
|
})
|
|
13025
12862
|
}));
|
|
13026
12863
|
});
|
|
13027
12864
|
// src/components/icons/solid/CodeIcon.tsx
|
|
13028
|
-
import * as
|
|
13029
|
-
import { jsx as
|
|
13030
|
-
var CodeIcon =
|
|
13031
|
-
return /* @__PURE__ */
|
|
13032
|
-
children: /* @__PURE__ */
|
|
12865
|
+
import * as React49 from "react";
|
|
12866
|
+
import { jsx as jsx69, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
12867
|
+
var CodeIcon = React49.forwardRef(function(props, ref) {
|
|
12868
|
+
return /* @__PURE__ */ jsx69(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12869
|
+
children: /* @__PURE__ */ jsxs37("svg", {
|
|
13033
12870
|
ref: ref,
|
|
13034
12871
|
className: "w-full h-full",
|
|
13035
12872
|
viewBox: "0 0 24 24",
|
|
13036
12873
|
fill: "currentColor",
|
|
13037
12874
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13038
12875
|
children: [
|
|
13039
|
-
/* @__PURE__ */
|
|
12876
|
+
/* @__PURE__ */ jsx69("path", {
|
|
13040
12877
|
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"
|
|
13041
12878
|
}),
|
|
13042
|
-
/* @__PURE__ */
|
|
12879
|
+
/* @__PURE__ */ jsx69("path", {
|
|
13043
12880
|
fillRule: "evenodd",
|
|
13044
12881
|
clipRule: "evenodd",
|
|
13045
12882
|
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"
|
|
@@ -13049,17 +12886,17 @@ var CodeIcon = React50.forwardRef(function(props, ref) {
|
|
|
13049
12886
|
}));
|
|
13050
12887
|
});
|
|
13051
12888
|
// src/components/icons/solid/DragIcon.tsx
|
|
13052
|
-
import * as
|
|
13053
|
-
import { jsx as
|
|
13054
|
-
var DragIcon =
|
|
13055
|
-
return /* @__PURE__ */
|
|
13056
|
-
children: /* @__PURE__ */
|
|
12889
|
+
import * as React50 from "react";
|
|
12890
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
12891
|
+
var DragIcon = React50.forwardRef(function(props, ref) {
|
|
12892
|
+
return /* @__PURE__ */ jsx70(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12893
|
+
children: /* @__PURE__ */ jsx70("svg", {
|
|
13057
12894
|
ref: ref,
|
|
13058
12895
|
className: "w-full h-full",
|
|
13059
12896
|
viewBox: "0 0 24 24",
|
|
13060
12897
|
fill: "currentColor",
|
|
13061
12898
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13062
|
-
children: /* @__PURE__ */
|
|
12899
|
+
children: /* @__PURE__ */ jsx70("path", {
|
|
13063
12900
|
fillRule: "evenodd",
|
|
13064
12901
|
clipRule: "evenodd",
|
|
13065
12902
|
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"
|
|
@@ -13068,22 +12905,22 @@ var DragIcon = React51.forwardRef(function(props, ref) {
|
|
|
13068
12905
|
}));
|
|
13069
12906
|
});
|
|
13070
12907
|
// src/components/icons/solid/PhoneIcon.tsx
|
|
13071
|
-
import * as
|
|
13072
|
-
import { jsx as
|
|
13073
|
-
var PhoneIcon =
|
|
13074
|
-
return /* @__PURE__ */
|
|
13075
|
-
children: /* @__PURE__ */
|
|
12908
|
+
import * as React51 from "react";
|
|
12909
|
+
import { jsx as jsx71, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
12910
|
+
var PhoneIcon = React51.forwardRef(function(props, ref) {
|
|
12911
|
+
return /* @__PURE__ */ jsx71(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12912
|
+
children: /* @__PURE__ */ jsxs38("svg", {
|
|
13076
12913
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13077
12914
|
width: "20",
|
|
13078
12915
|
height: "20",
|
|
13079
12916
|
viewBox: "0 0 20 20",
|
|
13080
12917
|
fill: "none",
|
|
13081
12918
|
children: [
|
|
13082
|
-
/* @__PURE__ */
|
|
12919
|
+
/* @__PURE__ */ jsx71("path", {
|
|
13083
12920
|
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",
|
|
13084
12921
|
fill: "#3E5CFA"
|
|
13085
12922
|
}),
|
|
13086
|
-
/* @__PURE__ */
|
|
12923
|
+
/* @__PURE__ */ jsx71("path", {
|
|
13087
12924
|
fillRule: "evenodd",
|
|
13088
12925
|
clipRule: "evenodd",
|
|
13089
12926
|
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",
|
|
@@ -13094,17 +12931,17 @@ var PhoneIcon = React52.forwardRef(function(props, ref) {
|
|
|
13094
12931
|
}));
|
|
13095
12932
|
});
|
|
13096
12933
|
// src/components/icons/solid/RectangleGroupIcon.tsx
|
|
13097
|
-
import * as
|
|
13098
|
-
import { jsx as
|
|
13099
|
-
var RectangleGroupIcon =
|
|
13100
|
-
return /* @__PURE__ */
|
|
13101
|
-
children: /* @__PURE__ */
|
|
12934
|
+
import * as React52 from "react";
|
|
12935
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
12936
|
+
var RectangleGroupIcon = React52.forwardRef(function(props, ref) {
|
|
12937
|
+
return /* @__PURE__ */ jsx72(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12938
|
+
children: /* @__PURE__ */ jsx72("svg", {
|
|
13102
12939
|
ref: ref,
|
|
13103
12940
|
className: "w-full h-full",
|
|
13104
12941
|
viewBox: "0 0 24 24",
|
|
13105
12942
|
fill: "currentColor",
|
|
13106
12943
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13107
|
-
children: /* @__PURE__ */
|
|
12944
|
+
children: /* @__PURE__ */ jsx72("path", {
|
|
13108
12945
|
fillRule: "evenodd",
|
|
13109
12946
|
clipRule: "evenodd",
|
|
13110
12947
|
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"
|
|
@@ -13112,7 +12949,7 @@ var RectangleGroupIcon = React53.forwardRef(function(props, ref) {
|
|
|
13112
12949
|
})
|
|
13113
12950
|
}));
|
|
13114
12951
|
});
|
|
13115
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, ArrowLeftIcon2 as ArrowLeftIcon, ArrowUpTrayIcon, AspectRatio, AudioPlayer, AudioPlaying, Avatar, AvatarImage, AvatarRoot, Badge, Button, CaretDownIcon, CheckCircleIcon4 as CheckCircleIcon, Checkbox, Chips, CodeIcon, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfigIcon, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, DownIcon, DragIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Guide, Heading, Icon, IconButton, Image2 as Image, Input, Label3 as Label, Link, Masonry, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, ModalRoot, ModalTitle,
|
|
12952
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, ArrowLeftIcon2 as ArrowLeftIcon, ArrowUpTrayIcon, AspectRatio, AudioPlayer, AudioPlaying, Avatar, AvatarImage, AvatarRoot, Badge, Button, CaretDownIcon, CheckCircleIcon4 as CheckCircleIcon, Checkbox, Chips, CodeIcon, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfigIcon, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, DownIcon, DragIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Guide, Heading, Icon, IconButton, Image2 as Image, Input, Label3 as Label, Link, Masonry, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MiddleBar, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, ModalRoot, ModalTitle, NumberInput, Paragraph, PencilSquareIcon, PhoneIcon, Popover, PopoverAnchor, PopoverContent, PopoverRoot, Progress, ProgressIndicator, ProgressRoot, RadioGroup4 as RadioGroup, RadioGroupItem, RectangleGroupIcon, ScrollArea, ScrollBar, SearchBar, Select, SelectContent, SelectGroup, SelectIcon, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, SliderPrimitive, SliderSingle, Spinner, SubHeading, SubTitle, Swiper, Switch, Tab, Tabs2 as Tabs, TabsContent, TabsList, TabsRoot, TabsTrigger, Text, Textarea, Title, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipProvider, TopNavigationBar, WindowIcon, buttonVariants, dangerouText, iconButtonVariants, reducer, toast, toggleVariants, useDevice, useFormField, useIsMobileByWindowWidth, useNativeBridge, useNotification, useToast, useWindowWidth }; /*! Bundled license information:
|
|
13116
12953
|
|
|
13117
12954
|
decimal.js/decimal.mjs:
|
|
13118
12955
|
(*!
|