app-studio 0.5.35 → 0.5.37
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.
|
@@ -2,10 +2,10 @@ import React, { CSSProperties } from 'react';
|
|
|
2
2
|
import { AnimationProps } from '../utils/constants';
|
|
3
3
|
import { Shadow } from '../utils/shadow';
|
|
4
4
|
export interface ElementProps extends CssProps {
|
|
5
|
-
on?: Record<string, CssProps
|
|
6
|
-
media?: Record<string, CssProps
|
|
7
|
-
only?: string[];
|
|
8
|
-
css?: CSSProperties;
|
|
5
|
+
on?: Record<string, CssProps> | undefined;
|
|
6
|
+
media?: Record<string, CssProps> | undefined;
|
|
7
|
+
only?: string[] | undefined;
|
|
8
|
+
css?: CSSProperties | undefined;
|
|
9
9
|
}
|
|
10
10
|
export interface CssProps extends CSSProperties {
|
|
11
11
|
children?: React.ReactNode;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementProps } from './Element';
|
|
3
3
|
import { ViewStyleProps } from '../types/style';
|
|
4
|
-
interface CommonProps extends
|
|
4
|
+
interface CommonProps extends ElementProps, Omit<ViewStyleProps, 'children' | 'style' | 'pointerEvents' | 'onClick'> {
|
|
5
5
|
}
|
|
6
|
-
export interface FormProps extends CommonProps, Omit<Partial<HTMLFormElement>, 'width' | 'height' | 'children' | 'translate' | 'target' | 'border' | 'draggable'>,
|
|
6
|
+
export interface FormProps extends CommonProps, Omit<Partial<HTMLFormElement>, 'width' | 'height' | 'children' | 'translate' | 'target' | 'border' | 'draggable'>, ElementProps {
|
|
7
7
|
}
|
|
8
|
-
export interface ButtonProps extends CommonProps, Omit<Partial<HTMLButtonElement>, 'width' | 'height' | 'children' | 'translate' | 'type' | 'border' | 'animate' | 'style' | 'draggable'>,
|
|
8
|
+
export interface ButtonProps extends CommonProps, Omit<Partial<HTMLButtonElement>, 'width' | 'height' | 'children' | 'translate' | 'type' | 'border' | 'animate' | 'style' | 'draggable'>, ElementProps {
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
onClick?: (..._args: any) => void;
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementProps } from './Element';
|
|
3
3
|
import { ImageStyleProps } from '../types/style';
|
|
4
|
-
export interface ImageProps extends Omit<ImageStyleProps, 'children' | 'style' | 'pointerEvents' | 'onClick'>, Omit<Partial<HTMLImageElement>, 'width' | 'height' | 'children' | 'translate' | 'target' | 'border' | 'animate' | 'draggable' | 'style'>,
|
|
4
|
+
export interface ImageProps extends Omit<ImageStyleProps, 'children' | 'style' | 'pointerEvents' | 'onClick'>, Omit<Partial<HTMLImageElement>, 'width' | 'height' | 'children' | 'translate' | 'target' | 'border' | 'animate' | 'draggable' | 'style'>, ElementProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const Image: React.ForwardRefExoticComponent<ElementProps & React.RefAttributes<HTMLElement> & ImageProps>;
|
|
7
7
|
export declare const ImageBackground: React.ForwardRefExoticComponent<ElementProps & React.RefAttributes<HTMLElement> & ImageProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementProps } from './Element';
|
|
3
3
|
import { TextStyleProps } from '../types/style';
|
|
4
|
-
export interface TextProps extends Omit<TextStyleProps, 'children' | 'style' | 'onPress' | 'pointerEvents' | 'onClick'>,
|
|
4
|
+
export interface TextProps extends Omit<TextStyleProps, 'children' | 'style' | 'onPress' | 'pointerEvents' | 'onClick'>, ElementProps {
|
|
5
5
|
toUpperCase?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const Text: React.ForwardRefExoticComponent<ElementProps & React.RefAttributes<HTMLElement> & TextProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementProps } from './Element';
|
|
3
3
|
import { ViewStyleProps } from '../types/style';
|
|
4
|
-
export interface ViewProps extends Omit<ViewStyleProps, 'children' | 'translate' | 'style' | 'pointerEvents' | 'onClick'>,
|
|
4
|
+
export interface ViewProps extends Omit<ViewStyleProps, 'children' | 'translate' | 'style' | 'pointerEvents' | 'onClick'>, ElementProps {
|
|
5
5
|
onPress?: (..._args: any) => void;
|
|
6
6
|
}
|
|
7
7
|
export declare const View: React.ForwardRefExoticComponent<ElementProps & React.RefAttributes<HTMLElement> & ViewProps>;
|
package/package.json
CHANGED