@eclass/ui-kit 1.51.2 → 1.51.4

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,4 +1,4 @@
1
- export * from '@atoms';
2
- export * from '@molecules';
3
- export * from '@organisms';
4
- export * from '@theme';
1
+ export * from './atoms';
2
+ export * from './molecules';
3
+ export * from './organisms';
4
+ export * from './theme';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { ICalendarDropdown } from '../types';
3
+ export declare const CalendarDropdownContainer: ({ events, loading, text, now, redirectToCalendar, courseColors: colors, }: ICalendarDropdown) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const Empty: ({ text }: {
3
+ text?: string | undefined;
4
+ }) => JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { Key } from 'react';
2
+ import { Text } from '../../types';
3
+ interface EventsProps {
4
+ events: {
5
+ today: Event[];
6
+ tomorrow: Event[];
7
+ next: Event[];
8
+ };
9
+ text: Text;
10
+ redirecToCalendar: () => void;
11
+ isMobile: boolean;
12
+ colors: any;
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;
29
+ }
30
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface IGoToCalendar {
3
+ hasNew: boolean;
4
+ text: string;
5
+ tooltipDisabled: boolean;
6
+ }
7
+ export declare const GoToCalendar: ({ hasNew, text, tooltipDisabled }: IGoToCalendar) => JSX.Element;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const Header: ({ text, isMobile }: {
3
+ text?: string | undefined;
4
+ isMobile: boolean;
5
+ }) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const CalendarButtonIcon: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const NoEventsIcon: () => JSX.Element;
@@ -0,0 +1,9 @@
1
+ export declare const useParseEvents: (events: any[], now: string) => {
2
+ today: any[];
3
+ tomorrow: any[];
4
+ next: any[];
5
+ hasNew: boolean;
6
+ closeAndMarkSeen: () => void;
7
+ empty: boolean;
8
+ };
9
+ export declare const cleanEventsStorage: () => void;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { ICalendarDropdown } from './types';
3
+ export declare const CalendarDropdown: ({ redirectToCalendar, text, courseColors, now, events, loading, }: ICalendarDropdown) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export interface IEventList {
3
+ hasNotification?: boolean;
4
+ isDropdown?: boolean;
5
+ name: string;
6
+ color?: string;
7
+ courseName?: string;
8
+ text: string;
9
+ date: string;
10
+ hours: string;
11
+ }
12
+ export declare const EventsList: ({ hasNotification, isDropdown, name, courseName, color, text, date, hours, }: IEventList) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const NotificationIcon: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { CalendarDropdown } from './Dropdown/CalendarDropdown';
2
+ export { EventsList } from './EventsList/EventsList';
@@ -3,3 +3,4 @@ export * from './Alerts';
3
3
  export * from './ModalAlert';
4
4
  export * from './Events';
5
5
  export * from './Resources';
6
+ export * from './Calendar';