@app-studio/web 0.8.66 → 0.8.69
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/components/Alert/Alert/Alert.type.d.ts +5 -5
- package/dist/components/AspectRatio/AspectRatio/AspectRatio.props.d.ts +5 -0
- package/dist/components/AspectRatio/AspectRatio/AspectRatio.view.d.ts +1 -1
- package/dist/components/Avatar/Avatar/Avatar.type.d.ts +4 -4
- package/dist/components/Badge/Badge/Badge.style.d.ts +3 -2
- package/dist/components/Badge/Badge/Badge.type.d.ts +3 -3
- package/dist/components/Button/Button/Button.props.d.ts +2 -2
- package/dist/components/Button/Button/Button.style.d.ts +3 -3
- package/dist/components/Button/Button/Button.view.d.ts +9 -1
- package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +10 -0
- package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.view.d.ts +1 -8
- package/dist/components/File/File.d.ts +7 -3
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +3 -2
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.style.d.ts +2 -2
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +5 -6
- package/dist/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +2 -2
- package/dist/components/Form/Select/Select/Select.props.d.ts +2 -3
- package/dist/components/Form/Select/Select/Select.style.d.ts +2 -2
- package/dist/components/Form/Switch/Switch/Switch.props.d.ts +3 -3
- package/dist/components/Form/Switch/Switch/Switch.style.d.ts +3 -3
- package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +2 -3
- package/dist/components/Form/TextArea/TextArea/TextArea.type.d.ts +6 -6
- package/dist/components/Form/TextField/TextField/TextField.props.d.ts +3 -3
- package/dist/components/Icon/Icon.d.ts +1 -3
- package/dist/components/Layout/Center/Center.props.d.ts +1 -1
- package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +2 -2
- package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +1 -1
- package/dist/components/Layout/View/View.d.ts +3 -3
- package/dist/components/Layout/configs/Input.style.d.ts +3 -3
- package/dist/components/Layout/configs/Input.type.d.ts +5 -5
- package/dist/components/Loader/Loader/Loader.view.d.ts +8 -1
- package/dist/components/Message/Message/Message.style.d.ts +2 -2
- package/dist/components/Message/Message/Message.type.d.ts +8 -7
- package/dist/components/Modal/Modal/Modal.props.d.ts +18 -5
- package/dist/components/Modal/Modal/Modal.style.d.ts +4 -4
- package/dist/components/Modal/Modal/Modal.view.d.ts +16 -2
- package/dist/components/Table/Table/Table.context.d.ts +16 -13
- package/dist/components/Table/Table/Table.view.d.ts +9 -8
- package/dist/components/Text/Text/Text.props.d.ts +2 -2
- package/dist/components/Text/Text/Text.view.d.ts +7 -1
- package/dist/components/Text/Text.d.ts +1 -2
- package/dist/components/Toggle/Toggle/Toggle.view.d.ts +7 -1
- package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.props.d.ts +5 -1
- package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.view.d.ts +1 -1
- package/dist/components/Uploader/Uploader/Uploader.props.d.ts +7 -0
- package/dist/web.cjs.development.js +318 -312
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +319 -313
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +321 -316
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
2
|
export declare type Variant = 'default' | 'info' | 'success' | 'error' | 'warning';
|
|
3
3
|
export declare type AlertStyles = {
|
|
4
|
-
container?:
|
|
5
|
-
title?:
|
|
6
|
-
description?:
|
|
7
|
-
icon?:
|
|
4
|
+
container?: ViewProps;
|
|
5
|
+
title?: ViewProps;
|
|
6
|
+
description?: ViewProps;
|
|
7
|
+
icon?: ViewProps;
|
|
8
8
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AspectRatioProps } from './AspectRatio.props';
|
|
3
|
-
export declare const AspectRatioView: ({ ratio, children, ...props }: AspectRatioProps) => React.JSX.Element;
|
|
3
|
+
export declare const AspectRatioView: ({ ratio, children, views, ...props }: AspectRatioProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
2
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
3
|
export declare type AvatarStyles = {
|
|
4
|
-
container?:
|
|
5
|
-
image?:
|
|
6
|
-
fallback?:
|
|
4
|
+
container?: ViewProps;
|
|
5
|
+
image?: ViewProps;
|
|
6
|
+
fallback?: ViewProps;
|
|
7
7
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
2
3
|
import { Shape, Size } from './Badge.type';
|
|
3
4
|
export declare type BadgeSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
-
export declare const BadgeSizes: Record<Size,
|
|
5
|
+
export declare const BadgeSizes: Record<Size, ViewProps>;
|
|
5
6
|
export declare const BadgeShapes: Record<Shape, number | string>;
|
|
6
7
|
export declare const PositionStyles: {
|
|
7
8
|
[key: string]: React.CSSProperties;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
2
|
export declare type Shape = 'sharp' | 'rounded' | 'pillShaped';
|
|
3
3
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
export declare type Variant = 'filled' | 'outline' | 'link' | 'ghost';
|
|
5
5
|
export declare type Position = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
6
6
|
export declare type BadgeStyles = {
|
|
7
|
-
container?:
|
|
8
|
-
text?:
|
|
7
|
+
container?: ViewProps;
|
|
8
|
+
text?: ViewProps;
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ButtonProps as $ButtonProps, Shadow, ViewProps } from 'app-studio';
|
|
3
3
|
import { Elevation } from '../../../utils/elevation';
|
|
4
4
|
import { IconPosition, Shape, Size, Variant, LoaderPosition, Effects } from './Button.type';
|
|
@@ -17,7 +17,7 @@ export interface ButtonProps extends Omit<$ButtonProps, 'size'> {
|
|
|
17
17
|
isIconRounded?: boolean;
|
|
18
18
|
onClick?: Function;
|
|
19
19
|
size?: Size;
|
|
20
|
-
shadow?: Shadow | Elevation |
|
|
20
|
+
shadow?: Shadow | Elevation | ViewProps;
|
|
21
21
|
shape?: Shape;
|
|
22
22
|
ariaLabel?: string;
|
|
23
23
|
variant?: Variant;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
2
|
import { Shape, Size } from './Button.type';
|
|
3
|
-
export declare const ButtonSizes: Record<Size,
|
|
3
|
+
export declare const ButtonSizes: Record<Size, ViewProps>;
|
|
4
4
|
export declare const ButtonShapes: Record<Shape, number | string>;
|
|
5
|
-
export declare const IconSizes: Record<Size,
|
|
5
|
+
export declare const IconSizes: Record<Size, ViewProps>;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
2
3
|
import { ButtonProps } from './Button.props';
|
|
3
|
-
|
|
4
|
+
interface Props extends ButtonProps {
|
|
5
|
+
views?: {
|
|
6
|
+
container?: ViewProps;
|
|
7
|
+
link?: ViewProps;
|
|
8
|
+
horizontal?: ViewProps;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
declare const ButtonView: React.FC<Props>;
|
|
4
12
|
export default ButtonView;
|
|
@@ -7,3 +7,13 @@ export interface DragAndDropProps {
|
|
|
7
7
|
containerProps?: ViewProps;
|
|
8
8
|
itemProps?: ViewProps;
|
|
9
9
|
}
|
|
10
|
+
export interface DragAndDropViewProps extends DragAndDropProps {
|
|
11
|
+
draggedIndex: number | null;
|
|
12
|
+
itemRefs: React.MutableRefObject<(HTMLDivElement | null)[]>;
|
|
13
|
+
renderItem?: (item: any, index: number) => React.ReactNode;
|
|
14
|
+
handleDragStart: (e: React.MouseEvent | React.TouchEvent, index: number) => void;
|
|
15
|
+
views?: {
|
|
16
|
+
container?: ViewProps;
|
|
17
|
+
item?: ViewProps;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface DragAndDropViewProps extends DragAndDropProps {
|
|
4
|
-
draggedIndex: number | null;
|
|
5
|
-
itemRefs: React.MutableRefObject<(HTMLDivElement | null)[]>;
|
|
6
|
-
renderItem?: (item: any, index: number) => React.ReactNode;
|
|
7
|
-
handleDragStart: (e: React.MouseEvent | React.TouchEvent, index: number) => void;
|
|
8
|
-
}
|
|
2
|
+
import { DragAndDropViewProps } from './DragAndDrop.props';
|
|
9
3
|
export declare const DragAndDropView: React.FC<DragAndDropViewProps>;
|
|
10
|
-
export {};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ViewProps, ImageProps } from 'app-studio';
|
|
3
|
-
export
|
|
3
|
+
export interface FileProps extends ViewProps {
|
|
4
4
|
src: string;
|
|
5
5
|
color?: string;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
views?: {
|
|
7
|
+
container?: ViewProps;
|
|
8
|
+
image?: ImageProps;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare const FileSVG: ({ src, color, views, themeMode: elementMode, ...props }: FileProps) => React.JSX.Element;
|
|
8
12
|
export declare const FileImage: ({ path, ...props }: {
|
|
9
13
|
path: string;
|
|
10
14
|
} & ImageProps) => React.JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Elevation } from '../../../../utils/elevation';
|
|
3
3
|
import { InputProps, Shadow } from 'app-studio';
|
|
4
4
|
import { CheckboxStyles, Size } from './Checkbox.type';
|
|
5
|
+
import { ViewProps } from 'app-studio';
|
|
5
6
|
export interface CheckboxProps extends Omit<InputProps, 'size'> {
|
|
6
7
|
id?: string;
|
|
7
8
|
icon?: React.ReactNode;
|
|
@@ -18,7 +19,7 @@ export interface CheckboxProps extends Omit<InputProps, 'size'> {
|
|
|
18
19
|
onValueChange?: Function;
|
|
19
20
|
views?: CheckboxStyles;
|
|
20
21
|
size?: Size;
|
|
21
|
-
shadow?: Shadow | Elevation |
|
|
22
|
+
shadow?: Shadow | Elevation | ViewProps;
|
|
22
23
|
infoText?: string;
|
|
23
24
|
}
|
|
24
25
|
export interface CheckboxViewProps extends CheckboxProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
2
|
import { Size } from './Checkbox.type';
|
|
3
|
-
export declare const Sizes: Record<Size,
|
|
3
|
+
export declare const Sizes: Record<Size, ViewProps>;
|
|
4
4
|
export declare const IconSizes: Record<Size, number>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
1
|
import { Elevation } from '../../../../utils/elevation';
|
|
3
|
-
import { InputProps, Shadow } from 'app-studio';
|
|
2
|
+
import { InputProps, Shadow, ViewProps } from 'app-studio';
|
|
4
3
|
import { Country, CountryPickerStyles, Shape, Size, Variant } from './CountryPicker.type';
|
|
5
4
|
export interface CountryPickerProps extends Omit<InputProps, 'size'> {
|
|
6
5
|
id?: string;
|
|
@@ -19,7 +18,7 @@ export interface CountryPickerProps extends Omit<InputProps, 'size'> {
|
|
|
19
18
|
size?: Size;
|
|
20
19
|
value?: string | number;
|
|
21
20
|
variant?: Variant;
|
|
22
|
-
shadow?: Shadow | Elevation |
|
|
21
|
+
shadow?: Shadow | Elevation | ViewProps;
|
|
23
22
|
}
|
|
24
23
|
export interface CountryPickerViewProps extends CountryPickerProps {
|
|
25
24
|
isHovered?: boolean;
|
|
@@ -36,12 +35,12 @@ export interface CountryPickerViewProps extends CountryPickerProps {
|
|
|
36
35
|
export interface CountryPickerDropDownProps extends Omit<InputProps, 'size'> {
|
|
37
36
|
size?: Size;
|
|
38
37
|
callback?: Function;
|
|
39
|
-
options
|
|
38
|
+
options?: Array<Country>;
|
|
40
39
|
views?: CountryPickerStyles;
|
|
41
40
|
}
|
|
42
|
-
export interface DropDownItemProps extends
|
|
41
|
+
export interface DropDownItemProps extends InputProps {
|
|
43
42
|
callback?: Function;
|
|
44
|
-
option
|
|
43
|
+
option?: string;
|
|
45
44
|
size?: Size;
|
|
46
45
|
views?: CountryPickerStyles;
|
|
47
46
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Elevation } from '../../../../utils/elevation';
|
|
3
3
|
import { Shadow, ViewProps } from 'app-studio';
|
|
4
4
|
import { DatePickerStyles, Shape, Size, Variant } from './DatePicker.type';
|
|
@@ -62,7 +62,7 @@ export interface DatePickerProps extends Omit<ViewProps, 'size'> {
|
|
|
62
62
|
/**
|
|
63
63
|
* Adds a shadow effect to the DatePicker.
|
|
64
64
|
*/
|
|
65
|
-
shadow?: Shadow | Elevation |
|
|
65
|
+
shadow?: Shadow | Elevation | ViewProps;
|
|
66
66
|
}
|
|
67
67
|
export interface DatePickerViewProps extends DatePickerProps {
|
|
68
68
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
1
|
import { Elevation } from '../../../../utils/elevation';
|
|
3
|
-
import { InputProps, Shadow } from 'app-studio';
|
|
2
|
+
import { InputProps, Shadow, ViewProps } from 'app-studio';
|
|
4
3
|
import { SelectStyles, Shape, Size, Variant, Option } from './Select.type';
|
|
5
4
|
export interface SelectProps extends Omit<InputProps, 'size'> {
|
|
6
5
|
id?: string;
|
|
@@ -18,7 +17,7 @@ export interface SelectProps extends Omit<InputProps, 'size'> {
|
|
|
18
17
|
variant?: Variant;
|
|
19
18
|
views?: SelectStyles;
|
|
20
19
|
size?: Size;
|
|
21
|
-
shadow?: Shadow | Elevation |
|
|
20
|
+
shadow?: Shadow | Elevation | ViewProps;
|
|
22
21
|
isScrollable?: boolean;
|
|
23
22
|
}
|
|
24
23
|
export interface SelectViewProps extends SelectProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
2
|
import { Size } from './Select.type';
|
|
3
|
-
export declare const Sizes: Record<Size,
|
|
3
|
+
export declare const Sizes: Record<Size, ViewProps>;
|
|
4
4
|
export declare const IconSizes: Record<Size, number>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Elevation } from '../../../../utils/elevation';
|
|
3
|
-
import { InputProps, Shadow } from 'app-studio';
|
|
3
|
+
import { InputProps, Shadow, ViewProps } from 'app-studio';
|
|
4
4
|
import { Size, SwitchStyles } from './Switch.type';
|
|
5
5
|
export interface SwitchProps extends Omit<InputProps, 'size'> {
|
|
6
6
|
activeChild?: React.ReactNode;
|
|
@@ -11,7 +11,7 @@ export interface SwitchProps extends Omit<InputProps, 'size'> {
|
|
|
11
11
|
name?: string;
|
|
12
12
|
inActiveChild?: React.ReactNode;
|
|
13
13
|
views?: SwitchStyles;
|
|
14
|
-
shadow?: Shadow | Elevation |
|
|
14
|
+
shadow?: Shadow | Elevation | ViewProps;
|
|
15
15
|
size?: Size;
|
|
16
16
|
labelPosition?: 'left' | 'right';
|
|
17
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
2
|
import { Size } from './Switch.type';
|
|
3
|
-
export declare const KnobSizes: Record<Size,
|
|
4
|
-
export declare const SliderSizes: Record<Size,
|
|
3
|
+
export declare const KnobSizes: Record<Size, ViewProps>;
|
|
4
|
+
export declare const SliderSizes: Record<Size, ViewProps>;
|
|
5
5
|
export declare const SliderPadding: Record<Size, Record<string, number>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { InputProps, Shadow } from 'app-studio';
|
|
1
|
+
import { InputProps, Shadow, ViewProps } from 'app-studio';
|
|
3
2
|
import { Elevation } from '../../../../utils/elevation';
|
|
4
3
|
import { Shape, Size, TextAreaStyles, Variant } from './TextArea.type';
|
|
5
4
|
export interface TextAreaProps extends Omit<InputProps, 'size'> {
|
|
@@ -22,7 +21,7 @@ export interface TextAreaProps extends Omit<InputProps, 'size'> {
|
|
|
22
21
|
onBlur?: (value: any) => void;
|
|
23
22
|
onFocus?: () => void;
|
|
24
23
|
size?: Size;
|
|
25
|
-
shadow?: Shadow | Elevation |
|
|
24
|
+
shadow?: Shadow | Elevation | ViewProps;
|
|
26
25
|
shape?: Shape;
|
|
27
26
|
views?: TextAreaStyles;
|
|
28
27
|
value?: string | number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
2
|
export declare type Variant = 'outline' | 'default' | 'none';
|
|
3
3
|
export declare type Shape = 'default' | 'sharp' | 'rounded';
|
|
4
4
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
5
|
export declare type TextAreaStyles = {
|
|
6
|
-
box?:
|
|
7
|
-
text?:
|
|
8
|
-
label?:
|
|
9
|
-
helperText?:
|
|
10
|
-
field?:
|
|
6
|
+
box?: ViewProps;
|
|
7
|
+
text?: ViewProps;
|
|
8
|
+
label?: ViewProps;
|
|
9
|
+
helperText?: ViewProps;
|
|
10
|
+
field?: ViewProps;
|
|
11
11
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { InputProps, Shadow } from 'app-studio';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps, Shadow, ViewProps } from 'app-studio';
|
|
3
3
|
import { Elevation } from '../../../../utils/elevation';
|
|
4
4
|
import { Shape, Size, TextFieldStyles, Variant } from './TextField.type';
|
|
5
5
|
export interface TextFieldProps extends Omit<InputProps, 'size'> {
|
|
@@ -21,7 +21,7 @@ export interface TextFieldProps extends Omit<InputProps, 'size'> {
|
|
|
21
21
|
onClick?: () => void;
|
|
22
22
|
onFocus?: () => void;
|
|
23
23
|
size?: Size;
|
|
24
|
-
shadow?: Shadow | Elevation |
|
|
24
|
+
shadow?: Shadow | Elevation | ViewProps;
|
|
25
25
|
shape?: Shape;
|
|
26
26
|
views?: TextFieldStyles;
|
|
27
27
|
value?: string;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export interface IconProps extends
|
|
4
|
-
size?: number;
|
|
3
|
+
export interface IconProps extends ViewProps {
|
|
5
4
|
color?: string;
|
|
6
5
|
filled?: boolean;
|
|
7
|
-
strokeWidth?: number;
|
|
8
6
|
orientation?: 'left' | 'right' | 'up' | 'down';
|
|
9
7
|
}
|
|
10
8
|
export declare const ChevronIcon: React.FC<IconProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Shape, Size, TextFieldStyles, Variant } from '../../../../Layout/configs/Input.type';
|
|
3
3
|
import { Elevation } from '../../../../../utils/elevation';
|
|
4
4
|
import { Shadow, ViewProps } from 'app-studio';
|
|
@@ -62,5 +62,5 @@ export interface ContentProps extends Omit<ViewProps, 'size'> {
|
|
|
62
62
|
/**
|
|
63
63
|
* The shadow effect applied to the Content component.
|
|
64
64
|
*/
|
|
65
|
-
shadow?: Shadow | Elevation |
|
|
65
|
+
shadow?: Shadow | Elevation | ViewProps;
|
|
66
66
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ViewProps } from 'app-studio';
|
|
2
|
+
import type { ViewProps as $ViewProps } from 'app-studio';
|
|
3
|
+
export declare type ViewProps = $ViewProps;
|
|
3
4
|
export declare const Top: (props: ViewProps) => React.JSX.Element;
|
|
4
5
|
export declare const Bottom: (props: ViewProps) => React.JSX.Element;
|
|
5
6
|
export declare const Left: (props: ViewProps) => React.JSX.Element;
|
|
6
7
|
export declare const Right: (props: ViewProps) => React.JSX.Element;
|
|
7
8
|
export declare const Inline: (props: ViewProps) => React.JSX.Element;
|
|
8
|
-
export
|
|
9
|
-
export declare const View: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & ViewProps>;
|
|
9
|
+
export declare const View: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & $ViewProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
2
|
import { Shape, Size, Variant } from './Input.type';
|
|
3
|
-
export declare const Shapes: Record<Shape,
|
|
3
|
+
export declare const Shapes: Record<Shape, ViewProps>;
|
|
4
4
|
export declare const LabelSizes: Record<Size, number>;
|
|
5
|
-
export declare const InputVariants: Record<Variant,
|
|
5
|
+
export declare const InputVariants: Record<Variant, ViewProps>;
|
|
6
6
|
export declare const PadddingWithLabel: {
|
|
7
7
|
paddingTop: number;
|
|
8
8
|
paddingBottom: number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
2
|
export declare type Variant = 'outline' | 'default' | 'none';
|
|
3
3
|
export declare type Shape = 'default' | 'sharp' | 'rounded' | 'pillShaped';
|
|
4
4
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
5
|
export declare type TextFieldStyles = {
|
|
6
|
-
box?:
|
|
7
|
-
text?:
|
|
8
|
-
label?:
|
|
9
|
-
helperText?:
|
|
6
|
+
box?: ViewProps;
|
|
7
|
+
text?: ViewProps;
|
|
8
|
+
label?: ViewProps;
|
|
9
|
+
helperText?: ViewProps;
|
|
10
10
|
};
|
|
11
11
|
export declare type Wrap = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
12
12
|
export declare type Justify = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
2
3
|
import { LoaderProps } from '../Loader/Loader.props';
|
|
3
|
-
|
|
4
|
+
interface Props extends LoaderProps {
|
|
5
|
+
views?: {
|
|
6
|
+
container?: ViewProps;
|
|
7
|
+
text?: ViewProps;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
declare const LoaderView: React.FC<Props>;
|
|
4
11
|
export default LoaderView;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
2
|
import { MessageType, Shape, Size } from './Message.type';
|
|
3
|
-
export declare const ContainerShapes: Record<Shape,
|
|
3
|
+
export declare const ContainerShapes: Record<Shape, ViewProps>;
|
|
4
4
|
export declare const HeaderIconSizes: Record<Size, number>;
|
|
5
5
|
export declare const Themes: Record<MessageType, any>;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
1
2
|
export declare type Position = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
2
3
|
export declare type Shape = 'sharp' | 'rounded';
|
|
3
4
|
export declare type CloseButtonPosition = 'left' | 'right' | 'none';
|
|
4
5
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
6
|
export declare type MessageType = 'info' | 'warning' | 'error' | 'success';
|
|
6
7
|
export declare type MessageViewStyles = {
|
|
7
|
-
container?:
|
|
8
|
-
title?:
|
|
9
|
-
subtitle?:
|
|
10
|
-
icon?:
|
|
11
|
-
actionText?:
|
|
8
|
+
container?: ViewProps;
|
|
9
|
+
title?: ViewProps;
|
|
10
|
+
subtitle?: ViewProps;
|
|
11
|
+
icon?: ViewProps;
|
|
12
|
+
actionText?: ViewProps;
|
|
12
13
|
closingIcon?: {
|
|
13
|
-
container?:
|
|
14
|
-
icon?:
|
|
14
|
+
container?: ViewProps;
|
|
15
|
+
icon?: ViewProps;
|
|
15
16
|
};
|
|
16
17
|
};
|
|
17
18
|
export declare type Theme = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Elevation } from '../../../utils/elevation';
|
|
3
3
|
import { Shadow, ViewProps } from 'app-studio';
|
|
4
4
|
import { CloseButtonPosition, Position, Shape, Size } from './Modal.type';
|
|
@@ -46,7 +46,7 @@ export interface ModalProps extends Omit<ViewProps, 'size'> {
|
|
|
46
46
|
/**
|
|
47
47
|
* Applies a shadow effect to the button.
|
|
48
48
|
*/
|
|
49
|
-
shadow?: Shadow | Elevation |
|
|
49
|
+
shadow?: Shadow | Elevation | ViewProps;
|
|
50
50
|
}
|
|
51
51
|
export interface ModalType extends React.FunctionComponent<ModalProps> {
|
|
52
52
|
/**
|
|
@@ -74,7 +74,7 @@ export interface ModalType extends React.FunctionComponent<ModalProps> {
|
|
|
74
74
|
*/
|
|
75
75
|
Layout: React.FC<ModalLayoutProps>;
|
|
76
76
|
}
|
|
77
|
-
export interface OverlayProps extends Omit<ViewProps, '
|
|
77
|
+
export interface OverlayProps extends Omit<ViewProps, 'position' | 'isOpen'> {
|
|
78
78
|
/**
|
|
79
79
|
* The content of the Overlay
|
|
80
80
|
*/
|
|
@@ -101,6 +101,10 @@ export interface OverlayProps extends Omit<ViewProps, 'size'> {
|
|
|
101
101
|
onClose: () => void;
|
|
102
102
|
}
|
|
103
103
|
export interface HeaderProps extends Omit<ViewProps, 'size'> {
|
|
104
|
+
views?: {
|
|
105
|
+
container?: ViewProps;
|
|
106
|
+
header?: ViewProps;
|
|
107
|
+
};
|
|
104
108
|
/**
|
|
105
109
|
* The content of the header
|
|
106
110
|
*/
|
|
@@ -130,6 +134,9 @@ export interface ModalLayoutProps {
|
|
|
130
134
|
onHide?: (name?: string, props?: any) => void;
|
|
131
135
|
}
|
|
132
136
|
export interface ContainerProps extends Omit<ViewProps, 'size'> {
|
|
137
|
+
views?: {
|
|
138
|
+
container?: ViewProps;
|
|
139
|
+
};
|
|
133
140
|
/**
|
|
134
141
|
* The content of the modal container
|
|
135
142
|
*/
|
|
@@ -145,9 +152,15 @@ export interface ContainerProps extends Omit<ViewProps, 'size'> {
|
|
|
145
152
|
/**
|
|
146
153
|
* Set a shadow effect on the button.
|
|
147
154
|
*/
|
|
148
|
-
shadow?: Shadow | Elevation |
|
|
155
|
+
shadow?: Shadow | Elevation | ViewProps;
|
|
149
156
|
}
|
|
150
|
-
export interface BodyProps extends
|
|
157
|
+
export interface BodyProps extends ViewProps {
|
|
158
|
+
views?: {
|
|
159
|
+
view?: ViewProps;
|
|
160
|
+
};
|
|
151
161
|
}
|
|
152
162
|
export interface FooterProps extends ViewProps {
|
|
163
|
+
views?: {
|
|
164
|
+
container?: ViewProps;
|
|
165
|
+
};
|
|
153
166
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare const ContainerShapes: Record<Shape,
|
|
4
|
-
export declare const OverlayAlignments: Record<
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
import { Shape, Size } from './Modal.type';
|
|
3
|
+
export declare const ContainerShapes: Record<Shape, ViewProps>;
|
|
4
|
+
export declare const OverlayAlignments: Record<string, ViewProps>;
|
|
5
5
|
export declare const HeaderIconSizes: Record<Size, number>;
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
3
|
+
import { BodyProps, ContainerProps, FooterProps, HeaderProps } from '../Modal/Modal.props';
|
|
4
|
+
import { Position } from './Modal.type';
|
|
5
|
+
export interface OverlayProps {
|
|
6
|
+
views?: {
|
|
7
|
+
container?: ViewProps;
|
|
8
|
+
view?: ViewProps;
|
|
9
|
+
};
|
|
10
|
+
blur?: number;
|
|
11
|
+
isOpen?: boolean;
|
|
12
|
+
isClosePrevented?: boolean;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
position?: Position;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const ModalOverlay: React.FC<OverlayProps & any>;
|
|
4
18
|
export declare const ModalContainer: React.FC<ContainerProps>;
|
|
5
19
|
export declare const ModalHeader: React.FC<HeaderProps>;
|
|
6
20
|
export declare const ModalBody: React.FC<BodyProps>;
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
2
3
|
export declare type TableViewStyles = {
|
|
3
|
-
table?:
|
|
4
|
-
thead?:
|
|
5
|
-
tfoot?:
|
|
6
|
-
tbody?:
|
|
7
|
-
tr?:
|
|
8
|
-
td?:
|
|
9
|
-
th?:
|
|
10
|
-
caption?:
|
|
4
|
+
table?: ViewProps;
|
|
5
|
+
thead?: ViewProps;
|
|
6
|
+
tfoot?: ViewProps;
|
|
7
|
+
tbody?: ViewProps;
|
|
8
|
+
tr?: ViewProps;
|
|
9
|
+
td?: ViewProps;
|
|
10
|
+
th?: ViewProps;
|
|
11
|
+
caption?: ViewProps;
|
|
11
12
|
};
|
|
13
|
+
interface TableContextProps {
|
|
14
|
+
views: TableViewStyles;
|
|
15
|
+
onRowClick?: Function;
|
|
16
|
+
}
|
|
12
17
|
export declare const TableProvider: React.FC<{
|
|
13
18
|
children: React.ReactNode;
|
|
14
19
|
views?: TableViewStyles;
|
|
15
20
|
onRowClick?: Function;
|
|
16
21
|
}>;
|
|
17
|
-
export declare const useTableContext: () =>
|
|
18
|
-
|
|
19
|
-
onRowClick?: Function | undefined;
|
|
20
|
-
};
|
|
22
|
+
export declare const useTableContext: () => TableContextProps;
|
|
23
|
+
export {};
|