@eclass/ui-kit 1.50.1 → 1.51.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,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';
@@ -7,7 +7,7 @@ import { propsBaseBtns } from './Btn';
7
7
  *
8
8
  * @example <BtnPrimary>Lorem</BtnPrimary>
9
9
  */
10
- declare type XOR<T, U> = T | U extends object ? (T extends U ? never : T) | (U extends T ? never : U) : T | U;
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
- declare type PrimaryButtonProps = XOR<ButtonWithTextProps, ButtonWithoutTextProps>;
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
- declare type XOR<T, U> = T | U extends object ? (T extends U ? never : T) | (U extends T ? never : U) : T | U;
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
- declare type SecondaryButtonProps = XOR<ButtonWithTextProps, ButtonWithoutTextProps>;
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
- declare type XOR<T, U> = T | U extends object ? (T extends U ? never : T) | (U extends T ? never : U) : T | U;
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
- declare type ButtonProps = XOR<ButtonWithTextProps, ButtonWithoutTextProps>;
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;
@@ -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>
@@ -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 declare type icon = 'schedule' | 'certificate' | 'circularCheck' | 'progress' | 'circularInformation';
1
+ export type icon = 'schedule' | 'certificate' | 'circularCheck' | 'progress' | 'circularInformation';
2
2
  export declare const dataBase: {
3
3
  name: string;
4
4
  background: string;