@app-studio/web 0.7.10 → 0.7.12

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.
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
+ import { ViewProps, ImageProps } from 'app-studio';
2
3
  export declare const FileSVG: ({ src, color, ...props }: {
3
4
  src: string;
4
5
  color?: string | undefined;
5
- }) => React.JSX.Element;
6
- export declare const FileImage: ({ path, ...props }: any) => React.JSX.Element;
6
+ } & ViewProps) => React.JSX.Element;
7
+ export declare const FileImage: ({ path, ...props }: {
8
+ path: string;
9
+ } & ImageProps) => React.JSX.Element;
@@ -34,7 +34,7 @@ export interface LoaderProps extends Omit<ViewProps, 'size'> {
34
34
  */
35
35
  speed?: Speed;
36
36
  }
37
- export interface DefaultSpinnerProps {
37
+ export interface DefaultSpinnerProps extends Omit<ViewProps, 'size'> {
38
38
  /**
39
39
  * To set the spinner height and width
40
40
  */
@@ -47,12 +47,8 @@ export interface DefaultSpinnerProps {
47
47
  * To change the spinner color
48
48
  */
49
49
  color?: string;
50
- /**
51
- * Other props
52
- * */
53
- [x: string]: any;
54
50
  }
55
- export interface DottedProps {
51
+ export interface DottedProps extends Omit<ViewProps, 'size'> {
56
52
  /**
57
53
  * To set the spinner height and width
58
54
  */
@@ -65,12 +61,8 @@ export interface DottedProps {
65
61
  * To change the spinner color
66
62
  */
67
63
  color?: string;
68
- /**
69
- * Other properties
70
- */
71
- [x: string]: any;
72
64
  }
73
- export interface QuarterProps {
65
+ export interface QuarterProps extends Omit<ViewProps, 'size'> {
74
66
  /**
75
67
  * To set the spinner height and width
76
68
  */
@@ -83,8 +75,4 @@ export interface QuarterProps {
83
75
  * To change the spinner color
84
76
  */
85
77
  color?: string;
86
- /**
87
- *Other properties
88
- */
89
- [x: string]: any;
90
78
  }
@@ -1,12 +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 { Shadow, ViewProps } from 'app-studio';
4
4
  import { CloseButtonPosition, Position, Shape, Size } from './Modal.type';
5
- export interface ModalProps {
6
- /**
7
- * The content to be displayed inside the modal.
8
- */
9
- children: React.ReactNode;
5
+ export interface ModalProps extends Omit<ViewProps, 'size'> {
10
6
  /**
11
7
  * The color of the close button in the header.
12
8
  */
@@ -51,10 +47,6 @@ export interface ModalProps {
51
47
  * Applies a shadow effect to the button.
52
48
  */
53
49
  shadow?: Shadow | Elevation | CSSProperties;
54
- /**
55
- * Additional properties.
56
- */
57
- [x: string]: any;
58
50
  }
59
51
  export interface ModalType extends React.FunctionComponent<ModalProps> {
60
52
  /**
@@ -82,7 +74,7 @@ export interface ModalType extends React.FunctionComponent<ModalProps> {
82
74
  */
83
75
  Layout: React.FC<ModalLayoutProps>;
84
76
  }
85
- export interface OverlayProps {
77
+ export interface OverlayProps extends Omit<ViewProps, 'size'> {
86
78
  /**
87
79
  * The content of the Overlay
88
80
  */
@@ -107,12 +99,8 @@ export interface OverlayProps {
107
99
  * Action to be handled when the button close is clicked or pressed
108
100
  */
109
101
  onClose: () => void;
110
- /**
111
- * Other properties
112
- */
113
- [x: string]: any;
114
102
  }
115
- export interface HeaderProps {
103
+ export interface HeaderProps extends Omit<ViewProps, 'size'> {
116
104
  /**
117
105
  * The content of the header
118
106
  */
@@ -133,17 +121,13 @@ export interface HeaderProps {
133
121
  * Action to be handled when the button close is clicked or pressed
134
122
  */
135
123
  onClose?: () => void;
136
- /**
137
- * Other properties
138
- */
139
- [x: string]: any;
140
124
  }
141
125
  export interface ModalLayoutProps {
142
126
  modals: {
143
127
  [x: string]: React.FC<any>;
144
128
  };
145
129
  }
146
- export interface ContainerProps {
130
+ export interface ContainerProps extends Omit<ViewProps, 'size'> {
147
131
  /**
148
132
  * The content of the modal container
149
133
  */
@@ -160,28 +144,8 @@ export interface ContainerProps {
160
144
  * Set a shadow effect on the button.
161
145
  */
162
146
  shadow?: Shadow | Elevation | CSSProperties;
163
- /**
164
- * Other properties
165
- */
166
- [x: string]: any;
167
147
  }
168
- export interface BodyProps {
169
- /**
170
- * The content of the Body
171
- */
172
- children?: React.ReactNode;
173
- /**
174
- * Other properties
175
- */
176
- [x: string]: any;
148
+ export interface BodyProps extends Omit<ViewProps, 'size'> {
177
149
  }
178
- export interface FooterProps {
179
- /**
180
- * The content of the Footer
181
- */
182
- children?: React.ReactNode;
183
- /**
184
- * Other properties
185
- */
186
- [x: string]: any;
150
+ export interface FooterProps extends ViewProps {
187
151
  }
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const ArrowDownSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const ArrowUpSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const CheckSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const CloseSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const CloseEyeSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const DustBinSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const EditSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const ErrorSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const ExternalLinkSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const IndeterminateSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const InfoSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const OpenEyeSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const PlusSvg: React.FC<SvgProps>;
8
8
  export default PlusSvg;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const ProfileSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const RightArrowSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const SearchLoopSvg: React.FC<SvgProps>;
8
8
  export default SearchLoopSvg;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const SuccessSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const TickSvg: React.FC<SvgProps>;
8
8
  export default TickSvg;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface SvgProps {
2
+ import { ViewProps } from 'app-studio';
3
+ interface SvgProps extends Omit<ViewProps, 'size'> {
3
4
  size?: number;
4
5
  color?: string;
5
- [x: string]: any;
6
6
  }
7
7
  export declare const WarningSvg: React.FC<SvgProps>;
8
8
  export {};
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
+ import { InputProps } from 'app-studio';
2
3
  import { Shape, Variant } from './Toggle.type';
3
- export interface ToggleProps {
4
+ export interface ToggleProps extends Omit<InputProps, 'size'> {
4
5
  shape?: Shape;
5
6
  isToggled?: boolean;
6
7
  isDisabled?: boolean;
@@ -8,7 +9,6 @@ export interface ToggleProps {
8
9
  variant?: Variant;
9
10
  colorScheme?: string;
10
11
  onToggle?: (isToggled: boolean) => void;
11
- [x: string]: any;
12
12
  }
13
13
  export interface ToggleViewProps extends ToggleProps {
14
14
  isHovered: boolean;
@@ -1,14 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  export interface ToggleGroupProps {
3
3
  }
4
+ import { InputProps } from 'app-studio';
4
5
  import { Shape, ToggleItem, Variant } from './ToggleGroup.type';
5
- export interface ToggleGroupProps {
6
+ export interface ToggleGroupProps extends Omit<InputProps, 'size'> {
6
7
  shape?: Shape;
7
8
  items: ToggleItem[];
8
9
  variant?: Variant;
9
10
  colorScheme?: string;
10
11
  onToggleChange?: (activeIds: string[]) => void;
11
- [x: string]: any;
12
12
  }
13
13
  export interface ToggleGroupViewProps extends ToggleGroupProps {
14
14
  activeToggles: string[];