evelearn-theme 2.0.29 → 2.0.30

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