evelearn-theme 2.0.0 → 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 +218 -63
- package/dist/index.d.ts +218 -63
- package/dist/index.js +1323 -0
- package/dist/index.mjs +1271 -167
- 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 +4 -4
|
@@ -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,88 +1,243 @@
|
|
|
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
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { CSSProperties, ReactNode } from 'react';
|
|
2
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import { Placement } from '@floating-ui/react';
|
|
3
6
|
|
|
4
|
-
|
|
7
|
+
interface BaseModalProps {
|
|
8
|
+
visible: boolean;
|
|
9
|
+
children: React__default.ReactNode;
|
|
10
|
+
appear?: boolean;
|
|
11
|
+
dismissable?: boolean;
|
|
12
|
+
dismissOnBackdropClick?: boolean;
|
|
13
|
+
onDismissed?: () => void;
|
|
14
|
+
style?: CSSProperties;
|
|
15
|
+
fullscreen?: boolean;
|
|
16
|
+
dismissLink?: string;
|
|
17
|
+
bgOpacity?: number;
|
|
18
|
+
displayDark?: boolean;
|
|
19
|
+
}
|
|
20
|
+
type ModalProps = BaseModalProps;
|
|
21
|
+
declare const Modal: ({ visible, children, fullscreen, displayDark, dismissLink, bgOpacity, onDismissed, dismissable, dismissOnBackdropClick, style, ...props }: ModalProps) => react_jsx_runtime.JSX.Element | null;
|
|
5
22
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
onClick?: () => void;
|
|
23
|
+
type OverlayProps = BaseModalProps & {
|
|
24
|
+
children?: React__default.ReactNode;
|
|
25
|
+
withContainer?: boolean;
|
|
26
|
+
opacity?: number;
|
|
11
27
|
isDark?: boolean;
|
|
12
|
-
|
|
28
|
+
zIndex?: number;
|
|
29
|
+
onClick?: () => void;
|
|
30
|
+
};
|
|
31
|
+
declare const Overlay: ({ visible, onDismissed, onClick, zIndex, isDark, children, opacity, withContainer, }: OverlayProps) => React__default.ReactPortal | null;
|
|
32
|
+
|
|
33
|
+
interface Props$c {
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
kind?: 'primary' | 'secondary' | 'base' | 'warning' | 'alert' | 'gray' | 'green' | 'teal' | 'indigo';
|
|
36
|
+
size?: 'small' | 'fixed' | 'large';
|
|
37
|
+
type?: 'button' | 'submit';
|
|
38
|
+
loading?: boolean;
|
|
39
|
+
children: React__default.ReactNode;
|
|
40
|
+
onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
13
41
|
}
|
|
14
|
-
declare const
|
|
42
|
+
declare const Button: ({ disabled, loading, onClick, kind, size, type, children }: Props$c) => react_jsx_runtime.JSX.Element;
|
|
15
43
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
declare const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
44
|
+
interface Props$b {
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
color?: 'primary' | 'red' | 'green' | 'purple' | 'teal' | 'yellow' | 'cyan';
|
|
47
|
+
type?: 'button' | 'submit';
|
|
48
|
+
active?: boolean;
|
|
49
|
+
children: React__default.ReactNode;
|
|
50
|
+
loading?: boolean;
|
|
51
|
+
className?: string;
|
|
52
|
+
size?: 'big' | 'base' | 'small' | 'square';
|
|
53
|
+
onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
54
|
+
}
|
|
55
|
+
declare const FunButton: React__default.FC<Props$b>;
|
|
56
|
+
|
|
57
|
+
interface Props$a {
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
color?: 'primary' | 'red' | 'green' | 'purple' | 'teal' | 'yellow';
|
|
60
|
+
type?: 'button' | 'submit';
|
|
61
|
+
active?: boolean;
|
|
62
|
+
children: React__default.ReactNode;
|
|
63
|
+
className?: string;
|
|
64
|
+
size?: number;
|
|
65
|
+
onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
66
|
+
}
|
|
67
|
+
declare const FunRoundButton: ({ onClick, disabled, type, children, color, active, className, size }: Props$a) => react_jsx_runtime.JSX.Element;
|
|
68
|
+
|
|
69
|
+
type Props$9 = {
|
|
70
|
+
name: string;
|
|
71
|
+
labelText: React__default.ReactNode;
|
|
72
|
+
onChange?: (value: boolean) => void;
|
|
73
|
+
isLarge?: boolean;
|
|
74
|
+
isDisabled?: boolean;
|
|
75
|
+
};
|
|
76
|
+
declare const Checkbox: {
|
|
77
|
+
({ name, labelText, isLarge, onChange, isDisabled }: Props$9): react_jsx_runtime.JSX.Element;
|
|
78
|
+
Multi: ({ name, hasMultipleAnswers, index, isLarge, allOptionsName }: MultiChoiceCheckBoxProps) => react_jsx_runtime.JSX.Element;
|
|
79
|
+
};
|
|
80
|
+
type MultiChoiceCheckBoxProps = {
|
|
81
|
+
name: string;
|
|
82
|
+
allOptionsName: string;
|
|
83
|
+
hasMultipleAnswers: boolean;
|
|
84
|
+
index: number;
|
|
85
|
+
isLarge?: boolean;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
type Props$8 = {
|
|
89
|
+
name: string;
|
|
90
|
+
isLarge?: boolean;
|
|
91
|
+
labelText?: string;
|
|
92
|
+
option: string;
|
|
93
|
+
onSelect?: () => void;
|
|
94
|
+
};
|
|
95
|
+
declare const RadioOption: ({ name, isLarge, labelText, option, onSelect }: Props$8) => react_jsx_runtime.JSX.Element;
|
|
96
|
+
|
|
97
|
+
interface Props$7 {
|
|
98
|
+
title: string;
|
|
99
|
+
cancelText?: string;
|
|
100
|
+
isVisible: boolean;
|
|
101
|
+
confirmText?: string;
|
|
102
|
+
isSingleAction?: boolean;
|
|
103
|
+
setDontShowAgain?: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
104
|
+
dontShowAgain?: boolean;
|
|
105
|
+
borderColor?: string;
|
|
106
|
+
buttonColor?: 'base' | 'primary' | 'secondary' | 'warning' | 'alert' | 'gray' | undefined;
|
|
107
|
+
onConfirm: (confirmed: boolean) => void;
|
|
108
|
+
onDismissed?: () => void;
|
|
109
|
+
onCancel?: () => void;
|
|
37
110
|
isDark?: boolean;
|
|
111
|
+
children?: React__default.ReactNode;
|
|
38
112
|
}
|
|
39
|
-
declare const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
113
|
+
declare const BAWrapper: React__default.FC<Props$7>;
|
|
114
|
+
|
|
115
|
+
type IconInfoProps = {
|
|
116
|
+
content: string;
|
|
117
|
+
icon: React.ReactNode;
|
|
118
|
+
number: number;
|
|
119
|
+
color?: string;
|
|
46
120
|
};
|
|
121
|
+
declare const IconInfo: ({ content, icon, number, color }: IconInfoProps) => react_jsx_runtime.JSX.Element;
|
|
47
122
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
123
|
+
interface Props$6 {
|
|
124
|
+
type?: 'error' | 'warning' | 'info';
|
|
125
|
+
isDismissible?: boolean;
|
|
126
|
+
onDismiss?: () => void;
|
|
127
|
+
isVisible: boolean;
|
|
128
|
+
}
|
|
129
|
+
declare const NoticeBox: React__default.FC<Props$6 & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
130
|
+
|
|
131
|
+
type Props$5 = {
|
|
132
|
+
avgRating: number;
|
|
133
|
+
large?: boolean;
|
|
134
|
+
};
|
|
135
|
+
declare const RatingStars: ({ avgRating, large }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
137
|
+
interface SliderProps {
|
|
138
|
+
min: number;
|
|
139
|
+
max: number;
|
|
140
|
+
step: number;
|
|
141
|
+
value: number;
|
|
142
|
+
sliderColor?: string;
|
|
143
|
+
onChange: (value: number) => void;
|
|
144
|
+
}
|
|
145
|
+
declare const Slider: {
|
|
146
|
+
({ min, max, step, value, onChange }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
147
|
+
Debounced: ({ min, max, handleUpdate, initialValue }: DebouncedSliderProps) => react_jsx_runtime.JSX.Element;
|
|
148
|
+
};
|
|
149
|
+
type DebouncedSliderProps = {
|
|
150
|
+
min: number;
|
|
151
|
+
max: number;
|
|
152
|
+
handleUpdate: (n: number) => void;
|
|
153
|
+
initialValue: number;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
interface TippyProps {
|
|
157
|
+
children: ReactNode;
|
|
158
|
+
content: ReactNode;
|
|
159
|
+
placement?: Placement;
|
|
160
|
+
className?: string;
|
|
161
|
+
disabled?: boolean;
|
|
162
|
+
arrow?: boolean;
|
|
163
|
+
visible?: boolean;
|
|
164
|
+
wrapperClassname?: string;
|
|
165
|
+
}
|
|
166
|
+
declare const Tippy: ({ children, content, placement, className, wrapperClassname, disabled, arrow: useArrow, visible }: TippyProps) => react_jsx_runtime.JSX.Element;
|
|
167
|
+
|
|
168
|
+
type FormikProps = {
|
|
169
|
+
label: string;
|
|
170
|
+
name: string;
|
|
171
|
+
};
|
|
172
|
+
type Props$4 = {
|
|
173
|
+
label: string;
|
|
174
|
+
onChange: (bool: boolean) => void;
|
|
175
|
+
value: boolean;
|
|
51
176
|
};
|
|
52
|
-
declare const
|
|
177
|
+
declare const ToggleSwitch: {
|
|
178
|
+
({ label, onChange, value }: Props$4): react_jsx_runtime.JSX.Element;
|
|
179
|
+
Formik: ({ label, name }: FormikProps) => react_jsx_runtime.JSX.Element;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
type ModeProps = {
|
|
183
|
+
setGalleryMode: React.Dispatch<React.SetStateAction<string>>;
|
|
184
|
+
galleryMode: string;
|
|
185
|
+
title1: string;
|
|
186
|
+
title2: string;
|
|
187
|
+
icon1?: React.ComponentType<React.ComponentProps<"svg">>;
|
|
188
|
+
icon2?: React.ComponentType<React.ComponentProps<"svg">>;
|
|
189
|
+
};
|
|
190
|
+
declare const UserContentSwitcher: ({ icon1: Icon1, icon2: Icon2, setGalleryMode, galleryMode, title1, title2 }: ModeProps) => react_jsx_runtime.JSX.Element;
|
|
53
191
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
192
|
+
type ProgressBarProps = {
|
|
193
|
+
progress: number;
|
|
194
|
+
height?: number;
|
|
195
|
+
backgroundColor?: string;
|
|
196
|
+
color: string;
|
|
197
|
+
};
|
|
198
|
+
declare const ProgressBarSimple: ({ progress, color, height, backgroundColor }: ProgressBarProps) => react_jsx_runtime.JSX.Element;
|
|
57
199
|
|
|
58
|
-
|
|
59
|
-
|
|
200
|
+
declare const ProgressBar: {
|
|
201
|
+
({ progress }: {
|
|
202
|
+
progress: number;
|
|
203
|
+
}): react_jsx_runtime.JSX.Element;
|
|
204
|
+
Step: ({ steps, stepIndex, onStepClick, color }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
60
205
|
};
|
|
206
|
+
type Props$3 = {
|
|
207
|
+
steps: {
|
|
208
|
+
label: string;
|
|
209
|
+
}[];
|
|
210
|
+
stepIndex: number;
|
|
211
|
+
color?: string;
|
|
212
|
+
onStepClick?: (i: number) => void;
|
|
213
|
+
};
|
|
214
|
+
|
|
61
215
|
type Props$2 = {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
216
|
+
twColor?: string;
|
|
217
|
+
percentage: number;
|
|
218
|
+
radius: number;
|
|
219
|
+
fill?: string;
|
|
220
|
+
strokeWidth?: number;
|
|
65
221
|
};
|
|
66
|
-
declare const
|
|
222
|
+
declare const CircleProgress: ({ twColor, percentage, radius, fill, strokeWidth }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
67
223
|
|
|
68
224
|
type Props$1 = {
|
|
69
|
-
|
|
70
|
-
|
|
225
|
+
twColor?: string;
|
|
226
|
+
percentage: number;
|
|
227
|
+
label: string;
|
|
228
|
+
};
|
|
229
|
+
declare const CourseProgress: {
|
|
230
|
+
({ twColor, percentage, label }: Props$1): react_jsx_runtime.JSX.Element;
|
|
231
|
+
Small: ({ twColor, percentage, label }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
71
232
|
};
|
|
72
|
-
|
|
233
|
+
|
|
234
|
+
declare const ScrollProgress: () => react_jsx_runtime.JSX.Element;
|
|
73
235
|
|
|
74
236
|
type Props = {
|
|
75
237
|
visible: boolean;
|
|
76
|
-
onClick: () => void;
|
|
77
|
-
opacity?: number;
|
|
78
238
|
};
|
|
79
|
-
declare const
|
|
239
|
+
declare const OverlaySpinner: ({ visible }: Props) => React$1.ReactPortal | null;
|
|
80
240
|
|
|
81
|
-
|
|
82
|
-
declare const Breakpoint: React.FC<{
|
|
83
|
-
fromSize?: Point;
|
|
84
|
-
toSize?: Point;
|
|
85
|
-
children: React.ReactNode;
|
|
86
|
-
}>;
|
|
241
|
+
declare const AnimateLogo: () => react_jsx_runtime.JSX.Element;
|
|
87
242
|
|
|
88
|
-
export {
|
|
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 };
|