@evlop/native-components 1.0.158 → 1.0.159

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,18 +1,26 @@
1
1
  import React from 'react';
2
- export declare const BaseButton: ({ color, action, ...props }: {
3
- [x: string]: any;
2
+ import { TouchableOpacityProps, TextStyle } from 'react-native';
3
+ import { FontWeightProps, FontSizeProps, LayoutProps, SpaceProps, BackgroundColorProps, BorderProps } from 'styled-system';
4
+ import { Theme } from '@evlop/commons';
5
+ declare type ButtonSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
6
+ interface ButtonProps extends TouchableOpacityProps, FontWeightProps<Theme>, FontSizeProps<Theme>, LayoutProps<Theme>, SpaceProps<Theme>, BackgroundColorProps<Theme>, BorderProps<Theme> {
7
+ variant?: 'filled' | 'outlined' | 'dim-outlined' | 'dim-filled-outlined' | 'ghost';
8
+ size?: ButtonSize;
4
9
  color?: string;
5
- action: any;
6
- }) => JSX.Element;
7
- declare const ButtonWithSettings: React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<{
8
- [x: string]: any;
9
- color?: string;
10
- action: any;
11
- } & {
10
+ textColor?: string;
11
+ textStyle?: TextStyle;
12
+ action?: () => Promise<any>;
13
+ icon?: string;
14
+ iconPosition?: 'left' | 'right';
15
+ }
16
+ export declare const BaseButton: React.FC<ButtonProps>;
17
+ declare const ButtonWithSettings: React.ForwardRefExoticComponent<ButtonProps & {
12
18
  model?: string;
13
19
  dataModel?: string;
14
20
  configModel?: string;
15
21
  action?: import("@evlop/commons").Action;
16
- }>, string | number> & React.RefAttributes<any>>;
22
+ } & {
23
+ children?: React.ReactNode;
24
+ } & React.RefAttributes<any>>;
17
25
  export default ButtonWithSettings;
18
26
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CA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F,QAAA,MAAM,kBAAkB;;;;;;;6BAIV,CAAC;AAEf,eAAe,kBAAkB,CAAC"}
@@ -1,27 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  var __rest = (this && this.__rest) || function (s, e) {
26
3
  var t = {};
27
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -33,45 +10,141 @@ var __rest = (this && this.__rest) || function (s, e) {
33
10
  }
34
11
  return t;
35
12
  };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
36
16
  Object.defineProperty(exports, "__esModule", { value: true });
37
17
  exports.BaseButton = void 0;
38
- const react_1 = __importStar(require("react"));
18
+ const react_1 = __importDefault(require("react"));
19
+ const react_native_1 = require("react-native");
20
+ const native_1 = __importDefault(require("styled-components/native"));
21
+ const styled_system_1 = require("styled-system");
22
+ const polished_1 = require("polished");
39
23
  const commons_1 = require("@evlop/commons");
40
- const native_1 = require("styled-components/native");
41
- const react_native_elements_1 = require("react-native-elements");
24
+ const native_components_1 = require("@evlop/native-components");
25
+ const commons_2 = require("@evlop/commons");
26
+ const Text_1 = require("./Text");
27
+ const Flexbox_1 = require("./Flexbox");
28
+ const buttonVariant = ({ variant, color, theme }) => {
29
+ const getColor = () => { var _a, _b; return color ? ((_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a[color]) || color : ((_b = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _b === void 0 ? void 0 : _b.primary) || '#000'; };
30
+ switch (variant) {
31
+ case 'filled':
32
+ return {
33
+ backgroundColor: getColor(),
34
+ borderWidth: 0,
35
+ };
36
+ case 'outlined':
37
+ return {
38
+ backgroundColor: 'transparent',
39
+ borderWidth: 2,
40
+ borderColor: getColor(),
41
+ };
42
+ case 'dim-outlined':
43
+ return {
44
+ backgroundColor: 'transparent',
45
+ borderWidth: 2,
46
+ borderColor: (0, polished_1.transparentize)(0.75, getColor()),
47
+ };
48
+ case 'dim-filled-outlined':
49
+ return {
50
+ backgroundColor: (0, polished_1.transparentize)(0.95, getColor()),
51
+ borderWidth: 2,
52
+ borderColor: (0, polished_1.transparentize)(0.95, getColor()),
53
+ };
54
+ case 'ghost':
55
+ return {
56
+ backgroundColor: 'transparent',
57
+ borderWidth: 0,
58
+ };
59
+ default:
60
+ return {};
61
+ }
62
+ };
63
+ const sizeVariant = (0, styled_system_1.variant)({
64
+ prop: 'size',
65
+ variants: {
66
+ sm: {
67
+ padding: 4,
68
+ },
69
+ md: {
70
+ padding: 8,
71
+ },
72
+ lg: {
73
+ padding: 16,
74
+ },
75
+ 'xl': {
76
+ padding: 20,
77
+ },
78
+ '2xl': {
79
+ padding: 24,
80
+ },
81
+ },
82
+ });
83
+ const StyledActivityIndicator = (0, native_1.default)(react_native_1.ActivityIndicator).attrs(({ color, theme }) => {
84
+ var _a;
85
+ return ({
86
+ color: ((_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a[color || '']) || color,
87
+ });
88
+ })({
89
+ position: 'absolute',
90
+ zIndex: 1000,
91
+ });
92
+ const StyledTouchable = (0, native_1.default)(react_native_1.TouchableOpacity)({
93
+ alignItems: 'center',
94
+ justifyContent: 'center',
95
+ borderRadius: 4,
96
+ }, (0, styled_system_1.compose)(sizeVariant, buttonVariant, props => ({
97
+ opacity: props.disabled ? 0.5 : 1,
98
+ })), styled_system_1.space, styled_system_1.layout, styled_system_1.backgroundColor, styled_system_1.border);
99
+ const fontSizes = {
100
+ sm: 12,
101
+ md: 16,
102
+ lg: 20,
103
+ xl: 24,
104
+ '2xl': 28,
105
+ };
106
+ const fontWeights = {
107
+ sm: 'Regular',
108
+ md: 'Regular',
109
+ lg: 'Regular',
110
+ xl: 'Bold',
111
+ '2xl': 'Bold',
112
+ };
113
+ const iconSizes = {
114
+ sm: 16,
115
+ md: 24,
116
+ lg: 32,
117
+ xl: 40,
118
+ '2xl': 48,
119
+ };
120
+ const gapBetweenIconAndText = {
121
+ sm: 4,
122
+ md: 8,
123
+ lg: 12,
124
+ xl: 16,
125
+ '2xl': 20,
126
+ };
42
127
  const BaseButton = (_a) => {
43
- var { color = 'primary', action } = _a, props = __rest(_a, ["color", "action"]);
44
- const theme = react_1.default.useContext(native_1.ThemeContext);
45
- const { colors: { [color]: colorCode } = {} } = theme;
46
- const onPress = (0, commons_1.useAction)(action);
47
- const buttonTheme = (0, react_1.useMemo)(() => {
48
- return { colors: { primary: colorCode || color } };
49
- }, [color, colorCode]);
50
- return react_1.default.createElement(react_native_elements_1.ThemeProvider, { theme: buttonTheme },
51
- react_1.default.createElement(react_native_elements_1.Button, Object.assign({ onPress: onPress }, props)));
128
+ var { variant = 'filled', size = 'md', disabled = false, color = 'primary', textColor, children, textStyle, action, icon, iconPosition = 'left', fontWeight, fontSize } = _a, props = __rest(_a, ["variant", "size", "disabled", "color", "textColor", "children", "textStyle", "action", "icon", "iconPosition", "fontWeight", "fontSize"]);
129
+ const [isProcessing, actionHandeller] = (0, commons_1.useAsyncAction)(action);
130
+ const textColorToUse = textColor || (variant === 'filled' ? 'white' : color);
131
+ const handlePress = (event) => {
132
+ if (typeof actionHandeller === 'function') {
133
+ actionHandeller(event);
134
+ }
135
+ };
136
+ const isDisabled = Boolean(disabled || isProcessing);
137
+ return (react_1.default.createElement(StyledTouchable, Object.assign({ onPress: handlePress, disabled: isDisabled, variant: variant, size: size, color: color, activeOpacity: 0.7 }, props),
138
+ isProcessing && (react_1.default.createElement(StyledActivityIndicator, { color: textColorToUse })),
139
+ react_1.default.createElement(Flexbox_1.BaseFlexbox, { flexDirection: iconPosition === 'right' ? 'row-reverse' : 'row', alignItems: "center", justifyContent: "center", gap: gapBetweenIconAndText[size], opacity: isProcessing ? 0 : 1 },
140
+ icon && react_1.default.createElement(native_components_1.BaseIcon, { icon: icon, size: iconSizes[size], color: textColorToUse }),
141
+ react_1.default.createElement(Text_1.BaseText, { color: textColorToUse, fontWeight: fontWeight || fontWeights[size], fontSize: fontSize || fontSizes[size], style: textStyle }, children))));
52
142
  };
53
143
  exports.BaseButton = BaseButton;
54
- const ButtonWithSettings = (0, commons_1.withSettings)({
144
+ const ButtonWithSettings = (0, commons_2.withSettings)({
55
145
  name: 'Button',
56
- valueOptions: [
57
- { type: 'text', name: 'title', label: 'Title' },
58
- { type: 'app-action', name: 'action', label: 'Action' },
59
- ],
60
- configurationOptions: [
61
- { label: 'Color', name: 'color', type: 'color' },
62
- { label: 'Icon', name: 'icon', type: 'icon' },
63
- {
64
- type: 'select',
65
- name: 'type',
66
- label: 'Type',
67
- options: [
68
- { label: 'Default', value: null },
69
- { label: 'Solid', value: 'solid' },
70
- { label: 'Outlined', value: 'outline' },
71
- { label: 'Clear', value: 'clear' },
72
- ],
73
- },
74
- ],
146
+ valueOptions: [],
147
+ configurationOptions: [],
75
148
  })(exports.BaseButton);
76
149
  exports.default = ButtonWithSettings;
77
150
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"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AI,CAAC,EAAE,KAAK,EAAE,cAAc,GAAI;YAC/E,8BAAC,eAAQ,IACP,KAAK,EAAE,cAAqB,EAC5B,UAAU,EAAE,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC,EAC3C,QAAQ,EAAE,QAAQ,IAAI,SAAS,CAAC,IAAI,CAAQ,EAC5C,KAAK,EAAE,SAAS,IAEf,QAAQ,CACA,CACC,CACE,CACnB,CAAC;AACJ,CAAC,CAAC;AA7DW,QAAA,UAAU,cA6DrB;AAEF,MAAM,kBAAkB,GAAG,IAAA,sBAAY,EAAC;IACpC,IAAI,EAAE,QAAQ;IACd,YAAY,EAAE,EAAE;IAChB,oBAAoB,EAAE,EAAE;CAC3B,CAAC,CAAC,kBAAU,CAAC,CAAC;AAEf,kBAAe,kBAAkB,CAAC"}
@@ -43,6 +43,6 @@ export declare const Image: React.ForwardRefExoticComponent<Pick<React.PropsWith
43
43
  dataModel?: string;
44
44
  configModel?: string;
45
45
  action?: import("@evlop/commons").Action;
46
- } | "aspectRatio" | "blurRadius" | "transitionDuration" | "transition" | "onPress" | "onLongPress" | "containerStyle" | "Component" | "ImageComponent" | "PlaceholderContent" | "placeholderStyle" | "onError" | "onLoad" | "onLoadEnd" | "onLoadStart" | "progressiveRenderingEnabled" | "resizeMode" | "resizeMethod" | "src" | "srcSet" | "loadingIndicatorSource" | "defaultSource" | "alt" | "crossOrigin" | "tintColor" | "referrerPolicy" | "capInsets" | "onProgress" | "onPartialLoad" | "fadeDuration" | "placeholder"> & React.RefAttributes<any>>;
46
+ } | "aspectRatio" | "blurRadius" | "transitionDuration" | "transition" | "onPress" | "onLongPress" | "crossOrigin" | "onLoad" | "onError" | "onLoadStart" | "onProgress" | "placeholder" | "referrerPolicy" | "alt" | "src" | "srcSet" | "Component" | "ImageComponent" | "PlaceholderContent" | "containerStyle" | "placeholderStyle" | "onLoadEnd" | "progressiveRenderingEnabled" | "resizeMode" | "resizeMethod" | "loadingIndicatorSource" | "defaultSource" | "tintColor" | "capInsets" | "onPartialLoad" | "fadeDuration"> & React.RefAttributes<any>>;
47
47
  export default Image;
48
48
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/native-components",
3
- "version": "1.0.158",
3
+ "version": "1.0.159",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "scripts": {