myshell-react-lib 0.2.45 → 0.3.1
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 +114 -87
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -8
- package/dist/index.d.ts +14 -8
- package/dist/index.js +115 -88
- package/dist/index.js.map +1 -1
- package/dist/styles/components-dark-v2.scss +220 -0
- package/dist/styles/components-light-v2.scss +220 -0
- package/dist/styles/design2-dark-v2.scss +443 -0
- package/dist/styles/design2-light-v2.scss +443 -0
- package/dist/styles/global.scss +5 -5
- package/dist/styles/new-tokens-v2.scss +518 -0
- package/package.json +2 -2
- package/dist/styles/components-dark.scss +0 -210
- package/dist/styles/components-light.scss +0 -208
- package/dist/styles/design2-dark.scss +0 -332
- package/dist/styles/design2-light.scss +0 -366
- package/dist/styles/new-tokens.scss +0 -264
package/dist/index.js
CHANGED
|
@@ -6301,6 +6301,13 @@ var iconVariants = cva("inline-flex shrink-0", {
|
|
|
6301
6301
|
color: "default"
|
|
6302
6302
|
}
|
|
6303
6303
|
});
|
|
6304
|
+
var SMALL_ICON_SIZES = /* @__PURE__ */ new Set([
|
|
6305
|
+
"2xs",
|
|
6306
|
+
"xs",
|
|
6307
|
+
"sm",
|
|
6308
|
+
"md",
|
|
6309
|
+
"lg"
|
|
6310
|
+
]);
|
|
6304
6311
|
var Icon = React.forwardRef(function(props, ref) {
|
|
6305
6312
|
var children = props.children, component = props.component, size = props.size, color = props.color, rotate = props.rotate, className = props.className, passProps = _object_without_properties(props, [
|
|
6306
6313
|
"children",
|
|
@@ -6311,10 +6318,11 @@ var Icon = React.forwardRef(function(props, ref) {
|
|
|
6311
6318
|
"className"
|
|
6312
6319
|
]);
|
|
6313
6320
|
var Com = component || "span";
|
|
6321
|
+
var strokeWidth = SMALL_ICON_SIZES.has(size) ? 1.25 : 1.5;
|
|
6314
6322
|
return /* @__PURE__ */ jsx(Com, _object_spread_props(_object_spread({
|
|
6315
6323
|
ref: ref
|
|
6316
6324
|
}, passProps), {
|
|
6317
|
-
strokeWidth:
|
|
6325
|
+
strokeWidth: strokeWidth,
|
|
6318
6326
|
className: cn(iconVariants({
|
|
6319
6327
|
size: size,
|
|
6320
6328
|
color: color,
|
|
@@ -6354,21 +6362,27 @@ var lineClampMap = {
|
|
|
6354
6362
|
5: "line-clamp-5",
|
|
6355
6363
|
6: "line-clamp-6"
|
|
6356
6364
|
};
|
|
6357
|
-
var displayVariants = cva2("
|
|
6365
|
+
var displayVariants = cva2("display-font-style font-ABCDiatype", {
|
|
6358
6366
|
variants: {
|
|
6359
6367
|
size: {
|
|
6360
|
-
"
|
|
6368
|
+
"3xl": "text-7xl",
|
|
6369
|
+
"2xl": "text-6xl",
|
|
6361
6370
|
xl: "text-5xl",
|
|
6362
6371
|
lg: "text-3xl",
|
|
6363
6372
|
md: "text-2xl",
|
|
6364
6373
|
sm: "text-xl",
|
|
6365
6374
|
xs: "text-lg"
|
|
6366
6375
|
},
|
|
6376
|
+
weight: {
|
|
6377
|
+
medium: "font-medium",
|
|
6378
|
+
semibold: "font-semibold"
|
|
6379
|
+
},
|
|
6367
6380
|
color: colorMap,
|
|
6368
6381
|
lineClamp: lineClampMap
|
|
6369
6382
|
},
|
|
6370
6383
|
defaultVariants: {
|
|
6371
6384
|
size: "lg",
|
|
6385
|
+
weight: "medium",
|
|
6372
6386
|
color: "default"
|
|
6373
6387
|
}
|
|
6374
6388
|
});
|
|
@@ -6530,9 +6544,10 @@ var Heading = React2.forwardRef(function(props, ref) {
|
|
|
6530
6544
|
}));
|
|
6531
6545
|
});
|
|
6532
6546
|
var Display = React2.forwardRef(function(props, ref) {
|
|
6533
|
-
var className = props.className, size = props.size, color = props.color, lineClamp = props.lineClamp, underline = props.underline, strikethrough = props.strikethrough, strong = props.strong, italic = props.italic, children = props.children, dangerous = props.dangerous, passProps = _object_without_properties(props, [
|
|
6547
|
+
var className = props.className, size = props.size, weight = props.weight, color = props.color, lineClamp = props.lineClamp, underline = props.underline, strikethrough = props.strikethrough, strong = props.strong, italic = props.italic, children = props.children, dangerous = props.dangerous, passProps = _object_without_properties(props, [
|
|
6534
6548
|
"className",
|
|
6535
6549
|
"size",
|
|
6550
|
+
"weight",
|
|
6536
6551
|
"color",
|
|
6537
6552
|
"lineClamp",
|
|
6538
6553
|
"underline",
|
|
@@ -6553,6 +6568,7 @@ var Display = React2.forwardRef(function(props, ref) {
|
|
|
6553
6568
|
ref: ref,
|
|
6554
6569
|
className: cn(displayVariants({
|
|
6555
6570
|
size: size,
|
|
6571
|
+
weight: weight,
|
|
6556
6572
|
color: color,
|
|
6557
6573
|
lineClamp: lineClamp
|
|
6558
6574
|
}), className)
|
|
@@ -6720,23 +6736,24 @@ import { jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
|
6720
6736
|
var CircleErrorIcon = React4.forwardRef(function(props, ref) {
|
|
6721
6737
|
return /* @__PURE__ */ jsx4(Icon, _object_spread_props(_object_spread({}, props), {
|
|
6722
6738
|
children: /* @__PURE__ */ jsxs("svg", {
|
|
6723
|
-
className: "w-full h-full",
|
|
6724
|
-
viewBox: "0 0 20 20",
|
|
6725
|
-
fill: "currentColor",
|
|
6726
6739
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6740
|
+
width: "20",
|
|
6741
|
+
height: "20",
|
|
6742
|
+
viewBox: "0 0 20 20",
|
|
6743
|
+
fill: "none",
|
|
6727
6744
|
children: [
|
|
6728
6745
|
/* @__PURE__ */ jsx4("circle", {
|
|
6729
6746
|
cx: "10",
|
|
6730
6747
|
cy: "10",
|
|
6731
6748
|
r: "8",
|
|
6732
|
-
fill: "#
|
|
6749
|
+
fill: "#EF3B2E"
|
|
6733
6750
|
}),
|
|
6734
6751
|
/* @__PURE__ */ jsx4("path", {
|
|
6735
|
-
d: "M12
|
|
6736
|
-
stroke: "
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6752
|
+
d: "M12.5 7.5L7.5 12.5M7.5 7.5L12.5 12.5",
|
|
6753
|
+
stroke: "white",
|
|
6754
|
+
"stroke-width": "1.04167",
|
|
6755
|
+
"stroke-linecap": "round",
|
|
6756
|
+
"stroke-linejoin": "round"
|
|
6740
6757
|
})
|
|
6741
6758
|
]
|
|
6742
6759
|
})
|
|
@@ -6748,23 +6765,24 @@ import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
|
6748
6765
|
var CircleInfoIcon = React5.forwardRef(function(props, ref) {
|
|
6749
6766
|
return /* @__PURE__ */ jsx5(Icon, _object_spread_props(_object_spread({}, props), {
|
|
6750
6767
|
children: /* @__PURE__ */ jsxs2("svg", {
|
|
6751
|
-
className: "w-full h-full",
|
|
6752
|
-
viewBox: "0 0 20 20",
|
|
6753
|
-
fill: "currentColor",
|
|
6754
6768
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6769
|
+
width: "20",
|
|
6770
|
+
height: "20",
|
|
6771
|
+
viewBox: "0 0 20 20",
|
|
6772
|
+
fill: "none",
|
|
6755
6773
|
children: [
|
|
6756
6774
|
/* @__PURE__ */ jsx5("circle", {
|
|
6757
6775
|
cx: "10",
|
|
6758
6776
|
cy: "10",
|
|
6759
6777
|
r: "8",
|
|
6760
|
-
fill: "#
|
|
6778
|
+
fill: "#357FE9"
|
|
6761
6779
|
}),
|
|
6762
6780
|
/* @__PURE__ */ jsx5("path", {
|
|
6763
|
-
d: "M10
|
|
6764
|
-
stroke: "
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6781
|
+
d: "M10.01 13.3333L10.01 9.66666M10.01 6.99999L10.0033 6.99999",
|
|
6782
|
+
stroke: "white",
|
|
6783
|
+
"stroke-width": "1.25",
|
|
6784
|
+
"stroke-linecap": "round",
|
|
6785
|
+
"stroke-linejoin": "round"
|
|
6768
6786
|
})
|
|
6769
6787
|
]
|
|
6770
6788
|
})
|
|
@@ -6776,23 +6794,24 @@ import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
|
6776
6794
|
var CircleWarningIcon = React6.forwardRef(function(props, ref) {
|
|
6777
6795
|
return /* @__PURE__ */ jsx6(Icon, _object_spread_props(_object_spread({}, props), {
|
|
6778
6796
|
children: /* @__PURE__ */ jsxs3("svg", {
|
|
6779
|
-
className: "w-full h-full",
|
|
6780
|
-
viewBox: "0 0 20 20",
|
|
6781
|
-
fill: "currentColor",
|
|
6782
6797
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6798
|
+
width: "20",
|
|
6799
|
+
height: "20",
|
|
6800
|
+
viewBox: "0 0 20 20",
|
|
6801
|
+
fill: "none",
|
|
6783
6802
|
children: [
|
|
6784
6803
|
/* @__PURE__ */ jsx6("circle", {
|
|
6785
6804
|
cx: "10",
|
|
6786
6805
|
cy: "10",
|
|
6787
6806
|
r: "8",
|
|
6788
|
-
fill: "#
|
|
6807
|
+
fill: "#ED9908"
|
|
6789
6808
|
}),
|
|
6790
6809
|
/* @__PURE__ */ jsx6("path", {
|
|
6791
|
-
d: "M9.99994
|
|
6792
|
-
stroke: "
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6810
|
+
d: "M9.99994 7V10.6667M9.99994 13.3333H10.0066",
|
|
6811
|
+
stroke: "white",
|
|
6812
|
+
"stroke-width": "1.25",
|
|
6813
|
+
"stroke-linecap": "round",
|
|
6814
|
+
"stroke-linejoin": "round"
|
|
6796
6815
|
})
|
|
6797
6816
|
]
|
|
6798
6817
|
})
|
|
@@ -6804,23 +6823,24 @@ import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
|
6804
6823
|
var CircleSuccessIcon = React7.forwardRef(function(props, ref) {
|
|
6805
6824
|
return /* @__PURE__ */ jsx7(Icon, _object_spread_props(_object_spread({}, props), {
|
|
6806
6825
|
children: /* @__PURE__ */ jsxs4("svg", {
|
|
6807
|
-
className: "w-full h-full",
|
|
6808
|
-
viewBox: "0 0 20 20",
|
|
6809
|
-
fill: "currentColor",
|
|
6810
6826
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6827
|
+
width: "20",
|
|
6828
|
+
height: "20",
|
|
6829
|
+
viewBox: "0 0 20 20",
|
|
6830
|
+
fill: "none",
|
|
6811
6831
|
children: [
|
|
6812
6832
|
/* @__PURE__ */ jsx7("circle", {
|
|
6813
6833
|
cx: "10",
|
|
6814
6834
|
cy: "10",
|
|
6815
6835
|
r: "8",
|
|
6816
|
-
fill: "#
|
|
6836
|
+
fill: "#17A966"
|
|
6817
6837
|
}),
|
|
6818
6838
|
/* @__PURE__ */ jsx7("path", {
|
|
6819
|
-
d: "
|
|
6820
|
-
stroke: "
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6839
|
+
d: "M7 10.3333L9 12.3333L13 8.33334",
|
|
6840
|
+
stroke: "white",
|
|
6841
|
+
"stroke-width": "1.25",
|
|
6842
|
+
"stroke-linecap": "round",
|
|
6843
|
+
"stroke-linejoin": "round"
|
|
6824
6844
|
})
|
|
6825
6845
|
]
|
|
6826
6846
|
})
|
|
@@ -10614,7 +10634,7 @@ var DropdownMenuSubTrigger = React21.forwardRef(function(_param, ref) {
|
|
|
10614
10634
|
]);
|
|
10615
10635
|
return /* @__PURE__ */ jsxs16(DropdownMenuPrimitive.SubTrigger, _object_spread_props(_object_spread({
|
|
10616
10636
|
ref: ref,
|
|
10617
|
-
className: cn("flex cursor-pointer select-none items-center rounded-sm px-3 py-2 outline-none focus:bg-
|
|
10637
|
+
className: cn("flex cursor-pointer select-none items-center rounded-sm px-3 py-2 outline-none focus:bg-cc-Dropdown-bg-hover data-[state=open]:bg-cc-Dropdown-bg-hover", inset && "pl-8", className)
|
|
10618
10638
|
}, props), {
|
|
10619
10639
|
children: [
|
|
10620
10640
|
children,
|
|
@@ -10654,7 +10674,7 @@ var DropdownMenuSubContent = React21.forwardRef(function(_param, ref) {
|
|
|
10654
10674
|
return /* @__PURE__ */ jsx27(DropdownMenuPrimitive.SubContent, _object_spread({
|
|
10655
10675
|
ref: ref,
|
|
10656
10676
|
sideOffset: sideOffset,
|
|
10657
|
-
className: cn("z-50 min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Default bg-
|
|
10677
|
+
className: cn("z-50 min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Default bg-cc-Dropdown-bg-default p-2 text-Colors-Text-Default shadow-modal-default data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
|
|
10658
10678
|
onMouseEnter: hoverContext ? handleMouseEnter : onMouseEnter,
|
|
10659
10679
|
onMouseLeave: hoverContext ? handleMouseLeave : onMouseLeave
|
|
10660
10680
|
}, props));
|
|
@@ -10694,7 +10714,7 @@ var DropdownMenuContent = React21.forwardRef(function(_param, ref) {
|
|
|
10694
10714
|
return /* @__PURE__ */ jsx27(DropdownMenuPrimitive.Content, _object_spread({
|
|
10695
10715
|
ref: ref,
|
|
10696
10716
|
sideOffset: sideOffset,
|
|
10697
|
-
className: cn("z-[100] min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Opaque bg-
|
|
10717
|
+
className: cn("z-[100] min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Opaque bg-cc-Dropdown-bg-default p-1 text-Colors-Text-Default shadow-modal-default data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
|
|
10698
10718
|
onMouseEnter: hoverContext ? handleMouseEnter : onMouseEnter,
|
|
10699
10719
|
onMouseLeave: hoverContext ? handleMouseLeave : onMouseLeave
|
|
10700
10720
|
}, props));
|
|
@@ -10707,7 +10727,7 @@ var DropdownMenuItem = React21.forwardRef(function(_param, ref) {
|
|
|
10707
10727
|
]);
|
|
10708
10728
|
return /* @__PURE__ */ jsx27(DropdownMenuPrimitive.Item, _object_spread({
|
|
10709
10729
|
ref: ref,
|
|
10710
|
-
className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1 outline-none transition-colors focus:bg-
|
|
10730
|
+
className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1 outline-none transition-colors focus:bg-cc-Dropdown-bg-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-30", inset && "pl-8", className)
|
|
10711
10731
|
}, props));
|
|
10712
10732
|
});
|
|
10713
10733
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
@@ -10719,7 +10739,7 @@ var DropdownMenuCheckboxItem = React21.forwardRef(function(_param, ref) {
|
|
|
10719
10739
|
]);
|
|
10720
10740
|
return /* @__PURE__ */ jsxs16(DropdownMenuPrimitive.CheckboxItem, _object_spread_props(_object_spread({
|
|
10721
10741
|
ref: ref,
|
|
10722
|
-
className: cn("relative flex cursor-pointer select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-
|
|
10742
|
+
className: cn("relative flex cursor-pointer select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-cc-Dropdown-bg-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-30", className),
|
|
10723
10743
|
checked: checked
|
|
10724
10744
|
}, props), {
|
|
10725
10745
|
children: [
|
|
@@ -11393,7 +11413,7 @@ var CommandItem = React26.forwardRef(function(_param, ref) {
|
|
|
11393
11413
|
]);
|
|
11394
11414
|
return /* @__PURE__ */ jsx32(CommandPrimitive.Item, _object_spread({
|
|
11395
11415
|
ref: ref,
|
|
11396
|
-
className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-
|
|
11416
|
+
className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-cc-Dropdown-bg-hover aria-selected:text-Colors-Text-Default data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className)
|
|
11397
11417
|
}, props));
|
|
11398
11418
|
});
|
|
11399
11419
|
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
@@ -11855,7 +11875,7 @@ var Guide = function(param) {
|
|
|
11855
11875
|
}
|
|
11856
11876
|
var content = popover.wrapper;
|
|
11857
11877
|
if (content) {
|
|
11858
|
-
content.className = cn("!bg-Colors-
|
|
11878
|
+
content.className = cn("!bg-Colors-Background-Info-Alt !p-3 !shadow-modal-default", content.className);
|
|
11859
11879
|
var arrow = popover.arrow;
|
|
11860
11880
|
if (arrow) {
|
|
11861
11881
|
arrow.className = cn("border-t-Colors-Utility-Lake-Blue-50", arrow.className);
|
|
@@ -12394,7 +12414,7 @@ var MenubarShortcut = function(_param) {
|
|
|
12394
12414
|
};
|
|
12395
12415
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
12396
12416
|
// src/components/modal.tsx
|
|
12397
|
-
import { CircleCheckIcon, CircleXIcon, InfoIcon, XIcon, TriangleAlertIcon } from "lucide-react";
|
|
12417
|
+
import { CircleCheckIcon, CircleXIcon, InfoIcon, UserPenIcon, XIcon, TriangleAlertIcon } from "lucide-react";
|
|
12398
12418
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
12399
12419
|
// node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
12400
12420
|
import * as React36 from "react";
|
|
@@ -12853,7 +12873,7 @@ var modalVariants = cva13("focus-visible:outline-none", {
|
|
|
12853
12873
|
}
|
|
12854
12874
|
});
|
|
12855
12875
|
var Modal = function(_param) {
|
|
12856
|
-
var title = _param.title, description = _param.description, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, _param_zIndex = _param.zIndex, zIndex = _param_zIndex === void 0 ? 99 : _param_zIndex, _param_hideClose = _param.hideClose, hideClose = _param_hideClose === void 0 ? false : _param_hideClose, _param_overlayClose = _param.overlayClose, overlayClose = _param_overlayClose === void 0 ? true : _param_overlayClose, _param_modalOnly = _param.modalOnly, modalOnly = _param_modalOnly === void 0 ? true : _param_modalOnly, contentClassName = _param.contentClassName, overlayClassName = _param.overlayClassName, iconClassName = _param.iconClassName, closeClassName = _param.closeClassName, _param_fullScreen = _param.fullScreen, fullScreen = _param_fullScreen === void 0 ? false : _param_fullScreen, focusScopeOptions = _param.focusScopeOptions, _param_isLogin = _param.isLogin, isLogin = _param_isLogin === void 0 ? false : _param_isLogin, _param_isNotification = _param.isNotification, isNotification = _param_isNotification === void 0 ? false : _param_isNotification, _param_isHorizontal = _param.isHorizontal, isHorizontal = _param_isHorizontal === void 0 ? false : _param_isHorizontal, state = _param.state, _param_showCancel = _param.showCancel, showCancel = _param_showCancel === void 0 ? true : _param_showCancel, _param_confirmLoading = _param.confirmLoading, confirmLoading = _param_confirmLoading === void 0 ? false : _param_confirmLoading, cancelText = _param.cancelText, confirmText = _param.confirmText, children = _param.children, _param_autoFocus = _param.autoFocus, autoFocus = _param_autoFocus === void 0 ? false : _param_autoFocus, onClose = _param.onClose, onConfirm = _param.onConfirm, props = _object_without_properties(_param, [
|
|
12876
|
+
var title = _param.title, description = _param.description, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, _param_zIndex = _param.zIndex, zIndex = _param_zIndex === void 0 ? 99 : _param_zIndex, _param_hideClose = _param.hideClose, hideClose = _param_hideClose === void 0 ? false : _param_hideClose, _param_overlayClose = _param.overlayClose, overlayClose = _param_overlayClose === void 0 ? true : _param_overlayClose, _param_modalOnly = _param.modalOnly, modalOnly = _param_modalOnly === void 0 ? true : _param_modalOnly, contentClassName = _param.contentClassName, overlayClassName = _param.overlayClassName, iconClassName = _param.iconClassName, closeClassName = _param.closeClassName, _param_fullScreen = _param.fullScreen, fullScreen = _param_fullScreen === void 0 ? false : _param_fullScreen, focusScopeOptions = _param.focusScopeOptions, _param_isLogin = _param.isLogin, isLogin = _param_isLogin === void 0 ? false : _param_isLogin, _param_isNotification = _param.isNotification, isNotification = _param_isNotification === void 0 ? false : _param_isNotification, _param_isHorizontal = _param.isHorizontal, isHorizontal = _param_isHorizontal === void 0 ? false : _param_isHorizontal, state = _param.state, icon = _param.icon, _param_showCancel = _param.showCancel, showCancel = _param_showCancel === void 0 ? true : _param_showCancel, _param_confirmLoading = _param.confirmLoading, confirmLoading = _param_confirmLoading === void 0 ? false : _param_confirmLoading, cancelText = _param.cancelText, confirmText = _param.confirmText, children = _param.children, _param_autoFocus = _param.autoFocus, autoFocus = _param_autoFocus === void 0 ? false : _param_autoFocus, onClose = _param.onClose, onConfirm = _param.onConfirm, props = _object_without_properties(_param, [
|
|
12857
12877
|
"title",
|
|
12858
12878
|
"description",
|
|
12859
12879
|
"size",
|
|
@@ -12871,6 +12891,7 @@ var Modal = function(_param) {
|
|
|
12871
12891
|
"isNotification",
|
|
12872
12892
|
"isHorizontal",
|
|
12873
12893
|
"state",
|
|
12894
|
+
"icon",
|
|
12874
12895
|
"showCancel",
|
|
12875
12896
|
"confirmLoading",
|
|
12876
12897
|
"cancelText",
|
|
@@ -12883,7 +12904,7 @@ var Modal = function(_param) {
|
|
|
12883
12904
|
var isMobile2 = useMedia4("(max-width: 768px)");
|
|
12884
12905
|
if (isMobile2 && !modalOnly && !isNotification) {
|
|
12885
12906
|
var drawerContent = /* @__PURE__ */ jsxs27(DrawerPrimitive2.Content, {
|
|
12886
|
-
className: cn("fixed inset-x-0 bottom-0 z-50 h-auto overflow-hidden no-scrollbar border-Colors-Border-Opaque bg-Colors-Background-Utilities-Modal shadow-modal-default focus:outline-none", fullScreen ? "rounded-t-none max-h-full" : "rounded-t-md max-h-[85vh]", contentClassName),
|
|
12907
|
+
className: cn("fixed inset-x-0 bottom-0 z-50 h-auto overflow-hidden no-scrollbar border-Colors-Border-Opaque bg-Colors-Background-Utilities-Modal shadow-modal-default backdrop-blur-xl focus:outline-none", fullScreen ? "rounded-t-none max-h-full" : "rounded-t-md max-h-[85vh]", contentClassName),
|
|
12887
12908
|
onOpenAutoFocus: function(e) {
|
|
12888
12909
|
!autoFocus && e.preventDefault();
|
|
12889
12910
|
},
|
|
@@ -12947,6 +12968,10 @@ var Modal = function(_param) {
|
|
|
12947
12968
|
}
|
|
12948
12969
|
var renderIcon3 = function(state2) {
|
|
12949
12970
|
switch(state2){
|
|
12971
|
+
case "basic":
|
|
12972
|
+
return /* @__PURE__ */ jsx44(UserPenIcon, {
|
|
12973
|
+
className: "text-Colors-Foreground-Default w-6 h-6"
|
|
12974
|
+
});
|
|
12950
12975
|
case "info":
|
|
12951
12976
|
return /* @__PURE__ */ jsx44(InfoIcon, {
|
|
12952
12977
|
className: "text-cc-Icon-Featured-icon-fg-Info w-6 h-6"
|
|
@@ -12967,18 +12992,20 @@ var Modal = function(_param) {
|
|
|
12967
12992
|
};
|
|
12968
12993
|
var getBackgroundColor = function(state2) {
|
|
12969
12994
|
switch(state2){
|
|
12995
|
+
case "basic":
|
|
12996
|
+
return "bg-Colors-Background-Surface-Subtle";
|
|
12970
12997
|
case "info":
|
|
12971
|
-
return "bg-
|
|
12998
|
+
return "bg-cc-Icon-Featured-icon-bg-Info";
|
|
12972
12999
|
case "success":
|
|
12973
|
-
return "bg-
|
|
13000
|
+
return "bg-cc-Icon-Featured-icon-bg-Success";
|
|
12974
13001
|
case "warning":
|
|
12975
|
-
return "bg-
|
|
13002
|
+
return "bg-cc-Icon-Featured-icon-bg-Warning";
|
|
12976
13003
|
case "error":
|
|
12977
|
-
return "bg-
|
|
13004
|
+
return "bg-cc-Icon-Featured-icon-bg-Error";
|
|
12978
13005
|
}
|
|
12979
13006
|
};
|
|
12980
13007
|
var dialogContent = /* @__PURE__ */ jsxs27(ModalContent, {
|
|
12981
|
-
className: cn("rounded-md border-Colors-Border-Opaque bg-Colors-Background-Utilities-Modal shadow-modal-default overflow-hidden", !isMobile2 ? modalVariants({
|
|
13008
|
+
className: cn("rounded-md border-Colors-Border-Opaque bg-Colors-Background-Utilities-Modal shadow-modal-default backdrop-blur-xl overflow-hidden", !isMobile2 ? modalVariants({
|
|
12982
13009
|
size: size,
|
|
12983
13010
|
zIndex: zIndex
|
|
12984
13011
|
}) : isLogin ? "w-[90%]" : "w-[80%]", isNotification && "w-[312px] md:w-[380px]", contentClassName),
|
|
@@ -12996,7 +13023,7 @@ var Modal = function(_param) {
|
|
|
12996
13023
|
className: cn(isNotification && "border-none !pb-3"),
|
|
12997
13024
|
children: state && /* @__PURE__ */ jsx44("div", {
|
|
12998
13025
|
className: cn("flex items-center justify-center w-10 h-10 rounded-full flex-shrink-0 flex-grow-0", getBackgroundColor(state)),
|
|
12999
|
-
children: renderIcon3(state)
|
|
13026
|
+
children: icon || renderIcon3(state)
|
|
13000
13027
|
})
|
|
13001
13028
|
}),
|
|
13002
13029
|
/* @__PURE__ */ jsxs27("div", {
|
|
@@ -13182,7 +13209,7 @@ function SearchBar(_param) {
|
|
|
13182
13209
|
hasEnter: true,
|
|
13183
13210
|
rounded: roundedFill ? "full" : "sm",
|
|
13184
13211
|
size: size,
|
|
13185
|
-
className: cn("relative w-full px-9 flex space-x-2 text-base shadow-none placeholder:text-Colors-Text-Subtlest", "
|
|
13212
|
+
className: cn("relative w-full px-9 flex space-x-2 text-base shadow-none placeholder:text-Colors-Text-Subtlest", "focus-visible-style", {
|
|
13186
13213
|
"focus-visible:ring-transparent": readOnly
|
|
13187
13214
|
}, inputClassName),
|
|
13188
13215
|
value: value1,
|
|
@@ -13764,7 +13791,7 @@ var SelectContent = React42.forwardRef(function(_param, ref) {
|
|
|
13764
13791
|
]);
|
|
13765
13792
|
var Content13 = /* @__PURE__ */ jsx54(SelectPrimitive.Content, _object_spread_props(_object_spread({
|
|
13766
13793
|
ref: ref,
|
|
13767
|
-
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Default bg-
|
|
13794
|
+
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Default bg-cc-Dropdown-bg-default text-Colors-Text-Default shadow-modal-default data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
|
|
13768
13795
|
position: position
|
|
13769
13796
|
}, props), {
|
|
13770
13797
|
children: /* @__PURE__ */ jsx54(SelectPrimitive.Viewport, {
|
|
@@ -13825,7 +13852,7 @@ var SelectItem = React42.forwardRef(function(_param, ref) {
|
|
|
13825
13852
|
]);
|
|
13826
13853
|
return /* @__PURE__ */ jsxs36(SelectPrimitive.Item, _object_spread_props(_object_spread({
|
|
13827
13854
|
ref: ref,
|
|
13828
|
-
className: cn("relative flex justify-between w-full cursor-pointer select-none items-center rounded-sm py-1 px-1.5 outline-none text-base", "hover:bg-
|
|
13855
|
+
className: cn("relative flex justify-between w-full cursor-pointer select-none items-center rounded-sm py-1 px-1.5 outline-none text-base", "hover:bg-cc-Dropdown-bg-hover focus:bg-cc-Dropdown-bg-hover data-[disabled]:opacity-30 data-[disabled]:cursor-not-allowed space-x-1.5", critical ? "text-Colors-Text-Critical-Default" : "focus:text-Colors-Text-Default", className)
|
|
13829
13856
|
}, props), {
|
|
13830
13857
|
children: [
|
|
13831
13858
|
/* @__PURE__ */ jsxs36("span", {
|
|
@@ -14400,7 +14427,7 @@ var MultipleSelector = React43.forwardRef(function(param, ref) {
|
|
|
14400
14427
|
return e.stopPropagation();
|
|
14401
14428
|
},
|
|
14402
14429
|
children: open && /* @__PURE__ */ jsx55(CommandList, {
|
|
14403
|
-
className: "no-scrollbar text-Colors-Text-Default absolute top-1 z-10 max-h-60 w-full min-w-[8rem] rounded-sm border border-cc-Input-bg-default bg-
|
|
14430
|
+
className: "no-scrollbar text-Colors-Text-Default absolute top-1 z-10 max-h-60 w-full min-w-[8rem] rounded-sm border border-cc-Input-bg-default bg-cc-Dropdown-bg-default shadow-modal-default",
|
|
14404
14431
|
onMouseLeave: function() {
|
|
14405
14432
|
setOnScrollbar(false);
|
|
14406
14433
|
},
|
|
@@ -14598,7 +14625,7 @@ function Skeleton(_param) {
|
|
|
14598
14625
|
"animate"
|
|
14599
14626
|
]);
|
|
14600
14627
|
return /* @__PURE__ */ jsx57("div", _object_spread({
|
|
14601
|
-
className: cn("rounded-sm bg-Colors-Background-
|
|
14628
|
+
className: cn("rounded-sm bg-Colors-Background-Surface-Muted", className, animate && "animate-pulse")
|
|
14602
14629
|
}, props));
|
|
14603
14630
|
}
|
|
14604
14631
|
// src/components/slider.tsx
|
|
@@ -25084,13 +25111,13 @@ var ToastViewport = React51.forwardRef(function(_param, ref) {
|
|
|
25084
25111
|
}, props));
|
|
25085
25112
|
});
|
|
25086
25113
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
25087
|
-
var toastVariants = cva21("group pointer-events-auto relative flex w-
|
|
25114
|
+
var toastVariants = cva21("group pointer-events-auto relative flex w-[286px] min-w-[286px] max-w-[286px] items-start gap-3 overflow-hidden rounded-lg border border-cc-Toast-border bg-cc-Toast-bg-default p-3 backdrop-blur-[20px] shadow-modal-default transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80", {
|
|
25088
25115
|
variants: {
|
|
25089
25116
|
variant: {
|
|
25090
|
-
info: "
|
|
25091
|
-
warning: "
|
|
25092
|
-
error: "
|
|
25093
|
-
success: "
|
|
25117
|
+
info: "",
|
|
25118
|
+
warning: "",
|
|
25119
|
+
error: "",
|
|
25120
|
+
success: ""
|
|
25094
25121
|
},
|
|
25095
25122
|
position: {
|
|
25096
25123
|
"top-left": "data-[state=open]:slide-in-from-left-full data-[state=closed]:slide-out-to-left-full",
|
|
@@ -25140,11 +25167,11 @@ var ToastClose = React51.forwardRef(function(_param, ref) {
|
|
|
25140
25167
|
]);
|
|
25141
25168
|
return /* @__PURE__ */ jsx68(ToastPrimitives.Close, _object_spread_props(_object_spread({
|
|
25142
25169
|
ref: ref,
|
|
25143
|
-
className: cn("absolute right-
|
|
25170
|
+
className: cn("absolute size-5 right-3 top-3 rounded-full p-1 text-cc-Button-Tertiary-fg-default hover:text-cc-Button-Tertiary-fg-alt bg-cc-Button-Tertiary-bg-default hover:bg-cc-Button-Tertiary-bg-hover transition-opacity 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 ", className),
|
|
25144
25171
|
"toast-close": ""
|
|
25145
25172
|
}, props), {
|
|
25146
25173
|
children: /* @__PURE__ */ jsx68(XIcon3, {
|
|
25147
|
-
className: "h-
|
|
25174
|
+
className: "h-3 w-3 text-cc-Button-Tertiary-fg-default"
|
|
25148
25175
|
})
|
|
25149
25176
|
}));
|
|
25150
25177
|
});
|
|
@@ -25377,37 +25404,37 @@ function Toaster() {
|
|
|
25377
25404
|
position
|
|
25378
25405
|
]);
|
|
25379
25406
|
var renderToast = function(toast4) {
|
|
25380
|
-
var id = toast4.id, title = toast4.title, description = toast4.description, action = toast4.action, variant = toast4.variant, toastPosition = toast4.position;
|
|
25407
|
+
var id = toast4.id, title = toast4.title, description = toast4.description, action = toast4.action, variant = toast4.variant, icon = toast4.icon, toastPosition = toast4.position;
|
|
25381
25408
|
var renderIcon3 = function(variant2) {
|
|
25382
25409
|
switch(variant2){
|
|
25383
25410
|
case "info":
|
|
25384
25411
|
return /* @__PURE__ */ jsx70(InfoIcon2, {
|
|
25385
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
25412
|
+
className: "h-6 w-6 sm:h-4.5 sm:w-4.5 text-cc-Icon-Featured-icon-fg-Info"
|
|
25386
25413
|
});
|
|
25387
25414
|
case "success":
|
|
25388
25415
|
return /* @__PURE__ */ jsx70(CircleCheckIcon2, {
|
|
25389
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
25416
|
+
className: "h-6 w-6 sm:h-4.5 sm:w-4.5 text-cc-Icon-Featured-icon-fg-Success"
|
|
25390
25417
|
});
|
|
25391
25418
|
case "warning":
|
|
25392
25419
|
return /* @__PURE__ */ jsx70(TriangleAlertIcon2, {
|
|
25393
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
25420
|
+
className: "h-6 w-6 sm:h-4.5 sm:w-4.5 text-cc-Icon-Featured-icon-fg-Warning"
|
|
25394
25421
|
});
|
|
25395
25422
|
case "error":
|
|
25396
25423
|
return /* @__PURE__ */ jsx70(CircleXIcon2, {
|
|
25397
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
25424
|
+
className: "h-6 w-6 sm:h-4.5 sm:w-4.5 text-cc-Icon-Featured-icon-fg-Error"
|
|
25398
25425
|
});
|
|
25399
25426
|
}
|
|
25400
25427
|
};
|
|
25401
25428
|
var getBackgroundColor = function(variant2) {
|
|
25402
25429
|
switch(variant2){
|
|
25403
25430
|
case "info":
|
|
25404
|
-
return "bg-
|
|
25431
|
+
return "bg-cc-Icon-Featured-icon-bg-Info";
|
|
25405
25432
|
case "success":
|
|
25406
|
-
return "bg-
|
|
25433
|
+
return "bg-cc-Icon-Featured-icon-bg-Success";
|
|
25407
25434
|
case "warning":
|
|
25408
|
-
return "bg-
|
|
25435
|
+
return "bg-cc-Icon-Featured-icon-bg-Warning";
|
|
25409
25436
|
case "error":
|
|
25410
|
-
return "bg-
|
|
25437
|
+
return "bg-cc-Icon-Featured-icon-bg-Error";
|
|
25411
25438
|
}
|
|
25412
25439
|
};
|
|
25413
25440
|
return /* @__PURE__ */ jsxs47(Toast, _object_spread_props(_object_spread({}, toast4), {
|
|
@@ -25419,18 +25446,18 @@ function Toaster() {
|
|
|
25419
25446
|
className: "flex items-start gap-3",
|
|
25420
25447
|
children: [
|
|
25421
25448
|
/* @__PURE__ */ jsx70("div", {
|
|
25422
|
-
className: cn("flex h-10 w-10 flex-shrink-0 flex-grow-0 items-center justify-center rounded-full", getBackgroundColor(variant)),
|
|
25423
|
-
children: renderIcon3(variant)
|
|
25449
|
+
className: cn("flex h-10 w-10 sm:h-8 sm:w-8 flex-shrink-0 flex-grow-0 items-center justify-center rounded-full", getBackgroundColor(variant)),
|
|
25450
|
+
children: icon || renderIcon3(variant)
|
|
25424
25451
|
}),
|
|
25425
25452
|
/* @__PURE__ */ jsxs47("div", {
|
|
25426
25453
|
className: "grid gap-1",
|
|
25427
25454
|
children: [
|
|
25428
25455
|
title && /* @__PURE__ */ jsx70(ToastTitle, {
|
|
25429
|
-
className: "text-base text-
|
|
25456
|
+
className: "text-base text-cc-Toast-fg-default",
|
|
25430
25457
|
children: title
|
|
25431
25458
|
}),
|
|
25432
25459
|
description && /* @__PURE__ */ jsx70(ToastDescription, {
|
|
25433
|
-
className: "text-sm text-
|
|
25460
|
+
className: "text-sm text-cc-Toast-fg-subtle",
|
|
25434
25461
|
children: description
|
|
25435
25462
|
}),
|
|
25436
25463
|
action
|
|
@@ -25469,7 +25496,7 @@ import "swiper/css/free-mode";
|
|
|
25469
25496
|
import "swiper/css/grid";
|
|
25470
25497
|
import "swiper/css/pagination";
|
|
25471
25498
|
// src/components/swiper/index.module.scss
|
|
25472
|
-
var index_module_default = '.swiperBox {\n @apply w-full h-fit;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev) {\n @apply bg-contain bg-no-repeat;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iIzQxNDM0NSIgY2xhc3M9InNpemUtNSI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzggNS4yMmEuNzUuNzUgMCAwIDEgMCAxLjA2TDguMDYgMTBsMy43MiAzLjcyYS43NS43NSAwIDEgMS0xLjA2IDEuMDZsLTQuMjUtNC4yNWEuNzUuNzUgMCAwIDEgMC0xLjA2bDQuMjUtNC4yNWEuNzUuNzUgMCAwIDEgMS4wNiAwWiIgY2xpcC1ydWxlPSJldmVub2RkIiAvPgo8L3N2Zz4K");\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next) {\n @apply bg-contain bg-no-repeat;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iIzQxNDM0NSIgY2xhc3M9InNpemUtNSI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOC4yMiA1LjIyYS43NS43NSAwIDAgMSAxLjA2IDBsNC4yNSA0LjI1YS43NS43NSAwIDAgMSAwIDEuMDZsLTQuMjUgNC4yNWEuNzUuNzUgMCAwIDEtMS4wNi0xLjA2TDExLjk0IDEwIDguMjIgNi4yOGEuNzUuNzUgMCAwIDEgMC0xLjA2WiIgY2xpcC1ydWxlPSJldmVub2RkIiAvPgo8L3N2Zz4KCg==");\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev::after) {\n @apply text-Colors-Foreground-Default content-none;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next::after) {\n @apply text-Colors-Foreground-Default content-none;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.banner-swiper-slide.swiper-slide-prev) {\n @apply origin-right;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.banner-swiper-slide.swiper-slide-next) {\n @apply origin-left;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-slide-active) {\n @apply opacity-100;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-button-next) {\n @apply -right-4 md:right-0 3xl:right-[calc((100%-1200px)/2-16px)];\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-button-prev) {\n @apply -left-4 md:left-0 3xl:left-[calc((100%-1200px)/2-16px)];\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-next) {\n @apply right-0;\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-prev) {\n @apply left-0;\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-disabled) {\n @apply hidden;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-next) {\n @apply right-0;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-prev) {\n @apply left-0;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-disabled) {\n @apply hidden;\n}\n.swiperBox :global(.swiper.grid-swiper) :global(.swiper-wrapper) {\n @apply w-[100vw] md:w-full flex-wrap flex-col m-0;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next) {\n @apply hidden md:flex justify-center items-center absolute top-[50%] w-8 h-8 font-semibold text-Colors-Foreground-Default border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Default rounded-full cursor-pointer hover:bg-Colors-Background-Normal-Primary-Hover active:bg-Colors-Background-Normal-Primary-Active;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next)::after {\n @apply text-Colors-Foreground-Default text-xs font-bold;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev) {\n @apply hidden md:flex justify-center items-center absolute top-[50%] w-8 h-8 font-semibold text-Colors-Foreground-Default border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Default rounded-full cursor-pointer hover:bg-Colors-Background-Normal-Primary-Hover active:bg-Colors-Background-Normal-Primary-Active;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev)::after {\n @apply text-Colors-Foreground-Default text-xs font-bold;\n}\n\n.animate :global(.swiper-slide) {\n transition: transform 500ms linear;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
25499
|
+
var index_module_default = '.swiperBox {\n @apply w-full h-fit;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev) {\n @apply bg-contain bg-no-repeat;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iIzQxNDM0NSIgY2xhc3M9InNpemUtNSI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzggNS4yMmEuNzUuNzUgMCAwIDEgMCAxLjA2TDguMDYgMTBsMy43MiAzLjcyYS43NS43NSAwIDEgMS0xLjA2IDEuMDZsLTQuMjUtNC4yNWEuNzUuNzUgMCAwIDEgMC0xLjA2bDQuMjUtNC4yNWEuNzUuNzUgMCAwIDEgMS4wNiAwWiIgY2xpcC1ydWxlPSJldmVub2RkIiAvPgo8L3N2Zz4K");\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next) {\n @apply bg-contain bg-no-repeat;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iIzQxNDM0NSIgY2xhc3M9InNpemUtNSI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOC4yMiA1LjIyYS43NS43NSAwIDAgMSAxLjA2IDBsNC4yNSA0LjI1YS43NS43NSAwIDAgMSAwIDEuMDZsLTQuMjUgNC4yNWEuNzUuNzUgMCAwIDEtMS4wNi0xLjA2TDExLjk0IDEwIDguMjIgNi4yOGEuNzUuNzUgMCAwIDEgMC0xLjA2WiIgY2xpcC1ydWxlPSJldmVub2RkIiAvPgo8L3N2Zz4KCg==");\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev::after) {\n @apply text-Colors-Foreground-Default content-none;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next::after) {\n @apply text-Colors-Foreground-Default content-none;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.banner-swiper-slide.swiper-slide-prev) {\n @apply origin-right;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.banner-swiper-slide.swiper-slide-next) {\n @apply origin-left;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-slide-active) {\n @apply opacity-100;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-button-next) {\n @apply -right-4 md:right-0 3xl:right-[calc((100%-1200px)/2-16px)];\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-button-prev) {\n @apply -left-4 md:left-0 3xl:left-[calc((100%-1200px)/2-16px)];\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-next) {\n @apply right-0;\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-prev) {\n @apply left-0;\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-disabled) {\n @apply hidden;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-next) {\n @apply right-0;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-prev) {\n @apply left-0;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-disabled) {\n @apply hidden;\n}\n.swiperBox :global(.swiper.grid-swiper) :global(.swiper-wrapper) {\n @apply w-[100vw] md:w-full flex-wrap flex-col m-0;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next) {\n @apply hidden md:flex justify-center items-center absolute top-[50%] w-8 h-8 font-semibold text-Colors-Foreground-Default border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Default rounded-full cursor-pointer hover:bg-Colors-Background-Normal-Primary-Hover active:bg-Colors-Background-Normal-Primary-Active;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next)::after {\n @apply text-Colors-Foreground-Default text-xs font-bold;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev) {\n @apply hidden md:flex justify-center items-center absolute top-[50%] w-8 h-8 font-semibold text-Colors-Foreground-Default border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Default rounded-full cursor-pointer hover:bg-Colors-Background-Normal-Primary-Hover active:bg-Colors-Background-Normal-Primary-Active;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev)::after {\n @apply text-Colors-Foreground-Default text-xs font-bold;\n}\n\n.animate :global(.swiper-slide) {\n transition: transform 500ms linear;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL1VzZXJzL21vbmljYS9EZXNrdG9wL215c2hlbGwvbXlzaGVsbC1yZWFjdC1saWIvc3JjL2NvbXBvbmVudHMvc3dpcGVyIiwic291cmNlcyI6WyJpbmRleC5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFOztBQUdFO0VBQ0U7RUFDQTs7QUFFRjtFQUNFO0VBQ0E7O0FBRUY7RUFDRTs7QUFFRjtFQUNFOztBQUlGO0VBRUU7O0FBRUY7RUFFRTs7QUFFRjtFQUNFOztBQUdGO0VBQ0U7O0FBRUY7RUFDRTs7QUFJRjtFQUNFOztBQUVGO0VBQ0U7O0FBRUY7RUFDRTs7QUFJRjtFQUNFOztBQUVGO0VBQ0U7O0FBRUY7RUFDRTs7QUFJRjtFQUNFOztBQUtGO0VBQ0U7O0FBQ0U7RUFDRTs7QUFHTjtFQUNFOztBQUNFO0VBQ0U7OztBQU9SO0VBQ0UiLCJzb3VyY2VzQ29udGVudCI6WyIuc3dpcGVyQm94e1xuICBAYXBwbHkgdy1mdWxsIGgtZml0O1xuICBcbiAgOmdsb2JhbCguc3dpcGVyKSB7XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1wcmV2KXtcbiAgICAgIEBhcH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XVsdCByb3VuZGVkLWZ1bGwgY3Vyc29yLXBvaW50ZXIgaG92ZXI6YmctQ29sb3JzLUJhY2tncm91bmQtTm9ybWFsLVByaW1hcnktSG92ZXIgYWN0aXZlOmJnLUNvbG9ycy1CYWNrZ3JvdW5kLU5vcm1hbC1QcmltYXJ5LUFjdGl2ZTtcbiAgICAgICAgJjo6YWZ0ZXIge1xuICAgICAgICAgIEBhcHBseSB0ZXh0LUNvbG9ycy1Gb3JlZ3JvdW5kLURlZmF1bHQgdGV4dC14cyBmb250LWJvbGQ7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG5cbi5hbmltYXRlIHtcbiAgOmdsb2JhbCguc3dpcGVyLXNsaWRlKSB7XG4gICAgdHJhbnNpdGlvbjogdHJhbnNmb3JtIDUwMG1zIGxpbmVhcjtcbiAgfVxufVxuIl19 */';
|
|
25473
25500
|
// src/components/swiper/index.tsx
|
|
25474
25501
|
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
25475
25502
|
var swiperVariants = cva22("", {
|
|
@@ -25647,25 +25674,25 @@ function CustomNotification(param) {
|
|
|
25647
25674
|
return /* @__PURE__ */ jsx72("div", {
|
|
25648
25675
|
children: /* @__PURE__ */ jsx72("div", {
|
|
25649
25676
|
id: id,
|
|
25650
|
-
className: "z-[10000000] min-h-10 w-fit max-w-[90vw] rounded-full border border-
|
|
25677
|
+
className: "z-[10000000] min-h-10 w-fit max-w-[90vw] rounded-full border border-cc-Popover-border bg-Colors-Background-Utilities-Modal px-3 py-2 shadow-modal-default md:max-w-[560px]",
|
|
25651
25678
|
children: /* @__PURE__ */ jsxs48("div", {
|
|
25652
25679
|
className: "flex w-full items-center justify-center gap-2",
|
|
25653
25680
|
children: [
|
|
25654
25681
|
loading && /* @__PURE__ */ jsx72(Spinner, {}),
|
|
25655
25682
|
!loading && type && /* @__PURE__ */ jsxs48("div", {
|
|
25656
|
-
className: "flex flex-shrink-0 items-center",
|
|
25683
|
+
className: "flex flex-shrink-0 items-center justify-center",
|
|
25657
25684
|
children: [
|
|
25658
25685
|
type === "info" && /* @__PURE__ */ jsx72(CircleInfoIcon, {
|
|
25659
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
25686
|
+
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info items-center justify-center sm:h-4.5 sm:w-4.5"
|
|
25660
25687
|
}),
|
|
25661
25688
|
type === "success" && /* @__PURE__ */ jsx72(CircleSuccessIcon, {
|
|
25662
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
25689
|
+
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success items-center justify-center sm:h-4.5 sm:w-4.5"
|
|
25663
25690
|
}),
|
|
25664
25691
|
type === "warning" && /* @__PURE__ */ jsx72(CircleWarningIcon, {
|
|
25665
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
25692
|
+
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning items-center justify-center sm:h-4.5 sm:w-4.5"
|
|
25666
25693
|
}),
|
|
25667
25694
|
type === "error" && /* @__PURE__ */ jsx72(CircleErrorIcon, {
|
|
25668
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
25695
|
+
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error items-center justify-center sm:h-4.5 sm:w-4.5"
|
|
25669
25696
|
})
|
|
25670
25697
|
]
|
|
25671
25698
|
}),
|