myshell-react-lib 0.1.2 → 0.1.4
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 +445 -324
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -31
- package/dist/index.d.ts +32 -31
- package/dist/index.js +445 -324
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/icon.tsx +6 -0
- package/src/components/icons/outline/FilterIcon.tsx +0 -1
- package/src/components/secondary-navigation-bar.tsx +41 -20
- package/src/stories/SecondaryNavigationBar.stories.tsx +4 -4
package/dist/index.js
CHANGED
|
@@ -4047,7 +4047,13 @@ var iconVariants = cva("inline-flex shrink-0", {
|
|
|
4047
4047
|
disabled: "text-Colors-Foreground-Disabled",
|
|
4048
4048
|
bolder: "text-Colors-Foreground-Bolder",
|
|
4049
4049
|
inverse: "text-Colors-Foreground-Static-White",
|
|
4050
|
-
critical: "text-Colors-Foreground-Critical-Default"
|
|
4050
|
+
critical: "text-Colors-Foreground-Critical-Default",
|
|
4051
|
+
brand: "text-Colors-Text-Brand-Default",
|
|
4052
|
+
"critical-bolder": "text-Colors-Text-Critical-Bolder",
|
|
4053
|
+
warning: "text-Colors-Text-Warning-Default",
|
|
4054
|
+
"warning-bolder": "text-Colors-Text-Warning-Bolder",
|
|
4055
|
+
success: "text-Colors-Text-Success-Default",
|
|
4056
|
+
"success-bolder": "text-Colors-Text-Success-Bolder"
|
|
4051
4057
|
},
|
|
4052
4058
|
rotate: {
|
|
4053
4059
|
"45": "rotate-45",
|
|
@@ -7979,7 +7985,7 @@ var Modal = function(_param) {
|
|
|
7979
7985
|
})
|
|
7980
7986
|
}));
|
|
7981
7987
|
}
|
|
7982
|
-
var
|
|
7988
|
+
var renderIcon3 = function(state2) {
|
|
7983
7989
|
switch(state2){
|
|
7984
7990
|
case "info":
|
|
7985
7991
|
return /* @__PURE__ */ jsx35(InformationCircleIcon, {
|
|
@@ -8026,7 +8032,7 @@ var Modal = function(_param) {
|
|
|
8026
8032
|
className: cn(isNotification && "border-none !pb-3"),
|
|
8027
8033
|
children: state && /* @__PURE__ */ jsx35("div", {
|
|
8028
8034
|
className: cn("flex items-center justify-center w-10 h-10 rounded-full flex-shrink-0 flex-grow-0", getBackgroundColor(state)),
|
|
8029
|
-
children:
|
|
8035
|
+
children: renderIcon3(state)
|
|
8030
8036
|
})
|
|
8031
8037
|
}),
|
|
8032
8038
|
/* @__PURE__ */ jsxs17("div", {
|
|
@@ -10751,30 +10757,140 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
|
10751
10757
|
import { ArrowLeftIcon } from "@heroicons/react/24/outline";
|
|
10752
10758
|
import { useEffect as useEffect10, useRef as useRef6, useState as useState8 } from "react";
|
|
10753
10759
|
import { useMedia as useMedia5 } from "react-use";
|
|
10760
|
+
// src/components/button/link-button.tsx
|
|
10761
|
+
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
10762
|
+
import { Loader2 as Loader23 } from "lucide-react";
|
|
10763
|
+
import * as React32 from "react";
|
|
10764
|
+
import { Fragment as Fragment8, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
10765
|
+
var LinkButton = React32.forwardRef(function(_param, ref) {
|
|
10766
|
+
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, [
|
|
10767
|
+
"className",
|
|
10768
|
+
"iconClassName",
|
|
10769
|
+
"color",
|
|
10770
|
+
"icon",
|
|
10771
|
+
"iconDirection",
|
|
10772
|
+
"size",
|
|
10773
|
+
"asChild",
|
|
10774
|
+
"loading",
|
|
10775
|
+
"noStyle",
|
|
10776
|
+
"iconOutBox",
|
|
10777
|
+
"isBlock",
|
|
10778
|
+
"disabled",
|
|
10779
|
+
"children",
|
|
10780
|
+
"autoFocus",
|
|
10781
|
+
"asset",
|
|
10782
|
+
"assetNumber"
|
|
10783
|
+
]);
|
|
10784
|
+
var Comp = asChild ? Slot5 : "button";
|
|
10785
|
+
var disable = disabled || loading;
|
|
10786
|
+
return /* @__PURE__ */ jsxs24(Comp, _object_spread_props(_object_spread({
|
|
10787
|
+
className: noStyle ? className : cn(buttonVariants({
|
|
10788
|
+
variant: "link",
|
|
10789
|
+
color: color,
|
|
10790
|
+
size: size,
|
|
10791
|
+
className: className
|
|
10792
|
+
}), disable && "!pointer-events-auto cursor-not-allowed", isBlock && "w-full"),
|
|
10793
|
+
ref: ref,
|
|
10794
|
+
disabled: disable,
|
|
10795
|
+
autoFocus: autoFocus
|
|
10796
|
+
}, props), {
|
|
10797
|
+
children: [
|
|
10798
|
+
loading && /* @__PURE__ */ jsx44("span", {
|
|
10799
|
+
className: "absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center",
|
|
10800
|
+
children: /* @__PURE__ */ jsx44(Loader23, {
|
|
10801
|
+
className: cn(iconVariants2({
|
|
10802
|
+
variant: "link",
|
|
10803
|
+
size: size
|
|
10804
|
+
}), "animate-spin", size === "lg" ? "h-6 w-6" : size === "md" ? "h-5 w-5" : "h-4.5 w-4.5")
|
|
10805
|
+
})
|
|
10806
|
+
}),
|
|
10807
|
+
!asset && icon && iconOutBox && iconDirection === "left" && renderIcon2(icon, "left", {
|
|
10808
|
+
loading: loading,
|
|
10809
|
+
noStyle: noStyle,
|
|
10810
|
+
iconClassName: iconClassName,
|
|
10811
|
+
size: size
|
|
10812
|
+
}),
|
|
10813
|
+
/* @__PURE__ */ jsxs24("span", {
|
|
10814
|
+
className: cn("inline-flex w-full items-center justify-center", loading ? "opacity-0" : "opacity-100"),
|
|
10815
|
+
children: [
|
|
10816
|
+
!asset && icon && !iconOutBox && iconDirection === "left" && renderIcon2(icon, "left", {
|
|
10817
|
+
loading: loading,
|
|
10818
|
+
noStyle: noStyle,
|
|
10819
|
+
iconClassName: iconClassName,
|
|
10820
|
+
size: size
|
|
10821
|
+
}),
|
|
10822
|
+
children,
|
|
10823
|
+
asset ? /* @__PURE__ */ jsxs24(Fragment8, {
|
|
10824
|
+
children: [
|
|
10825
|
+
/* @__PURE__ */ jsx44(Separator, {
|
|
10826
|
+
orientation: "vertical",
|
|
10827
|
+
className: cn("mx-1.5 h-3")
|
|
10828
|
+
}),
|
|
10829
|
+
/* @__PURE__ */ jsx44(Image2, {
|
|
10830
|
+
src: asset === "energy" ? getAssetsUrl("image/bot/tag/20231214/1719340128612116720.png") : "",
|
|
10831
|
+
alt: asset,
|
|
10832
|
+
width: 16,
|
|
10833
|
+
height: 16,
|
|
10834
|
+
className: "flex-shrink-0"
|
|
10835
|
+
}),
|
|
10836
|
+
/* @__PURE__ */ jsx44(Text, {
|
|
10837
|
+
size: "xs",
|
|
10838
|
+
className: cn("ml-0.5 text-inherit"),
|
|
10839
|
+
children: assetNumber
|
|
10840
|
+
})
|
|
10841
|
+
]
|
|
10842
|
+
}) : null,
|
|
10843
|
+
!asset && icon && !iconOutBox && iconDirection === "right" && renderIcon2(icon, "right", {
|
|
10844
|
+
loading: loading,
|
|
10845
|
+
noStyle: noStyle,
|
|
10846
|
+
iconClassName: iconClassName,
|
|
10847
|
+
size: size
|
|
10848
|
+
})
|
|
10849
|
+
]
|
|
10850
|
+
}),
|
|
10851
|
+
!asset && icon && iconOutBox && iconDirection === "right" && renderIcon2(icon, "right", {
|
|
10852
|
+
loading: loading,
|
|
10853
|
+
noStyle: noStyle,
|
|
10854
|
+
iconClassName: iconClassName,
|
|
10855
|
+
size: size
|
|
10856
|
+
})
|
|
10857
|
+
]
|
|
10858
|
+
}));
|
|
10859
|
+
});
|
|
10860
|
+
var renderIcon2 = function(icon, direction, param) {
|
|
10861
|
+
var loading = param.loading, noStyle = param.noStyle, iconClassName = param.iconClassName, _param_size = param.size, size = _param_size === void 0 ? "lg" : _param_size;
|
|
10862
|
+
return /* @__PURE__ */ jsx44(Icon, {
|
|
10863
|
+
component: icon,
|
|
10864
|
+
className: noStyle ? iconClassName : cn(iconVariants2({
|
|
10865
|
+
variant: "link",
|
|
10866
|
+
size: size
|
|
10867
|
+
}), direction === "left" ? "mr-0.5" : "ml-0.5", iconClassName, loading ? "opacity-0" : "opacity-100")
|
|
10868
|
+
});
|
|
10869
|
+
};
|
|
10870
|
+
LinkButton.displayName = "LinkButton";
|
|
10754
10871
|
// src/components/icons/outline/FilterIcon.tsx
|
|
10755
|
-
import { jsx as
|
|
10872
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
10756
10873
|
function FilterIcon(param) {
|
|
10757
10874
|
var className = param.className;
|
|
10758
|
-
return /* @__PURE__ */
|
|
10875
|
+
return /* @__PURE__ */ jsx45("svg", {
|
|
10759
10876
|
className: className,
|
|
10760
10877
|
width: "22",
|
|
10761
10878
|
height: "22",
|
|
10762
10879
|
viewBox: "0 0 22 22",
|
|
10763
10880
|
fill: "none",
|
|
10764
10881
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10765
|
-
children: /* @__PURE__ */
|
|
10882
|
+
children: /* @__PURE__ */ jsx45("path", {
|
|
10766
10883
|
fillRule: "evenodd",
|
|
10767
10884
|
clipRule: "evenodd",
|
|
10768
|
-
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"
|
|
10769
|
-
fill: "#3E5CFA"
|
|
10885
|
+
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"
|
|
10770
10886
|
})
|
|
10771
10887
|
});
|
|
10772
10888
|
}
|
|
10773
10889
|
var FilterIcon_default = FilterIcon;
|
|
10774
10890
|
// src/components/secondary-navigation-bar.tsx
|
|
10775
|
-
import { Fragment as
|
|
10891
|
+
import { Fragment as Fragment9, jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
10776
10892
|
function SecondaryNavigationBar(param) {
|
|
10777
|
-
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;
|
|
10893
|
+
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;
|
|
10778
10894
|
var isMobile2 = useMedia5("(max-width: 768px)");
|
|
10779
10895
|
var navbarRef = useRef6(null);
|
|
10780
10896
|
var _useState8 = _sliced_to_array(useState8(hasBackground), 2), showBackground = _useState8[0], setShowBackground = _useState8[1];
|
|
@@ -10796,38 +10912,43 @@ function SecondaryNavigationBar(param) {
|
|
|
10796
10912
|
}, [
|
|
10797
10913
|
hasBackground
|
|
10798
10914
|
]);
|
|
10799
|
-
|
|
10800
|
-
return /* @__PURE__ */ jsx45("div", {
|
|
10915
|
+
return /* @__PURE__ */ jsx46("div", {
|
|
10801
10916
|
ref: navbarRef,
|
|
10802
|
-
className: cn("w-full flex flex-col md:flex-row justify-center items-center px-4 md:px-6", !isMobile2 && border && "border-b border-
|
|
10803
|
-
children: /* @__PURE__ */
|
|
10917
|
+
className: cn("w-full flex flex-col md:flex-row justify-center items-center px-4 md:px-6", !isMobile2 && border && "border-b border-default", showBackground && "bg-Colors-Background-Normal-Primary-Default"),
|
|
10918
|
+
children: /* @__PURE__ */ jsxs25("div", {
|
|
10804
10919
|
className: cn("relative w-full flex justify-between items-center h-14 md:h-15"),
|
|
10805
10920
|
children: [
|
|
10806
|
-
/* @__PURE__ */
|
|
10921
|
+
/* @__PURE__ */ jsxs25("div", {
|
|
10807
10922
|
className: cn("flex items-center", (avatar === null || avatar === void 0 ? void 0 : avatar.logo) && "min-w-[76px]"),
|
|
10808
10923
|
children: [
|
|
10809
|
-
backUrl && /* @__PURE__ */
|
|
10924
|
+
(backUrl || onBack) && /* @__PURE__ */ jsxs25("div", {
|
|
10810
10925
|
className: "flex justify-start items-center",
|
|
10811
10926
|
children: [
|
|
10812
|
-
/* @__PURE__ */
|
|
10927
|
+
backUrl ? /* @__PURE__ */ jsx46(Link, {
|
|
10813
10928
|
href: backUrl,
|
|
10814
10929
|
className: "flex justify-center items-center",
|
|
10815
|
-
children: /* @__PURE__ */
|
|
10930
|
+
children: /* @__PURE__ */ jsx46(IconButton, {
|
|
10816
10931
|
variant: !hasBackground ? "primary" : "plain",
|
|
10817
10932
|
color: !hasBackground ? "gray" : "brand",
|
|
10818
10933
|
size: "md",
|
|
10819
10934
|
icon: ArrowLeftIcon
|
|
10820
10935
|
})
|
|
10936
|
+
}) : /* @__PURE__ */ jsx46(IconButton, {
|
|
10937
|
+
variant: !hasBackground ? "primary" : "plain",
|
|
10938
|
+
color: !hasBackground ? "gray" : "brand",
|
|
10939
|
+
size: "md",
|
|
10940
|
+
icon: ArrowLeftIcon,
|
|
10941
|
+
onClick: onBack
|
|
10821
10942
|
}),
|
|
10822
|
-
!isMobile2 && title && /* @__PURE__ */
|
|
10943
|
+
!isMobile2 && title && /* @__PURE__ */ jsx46(Separator, {
|
|
10823
10944
|
orientation: "vertical",
|
|
10824
10945
|
className: "h-5 ml-1.5 mr-3"
|
|
10825
10946
|
})
|
|
10826
10947
|
]
|
|
10827
10948
|
}),
|
|
10828
|
-
title && (!showSearchBar || !isMobile2) && (!(avatar === null || avatar === void 0 ? void 0 : avatar.logo) || !isMobile2) && /* @__PURE__ */
|
|
10949
|
+
title && (!showSearchBar || !isMobile2) && (!(avatar === null || avatar === void 0 ? void 0 : avatar.logo) || !isMobile2) && /* @__PURE__ */ jsx46("div", {
|
|
10829
10950
|
className: "flex-1 flex-shrink-0 absolute w-full md:relative md:w-auto flex items-center justify-center md:justify-start",
|
|
10830
|
-
children: /* @__PURE__ */
|
|
10951
|
+
children: /* @__PURE__ */ jsx46(Display, {
|
|
10831
10952
|
size: isMobile2 ? "xs" : "sm",
|
|
10832
10953
|
className: cn("max-w-[calc(100%-168px)] md:max-w-fit flex-1 flex-shrink-0 absolute w-full md:relative md:w-auto text-center md:text-left line-clamp-1"),
|
|
10833
10954
|
children: title
|
|
@@ -10835,71 +10956,71 @@ function SecondaryNavigationBar(param) {
|
|
|
10835
10956
|
})
|
|
10836
10957
|
]
|
|
10837
10958
|
}),
|
|
10838
|
-
(avatar === null || avatar === void 0 ? void 0 : avatar.logo) && !showSearchBar && /* @__PURE__ */
|
|
10959
|
+
(avatar === null || avatar === void 0 ? void 0 : avatar.logo) && !showSearchBar && /* @__PURE__ */ jsxs25("div", {
|
|
10839
10960
|
className: "flex-shrink-0 flex relative px-3 justify-center items-center space-x-1.5",
|
|
10840
10961
|
children: [
|
|
10841
|
-
/* @__PURE__ */
|
|
10962
|
+
/* @__PURE__ */ jsx46(Avatar, {
|
|
10842
10963
|
size: "sm",
|
|
10843
10964
|
src: avatar.logo
|
|
10844
10965
|
}),
|
|
10845
|
-
avatar.name && !isMobile2 && /* @__PURE__ */
|
|
10966
|
+
avatar.name && !isMobile2 && /* @__PURE__ */ jsx46(Text, {
|
|
10846
10967
|
size: "lg",
|
|
10847
10968
|
weight: "medium",
|
|
10848
10969
|
children: avatar.name
|
|
10849
10970
|
})
|
|
10850
10971
|
]
|
|
10851
10972
|
}),
|
|
10852
|
-
/* @__PURE__ */
|
|
10973
|
+
/* @__PURE__ */ jsx46("div", {
|
|
10853
10974
|
className: cn("w-fit flex md:w-auto justify-end", !(avatar === null || avatar === void 0 ? void 0 : avatar.logo) && "flex-1"),
|
|
10854
|
-
children: children ? /* @__PURE__ */
|
|
10975
|
+
children: children ? /* @__PURE__ */ jsx46("div", {
|
|
10855
10976
|
className: "w-fit",
|
|
10856
10977
|
children: children
|
|
10857
|
-
}) : /* @__PURE__ */
|
|
10858
|
-
children: icons || actions ? /* @__PURE__ */
|
|
10978
|
+
}) : /* @__PURE__ */ jsx46(Fragment9, {
|
|
10979
|
+
children: icons || actions ? /* @__PURE__ */ jsxs25("div", {
|
|
10859
10980
|
className: cn("flex justify-end items-center", icons && "space-x-1 min-w-[76px]", actions && "space-x-3"),
|
|
10860
10981
|
children: [
|
|
10861
10982
|
icons && icons.map(function(icon, index) {
|
|
10862
|
-
return /* @__PURE__ */
|
|
10863
|
-
variant: !hasBackground ? "
|
|
10864
|
-
color: !hasBackground ? "
|
|
10983
|
+
return /* @__PURE__ */ jsx46(IconButton, {
|
|
10984
|
+
variant: !hasBackground ? "tertiary" : "plain",
|
|
10985
|
+
color: !hasBackground ? "default" : "brand",
|
|
10865
10986
|
size: "md",
|
|
10866
10987
|
icon: icon.icon,
|
|
10867
10988
|
onClick: icon.onClick
|
|
10868
10989
|
}, index);
|
|
10869
10990
|
}),
|
|
10870
10991
|
actions && actions.map(function(action, index) {
|
|
10871
|
-
return /* @__PURE__ */
|
|
10992
|
+
return /* @__PURE__ */ jsx46(Button, _object_spread_props(_object_spread({
|
|
10872
10993
|
size: "md"
|
|
10873
10994
|
}, action), {
|
|
10874
10995
|
children: action.label
|
|
10875
10996
|
}), index);
|
|
10876
10997
|
})
|
|
10877
10998
|
]
|
|
10878
|
-
}) : /* @__PURE__ */
|
|
10999
|
+
}) : /* @__PURE__ */ jsxs25(Fragment9, {
|
|
10879
11000
|
children: [
|
|
10880
|
-
showClear && !isMobile2 && /* @__PURE__ */
|
|
10881
|
-
"aria-label":
|
|
11001
|
+
showClear && !isMobile2 && /* @__PURE__ */ jsxs25(Button, {
|
|
11002
|
+
"aria-label": clearText || "Clear Filters",
|
|
10882
11003
|
size: "md",
|
|
10883
|
-
variant: "
|
|
11004
|
+
variant: "secondary",
|
|
10884
11005
|
color: "default",
|
|
10885
|
-
className: "hidden md:flex relative text-sm
|
|
11006
|
+
className: "hidden md:flex relative text-sm font-medium ml-2 mr-3 px-4 justify-center items-center",
|
|
10886
11007
|
onClick: onClear,
|
|
10887
11008
|
children: [
|
|
10888
|
-
/* @__PURE__ */
|
|
11009
|
+
/* @__PURE__ */ jsx46("div", {
|
|
10889
11010
|
className: "relative mr-1.5",
|
|
10890
|
-
children: /* @__PURE__ */
|
|
10891
|
-
className: "w-5 h-5"
|
|
11011
|
+
children: /* @__PURE__ */ jsx46(FilterIcon_default, {
|
|
11012
|
+
className: "w-5 h-5 fill-cc-Button-Secondary-fg-default"
|
|
10892
11013
|
})
|
|
10893
11014
|
}),
|
|
10894
|
-
/* @__PURE__ */
|
|
11015
|
+
/* @__PURE__ */ jsx46("span", {
|
|
10895
11016
|
className: "hidden md:block",
|
|
10896
|
-
children:
|
|
11017
|
+
children: clearText || "Clear Filters"
|
|
10897
11018
|
})
|
|
10898
11019
|
]
|
|
10899
11020
|
}),
|
|
10900
|
-
showSearchBar && /* @__PURE__ */
|
|
11021
|
+
showSearchBar && /* @__PURE__ */ jsx46("div", {
|
|
10901
11022
|
className: "relative w-full md:w-60",
|
|
10902
|
-
children: /* @__PURE__ */
|
|
11023
|
+
children: /* @__PURE__ */ jsx46(SearchBar, {
|
|
10903
11024
|
color: "gray",
|
|
10904
11025
|
size: "xs",
|
|
10905
11026
|
searchValue: searchValue,
|
|
@@ -10909,16 +11030,16 @@ function SecondaryNavigationBar(param) {
|
|
|
10909
11030
|
}
|
|
10910
11031
|
})
|
|
10911
11032
|
}),
|
|
10912
|
-
showClear && isMobile2 && /* @__PURE__ */
|
|
11033
|
+
showClear && isMobile2 && /* @__PURE__ */ jsx46(IconButton, {
|
|
10913
11034
|
className: "flex-shrink-0 flex relative text-sm font-medium px-4 justify-center items-center ml-3",
|
|
10914
|
-
"aria-label":
|
|
11035
|
+
"aria-label": clearText || "Clear Filters",
|
|
10915
11036
|
size: "md",
|
|
10916
11037
|
variant: "primary",
|
|
10917
11038
|
color: "default",
|
|
10918
11039
|
onClick: onClear,
|
|
10919
|
-
children: /* @__PURE__ */
|
|
11040
|
+
children: /* @__PURE__ */ jsx46("div", {
|
|
10920
11041
|
className: "relative",
|
|
10921
|
-
children: /* @__PURE__ */
|
|
11042
|
+
children: /* @__PURE__ */ jsx46(FilterIcon_default, {})
|
|
10922
11043
|
})
|
|
10923
11044
|
})
|
|
10924
11045
|
]
|
|
@@ -10933,9 +11054,9 @@ function SecondaryNavigationBar(param) {
|
|
|
10933
11054
|
import { CheckIcon as CheckIcon2 } from "@heroicons/react/24/outline";
|
|
10934
11055
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
10935
11056
|
import { ChevronDown as ChevronDown2, ChevronUp } from "lucide-react";
|
|
10936
|
-
import * as
|
|
10937
|
-
import { Fragment as
|
|
10938
|
-
var Select =
|
|
11057
|
+
import * as React33 from "react";
|
|
11058
|
+
import { Fragment as Fragment10, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
11059
|
+
var Select = React33.forwardRef(function(_param, ref) {
|
|
10939
11060
|
var children = _param.children, placeholder = _param.placeholder, options = _param.options, triggerClassName = _param.triggerClassName, props = _object_without_properties(_param, [
|
|
10940
11061
|
"children",
|
|
10941
11062
|
"placeholder",
|
|
@@ -10946,26 +11067,26 @@ var Select = React32.forwardRef(function(_param, ref) {
|
|
|
10946
11067
|
var icon = options === null || options === void 0 ? void 0 : (_options_find = options.find(function(item) {
|
|
10947
11068
|
return item.value === props.value;
|
|
10948
11069
|
})) === null || _options_find === void 0 ? void 0 : _options_find.icon;
|
|
10949
|
-
return /* @__PURE__ */
|
|
10950
|
-
children: Array.isArray(options) && options.length ? /* @__PURE__ */
|
|
11070
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Root, _object_spread_props(_object_spread({}, props), {
|
|
11071
|
+
children: Array.isArray(options) && options.length ? /* @__PURE__ */ jsxs26(Fragment10, {
|
|
10951
11072
|
children: [
|
|
10952
|
-
/* @__PURE__ */
|
|
11073
|
+
/* @__PURE__ */ jsx47(SelectTrigger, {
|
|
10953
11074
|
className: cn(triggerClassName),
|
|
10954
|
-
children: /* @__PURE__ */
|
|
11075
|
+
children: /* @__PURE__ */ jsxs26("div", {
|
|
10955
11076
|
className: "flex items-center",
|
|
10956
11077
|
children: [
|
|
10957
|
-
/* @__PURE__ */
|
|
11078
|
+
/* @__PURE__ */ jsx47(SelectIcon, {
|
|
10958
11079
|
icon: icon
|
|
10959
11080
|
}),
|
|
10960
|
-
/* @__PURE__ */
|
|
11081
|
+
/* @__PURE__ */ jsx47(SelectValue, {
|
|
10961
11082
|
placeholder: placeholder
|
|
10962
11083
|
})
|
|
10963
11084
|
]
|
|
10964
11085
|
})
|
|
10965
11086
|
}),
|
|
10966
|
-
/* @__PURE__ */
|
|
11087
|
+
/* @__PURE__ */ jsx47(SelectContent, {
|
|
10967
11088
|
children: options.map(function(item, i) {
|
|
10968
|
-
return /* @__PURE__ */
|
|
11089
|
+
return /* @__PURE__ */ jsx47(SelectItem, _object_spread_props(_object_spread({}, item), {
|
|
10969
11090
|
children: item.label
|
|
10970
11091
|
}), "".concat(item.value, "_").concat(i));
|
|
10971
11092
|
})
|
|
@@ -10976,20 +11097,20 @@ var Select = React32.forwardRef(function(_param, ref) {
|
|
|
10976
11097
|
});
|
|
10977
11098
|
var SelectGroup = SelectPrimitive.Group;
|
|
10978
11099
|
var SelectValue = SelectPrimitive.Value;
|
|
10979
|
-
var SelectTrigger =
|
|
11100
|
+
var SelectTrigger = React33.forwardRef(function(_param, ref) {
|
|
10980
11101
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
10981
11102
|
"className",
|
|
10982
11103
|
"children"
|
|
10983
11104
|
]);
|
|
10984
|
-
return /* @__PURE__ */
|
|
11105
|
+
return /* @__PURE__ */ jsxs26(SelectPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
10985
11106
|
ref: ref,
|
|
10986
11107
|
className: cn("flex h-10 w-full items-center justify-between rounded-md border border-Colors-Border-Default bg-Colors-Background-Neutral-On-Surface-Default text-Colors-Text-Default text-sm p-3 ring-offset-cc-Focus-Rings-Brand-default 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)
|
|
10987
11108
|
}, props), {
|
|
10988
11109
|
children: [
|
|
10989
11110
|
children,
|
|
10990
|
-
/* @__PURE__ */
|
|
11111
|
+
/* @__PURE__ */ jsx47(SelectPrimitive.Icon, {
|
|
10991
11112
|
asChild: true,
|
|
10992
|
-
children: /* @__PURE__ */
|
|
11113
|
+
children: /* @__PURE__ */ jsx47(ChevronDown2, {
|
|
10993
11114
|
className: "select-chevron h-5 w-5 text-Colors-Foreground-Subtle duration-200"
|
|
10994
11115
|
})
|
|
10995
11116
|
})
|
|
@@ -10997,47 +11118,47 @@ var SelectTrigger = React32.forwardRef(function(_param, ref) {
|
|
|
10997
11118
|
}));
|
|
10998
11119
|
});
|
|
10999
11120
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
11000
|
-
var SelectScrollUpButton =
|
|
11121
|
+
var SelectScrollUpButton = React33.forwardRef(function(_param, ref) {
|
|
11001
11122
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11002
11123
|
"className"
|
|
11003
11124
|
]);
|
|
11004
|
-
return /* @__PURE__ */
|
|
11125
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.ScrollUpButton, _object_spread_props(_object_spread({
|
|
11005
11126
|
ref: ref,
|
|
11006
11127
|
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
11007
11128
|
}, props), {
|
|
11008
|
-
children: /* @__PURE__ */
|
|
11129
|
+
children: /* @__PURE__ */ jsx47(ChevronUp, {
|
|
11009
11130
|
className: "h-4 w-4"
|
|
11010
11131
|
})
|
|
11011
11132
|
}));
|
|
11012
11133
|
});
|
|
11013
11134
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
11014
|
-
var SelectScrollDownButton =
|
|
11135
|
+
var SelectScrollDownButton = React33.forwardRef(function(_param, ref) {
|
|
11015
11136
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11016
11137
|
"className"
|
|
11017
11138
|
]);
|
|
11018
|
-
return /* @__PURE__ */
|
|
11139
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.ScrollDownButton, _object_spread_props(_object_spread({
|
|
11019
11140
|
ref: ref,
|
|
11020
11141
|
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
11021
11142
|
}, props), {
|
|
11022
|
-
children: /* @__PURE__ */
|
|
11143
|
+
children: /* @__PURE__ */ jsx47(ChevronDown2, {
|
|
11023
11144
|
className: "h-4 w-4"
|
|
11024
11145
|
})
|
|
11025
11146
|
}));
|
|
11026
11147
|
});
|
|
11027
11148
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
11028
|
-
var SelectContent =
|
|
11149
|
+
var SelectContent = React33.forwardRef(function(_param, ref) {
|
|
11029
11150
|
var className = _param.className, children = _param.children, _param_position = _param.position, position = _param_position === void 0 ? "popper" : _param_position, props = _object_without_properties(_param, [
|
|
11030
11151
|
"className",
|
|
11031
11152
|
"children",
|
|
11032
11153
|
"position"
|
|
11033
11154
|
]);
|
|
11034
|
-
return /* @__PURE__ */
|
|
11035
|
-
children: /* @__PURE__ */
|
|
11155
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Portal, {
|
|
11156
|
+
children: /* @__PURE__ */ jsx47(SelectPrimitive.Content, _object_spread_props(_object_spread({
|
|
11036
11157
|
ref: ref,
|
|
11037
11158
|
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-opaque bg-Colors-Background-Normal-Primary-Default text-Colors-Text-Default shadow-cc-Shadows-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),
|
|
11038
11159
|
position: position
|
|
11039
11160
|
}, props), {
|
|
11040
|
-
children: /* @__PURE__ */
|
|
11161
|
+
children: /* @__PURE__ */ jsx47(SelectPrimitive.Viewport, {
|
|
11041
11162
|
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)]"),
|
|
11042
11163
|
children: children
|
|
11043
11164
|
})
|
|
@@ -11045,11 +11166,11 @@ var SelectContent = React32.forwardRef(function(_param, ref) {
|
|
|
11045
11166
|
});
|
|
11046
11167
|
});
|
|
11047
11168
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
11048
|
-
var SelectLabel =
|
|
11169
|
+
var SelectLabel = React33.forwardRef(function(_param, ref) {
|
|
11049
11170
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11050
11171
|
"className"
|
|
11051
11172
|
]);
|
|
11052
|
-
return /* @__PURE__ */
|
|
11173
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Label, _object_spread({
|
|
11053
11174
|
ref: ref,
|
|
11054
11175
|
className: cn("py-1 px-3 text-sm font-medium text-Colors-Text-Subtler", className)
|
|
11055
11176
|
}, props));
|
|
@@ -11060,55 +11181,55 @@ function SelectIcon(props) {
|
|
|
11060
11181
|
if (!icon) {
|
|
11061
11182
|
return null;
|
|
11062
11183
|
}
|
|
11063
|
-
return /* @__PURE__ */
|
|
11184
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Icon, {
|
|
11064
11185
|
children: typeof icon === "string" ? // 如果是字符串URL,作为背景图片显示
|
|
11065
|
-
/* @__PURE__ */
|
|
11186
|
+
/* @__PURE__ */ jsx47("div", {
|
|
11066
11187
|
className: cn("aspect-[20/20] w-5 h-5 relative bg-cover bg-no-repeat rounded-md overflow-hidden mr-1.5", critical && "text-Colors-Text-Critical-Default"),
|
|
11067
11188
|
style: {
|
|
11068
11189
|
backgroundImage: "url('".concat(icon, "')")
|
|
11069
11190
|
}
|
|
11070
|
-
}) :
|
|
11071
|
-
/* @__PURE__ */
|
|
11191
|
+
}) : React33.isValidElement(icon) ? // 如果是React元素,直接渲染
|
|
11192
|
+
/* @__PURE__ */ jsx47("div", {
|
|
11072
11193
|
className: cn("mr-1.5 w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default"),
|
|
11073
11194
|
children: icon
|
|
11074
11195
|
}) : // 如果是组件类型,创建元素
|
|
11075
|
-
/* @__PURE__ */
|
|
11196
|
+
/* @__PURE__ */ jsx47("div", {
|
|
11076
11197
|
className: cn("mr-1.5 w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default"),
|
|
11077
|
-
children:
|
|
11198
|
+
children: React33.createElement(icon, {
|
|
11078
11199
|
className: cn("w-5 h-5 text-Colors-Foreground-Default", critical && "text-Colors-Foreground-Critical-Default")
|
|
11079
11200
|
})
|
|
11080
11201
|
})
|
|
11081
11202
|
});
|
|
11082
11203
|
}
|
|
11083
11204
|
SelectIcon.displayName = SelectPrimitive.Icon.displayName;
|
|
11084
|
-
var SelectItem =
|
|
11205
|
+
var SelectItem = React33.forwardRef(function(_param, ref) {
|
|
11085
11206
|
var className = _param.className, children = _param.children, icon = _param.icon, critical = _param.critical, props = _object_without_properties(_param, [
|
|
11086
11207
|
"className",
|
|
11087
11208
|
"children",
|
|
11088
11209
|
"icon",
|
|
11089
11210
|
"critical"
|
|
11090
11211
|
]);
|
|
11091
|
-
return /* @__PURE__ */
|
|
11212
|
+
return /* @__PURE__ */ jsxs26(SelectPrimitive.Item, _object_spread_props(_object_spread({
|
|
11092
11213
|
ref: ref,
|
|
11093
11214
|
className: cn("relative flex justify-between w-full text-sm cursor-pointer select-none items-center rounded-md 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)
|
|
11094
11215
|
}, props), {
|
|
11095
11216
|
children: [
|
|
11096
|
-
/* @__PURE__ */
|
|
11217
|
+
/* @__PURE__ */ jsxs26("span", {
|
|
11097
11218
|
className: "flex items-center grow",
|
|
11098
11219
|
children: [
|
|
11099
|
-
/* @__PURE__ */
|
|
11220
|
+
/* @__PURE__ */ jsx47(SelectIcon, {
|
|
11100
11221
|
icon: icon,
|
|
11101
11222
|
critical: critical
|
|
11102
11223
|
}),
|
|
11103
|
-
/* @__PURE__ */
|
|
11224
|
+
/* @__PURE__ */ jsx47(SelectPrimitive.ItemText, {
|
|
11104
11225
|
children: children
|
|
11105
11226
|
})
|
|
11106
11227
|
]
|
|
11107
11228
|
}),
|
|
11108
|
-
/* @__PURE__ */
|
|
11229
|
+
/* @__PURE__ */ jsx47("span", {
|
|
11109
11230
|
className: "flex h-4 w-4 items-center justify-center",
|
|
11110
|
-
children: /* @__PURE__ */
|
|
11111
|
-
children: /* @__PURE__ */
|
|
11231
|
+
children: /* @__PURE__ */ jsx47(SelectPrimitive.ItemIndicator, {
|
|
11232
|
+
children: /* @__PURE__ */ jsx47(CheckIcon2, {
|
|
11112
11233
|
className: "h-4 w-4 text-Colors-Foreground-Subtle stroke-[2px]"
|
|
11113
11234
|
})
|
|
11114
11235
|
})
|
|
@@ -11117,11 +11238,11 @@ var SelectItem = React32.forwardRef(function(_param, ref) {
|
|
|
11117
11238
|
}));
|
|
11118
11239
|
});
|
|
11119
11240
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
11120
|
-
var SelectSeparator =
|
|
11241
|
+
var SelectSeparator = React33.forwardRef(function(_param, ref) {
|
|
11121
11242
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11122
11243
|
"className"
|
|
11123
11244
|
]);
|
|
11124
|
-
return /* @__PURE__ */
|
|
11245
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Separator, _object_spread({
|
|
11125
11246
|
ref: ref,
|
|
11126
11247
|
className: cn("-mx-1 my-1 h-px bg-border-default", className)
|
|
11127
11248
|
}, props));
|
|
@@ -11131,17 +11252,17 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
|
11131
11252
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
11132
11253
|
import { cva as cva15 } from "class-variance-authority";
|
|
11133
11254
|
import { X as X2 } from "lucide-react";
|
|
11134
|
-
import * as
|
|
11135
|
-
import { jsx as
|
|
11255
|
+
import * as React34 from "react";
|
|
11256
|
+
import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
11136
11257
|
var Sheet = SheetPrimitive.Root;
|
|
11137
11258
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
11138
11259
|
var SheetClose = SheetPrimitive.Close;
|
|
11139
11260
|
var SheetPortal = SheetPrimitive.Portal;
|
|
11140
|
-
var SheetOverlay =
|
|
11261
|
+
var SheetOverlay = React34.forwardRef(function(_param, ref) {
|
|
11141
11262
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11142
11263
|
"className"
|
|
11143
11264
|
]);
|
|
11144
|
-
return /* @__PURE__ */
|
|
11265
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Overlay, _object_spread_props(_object_spread({
|
|
11145
11266
|
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)
|
|
11146
11267
|
}, props), {
|
|
11147
11268
|
ref: ref
|
|
@@ -11161,16 +11282,16 @@ var sheetVariants = cva15("fixed z-50 gap-4 bg-white p-6 shadow-lg transition ea
|
|
|
11161
11282
|
side: "right"
|
|
11162
11283
|
}
|
|
11163
11284
|
});
|
|
11164
|
-
var SheetContent =
|
|
11285
|
+
var SheetContent = React34.forwardRef(function(_param, ref) {
|
|
11165
11286
|
var _param_side = _param.side, side = _param_side === void 0 ? "right" : _param_side, className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
11166
11287
|
"side",
|
|
11167
11288
|
"className",
|
|
11168
11289
|
"children"
|
|
11169
11290
|
]);
|
|
11170
|
-
return /* @__PURE__ */
|
|
11291
|
+
return /* @__PURE__ */ jsxs27(SheetPortal, {
|
|
11171
11292
|
children: [
|
|
11172
|
-
/* @__PURE__ */
|
|
11173
|
-
/* @__PURE__ */
|
|
11293
|
+
/* @__PURE__ */ jsx48(SheetOverlay, {}),
|
|
11294
|
+
/* @__PURE__ */ jsxs27(SheetPrimitive.Content, _object_spread_props(_object_spread({
|
|
11174
11295
|
ref: ref,
|
|
11175
11296
|
className: cn(sheetVariants({
|
|
11176
11297
|
side: side
|
|
@@ -11178,13 +11299,13 @@ var SheetContent = React33.forwardRef(function(_param, ref) {
|
|
|
11178
11299
|
}, props), {
|
|
11179
11300
|
children: [
|
|
11180
11301
|
children,
|
|
11181
|
-
/* @__PURE__ */
|
|
11302
|
+
/* @__PURE__ */ jsxs27(SheetPrimitive.Close, {
|
|
11182
11303
|
className: "absolute right-4 top-4 rounded-sm 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",
|
|
11183
11304
|
children: [
|
|
11184
|
-
/* @__PURE__ */
|
|
11305
|
+
/* @__PURE__ */ jsx48(X2, {
|
|
11185
11306
|
className: "h-4 w-4"
|
|
11186
11307
|
}),
|
|
11187
|
-
/* @__PURE__ */
|
|
11308
|
+
/* @__PURE__ */ jsx48("span", {
|
|
11188
11309
|
className: "sr-only",
|
|
11189
11310
|
children: "Close"
|
|
11190
11311
|
})
|
|
@@ -11200,7 +11321,7 @@ var SheetHeader = function(_param) {
|
|
|
11200
11321
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11201
11322
|
"className"
|
|
11202
11323
|
]);
|
|
11203
|
-
return /* @__PURE__ */
|
|
11324
|
+
return /* @__PURE__ */ jsx48("div", _object_spread({
|
|
11204
11325
|
className: cn("flex flex-col space-y-2 text-center sm:text-left", className)
|
|
11205
11326
|
}, props));
|
|
11206
11327
|
};
|
|
@@ -11209,65 +11330,65 @@ var SheetFooter = function(_param) {
|
|
|
11209
11330
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11210
11331
|
"className"
|
|
11211
11332
|
]);
|
|
11212
|
-
return /* @__PURE__ */
|
|
11333
|
+
return /* @__PURE__ */ jsx48("div", _object_spread({
|
|
11213
11334
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
|
|
11214
11335
|
}, props));
|
|
11215
11336
|
};
|
|
11216
11337
|
SheetFooter.displayName = "SheetFooter";
|
|
11217
|
-
var SheetTitle =
|
|
11338
|
+
var SheetTitle = React34.forwardRef(function(_param, ref) {
|
|
11218
11339
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11219
11340
|
"className"
|
|
11220
11341
|
]);
|
|
11221
|
-
return /* @__PURE__ */
|
|
11342
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Title, _object_spread({
|
|
11222
11343
|
ref: ref,
|
|
11223
11344
|
className: cn("text-lg font-semibold text-slate-950 dark:text-slate-50", className)
|
|
11224
11345
|
}, props));
|
|
11225
11346
|
});
|
|
11226
11347
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
11227
|
-
var SheetDescription =
|
|
11348
|
+
var SheetDescription = React34.forwardRef(function(_param, ref) {
|
|
11228
11349
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11229
11350
|
"className"
|
|
11230
11351
|
]);
|
|
11231
|
-
return /* @__PURE__ */
|
|
11352
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Description, _object_spread({
|
|
11232
11353
|
ref: ref,
|
|
11233
11354
|
className: cn("text-sm text-slate-500 dark:text-slate-400", className)
|
|
11234
11355
|
}, props));
|
|
11235
11356
|
});
|
|
11236
11357
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
11237
11358
|
// src/components/skeleton.tsx
|
|
11238
|
-
import { jsx as
|
|
11359
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
11239
11360
|
function Skeleton(_param) {
|
|
11240
11361
|
var className = _param.className, _param_animate = _param.animate, animate = _param_animate === void 0 ? true : _param_animate, props = _object_without_properties(_param, [
|
|
11241
11362
|
"className",
|
|
11242
11363
|
"animate"
|
|
11243
11364
|
]);
|
|
11244
|
-
return /* @__PURE__ */
|
|
11365
|
+
return /* @__PURE__ */ jsx49("div", _object_spread({
|
|
11245
11366
|
className: cn("rounded-md bg-Colors-Background-Normal-Secondary-Default", className, animate && "animate-pulse")
|
|
11246
11367
|
}, props));
|
|
11247
11368
|
}
|
|
11248
11369
|
// src/components/slider.tsx
|
|
11249
11370
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
11250
|
-
import * as
|
|
11251
|
-
import { jsx as
|
|
11252
|
-
var Slider =
|
|
11371
|
+
import * as React35 from "react";
|
|
11372
|
+
import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
11373
|
+
var Slider = React35.forwardRef(function(_param, ref) {
|
|
11253
11374
|
var className = _param.className, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, props = _object_without_properties(_param, [
|
|
11254
11375
|
"className",
|
|
11255
11376
|
"size"
|
|
11256
11377
|
]);
|
|
11257
|
-
return /* @__PURE__ */
|
|
11378
|
+
return /* @__PURE__ */ jsx50("div", {
|
|
11258
11379
|
className: "w-full p-3 flex justify-center items-center h-10 rounded-lg border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active shadow-background-default text-sm text-Colors-Text-Default ring-offset-cc-Focus-Rings-Brand-default hover:border-hovered hover:bg-surface-subtle aria-[invalid=true]:border-critical aria-[invalid=true]:hover:border-Colors-Border-Critical aria-[invalid=true]:hover:bg-surface-accent-red-subtlest 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",
|
|
11259
|
-
children: /* @__PURE__ */
|
|
11380
|
+
children: /* @__PURE__ */ jsxs28(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
11260
11381
|
ref: ref,
|
|
11261
11382
|
className: cn("relative flex w-full touch-none select-none items-center", className)
|
|
11262
11383
|
}, props), {
|
|
11263
11384
|
children: [
|
|
11264
|
-
/* @__PURE__ */
|
|
11385
|
+
/* @__PURE__ */ jsx50(SliderPrimitive.Track, {
|
|
11265
11386
|
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"),
|
|
11266
|
-
children: /* @__PURE__ */
|
|
11387
|
+
children: /* @__PURE__ */ jsx50(SliderPrimitive.Range, {
|
|
11267
11388
|
className: "absolute h-full bg-Colors-Background-Brand-Default data-[disabled]:opacity-30"
|
|
11268
11389
|
})
|
|
11269
11390
|
}),
|
|
11270
|
-
/* @__PURE__ */
|
|
11391
|
+
/* @__PURE__ */ jsx50(SliderPrimitive.Thumb, {
|
|
11271
11392
|
className: cn("block rounded-full border-Colors-Utility-Lake-Blue-40 bg-Colors-Background-Normal-Primary-Default ring-offset-cc-Focus-Rings-Brand-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]")
|
|
11272
11393
|
})
|
|
11273
11394
|
]
|
|
@@ -11275,7 +11396,7 @@ var Slider = React34.forwardRef(function(_param, ref) {
|
|
|
11275
11396
|
});
|
|
11276
11397
|
});
|
|
11277
11398
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
11278
|
-
var SliderSingle =
|
|
11399
|
+
var SliderSingle = React35.forwardRef(function(_param, ref) {
|
|
11279
11400
|
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, [
|
|
11280
11401
|
"className",
|
|
11281
11402
|
"containerClassName",
|
|
@@ -11289,12 +11410,12 @@ var SliderSingle = React34.forwardRef(function(_param, ref) {
|
|
|
11289
11410
|
"onValueCommit",
|
|
11290
11411
|
"settable"
|
|
11291
11412
|
]);
|
|
11292
|
-
return /* @__PURE__ */
|
|
11413
|
+
return /* @__PURE__ */ jsxs28("div", {
|
|
11293
11414
|
className: "flex w-full items-center space-x-1.5",
|
|
11294
11415
|
children: [
|
|
11295
|
-
/* @__PURE__ */
|
|
11416
|
+
/* @__PURE__ */ jsx50("div", {
|
|
11296
11417
|
className: cn("w-full p-3 flex justify-center items-center h-10 rounded-lg border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active shadow-background-default text-sm text-Colors-Text-Default ring-offset-cc-Focus-Rings-Brand-default hover:border-hovered hover:bg-surface-subtle aria-[invalid=true]:border-critical aria-[invalid=true]:hover:border-Colors-Border-Critical aria-[invalid=true]:hover:bg-surface-accent-red-subtlest 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),
|
|
11297
|
-
children: /* @__PURE__ */
|
|
11418
|
+
children: /* @__PURE__ */ jsxs28(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
11298
11419
|
ref: ref,
|
|
11299
11420
|
className: cn("relative flex w-full touch-none select-none items-center", className),
|
|
11300
11421
|
value: typeof value1 === "number" ? [
|
|
@@ -11311,21 +11432,21 @@ var SliderSingle = React34.forwardRef(function(_param, ref) {
|
|
|
11311
11432
|
}
|
|
11312
11433
|
}, props), {
|
|
11313
11434
|
children: [
|
|
11314
|
-
/* @__PURE__ */
|
|
11435
|
+
/* @__PURE__ */ jsx50(SliderPrimitive.Track, {
|
|
11315
11436
|
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),
|
|
11316
|
-
children: /* @__PURE__ */
|
|
11437
|
+
children: /* @__PURE__ */ jsx50(SliderPrimitive.Range, {
|
|
11317
11438
|
className: cn("absolute h-full bg-Colors-Background-Brand-Default data-[disabled]:opacity-30", rangeClassName)
|
|
11318
11439
|
})
|
|
11319
11440
|
}),
|
|
11320
|
-
/* @__PURE__ */
|
|
11441
|
+
/* @__PURE__ */ jsx50(SliderPrimitive.Thumb, {
|
|
11321
11442
|
className: cn("cursor-pointer block rounded-full border-Colors-Utility-Lake-Blue-40 bg-Colors-Background-Normal-Primary-Default ring-offset-cc-Focus-Rings-Brand-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)
|
|
11322
11443
|
})
|
|
11323
11444
|
]
|
|
11324
11445
|
}))
|
|
11325
11446
|
}),
|
|
11326
|
-
settable && /* @__PURE__ */
|
|
11447
|
+
settable && /* @__PURE__ */ jsx50("div", {
|
|
11327
11448
|
className: "flex-shrink-0 w-14 h-9 flex justify-center items-center rounded-lg",
|
|
11328
|
-
children: /* @__PURE__ */
|
|
11449
|
+
children: /* @__PURE__ */ jsx50(NumberInput, {
|
|
11329
11450
|
value: value1,
|
|
11330
11451
|
min: props === null || props === void 0 ? void 0 : props.min,
|
|
11331
11452
|
max: props === null || props === void 0 ? void 0 : props.max,
|
|
@@ -11343,8 +11464,8 @@ var SliderSingle = React34.forwardRef(function(_param, ref) {
|
|
|
11343
11464
|
SliderSingle.displayName = "SliderSingle";
|
|
11344
11465
|
// src/components/spinner.tsx
|
|
11345
11466
|
import { cva as cva16 } from "class-variance-authority";
|
|
11346
|
-
import { Loader2 as
|
|
11347
|
-
import { jsx as
|
|
11467
|
+
import { Loader2 as Loader24 } from "lucide-react";
|
|
11468
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
11348
11469
|
var spinnerVariants = cva16("animate-spin", {
|
|
11349
11470
|
variants: {
|
|
11350
11471
|
size: {
|
|
@@ -11376,7 +11497,7 @@ var spinnerVariants = cva16("animate-spin", {
|
|
|
11376
11497
|
});
|
|
11377
11498
|
function Spinner(props) {
|
|
11378
11499
|
var size = props.size, speed = props.speed, color = props.color, className = props.className;
|
|
11379
|
-
return /* @__PURE__ */
|
|
11500
|
+
return /* @__PURE__ */ jsx51(Loader24, {
|
|
11380
11501
|
className: cn(spinnerVariants({
|
|
11381
11502
|
size: size,
|
|
11382
11503
|
speed: speed,
|
|
@@ -11387,8 +11508,8 @@ function Spinner(props) {
|
|
|
11387
11508
|
// src/components/switch.tsx
|
|
11388
11509
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
11389
11510
|
import { cva as cva17 } from "class-variance-authority";
|
|
11390
|
-
import * as
|
|
11391
|
-
import { jsx as
|
|
11511
|
+
import * as React36 from "react";
|
|
11512
|
+
import { jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
11392
11513
|
var switchSize = {
|
|
11393
11514
|
sm: "w-7 h-4",
|
|
11394
11515
|
md: "w-[34px] h-5",
|
|
@@ -11414,30 +11535,30 @@ var switchThumbVariants = cva17("pointer-events-none block rounded-full bg-cc-Sw
|
|
|
11414
11535
|
size: "lg"
|
|
11415
11536
|
}
|
|
11416
11537
|
});
|
|
11417
|
-
var Switch =
|
|
11538
|
+
var Switch = React36.forwardRef(function(_param, ref) {
|
|
11418
11539
|
var className = _param.className, size = _param.size, label = _param.label, labelClassName = _param.labelClassName, props = _object_without_properties(_param, [
|
|
11419
11540
|
"className",
|
|
11420
11541
|
"size",
|
|
11421
11542
|
"label",
|
|
11422
11543
|
"labelClassName"
|
|
11423
11544
|
]);
|
|
11424
|
-
var Component = label ? "div" :
|
|
11425
|
-
return /* @__PURE__ */
|
|
11545
|
+
var Component = label ? "div" : React36.Fragment;
|
|
11546
|
+
return /* @__PURE__ */ jsxs29(Component, {
|
|
11426
11547
|
className: "flex items-center justify-center space-x-1.5 text-Colors-Text-Default",
|
|
11427
11548
|
children: [
|
|
11428
|
-
/* @__PURE__ */
|
|
11549
|
+
/* @__PURE__ */ jsx52(SwitchPrimitives.Root, _object_spread_props(_object_spread({
|
|
11429
11550
|
className: cn(switchRootVariants({
|
|
11430
11551
|
size: size
|
|
11431
11552
|
}), className, "")
|
|
11432
11553
|
}, props), {
|
|
11433
11554
|
ref: ref,
|
|
11434
|
-
children: /* @__PURE__ */
|
|
11555
|
+
children: /* @__PURE__ */ jsx52(SwitchPrimitives.Thumb, {
|
|
11435
11556
|
className: cn(switchThumbVariants({
|
|
11436
11557
|
size: size
|
|
11437
11558
|
}))
|
|
11438
11559
|
})
|
|
11439
11560
|
})),
|
|
11440
|
-
label && /* @__PURE__ */
|
|
11561
|
+
label && /* @__PURE__ */ jsx52("span", {
|
|
11441
11562
|
className: cn("text-sm", labelClassName),
|
|
11442
11563
|
children: label
|
|
11443
11564
|
})
|
|
@@ -11448,8 +11569,8 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
|
11448
11569
|
// src/components/tabs.tsx
|
|
11449
11570
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
11450
11571
|
import { cva as cva18 } from "class-variance-authority";
|
|
11451
|
-
import * as
|
|
11452
|
-
import { jsx as
|
|
11572
|
+
import * as React37 from "react";
|
|
11573
|
+
import { jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
11453
11574
|
var tabListVariants = cva18("relative inline-flex items-center justify-center overflow-hidden", {
|
|
11454
11575
|
variants: {
|
|
11455
11576
|
size: {
|
|
@@ -11560,7 +11681,7 @@ var tabVariants = cva18("relative inline-flex w-full h-full items-center justify
|
|
|
11560
11681
|
rounded: "default"
|
|
11561
11682
|
}
|
|
11562
11683
|
});
|
|
11563
|
-
var Tabs =
|
|
11684
|
+
var Tabs = React37.forwardRef(function(_param, ref) {
|
|
11564
11685
|
var className = _param.className, listClassName = _param.listClassName, _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, [
|
|
11565
11686
|
"className",
|
|
11566
11687
|
"listClassName",
|
|
@@ -11570,14 +11691,14 @@ var Tabs = React36.forwardRef(function(_param, ref) {
|
|
|
11570
11691
|
"rounded",
|
|
11571
11692
|
"items"
|
|
11572
11693
|
]);
|
|
11573
|
-
return /* @__PURE__ */
|
|
11694
|
+
return /* @__PURE__ */ jsxs30(TabsPrimitive.Root, _object_spread_props(_object_spread({
|
|
11574
11695
|
ref: ref,
|
|
11575
11696
|
className: cn(className)
|
|
11576
11697
|
}, props), {
|
|
11577
11698
|
children: [
|
|
11578
|
-
/* @__PURE__ */
|
|
11699
|
+
/* @__PURE__ */ jsx53("div", {
|
|
11579
11700
|
className: "w-full flex justify-center items-center",
|
|
11580
|
-
children: /* @__PURE__ */
|
|
11701
|
+
children: /* @__PURE__ */ jsx53(TabsPrimitive.List, _object_spread_props(_object_spread({
|
|
11581
11702
|
ref: ref,
|
|
11582
11703
|
className: cn("", tabListVariants({
|
|
11583
11704
|
variant: variant,
|
|
@@ -11586,7 +11707,7 @@ var Tabs = React36.forwardRef(function(_param, ref) {
|
|
|
11586
11707
|
}), listClassName)
|
|
11587
11708
|
}, props), {
|
|
11588
11709
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
11589
|
-
return /* @__PURE__ */
|
|
11710
|
+
return /* @__PURE__ */ jsx53(Tab, _object_spread({
|
|
11590
11711
|
isLink: isLink,
|
|
11591
11712
|
variant: variant,
|
|
11592
11713
|
size: size,
|
|
@@ -11595,10 +11716,10 @@ var Tabs = React36.forwardRef(function(_param, ref) {
|
|
|
11595
11716
|
})
|
|
11596
11717
|
}))
|
|
11597
11718
|
}),
|
|
11598
|
-
!isLink && /* @__PURE__ */
|
|
11719
|
+
!isLink && /* @__PURE__ */ jsx53("div", {
|
|
11599
11720
|
className: "w-full",
|
|
11600
11721
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
11601
|
-
return /* @__PURE__ */
|
|
11722
|
+
return /* @__PURE__ */ jsx53(TabsContent, {
|
|
11602
11723
|
value: item.value,
|
|
11603
11724
|
children: item.children
|
|
11604
11725
|
});
|
|
@@ -11608,7 +11729,7 @@ var Tabs = React36.forwardRef(function(_param, ref) {
|
|
|
11608
11729
|
}));
|
|
11609
11730
|
});
|
|
11610
11731
|
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
11611
|
-
var Tab =
|
|
11732
|
+
var Tab = React37.forwardRef(function(_param, ref) {
|
|
11612
11733
|
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, [
|
|
11613
11734
|
"className",
|
|
11614
11735
|
"variant",
|
|
@@ -11623,10 +11744,10 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
11623
11744
|
"rounded",
|
|
11624
11745
|
"onClickCallback"
|
|
11625
11746
|
]);
|
|
11626
|
-
return /* @__PURE__ */
|
|
11747
|
+
return /* @__PURE__ */ jsx53(Tooltip, _object_spread_props(_object_spread({
|
|
11627
11748
|
triggerClassName: "w-full h-full flex-1"
|
|
11628
11749
|
}, tooltip), {
|
|
11629
|
-
children: /* @__PURE__ */
|
|
11750
|
+
children: /* @__PURE__ */ jsx53(TabsPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
11630
11751
|
ref: ref,
|
|
11631
11752
|
className: cn("tabtrigger min-w-fit", tabVariants({
|
|
11632
11753
|
variant: variant,
|
|
@@ -11638,7 +11759,7 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
11638
11759
|
e.stopPropagation();
|
|
11639
11760
|
onClickCallback === null || onClickCallback === void 0 ? void 0 : onClickCallback(props.value);
|
|
11640
11761
|
},
|
|
11641
|
-
children: isLink && link ? /* @__PURE__ */
|
|
11762
|
+
children: isLink && link ? /* @__PURE__ */ jsxs30(link_default, {
|
|
11642
11763
|
prefetch: true,
|
|
11643
11764
|
href: link,
|
|
11644
11765
|
className: cn("relative h-full w-full flex justify-center items-center"),
|
|
@@ -11649,28 +11770,28 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
11649
11770
|
},
|
|
11650
11771
|
children: [
|
|
11651
11772
|
label,
|
|
11652
|
-
hasUnRead && /* @__PURE__ */
|
|
11773
|
+
hasUnRead && /* @__PURE__ */ jsx53(Badge, {
|
|
11653
11774
|
className: "-mt-2.5"
|
|
11654
11775
|
})
|
|
11655
11776
|
]
|
|
11656
|
-
}) : /* @__PURE__ */
|
|
11777
|
+
}) : /* @__PURE__ */ jsxs30("div", {
|
|
11657
11778
|
className: "relative flex justify-center items-center",
|
|
11658
11779
|
children: [
|
|
11659
|
-
label && /* @__PURE__ */
|
|
11780
|
+
label && /* @__PURE__ */ jsx53(Text, {
|
|
11660
11781
|
className: "text-inherit",
|
|
11661
11782
|
children: label
|
|
11662
11783
|
}),
|
|
11663
|
-
icon && /* @__PURE__ */
|
|
11784
|
+
icon && /* @__PURE__ */ jsx53(Icon, {
|
|
11664
11785
|
component: icon,
|
|
11665
11786
|
size: "md",
|
|
11666
11787
|
className: "text-inherit"
|
|
11667
11788
|
}),
|
|
11668
|
-
count2 ? /* @__PURE__ */
|
|
11789
|
+
count2 ? /* @__PURE__ */ jsx53(Text, {
|
|
11669
11790
|
size: "sm",
|
|
11670
11791
|
className: "ml-1 text-Colors-Text-Subtlest",
|
|
11671
11792
|
children: count2
|
|
11672
11793
|
}) : null,
|
|
11673
|
-
hasUnRead && /* @__PURE__ */
|
|
11794
|
+
hasUnRead && /* @__PURE__ */ jsx53(Badge, {
|
|
11674
11795
|
className: "-mt-2.5"
|
|
11675
11796
|
})
|
|
11676
11797
|
]
|
|
@@ -11679,20 +11800,20 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
11679
11800
|
}));
|
|
11680
11801
|
});
|
|
11681
11802
|
Tab.displayName = TabsPrimitive.Trigger.displayName;
|
|
11682
|
-
var TabsContent =
|
|
11803
|
+
var TabsContent = React37.forwardRef(function(_param, ref) {
|
|
11683
11804
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11684
11805
|
"className"
|
|
11685
11806
|
]);
|
|
11686
|
-
return /* @__PURE__ */
|
|
11807
|
+
return /* @__PURE__ */ jsx53(TabsPrimitive.Content, _object_spread({
|
|
11687
11808
|
ref: ref,
|
|
11688
11809
|
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)
|
|
11689
11810
|
}, props));
|
|
11690
11811
|
});
|
|
11691
11812
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
11692
11813
|
// src/components/textarea.tsx
|
|
11693
|
-
import * as
|
|
11694
|
-
import { jsx as
|
|
11695
|
-
var Textarea =
|
|
11814
|
+
import * as React38 from "react";
|
|
11815
|
+
import { jsx as jsx54, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
11816
|
+
var Textarea = React38.forwardRef(function(_param, ref) {
|
|
11696
11817
|
var className = _param.className, maxLength = _param.maxLength, value1 = _param.value, error = _param.error, maxLengthClassName = _param.maxLengthClassName, props = _object_without_properties(_param, [
|
|
11697
11818
|
"className",
|
|
11698
11819
|
"maxLength",
|
|
@@ -11701,20 +11822,20 @@ var Textarea = React37.forwardRef(function(_param, ref) {
|
|
|
11701
11822
|
"maxLengthClassName"
|
|
11702
11823
|
]);
|
|
11703
11824
|
var _value_toString, _value_toString1;
|
|
11704
|
-
return /* @__PURE__ */
|
|
11825
|
+
return /* @__PURE__ */ jsxs31("div", {
|
|
11705
11826
|
children: [
|
|
11706
|
-
/* @__PURE__ */
|
|
11827
|
+
/* @__PURE__ */ jsxs31("div", {
|
|
11707
11828
|
className: "relative",
|
|
11708
11829
|
children: [
|
|
11709
|
-
/* @__PURE__ */
|
|
11830
|
+
/* @__PURE__ */ jsx54("textarea", _object_spread({
|
|
11710
11831
|
className: cn("w-full min-h-[123px] p-3 pb-10 rounded-lg border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active ", "text-sm text-Colors-Text-Default placeholder:text-Colors-Text-Subtlest ring-offset-cc-Focus-Rings-Brand-default", "hover:border-hovered 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),
|
|
11711
11832
|
ref: ref,
|
|
11712
11833
|
maxLength: maxLength,
|
|
11713
11834
|
value: value1
|
|
11714
11835
|
}, props)),
|
|
11715
|
-
maxLength ? /* @__PURE__ */
|
|
11836
|
+
maxLength ? /* @__PURE__ */ jsx54("div", {
|
|
11716
11837
|
className: cn("absolute text-right bottom-5 right-4 border-Colors-Border-Default", maxLengthClassName),
|
|
11717
|
-
children: /* @__PURE__ */
|
|
11838
|
+
children: /* @__PURE__ */ jsx54(Text, {
|
|
11718
11839
|
size: "sm",
|
|
11719
11840
|
color: "subtlest",
|
|
11720
11841
|
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)
|
|
@@ -11722,9 +11843,9 @@ var Textarea = React37.forwardRef(function(_param, ref) {
|
|
|
11722
11843
|
}) : null
|
|
11723
11844
|
]
|
|
11724
11845
|
}),
|
|
11725
|
-
error && /* @__PURE__ */
|
|
11846
|
+
error && /* @__PURE__ */ jsx54("div", {
|
|
11726
11847
|
className: "w-full",
|
|
11727
|
-
children: /* @__PURE__ */
|
|
11848
|
+
children: /* @__PURE__ */ jsx54(Text, {
|
|
11728
11849
|
className: "text-wrap",
|
|
11729
11850
|
size: "sm",
|
|
11730
11851
|
weight: "regular",
|
|
@@ -11739,8 +11860,8 @@ Textarea.displayName = "Textarea";
|
|
|
11739
11860
|
// src/components/toggle.tsx
|
|
11740
11861
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
11741
11862
|
import { cva as cva19 } from "class-variance-authority";
|
|
11742
|
-
import * as
|
|
11743
|
-
import { jsx as
|
|
11863
|
+
import * as React39 from "react";
|
|
11864
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
11744
11865
|
var toggleVariants = cva19("inline-flex items-center justify-center rounded-md 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", {
|
|
11745
11866
|
variants: {
|
|
11746
11867
|
variant: {
|
|
@@ -11759,13 +11880,13 @@ var toggleVariants = cva19("inline-flex items-center justify-center rounded-md t
|
|
|
11759
11880
|
size: "default"
|
|
11760
11881
|
}
|
|
11761
11882
|
});
|
|
11762
|
-
var Toggle =
|
|
11883
|
+
var Toggle = React39.forwardRef(function(_param, ref) {
|
|
11763
11884
|
var className = _param.className, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
|
|
11764
11885
|
"className",
|
|
11765
11886
|
"variant",
|
|
11766
11887
|
"size"
|
|
11767
11888
|
]);
|
|
11768
|
-
return /* @__PURE__ */
|
|
11889
|
+
return /* @__PURE__ */ jsx55(TogglePrimitive.Root, _object_spread({
|
|
11769
11890
|
ref: ref,
|
|
11770
11891
|
className: cn(toggleVariants({
|
|
11771
11892
|
variant: variant,
|
|
@@ -11777,24 +11898,24 @@ var Toggle = React38.forwardRef(function(_param, ref) {
|
|
|
11777
11898
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
11778
11899
|
// src/components/toggle-group.tsx
|
|
11779
11900
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
11780
|
-
import * as
|
|
11781
|
-
import { jsx as
|
|
11782
|
-
var ToggleGroupContext =
|
|
11901
|
+
import * as React40 from "react";
|
|
11902
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
11903
|
+
var ToggleGroupContext = React40.createContext({
|
|
11783
11904
|
size: "default",
|
|
11784
11905
|
variant: "default"
|
|
11785
11906
|
});
|
|
11786
|
-
var ToggleGroup =
|
|
11907
|
+
var ToggleGroup = React40.forwardRef(function(_param, ref) {
|
|
11787
11908
|
var className = _param.className, variant = _param.variant, size = _param.size, children = _param.children, props = _object_without_properties(_param, [
|
|
11788
11909
|
"className",
|
|
11789
11910
|
"variant",
|
|
11790
11911
|
"size",
|
|
11791
11912
|
"children"
|
|
11792
11913
|
]);
|
|
11793
|
-
return /* @__PURE__ */
|
|
11914
|
+
return /* @__PURE__ */ jsx56(ToggleGroupPrimitive.Root, _object_spread_props(_object_spread({
|
|
11794
11915
|
ref: ref,
|
|
11795
11916
|
className: cn("flex items-center justify-center gap-1 p-0.5 rounded-md border border-Colors-Border-Default bg-Colors-Background-Neutral-Primary-Default", className)
|
|
11796
11917
|
}, props), {
|
|
11797
|
-
children: /* @__PURE__ */
|
|
11918
|
+
children: /* @__PURE__ */ jsx56(ToggleGroupContext.Provider, {
|
|
11798
11919
|
value: {
|
|
11799
11920
|
variant: variant,
|
|
11800
11921
|
size: size
|
|
@@ -11804,15 +11925,15 @@ var ToggleGroup = React39.forwardRef(function(_param, ref) {
|
|
|
11804
11925
|
}));
|
|
11805
11926
|
});
|
|
11806
11927
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
11807
|
-
var ToggleGroupItem =
|
|
11928
|
+
var ToggleGroupItem = React40.forwardRef(function(_param, ref) {
|
|
11808
11929
|
var className = _param.className, children = _param.children, variant = _param.variant, size = _param.size, props = _object_without_properties(_param, [
|
|
11809
11930
|
"className",
|
|
11810
11931
|
"children",
|
|
11811
11932
|
"variant",
|
|
11812
11933
|
"size"
|
|
11813
11934
|
]);
|
|
11814
|
-
var context =
|
|
11815
|
-
return /* @__PURE__ */
|
|
11935
|
+
var context = React40.useContext(ToggleGroupContext);
|
|
11936
|
+
return /* @__PURE__ */ jsx56(ToggleGroupPrimitive.Item, _object_spread_props(_object_spread({
|
|
11816
11937
|
ref: ref,
|
|
11817
11938
|
className: cn(toggleVariants({
|
|
11818
11939
|
variant: context.variant || variant,
|
|
@@ -11826,9 +11947,9 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
|
11826
11947
|
// src/components/toast/toast.tsx
|
|
11827
11948
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
11828
11949
|
import { cva as cva20 } from "class-variance-authority";
|
|
11829
|
-
import * as
|
|
11950
|
+
import * as React41 from "react";
|
|
11830
11951
|
import XMarkIcon3 from "@heroicons/react/24/outline/esm/XMarkIcon";
|
|
11831
|
-
import { jsx as
|
|
11952
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
11832
11953
|
var ToastProvider = ToastPrimitives.Provider;
|
|
11833
11954
|
var viewportPositionVariants = cva20("fixed z-[1000001] flex max-h-screen w-full p-0 gap-2", {
|
|
11834
11955
|
variants: {
|
|
@@ -11847,12 +11968,12 @@ var viewportPositionVariants = cva20("fixed z-[1000001] flex max-h-screen w-full
|
|
|
11847
11968
|
position: "top-right"
|
|
11848
11969
|
}
|
|
11849
11970
|
});
|
|
11850
|
-
var ToastViewport =
|
|
11971
|
+
var ToastViewport = React41.forwardRef(function(_param, ref) {
|
|
11851
11972
|
var className = _param.className, position = _param.position, props = _object_without_properties(_param, [
|
|
11852
11973
|
"className",
|
|
11853
11974
|
"position"
|
|
11854
11975
|
]);
|
|
11855
|
-
return /* @__PURE__ */
|
|
11976
|
+
return /* @__PURE__ */ jsx57(ToastPrimitives.Viewport, _object_spread({
|
|
11856
11977
|
ref: ref,
|
|
11857
11978
|
className: cn(viewportPositionVariants({
|
|
11858
11979
|
position: position
|
|
@@ -11884,13 +12005,13 @@ var toastVariants = cva20("group pointer-events-auto relative flex w-full items-
|
|
|
11884
12005
|
position: "top-right"
|
|
11885
12006
|
}
|
|
11886
12007
|
});
|
|
11887
|
-
var Toast =
|
|
12008
|
+
var Toast = React41.forwardRef(function(_param, ref) {
|
|
11888
12009
|
var className = _param.className, variant = _param.variant, position = _param.position, props = _object_without_properties(_param, [
|
|
11889
12010
|
"className",
|
|
11890
12011
|
"variant",
|
|
11891
12012
|
"position"
|
|
11892
12013
|
]);
|
|
11893
|
-
return /* @__PURE__ */
|
|
12014
|
+
return /* @__PURE__ */ jsx57(ToastPrimitives.Root, _object_spread({
|
|
11894
12015
|
ref: ref,
|
|
11895
12016
|
className: cn(toastVariants({
|
|
11896
12017
|
variant: variant,
|
|
@@ -11900,46 +12021,46 @@ var Toast = React40.forwardRef(function(_param, ref) {
|
|
|
11900
12021
|
}, props));
|
|
11901
12022
|
});
|
|
11902
12023
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
11903
|
-
var ToastAction =
|
|
12024
|
+
var ToastAction = React41.forwardRef(function(_param, ref) {
|
|
11904
12025
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11905
12026
|
"className"
|
|
11906
12027
|
]);
|
|
11907
|
-
return /* @__PURE__ */
|
|
12028
|
+
return /* @__PURE__ */ jsx57(ToastPrimitives.Action, _object_spread({
|
|
11908
12029
|
ref: ref,
|
|
11909
12030
|
className: cn("inline-flex h-8 shrink-0 items-center justify-center rounded-md 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)
|
|
11910
12031
|
}, props));
|
|
11911
12032
|
});
|
|
11912
12033
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
11913
|
-
var ToastClose =
|
|
12034
|
+
var ToastClose = React41.forwardRef(function(_param, ref) {
|
|
11914
12035
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11915
12036
|
"className"
|
|
11916
12037
|
]);
|
|
11917
|
-
return /* @__PURE__ */
|
|
12038
|
+
return /* @__PURE__ */ jsx57(ToastPrimitives.Close, _object_spread_props(_object_spread({
|
|
11918
12039
|
ref: ref,
|
|
11919
12040
|
className: cn("absolute right-4 top-4 rounded-md 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),
|
|
11920
12041
|
"toast-close": ""
|
|
11921
12042
|
}, props), {
|
|
11922
|
-
children: /* @__PURE__ */
|
|
12043
|
+
children: /* @__PURE__ */ jsx57(XMarkIcon3, {
|
|
11923
12044
|
className: "h-5 w-5"
|
|
11924
12045
|
})
|
|
11925
12046
|
}));
|
|
11926
12047
|
});
|
|
11927
12048
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
11928
|
-
var ToastTitle =
|
|
12049
|
+
var ToastTitle = React41.forwardRef(function(_param, ref) {
|
|
11929
12050
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11930
12051
|
"className"
|
|
11931
12052
|
]);
|
|
11932
|
-
return /* @__PURE__ */
|
|
12053
|
+
return /* @__PURE__ */ jsx57(ToastPrimitives.Title, _object_spread({
|
|
11933
12054
|
ref: ref,
|
|
11934
12055
|
className: cn("text-sm font-semibold", className)
|
|
11935
12056
|
}, props));
|
|
11936
12057
|
});
|
|
11937
12058
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
11938
|
-
var ToastDescription =
|
|
12059
|
+
var ToastDescription = React41.forwardRef(function(_param, ref) {
|
|
11939
12060
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
11940
12061
|
"className"
|
|
11941
12062
|
]);
|
|
11942
|
-
return /* @__PURE__ */
|
|
12063
|
+
return /* @__PURE__ */ jsx57(ToastPrimitives.Description, _object_spread({
|
|
11943
12064
|
ref: ref,
|
|
11944
12065
|
className: cn("text-sm opacity-90", className)
|
|
11945
12066
|
}, props));
|
|
@@ -11951,8 +12072,8 @@ import ExclamationCircleIcon from "@heroicons/react/24/outline/esm/ExclamationCi
|
|
|
11951
12072
|
import InformationCircleIcon2 from "@heroicons/react/24/outline/esm/InformationCircleIcon";
|
|
11952
12073
|
import XCircleIcon2 from "@heroicons/react/24/outline/esm/XCircleIcon";
|
|
11953
12074
|
// src/components/toast/use-toast.tsx
|
|
11954
|
-
import * as
|
|
11955
|
-
import { jsx as
|
|
12075
|
+
import * as React42 from "react";
|
|
12076
|
+
import { jsx as jsx58, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
11956
12077
|
var TOAST_LIMIT = 8;
|
|
11957
12078
|
var TOAST_REMOVE_DELAY = 1e3;
|
|
11958
12079
|
var count = 0;
|
|
@@ -12055,10 +12176,10 @@ function toast(_param) {
|
|
|
12055
12176
|
toast: _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, props), {
|
|
12056
12177
|
position: position
|
|
12057
12178
|
}), actions && {
|
|
12058
|
-
action: /* @__PURE__ */
|
|
12179
|
+
action: /* @__PURE__ */ jsxs32("div", {
|
|
12059
12180
|
className: "flex justify-start items-center gap-2",
|
|
12060
12181
|
children: [
|
|
12061
|
-
(actions === null || actions === void 0 ? void 0 : actions.dismissText) && /* @__PURE__ */
|
|
12182
|
+
(actions === null || actions === void 0 ? void 0 : actions.dismissText) && /* @__PURE__ */ jsx58(Text, {
|
|
12062
12183
|
size: "sm",
|
|
12063
12184
|
weight: "medium",
|
|
12064
12185
|
color: "brand",
|
|
@@ -12068,13 +12189,13 @@ function toast(_param) {
|
|
|
12068
12189
|
},
|
|
12069
12190
|
children: actions === null || actions === void 0 ? void 0 : actions.dismissText
|
|
12070
12191
|
}),
|
|
12071
|
-
(actions === null || actions === void 0 ? void 0 : actions.view) && actions.viewUrl && /* @__PURE__ */
|
|
12192
|
+
(actions === null || actions === void 0 ? void 0 : actions.view) && actions.viewUrl && /* @__PURE__ */ jsx58(link_default, {
|
|
12072
12193
|
href: actions.viewUrl,
|
|
12073
12194
|
target: "_blank",
|
|
12074
12195
|
rel: "noreferrer noopener",
|
|
12075
|
-
children: /* @__PURE__ */
|
|
12196
|
+
children: /* @__PURE__ */ jsx58("div", {
|
|
12076
12197
|
className: "flex items-center gap-1.5",
|
|
12077
|
-
children: /* @__PURE__ */
|
|
12198
|
+
children: /* @__PURE__ */ jsx58(Text, {
|
|
12078
12199
|
size: "sm",
|
|
12079
12200
|
weight: "medium",
|
|
12080
12201
|
color: "default",
|
|
@@ -12100,8 +12221,8 @@ function toast(_param) {
|
|
|
12100
12221
|
};
|
|
12101
12222
|
}
|
|
12102
12223
|
function useToast() {
|
|
12103
|
-
var
|
|
12104
|
-
|
|
12224
|
+
var _React42_useState = _sliced_to_array(React42.useState(memoryState), 2), state = _React42_useState[0], setState = _React42_useState[1];
|
|
12225
|
+
React42.useEffect(function() {
|
|
12105
12226
|
listeners.push(setState);
|
|
12106
12227
|
return function() {
|
|
12107
12228
|
var index = listeners.indexOf(setState);
|
|
@@ -12123,12 +12244,12 @@ function useToast() {
|
|
|
12123
12244
|
});
|
|
12124
12245
|
}
|
|
12125
12246
|
// src/components/toast/toaster.tsx
|
|
12126
|
-
import
|
|
12127
|
-
import { jsx as
|
|
12247
|
+
import React43 from "react";
|
|
12248
|
+
import { jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
12128
12249
|
function Toaster() {
|
|
12129
12250
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref_position = _ref.position, position = _ref_position === void 0 ? "top-right" : _ref_position;
|
|
12130
12251
|
var toasts = useToast().toasts;
|
|
12131
|
-
var positionGroups =
|
|
12252
|
+
var positionGroups = React43.useMemo(function() {
|
|
12132
12253
|
var groups = {};
|
|
12133
12254
|
var allPositions = [
|
|
12134
12255
|
"top-left",
|
|
@@ -12158,22 +12279,22 @@ function Toaster() {
|
|
|
12158
12279
|
]);
|
|
12159
12280
|
var renderToast = function(toast4) {
|
|
12160
12281
|
var id = toast4.id, title = toast4.title, description = toast4.description, action = toast4.action, variant = toast4.variant, toastPosition = toast4.position;
|
|
12161
|
-
var
|
|
12282
|
+
var renderIcon3 = function(variant2) {
|
|
12162
12283
|
switch(variant2){
|
|
12163
12284
|
case "info":
|
|
12164
|
-
return /* @__PURE__ */
|
|
12285
|
+
return /* @__PURE__ */ jsx59(InformationCircleIcon2, {
|
|
12165
12286
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
12166
12287
|
});
|
|
12167
12288
|
case "success":
|
|
12168
|
-
return /* @__PURE__ */
|
|
12289
|
+
return /* @__PURE__ */ jsx59(CheckCircleIcon2, {
|
|
12169
12290
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
12170
12291
|
});
|
|
12171
12292
|
case "warning":
|
|
12172
|
-
return /* @__PURE__ */
|
|
12293
|
+
return /* @__PURE__ */ jsx59(ExclamationCircleIcon, {
|
|
12173
12294
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
12174
12295
|
});
|
|
12175
12296
|
case "error":
|
|
12176
|
-
return /* @__PURE__ */
|
|
12297
|
+
return /* @__PURE__ */ jsx59(XCircleIcon2, {
|
|
12177
12298
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
12178
12299
|
});
|
|
12179
12300
|
}
|
|
@@ -12190,26 +12311,26 @@ function Toaster() {
|
|
|
12190
12311
|
return "bg-Colors-Background-Critical-Default";
|
|
12191
12312
|
}
|
|
12192
12313
|
};
|
|
12193
|
-
return /* @__PURE__ */
|
|
12314
|
+
return /* @__PURE__ */ jsxs33(Toast, _object_spread_props(_object_spread({}, toast4), {
|
|
12194
12315
|
position: toastPosition,
|
|
12195
12316
|
children: [
|
|
12196
|
-
/* @__PURE__ */
|
|
12317
|
+
/* @__PURE__ */ jsx59("div", {
|
|
12197
12318
|
className: "flex flex-col gap-3",
|
|
12198
|
-
children: /* @__PURE__ */
|
|
12319
|
+
children: /* @__PURE__ */ jsxs33("div", {
|
|
12199
12320
|
className: "flex items-start gap-3",
|
|
12200
12321
|
children: [
|
|
12201
|
-
/* @__PURE__ */
|
|
12322
|
+
/* @__PURE__ */ jsx59("div", {
|
|
12202
12323
|
className: cn("flex h-10 w-10 flex-shrink-0 flex-grow-0 items-center justify-center rounded-full", getBackgroundColor(variant)),
|
|
12203
|
-
children:
|
|
12324
|
+
children: renderIcon3(variant)
|
|
12204
12325
|
}),
|
|
12205
|
-
/* @__PURE__ */
|
|
12326
|
+
/* @__PURE__ */ jsxs33("div", {
|
|
12206
12327
|
className: "grid gap-1",
|
|
12207
12328
|
children: [
|
|
12208
|
-
title && /* @__PURE__ */
|
|
12329
|
+
title && /* @__PURE__ */ jsx59(ToastTitle, {
|
|
12209
12330
|
className: "text-base text-Colors-Text-Default",
|
|
12210
12331
|
children: title
|
|
12211
12332
|
}),
|
|
12212
|
-
description && /* @__PURE__ */
|
|
12333
|
+
description && /* @__PURE__ */ jsx59(ToastDescription, {
|
|
12213
12334
|
className: "text-sm text-Colors-Text-Subtle",
|
|
12214
12335
|
children: description
|
|
12215
12336
|
}),
|
|
@@ -12219,17 +12340,17 @@ function Toaster() {
|
|
|
12219
12340
|
]
|
|
12220
12341
|
})
|
|
12221
12342
|
}),
|
|
12222
|
-
/* @__PURE__ */
|
|
12343
|
+
/* @__PURE__ */ jsx59(ToastClose, {})
|
|
12223
12344
|
]
|
|
12224
12345
|
}), id);
|
|
12225
12346
|
};
|
|
12226
|
-
return /* @__PURE__ */
|
|
12347
|
+
return /* @__PURE__ */ jsx59(ToastProvider, {
|
|
12227
12348
|
children: Object.entries(positionGroups).map(function(param) {
|
|
12228
12349
|
var _param = _sliced_to_array(param, 2), pos = _param[0], toastsForPosition = _param[1];
|
|
12229
|
-
return /* @__PURE__ */
|
|
12350
|
+
return /* @__PURE__ */ jsxs33(React43.Fragment, {
|
|
12230
12351
|
children: [
|
|
12231
12352
|
toastsForPosition.map(renderToast),
|
|
12232
|
-
toastsForPosition.length > 0 && /* @__PURE__ */
|
|
12353
|
+
toastsForPosition.length > 0 && /* @__PURE__ */ jsx59(ToastViewport, {
|
|
12233
12354
|
position: pos
|
|
12234
12355
|
})
|
|
12235
12356
|
]
|
|
@@ -12251,7 +12372,7 @@ import "swiper/css/pagination";
|
|
|
12251
12372
|
// src/components/swiper/index.module.scss
|
|
12252
12373
|
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-icon content-none;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next::after) {\n @apply text-icon 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-icon border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Default rounded-full cursor-pointer hover:bg-surface-hovered active:bg-Colors-Background-Normal-Primary-Active;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next)::after {\n @apply text-icon 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-icon border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Default rounded-full cursor-pointer hover:bg-surface-hovered active:bg-Colors-Background-Normal-Primary-Active;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev)::after {\n @apply text-icon 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL1VzZXJzL3hpYW9ndWFuZy9jb2RlL215c2hlbGwtcmVhY3QtbGliL3NyYy9jb21wb25lbnRzL3N3aXBlciIsInNvdXJjZXMiOlsiaW5kZXgubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRTs7QUFHRTtFQUNFO0VBQ0E7O0FBRUY7RUFDRTtFQUNBOztBQUVGO0VBQ0U7O0FBRUY7RUFDRTs7QUFJRjtFQUVFOztBQUVGO0VBRUU7O0FBRUY7RUFDRTs7QUFHRjtFQUNFOztBQUVGO0VBQ0U7O0FBSUY7RUFDRTs7QUFFRjtFQUNFOztBQUVGO0VBQ0U7O0FBSUY7RUFDRTs7QUFFRjtFQUNFOztBQUVGO0VBQ0U7O0FBSUY7RUFDRTs7QUFLRjtFQUNFOztBQUNFO0VBQ0U7O0FBR047RUFDRTs7QUFDRTtFQUNFOzs7QUFPUjtFQUNFIiwic291cmNlc0NvbnRlbnQiOlsiLnN3aXBlckJveHtcbiAgQGFwcGx5IHctZnVsbCBoLWZpdDtcbiAgXG4gIDpnbG9iYWwoLnN3aXBlcikge1xuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tcHJldil7XG4gICAgICBAYXBwbHkgYmctY29udGFpbiBiZy1uby1yZXBlYXQ7XG4gICAgICBiYWNrZ3JvdW5kLWltYWdlOiB1cmwoJ2RhdGE6aW1hZ2Uvc3ZnK3htbDtiYXNlNjQsUEhOMlp5QjRiV3h1Y3owaWFIUjBjRG92TDNkM2R5NTNNeTV2Y21jdk1qQXdNQzl6ZG1jaUlIWnBaWGRDYjNnOUlqQWdNQ0F5TUNBeU1DSWdabWxzYkQwaUl6UXhORE0wTlNJZ1kyeGhjM005SW5OcGVtVXROU0krQ2lBZ1BIQmhkR2dnWm1sc2JDMXlkV3hsUFNKbGRtVnViMlJrSWlCa1BTSk5NVEV1TnpnZ05TNHlNbUV1TnpVdU56VWdNQ0F3SURFZ01DQXhMakEyVERndU1EWWdNVEJzTXk0M01pQXpMamN5WVM0M05TNDNOU0F3SURFZ01TMHhMakEySURFdU1EWnNMVFF1TWpVdE5DNHlOV0V1TnpVdU56VWdNQ0F3SURFZ01DMHhMakEyYkRRdU1qVXROQzR5TldFdU56VXVOelVnTUNBd0lERWdNUzR3TmlBd1dpSWdZMnhwY0MxeWRXeGxQU0psZG1WdWIyUmtJaUF2UGdvOEwzTjJaejRLJyk7IFxuICAgIH1cbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLW5leHQpe1xuICAgICAgQGFwcGx5IGJnLWNvbnRhaW4gYmctbm8tcmVwZWF0O1xuICAgICAgYmFja2dyb3VuZC1pbWFnZTogdXJsKCdkYXRhOmltYWdlL3N2Zyt4bWw7YmFzZTY0LFBITjJaeUI0Yld4dWN6MGlhSFIwY0RvdkwzZDNkeTUzTXk1dmNtY3ZNakF3TUM5emRtY2lJSFpwWlhkQ2IzZzlJakFnTUNBeU1DQXlNQ0lnWm1sc2JEMGlJelF4TkRNME5TSWdZMnhoYzNNOUluTnBlbVV0TlNJK0NpQWdQSEJoZEdnZ1ptbHNiQzF5ZFd4bFBTSmxkbVZ1YjJSa0lpQmtQU0pOT0M0eU1pQTFMakl5WVM0M05TNDNOU0F3SURBZ01TQXhMakEySURCc05DNHlOU0EwTGpJMVlTNDNOUzQzTlNBd0lEQWdNU0F3SURFdU1EWnNMVFF1TWpVZ05DNHlOV0V1TnpVdU56VWdNQ0F3SURFdE1TNHdOaTB4TGpBMlRERXhMamswSURFd0lEZ3VNaklnTmk0eU9HRXVOelV1TnpVZ01DQXdJREVnTUMweExqQTJXaUlnWTJ4cGNDMXlkV3hsUFNKbGRtVnViMlJrSWlBdlBnbzhMM04yWno0S0NnPT0nKTsgXG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tcHJldjo6YWZ0ZXIpe1xuICAgICAgQGFwcGx5IHRleHQtaWNvbiBjb250ZW50LW5vbmU7XG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tbmV4dDo6YWZ0ZXIpe1xuICAgICAgQGFwcGx5IHRleHQtaWNvbiBjb250ZW50LW5vbmU7XG4gICAgfVxuICB9XG4gIDpnbG9iYWwoLnN3aXBlci5iYW5uZXItc3dpcGVyKSB7XG4gICAgOmdsb2JhbCguYmFubmVyLXN3aXBlci1zbGlkZS5zd2lwZXItc2xpZGUtcHJldikge1xuICAgICAgLy8gdHJhbnNmb3JtOiBzY2FsZSgwLjgpO1xuICAgICAgQGFwcGx5IG9yaWdpbi1yaWdodDtcbiAgICB9XG4gICAgOmdsb2JhbCguYmFubmVyLXN3aXBlci1zbGlkZS5zd2lwZXItc2xpZGUtbmV4dCkge1xuICAgICAgLy8gdHJhbnNmb3JtOiBzY2FsZSgwLjgpO1xuICAgICAgQGFwcGx5IG9yaWdpbi1sZWZ0O1xuICAgIH1cbiAgICA6Z2xvYmFsKC5zd2lwZXItc2xpZGUtYWN0aXZlKSB7XG4gICAgICBAYXBwbHkgb3BhY2l0eS0xMDA7XG4gICAgICAvLyB0cmFuc2Zvcm06IHNjYWxlKDEpIHRyYW5zbGF0ZVgoMCk7XG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tbmV4dCl7XG4gICAgICBAYXBwbHkgLXJpZ2h0LTQgbWQ6cmlnaHQtMCAzeGw6cmlnaHQtW2NhbGMoKDEwMCUtMTIwMHB4KS8yLTE2cHgpXTtcbiAgICB9XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1wcmV2KXtcbiAgICAgIEBhcHBseSAtbGVmdC00IG1kOmxlZnQtMCAzeGw6bGVmdC1bY2FsYygoMTAwJS0xMjAwcHgpLzItMTZweCldO1xuICAgIH1cbiAgfVxuICA6Z2xvYmFsKC5zd2lwZXIuZmVhdHVyZS1zd2lwZXIpIHtcbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLW5leHQpe1xuICAgICAgQGFwcGx5IHJpZ2h0LTA7XG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tcHJldil7XG4gICAgICBAYXBwbHkgbGVmdC0wO1xuICAgIH1cbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLWRpc2FibGVkKSB7XG4gICAgICBAYXBwbHkgaGlkZGVuO1xuICAgIH1cbiAgfVxuICA6Z2xvYmFsKC5zd2lwZXIucGF0cm9uLWJhZGdlLXN3aXBlcikge1xuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tbmV4dCl7XG4gICAgICBAYXBwbHkgcmlnaHQtMDtcbiAgICB9XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1wcmV2KXtcbiAgICAgIEBhcHBseSBsZWZ0LTA7XG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tZGlzYWJsZWQpIHtcbiAgICAgIEBhcHBseSBoaWRkZW47XG4gICAgfVxuICB9XG4gIDpnbG9iYWwoLnN3aXBlci5ncmlkLXN3aXBlcikge1xuICAgIDpnbG9iYWwoLnN3aXBlci13cmFwcGVyKSB7XG4gICAgICBAYXBwbHkgdy1bMTAwdnddIG1kOnctZnVsbCBmbGV4LXdyYXAgZmxleC1jb2wgbS0wO1xuICAgIH1cbiAgfVxuICA6Z2xvYmFsKC5zd2lwZXIpIHtcbiAgICBcbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLW5leHQpe1xuICAgICAgQGFwcGx5IGhpZGRlbiBtZDpmbGV4IGp1c3RpZnktY2VudGVyIGl0ZW1zLWNlbnRlciBhYnNvbHV0ZSB0b3AtWzUwJV0gdy04IGgtOCBmb250LXNlbWlib2xkIHRleHQtaWNvbiBib3JkZXIgYm9yZGVyLUNvbG9ycy1Cb3JkZXItRGVmYXVsdCBiZy1Db2xvcnMtQmFja2dyb3VuZC1Ob3JtYWwtUHJpbWFyeS1EZWZhdWx0IHJvdW5kZWQtZnVsbCBjdXJzb3ItcG9pbnRlciBob3ZlcjpiZy1zdXJmYWNlLWhvdmVyZWQgYWN0aXZlOmJnLUNvbG9ycy1CYWNrZ3JvdW5kLU5vcm1hbC1QcmltYXJ5LUFjdGl2ZTtcbiAgICAgICAgJjo6YWZ0ZXIge1xuICAgICAgICAgIEBhcHBseSB0ZXh0LWljb24gdGV4dC14cyBmb250LWJvbGQ7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLXByZXYpe1xuICAgICAgQGFwcGx5IGhpZGRlbiBtZDpmbGV4IGp1c3RpZnktY2VudGVyIGl0ZW1zLWNlbnRlciBhYnNvbHV0ZSB0b3AtWzUwJV0gdy04IGgtOCBmb250LXNlbWlib2xkIHRleHQtaWNvbiBib3JkZXIgYm9yZGVyLUNvbG9ycy1Cb3JkZXItRGVmYXVsdCBiZy1Db2xvcnMtQmFja2dyb3VuZC1Ob3JtYWwtUHJpbWFyeS1EZWZhdWx0IHJvdW5kZWQtZnVsbCBjdXJzb3ItcG9pbnRlciBob3ZlcjpiZy1zdXJmYWNlLWhvdmVyZWQgYWN0aXZlOmJnLUNvbG9ycy1CYWNrZ3JvdW5kLU5vcm1hbC1QcmltYXJ5LUFjdGl2ZTtcbiAgICAgICAgJjo6YWZ0ZXIge1xuICAgICAgICAgIEBhcHBseSB0ZXh0LWljb24gdGV4dC14cyBmb250LWJvbGQ7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG5cbi5hbmltYXRlIHtcbiAgOmdsb2JhbCguc3dpcGVyLXNsaWRlKSB7XG4gICAgdHJhbnNpdGlvbjogdHJhbnNmb3JtIDUwMG1zIGxpbmVhcjtcbiAgfVxufVxuIl19 */';
|
|
12253
12374
|
// src/components/swiper/index.tsx
|
|
12254
|
-
import { jsx as
|
|
12375
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
12255
12376
|
var swiperVariants = cva21("", {
|
|
12256
12377
|
variants: {
|
|
12257
12378
|
rounded: {
|
|
@@ -12387,9 +12508,9 @@ function Swiper(props) {
|
|
|
12387
12508
|
}
|
|
12388
12509
|
}
|
|
12389
12510
|
};
|
|
12390
|
-
return /* @__PURE__ */
|
|
12511
|
+
return /* @__PURE__ */ jsx60("div", {
|
|
12391
12512
|
className: index_module_default.swiperBox,
|
|
12392
|
-
children: /* @__PURE__ */
|
|
12513
|
+
children: /* @__PURE__ */ jsx60(SwiperComponent, _object_spread_props(_object_spread({
|
|
12393
12514
|
observer: true,
|
|
12394
12515
|
observeParents: true
|
|
12395
12516
|
}, swiperConfigs), {
|
|
@@ -12399,9 +12520,9 @@ function Swiper(props) {
|
|
|
12399
12520
|
swiperRef.current = swiper;
|
|
12400
12521
|
},
|
|
12401
12522
|
children: swiperList.map(function(item, index) {
|
|
12402
|
-
return /* @__PURE__ */
|
|
12523
|
+
return /* @__PURE__ */ jsx60(SwiperSlide, {
|
|
12403
12524
|
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),
|
|
12404
|
-
children: /* @__PURE__ */
|
|
12525
|
+
children: /* @__PURE__ */ jsx60(Com, {
|
|
12405
12526
|
item: item,
|
|
12406
12527
|
index: index,
|
|
12407
12528
|
onClick: handleSlideItemClick,
|
|
@@ -12422,48 +12543,48 @@ import ExclamationCircleIcon2 from "@heroicons/react/24/solid/esm/ExclamationCir
|
|
|
12422
12543
|
import InformationCircleIcon3 from "@heroicons/react/24/solid/esm/InformationCircleIcon";
|
|
12423
12544
|
import XCircleIcon3 from "@heroicons/react/24/solid/esm/XCircleIcon";
|
|
12424
12545
|
import { toast as toast2 } from "react-hot-toast";
|
|
12425
|
-
import { Fragment as
|
|
12546
|
+
import { Fragment as Fragment12, jsx as jsx61, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
12426
12547
|
function CustomNotification(param) {
|
|
12427
12548
|
var tProps = param.tProps, customProps = param.customProps;
|
|
12428
12549
|
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;
|
|
12429
12550
|
var id = tProps.id;
|
|
12430
12551
|
var displayedContent = !isString(content) ? JSON.stringify(content) : content;
|
|
12431
|
-
return /* @__PURE__ */
|
|
12432
|
-
children: /* @__PURE__ */
|
|
12552
|
+
return /* @__PURE__ */ jsx61("div", {
|
|
12553
|
+
children: /* @__PURE__ */ jsx61("div", {
|
|
12433
12554
|
id: id,
|
|
12434
12555
|
className: "z-[10000000] min-h-10 w-fit max-w-[90vw] rounded-full border border-opaque bg-Colors-Background-Normal-Primary-Active px-3 py-2 shadow-modal-default md:max-w-[560px]",
|
|
12435
|
-
children: /* @__PURE__ */
|
|
12556
|
+
children: /* @__PURE__ */ jsxs34("div", {
|
|
12436
12557
|
className: "flex w-full items-center justify-center gap-2",
|
|
12437
12558
|
children: [
|
|
12438
|
-
loading && /* @__PURE__ */
|
|
12439
|
-
!loading && type && /* @__PURE__ */
|
|
12559
|
+
loading && /* @__PURE__ */ jsx61(Spinner, {}),
|
|
12560
|
+
!loading && type && /* @__PURE__ */ jsxs34("div", {
|
|
12440
12561
|
className: "flex flex-shrink-0 items-center",
|
|
12441
12562
|
children: [
|
|
12442
|
-
type === "info" && /* @__PURE__ */
|
|
12563
|
+
type === "info" && /* @__PURE__ */ jsx61(InformationCircleIcon3, {
|
|
12443
12564
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
12444
12565
|
}),
|
|
12445
|
-
type === "success" && /* @__PURE__ */
|
|
12566
|
+
type === "success" && /* @__PURE__ */ jsx61(CheckCircleIcon3, {
|
|
12446
12567
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
12447
12568
|
}),
|
|
12448
|
-
type === "warning" && /* @__PURE__ */
|
|
12569
|
+
type === "warning" && /* @__PURE__ */ jsx61(ExclamationCircleIcon2, {
|
|
12449
12570
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
12450
12571
|
}),
|
|
12451
|
-
type === "error" && /* @__PURE__ */
|
|
12572
|
+
type === "error" && /* @__PURE__ */ jsx61(XCircleIcon3, {
|
|
12452
12573
|
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
12453
12574
|
})
|
|
12454
12575
|
]
|
|
12455
12576
|
}),
|
|
12456
|
-
/* @__PURE__ */
|
|
12577
|
+
/* @__PURE__ */ jsxs34("div", {
|
|
12457
12578
|
className: "flex flex-grow flex-col space-y-1 overflow-hidden",
|
|
12458
12579
|
children: [
|
|
12459
|
-
title && /* @__PURE__ */
|
|
12580
|
+
title && /* @__PURE__ */ jsx61(Text, {
|
|
12460
12581
|
size: "sm",
|
|
12461
12582
|
weight: "regular",
|
|
12462
12583
|
color: "default",
|
|
12463
12584
|
children: title
|
|
12464
12585
|
}),
|
|
12465
|
-
/* @__PURE__ */
|
|
12466
|
-
children: /* @__PURE__ */
|
|
12586
|
+
/* @__PURE__ */ jsx61("div", {
|
|
12587
|
+
children: /* @__PURE__ */ jsx61(Text, {
|
|
12467
12588
|
size: "sm",
|
|
12468
12589
|
weight: "regular",
|
|
12469
12590
|
color: "default",
|
|
@@ -12472,16 +12593,16 @@ function CustomNotification(param) {
|
|
|
12472
12593
|
})
|
|
12473
12594
|
]
|
|
12474
12595
|
}),
|
|
12475
|
-
action && /* @__PURE__ */
|
|
12596
|
+
action && /* @__PURE__ */ jsxs34(Fragment12, {
|
|
12476
12597
|
children: [
|
|
12477
|
-
/* @__PURE__ */
|
|
12598
|
+
/* @__PURE__ */ jsx61(Separator, {
|
|
12478
12599
|
orientation: "vertical",
|
|
12479
12600
|
className: "h-3"
|
|
12480
12601
|
}),
|
|
12481
12602
|
action
|
|
12482
12603
|
]
|
|
12483
12604
|
}),
|
|
12484
|
-
isClosable && /* @__PURE__ */
|
|
12605
|
+
isClosable && /* @__PURE__ */ jsx61(IconButton, {
|
|
12485
12606
|
size: "sm",
|
|
12486
12607
|
variant: "plain",
|
|
12487
12608
|
icon: XMarkIcon4,
|
|
@@ -12498,14 +12619,14 @@ function CustomNotification(param) {
|
|
|
12498
12619
|
// src/common/hooks/useNotification.tsx
|
|
12499
12620
|
import { useCallback as useCallback5 } from "react";
|
|
12500
12621
|
import { toast as toast3 } from "react-hot-toast";
|
|
12501
|
-
import { jsx as
|
|
12622
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
12502
12623
|
function useNotification() {
|
|
12503
12624
|
var addToast = useCallback5(function(config2, duration2) {
|
|
12504
12625
|
if (config2.id) {
|
|
12505
12626
|
toast3.remove(config2.id);
|
|
12506
12627
|
}
|
|
12507
12628
|
toast3.custom(function(t) {
|
|
12508
|
-
return /* @__PURE__ */
|
|
12629
|
+
return /* @__PURE__ */ jsx62(CustomNotification, {
|
|
12509
12630
|
tProps: _object_spread_props(_object_spread({}, t), {
|
|
12510
12631
|
duration: duration2
|
|
12511
12632
|
}),
|
|
@@ -12566,7 +12687,7 @@ var Message = /*#__PURE__*/ function() {
|
|
|
12566
12687
|
}
|
|
12567
12688
|
var addToast = function() {
|
|
12568
12689
|
toast3.custom(function(t) {
|
|
12569
|
-
return /* @__PURE__ */
|
|
12690
|
+
return /* @__PURE__ */ jsx62(CustomNotification, {
|
|
12570
12691
|
tProps: _object_spread_props(_object_spread({}, t), {
|
|
12571
12692
|
duration: duration2
|
|
12572
12693
|
}),
|
|
@@ -12622,11 +12743,11 @@ var Message = /*#__PURE__*/ function() {
|
|
|
12622
12743
|
return Message;
|
|
12623
12744
|
}();
|
|
12624
12745
|
// src/components/icons/outline/ArrowLeftIcon.tsx
|
|
12625
|
-
import * as
|
|
12626
|
-
import { jsx as
|
|
12627
|
-
var ArrowLeftIcon2 =
|
|
12628
|
-
return /* @__PURE__ */
|
|
12629
|
-
children: /* @__PURE__ */
|
|
12746
|
+
import * as React44 from "react";
|
|
12747
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
12748
|
+
var ArrowLeftIcon2 = React44.forwardRef(function(props, ref) {
|
|
12749
|
+
return /* @__PURE__ */ jsx63(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12750
|
+
children: /* @__PURE__ */ jsx63("svg", {
|
|
12630
12751
|
ref: ref,
|
|
12631
12752
|
className: "w-full h-full",
|
|
12632
12753
|
viewBox: "0 0 24 24",
|
|
@@ -12634,7 +12755,7 @@ var ArrowLeftIcon2 = React43.forwardRef(function(props, ref) {
|
|
|
12634
12755
|
strokeWidth: "1.5",
|
|
12635
12756
|
stroke: "currentColor",
|
|
12636
12757
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12637
|
-
children: /* @__PURE__ */
|
|
12758
|
+
children: /* @__PURE__ */ jsx63("path", {
|
|
12638
12759
|
strokeLinecap: "round",
|
|
12639
12760
|
strokeLinejoin: "round",
|
|
12640
12761
|
d: "M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"
|
|
@@ -12643,11 +12764,11 @@ var ArrowLeftIcon2 = React43.forwardRef(function(props, ref) {
|
|
|
12643
12764
|
}));
|
|
12644
12765
|
});
|
|
12645
12766
|
// src/components/icons/outline/ArrowUpTrayIcon.tsx
|
|
12646
|
-
import * as
|
|
12647
|
-
import { jsx as
|
|
12648
|
-
var ArrowUpTrayIcon =
|
|
12649
|
-
return /* @__PURE__ */
|
|
12650
|
-
children: /* @__PURE__ */
|
|
12767
|
+
import * as React45 from "react";
|
|
12768
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
12769
|
+
var ArrowUpTrayIcon = React45.forwardRef(function(props, ref) {
|
|
12770
|
+
return /* @__PURE__ */ jsx64(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12771
|
+
children: /* @__PURE__ */ jsx64("svg", {
|
|
12651
12772
|
ref: ref,
|
|
12652
12773
|
className: "w-full h-full",
|
|
12653
12774
|
viewBox: "0 0 24 24",
|
|
@@ -12655,7 +12776,7 @@ var ArrowUpTrayIcon = React44.forwardRef(function(props, ref) {
|
|
|
12655
12776
|
strokeWidth: "1.5",
|
|
12656
12777
|
stroke: "currentColor",
|
|
12657
12778
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12658
|
-
children: /* @__PURE__ */
|
|
12779
|
+
children: /* @__PURE__ */ jsx64("path", {
|
|
12659
12780
|
strokeLinecap: "round",
|
|
12660
12781
|
strokeLinejoin: "round",
|
|
12661
12782
|
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"
|
|
@@ -12664,11 +12785,11 @@ var ArrowUpTrayIcon = React44.forwardRef(function(props, ref) {
|
|
|
12664
12785
|
}));
|
|
12665
12786
|
});
|
|
12666
12787
|
// src/components/icons/outline/WindowIcon.tsx
|
|
12667
|
-
import * as
|
|
12668
|
-
import { jsx as
|
|
12669
|
-
var WindowIcon =
|
|
12670
|
-
return /* @__PURE__ */
|
|
12671
|
-
children: /* @__PURE__ */
|
|
12788
|
+
import * as React46 from "react";
|
|
12789
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
12790
|
+
var WindowIcon = React46.forwardRef(function(props, ref) {
|
|
12791
|
+
return /* @__PURE__ */ jsx65(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12792
|
+
children: /* @__PURE__ */ jsx65("svg", {
|
|
12672
12793
|
ref: ref,
|
|
12673
12794
|
className: "w-full h-full",
|
|
12674
12795
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12676,7 +12797,7 @@ var WindowIcon = React45.forwardRef(function(props, ref) {
|
|
|
12676
12797
|
fill: "none",
|
|
12677
12798
|
strokeWidth: "1.5",
|
|
12678
12799
|
stroke: "currentColor",
|
|
12679
|
-
children: /* @__PURE__ */
|
|
12800
|
+
children: /* @__PURE__ */ jsx65("path", {
|
|
12680
12801
|
strokeLinecap: "round",
|
|
12681
12802
|
strokeLinejoin: "round",
|
|
12682
12803
|
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"
|
|
@@ -12685,21 +12806,21 @@ var WindowIcon = React45.forwardRef(function(props, ref) {
|
|
|
12685
12806
|
}));
|
|
12686
12807
|
});
|
|
12687
12808
|
// src/components/icons/outline/CheckCircleIcon.tsx
|
|
12688
|
-
import * as
|
|
12689
|
-
import { jsx as
|
|
12690
|
-
var CheckCircleIcon4 =
|
|
12691
|
-
return /* @__PURE__ */
|
|
12692
|
-
children: /* @__PURE__ */
|
|
12809
|
+
import * as React47 from "react";
|
|
12810
|
+
import { jsx as jsx66, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
12811
|
+
var CheckCircleIcon4 = React47.forwardRef(function(props, ref) {
|
|
12812
|
+
return /* @__PURE__ */ jsx66(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12813
|
+
children: /* @__PURE__ */ jsxs35("svg", {
|
|
12693
12814
|
ref: ref,
|
|
12694
12815
|
className: "w-full h-full",
|
|
12695
12816
|
viewBox: "0 0 24 24",
|
|
12696
12817
|
fill: "currentColor",
|
|
12697
12818
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12698
12819
|
children: [
|
|
12699
|
-
/* @__PURE__ */
|
|
12820
|
+
/* @__PURE__ */ jsx66("path", {
|
|
12700
12821
|
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"
|
|
12701
12822
|
}),
|
|
12702
|
-
/* @__PURE__ */
|
|
12823
|
+
/* @__PURE__ */ jsx66("path", {
|
|
12703
12824
|
fillRule: "evenodd",
|
|
12704
12825
|
clipRule: "evenodd",
|
|
12705
12826
|
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"
|
|
@@ -12709,11 +12830,11 @@ var CheckCircleIcon4 = React46.forwardRef(function(props, ref) {
|
|
|
12709
12830
|
}));
|
|
12710
12831
|
});
|
|
12711
12832
|
// src/components/icons/outline/PencilSquareIcon.tsx
|
|
12712
|
-
import * as
|
|
12713
|
-
import { jsx as
|
|
12714
|
-
var PencilSquareIcon =
|
|
12715
|
-
return /* @__PURE__ */
|
|
12716
|
-
children: /* @__PURE__ */
|
|
12833
|
+
import * as React48 from "react";
|
|
12834
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
12835
|
+
var PencilSquareIcon = React48.forwardRef(function(props, ref) {
|
|
12836
|
+
return /* @__PURE__ */ jsx67(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12837
|
+
children: /* @__PURE__ */ jsx67("svg", {
|
|
12717
12838
|
ref: ref,
|
|
12718
12839
|
className: "w-full h-full",
|
|
12719
12840
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12721,7 +12842,7 @@ var PencilSquareIcon = React47.forwardRef(function(props, ref) {
|
|
|
12721
12842
|
viewBox: "0 0 24 24",
|
|
12722
12843
|
strokeWidth: "1.5",
|
|
12723
12844
|
stroke: "currentColor",
|
|
12724
|
-
children: /* @__PURE__ */
|
|
12845
|
+
children: /* @__PURE__ */ jsx67("path", {
|
|
12725
12846
|
strokeLinecap: "round",
|
|
12726
12847
|
strokeLinejoin: "round",
|
|
12727
12848
|
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"
|
|
@@ -12730,35 +12851,35 @@ var PencilSquareIcon = React47.forwardRef(function(props, ref) {
|
|
|
12730
12851
|
}));
|
|
12731
12852
|
});
|
|
12732
12853
|
// src/components/icons/outline/ConfigIcon.tsx
|
|
12733
|
-
import * as
|
|
12734
|
-
import { jsx as
|
|
12735
|
-
var ConfigIcon =
|
|
12736
|
-
return /* @__PURE__ */
|
|
12737
|
-
children: /* @__PURE__ */
|
|
12854
|
+
import * as React49 from "react";
|
|
12855
|
+
import { jsx as jsx68, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
12856
|
+
var ConfigIcon = React49.forwardRef(function(props, ref) {
|
|
12857
|
+
return /* @__PURE__ */ jsx68(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12858
|
+
children: /* @__PURE__ */ jsx68("svg", {
|
|
12738
12859
|
width: "18",
|
|
12739
12860
|
height: "18",
|
|
12740
12861
|
viewBox: "0 0 18 18",
|
|
12741
12862
|
fill: "none",
|
|
12742
12863
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12743
12864
|
className: "cursor-pointer",
|
|
12744
|
-
children: /* @__PURE__ */
|
|
12865
|
+
children: /* @__PURE__ */ jsx68("g", {
|
|
12745
12866
|
id: "wrapper",
|
|
12746
|
-
children: /* @__PURE__ */
|
|
12867
|
+
children: /* @__PURE__ */ jsxs36("g", {
|
|
12747
12868
|
id: "Union",
|
|
12748
12869
|
children: [
|
|
12749
|
-
/* @__PURE__ */
|
|
12870
|
+
/* @__PURE__ */ jsx68("path", {
|
|
12750
12871
|
fillRule: "evenodd",
|
|
12751
12872
|
clipRule: "evenodd",
|
|
12752
12873
|
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",
|
|
12753
12874
|
fill: "#6D7175"
|
|
12754
12875
|
}),
|
|
12755
|
-
/* @__PURE__ */
|
|
12876
|
+
/* @__PURE__ */ jsx68("path", {
|
|
12756
12877
|
fillRule: "evenodd",
|
|
12757
12878
|
clipRule: "evenodd",
|
|
12758
12879
|
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",
|
|
12759
12880
|
fill: "#6D7175"
|
|
12760
12881
|
}),
|
|
12761
|
-
/* @__PURE__ */
|
|
12882
|
+
/* @__PURE__ */ jsx68("path", {
|
|
12762
12883
|
fillRule: "evenodd",
|
|
12763
12884
|
clipRule: "evenodd",
|
|
12764
12885
|
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",
|
|
@@ -12771,38 +12892,38 @@ var ConfigIcon = React48.forwardRef(function(props, ref) {
|
|
|
12771
12892
|
}));
|
|
12772
12893
|
});
|
|
12773
12894
|
// src/components/icons/solid/CaretDownIcon.tsx
|
|
12774
|
-
import * as
|
|
12775
|
-
import { jsx as
|
|
12776
|
-
var CaretDownIcon =
|
|
12777
|
-
return /* @__PURE__ */
|
|
12778
|
-
children: /* @__PURE__ */
|
|
12895
|
+
import * as React50 from "react";
|
|
12896
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
12897
|
+
var CaretDownIcon = React50.forwardRef(function(props, ref) {
|
|
12898
|
+
return /* @__PURE__ */ jsx69(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12899
|
+
children: /* @__PURE__ */ jsx69("svg", {
|
|
12779
12900
|
ref: ref,
|
|
12780
12901
|
className: "w-full h-full",
|
|
12781
12902
|
viewBox: "0 0 24 24",
|
|
12782
12903
|
fill: "currentColor",
|
|
12783
12904
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12784
|
-
children: /* @__PURE__ */
|
|
12905
|
+
children: /* @__PURE__ */ jsx69("path", {
|
|
12785
12906
|
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"
|
|
12786
12907
|
})
|
|
12787
12908
|
})
|
|
12788
12909
|
}));
|
|
12789
12910
|
});
|
|
12790
12911
|
// src/components/icons/solid/CodeIcon.tsx
|
|
12791
|
-
import * as
|
|
12792
|
-
import { jsx as
|
|
12793
|
-
var CodeIcon =
|
|
12794
|
-
return /* @__PURE__ */
|
|
12795
|
-
children: /* @__PURE__ */
|
|
12912
|
+
import * as React51 from "react";
|
|
12913
|
+
import { jsx as jsx70, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
12914
|
+
var CodeIcon = React51.forwardRef(function(props, ref) {
|
|
12915
|
+
return /* @__PURE__ */ jsx70(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12916
|
+
children: /* @__PURE__ */ jsxs37("svg", {
|
|
12796
12917
|
ref: ref,
|
|
12797
12918
|
className: "w-full h-full",
|
|
12798
12919
|
viewBox: "0 0 24 24",
|
|
12799
12920
|
fill: "currentColor",
|
|
12800
12921
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12801
12922
|
children: [
|
|
12802
|
-
/* @__PURE__ */
|
|
12923
|
+
/* @__PURE__ */ jsx70("path", {
|
|
12803
12924
|
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"
|
|
12804
12925
|
}),
|
|
12805
|
-
/* @__PURE__ */
|
|
12926
|
+
/* @__PURE__ */ jsx70("path", {
|
|
12806
12927
|
fillRule: "evenodd",
|
|
12807
12928
|
clipRule: "evenodd",
|
|
12808
12929
|
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"
|
|
@@ -12812,17 +12933,17 @@ var CodeIcon = React50.forwardRef(function(props, ref) {
|
|
|
12812
12933
|
}));
|
|
12813
12934
|
});
|
|
12814
12935
|
// src/components/icons/solid/DragIcon.tsx
|
|
12815
|
-
import * as
|
|
12816
|
-
import { jsx as
|
|
12817
|
-
var DragIcon =
|
|
12818
|
-
return /* @__PURE__ */
|
|
12819
|
-
children: /* @__PURE__ */
|
|
12936
|
+
import * as React52 from "react";
|
|
12937
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
12938
|
+
var DragIcon = React52.forwardRef(function(props, ref) {
|
|
12939
|
+
return /* @__PURE__ */ jsx71(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12940
|
+
children: /* @__PURE__ */ jsx71("svg", {
|
|
12820
12941
|
ref: ref,
|
|
12821
12942
|
className: "w-full h-full",
|
|
12822
12943
|
viewBox: "0 0 24 24",
|
|
12823
12944
|
fill: "currentColor",
|
|
12824
12945
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12825
|
-
children: /* @__PURE__ */
|
|
12946
|
+
children: /* @__PURE__ */ jsx71("path", {
|
|
12826
12947
|
fillRule: "evenodd",
|
|
12827
12948
|
clipRule: "evenodd",
|
|
12828
12949
|
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"
|
|
@@ -12831,22 +12952,22 @@ var DragIcon = React51.forwardRef(function(props, ref) {
|
|
|
12831
12952
|
}));
|
|
12832
12953
|
});
|
|
12833
12954
|
// src/components/icons/solid/PhoneIcon.tsx
|
|
12834
|
-
import * as
|
|
12835
|
-
import { jsx as
|
|
12836
|
-
var PhoneIcon =
|
|
12837
|
-
return /* @__PURE__ */
|
|
12838
|
-
children: /* @__PURE__ */
|
|
12955
|
+
import * as React53 from "react";
|
|
12956
|
+
import { jsx as jsx72, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
12957
|
+
var PhoneIcon = React53.forwardRef(function(props, ref) {
|
|
12958
|
+
return /* @__PURE__ */ jsx72(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12959
|
+
children: /* @__PURE__ */ jsxs38("svg", {
|
|
12839
12960
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12840
12961
|
width: "20",
|
|
12841
12962
|
height: "20",
|
|
12842
12963
|
viewBox: "0 0 20 20",
|
|
12843
12964
|
fill: "none",
|
|
12844
12965
|
children: [
|
|
12845
|
-
/* @__PURE__ */
|
|
12966
|
+
/* @__PURE__ */ jsx72("path", {
|
|
12846
12967
|
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",
|
|
12847
12968
|
fill: "#3E5CFA"
|
|
12848
12969
|
}),
|
|
12849
|
-
/* @__PURE__ */
|
|
12970
|
+
/* @__PURE__ */ jsx72("path", {
|
|
12850
12971
|
fillRule: "evenodd",
|
|
12851
12972
|
clipRule: "evenodd",
|
|
12852
12973
|
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",
|
|
@@ -12857,17 +12978,17 @@ var PhoneIcon = React52.forwardRef(function(props, ref) {
|
|
|
12857
12978
|
}));
|
|
12858
12979
|
});
|
|
12859
12980
|
// src/components/icons/solid/RectangleGroupIcon.tsx
|
|
12860
|
-
import * as
|
|
12861
|
-
import { jsx as
|
|
12862
|
-
var RectangleGroupIcon =
|
|
12863
|
-
return /* @__PURE__ */
|
|
12864
|
-
children: /* @__PURE__ */
|
|
12981
|
+
import * as React54 from "react";
|
|
12982
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
12983
|
+
var RectangleGroupIcon = React54.forwardRef(function(props, ref) {
|
|
12984
|
+
return /* @__PURE__ */ jsx73(Icon, _object_spread_props(_object_spread({}, props), {
|
|
12985
|
+
children: /* @__PURE__ */ jsx73("svg", {
|
|
12865
12986
|
ref: ref,
|
|
12866
12987
|
className: "w-full h-full",
|
|
12867
12988
|
viewBox: "0 0 24 24",
|
|
12868
12989
|
fill: "currentColor",
|
|
12869
12990
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12870
|
-
children: /* @__PURE__ */
|
|
12991
|
+
children: /* @__PURE__ */ jsx73("path", {
|
|
12871
12992
|
fillRule: "evenodd",
|
|
12872
12993
|
clipRule: "evenodd",
|
|
12873
12994
|
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"
|