@ovotech/element-native 3.8.1-canary-0c92e13-244 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (629) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +3 -2
  2. package/dist/components/Accordion/Accordion.js +97 -130
  3. package/dist/components/Accordion/Group.js +21 -21
  4. package/dist/components/Accordion/Icon.js +59 -60
  5. package/dist/components/Accordion/index.d.ts +1 -1
  6. package/dist/components/Accordion/index.js +19 -9
  7. package/dist/components/Accordion/styles.d.ts +2 -20
  8. package/dist/components/Accordion/styles.js +50 -59
  9. package/dist/components/Accordion/types.d.ts +2 -2
  10. package/dist/components/Accordion/types.js +1 -2
  11. package/dist/components/ActionCard/ActionCard.d.ts +1 -1
  12. package/dist/components/ActionCard/ActionCard.js +376 -104
  13. package/dist/components/ActionCard/CloseIconShape.js +14 -40
  14. package/dist/components/ActionCard/IndicatorIconShape.js +11 -40
  15. package/dist/components/ActionCard/index.js +185 -5
  16. package/dist/components/ActionList/ActionList.d.ts +4 -3
  17. package/dist/components/ActionList/ActionList.js +202 -56
  18. package/dist/components/ActionList/index.js +100 -6
  19. package/dist/components/ActionList/styled.d.ts +5 -523
  20. package/dist/components/ActionList/styled.js +152 -65
  21. package/dist/components/Badge/Badge.d.ts +3 -9
  22. package/dist/components/Badge/Badge.js +39 -96
  23. package/dist/components/Badge/index.js +8 -5
  24. package/dist/components/CTAButton/CTAButton.d.ts +8 -9
  25. package/dist/components/CTAButton/CTAButton.js +181 -118
  26. package/dist/components/CTAButton/index.js +100 -8
  27. package/dist/components/CTALink/CTALink.d.ts +5 -5
  28. package/dist/components/CTALink/CTALink.js +105 -22
  29. package/dist/components/CTALink/index.js +100 -7
  30. package/dist/components/Card/Card.d.ts +0 -6
  31. package/dist/components/Card/Card.js +17 -13
  32. package/dist/components/Card/index.js +7 -5
  33. package/dist/components/Checkbox/Checkbox.js +173 -78
  34. package/dist/components/Checkbox/CheckboxField.d.ts +1 -1
  35. package/dist/components/Checkbox/CheckboxField.js +39 -43
  36. package/dist/components/Checkbox/index.js +105 -7
  37. package/dist/components/CurrencyField/CurrencyField.d.ts +1 -1
  38. package/dist/components/CurrencyField/CurrencyField.js +109 -32
  39. package/dist/components/CurrencyField/index.js +108 -5
  40. package/dist/components/CurrencyInput/CurrencyInput.d.ts +2 -2
  41. package/dist/components/CurrencyInput/CurrencyInput.js +118 -36
  42. package/dist/components/CurrencyInput/index.d.ts +1 -1
  43. package/dist/components/CurrencyInput/index.js +100 -5
  44. package/dist/components/DataTable/DataTable.js +62 -45
  45. package/dist/components/DataTable/TableRow.js +44 -35
  46. package/dist/components/DataTable/index.js +25 -20
  47. package/dist/components/DataTable/styles.d.ts +0 -78
  48. package/dist/components/DataTable/styles.js +119 -86
  49. package/dist/components/DataTable/types.d.ts +4 -4
  50. package/dist/components/DataTable/types.js +1 -2
  51. package/dist/components/DateField/DateField.d.ts +4 -3
  52. package/dist/components/DateField/DateField.js +229 -87
  53. package/dist/components/DateField/index.js +107 -5
  54. package/dist/components/DescriptionList/DescriptionList.d.ts +2 -2
  55. package/dist/components/DescriptionList/DescriptionList.js +25 -43
  56. package/dist/components/DescriptionList/index.js +13 -6
  57. package/dist/components/DescriptionList/styled.d.ts +0 -6
  58. package/dist/components/DescriptionList/styled.js +42 -85
  59. package/dist/components/Disclosure/Disclosure.js +153 -79
  60. package/dist/components/Disclosure/index.js +96 -16
  61. package/dist/components/Divider/Divider.d.ts +1 -1
  62. package/dist/components/Divider/Divider.js +12 -43
  63. package/dist/components/Divider/index.js +7 -5
  64. package/dist/components/Em/Em.d.ts +0 -6
  65. package/dist/components/Em/Em.js +8 -12
  66. package/dist/components/Em/index.js +6 -5
  67. package/dist/components/EmailField/EmailField.d.ts +1 -1
  68. package/dist/components/EmailField/EmailField.js +108 -32
  69. package/dist/components/EmailField/index.js +107 -5
  70. package/dist/components/EmailInput/EmailInput.d.ts +1 -1
  71. package/dist/components/EmailInput/EmailInput.js +106 -18
  72. package/dist/components/EmailInput/index.js +98 -5
  73. package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +2 -2
  74. package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +115 -50
  75. package/dist/components/ErrorSummaryNotification/index.js +104 -5
  76. package/dist/components/ErrorText/ErrorText.d.ts +0 -6
  77. package/dist/components/ErrorText/ErrorText.js +22 -42
  78. package/dist/components/ErrorText/index.js +11 -5
  79. package/dist/components/Field/Field.d.ts +2 -2
  80. package/dist/components/Field/Field.js +62 -58
  81. package/dist/components/Field/index.js +16 -16
  82. package/dist/components/FilterSelect/FilterSelect.d.ts +2 -2
  83. package/dist/components/FilterSelect/FilterSelect.js +201 -77
  84. package/dist/components/FilterSelect/index.js +102 -5
  85. package/dist/components/FormGroup/FormGroup.d.ts +1 -1
  86. package/dist/components/FormGroup/FormGroup.js +9 -42
  87. package/dist/components/FormGroup/index.js +8 -5
  88. package/dist/components/Grid/Col.d.ts +1 -7
  89. package/dist/components/Grid/Col.js +32 -58
  90. package/dist/components/Grid/Row.d.ts +0 -6
  91. package/dist/components/Grid/Row.js +34 -72
  92. package/dist/components/Grid/index.js +13 -7
  93. package/dist/components/Heading1/Heading1.js +36 -70
  94. package/dist/components/Heading1/index.js +10 -5
  95. package/dist/components/Heading2/Heading2.js +36 -70
  96. package/dist/components/Heading2/index.js +10 -5
  97. package/dist/components/Heading3/Heading3.js +36 -70
  98. package/dist/components/Heading3/index.js +10 -5
  99. package/dist/components/Heading4/Heading4.js +36 -70
  100. package/dist/components/Heading4/index.js +10 -5
  101. package/dist/components/HintText/HintText.d.ts +0 -6
  102. package/dist/components/HintText/HintText.js +22 -42
  103. package/dist/components/HintText/index.js +11 -5
  104. package/dist/components/Icon/Icon.d.ts +2 -2
  105. package/dist/components/Icon/Icon.js +103 -38
  106. package/dist/components/Icon/index.js +93 -5
  107. package/dist/components/Input/Input.d.ts +1 -1
  108. package/dist/components/Input/Input.js +198 -97
  109. package/dist/components/Label/Label.js +18 -50
  110. package/dist/components/Label/index.js +8 -5
  111. package/dist/components/LabelText/LabelText.d.ts +0 -6
  112. package/dist/components/LabelText/LabelText.js +20 -42
  113. package/dist/components/LabelText/index.js +11 -5
  114. package/dist/components/Lead/Lead.js +18 -52
  115. package/dist/components/Lead/index.js +8 -5
  116. package/dist/components/LineThrough/LineThrough.d.ts +0 -6
  117. package/dist/components/LineThrough/LineThrough.js +7 -12
  118. package/dist/components/LineThrough/index.js +6 -5
  119. package/dist/components/List/List.d.ts +1 -1
  120. package/dist/components/List/List.js +38 -32
  121. package/dist/components/List/index.js +16 -7
  122. package/dist/components/List/styled.d.ts +0 -25
  123. package/dist/components/List/styled.js +37 -52
  124. package/dist/components/Margin/Margin.d.ts +2 -8
  125. package/dist/components/Margin/Margin.js +68 -50
  126. package/dist/components/Margin/index.js +11 -5
  127. package/dist/components/NavHeader/IconButton.d.ts +2 -2
  128. package/dist/components/NavHeader/IconButton.js +119 -18
  129. package/dist/components/NavHeader/NavHeader.d.ts +3 -11
  130. package/dist/components/NavHeader/NavHeader.js +181 -65
  131. package/dist/components/NavHeader/NavHeader.styles.d.ts +7 -543
  132. package/dist/components/NavHeader/NavHeader.styles.js +81 -72
  133. package/dist/components/NavHeader/index.d.ts +1 -1
  134. package/dist/components/NavHeader/index.js +104 -5
  135. package/dist/components/Notification/Notification.d.ts +2 -14
  136. package/dist/components/Notification/Notification.js +190 -103
  137. package/dist/components/Notification/index.js +100 -9
  138. package/dist/components/NumberField/NumberField.d.ts +1 -1
  139. package/dist/components/NumberField/NumberField.js +108 -32
  140. package/dist/components/NumberField/index.js +107 -5
  141. package/dist/components/NumberInput/NumberInput.d.ts +1 -1
  142. package/dist/components/NumberInput/NumberInput.js +106 -18
  143. package/dist/components/NumberInput/index.js +98 -5
  144. package/dist/components/P/P.js +23 -54
  145. package/dist/components/P/index.js +10 -5
  146. package/dist/components/PasswordField/PasswordField.d.ts +1 -1
  147. package/dist/components/PasswordField/PasswordField.js +110 -32
  148. package/dist/components/PasswordField/index.js +109 -5
  149. package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
  150. package/dist/components/PasswordInput/PasswordInput.js +123 -33
  151. package/dist/components/PasswordInput/PasswordInput.styled.d.ts +1 -7
  152. package/dist/components/PasswordInput/PasswordInput.styled.js +18 -37
  153. package/dist/components/PasswordInput/PasswordVisibilityToggle.d.ts +1 -1
  154. package/dist/components/PasswordInput/PasswordVisibilityToggle.js +128 -26
  155. package/dist/components/PasswordInput/index.js +100 -5
  156. package/dist/components/PhoneField/PhoneField.d.ts +1 -1
  157. package/dist/components/PhoneField/PhoneField.js +108 -32
  158. package/dist/components/PhoneField/index.js +107 -5
  159. package/dist/components/PhoneInput/PhoneInput.d.ts +1 -1
  160. package/dist/components/PhoneInput/PhoneInput.js +106 -17
  161. package/dist/components/PhoneInput/index.js +98 -5
  162. package/dist/components/ProductCarousel/NavigationDots.js +57 -74
  163. package/dist/components/ProductCarousel/ProductCarousel.js +2174 -126
  164. package/dist/components/ProductCarousel/anchor-point.js +31 -51
  165. package/dist/components/ProductCarousel/index.js +101 -5
  166. package/dist/components/Radio/Radio.js +69 -67
  167. package/dist/components/Radio/RadioField.d.ts +1 -1
  168. package/dist/components/Radio/RadioField.js +46 -47
  169. package/dist/components/Radio/index.js +18 -7
  170. package/dist/components/RadioCard/RadioCard.js +68 -71
  171. package/dist/components/RadioCard/index.js +13 -5
  172. package/dist/components/SelectField/Select.d.ts +2 -8
  173. package/dist/components/SelectField/Select.js +852 -93
  174. package/dist/components/SelectField/SelectField.d.ts +1 -1
  175. package/dist/components/SelectField/SelectField.js +125 -32
  176. package/dist/components/SelectField/index.js +108 -5
  177. package/dist/components/SkeletonAnimation/SkeletonAnimation.js +47 -34
  178. package/dist/components/SkeletonAnimation/index.js +7 -5
  179. package/dist/components/SkeletonCTA/SkeletonCTA.d.ts +1 -1
  180. package/dist/components/SkeletonCTA/SkeletonCTA.js +17 -41
  181. package/dist/components/SkeletonCTA/index.js +12 -5
  182. package/dist/components/SkeletonCircle/SkeletonCircle.d.ts +1 -1
  183. package/dist/components/SkeletonCircle/SkeletonCircle.js +16 -44
  184. package/dist/components/SkeletonCircle/index.js +10 -5
  185. package/dist/components/SkeletonHeading/SkeletonHeading.d.ts +1 -1
  186. package/dist/components/SkeletonHeading/SkeletonHeading.js +29 -40
  187. package/dist/components/SkeletonHeading/index.js +12 -5
  188. package/dist/components/SkeletonText/SkeletonText.d.ts +1 -1
  189. package/dist/components/SkeletonText/SkeletonText.js +33 -50
  190. package/dist/components/SkeletonText/index.js +12 -5
  191. package/dist/components/Small/Small.d.ts +0 -6
  192. package/dist/components/Small/Small.js +17 -38
  193. package/dist/components/Small/index.js +11 -5
  194. package/dist/components/Spinner/Spinner.d.ts +2 -2
  195. package/dist/components/Spinner/Spinner.js +61 -68
  196. package/dist/components/Spinner/index.js +9 -5
  197. package/dist/components/Stack/Stack.d.ts +1 -1
  198. package/dist/components/Stack/Stack.js +30 -48
  199. package/dist/components/Stack/index.js +11 -5
  200. package/dist/components/Stretch/Stretch.d.ts +1 -1
  201. package/dist/components/Stretch/Stretch.js +11 -55
  202. package/dist/components/Stretch/index.js +8 -16
  203. package/dist/components/Strong/Strong.d.ts +0 -6
  204. package/dist/components/Strong/Strong.js +9 -10
  205. package/dist/components/Strong/index.js +6 -5
  206. package/dist/components/SubLabelText/SubLabelText.d.ts +0 -6
  207. package/dist/components/SubLabelText/SubLabelText.js +20 -42
  208. package/dist/components/SubLabelText/index.js +11 -5
  209. package/dist/components/Tabs/Tab.d.ts +2 -1
  210. package/dist/components/Tabs/Tab.js +60 -76
  211. package/dist/components/Tabs/TabList.d.ts +2 -2
  212. package/dist/components/Tabs/TabList.js +37 -77
  213. package/dist/components/Tabs/TabPanel.js +15 -64
  214. package/dist/components/Tabs/Tabs.d.ts +3 -2
  215. package/dist/components/Tabs/Tabs.js +46 -97
  216. package/dist/components/Tabs/index.js +19 -11
  217. package/dist/components/TextField/TextField.d.ts +1 -1
  218. package/dist/components/TextField/TextField.js +108 -32
  219. package/dist/components/TextField/index.js +107 -5
  220. package/dist/components/TextGroup/TextGroup.js +23 -40
  221. package/dist/components/TextGroup/index.js +7 -5
  222. package/dist/components/TextInput/TextInput.d.ts +1 -1
  223. package/dist/components/TextInput/TextInput.js +97 -18
  224. package/dist/components/TextInput/index.js +98 -5
  225. package/dist/components/TextLink/TextLink.js +118 -74
  226. package/dist/components/TextLink/index.js +97 -5
  227. package/dist/components/TextareaField/TextareaField.d.ts +1 -1
  228. package/dist/components/TextareaField/TextareaField.js +108 -32
  229. package/dist/components/TextareaField/index.js +107 -5
  230. package/dist/components/TextareaInput/TextareaInput.d.ts +2 -2
  231. package/dist/components/TextareaInput/TextareaInput.js +114 -65
  232. package/dist/components/TextareaInput/index.d.ts +1 -1
  233. package/dist/components/TextareaInput/index.js +98 -5
  234. package/dist/components/Toast/Toast.d.ts +1 -1
  235. package/dist/components/Toast/Toast.js +730 -159
  236. package/dist/components/Toast/index.js +105 -6
  237. package/dist/components/Toggle/Toggle.d.ts +1 -1
  238. package/dist/components/Toggle/Toggle.js +73 -55
  239. package/dist/components/Toggle/index.js +14 -5
  240. package/dist/components/Toggle/styles.d.ts +1 -25
  241. package/dist/components/Toggle/styles.js +38 -28
  242. package/dist/components/components.spec.native.js +199 -0
  243. package/dist/components/index.d.ts +3 -0
  244. package/dist/components/index.js +296 -77
  245. package/dist/hooks/index.js +8 -17
  246. package/dist/hooks/use-breakpoint.d.ts +2 -2
  247. package/dist/hooks/use-breakpoint.js +15 -15
  248. package/dist/hooks/use-full-width.d.ts +1 -1
  249. package/dist/hooks/use-full-width.js +16 -19
  250. package/dist/hooks/use-layout.js +17 -19
  251. package/dist/index-zQHKJ0fC.js +180 -0
  252. package/dist/index.d.ts +2 -0
  253. package/dist/index.js +320 -18
  254. package/dist/providers/IconsProvider.js +189 -118
  255. package/dist/providers/icons/Address.js +13 -40
  256. package/dist/providers/icons/Advice.js +11 -40
  257. package/dist/providers/icons/Archive.js +13 -40
  258. package/dist/providers/icons/ArrowDown.js +11 -40
  259. package/dist/providers/icons/ArrowLeft.js +11 -40
  260. package/dist/providers/icons/ArrowRight.js +11 -40
  261. package/dist/providers/icons/ArrowUp.js +11 -40
  262. package/dist/providers/icons/Award.js +13 -40
  263. package/dist/providers/icons/Battery.js +13 -40
  264. package/dist/providers/icons/Cal.js +11 -40
  265. package/dist/providers/icons/CalBook.js +13 -40
  266. package/dist/providers/icons/CaretDown.js +5 -40
  267. package/dist/providers/icons/CaretLeft.js +5 -40
  268. package/dist/providers/icons/CaretRight.js +5 -40
  269. package/dist/providers/icons/CaretUp.js +5 -40
  270. package/dist/providers/icons/Chart.js +13 -40
  271. package/dist/providers/icons/ChartFilled.js +11 -40
  272. package/dist/providers/icons/Check.js +11 -40
  273. package/dist/providers/icons/CheckCircle.js +13 -40
  274. package/dist/providers/icons/ChevronDown.js +11 -40
  275. package/dist/providers/icons/ChevronLeft.js +11 -40
  276. package/dist/providers/icons/ChevronLeftSmall.js +11 -40
  277. package/dist/providers/icons/ChevronLeftSmallFirst.js +13 -40
  278. package/dist/providers/icons/ChevronRight.js +11 -40
  279. package/dist/providers/icons/ChevronRightSmall.js +11 -40
  280. package/dist/providers/icons/ChevronRightSmallLast.js +13 -40
  281. package/dist/providers/icons/ChevronUp.js +11 -40
  282. package/dist/providers/icons/Circle.js +5 -17
  283. package/dist/providers/icons/CloseCircle.js +13 -40
  284. package/dist/providers/icons/Cross.js +11 -40
  285. package/dist/providers/icons/Doc.js +11 -40
  286. package/dist/providers/icons/Dollar.js +13 -40
  287. package/dist/providers/icons/Download.js +13 -40
  288. package/dist/providers/icons/Eco.js +11 -40
  289. package/dist/providers/icons/EcoHome.js +13 -40
  290. package/dist/providers/icons/Edit.js +13 -40
  291. package/dist/providers/icons/ElectricCar.js +13 -40
  292. package/dist/providers/icons/ElectricHome.js +13 -40
  293. package/dist/providers/icons/Electricity.js +11 -40
  294. package/dist/providers/icons/EnergyAdvice.js +13 -40
  295. package/dist/providers/icons/Equals.js +13 -40
  296. package/dist/providers/icons/Euro.js +13 -40
  297. package/dist/providers/icons/Gas.js +11 -40
  298. package/dist/providers/icons/GlobeAddress.js +11 -40
  299. package/dist/providers/icons/Help.js +13 -40
  300. package/dist/providers/icons/Hide.js +11 -40
  301. package/dist/providers/icons/Home.js +11 -40
  302. package/dist/providers/icons/HomeFilled.js +11 -40
  303. package/dist/providers/icons/HydroPower.js +13 -40
  304. package/dist/providers/icons/Info.js +13 -40
  305. package/dist/providers/icons/Link.js +40 -39
  306. package/dist/providers/icons/Logo.js +11 -17
  307. package/dist/providers/icons/Mail.js +11 -40
  308. package/dist/providers/icons/MailOpen.js +11 -40
  309. package/dist/providers/icons/Menu.js +13 -40
  310. package/dist/providers/icons/Message.js +11 -40
  311. package/dist/providers/icons/MessageFilled.js +11 -40
  312. package/dist/providers/icons/Minus.js +5 -40
  313. package/dist/providers/icons/Mobile.js +13 -40
  314. package/dist/providers/icons/NewWindow.js +22 -39
  315. package/dist/providers/icons/PaymentCard.js +13 -40
  316. package/dist/providers/icons/Phone.js +11 -40
  317. package/dist/providers/icons/Plus.js +11 -40
  318. package/dist/providers/icons/Pound.js +13 -40
  319. package/dist/providers/icons/Pricing.js +11 -40
  320. package/dist/providers/icons/Search.js +11 -40
  321. package/dist/providers/icons/Security.js +13 -40
  322. package/dist/providers/icons/Show.js +13 -40
  323. package/dist/providers/icons/SmartHome.js +13 -40
  324. package/dist/providers/icons/SmartMeter.js +13 -40
  325. package/dist/providers/icons/Solar.js +11 -40
  326. package/dist/providers/icons/Star.js +11 -40
  327. package/dist/providers/icons/Sun.js +13 -40
  328. package/dist/providers/icons/Torch.js +13 -39
  329. package/dist/providers/icons/Trees.js +13 -40
  330. package/dist/providers/icons/Tune.js +13 -40
  331. package/dist/providers/icons/User.js +13 -40
  332. package/dist/providers/icons/UserFilled.js +11 -40
  333. package/dist/providers/icons/Wallet.js +13 -40
  334. package/dist/providers/icons/WalletFilled.js +11 -40
  335. package/dist/providers/icons/WarmHome.js +13 -40
  336. package/dist/providers/icons/Warning.js +13 -40
  337. package/dist/providers/icons/WebAddress.js +11 -40
  338. package/dist/providers/icons/WindPower.js +11 -40
  339. package/dist/providers/icons/index.d.ts +0 -3
  340. package/dist/providers/icons/index.js +171 -102
  341. package/dist/providers/index.js +92 -17
  342. package/dist/providers/types.d.ts +3 -3
  343. package/dist/providers/types.js +1 -2
  344. package/dist/styled.native-KEscfVp7.js +3872 -0
  345. package/dist/styled.native.d.ts +0 -36
  346. package/dist/styled.native.js +8 -32
  347. package/dist/test/utils.d.ts +4 -0
  348. package/dist/test/utils.js +16127 -0
  349. package/dist/theme/index.js +970 -15
  350. package/dist/theme-native--5aKgQLJ.js +482 -0
  351. package/dist/theme-web-MrdqV6Ln.js +482 -0
  352. package/dist/utils/index.js +14 -16
  353. package/dist/utils/utils.d.ts +1 -2
  354. package/dist/utils/utils.js +57 -104
  355. package/dist/utils-HsZygzDh.js +26 -0
  356. package/package.json +21 -13
  357. package/components/package.json +0 -6
  358. package/dist/esm/components/Accordion/Accordion.js +0 -106
  359. package/dist/esm/components/Accordion/Group.js +0 -18
  360. package/dist/esm/components/Accordion/Icon.js +0 -35
  361. package/dist/esm/components/Accordion/index.js +0 -3
  362. package/dist/esm/components/Accordion/styles.js +0 -31
  363. package/dist/esm/components/ActionCard/ActionCard.js +0 -77
  364. package/dist/esm/components/ActionCard/CloseIconShape.js +0 -11
  365. package/dist/esm/components/ActionCard/IndicatorIconShape.js +0 -11
  366. package/dist/esm/components/ActionCard/index.js +0 -1
  367. package/dist/esm/components/ActionList/ActionList.js +0 -54
  368. package/dist/esm/components/ActionList/index.js +0 -1
  369. package/dist/esm/components/ActionList/styled.js +0 -40
  370. package/dist/esm/components/Badge/Badge.js +0 -70
  371. package/dist/esm/components/Badge/index.js +0 -1
  372. package/dist/esm/components/CTAButton/CTAButton.js +0 -90
  373. package/dist/esm/components/CTAButton/index.js +0 -1
  374. package/dist/esm/components/CTALink/CTALink.js +0 -18
  375. package/dist/esm/components/CTALink/index.js +0 -1
  376. package/dist/esm/components/Card/Card.js +0 -8
  377. package/dist/esm/components/Card/index.js +0 -1
  378. package/dist/esm/components/Checkbox/Checkbox.js +0 -74
  379. package/dist/esm/components/Checkbox/CheckboxField.js +0 -42
  380. package/dist/esm/components/Checkbox/index.js +0 -2
  381. package/dist/esm/components/CurrencyField/CurrencyField.js +0 -30
  382. package/dist/esm/components/CurrencyField/index.js +0 -1
  383. package/dist/esm/components/CurrencyInput/CurrencyInput.js +0 -34
  384. package/dist/esm/components/CurrencyInput/index.js +0 -1
  385. package/dist/esm/components/DataTable/DataTable.js +0 -43
  386. package/dist/esm/components/DataTable/TableRow.js +0 -33
  387. package/dist/esm/components/DataTable/index.js +0 -3
  388. package/dist/esm/components/DataTable/styles.js +0 -61
  389. package/dist/esm/components/DataTable/types.js +0 -1
  390. package/dist/esm/components/DateField/DateField.js +0 -63
  391. package/dist/esm/components/DateField/index.js +0 -1
  392. package/dist/esm/components/DescriptionList/DescriptionList.js +0 -40
  393. package/dist/esm/components/DescriptionList/index.js +0 -1
  394. package/dist/esm/components/DescriptionList/styled.js +0 -58
  395. package/dist/esm/components/Disclosure/Disclosure.js +0 -55
  396. package/dist/esm/components/Disclosure/index.js +0 -1
  397. package/dist/esm/components/Divider/Divider.js +0 -17
  398. package/dist/esm/components/Divider/index.js +0 -1
  399. package/dist/esm/components/Em/Em.js +0 -7
  400. package/dist/esm/components/Em/index.js +0 -1
  401. package/dist/esm/components/EmailField/EmailField.js +0 -30
  402. package/dist/esm/components/EmailField/index.js +0 -1
  403. package/dist/esm/components/EmailInput/EmailInput.js +0 -16
  404. package/dist/esm/components/EmailInput/index.js +0 -1
  405. package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +0 -49
  406. package/dist/esm/components/ErrorSummaryNotification/index.js +0 -1
  407. package/dist/esm/components/ErrorText/ErrorText.js +0 -17
  408. package/dist/esm/components/ErrorText/index.js +0 -1
  409. package/dist/esm/components/Field/Field.js +0 -58
  410. package/dist/esm/components/Field/index.js +0 -1
  411. package/dist/esm/components/FilterSelect/FilterSelect.js +0 -52
  412. package/dist/esm/components/FilterSelect/index.js +0 -1
  413. package/dist/esm/components/FormGroup/FormGroup.js +0 -37
  414. package/dist/esm/components/FormGroup/index.js +0 -1
  415. package/dist/esm/components/Grid/Col.js +0 -33
  416. package/dist/esm/components/Grid/Row.js +0 -47
  417. package/dist/esm/components/Grid/index.js +0 -2
  418. package/dist/esm/components/Heading1/Heading1.js +0 -46
  419. package/dist/esm/components/Heading1/index.js +0 -1
  420. package/dist/esm/components/Heading2/Heading2.js +0 -46
  421. package/dist/esm/components/Heading2/index.js +0 -1
  422. package/dist/esm/components/Heading3/Heading3.js +0 -46
  423. package/dist/esm/components/Heading3/index.js +0 -1
  424. package/dist/esm/components/Heading4/Heading4.js +0 -46
  425. package/dist/esm/components/Heading4/index.js +0 -1
  426. package/dist/esm/components/HintText/HintText.js +0 -17
  427. package/dist/esm/components/HintText/index.js +0 -1
  428. package/dist/esm/components/Icon/Icon.js +0 -36
  429. package/dist/esm/components/Icon/index.js +0 -1
  430. package/dist/esm/components/Input/Input.js +0 -74
  431. package/dist/esm/components/Label/Label.js +0 -25
  432. package/dist/esm/components/Label/index.js +0 -1
  433. package/dist/esm/components/LabelText/LabelText.js +0 -17
  434. package/dist/esm/components/LabelText/index.js +0 -1
  435. package/dist/esm/components/Lead/Lead.js +0 -27
  436. package/dist/esm/components/Lead/index.js +0 -1
  437. package/dist/esm/components/LineThrough/LineThrough.js +0 -7
  438. package/dist/esm/components/LineThrough/index.js +0 -1
  439. package/dist/esm/components/List/List.js +0 -29
  440. package/dist/esm/components/List/index.js +0 -1
  441. package/dist/esm/components/List/styled.js +0 -27
  442. package/dist/esm/components/Margin/Margin.js +0 -46
  443. package/dist/esm/components/Margin/index.js +0 -1
  444. package/dist/esm/components/NavHeader/IconButton.js +0 -16
  445. package/dist/esm/components/NavHeader/NavHeader.js +0 -42
  446. package/dist/esm/components/NavHeader/NavHeader.styles.js +0 -44
  447. package/dist/esm/components/NavHeader/index.js +0 -1
  448. package/dist/esm/components/Notification/Notification.js +0 -78
  449. package/dist/esm/components/Notification/index.js +0 -1
  450. package/dist/esm/components/NumberField/NumberField.js +0 -30
  451. package/dist/esm/components/NumberField/index.js +0 -1
  452. package/dist/esm/components/NumberInput/NumberInput.js +0 -16
  453. package/dist/esm/components/NumberInput/index.js +0 -1
  454. package/dist/esm/components/P/P.js +0 -29
  455. package/dist/esm/components/P/index.js +0 -1
  456. package/dist/esm/components/PasswordField/PasswordField.js +0 -30
  457. package/dist/esm/components/PasswordField/index.js +0 -1
  458. package/dist/esm/components/PasswordInput/PasswordInput.js +0 -32
  459. package/dist/esm/components/PasswordInput/PasswordInput.styled.js +0 -12
  460. package/dist/esm/components/PasswordInput/PasswordVisibilityToggle.js +0 -23
  461. package/dist/esm/components/PasswordInput/index.js +0 -1
  462. package/dist/esm/components/PhoneField/PhoneField.js +0 -30
  463. package/dist/esm/components/PhoneField/index.js +0 -1
  464. package/dist/esm/components/PhoneInput/PhoneInput.js +0 -15
  465. package/dist/esm/components/PhoneInput/index.js +0 -1
  466. package/dist/esm/components/ProductCarousel/NavigationDots.js +0 -50
  467. package/dist/esm/components/ProductCarousel/ProductCarousel.js +0 -98
  468. package/dist/esm/components/ProductCarousel/anchor-point.js +0 -49
  469. package/dist/esm/components/ProductCarousel/index.js +0 -1
  470. package/dist/esm/components/Radio/Radio.js +0 -62
  471. package/dist/esm/components/Radio/RadioField.js +0 -46
  472. package/dist/esm/components/Radio/index.js +0 -2
  473. package/dist/esm/components/RadioCard/RadioCard.js +0 -66
  474. package/dist/esm/components/RadioCard/index.js +0 -1
  475. package/dist/esm/components/SelectField/Select.js +0 -66
  476. package/dist/esm/components/SelectField/SelectField.js +0 -29
  477. package/dist/esm/components/SelectField/index.js +0 -1
  478. package/dist/esm/components/SkeletonAnimation/SkeletonAnimation.js +0 -31
  479. package/dist/esm/components/SkeletonAnimation/index.js +0 -1
  480. package/dist/esm/components/SkeletonCTA/SkeletonCTA.js +0 -35
  481. package/dist/esm/components/SkeletonCTA/index.js +0 -1
  482. package/dist/esm/components/SkeletonCircle/SkeletonCircle.js +0 -38
  483. package/dist/esm/components/SkeletonCircle/index.js +0 -1
  484. package/dist/esm/components/SkeletonHeading/SkeletonHeading.js +0 -34
  485. package/dist/esm/components/SkeletonHeading/index.js +0 -1
  486. package/dist/esm/components/SkeletonText/SkeletonText.js +0 -45
  487. package/dist/esm/components/SkeletonText/index.js +0 -1
  488. package/dist/esm/components/Small/Small.js +0 -13
  489. package/dist/esm/components/Small/index.js +0 -1
  490. package/dist/esm/components/Spinner/Spinner.js +0 -44
  491. package/dist/esm/components/Spinner/index.js +0 -1
  492. package/dist/esm/components/Stack/Stack.js +0 -43
  493. package/dist/esm/components/Stack/index.js +0 -1
  494. package/dist/esm/components/Stretch/Stretch.js +0 -29
  495. package/dist/esm/components/Stretch/index.js +0 -1
  496. package/dist/esm/components/Strong/Strong.js +0 -5
  497. package/dist/esm/components/Strong/index.js +0 -1
  498. package/dist/esm/components/SubLabelText/SubLabelText.js +0 -17
  499. package/dist/esm/components/SubLabelText/index.js +0 -1
  500. package/dist/esm/components/Tabs/Tab.js +0 -53
  501. package/dist/esm/components/Tabs/TabList.js +0 -51
  502. package/dist/esm/components/Tabs/TabPanel.js +0 -38
  503. package/dist/esm/components/Tabs/Tabs.js +0 -72
  504. package/dist/esm/components/Tabs/index.js +0 -4
  505. package/dist/esm/components/TextField/TextField.js +0 -30
  506. package/dist/esm/components/TextField/index.js +0 -1
  507. package/dist/esm/components/TextGroup/TextGroup.js +0 -39
  508. package/dist/esm/components/TextGroup/index.js +0 -1
  509. package/dist/esm/components/TextInput/TextInput.js +0 -16
  510. package/dist/esm/components/TextInput/index.js +0 -1
  511. package/dist/esm/components/TextLink/TextLink.js +0 -49
  512. package/dist/esm/components/TextLink/index.js +0 -1
  513. package/dist/esm/components/TextareaField/TextareaField.js +0 -30
  514. package/dist/esm/components/TextareaField/index.js +0 -1
  515. package/dist/esm/components/TextareaInput/TextareaInput.js +0 -41
  516. package/dist/esm/components/TextareaInput/index.js +0 -1
  517. package/dist/esm/components/Toast/Toast.js +0 -141
  518. package/dist/esm/components/Toast/index.js +0 -1
  519. package/dist/esm/components/Toggle/Toggle.js +0 -53
  520. package/dist/esm/components/Toggle/index.js +0 -1
  521. package/dist/esm/components/Toggle/styles.js +0 -23
  522. package/dist/esm/components/index.js +0 -62
  523. package/dist/esm/hooks/index.js +0 -2
  524. package/dist/esm/hooks/use-breakpoint.js +0 -12
  525. package/dist/esm/hooks/use-full-width.js +0 -16
  526. package/dist/esm/hooks/use-layout.js +0 -16
  527. package/dist/esm/index.js +0 -3
  528. package/dist/esm/providers/IconsProvider.js +0 -115
  529. package/dist/esm/providers/icons/Address.js +0 -14
  530. package/dist/esm/providers/icons/Advice.js +0 -14
  531. package/dist/esm/providers/icons/Archive.js +0 -14
  532. package/dist/esm/providers/icons/ArrowDown.js +0 -14
  533. package/dist/esm/providers/icons/ArrowLeft.js +0 -14
  534. package/dist/esm/providers/icons/ArrowRight.js +0 -14
  535. package/dist/esm/providers/icons/ArrowUp.js +0 -14
  536. package/dist/esm/providers/icons/Award.js +0 -14
  537. package/dist/esm/providers/icons/Battery.js +0 -14
  538. package/dist/esm/providers/icons/Cal.js +0 -14
  539. package/dist/esm/providers/icons/CalBook.js +0 -14
  540. package/dist/esm/providers/icons/CaretDown.js +0 -14
  541. package/dist/esm/providers/icons/CaretLeft.js +0 -14
  542. package/dist/esm/providers/icons/CaretRight.js +0 -14
  543. package/dist/esm/providers/icons/CaretUp.js +0 -14
  544. package/dist/esm/providers/icons/Chart.js +0 -14
  545. package/dist/esm/providers/icons/ChartFilled.js +0 -14
  546. package/dist/esm/providers/icons/Check.js +0 -14
  547. package/dist/esm/providers/icons/CheckCircle.js +0 -14
  548. package/dist/esm/providers/icons/ChevronDown.js +0 -14
  549. package/dist/esm/providers/icons/ChevronLeft.js +0 -14
  550. package/dist/esm/providers/icons/ChevronLeftSmall.js +0 -14
  551. package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +0 -14
  552. package/dist/esm/providers/icons/ChevronRight.js +0 -14
  553. package/dist/esm/providers/icons/ChevronRightSmall.js +0 -14
  554. package/dist/esm/providers/icons/ChevronRightSmallLast.js +0 -14
  555. package/dist/esm/providers/icons/ChevronUp.js +0 -14
  556. package/dist/esm/providers/icons/Circle.js +0 -14
  557. package/dist/esm/providers/icons/CloseCircle.js +0 -14
  558. package/dist/esm/providers/icons/Cross.js +0 -14
  559. package/dist/esm/providers/icons/Doc.js +0 -14
  560. package/dist/esm/providers/icons/Dollar.js +0 -14
  561. package/dist/esm/providers/icons/Download.js +0 -14
  562. package/dist/esm/providers/icons/Eco.js +0 -14
  563. package/dist/esm/providers/icons/EcoHome.js +0 -14
  564. package/dist/esm/providers/icons/Edit.js +0 -14
  565. package/dist/esm/providers/icons/ElectricCar.js +0 -14
  566. package/dist/esm/providers/icons/ElectricHome.js +0 -14
  567. package/dist/esm/providers/icons/Electricity.js +0 -14
  568. package/dist/esm/providers/icons/EnergyAdvice.js +0 -14
  569. package/dist/esm/providers/icons/Equals.js +0 -14
  570. package/dist/esm/providers/icons/Euro.js +0 -14
  571. package/dist/esm/providers/icons/Gas.js +0 -14
  572. package/dist/esm/providers/icons/GlobeAddress.js +0 -14
  573. package/dist/esm/providers/icons/Help.js +0 -14
  574. package/dist/esm/providers/icons/HelpFilled.js +0 -14
  575. package/dist/esm/providers/icons/Hide.js +0 -14
  576. package/dist/esm/providers/icons/Home.js +0 -14
  577. package/dist/esm/providers/icons/HomeFilled.js +0 -14
  578. package/dist/esm/providers/icons/HydroPower.js +0 -14
  579. package/dist/esm/providers/icons/Info.js +0 -14
  580. package/dist/esm/providers/icons/Link.js +0 -14
  581. package/dist/esm/providers/icons/Logo.js +0 -14
  582. package/dist/esm/providers/icons/Mail.js +0 -14
  583. package/dist/esm/providers/icons/MailOpen.js +0 -14
  584. package/dist/esm/providers/icons/Menu.js +0 -14
  585. package/dist/esm/providers/icons/Message.js +0 -14
  586. package/dist/esm/providers/icons/MessageFilled.js +0 -14
  587. package/dist/esm/providers/icons/Minus.js +0 -14
  588. package/dist/esm/providers/icons/Mobile.js +0 -14
  589. package/dist/esm/providers/icons/NewWindow.js +0 -14
  590. package/dist/esm/providers/icons/PaymentCard.js +0 -14
  591. package/dist/esm/providers/icons/PaymentCardFilled.js +0 -14
  592. package/dist/esm/providers/icons/Phone.js +0 -14
  593. package/dist/esm/providers/icons/Plus.js +0 -14
  594. package/dist/esm/providers/icons/Pound.js +0 -14
  595. package/dist/esm/providers/icons/Pricing.js +0 -14
  596. package/dist/esm/providers/icons/Search.js +0 -14
  597. package/dist/esm/providers/icons/Security.js +0 -14
  598. package/dist/esm/providers/icons/Show.js +0 -14
  599. package/dist/esm/providers/icons/SmartHome.js +0 -14
  600. package/dist/esm/providers/icons/SmartMeter.js +0 -14
  601. package/dist/esm/providers/icons/Solar.js +0 -14
  602. package/dist/esm/providers/icons/Star.js +0 -14
  603. package/dist/esm/providers/icons/StarFilled.js +0 -14
  604. package/dist/esm/providers/icons/Sun.js +0 -14
  605. package/dist/esm/providers/icons/Torch.js +0 -14
  606. package/dist/esm/providers/icons/Trees.js +0 -14
  607. package/dist/esm/providers/icons/Tune.js +0 -14
  608. package/dist/esm/providers/icons/User.js +0 -14
  609. package/dist/esm/providers/icons/UserFilled.js +0 -14
  610. package/dist/esm/providers/icons/Wallet.js +0 -14
  611. package/dist/esm/providers/icons/WalletFilled.js +0 -14
  612. package/dist/esm/providers/icons/WarmHome.js +0 -14
  613. package/dist/esm/providers/icons/Warning.js +0 -14
  614. package/dist/esm/providers/icons/WebAddress.js +0 -14
  615. package/dist/esm/providers/icons/WindPower.js +0 -14
  616. package/dist/esm/providers/icons/index.js +0 -87
  617. package/dist/esm/providers/index.js +0 -2
  618. package/dist/esm/providers/types.js +0 -1
  619. package/dist/esm/styled.native.js +0 -4
  620. package/dist/esm/theme/index.js +0 -1
  621. package/dist/esm/utils/index.js +0 -1
  622. package/dist/esm/utils/utils.js +0 -95
  623. package/dist/providers/icons/HelpFilled.d.ts +0 -2
  624. package/dist/providers/icons/HelpFilled.js +0 -41
  625. package/dist/providers/icons/PaymentCardFilled.d.ts +0 -2
  626. package/dist/providers/icons/PaymentCardFilled.js +0 -41
  627. package/dist/providers/icons/StarFilled.d.ts +0 -2
  628. package/dist/providers/icons/StarFilled.js +0 -41
  629. /package/dist/{esm/components/Accordion/types.js → components/components.spec.native.d.ts} +0 -0
@@ -1,4 +1,5 @@
1
- import { ComponentType } from 'react';
1
+ import { ComponentClass, ComponentType } from 'react';
2
+ import { AnimateProps } from 'react-native-reanimated';
2
3
  import { AccordionProps } from './types';
3
- export declare function withAnimated<T extends object>(WrappedComponent: ComponentType<T>): any;
4
+ export declare function withAnimated<T extends object>(WrappedComponent: ComponentType<T>): ComponentClass<AnimateProps<T>>;
4
5
  export declare const Accordion: ({ expanded, first, last, title, children, onToggle, }: AccordionProps) => JSX.Element;
@@ -1,134 +1,101 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
29
- if (k2 === undefined) k2 = k;
30
- var desc = Object.getOwnPropertyDescriptor(m, k);
31
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
32
- desc = { enumerable: true, get: function() { return m[k]; } };
1
+ import { jsx as s, jsxs as g } from "react/jsx-runtime";
2
+ import { Component as V, useContext as A, useMemo as d, useState as j, useEffect as S, useCallback as D } from "react";
3
+ import x, { useSharedValue as E, runOnUI as l, useDerivedValue as L, withTiming as z, useAnimatedStyle as v, interpolateColor as B } from "react-native-reanimated";
4
+ import { useLayout as G } from "../../hooks/use-layout.js";
5
+ import { T as M } from "../../styled.native-KEscfVp7.js";
6
+ import { Heading4 as P } from "../Heading4/Heading4.js";
7
+ import { AccordionGroupContext as R } from "./Group.js";
8
+ import { AccordionIcon as U } from "./Icon.js";
9
+ import { StyledAccordion as $, StyledAccordionHeader as q, StyledContainer as F } from "./styles.js";
10
+ import "../../utils-HsZygzDh.js";
11
+ import "../../hooks/use-breakpoint.js";
12
+ import "react-native";
13
+ import "react-native-svg";
14
+ function J(o) {
15
+ const a = o.displayName || o.name || "Component", n = class n extends V {
16
+ render() {
17
+ return /* @__PURE__ */ s(o, { ...this.props });
33
18
  }
34
- Object.defineProperty(o, k2, desc);
35
- }) : (function(o, m, k, k2) {
36
- if (k2 === undefined) k2 = k;
37
- o[k2] = m[k];
38
- }));
39
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
40
- Object.defineProperty(o, "default", { enumerable: true, value: v });
41
- }) : function(o, v) {
42
- o["default"] = v;
43
- });
44
- var __importStar = (this && this.__importStar) || function (mod) {
45
- if (mod && mod.__esModule) return mod;
46
- var result = {};
47
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
48
- __setModuleDefault(result, mod);
49
- return result;
50
- };
51
- Object.defineProperty(exports, "__esModule", { value: true });
52
- exports.Accordion = exports.withAnimated = void 0;
53
- var jsx_runtime_1 = require("react/jsx-runtime");
54
- var react_1 = require("react");
55
- var react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
56
- var use_layout_1 = require("../../hooks/use-layout");
57
- var styled_native_1 = require("../../styled.native");
58
- var Heading4_1 = require("../Heading4");
59
- var Group_1 = require("./Group");
60
- var Icon_1 = require("./Icon");
61
- var styles_1 = require("./styles");
62
- function withAnimated(WrappedComponent) {
63
- var displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
64
- // eslint-disable-next-line react/prefer-stateless-function
65
- var WithAnimated = /** @class */ (function (_super) {
66
- __extends(WithAnimated, _super);
67
- function WithAnimated() {
68
- return _super !== null && _super.apply(this, arguments) || this;
69
- }
70
- WithAnimated.prototype.render = function () {
71
- return (0, jsx_runtime_1.jsx)(WrappedComponent, __assign({}, this.props));
72
- };
73
- WithAnimated.displayName = "WithAnimated(".concat(displayName, ")");
74
- return WithAnimated;
75
- }(react_1.Component));
76
- return react_native_reanimated_1.default.createAnimatedComponent(WithAnimated);
19
+ };
20
+ n.displayName = `WithAnimated(${a})`;
21
+ let i = n;
22
+ return x.createAnimatedComponent(i);
77
23
  }
78
- exports.withAnimated = withAnimated;
79
- var Accordion = function (_a) {
80
- var _b = _a.expanded, expanded = _b === void 0 ? false : _b, first = _a.first, last = _a.last, title = _a.title, children = _a.children, onToggle = _a.onToggle;
81
- var _c = (0, react_1.useContext)(styled_native_1.ThemeContext), core = _c.core, semantic = _c.semantic;
82
- var Header = (0, react_1.useContext)(Group_1.AccordionGroupContext).Header;
83
- var AccordionHeading = Header !== null && Header !== void 0 ? Header : Heading4_1.Heading4;
84
- var AnimatedHeading = (0, react_1.useMemo)(function () { return withAnimated(AccordionHeading); }, [AccordionHeading]);
85
- var _d = (0, use_layout_1.useLayout)(0), layout = _d[0], onLayout = _d[1];
86
- var _e = (0, react_1.useState)(expanded), open = _e[0], setOpen = _e[1];
87
- var handleHeightContent = (0, react_1.useMemo)(function () { return layout.height || 100; }, [layout.height]);
88
- var size = (0, react_native_reanimated_1.useSharedValue)(handleHeightContent);
89
- (0, react_1.useEffect)(function () {
90
- (0, react_native_reanimated_1.runOnUI)(function () {
91
- 'worklet';
92
- if (expanded && handleHeightContent) {
93
- size.value = handleHeightContent;
24
+ const se = ({
25
+ expanded: o = !1,
26
+ first: a,
27
+ last: i,
28
+ title: n,
29
+ children: C,
30
+ onToggle: c
31
+ }) => {
32
+ const { core: p, semantic: u } = A(M), { Header: w } = A(R), h = w ?? P, H = d(
33
+ () => J(h),
34
+ [h]
35
+ ), [f, k] = G(0), [r, b] = j(o), e = d(
36
+ () => f.height || 100,
37
+ [f.height]
38
+ ), t = E(e);
39
+ S(() => {
40
+ l(() => {
41
+ "worklet";
42
+ o && e && (t.value = e);
43
+ })();
44
+ }, [e, o, t]), S(() => {
45
+ l(() => {
46
+ "worklet";
47
+ e && (t.value = e);
48
+ })();
49
+ }, [e, t]);
50
+ const m = L(() => z(r ? 1 : 0)), y = v(() => ({
51
+ height: t.value * m.value + 1
52
+ })), I = D(() => {
53
+ c == null || c(!r), t.value === 0 && l(() => {
54
+ "worklet";
55
+ t.value = e;
56
+ })(), b((T) => !T);
57
+ }, [e, r, t]), N = d(
58
+ () => [{ overflow: "hidden" }, y],
59
+ [y]
60
+ ), O = v(() => ({
61
+ color: B(
62
+ m.value,
63
+ [0, 1],
64
+ [u.message.branded, u.message.base]
65
+ )
66
+ }));
67
+ return /* @__PURE__ */ g($, { first: a, last: i, isExpanded: r, children: [
68
+ /* @__PURE__ */ g(
69
+ q,
70
+ {
71
+ accessibilityState: { expanded: r },
72
+ onPress: I,
73
+ testID: "accordionTitle",
74
+ children: [
75
+ /* @__PURE__ */ s(
76
+ H,
77
+ {
78
+ style: [
79
+ O,
80
+ {
81
+ paddingTop: p.space[1],
82
+ paddingRight: p.space[3],
83
+ marginTop: 0,
84
+ marginBottom: 0,
85
+ flexShrink: 1
86
+ }
87
+ ],
88
+ children: n
94
89
  }
95
- })();
96
- }, [handleHeightContent, expanded, size]);
97
- (0, react_1.useEffect)(function () {
98
- (0, react_native_reanimated_1.runOnUI)(function () {
99
- 'worklet';
100
- if (handleHeightContent) {
101
- size.value = handleHeightContent;
102
- }
103
- })();
104
- }, [handleHeightContent, size]);
105
- var progress = (0, react_native_reanimated_1.useDerivedValue)(function () { return (0, react_native_reanimated_1.withTiming)(open ? 1 : 0); });
106
- var style = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
107
- height: size.value * progress.value + 1,
108
- }); }, [progress, size]);
109
- var toggleOpen = (0, react_1.useCallback)(function () {
110
- onToggle === null || onToggle === void 0 ? void 0 : onToggle(!open);
111
- if (size.value === 0) {
112
- (0, react_native_reanimated_1.runOnUI)(function () {
113
- 'worklet';
114
- size.value = handleHeightContent;
115
- })();
116
- }
117
- setOpen(function (o) { return !o; });
118
- }, [handleHeightContent, open, size]);
119
- var containerAnimatedStyle = (0, react_1.useMemo)(function () { return [{ overflow: 'hidden' }, style]; }, [style]);
120
- var headerStyle = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
121
- color: (0, react_native_reanimated_1.interpolateColor)(progress.value, [0, 1], [semantic.message.branded, semantic.message.base]),
122
- }); }, [progress]);
123
- return ((0, jsx_runtime_1.jsxs)(styles_1.StyledAccordion, { first: first, last: last, isExpanded: open, children: [(0, jsx_runtime_1.jsxs)(styles_1.StyledAccordionHeader, { accessibilityState: { expanded: open }, onPress: toggleOpen, testID: "accordionTitle", children: [(0, jsx_runtime_1.jsx)(AnimatedHeading, { style: [
124
- headerStyle,
125
- {
126
- paddingTop: core.space[1],
127
- paddingRight: core.space[3],
128
- marginTop: 0,
129
- marginBottom: 0,
130
- flexShrink: 1,
131
- },
132
- ], children: title }), (0, jsx_runtime_1.jsx)(Icon_1.AccordionIcon, { animationTiming: progress })] }), (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { style: containerAnimatedStyle, children: (0, jsx_runtime_1.jsx)(styles_1.StyledContainer, { onLayout: onLayout, children: children }) })] }));
90
+ ),
91
+ /* @__PURE__ */ s(U, { animationTiming: m })
92
+ ]
93
+ }
94
+ ),
95
+ /* @__PURE__ */ s(x.View, { style: N, children: /* @__PURE__ */ s(F, { onLayout: k, children: C }) })
96
+ ] });
97
+ };
98
+ export {
99
+ se as Accordion,
100
+ J as withAnimated
133
101
  };
134
- exports.Accordion = Accordion;
@@ -1,22 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccordionGroup = exports.AccordionGroupContext = void 0;
4
- var jsx_runtime_1 = require("react/jsx-runtime");
5
- var react_1 = require("react");
6
- var react_native_1 = require("react-native");
7
- exports.AccordionGroupContext = (0, react_1.createContext)({
8
- Header: undefined,
9
- });
10
- var AccordionGroup = function (_a) {
11
- var children = _a.children, headingComponent = _a.headingComponent;
12
- var childCount = react_1.Children.count(children);
13
- return ((0, jsx_runtime_1.jsx)(exports.AccordionGroupContext.Provider, { value: { Header: headingComponent }, children: (0, jsx_runtime_1.jsx)(react_native_1.View, { children: react_1.Children.map(children, function (child, i) {
14
- return (0, react_1.isValidElement)(child)
15
- ? (0, react_1.cloneElement)(child, {
16
- first: i === 0,
17
- last: i === childCount - 1,
18
- })
19
- : child;
20
- }) }) }));
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { createContext as m, Children as n, isValidElement as d, cloneElement as a } from "react";
3
+ import { View as l } from "react-native";
4
+ const p = m({
5
+ Header: void 0
6
+ }), x = ({
7
+ children: r,
8
+ headingComponent: i
9
+ }) => {
10
+ const c = n.count(r);
11
+ return /* @__PURE__ */ t(p.Provider, { value: { Header: i }, children: /* @__PURE__ */ t(l, { children: n.map(
12
+ r,
13
+ (o, e) => d(o) ? a(o, {
14
+ first: e === 0,
15
+ last: e === c - 1
16
+ }) : o
17
+ ) }) });
18
+ };
19
+ export {
20
+ x as AccordionGroup,
21
+ p as AccordionGroupContext
21
22
  };
22
- exports.AccordionGroup = AccordionGroup;
@@ -1,62 +1,61 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
1
+ import { jsx as o, jsxs as i } from "react/jsx-runtime";
2
+ import { useContext as f } from "react";
3
+ import r, { useAnimatedStyle as s, interpolateColor as h, useAnimatedProps as a } from "react-native-reanimated";
4
+ import { Path as A, Svg as V } from "react-native-svg";
5
+ import { T as v } from "../../styled.native-KEscfVp7.js";
6
+ const c = 105, n = r.createAnimatedComponent(A);
7
+ function g({
8
+ animationTiming: e
9
+ }) {
10
+ const { core: d, semantic: t } = f(v), l = s(() => ({
11
+ backgroundColor: h(
12
+ e.value,
13
+ [0, 1],
14
+ [t.surface.cutout, t.message.branded]
15
+ ),
16
+ height: 36 - e.value * 4,
17
+ margin: 2 * e.value,
18
+ transform: [{ rotateZ: e.value * -c + "deg" }]
19
+ })), u = s(() => ({
20
+ transform: [{ rotateZ: e.value * c + "deg" }]
21
+ })), m = a(() => ({
22
+ opacity: 1 - e.value
23
+ })), p = a(() => ({
24
+ opacity: e.value
25
+ }));
26
+ return /* @__PURE__ */ o(
27
+ r.View,
28
+ {
29
+ style: [
30
+ {
31
+ backgroundColor: t.surface.cutout,
32
+ aspectRatio: 1,
33
+ alignItems: "center",
34
+ justifyContent: "center"
35
+ },
36
+ l
37
+ ],
38
+ children: /* @__PURE__ */ o(r.View, { style: u, children: /* @__PURE__ */ i(V, { width: "16", height: "16", viewBox: "0 0 16 16", children: [
39
+ /* @__PURE__ */ o(
40
+ n,
41
+ {
42
+ animatedProps: m,
43
+ d: "M9 9H16V6.99H9V0H6.99V7H0V9.01H7V16.01H9.01V9.01L9 9Z",
44
+ fill: t.message.secondary
45
+ }
46
+ ),
47
+ /* @__PURE__ */ o(
48
+ n,
49
+ {
50
+ animatedProps: p,
51
+ d: "M16.3826 9.66663V7.66663H0.462646V9.66663H16.3826Z",
52
+ fill: d.color.brand.white
53
+ }
54
+ )
55
+ ] }) })
7
56
  }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.AccordionIcon = void 0;
27
- var jsx_runtime_1 = require("react/jsx-runtime");
28
- var react_1 = require("react");
29
- var react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
30
- var react_native_svg_1 = require("react-native-svg");
31
- var styled_native_1 = require("../../styled.native");
32
- var OVO_LOGO_ANGLE = 105;
33
- var AnimatedPath = react_native_reanimated_1.default.createAnimatedComponent(react_native_svg_1.Path);
34
- function AccordionIcon(_a) {
35
- var animationTiming = _a.animationTiming;
36
- var _b = (0, react_1.useContext)(styled_native_1.ThemeContext), core = _b.core, semantic = _b.semantic;
37
- var outerAnimatedStyles = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
38
- backgroundColor: (0, react_native_reanimated_1.interpolateColor)(animationTiming.value, [0, 1], [semantic.surface.cutout, semantic.message.branded]),
39
- height: 36 - animationTiming.value * 4,
40
- margin: 2 * animationTiming.value,
41
- transform: [{ rotateZ: animationTiming.value * -OVO_LOGO_ANGLE + 'deg' }],
42
- }); }, [animationTiming]);
43
- var innerAnimatedStyles = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
44
- transform: [{ rotateZ: animationTiming.value * OVO_LOGO_ANGLE + 'deg' }],
45
- }); }, [animationTiming]);
46
- var plusAnimatedProps = (0, react_native_reanimated_1.useAnimatedProps)(function () { return ({
47
- opacity: 1 - animationTiming.value,
48
- }); }, [animationTiming]);
49
- var minusAnimatedProps = (0, react_native_reanimated_1.useAnimatedProps)(function () { return ({
50
- opacity: animationTiming.value,
51
- }); }, [animationTiming]);
52
- return ((0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { style: [
53
- {
54
- backgroundColor: semantic.surface.cutout,
55
- aspectRatio: 1,
56
- alignItems: 'center',
57
- justifyContent: 'center',
58
- },
59
- outerAnimatedStyles,
60
- ], children: (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { style: innerAnimatedStyles, children: (0, jsx_runtime_1.jsxs)(react_native_svg_1.Svg, { width: "16", height: "16", viewBox: "0 0 16 16", children: [(0, jsx_runtime_1.jsx)(AnimatedPath, { animatedProps: plusAnimatedProps, d: "M9 9H16V6.99H9V0H6.99V7H0V9.01H7V16.01H9.01V9.01L9 9Z", fill: semantic.message.secondary }), (0, jsx_runtime_1.jsx)(AnimatedPath, { animatedProps: minusAnimatedProps, d: "M16.3826 9.66663V7.66663H0.462646V9.66663H16.3826Z", fill: core.color.brand.white })] }) }) }));
57
+ );
61
58
  }
62
- exports.AccordionIcon = AccordionIcon;
59
+ export {
60
+ g as AccordionIcon
61
+ };
@@ -1,4 +1,4 @@
1
1
  export { Accordion } from './Accordion';
2
2
  export { AccordionGroup } from './Group';
3
3
  export { AccordionIcon } from './Icon';
4
- export { AccordionProps } from './types';
4
+ export { type AccordionProps } from './types';
@@ -1,9 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccordionIcon = exports.AccordionGroup = exports.Accordion = void 0;
4
- var Accordion_1 = require("./Accordion");
5
- Object.defineProperty(exports, "Accordion", { enumerable: true, get: function () { return Accordion_1.Accordion; } });
6
- var Group_1 = require("./Group");
7
- Object.defineProperty(exports, "AccordionGroup", { enumerable: true, get: function () { return Group_1.AccordionGroup; } });
8
- var Icon_1 = require("./Icon");
9
- Object.defineProperty(exports, "AccordionIcon", { enumerable: true, get: function () { return Icon_1.AccordionIcon; } });
1
+ import { Accordion as u } from "./Accordion.js";
2
+ import { AccordionGroup as I } from "./Group.js";
3
+ import { AccordionIcon as b } from "./Icon.js";
4
+ import "react/jsx-runtime";
5
+ import "react";
6
+ import "react-native-reanimated";
7
+ import "../../hooks/use-layout.js";
8
+ import "../../styled.native-KEscfVp7.js";
9
+ import "../Heading4/Heading4.js";
10
+ import "../../utils-HsZygzDh.js";
11
+ import "../../hooks/use-breakpoint.js";
12
+ import "react-native";
13
+ import "./styles.js";
14
+ import "react-native-svg";
15
+ export {
16
+ u as Accordion,
17
+ I as AccordionGroup,
18
+ b as AccordionIcon
19
+ };
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- export declare const StyledAccordion: import("styled-components").StyledComponent<import("react").ComponentClass<import("react-native-reanimated").AnimateProps<import("react-native").ViewProps>, any>, {
1
+ import Animated from 'react-native-reanimated';
2
+ export declare const StyledAccordion: import("styled-components").StyledComponent<typeof Animated.View, {
3
3
  core: {
4
4
  color: {
5
5
  brand: {
@@ -358,8 +358,6 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
358
358
  surfaceFocused: string;
359
359
  outlineFocused: string;
360
360
  backgroundFocused: string;
361
- messageInverted: string;
362
- surfaceInverted: string;
363
361
  };
364
362
  secondary: {
365
363
  message: string;
@@ -370,8 +368,6 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
370
368
  surfaceFocused: string;
371
369
  outlineFocused: string;
372
370
  backgroundFocused: string;
373
- messageInverted: string;
374
- surfaceInverted: string;
375
371
  };
376
372
  destructive: {
377
373
  message: string;
@@ -382,8 +378,6 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
382
378
  surfaceFocused: string;
383
379
  outlineFocused: string;
384
380
  backgroundFocused: string;
385
- messageInverted: string;
386
- surfaceInverted: string;
387
381
  };
388
382
  };
389
383
  heading1: {
@@ -847,8 +841,6 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
847
841
  surfaceFocused: string;
848
842
  outlineFocused: string;
849
843
  backgroundFocused: string;
850
- messageInverted: string;
851
- surfaceInverted: string;
852
844
  };
853
845
  secondary: {
854
846
  message: string;
@@ -859,8 +851,6 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
859
851
  surfaceFocused: string;
860
852
  outlineFocused: string;
861
853
  backgroundFocused: string;
862
- messageInverted: string;
863
- surfaceInverted: string;
864
854
  };
865
855
  destructive: {
866
856
  message: string;
@@ -871,8 +861,6 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
871
861
  surfaceFocused: string;
872
862
  outlineFocused: string;
873
863
  backgroundFocused: string;
874
- messageInverted: string;
875
- surfaceInverted: string;
876
864
  };
877
865
  };
878
866
  heading1: {
@@ -1332,8 +1320,6 @@ export declare const StyledContainer: import("styled-components").StyledComponen
1332
1320
  surfaceFocused: string;
1333
1321
  outlineFocused: string;
1334
1322
  backgroundFocused: string;
1335
- messageInverted: string;
1336
- surfaceInverted: string;
1337
1323
  };
1338
1324
  secondary: {
1339
1325
  message: string;
@@ -1344,8 +1330,6 @@ export declare const StyledContainer: import("styled-components").StyledComponen
1344
1330
  surfaceFocused: string;
1345
1331
  outlineFocused: string;
1346
1332
  backgroundFocused: string;
1347
- messageInverted: string;
1348
- surfaceInverted: string;
1349
1333
  };
1350
1334
  destructive: {
1351
1335
  message: string;
@@ -1356,8 +1340,6 @@ export declare const StyledContainer: import("styled-components").StyledComponen
1356
1340
  surfaceFocused: string;
1357
1341
  outlineFocused: string;
1358
1342
  backgroundFocused: string;
1359
- messageInverted: string;
1360
- surfaceInverted: string;
1361
1343
  };
1362
1344
  };
1363
1345
  heading1: {
@@ -1,60 +1,51 @@
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;
1
+ import { n as o } from "../../utils-HsZygzDh.js";
2
+ import n from "react-native-reanimated";
3
+ import { s as i, c as a } from "../../styled.native-KEscfVp7.js";
4
+ import "react";
5
+ const g = i(n.View)(
6
+ ({ theme: { semantic: t, core: d }, first: r, last: e, isExpanded: s }) => a`
7
+ width: 100%;
8
+ border-width: ${o(d.borderWidth.small)};
9
+ border-color: ${t.border.differentiated};
10
+ border-bottom-width: 0;
11
+ background-color: ${s ? d.color.brand.white : "transparent"};
12
+ transition: background-color ${d.transition.fast};
13
+
14
+ ${r ? {
15
+ borderTopLeftRadius: d.radius.small,
16
+ borderTopRightRadius: d.radius.small
17
+ } : null}
18
+
19
+ ${e ? {
20
+ borderBottomLeftRadius: d.radius.small,
21
+ borderBottomRightRadius: d.radius.small,
22
+ borderBottomWidth: d.borderWidth.small
23
+ } : null}
24
+ `
25
+ ), h = i.TouchableOpacity(
26
+ ({ theme: { core: t } }) => a`
27
+ padding-top: ${o(t.space[5])};
28
+ padding-left: ${o(t.space[3])};
29
+ padding-right: 18px;
30
+ padding-bottom: 18px;
31
+ flex-direction: row;
32
+ align-items: flex-start;
33
+ justify-content: space-between;
34
+ `
35
+ ), u = i.View(
36
+ ({ theme: { core: t } }) => a`
37
+ position: absolute;
38
+ top: 0;
39
+ left: 0;
40
+ right: 0;
41
+ padding-top: 0;
42
+ padding-right: ${o(t.space[12])};
43
+ padding-bottom: ${o(t.space[6])};
44
+ padding-left: ${o(t.space[3])};
45
+ `
46
+ );
47
+ export {
48
+ g as StyledAccordion,
49
+ h as StyledAccordionHeader,
50
+ u as StyledContainer
5
51
  };
6
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
- if (k2 === undefined) k2 = k;
8
- var desc = Object.getOwnPropertyDescriptor(m, k);
9
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
- desc = { enumerable: true, get: function() { return m[k]; } };
11
- }
12
- Object.defineProperty(o, k2, desc);
13
- }) : (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- o[k2] = m[k];
16
- }));
17
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
- Object.defineProperty(o, "default", { enumerable: true, value: v });
19
- }) : function(o, v) {
20
- o["default"] = v;
21
- });
22
- var __importStar = (this && this.__importStar) || function (mod) {
23
- if (mod && mod.__esModule) return mod;
24
- var result = {};
25
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
26
- __setModuleDefault(result, mod);
27
- return result;
28
- };
29
- var __importDefault = (this && this.__importDefault) || function (mod) {
30
- return (mod && mod.__esModule) ? mod : { "default": mod };
31
- };
32
- Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.StyledContainer = exports.StyledAccordionHeader = exports.StyledAccordion = void 0;
34
- var element_core_1 = require("@ovotech/element-core");
35
- var react_native_reanimated_1 = __importDefault(require("react-native-reanimated"));
36
- var styled_native_1 = __importStar(require("../../styled.native"));
37
- exports.StyledAccordion = (0, styled_native_1.default)(react_native_reanimated_1.default.View)(function (_a) {
38
- var _b = _a.theme, semantic = _b.semantic, core = _b.core, first = _a.first, last = _a.last, isExpanded = _a.isExpanded;
39
- return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n border-width: ", ";\n border-color: ", ";\n border-bottom-width: 0;\n background-color: ", ";\n transition: background-color ", ";\n\n ", "\n\n ", "\n "], ["\n width: 100%;\n border-width: ", ";\n border-color: ", ";\n border-bottom-width: 0;\n background-color: ", ";\n transition: background-color ", ";\n\n ", "\n\n ", "\n "])), (0, element_core_1.numToPx)(core.borderWidth.small), semantic.border.differentiated, isExpanded ? core.color.brand.white : 'transparent', core.transition.fast, first
40
- ? {
41
- borderTopLeftRadius: core.radius.small,
42
- borderTopRightRadius: core.radius.small,
43
- }
44
- : null, last
45
- ? {
46
- borderBottomLeftRadius: core.radius.small,
47
- borderBottomRightRadius: core.radius.small,
48
- borderBottomWidth: core.borderWidth.small,
49
- }
50
- : null);
51
- });
52
- exports.StyledAccordionHeader = styled_native_1.default.TouchableOpacity(function (_a) {
53
- var core = _a.theme.core;
54
- return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-top: ", ";\n padding-left: ", ";\n padding-right: 18px;\n padding-bottom: 18px;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n "], ["\n padding-top: ", ";\n padding-left: ", ";\n padding-right: 18px;\n padding-bottom: 18px;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n "])), (0, element_core_1.numToPx)(core.space[5]), (0, element_core_1.numToPx)(core.space[3]));
55
- });
56
- exports.StyledContainer = styled_native_1.default.View(function (_a) {
57
- var core = _a.theme.core;
58
- return (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-top: 0;\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n "], ["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-top: 0;\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n "])), (0, element_core_1.numToPx)(core.space[12]), (0, element_core_1.numToPx)(core.space[6]), (0, element_core_1.numToPx)(core.space[3]));
59
- });
60
- var templateObject_1, templateObject_2, templateObject_3;