@tripian/react 8.3.0 → 9.0.3

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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { InputActionMeta } from 'react-select';
3
- export declare type RSelectOption = {
3
+ export type RSelectOption = {
4
4
  id: number;
5
5
  label: string;
6
6
  payload: {
@@ -6,6 +6,7 @@ interface IFormTemplateProfile {
6
6
  updateUser: (userUpdateRequest: Model.UserUpdateRequest) => Promise<Model.User>;
7
7
  updateCallback: (updatedUser: Model.User) => void;
8
8
  cancel: (value: Model.User) => void;
9
+ forgotPassword: () => void;
9
10
  canChangePassword: boolean;
10
11
  }
11
12
  declare const FormTemplateProfile: React.FC<IFormTemplateProfile>;
@@ -3,6 +3,7 @@ import Model from '@tripian/model';
3
3
  interface IUserPasswordChange {
4
4
  updateUser: (userUpdateRequest: Model.UserUpdateRequest) => Promise<Model.User>;
5
5
  updateCallback: (updatedUser: Model.User) => void;
6
+ forgotPassword: () => void;
6
7
  close: () => void;
7
8
  }
8
9
  declare const UserPasswordChange: React.FC<IUserPasswordChange>;
@@ -1,11 +1,11 @@
1
1
  import Model from '@tripian/model';
2
- declare type QuestionAnswerNext = {
2
+ type QuestionAnswerNext = {
3
3
  id: number;
4
4
  name: string;
5
5
  description: string;
6
6
  subAnswers: Model.SubAnswer[];
7
7
  };
8
- export declare type QuestionNext = {
8
+ export type QuestionNext = {
9
9
  id: number;
10
10
  name: string;
11
11
  order: number;
@@ -1,11 +1,11 @@
1
1
  import Model from '@tripian/model';
2
- declare type QuestionAnswerNext = {
2
+ type QuestionAnswerNext = {
3
3
  id: number;
4
4
  name: string;
5
5
  description: string;
6
6
  subAnswers: Model.SubAnswer[];
7
7
  };
8
- export declare type QuestionNext = {
8
+ export type QuestionNext = {
9
9
  id: number;
10
10
  name: string;
11
11
  order: number;
@@ -1,2 +1,3 @@
1
- declare const Loading: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const Loading: () => React.JSX.Element;
2
3
  export default Loading;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  children: React.ReactElement | React.ReactElement[] | null;
4
4
  border?: boolean;
5
5
  height?: string | number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  configs: {
4
4
  clientId: string;
5
5
  domain: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  cognitoDomain: string;
4
4
  region: string;
5
5
  baseDomain: string;
@@ -7,6 +7,6 @@ interface ICustomPopover {
7
7
  content: JSX.Element;
8
8
  children: JSX.Element;
9
9
  }
10
- export declare type Ref = HTMLButtonElement;
10
+ export type Ref = HTMLButtonElement;
11
11
  declare const CustomPopover: React.ForwardRefExoticComponent<ICustomPopover & React.RefAttributes<HTMLButtonElement>>;
12
12
  export default CustomPopover;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import 'external-svg-loader';
3
- declare type InfoBoxProps = {
3
+ type InfoBoxProps = {
4
4
  iconUrl: string;
5
5
  title: string;
6
6
  description: string;
@@ -1,2 +1,3 @@
1
- declare const PageLoading: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const PageLoading: () => React.JSX.Element;
2
3
  export default PageLoading;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { InputActionMeta } from 'react-select';
3
3
  import './RSelect.scss';
4
- export declare type RSelectOption = {
4
+ export type RSelectOption = {
5
5
  value: string;
6
6
  label: string;
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type RequiredProps = {
2
+ type RequiredProps = {
3
3
  customClassName?: string;
4
4
  };
5
5
  declare const Required: React.FC<RequiredProps>;