evelearn-theme 2.0.20 → 2.0.22
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 +47 -61
- package/dist/index.mjs +47 -61
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -589,23 +589,23 @@ var Button = function(param) {
|
|
|
589
589
|
var styled = function() {
|
|
590
590
|
switch(kind){
|
|
591
591
|
case "primary":
|
|
592
|
-
return "bg-primary font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "
|
|
592
|
+
return "bg-primary font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
593
593
|
case "indigo":
|
|
594
|
-
return "bg-indigo-500 font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "
|
|
594
|
+
return "bg-indigo-500 font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
595
595
|
case "green":
|
|
596
|
-
return "bg-green-500 font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "
|
|
596
|
+
return "bg-green-500 font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
597
597
|
case "teal":
|
|
598
|
-
return "bg-teal-500 font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "
|
|
598
|
+
return "bg-teal-500 font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
599
599
|
case "secondary":
|
|
600
|
-
return "bg-secondary text-white font-header font-medium
|
|
600
|
+
return "bg-secondary text-white font-header font-medium transition-all duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
601
601
|
case "base":
|
|
602
|
-
return "bg-white border-1 font-header border-gray-200 dark:bg-slate-600 dark:text-gray-100 dark:hover:bg-slate-400 hover:bg-slate-100
|
|
602
|
+
return "bg-white border-1 font-header border-gray-200 dark:bg-slate-600 dark:text-gray-100 transition-all duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "dark:hover:bg-slate-400 hover:bg-slate-100");
|
|
603
603
|
case "gray":
|
|
604
|
-
return "bg-slate-400 dark:bg-slate-700 font-header text-white border-1 font-medium
|
|
604
|
+
return "bg-slate-400 dark:bg-slate-700 font-header text-white border-1 font-medium transition-opacity duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
605
605
|
case "alert":
|
|
606
|
-
return "bg-amber-500 font-header text-white transition-all hover:bg-black/10
|
|
606
|
+
return "bg-amber-500 font-header text-white transition-all duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
607
607
|
case "warning":
|
|
608
|
-
return "bg-red-500 font-header text-white font-medium
|
|
608
|
+
return "bg-red-500 font-header text-white font-medium transition-opacity duration-100 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
609
609
|
default:
|
|
610
610
|
break;
|
|
611
611
|
}
|
|
@@ -2018,30 +2018,27 @@ var AnimateLogo = function() {
|
|
|
2018
2018
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("svg", {
|
|
2019
2019
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2020
2020
|
viewBox: "0 0 600 600",
|
|
2021
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime35.
|
|
2021
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("g", {
|
|
2022
2022
|
style: {
|
|
2023
2023
|
transformOrigin: "center"
|
|
2024
2024
|
},
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
strokeDasharray: "1600",
|
|
2043
|
-
d: "M466.49 164.79c17.79 34.76 25.48 75.66 19.08 118.96-11.28 76.36-67.11 139.06-141.89 158.25-127.11 32.61-243.49-61.27-245.86-184.81C95.79 150.86 182.9 60.52 289.23 58.56c33.95-.63 66.08 7.48 94.22 22.29 0 0 15.68 6.34 10.14 23.19 0 0-68.52 219.82-352.61 268.06",
|
|
2044
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("animate", {
|
|
2025
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("path", {
|
|
2026
|
+
className: "stroke-black dark:stroke-white text-gray-900 dark:text-gray-50",
|
|
2027
|
+
stroke: "currentColor",
|
|
2028
|
+
id: "motionPath",
|
|
2029
|
+
fill: "none",
|
|
2030
|
+
strokeLinecap: "round",
|
|
2031
|
+
height: 600,
|
|
2032
|
+
width: 600,
|
|
2033
|
+
style: {
|
|
2034
|
+
transformOrigin: "center"
|
|
2035
|
+
},
|
|
2036
|
+
strokeMiterlimit: "10",
|
|
2037
|
+
strokeWidth: "82",
|
|
2038
|
+
strokeDasharray: "1600",
|
|
2039
|
+
d: "M466.49 164.79c17.79 34.76 25.48 75.66 19.08 118.96-11.28 76.36-67.11 139.06-141.89 158.25-127.11 32.61-243.49-61.27-245.86-184.81C95.79 150.86 182.9 60.52 289.23 58.56c33.95-.63 66.08 7.48 94.22 22.29 0 0 15.68 6.34 10.14 23.19 0 0-68.52 219.82-352.61 268.06",
|
|
2040
|
+
children: [
|
|
2041
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("animate", {
|
|
2045
2042
|
attributeName: "stroke-dashoffset",
|
|
2046
2043
|
to: "0",
|
|
2047
2044
|
from: "1600",
|
|
@@ -2052,22 +2049,22 @@ var AnimateLogo = function() {
|
|
|
2052
2049
|
keyTimes: "0;0.375;0.5;0.875;1",
|
|
2053
2050
|
keySplines: "0 0.26 0 1;0 0.26 0 1;0 0.26 0 1;0 0.26 0 1",
|
|
2054
2051
|
values: "1600;0;0;1600;1600"
|
|
2052
|
+
}),
|
|
2053
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("animateTransform", {
|
|
2054
|
+
attributeName: "transform",
|
|
2055
|
+
type: "rotate",
|
|
2056
|
+
from: "0 300 300",
|
|
2057
|
+
to: "360 300 300",
|
|
2058
|
+
dur: "2s",
|
|
2059
|
+
fill: "freeze",
|
|
2060
|
+
repeatCount: "indefinite",
|
|
2061
|
+
calcMode: "cubic",
|
|
2062
|
+
keyTimes: "0;0.75;1",
|
|
2063
|
+
keySplines: "0 0.26 0 1",
|
|
2064
|
+
values: "0 300 300;360 300 300;360 300 300;"
|
|
2055
2065
|
})
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
attributeName: "transform",
|
|
2059
|
-
type: "rotate",
|
|
2060
|
-
from: "0",
|
|
2061
|
-
to: "360",
|
|
2062
|
-
dur: "2s",
|
|
2063
|
-
fill: "freeze",
|
|
2064
|
-
repeatCount: "indefinite",
|
|
2065
|
-
calcMode: "cubic",
|
|
2066
|
-
keyTimes: "0;0.75;1",
|
|
2067
|
-
keySplines: "0 0.26 0 1",
|
|
2068
|
-
values: "0;360;360;"
|
|
2069
|
-
})
|
|
2070
|
-
]
|
|
2066
|
+
]
|
|
2067
|
+
})
|
|
2071
2068
|
})
|
|
2072
2069
|
});
|
|
2073
2070
|
};
|
|
@@ -2079,12 +2076,7 @@ var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
|
2079
2076
|
var OverlaySpinner = function(param) {
|
|
2080
2077
|
var visible = param.visible;
|
|
2081
2078
|
var _ref = _sliced_to_array((0, import_react11.useState)(null), 2), modalRoot = _ref[0], setModalRoot = _ref[1];
|
|
2082
|
-
var _ref1 = _sliced_to_array((0, import_react11.useState)(false), 2), mounted = _ref1[0], setMounted = _ref1[1];
|
|
2083
|
-
(0, import_react11.useEffect)(function() {
|
|
2084
|
-
return setMounted(true);
|
|
2085
|
-
}, []);
|
|
2086
2079
|
(0, import_react11.useEffect)(function() {
|
|
2087
|
-
if (modalRoot || !visible) return;
|
|
2088
2080
|
var root = document.getElementById("spinner-root");
|
|
2089
2081
|
if (!root) {
|
|
2090
2082
|
root = document.createElement("div");
|
|
@@ -2092,16 +2084,10 @@ var OverlaySpinner = function(param) {
|
|
|
2092
2084
|
document.body.appendChild(root);
|
|
2093
2085
|
}
|
|
2094
2086
|
setModalRoot(root);
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
}
|
|
2100
|
-
};
|
|
2101
|
-
}, [
|
|
2102
|
-
visible
|
|
2103
|
-
]);
|
|
2104
|
-
if (!visible || !mounted) return null;
|
|
2087
|
+
}, []);
|
|
2088
|
+
if (!visible || !modalRoot) {
|
|
2089
|
+
return null;
|
|
2090
|
+
}
|
|
2105
2091
|
return (0, import_react_dom3.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", {
|
|
2106
2092
|
style: {
|
|
2107
2093
|
zIndex: 11e3
|
|
@@ -2117,7 +2103,7 @@ var OverlaySpinner = function(param) {
|
|
|
2117
2103
|
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(AnimateLogo_default, {})
|
|
2118
2104
|
})
|
|
2119
2105
|
})
|
|
2120
|
-
}),
|
|
2106
|
+
}), modalRoot);
|
|
2121
2107
|
};
|
|
2122
2108
|
var OverlaySpinner_default = OverlaySpinner;
|
|
2123
2109
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -401,23 +401,23 @@ var Button = function(param) {
|
|
|
401
401
|
var styled = function() {
|
|
402
402
|
switch(kind){
|
|
403
403
|
case "primary":
|
|
404
|
-
return "bg-primary font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "
|
|
404
|
+
return "bg-primary font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
405
405
|
case "indigo":
|
|
406
|
-
return "bg-indigo-500 font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "
|
|
406
|
+
return "bg-indigo-500 font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
407
407
|
case "green":
|
|
408
|
-
return "bg-green-500 font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "
|
|
408
|
+
return "bg-green-500 font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
409
409
|
case "teal":
|
|
410
|
-
return "bg-teal-500 font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "
|
|
410
|
+
return "bg-teal-500 font-header text-white font-medium transition-all duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
411
411
|
case "secondary":
|
|
412
|
-
return "bg-secondary text-white font-header font-medium
|
|
412
|
+
return "bg-secondary text-white font-header font-medium transition-all duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
413
413
|
case "base":
|
|
414
|
-
return "bg-white border-1 font-header border-gray-200 dark:bg-slate-600 dark:text-gray-100 dark:hover:bg-slate-400 hover:bg-slate-100
|
|
414
|
+
return "bg-white border-1 font-header border-gray-200 dark:bg-slate-600 dark:text-gray-100 transition-all duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "dark:hover:bg-slate-400 hover:bg-slate-100");
|
|
415
415
|
case "gray":
|
|
416
|
-
return "bg-slate-400 dark:bg-slate-700 font-header text-white border-1 font-medium
|
|
416
|
+
return "bg-slate-400 dark:bg-slate-700 font-header text-white border-1 font-medium transition-opacity duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
417
417
|
case "alert":
|
|
418
|
-
return "bg-amber-500 font-header text-white transition-all hover:bg-black/10
|
|
418
|
+
return "bg-amber-500 font-header text-white transition-all duration-75 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
419
419
|
case "warning":
|
|
420
|
-
return "bg-red-500 font-header text-white font-medium
|
|
420
|
+
return "bg-red-500 font-header text-white font-medium transition-opacity duration-100 ".concat(disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-black/10");
|
|
421
421
|
default:
|
|
422
422
|
break;
|
|
423
423
|
}
|
|
@@ -1830,30 +1830,27 @@ var AnimateLogo = function() {
|
|
|
1830
1830
|
return /* @__PURE__ */ jsx35("svg", {
|
|
1831
1831
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1832
1832
|
viewBox: "0 0 600 600",
|
|
1833
|
-
children: /* @__PURE__ */
|
|
1833
|
+
children: /* @__PURE__ */ jsx35("g", {
|
|
1834
1834
|
style: {
|
|
1835
1835
|
transformOrigin: "center"
|
|
1836
1836
|
},
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
strokeDasharray: "1600",
|
|
1855
|
-
d: "M466.49 164.79c17.79 34.76 25.48 75.66 19.08 118.96-11.28 76.36-67.11 139.06-141.89 158.25-127.11 32.61-243.49-61.27-245.86-184.81C95.79 150.86 182.9 60.52 289.23 58.56c33.95-.63 66.08 7.48 94.22 22.29 0 0 15.68 6.34 10.14 23.19 0 0-68.52 219.82-352.61 268.06",
|
|
1856
|
-
children: /* @__PURE__ */ jsx35("animate", {
|
|
1837
|
+
children: /* @__PURE__ */ jsxs16("path", {
|
|
1838
|
+
className: "stroke-black dark:stroke-white text-gray-900 dark:text-gray-50",
|
|
1839
|
+
stroke: "currentColor",
|
|
1840
|
+
id: "motionPath",
|
|
1841
|
+
fill: "none",
|
|
1842
|
+
strokeLinecap: "round",
|
|
1843
|
+
height: 600,
|
|
1844
|
+
width: 600,
|
|
1845
|
+
style: {
|
|
1846
|
+
transformOrigin: "center"
|
|
1847
|
+
},
|
|
1848
|
+
strokeMiterlimit: "10",
|
|
1849
|
+
strokeWidth: "82",
|
|
1850
|
+
strokeDasharray: "1600",
|
|
1851
|
+
d: "M466.49 164.79c17.79 34.76 25.48 75.66 19.08 118.96-11.28 76.36-67.11 139.06-141.89 158.25-127.11 32.61-243.49-61.27-245.86-184.81C95.79 150.86 182.9 60.52 289.23 58.56c33.95-.63 66.08 7.48 94.22 22.29 0 0 15.68 6.34 10.14 23.19 0 0-68.52 219.82-352.61 268.06",
|
|
1852
|
+
children: [
|
|
1853
|
+
/* @__PURE__ */ jsx35("animate", {
|
|
1857
1854
|
attributeName: "stroke-dashoffset",
|
|
1858
1855
|
to: "0",
|
|
1859
1856
|
from: "1600",
|
|
@@ -1864,22 +1861,22 @@ var AnimateLogo = function() {
|
|
|
1864
1861
|
keyTimes: "0;0.375;0.5;0.875;1",
|
|
1865
1862
|
keySplines: "0 0.26 0 1;0 0.26 0 1;0 0.26 0 1;0 0.26 0 1",
|
|
1866
1863
|
values: "1600;0;0;1600;1600"
|
|
1864
|
+
}),
|
|
1865
|
+
/* @__PURE__ */ jsx35("animateTransform", {
|
|
1866
|
+
attributeName: "transform",
|
|
1867
|
+
type: "rotate",
|
|
1868
|
+
from: "0 300 300",
|
|
1869
|
+
to: "360 300 300",
|
|
1870
|
+
dur: "2s",
|
|
1871
|
+
fill: "freeze",
|
|
1872
|
+
repeatCount: "indefinite",
|
|
1873
|
+
calcMode: "cubic",
|
|
1874
|
+
keyTimes: "0;0.75;1",
|
|
1875
|
+
keySplines: "0 0.26 0 1",
|
|
1876
|
+
values: "0 300 300;360 300 300;360 300 300;"
|
|
1867
1877
|
})
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
attributeName: "transform",
|
|
1871
|
-
type: "rotate",
|
|
1872
|
-
from: "0",
|
|
1873
|
-
to: "360",
|
|
1874
|
-
dur: "2s",
|
|
1875
|
-
fill: "freeze",
|
|
1876
|
-
repeatCount: "indefinite",
|
|
1877
|
-
calcMode: "cubic",
|
|
1878
|
-
keyTimes: "0;0.75;1",
|
|
1879
|
-
keySplines: "0 0.26 0 1",
|
|
1880
|
-
values: "0;360;360;"
|
|
1881
|
-
})
|
|
1882
|
-
]
|
|
1878
|
+
]
|
|
1879
|
+
})
|
|
1883
1880
|
})
|
|
1884
1881
|
});
|
|
1885
1882
|
};
|
|
@@ -1891,12 +1888,7 @@ import { jsx as jsx36 } from "react/jsx-runtime";
|
|
|
1891
1888
|
var OverlaySpinner = function(param) {
|
|
1892
1889
|
var visible = param.visible;
|
|
1893
1890
|
var _useState7 = _sliced_to_array(useState7(null), 2), modalRoot = _useState7[0], setModalRoot = _useState7[1];
|
|
1894
|
-
var _useState71 = _sliced_to_array(useState7(false), 2), mounted = _useState71[0], setMounted = _useState71[1];
|
|
1895
|
-
useEffect6(function() {
|
|
1896
|
-
return setMounted(true);
|
|
1897
|
-
}, []);
|
|
1898
1891
|
useEffect6(function() {
|
|
1899
|
-
if (modalRoot || !visible) return;
|
|
1900
1892
|
var root = document.getElementById("spinner-root");
|
|
1901
1893
|
if (!root) {
|
|
1902
1894
|
root = document.createElement("div");
|
|
@@ -1904,16 +1896,10 @@ var OverlaySpinner = function(param) {
|
|
|
1904
1896
|
document.body.appendChild(root);
|
|
1905
1897
|
}
|
|
1906
1898
|
setModalRoot(root);
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
}
|
|
1912
|
-
};
|
|
1913
|
-
}, [
|
|
1914
|
-
visible
|
|
1915
|
-
]);
|
|
1916
|
-
if (!visible || !mounted) return null;
|
|
1899
|
+
}, []);
|
|
1900
|
+
if (!visible || !modalRoot) {
|
|
1901
|
+
return null;
|
|
1902
|
+
}
|
|
1917
1903
|
return createPortal(/* @__PURE__ */ jsx36("div", {
|
|
1918
1904
|
style: {
|
|
1919
1905
|
zIndex: 11e3
|
|
@@ -1929,7 +1915,7 @@ var OverlaySpinner = function(param) {
|
|
|
1929
1915
|
children: /* @__PURE__ */ jsx36(AnimateLogo_default, {})
|
|
1930
1916
|
})
|
|
1931
1917
|
})
|
|
1932
|
-
}),
|
|
1918
|
+
}), modalRoot);
|
|
1933
1919
|
};
|
|
1934
1920
|
var OverlaySpinner_default = OverlaySpinner;
|
|
1935
1921
|
export { AnimateLogo_default as AnimateLogo, Backdrop_default as Backdrop, BottomAlert_default as BottomAlert, Breakpoint_default as Breakpoint, Button_default as Button, Checkbox_default as Checkbox, CircleProgress_default as CircleProgress, Container_default as Container, CourseProgress_default as CourseProgress, ErrorText_default as ErrorText, Fade_default as Fade, FunButton_default as FunButton, FunRoundButton_default as FunRoundButton, IconInfo_default as IconInfo, Modal_default as Modal, NoResults_default as NoResults, NoticeBox_default as NoticeBox, Overlay_default as Overlay, OverlaySpinner_default as OverlaySpinner, PRIMARY_COLOR, Pill_default as Pill, ProgressBar_default as ProgressBar, ProgressBarSimple_default as ProgressBarSimple, RadioOption_default as RadioOption, RatingStars_default as RatingStars, ScrollProgress_default as ScrollProgress, Slider_default as Slider, Spinner_default as Spinner, StepsComponent_default as StepsComponent, Tippy_default as Tippy, ToggleSwitch_default as ToggleSwitch, UserContentSwitcher_default as UserContentSwitcher, baseFieldStyle, createExerciseElementStyle, exerciseDeleteButton, exerciseEditButton, headerButtonClass, headerTippyClass, tippyClassname, xIconButton };
|