@eclass/ui-kit 1.51.8 → 1.51.10

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.
@@ -9,7 +9,7 @@ import { IAlertProps } from './types.d';
9
9
  * state='info'
10
10
  * buttonName='Texto botón'
11
11
  * buttonIcon={<Multimedia />}
12
- * onClick={() => alert('hola')}
12
+ * onClick={() => alert('hola ')}
13
13
  * m='0 20px'>
14
14
  * Mensaje
15
15
  * </Alert>
@@ -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: colors, m, }: ICalendarDropdown) => JSX.Element;
3
+ export declare const CalendarDropdownContainer: ({ events, loading, text, now, redirectToCalendar, courseColors, onlyToCalendar, m, }: ICalendarDropdown) => JSX.Element;
@@ -1,30 +1,15 @@
1
- import { Key } from 'react';
2
- import { Text } from '../../types';
3
- interface EventsProps {
1
+ /// <reference types="react" />
2
+ import { Text, Event } from '../../types';
3
+ interface IEventsProps {
4
4
  events: {
5
5
  today: Event[];
6
6
  tomorrow: Event[];
7
7
  next: Event[];
8
8
  };
9
- text: Text;
9
+ text?: Text;
10
10
  redirecToCalendar: () => void;
11
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;
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,8 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  interface IGoToCalendar {
3
- hasNew: boolean;
4
3
  text: string;
5
4
  tooltipDisabled: boolean;
5
+ onlyToCalendar?: boolean;
6
+ onClick?: () => void;
6
7
  }
7
- export declare const GoToCalendar: ({ hasNew, text, tooltipDisabled }: IGoToCalendar) => JSX.Element;
8
+ export declare const GoToCalendar: ({ text, tooltipDisabled, onlyToCalendar, onClick, }: IGoToCalendar) => JSX.Element;
8
9
  export {};
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { ICalendarDropdown } from './types';
3
- export declare const CalendarDropdown: ({ redirectToCalendar, text, courseColors, now, events, loading, m, }: ICalendarDropdown) => JSX.Element;
3
+ export declare const CalendarDropdown: ({ redirectToCalendar, text, courseColors, now, events, loading, onlyToCalendar, m, }: ICalendarDropdown) => JSX.Element;
@@ -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[]
@@ -45,5 +47,6 @@ interface ICalendarDropdown {
45
47
  loading?: boolean
46
48
  now: string
47
49
  redirectToCalendar: () => void
48
- text: Text
50
+ text?: Text
51
+ onlyToCalendar?: boolean
49
52
  }