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/index.d.ts CHANGED
@@ -1,15 +1,9 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ export { Backdrop, Breakpoint, Container, ErrorText, Fade, NoResults, PRIMARY_COLOR, Pill, Spinner, StepsComponent, baseFieldStyle, createExerciseElementStyle, exerciseDeleteButton, exerciseEditButton, headerButtonClass, headerTippyClass, tippyClassname, toolbarExerciseButton, xIconButton } from './server.js';
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
- type Point = 'sm' | 'md' | 'lg' | 'xl';
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$g) => react_jsx_runtime.JSX.Element;
42
+ declare const Button: ({ disabled, loading, onClick, kind, size, type, children }: Props$c) => react_jsx_runtime.JSX.Element;
56
43
 
57
- interface Props$f {
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$f>;
55
+ declare const FunButton: React__default.FC<Props$b>;
69
56
 
70
- interface Props$e {
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$e) => react_jsx_runtime.JSX.Element;
67
+ declare const FunRoundButton: ({ onClick, disabled, type, children, color, active, className, size }: Props$a) => react_jsx_runtime.JSX.Element;
81
68
 
82
- type Props$d = {
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$d): react_jsx_runtime.JSX.Element;
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$c = {
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$c) => react_jsx_runtime.JSX.Element;
95
+ declare const RadioOption: ({ name, isLarge, labelText, option, onSelect }: Props$8) => react_jsx_runtime.JSX.Element;
109
96
 
110
- interface Props$b {
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$b>;
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
- type Props$9 = {
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$8 & React__default.HTMLAttributes<HTMLDivElement>>;
129
+ declare const NoticeBox: React__default.FC<Props$6 & React__default.HTMLAttributes<HTMLDivElement>>;
176
130
 
177
- declare const Pill: ({ text }: {
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$7) => react_jsx_runtime.JSX.Element;
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$5 = {
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$5): react_jsx_runtime.JSX.Element;
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
- declare const PRIMARY_COLOR = "#00b4d8";
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 };