evelearn-theme 2.0.19 → 2.0.21
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/.github/workflows/publish.yaml +0 -9
- package/dist/index.js +14 -25
- package/dist/index.mjs +14 -25
- package/package.json +1 -1
|
@@ -24,15 +24,6 @@ jobs:
|
|
|
24
24
|
- name: Install dependencies
|
|
25
25
|
run: npm ci
|
|
26
26
|
|
|
27
|
-
- name: Bump version (patch)
|
|
28
|
-
run: |
|
|
29
|
-
git config --global user.name "github-actions[bot]"
|
|
30
|
-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
31
|
-
npm version patch --no-git-tag-version
|
|
32
|
-
git add package.json package-lock.json
|
|
33
|
-
git commit -m "chore: bump version [skip ci]"
|
|
34
|
-
git push
|
|
35
|
-
|
|
36
27
|
- name: Build the package
|
|
37
28
|
run: npm run build
|
|
38
29
|
|
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
|
}
|
|
@@ -2079,12 +2079,7 @@ var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
|
2079
2079
|
var OverlaySpinner = function(param) {
|
|
2080
2080
|
var visible = param.visible;
|
|
2081
2081
|
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
2082
|
(0, import_react11.useEffect)(function() {
|
|
2084
|
-
return setMounted(true);
|
|
2085
|
-
}, []);
|
|
2086
|
-
(0, import_react11.useEffect)(function() {
|
|
2087
|
-
if (modalRoot || !visible) return;
|
|
2088
2083
|
var root = document.getElementById("spinner-root");
|
|
2089
2084
|
if (!root) {
|
|
2090
2085
|
root = document.createElement("div");
|
|
@@ -2092,16 +2087,10 @@ var OverlaySpinner = function(param) {
|
|
|
2092
2087
|
document.body.appendChild(root);
|
|
2093
2088
|
}
|
|
2094
2089
|
setModalRoot(root);
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
}
|
|
2100
|
-
};
|
|
2101
|
-
}, [
|
|
2102
|
-
visible
|
|
2103
|
-
]);
|
|
2104
|
-
if (!visible || !mounted) return null;
|
|
2090
|
+
}, []);
|
|
2091
|
+
if (!visible || !modalRoot) {
|
|
2092
|
+
return null;
|
|
2093
|
+
}
|
|
2105
2094
|
return (0, import_react_dom3.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", {
|
|
2106
2095
|
style: {
|
|
2107
2096
|
zIndex: 11e3
|
|
@@ -2117,7 +2106,7 @@ var OverlaySpinner = function(param) {
|
|
|
2117
2106
|
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(AnimateLogo_default, {})
|
|
2118
2107
|
})
|
|
2119
2108
|
})
|
|
2120
|
-
}),
|
|
2109
|
+
}), modalRoot);
|
|
2121
2110
|
};
|
|
2122
2111
|
var OverlaySpinner_default = OverlaySpinner;
|
|
2123
2112
|
// 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
|
}
|
|
@@ -1891,12 +1891,7 @@ import { jsx as jsx36 } from "react/jsx-runtime";
|
|
|
1891
1891
|
var OverlaySpinner = function(param) {
|
|
1892
1892
|
var visible = param.visible;
|
|
1893
1893
|
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
1894
|
useEffect6(function() {
|
|
1896
|
-
return setMounted(true);
|
|
1897
|
-
}, []);
|
|
1898
|
-
useEffect6(function() {
|
|
1899
|
-
if (modalRoot || !visible) return;
|
|
1900
1895
|
var root = document.getElementById("spinner-root");
|
|
1901
1896
|
if (!root) {
|
|
1902
1897
|
root = document.createElement("div");
|
|
@@ -1904,16 +1899,10 @@ var OverlaySpinner = function(param) {
|
|
|
1904
1899
|
document.body.appendChild(root);
|
|
1905
1900
|
}
|
|
1906
1901
|
setModalRoot(root);
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
}
|
|
1912
|
-
};
|
|
1913
|
-
}, [
|
|
1914
|
-
visible
|
|
1915
|
-
]);
|
|
1916
|
-
if (!visible || !mounted) return null;
|
|
1902
|
+
}, []);
|
|
1903
|
+
if (!visible || !modalRoot) {
|
|
1904
|
+
return null;
|
|
1905
|
+
}
|
|
1917
1906
|
return createPortal(/* @__PURE__ */ jsx36("div", {
|
|
1918
1907
|
style: {
|
|
1919
1908
|
zIndex: 11e3
|
|
@@ -1929,7 +1918,7 @@ var OverlaySpinner = function(param) {
|
|
|
1929
1918
|
children: /* @__PURE__ */ jsx36(AnimateLogo_default, {})
|
|
1930
1919
|
})
|
|
1931
1920
|
})
|
|
1932
|
-
}),
|
|
1921
|
+
}), modalRoot);
|
|
1933
1922
|
};
|
|
1934
1923
|
var OverlaySpinner_default = OverlaySpinner;
|
|
1935
1924
|
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 };
|