@ovotech/element-native 3.3.2-canary-71b07de-141 → 3.3.2
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/Accordion/Accordion.js +5 -5
- package/dist/components/Accordion/styles.d.ts +3 -4
- package/dist/components/Accordion/styles.js +2 -2
- package/dist/components/ActionList/styled.d.ts +5 -5
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/DataTable/styles.d.ts +11 -11
- package/dist/components/DateField/DateField.js +2 -2
- package/dist/components/DescriptionList/styled.d.ts +1 -1
- package/dist/components/ErrorText/ErrorText.d.ts +1 -1
- package/dist/components/Grid/Col.d.ts +1 -1
- package/dist/components/Grid/Row.d.ts +1 -1
- package/dist/components/Heading/Heading.d.ts +6 -0
- package/dist/components/{Heading1/Heading1.js → Heading/Heading.js} +35 -2
- package/dist/components/Heading/index.d.ts +1 -0
- package/dist/components/Heading/index.js +8 -0
- package/dist/components/HintText/HintText.d.ts +1 -1
- package/dist/components/{CurrencyInput → Input}/CurrencyInput.d.ts +1 -1
- package/dist/components/{CurrencyInput → Input}/CurrencyInput.js +1 -1
- package/dist/components/{EmailInput → Input}/EmailInput.js +1 -1
- package/dist/components/{NumberInput → Input}/NumberInput.js +1 -1
- package/dist/components/{PasswordInput → Input}/PasswordInput.js +1 -1
- package/dist/components/{PasswordInput → Input}/PasswordInput.styled.d.ts +1 -1
- package/dist/components/{PhoneInput → Input}/PhoneInput.d.ts +2 -1
- package/dist/components/{PhoneInput → Input}/PhoneInput.js +3 -2
- package/dist/components/{TextInput → Input}/TextInput.js +1 -1
- package/dist/components/{TextareaInput → Input}/TextareaInput.d.ts +1 -1
- package/dist/components/{TextareaInput → Input}/TextareaInput.js +1 -1
- package/dist/components/Input/index.d.ts +7 -0
- package/dist/components/Input/index.js +17 -0
- package/dist/components/LabelText/LabelText.d.ts +1 -1
- package/dist/components/List/List.d.ts +241 -7
- package/dist/components/List/List.js +92 -45
- package/dist/components/Margin/Margin.d.ts +1 -1
- package/dist/components/NavHeader/NavHeader.d.ts +14 -7
- package/dist/components/NavHeader/NavHeader.js +48 -39
- package/dist/components/NavHeader/index.d.ts +1 -1
- package/dist/components/Notification/Notification.d.ts +2 -2
- package/dist/components/SelectField/Select.d.ts +1 -1
- package/dist/components/SelectField/Select.js +4 -5
- package/dist/components/{Em/Em.d.ts → SkeletonLoading/Skeleton.d.ts} +2 -2
- package/dist/components/{LineThrough/LineThrough.js → SkeletonLoading/Skeleton.js} +2 -2
- package/dist/components/{SkeletonCTA → SkeletonLoading}/SkeletonCTA.js +5 -4
- package/dist/components/{SkeletonCircle → SkeletonLoading}/SkeletonCircle.js +4 -3
- package/dist/components/{SkeletonHeading → SkeletonLoading}/SkeletonHeading.js +5 -4
- package/dist/components/{SkeletonText → SkeletonLoading}/SkeletonText.js +5 -4
- package/dist/components/SkeletonLoading/index.d.ts +5 -0
- package/dist/components/SkeletonLoading/index.js +21 -0
- package/dist/components/SubLabelText/SubLabelText.d.ts +1 -1
- package/dist/components/{List/styled.d.ts → Text/Text.d.ts} +446 -662
- package/dist/components/Text/Text.js +93 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text/index.js +10 -0
- package/dist/components/{CurrencyField → TextField}/CurrencyField.js +1 -1
- package/dist/components/{EmailField → TextField}/EmailField.js +1 -1
- package/dist/components/{NumberField → TextField}/NumberField.js +1 -1
- package/dist/components/{PasswordField → TextField}/PasswordField.js +1 -1
- package/dist/components/{PhoneField → TextField}/PhoneField.js +1 -1
- package/dist/components/TextField/TelField.d.ts +14 -0
- package/dist/components/TextField/TelField.js +38 -0
- package/dist/components/TextField/TextField.js +1 -1
- package/dist/components/{TextareaField → TextField}/TextareaField.js +1 -1
- package/dist/components/TextField/index.d.ts +7 -0
- package/dist/components/TextField/index.js +15 -1
- package/dist/components/index.d.ts +4 -28
- package/dist/components/index.js +4 -28
- package/dist/esm/components/Accordion/Accordion.js +3 -3
- package/dist/esm/components/Accordion/styles.js +2 -2
- package/dist/esm/components/DateField/DateField.js +1 -1
- package/dist/esm/components/Heading/Heading.js +74 -0
- package/dist/esm/components/Heading/index.js +1 -0
- package/dist/esm/components/{CurrencyInput → Input}/CurrencyInput.js +1 -1
- package/dist/esm/components/{EmailInput → Input}/EmailInput.js +1 -1
- package/dist/esm/components/{NumberInput → Input}/NumberInput.js +1 -1
- package/dist/esm/components/{PasswordInput → Input}/PasswordInput.js +1 -1
- package/dist/esm/components/{PhoneInput → Input}/PhoneInput.js +3 -2
- package/dist/esm/components/{TextInput → Input}/TextInput.js +1 -1
- package/dist/esm/components/{TextareaInput → Input}/TextareaInput.js +1 -1
- package/dist/esm/components/Input/index.js +7 -0
- package/dist/esm/components/List/List.js +65 -41
- package/dist/esm/components/NavHeader/NavHeader.js +50 -41
- package/dist/esm/components/SelectField/Select.js +1 -2
- package/dist/esm/components/{LineThrough/LineThrough.js → SkeletonLoading/Skeleton.js} +1 -1
- package/dist/esm/components/{SkeletonCTA → SkeletonLoading}/SkeletonCTA.js +4 -3
- package/dist/esm/components/{SkeletonCircle → SkeletonLoading}/SkeletonCircle.js +4 -3
- package/dist/esm/components/{SkeletonHeading → SkeletonLoading}/SkeletonHeading.js +4 -3
- package/dist/esm/components/{SkeletonText → SkeletonLoading}/SkeletonText.js +4 -3
- package/dist/esm/components/SkeletonLoading/index.js +5 -0
- package/dist/esm/components/Text/Text.js +66 -0
- package/dist/esm/components/Text/index.js +1 -0
- package/dist/esm/components/{CurrencyField → TextField}/CurrencyField.js +1 -1
- package/dist/esm/components/{EmailField → TextField}/EmailField.js +1 -1
- package/dist/esm/components/{NumberField → TextField}/NumberField.js +1 -1
- package/dist/esm/components/{PasswordField → TextField}/PasswordField.js +1 -1
- package/dist/esm/components/{PhoneField → TextField}/PhoneField.js +1 -1
- package/dist/esm/components/TextField/TelField.js +35 -0
- package/dist/esm/components/TextField/TextField.js +1 -1
- package/dist/esm/components/{TextareaField → TextField}/TextareaField.js +1 -1
- package/dist/esm/components/TextField/index.js +7 -0
- package/dist/esm/components/index.js +4 -28
- package/dist/styled.native.d.ts +6 -6
- package/package.json +3 -5
- package/dist/components/ActionCard/ActionCard.d.ts +0 -19
- package/dist/components/ActionCard/ActionCard.js +0 -115
- package/dist/components/ActionCard/CloseIconShape.d.ts +0 -3
- package/dist/components/ActionCard/CloseIconShape.js +0 -52
- package/dist/components/ActionCard/IndicatorIconShape.d.ts +0 -3
- package/dist/components/ActionCard/IndicatorIconShape.js +0 -52
- package/dist/components/ActionCard/index.d.ts +0 -1
- package/dist/components/ActionCard/index.js +0 -5
- package/dist/components/CurrencyField/index.d.ts +0 -1
- package/dist/components/CurrencyField/index.js +0 -5
- package/dist/components/CurrencyInput/index.d.ts +0 -1
- package/dist/components/CurrencyInput/index.js +0 -5
- package/dist/components/Em/Em.js +0 -13
- package/dist/components/Em/index.d.ts +0 -1
- package/dist/components/Em/index.js +0 -5
- package/dist/components/EmailField/index.d.ts +0 -1
- package/dist/components/EmailField/index.js +0 -5
- package/dist/components/EmailInput/index.d.ts +0 -1
- package/dist/components/EmailInput/index.js +0 -5
- package/dist/components/Heading1/Heading1.d.ts +0 -3
- package/dist/components/Heading1/index.d.ts +0 -1
- package/dist/components/Heading1/index.js +0 -5
- package/dist/components/Heading2/Heading2.d.ts +0 -3
- package/dist/components/Heading2/Heading2.js +0 -71
- package/dist/components/Heading2/index.d.ts +0 -1
- package/dist/components/Heading2/index.js +0 -5
- package/dist/components/Heading3/Heading3.d.ts +0 -3
- package/dist/components/Heading3/Heading3.js +0 -71
- package/dist/components/Heading3/index.d.ts +0 -1
- package/dist/components/Heading3/index.js +0 -5
- package/dist/components/Heading4/Heading4.d.ts +0 -3
- package/dist/components/Heading4/Heading4.js +0 -71
- package/dist/components/Heading4/index.d.ts +0 -1
- package/dist/components/Heading4/index.js +0 -5
- package/dist/components/LineThrough/LineThrough.d.ts +0 -228
- package/dist/components/LineThrough/index.d.ts +0 -1
- package/dist/components/LineThrough/index.js +0 -5
- package/dist/components/List/styled.js +0 -70
- package/dist/components/NavHeader/IconButton.d.ts +0 -13
- package/dist/components/NavHeader/IconButton.js +0 -31
- package/dist/components/NavHeader/NavHeader.styles.d.ts +0 -1833
- package/dist/components/NavHeader/NavHeader.styles.js +0 -72
- package/dist/components/NumberField/index.d.ts +0 -1
- package/dist/components/NumberField/index.js +0 -5
- package/dist/components/NumberInput/index.d.ts +0 -1
- package/dist/components/NumberInput/index.js +0 -5
- package/dist/components/P/P.d.ts +0 -239
- package/dist/components/P/P.js +0 -38
- package/dist/components/P/index.d.ts +0 -1
- package/dist/components/P/index.js +0 -5
- package/dist/components/PasswordField/index.d.ts +0 -1
- package/dist/components/PasswordField/index.js +0 -5
- package/dist/components/PasswordInput/index.d.ts +0 -1
- package/dist/components/PasswordInput/index.js +0 -5
- package/dist/components/PhoneField/index.d.ts +0 -1
- package/dist/components/PhoneField/index.js +0 -5
- package/dist/components/PhoneInput/index.d.ts +0 -1
- package/dist/components/PhoneInput/index.js +0 -5
- package/dist/components/SkeletonAnimation/index.d.ts +0 -1
- package/dist/components/SkeletonAnimation/index.js +0 -5
- package/dist/components/SkeletonCTA/index.d.ts +0 -1
- package/dist/components/SkeletonCTA/index.js +0 -5
- package/dist/components/SkeletonCircle/index.d.ts +0 -1
- package/dist/components/SkeletonCircle/index.js +0 -5
- package/dist/components/SkeletonHeading/index.d.ts +0 -1
- package/dist/components/SkeletonHeading/index.js +0 -5
- package/dist/components/SkeletonText/index.d.ts +0 -1
- package/dist/components/SkeletonText/index.js +0 -5
- package/dist/components/Small/Small.d.ts +0 -239
- package/dist/components/Small/Small.js +0 -38
- package/dist/components/Small/index.d.ts +0 -1
- package/dist/components/Small/index.js +0 -5
- package/dist/components/Strong/Strong.d.ts +0 -228
- package/dist/components/Strong/Strong.js +0 -11
- package/dist/components/Strong/index.d.ts +0 -1
- package/dist/components/Strong/index.js +0 -5
- package/dist/components/TextGroup/TextGroup.d.ts +0 -3
- package/dist/components/TextGroup/TextGroup.js +0 -47
- package/dist/components/TextGroup/index.d.ts +0 -1
- package/dist/components/TextGroup/index.js +0 -5
- package/dist/components/TextInput/index.d.ts +0 -1
- package/dist/components/TextInput/index.js +0 -5
- package/dist/components/TextareaField/index.d.ts +0 -1
- package/dist/components/TextareaField/index.js +0 -5
- package/dist/components/TextareaInput/index.d.ts +0 -1
- package/dist/components/TextareaInput/index.js +0 -5
- package/dist/esm/components/ActionCard/ActionCard.js +0 -85
- package/dist/esm/components/ActionCard/CloseIconShape.js +0 -22
- package/dist/esm/components/ActionCard/IndicatorIconShape.js +0 -22
- package/dist/esm/components/ActionCard/index.js +0 -1
- package/dist/esm/components/CurrencyField/index.js +0 -1
- package/dist/esm/components/CurrencyInput/index.js +0 -1
- package/dist/esm/components/Em/Em.js +0 -7
- package/dist/esm/components/Em/index.js +0 -1
- package/dist/esm/components/EmailField/index.js +0 -1
- package/dist/esm/components/EmailInput/index.js +0 -1
- package/dist/esm/components/Heading1/Heading1.js +0 -44
- package/dist/esm/components/Heading1/index.js +0 -1
- package/dist/esm/components/Heading2/Heading2.js +0 -44
- package/dist/esm/components/Heading2/index.js +0 -1
- package/dist/esm/components/Heading3/Heading3.js +0 -44
- package/dist/esm/components/Heading3/index.js +0 -1
- package/dist/esm/components/Heading4/Heading4.js +0 -44
- package/dist/esm/components/Heading4/index.js +0 -1
- package/dist/esm/components/LineThrough/index.js +0 -1
- package/dist/esm/components/List/styled.js +0 -44
- package/dist/esm/components/NavHeader/IconButton.js +0 -27
- package/dist/esm/components/NavHeader/NavHeader.styles.js +0 -43
- package/dist/esm/components/NumberField/index.js +0 -1
- package/dist/esm/components/NumberInput/index.js +0 -1
- package/dist/esm/components/P/P.js +0 -12
- package/dist/esm/components/P/index.js +0 -1
- package/dist/esm/components/PasswordField/index.js +0 -1
- package/dist/esm/components/PasswordInput/index.js +0 -1
- package/dist/esm/components/PhoneField/index.js +0 -1
- package/dist/esm/components/PhoneInput/index.js +0 -1
- package/dist/esm/components/SkeletonAnimation/index.js +0 -1
- package/dist/esm/components/SkeletonCTA/index.js +0 -1
- package/dist/esm/components/SkeletonCircle/index.js +0 -1
- package/dist/esm/components/SkeletonHeading/index.js +0 -1
- package/dist/esm/components/SkeletonText/index.js +0 -1
- package/dist/esm/components/Small/Small.js +0 -12
- package/dist/esm/components/Small/index.js +0 -1
- package/dist/esm/components/Strong/Strong.js +0 -5
- package/dist/esm/components/Strong/index.js +0 -1
- package/dist/esm/components/TextGroup/TextGroup.js +0 -43
- package/dist/esm/components/TextGroup/index.js +0 -1
- package/dist/esm/components/TextInput/index.js +0 -1
- package/dist/esm/components/TextareaField/index.js +0 -1
- package/dist/esm/components/TextareaInput/index.js +0 -1
- /package/dist/{hooks/use-layout.d.ts → components/Accordion/hooks.d.ts} +0 -0
- /package/dist/{hooks/use-layout.js → components/Accordion/hooks.js} +0 -0
- /package/dist/components/{EmailInput → Input}/EmailInput.d.ts +0 -0
- /package/dist/components/{NumberInput → Input}/NumberInput.d.ts +0 -0
- /package/dist/components/{PasswordInput → Input}/PasswordInput.d.ts +0 -0
- /package/dist/components/{PasswordInput → Input}/PasswordInput.styled.js +0 -0
- /package/dist/components/{PasswordInput → Input}/PasswordVisibilityToggle.d.ts +0 -0
- /package/dist/components/{PasswordInput → Input}/PasswordVisibilityToggle.js +0 -0
- /package/dist/components/{TextInput → Input}/TextInput.d.ts +0 -0
- /package/dist/components/{SkeletonAnimation → SkeletonLoading}/SkeletonAnimation.d.ts +0 -0
- /package/dist/components/{SkeletonAnimation → SkeletonLoading}/SkeletonAnimation.js +0 -0
- /package/dist/components/{SkeletonCTA → SkeletonLoading}/SkeletonCTA.d.ts +0 -0
- /package/dist/components/{SkeletonCircle → SkeletonLoading}/SkeletonCircle.d.ts +0 -0
- /package/dist/components/{SkeletonHeading → SkeletonLoading}/SkeletonHeading.d.ts +0 -0
- /package/dist/components/{SkeletonText → SkeletonLoading}/SkeletonText.d.ts +0 -0
- /package/dist/components/{CurrencyField → TextField}/CurrencyField.d.ts +0 -0
- /package/dist/components/{EmailField → TextField}/EmailField.d.ts +0 -0
- /package/dist/components/{NumberField → TextField}/NumberField.d.ts +0 -0
- /package/dist/components/{PasswordField → TextField}/PasswordField.d.ts +0 -0
- /package/dist/components/{PhoneField → TextField}/PhoneField.d.ts +0 -0
- /package/dist/components/{TextareaField → TextField}/TextareaField.d.ts +0 -0
- /package/dist/esm/{hooks/use-layout.js → components/Accordion/hooks.js} +0 -0
- /package/dist/esm/components/{PasswordInput → Input}/PasswordInput.styled.js +0 -0
- /package/dist/esm/components/{PasswordInput → Input}/PasswordVisibilityToggle.js +0 -0
- /package/dist/esm/components/{SkeletonAnimation → SkeletonLoading}/SkeletonAnimation.js +0 -0
|
@@ -1,85 +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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import MaskedView from '@react-native-masked-view/masked-view';
|
|
14
|
-
import { useContext, useEffect } from 'react';
|
|
15
|
-
import { Image, Pressable, View } from 'react-native';
|
|
16
|
-
import { Action, CTAButton, Heading2, Heading3, Icon, Margin, Stack, } from '../';
|
|
17
|
-
import styled, { ThemeContext } from '../../styled.native';
|
|
18
|
-
import { P } from '../P';
|
|
19
|
-
import { CloseIconShape } from './CloseIconShape';
|
|
20
|
-
import { IndicatorIconShape } from './IndicatorIconShape';
|
|
21
|
-
var StyledCard = styled.Pressable(function (_a) {
|
|
22
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inline = _a.inline, inverted = _a.inverted, reducedBottomPadding = _a.reducedBottomPadding;
|
|
23
|
-
return "\n border-radius: ".concat(inline ? core.space[6] : 0, ";\n background-color: ").concat(inverted ? semantic.inverted.surface : semantic.surface.elevated, ";\n padding-bottom: ").concat(reducedBottomPadding ? core.space[1] : core.space[4], ";\n padding: ").concat(core.space[4], ";\n overflow: hidden;\n border-width: 0;\n width: 100%;\n ");
|
|
24
|
-
});
|
|
25
|
-
var StyledP = styled(P)(function (_a) {
|
|
26
|
-
var semantic = _a.theme.semantic, inverted = _a.inverted;
|
|
27
|
-
return "\n color: ".concat(inverted ? semantic.inverted.message.base : semantic.message.base, ";\n");
|
|
28
|
-
});
|
|
29
|
-
export var ActionCard = function (_a) {
|
|
30
|
-
var onPressCloseButton = _a.onPressCloseButton, onPressActionButton = _a.onPressActionButton, onPressIndicator = _a.onPressIndicator, onMount = _a.onMount, body = _a.body, title = _a.title, buttonTitle = _a.buttonTitle, ctaVariant = _a.ctaVariant, image = _a.image, testID = _a.testID, _b = _a.accessibilityLabel, accessibilityLabel = _b === void 0 ? 'image' : _b, _c = _a.inverted, inverted = _c === void 0 ? true : _c, _d = _a.inline, inline = _d === void 0 ? false : _d;
|
|
31
|
-
var _e = useContext(ThemeContext), core = _e.core, semantic = _e.semantic;
|
|
32
|
-
useEffect(function () {
|
|
33
|
-
if (onMount) {
|
|
34
|
-
onMount();
|
|
35
|
-
}
|
|
36
|
-
}, []);
|
|
37
|
-
var Heading = inline ? Heading3 : Heading2;
|
|
38
|
-
return (_jsx(StyledCard, __assign({ onPress: onPressIndicator, inline: inline, inverted: inverted, reducedBottomPadding: Boolean(buttonTitle && !ctaVariant), testID: "".concat(testID, "-card") }, { children: _jsxs(View, __assign({ style: { flexDirection: 'row' } }, { children: [_jsx(View, __assign({ style: { flex: 1 } }, { children: _jsxs(Stack, __assign({ spaceBetween: 2 }, { children: [_jsx(Heading, __assign({ style: {
|
|
39
|
-
color: inverted
|
|
40
|
-
? semantic.inverted.message.link
|
|
41
|
-
: semantic.message.branded,
|
|
42
|
-
paddingRight: image || !onPressCloseButton ? 0 : parseInt(core.space[6]),
|
|
43
|
-
}, testID: "".concat(testID, "-heading") }, { children: title })), _jsxs(View, { children: [typeof body === 'string' ? (_jsx(View, __assign({ style: {
|
|
44
|
-
paddingRight: !image && !title && onPressCloseButton
|
|
45
|
-
? parseInt(core.space[6])
|
|
46
|
-
: 0,
|
|
47
|
-
} }, { children: _jsx(StyledP, __assign({ inverted: inverted }, { children: body })) }))) : (body), buttonTitle && onPressActionButton && !onPressIndicator ? (!ctaVariant ? (_jsx(Action, __assign({ inverted: inverted, onPress: onPressActionButton, testID: "".concat(testID, "-button") }, { children: buttonTitle }))) : (_jsx(Margin, __assign({ top: 4 }, { children: _jsx(CTAButton, __assign({ onPress: onPressActionButton, testID: "".concat(testID, "-button"), variant: ctaVariant }, { children: buttonTitle })) })))) : null] })] })) })), image ? (_jsx(MaskedView, __assign({ style: {
|
|
48
|
-
flex: 1,
|
|
49
|
-
flexDirection: 'row',
|
|
50
|
-
height: '100%',
|
|
51
|
-
marginTop: -16,
|
|
52
|
-
marginRight: -16,
|
|
53
|
-
}, maskElement: _jsx(View, { style: {
|
|
54
|
-
width: '100%',
|
|
55
|
-
height: 165,
|
|
56
|
-
backgroundColor: 'olive',
|
|
57
|
-
transform: [
|
|
58
|
-
{ rotate: '-16deg' },
|
|
59
|
-
{ translateX: 40 },
|
|
60
|
-
{ translateY: 25 },
|
|
61
|
-
],
|
|
62
|
-
} }) }, { children: _jsx(Image, { resizeMode: "cover", source: image, style: {
|
|
63
|
-
width: '100%',
|
|
64
|
-
height: 200,
|
|
65
|
-
position: 'absolute',
|
|
66
|
-
top: 0,
|
|
67
|
-
right: 0,
|
|
68
|
-
}, accessible: true, accessibilityRole: "image", accessibilityLabel: accessibilityLabel }) }))) : null, onPressIndicator ? (_jsxs(Pressable, __assign({ style: {
|
|
69
|
-
position: 'absolute',
|
|
70
|
-
right: -16,
|
|
71
|
-
bottom: -16,
|
|
72
|
-
}, onPress: onPressIndicator, testID: "".concat(testID, "-indicator-button") }, { children: [_jsx(IndicatorIconShape, {}), _jsx(Icon, { size: 14, style: {
|
|
73
|
-
position: 'absolute',
|
|
74
|
-
right: inline ? 8 : 6,
|
|
75
|
-
bottom: 16,
|
|
76
|
-
}, color: semantic.surface.elevated, name: "chevron-right", accessibilityLabel: "chevron-right" })] }))) : null, onPressCloseButton && !onPressIndicator ? (_jsxs(Pressable, __assign({ style: {
|
|
77
|
-
position: 'absolute',
|
|
78
|
-
right: -16,
|
|
79
|
-
top: -16,
|
|
80
|
-
}, onPress: onPressCloseButton, testID: "".concat(testID, "-close-button") }, { children: [_jsx(CloseIconShape, {}), _jsx(Icon, { size: 14, style: {
|
|
81
|
-
position: 'absolute',
|
|
82
|
-
top: inline ? 14 : 12,
|
|
83
|
-
right: inline ? 14 : 12,
|
|
84
|
-
}, color: semantic.surface.elevated, name: "cross", accessibilityLabel: "close" })] }))) : null] })) })));
|
|
85
|
-
};
|
|
@@ -1,22 +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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import Svg, { Path, ClipPath, Defs } from 'react-native-svg';
|
|
14
|
-
import styled from '../../styled.native';
|
|
15
|
-
var StyledPath = styled(Path)(function (_a) {
|
|
16
|
-
var semantic = _a.theme.semantic, color = _a.color;
|
|
17
|
-
return "\n fill: ".concat(color !== null && color !== void 0 ? color : semantic.message.branded, "\n");
|
|
18
|
-
});
|
|
19
|
-
export var CloseIconShape = function (_a) {
|
|
20
|
-
var color = _a.color;
|
|
21
|
-
return (_jsxs(Svg, __assign({ width: 44, height: 44 }, { children: [_jsx(StyledPath, { color: color, d: "M11.632 44 0 0h44v35.402L11.632 44Z" }), _jsx(Defs, { children: _jsx(ClipPath, __assign({ id: "a" }, { children: _jsx(Path, { fill: "#fff", d: "M16 16h12v12H16z" }) })) })] })));
|
|
22
|
-
};
|
|
@@ -1,22 +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 { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import Svg, { Path } from 'react-native-svg';
|
|
14
|
-
import styled from '../../styled.native';
|
|
15
|
-
var StyledPath = styled(Path)(function (_a) {
|
|
16
|
-
var semantic = _a.theme.semantic, color = _a.color;
|
|
17
|
-
return "\n fill: ".concat(color !== null && color !== void 0 ? color : semantic.message.branded, "\n");
|
|
18
|
-
});
|
|
19
|
-
export var IndicatorIconShape = function (_a) {
|
|
20
|
-
var color = _a.color;
|
|
21
|
-
return (_jsx(Svg, __assign({ width: 32, height: 48 }, { children: _jsx(StyledPath, { color: color, d: "M0 9.5 32 1v47H10.5L0 9.5Z" }) })));
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ActionCard } from './ActionCard';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CurrencyField } from './CurrencyField';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CurrencyInput } from './CurrencyInput';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
import styled from '../../styled.native';
|
|
6
|
-
export var Em = styled.Text(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: 'System font';\n font-style: italic;\n"], ["\n font-family: 'System font';\n font-style: italic;\n"])));
|
|
7
|
-
var templateObject_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Em } from './Em';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { EmailField } from './EmailField';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { EmailInput } from './EmailInput';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
|
-
import { useBreakpoint } from '../../hooks';
|
|
29
|
-
import styled, { css } from '../../styled.native';
|
|
30
|
-
import { pxToNumber, numToPx } from '../../utils';
|
|
31
|
-
var calculateLetterSpacing = function (fontSize, letterSpacing) {
|
|
32
|
-
return numToPx(pxToNumber(fontSize) * letterSpacing);
|
|
33
|
-
};
|
|
34
|
-
var StyledHeading1 = styled.Text(function (_a) {
|
|
35
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
|
|
36
|
-
var fontSize = core.fontSize.heading1[smallAndUp ? 'large' : 'small'];
|
|
37
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n color: ", ";\n "])), core.fontFamily.heading.native, fontSize, core.lineHeight.heading1[smallAndUp ? 'large' : 'small'], calculateLetterSpacing(fontSize, core.letterSpacing.extraCompressed), semantic.message.branded);
|
|
38
|
-
});
|
|
39
|
-
export var Heading1 = function (_a) {
|
|
40
|
-
var _b = _a.accessibilityRole, accessibilityRole = _b === void 0 ? 'header' : _b, rest = __rest(_a, ["accessibilityRole"]);
|
|
41
|
-
var breakpoints = useBreakpoint();
|
|
42
|
-
return (_jsx(StyledHeading1, __assign({ accessibilityRole: accessibilityRole }, breakpoints, rest)));
|
|
43
|
-
};
|
|
44
|
-
var templateObject_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Heading1 } from './Heading1';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
|
-
import { useBreakpoint } from '../../hooks';
|
|
29
|
-
import styled, { css } from '../../styled.native';
|
|
30
|
-
import { pxToNumber, numToPx } from '../../utils';
|
|
31
|
-
var calculateLetterSpacing = function (fontSize, letterSpacing) {
|
|
32
|
-
return numToPx(pxToNumber(fontSize) * letterSpacing);
|
|
33
|
-
};
|
|
34
|
-
var StyledHeading2 = styled.Text(function (_a) {
|
|
35
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
|
|
36
|
-
var fontSize = core.fontSize.heading2[smallAndUp ? 'large' : 'small'];
|
|
37
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n color: ", ";\n "])), core.fontFamily.heading.native, fontSize, core.lineHeight.heading2[smallAndUp ? 'large' : 'small'], calculateLetterSpacing(fontSize, core.letterSpacing.extraCompressed), semantic.message.branded);
|
|
38
|
-
});
|
|
39
|
-
export var Heading2 = function (_a) {
|
|
40
|
-
var _b = _a.accessibilityRole, accessibilityRole = _b === void 0 ? 'header' : _b, rest = __rest(_a, ["accessibilityRole"]);
|
|
41
|
-
var breakpoints = useBreakpoint();
|
|
42
|
-
return (_jsx(StyledHeading2, __assign({ accessibilityRole: accessibilityRole }, breakpoints, rest)));
|
|
43
|
-
};
|
|
44
|
-
var templateObject_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Heading2 } from './Heading2';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
|
-
import { useBreakpoint } from '../../hooks';
|
|
29
|
-
import styled, { css } from '../../styled.native';
|
|
30
|
-
import { pxToNumber, numToPx } from '../../utils';
|
|
31
|
-
var calculateLetterSpacing = function (fontSize, letterSpacing) {
|
|
32
|
-
return numToPx(pxToNumber(fontSize) * letterSpacing);
|
|
33
|
-
};
|
|
34
|
-
var StyledHeading3 = styled.Text(function (_a) {
|
|
35
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
|
|
36
|
-
var fontSize = core.fontSize.heading3[smallAndUp ? 'large' : 'small'];
|
|
37
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n color: ", ";\n "])), core.fontFamily.bodyBold.native, fontSize, core.lineHeight.heading3[smallAndUp ? 'large' : 'small'], calculateLetterSpacing(fontSize, core.letterSpacing.compressed), semantic.message.branded);
|
|
38
|
-
});
|
|
39
|
-
export var Heading3 = function (_a) {
|
|
40
|
-
var _b = _a.accessibilityRole, accessibilityRole = _b === void 0 ? 'header' : _b, rest = __rest(_a, ["accessibilityRole"]);
|
|
41
|
-
var breakpoints = useBreakpoint();
|
|
42
|
-
return (_jsx(StyledHeading3, __assign({ accessibilityRole: accessibilityRole }, breakpoints, rest)));
|
|
43
|
-
};
|
|
44
|
-
var templateObject_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Heading3 } from './Heading3';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
|
-
import { useBreakpoint } from '../../hooks';
|
|
29
|
-
import styled, { css } from '../../styled.native';
|
|
30
|
-
import { pxToNumber, numToPx } from '../../utils';
|
|
31
|
-
var calculateLetterSpacing = function (fontSize, letterSpacing) {
|
|
32
|
-
return numToPx(pxToNumber(fontSize) * letterSpacing);
|
|
33
|
-
};
|
|
34
|
-
var StyledHeading4 = styled.Text(function (_a) {
|
|
35
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
|
|
36
|
-
var fontSize = core.fontSize.heading4[smallAndUp ? 'large' : 'small'];
|
|
37
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n color: ", ";\n "])), core.fontFamily.bodyBold.native, fontSize, core.lineHeight.heading4[smallAndUp ? 'large' : 'small'], calculateLetterSpacing(fontSize, core.letterSpacing.compressed), semantic.message.branded);
|
|
38
|
-
});
|
|
39
|
-
export var Heading4 = function (_a) {
|
|
40
|
-
var _b = _a.accessibilityRole, accessibilityRole = _b === void 0 ? 'header' : _b, rest = __rest(_a, ["accessibilityRole"]);
|
|
41
|
-
var breakpoints = useBreakpoint();
|
|
42
|
-
return (_jsx(StyledHeading4, __assign({ accessibilityRole: accessibilityRole }, breakpoints, rest)));
|
|
43
|
-
};
|
|
44
|
-
var templateObject_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Heading4 } from './Heading4';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LineThrough } from './LineThrough';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
import styled, { css } from '../../styled.native';
|
|
6
|
-
import { pxToNumber } from '../../utils';
|
|
7
|
-
export var UlBullet = styled.View(function (_a) {
|
|
8
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, _c = _a.visible, visible = _c === void 0 ? true : _c, smallAndUp = _a.smallAndUp;
|
|
9
|
-
var lineHeight = smallAndUp
|
|
10
|
-
? core.lineHeight.body.large
|
|
11
|
-
: core.lineHeight.body.small;
|
|
12
|
-
var topMargin = (pxToNumber(lineHeight) - pxToNumber(core.space[2])) / 2;
|
|
13
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-right: ", ";\n margin-top: ", "px;\n width: ", ";\n height: ", ";\n background-color: ", ";\n "], ["\n margin-right: ", ";\n margin-top: ", "px;\n width: ", ";\n height: ", ";\n background-color: ", ";\n "])), core.space[2], topMargin, core.space[2], core.space[2], visible ? semantic.message.base : 'transparent');
|
|
14
|
-
});
|
|
15
|
-
export var StyledBullet = styled.Text(function (_a) {
|
|
16
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
|
|
17
|
-
var fontSize = smallAndUp
|
|
18
|
-
? core.fontSize.body.large
|
|
19
|
-
: core.fontSize.body.small;
|
|
20
|
-
var lineHeight = smallAndUp
|
|
21
|
-
? core.lineHeight.body.large
|
|
22
|
-
: core.lineHeight.body.small;
|
|
23
|
-
return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n margin-right: ", ";\n width: ", ";\n text-align: right;\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n margin-right: ", ";\n width: ", ";\n text-align: right;\n "])), core.fontFamily.body.native, lineHeight, semantic.message.base, fontSize, core.space[2], core.space[4]);
|
|
24
|
-
});
|
|
25
|
-
export var StyledUlItem = styled.View(function (_a) {
|
|
26
|
-
var core = _a.theme.core, level = _a.level;
|
|
27
|
-
return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-direction: row;\n align-items: flex-start;\n justify-content: center;\n padding-left: ", ";\n "], ["\n flex-direction: row;\n align-items: flex-start;\n justify-content: center;\n padding-left: ", ";\n "])), core.space[level]);
|
|
28
|
-
});
|
|
29
|
-
export var StyledOlItem = StyledUlItem;
|
|
30
|
-
export var StyledList = styled.View(function (_a) {
|
|
31
|
-
var core = _a.theme.core, smallAndUp = _a.smallAndUp;
|
|
32
|
-
return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex-direction: column;\n flex: 1;\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n flex-direction: column;\n flex: 1;\n margin-top: ", ";\n margin-bottom: ", ";\n "])), smallAndUp ? core.space[3] : core.space[2], smallAndUp ? core.space[3] : core.space[2]);
|
|
33
|
-
});
|
|
34
|
-
export var StyledLi = styled.Text(function (_a) {
|
|
35
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
|
|
36
|
-
var fontSize = smallAndUp
|
|
37
|
-
? core.fontSize.body.large
|
|
38
|
-
: core.fontSize.body.small;
|
|
39
|
-
var lineHeight = smallAndUp
|
|
40
|
-
? core.lineHeight.body.large
|
|
41
|
-
: core.lineHeight.body.large;
|
|
42
|
-
return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), core.fontFamily.body.native, lineHeight, semantic.message.base, fontSize);
|
|
43
|
-
});
|
|
44
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -1,27 +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 { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { theme } from '@ovotech/element-core';
|
|
14
|
-
import { Pressable } from 'react-native';
|
|
15
|
-
import { Icon } from '../Icon';
|
|
16
|
-
import { StyledIconButtonL, StyledIconButtonS } from './NavHeader.styles';
|
|
17
|
-
export var IconButton = function (_a) {
|
|
18
|
-
var size = _a.size, animation = _a.animation, rightActionConfig = _a.rightActionConfig;
|
|
19
|
-
var ButtonStyled = size === 'small' ? StyledIconButtonS : StyledIconButtonL;
|
|
20
|
-
if (!rightActionConfig || !(rightActionConfig === null || rightActionConfig === void 0 ? void 0 : rightActionConfig.iconName)) {
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
return (_jsx(Pressable, __assign({ hitSlop: 44, pressRetentionOffset: 44, onPress: rightActionConfig === null || rightActionConfig === void 0 ? void 0 : rightActionConfig.onActionPress }, { children: function (_a) {
|
|
24
|
-
var pressed = _a.pressed;
|
|
25
|
-
return (_jsx(ButtonStyled, __assign({ entering: animation, "$pressed": pressed }, { children: _jsx(Icon, { name: rightActionConfig.iconName, size: size === 'small' ? 16 : 18, color: theme.semantic.inverted.message.base }) })));
|
|
26
|
-
} })));
|
|
27
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
import { View } from 'react-native';
|
|
6
|
-
import Animated from 'react-native-reanimated';
|
|
7
|
-
import styled, { css } from '../../styled.native';
|
|
8
|
-
export var NavContainer = styled(Animated.View)(function (_a) {
|
|
9
|
-
var semantic = _a.theme.semantic;
|
|
10
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n background-color: ", ";\n "], ["\n width: 100%;\n background-color: ", ";\n "])), semantic.surface.base);
|
|
11
|
-
});
|
|
12
|
-
export var NavWrapper = styled(View)(function (_a) {
|
|
13
|
-
var core = _a.theme.core;
|
|
14
|
-
return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n padding: ", ";\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n "], ["\n width: 100%;\n padding: ", ";\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n "])), core.space[2]);
|
|
15
|
-
});
|
|
16
|
-
export var ExpandedTitle = styled(Animated.Text)(function (_a) {
|
|
17
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, hasBackButton = _a.hasBackButton, fullWidth = _a.fullWidth;
|
|
18
|
-
return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n height: ", ";\n color: ", ";\n "], ["\n width: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n height: ", ";\n color: ", ";\n "])), fullWidth ? '100%' : '65%', core.fontFamily.heading.native, core.fontSize.heading1[hasBackButton ? 'small' : 'large'], hasBackButton
|
|
19
|
-
? core.lineHeight.heading1.small
|
|
20
|
-
: core.space[13], hasBackButton ? core.lineHeight.heading1.small : core.space[13], semantic.message.branded);
|
|
21
|
-
});
|
|
22
|
-
export var CollapsedTitleWrapper = styled(Animated.View)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n justify-content: center;\n width: 33.3%;\n height: ", ";\n"], ["\n align-items: center;\n justify-content: center;\n width: 33.3%;\n height: ", ";\n"])), function (_a) {
|
|
23
|
-
var core = _a.theme.core;
|
|
24
|
-
return core.lineHeight.heading4.small;
|
|
25
|
-
});
|
|
26
|
-
export var CollapsedTitle = styled(Animated.Text)(function (_a) {
|
|
27
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic;
|
|
28
|
-
return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "])), core.fontFamily.heading.native, core.fontSize.heading4.small, core.lineHeight.heading4.small, semantic.message.branded);
|
|
29
|
-
});
|
|
30
|
-
export var IconButtonWrapper = styled.View(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n width: 33.3%;\n flex-direction: row;\n justify-content: flex-end;\n"], ["\n width: 33.3%;\n flex-direction: row;\n justify-content: flex-end;\n"])));
|
|
31
|
-
var iconButtonSharedStyles = css(function (_a) {
|
|
32
|
-
var semantic = _a.theme.semantic;
|
|
33
|
-
return "\n border-radius: 100px;\n background-color: ".concat(semantic.inverted.surface, ";\n align-items: center;\n justify-content: center;\n");
|
|
34
|
-
});
|
|
35
|
-
export var StyledIconButtonS = styled(Animated.View)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: 28px;\n height: 28px;\n opacity: ", ";\n ", ";\n"], ["\n width: 28px;\n height: 28px;\n opacity: ", ";\n ", ";\n"])), function (_a) {
|
|
36
|
-
var $pressed = _a.$pressed;
|
|
37
|
-
return ($pressed ? 0.8 : 1);
|
|
38
|
-
}, iconButtonSharedStyles);
|
|
39
|
-
export var StyledIconButtonL = styled(Animated.View)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n width: 36px;\n height: 36px;\n opacity: ", ";\n ", ";\n"], ["\n width: 36px;\n height: 36px;\n opacity: ", ";\n ", ";\n"])), function (_a) {
|
|
40
|
-
var $pressed = _a.$pressed;
|
|
41
|
-
return ($pressed ? 0.8 : 1);
|
|
42
|
-
}, iconButtonSharedStyles);
|
|
43
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { NumberField } from './NumberField';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { NumberInput } from './NumberInput';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
import styled, { css } from '../../styled.native';
|
|
6
|
-
import { styledComponentWithBreakpoints } from '../../utils';
|
|
7
|
-
var StyledP = styled.Text(function (_a) {
|
|
8
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
|
|
9
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "])), core.fontFamily.body.native, core.fontSize.body[smallAndUp ? 'large' : 'small'], core.lineHeight.body[smallAndUp ? 'large' : 'small'], semantic.message.base);
|
|
10
|
-
});
|
|
11
|
-
export var P = styledComponentWithBreakpoints(StyledP);
|
|
12
|
-
var templateObject_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { P } from './P';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PasswordField } from './PasswordField';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PasswordInput } from './PasswordInput';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PhoneField } from './PhoneField';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PhoneInput } from './PhoneInput';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SkeletonAnimation } from './SkeletonAnimation';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SkeletonCTA } from './SkeletonCTA';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SkeletonCircle } from './SkeletonCircle';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SkeletonHeading } from './SkeletonHeading';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SkeletonText } from './SkeletonText';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
import styled, { css } from '../../styled.native';
|
|
6
|
-
import { styledComponentWithBreakpoints } from '../../utils';
|
|
7
|
-
var StyledSmall = styled.Text(function (_a) {
|
|
8
|
-
var core = _a.theme.core, smallAndUp = _a.smallAndUp;
|
|
9
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), core.fontSize.small[smallAndUp ? 'large' : 'small'], core.lineHeight.small[smallAndUp ? 'large' : 'small']);
|
|
10
|
-
});
|
|
11
|
-
export var Small = styledComponentWithBreakpoints(StyledSmall);
|
|
12
|
-
var templateObject_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Small } from './Small';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Strong } from './Strong';
|
|
@@ -1,43 +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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { Children, cloneElement, isValidElement, } from 'react';
|
|
25
|
-
import { View } from 'react-native';
|
|
26
|
-
export var TextGroup = function (_a) {
|
|
27
|
-
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
28
|
-
var filteredChildren = [];
|
|
29
|
-
Children.forEach(children, function (child) {
|
|
30
|
-
if (isValidElement(child)) {
|
|
31
|
-
filteredChildren.push(child);
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
return (_jsx(View, __assign({}, rest, { children: Children.map(filteredChildren, function (child, index) {
|
|
35
|
-
if (!isValidElement(child)) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
var style = __assign(__assign(__assign({}, child.props.style), (index === 0 ? { marginTop: 0 } : {})), { marginBottom: 0 });
|
|
39
|
-
return cloneElement(child, {
|
|
40
|
-
style: style,
|
|
41
|
-
});
|
|
42
|
-
}) })));
|
|
43
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TextGroup } from './TextGroup';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TextInput } from './TextInput';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TextareaField } from './TextareaField';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TextareaInput } from './TextareaInput';
|