@reapit/elements 4.0.0-beta.3 → 4.0.0-beta.5
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.
- package/dist/cjs/components/drawer/drawer.d.ts +1 -0
- package/dist/cjs/components/file-input/file-input.d.ts +8 -1
- package/dist/cjs/components/layout/__styles__/index.d.ts +1 -3
- package/dist/cjs/components/layout/layout.d.ts +1 -1
- package/dist/cjs/components/nav/__styles__/index.d.ts +3 -0
- package/dist/cjs/components/page-header/__styles__/index.d.ts +4 -0
- package/dist/cjs/components/page-header/page-header.d.ts +4 -0
- package/dist/cjs/components/tabs/__styles__/index.d.ts +1 -0
- package/dist/cjs/components/tabs/tabs.d.ts +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/drawer/drawer.d.ts +1 -0
- package/dist/esm/components/file-input/file-input.d.ts +8 -1
- package/dist/esm/components/layout/__styles__/index.d.ts +1 -3
- package/dist/esm/components/layout/layout.d.ts +1 -1
- package/dist/esm/components/nav/__styles__/index.d.ts +3 -0
- package/dist/esm/components/page-header/__styles__/index.d.ts +4 -0
- package/dist/esm/components/page-header/page-header.d.ts +4 -0
- package/dist/esm/components/tabs/__styles__/index.d.ts +1 -0
- package/dist/esm/components/tabs/tabs.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.css +65 -61
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ChangeEvent, Dispatch, SetStateAction, MouseEvent } from 'react';
|
|
1
|
+
import React, { ChangeEvent, Dispatch, SetStateAction, MouseEvent, FC } from 'react';
|
|
2
2
|
export interface FileInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
3
|
onFileUpload?: (uploadImageModel: CreateImageUploadModel) => Promise<any | ImageUploadModel>;
|
|
4
4
|
onFileView?: (base64: string) => void;
|
|
@@ -7,6 +7,9 @@ export interface FileInputProps extends React.InputHTMLAttributes<HTMLInputEleme
|
|
|
7
7
|
label?: string;
|
|
8
8
|
fileName?: string;
|
|
9
9
|
}
|
|
10
|
+
export interface FilePreviewImageProps {
|
|
11
|
+
src?: string;
|
|
12
|
+
}
|
|
10
13
|
export type FileInputWrapped = React.ForwardRefExoticComponent<FileInputProps & React.RefAttributes<React.InputHTMLAttributes<HTMLInputElement>>>;
|
|
11
14
|
export interface CreateImageUploadModel {
|
|
12
15
|
name?: string;
|
|
@@ -18,4 +21,8 @@ export interface ImageUploadModel {
|
|
|
18
21
|
export declare const handleFileChange: (setFileName: Dispatch<SetStateAction<string>>, fileName: string, onFileUpload?: ((uploadImageModel: CreateImageUploadModel) => Promise<string | ImageUploadModel>) | undefined) => (event: ChangeEvent<HTMLInputElement>) => FileReader | undefined;
|
|
19
22
|
export declare const handleFileClear: (setFileName: Dispatch<SetStateAction<string>>) => (event: MouseEvent<HTMLSpanElement>) => void;
|
|
20
23
|
export declare const handleFileView: (onFileView: (fileUrl: string) => void, fileUrl: string) => (event: MouseEvent<HTMLSpanElement>) => void;
|
|
24
|
+
/** Safari has a 2mb limit on data urls and will not decode the string to determine the file size
|
|
25
|
+
* using window.atob as this will throw too - this component will display a notification if the user agent is safari
|
|
26
|
+
* and a base64 string is passed and render otherwise */
|
|
27
|
+
export declare const FilePreviewImage: FC<FilePreviewImageProps>;
|
|
21
28
|
export declare const FileInput: FileInputWrapped;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const elHasGreyBackground: import("@linaria/core").LinariaClassName;
|
|
3
|
+
export declare const elHasMaxWidth: import("@linaria/core").LinariaClassName;
|
|
3
4
|
export declare const ElMainContainer: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & Record<never, unknown> & {
|
|
4
5
|
as?: import("react").ElementType<any> | undefined;
|
|
5
6
|
}>;
|
|
6
7
|
export declare const ElPageContainer: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & Record<never, unknown> & {
|
|
7
8
|
as?: import("react").ElementType<any> | undefined;
|
|
8
9
|
}>;
|
|
9
|
-
export declare const ElPageContainerMaxWidth: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & Record<never, unknown> & {
|
|
10
|
-
as?: import("react").ElementType<any> | undefined;
|
|
11
|
-
}>;
|
|
12
10
|
export declare const ElSecondaryNavContainer: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & Record<never, unknown> & {
|
|
13
11
|
as?: import("react").ElementType<any> | undefined;
|
|
14
12
|
}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, FC } from 'react';
|
|
2
2
|
export interface ContainerProps extends HTMLAttributes<HTMLElement> {
|
|
3
3
|
hasGreyBackground?: boolean;
|
|
4
|
+
hasMaxWidth?: boolean;
|
|
4
5
|
}
|
|
5
6
|
export interface ContainerFlexProps extends ContainerProps {
|
|
6
7
|
isFlexRow?: boolean;
|
|
@@ -29,7 +30,6 @@ export interface ContainerFlexProps extends ContainerProps {
|
|
|
29
30
|
}
|
|
30
31
|
export declare const MainContainer: FC<ContainerProps>;
|
|
31
32
|
export declare const PageContainer: FC<ContainerProps>;
|
|
32
|
-
export declare const PageContainerMaxWidth: FC<ContainerProps>;
|
|
33
33
|
export declare const SecondaryNavContainer: FC<ContainerProps>;
|
|
34
34
|
export declare const Molecule: FC<ContainerProps>;
|
|
35
35
|
export declare const FlexContainer: FC<ContainerFlexProps>;
|
|
@@ -39,3 +39,6 @@ export declare const elAppSwitcherOpen: import("@linaria/core").LinariaClassName
|
|
|
39
39
|
export declare const ElNavResponsiveAppSwitcherWrap: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
40
40
|
as?: import("react").ElementType<any> | undefined;
|
|
41
41
|
}>;
|
|
42
|
+
export declare const ElNavResponsiveAppSwitcherIconWrap: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
43
|
+
as?: import("react").ElementType<any> | undefined;
|
|
44
|
+
}>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export declare const elPageHeaderMaxWidth: import("@linaria/core").LinariaClassName;
|
|
2
3
|
export declare const ElPageHeaderContainer: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
3
4
|
as?: import("react").ElementType<any> | undefined;
|
|
4
5
|
}>;
|
|
5
6
|
export declare const ElPageHeaderTitleContainer: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
6
7
|
as?: import("react").ElementType<any> | undefined;
|
|
7
8
|
}>;
|
|
9
|
+
export declare const ElPageHeaderWrapInner: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
}>;
|
|
8
12
|
export declare const ElPageHeaderWrap: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
9
13
|
as?: import("react").ElementType<any> | undefined;
|
|
10
14
|
}>;
|
|
@@ -4,6 +4,7 @@ import { AvatarProps } from '../avatar';
|
|
|
4
4
|
import { TagProps } from '../tag';
|
|
5
5
|
import { ButtonProps } from '../button';
|
|
6
6
|
import { BreadCrumbProps } from '../breadcrumb';
|
|
7
|
+
import { TabsProps } from '../tabs';
|
|
7
8
|
export interface PageHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
9
|
avatar?: AvatarProps;
|
|
9
10
|
pageTitle: TypographyProps;
|
|
@@ -12,8 +13,11 @@ export interface PageHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
12
13
|
breadcrumb?: BreadCrumbProps;
|
|
13
14
|
tags?: TagProps[];
|
|
14
15
|
buttons?: ButtonProps[];
|
|
16
|
+
tabs?: TabsProps;
|
|
17
|
+
hasMaxWidth?: boolean;
|
|
15
18
|
}
|
|
16
19
|
export declare const PageHeaderWrap: FC<HTMLAttributes<HTMLDivElement>>;
|
|
20
|
+
export declare const PageHeaderWrapInner: FC<HTMLAttributes<HTMLDivElement>>;
|
|
17
21
|
export declare const PageHeaderContainer: FC<HTMLAttributes<HTMLDivElement>>;
|
|
18
22
|
export declare const PageHeaderTitleContainer: FC<HTMLAttributes<HTMLDivElement>>;
|
|
19
23
|
export declare const PageHeader: FC<PageHeaderProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const elTabsItem: import("@linaria/core").LinariaClassName;
|
|
3
3
|
export declare const elTabsFullWidth: import("@linaria/core").LinariaClassName;
|
|
4
|
+
export declare const elTabsHasNoBorder: import("@linaria/core").LinariaClassName;
|
|
4
5
|
export declare const ElTabs: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Record<never, unknown> & {
|
|
5
6
|
as?: import("react").ElementType<any> | undefined;
|
|
6
7
|
}>;
|