@ovotech/element-native 2.2.0-canary-668a0ee-91 → 2.2.0

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 (302) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +2 -2
  2. package/dist/components/Accordion/Accordion.js +24 -21
  3. package/dist/components/Accordion/Group.js +32 -10
  4. package/dist/components/Accordion/Icon.js +14 -19
  5. package/dist/components/Accordion/hooks.d.ts +1 -1
  6. package/dist/components/Accordion/hooks.js +26 -3
  7. package/dist/components/Accordion/styles.d.ts +46 -688
  8. package/dist/components/Accordion/styles.js +49 -56
  9. package/dist/components/Badge/Badge.d.ts +46 -54
  10. package/dist/components/Badge/Badge.js +20 -35
  11. package/dist/components/CTAButton/CTAButton.d.ts +12 -7
  12. package/dist/components/CTAButton/CTAButton.js +27 -23
  13. package/dist/components/CTALink/CTALink.d.ts +4 -4
  14. package/dist/components/CTALink/CTALink.js +27 -5
  15. package/dist/components/Card/Card.d.ts +45 -47
  16. package/dist/components/Card/Card.js +25 -5
  17. package/dist/components/Checkbox/Checkbox.d.ts +3 -3
  18. package/dist/components/Checkbox/Checkbox.js +57 -18
  19. package/dist/components/Checkbox/CheckboxField.js +37 -7
  20. package/dist/components/DataTable/DataTable.d.ts +12 -3
  21. package/dist/components/DataTable/DataTable.js +98 -11
  22. package/dist/components/DataTable/index.d.ts +0 -2
  23. package/dist/components/DataTable/index.js +0 -16
  24. package/dist/components/DateField/DateField.d.ts +2 -2
  25. package/dist/components/DateField/DateField.js +28 -9
  26. package/dist/components/DescriptionList/DescriptionList.js +32 -8
  27. package/dist/components/DescriptionList/styled.d.ts +44 -50
  28. package/dist/components/DescriptionList/styled.js +34 -9
  29. package/dist/components/Disclosure/Disclosure.d.ts +3 -3
  30. package/dist/components/Disclosure/Disclosure.js +18 -12
  31. package/dist/components/Divider/Divider.js +7 -4
  32. package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +1 -1
  33. package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +28 -6
  34. package/dist/components/ErrorText/ErrorText.d.ts +39 -45
  35. package/dist/components/ErrorText/ErrorText.js +4 -7
  36. package/dist/components/Field/Field.d.ts +2 -2
  37. package/dist/components/Field/Field.js +49 -18
  38. package/dist/components/FormGroup/FormGroup.js +3 -2
  39. package/dist/components/Grid/Col.d.ts +39 -45
  40. package/dist/components/Grid/Col.js +3 -4
  41. package/dist/components/Grid/Row.d.ts +41 -47
  42. package/dist/components/Grid/Row.js +10 -7
  43. package/dist/components/Heading/Heading.js +32 -21
  44. package/dist/components/HintText/HintText.d.ts +39 -45
  45. package/dist/components/HintText/HintText.js +4 -7
  46. package/dist/components/Icon/Icon.d.ts +4 -3
  47. package/dist/components/Icon/Icon.js +27 -5
  48. package/dist/components/Input/CurrencyInput.d.ts +6 -6
  49. package/dist/components/Input/CurrencyInput.js +25 -3
  50. package/dist/components/Input/EmailInput.d.ts +6 -6
  51. package/dist/components/Input/EmailInput.js +25 -3
  52. package/dist/components/Input/Input.d.ts +8 -8
  53. package/dist/components/Input/Input.js +32 -26
  54. package/dist/components/Input/NumberInput.d.ts +6 -6
  55. package/dist/components/Input/NumberInput.js +25 -3
  56. package/dist/components/Input/PasswordInput.d.ts +6 -6
  57. package/dist/components/Input/PasswordInput.js +25 -3
  58. package/dist/components/Input/PasswordInput.styled.d.ts +39 -45
  59. package/dist/components/Input/PasswordInput.styled.js +5 -2
  60. package/dist/components/Input/PasswordVisibilityToggle.js +29 -14
  61. package/dist/components/Input/TelInput.d.ts +10 -0
  62. package/dist/components/Input/TelInput.js +41 -0
  63. package/dist/components/Input/TextInput.d.ts +6 -6
  64. package/dist/components/Input/TextInput.js +25 -3
  65. package/dist/components/Input/TextareaInput.d.ts +6 -6
  66. package/dist/components/Input/TextareaInput.js +10 -13
  67. package/dist/components/Input/index.d.ts +1 -1
  68. package/dist/components/Input/index.js +3 -3
  69. package/dist/components/LabelText/LabelText.d.ts +39 -45
  70. package/dist/components/LabelText/LabelText.js +4 -5
  71. package/dist/components/List/List.d.ts +131 -149
  72. package/dist/components/List/List.js +44 -30
  73. package/dist/components/Margin/Margin.d.ts +39 -45
  74. package/dist/components/Margin/Margin.js +3 -3
  75. package/dist/components/NavHeader/NavHeader.d.ts +1 -1
  76. package/dist/components/NavHeader/NavHeader.js +35 -34
  77. package/dist/components/Notification/Notification.d.ts +100 -104
  78. package/dist/components/Notification/Notification.js +49 -32
  79. package/dist/components/Radio/Radio.d.ts +3 -3
  80. package/dist/components/Radio/Radio.js +61 -16
  81. package/dist/components/Radio/RadioField.js +41 -11
  82. package/dist/components/SkeletonLoading/Skeleton.d.ts +39 -45
  83. package/dist/components/SkeletonLoading/SkeletonAnimation.js +33 -22
  84. package/dist/components/SkeletonLoading/SkeletonCTA.js +5 -4
  85. package/dist/components/SkeletonLoading/SkeletonCircle.js +6 -4
  86. package/dist/components/SkeletonLoading/SkeletonHeading.js +5 -4
  87. package/dist/components/SkeletonLoading/SkeletonText.js +5 -5
  88. package/dist/components/Stack/Stack.js +28 -6
  89. package/dist/components/Stretch/Stretch.js +2 -2
  90. package/dist/components/SubLabelText/SubLabelText.d.ts +39 -45
  91. package/dist/components/SubLabelText/SubLabelText.js +4 -5
  92. package/dist/components/SummaryList/SummaryList.js +32 -8
  93. package/dist/components/Tabs/Tab.d.ts +4 -4
  94. package/dist/components/Tabs/Tab.js +20 -23
  95. package/dist/components/Tabs/TabList.d.ts +222 -11
  96. package/dist/components/Tabs/TabList.js +18 -22
  97. package/dist/components/Tabs/TabPanel.js +10 -33
  98. package/dist/components/Tabs/Tabs.d.ts +227 -8
  99. package/dist/components/Tabs/Tabs.js +23 -26
  100. package/dist/components/Text/Text.d.ts +204 -234
  101. package/dist/components/Text/Text.js +20 -17
  102. package/dist/components/TextField/CurrencyField.d.ts +6 -6
  103. package/dist/components/TextField/CurrencyField.js +26 -3
  104. package/dist/components/TextField/EmailField.d.ts +6 -6
  105. package/dist/components/TextField/EmailField.js +26 -3
  106. package/dist/components/TextField/NumberField.d.ts +6 -6
  107. package/dist/components/TextField/NumberField.js +26 -3
  108. package/dist/components/TextField/PasswordField.d.ts +6 -6
  109. package/dist/components/TextField/PasswordField.js +26 -3
  110. package/dist/components/TextField/TelField.d.ts +6 -10
  111. package/dist/components/TextField/TelField.js +27 -9
  112. package/dist/components/TextField/TextField.d.ts +6 -6
  113. package/dist/components/TextField/TextField.js +26 -3
  114. package/dist/components/TextField/TextareaField.d.ts +6 -6
  115. package/dist/components/TextField/TextareaField.js +26 -3
  116. package/dist/components/TextField/index.d.ts +0 -1
  117. package/dist/components/TextField/index.js +1 -3
  118. package/dist/components/TextLink/TextLink.d.ts +4 -4
  119. package/dist/components/TextLink/TextLink.js +8 -5
  120. package/dist/components/index.d.ts +0 -1
  121. package/dist/components/index.js +0 -1
  122. package/dist/esm/components/Accordion/Accordion.js +26 -23
  123. package/dist/esm/components/Accordion/Group.js +9 -10
  124. package/dist/esm/components/Accordion/Icon.js +12 -20
  125. package/dist/esm/components/Accordion/hooks.js +3 -3
  126. package/dist/esm/components/Accordion/styles.js +48 -29
  127. package/dist/esm/components/Badge/Badge.js +17 -35
  128. package/dist/esm/components/CTAButton/CTAButton.js +28 -24
  129. package/dist/esm/components/CTALink/CTALink.js +4 -5
  130. package/dist/esm/components/Card/Card.js +25 -5
  131. package/dist/esm/components/Checkbox/Checkbox.js +34 -15
  132. package/dist/esm/components/Checkbox/CheckboxField.js +14 -7
  133. package/dist/esm/components/DataTable/DataTable.js +74 -10
  134. package/dist/esm/components/DataTable/index.js +0 -2
  135. package/dist/esm/components/DateField/DateField.js +28 -9
  136. package/dist/esm/components/DescriptionList/DescriptionList.js +9 -8
  137. package/dist/esm/components/DescriptionList/styled.js +31 -9
  138. package/dist/esm/components/Disclosure/Disclosure.js +19 -13
  139. package/dist/esm/components/Divider/Divider.js +4 -4
  140. package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +5 -6
  141. package/dist/esm/components/ErrorText/ErrorText.js +4 -7
  142. package/dist/esm/components/Field/Field.js +26 -18
  143. package/dist/esm/components/FormGroup/FormGroup.js +3 -2
  144. package/dist/esm/components/Grid/Col.js +3 -4
  145. package/dist/esm/components/Grid/Row.js +7 -7
  146. package/dist/esm/components/Heading/Heading.js +29 -21
  147. package/dist/esm/components/HintText/HintText.js +4 -7
  148. package/dist/esm/components/Icon/Icon.js +4 -5
  149. package/dist/esm/components/Input/CurrencyInput.js +2 -3
  150. package/dist/esm/components/Input/EmailInput.js +2 -3
  151. package/dist/esm/components/Input/Input.js +33 -27
  152. package/dist/esm/components/Input/NumberInput.js +2 -3
  153. package/dist/esm/components/Input/PasswordInput.js +2 -3
  154. package/dist/esm/components/Input/PasswordInput.styled.js +5 -2
  155. package/dist/esm/components/Input/PasswordVisibilityToggle.js +7 -15
  156. package/dist/esm/components/Input/{PhoneInput.js → TelInput.js} +3 -4
  157. package/dist/esm/components/Input/TextInput.js +2 -3
  158. package/dist/esm/components/Input/TextareaInput.js +10 -13
  159. package/dist/esm/components/Input/index.js +1 -1
  160. package/dist/esm/components/LabelText/LabelText.js +4 -5
  161. package/dist/esm/components/List/List.js +45 -31
  162. package/dist/esm/components/Margin/Margin.js +3 -3
  163. package/dist/esm/components/NavHeader/NavHeader.js +32 -34
  164. package/dist/esm/components/Notification/Notification.js +50 -33
  165. package/dist/esm/components/Radio/Radio.js +38 -16
  166. package/dist/esm/components/Radio/RadioField.js +18 -11
  167. package/dist/esm/components/SkeletonLoading/SkeletonAnimation.js +11 -23
  168. package/dist/esm/components/SkeletonLoading/SkeletonCTA.js +5 -4
  169. package/dist/esm/components/SkeletonLoading/SkeletonCircle.js +6 -4
  170. package/dist/esm/components/SkeletonLoading/SkeletonHeading.js +5 -4
  171. package/dist/esm/components/SkeletonLoading/SkeletonText.js +5 -5
  172. package/dist/esm/components/Stack/Stack.js +5 -6
  173. package/dist/esm/components/Stretch/Stretch.js +2 -2
  174. package/dist/esm/components/SubLabelText/SubLabelText.js +4 -5
  175. package/dist/esm/components/SummaryList/SummaryList.js +9 -8
  176. package/dist/esm/components/Tabs/Tab.js +17 -23
  177. package/dist/esm/components/Tabs/TabList.js +18 -21
  178. package/dist/esm/components/Tabs/TabPanel.js +7 -10
  179. package/dist/esm/components/Tabs/Tabs.js +23 -25
  180. package/dist/esm/components/Text/Text.js +20 -17
  181. package/dist/esm/components/TextField/CurrencyField.js +3 -3
  182. package/dist/esm/components/TextField/EmailField.js +3 -3
  183. package/dist/esm/components/TextField/NumberField.js +3 -3
  184. package/dist/esm/components/TextField/PasswordField.js +3 -3
  185. package/dist/esm/components/TextField/TelField.js +4 -9
  186. package/dist/esm/components/TextField/TextField.js +3 -3
  187. package/dist/esm/components/TextField/TextareaField.js +3 -3
  188. package/dist/esm/components/TextField/index.js +0 -1
  189. package/dist/esm/components/TextLink/TextLink.js +8 -5
  190. package/dist/esm/components/index.js +0 -1
  191. package/dist/esm/hooks/use-breakpoint.js +4 -4
  192. package/dist/esm/providers/IconsProvider.js +2 -3
  193. package/dist/esm/providers/icons/ArrowDown.js +3 -2
  194. package/dist/esm/providers/icons/ArrowLeft.js +3 -2
  195. package/dist/esm/providers/icons/ArrowRight.js +3 -2
  196. package/dist/esm/providers/icons/ArrowUp.js +3 -2
  197. package/dist/esm/providers/icons/CaretDown.js +3 -2
  198. package/dist/esm/providers/icons/CaretLeft.js +3 -2
  199. package/dist/esm/providers/icons/CaretRight.js +3 -2
  200. package/dist/esm/providers/icons/CaretUp.js +3 -2
  201. package/dist/esm/providers/icons/Chart.js +3 -2
  202. package/dist/esm/providers/icons/Check.js +3 -2
  203. package/dist/esm/providers/icons/ChevronDown.js +3 -2
  204. package/dist/esm/providers/icons/ChevronLeft.js +3 -2
  205. package/dist/esm/providers/icons/ChevronLeftSmall.js +3 -2
  206. package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +3 -2
  207. package/dist/esm/providers/icons/ChevronRight.js +3 -2
  208. package/dist/esm/providers/icons/ChevronRightSmall.js +3 -2
  209. package/dist/esm/providers/icons/ChevronRightSmallLast.js +3 -2
  210. package/dist/esm/providers/icons/ChevronUp.js +3 -2
  211. package/dist/esm/providers/icons/Cross.js +3 -2
  212. package/dist/esm/providers/icons/Dollar.js +3 -2
  213. package/dist/esm/providers/icons/Download.js +3 -2
  214. package/dist/esm/providers/icons/Electricity.js +3 -2
  215. package/dist/esm/providers/icons/Euro.js +3 -2
  216. package/dist/esm/providers/icons/Gas.js +4 -2
  217. package/dist/esm/providers/icons/Help.js +3 -2
  218. package/dist/esm/providers/icons/Hide.js +3 -2
  219. package/dist/esm/providers/icons/Home.js +3 -2
  220. package/dist/esm/providers/icons/Info.js +3 -2
  221. package/dist/esm/providers/icons/Link.js +4 -2
  222. package/dist/esm/providers/icons/Logo.js +4 -3
  223. package/dist/esm/providers/icons/Minus.js +3 -2
  224. package/dist/esm/providers/icons/NewWindow.js +3 -2
  225. package/dist/esm/providers/icons/PaymentCard.js +3 -2
  226. package/dist/esm/providers/icons/Plus.js +3 -2
  227. package/dist/esm/providers/icons/Pound.js +3 -2
  228. package/dist/esm/providers/icons/Search.js +3 -2
  229. package/dist/esm/providers/icons/Show.js +3 -2
  230. package/dist/esm/providers/icons/User.js +3 -2
  231. package/dist/esm/theme/create-theme.js +153 -0
  232. package/dist/esm/utils/utils.js +3 -7
  233. package/dist/hooks/use-breakpoint.js +4 -4
  234. package/dist/providers/IconsProvider.js +25 -3
  235. package/dist/providers/icons/ArrowDown.js +6 -2
  236. package/dist/providers/icons/ArrowLeft.js +6 -2
  237. package/dist/providers/icons/ArrowRight.js +6 -2
  238. package/dist/providers/icons/ArrowUp.js +6 -2
  239. package/dist/providers/icons/CaretDown.js +6 -2
  240. package/dist/providers/icons/CaretLeft.js +6 -2
  241. package/dist/providers/icons/CaretRight.js +6 -2
  242. package/dist/providers/icons/CaretUp.js +6 -2
  243. package/dist/providers/icons/Chart.js +6 -2
  244. package/dist/providers/icons/Check.js +6 -2
  245. package/dist/providers/icons/ChevronDown.js +6 -2
  246. package/dist/providers/icons/ChevronLeft.js +6 -2
  247. package/dist/providers/icons/ChevronLeftSmall.js +6 -2
  248. package/dist/providers/icons/ChevronLeftSmallFirst.js +6 -2
  249. package/dist/providers/icons/ChevronRight.js +6 -2
  250. package/dist/providers/icons/ChevronRightSmall.js +6 -2
  251. package/dist/providers/icons/ChevronRightSmallLast.js +6 -2
  252. package/dist/providers/icons/ChevronUp.js +6 -2
  253. package/dist/providers/icons/Cross.js +6 -2
  254. package/dist/providers/icons/Dollar.js +6 -2
  255. package/dist/providers/icons/Download.js +6 -2
  256. package/dist/providers/icons/Electricity.js +6 -2
  257. package/dist/providers/icons/Euro.js +6 -2
  258. package/dist/providers/icons/Gas.js +7 -2
  259. package/dist/providers/icons/Help.js +6 -2
  260. package/dist/providers/icons/Hide.js +6 -2
  261. package/dist/providers/icons/Home.js +6 -2
  262. package/dist/providers/icons/Info.js +6 -2
  263. package/dist/providers/icons/Link.js +7 -2
  264. package/dist/providers/icons/Logo.js +6 -2
  265. package/dist/providers/icons/Minus.js +6 -2
  266. package/dist/providers/icons/NewWindow.js +6 -2
  267. package/dist/providers/icons/PaymentCard.js +6 -2
  268. package/dist/providers/icons/Plus.js +6 -2
  269. package/dist/providers/icons/Pound.js +6 -2
  270. package/dist/providers/icons/Search.js +6 -2
  271. package/dist/providers/icons/Show.js +6 -2
  272. package/dist/providers/icons/User.js +6 -2
  273. package/dist/styled.native.d.ts +234 -270
  274. package/dist/theme/create-theme.js +153 -0
  275. package/dist/theme/index.d.ts +39 -45
  276. package/dist/theme/theme.d.ts +90 -0
  277. package/dist/utils/utils.d.ts +4 -5
  278. package/dist/utils/utils.js +26 -8
  279. package/package.json +5 -6
  280. package/dist/components/DataTable/TableRow.d.ts +0 -2
  281. package/dist/components/DataTable/TableRow.js +0 -31
  282. package/dist/components/DataTable/styles.d.ts +0 -2517
  283. package/dist/components/DataTable/styles.js +0 -77
  284. package/dist/components/DataTable/types.d.ts +0 -15
  285. package/dist/components/DataTable/types.js +0 -2
  286. package/dist/components/Input/PhoneInput.d.ts +0 -10
  287. package/dist/components/Input/PhoneInput.js +0 -19
  288. package/dist/components/SelectField/Select.d.ts +0 -244
  289. package/dist/components/SelectField/Select.js +0 -102
  290. package/dist/components/SelectField/SelectField.d.ts +0 -7
  291. package/dist/components/SelectField/SelectField.js +0 -33
  292. package/dist/components/SelectField/index.d.ts +0 -1
  293. package/dist/components/SelectField/index.js +0 -5
  294. package/dist/components/TextField/PhoneField.d.ts +0 -10
  295. package/dist/components/TextField/PhoneField.js +0 -33
  296. package/dist/esm/components/DataTable/TableRow.js +0 -27
  297. package/dist/esm/components/DataTable/styles.js +0 -51
  298. package/dist/esm/components/DataTable/types.js +0 -1
  299. package/dist/esm/components/SelectField/Select.js +0 -75
  300. package/dist/esm/components/SelectField/SelectField.js +0 -29
  301. package/dist/esm/components/SelectField/index.js +0 -1
  302. package/dist/esm/components/TextField/PhoneField.js +0 -30
@@ -11,10 +11,10 @@ declare const ErrorText: 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 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
14
+ space: Record<0 | 2 | 1 | 10 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
15
15
  transition: Record<"medium" | "slow" | "fast", string>;
16
- opacity: Record<"solid" | "transparent" | "translucent", string | number>;
17
- color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
16
+ opacity: Record<"transparent" | "translucent" | "solid", string | number>;
17
+ color: Record<"sand" | "red" | "orange" | "yellow" | "lime" | "green" | "teal" | "blue" | "purple", {
18
18
  lightest: string;
19
19
  lighter: string;
20
20
  light: string;
@@ -30,53 +30,71 @@ declare const ErrorText: import("react").ForwardRefExoticComponent<Pick<Omit<{
30
30
  web: string;
31
31
  }>;
32
32
  fontWeight: Record<"bold" | "book" | "black", string | number>;
33
- fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
33
+ fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
34
34
  small: string | number;
35
35
  large: string | number;
36
36
  }>;
37
- lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
37
+ lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
38
38
  small: string | number;
39
39
  large: string | number;
40
40
  }>;
41
- letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
42
41
  };
43
42
  semantic: {
44
43
  surface: Record<"base" | "cutout" | "elevated", string>;
45
44
  message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
46
45
  border: Record<"graphic" | "differentiated" | "functional", string>;
47
- focus: Record<"surface" | "outline" | "hover", string>;
48
- inverted: Record<"border" | "surface", string> & {
46
+ focus: Record<"outline" | "surface", string>;
47
+ inverted: Record<"surface" | "border", string> & {
49
48
  message: Record<"base" | "link" | "secondary" | "branded", string>;
50
49
  };
51
50
  success: {
52
51
  border: string;
53
52
  surface: string;
54
- surfaceEmphasis: string;
55
- message: string;
56
- messageOnEmphasis: string;
53
+ message: {
54
+ base: string;
55
+ secondary: string;
56
+ };
57
57
  };
58
58
  warning: {
59
59
  border: string;
60
60
  surface: string;
61
- surfaceEmphasis: string;
62
- message: string;
63
- messageOnEmphasis: string;
61
+ message: {
62
+ base: string;
63
+ secondary: string;
64
+ };
64
65
  };
65
66
  error: {
66
67
  border: string;
67
68
  surface: string;
68
- surfaceEmphasis: string;
69
- message: string;
70
- messageOnEmphasis: string;
69
+ message: {
70
+ base: string;
71
+ secondary: string;
72
+ };
71
73
  };
72
74
  info: {
73
75
  border: string;
74
76
  surface: string;
75
- surfaceEmphasis: string;
76
- message: string;
77
- messageOnEmphasis: string;
77
+ message: {
78
+ base: string;
79
+ secondary: string;
80
+ };
81
+ };
82
+ electricity: {
83
+ border: string;
84
+ surface: string;
85
+ message: {
86
+ base: string;
87
+ secondary: string;
88
+ };
89
+ };
90
+ gas: {
91
+ border: string;
92
+ surface: string;
93
+ message: {
94
+ base: string;
95
+ secondary: string;
96
+ };
78
97
  };
79
- data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
80
98
  };
81
99
  component: {
82
100
  heading1: {
@@ -207,30 +225,6 @@ declare const ErrorText: import("react").ForwardRefExoticComponent<Pick<Omit<{
207
225
  backgroundFocused: string;
208
226
  };
209
227
  };
210
- badge: {
211
- variants: {
212
- red: {
213
- foreground: string;
214
- background: string;
215
- };
216
- orange: {
217
- foreground: string;
218
- background: string;
219
- };
220
- yellow: {
221
- foreground: string;
222
- background: string;
223
- };
224
- green: {
225
- foreground: string;
226
- background: string;
227
- };
228
- blue: {
229
- foreground: string;
230
- background: string;
231
- };
232
- };
233
- };
234
228
  };
235
229
  }) | undefined;
236
230
  } & {
@@ -29,15 +29,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  exports.ErrorText = void 0;
31
31
  var styled_native_1 = __importStar(require("../../styled.native"));
32
+ var theme_1 = require("../../theme");
32
33
  var utils_1 = require("../../utils");
33
34
  var StyledErrorText = styled_native_1.default.Text(function (_a) {
34
- var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
35
- var fontSize = smallAndUp
36
- ? core.fontSize.body.large
37
- : core.fontSize.body.small;
38
- return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n color: ", ";\n "])), core.fontFamily.body.native, smallAndUp
39
- ? core.lineHeight.body.large
40
- : core.lineHeight.body.small, fontSize, semantic.error.message);
35
+ var field = _a.theme.field, smallAndUp = _a.smallAndUp;
36
+ var fontSize = smallAndUp ? field.fontSize[1] : field.fontSize[0];
37
+ return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n color: ", ";\n "])), field.error.fontFamily, (0, theme_1.calculateLineHeight)(fontSize, field.lineHeight), fontSize, field.error.color);
41
38
  });
42
39
  var ErrorText = (0, utils_1.styledComponentWithBreakpoints)(StyledErrorText);
43
40
  exports.ErrorText = ErrorText;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { TextInput } from 'react-native';
3
3
  export declare type FieldProps = {
4
4
  label: string;
@@ -10,4 +10,4 @@ export declare type FieldProps = {
10
10
  affixWidth?: number;
11
11
  children: ReactNode;
12
12
  };
13
- export declare const Field: import("react").ForwardRefExoticComponent<FieldProps & import("react").RefAttributes<TextInput>>;
13
+ export declare const Field: React.ForwardRefExoticComponent<FieldProps & React.RefAttributes<TextInput>>;
@@ -10,6 +10,29 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
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
+ };
13
36
  var __rest = (this && this.__rest) || function (s, e) {
14
37
  var t = {};
15
38
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -23,8 +46,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
46
  };
24
47
  Object.defineProperty(exports, "__esModule", { value: true });
25
48
  exports.Field = void 0;
26
- var jsx_runtime_1 = require("react/jsx-runtime");
27
- var react_1 = require("react");
49
+ var react_1 = __importStar(require("react"));
28
50
  var react_native_1 = require("react-native");
29
51
  var styled_native_1 = require("../../styled.native");
30
52
  var utils_1 = require("../../utils");
@@ -43,21 +65,30 @@ exports.Field = (0, react_1.forwardRef)(function (_a, ref) {
43
65
  var accessibilityLabel = [labelText, (0, utils_1.getText)(hint), (0, utils_1.getText)(error)]
44
66
  .filter(Boolean)
45
67
  .join(', ');
46
- return ((0, jsx_runtime_1.jsx)(FormGroup_1.FormGroup, __assign({ error: hasError || undefined, testID: "nb-field-form-group" }, { children: (0, jsx_runtime_1.jsxs)(Stack_1.Stack, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, __assign({ onPress: function () {
47
- if (inputRef.current) {
48
- // @ts-ignore. Toggle picker if this is a select menu.
49
- if (inputRef.current.togglePicker) {
50
- // @ts-ignore
51
- inputRef.current.togglePicker();
52
- }
53
- else {
54
- // @ts-ignore
55
- inputRef.current.focus();
56
- }
68
+ return (react_1.default.createElement(FormGroup_1.FormGroup, { error: hasError || undefined, testID: "nb-field-form-group" },
69
+ react_1.default.createElement(Stack_1.Stack, { spaceBetween: 1 },
70
+ react_1.default.createElement(react_native_1.TouchableWithoutFeedback, { onPress: function () {
71
+ if (inputRef.current) {
72
+ // @ts-ignore. Toggle picker if this is a select menu.
73
+ if (inputRef.current.togglePicker) {
74
+ // @ts-ignore
75
+ inputRef.current.togglePicker();
76
+ }
77
+ else {
78
+ // @ts-ignore
79
+ inputRef.current.focus();
57
80
  }
58
- } }, { 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.jsx)(Stretch_1.Stretch, __assign({ defaultWidth: "".concat(Math.ceil(characters * 0.8 * parseInt(field.fontSize[0])) + affixWidth, "px"), fullWidth: fullWidth }, { children: react_1.Children.map(children, function (child) {
59
- return (0, react_1.isValidElement)(child)
60
- ? (0, react_1.cloneElement)(child, __assign({ invalid: hasError || undefined, ref: (0, utils_1.mergeRefs)(inputRef, ref), accessibilityLabel: accessibilityLabel }, rest))
61
- : child;
62
- }) }))] })) })));
81
+ }
82
+ } },
83
+ react_1.default.createElement(react_native_1.View, null,
84
+ react_1.default.createElement(LabelText_1.LabelText, null,
85
+ label,
86
+ optional ? ' (optional)' : null),
87
+ hint ? react_1.default.createElement(HintText_1.HintText, null, hint) : null)),
88
+ react_1.default.createElement(Stretch_1.Stretch, { defaultWidth: "".concat(Math.ceil(characters * 0.8 * parseInt(field.fontSize[0])) + affixWidth, "px"), fullWidth: fullWidth }, react_1.Children.map(children, function (child) {
89
+ return (0, react_1.isValidElement)(child)
90
+ ? (0, react_1.cloneElement)(child, __assign({ invalid: hasError || undefined, ref: (0, utils_1.mergeRefs)(inputRef, ref), accessibilityLabel: accessibilityLabel }, rest))
91
+ : child;
92
+ })),
93
+ error ? react_1.default.createElement(ErrorText_1.ErrorText, null, error) : null)));
63
94
  });
@@ -30,13 +30,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
32
  exports.FormGroup = void 0;
33
- var jsx_runtime_1 = require("react/jsx-runtime");
33
+ var react_1 = __importDefault(require("react"));
34
34
  var react_native_1 = require("react-native");
35
35
  var styled_native_1 = __importDefault(require("../../styled.native"));
36
36
  var FormGroupWrapper = styled_native_1.default.View(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: row;\n"], ["\n flex-direction: row;\n"])));
37
37
  var FormGroup = function (_a) {
38
38
  var children = _a.children, error = _a.error, rest = __rest(_a, ["children", "error"]);
39
- return ((0, jsx_runtime_1.jsx)(FormGroupWrapper, __assign({}, rest, { children: (0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ style: { flex: 1 } }, { children: children })) })));
39
+ return (react_1.default.createElement(FormGroupWrapper, __assign({}, rest),
40
+ react_1.default.createElement(react_native_1.View, { style: { flex: 1 } }, children)));
40
41
  };
41
42
  exports.FormGroup = FormGroup;
42
43
  var templateObject_1;
@@ -10,10 +10,10 @@ declare const Col: import("react").ForwardRefExoticComponent<Pick<Omit<{
10
10
  borderWidth: Record<"small" | "medium" | "large", string>;
11
11
  breakpoint: Record<"small" | "medium" | "large", string | number>;
12
12
  mediaQuery: Record<"small" | "medium" | "large", string>;
13
- space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
13
+ space: Record<0 | 2 | 1 | 10 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
14
14
  transition: Record<"medium" | "slow" | "fast", string>;
15
- opacity: Record<"solid" | "transparent" | "translucent", string | number>;
16
- color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
15
+ opacity: Record<"transparent" | "translucent" | "solid", string | number>;
16
+ color: Record<"sand" | "red" | "orange" | "yellow" | "lime" | "green" | "teal" | "blue" | "purple", {
17
17
  lightest: string;
18
18
  lighter: string;
19
19
  light: string;
@@ -29,53 +29,71 @@ declare const Col: import("react").ForwardRefExoticComponent<Pick<Omit<{
29
29
  web: string;
30
30
  }>;
31
31
  fontWeight: Record<"bold" | "book" | "black", string | number>;
32
- fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
32
+ fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
33
33
  small: string | number;
34
34
  large: string | number;
35
35
  }>;
36
- lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
36
+ lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
37
37
  small: string | number;
38
38
  large: string | number;
39
39
  }>;
40
- letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
41
40
  };
42
41
  semantic: {
43
42
  surface: Record<"base" | "cutout" | "elevated", string>;
44
43
  message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
45
44
  border: Record<"graphic" | "differentiated" | "functional", string>;
46
- focus: Record<"surface" | "outline" | "hover", string>;
47
- inverted: Record<"border" | "surface", string> & {
45
+ focus: Record<"outline" | "surface", string>;
46
+ inverted: Record<"surface" | "border", string> & {
48
47
  message: Record<"base" | "link" | "secondary" | "branded", string>;
49
48
  };
50
49
  success: {
51
50
  border: string;
52
51
  surface: string;
53
- surfaceEmphasis: string;
54
- message: string;
55
- messageOnEmphasis: string;
52
+ message: {
53
+ base: string;
54
+ secondary: string;
55
+ };
56
56
  };
57
57
  warning: {
58
58
  border: string;
59
59
  surface: string;
60
- surfaceEmphasis: string;
61
- message: string;
62
- messageOnEmphasis: string;
60
+ message: {
61
+ base: string;
62
+ secondary: string;
63
+ };
63
64
  };
64
65
  error: {
65
66
  border: string;
66
67
  surface: string;
67
- surfaceEmphasis: string;
68
- message: string;
69
- messageOnEmphasis: string;
68
+ message: {
69
+ base: string;
70
+ secondary: string;
71
+ };
70
72
  };
71
73
  info: {
72
74
  border: string;
73
75
  surface: string;
74
- surfaceEmphasis: string;
75
- message: string;
76
- messageOnEmphasis: string;
76
+ message: {
77
+ base: string;
78
+ secondary: string;
79
+ };
80
+ };
81
+ electricity: {
82
+ border: string;
83
+ surface: string;
84
+ message: {
85
+ base: string;
86
+ secondary: string;
87
+ };
88
+ };
89
+ gas: {
90
+ border: string;
91
+ surface: string;
92
+ message: {
93
+ base: string;
94
+ secondary: string;
95
+ };
77
96
  };
78
- data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
79
97
  };
80
98
  component: {
81
99
  heading1: {
@@ -206,30 +224,6 @@ declare const Col: import("react").ForwardRefExoticComponent<Pick<Omit<{
206
224
  backgroundFocused: string;
207
225
  };
208
226
  };
209
- badge: {
210
- variants: {
211
- red: {
212
- foreground: string;
213
- background: string;
214
- };
215
- orange: {
216
- foreground: string;
217
- background: string;
218
- };
219
- yellow: {
220
- foreground: string;
221
- background: string;
222
- };
223
- green: {
224
- foreground: string;
225
- background: string;
226
- };
227
- blue: {
228
- foreground: string;
229
- background: string;
230
- };
231
- };
232
- };
233
227
  };
234
228
  }) | undefined;
235
229
  } & {
@@ -32,9 +32,8 @@ var styled_native_1 = __importStar(require("../../styled.native"));
32
32
  var utils_1 = require("../../utils");
33
33
  var utils_2 = require("../../utils/utils");
34
34
  var StyledCol = styled_native_1.default.View(function (_a) {
35
- var core = _a.theme.core, _b = _a.span, span = _b === void 0 ? 12 : _b, small = _a.small, medium = _a.medium, large = _a.large, smallAndUp = _a.smallAndUp, mediumAndUp = _a.mediumAndUp, largeAndUp = _a.largeAndUp;
36
- var gutter = [core.space[4], core.space[8]];
37
- var halfGutter = gutter.map(function (g) { return (0, utils_2.pxToNumber)(g) / 2 + 'px'; });
35
+ var grid = _a.theme.grid, _b = _a.span, span = _b === void 0 ? 12 : _b, small = _a.small, medium = _a.medium, large = _a.large, smallAndUp = _a.smallAndUp, mediumAndUp = _a.mediumAndUp, largeAndUp = _a.largeAndUp;
36
+ var halfGutter = grid.gutter.map(function (g) { return (0, utils_2.pxToNumber)(g) / 2 + 'px'; });
38
37
  var smallScreen = !smallAndUp;
39
38
  var percentage = (span / 12) * 100;
40
39
  var smallPercentage = small ? (small / 12) * 100 : percentage;
@@ -52,7 +51,7 @@ var StyledCol = styled_native_1.default.View(function (_a) {
52
51
  ? mediumPercentage
53
52
  : smallAndUp
54
53
  ? smallPercentage
55
- : percentage, smallScreen ? halfGutter[0] : halfGutter[1], smallScreen ? halfGutter[0] : halfGutter[1], smallScreen ? gutter[0] : gutter[1]);
54
+ : percentage, smallScreen ? halfGutter[0] : halfGutter[1], smallScreen ? halfGutter[0] : halfGutter[1], smallScreen ? grid.gutter[0] : grid.gutter[1]);
56
55
  });
57
56
  var Col = (0, utils_1.styledComponentWithBreakpoints)(StyledCol);
58
57
  exports.Col = Col;
@@ -1,4 +1,4 @@
1
- import { ComponentProps } from 'react';
1
+ import React, { ComponentProps } from 'react';
2
2
  import { Breakpoints } from '../../hooks';
3
3
  declare const StyledRow: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
4
4
  core: {
@@ -6,10 +6,10 @@ declare const StyledRow: import("styled-components").StyledComponent<typeof impo
6
6
  borderWidth: Record<"small" | "medium" | "large", string>;
7
7
  breakpoint: Record<"small" | "medium" | "large", string | number>;
8
8
  mediaQuery: Record<"small" | "medium" | "large", string>;
9
- space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
9
+ space: Record<0 | 2 | 1 | 10 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
10
10
  transition: Record<"medium" | "slow" | "fast", string>;
11
- opacity: Record<"solid" | "transparent" | "translucent", string | number>;
12
- color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
11
+ opacity: Record<"transparent" | "translucent" | "solid", string | number>;
12
+ color: Record<"sand" | "red" | "orange" | "yellow" | "lime" | "green" | "teal" | "blue" | "purple", {
13
13
  lightest: string;
14
14
  lighter: string;
15
15
  light: string;
@@ -25,53 +25,71 @@ declare const StyledRow: import("styled-components").StyledComponent<typeof impo
25
25
  web: string;
26
26
  }>;
27
27
  fontWeight: Record<"bold" | "book" | "black", string | number>;
28
- fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
28
+ fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
29
29
  small: string | number;
30
30
  large: string | number;
31
31
  }>;
32
- lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
32
+ lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
33
33
  small: string | number;
34
34
  large: string | number;
35
35
  }>;
36
- letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
37
36
  };
38
37
  semantic: {
39
38
  surface: Record<"base" | "cutout" | "elevated", string>;
40
39
  message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
41
40
  border: Record<"graphic" | "differentiated" | "functional", string>;
42
- focus: Record<"surface" | "outline" | "hover", string>;
43
- inverted: Record<"border" | "surface", string> & {
41
+ focus: Record<"outline" | "surface", string>;
42
+ inverted: Record<"surface" | "border", string> & {
44
43
  message: Record<"base" | "link" | "secondary" | "branded", string>;
45
44
  };
46
45
  success: {
47
46
  border: string;
48
47
  surface: string;
49
- surfaceEmphasis: string;
50
- message: string;
51
- messageOnEmphasis: string;
48
+ message: {
49
+ base: string;
50
+ secondary: string;
51
+ };
52
52
  };
53
53
  warning: {
54
54
  border: string;
55
55
  surface: string;
56
- surfaceEmphasis: string;
57
- message: string;
58
- messageOnEmphasis: string;
56
+ message: {
57
+ base: string;
58
+ secondary: string;
59
+ };
59
60
  };
60
61
  error: {
61
62
  border: string;
62
63
  surface: string;
63
- surfaceEmphasis: string;
64
- message: string;
65
- messageOnEmphasis: string;
64
+ message: {
65
+ base: string;
66
+ secondary: string;
67
+ };
66
68
  };
67
69
  info: {
68
70
  border: string;
69
71
  surface: string;
70
- surfaceEmphasis: string;
71
- message: string;
72
- messageOnEmphasis: string;
72
+ message: {
73
+ base: string;
74
+ secondary: string;
75
+ };
76
+ };
77
+ electricity: {
78
+ border: string;
79
+ surface: string;
80
+ message: {
81
+ base: string;
82
+ secondary: string;
83
+ };
84
+ };
85
+ gas: {
86
+ border: string;
87
+ surface: string;
88
+ message: {
89
+ base: string;
90
+ secondary: string;
91
+ };
73
92
  };
74
- data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
75
93
  };
76
94
  component: {
77
95
  heading1: {
@@ -202,35 +220,11 @@ declare const StyledRow: import("styled-components").StyledComponent<typeof impo
202
220
  backgroundFocused: string;
203
221
  };
204
222
  };
205
- badge: {
206
- variants: {
207
- red: {
208
- foreground: string;
209
- background: string;
210
- };
211
- orange: {
212
- foreground: string;
213
- background: string;
214
- };
215
- yellow: {
216
- foreground: string;
217
- background: string;
218
- };
219
- green: {
220
- foreground: string;
221
- background: string;
222
- };
223
- blue: {
224
- foreground: string;
225
- background: string;
226
- };
227
- };
228
- };
229
223
  };
230
224
  }, {
231
225
  isNested?: boolean | undefined;
232
226
  } & {
233
- children?: import("react").ReactNode;
227
+ children?: React.ReactNode;
234
228
  } & Breakpoints, never>;
235
229
  declare const Row: ({ children, ...rest }: ComponentProps<typeof StyledRow>) => JSX.Element;
236
230
  export { Row };
@@ -48,26 +48,29 @@ var __rest = (this && this.__rest) || function (s, e) {
48
48
  }
49
49
  return t;
50
50
  };
51
+ var __importDefault = (this && this.__importDefault) || function (mod) {
52
+ return (mod && mod.__esModule) ? mod : { "default": mod };
53
+ };
51
54
  Object.defineProperty(exports, "__esModule", { value: true });
52
55
  exports.Row = void 0;
53
- var jsx_runtime_1 = require("react/jsx-runtime");
56
+ var react_1 = __importDefault(require("react"));
54
57
  var styled_native_1 = __importStar(require("../../styled.native"));
55
58
  var utils_1 = require("../../utils");
56
59
  var utils_2 = require("../../utils/utils");
57
60
  var StyledRow = styled_native_1.default.View(function (_a) {
58
- var core = _a.theme.core, isNested = _a.isNested, smallAndUp = _a.smallAndUp;
59
- var gutter = [core.space[4], core.space[8]];
60
- var halfGutter = gutter.map(function (g) { return (0, utils_2.pxToNumber)(g) / 2 + 'px'; });
61
+ var grid = _a.theme.grid, isNested = _a.isNested, smallAndUp = _a.smallAndUp;
62
+ var halfGutter = grid.gutter.map(function (g) { return (0, utils_2.pxToNumber)(g) / 2 + 'px'; });
61
63
  var smallScreen = !smallAndUp;
62
- return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n margin: 0 auto;\n width: ", "px;\n max-width: 100%;\n margin-bottom: -", ";\n\n ", "\n "], ["\n padding-left: ", ";\n padding-right: ", ";\n margin: 0 auto;\n width: ", "px;\n max-width: 100%;\n margin-bottom: -", ";\n\n ", "\n "])), smallScreen ? halfGutter[0] : halfGutter[1], smallScreen ? halfGutter[0] : halfGutter[1], core.breakpoint.large, smallScreen ? gutter[0] : gutter[1], isNested
63
- ? "\n margin-left: -".concat(smallScreen ? gutter[0] : gutter[1], ";\n margin-right: -").concat(smallScreen ? gutter[0] : gutter[1], ";\n width: auto;\n max-width: 200%; /* max width none not supported in RN */\n ")
64
+ return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n margin: 0 auto;\n width: ", ";\n max-width: 100%;\n margin-bottom: -", ";\n\n ", "\n "], ["\n padding-left: ", ";\n padding-right: ", ";\n margin: 0 auto;\n width: ", ";\n max-width: 100%;\n margin-bottom: -", ";\n\n ", "\n "])), smallScreen ? halfGutter[0] : halfGutter[1], smallScreen ? halfGutter[0] : halfGutter[1], grid.maxWidth, smallScreen ? grid.gutter[0] : grid.gutter[1], isNested
65
+ ? "\n margin-left: -".concat(smallScreen ? grid.gutter[0] : grid.gutter[1], ";\n margin-right: -").concat(smallScreen ? grid.gutter[0] : grid.gutter[1], ";\n width: auto;\n max-width: 200%; /* max width none not supported in RN */\n ")
64
66
  : null);
65
67
  });
66
68
  var WidthRow = (0, utils_1.styledComponentWithBreakpoints)(StyledRow);
67
69
  var RowInner = styled_native_1.default.View(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex: 0 1 auto;\n flex-direction: row;\n flex-wrap: wrap;\n"], ["\n display: flex;\n flex: 0 1 auto;\n flex-direction: row;\n flex-wrap: wrap;\n"])));
68
70
  var Row = function (_a) {
69
71
  var children = _a.children, rest = __rest(_a, ["children"]);
70
- return ((0, jsx_runtime_1.jsx)(WidthRow, __assign({}, rest, { children: (0, jsx_runtime_1.jsx)(RowInner, { children: children }) })));
72
+ return (react_1.default.createElement(WidthRow, __assign({}, rest),
73
+ react_1.default.createElement(RowInner, null, children)));
71
74
  };
72
75
  exports.Row = Row;
73
76
  var templateObject_1, templateObject_2;