@ovotech/element-native 3.3.2 → 3.4.0-canary-d9e3d0a-143

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/dist/components/Accordion/Accordion.js +5 -5
  2. package/dist/components/Accordion/styles.d.ts +4 -3
  3. package/dist/components/Accordion/styles.js +2 -2
  4. package/dist/components/ActionCard/ActionCard.d.ts +19 -0
  5. package/dist/components/ActionCard/ActionCard.js +115 -0
  6. package/dist/components/ActionCard/CloseIconShape.d.ts +3 -0
  7. package/dist/components/ActionCard/CloseIconShape.js +52 -0
  8. package/dist/components/ActionCard/IndicatorIconShape.d.ts +3 -0
  9. package/dist/components/ActionCard/IndicatorIconShape.js +52 -0
  10. package/dist/components/ActionCard/index.d.ts +1 -0
  11. package/dist/components/ActionCard/index.js +5 -0
  12. package/dist/components/ActionList/styled.d.ts +5 -5
  13. package/dist/components/Badge/Badge.d.ts +1 -1
  14. package/dist/components/Card/Card.d.ts +1 -1
  15. package/dist/components/{TextField → CurrencyField}/CurrencyField.js +1 -1
  16. package/dist/components/CurrencyField/index.d.ts +1 -0
  17. package/dist/components/CurrencyField/index.js +5 -0
  18. package/dist/components/{Input → CurrencyInput}/CurrencyInput.d.ts +1 -1
  19. package/dist/components/{Input → CurrencyInput}/CurrencyInput.js +1 -1
  20. package/dist/components/CurrencyInput/index.d.ts +1 -0
  21. package/dist/components/CurrencyInput/index.js +5 -0
  22. package/dist/components/DataTable/styles.d.ts +11 -11
  23. package/dist/components/DateField/DateField.js +2 -2
  24. package/dist/components/DescriptionList/styled.d.ts +1 -1
  25. package/dist/components/{SkeletonLoading/Skeleton.d.ts → Em/Em.d.ts} +2 -2
  26. package/dist/components/Em/Em.js +13 -0
  27. package/dist/components/Em/index.d.ts +1 -0
  28. package/dist/components/Em/index.js +5 -0
  29. package/dist/components/{TextField → EmailField}/EmailField.js +1 -1
  30. package/dist/components/EmailField/index.d.ts +1 -0
  31. package/dist/components/EmailField/index.js +5 -0
  32. package/dist/components/{Input → EmailInput}/EmailInput.js +1 -1
  33. package/dist/components/EmailInput/index.d.ts +1 -0
  34. package/dist/components/EmailInput/index.js +5 -0
  35. package/dist/components/ErrorText/ErrorText.d.ts +1 -1
  36. package/dist/components/Grid/Col.d.ts +1 -1
  37. package/dist/components/Grid/Row.d.ts +1 -1
  38. package/dist/components/Heading1/Heading1.d.ts +3 -0
  39. package/dist/components/{Heading/Heading.js → Heading1/Heading1.js} +2 -35
  40. package/dist/components/Heading1/index.d.ts +1 -0
  41. package/dist/components/Heading1/index.js +5 -0
  42. package/dist/components/Heading2/Heading2.d.ts +3 -0
  43. package/dist/components/Heading2/Heading2.js +71 -0
  44. package/dist/components/Heading2/index.d.ts +1 -0
  45. package/dist/components/Heading2/index.js +5 -0
  46. package/dist/components/Heading3/Heading3.d.ts +3 -0
  47. package/dist/components/Heading3/Heading3.js +71 -0
  48. package/dist/components/Heading3/index.d.ts +1 -0
  49. package/dist/components/Heading3/index.js +5 -0
  50. package/dist/components/Heading4/Heading4.d.ts +3 -0
  51. package/dist/components/Heading4/Heading4.js +71 -0
  52. package/dist/components/Heading4/index.d.ts +1 -0
  53. package/dist/components/Heading4/index.js +5 -0
  54. package/dist/components/HintText/HintText.d.ts +1 -1
  55. package/dist/components/LabelText/LabelText.d.ts +1 -1
  56. package/dist/components/LineThrough/LineThrough.d.ts +228 -0
  57. package/dist/components/{SkeletonLoading/Skeleton.js → LineThrough/LineThrough.js} +2 -2
  58. package/dist/components/LineThrough/index.d.ts +1 -0
  59. package/dist/components/LineThrough/index.js +5 -0
  60. package/dist/components/List/List.d.ts +4 -240
  61. package/dist/components/List/List.js +44 -91
  62. package/dist/components/{Text/Text.d.ts → List/styled.d.ts} +658 -442
  63. package/dist/components/List/styled.js +70 -0
  64. package/dist/components/Margin/Margin.d.ts +1 -1
  65. package/dist/components/NavHeader/IconButton.d.ts +13 -0
  66. package/dist/components/NavHeader/IconButton.js +31 -0
  67. package/dist/components/NavHeader/NavHeader.d.ts +7 -14
  68. package/dist/components/NavHeader/NavHeader.js +39 -48
  69. package/dist/components/NavHeader/NavHeader.styles.d.ts +1833 -0
  70. package/dist/components/NavHeader/NavHeader.styles.js +72 -0
  71. package/dist/components/NavHeader/index.d.ts +1 -1
  72. package/dist/components/Notification/Notification.d.ts +2 -2
  73. package/dist/components/{TextField → NumberField}/NumberField.js +1 -1
  74. package/dist/components/NumberField/index.d.ts +1 -0
  75. package/dist/components/NumberField/index.js +5 -0
  76. package/dist/components/{Input → NumberInput}/NumberInput.js +1 -1
  77. package/dist/components/NumberInput/index.d.ts +1 -0
  78. package/dist/components/NumberInput/index.js +5 -0
  79. package/dist/components/P/P.d.ts +239 -0
  80. package/dist/components/P/P.js +38 -0
  81. package/dist/components/P/index.d.ts +1 -0
  82. package/dist/components/P/index.js +5 -0
  83. package/dist/components/{TextField → PasswordField}/PasswordField.js +1 -1
  84. package/dist/components/PasswordField/index.d.ts +1 -0
  85. package/dist/components/PasswordField/index.js +5 -0
  86. package/dist/components/{Input → PasswordInput}/PasswordInput.js +1 -1
  87. package/dist/components/{Input → PasswordInput}/PasswordInput.styled.d.ts +1 -1
  88. package/dist/components/PasswordInput/index.d.ts +1 -0
  89. package/dist/components/PasswordInput/index.js +5 -0
  90. package/dist/components/{TextField → PhoneField}/PhoneField.js +1 -1
  91. package/dist/components/PhoneField/index.d.ts +1 -0
  92. package/dist/components/PhoneField/index.js +5 -0
  93. package/dist/components/{Input → PhoneInput}/PhoneInput.d.ts +1 -2
  94. package/dist/components/{Input → PhoneInput}/PhoneInput.js +2 -3
  95. package/dist/components/PhoneInput/index.d.ts +1 -0
  96. package/dist/components/PhoneInput/index.js +5 -0
  97. package/dist/components/SelectField/Select.d.ts +1 -1
  98. package/dist/components/SelectField/Select.js +5 -4
  99. package/dist/components/SkeletonAnimation/index.d.ts +1 -0
  100. package/dist/components/SkeletonAnimation/index.js +5 -0
  101. package/dist/components/{SkeletonLoading → SkeletonCTA}/SkeletonCTA.js +4 -5
  102. package/dist/components/SkeletonCTA/index.d.ts +1 -0
  103. package/dist/components/SkeletonCTA/index.js +5 -0
  104. package/dist/components/{SkeletonLoading → SkeletonCircle}/SkeletonCircle.js +3 -4
  105. package/dist/components/SkeletonCircle/index.d.ts +1 -0
  106. package/dist/components/SkeletonCircle/index.js +5 -0
  107. package/dist/components/{SkeletonLoading → SkeletonHeading}/SkeletonHeading.js +4 -5
  108. package/dist/components/SkeletonHeading/index.d.ts +1 -0
  109. package/dist/components/SkeletonHeading/index.js +5 -0
  110. package/dist/components/{SkeletonLoading → SkeletonText}/SkeletonText.js +4 -5
  111. package/dist/components/SkeletonText/index.d.ts +1 -0
  112. package/dist/components/SkeletonText/index.js +5 -0
  113. package/dist/components/Small/Small.d.ts +239 -0
  114. package/dist/components/Small/Small.js +38 -0
  115. package/dist/components/Small/index.d.ts +1 -0
  116. package/dist/components/Small/index.js +5 -0
  117. package/dist/components/Strong/Strong.d.ts +228 -0
  118. package/dist/components/Strong/Strong.js +11 -0
  119. package/dist/components/Strong/index.d.ts +1 -0
  120. package/dist/components/Strong/index.js +5 -0
  121. package/dist/components/SubLabelText/SubLabelText.d.ts +1 -1
  122. package/dist/components/TextField/TextField.js +1 -1
  123. package/dist/components/TextField/index.d.ts +0 -7
  124. package/dist/components/TextField/index.js +1 -15
  125. package/dist/components/TextGroup/TextGroup.d.ts +3 -0
  126. package/dist/components/TextGroup/TextGroup.js +47 -0
  127. package/dist/components/TextGroup/index.d.ts +1 -0
  128. package/dist/components/TextGroup/index.js +5 -0
  129. package/dist/components/{Input → TextInput}/TextInput.js +1 -1
  130. package/dist/components/TextInput/index.d.ts +1 -0
  131. package/dist/components/TextInput/index.js +5 -0
  132. package/dist/components/{TextField → TextareaField}/TextareaField.js +1 -1
  133. package/dist/components/TextareaField/index.d.ts +1 -0
  134. package/dist/components/TextareaField/index.js +5 -0
  135. package/dist/components/{Input → TextareaInput}/TextareaInput.d.ts +1 -1
  136. package/dist/components/{Input → TextareaInput}/TextareaInput.js +1 -1
  137. package/dist/components/TextareaInput/index.d.ts +1 -0
  138. package/dist/components/TextareaInput/index.js +5 -0
  139. package/dist/components/index.d.ts +28 -4
  140. package/dist/components/index.js +28 -4
  141. package/dist/esm/components/Accordion/Accordion.js +3 -3
  142. package/dist/esm/components/Accordion/styles.js +2 -2
  143. package/dist/esm/components/ActionCard/ActionCard.js +85 -0
  144. package/dist/esm/components/ActionCard/CloseIconShape.js +22 -0
  145. package/dist/esm/components/ActionCard/IndicatorIconShape.js +22 -0
  146. package/dist/esm/components/ActionCard/index.js +1 -0
  147. package/dist/esm/components/{TextField → CurrencyField}/CurrencyField.js +1 -1
  148. package/dist/esm/components/CurrencyField/index.js +1 -0
  149. package/dist/esm/components/{Input → CurrencyInput}/CurrencyInput.js +1 -1
  150. package/dist/esm/components/CurrencyInput/index.js +1 -0
  151. package/dist/esm/components/DateField/DateField.js +1 -1
  152. package/dist/esm/components/Em/Em.js +7 -0
  153. package/dist/esm/components/Em/index.js +1 -0
  154. package/dist/esm/components/{TextField → EmailField}/EmailField.js +1 -1
  155. package/dist/esm/components/EmailField/index.js +1 -0
  156. package/dist/esm/components/{Input → EmailInput}/EmailInput.js +1 -1
  157. package/dist/esm/components/EmailInput/index.js +1 -0
  158. package/dist/esm/components/Heading1/Heading1.js +44 -0
  159. package/dist/esm/components/Heading1/index.js +1 -0
  160. package/dist/esm/components/Heading2/Heading2.js +44 -0
  161. package/dist/esm/components/Heading2/index.js +1 -0
  162. package/dist/esm/components/Heading3/Heading3.js +44 -0
  163. package/dist/esm/components/Heading3/index.js +1 -0
  164. package/dist/esm/components/Heading4/Heading4.js +44 -0
  165. package/dist/esm/components/Heading4/index.js +1 -0
  166. package/dist/esm/components/{SkeletonLoading/Skeleton.js → LineThrough/LineThrough.js} +1 -1
  167. package/dist/esm/components/LineThrough/index.js +1 -0
  168. package/dist/esm/components/List/List.js +41 -65
  169. package/dist/esm/components/List/styled.js +44 -0
  170. package/dist/esm/components/NavHeader/IconButton.js +27 -0
  171. package/dist/esm/components/NavHeader/NavHeader.js +41 -50
  172. package/dist/esm/components/NavHeader/NavHeader.styles.js +43 -0
  173. package/dist/esm/components/{TextField → NumberField}/NumberField.js +1 -1
  174. package/dist/esm/components/NumberField/index.js +1 -0
  175. package/dist/esm/components/{Input → NumberInput}/NumberInput.js +1 -1
  176. package/dist/esm/components/NumberInput/index.js +1 -0
  177. package/dist/esm/components/P/P.js +12 -0
  178. package/dist/esm/components/P/index.js +1 -0
  179. package/dist/esm/components/{TextField → PasswordField}/PasswordField.js +1 -1
  180. package/dist/esm/components/PasswordField/index.js +1 -0
  181. package/dist/esm/components/{Input → PasswordInput}/PasswordInput.js +1 -1
  182. package/dist/esm/components/PasswordInput/index.js +1 -0
  183. package/dist/esm/components/{TextField → PhoneField}/PhoneField.js +1 -1
  184. package/dist/esm/components/PhoneField/index.js +1 -0
  185. package/dist/esm/components/{Input → PhoneInput}/PhoneInput.js +2 -3
  186. package/dist/esm/components/PhoneInput/index.js +1 -0
  187. package/dist/esm/components/SelectField/Select.js +2 -1
  188. package/dist/esm/components/SkeletonAnimation/index.js +1 -0
  189. package/dist/esm/components/{SkeletonLoading → SkeletonCTA}/SkeletonCTA.js +3 -4
  190. package/dist/esm/components/SkeletonCTA/index.js +1 -0
  191. package/dist/esm/components/{SkeletonLoading → SkeletonCircle}/SkeletonCircle.js +3 -4
  192. package/dist/esm/components/SkeletonCircle/index.js +1 -0
  193. package/dist/esm/components/{SkeletonLoading → SkeletonHeading}/SkeletonHeading.js +3 -4
  194. package/dist/esm/components/SkeletonHeading/index.js +1 -0
  195. package/dist/esm/components/{SkeletonLoading → SkeletonText}/SkeletonText.js +3 -4
  196. package/dist/esm/components/SkeletonText/index.js +1 -0
  197. package/dist/esm/components/Small/Small.js +12 -0
  198. package/dist/esm/components/Small/index.js +1 -0
  199. package/dist/esm/components/Strong/Strong.js +5 -0
  200. package/dist/esm/components/Strong/index.js +1 -0
  201. package/dist/esm/components/TextField/TextField.js +1 -1
  202. package/dist/esm/components/TextField/index.js +0 -7
  203. package/dist/esm/components/TextGroup/TextGroup.js +43 -0
  204. package/dist/esm/components/TextGroup/index.js +1 -0
  205. package/dist/esm/components/{Input → TextInput}/TextInput.js +1 -1
  206. package/dist/esm/components/TextInput/index.js +1 -0
  207. package/dist/esm/components/{TextField → TextareaField}/TextareaField.js +1 -1
  208. package/dist/esm/components/TextareaField/index.js +1 -0
  209. package/dist/esm/components/{Input → TextareaInput}/TextareaInput.js +1 -1
  210. package/dist/esm/components/TextareaInput/index.js +1 -0
  211. package/dist/esm/components/index.js +28 -4
  212. package/dist/styled.native.d.ts +6 -6
  213. package/package.json +5 -3
  214. package/dist/components/Heading/Heading.d.ts +0 -6
  215. package/dist/components/Heading/index.d.ts +0 -1
  216. package/dist/components/Heading/index.js +0 -8
  217. package/dist/components/Input/index.d.ts +0 -7
  218. package/dist/components/Input/index.js +0 -17
  219. package/dist/components/SkeletonLoading/index.d.ts +0 -5
  220. package/dist/components/SkeletonLoading/index.js +0 -21
  221. package/dist/components/Text/Text.js +0 -93
  222. package/dist/components/Text/index.d.ts +0 -1
  223. package/dist/components/Text/index.js +0 -10
  224. package/dist/components/TextField/TelField.d.ts +0 -14
  225. package/dist/components/TextField/TelField.js +0 -38
  226. package/dist/esm/components/Heading/Heading.js +0 -74
  227. package/dist/esm/components/Heading/index.js +0 -1
  228. package/dist/esm/components/Input/index.js +0 -7
  229. package/dist/esm/components/SkeletonLoading/index.js +0 -5
  230. package/dist/esm/components/Text/Text.js +0 -66
  231. package/dist/esm/components/Text/index.js +0 -1
  232. package/dist/esm/components/TextField/TelField.js +0 -35
  233. /package/dist/components/{TextField → CurrencyField}/CurrencyField.d.ts +0 -0
  234. /package/dist/components/{TextField → EmailField}/EmailField.d.ts +0 -0
  235. /package/dist/components/{Input → EmailInput}/EmailInput.d.ts +0 -0
  236. /package/dist/components/{TextField → NumberField}/NumberField.d.ts +0 -0
  237. /package/dist/components/{Input → NumberInput}/NumberInput.d.ts +0 -0
  238. /package/dist/components/{TextField → PasswordField}/PasswordField.d.ts +0 -0
  239. /package/dist/components/{Input → PasswordInput}/PasswordInput.d.ts +0 -0
  240. /package/dist/components/{Input → PasswordInput}/PasswordInput.styled.js +0 -0
  241. /package/dist/components/{Input → PasswordInput}/PasswordVisibilityToggle.d.ts +0 -0
  242. /package/dist/components/{Input → PasswordInput}/PasswordVisibilityToggle.js +0 -0
  243. /package/dist/components/{TextField → PhoneField}/PhoneField.d.ts +0 -0
  244. /package/dist/components/{SkeletonLoading → SkeletonAnimation}/SkeletonAnimation.d.ts +0 -0
  245. /package/dist/components/{SkeletonLoading → SkeletonAnimation}/SkeletonAnimation.js +0 -0
  246. /package/dist/components/{SkeletonLoading → SkeletonCTA}/SkeletonCTA.d.ts +0 -0
  247. /package/dist/components/{SkeletonLoading → SkeletonCircle}/SkeletonCircle.d.ts +0 -0
  248. /package/dist/components/{SkeletonLoading → SkeletonHeading}/SkeletonHeading.d.ts +0 -0
  249. /package/dist/components/{SkeletonLoading → SkeletonText}/SkeletonText.d.ts +0 -0
  250. /package/dist/components/{Input → TextInput}/TextInput.d.ts +0 -0
  251. /package/dist/components/{TextField → TextareaField}/TextareaField.d.ts +0 -0
  252. /package/dist/esm/components/{Input → PasswordInput}/PasswordInput.styled.js +0 -0
  253. /package/dist/esm/components/{Input → PasswordInput}/PasswordVisibilityToggle.js +0 -0
  254. /package/dist/esm/components/{SkeletonLoading → SkeletonAnimation}/SkeletonAnimation.js +0 -0
  255. /package/dist/esm/{components/Accordion/hooks.js → hooks/use-layout.js} +0 -0
  256. /package/dist/{components/Accordion/hooks.d.ts → hooks/use-layout.d.ts} +0 -0
  257. /package/dist/{components/Accordion/hooks.js → hooks/use-layout.js} +0 -0
@@ -53,12 +53,12 @@ exports.Accordion = exports.withAnimated = void 0;
53
53
  var jsx_runtime_1 = require("react/jsx-runtime");
54
54
  var react_1 = require("react");
55
55
  var react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
56
+ var use_layout_1 = require("../../hooks/use-layout");
56
57
  var styled_native_1 = require("../../styled.native");
57
58
  var utils_1 = require("../../utils");
58
- var Heading_1 = require("../Heading");
59
+ var Heading4_1 = require("../Heading4");
59
60
  var Group_1 = require("./Group");
60
61
  var Icon_1 = require("./Icon");
61
- var hooks_1 = require("./hooks");
62
62
  var styles_1 = require("./styles");
63
63
  function withAnimated(WrappedComponent) {
64
64
  var displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
@@ -81,11 +81,11 @@ var Accordion = function (_a) {
81
81
  var _b = _a.expanded, expanded = _b === void 0 ? false : _b, first = _a.first, last = _a.last, title = _a.title, children = _a.children, onToggle = _a.onToggle;
82
82
  var _c = (0, react_1.useContext)(styled_native_1.ThemeContext), core = _c.core, semantic = _c.semantic;
83
83
  var Header = (0, react_1.useContext)(Group_1.AccordionGroupContext).Header;
84
- var AccordionHeading = Header !== null && Header !== void 0 ? Header : Heading_1.Heading4;
84
+ var AccordionHeading = Header !== null && Header !== void 0 ? Header : Heading4_1.Heading4;
85
85
  var AnimatedHeading = (0, react_1.useMemo)(function () { return withAnimated(AccordionHeading); }, [
86
86
  AccordionHeading,
87
87
  ]);
88
- var _d = (0, hooks_1.useLayout)(0), layout = _d[0], onLayout = _d[1];
88
+ var _d = (0, use_layout_1.useLayout)(0), layout = _d[0], onLayout = _d[1];
89
89
  var _e = (0, react_1.useState)(expanded), open = _e[0], setOpen = _e[1];
90
90
  var handleHeightContent = (0, react_1.useMemo)(function () { return layout.height || 100; }, [
91
91
  layout.height,
@@ -125,7 +125,7 @@ var Accordion = function (_a) {
125
125
  var headerStyle = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
126
126
  color: (0, react_native_reanimated_1.interpolateColor)(progress.value, [0, 1], [semantic.message.branded, semantic.message.base]),
127
127
  }); });
128
- return ((0, jsx_runtime_1.jsxs)(styles_1.StyledAccordion, __assign({ first: first, last: last }, { children: [(0, jsx_runtime_1.jsxs)(styles_1.StyledAccordionHeader, __assign({ accessibilityState: { expanded: open }, onPress: toggleOpen, testID: "accordionTitle" }, { children: [(0, jsx_runtime_1.jsx)(AnimatedHeading, __assign({ style: [
128
+ return ((0, jsx_runtime_1.jsxs)(styles_1.StyledAccordion, __assign({ first: first, last: last, isExpanded: open }, { children: [(0, jsx_runtime_1.jsxs)(styles_1.StyledAccordionHeader, __assign({ accessibilityState: { expanded: open }, onPress: toggleOpen, testID: "accordionTitle" }, { children: [(0, jsx_runtime_1.jsx)(AnimatedHeading, __assign({ style: [
129
129
  headerStyle,
130
130
  {
131
131
  paddingTop: (0, utils_1.pxToNumber)(core.space[1]),
@@ -5,7 +5,7 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
5
5
  borderWidth: Record<"small" | "medium" | "large", string>;
6
6
  breakpoint: Record<"small" | "medium" | "large", string | number>;
7
7
  mediaQuery: Record<"small" | "medium" | "large", string>;
8
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
8
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
9
9
  transition: Record<"medium" | "slow" | "fast", string>;
10
10
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
11
11
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -229,6 +229,7 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
229
229
  }, {
230
230
  first?: boolean | undefined;
231
231
  last?: boolean | undefined;
232
+ isExpanded: boolean;
232
233
  }, never>;
233
234
  export declare const StyledAccordionHeader: import("styled-components").StyledComponent<typeof import("react-native").TouchableOpacity, {
234
235
  core: {
@@ -236,7 +237,7 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
236
237
  borderWidth: Record<"small" | "medium" | "large", string>;
237
238
  breakpoint: Record<"small" | "medium" | "large", string | number>;
238
239
  mediaQuery: Record<"small" | "medium" | "large", string>;
239
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
240
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
240
241
  transition: Record<"medium" | "slow" | "fast", string>;
241
242
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
242
243
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -464,7 +465,7 @@ export declare const StyledContainer: import("styled-components").StyledComponen
464
465
  borderWidth: Record<"small" | "medium" | "large", string>;
465
466
  breakpoint: Record<"small" | "medium" | "large", string | number>;
466
467
  mediaQuery: Record<"small" | "medium" | "large", string>;
467
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
468
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
468
469
  transition: Record<"medium" | "slow" | "fast", string>;
469
470
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
470
471
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -34,8 +34,8 @@ exports.StyledContainer = exports.StyledAccordionHeader = exports.StyledAccordio
34
34
  var react_native_reanimated_1 = __importDefault(require("react-native-reanimated"));
35
35
  var styled_native_1 = __importStar(require("../../styled.native"));
36
36
  exports.StyledAccordion = (0, styled_native_1.default)(react_native_reanimated_1.default.View)(function (_a) {
37
- var _b = _a.theme, semantic = _b.semantic, core = _b.core, first = _a.first, last = _a.last;
38
- return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n border-width: ", ";\n border-color: ", ";\n border-bottom-width: 0;\n\n ", "\n\n ", "\n "], ["\n width: 100%;\n border-width: ", ";\n border-color: ", ";\n border-bottom-width: 0;\n\n ", "\n\n ", "\n "])), core.borderWidth.small, semantic.border.differentiated, first
37
+ var _b = _a.theme, semantic = _b.semantic, core = _b.core, first = _a.first, last = _a.last, isExpanded = _a.isExpanded;
38
+ return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n border-width: ", ";\n border-color: ", ";\n border-bottom-width: 0;\n background-color: ", ";\n transition: background-color ", ";\n\n ", "\n\n ", "\n "], ["\n width: 100%;\n border-width: ", ";\n border-color: ", ";\n border-bottom-width: 0;\n background-color: ", ";\n transition: background-color ", ";\n\n ", "\n\n ", "\n "])), core.borderWidth.small, semantic.border.differentiated, isExpanded ? core.color.brand.white : 'transparent', core.transition.fast, first
39
39
  ? {
40
40
  borderTopLeftRadius: core.radius.small,
41
41
  borderTopRightRadius: core.radius.small,
@@ -0,0 +1,19 @@
1
+ import { ReactElement } from 'react';
2
+ import { ImageSourcePropType } from 'react-native';
3
+ import { CTAVariantName } from '../CTAButton/CTAButton';
4
+ export declare type ActionCardProps = {
5
+ title: string;
6
+ body?: string | ReactElement;
7
+ onPressCloseButton?: () => void;
8
+ onPressActionButton?: () => void;
9
+ onPressIndicator?: () => void;
10
+ onMount?: () => void;
11
+ ctaVariant?: CTAVariantName;
12
+ image?: ImageSourcePropType;
13
+ buttonTitle?: string;
14
+ accessibilityLabel?: string;
15
+ inverted?: boolean;
16
+ inline?: boolean;
17
+ testID?: string;
18
+ };
19
+ export declare const ActionCard: ({ onPressCloseButton, onPressActionButton, onPressIndicator, onMount, body, title, buttonTitle, ctaVariant, image, testID, accessibilityLabel, inverted, inline, }: ActionCardProps) => JSX.Element;
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.ActionCard = void 0;
41
+ var jsx_runtime_1 = require("react/jsx-runtime");
42
+ var masked_view_1 = __importDefault(require("@react-native-masked-view/masked-view"));
43
+ var react_1 = require("react");
44
+ var react_native_1 = require("react-native");
45
+ var __1 = require("../");
46
+ var styled_native_1 = __importStar(require("../../styled.native"));
47
+ var P_1 = require("../P");
48
+ var CloseIconShape_1 = require("./CloseIconShape");
49
+ var IndicatorIconShape_1 = require("./IndicatorIconShape");
50
+ var StyledCard = styled_native_1.default.Pressable(function (_a) {
51
+ var _b = _a.theme, core = _b.core, semantic = _b.semantic, inline = _a.inline, inverted = _a.inverted, reducedBottomPadding = _a.reducedBottomPadding;
52
+ return "\n border-radius: ".concat(inline ? core.space[6] : 0, ";\n background-color: ").concat(inverted ? semantic.inverted.surface : semantic.surface.elevated, ";\n padding-bottom: ").concat(reducedBottomPadding ? core.space[1] : core.space[4], ";\n padding: ").concat(core.space[4], ";\n overflow: hidden;\n border-width: 0;\n width: 100%;\n ");
53
+ });
54
+ var StyledP = (0, styled_native_1.default)(P_1.P)(function (_a) {
55
+ var semantic = _a.theme.semantic, inverted = _a.inverted;
56
+ return "\n color: ".concat(inverted ? semantic.inverted.message.base : semantic.message.base, ";\n");
57
+ });
58
+ var ActionCard = function (_a) {
59
+ var onPressCloseButton = _a.onPressCloseButton, onPressActionButton = _a.onPressActionButton, onPressIndicator = _a.onPressIndicator, onMount = _a.onMount, body = _a.body, title = _a.title, buttonTitle = _a.buttonTitle, ctaVariant = _a.ctaVariant, image = _a.image, testID = _a.testID, _b = _a.accessibilityLabel, accessibilityLabel = _b === void 0 ? 'image' : _b, _c = _a.inverted, inverted = _c === void 0 ? true : _c, _d = _a.inline, inline = _d === void 0 ? false : _d;
60
+ var _e = (0, react_1.useContext)(styled_native_1.ThemeContext), core = _e.core, semantic = _e.semantic;
61
+ (0, react_1.useEffect)(function () {
62
+ if (onMount) {
63
+ onMount();
64
+ }
65
+ }, []);
66
+ var Heading = inline ? __1.Heading3 : __1.Heading2;
67
+ return ((0, jsx_runtime_1.jsx)(StyledCard, __assign({ onPress: onPressIndicator, inline: inline, inverted: inverted, reducedBottomPadding: Boolean(buttonTitle && !ctaVariant), testID: "".concat(testID, "-card") }, { children: (0, jsx_runtime_1.jsxs)(react_native_1.View, __assign({ style: { flexDirection: 'row' } }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ style: { flex: 1 } }, { children: (0, jsx_runtime_1.jsxs)(__1.Stack, __assign({ spaceBetween: 2 }, { children: [(0, jsx_runtime_1.jsx)(Heading, __assign({ style: {
68
+ color: inverted
69
+ ? semantic.inverted.message.link
70
+ : semantic.message.branded,
71
+ paddingRight: image || !onPressCloseButton ? 0 : parseInt(core.space[6]),
72
+ }, testID: "".concat(testID, "-heading") }, { children: title })), (0, jsx_runtime_1.jsxs)(react_native_1.View, { children: [typeof body === 'string' ? ((0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ style: {
73
+ paddingRight: !image && !title && onPressCloseButton
74
+ ? parseInt(core.space[6])
75
+ : 0,
76
+ } }, { children: (0, jsx_runtime_1.jsx)(StyledP, __assign({ inverted: inverted }, { children: body })) }))) : (body), buttonTitle && onPressActionButton && !onPressIndicator ? (!ctaVariant ? ((0, jsx_runtime_1.jsx)(__1.Action, __assign({ inverted: inverted, onPress: onPressActionButton, testID: "".concat(testID, "-button") }, { children: buttonTitle }))) : ((0, jsx_runtime_1.jsx)(__1.Margin, __assign({ top: 4 }, { children: (0, jsx_runtime_1.jsx)(__1.CTAButton, __assign({ onPress: onPressActionButton, testID: "".concat(testID, "-button"), variant: ctaVariant }, { children: buttonTitle })) })))) : null] })] })) })), image ? ((0, jsx_runtime_1.jsx)(masked_view_1.default, __assign({ style: {
77
+ flex: 1,
78
+ flexDirection: 'row',
79
+ height: '100%',
80
+ marginTop: -16,
81
+ marginRight: -16,
82
+ }, maskElement: (0, jsx_runtime_1.jsx)(react_native_1.View, { style: {
83
+ width: '100%',
84
+ height: 165,
85
+ backgroundColor: 'olive',
86
+ transform: [
87
+ { rotate: '-16deg' },
88
+ { translateX: 40 },
89
+ { translateY: 25 },
90
+ ],
91
+ } }) }, { children: (0, jsx_runtime_1.jsx)(react_native_1.Image, { resizeMode: "cover", source: image, style: {
92
+ width: '100%',
93
+ height: 200,
94
+ position: 'absolute',
95
+ top: 0,
96
+ right: 0,
97
+ }, accessible: true, accessibilityRole: "image", accessibilityLabel: accessibilityLabel }) }))) : null, onPressIndicator ? ((0, jsx_runtime_1.jsxs)(react_native_1.Pressable, __assign({ style: {
98
+ position: 'absolute',
99
+ right: -16,
100
+ bottom: -16,
101
+ }, onPress: onPressIndicator, testID: "".concat(testID, "-indicator-button") }, { children: [(0, jsx_runtime_1.jsx)(IndicatorIconShape_1.IndicatorIconShape, {}), (0, jsx_runtime_1.jsx)(__1.Icon, { size: 14, style: {
102
+ position: 'absolute',
103
+ right: inline ? 8 : 6,
104
+ bottom: 16,
105
+ }, color: semantic.surface.elevated, name: "chevron-right", accessibilityLabel: "chevron-right" })] }))) : null, onPressCloseButton && !onPressIndicator ? ((0, jsx_runtime_1.jsxs)(react_native_1.Pressable, __assign({ style: {
106
+ position: 'absolute',
107
+ right: -16,
108
+ top: -16,
109
+ }, onPress: onPressCloseButton, testID: "".concat(testID, "-close-button") }, { children: [(0, jsx_runtime_1.jsx)(CloseIconShape_1.CloseIconShape, {}), (0, jsx_runtime_1.jsx)(__1.Icon, { size: 14, style: {
110
+ position: 'absolute',
111
+ top: inline ? 14 : 12,
112
+ right: inline ? 14 : 12,
113
+ }, color: semantic.surface.elevated, name: "cross", accessibilityLabel: "close" })] }))) : null] })) })));
114
+ };
115
+ exports.ActionCard = ActionCard;
@@ -0,0 +1,3 @@
1
+ export declare const CloseIconShape: ({ color }: {
2
+ color?: string | undefined;
3
+ }) => JSX.Element;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.CloseIconShape = void 0;
41
+ var jsx_runtime_1 = require("react/jsx-runtime");
42
+ var react_native_svg_1 = __importStar(require("react-native-svg"));
43
+ var styled_native_1 = __importDefault(require("../../styled.native"));
44
+ var StyledPath = (0, styled_native_1.default)(react_native_svg_1.Path)(function (_a) {
45
+ var semantic = _a.theme.semantic, color = _a.color;
46
+ return "\n fill: ".concat(color !== null && color !== void 0 ? color : semantic.message.branded, "\n");
47
+ });
48
+ var CloseIconShape = function (_a) {
49
+ var color = _a.color;
50
+ return ((0, jsx_runtime_1.jsxs)(react_native_svg_1.default, __assign({ width: 44, height: 44 }, { children: [(0, jsx_runtime_1.jsx)(StyledPath, { color: color, d: "M11.632 44 0 0h44v35.402L11.632 44Z" }), (0, jsx_runtime_1.jsx)(react_native_svg_1.Defs, { children: (0, jsx_runtime_1.jsx)(react_native_svg_1.ClipPath, __assign({ id: "a" }, { children: (0, jsx_runtime_1.jsx)(react_native_svg_1.Path, { fill: "#fff", d: "M16 16h12v12H16z" }) })) })] })));
51
+ };
52
+ exports.CloseIconShape = CloseIconShape;
@@ -0,0 +1,3 @@
1
+ export declare const IndicatorIconShape: ({ color }: {
2
+ color?: string | undefined;
3
+ }) => JSX.Element;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.IndicatorIconShape = void 0;
41
+ var jsx_runtime_1 = require("react/jsx-runtime");
42
+ var react_native_svg_1 = __importStar(require("react-native-svg"));
43
+ var styled_native_1 = __importDefault(require("../../styled.native"));
44
+ var StyledPath = (0, styled_native_1.default)(react_native_svg_1.Path)(function (_a) {
45
+ var semantic = _a.theme.semantic, color = _a.color;
46
+ return "\n fill: ".concat(color !== null && color !== void 0 ? color : semantic.message.branded, "\n");
47
+ });
48
+ var IndicatorIconShape = function (_a) {
49
+ var color = _a.color;
50
+ return ((0, jsx_runtime_1.jsx)(react_native_svg_1.default, __assign({ width: 32, height: 48 }, { children: (0, jsx_runtime_1.jsx)(StyledPath, { color: color, d: "M0 9.5 32 1v47H10.5L0 9.5Z" }) })));
51
+ };
52
+ exports.IndicatorIconShape = IndicatorIconShape;
@@ -0,0 +1 @@
1
+ export { ActionCard } from './ActionCard';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActionCard = void 0;
4
+ var ActionCard_1 = require("./ActionCard");
5
+ Object.defineProperty(exports, "ActionCard", { enumerable: true, get: function () { return ActionCard_1.ActionCard; } });
@@ -8,7 +8,7 @@ export declare const StyledActionWrapper: import("styled-components").StyledComp
8
8
  borderWidth: Record<"small" | "medium" | "large", string>;
9
9
  breakpoint: Record<"small" | "medium" | "large", string | number>;
10
10
  mediaQuery: Record<"small" | "medium" | "large", string>;
11
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
11
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
12
12
  transition: Record<"medium" | "slow" | "fast", string>;
13
13
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
14
14
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -239,7 +239,7 @@ export declare const StyledActionInner: import("styled-components").StyledCompon
239
239
  borderWidth: Record<"small" | "medium" | "large", string>;
240
240
  breakpoint: Record<"small" | "medium" | "large", string | number>;
241
241
  mediaQuery: Record<"small" | "medium" | "large", string>;
242
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
242
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
243
243
  transition: Record<"medium" | "slow" | "fast", string>;
244
244
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
245
245
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -469,7 +469,7 @@ export declare const StyledActionText: import("styled-components").StyledCompone
469
469
  borderWidth: Record<"small" | "medium" | "large", string>;
470
470
  breakpoint: Record<"small" | "medium" | "large", string | number>;
471
471
  mediaQuery: Record<"small" | "medium" | "large", string>;
472
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
472
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
473
473
  transition: Record<"medium" | "slow" | "fast", string>;
474
474
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
475
475
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -701,7 +701,7 @@ export declare const StyledRightIcon: import("styled-components").StyledComponen
701
701
  borderWidth: Record<"small" | "medium" | "large", string>;
702
702
  breakpoint: Record<"small" | "medium" | "large", string | number>;
703
703
  mediaQuery: Record<"small" | "medium" | "large", string>;
704
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
704
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
705
705
  transition: Record<"medium" | "slow" | "fast", string>;
706
706
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
707
707
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -932,7 +932,7 @@ export declare const StyledLeftIcon: import("styled-components").StyledComponent
932
932
  borderWidth: Record<"small" | "medium" | "large", string>;
933
933
  breakpoint: Record<"small" | "medium" | "large", string | number>;
934
934
  mediaQuery: Record<"small" | "medium" | "large", string>;
935
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
935
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
936
936
  transition: Record<"medium" | "slow" | "fast", string>;
937
937
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
938
938
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -8,7 +8,7 @@ declare const StyledBadge: import("styled-components").StyledComponent<typeof im
8
8
  borderWidth: Record<"small" | "medium" | "large", string>;
9
9
  breakpoint: Record<"small" | "medium" | "large", string | number>;
10
10
  mediaQuery: Record<"small" | "medium" | "large", string>;
11
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
11
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
12
12
  transition: Record<"medium" | "slow" | "fast", string>;
13
13
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
14
14
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -4,7 +4,7 @@ export declare const Card: import("styled-components").StyledComponent<typeof im
4
4
  borderWidth: Record<"small" | "medium" | "large", string>;
5
5
  breakpoint: Record<"small" | "medium" | "large", string | number>;
6
6
  mediaQuery: Record<"small" | "medium" | "large", string>;
7
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
7
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
8
8
  transition: Record<"medium" | "slow" | "fast", string>;
9
9
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
10
10
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -26,7 +26,7 @@ exports.CurrencyField = void 0;
26
26
  var jsx_runtime_1 = require("react/jsx-runtime");
27
27
  var react_1 = require("react");
28
28
  var Field_1 = require("../Field");
29
- var CurrencyInput_1 = require("../Input/CurrencyInput");
29
+ var CurrencyInput_1 = require("../CurrencyInput");
30
30
  exports.CurrencyField = (0, react_1.forwardRef)(function (_a, ref) {
31
31
  var rest = __rest(_a, []);
32
32
  return ((0, jsx_runtime_1.jsx)(Field_1.Field, __assign({ affixWidth: 40 }, rest, { ref: ref }, { children: (0, jsx_runtime_1.jsx)(CurrencyInput_1.CurrencyInput, {}) })));
@@ -0,0 +1 @@
1
+ export { CurrencyField } from './CurrencyField';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CurrencyField = void 0;
4
+ var CurrencyField_1 = require("./CurrencyField");
5
+ Object.defineProperty(exports, "CurrencyField", { enumerable: true, get: function () { return CurrencyField_1.CurrencyField; } });
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { TextInput } from 'react-native';
3
- import { InputProps } from './Input';
3
+ import { InputProps } from '../Input/Input';
4
4
  export declare type CurrencyInputProps = InputProps & {
5
5
  currency?: 'GBP' | 'EUR' | 'AUD' | 'USD';
6
6
  };
@@ -26,7 +26,7 @@ exports.CurrencyInput = void 0;
26
26
  var jsx_runtime_1 = require("react/jsx-runtime");
27
27
  var react_1 = require("react");
28
28
  var utils_1 = require("../../utils");
29
- var NumberInput_1 = require("./NumberInput");
29
+ var NumberInput_1 = require("../NumberInput");
30
30
  var CurrencyInput = (0, react_1.forwardRef)(function (_a, ref) {
31
31
  var _b = _a.currency, currency = _b === void 0 ? 'GBP' : _b, invalid = _a.invalid, _c = _a.accessibilityLabel, accessibilityLabel = _c === void 0 ? '' : _c, rest = __rest(_a, ["currency", "invalid", "accessibilityLabel"]);
32
32
  var inputRef = (0, react_1.createRef)();
@@ -0,0 +1 @@
1
+ export { CurrencyInput, CurrencyInputProps } from './CurrencyInput';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CurrencyInput = void 0;
4
+ var CurrencyInput_1 = require("./CurrencyInput");
5
+ Object.defineProperty(exports, "CurrencyInput", { enumerable: true, get: function () { return CurrencyInput_1.CurrencyInput; } });
@@ -5,7 +5,7 @@ export declare const StyledTableContainer: import("styled-components").StyledCom
5
5
  borderWidth: Record<"small" | "medium" | "large", string>;
6
6
  breakpoint: Record<"small" | "medium" | "large", string | number>;
7
7
  mediaQuery: Record<"small" | "medium" | "large", string>;
8
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
8
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
9
9
  transition: Record<"medium" | "slow" | "fast", string>;
10
10
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
11
11
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -233,7 +233,7 @@ export declare const TableHeader: import("styled-components").StyledComponent<ty
233
233
  borderWidth: Record<"small" | "medium" | "large", string>;
234
234
  breakpoint: Record<"small" | "medium" | "large", string | number>;
235
235
  mediaQuery: Record<"small" | "medium" | "large", string>;
236
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
236
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
237
237
  transition: Record<"medium" | "slow" | "fast", string>;
238
238
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
239
239
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -463,7 +463,7 @@ export declare const TableHeaderText: import("styled-components").StyledComponen
463
463
  borderWidth: Record<"small" | "medium" | "large", string>;
464
464
  breakpoint: Record<"small" | "medium" | "large", string | number>;
465
465
  mediaQuery: Record<"small" | "medium" | "large", string>;
466
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
466
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
467
467
  transition: Record<"medium" | "slow" | "fast", string>;
468
468
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
469
469
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -691,7 +691,7 @@ export declare const TableCaptionText: import("styled-components").StyledCompone
691
691
  borderWidth: Record<"small" | "medium" | "large", string>;
692
692
  breakpoint: Record<"small" | "medium" | "large", string | number>;
693
693
  mediaQuery: Record<"small" | "medium" | "large", string>;
694
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
694
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
695
695
  transition: Record<"medium" | "slow" | "fast", string>;
696
696
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
697
697
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -919,7 +919,7 @@ export declare const CellText: import("styled-components").StyledComponent<typeo
919
919
  borderWidth: Record<"small" | "medium" | "large", string>;
920
920
  breakpoint: Record<"small" | "medium" | "large", string | number>;
921
921
  mediaQuery: Record<"small" | "medium" | "large", string>;
922
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
922
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
923
923
  transition: Record<"medium" | "slow" | "fast", string>;
924
924
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
925
925
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -1147,7 +1147,7 @@ export declare const TableCaption: import("styled-components").StyledComponent<t
1147
1147
  borderWidth: Record<"small" | "medium" | "large", string>;
1148
1148
  breakpoint: Record<"small" | "medium" | "large", string | number>;
1149
1149
  mediaQuery: Record<"small" | "medium" | "large", string>;
1150
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
1150
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
1151
1151
  transition: Record<"medium" | "slow" | "fast", string>;
1152
1152
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
1153
1153
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -1375,7 +1375,7 @@ export declare const TableRow: import("styled-components").StyledComponent<typeo
1375
1375
  borderWidth: Record<"small" | "medium" | "large", string>;
1376
1376
  breakpoint: Record<"small" | "medium" | "large", string | number>;
1377
1377
  mediaQuery: Record<"small" | "medium" | "large", string>;
1378
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
1378
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
1379
1379
  transition: Record<"medium" | "slow" | "fast", string>;
1380
1380
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
1381
1381
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -1605,7 +1605,7 @@ export declare const TableRowHeading: import("styled-components").StyledComponen
1605
1605
  borderWidth: Record<"small" | "medium" | "large", string>;
1606
1606
  breakpoint: Record<"small" | "medium" | "large", string | number>;
1607
1607
  mediaQuery: Record<"small" | "medium" | "large", string>;
1608
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
1608
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
1609
1609
  transition: Record<"medium" | "slow" | "fast", string>;
1610
1610
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
1611
1611
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -1833,7 +1833,7 @@ export declare const TableBody: import("styled-components").StyledComponent<type
1833
1833
  borderWidth: Record<"small" | "medium" | "large", string>;
1834
1834
  breakpoint: Record<"small" | "medium" | "large", string | number>;
1835
1835
  mediaQuery: Record<"small" | "medium" | "large", string>;
1836
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
1836
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
1837
1837
  transition: Record<"medium" | "slow" | "fast", string>;
1838
1838
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
1839
1839
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -2061,7 +2061,7 @@ export declare const TableCell: import("styled-components").StyledComponent<type
2061
2061
  borderWidth: Record<"small" | "medium" | "large", string>;
2062
2062
  breakpoint: Record<"small" | "medium" | "large", string | number>;
2063
2063
  mediaQuery: Record<"small" | "medium" | "large", string>;
2064
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
2064
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
2065
2065
  transition: Record<"medium" | "slow" | "fast", string>;
2066
2066
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
2067
2067
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -2291,7 +2291,7 @@ export declare const RowHeading: import("styled-components").StyledComponent<typ
2291
2291
  borderWidth: Record<"small" | "medium" | "large", string>;
2292
2292
  breakpoint: Record<"small" | "medium" | "large", string | number>;
2293
2293
  mediaQuery: Record<"small" | "medium" | "large", string>;
2294
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
2294
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
2295
2295
  transition: Record<"medium" | "slow" | "fast", string>;
2296
2296
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
2297
2297
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -48,7 +48,7 @@ var utils_1 = require("../../utils");
48
48
  var ErrorText_1 = require("../ErrorText");
49
49
  var FormGroup_1 = require("../FormGroup");
50
50
  var HintText_1 = require("../HintText");
51
- var Input_1 = require("../Input");
51
+ var NumberInput_1 = require("../NumberInput");
52
52
  var LabelText_1 = require("../LabelText");
53
53
  var Stack_1 = require("../Stack");
54
54
  var SubLabelText_1 = require("../SubLabelText");
@@ -85,6 +85,6 @@ exports.DateField = (0, react_1.forwardRef)(function (_a, ref) {
85
85
  internalRef.current.focus();
86
86
  }
87
87
  }; };
88
- return ((0, jsx_runtime_1.jsx)(FormGroup_1.FormGroup, __assign({ error: hasError }, { children: (0, jsx_runtime_1.jsxs)(Stack_1.Stack, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, { children: [(0, jsx_runtime_1.jsxs)(LabelText_1.LabelText, { children: [label, optional ? ' (optional)' : null] }), hint ? (0, jsx_runtime_1.jsx)(HintText_1.HintText, { children: hint }) : null, error ? (0, jsx_runtime_1.jsx)(ErrorText_1.ErrorText, { children: error }) : null] }), (0, jsx_runtime_1.jsxs)(InlineFields, __assign({ stretch: stretch }, { children: [(0, jsx_runtime_1.jsxs)(DayField, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, __assign({ onPress: focusRef(dayRef), accessible: false }, { children: (0, jsx_runtime_1.jsx)(SubLabelText_1.SubLabelText, { children: "Day" }) })), (0, jsx_runtime_1.jsx)(Input_1.NumberInput, { ref: (0, utils_1.mergeRefs)(dayRef, ref), accessibilityLabel: accessibilityLabel('Day'), invalid: hasError, value: value.day, onChangeText: handleChange('day'), testID: testID, stretch: true, editable: editable })] })), (0, jsx_runtime_1.jsxs)(MonthField, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, __assign({ onPress: focusRef(monthRef), accessible: false }, { children: (0, jsx_runtime_1.jsx)(SubLabelText_1.SubLabelText, { children: "Month" }) })), (0, jsx_runtime_1.jsx)(Input_1.NumberInput, { ref: monthRef, accessibilityLabel: accessibilityLabel('Month'), invalid: hasError, value: value.month, onChangeText: handleChange('month'), testID: "".concat(testID, "-month"), stretch: true, editable: editable })] })), (0, jsx_runtime_1.jsxs)(YearField, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, __assign({ onPress: focusRef(yearRef), accessible: false }, { children: (0, jsx_runtime_1.jsx)(SubLabelText_1.SubLabelText, { children: "Year" }) })), (0, jsx_runtime_1.jsx)(Input_1.NumberInput, { ref: yearRef, accessibilityLabel: accessibilityLabel('Year'), invalid: hasError, value: value.year, onChangeText: handleChange('year'), testID: "".concat(testID, "-year"), stretch: true, editable: editable })] }))] }))] })) })));
88
+ return ((0, jsx_runtime_1.jsx)(FormGroup_1.FormGroup, __assign({ error: hasError }, { children: (0, jsx_runtime_1.jsxs)(Stack_1.Stack, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, { children: [(0, jsx_runtime_1.jsxs)(LabelText_1.LabelText, { children: [label, optional ? ' (optional)' : null] }), hint ? (0, jsx_runtime_1.jsx)(HintText_1.HintText, { children: hint }) : null, error ? (0, jsx_runtime_1.jsx)(ErrorText_1.ErrorText, { children: error }) : null] }), (0, jsx_runtime_1.jsxs)(InlineFields, __assign({ stretch: stretch }, { children: [(0, jsx_runtime_1.jsxs)(DayField, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, __assign({ onPress: focusRef(dayRef), accessible: false }, { children: (0, jsx_runtime_1.jsx)(SubLabelText_1.SubLabelText, { children: "Day" }) })), (0, jsx_runtime_1.jsx)(NumberInput_1.NumberInput, { ref: (0, utils_1.mergeRefs)(dayRef, ref), accessibilityLabel: accessibilityLabel('Day'), invalid: hasError, value: value.day, onChangeText: handleChange('day'), testID: testID, stretch: true, editable: editable })] })), (0, jsx_runtime_1.jsxs)(MonthField, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, __assign({ onPress: focusRef(monthRef), accessible: false }, { children: (0, jsx_runtime_1.jsx)(SubLabelText_1.SubLabelText, { children: "Month" }) })), (0, jsx_runtime_1.jsx)(NumberInput_1.NumberInput, { ref: monthRef, accessibilityLabel: accessibilityLabel('Month'), invalid: hasError, value: value.month, onChangeText: handleChange('month'), testID: "".concat(testID, "-month"), stretch: true, editable: editable })] })), (0, jsx_runtime_1.jsxs)(YearField, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, __assign({ onPress: focusRef(yearRef), accessible: false }, { children: (0, jsx_runtime_1.jsx)(SubLabelText_1.SubLabelText, { children: "Year" }) })), (0, jsx_runtime_1.jsx)(NumberInput_1.NumberInput, { ref: yearRef, accessibilityLabel: accessibilityLabel('Year'), invalid: hasError, value: value.year, onChangeText: handleChange('year'), testID: "".concat(testID, "-year"), stretch: true, editable: editable })] }))] }))] })) })));
89
89
  });
90
90
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
@@ -11,7 +11,7 @@ export declare const Dl: import("react").ForwardRefExoticComponent<Pick<Omit<{
11
11
  borderWidth: Record<"small" | "medium" | "large", string>;
12
12
  breakpoint: Record<"small" | "medium" | "large", string | number>;
13
13
  mediaQuery: Record<"small" | "medium" | "large", string>;
14
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
14
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
15
15
  transition: Record<"medium" | "slow" | "fast", string>;
16
16
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
17
17
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {