@eclass/ui-kit 1.42.0 → 1.43.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 (35) hide show
  1. package/dist/eclass-ui-kit.es.js +1041 -5
  2. package/dist/eclass-ui-kit.es.js.map +1 -1
  3. package/dist/eclass-ui-kit.umd.js +50 -50
  4. package/dist/eclass-ui-kit.umd.js.map +1 -1
  5. package/dist/molecules/Buttons/Btn.d.ts +2 -1
  6. package/dist/molecules/Buttons/BtnLink.d.ts +2 -1
  7. package/dist/molecules/Buttons/BtnPrimary.d.ts +1 -1
  8. package/dist/molecules/Buttons/BtnSecondary.d.ts +1 -1
  9. package/dist/molecules/Buttons/BtnTertiary.d.ts +2 -1
  10. package/dist/organisms/Events/Events.d.ts +2 -0
  11. package/dist/organisms/Events/index.d.ts +1 -0
  12. package/dist/organisms/Resources/Icons/Avi.d.ts +2 -0
  13. package/dist/organisms/Resources/Icons/Csv.d.ts +2 -0
  14. package/dist/organisms/Resources/Icons/Doc.d.ts +2 -0
  15. package/dist/organisms/Resources/Icons/Docx.d.ts +2 -0
  16. package/dist/organisms/Resources/Icons/Gif.d.ts +2 -0
  17. package/dist/organisms/Resources/Icons/Icons.d.ts +6 -0
  18. package/dist/organisms/Resources/Icons/Jpeg.d.ts +2 -0
  19. package/dist/organisms/Resources/Icons/Jpg.d.ts +2 -0
  20. package/dist/organisms/Resources/Icons/Mkv.d.ts +2 -0
  21. package/dist/organisms/Resources/Icons/Mp3.d.ts +2 -0
  22. package/dist/organisms/Resources/Icons/Mp4.d.ts +2 -0
  23. package/dist/organisms/Resources/Icons/Pdf.d.ts +2 -0
  24. package/dist/organisms/Resources/Icons/Png.d.ts +2 -0
  25. package/dist/organisms/Resources/Icons/Ppt.d.ts +2 -0
  26. package/dist/organisms/Resources/Icons/Pptx.d.ts +2 -0
  27. package/dist/organisms/Resources/Icons/Wav.d.ts +2 -0
  28. package/dist/organisms/Resources/Icons/Xls.d.ts +2 -0
  29. package/dist/organisms/Resources/Icons/Xlsx.d.ts +2 -0
  30. package/dist/organisms/Resources/Icons/index.d.ts +18 -0
  31. package/dist/organisms/Resources/Resources.d.ts +12 -0
  32. package/dist/organisms/Resources/index.d.ts +1 -0
  33. package/dist/organisms/index.d.ts +2 -0
  34. package/dist/tsconfig.types.tsbuildinfo +1 -1
  35. package/package.json +1 -1
@@ -13,6 +13,7 @@ export interface propsBaseBtns {
13
13
  isLoading?: boolean;
14
14
  onClick?: (e: React.MouseEvent<HTMLElement>) => void;
15
15
  rightIcon?: React.ReactElement;
16
+ role?: 'button' | 'link';
16
17
  size?: 'regular' | 'small';
17
18
  type?: 'button' | 'submit' | 'reset';
18
19
  tabIndex?: number;
@@ -35,7 +36,7 @@ interface props extends propsBaseBtns {
35
36
  *
36
37
  * @example <Btn>Lorem</Btn>
37
38
  */
38
- export declare function Btn({ ariaLabel, bg, borderColorActive, children, color, disabled, fillLoader, id, isFullWidth, isLoading, leftIcon, m, onClick, rightIcon, rounded, size, touchDark, type, tabIndex, }: props): JSX.Element;
39
+ export declare function Btn({ ariaLabel, bg, borderColorActive, children, color, disabled, fillLoader, id, isFullWidth, isLoading, leftIcon, m, onClick, rightIcon, role, rounded, size, touchDark, type, tabIndex, }: props): JSX.Element;
39
40
  export declare namespace Btn {
40
41
  var displayName: string;
41
42
  }
@@ -8,10 +8,11 @@ export interface props {
8
8
  id?: string;
9
9
  m?: string;
10
10
  onClick?: (e: React.MouseEvent<HTMLElement>) => void;
11
+ role?: 'button' | 'link';
11
12
  tabIndex?: number;
12
13
  textDecorationLine?: boolean;
13
14
  }
14
- export declare function BtnLink({ as, ariaLabel, children, fontSize, href, id, m, onClick, tabIndex, textDecorationLine, }: props): JSX.Element;
15
+ export declare function BtnLink({ as, ariaLabel, children, fontSize, href, id, m, onClick, role, tabIndex, textDecorationLine, }: props): JSX.Element;
15
16
  export declare namespace BtnLink {
16
17
  var displayName: string;
17
18
  }
@@ -17,7 +17,7 @@ interface ButtonWithoutTextProps extends propsBaseBtns {
17
17
  ariaLabel: string;
18
18
  }
19
19
  declare type PrimaryButtonProps = XOR<ButtonWithTextProps, ButtonWithoutTextProps>;
20
- export declare function BtnPrimary({ ariaLabel, children, disabled, isFullWidth, leftIcon, m, isLoading, onClick, rightIcon, size, type, tabIndex, id, }: PrimaryButtonProps): JSX.Element;
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;
23
23
  }
@@ -17,7 +17,7 @@ interface ButtonWithoutTextProps extends propsBaseBtns {
17
17
  ariaLabel: string;
18
18
  }
19
19
  declare type SecondaryButtonProps = XOR<ButtonWithTextProps, ButtonWithoutTextProps>;
20
- export declare function BtnSecondary({ ariaLabel, children, disabled, isFullWidth, leftIcon, m, isLoading, onClick, rightIcon, size, type, tabIndex, id, }: SecondaryButtonProps): JSX.Element;
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;
23
23
  }
@@ -10,6 +10,7 @@ export interface propsTertiaryBtn {
10
10
  onMouseEnter?: (e: React.MouseEvent<HTMLElement>) => void;
11
11
  onMouseLeave?: (e: React.MouseEvent<HTMLElement>) => void;
12
12
  rightIcon?: boolean;
13
+ role?: 'button' | 'link';
13
14
  type?: 'button' | 'submit' | 'reset';
14
15
  tabIndex?: number;
15
16
  withoutColor?: boolean;
@@ -23,7 +24,7 @@ interface ButtonWithoutTextProps extends propsTertiaryBtn {
23
24
  ariaLabel: string;
24
25
  }
25
26
  declare type ButtonProps = XOR<ButtonWithTextProps, ButtonWithoutTextProps>;
26
- export declare function BtnTertiary({ ariaLabel, activeWhenPress, children, id, iconStatus, iconCustom, m, onClick, onMouseEnter, onMouseLeave, rightIcon, type, tabIndex, withoutColor, }: ButtonProps): JSX.Element;
27
+ export declare function BtnTertiary({ ariaLabel, activeWhenPress, children, id, iconStatus, iconCustom, m, onClick, onMouseEnter, onMouseLeave, rightIcon, role, type, tabIndex, withoutColor, }: ButtonProps): JSX.Element;
27
28
  export declare namespace BtnTertiary {
28
29
  var displayName: string;
29
30
  }
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Events: FC;
@@ -0,0 +1 @@
1
+ export * from './Events';
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Avi: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Csv: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Doc: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Docx: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Gif: FC;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ interface IconsProps {
3
+ type: string | 'avi' | 'csv' | 'doc' | 'docx' | 'gif' | 'jpeg' | 'jpg' | 'mkv' | 'mp3' | 'mp4' | 'pdf' | 'png' | 'ppt' | 'pptx' | 'wav' | 'xls' | 'xlsx';
4
+ }
5
+ export declare const Icons: FC<IconsProps>;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Jpeg: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Jpg: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Mkv: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Mp3: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Mp4: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Pdf: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Png: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Ppt: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Pptx: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Wav: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Xls: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Xlsx: FC;
@@ -0,0 +1,18 @@
1
+ export * from './Avi';
2
+ export * from './Csv';
3
+ export * from './Doc';
4
+ export * from './Docx';
5
+ export * from './Gif';
6
+ export * from './Icons';
7
+ export * from './Jpeg';
8
+ export * from './Jpg';
9
+ export * from './Mkv';
10
+ export * from './Mp3';
11
+ export * from './Mp4';
12
+ export * from './Pdf';
13
+ export * from './Png';
14
+ export * from './Ppt';
15
+ export * from './Pptx';
16
+ export * from './Wav';
17
+ export * from './Xls';
18
+ export * from './Xlsx';
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ interface ResourcesProps {
3
+ id: string | number;
4
+ resourceType: string;
5
+ resourceTitle: string;
6
+ resourceDetail: string;
7
+ resourceTextDownload: string;
8
+ resourceLink: string;
9
+ resourceNameFile: string;
10
+ }
11
+ export declare const Resources: FC<ResourcesProps>;
12
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Resources';
@@ -1,3 +1,5 @@
1
1
  export * from './CourseList';
2
2
  export * from './Alerts';
3
3
  export * from './ModalAlert';
4
+ export * from './Events';
5
+ export * from './Resources';