evelearn-theme 2.0.11 → 2.0.13
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.js +63 -36
- package/dist/index.mjs +64 -37
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -577,6 +577,7 @@ var Overlay = function(param) {
|
|
|
577
577
|
};
|
|
578
578
|
var Overlay_default = Overlay;
|
|
579
579
|
// src/Button/Button.tsx
|
|
580
|
+
var import_clsx = __toESM(require("clsx"));
|
|
580
581
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
581
582
|
var Button = function(param) {
|
|
582
583
|
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, loading = param.loading, onClick = param.onClick, _param_kind = param.kind, kind = _param_kind === void 0 ? "primary" : _param_kind, _param_size = param.size, size = _param_size === void 0 ? "small" : _param_size, _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, children = param.children;
|
|
@@ -619,7 +620,7 @@ var Button = function(param) {
|
|
|
619
620
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("button", {
|
|
620
621
|
type: type || "button",
|
|
621
622
|
disabled: disabled,
|
|
622
|
-
className: "rounded-lg cursor-pointer focus:outline-none transition duration-100
|
|
623
|
+
className: (0, import_clsx.default)("rounded-lg cursor-pointer focus:outline-none transition duration-100", styled(), sized()),
|
|
623
624
|
onClick: onClick,
|
|
624
625
|
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", {
|
|
625
626
|
className: "w-full max-h-11",
|
|
@@ -764,6 +765,7 @@ var FunButton_default = FunButton;
|
|
|
764
765
|
// src/Button/FunRoundButton.tsx
|
|
765
766
|
var import_react3 = require("react");
|
|
766
767
|
var import_framer_motion2 = require("framer-motion");
|
|
768
|
+
var import_clsx2 = __toESM(require("clsx"));
|
|
767
769
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
768
770
|
var FunRoundButton = function(param) {
|
|
769
771
|
var onClick = param.onClick, disabled = param.disabled, type = param.type, children = param.children, color = param.color, active = param.active, className = param.className, _param_size = param.size, size = _param_size === void 0 ? 44 : _param_size;
|
|
@@ -810,7 +812,7 @@ var FunRoundButton = function(param) {
|
|
|
810
812
|
disabled
|
|
811
813
|
]), front = _ref.front, bottom = _ref.bottom;
|
|
812
814
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_framer_motion2.motion.button, {
|
|
813
|
-
className:
|
|
815
|
+
className: (0, import_clsx2.default)(className || "border-none p-0 flex justify-center items-center cursor-pointer z-10", disabled ? "opacity-70 cursor-default" : "hover:opacity-95"),
|
|
814
816
|
style: {
|
|
815
817
|
background: front,
|
|
816
818
|
height: size,
|
|
@@ -859,6 +861,7 @@ var FunRoundButton_default = FunRoundButton;
|
|
|
859
861
|
// src/Checkbox/Checkbox.tsx
|
|
860
862
|
var import_react4 = require("react");
|
|
861
863
|
var import_formik = require("formik");
|
|
864
|
+
var import_clsx3 = __toESM(require("clsx"));
|
|
862
865
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
863
866
|
var Checkbox = function(param) {
|
|
864
867
|
var name = param.name, labelText = param.labelText, isLarge = param.isLarge, onChange = param.onChange, isDisabled = param.isDisabled;
|
|
@@ -887,7 +890,7 @@ var Checkbox = function(param) {
|
|
|
887
890
|
name: name,
|
|
888
891
|
type: "checkbox",
|
|
889
892
|
checked: !!value,
|
|
890
|
-
className: "form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded
|
|
893
|
+
className: (0, import_clsx3.default)("form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded", isLarge ? "h-5 w-5" : "h-4 w-4")
|
|
891
894
|
}),
|
|
892
895
|
typeof labelText === "string" ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("label", {
|
|
893
896
|
htmlFor: "".concat(name).concat(rand),
|
|
@@ -937,7 +940,7 @@ var MultiChoiceCheckBox = function(param) {
|
|
|
937
940
|
id: name,
|
|
938
941
|
name: name,
|
|
939
942
|
type: "checkbox",
|
|
940
|
-
className: "form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded
|
|
943
|
+
className: (0, import_clsx3.default)("form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded", isLarge ? "h-5 w-5" : "h-4 w-4")
|
|
941
944
|
})
|
|
942
945
|
})
|
|
943
946
|
});
|
|
@@ -945,6 +948,7 @@ var MultiChoiceCheckBox = function(param) {
|
|
|
945
948
|
Checkbox.Multi = MultiChoiceCheckBox;
|
|
946
949
|
var Checkbox_default = Checkbox;
|
|
947
950
|
// src/Checkbox/RadioOption.tsx
|
|
951
|
+
var import_clsx4 = __toESM(require("clsx"));
|
|
948
952
|
var import_formik2 = require("formik");
|
|
949
953
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
950
954
|
var RadioOption = function(param) {
|
|
@@ -963,7 +967,7 @@ var RadioOption = function(param) {
|
|
|
963
967
|
name: name,
|
|
964
968
|
type: "checkbox",
|
|
965
969
|
checked: value === option,
|
|
966
|
-
className: "form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded
|
|
970
|
+
className: (0, import_clsx4.default)("form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded", isLarge ? "h-5 w-5" : "h-4 w-4")
|
|
967
971
|
}),
|
|
968
972
|
typeof labelText === "string" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("label", {
|
|
969
973
|
htmlFor: option,
|
|
@@ -1080,9 +1084,12 @@ var BAWrapper = function(props) {
|
|
|
1080
1084
|
return import_react_dom2.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(BottomAlert, _object_spread({}, props)), document.body);
|
|
1081
1085
|
};
|
|
1082
1086
|
var BottomAlert_default = BAWrapper;
|
|
1087
|
+
// src/Common/IconInfo.tsx
|
|
1088
|
+
var import_clsx6 = __toESM(require("clsx"));
|
|
1083
1089
|
// src/Common/Tippy.tsx
|
|
1084
1090
|
var import_react5 = require("react");
|
|
1085
1091
|
var import_react6 = require("@floating-ui/react");
|
|
1092
|
+
var import_clsx5 = __toESM(require("clsx"));
|
|
1086
1093
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1087
1094
|
var Tippy = function(param) {
|
|
1088
1095
|
var children = param.children, content = param.content, _param_placement = param.placement, placement = _param_placement === void 0 ? "top" : _param_placement, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, _param_wrapperClassname = param.wrapperClassname, wrapperClassname = _param_wrapperClassname === void 0 ? "" : _param_wrapperClassname, _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, tmp = param.arrow, useArrow = tmp === void 0 ? false : tmp, visible = param.visible;
|
|
@@ -1124,12 +1131,13 @@ var Tippy = function(param) {
|
|
|
1124
1131
|
children: [
|
|
1125
1132
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", _object_spread_props(_object_spread({
|
|
1126
1133
|
ref: refs.setFloating,
|
|
1127
|
-
className:
|
|
1134
|
+
className: (0, import_clsx5.default)("".concat(className || tippyClassname))
|
|
1128
1135
|
}, getFloatingProps()), {
|
|
1129
1136
|
style: {
|
|
1130
1137
|
position: strategy,
|
|
1131
1138
|
top: y !== null && y !== void 0 ? y : 0,
|
|
1132
1139
|
left: x !== null && x !== void 0 ? x : 0,
|
|
1140
|
+
zIndex: 9999,
|
|
1133
1141
|
width: "max-content"
|
|
1134
1142
|
},
|
|
1135
1143
|
children: content
|
|
@@ -1166,7 +1174,7 @@ var IconInfo = function(param) {
|
|
|
1166
1174
|
children: [
|
|
1167
1175
|
icon,
|
|
1168
1176
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", {
|
|
1169
|
-
className: "absolute -bottom-1
|
|
1177
|
+
className: (0, import_clsx6.default)("absolute -bottom-1", number > 9 ? number > 99 ? number > 999 ? "w-8 h-8 -right-6 -bottom-3" : "w-6 h-6 -right-5 -bottom-2" : "w-5 h-5 -right-3" : "w-4 -right-3", "flex justify-center items-center text-xs font-sans rounded-full text-white", color || "bg-secondary"),
|
|
1170
1178
|
children: number
|
|
1171
1179
|
})
|
|
1172
1180
|
]
|
|
@@ -1195,7 +1203,7 @@ var XIcon = function(param) {
|
|
|
1195
1203
|
};
|
|
1196
1204
|
var XIcon_default = XIcon;
|
|
1197
1205
|
// src/Common/Modal.tsx
|
|
1198
|
-
var
|
|
1206
|
+
var import_clsx7 = __toESM(require("clsx"));
|
|
1199
1207
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1200
1208
|
var Modal = function(_param) {
|
|
1201
1209
|
var visible = _param.visible, children = _param.children, fullscreen = _param.fullscreen, displayDark = _param.displayDark, dismissLink = _param.dismissLink, bgOpacity = _param.bgOpacity, onDismissed = _param.onDismissed, _param_dismissable = _param.dismissable, dismissable = _param_dismissable === void 0 ? true : _param_dismissable, _param_dismissOnBackdropClick = _param.dismissOnBackdropClick, dismissOnBackdropClick = _param_dismissOnBackdropClick === void 0 ? true : _param_dismissOnBackdropClick, style = _param.style, props = _object_without_properties(_param, [
|
|
@@ -1218,32 +1226,30 @@ var Modal = function(_param) {
|
|
|
1218
1226
|
withContainer: true
|
|
1219
1227
|
}, props), {
|
|
1220
1228
|
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
|
|
1221
|
-
className:
|
|
1229
|
+
className: (0, import_clsx7.default)(displayDark && "dark", "bg-slate-900/20 fixed inset-0 flex items-center justify-center"),
|
|
1222
1230
|
style: {
|
|
1223
1231
|
zIndex: 1e4
|
|
1224
1232
|
},
|
|
1225
1233
|
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", {
|
|
1226
|
-
className: (0,
|
|
1234
|
+
className: (0, import_clsx7.default)("relative mx-1 w-full md:mx-auto md:w-3/4 lg:w-1/2", fullscreen && "md:w-5/6 lg:w-5/6"),
|
|
1227
1235
|
children: [
|
|
1228
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
|
|
1233
|
-
onClick: onDismissed,
|
|
1234
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(XIcon_default, {
|
|
1235
|
-
className: "absolute h-5 w-5 top-7 sm:top-20 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500"
|
|
1236
|
-
})
|
|
1237
|
-
})
|
|
1238
|
-
}) : dismissable ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", {
|
|
1239
|
-
className: "absolute top-7 sm:top-20 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500",
|
|
1240
|
-
type: "button",
|
|
1236
|
+
dismissLink ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_link.default, {
|
|
1237
|
+
href: dismissLink,
|
|
1238
|
+
scroll: false,
|
|
1239
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
|
|
1241
1240
|
onClick: onDismissed,
|
|
1242
1241
|
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(XIcon_default, {
|
|
1243
|
-
className: "h-5 w-5"
|
|
1242
|
+
className: "absolute h-5 w-5 top-4 sm:top-8 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500"
|
|
1244
1243
|
})
|
|
1245
|
-
})
|
|
1246
|
-
}),
|
|
1244
|
+
})
|
|
1245
|
+
}) : dismissable ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", {
|
|
1246
|
+
className: "absolute top-4 sm:top-8 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500",
|
|
1247
|
+
type: "button",
|
|
1248
|
+
onClick: onDismissed,
|
|
1249
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(XIcon_default, {
|
|
1250
|
+
className: "h-5 w-5"
|
|
1251
|
+
})
|
|
1252
|
+
}) : null,
|
|
1247
1253
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
|
|
1248
1254
|
className: "my-1 sm:mt-16 bg-white dark:bg-slate-900 shadow-lg border border-gray-100 dark:border-none rounded-xl overflow-x-visible overflow-y-visible no-scrollbar",
|
|
1249
1255
|
onClick: function(e) {
|
|
@@ -1462,6 +1468,7 @@ var Slider_default = Slider;
|
|
|
1462
1468
|
// src/Common/ToggleSwitch.tsx
|
|
1463
1469
|
var import_formik3 = require("formik");
|
|
1464
1470
|
var import_framer_motion3 = require("framer-motion");
|
|
1471
|
+
var import_clsx8 = __toESM(require("clsx"));
|
|
1465
1472
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1466
1473
|
var Formik = function(param) {
|
|
1467
1474
|
var label = param.label, name = param.name;
|
|
@@ -1482,7 +1489,7 @@ var Formik = function(param) {
|
|
|
1482
1489
|
onChange: handleChange
|
|
1483
1490
|
}),
|
|
1484
1491
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", {
|
|
1485
|
-
className: "w-10 h-6 rounded-full p-[4px] transition-colors duration-300
|
|
1492
|
+
className: (0, import_clsx8.default)("w-10 h-6 rounded-full p-[4px] transition-colors duration-300", value ? "bg-[#00b4d8]" : "bg-[#64748b]"),
|
|
1486
1493
|
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_framer_motion3.motion.div, {
|
|
1487
1494
|
className: "w-4 h-4 bg-white rounded-full absolute top-1",
|
|
1488
1495
|
initial: false,
|
|
@@ -1523,7 +1530,7 @@ var ToggleSwitch = function(param) {
|
|
|
1523
1530
|
onChange: handleChange
|
|
1524
1531
|
}),
|
|
1525
1532
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", {
|
|
1526
|
-
className: "w-10 h-6 rounded-full p-[4px] transition-colors duration-300
|
|
1533
|
+
className: (0, import_clsx8.default)("w-10 h-6 rounded-full p-[4px] transition-colors duration-300", value ? "bg-[#00b4d8]" : "bg-[#64748b]"),
|
|
1527
1534
|
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_framer_motion3.motion.div, {
|
|
1528
1535
|
className: "w-4 h-4 bg-white rounded-full absolute top-1",
|
|
1529
1536
|
initial: false,
|
|
@@ -1589,6 +1596,7 @@ var StartIconSolid2 = function(param) {
|
|
|
1589
1596
|
};
|
|
1590
1597
|
var ArrowCircleRight_default = StartIconSolid2;
|
|
1591
1598
|
// src/Common/UserContentSwitcher.tsx
|
|
1599
|
+
var import_clsx9 = __toESM(require("clsx"));
|
|
1592
1600
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1593
1601
|
var UserContentSwitcher = function(param) {
|
|
1594
1602
|
var Icon1 = param.icon1, Icon2 = param.icon2, setGalleryMode = param.setGalleryMode, galleryMode = param.galleryMode, title1 = param.title1, title2 = param.title2;
|
|
@@ -1613,13 +1621,22 @@ var UserContentSwitcher = function(param) {
|
|
|
1613
1621
|
className: "py-2 flex flex-row w-1/2 justify-center items-center gap-1 z-10",
|
|
1614
1622
|
children: [
|
|
1615
1623
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", {
|
|
1616
|
-
className:
|
|
1624
|
+
className: (0, import_clsx9.default)("truncate", {
|
|
1625
|
+
"text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
|
|
1626
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
|
|
1627
|
+
}),
|
|
1617
1628
|
children: title1.toLocaleUpperCase()
|
|
1618
1629
|
}),
|
|
1619
1630
|
Icon1 ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon1, {
|
|
1620
|
-
className: "h-5 w-5
|
|
1631
|
+
className: (0, import_clsx9.default)("h-5 w-5", {
|
|
1632
|
+
"text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
|
|
1633
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
|
|
1634
|
+
})
|
|
1621
1635
|
}) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PlusCircleIcon_default, {
|
|
1622
|
-
className: "h-5 w-5
|
|
1636
|
+
className: (0, import_clsx9.default)("h-5 w-5", {
|
|
1637
|
+
"text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
|
|
1638
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
|
|
1639
|
+
})
|
|
1623
1640
|
})
|
|
1624
1641
|
]
|
|
1625
1642
|
}),
|
|
@@ -1630,13 +1647,22 @@ var UserContentSwitcher = function(param) {
|
|
|
1630
1647
|
className: "py-2 flex flex-row w-1/2 justify-center items-center gap-1 z-10",
|
|
1631
1648
|
children: [
|
|
1632
1649
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", {
|
|
1633
|
-
className:
|
|
1650
|
+
className: (0, import_clsx9.default)("truncate", {
|
|
1651
|
+
"text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
|
|
1652
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
|
|
1653
|
+
}),
|
|
1634
1654
|
children: title2.toLocaleUpperCase()
|
|
1635
1655
|
}),
|
|
1636
1656
|
Icon2 ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon2, {
|
|
1637
|
-
className: "h-5 w-5
|
|
1657
|
+
className: (0, import_clsx9.default)("h-5 w-5", {
|
|
1658
|
+
"text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
|
|
1659
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
|
|
1660
|
+
})
|
|
1638
1661
|
}) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ArrowCircleRight_default, {
|
|
1639
|
-
className: "h-5 w-5
|
|
1662
|
+
className: (0, import_clsx9.default)("h-5 w-5", {
|
|
1663
|
+
"text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
|
|
1664
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
|
|
1665
|
+
})
|
|
1640
1666
|
})
|
|
1641
1667
|
]
|
|
1642
1668
|
})
|
|
@@ -1671,6 +1697,7 @@ var ProgressBarSimple = function(param) {
|
|
|
1671
1697
|
};
|
|
1672
1698
|
var ProgressBarSimple_default = ProgressBarSimple;
|
|
1673
1699
|
// src/ProgressBar/ProgressBar.tsx
|
|
1700
|
+
var import_clsx10 = __toESM(require("clsx"));
|
|
1674
1701
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1675
1702
|
var ProgressBar = function(param) {
|
|
1676
1703
|
var progress = param.progress;
|
|
@@ -1680,7 +1707,7 @@ var ProgressBar = function(param) {
|
|
|
1680
1707
|
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
|
|
1681
1708
|
className: "bg-gray-100 rounded-full h-2",
|
|
1682
1709
|
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
|
|
1683
|
-
className: "rounded-full h-2
|
|
1710
|
+
className: (0, import_clsx10.default)("rounded-full h-2", progress === 100 ? "bg-green-400" : "bg-gray-100"),
|
|
1684
1711
|
style: {
|
|
1685
1712
|
width: "".concat(progress, "%"),
|
|
1686
1713
|
minWidth: "100%",
|
|
@@ -1709,7 +1736,7 @@ var ProgressStepBar = function(param) {
|
|
|
1709
1736
|
},
|
|
1710
1737
|
className: "cursor-pointer bg-gray-100 rounded-full h-2 overflow-hidden",
|
|
1711
1738
|
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
|
|
1712
|
-
className: "cursor-pointer rounded-full h-2
|
|
1739
|
+
className: (0, import_clsx10.default)("cursor-pointer rounded-full h-2", stepIndex >= i ? "bg-green-400" : "bg-gray-100"),
|
|
1713
1740
|
style: {
|
|
1714
1741
|
width: "".concat(stepIndex >= i ? 100 : 0, "%"),
|
|
1715
1742
|
transition: "width 0.3s ease"
|
package/dist/index.mjs
CHANGED
|
@@ -389,6 +389,7 @@ var Overlay = function(param) {
|
|
|
389
389
|
};
|
|
390
390
|
var Overlay_default = Overlay;
|
|
391
391
|
// src/Button/Button.tsx
|
|
392
|
+
import clsx from "clsx";
|
|
392
393
|
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
393
394
|
var Button = function(param) {
|
|
394
395
|
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, loading = param.loading, onClick = param.onClick, _param_kind = param.kind, kind = _param_kind === void 0 ? "primary" : _param_kind, _param_size = param.size, size = _param_size === void 0 ? "small" : _param_size, _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, children = param.children;
|
|
@@ -431,7 +432,7 @@ var Button = function(param) {
|
|
|
431
432
|
return /* @__PURE__ */ jsx11("button", {
|
|
432
433
|
type: type || "button",
|
|
433
434
|
disabled: disabled,
|
|
434
|
-
className: "rounded-lg cursor-pointer focus:outline-none transition duration-100
|
|
435
|
+
className: clsx("rounded-lg cursor-pointer focus:outline-none transition duration-100", styled(), sized()),
|
|
435
436
|
onClick: onClick,
|
|
436
437
|
children: /* @__PURE__ */ jsx11("div", {
|
|
437
438
|
className: "w-full max-h-11",
|
|
@@ -576,6 +577,7 @@ var FunButton_default = FunButton;
|
|
|
576
577
|
// src/Button/FunRoundButton.tsx
|
|
577
578
|
import { useMemo as useMemo2 } from "react";
|
|
578
579
|
import { motion as motion2 } from "framer-motion";
|
|
580
|
+
import clsx2 from "clsx";
|
|
579
581
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
580
582
|
var FunRoundButton = function(param) {
|
|
581
583
|
var onClick = param.onClick, disabled = param.disabled, type = param.type, children = param.children, color = param.color, active = param.active, className = param.className, _param_size = param.size, size = _param_size === void 0 ? 44 : _param_size;
|
|
@@ -622,7 +624,7 @@ var FunRoundButton = function(param) {
|
|
|
622
624
|
disabled
|
|
623
625
|
]), front = _useMemo2.front, bottom = _useMemo2.bottom;
|
|
624
626
|
return /* @__PURE__ */ jsx13(motion2.button, {
|
|
625
|
-
className:
|
|
627
|
+
className: clsx2(className || "border-none p-0 flex justify-center items-center cursor-pointer z-10", disabled ? "opacity-70 cursor-default" : "hover:opacity-95"),
|
|
626
628
|
style: {
|
|
627
629
|
background: front,
|
|
628
630
|
height: size,
|
|
@@ -671,6 +673,7 @@ var FunRoundButton_default = FunRoundButton;
|
|
|
671
673
|
// src/Checkbox/Checkbox.tsx
|
|
672
674
|
import { useMemo as useMemo3 } from "react";
|
|
673
675
|
import { useField } from "formik";
|
|
676
|
+
import clsx3 from "clsx";
|
|
674
677
|
import { jsx as jsx14, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
675
678
|
var Checkbox = function(param) {
|
|
676
679
|
var name = param.name, labelText = param.labelText, isLarge = param.isLarge, onChange = param.onChange, isDisabled = param.isDisabled;
|
|
@@ -699,7 +702,7 @@ var Checkbox = function(param) {
|
|
|
699
702
|
name: name,
|
|
700
703
|
type: "checkbox",
|
|
701
704
|
checked: !!value,
|
|
702
|
-
className: "form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded
|
|
705
|
+
className: clsx3("form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded", isLarge ? "h-5 w-5" : "h-4 w-4")
|
|
703
706
|
}),
|
|
704
707
|
typeof labelText === "string" ? /* @__PURE__ */ jsx14("label", {
|
|
705
708
|
htmlFor: "".concat(name).concat(rand),
|
|
@@ -749,7 +752,7 @@ var MultiChoiceCheckBox = function(param) {
|
|
|
749
752
|
id: name,
|
|
750
753
|
name: name,
|
|
751
754
|
type: "checkbox",
|
|
752
|
-
className: "form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded
|
|
755
|
+
className: clsx3("form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded", isLarge ? "h-5 w-5" : "h-4 w-4")
|
|
753
756
|
})
|
|
754
757
|
})
|
|
755
758
|
});
|
|
@@ -757,6 +760,7 @@ var MultiChoiceCheckBox = function(param) {
|
|
|
757
760
|
Checkbox.Multi = MultiChoiceCheckBox;
|
|
758
761
|
var Checkbox_default = Checkbox;
|
|
759
762
|
// src/Checkbox/RadioOption.tsx
|
|
763
|
+
import clsx4 from "clsx";
|
|
760
764
|
import { useField as useField2 } from "formik";
|
|
761
765
|
import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
762
766
|
var RadioOption = function(param) {
|
|
@@ -775,7 +779,7 @@ var RadioOption = function(param) {
|
|
|
775
779
|
name: name,
|
|
776
780
|
type: "checkbox",
|
|
777
781
|
checked: value === option,
|
|
778
|
-
className: "form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded
|
|
782
|
+
className: clsx4("form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded", isLarge ? "h-5 w-5" : "h-4 w-4")
|
|
779
783
|
}),
|
|
780
784
|
typeof labelText === "string" ? /* @__PURE__ */ jsx15("label", {
|
|
781
785
|
htmlFor: option,
|
|
@@ -892,9 +896,12 @@ var BAWrapper = function(props) {
|
|
|
892
896
|
return ReactDOM2.createPortal(/* @__PURE__ */ jsx16(BottomAlert, _object_spread({}, props)), document.body);
|
|
893
897
|
};
|
|
894
898
|
var BottomAlert_default = BAWrapper;
|
|
899
|
+
// src/Common/IconInfo.tsx
|
|
900
|
+
import clsx6 from "clsx";
|
|
895
901
|
// src/Common/Tippy.tsx
|
|
896
902
|
import { useState as useState2, useRef, useEffect as useEffect2 } from "react";
|
|
897
903
|
import { useFloating, useInteractions, useHover, useRole, useDismiss, offset, flip, shift, arrow, FloatingArrow, FloatingPortal } from "@floating-ui/react";
|
|
904
|
+
import clsx5 from "clsx";
|
|
898
905
|
import { Fragment, jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
899
906
|
var Tippy = function(param) {
|
|
900
907
|
var children = param.children, content = param.content, _param_placement = param.placement, placement = _param_placement === void 0 ? "top" : _param_placement, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, _param_wrapperClassname = param.wrapperClassname, wrapperClassname = _param_wrapperClassname === void 0 ? "" : _param_wrapperClassname, _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, tmp = param.arrow, useArrow = tmp === void 0 ? false : tmp, visible = param.visible;
|
|
@@ -936,12 +943,13 @@ var Tippy = function(param) {
|
|
|
936
943
|
children: [
|
|
937
944
|
/* @__PURE__ */ jsx17("div", _object_spread_props(_object_spread({
|
|
938
945
|
ref: refs.setFloating,
|
|
939
|
-
className: "
|
|
946
|
+
className: clsx5("".concat(className || tippyClassname))
|
|
940
947
|
}, getFloatingProps()), {
|
|
941
948
|
style: {
|
|
942
949
|
position: strategy,
|
|
943
950
|
top: y !== null && y !== void 0 ? y : 0,
|
|
944
951
|
left: x !== null && x !== void 0 ? x : 0,
|
|
952
|
+
zIndex: 9999,
|
|
945
953
|
width: "max-content"
|
|
946
954
|
},
|
|
947
955
|
children: content
|
|
@@ -978,7 +986,7 @@ var IconInfo = function(param) {
|
|
|
978
986
|
children: [
|
|
979
987
|
icon,
|
|
980
988
|
/* @__PURE__ */ jsx18("p", {
|
|
981
|
-
className: "absolute -bottom-1
|
|
989
|
+
className: clsx6("absolute -bottom-1", number > 9 ? number > 99 ? number > 999 ? "w-8 h-8 -right-6 -bottom-3" : "w-6 h-6 -right-5 -bottom-2" : "w-5 h-5 -right-3" : "w-4 -right-3", "flex justify-center items-center text-xs font-sans rounded-full text-white", color || "bg-secondary"),
|
|
982
990
|
children: number
|
|
983
991
|
})
|
|
984
992
|
]
|
|
@@ -1007,8 +1015,8 @@ var XIcon = function(param) {
|
|
|
1007
1015
|
};
|
|
1008
1016
|
var XIcon_default = XIcon;
|
|
1009
1017
|
// src/Common/Modal.tsx
|
|
1010
|
-
import
|
|
1011
|
-
import {
|
|
1018
|
+
import clsx7 from "clsx";
|
|
1019
|
+
import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1012
1020
|
var Modal = function(_param) {
|
|
1013
1021
|
var visible = _param.visible, children = _param.children, fullscreen = _param.fullscreen, displayDark = _param.displayDark, dismissLink = _param.dismissLink, bgOpacity = _param.bgOpacity, onDismissed = _param.onDismissed, _param_dismissable = _param.dismissable, dismissable = _param_dismissable === void 0 ? true : _param_dismissable, _param_dismissOnBackdropClick = _param.dismissOnBackdropClick, dismissOnBackdropClick = _param_dismissOnBackdropClick === void 0 ? true : _param_dismissOnBackdropClick, style = _param.style, props = _object_without_properties(_param, [
|
|
1014
1022
|
"visible",
|
|
@@ -1030,32 +1038,30 @@ var Modal = function(_param) {
|
|
|
1030
1038
|
withContainer: true
|
|
1031
1039
|
}, props), {
|
|
1032
1040
|
children: /* @__PURE__ */ jsx20("div", {
|
|
1033
|
-
className:
|
|
1041
|
+
className: clsx7(displayDark && "dark", "bg-slate-900/20 fixed inset-0 flex items-center justify-center"),
|
|
1034
1042
|
style: {
|
|
1035
1043
|
zIndex: 1e4
|
|
1036
1044
|
},
|
|
1037
1045
|
children: /* @__PURE__ */ jsxs9("div", {
|
|
1038
|
-
className:
|
|
1046
|
+
className: clsx7("relative mx-1 w-full md:mx-auto md:w-3/4 lg:w-1/2", fullscreen && "md:w-5/6 lg:w-5/6"),
|
|
1039
1047
|
children: [
|
|
1040
|
-
/* @__PURE__ */ jsx20(
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
children: /* @__PURE__ */ jsx20("div", {
|
|
1045
|
-
onClick: onDismissed,
|
|
1046
|
-
children: /* @__PURE__ */ jsx20(XIcon_default, {
|
|
1047
|
-
className: "absolute h-5 w-5 top-7 sm:top-20 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500"
|
|
1048
|
-
})
|
|
1049
|
-
})
|
|
1050
|
-
}) : dismissable ? /* @__PURE__ */ jsx20("button", {
|
|
1051
|
-
className: "absolute top-7 sm:top-20 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500",
|
|
1052
|
-
type: "button",
|
|
1048
|
+
dismissLink ? /* @__PURE__ */ jsx20(Link, {
|
|
1049
|
+
href: dismissLink,
|
|
1050
|
+
scroll: false,
|
|
1051
|
+
children: /* @__PURE__ */ jsx20("div", {
|
|
1053
1052
|
onClick: onDismissed,
|
|
1054
1053
|
children: /* @__PURE__ */ jsx20(XIcon_default, {
|
|
1055
|
-
className: "h-5 w-5"
|
|
1054
|
+
className: "absolute h-5 w-5 top-4 sm:top-8 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500"
|
|
1056
1055
|
})
|
|
1057
|
-
})
|
|
1058
|
-
}),
|
|
1056
|
+
})
|
|
1057
|
+
}) : dismissable ? /* @__PURE__ */ jsx20("button", {
|
|
1058
|
+
className: "absolute top-4 sm:top-8 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500",
|
|
1059
|
+
type: "button",
|
|
1060
|
+
onClick: onDismissed,
|
|
1061
|
+
children: /* @__PURE__ */ jsx20(XIcon_default, {
|
|
1062
|
+
className: "h-5 w-5"
|
|
1063
|
+
})
|
|
1064
|
+
}) : null,
|
|
1059
1065
|
/* @__PURE__ */ jsx20("div", {
|
|
1060
1066
|
className: "my-1 sm:mt-16 bg-white dark:bg-slate-900 shadow-lg border border-gray-100 dark:border-none rounded-xl overflow-x-visible overflow-y-visible no-scrollbar",
|
|
1061
1067
|
onClick: function(e) {
|
|
@@ -1274,6 +1280,7 @@ var Slider_default = Slider;
|
|
|
1274
1280
|
// src/Common/ToggleSwitch.tsx
|
|
1275
1281
|
import { useField as useField3 } from "formik";
|
|
1276
1282
|
import { motion as motion3 } from "framer-motion";
|
|
1283
|
+
import clsx8 from "clsx";
|
|
1277
1284
|
import { jsx as jsx26, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1278
1285
|
var Formik = function(param) {
|
|
1279
1286
|
var label = param.label, name = param.name;
|
|
@@ -1294,7 +1301,7 @@ var Formik = function(param) {
|
|
|
1294
1301
|
onChange: handleChange
|
|
1295
1302
|
}),
|
|
1296
1303
|
/* @__PURE__ */ jsx26("div", {
|
|
1297
|
-
className: "w-10 h-6 rounded-full p-[4px] transition-colors duration-300
|
|
1304
|
+
className: clsx8("w-10 h-6 rounded-full p-[4px] transition-colors duration-300", value ? "bg-[#00b4d8]" : "bg-[#64748b]"),
|
|
1298
1305
|
children: /* @__PURE__ */ jsx26(motion3.div, {
|
|
1299
1306
|
className: "w-4 h-4 bg-white rounded-full absolute top-1",
|
|
1300
1307
|
initial: false,
|
|
@@ -1335,7 +1342,7 @@ var ToggleSwitch = function(param) {
|
|
|
1335
1342
|
onChange: handleChange
|
|
1336
1343
|
}),
|
|
1337
1344
|
/* @__PURE__ */ jsx26("div", {
|
|
1338
|
-
className: "w-10 h-6 rounded-full p-[4px] transition-colors duration-300
|
|
1345
|
+
className: clsx8("w-10 h-6 rounded-full p-[4px] transition-colors duration-300", value ? "bg-[#00b4d8]" : "bg-[#64748b]"),
|
|
1339
1346
|
children: /* @__PURE__ */ jsx26(motion3.div, {
|
|
1340
1347
|
className: "w-4 h-4 bg-white rounded-full absolute top-1",
|
|
1341
1348
|
initial: false,
|
|
@@ -1401,6 +1408,7 @@ var StartIconSolid2 = function(param) {
|
|
|
1401
1408
|
};
|
|
1402
1409
|
var ArrowCircleRight_default = StartIconSolid2;
|
|
1403
1410
|
// src/Common/UserContentSwitcher.tsx
|
|
1411
|
+
import clsx9 from "clsx";
|
|
1404
1412
|
import { jsx as jsx29, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1405
1413
|
var UserContentSwitcher = function(param) {
|
|
1406
1414
|
var Icon1 = param.icon1, Icon2 = param.icon2, setGalleryMode = param.setGalleryMode, galleryMode = param.galleryMode, title1 = param.title1, title2 = param.title2;
|
|
@@ -1425,13 +1433,22 @@ var UserContentSwitcher = function(param) {
|
|
|
1425
1433
|
className: "py-2 flex flex-row w-1/2 justify-center items-center gap-1 z-10",
|
|
1426
1434
|
children: [
|
|
1427
1435
|
/* @__PURE__ */ jsx29("span", {
|
|
1428
|
-
className: "truncate
|
|
1436
|
+
className: clsx9("truncate", {
|
|
1437
|
+
"text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
|
|
1438
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
|
|
1439
|
+
}),
|
|
1429
1440
|
children: title1.toLocaleUpperCase()
|
|
1430
1441
|
}),
|
|
1431
1442
|
Icon1 ? /* @__PURE__ */ jsx29(Icon1, {
|
|
1432
|
-
className: "h-5 w-5
|
|
1443
|
+
className: clsx9("h-5 w-5", {
|
|
1444
|
+
"text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
|
|
1445
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
|
|
1446
|
+
})
|
|
1433
1447
|
}) : /* @__PURE__ */ jsx29(PlusCircleIcon_default, {
|
|
1434
|
-
className: "h-5 w-5
|
|
1448
|
+
className: clsx9("h-5 w-5", {
|
|
1449
|
+
"text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
|
|
1450
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
|
|
1451
|
+
})
|
|
1435
1452
|
})
|
|
1436
1453
|
]
|
|
1437
1454
|
}),
|
|
@@ -1442,13 +1459,22 @@ var UserContentSwitcher = function(param) {
|
|
|
1442
1459
|
className: "py-2 flex flex-row w-1/2 justify-center items-center gap-1 z-10",
|
|
1443
1460
|
children: [
|
|
1444
1461
|
/* @__PURE__ */ jsx29("span", {
|
|
1445
|
-
className: "truncate
|
|
1462
|
+
className: clsx9("truncate", {
|
|
1463
|
+
"text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
|
|
1464
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
|
|
1465
|
+
}),
|
|
1446
1466
|
children: title2.toLocaleUpperCase()
|
|
1447
1467
|
}),
|
|
1448
1468
|
Icon2 ? /* @__PURE__ */ jsx29(Icon2, {
|
|
1449
|
-
className: "h-5 w-5
|
|
1469
|
+
className: clsx9("h-5 w-5", {
|
|
1470
|
+
"text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
|
|
1471
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
|
|
1472
|
+
})
|
|
1450
1473
|
}) : /* @__PURE__ */ jsx29(ArrowCircleRight_default, {
|
|
1451
|
-
className: "h-5 w-5
|
|
1474
|
+
className: clsx9("h-5 w-5", {
|
|
1475
|
+
"text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
|
|
1476
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
|
|
1477
|
+
})
|
|
1452
1478
|
})
|
|
1453
1479
|
]
|
|
1454
1480
|
})
|
|
@@ -1483,6 +1509,7 @@ var ProgressBarSimple = function(param) {
|
|
|
1483
1509
|
};
|
|
1484
1510
|
var ProgressBarSimple_default = ProgressBarSimple;
|
|
1485
1511
|
// src/ProgressBar/ProgressBar.tsx
|
|
1512
|
+
import clsx10 from "clsx";
|
|
1486
1513
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1487
1514
|
var ProgressBar = function(param) {
|
|
1488
1515
|
var progress = param.progress;
|
|
@@ -1492,7 +1519,7 @@ var ProgressBar = function(param) {
|
|
|
1492
1519
|
children: /* @__PURE__ */ jsx31("div", {
|
|
1493
1520
|
className: "bg-gray-100 rounded-full h-2",
|
|
1494
1521
|
children: /* @__PURE__ */ jsx31("div", {
|
|
1495
|
-
className: "rounded-full h-2
|
|
1522
|
+
className: clsx10("rounded-full h-2", progress === 100 ? "bg-green-400" : "bg-gray-100"),
|
|
1496
1523
|
style: {
|
|
1497
1524
|
width: "".concat(progress, "%"),
|
|
1498
1525
|
minWidth: "100%",
|
|
@@ -1521,7 +1548,7 @@ var ProgressStepBar = function(param) {
|
|
|
1521
1548
|
},
|
|
1522
1549
|
className: "cursor-pointer bg-gray-100 rounded-full h-2 overflow-hidden",
|
|
1523
1550
|
children: /* @__PURE__ */ jsx31("div", {
|
|
1524
|
-
className: "cursor-pointer rounded-full h-2
|
|
1551
|
+
className: clsx10("cursor-pointer rounded-full h-2", stepIndex >= i ? "bg-green-400" : "bg-gray-100"),
|
|
1525
1552
|
style: {
|
|
1526
1553
|
width: "".concat(stepIndex >= i ? 100 : 0, "%"),
|
|
1527
1554
|
transition: "width 0.3s ease"
|