@ovotech/element-native 2.1.0 → 2.2.0-canary-ea79e4d-74

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.
Files changed (147) hide show
  1. package/dist/components/Accordion/Accordion.js +20 -19
  2. package/dist/components/Accordion/Icon.js +7 -10
  3. package/dist/components/Accordion/styles.d.ts +688 -46
  4. package/dist/components/Accordion/styles.js +56 -49
  5. package/dist/components/Badge/Badge.d.ts +237 -8
  6. package/dist/components/Badge/Badge.js +35 -16
  7. package/dist/components/CTAButton/CTAButton.d.ts +7 -12
  8. package/dist/components/CTAButton/CTAButton.js +18 -19
  9. package/dist/components/CTALink/CTALink.d.ts +3 -3
  10. package/dist/components/Card/Card.d.ts +228 -5
  11. package/dist/components/Card/Card.js +5 -25
  12. package/dist/components/Checkbox/Checkbox.js +14 -19
  13. package/dist/components/DataTable/DataTable.d.ts +3 -12
  14. package/dist/components/DataTable/DataTable.js +8 -71
  15. package/dist/components/DataTable/TableRow.d.ts +2 -0
  16. package/dist/components/DataTable/TableRow.js +33 -0
  17. package/dist/components/DataTable/index.d.ts +2 -0
  18. package/dist/components/DataTable/index.js +16 -0
  19. package/dist/components/DataTable/styles.d.ts +2517 -0
  20. package/dist/components/DataTable/styles.js +77 -0
  21. package/dist/components/DataTable/types.d.ts +15 -0
  22. package/dist/components/DataTable/types.js +2 -0
  23. package/dist/components/DateField/DateField.js +9 -9
  24. package/dist/components/DescriptionList/DescriptionList.d.ts +10 -0
  25. package/dist/components/DescriptionList/DescriptionList.js +66 -0
  26. package/dist/components/DescriptionList/index.d.ts +1 -0
  27. package/dist/components/DescriptionList/index.js +6 -0
  28. package/dist/components/DescriptionList/styled.d.ts +241 -0
  29. package/dist/components/DescriptionList/styled.js +88 -0
  30. package/dist/components/Disclosure/Disclosure.js +7 -10
  31. package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +1 -1
  32. package/dist/components/ErrorText/ErrorText.d.ts +228 -1
  33. package/dist/components/ErrorText/ErrorText.js +1 -1
  34. package/dist/components/Field/Field.js +3 -3
  35. package/dist/components/Grid/Col.d.ts +228 -1
  36. package/dist/components/Grid/Row.d.ts +228 -1
  37. package/dist/components/Heading/Heading.js +8 -24
  38. package/dist/components/HintText/HintText.d.ts +228 -1
  39. package/dist/components/HintText/HintText.js +1 -1
  40. package/dist/components/Icon/Icon.d.ts +2 -3
  41. package/dist/components/Icon/Icon.js +2 -2
  42. package/dist/components/Input/Input.d.ts +1 -1
  43. package/dist/components/Input/Input.js +13 -16
  44. package/dist/components/Input/PasswordInput.styled.d.ts +228 -1
  45. package/dist/components/Input/PasswordInput.styled.js +2 -5
  46. package/dist/components/Input/PasswordVisibilityToggle.js +2 -5
  47. package/dist/components/Input/{TelInput.d.ts → PhoneInput.d.ts} +2 -2
  48. package/dist/components/Input/{TelInput.js → PhoneInput.js} +3 -3
  49. package/dist/components/Input/TextareaInput.js +11 -9
  50. package/dist/components/Input/index.d.ts +1 -1
  51. package/dist/components/Input/index.js +3 -3
  52. package/dist/components/LabelText/LabelText.d.ts +228 -1
  53. package/dist/components/LabelText/LabelText.js +1 -1
  54. package/dist/components/List/List.d.ts +706 -3
  55. package/dist/components/List/List.js +18 -5
  56. package/dist/components/Margin/Margin.d.ts +228 -1
  57. package/dist/components/NavHeader/NavHeader.js +4 -4
  58. package/dist/components/Notification/Notification.d.ts +466 -20
  59. package/dist/components/Notification/Notification.js +32 -44
  60. package/dist/components/Radio/Radio.js +13 -29
  61. package/dist/components/SelectField/Select.d.ts +244 -0
  62. package/dist/components/SelectField/Select.js +101 -0
  63. package/dist/components/SelectField/SelectField.d.ts +7 -0
  64. package/dist/components/SelectField/SelectField.js +38 -0
  65. package/dist/components/SelectField/index.d.ts +1 -0
  66. package/dist/components/SelectField/index.js +5 -0
  67. package/dist/components/SkeletonLoading/Skeleton.d.ts +228 -1
  68. package/dist/components/SubLabelText/SubLabelText.d.ts +228 -1
  69. package/dist/components/SubLabelText/SubLabelText.js +1 -1
  70. package/dist/components/SummaryList/SummaryList.d.ts +4 -0
  71. package/dist/components/SummaryList/SummaryList.js +5 -0
  72. package/dist/components/Tabs/Tab.js +22 -19
  73. package/dist/components/Tabs/TabList.d.ts +11 -1
  74. package/dist/components/Tabs/TabList.js +19 -16
  75. package/dist/components/Tabs/TabPanel.js +32 -6
  76. package/dist/components/Tabs/Tabs.d.ts +8 -6
  77. package/dist/components/Tabs/Tabs.js +10 -6
  78. package/dist/components/Text/Text.d.ts +1140 -5
  79. package/dist/components/Text/Text.js +6 -10
  80. package/dist/components/TextField/PhoneField.d.ts +10 -0
  81. package/dist/components/TextField/PhoneField.js +56 -0
  82. package/dist/components/TextField/TelField.d.ts +4 -0
  83. package/dist/components/TextField/TelField.js +7 -2
  84. package/dist/components/TextField/index.d.ts +1 -0
  85. package/dist/components/TextField/index.js +3 -1
  86. package/dist/components/TextLink/TextLink.js +2 -2
  87. package/dist/components/index.d.ts +2 -0
  88. package/dist/components/index.js +2 -0
  89. package/dist/esm/components/Accordion/Accordion.js +23 -22
  90. package/dist/esm/components/Accordion/Icon.js +8 -8
  91. package/dist/esm/components/Accordion/styles.js +29 -48
  92. package/dist/esm/components/Badge/Badge.js +35 -16
  93. package/dist/esm/components/CTAButton/CTAButton.js +20 -21
  94. package/dist/esm/components/Card/Card.js +5 -25
  95. package/dist/esm/components/Checkbox/Checkbox.js +12 -20
  96. package/dist/esm/components/DataTable/DataTable.js +3 -66
  97. package/dist/esm/components/DataTable/TableRow.js +26 -0
  98. package/dist/esm/components/DataTable/index.js +2 -0
  99. package/dist/esm/components/DataTable/styles.js +51 -0
  100. package/dist/esm/components/DataTable/types.js +1 -0
  101. package/dist/esm/components/DateField/DateField.js +9 -9
  102. package/dist/esm/components/DescriptionList/DescriptionList.js +39 -0
  103. package/dist/esm/components/DescriptionList/index.js +1 -0
  104. package/dist/esm/components/DescriptionList/styled.js +57 -0
  105. package/dist/esm/components/Disclosure/Disclosure.js +9 -12
  106. package/dist/esm/components/ErrorText/ErrorText.js +1 -1
  107. package/dist/esm/components/Field/Field.js +3 -3
  108. package/dist/esm/components/Heading/Heading.js +8 -24
  109. package/dist/esm/components/HintText/HintText.js +1 -1
  110. package/dist/esm/components/Icon/Icon.js +2 -2
  111. package/dist/esm/components/Input/Input.js +15 -18
  112. package/dist/esm/components/Input/PasswordInput.styled.js +2 -5
  113. package/dist/esm/components/Input/PasswordVisibilityToggle.js +3 -6
  114. package/dist/esm/components/Input/{TelInput.js → PhoneInput.js} +2 -2
  115. package/dist/esm/components/Input/TextareaInput.js +11 -9
  116. package/dist/esm/components/Input/index.js +1 -1
  117. package/dist/esm/components/LabelText/LabelText.js +1 -1
  118. package/dist/esm/components/List/List.js +17 -5
  119. package/dist/esm/components/NavHeader/NavHeader.js +4 -4
  120. package/dist/esm/components/Notification/Notification.js +34 -46
  121. package/dist/esm/components/Radio/Radio.js +13 -29
  122. package/dist/esm/components/SelectField/Select.js +74 -0
  123. package/dist/esm/components/SelectField/SelectField.js +31 -0
  124. package/dist/esm/components/SelectField/index.js +1 -0
  125. package/dist/esm/components/SubLabelText/SubLabelText.js +1 -1
  126. package/dist/esm/components/SummaryList/SummaryList.js +5 -0
  127. package/dist/esm/components/Tabs/Tab.js +22 -16
  128. package/dist/esm/components/Tabs/TabList.js +18 -16
  129. package/dist/esm/components/Tabs/TabPanel.js +9 -6
  130. package/dist/esm/components/Tabs/Tabs.js +9 -6
  131. package/dist/esm/components/Text/Text.js +6 -10
  132. package/dist/esm/components/TextField/PhoneField.js +30 -0
  133. package/dist/esm/components/TextField/TelField.js +7 -2
  134. package/dist/esm/components/TextField/index.js +1 -0
  135. package/dist/esm/components/TextLink/TextLink.js +2 -2
  136. package/dist/esm/components/index.js +2 -0
  137. package/dist/esm/providers/icons/Logo.js +6 -3
  138. package/dist/esm/theme/create-theme.js +2 -176
  139. package/dist/esm/theme/index.js +13 -2
  140. package/dist/providers/icons/Logo.js +5 -2
  141. package/dist/styled.native.d.ts +1363 -1
  142. package/dist/theme/create-theme.d.ts +1 -1
  143. package/dist/theme/create-theme.js +2 -176
  144. package/dist/theme/index.d.ts +228 -2
  145. package/dist/theme/index.js +13 -2
  146. package/dist/theme/theme.d.ts +1 -110
  147. package/package.json +9 -6
@@ -49,7 +49,7 @@ var __rest = (this && this.__rest) || function (s, e) {
49
49
  return t;
50
50
  };
51
51
  Object.defineProperty(exports, "__esModule", { value: true });
52
- exports.Dd = exports.Dt = exports.Dl = exports.Li = exports.Ol = exports.Ul = void 0;
52
+ exports.ListWrapper = exports.Dd = exports.Dt = exports.Dl = exports.Li = exports.Ol = exports.Ul = void 0;
53
53
  var react_1 = __importStar(require("react"));
54
54
  var react_native_1 = require("react-native");
55
55
  var hooks_1 = require("../../hooks");
@@ -72,7 +72,7 @@ var StyledBullet = styled_native_1.default.Text(function (_a) {
72
72
  var lineHeight = smallAndUp
73
73
  ? list.listItem.lineHeight[1]
74
74
  : list.listItem.lineHeight[0];
75
- return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n margin-right: ", ";\n width: ", ";\n text-align: right;\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n margin-right: ", ";\n width: ", ";\n text-align: right;\n "])), text.fontFamily, lineHeight, text.fontWeight, text.color, fontSize, list.listItem.bulletGap, space[4]);
75
+ return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n margin-right: ", ";\n width: ", ";\n text-align: right;\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n margin-right: ", ";\n width: ", ";\n text-align: right;\n "])), text.fontFamily, lineHeight, text.color, fontSize, list.listItem.bulletGap, space[4]);
76
76
  });
77
77
  var StyledUlItem = styled_native_1.default.View(function () { return (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-direction: row;\n align-items: flex-start;\n justify-content: center;\n "], ["\n flex-direction: row;\n align-items: flex-start;\n justify-content: center;\n "]))); });
78
78
  var Bullet = (0, utils_1.styledComponentWithBreakpoints)(StyledBullet);
@@ -93,6 +93,7 @@ var StyledList = styled_native_1.default.View(function (_a) {
93
93
  return (0, styled_native_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n margin-top: ", ";\n margin-bottom: ", ";\n "])), smallAndUp ? list.marginTop[1] : list.marginTop[0], smallAndUp ? list.marginBottom[1] : list.marginBottom[0]);
94
94
  });
95
95
  var ListWrapper = (0, utils_1.styledComponentWithBreakpoints)(StyledList);
96
+ exports.ListWrapper = ListWrapper;
96
97
  var Ul = function (_a) {
97
98
  var children = _a.children, _b = _a.showBullets, showBullets = _b === void 0 ? true : _b, rest = __rest(_a, ["children", "showBullets"]);
98
99
  var list = (0, react_1.useContext)(styled_native_1.ThemeContext).list;
@@ -115,10 +116,14 @@ var StyledLi = styled_native_1.default.Text(function (_a) {
115
116
  var lineHeight = smallAndUp
116
117
  ? list.listItem.lineHeight[1]
117
118
  : list.listItem.lineHeight[0];
118
- return (0, styled_native_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), text.fontFamily, lineHeight, text.fontWeight, text.color, fontSize);
119
+ return (0, styled_native_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), text.fontFamily, lineHeight, text.color, fontSize);
119
120
  });
120
121
  var Li = (0, utils_1.styledComponentWithBreakpoints)(StyledLi);
121
122
  exports.Li = Li;
123
+ /**
124
+ * @deprecated This component has been deprecated and will be removed in a future release.
125
+ * Please use the DescriptionList component instead.
126
+ * */
122
127
  var Dl = ListWrapper;
123
128
  exports.Dl = Dl;
124
129
  var StyledDtText = styled_native_1.default.Text(function (_a) {
@@ -129,7 +134,7 @@ var StyledDtText = styled_native_1.default.Text(function (_a) {
129
134
  var lineHeight = smallAndUp
130
135
  ? list.listItem.lineHeight[1]
131
136
  : list.listItem.lineHeight[0];
132
- return (0, styled_native_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), list.descriptionTerm.fontFamily, list.descriptionTerm.fontWeight, lineHeight, list.descriptionTerm.color, fontSize);
137
+ return (0, styled_native_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), list.descriptionTerm.fontFamily, lineHeight, list.descriptionTerm.color, fontSize);
133
138
  });
134
139
  var DtText = (0, utils_1.styledComponentWithBreakpoints)(StyledDtText);
135
140
  var StyledDtItem = styled_native_1.default.View(function (_a) {
@@ -143,6 +148,10 @@ var StyledDtItem = styled_native_1.default.View(function (_a) {
143
148
  return (0, styled_native_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin-top: ", ";\n margin-bottom: ", ";\n flex-direction: row;\n "], ["\n margin-top: ", ";\n margin-bottom: ", ";\n flex-direction: row;\n "])), marginTop, marginBottom);
144
149
  });
145
150
  var DtItem = (0, utils_1.styledComponentWithBreakpoints)(StyledDtItem);
151
+ /**
152
+ * @deprecated This component has been deprecated and will be removed in a future release.
153
+ * Please use the DescriptionList component instead.
154
+ * */
146
155
  var Dt = function (_a) {
147
156
  var children = _a.children, rest = __rest(_a, ["children"]);
148
157
  return (react_1.default.createElement(DtItem, __assign({}, rest),
@@ -157,8 +166,12 @@ var StyledDdText = styled_native_1.default.Text(function (_a) {
157
166
  var lineHeight = smallAndUp
158
167
  ? list.listItem.lineHeight[1]
159
168
  : list.listItem.lineHeight[0];
160
- return (0, styled_native_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), text.fontFamily, lineHeight, text.fontWeight, text.color, fontSize);
169
+ return (0, styled_native_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), text.fontFamily, lineHeight, text.color, fontSize);
161
170
  });
171
+ /**
172
+ * @deprecated This component has been deprecated and will be removed in a future release.
173
+ * Please use the DescriptionList component instead.
174
+ * */
162
175
  var Dd = function (_a) {
163
176
  var children = _a.children, rest = __rest(_a, ["children"]);
164
177
  var breakpoints = (0, hooks_1.useBreakpoint)();
@@ -12,7 +12,234 @@ declare type MProps = {
12
12
  all?: SpaceKey | SpaceKey[];
13
13
  breakpoints: Breakpoints;
14
14
  };
15
- declare const StyledMargin: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme, MProps, never>;
15
+ declare const StyledMargin: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
16
+ core: {
17
+ radius: Record<"small" | "medium" | "large" | "max", string>;
18
+ borderWidth: Record<"small" | "medium" | "large", string>;
19
+ breakpoint: Record<"small" | "medium" | "large", string | number>;
20
+ mediaQuery: Record<"small" | "medium" | "large", string>;
21
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
22
+ transition: Record<"medium" | "slow" | "fast", string>;
23
+ opacity: Record<"solid" | "transparent" | "translucent", string | number>;
24
+ color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
25
+ lightest: string;
26
+ lighter: string;
27
+ light: string;
28
+ base: string;
29
+ dark: string;
30
+ darker: string;
31
+ darkest: string;
32
+ }> & {
33
+ brand: Record<string, string>;
34
+ };
35
+ fontFamily: Record<"heading" | "body" | "mono" | "bodyBold", {
36
+ native: string;
37
+ web: string;
38
+ }>;
39
+ fontWeight: Record<"bold" | "book" | "black", string | number>;
40
+ fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
41
+ small: string | number;
42
+ large: string | number;
43
+ }>;
44
+ lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
45
+ small: string | number;
46
+ large: string | number;
47
+ }>;
48
+ letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
49
+ };
50
+ semantic: {
51
+ surface: Record<"base" | "cutout" | "elevated", string>;
52
+ message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
53
+ border: Record<"graphic" | "differentiated" | "functional", string>;
54
+ focus: Record<"surface" | "outline" | "hover", string>;
55
+ inverted: Record<"border" | "surface", string> & {
56
+ message: Record<"base" | "link" | "secondary" | "branded", string>;
57
+ };
58
+ success: {
59
+ border: string;
60
+ surface: string;
61
+ surfaceEmphasis: string;
62
+ message: string;
63
+ messageOnEmphasis: string;
64
+ };
65
+ warning: {
66
+ border: string;
67
+ surface: string;
68
+ surfaceEmphasis: string;
69
+ message: string;
70
+ messageOnEmphasis: string;
71
+ };
72
+ error: {
73
+ border: string;
74
+ surface: string;
75
+ surfaceEmphasis: string;
76
+ message: string;
77
+ messageOnEmphasis: string;
78
+ };
79
+ info: {
80
+ border: string;
81
+ surface: string;
82
+ surfaceEmphasis: string;
83
+ message: string;
84
+ messageOnEmphasis: string;
85
+ };
86
+ data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
87
+ };
88
+ component: {
89
+ heading1: {
90
+ fontFamily: string;
91
+ fontWeight: string | number;
92
+ fontSize: {
93
+ small: string | number;
94
+ large: string | number;
95
+ };
96
+ lineHeight: {
97
+ small: string | number;
98
+ large: string | number;
99
+ };
100
+ };
101
+ heading2: {
102
+ fontFamily: string;
103
+ fontWeight: string | number;
104
+ fontSize: {
105
+ small: string | number;
106
+ large: string | number;
107
+ };
108
+ lineHeight: {
109
+ small: string | number;
110
+ large: string | number;
111
+ };
112
+ };
113
+ heading3: {
114
+ fontFamily: string;
115
+ fontWeight: string | number;
116
+ fontSize: {
117
+ small: string | number;
118
+ large: string | number;
119
+ };
120
+ lineHeight: {
121
+ small: string | number;
122
+ large: string | number;
123
+ };
124
+ };
125
+ heading4: {
126
+ fontFamily: string;
127
+ fontWeight: string | number;
128
+ fontSize: {
129
+ small: string | number;
130
+ large: string | number;
131
+ };
132
+ lineHeight: {
133
+ small: string | number;
134
+ large: string | number;
135
+ };
136
+ };
137
+ lead: {
138
+ fontFamily: string;
139
+ fontWeight: string | number;
140
+ fontSize: {
141
+ small: string | number;
142
+ large: string | number;
143
+ };
144
+ lineHeight: {
145
+ small: string | number;
146
+ large: string | number;
147
+ };
148
+ };
149
+ body: {
150
+ fontFamily: string;
151
+ fontWeight: string | number;
152
+ fontSize: {
153
+ small: string | number;
154
+ large: string | number;
155
+ };
156
+ lineHeight: {
157
+ small: string | number;
158
+ large: string | number;
159
+ };
160
+ };
161
+ small: {
162
+ fontFamily: string;
163
+ fontWeight: string | number;
164
+ fontSize: {
165
+ small: string | number;
166
+ large: string | number;
167
+ };
168
+ lineHeight: {
169
+ small: string | number;
170
+ large: string | number;
171
+ };
172
+ };
173
+ label: {
174
+ fontFamily: string;
175
+ fontWeight: string | number;
176
+ fontSize: {
177
+ small: string | number;
178
+ large: string | number;
179
+ };
180
+ lineHeight: {
181
+ small: string | number;
182
+ large: string | number;
183
+ };
184
+ };
185
+ cta: {
186
+ primary: {
187
+ message: string;
188
+ surface: string;
189
+ messageHover: string;
190
+ surfaceHover: string;
191
+ messageFocused: string;
192
+ surfaceFocused: string;
193
+ outlineFocused: string;
194
+ backgroundFocused: string;
195
+ };
196
+ secondary: {
197
+ message: string;
198
+ surface: string;
199
+ messageHover: string;
200
+ surfaceHover: string;
201
+ messageFocused: string;
202
+ surfaceFocused: string;
203
+ outlineFocused: string;
204
+ backgroundFocused: string;
205
+ };
206
+ destructive: {
207
+ message: string;
208
+ surface: string;
209
+ messageHover: string;
210
+ surfaceHover: string;
211
+ messageFocused: string;
212
+ surfaceFocused: string;
213
+ outlineFocused: string;
214
+ backgroundFocused: string;
215
+ };
216
+ };
217
+ badge: {
218
+ variants: {
219
+ red: {
220
+ foreground: string;
221
+ background: string;
222
+ };
223
+ orange: {
224
+ foreground: string;
225
+ background: string;
226
+ };
227
+ yellow: {
228
+ foreground: string;
229
+ background: string;
230
+ };
231
+ green: {
232
+ foreground: string;
233
+ background: string;
234
+ };
235
+ blue: {
236
+ foreground: string;
237
+ background: string;
238
+ };
239
+ };
240
+ };
241
+ };
242
+ }, MProps, never>;
16
243
  declare type Props = Omit<ComponentProps<typeof StyledMargin>, 'mTop' | 'mBottom' | 'mLeft' | 'mRight' | 'breakpoints'> & {
17
244
  top?: SpaceKey | SpaceKey[];
18
245
  bottom?: SpaceKey | SpaceKey[];
@@ -42,8 +42,8 @@ var BackIcon = function () {
42
42
  react_1.default.createElement(react_native_svg_1.Path, { d: "M0.579956 8L8.57996 16L9.99996 14.58L3.41996 8L9.99996 1.42L8.57996 0L0.579956 8Z", fill: "white" })));
43
43
  };
44
44
  var StyledText = styled_native_1.default.Text(function (_a) {
45
- var _b = _a.theme, colors = _b.colors, fonts = _b.fonts, fontWeights = _b.fontWeights, fontSizes = _b.fontSizes;
46
- return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n font-family: ", ";\n "], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n font-family: ", ";\n "])), colors.primaryContrast, fontSizes[1], fontWeights.normal, fonts.body);
45
+ var _b = _a.theme, colors = _b.colors, fonts = _b.fonts, fontSizes = _b.fontSizes;
46
+ return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-family: ", ";\n "], ["\n color: ", ";\n font-size: ", ";\n font-family: ", ";\n "])), colors.primaryContrast, fontSizes[1], fonts.body);
47
47
  });
48
48
  var LeftHeaderText = (0, styled_native_1.default)(StyledText)(function (_a) {
49
49
  var space = _a.theme.space;
@@ -62,8 +62,8 @@ var StyledView = (0, styled_native_1.default)(react_native_reanimated_1.default.
62
62
  return (0, styled_native_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding: ", ";\n padding-bottom: ", ";\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n margin-top: ", ";\n "], ["\n padding: ", ";\n padding-bottom: ", ";\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n margin-top: ", ";\n "])), space[3], space[2], marginTop !== null && marginTop !== void 0 ? marginTop : 0);
63
63
  });
64
64
  var StyledHeading4 = (0, styled_native_1.default)(Heading_1.Heading4)(function (_a) {
65
- var _b = _a.theme, fonts = _b.fonts, fontWeights = _b.fontWeights, colors = _b.colors, textAlign = _a.textAlign;
66
- return (0, styled_native_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n margin-top: 0;\n margin-bottom: 0;\n color: ", ";\n text-align: ", ";\n "], ["\n font-family: ", ";\n font-weight: ", ";\n margin-top: 0;\n margin-bottom: 0;\n color: ", ";\n text-align: ", ";\n "])), fonts.bold, fontWeights.bold, colors.primaryContrast, textAlign);
65
+ var _b = _a.theme, fonts = _b.fonts, colors = _b.colors, textAlign = _a.textAlign;
66
+ return (0, styled_native_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-family: ", ";\n margin-top: 0;\n margin-bottom: 0;\n color: ", ";\n text-align: ", ";\n "], ["\n font-family: ", ";\n margin-top: 0;\n margin-bottom: 0;\n color: ", ";\n text-align: ", ";\n "])), fonts.bold, colors.primaryContrast, textAlign);
67
67
  });
68
68
  var StyledHeading3 = (0, styled_native_1.default)(Heading_1.Heading3)(function (_a) {
69
69
  var colors = _a.theme.colors;