@ovotech/element-native 3.3.2 → 3.4.0-canary-d9e3d0a-143
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 +4 -3
- package/dist/components/Accordion/styles.js +2 -2
- package/dist/components/ActionCard/ActionCard.d.ts +19 -0
- package/dist/components/ActionCard/ActionCard.js +115 -0
- package/dist/components/ActionCard/CloseIconShape.d.ts +3 -0
- package/dist/components/ActionCard/CloseIconShape.js +52 -0
- package/dist/components/ActionCard/IndicatorIconShape.d.ts +3 -0
- package/dist/components/ActionCard/IndicatorIconShape.js +52 -0
- package/dist/components/ActionCard/index.d.ts +1 -0
- package/dist/components/ActionCard/index.js +5 -0
- 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/{TextField → CurrencyField}/CurrencyField.js +1 -1
- package/dist/components/CurrencyField/index.d.ts +1 -0
- package/dist/components/CurrencyField/index.js +5 -0
- package/dist/components/{Input → CurrencyInput}/CurrencyInput.d.ts +1 -1
- package/dist/components/{Input → CurrencyInput}/CurrencyInput.js +1 -1
- package/dist/components/CurrencyInput/index.d.ts +1 -0
- package/dist/components/CurrencyInput/index.js +5 -0
- 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/{SkeletonLoading/Skeleton.d.ts → Em/Em.d.ts} +2 -2
- package/dist/components/Em/Em.js +13 -0
- package/dist/components/Em/index.d.ts +1 -0
- package/dist/components/Em/index.js +5 -0
- package/dist/components/{TextField → EmailField}/EmailField.js +1 -1
- package/dist/components/EmailField/index.d.ts +1 -0
- package/dist/components/EmailField/index.js +5 -0
- package/dist/components/{Input → EmailInput}/EmailInput.js +1 -1
- package/dist/components/EmailInput/index.d.ts +1 -0
- package/dist/components/EmailInput/index.js +5 -0
- 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/Heading1/Heading1.d.ts +3 -0
- package/dist/components/{Heading/Heading.js → Heading1/Heading1.js} +2 -35
- package/dist/components/Heading1/index.d.ts +1 -0
- package/dist/components/Heading1/index.js +5 -0
- package/dist/components/Heading2/Heading2.d.ts +3 -0
- package/dist/components/Heading2/Heading2.js +71 -0
- package/dist/components/Heading2/index.d.ts +1 -0
- package/dist/components/Heading2/index.js +5 -0
- package/dist/components/Heading3/Heading3.d.ts +3 -0
- package/dist/components/Heading3/Heading3.js +71 -0
- package/dist/components/Heading3/index.d.ts +1 -0
- package/dist/components/Heading3/index.js +5 -0
- package/dist/components/Heading4/Heading4.d.ts +3 -0
- package/dist/components/Heading4/Heading4.js +71 -0
- package/dist/components/Heading4/index.d.ts +1 -0
- package/dist/components/Heading4/index.js +5 -0
- package/dist/components/HintText/HintText.d.ts +1 -1
- package/dist/components/LabelText/LabelText.d.ts +1 -1
- package/dist/components/LineThrough/LineThrough.d.ts +228 -0
- package/dist/components/{SkeletonLoading/Skeleton.js → LineThrough/LineThrough.js} +2 -2
- package/dist/components/LineThrough/index.d.ts +1 -0
- package/dist/components/LineThrough/index.js +5 -0
- package/dist/components/List/List.d.ts +4 -240
- package/dist/components/List/List.js +44 -91
- package/dist/components/{Text/Text.d.ts → List/styled.d.ts} +658 -442
- package/dist/components/List/styled.js +70 -0
- package/dist/components/Margin/Margin.d.ts +1 -1
- package/dist/components/NavHeader/IconButton.d.ts +13 -0
- package/dist/components/NavHeader/IconButton.js +31 -0
- package/dist/components/NavHeader/NavHeader.d.ts +7 -14
- package/dist/components/NavHeader/NavHeader.js +39 -48
- package/dist/components/NavHeader/NavHeader.styles.d.ts +1833 -0
- package/dist/components/NavHeader/NavHeader.styles.js +72 -0
- package/dist/components/NavHeader/index.d.ts +1 -1
- package/dist/components/Notification/Notification.d.ts +2 -2
- package/dist/components/{TextField → NumberField}/NumberField.js +1 -1
- package/dist/components/NumberField/index.d.ts +1 -0
- package/dist/components/NumberField/index.js +5 -0
- package/dist/components/{Input → NumberInput}/NumberInput.js +1 -1
- package/dist/components/NumberInput/index.d.ts +1 -0
- package/dist/components/NumberInput/index.js +5 -0
- package/dist/components/P/P.d.ts +239 -0
- package/dist/components/P/P.js +38 -0
- package/dist/components/P/index.d.ts +1 -0
- package/dist/components/P/index.js +5 -0
- package/dist/components/{TextField → PasswordField}/PasswordField.js +1 -1
- package/dist/components/PasswordField/index.d.ts +1 -0
- package/dist/components/PasswordField/index.js +5 -0
- package/dist/components/{Input → PasswordInput}/PasswordInput.js +1 -1
- package/dist/components/{Input → PasswordInput}/PasswordInput.styled.d.ts +1 -1
- package/dist/components/PasswordInput/index.d.ts +1 -0
- package/dist/components/PasswordInput/index.js +5 -0
- package/dist/components/{TextField → PhoneField}/PhoneField.js +1 -1
- package/dist/components/PhoneField/index.d.ts +1 -0
- package/dist/components/PhoneField/index.js +5 -0
- package/dist/components/{Input → PhoneInput}/PhoneInput.d.ts +1 -2
- package/dist/components/{Input → PhoneInput}/PhoneInput.js +2 -3
- package/dist/components/PhoneInput/index.d.ts +1 -0
- package/dist/components/PhoneInput/index.js +5 -0
- package/dist/components/SelectField/Select.d.ts +1 -1
- package/dist/components/SelectField/Select.js +5 -4
- package/dist/components/SkeletonAnimation/index.d.ts +1 -0
- package/dist/components/SkeletonAnimation/index.js +5 -0
- package/dist/components/{SkeletonLoading → SkeletonCTA}/SkeletonCTA.js +4 -5
- package/dist/components/SkeletonCTA/index.d.ts +1 -0
- package/dist/components/SkeletonCTA/index.js +5 -0
- package/dist/components/{SkeletonLoading → SkeletonCircle}/SkeletonCircle.js +3 -4
- package/dist/components/SkeletonCircle/index.d.ts +1 -0
- package/dist/components/SkeletonCircle/index.js +5 -0
- package/dist/components/{SkeletonLoading → SkeletonHeading}/SkeletonHeading.js +4 -5
- package/dist/components/SkeletonHeading/index.d.ts +1 -0
- package/dist/components/SkeletonHeading/index.js +5 -0
- package/dist/components/{SkeletonLoading → SkeletonText}/SkeletonText.js +4 -5
- package/dist/components/SkeletonText/index.d.ts +1 -0
- package/dist/components/SkeletonText/index.js +5 -0
- package/dist/components/Small/Small.d.ts +239 -0
- package/dist/components/Small/Small.js +38 -0
- package/dist/components/Small/index.d.ts +1 -0
- package/dist/components/Small/index.js +5 -0
- package/dist/components/Strong/Strong.d.ts +228 -0
- package/dist/components/Strong/Strong.js +11 -0
- package/dist/components/Strong/index.d.ts +1 -0
- package/dist/components/Strong/index.js +5 -0
- package/dist/components/SubLabelText/SubLabelText.d.ts +1 -1
- package/dist/components/TextField/TextField.js +1 -1
- package/dist/components/TextField/index.d.ts +0 -7
- package/dist/components/TextField/index.js +1 -15
- package/dist/components/TextGroup/TextGroup.d.ts +3 -0
- package/dist/components/TextGroup/TextGroup.js +47 -0
- package/dist/components/TextGroup/index.d.ts +1 -0
- package/dist/components/TextGroup/index.js +5 -0
- package/dist/components/{Input → TextInput}/TextInput.js +1 -1
- package/dist/components/TextInput/index.d.ts +1 -0
- package/dist/components/TextInput/index.js +5 -0
- package/dist/components/{TextField → TextareaField}/TextareaField.js +1 -1
- package/dist/components/TextareaField/index.d.ts +1 -0
- package/dist/components/TextareaField/index.js +5 -0
- package/dist/components/{Input → TextareaInput}/TextareaInput.d.ts +1 -1
- package/dist/components/{Input → TextareaInput}/TextareaInput.js +1 -1
- package/dist/components/TextareaInput/index.d.ts +1 -0
- package/dist/components/TextareaInput/index.js +5 -0
- package/dist/components/index.d.ts +28 -4
- package/dist/components/index.js +28 -4
- package/dist/esm/components/Accordion/Accordion.js +3 -3
- package/dist/esm/components/Accordion/styles.js +2 -2
- package/dist/esm/components/ActionCard/ActionCard.js +85 -0
- package/dist/esm/components/ActionCard/CloseIconShape.js +22 -0
- package/dist/esm/components/ActionCard/IndicatorIconShape.js +22 -0
- package/dist/esm/components/ActionCard/index.js +1 -0
- package/dist/esm/components/{TextField → CurrencyField}/CurrencyField.js +1 -1
- package/dist/esm/components/CurrencyField/index.js +1 -0
- package/dist/esm/components/{Input → CurrencyInput}/CurrencyInput.js +1 -1
- package/dist/esm/components/CurrencyInput/index.js +1 -0
- package/dist/esm/components/DateField/DateField.js +1 -1
- package/dist/esm/components/Em/Em.js +7 -0
- package/dist/esm/components/Em/index.js +1 -0
- package/dist/esm/components/{TextField → EmailField}/EmailField.js +1 -1
- package/dist/esm/components/EmailField/index.js +1 -0
- package/dist/esm/components/{Input → EmailInput}/EmailInput.js +1 -1
- package/dist/esm/components/EmailInput/index.js +1 -0
- package/dist/esm/components/Heading1/Heading1.js +44 -0
- package/dist/esm/components/Heading1/index.js +1 -0
- package/dist/esm/components/Heading2/Heading2.js +44 -0
- package/dist/esm/components/Heading2/index.js +1 -0
- package/dist/esm/components/Heading3/Heading3.js +44 -0
- package/dist/esm/components/Heading3/index.js +1 -0
- package/dist/esm/components/Heading4/Heading4.js +44 -0
- package/dist/esm/components/Heading4/index.js +1 -0
- package/dist/esm/components/{SkeletonLoading/Skeleton.js → LineThrough/LineThrough.js} +1 -1
- package/dist/esm/components/LineThrough/index.js +1 -0
- package/dist/esm/components/List/List.js +41 -65
- package/dist/esm/components/List/styled.js +44 -0
- package/dist/esm/components/NavHeader/IconButton.js +27 -0
- package/dist/esm/components/NavHeader/NavHeader.js +41 -50
- package/dist/esm/components/NavHeader/NavHeader.styles.js +43 -0
- package/dist/esm/components/{TextField → NumberField}/NumberField.js +1 -1
- package/dist/esm/components/NumberField/index.js +1 -0
- package/dist/esm/components/{Input → NumberInput}/NumberInput.js +1 -1
- package/dist/esm/components/NumberInput/index.js +1 -0
- package/dist/esm/components/P/P.js +12 -0
- package/dist/esm/components/P/index.js +1 -0
- package/dist/esm/components/{TextField → PasswordField}/PasswordField.js +1 -1
- package/dist/esm/components/PasswordField/index.js +1 -0
- package/dist/esm/components/{Input → PasswordInput}/PasswordInput.js +1 -1
- package/dist/esm/components/PasswordInput/index.js +1 -0
- package/dist/esm/components/{TextField → PhoneField}/PhoneField.js +1 -1
- package/dist/esm/components/PhoneField/index.js +1 -0
- package/dist/esm/components/{Input → PhoneInput}/PhoneInput.js +2 -3
- package/dist/esm/components/PhoneInput/index.js +1 -0
- package/dist/esm/components/SelectField/Select.js +2 -1
- package/dist/esm/components/SkeletonAnimation/index.js +1 -0
- package/dist/esm/components/{SkeletonLoading → SkeletonCTA}/SkeletonCTA.js +3 -4
- package/dist/esm/components/SkeletonCTA/index.js +1 -0
- package/dist/esm/components/{SkeletonLoading → SkeletonCircle}/SkeletonCircle.js +3 -4
- package/dist/esm/components/SkeletonCircle/index.js +1 -0
- package/dist/esm/components/{SkeletonLoading → SkeletonHeading}/SkeletonHeading.js +3 -4
- package/dist/esm/components/SkeletonHeading/index.js +1 -0
- package/dist/esm/components/{SkeletonLoading → SkeletonText}/SkeletonText.js +3 -4
- package/dist/esm/components/SkeletonText/index.js +1 -0
- package/dist/esm/components/Small/Small.js +12 -0
- package/dist/esm/components/Small/index.js +1 -0
- package/dist/esm/components/Strong/Strong.js +5 -0
- package/dist/esm/components/Strong/index.js +1 -0
- package/dist/esm/components/TextField/TextField.js +1 -1
- package/dist/esm/components/TextField/index.js +0 -7
- package/dist/esm/components/TextGroup/TextGroup.js +43 -0
- package/dist/esm/components/TextGroup/index.js +1 -0
- package/dist/esm/components/{Input → TextInput}/TextInput.js +1 -1
- package/dist/esm/components/TextInput/index.js +1 -0
- package/dist/esm/components/{TextField → TextareaField}/TextareaField.js +1 -1
- package/dist/esm/components/TextareaField/index.js +1 -0
- package/dist/esm/components/{Input → TextareaInput}/TextareaInput.js +1 -1
- package/dist/esm/components/TextareaInput/index.js +1 -0
- package/dist/esm/components/index.js +28 -4
- package/dist/styled.native.d.ts +6 -6
- package/package.json +5 -3
- package/dist/components/Heading/Heading.d.ts +0 -6
- package/dist/components/Heading/index.d.ts +0 -1
- package/dist/components/Heading/index.js +0 -8
- package/dist/components/Input/index.d.ts +0 -7
- package/dist/components/Input/index.js +0 -17
- package/dist/components/SkeletonLoading/index.d.ts +0 -5
- package/dist/components/SkeletonLoading/index.js +0 -21
- package/dist/components/Text/Text.js +0 -93
- package/dist/components/Text/index.d.ts +0 -1
- package/dist/components/Text/index.js +0 -10
- package/dist/components/TextField/TelField.d.ts +0 -14
- package/dist/components/TextField/TelField.js +0 -38
- package/dist/esm/components/Heading/Heading.js +0 -74
- package/dist/esm/components/Heading/index.js +0 -1
- package/dist/esm/components/Input/index.js +0 -7
- package/dist/esm/components/SkeletonLoading/index.js +0 -5
- package/dist/esm/components/Text/Text.js +0 -66
- package/dist/esm/components/Text/index.js +0 -1
- package/dist/esm/components/TextField/TelField.js +0 -35
- /package/dist/components/{TextField → CurrencyField}/CurrencyField.d.ts +0 -0
- /package/dist/components/{TextField → EmailField}/EmailField.d.ts +0 -0
- /package/dist/components/{Input → EmailInput}/EmailInput.d.ts +0 -0
- /package/dist/components/{TextField → NumberField}/NumberField.d.ts +0 -0
- /package/dist/components/{Input → NumberInput}/NumberInput.d.ts +0 -0
- /package/dist/components/{TextField → PasswordField}/PasswordField.d.ts +0 -0
- /package/dist/components/{Input → PasswordInput}/PasswordInput.d.ts +0 -0
- /package/dist/components/{Input → PasswordInput}/PasswordInput.styled.js +0 -0
- /package/dist/components/{Input → PasswordInput}/PasswordVisibilityToggle.d.ts +0 -0
- /package/dist/components/{Input → PasswordInput}/PasswordVisibilityToggle.js +0 -0
- /package/dist/components/{TextField → PhoneField}/PhoneField.d.ts +0 -0
- /package/dist/components/{SkeletonLoading → SkeletonAnimation}/SkeletonAnimation.d.ts +0 -0
- /package/dist/components/{SkeletonLoading → SkeletonAnimation}/SkeletonAnimation.js +0 -0
- /package/dist/components/{SkeletonLoading → SkeletonCTA}/SkeletonCTA.d.ts +0 -0
- /package/dist/components/{SkeletonLoading → SkeletonCircle}/SkeletonCircle.d.ts +0 -0
- /package/dist/components/{SkeletonLoading → SkeletonHeading}/SkeletonHeading.d.ts +0 -0
- /package/dist/components/{SkeletonLoading → SkeletonText}/SkeletonText.d.ts +0 -0
- /package/dist/components/{Input → TextInput}/TextInput.d.ts +0 -0
- /package/dist/components/{TextField → TextareaField}/TextareaField.d.ts +0 -0
- /package/dist/esm/components/{Input → PasswordInput}/PasswordInput.styled.js +0 -0
- /package/dist/esm/components/{Input → PasswordInput}/PasswordVisibilityToggle.js +0 -0
- /package/dist/esm/components/{SkeletonLoading → SkeletonAnimation}/SkeletonAnimation.js +0 -0
- /package/dist/esm/{components/Accordion/hooks.js → hooks/use-layout.js} +0 -0
- /package/dist/{components/Accordion/hooks.d.ts → hooks/use-layout.d.ts} +0 -0
- /package/dist/{components/Accordion/hooks.js → hooks/use-layout.js} +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
|
+
if (mod && mod.__esModule) return mod;
|
|
24
|
+
var result = {};
|
|
25
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
26
|
+
__setModuleDefault(result, mod);
|
|
27
|
+
return result;
|
|
28
|
+
};
|
|
29
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
30
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31
|
+
};
|
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
+
exports.StyledIconButtonL = exports.StyledIconButtonS = exports.IconButtonWrapper = exports.CollapsedTitle = exports.CollapsedTitleWrapper = exports.ExpandedTitle = exports.NavWrapper = exports.NavContainer = void 0;
|
|
34
|
+
var react_native_1 = require("react-native");
|
|
35
|
+
var react_native_reanimated_1 = __importDefault(require("react-native-reanimated"));
|
|
36
|
+
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
37
|
+
exports.NavContainer = (0, styled_native_1.default)(react_native_reanimated_1.default.View)(function (_a) {
|
|
38
|
+
var semantic = _a.theme.semantic;
|
|
39
|
+
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n background-color: ", ";\n "], ["\n width: 100%;\n background-color: ", ";\n "])), semantic.surface.base);
|
|
40
|
+
});
|
|
41
|
+
exports.NavWrapper = (0, styled_native_1.default)(react_native_1.View)(function (_a) {
|
|
42
|
+
var core = _a.theme.core;
|
|
43
|
+
return (0, styled_native_1.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]);
|
|
44
|
+
});
|
|
45
|
+
exports.ExpandedTitle = (0, styled_native_1.default)(react_native_reanimated_1.default.Text)(function (_a) {
|
|
46
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, hasBackButton = _a.hasBackButton, fullWidth = _a.fullWidth;
|
|
47
|
+
return (0, styled_native_1.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
|
|
48
|
+
? core.lineHeight.heading1.small
|
|
49
|
+
: core.space[13], hasBackButton ? core.lineHeight.heading1.small : core.space[13], semantic.message.branded);
|
|
50
|
+
});
|
|
51
|
+
exports.CollapsedTitleWrapper = (0, styled_native_1.default)(react_native_reanimated_1.default.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) {
|
|
52
|
+
var core = _a.theme.core;
|
|
53
|
+
return core.lineHeight.heading4.small;
|
|
54
|
+
});
|
|
55
|
+
exports.CollapsedTitle = (0, styled_native_1.default)(react_native_reanimated_1.default.Text)(function (_a) {
|
|
56
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic;
|
|
57
|
+
return (0, styled_native_1.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);
|
|
58
|
+
});
|
|
59
|
+
exports.IconButtonWrapper = styled_native_1.default.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"])));
|
|
60
|
+
var iconButtonSharedStyles = (0, styled_native_1.css)(function (_a) {
|
|
61
|
+
var semantic = _a.theme.semantic;
|
|
62
|
+
return "\n border-radius: 100px;\n background-color: ".concat(semantic.inverted.surface, ";\n align-items: center;\n justify-content: center;\n");
|
|
63
|
+
});
|
|
64
|
+
exports.StyledIconButtonS = (0, styled_native_1.default)(react_native_reanimated_1.default.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) {
|
|
65
|
+
var $pressed = _a.$pressed;
|
|
66
|
+
return ($pressed ? 0.8 : 1);
|
|
67
|
+
}, iconButtonSharedStyles);
|
|
68
|
+
exports.StyledIconButtonL = (0, styled_native_1.default)(react_native_reanimated_1.default.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) {
|
|
69
|
+
var $pressed = _a.$pressed;
|
|
70
|
+
return ($pressed ? 0.8 : 1);
|
|
71
|
+
}, iconButtonSharedStyles);
|
|
72
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { NavHeader } from './NavHeader';
|
|
1
|
+
export { NavHeader, NavHeaderProps } from './NavHeader';
|
|
@@ -8,7 +8,7 @@ export declare const NotificationContentBox: import("styled-components").StyledC
|
|
|
8
8
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
9
9
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
10
10
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
11
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
11
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
12
12
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
13
13
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
14
14
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -236,7 +236,7 @@ export declare const NotificationTitleBox: import("styled-components").StyledCom
|
|
|
236
236
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
237
237
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
238
238
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
239
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
239
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
240
240
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
241
241
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
242
242
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -26,7 +26,7 @@ exports.NumberField = void 0;
|
|
|
26
26
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
27
|
var react_1 = require("react");
|
|
28
28
|
var Field_1 = require("../Field");
|
|
29
|
-
var NumberInput_1 = require("../
|
|
29
|
+
var NumberInput_1 = require("../NumberInput");
|
|
30
30
|
exports.NumberField = (0, react_1.forwardRef)(function (_a, ref) {
|
|
31
31
|
var rest = __rest(_a, []);
|
|
32
32
|
return ((0, jsx_runtime_1.jsx)(Field_1.Field, __assign({}, rest, { ref: ref }, { children: (0, jsx_runtime_1.jsx)(NumberInput_1.NumberInput, {}) })));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumberField } from './NumberField';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NumberField = void 0;
|
|
4
|
+
var NumberField_1 = require("./NumberField");
|
|
5
|
+
Object.defineProperty(exports, "NumberField", { enumerable: true, get: function () { return NumberField_1.NumberField; } });
|
|
@@ -14,6 +14,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.NumberInput = void 0;
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var react_1 = require("react");
|
|
17
|
-
var Input_1 = require("
|
|
17
|
+
var Input_1 = require("../Input/Input");
|
|
18
18
|
var NumberInput = (0, react_1.forwardRef)(function (props, ref) { return ((0, jsx_runtime_1.jsx)(Input_1.Input, __assign({}, props, { keyboardType: "numeric", autoCapitalize: "none", autoCorrect: false, ref: ref }))); });
|
|
19
19
|
exports.NumberInput = NumberInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumberInput } from './NumberInput';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NumberInput = void 0;
|
|
4
|
+
var NumberInput_1 = require("./NumberInput");
|
|
5
|
+
Object.defineProperty(exports, "NumberInput", { enumerable: true, get: function () { return NumberInput_1.NumberInput; } });
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Text } from 'react-native';
|
|
3
|
+
export declare const P: import("react").ForwardRefExoticComponent<Pick<Omit<{
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
[x: number]: any;
|
|
6
|
+
[x: symbol]: any;
|
|
7
|
+
} & {
|
|
8
|
+
theme?: {
|
|
9
|
+
core: {
|
|
10
|
+
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
11
|
+
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
12
|
+
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
13
|
+
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
14
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
15
|
+
transition: Record<"medium" | "slow" | "fast", string>;
|
|
16
|
+
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
17
|
+
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
18
|
+
lightest: string;
|
|
19
|
+
lighter: string;
|
|
20
|
+
light: string;
|
|
21
|
+
base: string;
|
|
22
|
+
dark: string;
|
|
23
|
+
darker: string;
|
|
24
|
+
darkest: string;
|
|
25
|
+
}> & {
|
|
26
|
+
brand: Record<string, string>;
|
|
27
|
+
};
|
|
28
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
29
|
+
native: string;
|
|
30
|
+
web: string;
|
|
31
|
+
}>;
|
|
32
|
+
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
33
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
34
|
+
small: string | number;
|
|
35
|
+
large: string | number;
|
|
36
|
+
}>;
|
|
37
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
38
|
+
small: string | number;
|
|
39
|
+
large: string | number;
|
|
40
|
+
}>;
|
|
41
|
+
letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
|
|
42
|
+
};
|
|
43
|
+
semantic: {
|
|
44
|
+
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
45
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
46
|
+
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
47
|
+
focus: Record<"surface" | "outline" | "hover", string>;
|
|
48
|
+
inverted: Record<"surface" | "border", string> & {
|
|
49
|
+
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
50
|
+
};
|
|
51
|
+
success: {
|
|
52
|
+
border: string;
|
|
53
|
+
surface: string;
|
|
54
|
+
surfaceEmphasis: string;
|
|
55
|
+
message: string;
|
|
56
|
+
messageOnEmphasis: string;
|
|
57
|
+
};
|
|
58
|
+
warning: {
|
|
59
|
+
border: string;
|
|
60
|
+
surface: string;
|
|
61
|
+
surfaceEmphasis: string;
|
|
62
|
+
message: string;
|
|
63
|
+
messageOnEmphasis: string;
|
|
64
|
+
};
|
|
65
|
+
error: {
|
|
66
|
+
border: string;
|
|
67
|
+
surface: string;
|
|
68
|
+
surfaceEmphasis: string;
|
|
69
|
+
message: string;
|
|
70
|
+
messageOnEmphasis: string;
|
|
71
|
+
};
|
|
72
|
+
info: {
|
|
73
|
+
border: string;
|
|
74
|
+
surface: string;
|
|
75
|
+
surfaceEmphasis: string;
|
|
76
|
+
message: string;
|
|
77
|
+
messageOnEmphasis: string;
|
|
78
|
+
};
|
|
79
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
80
|
+
};
|
|
81
|
+
component: {
|
|
82
|
+
heading1: {
|
|
83
|
+
fontFamily: string;
|
|
84
|
+
fontWeight: string | number;
|
|
85
|
+
fontSize: {
|
|
86
|
+
small: string | number;
|
|
87
|
+
large: string | number;
|
|
88
|
+
};
|
|
89
|
+
lineHeight: {
|
|
90
|
+
small: string | number;
|
|
91
|
+
large: string | number;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
heading2: {
|
|
95
|
+
fontFamily: string;
|
|
96
|
+
fontWeight: string | number;
|
|
97
|
+
fontSize: {
|
|
98
|
+
small: string | number;
|
|
99
|
+
large: string | number;
|
|
100
|
+
};
|
|
101
|
+
lineHeight: {
|
|
102
|
+
small: string | number;
|
|
103
|
+
large: string | number;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
heading3: {
|
|
107
|
+
fontFamily: string;
|
|
108
|
+
fontWeight: string | number;
|
|
109
|
+
fontSize: {
|
|
110
|
+
small: string | number;
|
|
111
|
+
large: string | number;
|
|
112
|
+
};
|
|
113
|
+
lineHeight: {
|
|
114
|
+
small: string | number;
|
|
115
|
+
large: string | number;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
heading4: {
|
|
119
|
+
fontFamily: string;
|
|
120
|
+
fontWeight: string | number;
|
|
121
|
+
fontSize: {
|
|
122
|
+
small: string | number;
|
|
123
|
+
large: string | number;
|
|
124
|
+
};
|
|
125
|
+
lineHeight: {
|
|
126
|
+
small: string | number;
|
|
127
|
+
large: string | number;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
lead: {
|
|
131
|
+
fontFamily: string;
|
|
132
|
+
fontWeight: string | number;
|
|
133
|
+
fontSize: {
|
|
134
|
+
small: string | number;
|
|
135
|
+
large: string | number;
|
|
136
|
+
};
|
|
137
|
+
lineHeight: {
|
|
138
|
+
small: string | number;
|
|
139
|
+
large: string | number;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
body: {
|
|
143
|
+
fontFamily: string;
|
|
144
|
+
fontWeight: string | number;
|
|
145
|
+
fontSize: {
|
|
146
|
+
small: string | number;
|
|
147
|
+
large: string | number;
|
|
148
|
+
};
|
|
149
|
+
lineHeight: {
|
|
150
|
+
small: string | number;
|
|
151
|
+
large: string | number;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
small: {
|
|
155
|
+
fontFamily: string;
|
|
156
|
+
fontWeight: string | number;
|
|
157
|
+
fontSize: {
|
|
158
|
+
small: string | number;
|
|
159
|
+
large: string | number;
|
|
160
|
+
};
|
|
161
|
+
lineHeight: {
|
|
162
|
+
small: string | number;
|
|
163
|
+
large: string | number;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
label: {
|
|
167
|
+
fontFamily: string;
|
|
168
|
+
fontWeight: string | number;
|
|
169
|
+
fontSize: {
|
|
170
|
+
small: string | number;
|
|
171
|
+
large: string | number;
|
|
172
|
+
};
|
|
173
|
+
lineHeight: {
|
|
174
|
+
small: string | number;
|
|
175
|
+
large: string | number;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
cta: {
|
|
179
|
+
primary: {
|
|
180
|
+
message: string;
|
|
181
|
+
surface: string;
|
|
182
|
+
messageHover: string;
|
|
183
|
+
surfaceHover: string;
|
|
184
|
+
messageFocused: string;
|
|
185
|
+
surfaceFocused: string;
|
|
186
|
+
outlineFocused: string;
|
|
187
|
+
backgroundFocused: string;
|
|
188
|
+
};
|
|
189
|
+
secondary: {
|
|
190
|
+
message: string;
|
|
191
|
+
surface: string;
|
|
192
|
+
messageHover: string;
|
|
193
|
+
surfaceHover: string;
|
|
194
|
+
messageFocused: string;
|
|
195
|
+
surfaceFocused: string;
|
|
196
|
+
outlineFocused: string;
|
|
197
|
+
backgroundFocused: string;
|
|
198
|
+
};
|
|
199
|
+
destructive: {
|
|
200
|
+
message: string;
|
|
201
|
+
surface: string;
|
|
202
|
+
messageHover: string;
|
|
203
|
+
surfaceHover: string;
|
|
204
|
+
messageFocused: string;
|
|
205
|
+
surfaceFocused: string;
|
|
206
|
+
outlineFocused: string;
|
|
207
|
+
backgroundFocused: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
badge: {
|
|
211
|
+
variants: {
|
|
212
|
+
red: {
|
|
213
|
+
foreground: string;
|
|
214
|
+
background: string;
|
|
215
|
+
};
|
|
216
|
+
orange: {
|
|
217
|
+
foreground: string;
|
|
218
|
+
background: string;
|
|
219
|
+
};
|
|
220
|
+
yellow: {
|
|
221
|
+
foreground: string;
|
|
222
|
+
background: string;
|
|
223
|
+
};
|
|
224
|
+
green: {
|
|
225
|
+
foreground: string;
|
|
226
|
+
background: string;
|
|
227
|
+
};
|
|
228
|
+
blue: {
|
|
229
|
+
foreground: string;
|
|
230
|
+
background: string;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
} | undefined;
|
|
236
|
+
} & {
|
|
237
|
+
as?: string | import("react").ComponentType<any> | undefined;
|
|
238
|
+
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
|
239
|
+
}, import("../../hooks").BreakpointNames>, string | number | symbol> & import("react").RefAttributes<Text>>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
|
+
if (mod && mod.__esModule) return mod;
|
|
24
|
+
var result = {};
|
|
25
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
26
|
+
__setModuleDefault(result, mod);
|
|
27
|
+
return result;
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.P = void 0;
|
|
31
|
+
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
32
|
+
var utils_1 = require("../../utils");
|
|
33
|
+
var StyledP = styled_native_1.default.Text(function (_a) {
|
|
34
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
|
|
35
|
+
return (0, styled_native_1.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);
|
|
36
|
+
});
|
|
37
|
+
exports.P = (0, utils_1.styledComponentWithBreakpoints)(StyledP);
|
|
38
|
+
var templateObject_1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { P } from './P';
|
|
@@ -26,7 +26,7 @@ exports.PasswordField = void 0;
|
|
|
26
26
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
27
|
var react_1 = require("react");
|
|
28
28
|
var Field_1 = require("../Field");
|
|
29
|
-
var PasswordInput_1 = require("../
|
|
29
|
+
var PasswordInput_1 = require("../PasswordInput");
|
|
30
30
|
exports.PasswordField = (0, react_1.forwardRef)(function (_a, ref) {
|
|
31
31
|
var hasVisibilityToggle = _a.hasVisibilityToggle, rest = __rest(_a, ["hasVisibilityToggle"]);
|
|
32
32
|
return ((0, jsx_runtime_1.jsx)(Field_1.Field, __assign({}, rest, { ref: ref }, { children: (0, jsx_runtime_1.jsx)(PasswordInput_1.PasswordInput, { hasVisibilityToggle: hasVisibilityToggle }) })));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PasswordField } from './PasswordField';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PasswordField = void 0;
|
|
4
|
+
var PasswordField_1 = require("./PasswordField");
|
|
5
|
+
Object.defineProperty(exports, "PasswordField", { enumerable: true, get: function () { return PasswordField_1.PasswordField; } });
|
|
@@ -25,7 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
exports.PasswordInput = void 0;
|
|
26
26
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
27
|
var react_1 = require("react");
|
|
28
|
-
var Input_1 = require("
|
|
28
|
+
var Input_1 = require("../Input/Input");
|
|
29
29
|
var PasswordVisibilityToggle_1 = require("./PasswordVisibilityToggle");
|
|
30
30
|
var PasswordInput = (0, react_1.forwardRef)(function (_a, ref) {
|
|
31
31
|
var props = __rest(_a, []);
|
|
@@ -5,7 +5,7 @@ export declare const StyledPressable: import("styled-components").StyledComponen
|
|
|
5
5
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
6
6
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
7
7
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
8
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
8
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
9
9
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
10
10
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
11
11
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PasswordInput } from './PasswordInput';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PasswordInput = void 0;
|
|
4
|
+
var PasswordInput_1 = require("./PasswordInput");
|
|
5
|
+
Object.defineProperty(exports, "PasswordInput", { enumerable: true, get: function () { return PasswordInput_1.PasswordInput; } });
|
|
@@ -26,7 +26,7 @@ exports.PhoneField = void 0;
|
|
|
26
26
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
27
|
var react_1 = require("react");
|
|
28
28
|
var Field_1 = require("../Field");
|
|
29
|
-
var PhoneInput_1 = require("../
|
|
29
|
+
var PhoneInput_1 = require("../PhoneInput");
|
|
30
30
|
exports.PhoneField = (0, react_1.forwardRef)(function (_a, ref) {
|
|
31
31
|
var rest = __rest(_a, []);
|
|
32
32
|
return ((0, jsx_runtime_1.jsx)(Field_1.Field, __assign({}, rest, { ref: ref }, { children: (0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, {}) })));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PhoneField } from './PhoneField';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PhoneField = void 0;
|
|
4
|
+
var PhoneField_1 = require("./PhoneField");
|
|
5
|
+
Object.defineProperty(exports, "PhoneField", { enumerable: true, get: function () { return PhoneField_1.PhoneField; } });
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextInput } from 'react-native';
|
|
3
|
-
declare const PhoneInput: import("react").ForwardRefExoticComponent<import("react-native/types").TextInputProps & {
|
|
3
|
+
export declare const PhoneInput: import("react").ForwardRefExoticComponent<import("react-native/types").TextInputProps & {
|
|
4
4
|
invalid?: boolean | undefined;
|
|
5
5
|
stretch?: boolean | undefined;
|
|
6
6
|
iconLeft?: string | undefined;
|
|
7
7
|
iconRight?: string | undefined;
|
|
8
8
|
rightSlot?: import("react").ReactNode;
|
|
9
9
|
} & import("react").RefAttributes<TextInput>>;
|
|
10
|
-
export { PhoneInput };
|
|
@@ -14,6 +14,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.PhoneInput = void 0;
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var react_1 = require("react");
|
|
17
|
-
var Input_1 = require("
|
|
18
|
-
|
|
19
|
-
exports.PhoneInput = PhoneInput;
|
|
17
|
+
var Input_1 = require("../Input/Input");
|
|
18
|
+
exports.PhoneInput = (0, react_1.forwardRef)(function (props, ref) { return ((0, jsx_runtime_1.jsx)(Input_1.Input, __assign({}, props, { keyboardType: "phone-pad", autoCapitalize: "none", autoCorrect: false, ref: ref }))); });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PhoneInput } from './PhoneInput';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PhoneInput = void 0;
|
|
4
|
+
var PhoneInput_1 = require("./PhoneInput");
|
|
5
|
+
Object.defineProperty(exports, "PhoneInput", { enumerable: true, get: function () { return PhoneInput_1.PhoneInput; } });
|
|
@@ -17,7 +17,7 @@ declare const SelectOption: import("styled-components").StyledComponent<typeof i
|
|
|
17
17
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
18
18
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
19
19
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
20
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
20
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
21
21
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
22
22
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
23
23
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -48,7 +48,8 @@ var react_1 = require("react");
|
|
|
48
48
|
var react_native_1 = require("react-native");
|
|
49
49
|
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
50
50
|
var Icon_1 = require("../Icon");
|
|
51
|
-
var
|
|
51
|
+
var P_1 = require("../P");
|
|
52
|
+
var Strong_1 = require("../Strong");
|
|
52
53
|
var SelectInput = styled_native_1.default.TouchableOpacity(function (_a) {
|
|
53
54
|
var _b = _a.theme, semantic = _b.semantic, core = _b.core, hasError = _a.hasError;
|
|
54
55
|
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: row;\n align-items: center;\n background-color: ", ";\n border-color: ", ";\n border-width: ", "\n border-radius: ", ";\n padding-vertical: ", "\n padding-left: ", "\n padding-right: 14px;\n height: 44px;\n "], ["\n flex-direction: row;\n align-items: center;\n background-color: ", ";\n border-color: ", ";\n border-width: ", "\n border-radius: ", ";\n padding-vertical: ", "\n padding-left: ", "\n padding-right: 14px;\n height: 44px;\n "])), core.color.brand.white, hasError ? semantic.error.border : semantic.border.functional, core.borderWidth.small, core.radius.small, core.space[2], core.space[2]);
|
|
@@ -75,11 +76,11 @@ var RadioDot = styled_native_1.default.View(function (_a) {
|
|
|
75
76
|
var semantic = _a.theme.semantic, isChecked = _a.isChecked;
|
|
76
77
|
return (0, styled_native_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n position: absolute;\n top: 5px;\n width: 12px;\n height: 12px;\n border-radius: 12px;\n align-self: center;\n opacity: ", ";\n "], ["\n background-color: ", ";\n position: absolute;\n top: 5px;\n width: 12px;\n height: 12px;\n border-radius: 12px;\n align-self: center;\n opacity: ", ";\n "])), semantic.focus.outline, isChecked ? 1 : 0);
|
|
77
78
|
});
|
|
78
|
-
var StyledP = (0, styled_native_1.default)(
|
|
79
|
+
var StyledP = (0, styled_native_1.default)(P_1.P)(function (_a) {
|
|
79
80
|
var core = _a.theme.core;
|
|
80
81
|
return (0, styled_native_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n margin-top: ", ";\n margin-bottom: ", ";\n "])), core.space[3], core.space[3]);
|
|
81
82
|
});
|
|
82
|
-
var StyledCategory = (0, styled_native_1.default)(
|
|
83
|
+
var StyledCategory = (0, styled_native_1.default)(P_1.P)(function (_a) {
|
|
83
84
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic;
|
|
84
85
|
return (0, styled_native_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-size: ", ";\n color: ", "\n background-color: ", ";\n padding-horizontal: ", ";\n padding-vertical: ", ";\n "], ["\n font-size: ", ";\n color: ", "\n background-color: ", ";\n padding-horizontal: ", ";\n padding-vertical: ", ";\n "])), core.fontSize.label.large, semantic.message.secondary, semantic.surface.cutout, core.space[4], core.space[1]);
|
|
85
86
|
});
|
|
@@ -97,7 +98,7 @@ var Select = function (_a) {
|
|
|
97
98
|
label: "-- ".concat(noOptionMessage, " --"),
|
|
98
99
|
value: 'default',
|
|
99
100
|
};
|
|
100
|
-
return ((0, jsx_runtime_1.jsxs)(react_native_1.View, { children: [(0, jsx_runtime_1.jsxs)(SelectInput, __assign({ testID: testID, hasError: hasError, onPress: function () { return setOpen(!isOpen); } }, { children: [(0, jsx_runtime_1.jsx)(
|
|
101
|
+
return ((0, jsx_runtime_1.jsxs)(react_native_1.View, { children: [(0, jsx_runtime_1.jsxs)(SelectInput, __assign({ testID: testID, hasError: hasError, onPress: function () { return setOpen(!isOpen); } }, { children: [(0, jsx_runtime_1.jsx)(P_1.P, __assign({ style: { marginTop: 0, marginBottom: 0 } }, { children: selected.value === 'default' ? '' : selected.label })), (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "chevron-down", size: 16, style: { marginLeft: 'auto' } })] })), (0, jsx_runtime_1.jsx)(react_native_1.Modal, __assign({ transparent: true, visible: isOpen, animationType: "fade", onRequestClose: function () { return setOpen(false); } }, { children: (0, jsx_runtime_1.jsx)(DropdownWrapper, { children: (0, jsx_runtime_1.jsx)(DropdownContainer, { children: (0, jsx_runtime_1.jsxs)(react_native_1.ScrollView, __assign({ nestedScrollEnabled: true }, { children: [(0, jsx_runtime_1.jsxs)(SelectOption, __assign({ accessibilityRole: "radio", onPress: function () { return handleOptionPress(requiredOption); } }, { children: [(0, jsx_runtime_1.jsx)(StyledP, { children: (0, jsx_runtime_1.jsx)(Strong_1.Strong, { children: requiredOption.label }) }), (0, jsx_runtime_1.jsx)(Radio, __assign({ isChecked: selected.value === requiredOption.value }, { children: (0, jsx_runtime_1.jsx)(RadioDot, { isChecked: selected.value === requiredOption.value }) }))] })), Object.keys(optionsByCategories).map(function (category) { return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [category !== 'undefined' ? ((0, jsx_runtime_1.jsx)(StyledCategory, { children: category })) : null, optionsByCategories[category].map(function (option, i) { return ((0, jsx_runtime_1.jsxs)(SelectOption, __assign({ accessibilityRole: "radio", isLastOption: i === optionsByCategories[category].length - 1, onPress: function () { return handleOptionPress(option); } }, { children: [(0, jsx_runtime_1.jsx)(StyledP, { children: (0, jsx_runtime_1.jsx)(Strong_1.Strong, { children: option.label }) }), (0, jsx_runtime_1.jsx)(Radio, __assign({ isChecked: selected.value === option.value }, { children: (0, jsx_runtime_1.jsx)(RadioDot, { isChecked: selected.value === option.value }) }))] }), option.label)); })] }, category)); })] })) }) }) }))] }));
|
|
101
102
|
};
|
|
102
103
|
exports.Select = Select;
|
|
103
104
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SkeletonAnimation } from './SkeletonAnimation';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SkeletonAnimation = void 0;
|
|
4
|
+
var SkeletonAnimation_1 = require("./SkeletonAnimation");
|
|
5
|
+
Object.defineProperty(exports, "SkeletonAnimation", { enumerable: true, get: function () { return SkeletonAnimation_1.SkeletonAnimation; } });
|
|
@@ -28,15 +28,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
28
28
|
exports.SkeletonCTA = void 0;
|
|
29
29
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
30
|
var styled_native_1 = __importDefault(require("../../styled.native"));
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var StyledSkeletonCTA = (0, styled_native_1.default)(Skeleton_1.Skeleton)(function (_a) {
|
|
31
|
+
var P_1 = require("../P");
|
|
32
|
+
var SkeletonAnimation_1 = require("../SkeletonAnimation");
|
|
33
|
+
var StyledSkeletonCTA = styled_native_1.default.View(function (_a) {
|
|
35
34
|
var core = _a.theme.core, size = _a.size;
|
|
36
35
|
return "\n background-color: ".concat(core.color.neutral.light, ";\n width: ").concat(size, ";\n height: ").concat(core.space[12], ";\n ");
|
|
37
36
|
});
|
|
38
37
|
var SkeletonCTA = function (_a) {
|
|
39
38
|
var _b = _a.size, size = _b === void 0 ? '250px' : _b, rest = __rest(_a, ["size"]);
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)(SkeletonAnimation_1.SkeletonAnimation, { children: (0, jsx_runtime_1.jsx)(StyledSkeletonCTA, __assign({ as:
|
|
39
|
+
return ((0, jsx_runtime_1.jsx)(SkeletonAnimation_1.SkeletonAnimation, { children: (0, jsx_runtime_1.jsx)(StyledSkeletonCTA, __assign({ as: P_1.P, size: size }, rest)) }));
|
|
41
40
|
};
|
|
42
41
|
exports.SkeletonCTA = SkeletonCTA;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SkeletonCTA } from './SkeletonCTA';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SkeletonCTA = void 0;
|
|
4
|
+
var SkeletonCTA_1 = require("./SkeletonCTA");
|
|
5
|
+
Object.defineProperty(exports, "SkeletonCTA", { enumerable: true, get: function () { return SkeletonCTA_1.SkeletonCTA; } });
|