@app-studio/web 0.7.7 → 0.7.10
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/AspectRatio/AspectRatio/AspectRatio.props.d.ts +2 -4
- package/dist/components/Badge/Badge/Badge.props.d.ts +2 -2
- package/dist/components/Button/Button/Button.props.d.ts +2 -3
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +2 -3
- package/dist/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +2 -2
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +4 -16
- package/dist/components/Form/Label/Label/Label.props.d.ts +2 -2
- package/dist/components/Form/Password/Password/Password.props.d.ts +2 -5
- package/dist/components/Form/Select/Select/Select.props.d.ts +12 -31
- package/dist/components/Form/Switch/Switch/Switch.props.d.ts +2 -6
- package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +2 -6
- package/dist/components/Form/TextField/TextField/TextField.props.d.ts +2 -6
- package/dist/components/Layout/Center/Center/Center.props.d.ts +2 -15
- package/dist/components/Layout/Horizontal/Horizontal/Horizontal.props.d.ts +2 -22
- package/dist/components/Layout/Horizontal/Horizontal.d.ts +2 -2
- package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +2 -5
- package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +2 -6
- package/dist/components/Layout/Input/FieldIcons/FieldIcons/FieldIcons.props.d.ts +2 -10
- package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +2 -5
- package/dist/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +2 -5
- package/dist/components/Layout/Input/FieldWrapper/FieldWrapper.props.d.ts +2 -10
- package/dist/components/Layout/Input/HelperText/HelperText.props.d.ts +2 -5
- package/dist/components/Layout/Vertical/Vertical/Vertical.props.d.ts +2 -22
- package/dist/components/Layout/View/View.d.ts +8 -7
- package/dist/components/Link/Link/Link.props.d.ts +2 -5
- package/dist/components/Loader/Loader/Loader.props.d.ts +2 -5
- package/dist/web.cjs.development.js +156 -167
- 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 +156 -167
- package/dist/web.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Layout/Vertical/Vertical/Vertical.type.d.ts +0 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Size, Variant, Shape, Position, BadgeStyles } from './Badge.type';
|
|
2
|
-
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
3
|
+
export interface BadgeProps extends Omit<ViewProps, 'content'> {
|
|
3
4
|
content: string | number;
|
|
4
5
|
variant?: Variant;
|
|
5
6
|
colorScheme?: string;
|
|
@@ -7,5 +8,4 @@ export interface BadgeProps {
|
|
|
7
8
|
size?: Size;
|
|
8
9
|
shape?: Shape;
|
|
9
10
|
styles?: BadgeStyles;
|
|
10
|
-
[x: string]: any;
|
|
11
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { Shadow } from 'app-studio';
|
|
2
|
+
import { ButtonProps as $ButtonProps, Shadow } from 'app-studio';
|
|
3
3
|
import { Elevation } from '../../../utils/elevation';
|
|
4
4
|
import { IconPosition, Shape, Size, Variant, LoaderPosition, Effects } from './Button.type';
|
|
5
5
|
import { LoaderProps } from '../../Loader/Loader/Loader.props';
|
|
6
|
-
export interface ButtonProps {
|
|
6
|
+
export interface ButtonProps extends Omit<$ButtonProps, 'size'> {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
colorScheme?: any;
|
|
9
9
|
externalHref?: string;
|
|
@@ -23,5 +23,4 @@ export interface ButtonProps {
|
|
|
23
23
|
ariaLabel?: string;
|
|
24
24
|
variant?: Variant;
|
|
25
25
|
effect?: Effects;
|
|
26
|
-
[x: string]: any;
|
|
27
26
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
2
|
import { Elevation } from 'src/utils/elevation';
|
|
3
|
-
import { Shadow } from 'app-studio';
|
|
3
|
+
import { InputProps, Shadow } from 'app-studio';
|
|
4
4
|
import { CheckboxStyles, Size } from './Checkbox.type';
|
|
5
|
-
export interface CheckboxProps {
|
|
5
|
+
export interface CheckboxProps extends Omit<InputProps, 'size'> {
|
|
6
6
|
id?: string;
|
|
7
7
|
icon?: React.ReactNode;
|
|
8
8
|
error?: boolean;
|
|
@@ -21,7 +21,6 @@ export interface CheckboxProps {
|
|
|
21
21
|
size?: Size;
|
|
22
22
|
shadow?: Shadow | Elevation | CSSProperties;
|
|
23
23
|
infoText?: string;
|
|
24
|
-
[x: string]: any;
|
|
25
24
|
}
|
|
26
25
|
export interface CheckboxViewProps extends CheckboxProps {
|
|
27
26
|
isHovered?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode, Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { ComboBoxStyles } from './ComboBox.type';
|
|
3
|
-
|
|
3
|
+
import { InputProps } from 'app-studio';
|
|
4
|
+
export interface ComboBoxProps extends Omit<InputProps, 'size'> {
|
|
4
5
|
id: string;
|
|
5
6
|
name?: string;
|
|
6
7
|
items: ComboBoxItem[];
|
|
@@ -13,7 +14,6 @@ export interface ComboBoxProps {
|
|
|
13
14
|
placeholder?: string;
|
|
14
15
|
styles?: ComboBoxStyles;
|
|
15
16
|
searchPlaceholder?: string;
|
|
16
|
-
[x: string]: any;
|
|
17
17
|
}
|
|
18
18
|
export interface ComboBoxItem {
|
|
19
19
|
label: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { Elevation } from 'src/utils/elevation';
|
|
3
|
-
import { Shadow } from 'app-studio';
|
|
3
|
+
import { InputProps, Shadow } from 'app-studio';
|
|
4
4
|
import { Country, CountryPickerStyles, Shape, Size, Variant } from './CountryPicker.type';
|
|
5
|
-
export interface CountryPickerProps {
|
|
5
|
+
export interface CountryPickerProps extends Omit<InputProps, 'size'> {
|
|
6
6
|
/**
|
|
7
7
|
* The identifier for the CountryPicker component.
|
|
8
8
|
*/
|
|
@@ -75,10 +75,6 @@ export interface CountryPickerProps {
|
|
|
75
75
|
* Adds a shadow effect to the CountryPicker.
|
|
76
76
|
*/
|
|
77
77
|
shadow?: Shadow | Elevation | CSSProperties;
|
|
78
|
-
/**
|
|
79
|
-
* Other properties that can be passed to the component.
|
|
80
|
-
*/
|
|
81
|
-
[x: string]: any;
|
|
82
78
|
}
|
|
83
79
|
export interface CountryPickerViewProps extends CountryPickerProps {
|
|
84
80
|
/**
|
|
@@ -127,7 +123,7 @@ export interface CountryPickerViewProps extends CountryPickerProps {
|
|
|
127
123
|
*/
|
|
128
124
|
setNewOptions?: (newOptions: Array<Country>) => void;
|
|
129
125
|
}
|
|
130
|
-
export interface DropDownProps {
|
|
126
|
+
export interface DropDownProps extends Omit<InputProps, 'size'> {
|
|
131
127
|
/**
|
|
132
128
|
* To set the height and width of the item list.
|
|
133
129
|
*/
|
|
@@ -144,12 +140,8 @@ export interface DropDownProps {
|
|
|
144
140
|
* Css styles for the CountryPicker container and label
|
|
145
141
|
*/
|
|
146
142
|
styles?: CountryPickerStyles;
|
|
147
|
-
/**
|
|
148
|
-
* other properties
|
|
149
|
-
*/
|
|
150
|
-
[x: string]: any;
|
|
151
143
|
}
|
|
152
|
-
export interface DropDownItemProps {
|
|
144
|
+
export interface DropDownItemProps extends Omit<InputProps, 'size'> {
|
|
153
145
|
/**
|
|
154
146
|
* Function that will be called when the option is clicked
|
|
155
147
|
*/
|
|
@@ -166,8 +158,4 @@ export interface DropDownItemProps {
|
|
|
166
158
|
* Css styles
|
|
167
159
|
*/
|
|
168
160
|
styles?: CountryPickerStyles;
|
|
169
|
-
/**
|
|
170
|
-
* other properties
|
|
171
|
-
*/
|
|
172
|
-
[x: string]: any;
|
|
173
161
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
2
3
|
import { Headings, Sizes, TextWeights } from './Label.type';
|
|
3
|
-
export interface LabelProps {
|
|
4
|
+
export interface LabelProps extends Omit<ViewProps, 'size'> {
|
|
4
5
|
children: React.ReactNode;
|
|
5
6
|
heading?: Headings;
|
|
6
7
|
isItalic?: boolean;
|
|
@@ -8,5 +9,4 @@ export interface LabelProps {
|
|
|
8
9
|
isUnderlined?: boolean;
|
|
9
10
|
size?: Sizes | number;
|
|
10
11
|
weight?: TextWeights;
|
|
11
|
-
[x: string]: any;
|
|
12
12
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextFieldProps } from '../../../Form/TextField/TextField/TextField.props';
|
|
3
|
-
|
|
3
|
+
import { InputProps } from 'app-studio';
|
|
4
|
+
export interface PasswordProps extends TextFieldProps, Omit<InputProps, 'size'> {
|
|
4
5
|
/**
|
|
5
6
|
* The name of the input field
|
|
6
7
|
*/
|
|
@@ -17,10 +18,6 @@ export interface PasswordProps extends TextFieldProps {
|
|
|
17
18
|
* Icon to Indicate that the password is hidden
|
|
18
19
|
*/
|
|
19
20
|
hiddenIcon?: React.ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* other properties
|
|
22
|
-
*/
|
|
23
|
-
[x: string]: any;
|
|
24
21
|
}
|
|
25
22
|
export interface PasswordViewProps extends PasswordProps {
|
|
26
23
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { Elevation } from 'src/utils/elevation';
|
|
3
|
-
import { Shadow } from 'app-studio';
|
|
4
|
-
import { SelectStyles, Shape, Size, Variant } from './Select.type';
|
|
5
|
-
export interface SelectProps {
|
|
3
|
+
import { InputProps, Shadow } from 'app-studio';
|
|
4
|
+
import { SelectStyles, Shape, Size, Variant, Option } from './Select.type';
|
|
5
|
+
export interface SelectProps extends Omit<InputProps, 'size'> {
|
|
6
6
|
/**
|
|
7
7
|
* The identifier of the select field.
|
|
8
8
|
*/
|
|
@@ -34,7 +34,7 @@ export interface SelectProps {
|
|
|
34
34
|
/**
|
|
35
35
|
* An array of options for the select field.
|
|
36
36
|
*/
|
|
37
|
-
options:
|
|
37
|
+
options: Option[];
|
|
38
38
|
/**
|
|
39
39
|
* If true, allows multiple options to be selected.
|
|
40
40
|
*/
|
|
@@ -72,10 +72,6 @@ export interface SelectProps {
|
|
|
72
72
|
*/
|
|
73
73
|
shadow?: Shadow | Elevation | CSSProperties;
|
|
74
74
|
isScrollable?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Additional properties and attributes for the select field.
|
|
77
|
-
*/
|
|
78
|
-
[x: string]: any;
|
|
79
75
|
}
|
|
80
76
|
export interface SelectViewProps extends SelectProps {
|
|
81
77
|
/**
|
|
@@ -112,6 +108,7 @@ export interface SelectViewProps extends SelectProps {
|
|
|
112
108
|
setIsFocused: Function;
|
|
113
109
|
}
|
|
114
110
|
export interface SelectBoxProps {
|
|
111
|
+
options: Option[];
|
|
115
112
|
/**
|
|
116
113
|
* The option that will be selected value
|
|
117
114
|
*/
|
|
@@ -137,7 +134,7 @@ export interface SelectBoxProps {
|
|
|
137
134
|
*/
|
|
138
135
|
size?: Size;
|
|
139
136
|
}
|
|
140
|
-
export interface MultiSelectProps {
|
|
137
|
+
export interface MultiSelectProps extends Omit<InputProps, 'size'> {
|
|
141
138
|
/**
|
|
142
139
|
* Option to be displayed
|
|
143
140
|
*/
|
|
@@ -150,12 +147,8 @@ export interface MultiSelectProps {
|
|
|
150
147
|
* To set the item's fontSize
|
|
151
148
|
*/
|
|
152
149
|
size?: Size;
|
|
153
|
-
/**
|
|
154
|
-
* other properties
|
|
155
|
-
*/
|
|
156
|
-
[x: string]: any;
|
|
157
150
|
}
|
|
158
|
-
export interface ItemProps {
|
|
151
|
+
export interface ItemProps extends Omit<InputProps, 'size'> {
|
|
159
152
|
/**
|
|
160
153
|
* Function that will be called when the option is clicked
|
|
161
154
|
*/
|
|
@@ -163,7 +156,7 @@ export interface ItemProps {
|
|
|
163
156
|
/**
|
|
164
157
|
* Option to be displayed
|
|
165
158
|
*/
|
|
166
|
-
option:
|
|
159
|
+
option: Option;
|
|
167
160
|
/**
|
|
168
161
|
* To set the item's fontSize
|
|
169
162
|
*/
|
|
@@ -172,12 +165,8 @@ export interface ItemProps {
|
|
|
172
165
|
* Css styles for the Item
|
|
173
166
|
*/
|
|
174
167
|
style?: SelectStyles;
|
|
175
|
-
/**
|
|
176
|
-
* other properties
|
|
177
|
-
*/
|
|
178
|
-
[x: string]: any;
|
|
179
168
|
}
|
|
180
|
-
export interface HiddenSelectProps {
|
|
169
|
+
export interface HiddenSelectProps extends Omit<InputProps, 'size'> {
|
|
181
170
|
/**
|
|
182
171
|
* Identifier
|
|
183
172
|
*/
|
|
@@ -209,13 +198,9 @@ export interface HiddenSelectProps {
|
|
|
209
198
|
/**
|
|
210
199
|
* List of options
|
|
211
200
|
*/
|
|
212
|
-
options:
|
|
213
|
-
/**
|
|
214
|
-
* other properties
|
|
215
|
-
*/
|
|
216
|
-
[x: string]: any;
|
|
201
|
+
options: Option[];
|
|
217
202
|
}
|
|
218
|
-
export interface DropDownProps {
|
|
203
|
+
export interface DropDownProps extends Omit<InputProps, 'size'> {
|
|
219
204
|
/**
|
|
220
205
|
* To set the height and width of the item list.
|
|
221
206
|
*/
|
|
@@ -227,13 +212,9 @@ export interface DropDownProps {
|
|
|
227
212
|
/**
|
|
228
213
|
* List of options
|
|
229
214
|
*/
|
|
230
|
-
options:
|
|
215
|
+
options: Option[];
|
|
231
216
|
/**
|
|
232
217
|
* Css styles for the select container and label
|
|
233
218
|
*/
|
|
234
219
|
styles?: SelectStyles;
|
|
235
|
-
/**
|
|
236
|
-
* other properties
|
|
237
|
-
*/
|
|
238
|
-
[x: string]: any;
|
|
239
220
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { Elevation } from 'src/utils/elevation';
|
|
3
|
-
import { Shadow } from 'app-studio';
|
|
3
|
+
import { InputProps, Shadow } from 'app-studio';
|
|
4
4
|
import { Size, SwitchStyles } from './Switch.type';
|
|
5
|
-
export interface SwitchProps {
|
|
5
|
+
export interface SwitchProps extends Omit<InputProps, 'size'> {
|
|
6
6
|
/**
|
|
7
7
|
* The content to be rendered when the switch is active.
|
|
8
8
|
*/
|
|
@@ -51,10 +51,6 @@ export interface SwitchProps {
|
|
|
51
51
|
* Label position
|
|
52
52
|
*/
|
|
53
53
|
labelPosition?: 'left' | 'right';
|
|
54
|
-
/**
|
|
55
|
-
* Additional properties and attributes.
|
|
56
|
-
*/
|
|
57
|
-
[x: string]: any;
|
|
58
54
|
}
|
|
59
55
|
export interface SwitchViewProps extends SwitchProps {
|
|
60
56
|
/** Prop indicating if the switch is being hovered */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { Shadow } from 'app-studio';
|
|
2
|
+
import { InputProps, Shadow } from 'app-studio';
|
|
3
3
|
import { Elevation } from 'src/utils/elevation';
|
|
4
4
|
import { Shape, Size, TextAreaStyles, Variant } from './TextArea.type';
|
|
5
|
-
export interface TextAreaProps {
|
|
5
|
+
export interface TextAreaProps extends Omit<InputProps, 'size'> {
|
|
6
6
|
/**
|
|
7
7
|
* Changes the label and border color of the input field.
|
|
8
8
|
*/
|
|
@@ -103,10 +103,6 @@ export interface TextAreaProps {
|
|
|
103
103
|
* Changes the style variant of the input field.
|
|
104
104
|
*/
|
|
105
105
|
variant?: Variant;
|
|
106
|
-
/**
|
|
107
|
-
* Additional properties for customization and extension.
|
|
108
|
-
*/
|
|
109
|
-
[x: string]: any;
|
|
110
106
|
}
|
|
111
107
|
export interface TextAreaViewProps extends TextAreaProps {
|
|
112
108
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { Shadow } from 'app-studio';
|
|
2
|
+
import { InputProps, Shadow } from 'app-studio';
|
|
3
3
|
import { Elevation } from 'src/utils/elevation';
|
|
4
4
|
import { Shape, Size, TextFieldStyles, Variant } from './TextField.type';
|
|
5
|
-
export interface TextFieldProps {
|
|
5
|
+
export interface TextFieldProps extends Omit<InputProps, 'size'> {
|
|
6
6
|
/**
|
|
7
7
|
* The input field identifier.
|
|
8
8
|
*/
|
|
@@ -99,10 +99,6 @@ export interface TextFieldProps {
|
|
|
99
99
|
* Changes the style variant of the input field.
|
|
100
100
|
*/
|
|
101
101
|
variant?: Variant;
|
|
102
|
-
/**
|
|
103
|
-
* Additional properties for customization and extension.
|
|
104
|
-
*/
|
|
105
|
-
[x: string]: any;
|
|
106
102
|
}
|
|
107
103
|
export interface TextFieldViewProps extends TextFieldProps {
|
|
108
104
|
/** The hint text for the text field */
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export interface CenterProps {
|
|
4
|
-
/**
|
|
5
|
-
* To specifies if the items should be wrap or not, based on available space on the line.
|
|
6
|
-
*/
|
|
7
|
-
wrap?: Wrap;
|
|
8
|
-
/**
|
|
9
|
-
* Layout content
|
|
10
|
-
*/
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* other properties
|
|
14
|
-
*/
|
|
15
|
-
[x: string]: any;
|
|
1
|
+
import { ViewProps } from '../../View/View';
|
|
2
|
+
export interface CenterProps extends ViewProps {
|
|
16
3
|
}
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export interface HorizontalProps {
|
|
4
|
-
/**
|
|
5
|
-
* The layout content
|
|
6
|
-
*/
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* Aligns items horizontally, when they don't fill up the entire main-axis
|
|
10
|
-
*/
|
|
11
|
-
justify?: Justify;
|
|
12
|
-
/**
|
|
13
|
-
* To specifies if the items should be wrap or not, based on available space on the line.
|
|
14
|
-
*/
|
|
15
|
-
wrap?: Wrap;
|
|
16
|
-
/**
|
|
17
|
-
* If true, it reverses the items order on the horizontal axis.
|
|
18
|
-
*/
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
export interface HorizontalProps extends ViewProps {
|
|
19
3
|
isReversed?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* other properties
|
|
22
|
-
*/
|
|
23
|
-
[x: string]: any;
|
|
24
4
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const Horizontal: React.FC<
|
|
2
|
+
import type { ViewProps } from 'app-studio';
|
|
3
|
+
export declare const Horizontal: React.FC<ViewProps>;
|
package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextFieldStyles } from '../../../../Layout/configs/Input.type';
|
|
3
|
-
|
|
3
|
+
import { ViewProps } from 'app-studio';
|
|
4
|
+
export interface ContainerProps extends ViewProps {
|
|
4
5
|
/**
|
|
5
6
|
* The content to be rendered inside the container.
|
|
6
7
|
*/
|
|
@@ -17,8 +18,4 @@ export interface ContainerProps {
|
|
|
17
18
|
* CSS styles for the select box and dropdown.
|
|
18
19
|
*/
|
|
19
20
|
styles?: TextFieldStyles;
|
|
20
|
-
/**
|
|
21
|
-
* Additional properties and attributes for the field.
|
|
22
|
-
*/
|
|
23
|
-
[x: string]: any;
|
|
24
21
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
2
|
import { Shape, Size, TextFieldStyles, Variant } from '../../../../Layout/configs/Input.type';
|
|
3
3
|
import { Elevation } from 'src/utils/elevation';
|
|
4
|
-
import { Shadow } from 'app-studio';
|
|
5
|
-
export interface ContentProps {
|
|
4
|
+
import { Shadow, ViewProps } from 'app-studio';
|
|
5
|
+
export interface ContentProps extends Omit<ViewProps, 'size'> {
|
|
6
6
|
/**
|
|
7
7
|
* The color of the Content component.
|
|
8
8
|
*/
|
|
@@ -67,8 +67,4 @@ export interface ContentProps {
|
|
|
67
67
|
* The shadow effect applied to the Content component.
|
|
68
68
|
*/
|
|
69
69
|
shadow?: Shadow | Elevation | CSSProperties;
|
|
70
|
-
/**
|
|
71
|
-
* Additional properties and attributes for the field.
|
|
72
|
-
*/
|
|
73
|
-
[x: string]: any;
|
|
74
70
|
}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface FieldIconsProps {
|
|
3
|
-
/**
|
|
4
|
-
* The content to be rendered inside the Wrapper Field.
|
|
5
|
-
*/
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Additional properties and attributes for the field.
|
|
9
|
-
*/
|
|
10
|
-
[x: string]: any;
|
|
1
|
+
import { ImageProps } from 'app-studio';
|
|
2
|
+
export interface FieldIconsProps extends Omit<ImageProps, 'size'> {
|
|
11
3
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Size } from '../../../../Layout/configs/Input.type';
|
|
3
|
-
|
|
3
|
+
import { ViewProps } from 'app-studio';
|
|
4
|
+
export interface LabelProps extends Omit<ViewProps, 'size'> {
|
|
4
5
|
/**
|
|
5
6
|
* The content to be rendered inside the Label.
|
|
6
7
|
*/
|
|
@@ -23,8 +24,4 @@ export interface LabelProps {
|
|
|
23
24
|
styles?: {
|
|
24
25
|
label: any;
|
|
25
26
|
};
|
|
26
|
-
/**
|
|
27
|
-
* Additional properties and attributes for the field.
|
|
28
|
-
*/
|
|
29
|
-
[x: string]: any;
|
|
30
27
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Size, TextFieldStyles } from '../../../../Layout/configs/Input.type';
|
|
3
|
-
|
|
3
|
+
import { ViewProps } from 'app-studio';
|
|
4
|
+
export interface FieldProps extends Omit<ViewProps, 'size'> {
|
|
4
5
|
/**
|
|
5
6
|
* The content to be rendered inside the Field.
|
|
6
7
|
*/
|
|
@@ -21,8 +22,4 @@ export interface FieldProps {
|
|
|
21
22
|
* CSS styles applied to the field (default: {}).
|
|
22
23
|
*/
|
|
23
24
|
styles?: TextFieldStyles;
|
|
24
|
-
/**
|
|
25
|
-
* Additional properties and attributes for the field.
|
|
26
|
-
*/
|
|
27
|
-
[x: string]: any;
|
|
28
25
|
}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface WrapperFieldProps {
|
|
3
|
-
/**
|
|
4
|
-
* The content to be rendered inside the Wrapper Field.
|
|
5
|
-
*/
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Additional properties and attributes for the field.
|
|
9
|
-
*/
|
|
10
|
-
[x: string]: any;
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
export interface WrapperFieldProps extends ViewProps {
|
|
11
3
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextFieldStyles } from '../../../Layout/configs/Input.type';
|
|
3
|
-
|
|
3
|
+
import { ViewProps } from 'app-studio';
|
|
4
|
+
export interface HelperTextProps extends ViewProps {
|
|
4
5
|
/**
|
|
5
6
|
* The content to be rendered inside the HelperText.
|
|
6
7
|
*/
|
|
@@ -13,8 +14,4 @@ export interface HelperTextProps {
|
|
|
13
14
|
* CSS styles applied to the HelperText.
|
|
14
15
|
*/
|
|
15
16
|
styles?: TextFieldStyles;
|
|
16
|
-
/**
|
|
17
|
-
* Additional properties and attributes for the field.
|
|
18
|
-
*/
|
|
19
|
-
[x: string]: any;
|
|
20
17
|
}
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export interface VerticalProps {
|
|
4
|
-
/**
|
|
5
|
-
* The layout content
|
|
6
|
-
*/
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* It aligns the elements of the container according to the available space.
|
|
10
|
-
*/
|
|
11
|
-
justify?: Justify;
|
|
12
|
-
/**
|
|
13
|
-
* To specify, if the items should be wrap or not, based on available space on the line.
|
|
14
|
-
*/
|
|
15
|
-
wrap?: Wrap;
|
|
16
|
-
/**
|
|
17
|
-
* If true, the items' position on the vertical axis is reversed.
|
|
18
|
-
*/
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
export interface VerticalProps extends ViewProps {
|
|
19
3
|
isReversed?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* other properties
|
|
22
|
-
*/
|
|
23
|
-
[x: string]: any;
|
|
24
4
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const Top: (props:
|
|
4
|
-
export declare const Bottom: (props:
|
|
5
|
-
export declare const Left: (props:
|
|
6
|
-
export declare const Right: (props:
|
|
7
|
-
export declare const Inline: (props:
|
|
8
|
-
export
|
|
2
|
+
import type { ViewProps } from 'app-studio';
|
|
3
|
+
export declare const Top: (props: ViewProps) => React.JSX.Element;
|
|
4
|
+
export declare const Bottom: (props: ViewProps) => React.JSX.Element;
|
|
5
|
+
export declare const Left: (props: ViewProps) => React.JSX.Element;
|
|
6
|
+
export declare const Right: (props: ViewProps) => React.JSX.Element;
|
|
7
|
+
export declare const Inline: (props: ViewProps) => React.JSX.Element;
|
|
8
|
+
export type { ViewProps };
|
|
9
|
+
export declare const View: React.FC<ViewProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Size, Styles, TextDecorationStyle } from './Link.type';
|
|
3
|
-
|
|
3
|
+
import { ViewProps } from 'app-studio';
|
|
4
|
+
export interface LinkProps extends Omit<ViewProps, 'size'> {
|
|
4
5
|
/**
|
|
5
6
|
* The content of the link.
|
|
6
7
|
*/
|
|
@@ -30,10 +31,6 @@ export interface LinkProps {
|
|
|
30
31
|
* CSS styles for the external icon.
|
|
31
32
|
*/
|
|
32
33
|
styles?: Styles;
|
|
33
|
-
/**
|
|
34
|
-
* Additional props for customization.
|
|
35
|
-
*/
|
|
36
|
-
[x: string]: any;
|
|
37
34
|
}
|
|
38
35
|
export interface LinkViewProps extends LinkProps {
|
|
39
36
|
/**
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LoaderType, Size, Speed, TextPosition } from './Loader.type';
|
|
3
|
+
import { ViewProps } from 'app-studio';
|
|
3
4
|
/**
|
|
4
5
|
* Props for the Loader component.
|
|
5
6
|
*/
|
|
6
|
-
export interface LoaderProps {
|
|
7
|
+
export interface LoaderProps extends Omit<ViewProps, 'size'> {
|
|
7
8
|
/**
|
|
8
9
|
* The text content.
|
|
9
10
|
*/
|
|
@@ -32,10 +33,6 @@ export interface LoaderProps {
|
|
|
32
33
|
* The rotation speed of the loader.
|
|
33
34
|
*/
|
|
34
35
|
speed?: Speed;
|
|
35
|
-
/**
|
|
36
|
-
* Additional properties.
|
|
37
|
-
*/
|
|
38
|
-
[x: string]: any;
|
|
39
36
|
}
|
|
40
37
|
export interface DefaultSpinnerProps {
|
|
41
38
|
/**
|