@codeleap/mobile 4.2.9 → 4.2.11
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/Registry.js +28 -53
- package/dist/Registry.js.map +1 -1
- package/dist/components/ActionIcon/index.js +27 -67
- package/dist/components/ActionIcon/index.js.map +1 -1
- package/dist/components/ActionIcon/styles.js +1 -2
- package/dist/components/ActionIcon/types.js +1 -2
- package/dist/components/ActivityIndicator/index.js +22 -62
- package/dist/components/ActivityIndicator/index.js.map +1 -1
- package/dist/components/ActivityIndicator/styles.js +1 -2
- package/dist/components/ActivityIndicator/types.js +1 -2
- package/dist/components/Autocomplete/index.js +73 -121
- package/dist/components/Autocomplete/index.js.map +1 -1
- package/dist/components/Autocomplete/styles.js +1 -2
- package/dist/components/Autocomplete/types.js +1 -2
- package/dist/components/Avatar/index.js +49 -90
- package/dist/components/Avatar/index.js.map +1 -1
- package/dist/components/Avatar/styles.js +1 -2
- package/dist/components/Avatar/types.js +1 -2
- package/dist/components/AvatarGroup/index.js +30 -75
- package/dist/components/AvatarGroup/index.js.map +1 -1
- package/dist/components/AvatarGroup/styles.js +1 -2
- package/dist/components/AvatarGroup/types.js +1 -2
- package/dist/components/Backdrop/index.js +26 -66
- package/dist/components/Backdrop/index.js.map +1 -1
- package/dist/components/Backdrop/styles.js +1 -2
- package/dist/components/Backdrop/types.js +1 -2
- package/dist/components/Badge/index.js +44 -85
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Badge/styles.js +1 -2
- package/dist/components/Badge/types.js +1 -2
- package/dist/components/Button/index.js +49 -98
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Button/styles.js +1 -2
- package/dist/components/Button/types.js +1 -2
- package/dist/components/Calendar/index.js +27 -68
- package/dist/components/Calendar/index.js.map +1 -1
- package/dist/components/Calendar/types.d.ts +1 -2
- package/dist/components/Calendar/types.js +1 -2
- package/dist/components/Checkbox/index.js +52 -85
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/Checkbox/styles.js +1 -2
- package/dist/components/Checkbox/types.js +1 -2
- package/dist/components/DatePickerModal/index.js +61 -113
- package/dist/components/DatePickerModal/index.js.map +1 -1
- package/dist/components/DatePickerModal/styles.js +1 -2
- package/dist/components/DatePickerModal/types.js +1 -2
- package/dist/components/EmptyPlaceholder/index.js +40 -69
- package/dist/components/EmptyPlaceholder/index.js.map +1 -1
- package/dist/components/EmptyPlaceholder/styles.js +1 -2
- package/dist/components/EmptyPlaceholder/types.js +1 -2
- package/dist/components/FileInput/index.js +112 -178
- package/dist/components/FileInput/index.js.map +1 -1
- package/dist/components/FileInput/types.js +1 -2
- package/dist/components/Grid/index.js +47 -97
- package/dist/components/Grid/index.js.map +1 -1
- package/dist/components/Grid/styles.js +1 -2
- package/dist/components/Grid/types.js +1 -2
- package/dist/components/Icon/index.js +34 -75
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Icon/styles.js +1 -2
- package/dist/components/Icon/types.js +1 -2
- package/dist/components/Image/index.js +53 -96
- package/dist/components/Image/index.js.map +1 -1
- package/dist/components/Image/styles.js +1 -2
- package/dist/components/Image/types.js +1 -2
- package/dist/components/ImageView/Spotlight.js +75 -131
- package/dist/components/ImageView/Spotlight.js.map +1 -1
- package/dist/components/ImageView/component.js +8 -15
- package/dist/components/ImageView/component.js.map +1 -1
- package/dist/components/ImageView/index.js +2 -18
- package/dist/components/ImageView/index.js.map +1 -1
- package/dist/components/InputBase/index.js +35 -75
- package/dist/components/InputBase/index.js.map +1 -1
- package/dist/components/InputBase/styles.d.ts +3 -3
- package/dist/components/InputBase/styles.js +49 -50
- package/dist/components/InputBase/styles.js.map +1 -1
- package/dist/components/InputBase/types.d.ts +1 -0
- package/dist/components/InputBase/types.js +1 -2
- package/dist/components/InputBase/utils.js +4 -19
- package/dist/components/InputBase/utils.js.map +1 -1
- package/dist/components/List/index.js +46 -86
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/List/styles.js +1 -2
- package/dist/components/List/types.js +1 -2
- package/dist/components/LoadingOverlay/index.js +28 -66
- package/dist/components/LoadingOverlay/index.js.map +1 -1
- package/dist/components/LoadingOverlay/styles.js +1 -2
- package/dist/components/LoadingOverlay/types.js +1 -2
- package/dist/components/Modal/index.js +77 -113
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/styles.js +1 -2
- package/dist/components/Modal/types.js +1 -2
- package/dist/components/Navigation/Navigation.js +23 -66
- package/dist/components/Navigation/Navigation.js.map +1 -1
- package/dist/components/Navigation/constants.js +7 -10
- package/dist/components/Navigation/constants.js.map +1 -1
- package/dist/components/Navigation/index.js +3 -19
- package/dist/components/Navigation/index.js.map +1 -1
- package/dist/components/Navigation/types.js +1 -2
- package/dist/components/Navigation/utils.js +24 -59
- package/dist/components/Navigation/utils.js.map +1 -1
- package/dist/components/NumberIncrement/index.js +132 -165
- package/dist/components/NumberIncrement/index.js.map +1 -1
- package/dist/components/NumberIncrement/styles.js +1 -2
- package/dist/components/NumberIncrement/types.d.ts +2 -2
- package/dist/components/NumberIncrement/types.js +1 -2
- package/dist/components/NumberIncrement/utils.js +8 -12
- package/dist/components/NumberIncrement/utils.js.map +1 -1
- package/dist/components/Pager/PagerDots.js +17 -54
- package/dist/components/Pager/PagerDots.js.map +1 -1
- package/dist/components/Pager/index.js +43 -97
- package/dist/components/Pager/index.js.map +1 -1
- package/dist/components/Pager/styles.js +1 -2
- package/dist/components/Pager/types.js +1 -2
- package/dist/components/PaginationIndicator/index.js +23 -38
- package/dist/components/PaginationIndicator/index.js.map +1 -1
- package/dist/components/PaginationIndicator/styles.js +1 -2
- package/dist/components/PaginationIndicator/types.js +1 -2
- package/dist/components/PlacesAutocomplete/index.js +55 -106
- package/dist/components/PlacesAutocomplete/index.js.map +1 -1
- package/dist/components/PlacesAutocomplete/styles.js +1 -2
- package/dist/components/PlacesAutocomplete/types.js +1 -2
- package/dist/components/RadioInput/index.js +46 -84
- package/dist/components/RadioInput/index.js.map +1 -1
- package/dist/components/RadioInput/styles.js +1 -2
- package/dist/components/RadioInput/types.js +1 -2
- package/dist/components/RefreshControl/index.js +22 -63
- package/dist/components/RefreshControl/index.js.map +1 -1
- package/dist/components/RefreshControl/styles.js +1 -2
- package/dist/components/RefreshControl/types.js +1 -2
- package/dist/components/Scroll/index.js +33 -81
- package/dist/components/Scroll/index.js.map +1 -1
- package/dist/components/Scroll/styles.js +1 -2
- package/dist/components/Scroll/types.js +1 -2
- package/dist/components/SearchInput/index.js +22 -69
- package/dist/components/SearchInput/index.js.map +1 -1
- package/dist/components/SectionFilters/context.d.ts +6 -0
- package/dist/components/SectionFilters/context.js +4 -8
- package/dist/components/SectionFilters/context.js.map +1 -1
- package/dist/components/SectionFilters/index.js +33 -76
- package/dist/components/SectionFilters/index.js.map +1 -1
- package/dist/components/SectionFilters/types.js +1 -2
- package/dist/components/SectionFilters/useSectionFilters.d.ts +4 -0
- package/dist/components/SectionFilters/useSectionFilters.js +75 -73
- package/dist/components/SectionFilters/useSectionFilters.js.map +1 -1
- package/dist/components/Sections/index.d.ts +8 -8
- package/dist/components/Sections/index.js +61 -106
- package/dist/components/Sections/index.js.map +1 -1
- package/dist/components/Sections/styles.d.ts +1 -1
- package/dist/components/Sections/styles.js +1 -2
- package/dist/components/Sections/types.js +1 -2
- package/dist/components/SegmentedControl/Option.js +13 -31
- package/dist/components/SegmentedControl/Option.js.map +1 -1
- package/dist/components/SegmentedControl/index.js +71 -114
- package/dist/components/SegmentedControl/index.js.map +1 -1
- package/dist/components/SegmentedControl/styles.js +1 -2
- package/dist/components/SegmentedControl/types.js +1 -2
- package/dist/components/Select/index.js +94 -157
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/styles.js +1 -2
- package/dist/components/Select/types.js +1 -2
- package/dist/components/Slider/index.js +89 -129
- package/dist/components/Slider/index.js.map +1 -1
- package/dist/components/Slider/styles.d.ts +0 -6
- package/dist/components/Slider/styles.js +1 -2
- package/dist/components/Slider/types.js +1 -2
- package/dist/components/SortablePhotos/index.js +58 -91
- package/dist/components/SortablePhotos/index.js.map +1 -1
- package/dist/components/SortablePhotos/styles.js +1 -2
- package/dist/components/SortablePhotos/types.js +1 -2
- package/dist/components/SortablePhotos/useSortablePhotos.js +93 -157
- package/dist/components/SortablePhotos/useSortablePhotos.js.map +1 -1
- package/dist/components/Switch/index.js +51 -84
- package/dist/components/Switch/index.js.map +1 -1
- package/dist/components/Switch/styles.js +1 -2
- package/dist/components/Switch/types.js +1 -2
- package/dist/components/Text/index.js +40 -88
- package/dist/components/Text/index.js.map +1 -1
- package/dist/components/Text/styles.js +1 -2
- package/dist/components/Text/types.js +1 -2
- package/dist/components/TextInput/index.js +83 -131
- package/dist/components/TextInput/index.js.map +1 -1
- package/dist/components/TextInput/styles.js +1 -2
- package/dist/components/TextInput/types.js +1 -2
- package/dist/components/Touchable/index.js +69 -122
- package/dist/components/Touchable/index.js.map +1 -1
- package/dist/components/Touchable/styles.js +1 -2
- package/dist/components/Touchable/types.js +1 -2
- package/dist/components/View/index.js +19 -51
- package/dist/components/View/index.js.map +1 -1
- package/dist/components/View/styles.js +1 -2
- package/dist/components/View/types.js +1 -2
- package/dist/components/components.js +43 -59
- package/dist/components/components.js.map +1 -1
- package/dist/hooks/index.js +7 -11
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.js +8 -43
- package/dist/index.js.map +1 -1
- package/dist/modules/PressableRipple/index.js +2 -8
- package/dist/modules/PressableRipple/index.js.map +1 -1
- package/dist/modules/PressableRipple/ripple.js +125 -163
- package/dist/modules/PressableRipple/ripple.js.map +1 -1
- package/dist/modules/PressableRipple/styles.js +9 -20
- package/dist/modules/PressableRipple/styles.js.map +1 -1
- package/dist/modules/PressableRipple/type.js +1 -2
- package/dist/modules/reactNavigation.js +10 -21
- package/dist/modules/reactNavigation.js.map +1 -1
- package/dist/modules/textInputMask.js +3 -20
- package/dist/modules/textInputMask.js.map +1 -1
- package/dist/modules/types/textInputMask.js +1 -2
- package/dist/types/index.js +1 -17
- package/dist/types/index.js.map +1 -1
- package/dist/types/utility.js +1 -2
- package/dist/utils/KeyboardAware/context.js +5 -14
- package/dist/utils/KeyboardAware/context.js.map +1 -1
- package/dist/utils/KeyboardAware/index.js +3 -19
- package/dist/utils/KeyboardAware/index.js.map +1 -1
- package/dist/utils/KeyboardAware/keyboardHooks.js +36 -41
- package/dist/utils/KeyboardAware/keyboardHooks.js.map +1 -1
- package/dist/utils/KeyboardAware/types.js +1 -2
- package/dist/utils/KeyboardAware/types.js.map +1 -1
- package/dist/utils/ModalManager/components.js +24 -54
- package/dist/utils/ModalManager/components.js.map +1 -1
- package/dist/utils/ModalManager/context.js +94 -89
- package/dist/utils/ModalManager/context.js.map +1 -1
- package/dist/utils/ModalManager/index.js +7 -10
- package/dist/utils/ModalManager/index.js.map +1 -1
- package/dist/utils/NotificationManager/index.js +115 -245
- package/dist/utils/NotificationManager/index.js.map +1 -1
- package/dist/utils/NotificationManager/types.js +1 -2
- package/dist/utils/OSAlert.js +32 -48
- package/dist/utils/OSAlert.js.map +1 -1
- package/dist/utils/PermissionManager/context.js +138 -255
- package/dist/utils/PermissionManager/context.js.map +1 -1
- package/dist/utils/PermissionManager/index.js +2 -8
- package/dist/utils/PermissionManager/index.js.map +1 -1
- package/dist/utils/PermissionManager/types.js +1 -2
- package/dist/utils/StorageManager.js +39 -46
- package/dist/utils/StorageManager.js.map +1 -1
- package/dist/utils/Subscription.js +30 -54
- package/dist/utils/Subscription.js.map +1 -1
- package/dist/utils/deprecated/notifications.js +143 -250
- package/dist/utils/deprecated/notifications.js.map +1 -1
- package/dist/utils/hooks.js +101 -120
- package/dist/utils/hooks.js.map +1 -1
- package/dist/utils/index.js +14 -43
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/input.js +15 -19
- package/dist/utils/input.js.map +1 -1
- package/dist/utils/locale.js +5 -9
- package/dist/utils/locale.js.map +1 -1
- package/dist/utils/misc.js +25 -40
- package/dist/utils/misc.js.map +1 -1
- package/dist/utils/theme.js +24 -33
- package/dist/utils/theme.js.map +1 -1
- package/dist/utils/useQueryListRefresh.js +16 -26
- package/dist/utils/useQueryListRefresh.js.map +1 -1
- package/package.json +6 -6
- package/package.json.bak +2 -2
- package/src/components/Calendar/types.ts +3 -3
- package/src/components/InputBase/styles.ts +35 -23
- package/src/components/InputBase/types.ts +1 -0
- package/src/components/NumberIncrement/index.tsx +8 -2
- package/src/components/NumberIncrement/types.ts +3 -3
- package/src/components/RadioInput/index.tsx +4 -0
- package/src/components/SectionFilters/useSectionFilters.tsx +39 -1
- package/src/components/Sections/index.tsx +3 -2
- package/src/components/Sections/styles.ts +2 -2
- package/src/components/Slider/index.tsx +9 -1
- package/src/components/Slider/styles.ts +0 -6
- package/src/components/TextInput/index.tsx +5 -0
package/dist/index.js
CHANGED
|
@@ -1,44 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
-
};
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.MobileStyleRegistry = exports.RNKeyboardAwareScrollView = exports.uuid = exports.Linking = void 0;
|
|
33
|
-
__exportStar(require("./components/components"), exports);
|
|
34
|
-
var react_native_1 = require("react-native");
|
|
35
|
-
Object.defineProperty(exports, "Linking", { enumerable: true, get: function () { return react_native_1.Linking; } });
|
|
36
|
-
__exportStar(require("./utils"), exports);
|
|
37
|
-
__exportStar(require("./hooks"), exports);
|
|
38
|
-
var react_native_uuid_1 = __importDefault(require("react-native-uuid"));
|
|
39
|
-
exports.uuid = react_native_uuid_1.default;
|
|
40
|
-
var RNKeyboardAwareScrollView = __importStar(require("./utils/KeyboardAware"));
|
|
41
|
-
exports.RNKeyboardAwareScrollView = RNKeyboardAwareScrollView;
|
|
42
|
-
var Registry_1 = require("./Registry");
|
|
43
|
-
Object.defineProperty(exports, "MobileStyleRegistry", { enumerable: true, get: function () { return Registry_1.MobileStyleRegistry; } });
|
|
1
|
+
export * from './components/components';
|
|
2
|
+
export { Linking } from 'react-native';
|
|
3
|
+
export * from './utils';
|
|
4
|
+
export * from './hooks';
|
|
5
|
+
import uuid from 'react-native-uuid';
|
|
6
|
+
import * as RNKeyboardAwareScrollView from './utils/KeyboardAware';
|
|
7
|
+
export { uuid, RNKeyboardAwareScrollView };
|
|
8
|
+
export { MobileStyleRegistry } from './Registry';
|
|
44
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,OAAO,IAAI,MAAM,mBAAmB,CAAA;AACpC,OAAO,KAAK,yBAAyB,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAA;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PressableRipple = void 0;
|
|
7
|
-
var ripple_1 = __importDefault(require("./ripple"));
|
|
8
|
-
exports.PressableRipple = ripple_1.default;
|
|
1
|
+
import PressableRipple from './ripple';
|
|
2
|
+
export { PressableRipple };
|
|
9
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/PressableRipple/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/PressableRipple/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,UAAU,CAAA;AAEtC,OAAO,EACL,eAAe,EAChB,CAAA"}
|
|
@@ -1,213 +1,175 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import React, { PureComponent } from 'react';
|
|
3
|
+
import { View, Animated, Easing, Platform, TouchableWithoutFeedback, I18nManager } from 'react-native';
|
|
4
|
+
import { styles, radius } from './styles.js';
|
|
5
|
+
class Ripple extends PureComponent {
|
|
6
|
+
static defaultProps = {
|
|
7
|
+
...TouchableWithoutFeedback.defaultProps,
|
|
8
|
+
rippleColor: 'rgb(0, 0, 0)',
|
|
9
|
+
rippleOpacity: 0.30,
|
|
10
|
+
rippleDuration: 400,
|
|
11
|
+
rippleSize: 0,
|
|
12
|
+
rippleContainerBorderRadius: 0,
|
|
13
|
+
rippleCentered: false,
|
|
14
|
+
rippleSequential: false,
|
|
15
|
+
rippleFades: true,
|
|
16
|
+
disabled: false,
|
|
17
|
+
onRippleAnimation: (animation, callback) => animation.start(callback),
|
|
8
18
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
static propTypes = {
|
|
20
|
+
...Animated.View.propTypes,
|
|
21
|
+
...TouchableWithoutFeedback.propTypes,
|
|
22
|
+
rippleColor: PropTypes.string,
|
|
23
|
+
rippleOpacity: PropTypes.number,
|
|
24
|
+
rippleDuration: PropTypes.number,
|
|
25
|
+
rippleSize: PropTypes.number,
|
|
26
|
+
rippleContainerBorderRadius: PropTypes.number,
|
|
27
|
+
rippleCentered: PropTypes.bool,
|
|
28
|
+
rippleSequential: PropTypes.bool,
|
|
29
|
+
rippleFades: PropTypes.bool,
|
|
30
|
+
disabled: PropTypes.bool,
|
|
31
|
+
onRippleAnimation: PropTypes.func,
|
|
15
32
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29
|
-
if (k2 === undefined) k2 = k;
|
|
30
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
31
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
32
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
33
|
-
}
|
|
34
|
-
Object.defineProperty(o, k2, desc);
|
|
35
|
-
}) : (function(o, m, k, k2) {
|
|
36
|
-
if (k2 === undefined) k2 = k;
|
|
37
|
-
o[k2] = m[k];
|
|
38
|
-
}));
|
|
39
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
40
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
41
|
-
}) : function(o, v) {
|
|
42
|
-
o["default"] = v;
|
|
43
|
-
});
|
|
44
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
45
|
-
if (mod && mod.__esModule) return mod;
|
|
46
|
-
var result = {};
|
|
47
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
48
|
-
__setModuleDefault(result, mod);
|
|
49
|
-
return result;
|
|
50
|
-
};
|
|
51
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
52
|
-
var t = {};
|
|
53
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
54
|
-
t[p] = s[p];
|
|
55
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
56
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
57
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
58
|
-
t[p[i]] = s[p[i]];
|
|
59
|
-
}
|
|
60
|
-
return t;
|
|
61
|
-
};
|
|
62
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
63
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
64
|
-
};
|
|
65
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
67
|
-
var react_1 = __importStar(require("react"));
|
|
68
|
-
var react_native_1 = require("react-native");
|
|
69
|
-
var styles_js_1 = require("./styles.js");
|
|
70
|
-
var Ripple = /** @class */ (function (_super) {
|
|
71
|
-
__extends(Ripple, _super);
|
|
72
|
-
function Ripple(props) {
|
|
73
|
-
var _this = _super.call(this, props) || this;
|
|
74
|
-
_this.onLayout = _this.onLayout.bind(_this);
|
|
75
|
-
_this.onPress = _this.onPress.bind(_this);
|
|
76
|
-
_this.onPressIn = _this.onPressIn.bind(_this);
|
|
77
|
-
_this.onPressOut = _this.onPressOut.bind(_this);
|
|
78
|
-
_this.onLongPress = _this.onLongPress.bind(_this);
|
|
79
|
-
_this.onAnimationEnd = _this.onAnimationEnd.bind(_this);
|
|
80
|
-
_this.renderRipple = _this.renderRipple.bind(_this);
|
|
81
|
-
_this.unique = 0;
|
|
82
|
-
_this.mounted = false;
|
|
83
|
-
_this.state = {
|
|
33
|
+
constructor(props) {
|
|
34
|
+
super(props);
|
|
35
|
+
this.onLayout = this.onLayout.bind(this);
|
|
36
|
+
this.onPress = this.onPress.bind(this);
|
|
37
|
+
this.onPressIn = this.onPressIn.bind(this);
|
|
38
|
+
this.onPressOut = this.onPressOut.bind(this);
|
|
39
|
+
this.onLongPress = this.onLongPress.bind(this);
|
|
40
|
+
this.onAnimationEnd = this.onAnimationEnd.bind(this);
|
|
41
|
+
this.renderRipple = this.renderRipple.bind(this);
|
|
42
|
+
this.unique = 0;
|
|
43
|
+
this.mounted = false;
|
|
44
|
+
this.state = {
|
|
84
45
|
width: 0,
|
|
85
46
|
height: 0,
|
|
86
47
|
ripples: [],
|
|
87
48
|
};
|
|
88
|
-
return _this;
|
|
89
49
|
}
|
|
90
|
-
|
|
50
|
+
componentDidMount() {
|
|
91
51
|
this.mounted = true;
|
|
92
|
-
}
|
|
93
|
-
|
|
52
|
+
}
|
|
53
|
+
componentWillUnmount() {
|
|
94
54
|
this.mounted = false;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
55
|
+
}
|
|
56
|
+
onLayout(event) {
|
|
57
|
+
let { width, height } = event.nativeEvent.layout;
|
|
58
|
+
let { onLayout } = this.props;
|
|
99
59
|
if ('function' === typeof onLayout) {
|
|
100
60
|
onLayout(event);
|
|
101
61
|
}
|
|
102
|
-
this.setState({ width
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
62
|
+
this.setState({ width, height });
|
|
63
|
+
}
|
|
64
|
+
onPress(event) {
|
|
65
|
+
let { onPress } = this.props;
|
|
106
66
|
if ('function' === typeof onPress) {
|
|
107
67
|
onPress(event);
|
|
108
68
|
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
69
|
+
}
|
|
70
|
+
onLongPress(event) {
|
|
71
|
+
let { onLongPress } = this.props;
|
|
112
72
|
if ('function' === typeof onLongPress) {
|
|
113
|
-
requestAnimationFrame(
|
|
73
|
+
requestAnimationFrame(() => onLongPress(event));
|
|
114
74
|
}
|
|
115
75
|
this.startRipple(event);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
76
|
+
}
|
|
77
|
+
onPressIn(event) {
|
|
78
|
+
let { onPressIn } = this.props;
|
|
119
79
|
if ('function' === typeof onPressIn) {
|
|
120
80
|
onPressIn(event);
|
|
121
81
|
}
|
|
122
82
|
this.startRipple(event);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
83
|
+
}
|
|
84
|
+
onPressOut(event) {
|
|
85
|
+
let { onPressOut } = this.props;
|
|
126
86
|
if ('function' === typeof onPressOut) {
|
|
127
87
|
onPressOut(event);
|
|
128
88
|
}
|
|
129
|
-
}
|
|
130
|
-
|
|
89
|
+
}
|
|
90
|
+
onAnimationEnd() {
|
|
131
91
|
if (this.mounted) {
|
|
132
|
-
this.setState(
|
|
133
|
-
var ripples = _a.ripples;
|
|
134
|
-
return ({ ripples: ripples.slice(1) });
|
|
135
|
-
});
|
|
92
|
+
this.setState(({ ripples }) => ({ ripples: ripples.slice(1) }));
|
|
136
93
|
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
94
|
+
}
|
|
95
|
+
startRipple(event) {
|
|
96
|
+
let { width, height } = this.state;
|
|
97
|
+
let { rippleDuration, rippleCentered, rippleSize, onRippleAnimation, } = this.props;
|
|
98
|
+
let w2 = 0.5 * width;
|
|
99
|
+
let h2 = 0.5 * height;
|
|
100
|
+
let { locationX, locationY } = rippleCentered ?
|
|
144
101
|
{ locationX: w2, locationY: h2 } :
|
|
145
|
-
event.nativeEvent
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
102
|
+
event.nativeEvent;
|
|
103
|
+
let offsetX = Math.abs(w2 - locationX);
|
|
104
|
+
let offsetY = Math.abs(h2 - locationY);
|
|
105
|
+
let R = rippleSize > 0 ?
|
|
149
106
|
0.5 * rippleSize :
|
|
150
107
|
Math.sqrt(Math.pow(w2 + offsetX, 2) + Math.pow(h2 + offsetY, 2));
|
|
151
|
-
|
|
108
|
+
let ripple = {
|
|
152
109
|
unique: this.unique++,
|
|
153
|
-
progress: new
|
|
154
|
-
locationX
|
|
155
|
-
locationY
|
|
156
|
-
R
|
|
110
|
+
progress: new Animated.Value(0),
|
|
111
|
+
locationX,
|
|
112
|
+
locationY,
|
|
113
|
+
R,
|
|
157
114
|
};
|
|
158
|
-
|
|
115
|
+
let animation = Animated
|
|
159
116
|
.timing(ripple.progress, {
|
|
160
117
|
toValue: 1,
|
|
161
|
-
easing:
|
|
118
|
+
easing: Easing.out(Easing.ease),
|
|
162
119
|
duration: rippleDuration,
|
|
163
120
|
useNativeDriver: true,
|
|
164
121
|
});
|
|
165
122
|
onRippleAnimation(animation, this.onAnimationEnd);
|
|
166
|
-
this.setState(
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
var rippleStyle = (_b = {
|
|
176
|
-
top: locationY - styles_js_1.radius
|
|
177
|
-
},
|
|
178
|
-
_b[react_native_1.I18nManager.isRTL ? 'right' : 'left'] = locationX - styles_js_1.radius,
|
|
179
|
-
_b.backgroundColor = color,
|
|
180
|
-
_b.transform = [{
|
|
123
|
+
this.setState(({ ripples }) => ({ ripples: ripples.concat(ripple) }));
|
|
124
|
+
}
|
|
125
|
+
renderRipple({ unique, progress, locationX, locationY, R }) {
|
|
126
|
+
let { rippleColor, color = rippleColor, rippleOpacity, rippleFades } = this.props;
|
|
127
|
+
let rippleStyle = {
|
|
128
|
+
top: locationY - radius,
|
|
129
|
+
[I18nManager.isRTL ? 'right' : 'left']: locationX - radius,
|
|
130
|
+
backgroundColor: color,
|
|
131
|
+
transform: [{
|
|
181
132
|
scale: progress.interpolate({
|
|
182
133
|
inputRange: [0, 1],
|
|
183
|
-
outputRange: [0.5 /
|
|
134
|
+
outputRange: [0.5 / radius, R / radius],
|
|
184
135
|
}),
|
|
185
136
|
}],
|
|
186
|
-
|
|
137
|
+
opacity: rippleFades ?
|
|
187
138
|
progress.interpolate({
|
|
188
139
|
inputRange: [0, 1],
|
|
189
140
|
outputRange: [rippleOpacity, 0],
|
|
190
141
|
}) :
|
|
191
142
|
rippleOpacity,
|
|
192
|
-
|
|
193
|
-
return (<
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
143
|
+
};
|
|
144
|
+
return (<Animated.View style={[styles.ripple, rippleStyle]} key={unique}/>);
|
|
145
|
+
}
|
|
146
|
+
render() {
|
|
147
|
+
let { ripples } = this.state;
|
|
148
|
+
let { delayLongPress, delayPressIn, delayPressOut, disabled, hitSlop, pressRetentionOffset, children, rippleContainerBorderRadius, testID, nativeID, accessible, accessibilityHint, accessibilityLabel, onPress, onLongPress, onLayout, onRippleAnimation, rippleColor, rippleOpacity, rippleDuration, rippleSize, rippleCentered, rippleSequential, rippleFades, ref, radiusStyles, ...props } = this.props;
|
|
149
|
+
let touchableProps = {
|
|
150
|
+
disabled,
|
|
151
|
+
hitSlop,
|
|
152
|
+
pressRetentionOffset,
|
|
153
|
+
testID,
|
|
154
|
+
accessible,
|
|
155
|
+
accessibilityHint,
|
|
156
|
+
accessibilityLabel,
|
|
157
|
+
onLayout: this.onLayout,
|
|
158
|
+
onPress: this.onPress,
|
|
159
|
+
onPressIn: this.onPressIn,
|
|
160
|
+
onPressOut: this.onPressOut,
|
|
161
|
+
onLongPress: onLongPress ? this.onLongPress : undefined,
|
|
162
|
+
...('web' !== Platform.OS ? { nativeID } : null),
|
|
163
|
+
};
|
|
164
|
+
return (<TouchableWithoutFeedback {...touchableProps} ref={ref}>
|
|
165
|
+
<Animated.View {...props} pointerEvents='box-only'>
|
|
201
166
|
{children}
|
|
202
|
-
<
|
|
167
|
+
<View style={[styles.container, radiusStyles]}>
|
|
203
168
|
{ripples.map(this.renderRipple)}
|
|
204
|
-
</
|
|
205
|
-
</
|
|
206
|
-
</
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
return Ripple;
|
|
211
|
-
}(react_1.PureComponent));
|
|
212
|
-
exports.default = Ripple;
|
|
169
|
+
</View>
|
|
170
|
+
</Animated.View>
|
|
171
|
+
</TouchableWithoutFeedback>);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
export default Ripple;
|
|
213
175
|
//# sourceMappingURL=ripple.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ripple.js","sourceRoot":"","sources":["../../../src/modules/PressableRipple/ripple.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ripple.js","sourceRoot":"","sources":["../../../src/modules/PressableRipple/ripple.js"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAA;AAClC,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AACtG,OAAO,EAAE,MAAM,EAAE,M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
7
|
-
|
|
8
|
-
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.radius = exports.styles = void 0;
|
|
15
|
-
var react_native_1 = require("react-native");
|
|
16
|
-
var radius = 10;
|
|
17
|
-
exports.radius = radius;
|
|
18
|
-
var styles = react_native_1.StyleSheet.create({
|
|
19
|
-
container: __assign(__assign({}, react_native_1.StyleSheet.absoluteFillObject), { backgroundColor: 'transparent', overflow: 'hidden' }),
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
const radius = 10;
|
|
3
|
+
const styles = StyleSheet.create({
|
|
4
|
+
container: {
|
|
5
|
+
...StyleSheet.absoluteFillObject,
|
|
6
|
+
backgroundColor: 'transparent',
|
|
7
|
+
overflow: 'hidden',
|
|
8
|
+
},
|
|
20
9
|
ripple: {
|
|
21
10
|
width: radius * 2,
|
|
22
11
|
height: radius * 2,
|
|
@@ -25,5 +14,5 @@ var styles = react_native_1.StyleSheet.create({
|
|
|
25
14
|
position: 'absolute',
|
|
26
15
|
},
|
|
27
16
|
});
|
|
28
|
-
|
|
17
|
+
export { styles, radius };
|
|
29
18
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/modules/PressableRipple/styles.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/modules/PressableRipple/styles.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,MAAM,GAAG,EAAE,CAAA;AAEjB,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,GAAG,UAAU,CAAC,kBAAkB;QAEhC,eAAe,EAAE,aAAa;QAC9B,QAAQ,EAAE,QAAQ;KACnB;IAED,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,GAAG,CAAC;QACjB,MAAM,EAAE,MAAM,GAAG,CAAC;QAClB,YAAY,EAAE,MAAM;QACpB,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,UAAU;KACrB;CACF,CAAC,CAAA;AAEF,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var drawer_1 = require("@react-navigation/drawer");
|
|
11
|
-
Object.defineProperty(exports, "createDrawerNavigator", { enumerable: true, get: function () { return drawer_1.createDrawerNavigator; } });
|
|
12
|
-
var bottom_tabs_1 = require("@react-navigation/bottom-tabs");
|
|
13
|
-
Object.defineProperty(exports, "createBottomTabNavigator", { enumerable: true, get: function () { return bottom_tabs_1.createBottomTabNavigator; } });
|
|
14
|
-
var core_1 = require("@react-navigation/core");
|
|
15
|
-
var native_1 = require("@react-navigation/native");
|
|
16
|
-
Object.defineProperty(exports, "useIsFocused", { enumerable: true, get: function () { return native_1.useIsFocused; } });
|
|
17
|
-
function useNavigationContext() {
|
|
18
|
-
var root = react_1.default.useContext(core_1.NavigationContainerRefContext);
|
|
19
|
-
var navigation = react_1.default.useContext(core_1.NavigationContext);
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export { createStackNavigator } from '@react-navigation/stack';
|
|
3
|
+
export { createDrawerNavigator } from '@react-navigation/drawer';
|
|
4
|
+
export { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
|
|
5
|
+
import { NavigationContainerRefContext, NavigationContext } from '@react-navigation/core';
|
|
6
|
+
export { useIsFocused } from '@react-navigation/native';
|
|
7
|
+
export function useNavigationContext() {
|
|
8
|
+
const root = React.useContext(NavigationContainerRefContext);
|
|
9
|
+
const navigation = React.useContext(NavigationContext);
|
|
20
10
|
if (!navigation && !root)
|
|
21
11
|
return undefined;
|
|
22
|
-
return (navigation
|
|
12
|
+
return (navigation ?? root);
|
|
23
13
|
}
|
|
24
|
-
exports.useNavigationContext = useNavigationContext;
|
|
25
14
|
//# sourceMappingURL=reactNavigation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactNavigation.js","sourceRoot":"","sources":["../../src/modules/reactNavigation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reactNavigation.js","sourceRoot":"","sources":["../../src/modules/reactNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,EAAE,6BAA6B,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEvD,MAAM,UAAU,oBAAoB;IAClC,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAAA;IAC5D,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAA;IACtD,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAA;IAE1C,OAAO,CAAC,UAAU,IAAI,IAAI,CAAC,CAAA;AAC7B,CAAC"}
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.MaskedTextInput = void 0;
|
|
18
|
-
var react_native_masked_text_1 = require("react-native-masked-text");
|
|
19
|
-
exports.MaskedTextInput = react_native_masked_text_1.TextInputMask;
|
|
20
|
-
__exportStar(require("./types/textInputMask"), exports);
|
|
1
|
+
import { TextInputMask } from 'react-native-masked-text';
|
|
2
|
+
export const MaskedTextInput = TextInputMask;
|
|
3
|
+
export * from './types/textInputMask';
|
|
21
4
|
//# sourceMappingURL=textInputMask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textInputMask.js","sourceRoot":"","sources":["../../src/modules/textInputMask.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"textInputMask.js","sourceRoot":"","sources":["../../src/modules/textInputMask.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAsB,MAAM,0BAA0B,CAAA;AAE5E,MAAM,CAAC,MAAM,eAAe,GAAG,aAE7B,CAAA;AAEF,cAAc,uBAAuB,CAAA"}
|
package/dist/types/index.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./utility"), exports);
|
|
1
|
+
export * from './utility';
|
|
18
2
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
|