@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
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var CurrencyField_1 = require("./CurrencyField");
|
|
5
|
-
Object.defineProperty(exports, "CurrencyField", { enumerable: true, get: function () { return CurrencyField_1.CurrencyField; } });
|
|
3
|
+
exports.TextField = void 0;
|
|
6
4
|
var TextField_1 = require("./TextField");
|
|
7
5
|
Object.defineProperty(exports, "TextField", { enumerable: true, get: function () { return TextField_1.TextField; } });
|
|
8
|
-
var NumberField_1 = require("./NumberField");
|
|
9
|
-
Object.defineProperty(exports, "NumberField", { enumerable: true, get: function () { return NumberField_1.NumberField; } });
|
|
10
|
-
var TelField_1 = require("./TelField");
|
|
11
|
-
Object.defineProperty(exports, "TelField", { enumerable: true, get: function () { return TelField_1.TelField; } });
|
|
12
|
-
var PhoneField_1 = require("./PhoneField");
|
|
13
|
-
Object.defineProperty(exports, "PhoneField", { enumerable: true, get: function () { return PhoneField_1.PhoneField; } });
|
|
14
|
-
var EmailField_1 = require("./EmailField");
|
|
15
|
-
Object.defineProperty(exports, "EmailField", { enumerable: true, get: function () { return EmailField_1.EmailField; } });
|
|
16
|
-
var PasswordField_1 = require("./PasswordField");
|
|
17
|
-
Object.defineProperty(exports, "PasswordField", { enumerable: true, get: function () { return PasswordField_1.PasswordField; } });
|
|
18
|
-
var TextareaField_1 = require("./TextareaField");
|
|
19
|
-
Object.defineProperty(exports, "TextareaField", { enumerable: true, get: function () { return TextareaField_1.TextareaField; } });
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.TextGroup = void 0;
|
|
26
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
+
var react_1 = require("react");
|
|
28
|
+
var react_native_1 = require("react-native");
|
|
29
|
+
var TextGroup = function (_a) {
|
|
30
|
+
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
31
|
+
var filteredChildren = [];
|
|
32
|
+
react_1.Children.forEach(children, function (child) {
|
|
33
|
+
if ((0, react_1.isValidElement)(child)) {
|
|
34
|
+
filteredChildren.push(child);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(react_native_1.View, __assign({}, rest, { children: react_1.Children.map(filteredChildren, function (child, index) {
|
|
38
|
+
if (!(0, react_1.isValidElement)(child)) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
var style = __assign(__assign(__assign({}, child.props.style), (index === 0 ? { marginTop: 0 } : {})), { marginBottom: 0 });
|
|
42
|
+
return (0, react_1.cloneElement)(child, {
|
|
43
|
+
style: style,
|
|
44
|
+
});
|
|
45
|
+
}) })));
|
|
46
|
+
};
|
|
47
|
+
exports.TextGroup = TextGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextGroup } from './TextGroup';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextGroup = void 0;
|
|
4
|
+
var TextGroup_1 = require("./TextGroup");
|
|
5
|
+
Object.defineProperty(exports, "TextGroup", { enumerable: true, get: function () { return TextGroup_1.TextGroup; } });
|
|
@@ -14,6 +14,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.TextInput = 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 TextInput = (0, react_1.forwardRef)(function (props, ref) { return ((0, jsx_runtime_1.jsx)(Input_1.Input, __assign({}, props, { keyboardType: "default", ref: ref }))); });
|
|
19
19
|
exports.TextInput = TextInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextInput } from './TextInput';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextInput = void 0;
|
|
4
|
+
var TextInput_1 = require("./TextInput");
|
|
5
|
+
Object.defineProperty(exports, "TextInput", { enumerable: true, get: function () { return TextInput_1.TextInput; } });
|
|
@@ -26,7 +26,7 @@ exports.TextareaField = 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 TextareaInput_1 = require("../
|
|
29
|
+
var TextareaInput_1 = require("../TextareaInput");
|
|
30
30
|
exports.TextareaField = (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)(TextareaInput_1.TextareaInput, {}) })));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextareaField } from './TextareaField';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextareaField = void 0;
|
|
4
|
+
var TextareaField_1 = require("./TextareaField");
|
|
5
|
+
Object.defineProperty(exports, "TextareaField", { enumerable: true, get: function () { return TextareaField_1.TextareaField; } });
|
|
@@ -54,7 +54,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
54
54
|
var react_1 = require("react");
|
|
55
55
|
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
56
56
|
var utils_1 = require("../../utils");
|
|
57
|
-
var Input_1 = require("
|
|
57
|
+
var Input_1 = require("../Input/Input");
|
|
58
58
|
var StyledInput = (0, styled_native_1.default)(Input_1.Input)(function (_a) {
|
|
59
59
|
var core = _a.theme.core, rows = _a.rows;
|
|
60
60
|
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: ", " ", " ", " ", ";\n height: ", "px;\n "], ["\n padding: ", " ", " ", " ", ";\n height: ", "px;\n "])), core.space[3], core.space[2], core.space[2], core.space[2], (0, utils_1.pxToNumber)(core.space[8]) * rows);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextareaInput, TextareaInputProps } from './TextareaInput';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextareaInput = void 0;
|
|
4
|
+
var TextareaInput_1 = require("./TextareaInput");
|
|
5
|
+
Object.defineProperty(exports, "TextareaInput", { enumerable: true, get: function () { return TextareaInput_1.TextareaInput; } });
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './Accordion';
|
|
2
2
|
export * from './ActionList';
|
|
3
|
+
export * from './ActionCard';
|
|
3
4
|
export * from './Badge';
|
|
4
5
|
export * from './Card';
|
|
5
6
|
export * from './Checkbox';
|
|
@@ -13,18 +14,41 @@ export * from './ErrorSummaryNotification';
|
|
|
13
14
|
export * from './Field';
|
|
14
15
|
export * from './Grid';
|
|
15
16
|
export * from './NavHeader';
|
|
16
|
-
export * from './
|
|
17
|
+
export * from './Heading1';
|
|
18
|
+
export * from './Heading2';
|
|
19
|
+
export * from './Heading3';
|
|
20
|
+
export * from './Heading4';
|
|
17
21
|
export * from './Icon';
|
|
18
|
-
export * from './Input';
|
|
19
22
|
export * from './List';
|
|
20
23
|
export * from './Margin';
|
|
21
24
|
export * from './Notification';
|
|
22
25
|
export * from './Radio';
|
|
23
26
|
export * from './Stack';
|
|
24
27
|
export * from './Tabs';
|
|
25
|
-
export * from './
|
|
28
|
+
export * from './TextGroup';
|
|
29
|
+
export * from './P';
|
|
30
|
+
export * from './Strong';
|
|
31
|
+
export * from './Small';
|
|
32
|
+
export * from './Em';
|
|
33
|
+
export * from './LineThrough';
|
|
26
34
|
export * from './TextField';
|
|
27
35
|
export * from './TextLink';
|
|
28
36
|
export * from './DataTable';
|
|
29
|
-
export * from './SkeletonLoading';
|
|
30
37
|
export * from './SelectField';
|
|
38
|
+
export * from './CurrencyField';
|
|
39
|
+
export * from './PasswordField';
|
|
40
|
+
export * from './EmailField';
|
|
41
|
+
export * from './TextareaField';
|
|
42
|
+
export * from './NumberField';
|
|
43
|
+
export * from './PhoneField';
|
|
44
|
+
export * from './PhoneInput';
|
|
45
|
+
export * from './TextInput';
|
|
46
|
+
export * from './EmailInput';
|
|
47
|
+
export * from './NumberInput';
|
|
48
|
+
export * from './TextareaInput';
|
|
49
|
+
export * from './PasswordInput';
|
|
50
|
+
export * from './CurrencyInput';
|
|
51
|
+
export * from './SkeletonCircle';
|
|
52
|
+
export * from './SkeletonCTA';
|
|
53
|
+
export * from './SkeletonHeading';
|
|
54
|
+
export * from './SkeletonText';
|
package/dist/components/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Accordion"), exports);
|
|
18
18
|
__exportStar(require("./ActionList"), exports);
|
|
19
|
+
__exportStar(require("./ActionCard"), exports);
|
|
19
20
|
__exportStar(require("./Badge"), exports);
|
|
20
21
|
__exportStar(require("./Card"), exports);
|
|
21
22
|
__exportStar(require("./Checkbox"), exports);
|
|
@@ -29,18 +30,41 @@ __exportStar(require("./ErrorSummaryNotification"), exports);
|
|
|
29
30
|
__exportStar(require("./Field"), exports);
|
|
30
31
|
__exportStar(require("./Grid"), exports);
|
|
31
32
|
__exportStar(require("./NavHeader"), exports);
|
|
32
|
-
__exportStar(require("./
|
|
33
|
+
__exportStar(require("./Heading1"), exports);
|
|
34
|
+
__exportStar(require("./Heading2"), exports);
|
|
35
|
+
__exportStar(require("./Heading3"), exports);
|
|
36
|
+
__exportStar(require("./Heading4"), exports);
|
|
33
37
|
__exportStar(require("./Icon"), exports);
|
|
34
|
-
__exportStar(require("./Input"), exports);
|
|
35
38
|
__exportStar(require("./List"), exports);
|
|
36
39
|
__exportStar(require("./Margin"), exports);
|
|
37
40
|
__exportStar(require("./Notification"), exports);
|
|
38
41
|
__exportStar(require("./Radio"), exports);
|
|
39
42
|
__exportStar(require("./Stack"), exports);
|
|
40
43
|
__exportStar(require("./Tabs"), exports);
|
|
41
|
-
__exportStar(require("./
|
|
44
|
+
__exportStar(require("./TextGroup"), exports);
|
|
45
|
+
__exportStar(require("./P"), exports);
|
|
46
|
+
__exportStar(require("./Strong"), exports);
|
|
47
|
+
__exportStar(require("./Small"), exports);
|
|
48
|
+
__exportStar(require("./Em"), exports);
|
|
49
|
+
__exportStar(require("./LineThrough"), exports);
|
|
42
50
|
__exportStar(require("./TextField"), exports);
|
|
43
51
|
__exportStar(require("./TextLink"), exports);
|
|
44
52
|
__exportStar(require("./DataTable"), exports);
|
|
45
|
-
__exportStar(require("./SkeletonLoading"), exports);
|
|
46
53
|
__exportStar(require("./SelectField"), exports);
|
|
54
|
+
__exportStar(require("./CurrencyField"), exports);
|
|
55
|
+
__exportStar(require("./PasswordField"), exports);
|
|
56
|
+
__exportStar(require("./EmailField"), exports);
|
|
57
|
+
__exportStar(require("./TextareaField"), exports);
|
|
58
|
+
__exportStar(require("./NumberField"), exports);
|
|
59
|
+
__exportStar(require("./PhoneField"), exports);
|
|
60
|
+
__exportStar(require("./PhoneInput"), exports);
|
|
61
|
+
__exportStar(require("./TextInput"), exports);
|
|
62
|
+
__exportStar(require("./EmailInput"), exports);
|
|
63
|
+
__exportStar(require("./NumberInput"), exports);
|
|
64
|
+
__exportStar(require("./TextareaInput"), exports);
|
|
65
|
+
__exportStar(require("./PasswordInput"), exports);
|
|
66
|
+
__exportStar(require("./CurrencyInput"), exports);
|
|
67
|
+
__exportStar(require("./SkeletonCircle"), exports);
|
|
68
|
+
__exportStar(require("./SkeletonCTA"), exports);
|
|
69
|
+
__exportStar(require("./SkeletonHeading"), exports);
|
|
70
|
+
__exportStar(require("./SkeletonText"), exports);
|
|
@@ -27,12 +27,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
27
27
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
28
|
import { Component, useCallback, useContext, useEffect, useMemo, useState, } from 'react';
|
|
29
29
|
import Animated, { interpolateColor, runOnUI, useAnimatedStyle, useDerivedValue, useSharedValue, withTiming, } from 'react-native-reanimated';
|
|
30
|
+
import { useLayout } from '../../hooks/use-layout';
|
|
30
31
|
import { ThemeContext } from '../../styled.native';
|
|
31
32
|
import { pxToNumber } from '../../utils';
|
|
32
|
-
import { Heading4 } from '../
|
|
33
|
+
import { Heading4 } from '../Heading4';
|
|
33
34
|
import { AccordionGroupContext } from './Group';
|
|
34
35
|
import { AccordionIcon } from './Icon';
|
|
35
|
-
import { useLayout } from './hooks';
|
|
36
36
|
import { StyledAccordion, StyledAccordionHeader, StyledContainer, } from './styles';
|
|
37
37
|
export function withAnimated(WrappedComponent) {
|
|
38
38
|
var displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
@@ -98,7 +98,7 @@ export var Accordion = function (_a) {
|
|
|
98
98
|
var headerStyle = useAnimatedStyle(function () { return ({
|
|
99
99
|
color: interpolateColor(progress.value, [0, 1], [semantic.message.branded, semantic.message.base]),
|
|
100
100
|
}); });
|
|
101
|
-
return (_jsxs(StyledAccordion, __assign({ first: first, last: last }, { children: [_jsxs(StyledAccordionHeader, __assign({ accessibilityState: { expanded: open }, onPress: toggleOpen, testID: "accordionTitle" }, { children: [_jsx(AnimatedHeading, __assign({ style: [
|
|
101
|
+
return (_jsxs(StyledAccordion, __assign({ first: first, last: last, isExpanded: open }, { children: [_jsxs(StyledAccordionHeader, __assign({ accessibilityState: { expanded: open }, onPress: toggleOpen, testID: "accordionTitle" }, { children: [_jsx(AnimatedHeading, __assign({ style: [
|
|
102
102
|
headerStyle,
|
|
103
103
|
{
|
|
104
104
|
paddingTop: pxToNumber(core.space[1]),
|
|
@@ -5,8 +5,8 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
5
5
|
import Animated from 'react-native-reanimated';
|
|
6
6
|
import styled, { css } from '../../styled.native';
|
|
7
7
|
export var StyledAccordion = styled(Animated.View)(function (_a) {
|
|
8
|
-
var _b = _a.theme, semantic = _b.semantic, core = _b.core, first = _a.first, last = _a.last;
|
|
9
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n border-width: ", ";\n border-color: ", ";\n border-bottom-width: 0;\n\n ", "\n\n ", "\n "], ["\n width: 100%;\n border-width: ", ";\n border-color: ", ";\n border-bottom-width: 0;\n\n ", "\n\n ", "\n "])), core.borderWidth.small, semantic.border.differentiated, first
|
|
8
|
+
var _b = _a.theme, semantic = _b.semantic, core = _b.core, first = _a.first, last = _a.last, isExpanded = _a.isExpanded;
|
|
9
|
+
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n border-width: ", ";\n border-color: ", ";\n border-bottom-width: 0;\n background-color: ", ";\n transition: background-color ", ";\n\n ", "\n\n ", "\n "], ["\n width: 100%;\n border-width: ", ";\n border-color: ", ";\n border-bottom-width: 0;\n background-color: ", ";\n transition: background-color ", ";\n\n ", "\n\n ", "\n "])), core.borderWidth.small, semantic.border.differentiated, isExpanded ? core.color.brand.white : 'transparent', core.transition.fast, first
|
|
10
10
|
? {
|
|
11
11
|
borderTopLeftRadius: core.radius.small,
|
|
12
12
|
borderTopRightRadius: core.radius.small,
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActionCard } from './ActionCard';
|
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { forwardRef } from 'react';
|
|
25
25
|
import { Field } from '../Field';
|
|
26
|
-
import { CurrencyInput } from '../
|
|
26
|
+
import { CurrencyInput } from '../CurrencyInput';
|
|
27
27
|
export var CurrencyField = forwardRef(function (_a, ref) {
|
|
28
28
|
var rest = __rest(_a, []);
|
|
29
29
|
return (_jsx(Field, __assign({ affixWidth: 40 }, rest, { ref: ref }, { children: _jsx(CurrencyInput, {}) })));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CurrencyField } from './CurrencyField';
|
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { forwardRef, createRef } from 'react';
|
|
25
25
|
import { mergeRefs } from '../../utils';
|
|
26
|
-
import { NumberInput } from '
|
|
26
|
+
import { NumberInput } from '../NumberInput';
|
|
27
27
|
var CurrencyInput = forwardRef(function (_a, ref) {
|
|
28
28
|
var _b = _a.currency, currency = _b === void 0 ? 'GBP' : _b, invalid = _a.invalid, _c = _a.accessibilityLabel, accessibilityLabel = _c === void 0 ? '' : _c, rest = __rest(_a, ["currency", "invalid", "accessibilityLabel"]);
|
|
29
29
|
var inputRef = createRef();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CurrencyInput } from './CurrencyInput';
|
|
@@ -22,7 +22,7 @@ import { mergeRefs, getText } from '../../utils';
|
|
|
22
22
|
import { ErrorText } from '../ErrorText';
|
|
23
23
|
import { FormGroup } from '../FormGroup';
|
|
24
24
|
import { HintText } from '../HintText';
|
|
25
|
-
import { NumberInput } from '../
|
|
25
|
+
import { NumberInput } from '../NumberInput';
|
|
26
26
|
import { LabelText } from '../LabelText';
|
|
27
27
|
import { Stack } from '../Stack';
|
|
28
28
|
import { SubLabelText } from '../SubLabelText';
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Em } from './Em';
|
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { forwardRef } from 'react';
|
|
25
25
|
import { Field } from '../Field';
|
|
26
|
-
import { EmailInput } from '../
|
|
26
|
+
import { EmailInput } from '../EmailInput';
|
|
27
27
|
export var EmailField = forwardRef(function (_a, ref) {
|
|
28
28
|
var rest = __rest(_a, []);
|
|
29
29
|
return (_jsx(Field, __assign({}, rest, { ref: ref }, { children: _jsx(EmailInput, {}) })));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmailField } from './EmailField';
|
|
@@ -11,6 +11,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { forwardRef } from 'react';
|
|
14
|
-
import { Input } from '
|
|
14
|
+
import { Input } from '../Input/Input';
|
|
15
15
|
var EmailInput = forwardRef(function (props, ref) { return (_jsx(Input, __assign({}, props, { keyboardType: "email-address", autoCapitalize: "none", autoCorrect: false, ref: ref }))); });
|
|
16
16
|
export { EmailInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmailInput } from './EmailInput';
|
|
@@ -0,0 +1,44 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Heading1 } from './Heading1';
|
|
@@ -0,0 +1,44 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Heading2 } from './Heading2';
|