@app-studio/web 0.8.65 → 0.8.66
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.props.d.ts +1 -1
- package/dist/components/Alert/Alert/Alert.view.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/Avatar/Avatar/Avatar.props.d.ts +1 -1
- package/dist/components/Avatar/Avatar/Avatar.view.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Badge/Badge/Badge.props.d.ts +1 -2
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/examples/index.d.ts +0 -1
- package/dist/components/Button/Button/Button.props.d.ts +0 -1
- package/dist/components/Button/examples/index.d.ts +0 -1
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +1 -2
- package/dist/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +1 -1
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +3 -4
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.view.d.ts +1 -2
- package/dist/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +1 -2
- package/dist/components/Form/Password/Password/Password.state.d.ts +1 -2
- package/dist/components/Form/Select/Select/Select.props.d.ts +3 -4
- package/dist/components/Form/Switch/Switch/Switch.props.d.ts +1 -2
- package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +1 -2
- package/dist/components/Form/TextField/TextField/TextField.props.d.ts +1 -2
- package/dist/components/Layout/Center/Center.d.ts +2 -2
- package/dist/components/Layout/Horizontal/Horizontal.d.ts +2 -2
- package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +1 -1
- package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +1 -5
- package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +1 -1
- package/dist/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +1 -1
- package/dist/components/Layout/Input/HelperText/HelperText.props.d.ts +1 -1
- package/dist/components/Layout/Vertical/Vertical.d.ts +2 -2
- package/dist/components/Layout/View/View.d.ts +1 -1
- package/dist/components/Link/Link/Link.props.d.ts +1 -2
- package/dist/components/Message/Message/Message.props.d.ts +3 -3
- package/dist/components/Message/Message/Message.type.d.ts +1 -1
- package/dist/components/Message/Message/Message.view.d.ts +1 -1
- package/dist/components/Table/Table/Table.context.d.ts +2 -2
- package/dist/components/Table/Table/Table.props.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Tabs/Tabs/Tabs.props.d.ts +2 -2
- package/dist/components/Toggle/Toggle/Toggle.props.d.ts +1 -2
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/Toggle/examples/index.d.ts +0 -1
- package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.props.d.ts +1 -2
- package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.view.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -1
- package/dist/components/ToggleGroup/examples/index.d.ts +0 -1
- package/dist/components/Uploader/{Uploader.props.d.ts → Uploader/Uploader.props.d.ts} +23 -10
- package/dist/components/Uploader/Uploader/Uploader.state.d.ts +13 -0
- package/dist/components/Uploader/Uploader/Uploader.view.d.ts +3 -0
- package/dist/components/Uploader/Uploader.d.ts +1 -12
- package/dist/components/index.d.ts +1 -1
- package/dist/web.cjs.development.js +371 -363
- 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 +372 -362
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +371 -363
- 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 +6 -4
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AlertProps } from './Alert.props';
|
|
3
|
-
export declare const AlertView: ({ icon, title,
|
|
3
|
+
export declare const AlertView: ({ icon, title, views, description, variant, }: AlertProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AlertProps } from './Alert/Alert.props';
|
|
3
|
-
export declare const Alert: ({ icon, title,
|
|
3
|
+
export declare const Alert: ({ icon, title, views, description, variant, }: AlertProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AvatarViewProps } from './Avatar.props';
|
|
3
|
-
export declare const AvatarView: ({ src, size, fallback,
|
|
3
|
+
export declare const AvatarView: ({ src, size, fallback, views, imageError, setImageError, onClick, }: AvatarViewProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AvatarProps } from './Avatar/Avatar.props';
|
|
3
|
-
export declare const Avatar: ({ src, size,
|
|
3
|
+
export declare const Avatar: ({ src, size, views, fallback, onClick, }: AvatarProps) => React.JSX.Element;
|
|
@@ -3,9 +3,8 @@ import { ViewProps } from 'app-studio';
|
|
|
3
3
|
export interface BadgeProps extends Omit<ViewProps, 'content'> {
|
|
4
4
|
content: string | number;
|
|
5
5
|
variant?: Variant;
|
|
6
|
-
colorScheme?: string;
|
|
7
6
|
position?: Position;
|
|
8
7
|
size?: Size;
|
|
9
8
|
shape?: Shape;
|
|
10
|
-
|
|
9
|
+
views?: BadgeStyles;
|
|
11
10
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BadgeProps } from './Badge/Badge.props';
|
|
3
|
-
export declare const Badge: ({ content, shape,
|
|
3
|
+
export declare const Badge: ({ content, shape, position, variant, size, views, }: BadgeProps) => React.JSX.Element;
|
|
@@ -5,7 +5,6 @@ import { IconPosition, Shape, Size, Variant, LoaderPosition, Effects } from './B
|
|
|
5
5
|
import { LoaderProps } from '../../Loader/Loader/Loader.props';
|
|
6
6
|
export interface ButtonProps extends Omit<$ButtonProps, 'size'> {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
|
-
colorScheme?: any;
|
|
9
8
|
to?: string;
|
|
10
9
|
isLoading?: boolean;
|
|
11
10
|
loaderProps?: LoaderProps;
|
|
@@ -8,7 +8,6 @@ export interface CheckboxProps extends Omit<InputProps, 'size'> {
|
|
|
8
8
|
error?: any;
|
|
9
9
|
name?: string;
|
|
10
10
|
label?: string;
|
|
11
|
-
colorScheme?: string;
|
|
12
11
|
isChecked?: boolean;
|
|
13
12
|
defaultIsSelected?: boolean;
|
|
14
13
|
isReadOnly?: boolean;
|
|
@@ -17,7 +16,7 @@ export interface CheckboxProps extends Omit<InputProps, 'size'> {
|
|
|
17
16
|
labelPosition?: 'left' | 'right';
|
|
18
17
|
onChange?: Function;
|
|
19
18
|
onValueChange?: Function;
|
|
20
|
-
|
|
19
|
+
views?: CheckboxStyles;
|
|
21
20
|
size?: Size;
|
|
22
21
|
shadow?: Shadow | Elevation | CSSProperties;
|
|
23
22
|
infoText?: string;
|
|
@@ -7,7 +7,6 @@ export interface CountryPickerProps extends Omit<InputProps, 'size'> {
|
|
|
7
7
|
error?: boolean;
|
|
8
8
|
name?: string;
|
|
9
9
|
label?: string;
|
|
10
|
-
colorScheme?: string;
|
|
11
10
|
helperText?: string;
|
|
12
11
|
placeholder?: string;
|
|
13
12
|
shape?: Shape;
|
|
@@ -16,7 +15,7 @@ export interface CountryPickerProps extends Omit<InputProps, 'size'> {
|
|
|
16
15
|
isDisabled?: boolean;
|
|
17
16
|
onBlur?: (value: any) => void;
|
|
18
17
|
onChange?: (value: any) => void;
|
|
19
|
-
|
|
18
|
+
views?: CountryPickerStyles;
|
|
20
19
|
size?: Size;
|
|
21
20
|
value?: string | number;
|
|
22
21
|
variant?: Variant;
|
|
@@ -38,11 +37,11 @@ export interface CountryPickerDropDownProps extends Omit<InputProps, 'size'> {
|
|
|
38
37
|
size?: Size;
|
|
39
38
|
callback?: Function;
|
|
40
39
|
options: Array<Country>;
|
|
41
|
-
|
|
40
|
+
views?: CountryPickerStyles;
|
|
42
41
|
}
|
|
43
42
|
export interface DropDownItemProps extends Omit<InputProps, 'size'> {
|
|
44
43
|
callback?: Function;
|
|
45
44
|
option: string;
|
|
46
45
|
size?: Size;
|
|
47
|
-
|
|
46
|
+
views?: CountryPickerStyles;
|
|
48
47
|
}
|
|
@@ -2,5 +2,4 @@ import React from 'react';
|
|
|
2
2
|
import { CountryPickerViewProps, DropDownItemProps, CountryPickerDropDownProps } from './CountryPicker.props';
|
|
3
3
|
export declare const DropDownItem: React.FC<DropDownItemProps>;
|
|
4
4
|
export declare const DropDown: React.FC<CountryPickerDropDownProps>;
|
|
5
|
-
declare const CountryPickerView: React.FC<CountryPickerViewProps>;
|
|
6
|
-
export default CountryPickerView;
|
|
5
|
+
export declare const CountryPickerView: React.FC<CountryPickerViewProps>;
|
|
@@ -23,7 +23,6 @@ export interface DatePickerProps extends Omit<ViewProps, 'size'> {
|
|
|
23
23
|
/**
|
|
24
24
|
* The color scheme that changes the background color of the DatePicker.
|
|
25
25
|
*/
|
|
26
|
-
colorScheme?: string;
|
|
27
26
|
/**
|
|
28
27
|
* If true, the DatePicker cannot be selected.
|
|
29
28
|
*/
|
|
@@ -47,7 +46,7 @@ export interface DatePickerProps extends Omit<ViewProps, 'size'> {
|
|
|
47
46
|
/**
|
|
48
47
|
* CSS styles for the DatePicker container and label.
|
|
49
48
|
*/
|
|
50
|
-
|
|
49
|
+
views?: DatePickerStyles;
|
|
51
50
|
/**
|
|
52
51
|
* The shape that changes the outlines of the field.
|
|
53
52
|
*/
|
|
@@ -17,7 +17,6 @@ export declare const usePasswordState: (props: PasswordProps) => {
|
|
|
17
17
|
error?: any;
|
|
18
18
|
helperText?: string | undefined;
|
|
19
19
|
label?: string | undefined;
|
|
20
|
-
colorScheme?: string | undefined;
|
|
21
20
|
left?: import("react").ReactNode;
|
|
22
21
|
right?: import("react").ReactNode;
|
|
23
22
|
placeholder?: string | undefined;
|
|
@@ -32,7 +31,7 @@ export declare const usePasswordState: (props: PasswordProps) => {
|
|
|
32
31
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
33
32
|
shadow?: import("react").CSSProperties | import("app-studio").Shadow | import("../../../../utils/elevation").Elevation | undefined;
|
|
34
33
|
shape?: "default" | "sharp" | "rounded" | "pillShaped" | undefined;
|
|
35
|
-
|
|
34
|
+
views?: import("../../TextField/TextField/TextField.type").TextFieldStyles | undefined;
|
|
36
35
|
variant?: "outline" | "default" | "none" | undefined;
|
|
37
36
|
isVisible: boolean;
|
|
38
37
|
setIsVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
@@ -7,7 +7,6 @@ export interface SelectProps extends Omit<InputProps, 'size'> {
|
|
|
7
7
|
error?: boolean;
|
|
8
8
|
name?: string;
|
|
9
9
|
label?: string;
|
|
10
|
-
colorScheme?: string;
|
|
11
10
|
helperText?: string;
|
|
12
11
|
placeholder?: string;
|
|
13
12
|
options: Option[];
|
|
@@ -17,7 +16,7 @@ export interface SelectProps extends Omit<InputProps, 'size'> {
|
|
|
17
16
|
onChange?: (value: any) => void;
|
|
18
17
|
shape?: Shape;
|
|
19
18
|
variant?: Variant;
|
|
20
|
-
|
|
19
|
+
views?: SelectStyles;
|
|
21
20
|
size?: Size;
|
|
22
21
|
shadow?: Shadow | Elevation | CSSProperties;
|
|
23
22
|
isScrollable?: boolean;
|
|
@@ -38,7 +37,7 @@ export interface SelectBoxProps {
|
|
|
38
37
|
isDisabled?: boolean;
|
|
39
38
|
placeholder?: string;
|
|
40
39
|
removeOption?: Function;
|
|
41
|
-
|
|
40
|
+
views?: SelectStyles;
|
|
42
41
|
size?: Size;
|
|
43
42
|
}
|
|
44
43
|
export interface MultiSelectProps extends Omit<InputProps, 'size'> {
|
|
@@ -66,5 +65,5 @@ export interface DropDownProps extends Omit<InputProps, 'size'> {
|
|
|
66
65
|
size?: Size;
|
|
67
66
|
callback?: Function;
|
|
68
67
|
options: Option[];
|
|
69
|
-
|
|
68
|
+
views?: SelectStyles;
|
|
70
69
|
}
|
|
@@ -4,14 +4,13 @@ import { InputProps, Shadow } 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;
|
|
7
|
-
colorScheme?: string;
|
|
8
7
|
id?: string;
|
|
9
8
|
isDisabled?: boolean;
|
|
10
9
|
isReadOnly?: boolean;
|
|
11
10
|
onChange?: Function;
|
|
12
11
|
name?: string;
|
|
13
12
|
inActiveChild?: React.ReactNode;
|
|
14
|
-
|
|
13
|
+
views?: SwitchStyles;
|
|
15
14
|
shadow?: Shadow | Elevation | CSSProperties;
|
|
16
15
|
size?: Size;
|
|
17
16
|
labelPosition?: 'left' | 'right';
|
|
@@ -3,7 +3,6 @@ import { InputProps, Shadow } from 'app-studio';
|
|
|
3
3
|
import { Elevation } from '../../../../utils/elevation';
|
|
4
4
|
import { Shape, Size, TextAreaStyles, Variant } from './TextArea.type';
|
|
5
5
|
export interface TextAreaProps extends Omit<InputProps, 'size'> {
|
|
6
|
-
colorScheme?: string;
|
|
7
6
|
defaultValue?: string;
|
|
8
7
|
error?: boolean;
|
|
9
8
|
isEditable?: boolean;
|
|
@@ -25,7 +24,7 @@ export interface TextAreaProps extends Omit<InputProps, 'size'> {
|
|
|
25
24
|
size?: Size;
|
|
26
25
|
shadow?: Shadow | Elevation | CSSProperties;
|
|
27
26
|
shape?: Shape;
|
|
28
|
-
|
|
27
|
+
views?: TextAreaStyles;
|
|
29
28
|
value?: string | number;
|
|
30
29
|
variant?: Variant;
|
|
31
30
|
}
|
|
@@ -8,7 +8,6 @@ export interface TextFieldProps extends Omit<InputProps, 'size'> {
|
|
|
8
8
|
helperText?: string;
|
|
9
9
|
name?: string;
|
|
10
10
|
label?: string;
|
|
11
|
-
colorScheme?: string;
|
|
12
11
|
left?: React.ReactNode;
|
|
13
12
|
right?: React.ReactNode;
|
|
14
13
|
placeholder?: string;
|
|
@@ -24,7 +23,7 @@ export interface TextFieldProps extends Omit<InputProps, 'size'> {
|
|
|
24
23
|
size?: Size;
|
|
25
24
|
shadow?: Shadow | Elevation | CSSProperties;
|
|
26
25
|
shape?: Shape;
|
|
27
|
-
|
|
26
|
+
views?: TextFieldStyles;
|
|
28
27
|
value?: string;
|
|
29
28
|
variant?: Variant;
|
|
30
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CenterProps } from './Center.props';
|
|
3
|
-
export declare const CenterBase: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & CenterProps, string | number> & React.RefAttributes<HTMLElement>>;
|
|
4
|
-
export declare const Center: React.ForwardRefExoticComponent<import("app-studio").ElementProps & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & CenterProps>;
|
|
3
|
+
export declare const CenterBase: React.ForwardRefExoticComponent<Pick<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & CenterProps, string | number> & React.RefAttributes<HTMLElement>>;
|
|
4
|
+
export declare const Center: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & CenterProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { HorizontalProps } from './Horizontal.props';
|
|
3
|
-
export declare const HorizontalBase: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & HorizontalProps, string | number> & React.RefAttributes<HTMLElement>>;
|
|
4
|
-
export declare const Horizontal: React.ForwardRefExoticComponent<import("app-studio").ElementProps & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & HorizontalProps>;
|
|
3
|
+
export declare const HorizontalBase: React.ForwardRefExoticComponent<Pick<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & HorizontalProps, string | number> & React.RefAttributes<HTMLElement>>;
|
|
4
|
+
export declare const Horizontal: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & HorizontalProps>;
|
|
@@ -7,10 +7,6 @@ export interface ContentProps extends Omit<ViewProps, 'size'> {
|
|
|
7
7
|
* The color of the Content component.
|
|
8
8
|
*/
|
|
9
9
|
color?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Changes the color style of the field.
|
|
12
|
-
*/
|
|
13
|
-
colorScheme?: string;
|
|
14
10
|
/**
|
|
15
11
|
* The content to be rendered inside the Content component.
|
|
16
12
|
*/
|
|
@@ -62,7 +58,7 @@ export interface ContentProps extends Omit<ViewProps, 'size'> {
|
|
|
62
58
|
/**
|
|
63
59
|
* CSS styles applied to the Content component. Default value is an empty object.
|
|
64
60
|
*/
|
|
65
|
-
|
|
61
|
+
views?: TextFieldStyles;
|
|
66
62
|
/**
|
|
67
63
|
* The shadow effect applied to the Content component.
|
|
68
64
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { VerticalProps } from './Vertical.props';
|
|
3
|
-
export declare const VerticalBase: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & VerticalProps, string | number> & React.RefAttributes<HTMLElement>>;
|
|
4
|
-
export declare const Vertical: React.ForwardRefExoticComponent<import("app-studio").ElementProps & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & VerticalProps>;
|
|
3
|
+
export declare const VerticalBase: React.ForwardRefExoticComponent<Pick<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & VerticalProps, string | number> & React.RefAttributes<HTMLElement>>;
|
|
4
|
+
export declare const Vertical: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & VerticalProps>;
|
|
@@ -6,4 +6,4 @@ export declare const Left: (props: ViewProps) => React.JSX.Element;
|
|
|
6
6
|
export declare const Right: (props: ViewProps) => React.JSX.Element;
|
|
7
7
|
export declare const Inline: (props: ViewProps) => React.JSX.Element;
|
|
8
8
|
export type { ViewProps };
|
|
9
|
-
export declare const View: React.ForwardRefExoticComponent<import("app-studio").ElementProps & React.RefAttributes<HTMLElement> & ViewProps>;
|
|
9
|
+
export declare const View: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & ViewProps>;
|
|
@@ -6,9 +6,8 @@ export interface LinkProps extends Omit<ViewProps, 'size'> {
|
|
|
6
6
|
underline?: TextDecorationStyle;
|
|
7
7
|
isExternal?: boolean;
|
|
8
8
|
iconSize?: Size;
|
|
9
|
-
colorScheme?: string;
|
|
10
9
|
to: string;
|
|
11
|
-
|
|
10
|
+
views?: Styles;
|
|
12
11
|
}
|
|
13
12
|
export interface LinkViewProps extends LinkProps {
|
|
14
13
|
isHovered: boolean;
|
|
@@ -9,7 +9,7 @@ export interface MessageLayoutProps {
|
|
|
9
9
|
}
|
|
10
10
|
export interface ShowMessageProps {
|
|
11
11
|
isClosable?: boolean;
|
|
12
|
-
|
|
12
|
+
views?: MessageViewStyles;
|
|
13
13
|
action?: Function;
|
|
14
14
|
actionText?: string;
|
|
15
15
|
showIcon?: boolean;
|
|
@@ -29,11 +29,11 @@ export interface MessageState {
|
|
|
29
29
|
title: string;
|
|
30
30
|
subtitle: string;
|
|
31
31
|
isClosable?: boolean;
|
|
32
|
-
|
|
32
|
+
views?: MessageViewStyles;
|
|
33
33
|
action?: Function;
|
|
34
34
|
actionText?: string;
|
|
35
35
|
showIcon?: boolean;
|
|
36
36
|
timeout?: number;
|
|
37
|
-
show: (variant: MessageType, title?: string, subtitle?: string, isClosable?: boolean,
|
|
37
|
+
show: (variant: MessageType, title?: string, subtitle?: string, isClosable?: boolean, views?: MessageViewStyles, action?: Function, actionText?: string, showIcon?: boolean, timeout?: number) => void;
|
|
38
38
|
hide: () => void;
|
|
39
39
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MessageProps } from './Message.props';
|
|
3
|
-
export declare const MessageView: ({ variant, hide, title, subtitle, theme, action, actionText, showIcon, isClosable, timeout,
|
|
3
|
+
export declare const MessageView: ({ variant, hide, title, subtitle, theme, action, actionText, showIcon, isClosable, timeout, views, }: MessageProps) => React.JSX.Element;
|
|
@@ -11,10 +11,10 @@ export declare type TableViewStyles = {
|
|
|
11
11
|
};
|
|
12
12
|
export declare const TableProvider: React.FC<{
|
|
13
13
|
children: React.ReactNode;
|
|
14
|
-
|
|
14
|
+
views?: TableViewStyles;
|
|
15
15
|
onRowClick?: Function;
|
|
16
16
|
}>;
|
|
17
17
|
export declare const useTableContext: () => {
|
|
18
|
-
|
|
18
|
+
views: TableViewStyles;
|
|
19
19
|
onRowClick?: Function | undefined;
|
|
20
20
|
};
|
|
@@ -5,7 +5,7 @@ export interface TableProps {
|
|
|
5
5
|
columns: Column[];
|
|
6
6
|
footer?: FooterCell[];
|
|
7
7
|
caption?: React.ReactNode;
|
|
8
|
-
|
|
8
|
+
views?: TableViewStyles;
|
|
9
9
|
onClick?: Function;
|
|
10
10
|
}
|
|
11
11
|
export interface TableViewProps extends TableProps {
|
|
@@ -19,6 +19,6 @@ export interface TableLayoutProps {
|
|
|
19
19
|
Caption?: React.FC<any>;
|
|
20
20
|
TableContainer?: React.FC<any>;
|
|
21
21
|
children?: React.ReactNode;
|
|
22
|
-
|
|
22
|
+
views?: TableViewStyles;
|
|
23
23
|
onClick?: Function;
|
|
24
24
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableLayoutProps } from './Table/Table.props';
|
|
3
3
|
export declare const Table: {
|
|
4
|
-
({ children,
|
|
4
|
+
({ children, views, onClick }: TableLayoutProps): React.JSX.Element;
|
|
5
5
|
Head: React.FC<any>;
|
|
6
6
|
HeadCell: React.FC<any>;
|
|
7
7
|
Body: React.FC<any>;
|
|
@@ -11,7 +11,7 @@ export interface TabsProps {
|
|
|
11
11
|
/** Optional callback function triggered when the active tab changes. Receives the newly active tab object. */
|
|
12
12
|
onTabChange?: (activeTab: Tab) => void;
|
|
13
13
|
/** Optional styles object to customize the appearance of the tabs container, headers, buttons, text, and content area. */
|
|
14
|
-
|
|
14
|
+
views?: TabsStyles;
|
|
15
15
|
/**
|
|
16
16
|
* Optional custom renderer for a single tab button/header.
|
|
17
17
|
* Receives the tab data, whether it's currently active, and an onClick handler to activate the tab.
|
|
@@ -36,7 +36,7 @@ export interface TabsViewProps {
|
|
|
36
36
|
/** Callback function to handle clicking on a tab header/button. */
|
|
37
37
|
handleTabClick: (tab: Tab) => void;
|
|
38
38
|
/** Optional styles object. */
|
|
39
|
-
|
|
39
|
+
views?: TabsStyles;
|
|
40
40
|
/** Optional custom renderer for a tab button/header. */
|
|
41
41
|
renderTab?: (tab: Tab, isActive: boolean, onClick: () => void) => React.ReactNode;
|
|
42
42
|
/** Optional custom renderer for the content area. */
|
|
@@ -7,10 +7,9 @@ export interface ToggleProps extends Omit<InputProps, 'size'> {
|
|
|
7
7
|
isDisabled?: boolean;
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
variant?: Variant;
|
|
10
|
-
colorScheme?: string;
|
|
11
10
|
onToggle?: (isToggled: boolean) => void;
|
|
12
11
|
}
|
|
13
|
-
export interface ToggleViewProps extends ToggleProps {
|
|
12
|
+
export interface ToggleViewProps extends Omit<ToggleProps, never> {
|
|
14
13
|
isHovered: boolean;
|
|
15
14
|
setIsHovered: React.Dispatch<React.SetStateAction<boolean>>;
|
|
16
15
|
isToggle: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ToggleProps } from './Toggle/Toggle.props';
|
|
3
|
-
export declare const Toggle: ({ children, shape,
|
|
3
|
+
export declare const Toggle: ({ children, shape, variant, isDisabled, isToggled, onToggle, ...props }: ToggleProps) => React.JSX.Element;
|
|
@@ -7,10 +7,9 @@ export interface ToggleGroupProps extends Omit<InputProps, 'size'> {
|
|
|
7
7
|
shape?: Shape;
|
|
8
8
|
items: ToggleItem[];
|
|
9
9
|
variant?: Variant;
|
|
10
|
-
colorScheme?: string;
|
|
11
10
|
onToggleChange?: (activeIds: string[]) => void;
|
|
12
11
|
}
|
|
13
|
-
export interface ToggleGroupViewProps extends ToggleGroupProps {
|
|
12
|
+
export interface ToggleGroupViewProps extends Omit<ToggleGroupProps, ''> {
|
|
14
13
|
activeToggles: string[];
|
|
15
14
|
setActiveToggles: React.Dispatch<React.SetStateAction<string[]>>;
|
|
16
15
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ToggleGroupViewProps } from './ToggleGroup.props';
|
|
3
|
-
export declare const ToggleGroupView: ({ items, onToggleChange, activeToggles, setActiveToggles, shape, variant,
|
|
3
|
+
export declare const ToggleGroupView: ({ items, onToggleChange, activeToggles, setActiveToggles, shape, variant, }: ToggleGroupViewProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ToggleGroupProps } from './ToggleGroup/ToggleGroup.props';
|
|
3
|
-
export declare const ToggleGroup: ({ items, shape,
|
|
3
|
+
export declare const ToggleGroup: ({ items, shape, variant, onToggleChange, }: ToggleGroupProps) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ImageProps, TextProps, ViewProps } from 'app-studio';
|
|
3
|
-
import { IconProps } from '
|
|
3
|
+
import { IconProps } from '../..';
|
|
4
4
|
export interface UseUploadProps {
|
|
5
5
|
accept?: string;
|
|
6
6
|
maxSize?: number;
|
|
@@ -9,15 +9,13 @@ export interface UseUploadProps {
|
|
|
9
9
|
onError?: (error: string) => void;
|
|
10
10
|
thumbnail?: string;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
onFileSelect?: (file: File) => void;
|
|
20
|
-
validateFile?: (file: File) => string | null;
|
|
12
|
+
export interface UploadStateProps {
|
|
13
|
+
handleFileChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
14
|
+
selectedFile: File | null;
|
|
15
|
+
fileInputRef: React.RefObject<HTMLInputElement>;
|
|
16
|
+
videoRef: React.RefObject<HTMLVideoElement>;
|
|
17
|
+
}
|
|
18
|
+
export interface UploadViewProps {
|
|
21
19
|
onError?: (error: string) => void;
|
|
22
20
|
containerProps?: ViewProps;
|
|
23
21
|
errorMessageProps?: TextProps;
|
|
@@ -34,4 +32,19 @@ export interface UploadProps {
|
|
|
34
32
|
renderError?: (props: any) => React.ReactNode;
|
|
35
33
|
renderFile?: (props: any) => React.ReactNode;
|
|
36
34
|
renderProgress?: (props: any) => React.ReactNode;
|
|
35
|
+
previewUrl?: string | null;
|
|
36
|
+
thumbnailUrl?: string | null;
|
|
37
|
+
errorMessage?: string | null;
|
|
38
|
+
isLoading?: boolean;
|
|
39
|
+
icon?: React.ReactNode;
|
|
40
|
+
accept?: string;
|
|
41
|
+
text?: string;
|
|
42
|
+
maxSize?: number;
|
|
43
|
+
progress?: number;
|
|
44
|
+
fileType?: 'video' | 'image' | 'file';
|
|
45
|
+
handleClick?: () => void;
|
|
46
|
+
onFileSelect?: (file: File) => void;
|
|
47
|
+
validateFile?: (file: File) => string | null;
|
|
48
|
+
}
|
|
49
|
+
export interface UploadProps extends UseUploadProps, UploadViewProps {
|
|
37
50
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UseUploadProps } from '../Uploader/Uploader.props';
|
|
3
|
+
export declare const generateThumbnail: (videoFile: File, setThumbnailUrl: (url: string) => void) => void;
|
|
4
|
+
export declare const useUpload: ({ maxSize, onFileSelect, validateFile, thumbnail, onError, }: UseUploadProps) => {
|
|
5
|
+
previewUrl: string | null;
|
|
6
|
+
thumbnailUrl: string | null;
|
|
7
|
+
errorMessage: string | null;
|
|
8
|
+
fileInputRef: React.RefObject<HTMLInputElement>;
|
|
9
|
+
videoRef: React.RefObject<HTMLVideoElement>;
|
|
10
|
+
selectedFile: File | null;
|
|
11
|
+
handleFileChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
|
+
handleClick: () => void | undefined;
|
|
13
|
+
};
|
|
@@ -1,14 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { UploadProps
|
|
3
|
-
export declare const generateThumbnail: (videoFile: File, setThumbnailUrl: (url: string) => void) => void;
|
|
4
|
-
export declare const useUpload: ({ maxSize, onFileSelect, validateFile, thumbnail, onError, }: UseUploadProps) => {
|
|
5
|
-
previewUrl: string | null;
|
|
6
|
-
thumbnailUrl: string | null;
|
|
7
|
-
errorMessage: string | null;
|
|
8
|
-
fileInputRef: React.RefObject<HTMLInputElement>;
|
|
9
|
-
videoRef: React.RefObject<HTMLVideoElement>;
|
|
10
|
-
selectedFile: File | null;
|
|
11
|
-
handleFileChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
|
-
handleClick: () => void | undefined;
|
|
13
|
-
};
|
|
2
|
+
import { UploadProps } from './Uploader/Uploader.props';
|
|
14
3
|
export declare const Uploader: React.FC<UploadProps>;
|