@ovotech/element-native 3.3.2 → 3.4.0-canary-951cfd3-142
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 +7 -241
- package/dist/components/List/List.js +45 -92
- 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
|
@@ -53,12 +53,12 @@ exports.Accordion = exports.withAnimated = void 0;
|
|
|
53
53
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
54
54
|
var react_1 = require("react");
|
|
55
55
|
var react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
|
|
56
|
+
var use_layout_1 = require("../../hooks/use-layout");
|
|
56
57
|
var styled_native_1 = require("../../styled.native");
|
|
57
58
|
var utils_1 = require("../../utils");
|
|
58
|
-
var
|
|
59
|
+
var Heading4_1 = require("../Heading4");
|
|
59
60
|
var Group_1 = require("./Group");
|
|
60
61
|
var Icon_1 = require("./Icon");
|
|
61
|
-
var hooks_1 = require("./hooks");
|
|
62
62
|
var styles_1 = require("./styles");
|
|
63
63
|
function withAnimated(WrappedComponent) {
|
|
64
64
|
var displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
@@ -81,11 +81,11 @@ var Accordion = function (_a) {
|
|
|
81
81
|
var _b = _a.expanded, expanded = _b === void 0 ? false : _b, first = _a.first, last = _a.last, title = _a.title, children = _a.children, onToggle = _a.onToggle;
|
|
82
82
|
var _c = (0, react_1.useContext)(styled_native_1.ThemeContext), core = _c.core, semantic = _c.semantic;
|
|
83
83
|
var Header = (0, react_1.useContext)(Group_1.AccordionGroupContext).Header;
|
|
84
|
-
var AccordionHeading = Header !== null && Header !== void 0 ? Header :
|
|
84
|
+
var AccordionHeading = Header !== null && Header !== void 0 ? Header : Heading4_1.Heading4;
|
|
85
85
|
var AnimatedHeading = (0, react_1.useMemo)(function () { return withAnimated(AccordionHeading); }, [
|
|
86
86
|
AccordionHeading,
|
|
87
87
|
]);
|
|
88
|
-
var _d = (0,
|
|
88
|
+
var _d = (0, use_layout_1.useLayout)(0), layout = _d[0], onLayout = _d[1];
|
|
89
89
|
var _e = (0, react_1.useState)(expanded), open = _e[0], setOpen = _e[1];
|
|
90
90
|
var handleHeightContent = (0, react_1.useMemo)(function () { return layout.height || 100; }, [
|
|
91
91
|
layout.height,
|
|
@@ -125,7 +125,7 @@ var Accordion = function (_a) {
|
|
|
125
125
|
var headerStyle = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
|
|
126
126
|
color: (0, react_native_reanimated_1.interpolateColor)(progress.value, [0, 1], [semantic.message.branded, semantic.message.base]),
|
|
127
127
|
}); });
|
|
128
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.StyledAccordion, __assign({ first: first, last: last }, { children: [(0, jsx_runtime_1.jsxs)(styles_1.StyledAccordionHeader, __assign({ accessibilityState: { expanded: open }, onPress: toggleOpen, testID: "accordionTitle" }, { children: [(0, jsx_runtime_1.jsx)(AnimatedHeading, __assign({ style: [
|
|
128
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.StyledAccordion, __assign({ first: first, last: last, isExpanded: open }, { children: [(0, jsx_runtime_1.jsxs)(styles_1.StyledAccordionHeader, __assign({ accessibilityState: { expanded: open }, onPress: toggleOpen, testID: "accordionTitle" }, { children: [(0, jsx_runtime_1.jsx)(AnimatedHeading, __assign({ style: [
|
|
129
129
|
headerStyle,
|
|
130
130
|
{
|
|
131
131
|
paddingTop: (0, utils_1.pxToNumber)(core.space[1]),
|
|
@@ -5,7 +5,7 @@ export declare const StyledAccordion: 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", {
|
|
@@ -229,6 +229,7 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
|
|
|
229
229
|
}, {
|
|
230
230
|
first?: boolean | undefined;
|
|
231
231
|
last?: boolean | undefined;
|
|
232
|
+
isExpanded: boolean;
|
|
232
233
|
}, never>;
|
|
233
234
|
export declare const StyledAccordionHeader: import("styled-components").StyledComponent<typeof import("react-native").TouchableOpacity, {
|
|
234
235
|
core: {
|
|
@@ -236,7 +237,7 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
|
|
|
236
237
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
237
238
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
238
239
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
239
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
240
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
240
241
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
241
242
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
242
243
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -464,7 +465,7 @@ export declare const StyledContainer: import("styled-components").StyledComponen
|
|
|
464
465
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
465
466
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
466
467
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
467
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
468
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
468
469
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
469
470
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
470
471
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -34,8 +34,8 @@ exports.StyledContainer = exports.StyledAccordionHeader = exports.StyledAccordio
|
|
|
34
34
|
var react_native_reanimated_1 = __importDefault(require("react-native-reanimated"));
|
|
35
35
|
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
36
36
|
exports.StyledAccordion = (0, styled_native_1.default)(react_native_reanimated_1.default.View)(function (_a) {
|
|
37
|
-
var _b = _a.theme, semantic = _b.semantic, core = _b.core, first = _a.first, last = _a.last;
|
|
38
|
-
return (0, styled_native_1.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
|
|
37
|
+
var _b = _a.theme, semantic = _b.semantic, core = _b.core, first = _a.first, last = _a.last, isExpanded = _a.isExpanded;
|
|
38
|
+
return (0, styled_native_1.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
|
|
39
39
|
? {
|
|
40
40
|
borderTopLeftRadius: core.radius.small,
|
|
41
41
|
borderTopRightRadius: core.radius.small,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ImageSourcePropType } from 'react-native';
|
|
3
|
+
import { CTAVariantName } from '../CTAButton/CTAButton';
|
|
4
|
+
export declare type ActionCardProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
body?: string | ReactElement;
|
|
7
|
+
onPressCloseButton?: () => void;
|
|
8
|
+
onPressActionButton?: () => void;
|
|
9
|
+
onPressIndicator?: () => void;
|
|
10
|
+
onMount?: () => void;
|
|
11
|
+
ctaVariant?: CTAVariantName;
|
|
12
|
+
image?: ImageSourcePropType;
|
|
13
|
+
buttonTitle?: string;
|
|
14
|
+
accessibilityLabel?: string;
|
|
15
|
+
inverted?: boolean;
|
|
16
|
+
inline?: boolean;
|
|
17
|
+
testID?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const ActionCard: ({ onPressCloseButton, onPressActionButton, onPressIndicator, onMount, body, title, buttonTitle, ctaVariant, image, testID, accessibilityLabel, inverted, inline, }: ActionCardProps) => JSX.Element;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.ActionCard = void 0;
|
|
41
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
|
+
var masked_view_1 = __importDefault(require("@react-native-masked-view/masked-view"));
|
|
43
|
+
var react_1 = require("react");
|
|
44
|
+
var react_native_1 = require("react-native");
|
|
45
|
+
var __1 = require("../");
|
|
46
|
+
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
47
|
+
var P_1 = require("../P");
|
|
48
|
+
var CloseIconShape_1 = require("./CloseIconShape");
|
|
49
|
+
var IndicatorIconShape_1 = require("./IndicatorIconShape");
|
|
50
|
+
var StyledCard = styled_native_1.default.Pressable(function (_a) {
|
|
51
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inline = _a.inline, inverted = _a.inverted, reducedBottomPadding = _a.reducedBottomPadding;
|
|
52
|
+
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 ");
|
|
53
|
+
});
|
|
54
|
+
var StyledP = (0, styled_native_1.default)(P_1.P)(function (_a) {
|
|
55
|
+
var semantic = _a.theme.semantic, inverted = _a.inverted;
|
|
56
|
+
return "\n color: ".concat(inverted ? semantic.inverted.message.base : semantic.message.base, ";\n");
|
|
57
|
+
});
|
|
58
|
+
var ActionCard = function (_a) {
|
|
59
|
+
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;
|
|
60
|
+
var _e = (0, react_1.useContext)(styled_native_1.ThemeContext), core = _e.core, semantic = _e.semantic;
|
|
61
|
+
(0, react_1.useEffect)(function () {
|
|
62
|
+
if (onMount) {
|
|
63
|
+
onMount();
|
|
64
|
+
}
|
|
65
|
+
}, []);
|
|
66
|
+
var Heading = inline ? __1.Heading3 : __1.Heading2;
|
|
67
|
+
return ((0, jsx_runtime_1.jsx)(StyledCard, __assign({ onPress: onPressIndicator, inline: inline, inverted: inverted, reducedBottomPadding: Boolean(buttonTitle && !ctaVariant), testID: "".concat(testID, "-card") }, { children: (0, jsx_runtime_1.jsxs)(react_native_1.View, __assign({ style: { flexDirection: 'row' } }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ style: { flex: 1 } }, { children: (0, jsx_runtime_1.jsxs)(__1.Stack, __assign({ spaceBetween: 2 }, { children: [(0, jsx_runtime_1.jsx)(Heading, __assign({ style: {
|
|
68
|
+
color: inverted
|
|
69
|
+
? semantic.inverted.message.link
|
|
70
|
+
: semantic.message.branded,
|
|
71
|
+
paddingRight: image || !onPressCloseButton ? 0 : parseInt(core.space[6]),
|
|
72
|
+
}, testID: "".concat(testID, "-heading") }, { children: title })), (0, jsx_runtime_1.jsxs)(react_native_1.View, { children: [typeof body === 'string' ? ((0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ style: {
|
|
73
|
+
paddingRight: !image && !title && onPressCloseButton
|
|
74
|
+
? parseInt(core.space[6])
|
|
75
|
+
: 0,
|
|
76
|
+
} }, { children: (0, jsx_runtime_1.jsx)(StyledP, __assign({ inverted: inverted }, { children: body })) }))) : (body), buttonTitle && onPressActionButton && !onPressIndicator ? (!ctaVariant ? ((0, jsx_runtime_1.jsx)(__1.Action, __assign({ inverted: inverted, onPress: onPressActionButton, testID: "".concat(testID, "-button") }, { children: buttonTitle }))) : ((0, jsx_runtime_1.jsx)(__1.Margin, __assign({ top: 4 }, { children: (0, jsx_runtime_1.jsx)(__1.CTAButton, __assign({ onPress: onPressActionButton, testID: "".concat(testID, "-button"), variant: ctaVariant }, { children: buttonTitle })) })))) : null] })] })) })), image ? ((0, jsx_runtime_1.jsx)(masked_view_1.default, __assign({ style: {
|
|
77
|
+
flex: 1,
|
|
78
|
+
flexDirection: 'row',
|
|
79
|
+
height: '100%',
|
|
80
|
+
marginTop: -16,
|
|
81
|
+
marginRight: -16,
|
|
82
|
+
}, maskElement: (0, jsx_runtime_1.jsx)(react_native_1.View, { style: {
|
|
83
|
+
width: '100%',
|
|
84
|
+
height: 165,
|
|
85
|
+
backgroundColor: 'olive',
|
|
86
|
+
transform: [
|
|
87
|
+
{ rotate: '-16deg' },
|
|
88
|
+
{ translateX: 40 },
|
|
89
|
+
{ translateY: 25 },
|
|
90
|
+
],
|
|
91
|
+
} }) }, { children: (0, jsx_runtime_1.jsx)(react_native_1.Image, { resizeMode: "cover", source: image, style: {
|
|
92
|
+
width: '100%',
|
|
93
|
+
height: 200,
|
|
94
|
+
position: 'absolute',
|
|
95
|
+
top: 0,
|
|
96
|
+
right: 0,
|
|
97
|
+
}, accessible: true, accessibilityRole: "image", accessibilityLabel: accessibilityLabel }) }))) : null, onPressIndicator ? ((0, jsx_runtime_1.jsxs)(react_native_1.Pressable, __assign({ style: {
|
|
98
|
+
position: 'absolute',
|
|
99
|
+
right: -16,
|
|
100
|
+
bottom: -16,
|
|
101
|
+
}, onPress: onPressIndicator, testID: "".concat(testID, "-indicator-button") }, { children: [(0, jsx_runtime_1.jsx)(IndicatorIconShape_1.IndicatorIconShape, {}), (0, jsx_runtime_1.jsx)(__1.Icon, { size: 14, style: {
|
|
102
|
+
position: 'absolute',
|
|
103
|
+
right: inline ? 8 : 6,
|
|
104
|
+
bottom: 16,
|
|
105
|
+
}, color: semantic.surface.elevated, name: "chevron-right", accessibilityLabel: "chevron-right" })] }))) : null, onPressCloseButton && !onPressIndicator ? ((0, jsx_runtime_1.jsxs)(react_native_1.Pressable, __assign({ style: {
|
|
106
|
+
position: 'absolute',
|
|
107
|
+
right: -16,
|
|
108
|
+
top: -16,
|
|
109
|
+
}, onPress: onPressCloseButton, testID: "".concat(testID, "-close-button") }, { children: [(0, jsx_runtime_1.jsx)(CloseIconShape_1.CloseIconShape, {}), (0, jsx_runtime_1.jsx)(__1.Icon, { size: 14, style: {
|
|
110
|
+
position: 'absolute',
|
|
111
|
+
top: inline ? 14 : 12,
|
|
112
|
+
right: inline ? 14 : 12,
|
|
113
|
+
}, color: semantic.surface.elevated, name: "cross", accessibilityLabel: "close" })] }))) : null] })) })));
|
|
114
|
+
};
|
|
115
|
+
exports.ActionCard = ActionCard;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.CloseIconShape = void 0;
|
|
41
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
|
+
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
43
|
+
var styled_native_1 = __importDefault(require("../../styled.native"));
|
|
44
|
+
var StyledPath = (0, styled_native_1.default)(react_native_svg_1.Path)(function (_a) {
|
|
45
|
+
var semantic = _a.theme.semantic, color = _a.color;
|
|
46
|
+
return "\n fill: ".concat(color !== null && color !== void 0 ? color : semantic.message.branded, "\n");
|
|
47
|
+
});
|
|
48
|
+
var CloseIconShape = function (_a) {
|
|
49
|
+
var color = _a.color;
|
|
50
|
+
return ((0, jsx_runtime_1.jsxs)(react_native_svg_1.default, __assign({ width: 44, height: 44 }, { children: [(0, jsx_runtime_1.jsx)(StyledPath, { color: color, d: "M11.632 44 0 0h44v35.402L11.632 44Z" }), (0, jsx_runtime_1.jsx)(react_native_svg_1.Defs, { children: (0, jsx_runtime_1.jsx)(react_native_svg_1.ClipPath, __assign({ id: "a" }, { children: (0, jsx_runtime_1.jsx)(react_native_svg_1.Path, { fill: "#fff", d: "M16 16h12v12H16z" }) })) })] })));
|
|
51
|
+
};
|
|
52
|
+
exports.CloseIconShape = CloseIconShape;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.IndicatorIconShape = void 0;
|
|
41
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
|
+
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
43
|
+
var styled_native_1 = __importDefault(require("../../styled.native"));
|
|
44
|
+
var StyledPath = (0, styled_native_1.default)(react_native_svg_1.Path)(function (_a) {
|
|
45
|
+
var semantic = _a.theme.semantic, color = _a.color;
|
|
46
|
+
return "\n fill: ".concat(color !== null && color !== void 0 ? color : semantic.message.branded, "\n");
|
|
47
|
+
});
|
|
48
|
+
var IndicatorIconShape = function (_a) {
|
|
49
|
+
var color = _a.color;
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)(react_native_svg_1.default, __assign({ width: 32, height: 48 }, { children: (0, jsx_runtime_1.jsx)(StyledPath, { color: color, d: "M0 9.5 32 1v47H10.5L0 9.5Z" }) })));
|
|
51
|
+
};
|
|
52
|
+
exports.IndicatorIconShape = IndicatorIconShape;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActionCard } from './ActionCard';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActionCard = void 0;
|
|
4
|
+
var ActionCard_1 = require("./ActionCard");
|
|
5
|
+
Object.defineProperty(exports, "ActionCard", { enumerable: true, get: function () { return ActionCard_1.ActionCard; } });
|
|
@@ -8,7 +8,7 @@ export declare const StyledActionWrapper: import("styled-components").StyledComp
|
|
|
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", {
|
|
@@ -239,7 +239,7 @@ export declare const StyledActionInner: import("styled-components").StyledCompon
|
|
|
239
239
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
240
240
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
241
241
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
242
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
242
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
243
243
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
244
244
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
245
245
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -469,7 +469,7 @@ export declare const StyledActionText: import("styled-components").StyledCompone
|
|
|
469
469
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
470
470
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
471
471
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
472
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
472
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
473
473
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
474
474
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
475
475
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -701,7 +701,7 @@ export declare const StyledRightIcon: import("styled-components").StyledComponen
|
|
|
701
701
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
702
702
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
703
703
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
704
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
704
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
705
705
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
706
706
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
707
707
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -932,7 +932,7 @@ export declare const StyledLeftIcon: import("styled-components").StyledComponent
|
|
|
932
932
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
933
933
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
934
934
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
935
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
935
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
936
936
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
937
937
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
938
938
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -8,7 +8,7 @@ declare const StyledBadge: import("styled-components").StyledComponent<typeof im
|
|
|
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", {
|
|
@@ -4,7 +4,7 @@ export declare const Card: import("styled-components").StyledComponent<typeof im
|
|
|
4
4
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
5
5
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
6
6
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
7
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
7
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
8
8
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
9
9
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
10
10
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -26,7 +26,7 @@ exports.CurrencyField = 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 CurrencyInput_1 = require("../
|
|
29
|
+
var CurrencyInput_1 = require("../CurrencyInput");
|
|
30
30
|
exports.CurrencyField = (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({ affixWidth: 40 }, rest, { ref: ref }, { children: (0, jsx_runtime_1.jsx)(CurrencyInput_1.CurrencyInput, {}) })));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CurrencyField } from './CurrencyField';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CurrencyField = void 0;
|
|
4
|
+
var CurrencyField_1 = require("./CurrencyField");
|
|
5
|
+
Object.defineProperty(exports, "CurrencyField", { enumerable: true, get: function () { return CurrencyField_1.CurrencyField; } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextInput } from 'react-native';
|
|
3
|
-
import { InputProps } from '
|
|
3
|
+
import { InputProps } from '../Input/Input';
|
|
4
4
|
export declare type CurrencyInputProps = InputProps & {
|
|
5
5
|
currency?: 'GBP' | 'EUR' | 'AUD' | 'USD';
|
|
6
6
|
};
|
|
@@ -26,7 +26,7 @@ exports.CurrencyInput = void 0;
|
|
|
26
26
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
27
|
var react_1 = require("react");
|
|
28
28
|
var utils_1 = require("../../utils");
|
|
29
|
-
var NumberInput_1 = require("
|
|
29
|
+
var NumberInput_1 = require("../NumberInput");
|
|
30
30
|
var CurrencyInput = (0, react_1.forwardRef)(function (_a, ref) {
|
|
31
31
|
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"]);
|
|
32
32
|
var inputRef = (0, react_1.createRef)();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CurrencyInput, CurrencyInputProps } from './CurrencyInput';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CurrencyInput = void 0;
|
|
4
|
+
var CurrencyInput_1 = require("./CurrencyInput");
|
|
5
|
+
Object.defineProperty(exports, "CurrencyInput", { enumerable: true, get: function () { return CurrencyInput_1.CurrencyInput; } });
|
|
@@ -5,7 +5,7 @@ export declare const StyledTableContainer: import("styled-components").StyledCom
|
|
|
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", {
|
|
@@ -233,7 +233,7 @@ export declare const TableHeader: import("styled-components").StyledComponent<ty
|
|
|
233
233
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
234
234
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
235
235
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
236
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
236
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
237
237
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
238
238
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
239
239
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -463,7 +463,7 @@ export declare const TableHeaderText: import("styled-components").StyledComponen
|
|
|
463
463
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
464
464
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
465
465
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
466
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
466
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
467
467
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
468
468
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
469
469
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -691,7 +691,7 @@ export declare const TableCaptionText: import("styled-components").StyledCompone
|
|
|
691
691
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
692
692
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
693
693
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
694
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
694
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
695
695
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
696
696
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
697
697
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -919,7 +919,7 @@ export declare const CellText: import("styled-components").StyledComponent<typeo
|
|
|
919
919
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
920
920
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
921
921
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
922
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
922
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
923
923
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
924
924
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
925
925
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -1147,7 +1147,7 @@ export declare const TableCaption: import("styled-components").StyledComponent<t
|
|
|
1147
1147
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
1148
1148
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
1149
1149
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
1150
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
1150
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
1151
1151
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
1152
1152
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
1153
1153
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -1375,7 +1375,7 @@ export declare const TableRow: import("styled-components").StyledComponent<typeo
|
|
|
1375
1375
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
1376
1376
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
1377
1377
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
1378
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
1378
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
1379
1379
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
1380
1380
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
1381
1381
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -1605,7 +1605,7 @@ export declare const TableRowHeading: import("styled-components").StyledComponen
|
|
|
1605
1605
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
1606
1606
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
1607
1607
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
1608
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
1608
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
1609
1609
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
1610
1610
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
1611
1611
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -1833,7 +1833,7 @@ export declare const TableBody: import("styled-components").StyledComponent<type
|
|
|
1833
1833
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
1834
1834
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
1835
1835
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
1836
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
1836
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
1837
1837
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
1838
1838
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
1839
1839
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -2061,7 +2061,7 @@ export declare const TableCell: import("styled-components").StyledComponent<type
|
|
|
2061
2061
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
2062
2062
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
2063
2063
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
2064
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
2064
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
2065
2065
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
2066
2066
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
2067
2067
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -2291,7 +2291,7 @@ export declare const RowHeading: import("styled-components").StyledComponent<typ
|
|
|
2291
2291
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
2292
2292
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
2293
2293
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
2294
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
2294
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
2295
2295
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
2296
2296
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
2297
2297
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -48,7 +48,7 @@ var utils_1 = require("../../utils");
|
|
|
48
48
|
var ErrorText_1 = require("../ErrorText");
|
|
49
49
|
var FormGroup_1 = require("../FormGroup");
|
|
50
50
|
var HintText_1 = require("../HintText");
|
|
51
|
-
var
|
|
51
|
+
var NumberInput_1 = require("../NumberInput");
|
|
52
52
|
var LabelText_1 = require("../LabelText");
|
|
53
53
|
var Stack_1 = require("../Stack");
|
|
54
54
|
var SubLabelText_1 = require("../SubLabelText");
|
|
@@ -85,6 +85,6 @@ exports.DateField = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
85
85
|
internalRef.current.focus();
|
|
86
86
|
}
|
|
87
87
|
}; };
|
|
88
|
-
return ((0, jsx_runtime_1.jsx)(FormGroup_1.FormGroup, __assign({ error: hasError }, { children: (0, jsx_runtime_1.jsxs)(Stack_1.Stack, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, { children: [(0, jsx_runtime_1.jsxs)(LabelText_1.LabelText, { children: [label, optional ? ' (optional)' : null] }), hint ? (0, jsx_runtime_1.jsx)(HintText_1.HintText, { children: hint }) : null, error ? (0, jsx_runtime_1.jsx)(ErrorText_1.ErrorText, { children: error }) : null] }), (0, jsx_runtime_1.jsxs)(InlineFields, __assign({ stretch: stretch }, { children: [(0, jsx_runtime_1.jsxs)(DayField, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, __assign({ onPress: focusRef(dayRef), accessible: false }, { children: (0, jsx_runtime_1.jsx)(SubLabelText_1.SubLabelText, { children: "Day" }) })), (0, jsx_runtime_1.jsx)(
|
|
88
|
+
return ((0, jsx_runtime_1.jsx)(FormGroup_1.FormGroup, __assign({ error: hasError }, { children: (0, jsx_runtime_1.jsxs)(Stack_1.Stack, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, { children: [(0, jsx_runtime_1.jsxs)(LabelText_1.LabelText, { children: [label, optional ? ' (optional)' : null] }), hint ? (0, jsx_runtime_1.jsx)(HintText_1.HintText, { children: hint }) : null, error ? (0, jsx_runtime_1.jsx)(ErrorText_1.ErrorText, { children: error }) : null] }), (0, jsx_runtime_1.jsxs)(InlineFields, __assign({ stretch: stretch }, { children: [(0, jsx_runtime_1.jsxs)(DayField, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, __assign({ onPress: focusRef(dayRef), accessible: false }, { children: (0, jsx_runtime_1.jsx)(SubLabelText_1.SubLabelText, { children: "Day" }) })), (0, jsx_runtime_1.jsx)(NumberInput_1.NumberInput, { ref: (0, utils_1.mergeRefs)(dayRef, ref), accessibilityLabel: accessibilityLabel('Day'), invalid: hasError, value: value.day, onChangeText: handleChange('day'), testID: testID, stretch: true, editable: editable })] })), (0, jsx_runtime_1.jsxs)(MonthField, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, __assign({ onPress: focusRef(monthRef), accessible: false }, { children: (0, jsx_runtime_1.jsx)(SubLabelText_1.SubLabelText, { children: "Month" }) })), (0, jsx_runtime_1.jsx)(NumberInput_1.NumberInput, { ref: monthRef, accessibilityLabel: accessibilityLabel('Month'), invalid: hasError, value: value.month, onChangeText: handleChange('month'), testID: "".concat(testID, "-month"), stretch: true, editable: editable })] })), (0, jsx_runtime_1.jsxs)(YearField, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, __assign({ onPress: focusRef(yearRef), accessible: false }, { children: (0, jsx_runtime_1.jsx)(SubLabelText_1.SubLabelText, { children: "Year" }) })), (0, jsx_runtime_1.jsx)(NumberInput_1.NumberInput, { ref: yearRef, accessibilityLabel: accessibilityLabel('Year'), invalid: hasError, value: value.year, onChangeText: handleChange('year'), testID: "".concat(testID, "-year"), stretch: true, editable: editable })] }))] }))] })) })));
|
|
89
89
|
});
|
|
90
90
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -11,7 +11,7 @@ export declare const Dl: import("react").ForwardRefExoticComponent<Pick<Omit<{
|
|
|
11
11
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
12
12
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
13
13
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
14
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
14
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
15
15
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
16
16
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
17
17
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|