evelearn-theme 2.0.35 → 2.0.36
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 +7 -5
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -8
- package/dist/index.mjs +17 -8
- package/package.json +5 -1
|
@@ -5,6 +5,9 @@ on:
|
|
|
5
5
|
branches:
|
|
6
6
|
- master
|
|
7
7
|
|
|
8
|
+
permissions:
|
|
9
|
+
id-token: write # Required for OIDC
|
|
10
|
+
contents: read
|
|
8
11
|
jobs:
|
|
9
12
|
bump-and-publish:
|
|
10
13
|
runs-on: ubuntu-latest
|
|
@@ -18,16 +21,15 @@ jobs:
|
|
|
18
21
|
- name: Set up Node.js
|
|
19
22
|
uses: actions/setup-node@v4
|
|
20
23
|
with:
|
|
21
|
-
node-version: '
|
|
22
|
-
registry-url: 'https://registry.npmjs.org
|
|
24
|
+
node-version: '24'
|
|
25
|
+
registry-url: 'https://registry.npmjs.org'
|
|
23
26
|
|
|
24
27
|
- name: Install dependencies
|
|
25
28
|
run: npm ci
|
|
26
29
|
|
|
27
30
|
- name: Build the package
|
|
28
|
-
run: npm run build
|
|
31
|
+
run: npm run build --if-present
|
|
29
32
|
|
|
30
33
|
- name: Publish to npm
|
|
31
34
|
run: npm run pub
|
|
32
|
-
|
|
33
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
35
|
+
|
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ type Props$g = {
|
|
|
12
12
|
declare const ErrorText: ({ text, style, classNames }: Props$g) => react_jsx_runtime.JSX.Element;
|
|
13
13
|
|
|
14
14
|
declare const baseFieldStyle = "font-sans form-input h-11 w-full bg-white border-gray-200 dark:border-gray-500 dark:bg-slate-950 dark:text-gray-200 text-gray-700 dark:placeholder-gray-400 placeholder-gray-400 rounded-md px-2 py-1 focus:outline-none focus:border-blue-300 focus:ring focus:ring-blue-200 focus:ring-opacity-50";
|
|
15
|
-
declare const createExerciseElementStyle = "flex flex-col justify-between space-y-2 w-full p-4 bg-white dark:bg-slate-
|
|
15
|
+
declare const createExerciseElementStyle = "flex flex-col justify-between space-y-2 w-full p-4 bg-white dark:bg-slate-900 rounded-xl text-gray-800 dark:text-gray-200 border-2 border-slate-200 dark:border-slate-400 overflow-hidden transition-all";
|
|
16
16
|
declare const exerciseDeleteButton = "w-6 h-6 flex justify-center text-gray-700 dark:text-gray-200 hover:text-red-600 dark:hover:text-red-500 transition-all duration-150 hover:scale-125";
|
|
17
17
|
declare const xIconButton = "w-6 h-6 flex justify-center text-gray-700 dark:text-gray-200 hover:text-gray-950 dark:hover:text-gray-100 transition-all duration-150 hover:scale-125";
|
|
18
18
|
declare const exerciseEditButton = "w-6 h-6 flex justify-center text-gray-700 dark:text-gray-200 hover:text-red-600 dark:hover:text-green-500 transition-all duration-150 hover:scale-125";
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ type Props$g = {
|
|
|
12
12
|
declare const ErrorText: ({ text, style, classNames }: Props$g) => react_jsx_runtime.JSX.Element;
|
|
13
13
|
|
|
14
14
|
declare const baseFieldStyle = "font-sans form-input h-11 w-full bg-white border-gray-200 dark:border-gray-500 dark:bg-slate-950 dark:text-gray-200 text-gray-700 dark:placeholder-gray-400 placeholder-gray-400 rounded-md px-2 py-1 focus:outline-none focus:border-blue-300 focus:ring focus:ring-blue-200 focus:ring-opacity-50";
|
|
15
|
-
declare const createExerciseElementStyle = "flex flex-col justify-between space-y-2 w-full p-4 bg-white dark:bg-slate-
|
|
15
|
+
declare const createExerciseElementStyle = "flex flex-col justify-between space-y-2 w-full p-4 bg-white dark:bg-slate-900 rounded-xl text-gray-800 dark:text-gray-200 border-2 border-slate-200 dark:border-slate-400 overflow-hidden transition-all";
|
|
16
16
|
declare const exerciseDeleteButton = "w-6 h-6 flex justify-center text-gray-700 dark:text-gray-200 hover:text-red-600 dark:hover:text-red-500 transition-all duration-150 hover:scale-125";
|
|
17
17
|
declare const xIconButton = "w-6 h-6 flex justify-center text-gray-700 dark:text-gray-200 hover:text-gray-950 dark:hover:text-gray-100 transition-all duration-150 hover:scale-125";
|
|
18
18
|
declare const exerciseEditButton = "w-6 h-6 flex justify-center text-gray-700 dark:text-gray-200 hover:text-red-600 dark:hover:text-green-500 transition-all duration-150 hover:scale-125";
|
package/dist/index.js
CHANGED
|
@@ -163,7 +163,7 @@ var ErrorText = /* @__PURE__ */ __name(function(param) {
|
|
|
163
163
|
var ErrorText_default = ErrorText;
|
|
164
164
|
// src/Common/fieldStyle.ts
|
|
165
165
|
var baseFieldStyle = "font-sans form-input h-11 w-full bg-white border-gray-200 dark:border-gray-500 dark:bg-slate-950 dark:text-gray-200 text-gray-700 dark:placeholder-gray-400 placeholder-gray-400 rounded-md px-2 py-1 focus:outline-none focus:border-blue-300 focus:ring focus:ring-blue-200 focus:ring-opacity-50";
|
|
166
|
-
var createExerciseElementStyle = "flex flex-col justify-between space-y-2 w-full p-4 bg-white dark:bg-slate-
|
|
166
|
+
var createExerciseElementStyle = "flex flex-col justify-between space-y-2 w-full p-4 bg-white dark:bg-slate-900 rounded-xl text-gray-800 dark:text-gray-200 border-2 border-slate-200 dark:border-slate-400 overflow-hidden transition-all";
|
|
167
167
|
var exerciseDeleteButton = "w-6 h-6 flex justify-center text-gray-700 dark:text-gray-200 hover:text-red-600 dark:hover:text-red-500 transition-all duration-150 hover:scale-125";
|
|
168
168
|
var xIconButton = "w-6 h-6 flex justify-center text-gray-700 dark:text-gray-200 hover:text-gray-950 dark:hover:text-gray-100 transition-all duration-150 hover:scale-125";
|
|
169
169
|
var exerciseEditButton = "w-6 h-6 flex justify-center text-gray-700 dark:text-gray-200 hover:text-red-600 dark:hover:text-green-500 transition-all duration-150 hover:scale-125";
|
|
@@ -1052,6 +1052,17 @@ var Modal = /* @__PURE__ */ __name(function(_param) {
|
|
|
1052
1052
|
"style"
|
|
1053
1053
|
]);
|
|
1054
1054
|
if (!visible) return null;
|
|
1055
|
+
var modalWrapperClass = clsx__default.default("relative mx-1 w-full", !fullscreen && "md:mx-auto md:w-3/4 lg:w-1/2", fullscreen && "fixed inset-0 mx-0 w-full h-full flex items-center justify-center md:mx-0 md:w-full lg:w-full");
|
|
1056
|
+
var modalPanelClass = clsx__default.default("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", fullscreen && "rounded-none sm:mt-0 h-full w-full flex flex-col justify-center");
|
|
1057
|
+
var modalPanelStyle = fullscreen ? _object_spread({
|
|
1058
|
+
height: "100vh",
|
|
1059
|
+
width: "100vw",
|
|
1060
|
+
maxHeight: "100vh"
|
|
1061
|
+
}, style) : _object_spread({
|
|
1062
|
+
maxHeight: "calc(100vh - 6rem)"
|
|
1063
|
+
}, style);
|
|
1064
|
+
var innerPaddingClass = fullscreen ? "p-4 sm:p-10 flex-1 flex items-center justify-center" : "p-4 sm:p-10";
|
|
1065
|
+
var contentMarginTopClass = fullscreen ? "" : "mt-8 sm:mt-0";
|
|
1055
1066
|
return /* @__PURE__ */ jsxRuntime.jsx(Overlay_default, _object_spread_props(_object_spread({
|
|
1056
1067
|
visible: visible,
|
|
1057
1068
|
onClick: dismissOnBackdropClick ? onDismissed : void 0,
|
|
@@ -1064,7 +1075,7 @@ var Modal = /* @__PURE__ */ __name(function(_param) {
|
|
|
1064
1075
|
zIndex: 1e4
|
|
1065
1076
|
},
|
|
1066
1077
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
1067
|
-
className:
|
|
1078
|
+
className: modalWrapperClass,
|
|
1068
1079
|
children: [
|
|
1069
1080
|
dismissLink ? /* @__PURE__ */ jsxRuntime.jsx("a", {
|
|
1070
1081
|
href: dismissLink,
|
|
@@ -1083,17 +1094,15 @@ var Modal = /* @__PURE__ */ __name(function(_param) {
|
|
|
1083
1094
|
})
|
|
1084
1095
|
}) : null,
|
|
1085
1096
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1086
|
-
className:
|
|
1097
|
+
className: modalPanelClass,
|
|
1087
1098
|
onClick: function(e) {
|
|
1088
1099
|
return e.stopPropagation();
|
|
1089
1100
|
},
|
|
1090
|
-
style:
|
|
1091
|
-
maxHeight: "calc(100vh - 6rem)"
|
|
1092
|
-
}, style),
|
|
1101
|
+
style: modalPanelStyle,
|
|
1093
1102
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1094
|
-
className:
|
|
1103
|
+
className: innerPaddingClass,
|
|
1095
1104
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1096
|
-
className:
|
|
1105
|
+
className: contentMarginTopClass,
|
|
1097
1106
|
children: children
|
|
1098
1107
|
})
|
|
1099
1108
|
})
|
package/dist/index.mjs
CHANGED
|
@@ -155,7 +155,7 @@ var ErrorText = /* @__PURE__ */ __name(function(param) {
|
|
|
155
155
|
var ErrorText_default = ErrorText;
|
|
156
156
|
// src/Common/fieldStyle.ts
|
|
157
157
|
var baseFieldStyle = "font-sans form-input h-11 w-full bg-white border-gray-200 dark:border-gray-500 dark:bg-slate-950 dark:text-gray-200 text-gray-700 dark:placeholder-gray-400 placeholder-gray-400 rounded-md px-2 py-1 focus:outline-none focus:border-blue-300 focus:ring focus:ring-blue-200 focus:ring-opacity-50";
|
|
158
|
-
var createExerciseElementStyle = "flex flex-col justify-between space-y-2 w-full p-4 bg-white dark:bg-slate-
|
|
158
|
+
var createExerciseElementStyle = "flex flex-col justify-between space-y-2 w-full p-4 bg-white dark:bg-slate-900 rounded-xl text-gray-800 dark:text-gray-200 border-2 border-slate-200 dark:border-slate-400 overflow-hidden transition-all";
|
|
159
159
|
var exerciseDeleteButton = "w-6 h-6 flex justify-center text-gray-700 dark:text-gray-200 hover:text-red-600 dark:hover:text-red-500 transition-all duration-150 hover:scale-125";
|
|
160
160
|
var xIconButton = "w-6 h-6 flex justify-center text-gray-700 dark:text-gray-200 hover:text-gray-950 dark:hover:text-gray-100 transition-all duration-150 hover:scale-125";
|
|
161
161
|
var exerciseEditButton = "w-6 h-6 flex justify-center text-gray-700 dark:text-gray-200 hover:text-red-600 dark:hover:text-green-500 transition-all duration-150 hover:scale-125";
|
|
@@ -1044,6 +1044,17 @@ var Modal = /* @__PURE__ */ __name(function(_param) {
|
|
|
1044
1044
|
"style"
|
|
1045
1045
|
]);
|
|
1046
1046
|
if (!visible) return null;
|
|
1047
|
+
var modalWrapperClass = clsx("relative mx-1 w-full", !fullscreen && "md:mx-auto md:w-3/4 lg:w-1/2", fullscreen && "fixed inset-0 mx-0 w-full h-full flex items-center justify-center md:mx-0 md:w-full lg:w-full");
|
|
1048
|
+
var modalPanelClass = clsx("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", fullscreen && "rounded-none sm:mt-0 h-full w-full flex flex-col justify-center");
|
|
1049
|
+
var modalPanelStyle = fullscreen ? _object_spread({
|
|
1050
|
+
height: "100vh",
|
|
1051
|
+
width: "100vw",
|
|
1052
|
+
maxHeight: "100vh"
|
|
1053
|
+
}, style) : _object_spread({
|
|
1054
|
+
maxHeight: "calc(100vh - 6rem)"
|
|
1055
|
+
}, style);
|
|
1056
|
+
var innerPaddingClass = fullscreen ? "p-4 sm:p-10 flex-1 flex items-center justify-center" : "p-4 sm:p-10";
|
|
1057
|
+
var contentMarginTopClass = fullscreen ? "" : "mt-8 sm:mt-0";
|
|
1047
1058
|
return /* @__PURE__ */ jsx(Overlay_default, _object_spread_props(_object_spread({
|
|
1048
1059
|
visible: visible,
|
|
1049
1060
|
onClick: dismissOnBackdropClick ? onDismissed : void 0,
|
|
@@ -1056,7 +1067,7 @@ var Modal = /* @__PURE__ */ __name(function(_param) {
|
|
|
1056
1067
|
zIndex: 1e4
|
|
1057
1068
|
},
|
|
1058
1069
|
children: /* @__PURE__ */ jsxs("div", {
|
|
1059
|
-
className:
|
|
1070
|
+
className: modalWrapperClass,
|
|
1060
1071
|
children: [
|
|
1061
1072
|
dismissLink ? /* @__PURE__ */ jsx("a", {
|
|
1062
1073
|
href: dismissLink,
|
|
@@ -1075,17 +1086,15 @@ var Modal = /* @__PURE__ */ __name(function(_param) {
|
|
|
1075
1086
|
})
|
|
1076
1087
|
}) : null,
|
|
1077
1088
|
/* @__PURE__ */ jsx("div", {
|
|
1078
|
-
className:
|
|
1089
|
+
className: modalPanelClass,
|
|
1079
1090
|
onClick: function(e) {
|
|
1080
1091
|
return e.stopPropagation();
|
|
1081
1092
|
},
|
|
1082
|
-
style:
|
|
1083
|
-
maxHeight: "calc(100vh - 6rem)"
|
|
1084
|
-
}, style),
|
|
1093
|
+
style: modalPanelStyle,
|
|
1085
1094
|
children: /* @__PURE__ */ jsx("div", {
|
|
1086
|
-
className:
|
|
1095
|
+
className: innerPaddingClass,
|
|
1087
1096
|
children: /* @__PURE__ */ jsx("div", {
|
|
1088
|
-
className:
|
|
1097
|
+
className: contentMarginTopClass,
|
|
1089
1098
|
children: children
|
|
1090
1099
|
})
|
|
1091
1100
|
})
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "evelearn-theme",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.36",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/eve-learn/evelearn-theme"
|
|
10
|
+
},
|
|
7
11
|
"scripts": {
|
|
8
12
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
9
13
|
"pub": "npm publish --access public"
|