@eclass/ui-kit 1.30.0 → 1.32.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.
Files changed (61) hide show
  1. package/dist/atoms/Icons/AcademicRecord.d.ts +2 -1
  2. package/dist/atoms/Icons/AlertInfo.d.ts +2 -1
  3. package/dist/atoms/Icons/Alerts/ErrorWhite.d.ts +2 -1
  4. package/dist/atoms/Icons/Alerts/InfoWhite.d.ts +2 -1
  5. package/dist/atoms/Icons/Alerts/SuccessWhite.d.ts +2 -1
  6. package/dist/atoms/Icons/Alerts/WarningWhite.d.ts +2 -1
  7. package/dist/atoms/Icons/ArrowRight.d.ts +2 -1
  8. package/dist/atoms/Icons/Base.d.ts +2 -2
  9. package/dist/atoms/Icons/Certificate.d.ts +2 -1
  10. package/dist/atoms/Icons/CircularCheck.d.ts +2 -1
  11. package/dist/atoms/Icons/CircularInformation.d.ts +2 -1
  12. package/dist/atoms/Icons/Close.d.ts +2 -1
  13. package/dist/atoms/Icons/Download.d.ts +2 -1
  14. package/dist/atoms/Icons/GoAhead.d.ts +2 -1
  15. package/dist/atoms/Icons/GoBack.d.ts +2 -1
  16. package/dist/atoms/Icons/Loader.d.ts +1 -0
  17. package/dist/atoms/Icons/Multimedia.d.ts +2 -1
  18. package/dist/atoms/Icons/Password.d.ts +2 -1
  19. package/dist/atoms/Icons/Pen.d.ts +2 -1
  20. package/dist/atoms/Icons/PlusSign.d.ts +2 -1
  21. package/dist/atoms/Icons/Profile.d.ts +2 -1
  22. package/dist/atoms/Icons/Schedule.d.ts +2 -1
  23. package/dist/atoms/Icons/TextBubble.d.ts +2 -1
  24. package/dist/atoms/Icons/TinyAlertError.d.ts +2 -1
  25. package/dist/atoms/Icons/TinyAlertInfo.d.ts +2 -1
  26. package/dist/atoms/Icons/TinyAlertSuccess.d.ts +2 -1
  27. package/dist/atoms/Icons/TinyAlertWarning.d.ts +2 -1
  28. package/dist/atoms/Icons/TrashCan.d.ts +2 -1
  29. package/dist/atoms/Progress/Progress.d.ts +1 -0
  30. package/dist/atoms/Ripples/Ripples.d.ts +1 -0
  31. package/dist/atoms/TinyAlert/TinyAlert.d.ts +1 -0
  32. package/dist/eclass-ui-kit.es.js +36481 -28568
  33. package/dist/eclass-ui-kit.es.js.map +1 -1
  34. package/dist/eclass-ui-kit.umd.js +276 -371
  35. package/dist/eclass-ui-kit.umd.js.map +1 -1
  36. package/dist/index.d.ts +4 -4
  37. package/dist/molecules/Buttons/BtnPrimary.d.ts +2 -1
  38. package/dist/molecules/Buttons/BtnSecondary.d.ts +2 -1
  39. package/dist/molecules/Tooltip/NewTooltip.d.ts +3 -2
  40. package/dist/organisms/Alerts/Alert.d.ts +2 -1
  41. package/dist/organisms/Alerts/FlashNotification.d.ts +2 -1
  42. package/dist/organisms/Alerts/utils/alertStates.d.ts +4 -4
  43. package/dist/organisms/Alerts/utils/useFlashNotification.d.ts +1 -1
  44. package/dist/organisms/CourseList/Boxes/BoxImage.d.ts +2 -1
  45. package/dist/organisms/CourseList/Boxes/BoxTraditional.d.ts +1 -1
  46. package/dist/organisms/CourseList/Boxes/Boxes.d.ts +2 -1
  47. package/dist/organisms/CourseList/CourseList.d.ts +2 -1
  48. package/dist/organisms/CourseList/components/CourseStatus.d.ts +2 -1
  49. package/dist/organisms/CourseList/components/DateStatus.d.ts +1 -0
  50. package/dist/organisms/CourseList/components/Footer.d.ts +2 -1
  51. package/dist/organisms/CourseList/components/Header.d.ts +1 -0
  52. package/dist/organisms/CourseList/components/IconSelection.d.ts +1 -0
  53. package/dist/organisms/CourseList/components/Modal/PaymentModal.d.ts +2 -1
  54. package/dist/organisms/CourseList/components/Section.d.ts +1 -0
  55. package/dist/organisms/CourseList/utils/dataFake.d.ts +1 -1
  56. package/dist/theme/index.d.ts +1 -1
  57. package/dist/tsconfig.types.tsbuildinfo +1 -1
  58. package/package.json +61 -64
  59. package/dist/organisms/Alerts/types.d.ts +0 -66
  60. package/dist/organisms/CourseList/types.d.ts +0 -37
  61. package/dist/vite-env.d.ts +0 -2
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';
@@ -1,4 +1,5 @@
1
- import { propsBaseBtns } from './Btn';
1
+ /// <reference types="react" />
2
+ import { type propsBaseBtns } from './Btn';
2
3
  /**
3
4
  * Componente BtnPrimary
4
5
  *
@@ -1,4 +1,5 @@
1
- import { propsBaseBtns } from './Btn';
1
+ /// <reference types="react" />
2
+ import { type propsBaseBtns } from './Btn';
2
3
  /**
3
4
  * Componente BtnSecondary
4
5
  *
@@ -1,5 +1,5 @@
1
- import { FC } from 'react';
2
- import { PlacementWithLogical } from '@chakra-ui/react';
1
+ import { type FC, type ReactElement } from 'react';
2
+ import { type PlacementWithLogical } from '@chakra-ui/react';
3
3
  interface TooltipProps {
4
4
  className?: string;
5
5
  label?: React.ReactNode;
@@ -7,6 +7,7 @@ interface TooltipProps {
7
7
  m?: string;
8
8
  maxWidth?: string;
9
9
  placement?: PlacementWithLogical;
10
+ children?: ReactElement;
10
11
  }
11
12
  export declare const NewTooltip: FC<TooltipProps>;
12
13
  export {};
@@ -1,4 +1,5 @@
1
- import { IAlertProps } from './types.d';
1
+ /// <reference types="react" />
2
+ import { type IAlertProps } from './types.d';
2
3
  /**
3
4
  * Componente de alerta embebida que puede tener 4 estados diferentes.
4
5
  * Opcionalmente puede llevar un botón. El botón puede mostrar sólo un texto
@@ -1,4 +1,5 @@
1
- import { IFlashNotificationProps } from './types.d';
1
+ /// <reference types="react" />
2
+ import { type IFlashNotificationProps } from './types.d';
2
3
  /**
3
4
  * Componente de notificación flash que se muestra centrada en la parte superior de la pantalla.
4
5
  * Para implementarlo, se usa en conjunto con el hook useFlashNotification.
@@ -1,21 +1,21 @@
1
1
  export declare const alertStates: {
2
2
  success: {
3
- icon: JSX.Element;
3
+ icon: import("react/jsx-runtime").JSX.Element;
4
4
  bg: string;
5
5
  id: string;
6
6
  };
7
7
  error: {
8
- icon: JSX.Element;
8
+ icon: import("react/jsx-runtime").JSX.Element;
9
9
  bg: string;
10
10
  id: string;
11
11
  };
12
12
  info: {
13
- icon: JSX.Element;
13
+ icon: import("react/jsx-runtime").JSX.Element;
14
14
  bg: string;
15
15
  id: string;
16
16
  };
17
17
  warning: {
18
- icon: JSX.Element;
18
+ icon: import("react/jsx-runtime").JSX.Element;
19
19
  bg: string;
20
20
  id: string;
21
21
  };
@@ -1,4 +1,4 @@
1
- import { IFlashNotificationProps } from '../types';
1
+ import { type IFlashNotificationProps } from '../types';
2
2
  /**
3
3
  * Hook que actúa como trigger del componente FlashNotification,
4
4
  * usando los siguientes parámetros:
@@ -1,4 +1,5 @@
1
- import * as Type from '../types';
1
+ /// <reference types="react" />
2
+ import type * as Type from '../types';
2
3
  interface ImageBoxProps {
3
4
  backgroundImg: string;
4
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import * as Type from '../types';
2
+ import type * as Type from '../types';
3
3
  export declare const CourseBoxContext: React.Context<Partial<import("@eclass/api").AcademicBox>>;
4
4
  interface IBoxTraditional {
5
5
  data: Type.AcademicList;
@@ -1,4 +1,5 @@
1
- import { AcademicList, WrapperCoursesProps } from '../types';
1
+ /// <reference types="react" />
2
+ import { type AcademicList, type WrapperCoursesProps } from '../types';
2
3
  interface IBoxes {
3
4
  type: WrapperCoursesProps['typeBox'];
4
5
  modalPaymentText: WrapperCoursesProps['modalPaymentText'];
@@ -1,4 +1,5 @@
1
- import * as Type from './types';
1
+ /// <reference types="react" />
2
+ import type * as Type from './types';
2
3
  export declare const columnGap = 1.25;
3
4
  export declare const wCourse = 17.8125;
4
5
  /**
@@ -1,4 +1,5 @@
1
- import { ProgressCourse, StatusCourse } from '@eclass/api';
1
+ /// <reference types="react" />
2
+ import { type ProgressCourse, type StatusCourse } from '@eclass/api';
2
3
  interface props {
3
4
  /** import { ProgressCourse } from '@eclass/api' */
4
5
  progress: ProgressCourse;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface DateStatusProps {
2
3
  date?: string;
3
4
  }
@@ -1,4 +1,5 @@
1
- import * as Type from '../types';
1
+ /// <reference types="react" />
2
+ import type * as Type from '../types';
2
3
  export declare function Footer({ modalPaymentText }: Type.FooterProps): JSX.Element | null;
3
4
  export declare namespace Footer {
4
5
  var displayName: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare function Header(): JSX.Element;
2
3
  export declare namespace Header {
3
4
  var displayName: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface IconSelectionProps {
2
3
  type: string;
3
4
  progressValue?: number;
@@ -1,4 +1,5 @@
1
- import * as Type from '../../types';
1
+ /// <reference types="react" />
2
+ import type * as Type from '../../types';
2
3
  interface PaymentModalProps {
3
4
  isOpen: boolean;
4
5
  onOpen: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare function Section(): JSX.Element | null;
2
3
  export declare namespace Section {
3
4
  var displayName: string;
@@ -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;
@@ -1,2 +1,2 @@
1
- export declare const theme: import("@chakra-ui/utils").Dict<any>;
1
+ export declare const theme: Record<string, any>;
2
2
  export declare const vars: (value: string) => string;