@evlop/native-components 1.0.189 → 1.0.191
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/cjs/types-for-ai.d.ts +4 -1
- package/dist/cjs/types-for-ai.d.ts.map +1 -1
- package/dist/cjs/types-for-ai.js +7 -1
- package/dist/cjs/types-for-ai.js.map +1 -1
- package/dist/types/main.ai.d.ts +51 -3
- package/dist/types/types-for-ai.d.ts +4 -1
- package/dist/types/types-for-ai.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3,5 +3,8 @@ import { BaseFlexbox as Flexbox } from './src/Flexbox';
|
|
|
3
3
|
import { BaseText as Text } from './src/Text';
|
|
4
4
|
import { BaseIcon as Icon } from './src/Icon';
|
|
5
5
|
import { BaseButton as Button } from './src/Button';
|
|
6
|
-
|
|
6
|
+
import { BaseActionable as Actionable } from './src/Actionable';
|
|
7
|
+
import { BaseImage as Image } from './src/Image';
|
|
8
|
+
import { BaseImageBackground as ImageBackground } from './src/ImageBackground';
|
|
9
|
+
export { View, Flexbox, Text, Icon, Button, Actionable, Image, ImageBackground };
|
|
7
10
|
//# sourceMappingURL=types-for-ai.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-for-ai.d.ts","sourceRoot":"","sources":["../../types-for-ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,UAAU,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"types-for-ai.d.ts","sourceRoot":"","sources":["../../types-for-ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,UAAU,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,EAAE,SAAS,IAAI,KAAK,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,mBAAmB,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE9E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC"}
|
package/dist/cjs/types-for-ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Button = exports.Icon = exports.Text = exports.Flexbox = exports.View = void 0;
|
|
3
|
+
exports.ImageBackground = exports.Image = exports.Actionable = exports.Button = exports.Icon = exports.Text = exports.Flexbox = exports.View = void 0;
|
|
4
4
|
const View_1 = require("./src/View");
|
|
5
5
|
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return View_1.BaseView; } });
|
|
6
6
|
const Flexbox_1 = require("./src/Flexbox");
|
|
@@ -11,4 +11,10 @@ const Icon_1 = require("./src/Icon");
|
|
|
11
11
|
Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return Icon_1.BaseIcon; } });
|
|
12
12
|
const Button_1 = require("./src/Button");
|
|
13
13
|
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.BaseButton; } });
|
|
14
|
+
const Actionable_1 = require("./src/Actionable");
|
|
15
|
+
Object.defineProperty(exports, "Actionable", { enumerable: true, get: function () { return Actionable_1.BaseActionable; } });
|
|
16
|
+
const Image_1 = require("./src/Image");
|
|
17
|
+
Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return Image_1.BaseImage; } });
|
|
18
|
+
const ImageBackground_1 = require("./src/ImageBackground");
|
|
19
|
+
Object.defineProperty(exports, "ImageBackground", { enumerable: true, get: function () { return ImageBackground_1.BaseImageBackground; } });
|
|
14
20
|
//# sourceMappingURL=types-for-ai.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-for-ai.js","sourceRoot":"","sources":["../../types-for-ai.ts"],"names":[],"mappings":";;;AAAA,qCAA6C;
|
|
1
|
+
{"version":3,"file":"types-for-ai.js","sourceRoot":"","sources":["../../types-for-ai.ts"],"names":[],"mappings":";;;AAAA,qCAA6C;AASpC,qFATY,eAAI,OASZ;AARb,2CAAsD;AAQvC,wFARS,qBAAO,OAQT;AAPtB,qCAA6C;AAOrB,qFAPH,eAAI,OAOG;AAN5B,qCAA6C;AAMf,qFANT,eAAI,OAMS;AALlC,yCAAmD;AAKf,uFALb,mBAAM,OAKa;AAJ1C,iDAA+D;AAInB,2FAJjB,2BAAU,OAIiB;AAHtD,uCAAgD;AAGQ,sFAHlC,iBAAK,OAGkC;AAF7D,2DAA8E;AAEf,gGAF/B,qCAAe,OAE+B"}
|
package/dist/types/main.ai.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Action, Color, IconIdentifier, Theme } from '@evlop/commons';
|
|
1
|
+
import { Action, Color, ComponentWithSettings, IconIdentifier, Theme } from '@evlop/commons';
|
|
2
2
|
import React$1 from 'react';
|
|
3
|
-
import { TextProps as RNTextProps, TextStyle, View as RNView, ViewProps, ViewProps as RNViewProps } from 'react-native';
|
|
4
|
-
import { BackgroundColorProps, BackgroundProps, BorderProps, ColorProps, FlexboxProps, FlexboxProps as SSFlexboxProps, FontSizeProps, FontWeightProps, LayoutProps, OpacityProps, PositionProps, ResponsiveValue, SpaceProps, ThemeValue, TypographyProps } from 'styled-system';
|
|
3
|
+
import { ImageBackgroundProps as RNImageBackgroundProps, ImageProps, PressableProps, TextProps as RNTextProps, TextStyle, View as RNView, ViewProps, ViewProps as RNViewProps } from 'react-native';
|
|
4
|
+
import { BackgroundColorProps, BackgroundProps, BorderProps, ColorProps, FlexProps, FlexboxProps, FlexboxProps as SSFlexboxProps, FontSizeProps, FontWeightProps, LayoutProps, OpacityProps, PositionProps, ResponsiveValue, SpaceProps, ThemeValue, TypographyProps } from 'styled-system';
|
|
5
5
|
|
|
6
6
|
type BaseViewProps = RNViewProps & FlexboxProps<Theme> & BorderProps<Theme> & LayoutProps<Theme> & OpacityProps<Theme> & ColorProps<Theme> & BackgroundProps<Theme> & SpaceProps<Theme> & PositionProps<Theme> & OpacityProps<Theme>;
|
|
7
7
|
declare const BaseView: React$1.ComponentType<BaseViewProps & React$1.RefAttributes<RNView>>;
|
|
@@ -43,11 +43,59 @@ interface BaseButtonProps extends ViewProps, FontWeightProps<Theme>, FontSizePro
|
|
|
43
43
|
iconPosition?: "left" | "right";
|
|
44
44
|
}
|
|
45
45
|
declare const BaseButton: React$1.FC<BaseButtonProps>;
|
|
46
|
+
type EffectType = "none" | "scale" | "opacity" | "both" | "elevation" | "border" | "color" | "ripple" | "spring";
|
|
47
|
+
type FeedbackType = "none" | "light" | "medium" | "heavy" | "success" | "error" | "warning";
|
|
48
|
+
interface BaseActionableProps extends PressableProps {
|
|
49
|
+
effect?: EffectType;
|
|
50
|
+
feedback?: FeedbackType;
|
|
51
|
+
action: Action;
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}
|
|
54
|
+
declare const BaseActionable: React$1.ComponentType<BaseActionableProps>;
|
|
55
|
+
type NativeImageProps = ImageProps;
|
|
56
|
+
declare const imageSizes: {
|
|
57
|
+
xxxs: number;
|
|
58
|
+
"3xs": number;
|
|
59
|
+
xxs: number;
|
|
60
|
+
"2xs": number;
|
|
61
|
+
xs: number;
|
|
62
|
+
sm: number;
|
|
63
|
+
md: number;
|
|
64
|
+
lg: number;
|
|
65
|
+
xl: number;
|
|
66
|
+
xxl: number;
|
|
67
|
+
"2xl": number;
|
|
68
|
+
xxxl: number;
|
|
69
|
+
"3xl": number;
|
|
70
|
+
fluid: string;
|
|
71
|
+
};
|
|
72
|
+
type ImageSize = keyof (typeof imageSizes);
|
|
73
|
+
type StyledImageProps = NativeImageProps & BorderProps<Theme> & SpaceProps<Theme> & {
|
|
74
|
+
width?: ImageSize | number;
|
|
75
|
+
height?: ImageSize | number;
|
|
76
|
+
minHeight?: ImageSize | number;
|
|
77
|
+
minWidth?: ImageSize | number;
|
|
78
|
+
aspectRatio?: string | number;
|
|
79
|
+
};
|
|
80
|
+
declare const BaseImage: React$1.ForwardRefExoticComponent<Partial<StyledImageProps> & {
|
|
81
|
+
src?: string;
|
|
82
|
+
loadingIndicatorSrc?: string;
|
|
83
|
+
placeholder?: string;
|
|
84
|
+
} & React$1.RefAttributes<any>>;
|
|
85
|
+
type StyledImageBackgroundProps = RNImageBackgroundProps & FlexProps<Theme> & BorderProps<Theme> & LayoutProps<Theme> & OpacityProps<Theme> & ColorProps<Theme> & BackgroundProps<Theme> & SpaceProps<Theme>;
|
|
86
|
+
type BaseImageBackgroundProps = StyledImageBackgroundProps & {
|
|
87
|
+
src?: string;
|
|
88
|
+
placeholder?: string;
|
|
89
|
+
};
|
|
90
|
+
declare const BaseImageBackground: ComponentWithSettings<BaseImageBackgroundProps>;
|
|
46
91
|
|
|
47
92
|
export {
|
|
93
|
+
BaseActionable as Actionable,
|
|
48
94
|
BaseButton as Button,
|
|
49
95
|
BaseFlexbox as Flexbox,
|
|
50
96
|
BaseIcon as Icon,
|
|
97
|
+
BaseImage as Image,
|
|
98
|
+
BaseImageBackground as ImageBackground,
|
|
51
99
|
BaseText as Text,
|
|
52
100
|
BaseView as View,
|
|
53
101
|
};
|
|
@@ -3,5 +3,8 @@ import { BaseFlexbox as Flexbox } from './src/Flexbox';
|
|
|
3
3
|
import { BaseText as Text } from './src/Text';
|
|
4
4
|
import { BaseIcon as Icon } from './src/Icon';
|
|
5
5
|
import { BaseButton as Button } from './src/Button';
|
|
6
|
-
|
|
6
|
+
import { BaseActionable as Actionable } from './src/Actionable';
|
|
7
|
+
import { BaseImage as Image } from './src/Image';
|
|
8
|
+
import { BaseImageBackground as ImageBackground } from './src/ImageBackground';
|
|
9
|
+
export { View, Flexbox, Text, Icon, Button, Actionable, Image, ImageBackground };
|
|
7
10
|
//# sourceMappingURL=types-for-ai.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-for-ai.d.ts","sourceRoot":"","sources":["../../types-for-ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,UAAU,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"types-for-ai.d.ts","sourceRoot":"","sources":["../../types-for-ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,UAAU,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,EAAE,SAAS,IAAI,KAAK,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,mBAAmB,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE9E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC"}
|