@ovotech/element-native 3.1.1 → 3.2.0-canary-94fa122-112
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 +3 -2
- package/dist/components/ActionList/ActionList.js +13 -5
- package/dist/components/ActionList/styled.d.ts +4 -2
- package/dist/components/ActionList/styled.js +10 -7
- package/dist/components/CTAButton/CTAButton.d.ts +3 -3
- package/dist/components/CTALink/CTALink.d.ts +3 -3
- package/dist/components/Notification/Notification.js +1 -1
- package/dist/esm/components/ActionList/ActionList.js +13 -5
- package/dist/esm/components/ActionList/styled.js +10 -7
- package/dist/esm/components/Notification/Notification.js +1 -1
- package/package.json +4 -4
- package/dist/components/Input/TelInput.d.ts +0 -10
- package/dist/components/Input/TelInput.js +0 -41
- package/dist/esm/components/Input/TelInput.js +0 -15
- package/dist/esm/providers/icons/HidePassword.js +0 -15
- package/dist/esm/providers/icons/Payment.js +0 -15
- package/dist/esm/providers/icons/ShowPassword.js +0 -15
- package/dist/esm/providers/icons/Usage.js +0 -15
- package/dist/providers/icons/HidePassword.d.ts +0 -2
- package/dist/providers/icons/HidePassword.js +0 -22
- package/dist/providers/icons/Payment.d.ts +0 -2
- package/dist/providers/icons/Payment.js +0 -22
- package/dist/providers/icons/ShowPassword.d.ts +0 -2
- package/dist/providers/icons/ShowPassword.js +0 -22
- package/dist/providers/icons/Usage.d.ts +0 -2
- package/dist/providers/icons/Usage.js +0 -22
|
@@ -5,6 +5,7 @@ import { StyledActionList } from './styled';
|
|
|
5
5
|
declare const ACTION_TYPES: {
|
|
6
6
|
[key: string]: IconName;
|
|
7
7
|
};
|
|
8
|
+
declare type FullWidthOptions = 'always' | 'never' | 'small';
|
|
8
9
|
declare type ActionListProps = ComponentProps<typeof StyledActionList>;
|
|
9
10
|
declare type ActionProps = PropsWithChildren<ViewProps & {
|
|
10
11
|
accessibilityRole?: AccessibilityRole;
|
|
@@ -13,10 +14,10 @@ declare type ActionProps = PropsWithChildren<ViewProps & {
|
|
|
13
14
|
iconRight?: IconName | 'off';
|
|
14
15
|
inverted?: boolean;
|
|
15
16
|
onPress?: () => void;
|
|
16
|
-
fullWidth?:
|
|
17
|
+
fullWidth?: FullWidthOptions;
|
|
17
18
|
ref?: Ref<View>;
|
|
18
19
|
testID?: string;
|
|
19
20
|
}>;
|
|
20
21
|
declare const ActionList: ({ children, inverted, ...rest }: ActionListProps) => JSX.Element;
|
|
21
|
-
declare const Action: ({ accessibilityRole, actionType, children, inverted, onPress, testID, ...rest }: ActionProps) => JSX.Element;
|
|
22
|
+
declare const Action: ({ accessibilityRole, actionType, children, fullWidth, inverted, onPress, testID, ...rest }: ActionProps) => JSX.Element;
|
|
22
23
|
export { ActionList, Action };
|
|
@@ -40,21 +40,29 @@ 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',
|
|
43
44
|
index: index,
|
|
44
45
|
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,
|
|
52
|
+
var children = _a.children, accessibilityRole = _a.accessibilityRole, _b = _a.activeOpacity, activeOpacity = _b === void 0 ? 0.75 : _b, fullWidth = _a.fullWidth, _c = _a.hasBorder, hasBorder = _c === void 0 ? false : _c, _d = _a.inverted, inverted = _d === void 0 ? false : _d, onPress = _a.onPress, testID = _a.testID, rest = __rest(_a, ["children", "accessibilityRole", "activeOpacity", "fullWidth", "hasBorder", "inverted", "onPress", "testID"]);
|
|
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, __assign({ fullWidth: fullWidth }, { 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.inverted, inverted =
|
|
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.fullWidth, fullWidth = _d === void 0 ? 'never' : _d, _e = _a.inverted, inverted = _e === void 0 ? false : _e, onPress = _a.onPress, testID = _a.testID, rest = __rest(_a, ["accessibilityRole", "actionType", "children", "fullWidth", "inverted", "onPress", "testID"]);
|
|
57
57
|
var smallAndUp = (0, hooks_1.useBreakpoint)().smallAndUp;
|
|
58
|
-
|
|
58
|
+
var isBackAction = actionType === 'back';
|
|
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] })));
|
|
59
67
|
};
|
|
60
68
|
exports.Action = Action;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Theme } from '@ovotech/element-core';
|
|
2
|
+
import { FullWidthOptions } from '../../hooks';
|
|
2
3
|
import { ListWrapper } from '../List/List';
|
|
3
4
|
export declare const StyledActionList: typeof ListWrapper;
|
|
4
5
|
export declare const StyledActionWrapper: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
|
|
@@ -230,7 +231,6 @@ export declare const StyledActionWrapper: import("styled-components").StyledComp
|
|
|
230
231
|
};
|
|
231
232
|
} & object, {
|
|
232
233
|
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,7 +460,9 @@ export declare const StyledActionInner: import("styled-components").StyledCompon
|
|
|
460
460
|
};
|
|
461
461
|
};
|
|
462
462
|
};
|
|
463
|
-
} & object, {
|
|
463
|
+
} & object, {
|
|
464
|
+
fullWidth?: FullWidthOptions | undefined;
|
|
465
|
+
}, never>;
|
|
464
466
|
export declare const StyledActionText: import("styled-components").StyledComponent<typeof import("react-native").Text, import("../../theme/theme").Theme & {
|
|
465
467
|
core: {
|
|
466
468
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
@@ -33,25 +33,28 @@ 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,
|
|
37
|
-
return "\n width:
|
|
36
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, hasBorder = _a.hasBorder, inverted = _a.inverted;
|
|
37
|
+
return "\n width: 100%;\n align-self: 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");
|
|
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");
|
|
38
42
|
});
|
|
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"])));
|
|
40
43
|
exports.StyledActionText = styled_native_1.default.Text(function (_a) {
|
|
41
44
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp, _c = _a.inverted, inverted = _c === void 0 ? false : _c;
|
|
42
45
|
var fontSize = smallAndUp
|
|
43
46
|
? core.fontSize.body.large
|
|
44
47
|
: core.fontSize.body.small;
|
|
45
|
-
return (0, styled_native_1.css)(
|
|
48
|
+
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __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);
|
|
46
49
|
});
|
|
47
50
|
exports.StyledRightIcon = (0, styled_native_1.default)(Icon_1.Icon)(function (_a) {
|
|
48
51
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inverted = _a.inverted, marginTop = _a.marginTop;
|
|
49
|
-
return (0, styled_native_1.css)(
|
|
52
|
+
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __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]);
|
|
50
53
|
});
|
|
51
54
|
exports.StyledLeftIcon = (0, styled_native_1.default)(Icon_1.Icon)(function (_a) {
|
|
52
55
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inverted = _a.inverted;
|
|
53
|
-
return (0, styled_native_1.css)(
|
|
56
|
+
return (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n margin-right: ", ";\n "], ["\n color: ", ";\n margin-right: ", ";\n "])), inverted
|
|
54
57
|
? semantic.inverted.message.base
|
|
55
58
|
: semantic.message.base, core.space[1]);
|
|
56
59
|
});
|
|
57
|
-
var templateObject_1, templateObject_2, templateObject_3
|
|
60
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -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, "fullWidth" | "iconLeft" | "iconRight" | keyof TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
|
|
17
|
+
declare const SecondaryCTAButton: import("react").ForwardRefExoticComponent<Pick<CTAProps, "fullWidth" | "iconLeft" | "iconRight" | keyof TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
|
|
18
|
+
declare const DestructiveCTAButton: import("react").ForwardRefExoticComponent<Pick<CTAProps, "fullWidth" | "iconLeft" | "iconRight" | 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, "fullWidth" | "iconLeft" | "iconRight" | 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" | "fullWidth" | "iconLeft" | "iconRight" | keyof import("react-native/types").TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
|
|
10
|
+
declare const SecondaryCTALink: import("react").ForwardRefExoticComponent<Pick<CTAProps, "key" | "fullWidth" | "iconLeft" | "iconRight" | keyof import("react-native/types").TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
|
|
11
11
|
export { CTALink, PrimaryCTALink, SecondaryCTALink };
|
|
@@ -84,7 +84,7 @@ var StyledIcon = (0, styled_native_1.default)(Icon_1.Icon)(function (_a) {
|
|
|
84
84
|
exports.Notification = (0, react_1.forwardRef)(function (_a, ref) {
|
|
85
85
|
var _b = _a.variant, variant = _b === void 0 ? 'info' : _b, children = _a.children, title = _a.title, noMargin = _a.noMargin, dismissible = _a.dismissible, onDismiss = _a.onDismiss, rest = __rest(_a, ["variant", "children", "title", "noMargin", "dismissible", "onDismiss"]);
|
|
86
86
|
var _c = (0, react_1.useState)(false), dismissed = _c[0], setDismissed = _c[1];
|
|
87
|
-
if (dismissed || !children) {
|
|
87
|
+
if (dismissed || (!title && !children)) {
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
90
|
return ((0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ ref: ref }, rest, { children: (0, jsx_runtime_1.jsxs)(NotificationBox, __assign({ noMargin: noMargin, testID: "nb-notification" }, { children: [(0, jsx_runtime_1.jsxs)(exports.NotificationTitleBox, __assign({ variant: variant, dismissible: dismissible }, { children: [(0, jsx_runtime_1.jsx)(NotificationTitleText, __assign({ variant: variant }, { children: title })), dismissible ? ((0, jsx_runtime_1.jsx)(DismissButton, __assign({ accessibilityLabel: "Dismiss", testID: "nb-notification-dismiss", onPress: function () {
|
|
@@ -37,20 +37,28 @@ 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',
|
|
40
41
|
index: index,
|
|
41
42
|
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,
|
|
48
|
+
var children = _a.children, accessibilityRole = _a.accessibilityRole, _b = _a.activeOpacity, activeOpacity = _b === void 0 ? 0.75 : _b, fullWidth = _a.fullWidth, _c = _a.hasBorder, hasBorder = _c === void 0 ? false : _c, _d = _a.inverted, inverted = _d === void 0 ? false : _d, onPress = _a.onPress, testID = _a.testID, rest = __rest(_a, ["children", "accessibilityRole", "activeOpacity", "fullWidth", "hasBorder", "inverted", "onPress", "testID"]);
|
|
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, __assign({ fullWidth: fullWidth }, { 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.inverted, inverted =
|
|
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.fullWidth, fullWidth = _d === void 0 ? 'never' : _d, _e = _a.inverted, inverted = _e === void 0 ? false : _e, onPress = _a.onPress, testID = _a.testID, rest = __rest(_a, ["accessibilityRole", "actionType", "children", "fullWidth", "inverted", "onPress", "testID"]);
|
|
53
53
|
var smallAndUp = useBreakpoint().smallAndUp;
|
|
54
|
-
|
|
54
|
+
var isBackAction = actionType === 'back';
|
|
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] })));
|
|
55
63
|
};
|
|
56
64
|
export { ActionList, Action };
|
|
@@ -7,25 +7,28 @@ 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,
|
|
11
|
-
return "\n width:
|
|
10
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, hasBorder = _a.hasBorder, inverted = _a.inverted;
|
|
11
|
+
return "\n width: 100%;\n align-self: 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");
|
|
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");
|
|
12
16
|
});
|
|
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"])));
|
|
14
17
|
export var StyledActionText = styled.Text(function (_a) {
|
|
15
18
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp, _c = _a.inverted, inverted = _c === void 0 ? false : _c;
|
|
16
19
|
var fontSize = smallAndUp
|
|
17
20
|
? core.fontSize.body.large
|
|
18
21
|
: core.fontSize.body.small;
|
|
19
|
-
return css(
|
|
22
|
+
return css(templateObject_1 || (templateObject_1 = __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);
|
|
20
23
|
});
|
|
21
24
|
export var StyledRightIcon = styled(Icon)(function (_a) {
|
|
22
25
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inverted = _a.inverted, marginTop = _a.marginTop;
|
|
23
|
-
return css(
|
|
26
|
+
return css(templateObject_2 || (templateObject_2 = __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]);
|
|
24
27
|
});
|
|
25
28
|
export var StyledLeftIcon = styled(Icon)(function (_a) {
|
|
26
29
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inverted = _a.inverted;
|
|
27
|
-
return css(
|
|
30
|
+
return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n margin-right: ", ";\n "], ["\n color: ", ";\n margin-right: ", ";\n "])), inverted
|
|
28
31
|
? semantic.inverted.message.base
|
|
29
32
|
: semantic.message.base, core.space[1]);
|
|
30
33
|
});
|
|
31
|
-
var templateObject_1, templateObject_2, templateObject_3
|
|
34
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -58,7 +58,7 @@ var StyledIcon = styled(Icon)(function (_a) {
|
|
|
58
58
|
export var Notification = forwardRef(function (_a, ref) {
|
|
59
59
|
var _b = _a.variant, variant = _b === void 0 ? 'info' : _b, children = _a.children, title = _a.title, noMargin = _a.noMargin, dismissible = _a.dismissible, onDismiss = _a.onDismiss, rest = __rest(_a, ["variant", "children", "title", "noMargin", "dismissible", "onDismiss"]);
|
|
60
60
|
var _c = useState(false), dismissed = _c[0], setDismissed = _c[1];
|
|
61
|
-
if (dismissed || !children) {
|
|
61
|
+
if (dismissed || (!title && !children)) {
|
|
62
62
|
return null;
|
|
63
63
|
}
|
|
64
64
|
return (_jsx(View, __assign({ ref: ref }, rest, { children: _jsxs(NotificationBox, __assign({ noMargin: noMargin, testID: "nb-notification" }, { children: [_jsxs(NotificationTitleBox, __assign({ variant: variant, dismissible: dismissible }, { children: [_jsx(NotificationTitleText, __assign({ variant: variant }, { children: title })), dismissible ? (_jsx(DismissButton, __assign({ accessibilityLabel: "Dismiss", testID: "nb-notification-dismiss", onPress: function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovotech/element-native",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0-canary-94fa122-112",
|
|
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-canary-94fa122-112",
|
|
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 && tsc --module ES6 --outDir dist/esm --declaration false",
|
|
61
|
-
"quickbuild": "tsc --module ES6 --outDir dist/esm --declaration false",
|
|
60
|
+
"build": "tsc --project tsconfig.build.json && tsc --project tsconfig.build.json --module ES6 --outDir dist/esm --declaration false",
|
|
61
|
+
"quickbuild": "tsc --project tsconfig.build.json --module ES6 --outDir dist/esm --declaration false",
|
|
62
62
|
"test": "jest --maxWorkers 4",
|
|
63
63
|
"typecheck": "tsc --noEmit"
|
|
64
64
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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 };
|
|
@@ -1,41 +0,0 @@
|
|
|
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;
|
|
@@ -1,15 +0,0 @@
|
|
|
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 };
|
|
@@ -1,15 +0,0 @@
|
|
|
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" }))); };
|
|
@@ -1,15 +0,0 @@
|
|
|
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" }))); };
|
|
@@ -1,15 +0,0 @@
|
|
|
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" }))); };
|
|
@@ -1,15 +0,0 @@
|
|
|
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" }))); };
|
|
@@ -1,22 +0,0 @@
|
|
|
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;
|
|
@@ -1,22 +0,0 @@
|
|
|
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;
|
|
@@ -1,22 +0,0 @@
|
|
|
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;
|
|
@@ -1,22 +0,0 @@
|
|
|
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;
|