@codeleap/mobile 1.0.1 → 1.3.1

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.
Files changed (61) hide show
  1. package/dist/components/Animated.d.ts +103 -0
  2. package/dist/components/{Checkbox.js → Animated.js} +22 -28
  3. package/dist/components/Animated.js.map +1 -0
  4. package/dist/components/Button.d.ts +2 -8
  5. package/dist/components/Button.js +2 -1
  6. package/dist/components/Button.js.map +1 -1
  7. package/dist/components/ContentView.d.ts +10 -0
  8. package/dist/components/ContentView.js +49 -0
  9. package/dist/components/ContentView.js.map +1 -0
  10. package/dist/components/FileInput.d.ts +19 -2
  11. package/dist/components/FileInput.js +89 -4
  12. package/dist/components/FileInput.js.map +1 -1
  13. package/dist/components/Image.d.ts +2 -2
  14. package/dist/components/Image.js.map +1 -1
  15. package/dist/components/Modal/index.d.ts +24 -0
  16. package/dist/components/Modal/index.js +116 -0
  17. package/dist/components/Modal/index.js.map +1 -0
  18. package/dist/components/Modal/styles.d.ts +62 -0
  19. package/dist/components/Modal/styles.js +62 -0
  20. package/dist/components/Modal/styles.js.map +1 -0
  21. package/dist/components/Overlay.d.ts +16 -0
  22. package/dist/components/Overlay.js +68 -0
  23. package/dist/components/Overlay.js.map +1 -0
  24. package/dist/components/Scroll.d.ts +1 -95
  25. package/dist/components/TextInput.js +1 -1
  26. package/dist/components/TextInput.js.map +1 -1
  27. package/dist/components/Touchable.d.ts +8 -14
  28. package/dist/components/Touchable.js +10 -12
  29. package/dist/components/Touchable.js.map +1 -1
  30. package/dist/components/View.d.ts +12 -10
  31. package/dist/components/View.js +2 -4
  32. package/dist/components/View.js.map +1 -1
  33. package/dist/components/index.d.ts +5 -0
  34. package/dist/components/index.js +5 -0
  35. package/dist/components/index.js.map +1 -1
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.js +3 -1
  38. package/dist/index.js.map +1 -1
  39. package/dist/modules/cropPicker.d.ts +1 -0
  40. package/dist/modules/cropPicker.js +10 -0
  41. package/dist/modules/cropPicker.js.map +1 -0
  42. package/dist/modules/documentPicker.d.ts +1 -0
  43. package/dist/modules/documentPicker.js +10 -0
  44. package/dist/modules/documentPicker.js.map +1 -0
  45. package/package.json +4 -2
  46. package/src/components/Animated.tsx +31 -0
  47. package/src/components/Button.tsx +2 -1
  48. package/src/components/ContentView.tsx +52 -0
  49. package/src/components/FileInput.tsx +67 -4
  50. package/src/components/Image.tsx +3 -3
  51. package/src/components/Modal/index.tsx +143 -0
  52. package/src/components/Modal/styles.ts +122 -0
  53. package/src/components/Overlay.tsx +72 -0
  54. package/src/components/TextInput.tsx +1 -1
  55. package/src/components/Touchable.tsx +20 -23
  56. package/src/components/View.tsx +5 -15
  57. package/src/components/index.ts +7 -0
  58. package/src/index.ts +2 -1
  59. package/src/modules/documentPicker.ts +2 -0
  60. package/dist/components/Checkbox.d.ts +0 -12
  61. package/dist/components/Checkbox.js.map +0 -1
@@ -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
+ };
@@ -0,0 +1,62 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.MobileModalStyles = exports.modalTransition = exports.backgroundTransition = void 0;
15
+ var common_1 = require("@codeleap/common");
16
+ exports.backgroundTransition = {
17
+ duration: 200,
18
+ ease: 'easeOut',
19
+ useNativeDriver: false,
20
+ };
21
+ exports.modalTransition = {
22
+ duration: 150,
23
+ ease: 'easeOut',
24
+ useNativeDriver: false,
25
+ };
26
+ var createModalStyle = (0, common_1.createDefaultVariantFactory)();
27
+ var presets = (0, common_1.includePresets)(function (style) { return createModalStyle(function () { return ({ wrapper: style }); }); });
28
+ var defaultModalStyles = common_1.ModalStyles;
29
+ exports.MobileModalStyles = __assign(__assign(__assign({}, presets), defaultModalStyles), { default: createModalStyle(function (Theme) {
30
+ var _a, _b;
31
+ var fullSize = __assign(__assign({}, Theme.presets.whole), { position: 'absolute', width: (_a = Theme === null || Theme === void 0 ? void 0 : Theme.values) === null || _a === void 0 ? void 0 : _a.width, height: (_b = Theme === null || Theme === void 0 ? void 0 : Theme.values) === null || _b === void 0 ? void 0 : _b.height });
32
+ return {
33
+ wrapper: __assign({ zIndex: 1 }, fullSize),
34
+ overlay: __assign({ opacity: 0, zIndex: 2, backgroundColor: Theme.colors.black }, fullSize),
35
+ "overlay:visible": {
36
+ opacity: 0.5
37
+ },
38
+ innerWrapper: {
39
+ zIndex: 3,
40
+ },
41
+ innerWrapperScroll: __assign(__assign({ display: 'flex', alignItems: 'center' }, Theme.presets.justifyCenter), { minHeight: Theme.values.height, zIndex: 3 }),
42
+ box: __assign({ width: '80%', backgroundColor: Theme.colors.white, zIndex: 10, borderRadius: Theme.borderRadius.medium }, Theme.spacing.padding(1)),
43
+ touchableBackdrop: __assign(__assign({}, fullSize), { zIndex: 5 }),
44
+ "box:pose": {
45
+ opacity: 0,
46
+ scale: 0.8,
47
+ y: Theme.values.height * 0.15,
48
+ transition: exports.modalTransition,
49
+ },
50
+ "box:pose:visible": {
51
+ y: 0,
52
+ opacity: 1,
53
+ scale: 1,
54
+ transition: exports.modalTransition,
55
+ },
56
+ header: __assign(__assign({ flexDirection: 'row' }, Theme.presets.justifySpaceBetween), Theme.presets.alignCenter),
57
+ closeButtonWrapper: {
58
+ alignSelf: 'center',
59
+ }
60
+ };
61
+ }), popup: createModalStyle(function (Theme) { return ({}); }) });
62
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Modal/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAAgI;AAGnH,QAAA,oBAAoB,GAAG;IAChC,QAAQ,EAAE,GAAG;IACb,IAAI,EAAE,SAAS;IACf,eAAe,EAAE,KAAK;CACzB,CAAA;AAEY,QAAA,eAAe,GAAG;IAC3B,QAAQ,EAAE,GAAG;IACb,IAAI,EAAE,SAAS;IACf,eAAe,EAAE,KAAK;CACzB,CAAA;AAoBD,IAAM,gBAAgB,GAAG,IAAA,oCAA2B,GAA0B,CAAA;AAE9E,IAAM,OAAO,GAAG,IAAA,uBAAc,EAAC,UAAC,KAAK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AAM,EAAC,CAAC,GACT;YACD,UAAU,EAAE;gBACV,OAAO,EAAE,CAAC;gBACV,KAAK,EAAE,GAAG;gBACV,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI;gBAC7B,UAAU,EAAE,uBAAe;aAC5B;YACD,kBAAkB,EAAE;gBAClB,CAAC,EAAE,CAAC;gBACJ,OAAO,EAAE,CAAC;gBACV,KAAK,EAAE,CAAC;gBACR,UAAU,EAAE,uBAAe;aAC5B;YACD,MAAM,sBACJ,aAAa,EAAE,KAAK,IACjB,KAAK,CAAC,OAAO,CAAC,mBAAmB,GACjC,KAAK,CAAC,OAAO,CAAC,WAAW,CAC7B;YACD,kBAAkB,EAAE;gBAClB,SAAS,EAAE,QAAQ;aAEpB;SAGF,CAAA;IAEF,CAAC,CAAC,EACF,KAAK,EAAE,gBAAgB,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC,EAEnC,CAAC,EAFiC,CAEjC,CAAC,IACL"}
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { ComponentVariants, OverlayComposition, OverlayStyles } from "@codeleap/common";
3
+ import { ReactNode } from "react";
4
+ import { StylesOf } from "../types/utility";
5
+ import { ViewProps } from "react-native";
6
+ import { AnimatedTouchable } from '.';
7
+ export declare type OverlayProps = ViewProps & {
8
+ title?: ReactNode;
9
+ visible?: boolean;
10
+ showClose?: boolean;
11
+ variants?: ComponentVariants<typeof OverlayStyles>;
12
+ styles?: StylesOf<OverlayComposition>;
13
+ style?: any;
14
+ onPress?: () => void;
15
+ } & React.ComponentPropsWithoutRef<typeof AnimatedTouchable>;
16
+ export declare const Overlay: React.FC<OverlayProps>;
@@ -0,0 +1,68 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
33
+ exports.Overlay = void 0;
34
+ var React = __importStar(require("react"));
35
+ var common_1 = require("@codeleap/common");
36
+ var TextInput_1 = require("./TextInput");
37
+ var Button_1 = require("./Button");
38
+ var View_1 = require("./View");
39
+ var react_native_1 = require("react-native");
40
+ var _1 = require(".");
41
+ var Overlay = function (overlayProps) {
42
+ var showClose = overlayProps.showClose, title = overlayProps.title, children = overlayProps.children, visible = overlayProps.visible, styles = overlayProps.styles, style = overlayProps.style, variants = overlayProps.variants, props = __rest(overlayProps, ["showClose", "title", "children", "visible", "styles", "style", "variants"]);
43
+ var variantStyles = (0, common_1.useComponentStyle)('Overlay', {
44
+ styles: styles,
45
+ transform: react_native_1.StyleSheet.flatten,
46
+ variants: variants
47
+ });
48
+ var touchableStyle = [
49
+ variantStyles.wrapper,
50
+ styles.wrapper,
51
+ visible && variantStyles['wrapper:visible'],
52
+ visible && styles['wrapper:visible']
53
+ ];
54
+ return <_1.AnimatedTouchable
55
+ // @ts-ignore
56
+ transition={'opacity'} style={touchableStyle} {...props}>
57
+ <View_1.View>
58
+
59
+ {(title || showClose) && (<View_1.View style={variantStyles.header}>
60
+ <TextInput_1.InputLabel style={variantStyles.title} label={title}/>
61
+ {showClose && <Button_1.Button variants={['icon']} icon={'close'} style={variantStyles.closeButton}/>}
62
+ </View_1.View>)}
63
+
64
+ </View_1.View>
65
+ </_1.AnimatedTouchable>;
66
+ };
67
+ exports.Overlay = Overlay;
68
+ //# sourceMappingURL=Overlay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Overlay.js","sourceRoot":"","sources":["../../src/components/Overlay.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAE/B,2CAA2H;AAE3H,yCAAyC;AACzC,mCAAiC;AAEjC,+BAA8B;AAE9B,6CAAoD;AACpD,sBAAqC;AAc9B,IAAM,OAAO,GAA0B,UAAC,YAAY;IAGnD,IAAA,SAAS,GAQT,YAAY,UARH,EACT,KAAK,GAOL,YAAY,MAPP,EACL,QAAQ,GAMR,YAAY,SANJ,EACR,OAAO,GAKP,YAAY,QALL,EACP,MAAM,GAIN,YAAY,OAJN,EACN,KAAK,GAGL,YAAY,MAHP,EACL,QAAQ,GAER,YAAY,SAFJ,EACL,KAAK,UACR,YAAY,EATV,4EASL,CADW,CACI;IAEhB,IAAM,aAAa,GAAG,IAAA,0BAAiB,EAAC,SAAS,EAAE;QAC/C,MAAM,QAAA;QACN,SAAS,EAAE,yBAAU,CAAC,OAAO;QAC7B,QAAQ,EAAE,QAAe;KAC5B,CAAC,CAAA;IAEF,IAAM,cAAc,GAAG;QACnB,aAAa,CAAC,OAAO;QACrB,MAAM,CAAC,OAAO;QACd,OAAO,IAAI,aAAa,CAAC,iBAAiB,CAAC;QAC3C,OAAO,IAAI,MAAM,CAAC,iBAAiB,CAAC;KACvC,CAAA;IAGD,OAAO,CAAC,oBAAiB;IACjB,aAAa;IACb,UAAU,CAAC,CAAC,SAAS,CAAC,CACtB,KAAK,CAAC,CAAC,cAAc,CAAC,CACtB,IAAI,KAAK,CAAC,CAEX;WAAA,CAAC,WAAI,CAED;;eAAA,CAAE,CAAC,KAAK,IAAI,SAAS,CAAC,IAAI,CACrB,CAAC,WAAI,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAC9B;wBAAA,CAAC,sBAAU,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EACrD;wBAAA,CACI,SAAS,IAAI,CAAC,eAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,OAA0B,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,CAEtH;oBAAA,EAAE,WAAI,CAAC,CACV,CAEL;;YAAA,EAAE,WAAI,CACV;QAAA,EAAE,oBAAiB,CAAC,CAAA;AAE5B,CAAC,CAAA;AA/CY,QAAA,OAAO,WA+CnB"}
@@ -7,98 +7,4 @@ export declare type ScrollProps = KeyboardAwareScrollViewProps & ViewProps & {
7
7
  refreshTimeout?: number;
8
8
  changeData?: any;
9
9
  };
10
- export declare const Scroll: React.ForwardRefExoticComponent<KeyboardAwareScrollViewProps & import("react-native").ViewProps & import("@codeleap/common").ComponentVariants<{
11
- default: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
12
- fixed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
13
- block: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
14
- flex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
15
- absolute: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
16
- sticky: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
17
- row: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
18
- center: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
19
- column: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
20
- wrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
21
- inline: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
22
- inlineFlex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
23
- hidden: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
24
- full: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
25
- noWrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
26
- fullWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
27
- fullHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
28
- fullView: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
29
- fullViewWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
30
- fullViewHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
31
- whole: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
32
- centerRow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
33
- listStyles: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
34
- alignStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
35
- alignEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
36
- alignCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
37
- justifyStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
38
- justifyEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
39
- justifyCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
40
- justifySpaceBetween: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
41
- textRight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
42
- textLeft: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
43
- textCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
44
- blur: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
45
- elevated: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
46
- neumorphism: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
47
- scrollX: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
48
- scrollY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
49
- scrollXY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
50
- debRed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
51
- debGreen: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
52
- debBlue: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
53
- debYellow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
54
- }, import("@codeleap/common").EnhancedTheme<any>, import("@codeleap/common").VariantProp<{
55
- default: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
56
- fixed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
57
- block: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
58
- flex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
59
- absolute: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
60
- sticky: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
61
- row: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
62
- center: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
63
- column: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
64
- wrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
65
- inline: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
66
- inlineFlex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
67
- hidden: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
68
- full: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
69
- noWrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
70
- fullWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
71
- fullHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
72
- fullView: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
73
- fullViewWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
74
- fullViewHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
75
- whole: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
76
- centerRow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
77
- listStyles: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
78
- alignStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
79
- alignEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
80
- alignCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
81
- justifyStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
82
- justifyEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
83
- justifyCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
84
- justifySpaceBetween: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
85
- textRight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
86
- textLeft: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
87
- textCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
88
- blur: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
89
- elevated: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
90
- neumorphism: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
91
- scrollX: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
92
- scrollY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
93
- scrollXY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
94
- debRed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
95
- debGreen: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
96
- debBlue: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
97
- debYellow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
98
- }>> & {
99
- component?: any;
100
- } & import("@codeleap/common").BaseViewProps & {
101
- onRefresh?: () => void;
102
- refreshTimeout?: number;
103
- changeData?: any;
104
- } & React.RefAttributes<ScrollView>>;
10
+ export declare const Scroll: React.ForwardRefExoticComponent<Pick<ScrollProps, "children" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "style" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "variants" | "responsiveVariants" | "component" | "css" | "is" | "not" | "up" | "down" | "onHover" | "onContentSizeChange" | "onScroll" | "scrollEnabled" | "innerRef" | "viewIsInsideTabBar" | "resetScrollToCoords" | "enableResetScrollToCoords" | "enableAutomaticScroll" | "enableOnAndroid" | "extraHeight" | "extraScrollHeight" | "keyboardOpeningTime" | "onKeyboardWillShow" | "onKeyboardDidShow" | "onKeyboardWillHide" | "onKeyboardDidHide" | "onKeyboardWillChangeFrame" | "onKeyboardDidChangeFrame" | "contentContainerStyle" | "decelerationRate" | "horizontal" | "invertStickyHeaders" | "keyboardDismissMode" | "keyboardShouldPersistTaps" | "onScrollBeginDrag" | "onScrollEndDrag" | "onMomentumScrollEnd" | "onMomentumScrollBegin" | "pagingEnabled" | "showsHorizontalScrollIndicator" | "showsVerticalScrollIndicator" | "stickyHeaderHiddenOnScroll" | "refreshControl" | "snapToInterval" | "snapToOffsets" | "snapToStart" | "snapToEnd" | "stickyHeaderIndices" | "disableIntervalMomentum" | "disableScrollViewPanResponder" | "StickyHeaderComponent" | "alwaysBounceHorizontal" | "alwaysBounceVertical" | "automaticallyAdjustContentInsets" | "automaticallyAdjustsScrollIndicatorInsets" | "bounces" | "bouncesZoom" | "canCancelContentTouches" | "centerContent" | "contentInset" | "contentOffset" | "contentInsetAdjustmentBehavior" | "directionalLockEnabled" | "indicatorStyle" | "maintainVisibleContentPosition" | "maximumZoomScale" | "minimumZoomScale" | "onScrollAnimationEnd" | "pinchGestureEnabled" | "scrollEventThrottle" | "scrollIndicatorInsets" | "scrollToOverflowEnabled" | "scrollsToTop" | "snapToAlignment" | "onScrollToTop" | "zoomScale" | "endFillColor" | "scrollPerfTag" | "overScrollMode" | "nestedScrollEnabled" | "fadingEdgeLength" | "persistentScrollbar" | "onRefresh" | "refreshTimeout" | "changeData"> & React.RefAttributes<ScrollView>>;
@@ -136,7 +136,7 @@ var InputLabel = function (_a) {
136
136
  return null;
137
137
  switch (typeof label) {
138
138
  case 'string':
139
- return <Text_1.Text variants={['p2']} style={style} text={label}/>;
139
+ return <Text_1.Text style={style} text={label}/>;
140
140
  case 'object':
141
141
  return label;
142
142
  default:
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../src/components/TextInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA8B;AAC9B,2CAS0B;AACxB,+BAAoG;AACpG,+BAA8B;AAC9B,+BAA+B;AAC/B,mCAAkC;AAElC,+BAA8B;AAC9B,6CAAyG;AA0B5F,QAAA,SAAS,GAAG,IAAA,kBAAU,EAAkC,UAAC,QAAQ,EAAE,QAAQ;IAEpF,IAAA,QAA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WAAI,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,EAAE,CAAA;QAC3C,KAAK,QAAQ;YAEX,OAAO,KAAK,CAAA;QACd;YACE,OAAO,IAAI,CAAA;KACd;AACH,CAAC,CAAA;AAZY,QAAA,UAAU,cAYtB"}
@@ -1,19 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentPropsWithoutRef } from 'react';
3
- import { ComponentVariants, BaseViewProps, ViewStyles } from '@codeleap/common';
4
- import { Animated, TouchableOpacity as NativeTouchable } from 'react-native';
5
- export declare type TouchableProps = ComponentPropsWithoutRef<typeof NativeTouchable> & {
3
+ import { ComponentVariants, BaseViewProps, ViewStyles, AnyFunction } from '@codeleap/common';
4
+ import { TouchableOpacity as NativeTouchable } from 'react-native';
5
+ export declare type TouchableProps = Omit<ComponentPropsWithoutRef<typeof NativeTouchable>, 'onPress'> & {
6
6
  variants?: ComponentVariants<typeof ViewStyles>['variants'];
7
7
  component?: any;
8
+ ref?: React.Ref<NativeTouchable>;
9
+ debugName?: string;
10
+ onPress?: AnyFunction;
8
11
  } & BaseViewProps;
9
- export declare const Touchable: React.ForwardRefExoticComponent<import("react-native").TouchableOpacityProps & {
10
- variants?: ComponentVariants<typeof ViewStyles>['variants'];
11
- component?: any;
12
- } & BaseViewProps & React.RefAttributes<NativeTouchable>>;
13
- export declare type AnimatedTouchableProps = ComponentPropsWithoutRef<typeof Animated.View> & TouchableProps;
14
- export declare const AnimatedTouchable: React.ForwardRefExoticComponent<Pick<Animated.AnimatedProps<import("react-native").ViewProps & React.RefAttributes<import("react-native").View>> & {
15
- children?: React.ReactNode;
16
- }, keyof import("react-native").ViewProps | "key"> & import("react-native").TouchableOpacityProps & {
17
- variants?: ComponentVariants<typeof ViewStyles>['variants'];
18
- component?: any;
19
- } & BaseViewProps & React.RefAttributes<Animated.AnimatedComponent<typeof import("react-native").View>>>;
12
+ export declare const Touchable: React.FC<TouchableProps>;
13
+ export declare const AnimatedTouchable: import("react-native-animatable").AnimatableComponent<TouchableProps, import("react-native").StyleProp<import("react-native").ViewStyle>>;
@@ -34,10 +34,10 @@ exports.AnimatedTouchable = exports.Touchable = void 0;
34
34
  var React = __importStar(require("react"));
35
35
  var react_1 = require("react");
36
36
  var common_1 = require("@codeleap/common");
37
- var View_1 = require("./View");
38
37
  var react_native_1 = require("react-native");
38
+ var react_native_animatable_1 = require("react-native-animatable");
39
39
  exports.Touchable = (0, react_1.forwardRef)(function (touchableProps, ref) {
40
- var _a = touchableProps.variants, variants = _a === void 0 ? [] : _a, children = touchableProps.children, onPress = touchableProps.onPress, style = touchableProps.style, props = __rest(touchableProps, ["variants", "children", "onPress", "style"]);
40
+ var _a = touchableProps.variants, variants = _a === void 0 ? [] : _a, children = touchableProps.children, onPress = touchableProps.onPress, style = touchableProps.style, debugName = touchableProps.debugName, props = __rest(touchableProps, ["variants", "children", "onPress", "style", "debugName"]);
41
41
  var variantStyles = (0, common_1.useComponentStyle)('View', {
42
42
  variants: variants,
43
43
  });
@@ -45,18 +45,16 @@ exports.Touchable = (0, react_1.forwardRef)(function (touchableProps, ref) {
45
45
  var press = function () {
46
46
  if (!onPress)
47
47
  throw { message: 'No onPress passed to touchable', touchableProps: touchableProps };
48
- logger.log('<Touchable/> pressed', { style: style, variants: variants }, 'Component');
49
- onPress(null);
48
+ logger.log("".concat(debugName || '<Touchable/>', " pressed"), { style: style, variants: variants }, 'Component');
49
+ onPress && onPress();
50
50
  };
51
51
  var styles = [variantStyles.wrapper, style];
52
- return <react_native_1.TouchableOpacity onPress={press} {...props} ref={ref}>
53
- <View_1.View style={styles}>
54
- {children}
55
- </View_1.View>
52
+ return <react_native_1.TouchableOpacity onPress={press} style={styles} {...props} ref={ref}>
53
+
54
+
55
+ {children}
56
+
56
57
  </react_native_1.TouchableOpacity>;
57
58
  });
58
- exports.AnimatedTouchable = (0, react_1.forwardRef)(function (viewProps, ref) {
59
- // @ts-ignore
60
- return <exports.Touchable component={react_native_1.Animated.View} {...viewProps}/>;
61
- });
59
+ exports.AnimatedTouchable = (0, react_native_animatable_1.createAnimatableComponent)(exports.Touchable);
62
60
  //# sourceMappingURL=Touchable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Touchable.js","sourceRoot":"","sources":["../../src/components/Touchable.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA8B;AAC9B,+BAA4D;AAC5D,2CAA4G;AAC5G,+BAA6B;AAC7B,6CAA6E;AAShE,QAAA,SAAS,GAAG,IAAA,kBAAU,EAAkC,UAAC,cAAc,EAAE,GAAG;IAErF,IAAA,KAKE,cAAc,SALH,EAAb,QAAQ,mBAAG,EAAE,KAAA,EACb,QAAQ,GAIN,cAAc,SAJR,EACR,OAAO,GAGL,cAAc,QAHT,EACP,KAAK,GAEH,cAAc,MAFX,EACF,KAAK,UACN,cAAc,EANZ,4CAML,CADS,CACQ;IAElB,IAAM,aAAa,GAAG,IAAA,0BAAiB,EAAC,MAAM,EAAE;QAC9C,QAAQ,UAAA;KACT,CAAC,CAAA;IACK,IAAA,MAAM,GAAI,IAAA,iBAAQ,GAAE,OAAd,CAAc;IAC3B,IAAM,KAAK,GAAG;QACZ,IAAG,CAAC,OAAO;YAAE,MAAM,EAAC,OAAO,EAAE,gCAAgC,EAAE,cAAc,gBAAA,EAAC,CAAA;QAC9E,MAAM,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,OAAA,EAAE,QAAQ,UAAA,EAAE,EAAE,WAAW,CAAC,CAAA;QACpE,OAAO,CAAC,IAAI,CAAC,CAAA;IACf,CAAC,CAAA;IAED,IAAM,MAAM,GAAG,CAAC,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IAE7C,OAAO,CAAC,+BAAe,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAC1D;IAAA,C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,EAAE,EAAE,WAAW,CAAC,CAAA;QACvF,OAAO,IAAI,OAAO,EAAE,CAAA;IACtB,CAAC,CAAA;IAED,IAAM,MAAM,GAAG,CAAC,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IAG7C,OAAO,CAAC,+BAAe,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAGrE;;;QAAA,CAAC,QAAQ,CAEf;;EAAA,EAAE,+BAAe,CAAC,CAAA;AACpB,CAAC,CAAC,CAAA;AAEW,QAAA,iBAAiB,GAAG,IAAA,mDAAyB,EAAC,iBAAS,CAAC,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentPropsWithoutRef } from 'react';
3
3
  import { ComponentVariants, ViewStyles, BaseViewProps } from '@codeleap/common';
4
- import { Animated, View as NativeView } from 'react-native';
4
+ import { View as NativeView } from 'react-native';
5
5
  export declare type ViewProps = ComponentPropsWithoutRef<typeof NativeView> & ComponentVariants<typeof ViewStyles> & {
6
+ ref?: any;
6
7
  component?: any;
7
8
  } & BaseViewProps;
8
- export declare const View: React.ForwardRefExoticComponent<import("react-native").ViewProps & ComponentVariants<{
9
+ export declare const View: React.ForwardRefExoticComponent<Pick<ViewProps, keyof import("react-native").ViewProps | keyof ComponentVariants<{
9
10
  default: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
10
11
  fixed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
11
12
  block: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
@@ -93,13 +94,11 @@ export declare const View: React.ForwardRefExoticComponent<import("react-native"
93
94
  debGreen: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
94
95
  debBlue: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
95
96
  debYellow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
96
- }>> & {
97
- component?: any;
98
- } & BaseViewProps & React.RefAttributes<NativeView>>;
99
- export declare type AnimatedViewProps = ComponentPropsWithoutRef<typeof Animated.View> & ComponentVariants<typeof ViewStyles> & BaseViewProps;
100
- export declare const AnimatedView: React.ForwardRefExoticComponent<Pick<Animated.AnimatedProps<import("react-native").ViewProps & React.RefAttributes<NativeView>> & {
101
- children?: React.ReactNode;
102
- }, keyof import("react-native").ViewProps | "key"> & ComponentVariants<{
97
+ }>> | "component" | keyof BaseViewProps> & React.RefAttributes<NativeView>>;
98
+ export declare const AnimatedView: React.ForwardRefExoticComponent<{
99
+ transition?: any;
100
+ animation?: any;
101
+ } & import("react-native").ViewProps & ComponentVariants<{
103
102
  default: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
104
103
  fixed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
105
104
  block: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
@@ -187,4 +186,7 @@ export declare const AnimatedView: React.ForwardRefExoticComponent<Pick<Animated
187
186
  debGreen: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
188
187
  debBlue: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
189
188
  debYellow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
190
- }>> & BaseViewProps & React.RefAttributes<Animated.AnimatedComponent<typeof NativeView>>>;
189
+ }>> & {
190
+ ref?: any;
191
+ component?: any;
192
+ } & BaseViewProps>;
@@ -32,6 +32,7 @@ var __rest = (this && this.__rest) || function (s, e) {
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
33
  exports.AnimatedView = exports.View = void 0;
34
34
  var React = __importStar(require("react"));
35
+ var Animatable = __importStar(require("react-native-animatable"));
35
36
  var react_1 = require("react");
36
37
  var common_1 = require("@codeleap/common");
37
38
  var react_native_1 = require("react-native");
@@ -46,8 +47,5 @@ exports.View = (0, react_1.forwardRef)(function (viewProps, ref) {
46
47
  {children}
47
48
  </Component>;
48
49
  });
49
- exports.AnimatedView = (0, react_1.forwardRef)(function (viewProps, ref) {
50
- // @ts-ignore
51
- return <exports.View component={react_native_1.Animated.View} {...viewProps}/>;
52
- });
50
+ exports.AnimatedView = Animatable.createAnimatableComponent(exports.View);
53
51
  //# sourceMappingURL=View.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"View.js","sourceRoot":"","sources":["../../src/components/View.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,+BAA4D;AAC5D,2CAAkG;AAClG,6CAA4D;AAU/C,QAAA,IAAI,GAAG,IAAA,kBAAU,EAAwB,UAAC,SAAS,EAAE,GAAG;IAEjE,IAAA,KAOE,SAAS,mBAPY,EAAvB,kBAAkB,mBAAG,EAAE,KAAA,EACvB,KAME,SAAS,SANE,EAAb,QAAQ,mBAAG,EAAE,KAAA,EACb,QAAQ,GAKN,SAAS,SALH,EACR,KAAK,GAIH,SAAS,MAJN,EACL,OAAO,GAGL,SAAS,QAHJ,EACP,SAAS,GAEP,SAAS,UAFF,EACN,KAAK,UACN,SAAS,EARP,+EAQL,CADS,CACI;IAEd,IAAM,aAAa,GAAG,IAAA,0BA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;IACH,IAAM,SAAS,GAAI,SAAS,IAAG,mBAAU,CAAA;IAEzC,OAAO,CAAC,SAAS,CAEf,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CACtC,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,IAAI,KAAK,CAAC,CAEV;IAAA,CAAC,QAAQ,CACX;EAAA,EAAE,SAAS,CAAC,CAAA;AACd,CAAC,CAAC,CAAA;AAEW,QAAA,YAAY,GACvB,UAAU,CAAC,yBAAyB,CAAC,YAAI,CAA+F,CAAA"}
@@ -7,6 +7,7 @@ export * from './Checkbox';
7
7
  export * from './TextInput';
8
8
  export * from './RadioInput';
9
9
  export * from './Switch';
10
+ export * from './ContentView';
10
11
  export * from './Select';
11
12
  export * from './FileInput';
12
13
  export * from './Slider';
@@ -14,3 +15,7 @@ export * from './Navigation';
14
15
  export * from './Scroll';
15
16
  export * from './ActivityIndicator';
16
17
  export * from './Button';
18
+ export * from './ContentView';
19
+ export * from './Overlay';
20
+ export * from './Modal';
21
+ export * from './Navigation';
@@ -19,6 +19,7 @@ __exportStar(require("./Checkbox"), exports);
19
19
  __exportStar(require("./TextInput"), exports);
20
20
  __exportStar(require("./RadioInput"), exports);
21
21
  __exportStar(require("./Switch"), exports);
22
+ __exportStar(require("./ContentView"), exports);
22
23
  __exportStar(require("./Select"), exports);
23
24
  __exportStar(require("./FileInput"), exports);
24
25
  __exportStar(require("./Slider"), exports);
@@ -26,4 +27,8 @@ __exportStar(require("./Navigation"), exports);
26
27
  __exportStar(require("./Scroll"), exports);
27
28
  __exportStar(require("./ActivityIndicator"), exports);
28
29
  __exportStar(require("./Button"), exports);
30
+ __exportStar(require("./ContentView"), exports);
31
+ __exportStar(require("./Overlay"), exports);
32
+ __exportStar(require("./Modal"), exports);
33
+ __exportStar(require("./Navigation"), exports);
29
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAsB;AACtB,yCAAsB;AACtB,8CAA4B;AAC5B,yCAAuB;AACvB,0CAAwB;AACxB,6CAA2B;AAC3B,8CAA4B;AAC5B,+CAA6B;AAC7B,2CAAyB;AACzB,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAwB;AACxB,sDAAmC;AACnC,2CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAsB;AACtB,yCAAsB;AACtB,8CAA4B;AAC5B,yCAAuB;AACvB,0CAAwB;AACxB,6CAA2B;AAC3B,8CAA4B;AAC5B,+CAA6B;AAC7B,2CAAyB;AACzB,gDAA6B;AAE7B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAwB;AACxB,sDAAmC;AACnC,2CAAwB;AACxB,gDAA6B;AAC7B,4CAAyB;AACzB,0CAAuB;AAEvB,+CAA6B"}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './components';
2
2
  export { default as OSAlert } from './utils/OSAlert';
3
+ export { default as posed } from 'react-native-pose';