@ovotech/element-native 3.1.1-canary-937df0e-110 → 3.1.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.
- package/dist/components/ActionList/ActionList.d.ts +2 -3
- package/dist/components/ActionList/ActionList.js +5 -13
- package/dist/components/ActionList/styled.d.ts +2 -4
- package/dist/components/ActionList/styled.js +7 -10
- package/dist/components/CTAButton/CTAButton.d.ts +3 -3
- package/dist/components/CTALink/CTALink.d.ts +3 -3
- package/dist/components/Input/TelInput.d.ts +10 -0
- package/dist/components/Input/TelInput.js +41 -0
- package/dist/esm/components/ActionList/ActionList.js +5 -13
- package/dist/esm/components/ActionList/styled.js +7 -10
- package/dist/esm/components/Input/TelInput.js +15 -0
- package/dist/esm/providers/icons/HidePassword.js +15 -0
- package/dist/esm/providers/icons/Payment.js +15 -0
- package/dist/esm/providers/icons/ShowPassword.js +15 -0
- package/dist/esm/providers/icons/Usage.js +15 -0
- package/dist/providers/icons/HidePassword.d.ts +2 -0
- package/dist/providers/icons/HidePassword.js +22 -0
- package/dist/providers/icons/Payment.d.ts +2 -0
- package/dist/providers/icons/Payment.js +22 -0
- package/dist/providers/icons/ShowPassword.d.ts +2 -0
- package/dist/providers/icons/ShowPassword.js +22 -0
- package/dist/providers/icons/Usage.d.ts +2 -0
- package/dist/providers/icons/Usage.js +22 -0
- package/package.json +4 -4
|
@@ -5,7 +5,6 @@ import { StyledActionList } from './styled';
|
|
|
5
5
|
declare const ACTION_TYPES: {
|
|
6
6
|
[key: string]: IconName;
|
|
7
7
|
};
|
|
8
|
-
declare type FullWidthOptions = 'always' | 'never' | 'small';
|
|
9
8
|
declare type ActionListProps = ComponentProps<typeof StyledActionList>;
|
|
10
9
|
declare type ActionProps = PropsWithChildren<ViewProps & {
|
|
11
10
|
accessibilityRole?: AccessibilityRole;
|
|
@@ -14,10 +13,10 @@ declare type ActionProps = PropsWithChildren<ViewProps & {
|
|
|
14
13
|
iconRight?: IconName | 'off';
|
|
15
14
|
inverted?: boolean;
|
|
16
15
|
onPress?: () => void;
|
|
17
|
-
fullWidth?:
|
|
16
|
+
fullWidth?: 'always' | 'never' | 'small';
|
|
18
17
|
ref?: Ref<View>;
|
|
19
18
|
testID?: string;
|
|
20
19
|
}>;
|
|
21
20
|
declare const ActionList: ({ children, inverted, ...rest }: ActionListProps) => JSX.Element;
|
|
22
|
-
declare const Action: ({ accessibilityRole, actionType, children,
|
|
21
|
+
declare const Action: ({ accessibilityRole, actionType, children, inverted, onPress, testID, ...rest }: ActionProps) => JSX.Element;
|
|
23
22
|
export { ActionList, Action };
|
|
@@ -40,29 +40,21 @@ var ActionList = function (_a) {
|
|
|
40
40
|
return ((0, jsx_runtime_1.jsx)(styled_1.StyledActionList, __assign({}, rest, { children: react_1.Children.map(children, function (child, index) {
|
|
41
41
|
var _a;
|
|
42
42
|
return (0, react_1.cloneElement)(child, {
|
|
43
|
-
fullWidth: 'always',
|
|
44
43
|
index: index,
|
|
45
44
|
hasBorder: childCount > 1 && index !== childCount - 1,
|
|
45
|
+
inList: childCount !== 1 ? true : false,
|
|
46
46
|
inverted: (_a = child.props.inverted) !== null && _a !== void 0 ? _a : inverted, // prioritise child prop
|
|
47
47
|
});
|
|
48
48
|
}) })));
|
|
49
49
|
};
|
|
50
50
|
exports.ActionList = ActionList;
|
|
51
51
|
var ActionWrapper = function (_a) {
|
|
52
|
-
var children = _a.children, accessibilityRole = _a.accessibilityRole, _b = _a.activeOpacity, activeOpacity = _b === void 0 ? 0.75 : _b,
|
|
53
|
-
return ((0, jsx_runtime_1.jsx)(styled_1.StyledActionWrapper, __assign({ hasBorder: hasBorder, inverted: inverted, testID: testID }, rest, { children: (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, __assign({ activeOpacity: activeOpacity, accessibilityRole: accessibilityRole, onPress: onPress }, { children: (0, jsx_runtime_1.jsx)(styled_1.StyledActionInner,
|
|
52
|
+
var children = _a.children, accessibilityRole = _a.accessibilityRole, _b = _a.activeOpacity, activeOpacity = _b === void 0 ? 0.75 : _b, _c = _a.hasBorder, hasBorder = _c === void 0 ? false : _c, _d = _a.inList, inList = _d === void 0 ? false : _d, _e = _a.inverted, inverted = _e === void 0 ? false : _e, onPress = _a.onPress, testID = _a.testID, rest = __rest(_a, ["children", "accessibilityRole", "activeOpacity", "hasBorder", "inList", "inverted", "onPress", "testID"]);
|
|
53
|
+
return ((0, jsx_runtime_1.jsx)(styled_1.StyledActionWrapper, __assign({ hasBorder: hasBorder, inList: inList, inverted: inverted, testID: testID }, rest, { children: (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, __assign({ activeOpacity: activeOpacity, accessibilityRole: accessibilityRole, onPress: onPress }, { children: (0, jsx_runtime_1.jsx)(styled_1.StyledActionInner, { children: children }) })) })));
|
|
54
54
|
};
|
|
55
55
|
var Action = function (_a) {
|
|
56
|
-
var _b = _a.accessibilityRole, accessibilityRole = _b === void 0 ? 'link' : _b, _c = _a.actionType, actionType = _c === void 0 ? 'link' : _c, children = _a.children, _d = _a.
|
|
56
|
+
var _b = _a.accessibilityRole, accessibilityRole = _b === void 0 ? 'link' : _b, _c = _a.actionType, actionType = _c === void 0 ? 'link' : _c, children = _a.children, _d = _a.inverted, inverted = _d === void 0 ? false : _d, onPress = _a.onPress, testID = _a.testID, rest = __rest(_a, ["accessibilityRole", "actionType", "children", "inverted", "onPress", "testID"]);
|
|
57
57
|
var smallAndUp = (0, hooks_1.useBreakpoint)().smallAndUp;
|
|
58
|
-
|
|
59
|
-
var updatedIconRight = null;
|
|
60
|
-
if (!isBackAction) {
|
|
61
|
-
updatedIconRight = ACTION_TYPES[actionType];
|
|
62
|
-
}
|
|
63
|
-
if (fullWidth === 'small') {
|
|
64
|
-
fullWidth = smallAndUp ? 'never' : 'always';
|
|
65
|
-
}
|
|
66
|
-
return ((0, jsx_runtime_1.jsxs)(ActionWrapper, __assign({ accessibilityRole: accessibilityRole, fullWidth: fullWidth, inverted: inverted, onPress: onPress, testID: testID }, rest, { children: [isBackAction ? ((0, jsx_runtime_1.jsx)(styled_1.StyledLeftIcon, { inverted: inverted, name: ACTION_TYPES.back, size: 16 })) : null, (0, jsx_runtime_1.jsx)(styled_1.StyledActionText, __assign({ smallAndUp: smallAndUp, inverted: inverted }, { children: children })), updatedIconRight ? ((0, jsx_runtime_1.jsx)(styled_1.StyledRightIcon, { inverted: inverted, name: updatedIconRight, marginTop: actionType === 'link' ? 1 : 0, size: 16 })) : null] })));
|
|
58
|
+
return ((0, jsx_runtime_1.jsxs)(ActionWrapper, __assign({ accessibilityRole: accessibilityRole, inverted: inverted, onPress: onPress, testID: testID }, rest, { children: [actionType === 'back' ? ((0, jsx_runtime_1.jsx)(styled_1.StyledLeftIcon, { inverted: inverted, name: ACTION_TYPES['back'], size: 16 })) : null, (0, jsx_runtime_1.jsx)(styled_1.StyledActionText, __assign({ smallAndUp: smallAndUp, inverted: inverted }, { children: children })), actionType !== 'back' ? ((0, jsx_runtime_1.jsx)(styled_1.StyledRightIcon, { inverted: inverted, name: ACTION_TYPES[actionType], marginTop: actionType === 'link' ? 1 : 0, size: 16 })) : null] })));
|
|
67
59
|
};
|
|
68
60
|
exports.Action = Action;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Theme } from '@ovotech/element-core';
|
|
2
|
-
import { FullWidthOptions } from '../../hooks';
|
|
3
2
|
import { ListWrapper } from '../List/List';
|
|
4
3
|
export declare const StyledActionList: typeof ListWrapper;
|
|
5
4
|
export declare const StyledActionWrapper: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
|
|
@@ -231,6 +230,7 @@ export declare const StyledActionWrapper: import("styled-components").StyledComp
|
|
|
231
230
|
};
|
|
232
231
|
} & object, {
|
|
233
232
|
hasBorder?: boolean | undefined;
|
|
233
|
+
inList?: boolean | undefined;
|
|
234
234
|
inverted?: boolean | undefined;
|
|
235
235
|
}, never>;
|
|
236
236
|
export declare const StyledActionInner: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
|
|
@@ -460,9 +460,7 @@ export declare const StyledActionInner: import("styled-components").StyledCompon
|
|
|
460
460
|
};
|
|
461
461
|
};
|
|
462
462
|
};
|
|
463
|
-
} & object, {
|
|
464
|
-
fullWidth?: FullWidthOptions | undefined;
|
|
465
|
-
}, never>;
|
|
463
|
+
} & object, {}, never>;
|
|
466
464
|
export declare const StyledActionText: import("styled-components").StyledComponent<typeof import("react-native").Text, import("../../theme/theme").Theme & {
|
|
467
465
|
core: {
|
|
468
466
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
@@ -33,28 +33,25 @@ var Icon_1 = require("../Icon");
|
|
|
33
33
|
var List_1 = require("../List/List");
|
|
34
34
|
exports.StyledActionList = List_1.ListWrapper;
|
|
35
35
|
exports.StyledActionWrapper = styled_native_1.default.View(function (_a) {
|
|
36
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, hasBorder = _a.hasBorder, inverted = _a.inverted;
|
|
37
|
-
return "\n width: 100
|
|
38
|
-
});
|
|
39
|
-
exports.StyledActionInner = styled_native_1.default.View(function (_a) {
|
|
40
|
-
var fullWidth = _a.fullWidth;
|
|
41
|
-
return "\n display: flex;\n flex-direction: row;\n justify-content: ".concat(fullWidth === 'always' ? 'space-between' : 'flex-start', ";\n align-items: center;\n min-height: 44px;\n");
|
|
36
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, hasBorder = _a.hasBorder, inList = _a.inList, inverted = _a.inverted;
|
|
37
|
+
return "\n width: ".concat(inList ? '100%' : 'auto', ";\n align-self: ").concat(inList ? 'center' : 'flex-start', ";\n border-bottom-width: ").concat(hasBorder ? core.borderWidth.small : 0, ";\n border-bottom-style: solid;\n border-bottom-color: ").concat(inverted ? semantic.inverted.border : semantic.border.graphic, ";\n");
|
|
42
38
|
});
|
|
39
|
+
exports.StyledActionInner = styled_native_1.default.View(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n min-height: 44px;\n"], ["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n min-height: 44px;\n"])));
|
|
43
40
|
exports.StyledActionText = styled_native_1.default.Text(function (_a) {
|
|
44
41
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp, _c = _a.inverted, inverted = _c === void 0 ? false : _c;
|
|
45
42
|
var fontSize = smallAndUp
|
|
46
43
|
? core.fontSize.body.large
|
|
47
44
|
: core.fontSize.body.small;
|
|
48
|
-
return (0, styled_native_1.css)(
|
|
45
|
+
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n "], ["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n "])), inverted ? semantic.inverted.message.base : semantic.message.base, core.fontFamily.bodyBold.native, fontSize, core.lineHeight.body.small);
|
|
49
46
|
});
|
|
50
47
|
exports.StyledRightIcon = (0, styled_native_1.default)(Icon_1.Icon)(function (_a) {
|
|
51
48
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inverted = _a.inverted, marginTop = _a.marginTop;
|
|
52
|
-
return (0, styled_native_1.css)(
|
|
49
|
+
return (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n margin-left: ", ";\n margin-top: ", ";\n "], ["\n color: ", ";\n margin-left: ", ";\n margin-top: ", ";\n "])), inverted ? semantic.inverted.message.base : semantic.message.base, core.space[1], core.space[marginTop]);
|
|
53
50
|
});
|
|
54
51
|
exports.StyledLeftIcon = (0, styled_native_1.default)(Icon_1.Icon)(function (_a) {
|
|
55
52
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inverted = _a.inverted;
|
|
56
|
-
return (0, styled_native_1.css)(
|
|
53
|
+
return (0, styled_native_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n margin-right: ", ";\n "], ["\n color: ", ";\n margin-right: ", ";\n "])), inverted
|
|
57
54
|
? semantic.inverted.message.base
|
|
58
55
|
: semantic.message.base, core.space[1]);
|
|
59
56
|
});
|
|
60
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
57
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -13,7 +13,7 @@ declare const CTAButton: ({ iconLeft, iconRight, children, fullWidth, variant, .
|
|
|
13
13
|
declare type CTAProps = Omit<ComponentProps<typeof CTAButton>, 'variant' | 'ref'> & {
|
|
14
14
|
ref: Ref<TouchableOpacity>;
|
|
15
15
|
};
|
|
16
|
-
declare const PrimaryCTAButton: import("react").ForwardRefExoticComponent<Pick<CTAProps, "
|
|
17
|
-
declare const SecondaryCTAButton: import("react").ForwardRefExoticComponent<Pick<CTAProps, "
|
|
18
|
-
declare const DestructiveCTAButton: import("react").ForwardRefExoticComponent<Pick<CTAProps, "
|
|
16
|
+
declare const PrimaryCTAButton: import("react").ForwardRefExoticComponent<Pick<CTAProps, "iconLeft" | "iconRight" | "fullWidth" | keyof TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
|
|
17
|
+
declare const SecondaryCTAButton: import("react").ForwardRefExoticComponent<Pick<CTAProps, "iconLeft" | "iconRight" | "fullWidth" | keyof TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
|
|
18
|
+
declare const DestructiveCTAButton: import("react").ForwardRefExoticComponent<Pick<CTAProps, "iconLeft" | "iconRight" | "fullWidth" | keyof TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
|
|
19
19
|
export { CTAButton, PrimaryCTAButton, SecondaryCTAButton, DestructiveCTAButton, };
|
|
@@ -4,8 +4,8 @@ import { CTAButton } from '../CTAButton';
|
|
|
4
4
|
declare type CTALinkProps = Omit<ComponentProps<typeof CTAButton>, 'ref'> & {
|
|
5
5
|
ref: Ref<TouchableOpacity>;
|
|
6
6
|
};
|
|
7
|
-
declare const CTALink: import("react").ForwardRefExoticComponent<Pick<CTALinkProps, "
|
|
7
|
+
declare const CTALink: import("react").ForwardRefExoticComponent<Pick<CTALinkProps, "iconLeft" | "iconRight" | "fullWidth" | keyof import("react-native/types").TouchableOpacityProps | "variant"> & import("react").RefAttributes<TouchableOpacity>>;
|
|
8
8
|
declare type CTAProps = Omit<ComponentProps<typeof CTALink>, 'variant'>;
|
|
9
|
-
declare const PrimaryCTALink: import("react").ForwardRefExoticComponent<Pick<CTAProps, "key" | "
|
|
10
|
-
declare const SecondaryCTALink: import("react").ForwardRefExoticComponent<Pick<CTAProps, "key" | "
|
|
9
|
+
declare const PrimaryCTALink: import("react").ForwardRefExoticComponent<Pick<CTAProps, "key" | "iconLeft" | "iconRight" | "fullWidth" | keyof import("react-native/types").TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
|
|
10
|
+
declare const SecondaryCTALink: import("react").ForwardRefExoticComponent<Pick<CTAProps, "key" | "iconLeft" | "iconRight" | "fullWidth" | keyof import("react-native/types").TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
|
|
11
11
|
export { CTALink, PrimaryCTALink, SecondaryCTALink };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextInput } from 'react-native';
|
|
3
|
+
declare const TelInput: React.ForwardRefExoticComponent<import("react-native/types").TextInputProps & {
|
|
4
|
+
invalid?: boolean | undefined;
|
|
5
|
+
stretch?: boolean | undefined;
|
|
6
|
+
iconLeft?: (string & {}) | import("../../providers").IconName | undefined;
|
|
7
|
+
iconRight?: (string & {}) | import("../../providers").IconName | undefined;
|
|
8
|
+
rightSlot?: React.ReactNode;
|
|
9
|
+
} & React.RefAttributes<TextInput>>;
|
|
10
|
+
export { TelInput };
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.TelInput = void 0;
|
|
38
|
+
var react_1 = __importStar(require("react"));
|
|
39
|
+
var Input_1 = require("./Input");
|
|
40
|
+
var TelInput = (0, react_1.forwardRef)(function (props, ref) { return (react_1.default.createElement(Input_1.Input, __assign({}, props, { keyboardType: "phone-pad", autoCapitalize: "none", autoCorrect: false, ref: ref }))); });
|
|
41
|
+
exports.TelInput = TelInput;
|
|
@@ -37,28 +37,20 @@ var ActionList = function (_a) {
|
|
|
37
37
|
return (_jsx(StyledActionList, __assign({}, rest, { children: Children.map(children, function (child, index) {
|
|
38
38
|
var _a;
|
|
39
39
|
return cloneElement(child, {
|
|
40
|
-
fullWidth: 'always',
|
|
41
40
|
index: index,
|
|
42
41
|
hasBorder: childCount > 1 && index !== childCount - 1,
|
|
42
|
+
inList: childCount !== 1 ? true : false,
|
|
43
43
|
inverted: (_a = child.props.inverted) !== null && _a !== void 0 ? _a : inverted, // prioritise child prop
|
|
44
44
|
});
|
|
45
45
|
}) })));
|
|
46
46
|
};
|
|
47
47
|
var ActionWrapper = function (_a) {
|
|
48
|
-
var children = _a.children, accessibilityRole = _a.accessibilityRole, _b = _a.activeOpacity, activeOpacity = _b === void 0 ? 0.75 : _b,
|
|
49
|
-
return (_jsx(StyledActionWrapper, __assign({ hasBorder: hasBorder, inverted: inverted, testID: testID }, rest, { children: _jsx(TouchableOpacity, __assign({ activeOpacity: activeOpacity, accessibilityRole: accessibilityRole, onPress: onPress }, { children: _jsx(StyledActionInner,
|
|
48
|
+
var children = _a.children, accessibilityRole = _a.accessibilityRole, _b = _a.activeOpacity, activeOpacity = _b === void 0 ? 0.75 : _b, _c = _a.hasBorder, hasBorder = _c === void 0 ? false : _c, _d = _a.inList, inList = _d === void 0 ? false : _d, _e = _a.inverted, inverted = _e === void 0 ? false : _e, onPress = _a.onPress, testID = _a.testID, rest = __rest(_a, ["children", "accessibilityRole", "activeOpacity", "hasBorder", "inList", "inverted", "onPress", "testID"]);
|
|
49
|
+
return (_jsx(StyledActionWrapper, __assign({ hasBorder: hasBorder, inList: inList, inverted: inverted, testID: testID }, rest, { children: _jsx(TouchableOpacity, __assign({ activeOpacity: activeOpacity, accessibilityRole: accessibilityRole, onPress: onPress }, { children: _jsx(StyledActionInner, { children: children }) })) })));
|
|
50
50
|
};
|
|
51
51
|
var Action = function (_a) {
|
|
52
|
-
var _b = _a.accessibilityRole, accessibilityRole = _b === void 0 ? 'link' : _b, _c = _a.actionType, actionType = _c === void 0 ? 'link' : _c, children = _a.children, _d = _a.
|
|
52
|
+
var _b = _a.accessibilityRole, accessibilityRole = _b === void 0 ? 'link' : _b, _c = _a.actionType, actionType = _c === void 0 ? 'link' : _c, children = _a.children, _d = _a.inverted, inverted = _d === void 0 ? false : _d, onPress = _a.onPress, testID = _a.testID, rest = __rest(_a, ["accessibilityRole", "actionType", "children", "inverted", "onPress", "testID"]);
|
|
53
53
|
var smallAndUp = useBreakpoint().smallAndUp;
|
|
54
|
-
|
|
55
|
-
var updatedIconRight = null;
|
|
56
|
-
if (!isBackAction) {
|
|
57
|
-
updatedIconRight = ACTION_TYPES[actionType];
|
|
58
|
-
}
|
|
59
|
-
if (fullWidth === 'small') {
|
|
60
|
-
fullWidth = smallAndUp ? 'never' : 'always';
|
|
61
|
-
}
|
|
62
|
-
return (_jsxs(ActionWrapper, __assign({ accessibilityRole: accessibilityRole, fullWidth: fullWidth, inverted: inverted, onPress: onPress, testID: testID }, rest, { children: [isBackAction ? (_jsx(StyledLeftIcon, { inverted: inverted, name: ACTION_TYPES.back, size: 16 })) : null, _jsx(StyledActionText, __assign({ smallAndUp: smallAndUp, inverted: inverted }, { children: children })), updatedIconRight ? (_jsx(StyledRightIcon, { inverted: inverted, name: updatedIconRight, marginTop: actionType === 'link' ? 1 : 0, size: 16 })) : null] })));
|
|
54
|
+
return (_jsxs(ActionWrapper, __assign({ accessibilityRole: accessibilityRole, inverted: inverted, onPress: onPress, testID: testID }, rest, { children: [actionType === 'back' ? (_jsx(StyledLeftIcon, { inverted: inverted, name: ACTION_TYPES['back'], size: 16 })) : null, _jsx(StyledActionText, __assign({ smallAndUp: smallAndUp, inverted: inverted }, { children: children })), actionType !== 'back' ? (_jsx(StyledRightIcon, { inverted: inverted, name: ACTION_TYPES[actionType], marginTop: actionType === 'link' ? 1 : 0, size: 16 })) : null] })));
|
|
63
55
|
};
|
|
64
56
|
export { ActionList, Action };
|
|
@@ -7,28 +7,25 @@ import { Icon } from '../Icon';
|
|
|
7
7
|
import { ListWrapper } from '../List/List';
|
|
8
8
|
export var StyledActionList = ListWrapper;
|
|
9
9
|
export var StyledActionWrapper = styled.View(function (_a) {
|
|
10
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, hasBorder = _a.hasBorder, inverted = _a.inverted;
|
|
11
|
-
return "\n width: 100
|
|
12
|
-
});
|
|
13
|
-
export var StyledActionInner = styled.View(function (_a) {
|
|
14
|
-
var fullWidth = _a.fullWidth;
|
|
15
|
-
return "\n display: flex;\n flex-direction: row;\n justify-content: ".concat(fullWidth === 'always' ? 'space-between' : 'flex-start', ";\n align-items: center;\n min-height: 44px;\n");
|
|
10
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, hasBorder = _a.hasBorder, inList = _a.inList, inverted = _a.inverted;
|
|
11
|
+
return "\n width: ".concat(inList ? '100%' : 'auto', ";\n align-self: ").concat(inList ? 'center' : 'flex-start', ";\n border-bottom-width: ").concat(hasBorder ? core.borderWidth.small : 0, ";\n border-bottom-style: solid;\n border-bottom-color: ").concat(inverted ? semantic.inverted.border : semantic.border.graphic, ";\n");
|
|
16
12
|
});
|
|
13
|
+
export var StyledActionInner = styled.View(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n min-height: 44px;\n"], ["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n min-height: 44px;\n"])));
|
|
17
14
|
export var StyledActionText = styled.Text(function (_a) {
|
|
18
15
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp, _c = _a.inverted, inverted = _c === void 0 ? false : _c;
|
|
19
16
|
var fontSize = smallAndUp
|
|
20
17
|
? core.fontSize.body.large
|
|
21
18
|
: core.fontSize.body.small;
|
|
22
|
-
return css(
|
|
19
|
+
return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n "], ["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n "])), inverted ? semantic.inverted.message.base : semantic.message.base, core.fontFamily.bodyBold.native, fontSize, core.lineHeight.body.small);
|
|
23
20
|
});
|
|
24
21
|
export var StyledRightIcon = styled(Icon)(function (_a) {
|
|
25
22
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inverted = _a.inverted, marginTop = _a.marginTop;
|
|
26
|
-
return css(
|
|
23
|
+
return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n margin-left: ", ";\n margin-top: ", ";\n "], ["\n color: ", ";\n margin-left: ", ";\n margin-top: ", ";\n "])), inverted ? semantic.inverted.message.base : semantic.message.base, core.space[1], core.space[marginTop]);
|
|
27
24
|
});
|
|
28
25
|
export var StyledLeftIcon = styled(Icon)(function (_a) {
|
|
29
26
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inverted = _a.inverted;
|
|
30
|
-
return css(
|
|
27
|
+
return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n margin-right: ", ";\n "], ["\n color: ", ";\n margin-right: ", ";\n "])), inverted
|
|
31
28
|
? semantic.inverted.message.base
|
|
32
29
|
: semantic.message.base, core.space[1]);
|
|
33
30
|
});
|
|
34
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
31
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React, { forwardRef } from 'react';
|
|
13
|
+
import { Input } from './Input';
|
|
14
|
+
var TelInput = forwardRef(function (props, ref) { return (React.createElement(Input, __assign({}, props, { keyboardType: "phone-pad", autoCapitalize: "none", autoCorrect: false, ref: ref }))); });
|
|
15
|
+
export { TelInput };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { Path, Svg } from 'react-native-svg';
|
|
14
|
+
export var HidePassword = function (props) { return (React.createElement(Svg, __assign({ viewBox: "0 0 16 16" }, props),
|
|
15
|
+
React.createElement(Path, { d: "M15.8125 1.3125L14.5781 0.078125L10.7093 3.947C9.8406 3.65492 8.93342 3.5 8 3.5C4.89086 3.5 2.07286 5.21886 0 8C0.996343 9.33679 2.16484 10.4282 3.45507 11.2012L0.0937505 14.5625L1.32813 15.7969L5.12836 11.9966C6.04613 12.3251 7.00825 12.5 8 12.5C11.1091 12.5 13.9271 10.7811 16 8C14.9683 6.61581 13.7521 5.49476 12.4072 4.71779L15.8125 1.3125ZM9.3408 5.31545C8.93732 5.11358 8.48195 5 8 5C6.34286 5 5 6.34286 5 8C5 8.48195 5.11358 8.93732 5.31545 9.3408L6.50731 8.14894C6.50247 8.09995 6.5 8.05026 6.5 8C6.5 7.17171 7.17171 6.5 8 6.5C8.05026 6.5 8.09995 6.50247 8.14894 6.50731L9.3408 5.31545ZM9.46198 7.66302L10.6083 6.51665C10.8576 6.9541 11 7.46039 11 8C11 9.65714 9.65714 11 8 11C7.46039 11 6.9541 10.8576 6.51665 10.6083L7.66302 9.46198C7.77134 9.48686 7.88414 9.5 8 9.5C8.82829 9.5 9.5 8.82829 9.5 8C9.5 7.88414 9.48686 7.77134 9.46198 7.66302Z", fill: "currentColor", fillRule: "evenodd" }))); };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { Path, Svg } from 'react-native-svg';
|
|
14
|
+
export var Payment = function (props) { return (React.createElement(Svg, __assign({ viewBox: "0 0 16 16" }, props),
|
|
15
|
+
React.createElement(Path, { d: "M2 1H11C12.1 1 13 1.9 13 3V10C13 11.1 12.1 12 11 12H2C0.9 12 0 11.1 0 10V3C0 1.9 0.9 1 2 1ZM11 3H2V4.5H11V3ZM2 6.5V10H11V6.5H2ZM2 15.19H11.25C13.87 15.19 16 13.06 16 10.44V4.5H14V10.44C14 11.96 12.76 13.19 11.25 13.19H2V15.19Z", fill: "currentColor", fillRule: "evenodd" }))); };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { Path, Svg } from 'react-native-svg';
|
|
14
|
+
export var ShowPassword = function (props) { return (React.createElement(Svg, __assign({ viewBox: "0 0 16 16" }, props),
|
|
15
|
+
React.createElement(Path, { d: "M8 3.5C4.89086 3.5 2.07286 5.21886 0 8C2.07286 10.7811 4.89086 12.5 8 12.5C11.1091 12.5 13.9271 10.7811 16 8C13.9271 5.21886 11.1091 3.5 8 3.5ZM8 5C9.65714 5 11 6.34286 11 8C11 9.65714 9.65714 11 8 11C6.34286 11 5 9.65714 5 8C5 6.34286 6.34286 5 8 5ZM8 6.5C7.17171 6.5 6.5 7.17171 6.5 8C6.5 8.82829 7.17171 9.5 8 9.5C8.82829 9.5 9.5 8.82829 9.5 8C9.5 7.17171 8.82829 6.5 8 6.5Z", fill: "currentColor" }))); };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { Path, Svg } from 'react-native-svg';
|
|
14
|
+
export var Usage = function (props) { return (React.createElement(Svg, __assign({ viewBox: "0 0 16 16" }, props),
|
|
15
|
+
React.createElement(Path, { d: "M2 14V0H0V16H16V14H2ZM5 10H3V13H5V10ZM6.33 3H8.33V13H6.33V3ZM11.67 9H9.67V13H11.67V9ZM13 7H15V13H13V7Z", fill: "currentColor", fillRule: "evenodd" }))); };
|
|
@@ -0,0 +1,22 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.HidePassword = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var react_native_svg_1 = require("react-native-svg");
|
|
20
|
+
var HidePassword = function (props) { return (react_1.default.createElement(react_native_svg_1.Svg, __assign({ viewBox: "0 0 16 16" }, props),
|
|
21
|
+
react_1.default.createElement(react_native_svg_1.Path, { d: "M15.8125 1.3125L14.5781 0.078125L10.7093 3.947C9.8406 3.65492 8.93342 3.5 8 3.5C4.89086 3.5 2.07286 5.21886 0 8C0.996343 9.33679 2.16484 10.4282 3.45507 11.2012L0.0937505 14.5625L1.32813 15.7969L5.12836 11.9966C6.04613 12.3251 7.00825 12.5 8 12.5C11.1091 12.5 13.9271 10.7811 16 8C14.9683 6.61581 13.7521 5.49476 12.4072 4.71779L15.8125 1.3125ZM9.3408 5.31545C8.93732 5.11358 8.48195 5 8 5C6.34286 5 5 6.34286 5 8C5 8.48195 5.11358 8.93732 5.31545 9.3408L6.50731 8.14894C6.50247 8.09995 6.5 8.05026 6.5 8C6.5 7.17171 7.17171 6.5 8 6.5C8.05026 6.5 8.09995 6.50247 8.14894 6.50731L9.3408 5.31545ZM9.46198 7.66302L10.6083 6.51665C10.8576 6.9541 11 7.46039 11 8C11 9.65714 9.65714 11 8 11C7.46039 11 6.9541 10.8576 6.51665 10.6083L7.66302 9.46198C7.77134 9.48686 7.88414 9.5 8 9.5C8.82829 9.5 9.5 8.82829 9.5 8C9.5 7.88414 9.48686 7.77134 9.46198 7.66302Z", fill: "currentColor", fillRule: "evenodd" }))); };
|
|
22
|
+
exports.HidePassword = HidePassword;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Payment = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var react_native_svg_1 = require("react-native-svg");
|
|
20
|
+
var Payment = function (props) { return (react_1.default.createElement(react_native_svg_1.Svg, __assign({ viewBox: "0 0 16 16" }, props),
|
|
21
|
+
react_1.default.createElement(react_native_svg_1.Path, { d: "M2 1H11C12.1 1 13 1.9 13 3V10C13 11.1 12.1 12 11 12H2C0.9 12 0 11.1 0 10V3C0 1.9 0.9 1 2 1ZM11 3H2V4.5H11V3ZM2 6.5V10H11V6.5H2ZM2 15.19H11.25C13.87 15.19 16 13.06 16 10.44V4.5H14V10.44C14 11.96 12.76 13.19 11.25 13.19H2V15.19Z", fill: "currentColor", fillRule: "evenodd" }))); };
|
|
22
|
+
exports.Payment = Payment;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ShowPassword = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var react_native_svg_1 = require("react-native-svg");
|
|
20
|
+
var ShowPassword = function (props) { return (react_1.default.createElement(react_native_svg_1.Svg, __assign({ viewBox: "0 0 16 16" }, props),
|
|
21
|
+
react_1.default.createElement(react_native_svg_1.Path, { d: "M8 3.5C4.89086 3.5 2.07286 5.21886 0 8C2.07286 10.7811 4.89086 12.5 8 12.5C11.1091 12.5 13.9271 10.7811 16 8C13.9271 5.21886 11.1091 3.5 8 3.5ZM8 5C9.65714 5 11 6.34286 11 8C11 9.65714 9.65714 11 8 11C6.34286 11 5 9.65714 5 8C5 6.34286 6.34286 5 8 5ZM8 6.5C7.17171 6.5 6.5 7.17171 6.5 8C6.5 8.82829 7.17171 9.5 8 9.5C8.82829 9.5 9.5 8.82829 9.5 8C9.5 7.17171 8.82829 6.5 8 6.5Z", fill: "currentColor" }))); };
|
|
22
|
+
exports.ShowPassword = ShowPassword;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Usage = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var react_native_svg_1 = require("react-native-svg");
|
|
20
|
+
var Usage = function (props) { return (react_1.default.createElement(react_native_svg_1.Svg, __assign({ viewBox: "0 0 16 16" }, props),
|
|
21
|
+
react_1.default.createElement(react_native_svg_1.Path, { d: "M2 14V0H0V16H16V14H2ZM5 10H3V13H5V10ZM6.33 3H8.33V13H6.33V3ZM11.67 9H9.67V13H11.67V9ZM13 7H15V13H13V7Z", fill: "currentColor", fillRule: "evenodd" }))); };
|
|
22
|
+
exports.Usage = Usage;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovotech/element-native",
|
|
3
|
-
"version": "3.1.1
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"url": "@ovotech/element"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ovotech/element-core": "^2.0.0
|
|
16
|
+
"@ovotech/element-core": "^2.0.0",
|
|
17
17
|
"deepmerge": "^4.2.2",
|
|
18
18
|
"lodash.groupby": "^4.6.0"
|
|
19
19
|
},
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
},
|
|
58
58
|
"sideEffects": false,
|
|
59
59
|
"scripts": {
|
|
60
|
-
"build": "tsc
|
|
61
|
-
"quickbuild": "tsc --
|
|
60
|
+
"build": "tsc && tsc --module ES6 --outDir dist/esm --declaration false",
|
|
61
|
+
"quickbuild": "tsc --module ES6 --outDir dist/esm --declaration false",
|
|
62
62
|
"test": "jest --maxWorkers 4",
|
|
63
63
|
"typecheck": "tsc --noEmit"
|
|
64
64
|
}
|