@eclass/ui-kit 1.48.0 → 1.49.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.
@@ -3,7 +3,7 @@ import * as Type from '../types';
3
3
  interface ImageBoxProps {
4
4
  backgroundImg: string;
5
5
  title: string;
6
- data?: Type.AcademicList;
6
+ data?: Type.ExtendAcademicList;
7
7
  size?: 'large' | 'small';
8
8
  m?: string;
9
9
  }
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import * as Type from '../types';
3
- export declare const CourseBoxContext: React.Context<Partial<import("@eclass/api").AcademicBox>>;
3
+ export declare const CourseBoxContext: React.Context<Partial<Type.ExtendAcademicList>>;
4
4
  interface IBoxTraditional {
5
- data: Type.AcademicList;
5
+ data: Type.ExtendAcademicList;
6
6
  modalPaymentText?: Type.PaymentText;
7
7
  }
8
8
  export declare function BoxTraditional({ data, modalPaymentText }: IBoxTraditional): JSX.Element;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { AcademicList, WrapperCoursesProps } from '../types';
2
+ import { ExtendAcademicList, WrapperCoursesProps } from '../types';
3
3
  interface IBoxes {
4
4
  type: WrapperCoursesProps['typeBox'];
5
5
  modalPaymentText: WrapperCoursesProps['modalPaymentText'];
6
- data: AcademicList;
6
+ data: ExtendAcademicList;
7
7
  }
8
8
  export declare const Boxes: ({ type, data, modalPaymentText }: IBoxes) => JSX.Element;
9
9
  export {};
@@ -1,6 +1,11 @@
1
1
  import { AcademicBox } from '@eclass/api'
2
2
 
3
- export type AcademicList = AcademicBox
3
+ export type ExtendAcademicList = AcademicBox & {
4
+ soonCourse?: {
5
+ show?: true
6
+ text?: string
7
+ }
8
+ }
4
9
 
5
10
  interface PaymentText {
6
11
  title: string