evelearn-theme 2.0.11 → 2.0.12
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 +49 -20
- package/dist/index.mjs +49 -20
- 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,12 +1226,12 @@ 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
1236
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_jsx_runtime20.Fragment, {
|
|
1229
1237
|
children: dismissLink ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_link.default, {
|
|
@@ -1462,6 +1470,7 @@ var Slider_default = Slider;
|
|
|
1462
1470
|
// src/Common/ToggleSwitch.tsx
|
|
1463
1471
|
var import_formik3 = require("formik");
|
|
1464
1472
|
var import_framer_motion3 = require("framer-motion");
|
|
1473
|
+
var import_clsx8 = __toESM(require("clsx"));
|
|
1465
1474
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1466
1475
|
var Formik = function(param) {
|
|
1467
1476
|
var label = param.label, name = param.name;
|
|
@@ -1482,7 +1491,7 @@ var Formik = function(param) {
|
|
|
1482
1491
|
onChange: handleChange
|
|
1483
1492
|
}),
|
|
1484
1493
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", {
|
|
1485
|
-
className: "w-10 h-6 rounded-full p-[4px] transition-colors duration-300
|
|
1494
|
+
className: (0, import_clsx8.default)("w-10 h-6 rounded-full p-[4px] transition-colors duration-300", value ? "bg-[#00b4d8]" : "bg-[#64748b]"),
|
|
1486
1495
|
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_framer_motion3.motion.div, {
|
|
1487
1496
|
className: "w-4 h-4 bg-white rounded-full absolute top-1",
|
|
1488
1497
|
initial: false,
|
|
@@ -1523,7 +1532,7 @@ var ToggleSwitch = function(param) {
|
|
|
1523
1532
|
onChange: handleChange
|
|
1524
1533
|
}),
|
|
1525
1534
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", {
|
|
1526
|
-
className: "w-10 h-6 rounded-full p-[4px] transition-colors duration-300
|
|
1535
|
+
className: (0, import_clsx8.default)("w-10 h-6 rounded-full p-[4px] transition-colors duration-300", value ? "bg-[#00b4d8]" : "bg-[#64748b]"),
|
|
1527
1536
|
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_framer_motion3.motion.div, {
|
|
1528
1537
|
className: "w-4 h-4 bg-white rounded-full absolute top-1",
|
|
1529
1538
|
initial: false,
|
|
@@ -1589,6 +1598,7 @@ var StartIconSolid2 = function(param) {
|
|
|
1589
1598
|
};
|
|
1590
1599
|
var ArrowCircleRight_default = StartIconSolid2;
|
|
1591
1600
|
// src/Common/UserContentSwitcher.tsx
|
|
1601
|
+
var import_clsx9 = __toESM(require("clsx"));
|
|
1592
1602
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1593
1603
|
var UserContentSwitcher = function(param) {
|
|
1594
1604
|
var Icon1 = param.icon1, Icon2 = param.icon2, setGalleryMode = param.setGalleryMode, galleryMode = param.galleryMode, title1 = param.title1, title2 = param.title2;
|
|
@@ -1613,13 +1623,22 @@ var UserContentSwitcher = function(param) {
|
|
|
1613
1623
|
className: "py-2 flex flex-row w-1/2 justify-center items-center gap-1 z-10",
|
|
1614
1624
|
children: [
|
|
1615
1625
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", {
|
|
1616
|
-
className:
|
|
1626
|
+
className: (0, import_clsx9.default)("truncate", {
|
|
1627
|
+
"text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
|
|
1628
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
|
|
1629
|
+
}),
|
|
1617
1630
|
children: title1.toLocaleUpperCase()
|
|
1618
1631
|
}),
|
|
1619
1632
|
Icon1 ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon1, {
|
|
1620
|
-
className: "h-5 w-5
|
|
1633
|
+
className: (0, import_clsx9.default)("h-5 w-5", {
|
|
1634
|
+
"text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
|
|
1635
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
|
|
1636
|
+
})
|
|
1621
1637
|
}) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PlusCircleIcon_default, {
|
|
1622
|
-
className: "h-5 w-5
|
|
1638
|
+
className: (0, import_clsx9.default)("h-5 w-5", {
|
|
1639
|
+
"text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
|
|
1640
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
|
|
1641
|
+
})
|
|
1623
1642
|
})
|
|
1624
1643
|
]
|
|
1625
1644
|
}),
|
|
@@ -1630,13 +1649,22 @@ var UserContentSwitcher = function(param) {
|
|
|
1630
1649
|
className: "py-2 flex flex-row w-1/2 justify-center items-center gap-1 z-10",
|
|
1631
1650
|
children: [
|
|
1632
1651
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", {
|
|
1633
|
-
className:
|
|
1652
|
+
className: (0, import_clsx9.default)("truncate", {
|
|
1653
|
+
"text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
|
|
1654
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
|
|
1655
|
+
}),
|
|
1634
1656
|
children: title2.toLocaleUpperCase()
|
|
1635
1657
|
}),
|
|
1636
1658
|
Icon2 ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon2, {
|
|
1637
|
-
className: "h-5 w-5
|
|
1659
|
+
className: (0, import_clsx9.default)("h-5 w-5", {
|
|
1660
|
+
"text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
|
|
1661
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
|
|
1662
|
+
})
|
|
1638
1663
|
}) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ArrowCircleRight_default, {
|
|
1639
|
-
className: "h-5 w-5
|
|
1664
|
+
className: (0, import_clsx9.default)("h-5 w-5", {
|
|
1665
|
+
"text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
|
|
1666
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
|
|
1667
|
+
})
|
|
1640
1668
|
})
|
|
1641
1669
|
]
|
|
1642
1670
|
})
|
|
@@ -1671,6 +1699,7 @@ var ProgressBarSimple = function(param) {
|
|
|
1671
1699
|
};
|
|
1672
1700
|
var ProgressBarSimple_default = ProgressBarSimple;
|
|
1673
1701
|
// src/ProgressBar/ProgressBar.tsx
|
|
1702
|
+
var import_clsx10 = __toESM(require("clsx"));
|
|
1674
1703
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1675
1704
|
var ProgressBar = function(param) {
|
|
1676
1705
|
var progress = param.progress;
|
|
@@ -1680,7 +1709,7 @@ var ProgressBar = function(param) {
|
|
|
1680
1709
|
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
|
|
1681
1710
|
className: "bg-gray-100 rounded-full h-2",
|
|
1682
1711
|
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
|
|
1683
|
-
className: "rounded-full h-2
|
|
1712
|
+
className: (0, import_clsx10.default)("rounded-full h-2", progress === 100 ? "bg-green-400" : "bg-gray-100"),
|
|
1684
1713
|
style: {
|
|
1685
1714
|
width: "".concat(progress, "%"),
|
|
1686
1715
|
minWidth: "100%",
|
|
@@ -1709,7 +1738,7 @@ var ProgressStepBar = function(param) {
|
|
|
1709
1738
|
},
|
|
1710
1739
|
className: "cursor-pointer bg-gray-100 rounded-full h-2 overflow-hidden",
|
|
1711
1740
|
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
|
|
1712
|
-
className: "cursor-pointer rounded-full h-2
|
|
1741
|
+
className: (0, import_clsx10.default)("cursor-pointer rounded-full h-2", stepIndex >= i ? "bg-green-400" : "bg-gray-100"),
|
|
1713
1742
|
style: {
|
|
1714
1743
|
width: "".concat(stepIndex >= i ? 100 : 0, "%"),
|
|
1715
1744
|
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,7 +1015,7 @@ var XIcon = function(param) {
|
|
|
1007
1015
|
};
|
|
1008
1016
|
var XIcon_default = XIcon;
|
|
1009
1017
|
// src/Common/Modal.tsx
|
|
1010
|
-
import
|
|
1018
|
+
import clsx7 from "clsx";
|
|
1011
1019
|
import { Fragment as Fragment2, 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, [
|
|
@@ -1030,12 +1038,12 @@ 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
1048
|
/* @__PURE__ */ jsx20(Fragment2, {
|
|
1041
1049
|
children: dismissLink ? /* @__PURE__ */ jsx20(Link, {
|
|
@@ -1274,6 +1282,7 @@ var Slider_default = Slider;
|
|
|
1274
1282
|
// src/Common/ToggleSwitch.tsx
|
|
1275
1283
|
import { useField as useField3 } from "formik";
|
|
1276
1284
|
import { motion as motion3 } from "framer-motion";
|
|
1285
|
+
import clsx8 from "clsx";
|
|
1277
1286
|
import { jsx as jsx26, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1278
1287
|
var Formik = function(param) {
|
|
1279
1288
|
var label = param.label, name = param.name;
|
|
@@ -1294,7 +1303,7 @@ var Formik = function(param) {
|
|
|
1294
1303
|
onChange: handleChange
|
|
1295
1304
|
}),
|
|
1296
1305
|
/* @__PURE__ */ jsx26("div", {
|
|
1297
|
-
className: "w-10 h-6 rounded-full p-[4px] transition-colors duration-300
|
|
1306
|
+
className: clsx8("w-10 h-6 rounded-full p-[4px] transition-colors duration-300", value ? "bg-[#00b4d8]" : "bg-[#64748b]"),
|
|
1298
1307
|
children: /* @__PURE__ */ jsx26(motion3.div, {
|
|
1299
1308
|
className: "w-4 h-4 bg-white rounded-full absolute top-1",
|
|
1300
1309
|
initial: false,
|
|
@@ -1335,7 +1344,7 @@ var ToggleSwitch = function(param) {
|
|
|
1335
1344
|
onChange: handleChange
|
|
1336
1345
|
}),
|
|
1337
1346
|
/* @__PURE__ */ jsx26("div", {
|
|
1338
|
-
className: "w-10 h-6 rounded-full p-[4px] transition-colors duration-300
|
|
1347
|
+
className: clsx8("w-10 h-6 rounded-full p-[4px] transition-colors duration-300", value ? "bg-[#00b4d8]" : "bg-[#64748b]"),
|
|
1339
1348
|
children: /* @__PURE__ */ jsx26(motion3.div, {
|
|
1340
1349
|
className: "w-4 h-4 bg-white rounded-full absolute top-1",
|
|
1341
1350
|
initial: false,
|
|
@@ -1401,6 +1410,7 @@ var StartIconSolid2 = function(param) {
|
|
|
1401
1410
|
};
|
|
1402
1411
|
var ArrowCircleRight_default = StartIconSolid2;
|
|
1403
1412
|
// src/Common/UserContentSwitcher.tsx
|
|
1413
|
+
import clsx9 from "clsx";
|
|
1404
1414
|
import { jsx as jsx29, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1405
1415
|
var UserContentSwitcher = function(param) {
|
|
1406
1416
|
var Icon1 = param.icon1, Icon2 = param.icon2, setGalleryMode = param.setGalleryMode, galleryMode = param.galleryMode, title1 = param.title1, title2 = param.title2;
|
|
@@ -1425,13 +1435,22 @@ var UserContentSwitcher = function(param) {
|
|
|
1425
1435
|
className: "py-2 flex flex-row w-1/2 justify-center items-center gap-1 z-10",
|
|
1426
1436
|
children: [
|
|
1427
1437
|
/* @__PURE__ */ jsx29("span", {
|
|
1428
|
-
className: "truncate
|
|
1438
|
+
className: clsx9("truncate", {
|
|
1439
|
+
"text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
|
|
1440
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
|
|
1441
|
+
}),
|
|
1429
1442
|
children: title1.toLocaleUpperCase()
|
|
1430
1443
|
}),
|
|
1431
1444
|
Icon1 ? /* @__PURE__ */ jsx29(Icon1, {
|
|
1432
|
-
className: "h-5 w-5
|
|
1445
|
+
className: clsx9("h-5 w-5", {
|
|
1446
|
+
"text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
|
|
1447
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
|
|
1448
|
+
})
|
|
1433
1449
|
}) : /* @__PURE__ */ jsx29(PlusCircleIcon_default, {
|
|
1434
|
-
className: "h-5 w-5
|
|
1450
|
+
className: clsx9("h-5 w-5", {
|
|
1451
|
+
"text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
|
|
1452
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
|
|
1453
|
+
})
|
|
1435
1454
|
})
|
|
1436
1455
|
]
|
|
1437
1456
|
}),
|
|
@@ -1442,13 +1461,22 @@ var UserContentSwitcher = function(param) {
|
|
|
1442
1461
|
className: "py-2 flex flex-row w-1/2 justify-center items-center gap-1 z-10",
|
|
1443
1462
|
children: [
|
|
1444
1463
|
/* @__PURE__ */ jsx29("span", {
|
|
1445
|
-
className: "truncate
|
|
1464
|
+
className: clsx9("truncate", {
|
|
1465
|
+
"text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
|
|
1466
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
|
|
1467
|
+
}),
|
|
1446
1468
|
children: title2.toLocaleUpperCase()
|
|
1447
1469
|
}),
|
|
1448
1470
|
Icon2 ? /* @__PURE__ */ jsx29(Icon2, {
|
|
1449
|
-
className: "h-5 w-5
|
|
1471
|
+
className: clsx9("h-5 w-5", {
|
|
1472
|
+
"text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
|
|
1473
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
|
|
1474
|
+
})
|
|
1450
1475
|
}) : /* @__PURE__ */ jsx29(ArrowCircleRight_default, {
|
|
1451
|
-
className: "h-5 w-5
|
|
1476
|
+
className: clsx9("h-5 w-5", {
|
|
1477
|
+
"text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
|
|
1478
|
+
"text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
|
|
1479
|
+
})
|
|
1452
1480
|
})
|
|
1453
1481
|
]
|
|
1454
1482
|
})
|
|
@@ -1483,6 +1511,7 @@ var ProgressBarSimple = function(param) {
|
|
|
1483
1511
|
};
|
|
1484
1512
|
var ProgressBarSimple_default = ProgressBarSimple;
|
|
1485
1513
|
// src/ProgressBar/ProgressBar.tsx
|
|
1514
|
+
import clsx10 from "clsx";
|
|
1486
1515
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1487
1516
|
var ProgressBar = function(param) {
|
|
1488
1517
|
var progress = param.progress;
|
|
@@ -1492,7 +1521,7 @@ var ProgressBar = function(param) {
|
|
|
1492
1521
|
children: /* @__PURE__ */ jsx31("div", {
|
|
1493
1522
|
className: "bg-gray-100 rounded-full h-2",
|
|
1494
1523
|
children: /* @__PURE__ */ jsx31("div", {
|
|
1495
|
-
className: "rounded-full h-2
|
|
1524
|
+
className: clsx10("rounded-full h-2", progress === 100 ? "bg-green-400" : "bg-gray-100"),
|
|
1496
1525
|
style: {
|
|
1497
1526
|
width: "".concat(progress, "%"),
|
|
1498
1527
|
minWidth: "100%",
|
|
@@ -1521,7 +1550,7 @@ var ProgressStepBar = function(param) {
|
|
|
1521
1550
|
},
|
|
1522
1551
|
className: "cursor-pointer bg-gray-100 rounded-full h-2 overflow-hidden",
|
|
1523
1552
|
children: /* @__PURE__ */ jsx31("div", {
|
|
1524
|
-
className: "cursor-pointer rounded-full h-2
|
|
1553
|
+
className: clsx10("cursor-pointer rounded-full h-2", stepIndex >= i ? "bg-green-400" : "bg-gray-100"),
|
|
1525
1554
|
style: {
|
|
1526
1555
|
width: "".concat(stepIndex >= i ? 100 : 0, "%"),
|
|
1527
1556
|
transition: "width 0.3s ease"
|