@ovotech/element-native 3.3.2-canary-71b07de-141 → 3.3.2

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 +3 -4
  3. package/dist/components/Accordion/styles.js +2 -2
  4. package/dist/components/ActionList/styled.d.ts +5 -5
  5. package/dist/components/Badge/Badge.d.ts +1 -1
  6. package/dist/components/Card/Card.d.ts +1 -1
  7. package/dist/components/DataTable/styles.d.ts +11 -11
  8. package/dist/components/DateField/DateField.js +2 -2
  9. package/dist/components/DescriptionList/styled.d.ts +1 -1
  10. package/dist/components/ErrorText/ErrorText.d.ts +1 -1
  11. package/dist/components/Grid/Col.d.ts +1 -1
  12. package/dist/components/Grid/Row.d.ts +1 -1
  13. package/dist/components/Heading/Heading.d.ts +6 -0
  14. package/dist/components/{Heading1/Heading1.js → Heading/Heading.js} +35 -2
  15. package/dist/components/Heading/index.d.ts +1 -0
  16. package/dist/components/Heading/index.js +8 -0
  17. package/dist/components/HintText/HintText.d.ts +1 -1
  18. package/dist/components/{CurrencyInput → Input}/CurrencyInput.d.ts +1 -1
  19. package/dist/components/{CurrencyInput → Input}/CurrencyInput.js +1 -1
  20. package/dist/components/{EmailInput → Input}/EmailInput.js +1 -1
  21. package/dist/components/{NumberInput → Input}/NumberInput.js +1 -1
  22. package/dist/components/{PasswordInput → Input}/PasswordInput.js +1 -1
  23. package/dist/components/{PasswordInput → Input}/PasswordInput.styled.d.ts +1 -1
  24. package/dist/components/{PhoneInput → Input}/PhoneInput.d.ts +2 -1
  25. package/dist/components/{PhoneInput → Input}/PhoneInput.js +3 -2
  26. package/dist/components/{TextInput → Input}/TextInput.js +1 -1
  27. package/dist/components/{TextareaInput → Input}/TextareaInput.d.ts +1 -1
  28. package/dist/components/{TextareaInput → Input}/TextareaInput.js +1 -1
  29. package/dist/components/Input/index.d.ts +7 -0
  30. package/dist/components/Input/index.js +17 -0
  31. package/dist/components/LabelText/LabelText.d.ts +1 -1
  32. package/dist/components/List/List.d.ts +241 -7
  33. package/dist/components/List/List.js +92 -45
  34. package/dist/components/Margin/Margin.d.ts +1 -1
  35. package/dist/components/NavHeader/NavHeader.d.ts +14 -7
  36. package/dist/components/NavHeader/NavHeader.js +48 -39
  37. package/dist/components/NavHeader/index.d.ts +1 -1
  38. package/dist/components/Notification/Notification.d.ts +2 -2
  39. package/dist/components/SelectField/Select.d.ts +1 -1
  40. package/dist/components/SelectField/Select.js +4 -5
  41. package/dist/components/{Em/Em.d.ts → SkeletonLoading/Skeleton.d.ts} +2 -2
  42. package/dist/components/{LineThrough/LineThrough.js → SkeletonLoading/Skeleton.js} +2 -2
  43. package/dist/components/{SkeletonCTA → SkeletonLoading}/SkeletonCTA.js +5 -4
  44. package/dist/components/{SkeletonCircle → SkeletonLoading}/SkeletonCircle.js +4 -3
  45. package/dist/components/{SkeletonHeading → SkeletonLoading}/SkeletonHeading.js +5 -4
  46. package/dist/components/{SkeletonText → SkeletonLoading}/SkeletonText.js +5 -4
  47. package/dist/components/SkeletonLoading/index.d.ts +5 -0
  48. package/dist/components/SkeletonLoading/index.js +21 -0
  49. package/dist/components/SubLabelText/SubLabelText.d.ts +1 -1
  50. package/dist/components/{List/styled.d.ts → Text/Text.d.ts} +446 -662
  51. package/dist/components/Text/Text.js +93 -0
  52. package/dist/components/Text/index.d.ts +1 -0
  53. package/dist/components/Text/index.js +10 -0
  54. package/dist/components/{CurrencyField → TextField}/CurrencyField.js +1 -1
  55. package/dist/components/{EmailField → TextField}/EmailField.js +1 -1
  56. package/dist/components/{NumberField → TextField}/NumberField.js +1 -1
  57. package/dist/components/{PasswordField → TextField}/PasswordField.js +1 -1
  58. package/dist/components/{PhoneField → TextField}/PhoneField.js +1 -1
  59. package/dist/components/TextField/TelField.d.ts +14 -0
  60. package/dist/components/TextField/TelField.js +38 -0
  61. package/dist/components/TextField/TextField.js +1 -1
  62. package/dist/components/{TextareaField → TextField}/TextareaField.js +1 -1
  63. package/dist/components/TextField/index.d.ts +7 -0
  64. package/dist/components/TextField/index.js +15 -1
  65. package/dist/components/index.d.ts +4 -28
  66. package/dist/components/index.js +4 -28
  67. package/dist/esm/components/Accordion/Accordion.js +3 -3
  68. package/dist/esm/components/Accordion/styles.js +2 -2
  69. package/dist/esm/components/DateField/DateField.js +1 -1
  70. package/dist/esm/components/Heading/Heading.js +74 -0
  71. package/dist/esm/components/Heading/index.js +1 -0
  72. package/dist/esm/components/{CurrencyInput → Input}/CurrencyInput.js +1 -1
  73. package/dist/esm/components/{EmailInput → Input}/EmailInput.js +1 -1
  74. package/dist/esm/components/{NumberInput → Input}/NumberInput.js +1 -1
  75. package/dist/esm/components/{PasswordInput → Input}/PasswordInput.js +1 -1
  76. package/dist/esm/components/{PhoneInput → Input}/PhoneInput.js +3 -2
  77. package/dist/esm/components/{TextInput → Input}/TextInput.js +1 -1
  78. package/dist/esm/components/{TextareaInput → Input}/TextareaInput.js +1 -1
  79. package/dist/esm/components/Input/index.js +7 -0
  80. package/dist/esm/components/List/List.js +65 -41
  81. package/dist/esm/components/NavHeader/NavHeader.js +50 -41
  82. package/dist/esm/components/SelectField/Select.js +1 -2
  83. package/dist/esm/components/{LineThrough/LineThrough.js → SkeletonLoading/Skeleton.js} +1 -1
  84. package/dist/esm/components/{SkeletonCTA → SkeletonLoading}/SkeletonCTA.js +4 -3
  85. package/dist/esm/components/{SkeletonCircle → SkeletonLoading}/SkeletonCircle.js +4 -3
  86. package/dist/esm/components/{SkeletonHeading → SkeletonLoading}/SkeletonHeading.js +4 -3
  87. package/dist/esm/components/{SkeletonText → SkeletonLoading}/SkeletonText.js +4 -3
  88. package/dist/esm/components/SkeletonLoading/index.js +5 -0
  89. package/dist/esm/components/Text/Text.js +66 -0
  90. package/dist/esm/components/Text/index.js +1 -0
  91. package/dist/esm/components/{CurrencyField → TextField}/CurrencyField.js +1 -1
  92. package/dist/esm/components/{EmailField → TextField}/EmailField.js +1 -1
  93. package/dist/esm/components/{NumberField → TextField}/NumberField.js +1 -1
  94. package/dist/esm/components/{PasswordField → TextField}/PasswordField.js +1 -1
  95. package/dist/esm/components/{PhoneField → TextField}/PhoneField.js +1 -1
  96. package/dist/esm/components/TextField/TelField.js +35 -0
  97. package/dist/esm/components/TextField/TextField.js +1 -1
  98. package/dist/esm/components/{TextareaField → TextField}/TextareaField.js +1 -1
  99. package/dist/esm/components/TextField/index.js +7 -0
  100. package/dist/esm/components/index.js +4 -28
  101. package/dist/styled.native.d.ts +6 -6
  102. package/package.json +3 -5
  103. package/dist/components/ActionCard/ActionCard.d.ts +0 -19
  104. package/dist/components/ActionCard/ActionCard.js +0 -115
  105. package/dist/components/ActionCard/CloseIconShape.d.ts +0 -3
  106. package/dist/components/ActionCard/CloseIconShape.js +0 -52
  107. package/dist/components/ActionCard/IndicatorIconShape.d.ts +0 -3
  108. package/dist/components/ActionCard/IndicatorIconShape.js +0 -52
  109. package/dist/components/ActionCard/index.d.ts +0 -1
  110. package/dist/components/ActionCard/index.js +0 -5
  111. package/dist/components/CurrencyField/index.d.ts +0 -1
  112. package/dist/components/CurrencyField/index.js +0 -5
  113. package/dist/components/CurrencyInput/index.d.ts +0 -1
  114. package/dist/components/CurrencyInput/index.js +0 -5
  115. package/dist/components/Em/Em.js +0 -13
  116. package/dist/components/Em/index.d.ts +0 -1
  117. package/dist/components/Em/index.js +0 -5
  118. package/dist/components/EmailField/index.d.ts +0 -1
  119. package/dist/components/EmailField/index.js +0 -5
  120. package/dist/components/EmailInput/index.d.ts +0 -1
  121. package/dist/components/EmailInput/index.js +0 -5
  122. package/dist/components/Heading1/Heading1.d.ts +0 -3
  123. package/dist/components/Heading1/index.d.ts +0 -1
  124. package/dist/components/Heading1/index.js +0 -5
  125. package/dist/components/Heading2/Heading2.d.ts +0 -3
  126. package/dist/components/Heading2/Heading2.js +0 -71
  127. package/dist/components/Heading2/index.d.ts +0 -1
  128. package/dist/components/Heading2/index.js +0 -5
  129. package/dist/components/Heading3/Heading3.d.ts +0 -3
  130. package/dist/components/Heading3/Heading3.js +0 -71
  131. package/dist/components/Heading3/index.d.ts +0 -1
  132. package/dist/components/Heading3/index.js +0 -5
  133. package/dist/components/Heading4/Heading4.d.ts +0 -3
  134. package/dist/components/Heading4/Heading4.js +0 -71
  135. package/dist/components/Heading4/index.d.ts +0 -1
  136. package/dist/components/Heading4/index.js +0 -5
  137. package/dist/components/LineThrough/LineThrough.d.ts +0 -228
  138. package/dist/components/LineThrough/index.d.ts +0 -1
  139. package/dist/components/LineThrough/index.js +0 -5
  140. package/dist/components/List/styled.js +0 -70
  141. package/dist/components/NavHeader/IconButton.d.ts +0 -13
  142. package/dist/components/NavHeader/IconButton.js +0 -31
  143. package/dist/components/NavHeader/NavHeader.styles.d.ts +0 -1833
  144. package/dist/components/NavHeader/NavHeader.styles.js +0 -72
  145. package/dist/components/NumberField/index.d.ts +0 -1
  146. package/dist/components/NumberField/index.js +0 -5
  147. package/dist/components/NumberInput/index.d.ts +0 -1
  148. package/dist/components/NumberInput/index.js +0 -5
  149. package/dist/components/P/P.d.ts +0 -239
  150. package/dist/components/P/P.js +0 -38
  151. package/dist/components/P/index.d.ts +0 -1
  152. package/dist/components/P/index.js +0 -5
  153. package/dist/components/PasswordField/index.d.ts +0 -1
  154. package/dist/components/PasswordField/index.js +0 -5
  155. package/dist/components/PasswordInput/index.d.ts +0 -1
  156. package/dist/components/PasswordInput/index.js +0 -5
  157. package/dist/components/PhoneField/index.d.ts +0 -1
  158. package/dist/components/PhoneField/index.js +0 -5
  159. package/dist/components/PhoneInput/index.d.ts +0 -1
  160. package/dist/components/PhoneInput/index.js +0 -5
  161. package/dist/components/SkeletonAnimation/index.d.ts +0 -1
  162. package/dist/components/SkeletonAnimation/index.js +0 -5
  163. package/dist/components/SkeletonCTA/index.d.ts +0 -1
  164. package/dist/components/SkeletonCTA/index.js +0 -5
  165. package/dist/components/SkeletonCircle/index.d.ts +0 -1
  166. package/dist/components/SkeletonCircle/index.js +0 -5
  167. package/dist/components/SkeletonHeading/index.d.ts +0 -1
  168. package/dist/components/SkeletonHeading/index.js +0 -5
  169. package/dist/components/SkeletonText/index.d.ts +0 -1
  170. package/dist/components/SkeletonText/index.js +0 -5
  171. package/dist/components/Small/Small.d.ts +0 -239
  172. package/dist/components/Small/Small.js +0 -38
  173. package/dist/components/Small/index.d.ts +0 -1
  174. package/dist/components/Small/index.js +0 -5
  175. package/dist/components/Strong/Strong.d.ts +0 -228
  176. package/dist/components/Strong/Strong.js +0 -11
  177. package/dist/components/Strong/index.d.ts +0 -1
  178. package/dist/components/Strong/index.js +0 -5
  179. package/dist/components/TextGroup/TextGroup.d.ts +0 -3
  180. package/dist/components/TextGroup/TextGroup.js +0 -47
  181. package/dist/components/TextGroup/index.d.ts +0 -1
  182. package/dist/components/TextGroup/index.js +0 -5
  183. package/dist/components/TextInput/index.d.ts +0 -1
  184. package/dist/components/TextInput/index.js +0 -5
  185. package/dist/components/TextareaField/index.d.ts +0 -1
  186. package/dist/components/TextareaField/index.js +0 -5
  187. package/dist/components/TextareaInput/index.d.ts +0 -1
  188. package/dist/components/TextareaInput/index.js +0 -5
  189. package/dist/esm/components/ActionCard/ActionCard.js +0 -85
  190. package/dist/esm/components/ActionCard/CloseIconShape.js +0 -22
  191. package/dist/esm/components/ActionCard/IndicatorIconShape.js +0 -22
  192. package/dist/esm/components/ActionCard/index.js +0 -1
  193. package/dist/esm/components/CurrencyField/index.js +0 -1
  194. package/dist/esm/components/CurrencyInput/index.js +0 -1
  195. package/dist/esm/components/Em/Em.js +0 -7
  196. package/dist/esm/components/Em/index.js +0 -1
  197. package/dist/esm/components/EmailField/index.js +0 -1
  198. package/dist/esm/components/EmailInput/index.js +0 -1
  199. package/dist/esm/components/Heading1/Heading1.js +0 -44
  200. package/dist/esm/components/Heading1/index.js +0 -1
  201. package/dist/esm/components/Heading2/Heading2.js +0 -44
  202. package/dist/esm/components/Heading2/index.js +0 -1
  203. package/dist/esm/components/Heading3/Heading3.js +0 -44
  204. package/dist/esm/components/Heading3/index.js +0 -1
  205. package/dist/esm/components/Heading4/Heading4.js +0 -44
  206. package/dist/esm/components/Heading4/index.js +0 -1
  207. package/dist/esm/components/LineThrough/index.js +0 -1
  208. package/dist/esm/components/List/styled.js +0 -44
  209. package/dist/esm/components/NavHeader/IconButton.js +0 -27
  210. package/dist/esm/components/NavHeader/NavHeader.styles.js +0 -43
  211. package/dist/esm/components/NumberField/index.js +0 -1
  212. package/dist/esm/components/NumberInput/index.js +0 -1
  213. package/dist/esm/components/P/P.js +0 -12
  214. package/dist/esm/components/P/index.js +0 -1
  215. package/dist/esm/components/PasswordField/index.js +0 -1
  216. package/dist/esm/components/PasswordInput/index.js +0 -1
  217. package/dist/esm/components/PhoneField/index.js +0 -1
  218. package/dist/esm/components/PhoneInput/index.js +0 -1
  219. package/dist/esm/components/SkeletonAnimation/index.js +0 -1
  220. package/dist/esm/components/SkeletonCTA/index.js +0 -1
  221. package/dist/esm/components/SkeletonCircle/index.js +0 -1
  222. package/dist/esm/components/SkeletonHeading/index.js +0 -1
  223. package/dist/esm/components/SkeletonText/index.js +0 -1
  224. package/dist/esm/components/Small/Small.js +0 -12
  225. package/dist/esm/components/Small/index.js +0 -1
  226. package/dist/esm/components/Strong/Strong.js +0 -5
  227. package/dist/esm/components/Strong/index.js +0 -1
  228. package/dist/esm/components/TextGroup/TextGroup.js +0 -43
  229. package/dist/esm/components/TextGroup/index.js +0 -1
  230. package/dist/esm/components/TextInput/index.js +0 -1
  231. package/dist/esm/components/TextareaField/index.js +0 -1
  232. package/dist/esm/components/TextareaInput/index.js +0 -1
  233. /package/dist/{hooks/use-layout.d.ts → components/Accordion/hooks.d.ts} +0 -0
  234. /package/dist/{hooks/use-layout.js → components/Accordion/hooks.js} +0 -0
  235. /package/dist/components/{EmailInput → Input}/EmailInput.d.ts +0 -0
  236. /package/dist/components/{NumberInput → Input}/NumberInput.d.ts +0 -0
  237. /package/dist/components/{PasswordInput → Input}/PasswordInput.d.ts +0 -0
  238. /package/dist/components/{PasswordInput → Input}/PasswordInput.styled.js +0 -0
  239. /package/dist/components/{PasswordInput → Input}/PasswordVisibilityToggle.d.ts +0 -0
  240. /package/dist/components/{PasswordInput → Input}/PasswordVisibilityToggle.js +0 -0
  241. /package/dist/components/{TextInput → Input}/TextInput.d.ts +0 -0
  242. /package/dist/components/{SkeletonAnimation → SkeletonLoading}/SkeletonAnimation.d.ts +0 -0
  243. /package/dist/components/{SkeletonAnimation → SkeletonLoading}/SkeletonAnimation.js +0 -0
  244. /package/dist/components/{SkeletonCTA → SkeletonLoading}/SkeletonCTA.d.ts +0 -0
  245. /package/dist/components/{SkeletonCircle → SkeletonLoading}/SkeletonCircle.d.ts +0 -0
  246. /package/dist/components/{SkeletonHeading → SkeletonLoading}/SkeletonHeading.d.ts +0 -0
  247. /package/dist/components/{SkeletonText → SkeletonLoading}/SkeletonText.d.ts +0 -0
  248. /package/dist/components/{CurrencyField → TextField}/CurrencyField.d.ts +0 -0
  249. /package/dist/components/{EmailField → TextField}/EmailField.d.ts +0 -0
  250. /package/dist/components/{NumberField → TextField}/NumberField.d.ts +0 -0
  251. /package/dist/components/{PasswordField → TextField}/PasswordField.d.ts +0 -0
  252. /package/dist/components/{PhoneField → TextField}/PhoneField.d.ts +0 -0
  253. /package/dist/components/{TextareaField → TextField}/TextareaField.d.ts +0 -0
  254. /package/dist/esm/{hooks/use-layout.js → components/Accordion/hooks.js} +0 -0
  255. /package/dist/esm/components/{PasswordInput → Input}/PasswordInput.styled.js +0 -0
  256. /package/dist/esm/components/{PasswordInput → Input}/PasswordVisibilityToggle.js +0 -0
  257. /package/dist/esm/components/{SkeletonAnimation → SkeletonLoading}/SkeletonAnimation.js +0 -0
@@ -7,7 +7,7 @@ declare const styled: styledComponents.ReactNativeStyledInterface<{
7
7
  borderWidth: Record<"small" | "medium" | "large", string>;
8
8
  breakpoint: Record<"small" | "medium" | "large", string | number>;
9
9
  mediaQuery: Record<"small" | "medium" | "large", string>;
10
- space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
10
+ space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
11
11
  transition: Record<"medium" | "slow" | "fast", string>;
12
12
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
13
13
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -234,7 +234,7 @@ declare const styled: styledComponents.ReactNativeStyledInterface<{
234
234
  borderWidth: Record<"small" | "medium" | "large", string>;
235
235
  breakpoint: Record<"small" | "medium" | "large", string | number>;
236
236
  mediaQuery: Record<"small" | "medium" | "large", string>;
237
- space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
237
+ space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
238
238
  transition: Record<"medium" | "slow" | "fast", string>;
239
239
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
240
240
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -461,7 +461,7 @@ declare const styled: styledComponents.ReactNativeStyledInterface<{
461
461
  borderWidth: Record<"small" | "medium" | "large", string>;
462
462
  breakpoint: Record<"small" | "medium" | "large", string | number>;
463
463
  mediaQuery: Record<"small" | "medium" | "large", string>;
464
- space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
464
+ space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
465
465
  transition: Record<"medium" | "slow" | "fast", string>;
466
466
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
467
467
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -688,7 +688,7 @@ declare const styled: styledComponents.ReactNativeStyledInterface<{
688
688
  borderWidth: Record<"small" | "medium" | "large", string>;
689
689
  breakpoint: Record<"small" | "medium" | "large", string | number>;
690
690
  mediaQuery: Record<"small" | "medium" | "large", string>;
691
- space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
691
+ space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
692
692
  transition: Record<"medium" | "slow" | "fast", string>;
693
693
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
694
694
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -915,7 +915,7 @@ declare const styled: styledComponents.ReactNativeStyledInterface<{
915
915
  borderWidth: Record<"small" | "medium" | "large", string>;
916
916
  breakpoint: Record<"small" | "medium" | "large", string | number>;
917
917
  mediaQuery: Record<"small" | "medium" | "large", string>;
918
- space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
918
+ space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
919
919
  transition: Record<"medium" | "slow" | "fast", string>;
920
920
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
921
921
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -1142,7 +1142,7 @@ declare const styled: styledComponents.ReactNativeStyledInterface<{
1142
1142
  borderWidth: Record<"small" | "medium" | "large", string>;
1143
1143
  breakpoint: Record<"small" | "medium" | "large", string | number>;
1144
1144
  mediaQuery: Record<"small" | "medium" | "large", string>;
1145
- space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
1145
+ space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
1146
1146
  transition: Record<"medium" | "slow" | "fast", string>;
1147
1147
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
1148
1148
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ovotech/element-native",
3
- "version": "3.3.2-canary-71b07de-141",
3
+ "version": "3.3.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "url": "@ovotech/element"
14
14
  },
15
15
  "dependencies": {
16
- "@ovotech/element-core": "^2.0.1-canary-71b07de-141",
16
+ "@ovotech/element-core": "^2.0.1",
17
17
  "deepmerge": "^4.2.2",
18
18
  "lodash.groupby": "^4.6.0"
19
19
  },
@@ -31,7 +31,6 @@
31
31
  "@types/react-router-dom": "^5.1.5",
32
32
  "@types/styled-components": "^5.1.3",
33
33
  "@types/styled-components-react-native": "^5.1.1",
34
- "@react-native-masked-view/masked-view": "^0.3.0",
35
34
  "babel-jest": "^29.0.0",
36
35
  "babel-plugin-require-context-hook": "^1.0.0",
37
36
  "jest": "^28.1.1",
@@ -54,8 +53,7 @@
54
53
  "react-native": "^0.63.3 || ^0.71.0 || ^0.72.0",
55
54
  "react-native-reanimated": "^2.10.0",
56
55
  "react-native-svg": "^13.5.0",
57
- "styled-components": "^5.1.3",
58
- "@react-native-masked-view/masked-view": "^0.3.0"
56
+ "styled-components": "^5.1.3"
59
57
  },
60
58
  "sideEffects": false,
61
59
  "scripts": {
@@ -1,19 +0,0 @@
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;
@@ -1,115 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- export declare const CloseIconShape: ({ color }: {
2
- color?: string | undefined;
3
- }) => JSX.Element;
@@ -1,52 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- export declare const IndicatorIconShape: ({ color }: {
2
- color?: string | undefined;
3
- }) => JSX.Element;
@@ -1,52 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { ActionCard } from './ActionCard';
@@ -1,5 +0,0 @@
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; } });
@@ -1 +0,0 @@
1
- export { CurrencyField } from './CurrencyField';
@@ -1,5 +0,0 @@
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 +0,0 @@
1
- export { CurrencyInput, CurrencyInputProps } from './CurrencyInput';
@@ -1,5 +0,0 @@
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; } });
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __importDefault = (this && this.__importDefault) || function (mod) {
7
- return (mod && mod.__esModule) ? mod : { "default": mod };
8
- };
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.Em = void 0;
11
- var styled_native_1 = __importDefault(require("../../styled.native"));
12
- exports.Em = styled_native_1.default.Text(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: 'System font';\n font-style: italic;\n"], ["\n font-family: 'System font';\n font-style: italic;\n"])));
13
- var templateObject_1;
@@ -1 +0,0 @@
1
- export { Em } from './Em';
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Em = void 0;
4
- var Em_1 = require("./Em");
5
- Object.defineProperty(exports, "Em", { enumerable: true, get: function () { return Em_1.Em; } });
@@ -1 +0,0 @@
1
- export { EmailField } from './EmailField';
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmailField = void 0;
4
- var EmailField_1 = require("./EmailField");
5
- Object.defineProperty(exports, "EmailField", { enumerable: true, get: function () { return EmailField_1.EmailField; } });
@@ -1 +0,0 @@
1
- export { EmailInput } from './EmailInput';
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmailInput = void 0;
4
- var EmailInput_1 = require("./EmailInput");
5
- Object.defineProperty(exports, "EmailInput", { enumerable: true, get: function () { return EmailInput_1.EmailInput; } });
@@ -1,3 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { TextProps } from 'react-native';
3
- export declare const Heading1: ({ accessibilityRole, ...rest }: PropsWithChildren<TextProps>) => JSX.Element;
@@ -1 +0,0 @@
1
- export { Heading1 } from './Heading1';
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Heading1 = void 0;
4
- var Heading1_1 = require("./Heading1");
5
- Object.defineProperty(exports, "Heading1", { enumerable: true, get: function () { return Heading1_1.Heading1; } });
@@ -1,3 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { TextProps } from 'react-native';
3
- export declare const Heading2: ({ accessibilityRole, ...rest }: PropsWithChildren<TextProps>) => JSX.Element;
@@ -1,71 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- var desc = Object.getOwnPropertyDescriptor(m, k);
20
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
- desc = { enumerable: true, get: function() { return m[k]; } };
22
- }
23
- Object.defineProperty(o, k2, desc);
24
- }) : (function(o, m, k, k2) {
25
- if (k2 === undefined) k2 = k;
26
- o[k2] = m[k];
27
- }));
28
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
- Object.defineProperty(o, "default", { enumerable: true, value: v });
30
- }) : function(o, v) {
31
- o["default"] = v;
32
- });
33
- var __importStar = (this && this.__importStar) || function (mod) {
34
- if (mod && mod.__esModule) return mod;
35
- var result = {};
36
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
- __setModuleDefault(result, mod);
38
- return result;
39
- };
40
- var __rest = (this && this.__rest) || function (s, e) {
41
- var t = {};
42
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
43
- t[p] = s[p];
44
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
45
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
46
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
47
- t[p[i]] = s[p[i]];
48
- }
49
- return t;
50
- };
51
- Object.defineProperty(exports, "__esModule", { value: true });
52
- exports.Heading2 = void 0;
53
- var jsx_runtime_1 = require("react/jsx-runtime");
54
- var hooks_1 = require("../../hooks");
55
- var styled_native_1 = __importStar(require("../../styled.native"));
56
- var utils_1 = require("../../utils");
57
- var calculateLetterSpacing = function (fontSize, letterSpacing) {
58
- return (0, utils_1.numToPx)((0, utils_1.pxToNumber)(fontSize) * letterSpacing);
59
- };
60
- var StyledHeading2 = styled_native_1.default.Text(function (_a) {
61
- var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
62
- var fontSize = core.fontSize.heading2[smallAndUp ? 'large' : 'small'];
63
- return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n color: ", ";\n "])), core.fontFamily.heading.native, fontSize, core.lineHeight.heading2[smallAndUp ? 'large' : 'small'], calculateLetterSpacing(fontSize, core.letterSpacing.extraCompressed), semantic.message.branded);
64
- });
65
- var Heading2 = function (_a) {
66
- var _b = _a.accessibilityRole, accessibilityRole = _b === void 0 ? 'header' : _b, rest = __rest(_a, ["accessibilityRole"]);
67
- var breakpoints = (0, hooks_1.useBreakpoint)();
68
- return ((0, jsx_runtime_1.jsx)(StyledHeading2, __assign({ accessibilityRole: accessibilityRole }, breakpoints, rest)));
69
- };
70
- exports.Heading2 = Heading2;
71
- var templateObject_1;
@@ -1 +0,0 @@
1
- export { Heading2 } from './Heading2';
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Heading2 = void 0;
4
- var Heading2_1 = require("./Heading2");
5
- Object.defineProperty(exports, "Heading2", { enumerable: true, get: function () { return Heading2_1.Heading2; } });
@@ -1,3 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { TextProps } from 'react-native';
3
- export declare const Heading3: ({ accessibilityRole, ...rest }: PropsWithChildren<TextProps>) => JSX.Element;
@@ -1,71 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- var desc = Object.getOwnPropertyDescriptor(m, k);
20
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
- desc = { enumerable: true, get: function() { return m[k]; } };
22
- }
23
- Object.defineProperty(o, k2, desc);
24
- }) : (function(o, m, k, k2) {
25
- if (k2 === undefined) k2 = k;
26
- o[k2] = m[k];
27
- }));
28
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
- Object.defineProperty(o, "default", { enumerable: true, value: v });
30
- }) : function(o, v) {
31
- o["default"] = v;
32
- });
33
- var __importStar = (this && this.__importStar) || function (mod) {
34
- if (mod && mod.__esModule) return mod;
35
- var result = {};
36
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
- __setModuleDefault(result, mod);
38
- return result;
39
- };
40
- var __rest = (this && this.__rest) || function (s, e) {
41
- var t = {};
42
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
43
- t[p] = s[p];
44
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
45
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
46
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
47
- t[p[i]] = s[p[i]];
48
- }
49
- return t;
50
- };
51
- Object.defineProperty(exports, "__esModule", { value: true });
52
- exports.Heading3 = void 0;
53
- var jsx_runtime_1 = require("react/jsx-runtime");
54
- var hooks_1 = require("../../hooks");
55
- var styled_native_1 = __importStar(require("../../styled.native"));
56
- var utils_1 = require("../../utils");
57
- var calculateLetterSpacing = function (fontSize, letterSpacing) {
58
- return (0, utils_1.numToPx)((0, utils_1.pxToNumber)(fontSize) * letterSpacing);
59
- };
60
- var StyledHeading3 = styled_native_1.default.Text(function (_a) {
61
- var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
62
- var fontSize = core.fontSize.heading3[smallAndUp ? 'large' : 'small'];
63
- return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n color: ", ";\n "])), core.fontFamily.bodyBold.native, fontSize, core.lineHeight.heading3[smallAndUp ? 'large' : 'small'], calculateLetterSpacing(fontSize, core.letterSpacing.compressed), semantic.message.branded);
64
- });
65
- var Heading3 = function (_a) {
66
- var _b = _a.accessibilityRole, accessibilityRole = _b === void 0 ? 'header' : _b, rest = __rest(_a, ["accessibilityRole"]);
67
- var breakpoints = (0, hooks_1.useBreakpoint)();
68
- return ((0, jsx_runtime_1.jsx)(StyledHeading3, __assign({ accessibilityRole: accessibilityRole }, breakpoints, rest)));
69
- };
70
- exports.Heading3 = Heading3;
71
- var templateObject_1;
@@ -1 +0,0 @@
1
- export { Heading3 } from './Heading3';
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Heading3 = void 0;
4
- var Heading3_1 = require("./Heading3");
5
- Object.defineProperty(exports, "Heading3", { enumerable: true, get: function () { return Heading3_1.Heading3; } });
@@ -1,3 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { TextProps } from 'react-native';
3
- export declare const Heading4: ({ accessibilityRole, ...rest }: PropsWithChildren<TextProps>) => JSX.Element;