@app-studio/web 0.7.9 → 0.7.11

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.
Files changed (56) hide show
  1. package/dist/components/AspectRatio/AspectRatio/AspectRatio.props.d.ts +2 -4
  2. package/dist/components/Badge/Badge/Badge.props.d.ts +2 -2
  3. package/dist/components/Button/Button/Button.props.d.ts +2 -3
  4. package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +2 -3
  5. package/dist/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +2 -2
  6. package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +4 -16
  7. package/dist/components/Form/Label/Label/Label.props.d.ts +2 -2
  8. package/dist/components/Form/Password/Password/Password.props.d.ts +2 -5
  9. package/dist/components/Form/Select/Select/Select.props.d.ts +6 -26
  10. package/dist/components/Form/Switch/Switch/Switch.props.d.ts +2 -6
  11. package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +2 -6
  12. package/dist/components/Form/TextField/TextField/TextField.props.d.ts +2 -6
  13. package/dist/components/Layout/Center/Center/Center.props.d.ts +2 -15
  14. package/dist/components/Layout/Horizontal/Horizontal/Horizontal.props.d.ts +2 -22
  15. package/dist/components/Layout/Horizontal/Horizontal.d.ts +2 -2
  16. package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +2 -5
  17. package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +2 -6
  18. package/dist/components/Layout/Input/FieldIcons/FieldIcons/FieldIcons.props.d.ts +2 -10
  19. package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +2 -5
  20. package/dist/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +2 -5
  21. package/dist/components/Layout/Input/FieldWrapper/FieldWrapper.props.d.ts +2 -10
  22. package/dist/components/Layout/Input/HelperText/HelperText.props.d.ts +2 -5
  23. package/dist/components/Layout/Vertical/Vertical/Vertical.props.d.ts +2 -22
  24. package/dist/components/Layout/View/View.d.ts +8 -7
  25. package/dist/components/Link/Link/Link.props.d.ts +2 -5
  26. package/dist/components/Loader/Loader/Loader.props.d.ts +5 -20
  27. package/dist/components/Modal/Modal/Modal.props.d.ts +7 -43
  28. package/dist/components/Svg/ArrowDown.d.ts +2 -2
  29. package/dist/components/Svg/ArrowUp.d.ts +2 -2
  30. package/dist/components/Svg/Check.d.ts +2 -2
  31. package/dist/components/Svg/Close.d.ts +2 -2
  32. package/dist/components/Svg/CloseEye.d.ts +2 -2
  33. package/dist/components/Svg/DustBin.d.ts +2 -2
  34. package/dist/components/Svg/Edit.d.ts +2 -2
  35. package/dist/components/Svg/Error.d.ts +2 -2
  36. package/dist/components/Svg/ExternalLink.d.ts +2 -2
  37. package/dist/components/Svg/Indeterminate.d.ts +2 -2
  38. package/dist/components/Svg/Info.d.ts +2 -2
  39. package/dist/components/Svg/OpenEye.d.ts +2 -2
  40. package/dist/components/Svg/Plus.d.ts +2 -2
  41. package/dist/components/Svg/Profile.d.ts +2 -2
  42. package/dist/components/Svg/RightArrow.d.ts +2 -2
  43. package/dist/components/Svg/Search.d.ts +2 -2
  44. package/dist/components/Svg/Success.d.ts +2 -2
  45. package/dist/components/Svg/Tick.d.ts +2 -2
  46. package/dist/components/Svg/Warning.d.ts +2 -2
  47. package/dist/components/Toggle/Toggle/Toggle.props.d.ts +2 -2
  48. package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.props.d.ts +2 -2
  49. package/dist/web.cjs.development.js +137 -158
  50. package/dist/web.cjs.development.js.map +1 -1
  51. package/dist/web.cjs.production.min.js +1 -1
  52. package/dist/web.cjs.production.min.js.map +1 -1
  53. package/dist/web.esm.js +137 -158
  54. package/dist/web.esm.js.map +1 -1
  55. package/package.json +1 -1
  56. package/dist/components/Layout/Vertical/Vertical/Vertical.type.d.ts +0 -2
@@ -1,6 +1,4 @@
1
- import React from 'react';
2
- export interface AspectRatioProps {
1
+ import { ViewProps } from 'app-studio';
2
+ export interface AspectRatioProps extends ViewProps {
3
3
  ratio?: number;
4
- children?: React.ReactNode;
5
- [x: string]: any;
6
4
  }
@@ -1,5 +1,6 @@
1
1
  import { Size, Variant, Shape, Position, BadgeStyles } from './Badge.type';
2
- export interface BadgeProps {
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
- export interface ComboBoxProps {
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
- export interface PasswordProps extends TextFieldProps {
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';
3
+ import { InputProps, Shadow } from 'app-studio';
4
4
  import { SelectStyles, Shape, Size, Variant, Option } from './Select.type';
5
- export interface SelectProps {
5
+ export interface SelectProps extends Omit<InputProps, 'size'> {
6
6
  /**
7
7
  * The identifier of the select field.
8
8
  */
@@ -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
  /**
@@ -138,7 +134,7 @@ export interface SelectBoxProps {
138
134
  */
139
135
  size?: Size;
140
136
  }
141
- export interface MultiSelectProps {
137
+ export interface MultiSelectProps extends Omit<InputProps, 'size'> {
142
138
  /**
143
139
  * Option to be displayed
144
140
  */
@@ -151,12 +147,8 @@ export interface MultiSelectProps {
151
147
  * To set the item's fontSize
152
148
  */
153
149
  size?: Size;
154
- /**
155
- * other properties
156
- */
157
- [x: string]: any;
158
150
  }
159
- export interface ItemProps {
151
+ export interface ItemProps extends Omit<InputProps, 'size'> {
160
152
  /**
161
153
  * Function that will be called when the option is clicked
162
154
  */
@@ -173,12 +165,8 @@ export interface ItemProps {
173
165
  * Css styles for the Item
174
166
  */
175
167
  style?: SelectStyles;
176
- /**
177
- * other properties
178
- */
179
- [x: string]: any;
180
168
  }
181
- export interface HiddenSelectProps {
169
+ export interface HiddenSelectProps extends Omit<InputProps, 'size'> {
182
170
  /**
183
171
  * Identifier
184
172
  */
@@ -211,12 +199,8 @@ export interface HiddenSelectProps {
211
199
  * List of options
212
200
  */
213
201
  options: Option[];
214
- /**
215
- * other properties
216
- */
217
- [x: string]: any;
218
202
  }
219
- export interface DropDownProps {
203
+ export interface DropDownProps extends Omit<InputProps, 'size'> {
220
204
  /**
221
205
  * To set the height and width of the item list.
222
206
  */
@@ -233,8 +217,4 @@ export interface DropDownProps {
233
217
  * Css styles for the select container and label
234
218
  */
235
219
  styles?: SelectStyles;
236
- /**
237
- * other properties
238
- */
239
- [x: string]: any;
240
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 React from 'react';
2
- import { Wrap } from '../../configs/Input.type';
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 React from 'react';
2
- import { Justify, Wrap } from '../../configs/Input.type';
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 { HorizontalProps } from './Horizontal/Horizontal.props';
3
- export declare const Horizontal: React.FC<HorizontalProps>;
2
+ import type { ViewProps } from 'app-studio';
3
+ export declare const Horizontal: React.FC<ViewProps>;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TextFieldStyles } from '../../../../Layout/configs/Input.type';
3
- export interface ContainerProps {
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 React from 'react';
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
- export interface LabelProps {
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
- export interface FieldProps {
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 React from 'react';
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
- export interface HelperTextProps {
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 React from 'react';
2
- import { Justify, Wrap } from '../../configs/Input.type';
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
- export type { ViewProps } from 'app-studio';
3
- export declare const Top: (props: any) => React.JSX.Element;
4
- export declare const Bottom: (props: any) => React.JSX.Element;
5
- export declare const Left: (props: any) => React.JSX.Element;
6
- export declare const Right: (props: any) => React.JSX.Element;
7
- export declare const Inline: (props: any) => React.JSX.Element;
8
- export declare const View: React.FC<import("app-studio").ViewProps>;
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
- export interface LinkProps {
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,12 +33,8 @@ 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
- export interface DefaultSpinnerProps {
37
+ export interface DefaultSpinnerProps extends Omit<ViewProps, 'size'> {
41
38
  /**
42
39
  * To set the spinner height and width
43
40
  */
@@ -50,12 +47,8 @@ export interface DefaultSpinnerProps {
50
47
  * To change the spinner color
51
48
  */
52
49
  color?: string;
53
- /**
54
- * Other props
55
- * */
56
- [x: string]: any;
57
50
  }
58
- export interface DottedProps {
51
+ export interface DottedProps extends Omit<ViewProps, 'size'> {
59
52
  /**
60
53
  * To set the spinner height and width
61
54
  */
@@ -68,12 +61,8 @@ export interface DottedProps {
68
61
  * To change the spinner color
69
62
  */
70
63
  color?: string;
71
- /**
72
- * Other properties
73
- */
74
- [x: string]: any;
75
64
  }
76
- export interface QuarterProps {
65
+ export interface QuarterProps extends Omit<ViewProps, 'size'> {
77
66
  /**
78
67
  * To set the spinner height and width
79
68
  */
@@ -86,8 +75,4 @@ export interface QuarterProps {
86
75
  * To change the spinner color
87
76
  */
88
77
  color?: string;
89
- /**
90
- *Other properties
91
- */
92
- [x: string]: any;
93
78
  }