@eclass/ui-kit 1.50.1 → 1.51.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/eclass-ui-kit.es.js +128 -107
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +51 -51
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/molecules/Buttons/BtnPrimary.d.ts +2 -2
- package/dist/molecules/Buttons/BtnSecondary.d.ts +2 -2
- package/dist/molecules/Buttons/BtnTertiary.d.ts +2 -2
- package/dist/organisms/Calendar/Dropdown/types.d.ts +48 -0
- package/dist/organisms/CourseList/utils/dataFake.d.ts +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from '@atoms';
|
|
2
|
+
export * from '@molecules';
|
|
3
|
+
export * from '@organisms';
|
|
4
|
+
export * from '@theme';
|
|
@@ -7,7 +7,7 @@ import { propsBaseBtns } from './Btn';
|
|
|
7
7
|
*
|
|
8
8
|
* @example <BtnPrimary>Lorem</BtnPrimary>
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
type XOR<T, U> = T | U extends object ? (T extends U ? never : T) | (U extends T ? never : U) : T | U;
|
|
11
11
|
interface ButtonWithTextProps extends propsBaseBtns {
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
ariaLabel?: string;
|
|
@@ -16,7 +16,7 @@ interface ButtonWithoutTextProps extends propsBaseBtns {
|
|
|
16
16
|
children?: React.ReactNode;
|
|
17
17
|
ariaLabel: string;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
type PrimaryButtonProps = XOR<ButtonWithTextProps, ButtonWithoutTextProps>;
|
|
20
20
|
export declare function BtnPrimary({ ariaLabel, children, disabled, isFullWidth, leftIcon, m, isLoading, onClick, rightIcon, role, size, type, tabIndex, id, }: PrimaryButtonProps): JSX.Element;
|
|
21
21
|
export declare namespace BtnPrimary {
|
|
22
22
|
var displayName: string;
|
|
@@ -7,7 +7,7 @@ import { propsBaseBtns } from './Btn';
|
|
|
7
7
|
*
|
|
8
8
|
* @example <BtnSecondary>Lorem</BtnSecondary>
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
type XOR<T, U> = T | U extends object ? (T extends U ? never : T) | (U extends T ? never : U) : T | U;
|
|
11
11
|
interface ButtonWithTextProps extends propsBaseBtns {
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
ariaLabel?: string;
|
|
@@ -16,7 +16,7 @@ interface ButtonWithoutTextProps extends propsBaseBtns {
|
|
|
16
16
|
children?: React.ReactNode;
|
|
17
17
|
ariaLabel: string;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
type SecondaryButtonProps = XOR<ButtonWithTextProps, ButtonWithoutTextProps>;
|
|
20
20
|
export declare function BtnSecondary({ ariaLabel, children, disabled, isFullWidth, leftIcon, m, isLoading, onClick, rightIcon, role, size, type, tabIndex, id, }: SecondaryButtonProps): JSX.Element;
|
|
21
21
|
export declare namespace BtnSecondary {
|
|
22
22
|
var displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
type XOR<T, U> = T | U extends object ? (T extends U ? never : T) | (U extends T ? never : U) : T | U;
|
|
3
3
|
export interface propsTertiaryBtn {
|
|
4
4
|
activeWhenPress?: boolean;
|
|
5
5
|
id?: string;
|
|
@@ -23,7 +23,7 @@ interface ButtonWithoutTextProps extends propsTertiaryBtn {
|
|
|
23
23
|
children?: React.ReactNode;
|
|
24
24
|
ariaLabel: string;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
type ButtonProps = XOR<ButtonWithTextProps, ButtonWithoutTextProps>;
|
|
27
27
|
export declare function BtnTertiary({ ariaLabel, activeWhenPress, children, id, iconStatus, iconCustom, m, onClick, onMouseEnter, onMouseLeave, rightIcon, role, type, tabIndex, withoutColor, }: ButtonProps): JSX.Element;
|
|
28
28
|
export declare namespace BtnTertiary {
|
|
29
29
|
var displayName: string;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
interface AssociatedResource {
|
|
2
|
+
id: number
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface Course {
|
|
6
|
+
id: number
|
|
7
|
+
name: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface FormattedDate {
|
|
11
|
+
start: string
|
|
12
|
+
hours: string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface Event {
|
|
16
|
+
id: number
|
|
17
|
+
course_id: number
|
|
18
|
+
start: string
|
|
19
|
+
end: string
|
|
20
|
+
associated_resource: AssociatedResource
|
|
21
|
+
course: Course
|
|
22
|
+
formatedDate: FormattedDate
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type Events = Event[]
|
|
26
|
+
|
|
27
|
+
export interface Text {
|
|
28
|
+
buttonCalendar: string
|
|
29
|
+
course: string
|
|
30
|
+
empty: string
|
|
31
|
+
events: {
|
|
32
|
+
today: string
|
|
33
|
+
tomorrow: string
|
|
34
|
+
next: string
|
|
35
|
+
}
|
|
36
|
+
header: string
|
|
37
|
+
loading: string
|
|
38
|
+
tooltip: string
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface ICalendarDropdown {
|
|
42
|
+
courseColors?: Record<string, string>
|
|
43
|
+
events: any
|
|
44
|
+
loading?: boolean
|
|
45
|
+
now: string
|
|
46
|
+
redirectToCalendar: () => void
|
|
47
|
+
text: Text
|
|
48
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type icon = 'schedule' | 'certificate' | 'circularCheck' | 'progress' | 'circularInformation';
|
|
2
2
|
export declare const dataBase: {
|
|
3
3
|
name: string;
|
|
4
4
|
background: string;
|