@eclass/ui-kit 1.51.9 → 1.51.11
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 +192 -187
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +44 -44
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/Alerts/Alert.d.ts +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/CalendarDropdownContainer.d.ts +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/Events.d.ts +5 -20
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/EventsGroup.d.ts +10 -0
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/GoToCalendar.d.ts +1 -2
- package/dist/organisms/Calendar/Dropdown/types.d.ts +3 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ICalendarDropdown } from '../types';
|
|
3
|
-
export declare const CalendarDropdownContainer: ({ events, loading, text, now, redirectToCalendar, courseColors
|
|
3
|
+
export declare const CalendarDropdownContainer: ({ events, loading, text, now, redirectToCalendar, courseColors, onlyToCalendar, m, }: ICalendarDropdown) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { Text } from '../../types';
|
|
3
|
-
interface
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Text, Event } from '../../types';
|
|
3
|
+
interface IEventsProps {
|
|
4
4
|
events: {
|
|
5
5
|
today: Event[];
|
|
6
6
|
tomorrow: Event[];
|
|
@@ -9,22 +9,7 @@ interface EventsProps {
|
|
|
9
9
|
text?: Text;
|
|
10
10
|
redirecToCalendar: () => void;
|
|
11
11
|
isMobile: boolean;
|
|
12
|
-
colors
|
|
13
|
-
}
|
|
14
|
-
export declare const Events: ({ events, text, redirecToCalendar, isMobile, colors, }: EventsProps) => JSX.Element;
|
|
15
|
-
interface Event {
|
|
16
|
-
id: Key | null | undefined;
|
|
17
|
-
associated_resource: {
|
|
18
|
-
name: any;
|
|
19
|
-
};
|
|
20
|
-
course: {
|
|
21
|
-
name: string | undefined;
|
|
22
|
-
};
|
|
23
|
-
formatedDate: {
|
|
24
|
-
start: string;
|
|
25
|
-
hours: string;
|
|
26
|
-
};
|
|
27
|
-
course_id: string | number;
|
|
28
|
-
isNew: boolean | undefined;
|
|
12
|
+
colors?: Record<string, string>;
|
|
29
13
|
}
|
|
14
|
+
export declare const Events: ({ events, text, redirecToCalendar, isMobile, colors, }: IEventsProps) => JSX.Element;
|
|
30
15
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Event } from '../../types';
|
|
3
|
+
interface IEventsGroupProps {
|
|
4
|
+
title: string;
|
|
5
|
+
events: Event[];
|
|
6
|
+
text: string;
|
|
7
|
+
colors?: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
export declare const EventsGroup: ({ title, events, text, colors }: IEventsGroupProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface IGoToCalendar {
|
|
3
|
-
hasNew: boolean;
|
|
4
3
|
text: string;
|
|
5
4
|
tooltipDisabled: boolean;
|
|
6
5
|
onlyToCalendar?: boolean;
|
|
7
6
|
onClick?: () => void;
|
|
8
7
|
}
|
|
9
|
-
export declare const GoToCalendar: ({
|
|
8
|
+
export declare const GoToCalendar: ({ text, tooltipDisabled, onlyToCalendar, onClick, }: IGoToCalendar) => JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface AssociatedResource {
|
|
2
2
|
id: number
|
|
3
|
+
name: string
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
interface Course {
|
|
@@ -12,7 +13,7 @@ interface FormattedDate {
|
|
|
12
13
|
hours: string
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
interface Event {
|
|
16
|
+
export interface Event {
|
|
16
17
|
id: number
|
|
17
18
|
course_id: number
|
|
18
19
|
start: string
|
|
@@ -20,6 +21,7 @@ interface Event {
|
|
|
20
21
|
associated_resource: AssociatedResource
|
|
21
22
|
course: Course
|
|
22
23
|
formatedDate: FormattedDate
|
|
24
|
+
isNew?: boolean
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
export type Events = Event[]
|