evelearn-theme 1.0.0
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.d.mts +322 -0
- package/dist/index.d.ts +322 -0
- package/dist/index.js +1549 -0
- package/dist/index.mjs +1484 -0
- package/package.json +39 -0
- package/postcss.config.mjs +6 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { CSSProperties, ReactNode } from 'react';
|
|
4
|
+
import { Placement } from '@floating-ui/react';
|
|
5
|
+
import * as next_dist_compiled__next_font from 'next/dist/compiled/@next/font';
|
|
6
|
+
|
|
7
|
+
type Props$g = {
|
|
8
|
+
visible: boolean;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
opacity?: number;
|
|
11
|
+
};
|
|
12
|
+
declare const Backdrop: ({ visible, onClick, opacity }: Props$g) => react_jsx_runtime.JSX.Element | null;
|
|
13
|
+
|
|
14
|
+
interface BaseModalProps {
|
|
15
|
+
visible: boolean;
|
|
16
|
+
children: React__default.ReactNode;
|
|
17
|
+
appear?: boolean;
|
|
18
|
+
dismissable?: boolean;
|
|
19
|
+
dismissOnBackdropClick?: boolean;
|
|
20
|
+
onDismissed?: () => void;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
fullscreen?: boolean;
|
|
23
|
+
dismissLink?: string;
|
|
24
|
+
bgOpacity?: number;
|
|
25
|
+
displayDark?: boolean;
|
|
26
|
+
}
|
|
27
|
+
type ModalProps = BaseModalProps;
|
|
28
|
+
declare const Modal: ({ visible, children, fullscreen, displayDark, dismissLink, bgOpacity, onDismissed, dismissable, dismissOnBackdropClick, style, ...props }: ModalProps) => react_jsx_runtime.JSX.Element | null;
|
|
29
|
+
|
|
30
|
+
type OverlayProps = BaseModalProps & {
|
|
31
|
+
children?: React__default.ReactNode;
|
|
32
|
+
withContainer?: boolean;
|
|
33
|
+
opacity?: number;
|
|
34
|
+
isDark?: boolean;
|
|
35
|
+
zIndex?: number;
|
|
36
|
+
onClick?: () => void;
|
|
37
|
+
};
|
|
38
|
+
declare const Overlay: ({ visible, onDismissed, onClick, zIndex, isDark, children, opacity, withContainer, }: OverlayProps) => React__default.ReactPortal | null;
|
|
39
|
+
|
|
40
|
+
type Point = 'sm' | 'md' | 'lg' | 'xl';
|
|
41
|
+
declare const Breakpoint: React__default.FC<{
|
|
42
|
+
fromSize?: Point;
|
|
43
|
+
toSize?: Point;
|
|
44
|
+
children: React__default.ReactNode;
|
|
45
|
+
}>;
|
|
46
|
+
|
|
47
|
+
interface Props$f {
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
kind?: 'primary' | 'secondary' | 'base' | 'warning' | 'alert' | 'gray' | 'green' | 'teal' | 'indigo';
|
|
50
|
+
size?: 'small' | 'fixed' | 'large';
|
|
51
|
+
type?: 'button' | 'submit';
|
|
52
|
+
loading?: boolean;
|
|
53
|
+
children: React__default.ReactNode;
|
|
54
|
+
onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
55
|
+
}
|
|
56
|
+
declare const Button: ({ disabled, loading, onClick, kind, size, type, children }: Props$f) => react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
interface Props$e {
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
color?: 'primary' | 'red' | 'green' | 'purple' | 'teal' | 'yellow' | 'cyan';
|
|
61
|
+
type?: 'button' | 'submit';
|
|
62
|
+
active?: boolean;
|
|
63
|
+
children: React__default.ReactNode;
|
|
64
|
+
loading?: boolean;
|
|
65
|
+
className?: string;
|
|
66
|
+
size?: 'big' | 'base' | 'small' | 'square';
|
|
67
|
+
onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
68
|
+
}
|
|
69
|
+
declare const FunButton: React__default.FC<Props$e>;
|
|
70
|
+
|
|
71
|
+
interface Props$d {
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
color?: 'primary' | 'red' | 'green' | 'purple' | 'teal' | 'yellow';
|
|
74
|
+
type?: 'button' | 'submit';
|
|
75
|
+
active?: boolean;
|
|
76
|
+
children: React__default.ReactNode;
|
|
77
|
+
className?: string;
|
|
78
|
+
size?: number;
|
|
79
|
+
onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
80
|
+
}
|
|
81
|
+
declare const FunRoundButton: ({ onClick, disabled, type, children, color, active, className, size }: Props$d) => react_jsx_runtime.JSX.Element;
|
|
82
|
+
|
|
83
|
+
type Props$c = {
|
|
84
|
+
name: string;
|
|
85
|
+
labelText: React__default.ReactNode;
|
|
86
|
+
onChange?: (value: boolean) => void;
|
|
87
|
+
isLarge?: boolean;
|
|
88
|
+
isDisabled?: boolean;
|
|
89
|
+
};
|
|
90
|
+
declare const Checkbox: {
|
|
91
|
+
({ name, labelText, isLarge, onChange, isDisabled }: Props$c): react_jsx_runtime.JSX.Element;
|
|
92
|
+
Multi: ({ name, hasMultipleAnswers, index, isLarge, allOptionsName }: MultiChoiceCheckBoxProps) => react_jsx_runtime.JSX.Element;
|
|
93
|
+
};
|
|
94
|
+
type MultiChoiceCheckBoxProps = {
|
|
95
|
+
name: string;
|
|
96
|
+
allOptionsName: string;
|
|
97
|
+
hasMultipleAnswers: boolean;
|
|
98
|
+
index: number;
|
|
99
|
+
isLarge?: boolean;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
type Props$b = {
|
|
103
|
+
name: string;
|
|
104
|
+
isLarge?: boolean;
|
|
105
|
+
labelText?: string;
|
|
106
|
+
option: string;
|
|
107
|
+
onSelect?: () => void;
|
|
108
|
+
};
|
|
109
|
+
declare const RadioOption: ({ name, isLarge, labelText, option, onSelect }: Props$b) => react_jsx_runtime.JSX.Element;
|
|
110
|
+
|
|
111
|
+
interface Props$a {
|
|
112
|
+
title: string;
|
|
113
|
+
cancelText?: string;
|
|
114
|
+
isVisible: boolean;
|
|
115
|
+
confirmText?: string;
|
|
116
|
+
isSingleAction?: boolean;
|
|
117
|
+
setDontShowAgain?: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
118
|
+
dontShowAgain?: boolean;
|
|
119
|
+
borderColor?: string;
|
|
120
|
+
buttonColor?: 'base' | 'primary' | 'secondary' | 'warning' | 'alert' | 'gray' | undefined;
|
|
121
|
+
onConfirm: (confirmed: boolean) => void;
|
|
122
|
+
onDismissed?: () => void;
|
|
123
|
+
onCancel?: () => void;
|
|
124
|
+
isDark?: boolean;
|
|
125
|
+
children?: React__default.ReactNode;
|
|
126
|
+
}
|
|
127
|
+
declare const BAWrapper: React__default.FC<Props$a>;
|
|
128
|
+
|
|
129
|
+
interface ContainerProps {
|
|
130
|
+
backgroundColor?: string;
|
|
131
|
+
backgroundImage?: string;
|
|
132
|
+
style?: React__default.CSSProperties;
|
|
133
|
+
onClick?: () => void;
|
|
134
|
+
isDark?: boolean;
|
|
135
|
+
children?: React__default.ReactNode;
|
|
136
|
+
}
|
|
137
|
+
declare const Container: React__default.FC<ContainerProps>;
|
|
138
|
+
|
|
139
|
+
type Props$9 = {
|
|
140
|
+
text: string;
|
|
141
|
+
style?: CSSProperties | undefined;
|
|
142
|
+
classNames?: string;
|
|
143
|
+
};
|
|
144
|
+
declare const ErrorText: ({ text, style, classNames }: Props$9) => react_jsx_runtime.JSX.Element;
|
|
145
|
+
|
|
146
|
+
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";
|
|
147
|
+
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";
|
|
148
|
+
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";
|
|
149
|
+
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";
|
|
150
|
+
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";
|
|
151
|
+
declare const tippyClassname = "p-2 bg-slate-600 dark:bg-slate-900 opacity-90 text-white font-medium font-header rounded-lg";
|
|
152
|
+
declare const headerTippyClass = "rounded-lg p-2 bg-slate-950 opacity-95 text-white font-medium";
|
|
153
|
+
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";
|
|
154
|
+
declare const toolbarExerciseButton = "flex bg-gray-50 bg-opacity-95 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";
|
|
155
|
+
|
|
156
|
+
type IconInfoProps = {
|
|
157
|
+
content: string;
|
|
158
|
+
icon: React.ReactNode;
|
|
159
|
+
number: number;
|
|
160
|
+
color?: string;
|
|
161
|
+
};
|
|
162
|
+
declare const IconInfo: ({ content, icon, number, color }: IconInfoProps) => react_jsx_runtime.JSX.Element;
|
|
163
|
+
|
|
164
|
+
type Props$8 = {
|
|
165
|
+
loading: boolean;
|
|
166
|
+
message?: string;
|
|
167
|
+
};
|
|
168
|
+
declare const NoResults: ({ loading, message }: Props$8) => react_jsx_runtime.JSX.Element;
|
|
169
|
+
|
|
170
|
+
interface Props$7 {
|
|
171
|
+
type?: 'error' | 'warning' | 'info';
|
|
172
|
+
isDismissible?: boolean;
|
|
173
|
+
onDismiss?: () => void;
|
|
174
|
+
isVisible: boolean;
|
|
175
|
+
}
|
|
176
|
+
declare const NoticeBox: React__default.FC<Props$7 & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
177
|
+
|
|
178
|
+
declare const Pill: ({ text }: {
|
|
179
|
+
text: string;
|
|
180
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
181
|
+
|
|
182
|
+
type Props$6 = {
|
|
183
|
+
avgRating: number;
|
|
184
|
+
large?: boolean;
|
|
185
|
+
};
|
|
186
|
+
declare const RatingStars: ({ avgRating, large }: Props$6) => react_jsx_runtime.JSX.Element;
|
|
187
|
+
|
|
188
|
+
interface SliderProps {
|
|
189
|
+
min: number;
|
|
190
|
+
max: number;
|
|
191
|
+
step: number;
|
|
192
|
+
value: number;
|
|
193
|
+
sliderColor?: string;
|
|
194
|
+
onChange: (value: number) => void;
|
|
195
|
+
}
|
|
196
|
+
declare const Slider: {
|
|
197
|
+
({ min, max, step, value, onChange }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
198
|
+
Debounced: ({ min, max, handleUpdate, initialValue }: DebouncedSliderProps) => react_jsx_runtime.JSX.Element;
|
|
199
|
+
};
|
|
200
|
+
type DebouncedSliderProps = {
|
|
201
|
+
min: number;
|
|
202
|
+
max: number;
|
|
203
|
+
handleUpdate: (n: number) => void;
|
|
204
|
+
initialValue: number;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
type Step = {
|
|
208
|
+
label: ReactNode;
|
|
209
|
+
};
|
|
210
|
+
type Props$5 = {
|
|
211
|
+
steps: Step[];
|
|
212
|
+
activeStep: number;
|
|
213
|
+
onStepPress: (s: number) => void;
|
|
214
|
+
};
|
|
215
|
+
declare const StepsComponent: ({ steps, activeStep, onStepPress }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
216
|
+
|
|
217
|
+
interface TippyProps {
|
|
218
|
+
children: ReactNode;
|
|
219
|
+
content: ReactNode;
|
|
220
|
+
placement?: Placement;
|
|
221
|
+
className?: string;
|
|
222
|
+
disabled?: boolean;
|
|
223
|
+
arrow?: boolean;
|
|
224
|
+
visible?: boolean;
|
|
225
|
+
wrapperClassname?: string;
|
|
226
|
+
}
|
|
227
|
+
declare const Tippy: ({ children, content, placement, className, wrapperClassname, disabled, arrow: useArrow, visible }: TippyProps) => react_jsx_runtime.JSX.Element;
|
|
228
|
+
|
|
229
|
+
type FormikProps = {
|
|
230
|
+
label: string;
|
|
231
|
+
name: string;
|
|
232
|
+
};
|
|
233
|
+
type Props$4 = {
|
|
234
|
+
label: string;
|
|
235
|
+
onChange: (bool: boolean) => void;
|
|
236
|
+
value: boolean;
|
|
237
|
+
};
|
|
238
|
+
declare const ToggleSwitch: {
|
|
239
|
+
({ label, onChange, value }: Props$4): react_jsx_runtime.JSX.Element;
|
|
240
|
+
Formik: ({ label, name }: FormikProps) => react_jsx_runtime.JSX.Element;
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
type ModeProps = {
|
|
244
|
+
setGalleryMode: React.Dispatch<React.SetStateAction<string>>;
|
|
245
|
+
galleryMode: string;
|
|
246
|
+
title1: string;
|
|
247
|
+
title2: string;
|
|
248
|
+
icon1?: React.ComponentType<React.ComponentProps<"svg">>;
|
|
249
|
+
icon2?: React.ComponentType<React.ComponentProps<"svg">>;
|
|
250
|
+
};
|
|
251
|
+
declare const UserContentSwitcher: ({ icon1: Icon1, icon2: Icon2, setGalleryMode, galleryMode, title1, title2 }: ModeProps) => react_jsx_runtime.JSX.Element;
|
|
252
|
+
|
|
253
|
+
type Props$3 = {
|
|
254
|
+
inProp: boolean;
|
|
255
|
+
children: React__default.ReactNode;
|
|
256
|
+
};
|
|
257
|
+
declare const Fade: ({ children, inProp }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
258
|
+
|
|
259
|
+
declare const openSans: next_dist_compiled__next_font.NextFontWithVariable;
|
|
260
|
+
declare const ubuntu: next_dist_compiled__next_font.NextFontWithVariable;
|
|
261
|
+
declare const parkinsans: next_dist_compiled__next_font.NextFontWithVariable;
|
|
262
|
+
declare const balsamicSans: next_dist_compiled__next_font.NextFontWithVariable;
|
|
263
|
+
|
|
264
|
+
type ProgressBarProps = {
|
|
265
|
+
progress: number;
|
|
266
|
+
height?: number;
|
|
267
|
+
backgroundColor?: string;
|
|
268
|
+
color: string;
|
|
269
|
+
};
|
|
270
|
+
declare const ProgressBarSimple: ({ progress, color, height, backgroundColor }: ProgressBarProps) => react_jsx_runtime.JSX.Element;
|
|
271
|
+
|
|
272
|
+
declare const ProgressBar: {
|
|
273
|
+
({ progress }: {
|
|
274
|
+
progress: number;
|
|
275
|
+
}): react_jsx_runtime.JSX.Element;
|
|
276
|
+
Step: ({ steps, stepIndex, onStepClick, color }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
277
|
+
};
|
|
278
|
+
type Props$2 = {
|
|
279
|
+
steps: {
|
|
280
|
+
label: string;
|
|
281
|
+
}[];
|
|
282
|
+
stepIndex: number;
|
|
283
|
+
color?: string;
|
|
284
|
+
onStepClick?: (i: number) => void;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
type Props$1 = {
|
|
288
|
+
twColor?: string;
|
|
289
|
+
percentage: number;
|
|
290
|
+
radius: number;
|
|
291
|
+
fill?: string;
|
|
292
|
+
strokeWidth?: number;
|
|
293
|
+
};
|
|
294
|
+
declare const CircleProgress: ({ twColor, percentage, radius, fill, strokeWidth }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
295
|
+
|
|
296
|
+
declare const ScrollProgress: () => react_jsx_runtime.JSX.Element;
|
|
297
|
+
|
|
298
|
+
type Props = {
|
|
299
|
+
visible: boolean;
|
|
300
|
+
};
|
|
301
|
+
declare const OverlaySpinner: ({ visible }: Props) => React$1.ReactPortal | null;
|
|
302
|
+
|
|
303
|
+
interface SpinnerProps {
|
|
304
|
+
size?: 'base' | 'small';
|
|
305
|
+
white?: boolean | string;
|
|
306
|
+
visible?: boolean | string;
|
|
307
|
+
isDark?: boolean;
|
|
308
|
+
}
|
|
309
|
+
declare const Spinner: {
|
|
310
|
+
({ visible, size, white, isDark }: SpinnerProps): react_jsx_runtime.JSX.Element | null;
|
|
311
|
+
displayName: string;
|
|
312
|
+
Centered: {
|
|
313
|
+
(props: SpinnerProps): react_jsx_runtime.JSX.Element | null;
|
|
314
|
+
displayName: string;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
declare const AnimateLogo: () => react_jsx_runtime.JSX.Element;
|
|
319
|
+
|
|
320
|
+
declare const PRIMARY_COLOR = "#00b4d8";
|
|
321
|
+
|
|
322
|
+
export { AnimateLogo, Backdrop, BAWrapper as BottomAlert, Breakpoint, Button, Checkbox, CircleProgress, Container, ErrorText, Fade, FunButton, FunRoundButton, IconInfo, Modal, NoResults, NoticeBox, Overlay, OverlaySpinner, PRIMARY_COLOR, Pill, ProgressBar, ProgressBarSimple, RadioOption, RatingStars, ScrollProgress, Slider, Spinner, StepsComponent, Tippy, ToggleSwitch, UserContentSwitcher, balsamicSans, baseFieldStyle, createExerciseElementStyle, exerciseDeleteButton, exerciseEditButton, headerButtonClass, headerTippyClass, openSans, parkinsans, tippyClassname, toolbarExerciseButton, ubuntu, xIconButton };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { CSSProperties, ReactNode } from 'react';
|
|
4
|
+
import { Placement } from '@floating-ui/react';
|
|
5
|
+
import * as next_dist_compiled__next_font from 'next/dist/compiled/@next/font';
|
|
6
|
+
|
|
7
|
+
type Props$g = {
|
|
8
|
+
visible: boolean;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
opacity?: number;
|
|
11
|
+
};
|
|
12
|
+
declare const Backdrop: ({ visible, onClick, opacity }: Props$g) => react_jsx_runtime.JSX.Element | null;
|
|
13
|
+
|
|
14
|
+
interface BaseModalProps {
|
|
15
|
+
visible: boolean;
|
|
16
|
+
children: React__default.ReactNode;
|
|
17
|
+
appear?: boolean;
|
|
18
|
+
dismissable?: boolean;
|
|
19
|
+
dismissOnBackdropClick?: boolean;
|
|
20
|
+
onDismissed?: () => void;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
fullscreen?: boolean;
|
|
23
|
+
dismissLink?: string;
|
|
24
|
+
bgOpacity?: number;
|
|
25
|
+
displayDark?: boolean;
|
|
26
|
+
}
|
|
27
|
+
type ModalProps = BaseModalProps;
|
|
28
|
+
declare const Modal: ({ visible, children, fullscreen, displayDark, dismissLink, bgOpacity, onDismissed, dismissable, dismissOnBackdropClick, style, ...props }: ModalProps) => react_jsx_runtime.JSX.Element | null;
|
|
29
|
+
|
|
30
|
+
type OverlayProps = BaseModalProps & {
|
|
31
|
+
children?: React__default.ReactNode;
|
|
32
|
+
withContainer?: boolean;
|
|
33
|
+
opacity?: number;
|
|
34
|
+
isDark?: boolean;
|
|
35
|
+
zIndex?: number;
|
|
36
|
+
onClick?: () => void;
|
|
37
|
+
};
|
|
38
|
+
declare const Overlay: ({ visible, onDismissed, onClick, zIndex, isDark, children, opacity, withContainer, }: OverlayProps) => React__default.ReactPortal | null;
|
|
39
|
+
|
|
40
|
+
type Point = 'sm' | 'md' | 'lg' | 'xl';
|
|
41
|
+
declare const Breakpoint: React__default.FC<{
|
|
42
|
+
fromSize?: Point;
|
|
43
|
+
toSize?: Point;
|
|
44
|
+
children: React__default.ReactNode;
|
|
45
|
+
}>;
|
|
46
|
+
|
|
47
|
+
interface Props$f {
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
kind?: 'primary' | 'secondary' | 'base' | 'warning' | 'alert' | 'gray' | 'green' | 'teal' | 'indigo';
|
|
50
|
+
size?: 'small' | 'fixed' | 'large';
|
|
51
|
+
type?: 'button' | 'submit';
|
|
52
|
+
loading?: boolean;
|
|
53
|
+
children: React__default.ReactNode;
|
|
54
|
+
onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
55
|
+
}
|
|
56
|
+
declare const Button: ({ disabled, loading, onClick, kind, size, type, children }: Props$f) => react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
interface Props$e {
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
color?: 'primary' | 'red' | 'green' | 'purple' | 'teal' | 'yellow' | 'cyan';
|
|
61
|
+
type?: 'button' | 'submit';
|
|
62
|
+
active?: boolean;
|
|
63
|
+
children: React__default.ReactNode;
|
|
64
|
+
loading?: boolean;
|
|
65
|
+
className?: string;
|
|
66
|
+
size?: 'big' | 'base' | 'small' | 'square';
|
|
67
|
+
onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
68
|
+
}
|
|
69
|
+
declare const FunButton: React__default.FC<Props$e>;
|
|
70
|
+
|
|
71
|
+
interface Props$d {
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
color?: 'primary' | 'red' | 'green' | 'purple' | 'teal' | 'yellow';
|
|
74
|
+
type?: 'button' | 'submit';
|
|
75
|
+
active?: boolean;
|
|
76
|
+
children: React__default.ReactNode;
|
|
77
|
+
className?: string;
|
|
78
|
+
size?: number;
|
|
79
|
+
onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
80
|
+
}
|
|
81
|
+
declare const FunRoundButton: ({ onClick, disabled, type, children, color, active, className, size }: Props$d) => react_jsx_runtime.JSX.Element;
|
|
82
|
+
|
|
83
|
+
type Props$c = {
|
|
84
|
+
name: string;
|
|
85
|
+
labelText: React__default.ReactNode;
|
|
86
|
+
onChange?: (value: boolean) => void;
|
|
87
|
+
isLarge?: boolean;
|
|
88
|
+
isDisabled?: boolean;
|
|
89
|
+
};
|
|
90
|
+
declare const Checkbox: {
|
|
91
|
+
({ name, labelText, isLarge, onChange, isDisabled }: Props$c): react_jsx_runtime.JSX.Element;
|
|
92
|
+
Multi: ({ name, hasMultipleAnswers, index, isLarge, allOptionsName }: MultiChoiceCheckBoxProps) => react_jsx_runtime.JSX.Element;
|
|
93
|
+
};
|
|
94
|
+
type MultiChoiceCheckBoxProps = {
|
|
95
|
+
name: string;
|
|
96
|
+
allOptionsName: string;
|
|
97
|
+
hasMultipleAnswers: boolean;
|
|
98
|
+
index: number;
|
|
99
|
+
isLarge?: boolean;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
type Props$b = {
|
|
103
|
+
name: string;
|
|
104
|
+
isLarge?: boolean;
|
|
105
|
+
labelText?: string;
|
|
106
|
+
option: string;
|
|
107
|
+
onSelect?: () => void;
|
|
108
|
+
};
|
|
109
|
+
declare const RadioOption: ({ name, isLarge, labelText, option, onSelect }: Props$b) => react_jsx_runtime.JSX.Element;
|
|
110
|
+
|
|
111
|
+
interface Props$a {
|
|
112
|
+
title: string;
|
|
113
|
+
cancelText?: string;
|
|
114
|
+
isVisible: boolean;
|
|
115
|
+
confirmText?: string;
|
|
116
|
+
isSingleAction?: boolean;
|
|
117
|
+
setDontShowAgain?: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
118
|
+
dontShowAgain?: boolean;
|
|
119
|
+
borderColor?: string;
|
|
120
|
+
buttonColor?: 'base' | 'primary' | 'secondary' | 'warning' | 'alert' | 'gray' | undefined;
|
|
121
|
+
onConfirm: (confirmed: boolean) => void;
|
|
122
|
+
onDismissed?: () => void;
|
|
123
|
+
onCancel?: () => void;
|
|
124
|
+
isDark?: boolean;
|
|
125
|
+
children?: React__default.ReactNode;
|
|
126
|
+
}
|
|
127
|
+
declare const BAWrapper: React__default.FC<Props$a>;
|
|
128
|
+
|
|
129
|
+
interface ContainerProps {
|
|
130
|
+
backgroundColor?: string;
|
|
131
|
+
backgroundImage?: string;
|
|
132
|
+
style?: React__default.CSSProperties;
|
|
133
|
+
onClick?: () => void;
|
|
134
|
+
isDark?: boolean;
|
|
135
|
+
children?: React__default.ReactNode;
|
|
136
|
+
}
|
|
137
|
+
declare const Container: React__default.FC<ContainerProps>;
|
|
138
|
+
|
|
139
|
+
type Props$9 = {
|
|
140
|
+
text: string;
|
|
141
|
+
style?: CSSProperties | undefined;
|
|
142
|
+
classNames?: string;
|
|
143
|
+
};
|
|
144
|
+
declare const ErrorText: ({ text, style, classNames }: Props$9) => react_jsx_runtime.JSX.Element;
|
|
145
|
+
|
|
146
|
+
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";
|
|
147
|
+
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";
|
|
148
|
+
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";
|
|
149
|
+
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";
|
|
150
|
+
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";
|
|
151
|
+
declare const tippyClassname = "p-2 bg-slate-600 dark:bg-slate-900 opacity-90 text-white font-medium font-header rounded-lg";
|
|
152
|
+
declare const headerTippyClass = "rounded-lg p-2 bg-slate-950 opacity-95 text-white font-medium";
|
|
153
|
+
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";
|
|
154
|
+
declare const toolbarExerciseButton = "flex bg-gray-50 bg-opacity-95 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";
|
|
155
|
+
|
|
156
|
+
type IconInfoProps = {
|
|
157
|
+
content: string;
|
|
158
|
+
icon: React.ReactNode;
|
|
159
|
+
number: number;
|
|
160
|
+
color?: string;
|
|
161
|
+
};
|
|
162
|
+
declare const IconInfo: ({ content, icon, number, color }: IconInfoProps) => react_jsx_runtime.JSX.Element;
|
|
163
|
+
|
|
164
|
+
type Props$8 = {
|
|
165
|
+
loading: boolean;
|
|
166
|
+
message?: string;
|
|
167
|
+
};
|
|
168
|
+
declare const NoResults: ({ loading, message }: Props$8) => react_jsx_runtime.JSX.Element;
|
|
169
|
+
|
|
170
|
+
interface Props$7 {
|
|
171
|
+
type?: 'error' | 'warning' | 'info';
|
|
172
|
+
isDismissible?: boolean;
|
|
173
|
+
onDismiss?: () => void;
|
|
174
|
+
isVisible: boolean;
|
|
175
|
+
}
|
|
176
|
+
declare const NoticeBox: React__default.FC<Props$7 & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
177
|
+
|
|
178
|
+
declare const Pill: ({ text }: {
|
|
179
|
+
text: string;
|
|
180
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
181
|
+
|
|
182
|
+
type Props$6 = {
|
|
183
|
+
avgRating: number;
|
|
184
|
+
large?: boolean;
|
|
185
|
+
};
|
|
186
|
+
declare const RatingStars: ({ avgRating, large }: Props$6) => react_jsx_runtime.JSX.Element;
|
|
187
|
+
|
|
188
|
+
interface SliderProps {
|
|
189
|
+
min: number;
|
|
190
|
+
max: number;
|
|
191
|
+
step: number;
|
|
192
|
+
value: number;
|
|
193
|
+
sliderColor?: string;
|
|
194
|
+
onChange: (value: number) => void;
|
|
195
|
+
}
|
|
196
|
+
declare const Slider: {
|
|
197
|
+
({ min, max, step, value, onChange }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
198
|
+
Debounced: ({ min, max, handleUpdate, initialValue }: DebouncedSliderProps) => react_jsx_runtime.JSX.Element;
|
|
199
|
+
};
|
|
200
|
+
type DebouncedSliderProps = {
|
|
201
|
+
min: number;
|
|
202
|
+
max: number;
|
|
203
|
+
handleUpdate: (n: number) => void;
|
|
204
|
+
initialValue: number;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
type Step = {
|
|
208
|
+
label: ReactNode;
|
|
209
|
+
};
|
|
210
|
+
type Props$5 = {
|
|
211
|
+
steps: Step[];
|
|
212
|
+
activeStep: number;
|
|
213
|
+
onStepPress: (s: number) => void;
|
|
214
|
+
};
|
|
215
|
+
declare const StepsComponent: ({ steps, activeStep, onStepPress }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
216
|
+
|
|
217
|
+
interface TippyProps {
|
|
218
|
+
children: ReactNode;
|
|
219
|
+
content: ReactNode;
|
|
220
|
+
placement?: Placement;
|
|
221
|
+
className?: string;
|
|
222
|
+
disabled?: boolean;
|
|
223
|
+
arrow?: boolean;
|
|
224
|
+
visible?: boolean;
|
|
225
|
+
wrapperClassname?: string;
|
|
226
|
+
}
|
|
227
|
+
declare const Tippy: ({ children, content, placement, className, wrapperClassname, disabled, arrow: useArrow, visible }: TippyProps) => react_jsx_runtime.JSX.Element;
|
|
228
|
+
|
|
229
|
+
type FormikProps = {
|
|
230
|
+
label: string;
|
|
231
|
+
name: string;
|
|
232
|
+
};
|
|
233
|
+
type Props$4 = {
|
|
234
|
+
label: string;
|
|
235
|
+
onChange: (bool: boolean) => void;
|
|
236
|
+
value: boolean;
|
|
237
|
+
};
|
|
238
|
+
declare const ToggleSwitch: {
|
|
239
|
+
({ label, onChange, value }: Props$4): react_jsx_runtime.JSX.Element;
|
|
240
|
+
Formik: ({ label, name }: FormikProps) => react_jsx_runtime.JSX.Element;
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
type ModeProps = {
|
|
244
|
+
setGalleryMode: React.Dispatch<React.SetStateAction<string>>;
|
|
245
|
+
galleryMode: string;
|
|
246
|
+
title1: string;
|
|
247
|
+
title2: string;
|
|
248
|
+
icon1?: React.ComponentType<React.ComponentProps<"svg">>;
|
|
249
|
+
icon2?: React.ComponentType<React.ComponentProps<"svg">>;
|
|
250
|
+
};
|
|
251
|
+
declare const UserContentSwitcher: ({ icon1: Icon1, icon2: Icon2, setGalleryMode, galleryMode, title1, title2 }: ModeProps) => react_jsx_runtime.JSX.Element;
|
|
252
|
+
|
|
253
|
+
type Props$3 = {
|
|
254
|
+
inProp: boolean;
|
|
255
|
+
children: React__default.ReactNode;
|
|
256
|
+
};
|
|
257
|
+
declare const Fade: ({ children, inProp }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
258
|
+
|
|
259
|
+
declare const openSans: next_dist_compiled__next_font.NextFontWithVariable;
|
|
260
|
+
declare const ubuntu: next_dist_compiled__next_font.NextFontWithVariable;
|
|
261
|
+
declare const parkinsans: next_dist_compiled__next_font.NextFontWithVariable;
|
|
262
|
+
declare const balsamicSans: next_dist_compiled__next_font.NextFontWithVariable;
|
|
263
|
+
|
|
264
|
+
type ProgressBarProps = {
|
|
265
|
+
progress: number;
|
|
266
|
+
height?: number;
|
|
267
|
+
backgroundColor?: string;
|
|
268
|
+
color: string;
|
|
269
|
+
};
|
|
270
|
+
declare const ProgressBarSimple: ({ progress, color, height, backgroundColor }: ProgressBarProps) => react_jsx_runtime.JSX.Element;
|
|
271
|
+
|
|
272
|
+
declare const ProgressBar: {
|
|
273
|
+
({ progress }: {
|
|
274
|
+
progress: number;
|
|
275
|
+
}): react_jsx_runtime.JSX.Element;
|
|
276
|
+
Step: ({ steps, stepIndex, onStepClick, color }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
277
|
+
};
|
|
278
|
+
type Props$2 = {
|
|
279
|
+
steps: {
|
|
280
|
+
label: string;
|
|
281
|
+
}[];
|
|
282
|
+
stepIndex: number;
|
|
283
|
+
color?: string;
|
|
284
|
+
onStepClick?: (i: number) => void;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
type Props$1 = {
|
|
288
|
+
twColor?: string;
|
|
289
|
+
percentage: number;
|
|
290
|
+
radius: number;
|
|
291
|
+
fill?: string;
|
|
292
|
+
strokeWidth?: number;
|
|
293
|
+
};
|
|
294
|
+
declare const CircleProgress: ({ twColor, percentage, radius, fill, strokeWidth }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
295
|
+
|
|
296
|
+
declare const ScrollProgress: () => react_jsx_runtime.JSX.Element;
|
|
297
|
+
|
|
298
|
+
type Props = {
|
|
299
|
+
visible: boolean;
|
|
300
|
+
};
|
|
301
|
+
declare const OverlaySpinner: ({ visible }: Props) => React$1.ReactPortal | null;
|
|
302
|
+
|
|
303
|
+
interface SpinnerProps {
|
|
304
|
+
size?: 'base' | 'small';
|
|
305
|
+
white?: boolean | string;
|
|
306
|
+
visible?: boolean | string;
|
|
307
|
+
isDark?: boolean;
|
|
308
|
+
}
|
|
309
|
+
declare const Spinner: {
|
|
310
|
+
({ visible, size, white, isDark }: SpinnerProps): react_jsx_runtime.JSX.Element | null;
|
|
311
|
+
displayName: string;
|
|
312
|
+
Centered: {
|
|
313
|
+
(props: SpinnerProps): react_jsx_runtime.JSX.Element | null;
|
|
314
|
+
displayName: string;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
declare const AnimateLogo: () => react_jsx_runtime.JSX.Element;
|
|
319
|
+
|
|
320
|
+
declare const PRIMARY_COLOR = "#00b4d8";
|
|
321
|
+
|
|
322
|
+
export { AnimateLogo, Backdrop, BAWrapper as BottomAlert, Breakpoint, Button, Checkbox, CircleProgress, Container, ErrorText, Fade, FunButton, FunRoundButton, IconInfo, Modal, NoResults, NoticeBox, Overlay, OverlaySpinner, PRIMARY_COLOR, Pill, ProgressBar, ProgressBarSimple, RadioOption, RatingStars, ScrollProgress, Slider, Spinner, StepsComponent, Tippy, ToggleSwitch, UserContentSwitcher, balsamicSans, baseFieldStyle, createExerciseElementStyle, exerciseDeleteButton, exerciseEditButton, headerButtonClass, headerTippyClass, openSans, parkinsans, tippyClassname, toolbarExerciseButton, ubuntu, xIconButton };
|