@ovotech/element-native 1.0.0 → 2.0.0-beta.1

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 (218) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +5 -22
  2. package/dist/components/Accordion/Accordion.js +99 -65
  3. package/dist/components/Accordion/Group.d.ts +3 -0
  4. package/dist/components/Accordion/Group.js +41 -0
  5. package/dist/components/Accordion/Icon.d.ts +4 -0
  6. package/dist/components/Accordion/Icon.js +68 -0
  7. package/dist/components/Accordion/hooks.d.ts +6 -0
  8. package/dist/components/Accordion/hooks.js +43 -0
  9. package/dist/components/Accordion/index.d.ts +4 -1
  10. package/dist/components/Accordion/index.js +5 -2
  11. package/dist/components/Accordion/styles.d.ts +46 -0
  12. package/dist/components/Accordion/styles.js +52 -0
  13. package/dist/components/Accordion/types.d.ts +20 -0
  14. package/dist/components/Accordion/types.js +2 -0
  15. package/dist/components/Badge/Badge.d.ts +0 -1
  16. package/dist/components/Badge/Badge.js +3 -5
  17. package/dist/components/CTAButton/CTAButton.d.ts +1 -1
  18. package/dist/components/CTAButton/CTAButton.js +1 -1
  19. package/dist/components/CTALink/CTALink.js +1 -21
  20. package/dist/components/Card/Card.js +6 -5
  21. package/dist/components/Checkbox/Checkbox.js +10 -6
  22. package/dist/components/DataTable/DataTable.js +40 -42
  23. package/dist/components/DateField/DateField.js +3 -3
  24. package/dist/components/Disclosure/Disclosure.js +4 -15
  25. package/dist/components/ErrorText/ErrorText.js +1 -1
  26. package/dist/components/Field/Field.js +3 -3
  27. package/dist/components/FormGroup/FormGroup.js +3 -31
  28. package/dist/components/Heading/Heading.js +4 -17
  29. package/dist/components/HintText/HintText.js +1 -1
  30. package/dist/components/Icon/Icon.d.ts +1 -1
  31. package/dist/components/Icon/Icon.js +1 -1
  32. package/dist/components/Input/CurrencyInput.d.ts +2 -2
  33. package/dist/components/Input/EmailInput.d.ts +2 -2
  34. package/dist/components/Input/Input.d.ts +1 -1
  35. package/dist/components/Input/NumberInput.d.ts +2 -2
  36. package/dist/components/Input/PasswordInput.d.ts +2 -2
  37. package/dist/components/Input/TelInput.d.ts +2 -2
  38. package/dist/components/Input/TextInput.d.ts +2 -2
  39. package/dist/components/Input/TextareaInput.d.ts +2 -2
  40. package/dist/components/LabelText/LabelText.js +1 -1
  41. package/dist/components/List/List.d.ts +3 -1
  42. package/dist/components/List/List.js +18 -13
  43. package/dist/components/Margin/Margin.d.ts +1 -1
  44. package/dist/components/Margin/Margin.js +3 -1
  45. package/dist/components/NavHeader/NavHeader.d.ts +15 -0
  46. package/dist/components/NavHeader/NavHeader.js +93 -0
  47. package/dist/components/NavHeader/index.d.ts +1 -0
  48. package/dist/components/NavHeader/index.js +5 -0
  49. package/dist/components/Notification/Notification.d.ts +10 -0
  50. package/dist/components/Notification/Notification.js +50 -17
  51. package/dist/components/Radio/Radio.js +10 -6
  52. package/dist/components/Tabs/Tab.js +2 -2
  53. package/dist/components/Tabs/TabList.d.ts +1 -1
  54. package/dist/components/Tabs/TabList.js +2 -1
  55. package/dist/components/Tabs/Tabs.d.ts +1 -1
  56. package/dist/components/Tabs/Tabs.js +5 -3
  57. package/dist/components/Text/Text.js +3 -3
  58. package/dist/components/TextField/CurrencyField.d.ts +2 -2
  59. package/dist/components/TextField/EmailField.d.ts +2 -2
  60. package/dist/components/TextField/NumberField.d.ts +2 -2
  61. package/dist/components/TextField/PasswordField.d.ts +2 -2
  62. package/dist/components/TextField/TelField.d.ts +2 -2
  63. package/dist/components/TextField/TextField.d.ts +2 -2
  64. package/dist/components/TextField/TextareaField.d.ts +2 -2
  65. package/dist/components/index.d.ts +1 -0
  66. package/dist/components/index.js +1 -0
  67. package/dist/esm/components/Accordion/Accordion.js +98 -65
  68. package/dist/esm/components/Accordion/Group.js +14 -0
  69. package/dist/esm/components/Accordion/Icon.js +38 -0
  70. package/dist/esm/components/Accordion/hooks.js +16 -0
  71. package/dist/esm/components/Accordion/index.js +3 -1
  72. package/dist/esm/components/Accordion/styles.js +49 -0
  73. package/dist/esm/components/Accordion/types.js +1 -0
  74. package/dist/esm/components/Badge/Badge.js +3 -5
  75. package/dist/esm/components/CTAButton/CTAButton.js +1 -1
  76. package/dist/esm/components/CTALink/CTALink.js +1 -21
  77. package/dist/esm/components/Card/Card.js +6 -5
  78. package/dist/esm/components/Checkbox/Checkbox.js +10 -6
  79. package/dist/esm/components/DataTable/DataTable.js +40 -42
  80. package/dist/esm/components/DateField/DateField.js +3 -3
  81. package/dist/esm/components/Disclosure/Disclosure.js +4 -15
  82. package/dist/esm/components/ErrorText/ErrorText.js +1 -1
  83. package/dist/esm/components/Field/Field.js +3 -3
  84. package/dist/esm/components/FormGroup/FormGroup.js +3 -8
  85. package/dist/esm/components/Heading/Heading.js +4 -17
  86. package/dist/esm/components/HintText/HintText.js +1 -1
  87. package/dist/esm/components/Icon/Icon.js +1 -1
  88. package/dist/esm/components/LabelText/LabelText.js +1 -1
  89. package/dist/esm/components/List/List.js +18 -13
  90. package/dist/esm/components/Margin/Margin.js +3 -1
  91. package/dist/esm/components/NavHeader/NavHeader.js +63 -0
  92. package/dist/esm/components/NavHeader/index.js +1 -0
  93. package/dist/esm/components/Notification/Notification.js +49 -16
  94. package/dist/esm/components/Radio/Radio.js +10 -6
  95. package/dist/esm/components/Tabs/Tab.js +2 -2
  96. package/dist/esm/components/Tabs/TabList.js +2 -1
  97. package/dist/esm/components/Tabs/Tabs.js +5 -3
  98. package/dist/esm/components/Text/Text.js +3 -3
  99. package/dist/esm/components/index.js +1 -0
  100. package/dist/esm/providers/IconsProvider.js +28 -9
  101. package/dist/esm/providers/icons/ArrowDown.js +15 -0
  102. package/dist/esm/providers/icons/ArrowLeft.js +15 -0
  103. package/dist/esm/providers/icons/ArrowRight.js +15 -0
  104. package/dist/esm/providers/icons/ArrowUp.js +15 -0
  105. package/dist/esm/providers/icons/CaretDown.js +1 -1
  106. package/dist/esm/providers/icons/CaretLeft.js +15 -0
  107. package/dist/esm/providers/icons/CaretRight.js +1 -1
  108. package/dist/esm/providers/icons/CaretUp.js +15 -0
  109. package/dist/esm/providers/icons/Chart.js +15 -0
  110. package/dist/esm/providers/icons/Check.js +2 -2
  111. package/dist/esm/providers/icons/ChevronDown.js +2 -2
  112. package/dist/esm/providers/icons/ChevronLeft.js +1 -1
  113. package/dist/esm/providers/icons/ChevronLeftSmall.js +15 -0
  114. package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +15 -0
  115. package/dist/esm/providers/icons/ChevronRight.js +1 -1
  116. package/dist/esm/providers/icons/ChevronRightSmall.js +15 -0
  117. package/dist/esm/providers/icons/ChevronRightSmallLast.js +15 -0
  118. package/dist/esm/providers/icons/ChevronUp.js +2 -2
  119. package/dist/esm/providers/icons/Cross.js +1 -1
  120. package/dist/esm/providers/icons/Dollar.js +2 -3
  121. package/dist/esm/providers/icons/Download.js +1 -1
  122. package/dist/esm/providers/icons/Electricity.js +1 -1
  123. package/dist/esm/providers/icons/Euro.js +2 -3
  124. package/dist/esm/providers/icons/Gas.js +2 -2
  125. package/dist/esm/providers/icons/Help.js +15 -0
  126. package/dist/esm/providers/icons/Hide.js +15 -0
  127. package/dist/esm/providers/icons/HidePassword.js +15 -0
  128. package/dist/esm/providers/icons/Home.js +15 -0
  129. package/dist/esm/providers/icons/Info.js +15 -0
  130. package/dist/esm/providers/icons/Link.js +2 -2
  131. package/dist/esm/providers/icons/Minus.js +1 -1
  132. package/dist/esm/providers/icons/NewWindow.js +1 -2
  133. package/dist/esm/providers/icons/Payment.js +15 -0
  134. package/dist/esm/providers/icons/PaymentCard.js +15 -0
  135. package/dist/esm/providers/icons/Plus.js +1 -1
  136. package/dist/esm/providers/icons/Pound.js +2 -3
  137. package/dist/esm/providers/icons/Search.js +15 -0
  138. package/dist/esm/providers/icons/Show.js +15 -0
  139. package/dist/esm/providers/icons/ShowPassword.js +15 -0
  140. package/dist/esm/providers/icons/Usage.js +15 -0
  141. package/dist/esm/providers/icons/User.js +15 -0
  142. package/dist/esm/providers/icons/index.js +21 -2
  143. package/dist/esm/theme/create-theme.js +139 -118
  144. package/dist/providers/IconsProvider.js +27 -8
  145. package/dist/providers/icons/ArrowDown.d.ts +2 -0
  146. package/dist/providers/icons/ArrowDown.js +22 -0
  147. package/dist/providers/icons/ArrowLeft.d.ts +2 -0
  148. package/dist/providers/icons/ArrowLeft.js +22 -0
  149. package/dist/providers/icons/ArrowRight.d.ts +2 -0
  150. package/dist/providers/icons/ArrowRight.js +22 -0
  151. package/dist/providers/icons/ArrowUp.d.ts +2 -0
  152. package/dist/providers/icons/ArrowUp.js +22 -0
  153. package/dist/providers/icons/CaretDown.js +1 -1
  154. package/dist/providers/icons/CaretLeft.d.ts +2 -0
  155. package/dist/providers/icons/CaretLeft.js +22 -0
  156. package/dist/providers/icons/CaretRight.js +1 -1
  157. package/dist/providers/icons/CaretUp.d.ts +2 -0
  158. package/dist/providers/icons/CaretUp.js +22 -0
  159. package/dist/providers/icons/Chart.d.ts +2 -0
  160. package/dist/providers/icons/Chart.js +22 -0
  161. package/dist/providers/icons/Check.js +2 -2
  162. package/dist/providers/icons/ChevronDown.js +2 -2
  163. package/dist/providers/icons/ChevronLeft.js +1 -1
  164. package/dist/providers/icons/ChevronLeftSmall.d.ts +2 -0
  165. package/dist/providers/icons/ChevronLeftSmall.js +22 -0
  166. package/dist/providers/icons/ChevronLeftSmallFirst.d.ts +2 -0
  167. package/dist/providers/icons/ChevronLeftSmallFirst.js +22 -0
  168. package/dist/providers/icons/ChevronRight.js +1 -1
  169. package/dist/providers/icons/ChevronRightSmall.d.ts +2 -0
  170. package/dist/providers/icons/ChevronRightSmall.js +22 -0
  171. package/dist/providers/icons/ChevronRightSmallLast.d.ts +2 -0
  172. package/dist/providers/icons/ChevronRightSmallLast.js +22 -0
  173. package/dist/providers/icons/ChevronUp.js +2 -2
  174. package/dist/providers/icons/Cross.js +1 -1
  175. package/dist/providers/icons/Dollar.d.ts +1 -2
  176. package/dist/providers/icons/Dollar.js +1 -1
  177. package/dist/providers/icons/Download.js +1 -1
  178. package/dist/providers/icons/Electricity.js +1 -1
  179. package/dist/providers/icons/Euro.d.ts +1 -2
  180. package/dist/providers/icons/Euro.js +1 -1
  181. package/dist/providers/icons/Gas.js +2 -2
  182. package/dist/providers/icons/Help.d.ts +2 -0
  183. package/dist/providers/icons/Help.js +22 -0
  184. package/dist/providers/icons/Hide.d.ts +2 -0
  185. package/dist/providers/icons/Hide.js +22 -0
  186. package/dist/providers/icons/HidePassword.d.ts +2 -0
  187. package/dist/providers/icons/HidePassword.js +22 -0
  188. package/dist/providers/icons/Home.d.ts +2 -0
  189. package/dist/providers/icons/Home.js +22 -0
  190. package/dist/providers/icons/Info.d.ts +2 -0
  191. package/dist/providers/icons/Info.js +22 -0
  192. package/dist/providers/icons/Link.js +2 -2
  193. package/dist/providers/icons/Minus.js +1 -1
  194. package/dist/providers/icons/NewWindow.js +1 -2
  195. package/dist/providers/icons/Payment.d.ts +2 -0
  196. package/dist/providers/icons/Payment.js +22 -0
  197. package/dist/providers/icons/PaymentCard.d.ts +2 -0
  198. package/dist/providers/icons/PaymentCard.js +22 -0
  199. package/dist/providers/icons/Plus.js +1 -1
  200. package/dist/providers/icons/Pound.d.ts +1 -2
  201. package/dist/providers/icons/Pound.js +1 -1
  202. package/dist/providers/icons/Search.d.ts +2 -0
  203. package/dist/providers/icons/Search.js +22 -0
  204. package/dist/providers/icons/Show.d.ts +2 -0
  205. package/dist/providers/icons/Show.js +22 -0
  206. package/dist/providers/icons/ShowPassword.d.ts +2 -0
  207. package/dist/providers/icons/ShowPassword.js +22 -0
  208. package/dist/providers/icons/Usage.d.ts +2 -0
  209. package/dist/providers/icons/Usage.js +22 -0
  210. package/dist/providers/icons/User.d.ts +2 -0
  211. package/dist/providers/icons/User.js +22 -0
  212. package/dist/providers/icons/index.d.ts +21 -2
  213. package/dist/providers/icons/index.js +21 -2
  214. package/dist/providers/types.d.ts +1 -1
  215. package/dist/theme/create-theme.d.ts +1 -1
  216. package/dist/theme/create-theme.js +139 -118
  217. package/dist/theme/theme.d.ts +33 -25
  218. package/package.json +18 -15
@@ -36,20 +36,11 @@ var DisclosureButtonIcon = styled(Icon)(function (_a) {
36
36
  });
37
37
  var DisclosureButtonText = styled.Text(function (_a) {
38
38
  var _b = _a.theme, text = _b.text, textLink = _b.textLink, smallAndUp = _a.smallAndUp;
39
- return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", "px;\n font-weight: ", ";\n text-decoration: underline;\n text-decoration-color: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", "px;\n font-weight: ", ";\n text-decoration: underline;\n text-decoration-color: ", ";\n color: ", ";\n "])), text.fontFamily, text.p.fontSize[smallAndUp ? 1 : 0], text.lineHeight *
40
- pxToNumber(text.p.fontSize[smallAndUp ? 1 : 0]), textLink.fontWeight, textLink.color, textLink.color);
41
- });
42
- var LineIndent = styled.View(function (_a) {
43
- var _b = _a.theme, disclosure = _b.disclosure, responsiveFontSizes = _b.responsiveFontSizes, smallAndUp = _a.smallAndUp;
44
- var lineOffset = function (fontSize) {
45
- return "".concat(pxToNumber(fontSize) / 2 -
46
- pxToNumber(disclosure.lineIndent.width) / 2, "px");
47
- };
48
- return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: ", ";\n border-radius: ", ";\n left: ", ";\n background-color: ", ";\n position: absolute;\n top: 0;\n bottom: 0;\n "], ["\n width: ", ";\n border-radius: ", ";\n left: ", ";\n background-color: ", ";\n position: absolute;\n top: 0;\n bottom: 0;\n "])), disclosure.lineIndent.width, disclosure.lineIndent.borderRadius, lineOffset(responsiveFontSizes.body[smallAndUp ? 1 : 0]), disclosure.lineIndent.backgroundColor);
39
+ return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n text-decoration: underline;\n text-decoration-color: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n text-decoration: underline;\n text-decoration-color: ", ";\n color: ", ";\n "])), text.fontFamily, text.p.fontSize[smallAndUp ? 1 : 0], text.p.lineHeight[smallAndUp ? 1 : 0], textLink.fontWeight, textLink.color, textLink.color);
49
40
  });
50
41
  var DisclosurePanel = styled.View(function (_a) {
51
42
  var _b = _a.theme, disclosure = _b.disclosure, responsiveFontSizes = _b.responsiveFontSizes, smallAndUp = _a.smallAndUp;
52
- return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-top: ", ";\n padding-left: ", "px;\n "], ["\n margin-top: ", ";\n padding-left: ", "px;\n "])), disclosure.panelGap[smallAndUp ? 1 : 0], pxToNumber(responsiveFontSizes.body[smallAndUp ? 1 : 0]) +
43
+ return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-top: ", ";\n padding-left: ", "px;\n "], ["\n margin-top: ", ";\n padding-left: ", "px;\n "])), disclosure.panelGap[smallAndUp ? 1 : 0], pxToNumber(responsiveFontSizes.body[smallAndUp ? 1 : 0]) +
53
44
  pxToNumber(disclosure.iconGap[smallAndUp ? 1 : 0]));
54
45
  });
55
46
  export var Disclosure = forwardRef(function (_a, ref) {
@@ -64,8 +55,6 @@ export var Disclosure = forwardRef(function (_a, ref) {
64
55
  }, ref: ref, accessibilityState: { expanded: isExpanded } }, rest),
65
56
  React.createElement(DisclosureButtonIcon, __assign({ name: "caret-down" }, breakpoints, { size: 14, expanded: isExpanded, color: textLink.color })),
66
57
  React.createElement(DisclosureButtonText, __assign({}, breakpoints), title)),
67
- isExpanded && (React.createElement(DisclosurePanel, __assign({}, breakpoints),
68
- React.createElement(LineIndent, __assign({}, breakpoints)),
69
- children))));
58
+ isExpanded && (React.createElement(DisclosurePanel, __assign({}, breakpoints), children))));
70
59
  });
71
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
60
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -8,7 +8,7 @@ import { styledComponentWithBreakpoints } from '../../utils';
8
8
  var StyledErrorText = styled.Text(function (_a) {
9
9
  var field = _a.theme.field, smallAndUp = _a.smallAndUp;
10
10
  var fontSize = smallAndUp ? field.fontSize[1] : field.fontSize[0];
11
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n font-weight: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n font-weight: ", ";\n color: ", ";\n "])), field.fontFamily, calculateLineHeight(fontSize, field.lineHeight), fontSize, field.error.fontWeight, field.error.color);
11
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n font-weight: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n font-weight: ", ";\n color: ", ";\n "])), field.error.fontFamily, calculateLineHeight(fontSize, field.lineHeight), fontSize, field.error.fontWeight, field.error.color);
12
12
  });
13
13
  var ErrorText = styledComponentWithBreakpoints(StyledErrorText);
14
14
  export { ErrorText };
@@ -58,11 +58,11 @@ export var Field = forwardRef(function (_a, ref) {
58
58
  React.createElement(LabelText, null,
59
59
  label,
60
60
  optional ? ' (optional)' : null),
61
- hint ? React.createElement(HintText, null, hint) : null,
62
- error ? React.createElement(ErrorText, null, error) : null)),
61
+ hint ? React.createElement(HintText, null, hint) : null)),
63
62
  React.createElement(Stretch, { defaultWidth: "".concat(Math.ceil(characters * 0.8 * parseInt(field.fontSize[0])) + affixWidth, "px"), fullWidth: fullWidth }, Children.map(children, function (child) {
64
63
  return isValidElement(child)
65
64
  ? cloneElement(child, __assign({ invalid: hasError || undefined, ref: mergeRefs(inputRef, ref), accessibilityLabel: accessibilityLabel }, rest))
66
65
  : child;
67
- })))));
66
+ })),
67
+ error ? React.createElement(ErrorText, null, error) : null)));
68
68
  });
@@ -26,17 +26,12 @@ var __rest = (this && this.__rest) || function (s, e) {
26
26
  };
27
27
  import React from 'react';
28
28
  import { View } from 'react-native';
29
- import styled, { css } from '../../styled.native';
30
- var Line = styled.View(function (_a) {
31
- var field = _a.theme.field;
32
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n height: 100%;\n background-color: ", ";\n border-radius: ", ";\n margin-right: ", ";\n "], ["\n width: ", ";\n height: 100%;\n background-color: ", ";\n border-radius: ", ";\n margin-right: ", ";\n "])), field.errorIndent.borderWidth, field.error.color, field.errorIndent.borderRadius, field.gap);
33
- });
34
- var FormGroupWrapper = styled.View(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex-direction: row;\n"], ["\n flex-direction: row;\n"])));
29
+ import styled from '../../styled.native';
30
+ var FormGroupWrapper = styled.View(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: row;\n"], ["\n flex-direction: row;\n"])));
35
31
  var FormGroup = function (_a) {
36
32
  var children = _a.children, error = _a.error, rest = __rest(_a, ["children", "error"]);
37
33
  return (React.createElement(FormGroupWrapper, __assign({}, rest),
38
- error ? React.createElement(Line, null) : null,
39
34
  React.createElement(View, { style: { flex: 1 } }, children)));
40
35
  };
41
36
  export { FormGroup };
42
- var templateObject_1, templateObject_2;
37
+ var templateObject_1;
@@ -27,13 +27,9 @@ var __rest = (this && this.__rest) || function (s, e) {
27
27
  import React from 'react';
28
28
  import { useBreakpoint } from '../../hooks';
29
29
  import styled, { css } from '../../styled.native';
30
- import { calculateLineHeight } from '../../theme';
31
30
  var StyledHeading1 = styled.Text(function (_a) {
32
31
  var heading = _a.theme.heading, smallAndUp = _a.smallAndUp;
33
- var fontSize = smallAndUp
34
- ? heading.heading1.fontSize[1]
35
- : heading.heading1.fontSize[0];
36
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "])), heading.fontFamily, calculateLineHeight(fontSize, heading.lineHeight), heading.heading1.fontWeight || heading.fontWeight, heading.color, fontSize, smallAndUp
32
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n line-height: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n font-family: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n line-height: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "])), heading.fontFamily, heading.heading1.fontWeight || heading.fontWeight, heading.color, heading.heading1.fontSize[smallAndUp ? 1 : 0], heading.heading1.lineHeight[smallAndUp ? 1 : 0], smallAndUp
37
33
  ? heading.heading1.marginTop[1]
38
34
  : heading.heading1.marginTop[0], smallAndUp
39
35
  ? heading.heading1.marginBottom[1]
@@ -46,10 +42,7 @@ export var Heading1 = function (_a) {
46
42
  };
47
43
  var StyledHeading2 = styled.Text(function (_a) {
48
44
  var heading = _a.theme.heading, smallAndUp = _a.smallAndUp;
49
- var fontSize = smallAndUp
50
- ? heading.heading2.fontSize[1]
51
- : heading.heading2.fontSize[0];
52
- return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "])), heading.fontFamily, calculateLineHeight(fontSize, heading.lineHeight), heading.heading2.fontWeight || heading.fontWeight, heading.color, fontSize, smallAndUp
45
+ return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "])), heading.fontFamily, heading.heading2.fontSize[smallAndUp ? 1 : 0], heading.heading2.lineHeight[smallAndUp ? 1 : 0], heading.heading2.fontWeight || heading.fontWeight, heading.color, smallAndUp
53
46
  ? heading.heading2.marginTop[1]
54
47
  : heading.heading2.marginTop[0], smallAndUp
55
48
  ? heading.heading2.marginBottom[1]
@@ -62,10 +55,7 @@ export var Heading2 = function (_a) {
62
55
  };
63
56
  var StyledHeading3 = styled.Text(function (_a) {
64
57
  var heading = _a.theme.heading, smallAndUp = _a.smallAndUp;
65
- var fontSize = smallAndUp
66
- ? heading.heading3.fontSize[1]
67
- : heading.heading3.fontSize[0];
68
- return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "])), heading.fontFamily, calculateLineHeight(fontSize, heading.lineHeight), heading.heading3.fontWeight || heading.fontWeight, heading.color, fontSize, smallAndUp
58
+ return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "])), heading.fontFamily, heading.heading3.fontSize[smallAndUp ? 1 : 0], heading.heading3.lineHeight[smallAndUp ? 1 : 0], heading.heading3.fontWeight || heading.fontWeight, heading.color, smallAndUp
69
59
  ? heading.heading3.marginTop[1]
70
60
  : heading.heading3.marginTop[0], smallAndUp
71
61
  ? heading.heading3.marginBottom[1]
@@ -78,10 +68,7 @@ export var Heading3 = function (_a) {
78
68
  };
79
69
  var StyledHeading4 = styled.Text(function (_a) {
80
70
  var heading = _a.theme.heading, smallAndUp = _a.smallAndUp;
81
- var fontSize = smallAndUp
82
- ? heading.heading4.fontSize[1]
83
- : heading.heading4.fontSize[0];
84
- return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "])), heading.fontFamily, calculateLineHeight(fontSize, heading.lineHeight), heading.heading4.fontWeight || heading.fontWeight, heading.color, fontSize, smallAndUp
71
+ return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "])), heading.fontFamily, heading.heading3.fontSize[smallAndUp ? 1 : 0], heading.heading3.lineHeight[smallAndUp ? 1 : 0], heading.heading4.fontWeight || heading.fontWeight, heading.color, smallAndUp
85
72
  ? heading.heading4.marginTop[1]
86
73
  : heading.heading4.marginTop[0], smallAndUp
87
74
  ? heading.heading4.marginBottom[1]
@@ -8,7 +8,7 @@ import { styledComponentWithBreakpoints } from '../../utils';
8
8
  var StyledHintText = styled.Text(function (_a) {
9
9
  var field = _a.theme.field, smallAndUp = _a.smallAndUp;
10
10
  var fontSize = smallAndUp ? field.fontSize[1] : field.fontSize[0];
11
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n "])), field.fontFamily, calculateLineHeight(fontSize, field.lineHeight), field.hint.fontWeight, field.hint.color, fontSize);
11
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "])), field.fontFamily, field.hint.fontWeight, fontSize, calculateLineHeight(fontSize, field.lineHeight), field.hint.color);
12
12
  });
13
13
  var HintText = styledComponentWithBreakpoints(StyledHintText);
14
14
  export { HintText };
@@ -29,7 +29,7 @@ export var Icon = function (_a) {
29
29
  var colors = useContext(ThemeContext).colors;
30
30
  // @ts-ignore to support additional icons.
31
31
  var Svg = name && icons[name];
32
- return Svg ? (React.createElement(Svg, __assign({ testID: testID ? testID : "nebula-icon".concat(name ? "-".concat(name) : ''),
32
+ return Svg ? (React.createElement(Svg, __assign({ testID: testID ? testID : "element-icon".concat(name ? "-".concat(name) : ''),
33
33
  // @ts-ignore this is valid.
34
34
  color: color !== null && color !== void 0 ? color : colors.body, width: size, height: size }, rest))) : null;
35
35
  };
@@ -8,7 +8,7 @@ import { styledComponentWithBreakpoints } from '../../utils';
8
8
  var StyledLabelText = styled.Text(function (_a) {
9
9
  var field = _a.theme.field, smallAndUp = _a.smallAndUp;
10
10
  var fontSize = smallAndUp ? field.fontSize[1] : field.fontSize[0];
11
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n "])), field.fontFamily, calculateLineHeight(fontSize, field.lineHeight), field.label.fontWeight, field.label.color, fontSize);
11
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n "])), field.label.fontFamily, calculateLineHeight(fontSize, field.lineHeight), field.label.fontWeight, field.label.color, fontSize);
12
12
  });
13
13
  var LabelText = styledComponentWithBreakpoints(StyledLabelText);
14
14
  export { LabelText };
@@ -31,18 +31,23 @@ import styled, { css, ThemeContext } from '../../styled.native';
31
31
  import { calculateLineHeight } from '../../theme';
32
32
  import { styledComponentWithBreakpoints } from '../../utils';
33
33
  import { Stack } from '../Stack';
34
+ var UlBullet = styled.View(function (_a) {
35
+ var _b = _a.theme, colors = _b.colors, list = _b.list, _c = _a.visible, visible = _c === void 0 ? true : _c;
36
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-right: ", ";\n width: ", ";\n height: ", ";\n background-color: ", ";\n "], ["\n margin-right: ", ";\n width: ", ";\n height: ", ";\n background-color: ", ";\n "])), list.listItem.bulletGap, list.listItem.bulletWidth, list.listItem.bulletWidth, visible ? colors.body : 'transparent');
37
+ });
34
38
  var StyledBullet = styled.Text(function (_a) {
35
- var _b = _a.theme, text = _b.text, list = _b.list, smallAndUp = _a.smallAndUp;
39
+ var _b = _a.theme, text = _b.text, list = _b.list, space = _b.space, smallAndUp = _a.smallAndUp;
36
40
  var fontSize = smallAndUp
37
41
  ? list.listItem.fontSize[1]
38
42
  : list.listItem.fontSize[0];
39
- return css(templateObject_1 || (templateObject_1 = __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, calculateLineHeight(fontSize, text.lineHeight), text.fontWeight, text.color, fontSize, list.listItem.bulletGap, list.listItem.bulletWidth);
43
+ return 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, calculateLineHeight(fontSize, text.lineHeight), text.fontWeight, text.color, fontSize, list.listItem.bulletGap, space[4]);
40
44
  });
45
+ var StyledUlItem = styled.View(function () { return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-direction: row;\n align-items: center;\n justify-content: center;\n "], ["\n flex-direction: row;\n align-items: center;\n justify-content: center;\n "]))); });
41
46
  var Bullet = styledComponentWithBreakpoints(StyledBullet);
42
47
  var ListBulletItem = function (_a) {
43
- var children = _a.children;
44
- return (React.createElement(View, { style: { flexDirection: 'row' } },
45
- React.createElement(Bullet, null, "\u2022"),
48
+ var children = _a.children, _b = _a.showBullets, showBullets = _b === void 0 ? true : _b;
49
+ return (React.createElement(StyledUlItem, null,
50
+ React.createElement(UlBullet, { visible: showBullets }),
46
51
  children));
47
52
  };
48
53
  var ListNumberedItem = function (_a) {
@@ -53,14 +58,14 @@ var ListNumberedItem = function (_a) {
53
58
  };
54
59
  var StyledList = styled.View(function (_a) {
55
60
  var list = _a.theme.list, smallAndUp = _a.smallAndUp;
56
- return css(templateObject_2 || (templateObject_2 = __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]);
61
+ return 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]);
57
62
  });
58
63
  var ListWrapper = styledComponentWithBreakpoints(StyledList);
59
64
  var Ul = function (_a) {
60
- var children = _a.children, rest = __rest(_a, ["children"]);
65
+ var children = _a.children, _b = _a.showBullets, showBullets = _b === void 0 ? true : _b, rest = __rest(_a, ["children", "showBullets"]);
61
66
  var list = useContext(ThemeContext).list;
62
67
  return (React.createElement(ListWrapper, __assign({}, rest),
63
- React.createElement(Stack, { spaceBetween: list.listItem.marginVertical }, Children.map(children, function (child) { return (React.createElement(ListBulletItem, null, child)); }))));
68
+ React.createElement(Stack, { spaceBetween: list.listItem.marginVertical }, Children.map(children, function (child) { return (React.createElement(ListBulletItem, { showBullets: showBullets }, child)); }))));
64
69
  };
65
70
  var Ol = function (_a) {
66
71
  var children = _a.children, rest = __rest(_a, ["children"]);
@@ -73,7 +78,7 @@ var StyledLi = styled.Text(function (_a) {
73
78
  var fontSize = smallAndUp
74
79
  ? list.listItem.fontSize[1]
75
80
  : list.listItem.fontSize[0];
76
- return css(templateObject_3 || (templateObject_3 = __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, calculateLineHeight(fontSize, text.lineHeight), text.fontWeight, text.color, fontSize);
81
+ return 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, calculateLineHeight(fontSize, text.lineHeight), text.fontWeight, text.color, fontSize);
77
82
  });
78
83
  var Li = styledComponentWithBreakpoints(StyledLi);
79
84
  var Dl = ListWrapper;
@@ -82,7 +87,7 @@ var StyledDtText = styled.Text(function (_a) {
82
87
  var fontSize = smallAndUp
83
88
  ? list.listItem.fontSize[1]
84
89
  : list.listItem.fontSize[0];
85
- return css(templateObject_4 || (templateObject_4 = __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, calculateLineHeight(fontSize, text.lineHeight), list.descriptionTerm.fontWeight, list.descriptionTerm.color, fontSize);
90
+ return 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, calculateLineHeight(fontSize, text.lineHeight), list.descriptionTerm.color, fontSize);
86
91
  });
87
92
  var DtText = styledComponentWithBreakpoints(StyledDtText);
88
93
  var StyledDtItem = styled.View(function (_a) {
@@ -93,7 +98,7 @@ var StyledDtItem = styled.View(function (_a) {
93
98
  var marginBottom = smallAndUp
94
99
  ? list.descriptionTerm.marginBottom[1]
95
100
  : list.descriptionTerm.marginBottom[0];
96
- return css(templateObject_5 || (templateObject_5 = __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);
101
+ return 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);
97
102
  });
98
103
  var DtItem = styledComponentWithBreakpoints(StyledDtItem);
99
104
  var Dt = function (_a) {
@@ -106,7 +111,7 @@ var StyledDdText = styled.Text(function (_a) {
106
111
  var fontSize = smallAndUp
107
112
  ? list.listItem.fontSize[1]
108
113
  : list.listItem.fontSize[0];
109
- return css(templateObject_6 || (templateObject_6 = __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, calculateLineHeight(fontSize, text.lineHeight), text.fontWeight, text.color, fontSize);
114
+ return 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, calculateLineHeight(fontSize, text.lineHeight), text.fontWeight, text.color, fontSize);
110
115
  });
111
116
  var Dd = function (_a) {
112
117
  var children = _a.children, rest = __rest(_a, ["children"]);
@@ -115,4 +120,4 @@ var Dd = function (_a) {
115
120
  React.createElement(StyledDdText, __assign({}, breakpoints), children)));
116
121
  };
117
122
  export { Ul, Ol, Li, Dl, Dt, Dd };
118
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
123
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
@@ -26,7 +26,9 @@ import styled from '../../styled.native';
26
26
  import { responsiveStyle } from '../../utils';
27
27
  var StyledMargin = styled.View(function (_a) {
28
28
  var space = _a.theme.space, mTop = _a.mTop, mBottom = _a.mBottom, mLeft = _a.mLeft, mRight = _a.mRight, horizontal = _a.horizontal, vertical = _a.vertical, all = _a.all, breakpoints = _a.breakpoints;
29
- var formatter = function (spaceKey) { return space[spaceKey]; };
29
+ var formatter = function (spaceKey) {
30
+ return spaceKey === 0 ? '0' : space[spaceKey];
31
+ };
30
32
  return "\n ".concat(horizontal
31
33
  ? "\n ".concat(responsiveStyle('margin-left', horizontal, breakpoints, formatter), "\n ").concat(responsiveStyle('margin-right', horizontal, breakpoints, formatter), "\n ")
32
34
  : '', "\n ").concat(vertical
@@ -0,0 +1,63 @@
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 React from 'react';
6
+ import { TouchableOpacity } from 'react-native';
7
+ import Animated, { FadeIn, FadeOut, Layout } from 'react-native-reanimated';
8
+ import { Path, Svg } from 'react-native-svg';
9
+ import styled, { css } from '../../styled.native';
10
+ import { Heading3, Heading4 } from '../Heading';
11
+ var BackIcon = function () {
12
+ return (React.createElement(Svg, { width: "10", height: "16", viewBox: "0 0 10 16" },
13
+ React.createElement(Path, { d: "M0.579956 8L8.57996 16L9.99996 14.58L3.41996 8L9.99996 1.42L8.57996 0L0.579956 8Z", fill: "white" })));
14
+ };
15
+ var StyledText = styled.Text(function (_a) {
16
+ var _b = _a.theme, colors = _b.colors, fonts = _b.fonts, fontWeights = _b.fontWeights, fontSizes = _b.fontSizes;
17
+ return 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);
18
+ });
19
+ var LeftHeaderText = styled(StyledText)(function (_a) {
20
+ var space = _a.theme.space;
21
+ return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-left: ", ";\n "], ["\n padding-left: ", ";\n "])), space[2]);
22
+ });
23
+ var FeedbackText = styled(StyledText)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n text-align: right;\n"], ["\n text-align: right;\n"])));
24
+ var HeadlineView = styled(Animated.View)(function (_a) {
25
+ var space = _a.theme.space;
26
+ return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n padding: 0 ", " ", ";\n "], ["\n padding: 0 ", " ", ";\n "])), space[3], space[3]);
27
+ });
28
+ var RootView = styled.View(function (_a) {
29
+ var colors = _a.theme.colors;
30
+ return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n overflow: hidden;\n "], ["\n background-color: ", ";\n overflow: hidden;\n "])), colors.primary);
31
+ });
32
+ var StyledView = styled(Animated.View)(function (_a) {
33
+ var space = _a.theme.space, marginTop = _a.marginTop;
34
+ return css(templateObject_6 || (templateObject_6 = __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);
35
+ });
36
+ var StyledHeading4 = styled(Heading4)(function (_a) {
37
+ var _b = _a.theme, fonts = _b.fonts, fontWeights = _b.fontWeights, colors = _b.colors, textAlign = _a.textAlign;
38
+ return css(templateObject_7 || (templateObject_7 = __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);
39
+ });
40
+ var StyledHeading3 = styled(Heading3)(function (_a) {
41
+ var colors = _a.theme.colors;
42
+ return css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n margin-top: 0;\n margin-bottom: 0;\n padding-top: 0;\n color: ", ";\n text-align: left;\n "], ["\n margin-top: 0;\n margin-bottom: 0;\n padding-top: 0;\n color: ", ";\n text-align: left;\n "])), colors.primaryContrast);
43
+ });
44
+ export var NavHeader = function (_a) {
45
+ var options = _a.options, headline = _a.headline;
46
+ return (React.createElement(RootView, { layout: Layout.duration(150) },
47
+ React.createElement(StyledView, { marginTop: options === null || options === void 0 ? void 0 : options.statusBarHeight },
48
+ (options === null || options === void 0 ? void 0 : options.headerLeft) ? (options === null || options === void 0 ? void 0 : options.headerLeft()) : (options === null || options === void 0 ? void 0 : options.canGoBack()) ? (React.createElement(TouchableOpacity, { style: {
49
+ flexDirection: 'row',
50
+ alignItems: 'center',
51
+ flex: 1,
52
+ flexGrow: 1,
53
+ flexShrink: 1,
54
+ }, onPress: options === null || options === void 0 ? void 0 : options.goBack },
55
+ React.createElement(BackIcon, null),
56
+ React.createElement(LeftHeaderText, null, "Back"))) : null,
57
+ React.createElement(Animated.View, { entering: FadeIn, exiting: FadeOut, style: { flex: 1, flexGrow: 3, flexShrink: 1 } },
58
+ React.createElement(StyledHeading4, { textAlign: (options === null || options === void 0 ? void 0 : options.canGoBack()) ? 'center' : 'left', numberOfLines: 1 }, !headline ? options === null || options === void 0 ? void 0 : options.title : ' ')),
59
+ React.createElement(TouchableOpacity, { style: { flex: 1, flexGrow: 1, flexShrink: 1 } },
60
+ React.createElement(FeedbackText, null, "Feedback"))),
61
+ headline ? (React.createElement(HeadlineView, { entering: FadeIn, exiting: FadeOut }, (options === null || options === void 0 ? void 0 : options.title) ? (React.createElement(StyledHeading3, null, options.title)) : null)) : null));
62
+ };
63
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
@@ -0,0 +1 @@
1
+ export { NavHeader } from './NavHeader';
@@ -28,37 +28,70 @@ import React, { forwardRef, useContext, useState, } from 'react';
28
28
  import { View } from 'react-native';
29
29
  import { useBreakpoint } from '../../hooks';
30
30
  import styled, { css, ThemeContext } from '../../styled.native';
31
- import { Heading2 } from '../Heading';
32
31
  import { Icon } from '../Icon';
32
+ var pxToNumber = function (value) { return parseInt(value.replace('px', '')); };
33
+ var numberToPx = function (value) { return "".concat(value, "px"); };
33
34
  var NotificationBox = styled.View(function (_a) {
34
- var _b = _a.theme, notification = _b.notification, space = _b.space, smallAndUp = _a.smallAndUp, _c = _a.variant, variant = _c === void 0 ? 'info' : _c, noMargin = _a.noMargin;
35
+ var _b = _a.theme, notification = _b.notification, space = _b.space, variant = _a.variant, noMargin = _a.noMargin;
36
+ // @ts-ignore
37
+ var currentVariant = notification.variants[variant];
38
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border: ", " solid ", ";\n border-radius: ", ";\n margin-bottom: ", ";\n "], ["\n border: ", " solid ", ";\n border-radius: ", ";\n margin-bottom: ", ";\n "])), notification.borderWidth, currentVariant.borderColor, notification.borderRadius, noMargin ? 0 : space[4]);
39
+ });
40
+ export var NotificationContentBox = styled.View(function (_a) {
41
+ var _b = _a.theme, colors = _b.colors, _c = _b.notification, paddingX = _c.paddingX, paddingY = _c.paddingY, variants = _c.variants, smallAndUp = _a.smallAndUp, variant = _a.variant;
42
+ // @ts-ignore
43
+ var currentVariant = variants[variant];
44
+ return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: ", " ", ";\n\n a {\n color: ", ";\n :hover {\n color: ", ";\n }\n }\n ul {\n list-style-type: square;\n }\n li {\n color: ", ";\n }\n "], ["\n padding: ", " ", ";\n\n a {\n color: ", ";\n :hover {\n color: ", ";\n }\n }\n ul {\n list-style-type: square;\n }\n li {\n color: ", ";\n }\n "])), paddingX[smallAndUp ? 1 : 0], paddingY[smallAndUp ? 1 : 0], currentVariant.textColor, colors.body, currentVariant.textColor);
45
+ });
46
+ export var NotificationTitleBox = styled.View(function (_a) {
47
+ var notification = _a.theme.notification, variant = _a.variant, dismissable = _a.dismissable, smallAndUp = _a.smallAndUp;
35
48
  // @ts-ignore to support additional palettes.
36
49
  var currentVariant = notification.variants[variant];
37
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n border: ", " solid ", ";\n background-color: ", ";\n border-radius: ", ";\n padding: ", ";\n ", "\n "], ["\n position: relative;\n border: ", " solid ", ";\n background-color: ", ";\n border-radius: ", ";\n padding: ", ";\n ", "\n "])), notification.borderWidth, currentVariant.borderColor, currentVariant.background, notification.borderRadius, notification.padding[smallAndUp ? 1 : 0], noMargin ? null : "margin-bottom: ".concat(space[4], ";"));
50
+ return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n background-color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n "], ["\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n background-color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n "])), currentVariant.background, notification.paddingX[smallAndUp ? 1 : 0], notification.paddingX[smallAndUp ? 1 : 0], notification.paddingY[smallAndUp ? 1 : 0], dismissable
51
+ ? numberToPx(pxToNumber(notification.dismiss.touchSize) -
52
+ pxToNumber(notification.dismiss.size))
53
+ : notification.paddingY[smallAndUp ? 1 : 0]);
54
+ });
55
+ var NotificationTitle = styled.Text(function (_a) {
56
+ var _b = _a.theme, fonts = _b.fonts, fontWeights = _b.fontWeights, responsiveFontSizes = _b.responsiveFontSizes, notification = _b.notification, variant = _a.variant;
57
+ // @ts-ignore
58
+ var currentVariant = notification.variants[variant];
59
+ return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n "], ["\n color: ", ";\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n "])), currentVariant.textColor, fonts.bold, fontWeights.bold, responsiveFontSizes.body[0]);
38
60
  });
39
- var NotificationTitle = styled(Heading2)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-top: 0;\n"], ["\n margin-top: 0;\n"])));
40
61
  var DismissButton = styled.TouchableOpacity(function (_a) {
41
62
  var notification = _a.theme.notification;
42
- return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n position: absolute;\n color: ", ";\n top: 0;\n right: 0;\n align-items: center;\n justify-content: center;\n "], ["\n width: ", ";\n height: ", ";\n position: absolute;\n color: ", ";\n top: 0;\n right: 0;\n align-items: center;\n justify-content: center;\n "])), notification.dismiss.touchSize, notification.dismiss.touchSize, notification.dismiss.color);
63
+ return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n align-items: center;\n justify-content: center;\n "], ["\n width: ", ";\n height: ", ";\n align-items: center;\n justify-content: center;\n "])), notification.dismiss.touchSize, notification.dismiss.touchSize);
43
64
  });
44
65
  export var Notification = forwardRef(function (_a, ref) {
45
- var variant = _a.variant, children = _a.children, title = _a.title, noMargin = _a.noMargin, dismissable = _a.dismissable, onDismiss = _a.onDismiss, rest = __rest(_a, ["variant", "children", "title", "noMargin", "dismissable", "onDismiss"]);
66
+ var _b = _a.variant, variant = _b === void 0 ? 'info' : _b, children = _a.children, _c = _a.title, title = _c === void 0 ? 'Info' : _c, noMargin = _a.noMargin, dismissable = _a.dismissable, onDismiss = _a.onDismiss, rest = __rest(_a, ["variant", "children", "title", "noMargin", "dismissable", "onDismiss"]);
46
67
  var breakpoints = useBreakpoint();
47
68
  var theme = useContext(ThemeContext);
48
- var _b = useState(false), dismissed = _b[0], setDismissed = _b[1];
49
- return dismissed ? null : (React.createElement(View, __assign({ ref: ref }, rest), children ? (React.createElement(NotificationBox, __assign({ variant: variant, noMargin: noMargin, testID: "nb-notification" }, breakpoints),
50
- dismissable && (React.createElement(DismissButton, { accessibilityLabel: "Dismiss", testID: "nb-notification-dismiss", onPress: function () {
69
+ var _d = useState(false), dismissed = _d[0], setDismissed = _d[1];
70
+ if (dismissed) {
71
+ return null;
72
+ }
73
+ var renderDismissButton = function () {
74
+ if (!dismissable)
75
+ return null;
76
+ return (React.createElement(DismissButton, { accessibilityLabel: "Dismiss", testID: "nb-notification-dismiss", onPress: function () {
51
77
  setDismissed(true);
52
78
  if (onDismiss) {
53
79
  onDismiss();
54
80
  }
55
81
  } },
56
- React.createElement(Icon, { name: theme.notification.dismiss.icon, size: theme.notification.dismiss.size }))),
57
- title && React.createElement(NotificationTitle, null, title),
58
- children)) : null));
82
+ React.createElement(Icon, { name: theme.notification.dismiss.icon, size: theme.notification.dismiss.size,
83
+ // @ts-ignore
84
+ color: theme.notification.variants[variant].textColor })));
85
+ };
86
+ return (React.createElement(View, __assign({ ref: ref }, rest),
87
+ React.createElement(NotificationBox, __assign({ variant: variant, noMargin: noMargin, testID: "nb-notification" }, breakpoints),
88
+ React.createElement(NotificationTitleBox, __assign({ variant: variant, "data-testid": "nb-notification-box", dismissable: dismissable }, breakpoints),
89
+ React.createElement(NotificationTitle, { variant: variant }, title),
90
+ renderDismissButton()),
91
+ children ? (React.createElement(NotificationContentBox, __assign({ variant: variant }, breakpoints), children)) : null)));
59
92
  });
60
- export var ErrorNotification = forwardRef(function (props, ref) { return (React.createElement(Notification, __assign({ ref: ref, variant: "error", title: React.createElement(React.Fragment, null, "Oops, there\u2019s a problem\u2026") }, props))); });
61
- export var SuccessNotification = forwardRef(function (props, ref) { return (React.createElement(Notification, __assign({ ref: ref, variant: "success" }, props))); });
93
+ export var ErrorNotification = forwardRef(function (props, ref) { return (React.createElement(Notification, __assign({ ref: ref, variant: "error", title: "Oops, there\u2019s a problem\u2026" }, props))); });
94
+ export var SuccessNotification = forwardRef(function (props, ref) { return (React.createElement(Notification, __assign({ title: "Success", ref: ref, variant: "success" }, props))); });
62
95
  export var InfoNotification = forwardRef(function (props, ref) { return React.createElement(Notification, __assign({ ref: ref, variant: "info" }, props)); });
63
- export var WarningNotification = forwardRef(function (props, ref) { return React.createElement(Notification, __assign({ ref: ref, variant: "warning" }, props)); });
64
- var templateObject_1, templateObject_2, templateObject_3;
96
+ export var WarningNotification = forwardRef(function (props, ref) { return (React.createElement(Notification, __assign({ title: "Warning", ref: ref, variant: "warning" }, props))); });
97
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
@@ -29,7 +29,7 @@ import { TouchableOpacity, View, } from 'react-native';
29
29
  import styled from '../../styled.native';
30
30
  import { pxToNumber } from '../../utils';
31
31
  import { HintText } from '../HintText';
32
- import { SubLabelText } from '../SubLabelText';
32
+ import { LabelText } from '../LabelText';
33
33
  var StyledRadioInputWrapper = styled.View(function (_a) {
34
34
  var radio = _a.theme.radio;
35
35
  var radioSize = pxToNumber(radio.size);
@@ -37,11 +37,15 @@ var StyledRadioInputWrapper = styled.View(function (_a) {
37
37
  return "\n width: ".concat(radioSize + gap, "px;\n height: ").concat(radio.touchSize, ";\n ");
38
38
  });
39
39
  var StyledRadioInput = styled.View(function (_a) {
40
- var radio = _a.theme.radio, invalid = _a.invalid;
40
+ var radio = _a.theme.radio, invalid = _a.invalid, checked = _a.checked;
41
41
  var touchSize = pxToNumber(radio.touchSize);
42
42
  var radioSize = pxToNumber(radio.size);
43
43
  var radioDistance = (touchSize - radioSize) / 2;
44
- return "\n width: ".concat(radio.size, ";\n height: ").concat(radio.size, ";\n border: ").concat(radio.borderWidth, " solid;\n margin-top: ").concat(radioDistance, "px;\n border-radius: ").concat(radioSize / 2, "px;\n border-color: ").concat(invalid ? radio.errorColor : radio.borderColor, ";\n background: ").concat(radio.background, ";\n ");
44
+ return "\n width: ".concat(radio.size, ";\n height: ").concat(radio.size, ";\n border: ").concat(radio.borderWidth, " solid;\n margin-top: ").concat(radioDistance, "px;\n border-radius: ").concat(radioSize / 2, "px;\n border-color: ").concat(invalid
45
+ ? radio.errorColor
46
+ : checked
47
+ ? radio.dotColor
48
+ : radio.borderColor, ";\n background: ").concat(radio.background, ";\n background: ").concat(checked ? radio.checkedBackground : radio.background, ";\n ");
45
49
  });
46
50
  var StyledRadioInputDot = styled.View(function (_a) {
47
51
  var radio = _a.theme.radio, checked = _a.checked;
@@ -54,10 +58,10 @@ var StyledRadioInputDot = styled.View(function (_a) {
54
58
  var Input = function (_a) {
55
59
  var checked = _a.checked, invalid = _a.invalid, rest = __rest(_a, ["checked", "invalid"]);
56
60
  return (React.createElement(StyledRadioInputWrapper, __assign({}, rest),
57
- React.createElement(StyledRadioInput, { invalid: invalid },
61
+ React.createElement(StyledRadioInput, { invalid: invalid, checked: checked },
58
62
  React.createElement(StyledRadioInputDot, { checked: checked }))));
59
63
  };
60
- var LabelText = styled(SubLabelText)(function (_a) {
64
+ var RadioLabelText = styled(LabelText)(function (_a) {
61
65
  var space = _a.theme.space;
62
66
  return "\n padding-top: ".concat(space[3], ";\n ");
63
67
  });
@@ -74,7 +78,7 @@ var Radio = forwardRef(function (_a, ref) {
74
78
  React.createElement(StyledWrapper, null,
75
79
  React.createElement(Input, { checked: checked, invalid: invalid }),
76
80
  React.createElement(View, { style: { flexShrink: 1 } },
77
- React.createElement(LabelText, null, label),
81
+ React.createElement(RadioLabelText, null, label),
78
82
  hint ? React.createElement(HintText, null, hint) : null))));
79
83
  });
80
84
  export { Radio };
@@ -29,8 +29,8 @@ var StyledText = styled.Text(function (_a) {
29
29
  return "\n font-size: ".concat(tabs.tab.fontSize[smallAndUp ? 1 : 0], ";\n font-family: ").concat(tabs.tab.fontFamily, ";\n font-weight: ").concat(tabs.tab.fontWeight, ";\n background-color: ").concat(active ? tabs.tab.active.backgroundColor : tabs.tab.inactive.backgroundColor, ";\n line-height: ").concat("".concat(tabs.tab.lineHeight * pxToNumber(tabs.tab.fontSize[0]), "px"), ";\n color: ").concat(active ? tabs.tab.active.foregroundColor : tabs.tab.inactive.foregroundColor, ";\n text-align: center;\n padding: ").concat("".concat(tabs.tab.paddingVertical[smallAndUp ? 1 : 0], " ").concat(tabs.tab.paddingHorizontal[smallAndUp ? 1 : 0]), ";\n");
30
30
  });
31
31
  var StyledTouchableOpacity = styled.TouchableOpacity(function (_a) {
32
- var _b = _a.active, active = _b === void 0 ? false : _b, _c = _a.first, first = _c === void 0 ? false : _c, _d = _a.last, last = _d === void 0 ? false : _d, _e = _a.stretch, stretch = _e === void 0 ? false : _e, _f = _a.theme, card = _f.card, tabs = _f.tabs;
33
- return "flex-grow: ".concat(stretch ? 1 : 0, ";\n border: ").concat(card.borderWidth, " solid ").concat(card.borderColor, ";\n border-bottom-color: ").concat(active ? tabs.tab.active.backgroundColor : card.borderColor, ";\n border-top-left-radius: ").concat(first ? card.borderRadius : 0, ";\n border-top-right-radius: ").concat(first ? card.borderRadius : 0, ";\n border-right-width: ").concat(card.borderWidth, ";\n border-left-width: ").concat(first ? card.borderWidth : 0, ";\n background-color: ").concat(active ? tabs.tab.active.borderTopColor : tabs.tab.inactive.backgroundColor, ";\n padding-top: ").concat(tabs.tab.borderTopWidth, ";\n border-top-left-radius: ").concat(first ? card.borderRadius : 0, ";\n border-top-right-radius: ").concat(last && stretch ? card.borderRadius : 0, ";\n");
32
+ var _b = _a.active, active = _b === void 0 ? false : _b, _c = _a.first, first = _c === void 0 ? false : _c, _d = _a.last, last = _d === void 0 ? false : _d, _e = _a.stretch, stretch = _e === void 0 ? false : _e, _f = _a.theme, card = _f.card, tabs = _f.tabs, inline = _a.inline;
33
+ return "flex-grow: ".concat(stretch ? 1 : 0, ";\n border: ").concat(card.borderWidth, " solid ").concat(tabs.tab.borderColor, ";\n border-bottom-color: ").concat(active ? tabs.tab.active.backgroundColor : card.borderColor, ";\n border-top-color: ").concat(inline ? card.borderColor : tabs.tab.borderColor, ";\n border-right-color: ").concat(last && inline ? card.borderColor : tabs.tab.borderColor, "};\n border-left-color: ").concat(first && inline ? card.borderColor : tabs.tab.borderColor, "};\n border-right-width: ").concat(card.borderWidth, ";\n border-left-width: ").concat(first ? card.borderWidth : 0, ";\n background-color: ").concat(active ? tabs.tab.active.borderColor : tabs.tab.inactive.backgroundColor, ";\n padding-bottom: ").concat(tabs.tab.borderBottomWidth, ";\n");
34
34
  });
35
35
  export var Tab = forwardRef(function (
36
36
  // eslint-disable-next-line
@@ -29,7 +29,7 @@ import { View } from 'react-native';
29
29
  import styled, { css } from '../../styled.native';
30
30
  import { callAll } from '../../utils';
31
31
  export var TabList = styled(function (_a) {
32
- var children = _a.children, setActiveTab = _a.setActiveTab, activeTab = _a.activeTab, tabRefs = _a.tabRefs, fullWidth = _a.fullWidth, rest = __rest(_a, ["children", "setActiveTab", "activeTab", "tabRefs", "fullWidth"]);
32
+ var children = _a.children, setActiveTab = _a.setActiveTab, activeTab = _a.activeTab, tabRefs = _a.tabRefs, fullWidth = _a.fullWidth, inline = _a.inline, rest = __rest(_a, ["children", "setActiveTab", "activeTab", "tabRefs", "fullWidth", "inline"]);
33
33
  return (React.createElement(View, __assign({ accessibilityRole: "tablist" }, rest), Children.map(children, function (child, i) {
34
34
  return cloneElement(child, {
35
35
  onPress: callAll(function () { return setActiveTab && setActiveTab(i); }, child.props.onPress),
@@ -38,6 +38,7 @@ export var TabList = styled(function (_a) {
38
38
  ref: tabRefs[i],
39
39
  first: i === 0,
40
40
  last: Children.count(children) - 1 === i,
41
+ inline: inline,
41
42
  });
42
43
  })));
43
44
  })(function (_a) {
@@ -31,7 +31,7 @@ import { Card } from '../Card';
31
31
  import { TabList } from './TabList';
32
32
  import { TabPanel } from './TabPanel';
33
33
  export var Tabs = styled(function (_a) {
34
- var children = _a.children, _b = _a.defaultSelected, defaultSelected = _b === void 0 ? 0 : _b, onSelected = _a.onSelected, fullWidth = _a.fullWidth, rest = __rest(_a, ["children", "defaultSelected", "onSelected", "fullWidth"]);
34
+ var children = _a.children, _b = _a.defaultSelected, defaultSelected = _b === void 0 ? 0 : _b, onSelected = _a.onSelected, fullWidth = _a.fullWidth, inline = _a.inline, rest = __rest(_a, ["children", "defaultSelected", "onSelected", "fullWidth", "inline"]);
35
35
  var _c = useState(defaultSelected), activeTab = _c[0], setActiveTab = _c[1];
36
36
  var tabList = filterChildrenByType(children, TabList);
37
37
  var tabPanels = filterChildrenByType(children, TabPanel);
@@ -52,6 +52,7 @@ export var Tabs = styled(function (_a) {
52
52
  activeTab: activeTab,
53
53
  tabRefs: tabRefs,
54
54
  fullWidth: fullWidth,
55
+ inline: inline,
55
56
  });
56
57
  }),
57
58
  tabPanels
@@ -61,7 +62,8 @@ export var Tabs = styled(function (_a) {
61
62
  hidden: activeTab !== index,
62
63
  });
63
64
  })));
64
- })(function () {
65
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 0;\n "], ["\n padding: 0;\n "])));
65
+ })(function (_a) {
66
+ var _b = _a.theme, card = _b.card, tabs = _b.tabs, inline = _a.inline;
67
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 0;\n border: ", " solid\n ", ";\n "], ["\n padding: 0;\n border: ", " solid\n ", ";\n "])), card.borderWidth, inline ? card.borderColor : tabs.tab.borderColor);
66
68
  });
67
69
  var templateObject_1;
@@ -27,12 +27,12 @@ var __rest = (this && this.__rest) || function (s, e) {
27
27
  import React, { Children, isValidElement, cloneElement, } from 'react';
28
28
  import { View } from 'react-native';
29
29
  import styled, { css } from '../../styled.native';
30
- import { calculateLineHeight } from '../../theme';
31
30
  import { styledComponentWithBreakpoints } from '../../utils';
32
31
  var StyledP = styled.Text(function (_a) {
33
32
  var text = _a.theme.text, smallAndUp = _a.smallAndUp;
34
33
  var fontSize = smallAndUp ? text.p.fontSize[1] : text.p.fontSize[0];
35
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "])), text.fontFamily, calculateLineHeight(fontSize, text.lineHeight), text.fontWeight, text.color, fontSize, smallAndUp ? text.p.marginTop[1] : text.p.marginTop[0], smallAndUp
34
+ var lineHeight = smallAndUp ? text.p.lineHeight[1] : text.p.lineHeight[0];
35
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "])), text.fontFamily, text.fontWeight, fontSize, lineHeight, text.color, smallAndUp ? text.p.marginTop[1] : text.p.marginTop[0], smallAndUp
36
36
  ? text.p.marginBottom[1]
37
37
  : text.p.marginBottom[0]);
38
38
  });
@@ -44,7 +44,7 @@ var StyledSmall = styled.Text(function (_a) {
44
44
  export var Small = styledComponentWithBreakpoints(StyledSmall);
45
45
  export var Strong = styled.Text(function (_a) {
46
46
  var text = _a.theme.text;
47
- return "\n font-weight: ".concat(text.strong.fontWeight, ";\n ");
47
+ return "\n font-family: ".concat(text.strong.fontFamily, ";\n font-weight: ").concat(text.strong.fontWeight, ";\n ");
48
48
  });
49
49
  export var Em = styled.Text(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-style: italic;\n"], ["\n font-style: italic;\n"])));
50
50
  export var LineThrough = styled.Text(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n text-decoration: line-through;\n"], ["\n text-decoration: line-through;\n"])));