@codeleap/mobile 1.2.1 → 1.3.0
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/components/Animated.d.ts +103 -0
- package/dist/components/Animated.js +55 -0
- package/dist/components/Animated.js.map +1 -0
- package/dist/components/Button.d.ts +2 -8
- package/dist/components/Button.js +2 -1
- package/dist/components/Button.js.map +1 -1
- package/dist/components/FileInput.d.ts +19 -2
- package/dist/components/FileInput.js +89 -4
- package/dist/components/FileInput.js.map +1 -1
- package/dist/components/Image.d.ts +2 -2
- package/dist/components/Image.js.map +1 -1
- package/dist/components/Modal/index.d.ts +24 -0
- package/dist/components/Modal/index.js +116 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/Modal/styles.d.ts +62 -0
- package/dist/components/Modal/styles.js +62 -0
- package/dist/components/Modal/styles.js.map +1 -0
- package/dist/components/Overlay.d.ts +16 -0
- package/dist/components/Overlay.js +68 -0
- package/dist/components/Overlay.js.map +1 -0
- package/dist/components/Scroll.d.ts +1 -95
- package/dist/components/TextInput.js +22 -18
- package/dist/components/TextInput.js.map +1 -1
- package/dist/components/Touchable.d.ts +8 -14
- package/dist/components/Touchable.js +10 -12
- package/dist/components/Touchable.js.map +1 -1
- package/dist/components/View.d.ts +12 -10
- package/dist/components/View.js +2 -4
- package/dist/components/View.js.map +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/cropPicker.d.ts +1 -0
- package/dist/modules/cropPicker.js +10 -0
- package/dist/modules/cropPicker.js.map +1 -0
- package/dist/modules/documentPicker.d.ts +1 -0
- package/dist/modules/documentPicker.js +10 -0
- package/dist/modules/documentPicker.js.map +1 -0
- package/dist/utils/styles.js.map +1 -1
- package/package.json +6 -3
- package/src/components/Animated.tsx +31 -0
- package/src/components/Button.tsx +2 -1
- package/src/components/FileInput.tsx +67 -4
- package/src/components/Image.tsx +3 -3
- package/src/components/Modal/index.tsx +143 -0
- package/src/components/Modal/styles.ts +122 -0
- package/src/components/Overlay.tsx +72 -0
- package/src/components/TextInput.tsx +28 -22
- package/src/components/Touchable.tsx +20 -23
- package/src/components/View.tsx +5 -15
- package/src/components/index.ts +4 -0
- package/src/index.ts +2 -1
- package/src/modules/documentPicker.ts +2 -0
- package/src/utils/styles.ts +2 -2
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Components: {
|
|
3
|
+
Touchable: React.FC<import("./Touchable").TouchableProps>;
|
|
4
|
+
View: React.ForwardRefExoticComponent<Pick<import("./View").ViewProps, keyof import("react-native").ViewProps | keyof import("@codeleap/common").ComponentVariants<{
|
|
5
|
+
default: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
6
|
+
fixed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
7
|
+
block: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
8
|
+
flex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
9
|
+
absolute: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
10
|
+
sticky: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
11
|
+
row: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
12
|
+
center: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
13
|
+
column: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
14
|
+
wrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
15
|
+
inline: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
16
|
+
inlineFlex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
17
|
+
hidden: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
18
|
+
full: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
19
|
+
noWrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
20
|
+
fullWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
21
|
+
fullHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
22
|
+
fullView: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
23
|
+
fullViewWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
24
|
+
fullViewHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
25
|
+
whole: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
26
|
+
centerRow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
27
|
+
listStyles: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
28
|
+
alignStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
29
|
+
alignEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
30
|
+
alignCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
31
|
+
justifyStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
32
|
+
justifyEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
33
|
+
justifyCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
34
|
+
justifySpaceBetween: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
35
|
+
textRight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
36
|
+
textLeft: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
37
|
+
textCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
38
|
+
blur: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
39
|
+
elevated: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
40
|
+
neumorphism: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
41
|
+
scrollX: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
42
|
+
scrollY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
43
|
+
scrollXY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
44
|
+
debRed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
45
|
+
debGreen: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
46
|
+
debBlue: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
47
|
+
debYellow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
48
|
+
}, import("@codeleap/common").EnhancedTheme<any>, import("@codeleap/common").VariantProp<{
|
|
49
|
+
default: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
50
|
+
fixed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
51
|
+
block: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
52
|
+
flex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
53
|
+
absolute: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
54
|
+
sticky: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
55
|
+
row: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
56
|
+
center: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
57
|
+
column: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
58
|
+
wrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
59
|
+
inline: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
60
|
+
inlineFlex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
61
|
+
hidden: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
62
|
+
full: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
63
|
+
noWrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
64
|
+
fullWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
65
|
+
fullHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
66
|
+
fullView: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
67
|
+
fullViewWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
68
|
+
fullViewHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
69
|
+
whole: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
70
|
+
centerRow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
71
|
+
listStyles: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
72
|
+
alignStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
73
|
+
alignEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
74
|
+
alignCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
75
|
+
justifyStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
76
|
+
justifyEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
77
|
+
justifyCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
78
|
+
justifySpaceBetween: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
79
|
+
textRight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
80
|
+
textLeft: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
81
|
+
textCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
82
|
+
blur: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
83
|
+
elevated: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
84
|
+
neumorphism: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
85
|
+
scrollX: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
86
|
+
scrollY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
87
|
+
scrollXY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
88
|
+
debRed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
89
|
+
debGreen: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
90
|
+
debBlue: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
91
|
+
debYellow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
|
|
92
|
+
}>> | "component" | keyof import("@codeleap/common").BaseViewProps> & React.RefAttributes<import("react-native").View>>;
|
|
93
|
+
};
|
|
94
|
+
declare type AnimatedComponents = typeof Components;
|
|
95
|
+
declare type CP = keyof AnimatedComponents;
|
|
96
|
+
declare type AnimatedProps<T extends CP, CFG = Record<string, any>> = {
|
|
97
|
+
component: T;
|
|
98
|
+
config: CFG;
|
|
99
|
+
pose: keyof CFG;
|
|
100
|
+
initialPose?: keyof CFG;
|
|
101
|
+
} & Omit<Parameters<AnimatedComponents[T]>[0], 'component'>;
|
|
102
|
+
export declare const Animated: <T extends "View" | "Touchable", CFG = any>({ config, component, ...props }: AnimatedProps<T, CFG>) => JSX.Element;
|
|
103
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
22
|
+
var t = {};
|
|
23
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
24
|
+
t[p] = s[p];
|
|
25
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
26
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
27
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
28
|
+
t[p[i]] = s[p[i]];
|
|
29
|
+
}
|
|
30
|
+
return t;
|
|
31
|
+
};
|
|
32
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
33
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
|
+
};
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Animated = void 0;
|
|
37
|
+
var react_1 = __importStar(require("react"));
|
|
38
|
+
var react_native_pose_1 = __importDefault(require("react-native-pose"));
|
|
39
|
+
var Touchable_1 = require("./Touchable");
|
|
40
|
+
var View_1 = require("./View");
|
|
41
|
+
var Components = {
|
|
42
|
+
Touchable: Touchable_1.Touchable,
|
|
43
|
+
View: View_1.View
|
|
44
|
+
};
|
|
45
|
+
var PosedComponents = Object.fromEntries(Object.entries(Components).map(function (_a) {
|
|
46
|
+
var key = _a[0], Render = _a[1];
|
|
47
|
+
return [key, (0, react_native_pose_1.default)(Render)];
|
|
48
|
+
}));
|
|
49
|
+
var Animated = function (_a) {
|
|
50
|
+
var config = _a.config, component = _a.component, props = __rest(_a, ["config", "component"]);
|
|
51
|
+
var Component = (0, react_1.useRef)(PosedComponents[component](config)).current;
|
|
52
|
+
return <Component {...props}/>;
|
|
53
|
+
};
|
|
54
|
+
exports.Animated = Animated;
|
|
55
|
+
//# sourceMappingURL=Animated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Animated.js","sourceRoot":"","sources":["../../src/components/Animated.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,6CAAqC;AAErC,wEAAqC;AACrC,yCAAqC;AACrC,+BAA2B;AAC3B,IAAM,UAAU,GAAG;IACf,SAAS,uBAAA;IACT,IAAI,aAAA;CACP,CAAA;AAGD,IAAM,eAAe,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,UAAC,EAAY;QAAX,GAAG,QAAA,EAAC,MAAM,QAAA;IAAM,OAAA,CAAC,GAAG,EAAE,IAAA,2BAAK,EAAC,MAAM,CAAC,CAAC;AAApB,CAAoB,CAAC,CAAC,CAAA;AAY3G,IAAM,QAAQ,GAAG,UAA0B,EAAkD;IAAjD,IAAA,MAAM,YAAA,EAAC,SAAS,eAAA,EAAK,KAAK,cAA3B,uBAA4B,CAAD;IAEzE,IAAM,SAAS,GAAG,IAAA,cAAM,EAAC,eAAe,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;IAEpE,OAAO,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC,EAAG,CAAA;AACnC,CAAC,CAAA;AALY,QAAA,QAAQ,YAKpB"}
|
|
@@ -11,7 +11,7 @@ export declare type ButtonProps = Omit<TouchableProps, 'variants'> & ComponentVa
|
|
|
11
11
|
styles?: StylesOf<ButtonComposition>;
|
|
12
12
|
loading?: boolean;
|
|
13
13
|
};
|
|
14
|
-
export declare const Button: React.ForwardRefExoticComponent<
|
|
14
|
+
export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "children" | "hitSlop" | "onLayout" | "style" | "testID" | "hasTVPreferredFocus" | "tvParallaxProperties" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "text" | "component" | keyof import("@codeleap/common").BaseViewProps | "icon" | "disabled" | "rightIcon" | "styles" | "activeOpacity" | "delayLongPress" | "delayPressIn" | "delayPressOut" | "onBlur" | "onFocus" | "onLongPress" | "onPress" | "onPressIn" | "onPressOut" | "pressRetentionOffset" | "touchSoundDisabled" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "debugName" | keyof ComponentVariants<{
|
|
15
15
|
default: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ButtonComposition, any>>;
|
|
16
16
|
negative: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ButtonComposition, any>>;
|
|
17
17
|
circle: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ButtonComposition, any>>;
|
|
@@ -107,10 +107,4 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<TouchableProps
|
|
|
107
107
|
debGreen: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ButtonComposition, any>>;
|
|
108
108
|
debBlue: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ButtonComposition, any>>;
|
|
109
109
|
debYellow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ButtonComposition, any>>;
|
|
110
|
-
}>> &
|
|
111
|
-
text?: string;
|
|
112
|
-
rightIcon?: IconPlaceholder;
|
|
113
|
-
icon?: IconPlaceholder;
|
|
114
|
-
styles?: StylesOf<ButtonComposition>;
|
|
115
|
-
loading?: boolean;
|
|
116
|
-
} & React.RefAttributes<TouchableOpacity>>;
|
|
110
|
+
}>> | "loading"> & React.RefAttributes<TouchableOpacity>>;
|
|
@@ -50,7 +50,8 @@ exports.Button = (0, react_1.forwardRef)(function (buttonProps, ref) {
|
|
|
50
50
|
return (<Touchable_1.Touchable style={[variantStyles.wrapper, styles.wrapper]} onPress={handlePress} ref={ref} {...props}>
|
|
51
51
|
{loading && <ActivityIndicator_1.ActivityIndicator style={[variantStyles.loader, styles.loader]}/>}
|
|
52
52
|
{!loading && <Icon_1.Icon name={icon} style={react_native_1.StyleSheet.flatten([variantStyles.icon, styles.icon, variantStyles.leftIcon, styles.leftIcon])}/>}
|
|
53
|
-
{
|
|
53
|
+
{text ? <Text_1.Text text={text} style={[variantStyles.text, styles.text]}/> : null}
|
|
54
|
+
{children}
|
|
54
55
|
<Icon_1.Icon name={rightIcon} style={react_native_1.StyleSheet.flatten([variantStyles.icon, styles.icon, variantStyles.rightIcon, styles.rightIcon])}/>
|
|
55
56
|
</Touchable_1.Touchable>);
|
|
56
57
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA8B;AAC9B,2CAAyG;AACzG,+BAAmC;AAEnC,+BAA8B;AAC9B,yCAAwD;AACxD,+BAA8B;AAC9B,yDAAwD;AAExD,6CAA4D;AAa/C,QAAA,MAAM,GAAG,IAAA,kBAAU,EAAiC,UAAC,WAAW,EAAC,GAAG;IAE7E,IAAA,KAUE,WAAW,SAVA,EAAb,QAAQ,mBAAG,EAAE,KAAA,EACb,KASE,WAAW,mBATU,EAAvB,kBAAkB,mBAAG,EAAE,KAAA,EACvB,QAAQ,GAQN,WAAW,SARL,EACR,IAAI,GAOF,WAAW,KAPT,EACJ,IAAI,GAMF,W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,CAAC,CAAC,CAAC,EAAE,CACvI;MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,WAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAC5E;MAAA,CAAC,QAAQ,CACT;MAAA,CAAC,WAAI,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAU,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EACjI;IAAA,EAAE,qBAAS,CAAC,CACb,CAAA;AACH,CAAC,CAAC,CAAA"}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DocumentPicker } from '../modules/documentPicker';
|
|
3
|
+
import { ComponentVariants, FileInputComposition, FileInputStyles, IconPlaceholder, MobileInputFile } from '@codeleap/common';
|
|
4
|
+
import { StylesOf } from '../types/utility';
|
|
5
|
+
import { ButtonProps } from './Button';
|
|
6
|
+
export declare type FileInputRef = {
|
|
7
|
+
openFilePicker: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare type FileInputProps = {
|
|
10
|
+
label?: string;
|
|
11
|
+
iconName?: IconPlaceholder;
|
|
12
|
+
styles?: StylesOf<FileInputComposition>;
|
|
13
|
+
mode: 'hidden' | 'button';
|
|
14
|
+
variants?: ComponentVariants<typeof FileInputStyles>['variants'];
|
|
15
|
+
onFileSelect(files: MobileInputFile[]): void;
|
|
16
|
+
options?: DocumentPicker.DocumentPickerOptions;
|
|
17
|
+
buttonProps?: ButtonProps;
|
|
18
|
+
};
|
|
19
|
+
export declare const FileInput: React.FC<FileInputProps>;
|
|
@@ -18,11 +18,96 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
18
18
|
__setModuleDefault(result, mod);
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
31
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
32
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
33
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34
|
+
function step(op) {
|
|
35
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
36
|
+
while (_) try {
|
|
37
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
38
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
39
|
+
switch (op[0]) {
|
|
40
|
+
case 0: case 1: t = op; break;
|
|
41
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
42
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
43
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
44
|
+
default:
|
|
45
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
46
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
47
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
48
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
49
|
+
if (t[2]) _.ops.pop();
|
|
50
|
+
_.trys.pop(); continue;
|
|
51
|
+
}
|
|
52
|
+
op = body.call(thisArg, _);
|
|
53
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
54
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
55
|
+
}
|
|
56
|
+
};
|
|
21
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
58
|
exports.FileInput = void 0;
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
59
|
+
var react_1 = __importStar(require("react"));
|
|
60
|
+
var documentPicker_1 = require("../modules/documentPicker");
|
|
61
|
+
var common_1 = require("@codeleap/common");
|
|
62
|
+
var Button_1 = require("./Button");
|
|
63
|
+
var View_1 = require("./View");
|
|
64
|
+
var TextInput_1 = require("./TextInput");
|
|
65
|
+
exports.FileInput = (0, react_1.forwardRef)(function (fileInputProps, ref) {
|
|
66
|
+
var _a = fileInputProps.mode, mode = _a === void 0 ? 'hidden' : _a, onFileSelect = fileInputProps.onFileSelect, iconName = fileInputProps.iconName, styles = fileInputProps.styles, label = fileInputProps.label, variants = fileInputProps.variants, options = fileInputProps.options, buttonProps = fileInputProps.buttonProps;
|
|
67
|
+
var _b = react_1.default.useState(null), file = _b[0], setFile = _b[1];
|
|
68
|
+
var logger = (0, common_1.useStyle)().logger;
|
|
69
|
+
var openFilePicker = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
70
|
+
var files, err_1;
|
|
71
|
+
return __generator(this, function (_a) {
|
|
72
|
+
switch (_a.label) {
|
|
73
|
+
case 0:
|
|
74
|
+
_a.trys.push([0, 2, , 3]);
|
|
75
|
+
return [4 /*yield*/, documentPicker_1.DocumentPicker.pick(options)];
|
|
76
|
+
case 1:
|
|
77
|
+
files = _a.sent();
|
|
78
|
+
if (!Array.isArray(files)) {
|
|
79
|
+
files = [files];
|
|
80
|
+
}
|
|
81
|
+
setFile(files);
|
|
82
|
+
onFileSelect(files.map(function (file) { return ({ preview: file, file: file }); }));
|
|
83
|
+
return [3 /*break*/, 3];
|
|
84
|
+
case 2:
|
|
85
|
+
err_1 = _a.sent();
|
|
86
|
+
if (documentPicker_1.DocumentPicker.isCancel(err_1)) {
|
|
87
|
+
logger.log('User cancelled the picker.', null, 'Component');
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
throw err_1;
|
|
91
|
+
}
|
|
92
|
+
return [3 /*break*/, 3];
|
|
93
|
+
case 3: return [2 /*return*/];
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}); };
|
|
97
|
+
var variantStyles = (0, common_1.useComponentStyle)('FileInput', {
|
|
98
|
+
styles: styles,
|
|
99
|
+
variants: variants,
|
|
100
|
+
});
|
|
101
|
+
(0, react_1.useImperativeHandle)(ref, function () { return ({
|
|
102
|
+
openFilePicker: openFilePicker
|
|
103
|
+
}); });
|
|
104
|
+
var filenames = file ? file.map(function (f) { return f.name; }) : '';
|
|
105
|
+
if (mode === 'button') {
|
|
106
|
+
return (<View_1.View style={variantStyles.wrapper}>
|
|
107
|
+
<TextInput_1.InputLabel label={label} style={variantStyles.label}/>
|
|
108
|
+
<Button_1.Button onPress={function () { return openFilePicker(); }} text={filenames} icon={iconName || 'fileInputButton'} variants={filenames ? '' : 'icon'} {...buttonProps}/>
|
|
109
|
+
</View_1.View>);
|
|
110
|
+
}
|
|
111
|
+
return null;
|
|
27
112
|
});
|
|
28
113
|
//# sourceMappingURL=FileInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.js","sourceRoot":"","sources":["../../src/components/FileInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileInput.js","sourceRoot":"","sources":["../../src/components/FileInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAsE;AACtE,4DAA0D;AAC1D,2CAAyJ;AAEzJ,mCAA8C;AAC9C,+BAA6B;AAC7B,yCAAwC;AAiB3B,QAAA,SAAS,GAA6B,IAAA,kBAAU,EAA+B,UAAC,cAAc,EAAC,GAAG;IACpG,IAAA,KAA0F,cAAc,KAAzF,EAAf,IAAI,mBAAG,QAAQ,KAAA,EAAE,YAAY,GAA6D,cAAc,aAA3E,EAAE,QAAQ,GAAmD,cAAc,SAAjE,EAAE,MAAM,GAA2C,cAAc,OAAzD,EAAE,KAAK,GAAoC,cAAc,MAAlD,EAAE,QAAQ,GAA0B,cAAc,SAAxC,EAAE,OAAO,GAAiB,cAAc,QAA/B,EAAE,WAAW,GAAI,cAAc,YAAlB,CAAkB;IAEzG,IAAA,KAAkB,eAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAArC,IAAI,QAAA,EAAE,OAAO,QAAwB,CAAA;IAErC,IAAA,MAAM,GAAI,IAAA,iBAAQ,GAAE,OAAd,CAAc;IAE3B,IAAM,cAAc,GAAG;;;;;;oBAEH,qBAAM,+BAAc,CAAC,IAAI,CAAC,OAAO,CAAC,EAAA;;oBAA1C,KAAK,GAAG,SAAkC;oBAC9C,IAAG,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAC;wBACrB,KAAK,GAAG,CAAC,KAAK,CAAC,CAAA;qBAClB;oBACD,OAAO,CAAC,KAAK,CAAC,CAAA;oBACd,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC,EAAC,OAAO,EAAE,IAAI,EAAE,IAAI,M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AC,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ComponentVariants, ImageStyles } from "@codeleap/common";
|
|
2
|
+
import { ComponentVariants, ImageStyles, MobileInputFile } from "@codeleap/common";
|
|
3
3
|
import { ComponentPropsWithoutRef } from "react";
|
|
4
4
|
import { Image as NativeImage } from 'react-native';
|
|
5
5
|
import { FastImage } from '../modules/fastImage';
|
|
@@ -9,7 +9,7 @@ export declare type ImageProps = Omit<NativeImageProps, 'source'> & {
|
|
|
9
9
|
fast?: boolean;
|
|
10
10
|
source: NativeImageProps['source'] & {
|
|
11
11
|
priority?: keyof typeof FastImage.priority;
|
|
12
|
-
};
|
|
12
|
+
} | MobileInputFile | string;
|
|
13
13
|
resizeMode?: keyof typeof FastImage.resizeMode;
|
|
14
14
|
};
|
|
15
15
|
export declare const Image: React.FC<ImageProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.js","sourceRoot":"","sources":["../../src/components/Image.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"Image.js","sourceRoot":"","sources":["../../src/components/Image.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA8B;AAC9B,2CAAqG;AAErG,6CAAmD;AACnD,kDAA8C;AAYvC,IAAM,KAAK,GAAwB,UAAC,KAAK;IAExC,IAAA,QAAQ,GAMR,KAAK,SANG,EACR,KAAK,GAKL,KAAK,MALA,EACL,IAAI,GAIJ,KAAK,KAJD,EACJ,UAAU,GAGV,KAAK,WAHK,EACV,YAAY,GAEZ,KAAK,aAFO,EACT,UAAU,UACb,KAAK,EAPH,2DAOL,CADgB,CACR;IAET,IAAM,aAAa,GAAG,IAAA,0BAAiB,EAAC,OAAO,EAAE,EAAC,QAAQ,UAAA,EAAC,CAAC,CAAA;IAE5D,IAAM,MAAM,GAAG,CAAC,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IAG7C,IAAG,IAAI,EAAC;QACJ,OAAO,CAAC,qBAAS,CACb,KAAK,CAAC,CAAC,MAAM,CAAC,CACd,UAAU,CAAC,CAAE,qBAAS,CAAC,UAAU,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC,CAC3D,IAAI,UAAU,CAAC,EACjB,CAAA;KACL;IACD,OAAO,CAAC,oBAAW,CACf,KAAK,CAAC,CAAC,MAAM,CAAC,CACd,IAAK,UAAkB,CAAC,EAC1B,CAAA;AACN,CAAC,CAAA;AA1BY,QAAA,KAAK,SA0BjB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ViewProps } from '../View';
|
|
3
|
+
import { ButtonProps } from '../Button';
|
|
4
|
+
import { ComponentVariants, IconPlaceholder } from '@codeleap/common';
|
|
5
|
+
import { MobileModalComposition, MobileModalStyles } from './styles';
|
|
6
|
+
import { StylesOf } from '../../types/utility';
|
|
7
|
+
export * from './styles';
|
|
8
|
+
export declare type ModalProps = Omit<ViewProps, 'variants' | 'styles'> & {
|
|
9
|
+
variants?: ComponentVariants<typeof MobileModalStyles>['variants'];
|
|
10
|
+
styles?: StylesOf<MobileModalComposition>;
|
|
11
|
+
dismissOnBackdrop?: boolean;
|
|
12
|
+
buttonProps?: ButtonProps;
|
|
13
|
+
accessible?: boolean;
|
|
14
|
+
showClose?: boolean;
|
|
15
|
+
closable?: boolean;
|
|
16
|
+
footer?: React.ReactNode;
|
|
17
|
+
title?: React.ReactNode;
|
|
18
|
+
debugName?: string;
|
|
19
|
+
closeIconName?: IconPlaceholder;
|
|
20
|
+
visible: boolean;
|
|
21
|
+
toggle: () => void;
|
|
22
|
+
};
|
|
23
|
+
export declare const Modal: React.FC<ModalProps>;
|
|
24
|
+
export default Modal;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
33
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
34
|
+
};
|
|
35
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
36
|
+
var t = {};
|
|
37
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
38
|
+
t[p] = s[p];
|
|
39
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
40
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
41
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
42
|
+
t[p[i]] = s[p[i]];
|
|
43
|
+
}
|
|
44
|
+
return t;
|
|
45
|
+
};
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.Modal = void 0;
|
|
48
|
+
var React = __importStar(require("react"));
|
|
49
|
+
var View_1 = require("../View");
|
|
50
|
+
var Button_1 = require("../Button");
|
|
51
|
+
var Scroll_1 = require("../Scroll");
|
|
52
|
+
var common_1 = require("@codeleap/common");
|
|
53
|
+
var react_native_1 = require("react-native");
|
|
54
|
+
var Touchable_1 = require("../Touchable");
|
|
55
|
+
var Text_1 = require("../Text");
|
|
56
|
+
var Animated_1 = require("../Animated");
|
|
57
|
+
__exportStar(require("./styles"), exports);
|
|
58
|
+
var Modal = function (modalProps) {
|
|
59
|
+
var _a = modalProps.variants, variants = _a === void 0 ? [] : _a, _b = modalProps.styles, styles = _b === void 0 ? {} : _b, style = modalProps.style, visible = modalProps.visible, showClose = modalProps.showClose, _c = modalProps.closable, closable = _c === void 0 ? true : _c, title = modalProps.title, footer = modalProps.footer, children = modalProps.children, toggle = modalProps.toggle, _d = modalProps.dismissOnBackdrop, dismissOnBackdrop = _d === void 0 ? true : _d, _e = modalProps.closeIconName, closeIconName = _e === void 0 ? 'close' : _e, debugName = modalProps.debugName, props = __rest(modalProps, ["variants", "styles", "style", "visible", "showClose", "closable", "title", "footer", "children", "toggle", "dismissOnBackdrop", "closeIconName", "debugName"]);
|
|
60
|
+
var variantStyles = (0, common_1.useComponentStyle)('Modal', {
|
|
61
|
+
variants: variants,
|
|
62
|
+
transform: react_native_1.StyleSheet.flatten,
|
|
63
|
+
styles: styles
|
|
64
|
+
});
|
|
65
|
+
function getStyles(key) {
|
|
66
|
+
var s = [
|
|
67
|
+
variantStyles[key],
|
|
68
|
+
styles[key],
|
|
69
|
+
visible ? variantStyles[key + ':visible'] : {},
|
|
70
|
+
visible ? styles[key + ':visible'] : {},
|
|
71
|
+
];
|
|
72
|
+
return s;
|
|
73
|
+
}
|
|
74
|
+
var buttonStyles = React.useMemo(function () {
|
|
75
|
+
var buttonEntries = {};
|
|
76
|
+
for (var _i = 0, _a = Object.entries(variantStyles); _i < _a.length; _i++) {
|
|
77
|
+
var _b = _a[_i], key = _b[0], style_1 = _b[1];
|
|
78
|
+
if (key.startsWith('closeButton')) {
|
|
79
|
+
buttonEntries[(0, common_1.capitalize)(key.replace('closeButton', ''), true)] = style_1;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return buttonEntries;
|
|
83
|
+
}, [variantStyles]);
|
|
84
|
+
var boxAnimation = {
|
|
85
|
+
hidden: __assign(__assign({}, variantStyles['box:pose']), styles['box:pose']),
|
|
86
|
+
visible: __assign(__assign({}, variantStyles['box:pose:visible']), styles['box:pose:visible'])
|
|
87
|
+
};
|
|
88
|
+
return (<View_1.View style={getStyles('wrapper')} pointerEvents={visible ? 'auto' : 'none'}>
|
|
89
|
+
<View_1.AnimatedView style={getStyles('overlay')} transition={'opacity'}/>
|
|
90
|
+
<Scroll_1.Scroll style={getStyles('innerWrapper')} contentContainerStyle={getStyles('innerWrapperScroll')}>
|
|
91
|
+
{dismissOnBackdrop &&
|
|
92
|
+
<Touchable_1.Touchable debugName={"".concat(debugName, " modal backdrop")} activeOpacity={1} onPress={function () { return toggle(); }} style={getStyles('touchableBackdrop')}/>}
|
|
93
|
+
<Animated_1.Animated component='View' config={boxAnimation} pose={visible ? 'visible' : 'hidden'} style={getStyles('box')}>
|
|
94
|
+
{(title || showClose) &&
|
|
95
|
+
<View_1.View style={getStyles('header')}>
|
|
96
|
+
|
|
97
|
+
{typeof title === 'string' ? <Text_1.Text text={title} style={getStyles('title')}/> : title}
|
|
98
|
+
|
|
99
|
+
{(showClose && closable) &&
|
|
100
|
+
<Button_1.Button debugName={"".concat(debugName, " modal close button")} icon={closeIconName} variants={['icon']} onPress={toggle} styles={buttonStyles}/>}
|
|
101
|
+
</View_1.View>}
|
|
102
|
+
|
|
103
|
+
<View_1.View style={getStyles('body')}>
|
|
104
|
+
{children}
|
|
105
|
+
</View_1.View>
|
|
106
|
+
{footer && <View_1.View style={getStyles('footer')}>
|
|
107
|
+
{footer}
|
|
108
|
+
</View_1.View>}
|
|
109
|
+
</Animated_1.Animated>
|
|
110
|
+
|
|
111
|
+
</Scroll_1.Scroll>
|
|
112
|
+
</View_1.View>);
|
|
113
|
+
};
|
|
114
|
+
exports.Modal = Modal;
|
|
115
|
+
exports.default = exports.Modal;
|
|
116
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA8B;AAC9B,gCAIgB;AAChB,oCAAgD;AAChD,oCAAkC;AAClC,2CAAwH;AAExH,6CAAyC;AAGzC,0CAAwC;AACxC,gCAA8B;AAC9B,wCAAsC;AAGtC,2CAAwB;AAkBjB,IAAM,KAAK,GAAwB,UAAC,UAAU;IAGjD,IAAA,KAcI,UAAU,SAdD,EAAb,QAAQ,mBAAG,EAAE,KAAA,EACb,KAaI,UAAU,OAbF,EAAZ,MAAM,mBAAG,EAAG,KAAA,EACZ,KAAK,GAYD,UAAU,MAZT,EACL,OAAO,GAWH,UAAU,QAXP,EACP,SAAS,GAUL,UAAU,UAVL,EACT,KASI,UAAU,SATC,EAAf,QAAQ,mBAAG,IAAI,KAAA,EACf,KAAK,GAQD,UAAU,MART,EACL,MAAM,GAOF,UAAU,OAPR,EACN,QAAQ,GAMJ,UAAU,SANN,EACR,MAAM,GAKF,UAAU,OALR,EACN,KAII,UAAU,kBA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C,CAAC,CAAC,CAAC,WAAI,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAEpF;;sBAAA,CACE,CAAC,SAAS,IAAI,QAAQ,CAAC;oBACrB,CAAC,eAAM,CAAC,SAAS,CAAC,CAAC,UAAG,SAAS,wBAAqB,CAAC,CAAC,IAAI,CAAC,CAAC,aAAgC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,EAAE,CAEhK;oBAAA,EAAE,WAAI,CAAC,CAGX;;gBAAA,CAAC,WAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAC7B;kBAAA,CAAC,QAAQ,CACX;gBAAA,EAAE,WAAI,CACN;gBAAA,CACE,MAAM,IAAI,CAAC,WAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CACzC;oBAAA,CAAC,MAAM,CACT;kBAAA,EAAE,WAAI,CAAC,CAEb;YAAA,EAAE,mBAAQ,CAEd;;QAAA,EAAE,eAAM,CACV;MAAA,EAAE,WAAI,CAAC,CACV,CAAA;AACH,CAAC,CAAA;AAtGY,QAAA,KAAK,SAsGjB;AAID,kBAAe,aAAK,CAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ButtonComposition, ModalComposition } from '@codeleap/common';
|
|
2
|
+
export declare const backgroundTransition: {
|
|
3
|
+
duration: number;
|
|
4
|
+
ease: string;
|
|
5
|
+
useNativeDriver: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const modalTransition: {
|
|
8
|
+
duration: number;
|
|
9
|
+
ease: string;
|
|
10
|
+
useNativeDriver: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare type MobileModalParts = 'wrapper' | 'overlay' | 'innerWrapper' | 'innerWrapperScroll' | 'box' | 'footer' | 'body' | 'header' | 'touchableBackdrop' | 'box:pose' | 'title' | `closeButton${Capitalize<ButtonComposition>}`;
|
|
13
|
+
export declare type MobileModalComposition = MobileModalParts | `${MobileModalParts}:visible`;
|
|
14
|
+
export declare const MobileModalStyles: {
|
|
15
|
+
default: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<MobileModalComposition, any>>;
|
|
16
|
+
popup: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<MobileModalComposition, any>>;
|
|
17
|
+
roundish: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
18
|
+
dynamicHandler: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
19
|
+
fullscreen: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
20
|
+
fixed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
21
|
+
block: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
22
|
+
flex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
23
|
+
absolute: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
24
|
+
sticky: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
25
|
+
row: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
26
|
+
center: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
27
|
+
column: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
28
|
+
wrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
29
|
+
inline: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
30
|
+
inlineFlex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
31
|
+
hidden: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
32
|
+
full: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
33
|
+
noWrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
34
|
+
fullWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
35
|
+
fullHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
36
|
+
fullView: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
37
|
+
fullViewWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
38
|
+
fullViewHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
39
|
+
whole: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
40
|
+
centerRow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
41
|
+
listStyles: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
42
|
+
alignStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
43
|
+
alignEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
44
|
+
alignCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
45
|
+
justifyStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
46
|
+
justifyEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
47
|
+
justifyCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
48
|
+
justifySpaceBetween: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
49
|
+
textRight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
50
|
+
textLeft: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
51
|
+
textCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
52
|
+
blur: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
53
|
+
elevated: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
54
|
+
neumorphism: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
55
|
+
scrollX: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
56
|
+
scrollY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
57
|
+
scrollXY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
58
|
+
debRed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
59
|
+
debGreen: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
60
|
+
debBlue: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
61
|
+
debYellow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
|
|
62
|
+
};
|