react-covideo-embed 1.0.62 → 1.0.63

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.
@@ -0,0 +1,7 @@
1
+ import type { AxiosError } from 'axios';
2
+ type LoginParams = {
3
+ id: string;
4
+ relayState?: string;
5
+ };
6
+ export declare const useSSOLoginMutation: () => import("react-query").UseMutationResult<void, AxiosError<any>, LoginParams, unknown>;
7
+ export {};
@@ -1,4 +1,10 @@
1
1
  import { FieldMetaProps } from 'formik';
2
- export declare const FormikErrorMessage: ({ meta }: {
2
+ import { CSSProperties } from 'react';
3
+ interface IProps {
4
+ errorWrapper?: CSSProperties | undefined;
5
+ }
6
+ export declare const FormikErrorMessage: ({ meta, extendStyles, }: {
3
7
  meta: FieldMetaProps<any>;
8
+ extendStyles?: IProps;
4
9
  }) => JSX.Element;
10
+ export {};
@@ -1,8 +1,16 @@
1
- import React from 'react';
1
+ import React, { CSSProperties } from 'react';
2
+ import { FlexProps } from '../styles/layout';
2
3
  interface CustomInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
4
  name: string;
4
- label: string;
5
+ label?: string;
6
+ info?: string | React.ReactNode;
5
7
  isRequired: boolean;
8
+ extendStyles?: {
9
+ errorWrapper?: CSSProperties;
10
+ labelStyles?: CSSProperties;
11
+ inputWrapper?: FlexProps;
12
+ mainWrapper?: FlexProps;
13
+ };
6
14
  }
7
- export declare const FormikInputField: ({ label, isRequired, ...props }: CustomInputProps) => JSX.Element;
15
+ export declare const FormikInputField: React.ForwardRefExoticComponent<CustomInputProps & React.RefAttributes<HTMLInputElement>>;
8
16
  export {};
@@ -1,8 +1,12 @@
1
1
  import React from 'react';
2
+ import { CSSProperties } from 'styled-components';
2
3
  interface IFormikLabelProps {
3
4
  name?: string;
4
5
  label: string;
5
- isRequired: boolean;
6
+ isRequired?: boolean;
7
+ disabled?: boolean;
8
+ info?: string | React.ReactNode;
9
+ labelStyles?: CSSProperties | undefined;
6
10
  }
7
11
  export declare const FormikLabel: React.FC<IFormikLabelProps>;
8
12
  export {};
@@ -30,4 +30,30 @@ interface IStack {
30
30
  height?: string;
31
31
  }
32
32
  export declare const Stack: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IStack, never>;
33
+ export declare const Flex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, FlexProps, never>;
34
+ export interface FlexProps {
35
+ flex?: string | number;
36
+ flexBasis?: string;
37
+ flexDirection?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
38
+ flexGrow?: number;
39
+ flexShrink?: number;
40
+ flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
41
+ gap?: string;
42
+ alignItems?: 'stretch' | 'center' | 'flex-start' | 'flex-end' | 'baseline';
43
+ justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
44
+ width?: string;
45
+ minWidth?: string;
46
+ maxWidth?: string;
47
+ height?: string;
48
+ margin?: string;
49
+ padding?: string;
50
+ border?: string;
51
+ borderLeft?: string;
52
+ borderBottom?: string;
53
+ borderRadius?: string;
54
+ whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line';
55
+ hideOnMobile?: boolean;
56
+ backgroundColor?: string;
57
+ cursor?: string;
58
+ }
33
59
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-covideo-embed",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "private": false,
5
5
  "description": "Covideo platform as an embeddable React component.",
6
6
  "main": "./build/index.js",