evelearn-theme 1.0.6 → 2.0.1
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/chunk-XLPRFXMF.mjs +248 -0
- package/dist/index.d.mts +21 -104
- package/dist/index.d.ts +21 -104
- package/dist/index.js +277 -279
- package/dist/index.mjs +174 -375
- package/dist/server.d.mts +88 -0
- package/dist/server.d.ts +88 -0
- package/dist/server.js +271 -0
- package/dist/server.mjs +42 -0
- package/package.json +11 -2
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// src/constants.tsx
|
|
34
|
+
var PRIMARY_COLOR = "#00b4d8";
|
|
35
|
+
|
|
36
|
+
// src/Common/Container.tsx
|
|
37
|
+
import { jsx } from "react/jsx-runtime";
|
|
38
|
+
var Container = ({ backgroundImage, style, children, onClick }) => {
|
|
39
|
+
return backgroundImage ? /* @__PURE__ */ jsx(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
style: __spreadValues({
|
|
43
|
+
backgroundImage,
|
|
44
|
+
backgroundSize: "cover"
|
|
45
|
+
}, style),
|
|
46
|
+
className: "w-full md:min-h-screen dark:bg-slate-950 mx-auto overflow-y-auto overflow-x-clip px-0 md:px-2 sm:py-4 py-1 relative",
|
|
47
|
+
onClick,
|
|
48
|
+
children: children ? children : null
|
|
49
|
+
}
|
|
50
|
+
) : /* @__PURE__ */ jsx(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
className: `w-full dark:bg-slate-950 mx-auto overflow-y-auto overflow-x-clip px-0 sm:px-16 relative pt-20`,
|
|
54
|
+
onClick,
|
|
55
|
+
style: style || { minHeight: "100vh" },
|
|
56
|
+
children: children ? children : null
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
var Container_default = Container;
|
|
61
|
+
|
|
62
|
+
// src/Common/ErrorText.tsx
|
|
63
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
64
|
+
var ErrorText = ({ text, style, classNames }) => {
|
|
65
|
+
return /* @__PURE__ */ jsx2("p", { className: classNames ? classNames : "text-red-500 font-semibold text-wrap py-auto", style, children: text });
|
|
66
|
+
};
|
|
67
|
+
var ErrorText_default = ErrorText;
|
|
68
|
+
|
|
69
|
+
// src/Common/fieldStyle.ts
|
|
70
|
+
var baseFieldStyle = "font-sans form-input h-11 w-full bg-white border-gray-200 dark:border-gray-500 dark:bg-slate-800 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";
|
|
71
|
+
var createExerciseElementStyle = "flex flex-col justify-between space-y-2 w-full p-4 bg-white dark:bg-slate-800 rounded-xl text-gray-800 dark:text-gray-200 border-2 border-slate-200 dark:border-slate-400 overflow-hidden transition-all";
|
|
72
|
+
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";
|
|
73
|
+
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";
|
|
74
|
+
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";
|
|
75
|
+
var tippyClassname = "p-2 bg-slate-600 dark:bg-slate-900 opacity-90 text-white font-medium font-header rounded-lg";
|
|
76
|
+
var headerTippyClass = "rounded-lg p-2 bg-slate-950 opacity-95 text-white font-medium";
|
|
77
|
+
var headerButtonClass = "w-10 h-10 rounded-full dark:hover:bg-slate-600 hover:bg-slate-200 bg-transparent flex justify-center items-center flex justify-center items-center text-slate-600 dark:text-slate-100 hover:text-primary dark:hover:text-primary transition-colors duration-50";
|
|
78
|
+
var toolbarExerciseButton = "flex bg-gray-50/90 items-center sm:justify-between p-4 shadow-sm w-full rounded-xl border-4 border-transparent hover:border-white text-gray-700 hover:text-white hover:bg-indigo-500 transition-colors duration-75";
|
|
79
|
+
|
|
80
|
+
// src/Spinners/Spinner.tsx
|
|
81
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
82
|
+
var Spinner = ({ visible = true, size, white, isDark }) => {
|
|
83
|
+
if (visible === false) return null;
|
|
84
|
+
const isWhite = white || isDark;
|
|
85
|
+
const color = isWhite ? "stroke-white/90" : "stroke-slate-600/80";
|
|
86
|
+
const bgColor = isWhite ? "stroke-white/20" : "stroke-slate-500/20";
|
|
87
|
+
const dimensions = size === "small" ? "w-5 h-5" : "w-8 h-8";
|
|
88
|
+
const spinnerClasses = `
|
|
89
|
+
absolute
|
|
90
|
+
top-0
|
|
91
|
+
animate-spin
|
|
92
|
+
${dimensions}
|
|
93
|
+
`;
|
|
94
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative h-8 w-8 flex justify-center items-center", children: [
|
|
95
|
+
/* @__PURE__ */ jsx3(
|
|
96
|
+
"svg",
|
|
97
|
+
{
|
|
98
|
+
className: `absolute top-0 ${dimensions} ${bgColor}`,
|
|
99
|
+
viewBox: "0 0 24 24",
|
|
100
|
+
fill: "none",
|
|
101
|
+
strokeWidth: "2.4",
|
|
102
|
+
children: /* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "10" })
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ jsx3(
|
|
106
|
+
"svg",
|
|
107
|
+
{
|
|
108
|
+
className: spinnerClasses,
|
|
109
|
+
viewBox: "0 0 24 24",
|
|
110
|
+
fill: "none",
|
|
111
|
+
strokeWidth: "2.4",
|
|
112
|
+
strokeLinecap: "round",
|
|
113
|
+
children: /* @__PURE__ */ jsx3(
|
|
114
|
+
"path",
|
|
115
|
+
{
|
|
116
|
+
d: `
|
|
117
|
+
M 12 2
|
|
118
|
+
A 10 10 0 0 1 22 12
|
|
119
|
+
A 10 10 0 0 1 12 22
|
|
120
|
+
A 10 10 0 0 1 2 12
|
|
121
|
+
A 10 10 0 0 1 12 2
|
|
122
|
+
`,
|
|
123
|
+
strokeDasharray: "13 18.4",
|
|
124
|
+
stroke: "inherit",
|
|
125
|
+
className: color
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
] });
|
|
131
|
+
};
|
|
132
|
+
var SpinnerCentered = (props) => {
|
|
133
|
+
if (props.visible === false) return null;
|
|
134
|
+
return /* @__PURE__ */ jsx3("div", { className: "w-full flex justify-center items-center", children: /* @__PURE__ */ jsx3(Spinner, __spreadValues({}, props)) });
|
|
135
|
+
};
|
|
136
|
+
Spinner.displayName = "Spinner";
|
|
137
|
+
SpinnerCentered.displayName = "Spinner.Centered";
|
|
138
|
+
Spinner.Centered = SpinnerCentered;
|
|
139
|
+
var Spinner_default = Spinner;
|
|
140
|
+
|
|
141
|
+
// src/Common/NoResults.tsx
|
|
142
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
143
|
+
var HEIGHT = 160;
|
|
144
|
+
var WIDTH = HEIGHT * (16 / 9);
|
|
145
|
+
var NoResults = ({ loading, message }) => {
|
|
146
|
+
return /* @__PURE__ */ jsxs2("div", { className: "relative w-full flex justify-center items-center", children: [
|
|
147
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex justify-start w-full space-x-2 py-3 p-4 bg-slate-100 dark:bg-slate-800 rounded-md", children: [
|
|
148
|
+
/* @__PURE__ */ jsx4("div", { style: { width: `calc(${WIDTH}px + 1rem)`, height: 320 }, className: "rounded-lg overflow-hidden cursor-pointer hover:shadow-md transition-shadow duration-150 px-2 pt-2 bg-slate-200 dark:bg-slate-700 animate-pulse" }),
|
|
149
|
+
/* @__PURE__ */ jsx4("div", { style: { width: `calc(${WIDTH}px + 1rem)`, height: 320 }, className: "rounded-lg overflow-hidden cursor-pointer hover:shadow-md transition-shadow duration-150 px-2 pt-2 bg-slate-200 dark:bg-slate-700 animate-pulse" })
|
|
150
|
+
] }),
|
|
151
|
+
!loading && /* @__PURE__ */ jsx4("div", { className: "absolute w-full h-full flex justify-center items-center m-auto", children: /* @__PURE__ */ jsx4("div", { className: "p-4 rounded-lg bg-white dark:bg-slate-700 shadow-xl", children: /* @__PURE__ */ jsx4("p", { className: "font-semibold text-lg text-gray-700 dark:text-gray-300", children: message || "No results" }) }) })
|
|
152
|
+
] });
|
|
153
|
+
};
|
|
154
|
+
var NoResults_default = NoResults;
|
|
155
|
+
|
|
156
|
+
// src/Common/Pill.tsx
|
|
157
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
158
|
+
var Pill = ({ text }) => {
|
|
159
|
+
return /* @__PURE__ */ jsx5("span", { className: "rounded-full px-3 py-1 text-sm font-header font-medium bg-white dark:bg-slate-900 text-gray-700 dark:text-gray-300 mr-2 mb-2", children: text });
|
|
160
|
+
};
|
|
161
|
+
var Pill_default = Pill;
|
|
162
|
+
|
|
163
|
+
// src/Common/StepsComponent.tsx
|
|
164
|
+
import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
165
|
+
var StepsComponent = ({ steps, activeStep, onStepPress }) => {
|
|
166
|
+
return /* @__PURE__ */ jsx6("div", { className: "flex justify-between items-center w-full p-1 mb-2", children: steps.map((step, index) => {
|
|
167
|
+
return /* @__PURE__ */ jsx6("div", { className: "flex justify-center items-center space-x-2 w-full", children: /* @__PURE__ */ jsx6("div", { className: "flex flex-col items-center", children: /* @__PURE__ */ jsx6(
|
|
168
|
+
"button",
|
|
169
|
+
{
|
|
170
|
+
type: "button",
|
|
171
|
+
onClick: () => onStepPress(index),
|
|
172
|
+
className: `flex items-center space-x-2 px-4 py-2 rounded-lg min-w-10 md:min-w-20 sm:min-w-40 font-header transition-all duration-150
|
|
173
|
+
${activeStep === index ? "bg-primary text-white shadow-lg scale-110 border-2 border-primary" : "bg-gray-100 dark:bg-slate-800 text-gray-700 dark:text-gray-200 hover:bg-gray-200 dark:hover:bg-slate-700 border-2 border-transparent hover:border-primary/30"}`,
|
|
174
|
+
children: /* @__PURE__ */ jsxs3("span", { className: "font-medium truncate", children: [
|
|
175
|
+
index + 1,
|
|
176
|
+
". ",
|
|
177
|
+
step.label
|
|
178
|
+
] })
|
|
179
|
+
}
|
|
180
|
+
) }) }, `step_${index}_${step.label}`);
|
|
181
|
+
}) });
|
|
182
|
+
};
|
|
183
|
+
var StepsComponent_default = StepsComponent;
|
|
184
|
+
|
|
185
|
+
// src/Fade/Fade.tsx
|
|
186
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
187
|
+
var Fade = ({ children, inProp }) => {
|
|
188
|
+
return /* @__PURE__ */ jsx7("div", { className: "animate-fade-in", children });
|
|
189
|
+
};
|
|
190
|
+
var Fade_default = Fade;
|
|
191
|
+
|
|
192
|
+
// src/Backdrop/Backdrop.tsx
|
|
193
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
194
|
+
var Backdrop = ({ visible, onClick, opacity }) => {
|
|
195
|
+
if (!visible) return null;
|
|
196
|
+
return /* @__PURE__ */ jsx8(
|
|
197
|
+
"div",
|
|
198
|
+
{
|
|
199
|
+
style: {
|
|
200
|
+
opacity: opacity ? opacity : 90,
|
|
201
|
+
zIndex: 21
|
|
202
|
+
},
|
|
203
|
+
className: `fixed top-0 left-0 w-full h-screen bg-gray-100 dark:bg-slate-900`,
|
|
204
|
+
onClick
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
};
|
|
208
|
+
var Backdrop_default = Backdrop;
|
|
209
|
+
|
|
210
|
+
// src/Breakpoint/Breakpoint.tsx
|
|
211
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
212
|
+
var Breakpoint = ({ children, fromSize, toSize }) => {
|
|
213
|
+
let className = "";
|
|
214
|
+
if (fromSize && toSize) {
|
|
215
|
+
className = `hidden ${fromSize}:block ${toSize}:hidden`;
|
|
216
|
+
} else if (fromSize) {
|
|
217
|
+
className = `hidden ${fromSize}:block`;
|
|
218
|
+
} else if (toSize) {
|
|
219
|
+
className = `block ${toSize}:hidden`;
|
|
220
|
+
}
|
|
221
|
+
return /* @__PURE__ */ jsx9("div", { className, children });
|
|
222
|
+
};
|
|
223
|
+
var Breakpoint_default = Breakpoint;
|
|
224
|
+
|
|
225
|
+
export {
|
|
226
|
+
__spreadValues,
|
|
227
|
+
__spreadProps,
|
|
228
|
+
__objRest,
|
|
229
|
+
PRIMARY_COLOR,
|
|
230
|
+
Container_default,
|
|
231
|
+
ErrorText_default,
|
|
232
|
+
baseFieldStyle,
|
|
233
|
+
createExerciseElementStyle,
|
|
234
|
+
exerciseDeleteButton,
|
|
235
|
+
xIconButton,
|
|
236
|
+
exerciseEditButton,
|
|
237
|
+
tippyClassname,
|
|
238
|
+
headerTippyClass,
|
|
239
|
+
headerButtonClass,
|
|
240
|
+
toolbarExerciseButton,
|
|
241
|
+
Spinner_default,
|
|
242
|
+
NoResults_default,
|
|
243
|
+
Pill_default,
|
|
244
|
+
StepsComponent_default,
|
|
245
|
+
Fade_default,
|
|
246
|
+
Backdrop_default,
|
|
247
|
+
Breakpoint_default
|
|
248
|
+
};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
export { Backdrop, Breakpoint, Container, ErrorText, Fade, NoResults, PRIMARY_COLOR, Pill, Spinner, StepsComponent, baseFieldStyle, createExerciseElementStyle, exerciseDeleteButton, exerciseEditButton, headerButtonClass, headerTippyClass, tippyClassname, toolbarExerciseButton, xIconButton } from './server.mjs';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { CSSProperties, ReactNode } from 'react';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
5
|
import { Placement } from '@floating-ui/react';
|
|
5
6
|
|
|
6
|
-
type Props$h = {
|
|
7
|
-
visible: boolean;
|
|
8
|
-
onClick: () => void;
|
|
9
|
-
opacity?: number;
|
|
10
|
-
};
|
|
11
|
-
declare const Backdrop: ({ visible, onClick, opacity }: Props$h) => react_jsx_runtime.JSX.Element | null;
|
|
12
|
-
|
|
13
7
|
interface BaseModalProps {
|
|
14
8
|
visible: boolean;
|
|
15
9
|
children: React__default.ReactNode;
|
|
@@ -36,14 +30,7 @@ type OverlayProps = BaseModalProps & {
|
|
|
36
30
|
};
|
|
37
31
|
declare const Overlay: ({ visible, onDismissed, onClick, zIndex, isDark, children, opacity, withContainer, }: OverlayProps) => React__default.ReactPortal | null;
|
|
38
32
|
|
|
39
|
-
|
|
40
|
-
declare const Breakpoint: React__default.FC<{
|
|
41
|
-
fromSize?: Point;
|
|
42
|
-
toSize?: Point;
|
|
43
|
-
children: React__default.ReactNode;
|
|
44
|
-
}>;
|
|
45
|
-
|
|
46
|
-
interface Props$g {
|
|
33
|
+
interface Props$c {
|
|
47
34
|
disabled?: boolean;
|
|
48
35
|
kind?: 'primary' | 'secondary' | 'base' | 'warning' | 'alert' | 'gray' | 'green' | 'teal' | 'indigo';
|
|
49
36
|
size?: 'small' | 'fixed' | 'large';
|
|
@@ -52,9 +39,9 @@ interface Props$g {
|
|
|
52
39
|
children: React__default.ReactNode;
|
|
53
40
|
onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
54
41
|
}
|
|
55
|
-
declare const Button: ({ disabled, loading, onClick, kind, size, type, children }: Props$
|
|
42
|
+
declare const Button: ({ disabled, loading, onClick, kind, size, type, children }: Props$c) => react_jsx_runtime.JSX.Element;
|
|
56
43
|
|
|
57
|
-
interface Props$
|
|
44
|
+
interface Props$b {
|
|
58
45
|
disabled?: boolean;
|
|
59
46
|
color?: 'primary' | 'red' | 'green' | 'purple' | 'teal' | 'yellow' | 'cyan';
|
|
60
47
|
type?: 'button' | 'submit';
|
|
@@ -65,9 +52,9 @@ interface Props$f {
|
|
|
65
52
|
size?: 'big' | 'base' | 'small' | 'square';
|
|
66
53
|
onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
67
54
|
}
|
|
68
|
-
declare const FunButton: React__default.FC<Props$
|
|
55
|
+
declare const FunButton: React__default.FC<Props$b>;
|
|
69
56
|
|
|
70
|
-
interface Props$
|
|
57
|
+
interface Props$a {
|
|
71
58
|
disabled?: boolean;
|
|
72
59
|
color?: 'primary' | 'red' | 'green' | 'purple' | 'teal' | 'yellow';
|
|
73
60
|
type?: 'button' | 'submit';
|
|
@@ -77,9 +64,9 @@ interface Props$e {
|
|
|
77
64
|
size?: number;
|
|
78
65
|
onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
79
66
|
}
|
|
80
|
-
declare const FunRoundButton: ({ onClick, disabled, type, children, color, active, className, size }: Props$
|
|
67
|
+
declare const FunRoundButton: ({ onClick, disabled, type, children, color, active, className, size }: Props$a) => react_jsx_runtime.JSX.Element;
|
|
81
68
|
|
|
82
|
-
type Props$
|
|
69
|
+
type Props$9 = {
|
|
83
70
|
name: string;
|
|
84
71
|
labelText: React__default.ReactNode;
|
|
85
72
|
onChange?: (value: boolean) => void;
|
|
@@ -87,7 +74,7 @@ type Props$d = {
|
|
|
87
74
|
isDisabled?: boolean;
|
|
88
75
|
};
|
|
89
76
|
declare const Checkbox: {
|
|
90
|
-
({ name, labelText, isLarge, onChange, isDisabled }: Props$
|
|
77
|
+
({ name, labelText, isLarge, onChange, isDisabled }: Props$9): react_jsx_runtime.JSX.Element;
|
|
91
78
|
Multi: ({ name, hasMultipleAnswers, index, isLarge, allOptionsName }: MultiChoiceCheckBoxProps) => react_jsx_runtime.JSX.Element;
|
|
92
79
|
};
|
|
93
80
|
type MultiChoiceCheckBoxProps = {
|
|
@@ -98,16 +85,16 @@ type MultiChoiceCheckBoxProps = {
|
|
|
98
85
|
isLarge?: boolean;
|
|
99
86
|
};
|
|
100
87
|
|
|
101
|
-
type Props$
|
|
88
|
+
type Props$8 = {
|
|
102
89
|
name: string;
|
|
103
90
|
isLarge?: boolean;
|
|
104
91
|
labelText?: string;
|
|
105
92
|
option: string;
|
|
106
93
|
onSelect?: () => void;
|
|
107
94
|
};
|
|
108
|
-
declare const RadioOption: ({ name, isLarge, labelText, option, onSelect }: Props$
|
|
95
|
+
declare const RadioOption: ({ name, isLarge, labelText, option, onSelect }: Props$8) => react_jsx_runtime.JSX.Element;
|
|
109
96
|
|
|
110
|
-
interface Props$
|
|
97
|
+
interface Props$7 {
|
|
111
98
|
title: string;
|
|
112
99
|
cancelText?: string;
|
|
113
100
|
isVisible: boolean;
|
|
@@ -123,34 +110,7 @@ interface Props$b {
|
|
|
123
110
|
isDark?: boolean;
|
|
124
111
|
children?: React__default.ReactNode;
|
|
125
112
|
}
|
|
126
|
-
declare const BAWrapper: React__default.FC<Props$
|
|
127
|
-
|
|
128
|
-
interface ContainerProps {
|
|
129
|
-
backgroundColor?: string;
|
|
130
|
-
backgroundImage?: string;
|
|
131
|
-
style?: React__default.CSSProperties;
|
|
132
|
-
onClick?: () => void;
|
|
133
|
-
isDark?: boolean;
|
|
134
|
-
children?: React__default.ReactNode;
|
|
135
|
-
}
|
|
136
|
-
declare const Container: React__default.FC<ContainerProps>;
|
|
137
|
-
|
|
138
|
-
type Props$a = {
|
|
139
|
-
text: string;
|
|
140
|
-
style?: CSSProperties | undefined;
|
|
141
|
-
classNames?: string;
|
|
142
|
-
};
|
|
143
|
-
declare const ErrorText: ({ text, style, classNames }: Props$a) => react_jsx_runtime.JSX.Element;
|
|
144
|
-
|
|
145
|
-
declare const baseFieldStyle = "font-sans form-input h-11 w-full bg-white border-gray-200 dark:border-gray-500 dark:bg-slate-800 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";
|
|
146
|
-
declare const createExerciseElementStyle = "flex flex-col justify-between space-y-2 w-full p-4 bg-white dark:bg-slate-800 rounded-xl text-gray-800 dark:text-gray-200 border-2 border-slate-200 dark:border-slate-400 overflow-hidden transition-all";
|
|
147
|
-
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";
|
|
148
|
-
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";
|
|
149
|
-
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";
|
|
150
|
-
declare const tippyClassname = "p-2 bg-slate-600 dark:bg-slate-900 opacity-90 text-white font-medium font-header rounded-lg";
|
|
151
|
-
declare const headerTippyClass = "rounded-lg p-2 bg-slate-950 opacity-95 text-white font-medium";
|
|
152
|
-
declare const headerButtonClass = "w-10 h-10 rounded-full dark:hover:bg-slate-600 hover:bg-slate-200 bg-transparent flex justify-center items-center flex justify-center items-center text-slate-600 dark:text-slate-100 hover:text-primary dark:hover:text-primary transition-colors duration-50";
|
|
153
|
-
declare const toolbarExerciseButton = "flex bg-gray-50/90 items-center sm:justify-between p-4 shadow-sm w-full rounded-xl border-4 border-transparent hover:border-white text-gray-700 hover:text-white hover:bg-indigo-500 transition-colors duration-75";
|
|
113
|
+
declare const BAWrapper: React__default.FC<Props$7>;
|
|
154
114
|
|
|
155
115
|
type IconInfoProps = {
|
|
156
116
|
content: string;
|
|
@@ -160,29 +120,19 @@ type IconInfoProps = {
|
|
|
160
120
|
};
|
|
161
121
|
declare const IconInfo: ({ content, icon, number, color }: IconInfoProps) => react_jsx_runtime.JSX.Element;
|
|
162
122
|
|
|
163
|
-
|
|
164
|
-
loading: boolean;
|
|
165
|
-
message?: string;
|
|
166
|
-
};
|
|
167
|
-
declare const NoResults: ({ loading, message }: Props$9) => react_jsx_runtime.JSX.Element;
|
|
168
|
-
|
|
169
|
-
interface Props$8 {
|
|
123
|
+
interface Props$6 {
|
|
170
124
|
type?: 'error' | 'warning' | 'info';
|
|
171
125
|
isDismissible?: boolean;
|
|
172
126
|
onDismiss?: () => void;
|
|
173
127
|
isVisible: boolean;
|
|
174
128
|
}
|
|
175
|
-
declare const NoticeBox: React__default.FC<Props$
|
|
129
|
+
declare const NoticeBox: React__default.FC<Props$6 & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
176
130
|
|
|
177
|
-
|
|
178
|
-
text: string;
|
|
179
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
180
|
-
|
|
181
|
-
type Props$7 = {
|
|
131
|
+
type Props$5 = {
|
|
182
132
|
avgRating: number;
|
|
183
133
|
large?: boolean;
|
|
184
134
|
};
|
|
185
|
-
declare const RatingStars: ({ avgRating, large }: Props$
|
|
135
|
+
declare const RatingStars: ({ avgRating, large }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
186
136
|
|
|
187
137
|
interface SliderProps {
|
|
188
138
|
min: number;
|
|
@@ -203,16 +153,6 @@ type DebouncedSliderProps = {
|
|
|
203
153
|
initialValue: number;
|
|
204
154
|
};
|
|
205
155
|
|
|
206
|
-
type Step = {
|
|
207
|
-
label: ReactNode;
|
|
208
|
-
};
|
|
209
|
-
type Props$6 = {
|
|
210
|
-
steps: Step[];
|
|
211
|
-
activeStep: number;
|
|
212
|
-
onStepPress: (s: number) => void;
|
|
213
|
-
};
|
|
214
|
-
declare const StepsComponent: ({ steps, activeStep, onStepPress }: Props$6) => react_jsx_runtime.JSX.Element;
|
|
215
|
-
|
|
216
156
|
interface TippyProps {
|
|
217
157
|
children: ReactNode;
|
|
218
158
|
content: ReactNode;
|
|
@@ -229,13 +169,13 @@ type FormikProps = {
|
|
|
229
169
|
label: string;
|
|
230
170
|
name: string;
|
|
231
171
|
};
|
|
232
|
-
type Props$
|
|
172
|
+
type Props$4 = {
|
|
233
173
|
label: string;
|
|
234
174
|
onChange: (bool: boolean) => void;
|
|
235
175
|
value: boolean;
|
|
236
176
|
};
|
|
237
177
|
declare const ToggleSwitch: {
|
|
238
|
-
({ label, onChange, value }: Props$
|
|
178
|
+
({ label, onChange, value }: Props$4): react_jsx_runtime.JSX.Element;
|
|
239
179
|
Formik: ({ label, name }: FormikProps) => react_jsx_runtime.JSX.Element;
|
|
240
180
|
};
|
|
241
181
|
|
|
@@ -249,12 +189,6 @@ type ModeProps = {
|
|
|
249
189
|
};
|
|
250
190
|
declare const UserContentSwitcher: ({ icon1: Icon1, icon2: Icon2, setGalleryMode, galleryMode, title1, title2 }: ModeProps) => react_jsx_runtime.JSX.Element;
|
|
251
191
|
|
|
252
|
-
type Props$4 = {
|
|
253
|
-
inProp: boolean;
|
|
254
|
-
children: React__default.ReactNode;
|
|
255
|
-
};
|
|
256
|
-
declare const Fade: ({ children, inProp }: Props$4) => react_jsx_runtime.JSX.Element;
|
|
257
|
-
|
|
258
192
|
type ProgressBarProps = {
|
|
259
193
|
progress: number;
|
|
260
194
|
height?: number;
|
|
@@ -304,23 +238,6 @@ type Props = {
|
|
|
304
238
|
};
|
|
305
239
|
declare const OverlaySpinner: ({ visible }: Props) => React$1.ReactPortal | null;
|
|
306
240
|
|
|
307
|
-
interface SpinnerProps {
|
|
308
|
-
size?: 'base' | 'small';
|
|
309
|
-
white?: boolean | string;
|
|
310
|
-
visible?: boolean | string;
|
|
311
|
-
isDark?: boolean;
|
|
312
|
-
}
|
|
313
|
-
declare const Spinner: {
|
|
314
|
-
({ visible, size, white, isDark }: SpinnerProps): react_jsx_runtime.JSX.Element | null;
|
|
315
|
-
displayName: string;
|
|
316
|
-
Centered: {
|
|
317
|
-
(props: SpinnerProps): react_jsx_runtime.JSX.Element | null;
|
|
318
|
-
displayName: string;
|
|
319
|
-
};
|
|
320
|
-
};
|
|
321
|
-
|
|
322
241
|
declare const AnimateLogo: () => react_jsx_runtime.JSX.Element;
|
|
323
242
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
export { AnimateLogo, Backdrop, BAWrapper as BottomAlert, Breakpoint, Button, Checkbox, CircleProgress, Container, CourseProgress, ErrorText, Fade, FunButton, FunRoundButton, IconInfo, Modal, NoResults, NoticeBox, Overlay, OverlaySpinner, PRIMARY_COLOR, Pill, ProgressBar, ProgressBarSimple, RadioOption, RatingStars, ScrollProgress, Slider, Spinner, StepsComponent, Tippy, ToggleSwitch, UserContentSwitcher, baseFieldStyle, createExerciseElementStyle, exerciseDeleteButton, exerciseEditButton, headerButtonClass, headerTippyClass, tippyClassname, toolbarExerciseButton, xIconButton };
|
|
243
|
+
export { AnimateLogo, BAWrapper as BottomAlert, Button, Checkbox, CircleProgress, CourseProgress, FunButton, FunRoundButton, IconInfo, Modal, NoticeBox, Overlay, OverlaySpinner, ProgressBar, ProgressBarSimple, RadioOption, RatingStars, ScrollProgress, Slider, Tippy, ToggleSwitch, UserContentSwitcher };
|