@wireapp/react-ui-kit 7.55.2 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +11 -12
  3. package/src/Form/Button.d.ts +2 -3
  4. package/src/Form/Button.js +3 -3
  5. package/src/Form/Button.js.map +1 -1
  6. package/src/Form/ButtonLink.d.ts +2 -3
  7. package/src/Form/ButtonLink.js +3 -3
  8. package/src/Form/ButtonLink.js.map +1 -1
  9. package/src/Form/Checkbox.d.ts +3 -1
  10. package/src/Form/Checkbox.js +13 -13
  11. package/src/Form/Checkbox.js.map +1 -1
  12. package/src/Form/CodeInput.d.ts +3 -2
  13. package/src/Form/CodeInput.js +14 -14
  14. package/src/Form/CodeInput.js.map +1 -1
  15. package/src/Form/ErrorMessage.d.ts +2 -3
  16. package/src/Form/ErrorMessage.js +4 -4
  17. package/src/Form/ErrorMessage.js.map +1 -1
  18. package/src/Form/Form.d.ts +3 -1
  19. package/src/Form/Form.js +8 -8
  20. package/src/Form/Form.js.map +1 -1
  21. package/src/Form/Input.d.ts +1 -1
  22. package/src/Form/Input.js +4 -4
  23. package/src/Form/Input.js.map +1 -1
  24. package/src/Form/InputBlock.d.ts +2 -1
  25. package/src/Form/InputBlock.js +2 -2
  26. package/src/Form/InputBlock.js.map +1 -1
  27. package/src/Form/InputSubmitCombo.d.ts +3 -2
  28. package/src/Form/InputSubmitCombo.js +2 -2
  29. package/src/Form/InputSubmitCombo.js.map +1 -1
  30. package/src/Form/RoundIconButton.d.ts +2 -2
  31. package/src/Form/RoundIconButton.js +3 -3
  32. package/src/Form/RoundIconButton.js.map +1 -1
  33. package/src/Form/Select.d.ts +2 -3
  34. package/src/Form/Select.js +2 -2
  35. package/src/Form/Select.js.map +1 -1
  36. package/src/Form/ShakeBox.d.ts +1 -1
  37. package/src/Form/ShakeBox.js +9 -11
  38. package/src/Form/ShakeBox.js.map +1 -1
  39. package/src/Form/Switch.d.ts +3 -2
  40. package/src/Form/Switch.js +24 -26
  41. package/src/Form/Switch.js.map +1 -1
  42. package/src/Form/TextArea.d.ts +1 -1
  43. package/src/Form/TextArea.js +4 -4
  44. package/src/Form/TextArea.js.map +1 -1
  45. package/src/Form/Tooltip.d.ts +3 -1
  46. package/src/Form/Tooltip.js +3 -3
  47. package/src/Form/Tooltip.js.map +1 -1
  48. package/src/GlobalStyle.d.ts +6 -1
  49. package/src/GlobalStyle.js +4 -6
  50. package/src/GlobalStyle.js.map +1 -1
  51. package/src/Icon/AddPeopleIcon.d.ts +3 -2
  52. package/src/Icon/AddPeopleIcon.js +3 -3
  53. package/src/Icon/AddPeopleIcon.js.map +1 -1
  54. package/src/Icon/ArchiveIcon.d.ts +3 -2
  55. package/src/Icon/ArchiveIcon.js +3 -3
  56. package/src/Icon/ArchiveIcon.js.map +1 -1
  57. package/src/Icon/ArrowIcon.d.ts +3 -2
  58. package/src/Icon/ArrowIcon.js +3 -3
  59. package/src/Icon/ArrowIcon.js.map +1 -1
  60. package/src/Icon/AttachmentIcon.d.ts +3 -2
  61. package/src/Icon/AttachmentIcon.js +3 -3
  62. package/src/Icon/AttachmentIcon.js.map +1 -1
  63. package/src/Icon/AudioVideoIcon.d.ts +3 -2
  64. package/src/Icon/AudioVideoIcon.js +3 -3
  65. package/src/Icon/AudioVideoIcon.js.map +1 -1
  66. package/src/Icon/BlockIcon.d.ts +3 -2
  67. package/src/Icon/BlockIcon.js +3 -3
  68. package/src/Icon/BlockIcon.js.map +1 -1
  69. package/src/Icon/Brand/AndroidIcon.d.ts +3 -2
  70. package/src/Icon/Brand/AndroidIcon.js +3 -3
  71. package/src/Icon/Brand/AndroidIcon.js.map +1 -1
  72. package/src/Icon/Brand/AppleIcon.d.ts +3 -2
  73. package/src/Icon/Brand/AppleIcon.js +3 -3
  74. package/src/Icon/Brand/AppleIcon.js.map +1 -1
  75. package/src/Icon/Brand/ChromeIcon.d.ts +3 -2
  76. package/src/Icon/Brand/ChromeIcon.js +3 -3
  77. package/src/Icon/Brand/ChromeIcon.js.map +1 -1
  78. package/src/Icon/Brand/FacebookIcon.d.ts +3 -2
  79. package/src/Icon/Brand/FacebookIcon.js +3 -3
  80. package/src/Icon/Brand/FacebookIcon.js.map +1 -1
  81. package/src/Icon/Brand/GitHubIcon.d.ts +3 -2
  82. package/src/Icon/Brand/GitHubIcon.js +3 -3
  83. package/src/Icon/Brand/GitHubIcon.js.map +1 -1
  84. package/src/Icon/Brand/LinkedInIcon.d.ts +3 -2
  85. package/src/Icon/Brand/LinkedInIcon.js +3 -3
  86. package/src/Icon/Brand/LinkedInIcon.js.map +1 -1
  87. package/src/Icon/Brand/LinuxIcon.d.ts +3 -2
  88. package/src/Icon/Brand/LinuxIcon.js +3 -3
  89. package/src/Icon/Brand/LinuxIcon.js.map +1 -1
  90. package/src/Icon/Brand/MicrosoftIcon.d.ts +3 -2
  91. package/src/Icon/Brand/MicrosoftIcon.js +3 -3
  92. package/src/Icon/Brand/MicrosoftIcon.js.map +1 -1
  93. package/src/Icon/Brand/TwitterIcon.d.ts +3 -2
  94. package/src/Icon/Brand/TwitterIcon.js +3 -3
  95. package/src/Icon/Brand/TwitterIcon.js.map +1 -1
  96. package/src/Icon/CallIcon.d.ts +3 -2
  97. package/src/Icon/CallIcon.js +3 -3
  98. package/src/Icon/CallIcon.js.map +1 -1
  99. package/src/Icon/CamIcon.d.ts +3 -2
  100. package/src/Icon/CamIcon.js +3 -3
  101. package/src/Icon/CamIcon.js.map +1 -1
  102. package/src/Icon/CameraIcon.d.ts +3 -2
  103. package/src/Icon/CameraIcon.js +3 -3
  104. package/src/Icon/CameraIcon.js.map +1 -1
  105. package/src/Icon/CheckIcon.d.ts +3 -2
  106. package/src/Icon/CheckIcon.js +3 -3
  107. package/src/Icon/CheckIcon.js.map +1 -1
  108. package/src/Icon/CheckRoundIcon.d.ts +3 -2
  109. package/src/Icon/CheckRoundIcon.js +3 -3
  110. package/src/Icon/CheckRoundIcon.js.map +1 -1
  111. package/src/Icon/ChevronIcon.d.ts +3 -2
  112. package/src/Icon/ChevronIcon.js +3 -3
  113. package/src/Icon/ChevronIcon.js.map +1 -1
  114. package/src/Icon/CloseIcon.d.ts +3 -2
  115. package/src/Icon/CloseIcon.js +3 -3
  116. package/src/Icon/CloseIcon.js.map +1 -1
  117. package/src/Icon/CopyIcon.d.ts +3 -2
  118. package/src/Icon/CopyIcon.js +3 -3
  119. package/src/Icon/CopyIcon.js.map +1 -1
  120. package/src/Icon/DeviceIcon.d.ts +3 -2
  121. package/src/Icon/DeviceIcon.js +3 -3
  122. package/src/Icon/DeviceIcon.js.map +1 -1
  123. package/src/Icon/DownloadIcon.d.ts +3 -2
  124. package/src/Icon/DownloadIcon.js +3 -3
  125. package/src/Icon/DownloadIcon.js.map +1 -1
  126. package/src/Icon/EditDocumentIcon.d.ts +3 -2
  127. package/src/Icon/EditDocumentIcon.js +3 -3
  128. package/src/Icon/EditDocumentIcon.js.map +1 -1
  129. package/src/Icon/EditIcon.d.ts +3 -2
  130. package/src/Icon/EditIcon.js +3 -3
  131. package/src/Icon/EditIcon.js.map +1 -1
  132. package/src/Icon/EnterIcon.d.ts +3 -2
  133. package/src/Icon/EnterIcon.js +3 -3
  134. package/src/Icon/EnterIcon.js.map +1 -1
  135. package/src/Icon/ErrorIcon.d.ts +3 -2
  136. package/src/Icon/ErrorIcon.js +6 -6
  137. package/src/Icon/ErrorIcon.js.map +1 -1
  138. package/src/Icon/FileIcon.d.ts +3 -2
  139. package/src/Icon/FileIcon.js +3 -3
  140. package/src/Icon/FileIcon.js.map +1 -1
  141. package/src/Icon/GifIcon.d.ts +3 -2
  142. package/src/Icon/GifIcon.js +3 -3
  143. package/src/Icon/GifIcon.js.map +1 -1
  144. package/src/Icon/GridIcon.d.ts +3 -2
  145. package/src/Icon/GridIcon.js +3 -3
  146. package/src/Icon/GridIcon.js.map +1 -1
  147. package/src/Icon/GroupIcon.d.ts +3 -2
  148. package/src/Icon/GroupIcon.js +3 -3
  149. package/src/Icon/GroupIcon.js.map +1 -1
  150. package/src/Icon/HangupIcon.d.ts +3 -2
  151. package/src/Icon/HangupIcon.js +3 -3
  152. package/src/Icon/HangupIcon.js.map +1 -1
  153. package/src/Icon/HideIcon.d.ts +3 -2
  154. package/src/Icon/HideIcon.js +3 -3
  155. package/src/Icon/HideIcon.js.map +1 -1
  156. package/src/Icon/ImageIcon.d.ts +3 -2
  157. package/src/Icon/ImageIcon.js +3 -3
  158. package/src/Icon/ImageIcon.js.map +1 -1
  159. package/src/Icon/InfoIcon.d.ts +3 -2
  160. package/src/Icon/InfoIcon.js +3 -3
  161. package/src/Icon/InfoIcon.js.map +1 -1
  162. package/src/Icon/InviteIcon.d.ts +3 -2
  163. package/src/Icon/InviteIcon.js +3 -3
  164. package/src/Icon/InviteIcon.js.map +1 -1
  165. package/src/Icon/LeaveIcon.d.ts +3 -2
  166. package/src/Icon/LeaveIcon.js +3 -3
  167. package/src/Icon/LeaveIcon.js.map +1 -1
  168. package/src/Icon/LinkIcon.d.ts +3 -2
  169. package/src/Icon/LinkIcon.js +3 -3
  170. package/src/Icon/LinkIcon.js.map +1 -1
  171. package/src/Icon/ListIcon.d.ts +3 -2
  172. package/src/Icon/ListIcon.js +3 -3
  173. package/src/Icon/ListIcon.js.map +1 -1
  174. package/src/Icon/LockIcon.d.ts +3 -2
  175. package/src/Icon/LockIcon.js +3 -3
  176. package/src/Icon/LockIcon.js.map +1 -1
  177. package/src/Icon/MessageIcon.d.ts +3 -2
  178. package/src/Icon/MessageIcon.js +3 -3
  179. package/src/Icon/MessageIcon.js.map +1 -1
  180. package/src/Icon/MinusIcon.d.ts +3 -2
  181. package/src/Icon/MinusIcon.js +3 -3
  182. package/src/Icon/MinusIcon.js.map +1 -1
  183. package/src/Icon/MoreIcon.d.ts +3 -2
  184. package/src/Icon/MoreIcon.js +3 -3
  185. package/src/Icon/MoreIcon.js.map +1 -1
  186. package/src/Icon/MuteIcon.d.ts +3 -2
  187. package/src/Icon/MuteIcon.js +3 -3
  188. package/src/Icon/MuteIcon.js.map +1 -1
  189. package/src/Icon/NotificationIcon.d.ts +3 -2
  190. package/src/Icon/NotificationIcon.js +3 -3
  191. package/src/Icon/NotificationIcon.js.map +1 -1
  192. package/src/Icon/NotificationOffIcon.d.ts +3 -2
  193. package/src/Icon/NotificationOffIcon.js +3 -3
  194. package/src/Icon/NotificationOffIcon.js.map +1 -1
  195. package/src/Icon/OptionsIcon.d.ts +3 -2
  196. package/src/Icon/OptionsIcon.js +3 -3
  197. package/src/Icon/OptionsIcon.js.map +1 -1
  198. package/src/Icon/PeopleIcon.d.ts +3 -2
  199. package/src/Icon/PeopleIcon.js +3 -3
  200. package/src/Icon/PeopleIcon.js.map +1 -1
  201. package/src/Icon/PingIcon.d.ts +3 -2
  202. package/src/Icon/PingIcon.js +3 -3
  203. package/src/Icon/PingIcon.js.map +1 -1
  204. package/src/Icon/PlaneIcon.d.ts +3 -2
  205. package/src/Icon/PlaneIcon.js +3 -3
  206. package/src/Icon/PlaneIcon.js.map +1 -1
  207. package/src/Icon/PlusIcon.d.ts +3 -2
  208. package/src/Icon/PlusIcon.js +3 -3
  209. package/src/Icon/PlusIcon.js.map +1 -1
  210. package/src/Icon/ProfileIcon.d.ts +3 -2
  211. package/src/Icon/ProfileIcon.js +3 -3
  212. package/src/Icon/ProfileIcon.js.map +1 -1
  213. package/src/Icon/RecordBoldIcon.d.ts +3 -2
  214. package/src/Icon/RecordBoldIcon.js +9 -11
  215. package/src/Icon/RecordBoldIcon.js.map +1 -1
  216. package/src/Icon/RecordIcon.d.ts +3 -2
  217. package/src/Icon/RecordIcon.js +5 -5
  218. package/src/Icon/RecordIcon.js.map +1 -1
  219. package/src/Icon/RecordPendingIcon.d.ts +3 -2
  220. package/src/Icon/RecordPendingIcon.js +5 -5
  221. package/src/Icon/RecordPendingIcon.js.map +1 -1
  222. package/src/Icon/ReloadIcon.d.ts +3 -2
  223. package/src/Icon/ReloadIcon.js +3 -3
  224. package/src/Icon/ReloadIcon.js.map +1 -1
  225. package/src/Icon/SVGIcon.d.ts +3 -1
  226. package/src/Icon/SVGIcon.js +8 -8
  227. package/src/Icon/SVGIcon.js.map +1 -1
  228. package/src/Icon/ScreenshareIcon.d.ts +3 -2
  229. package/src/Icon/ScreenshareIcon.js +3 -3
  230. package/src/Icon/ScreenshareIcon.js.map +1 -1
  231. package/src/Icon/SearchIcon.d.ts +3 -2
  232. package/src/Icon/SearchIcon.js +3 -3
  233. package/src/Icon/SearchIcon.js.map +1 -1
  234. package/src/Icon/ServicesIcon.d.ts +3 -2
  235. package/src/Icon/ServicesIcon.js +3 -3
  236. package/src/Icon/ServicesIcon.js.map +1 -1
  237. package/src/Icon/SettingsIcon.d.ts +3 -2
  238. package/src/Icon/SettingsIcon.js +3 -3
  239. package/src/Icon/SettingsIcon.js.map +1 -1
  240. package/src/Icon/ShowIcon.d.ts +3 -2
  241. package/src/Icon/ShowIcon.js +3 -3
  242. package/src/Icon/ShowIcon.js.map +1 -1
  243. package/src/Icon/SignIcon.d.ts +3 -2
  244. package/src/Icon/SignIcon.js +3 -3
  245. package/src/Icon/SignIcon.js.map +1 -1
  246. package/src/Icon/SpeakerIcon.d.ts +3 -2
  247. package/src/Icon/SpeakerIcon.js +3 -3
  248. package/src/Icon/SpeakerIcon.js.map +1 -1
  249. package/src/Icon/SupportIcon.d.ts +3 -2
  250. package/src/Icon/SupportIcon.js +3 -3
  251. package/src/Icon/SupportIcon.js.map +1 -1
  252. package/src/Icon/TeamIcon.d.ts +3 -2
  253. package/src/Icon/TeamIcon.js +3 -3
  254. package/src/Icon/TeamIcon.js.map +1 -1
  255. package/src/Icon/TimedIcon.d.ts +3 -2
  256. package/src/Icon/TimedIcon.js +3 -3
  257. package/src/Icon/TimedIcon.js.map +1 -1
  258. package/src/Icon/TrashCrossIcon.d.ts +3 -2
  259. package/src/Icon/TrashCrossIcon.js +3 -3
  260. package/src/Icon/TrashCrossIcon.js.map +1 -1
  261. package/src/Icon/TrashIcon.d.ts +3 -2
  262. package/src/Icon/TrashIcon.js +3 -3
  263. package/src/Icon/TrashIcon.js.map +1 -1
  264. package/src/Icon/TriangleIcon.d.ts +3 -2
  265. package/src/Icon/TriangleIcon.js +3 -3
  266. package/src/Icon/TriangleIcon.js.map +1 -1
  267. package/src/Icon/WireIcon.d.ts +3 -2
  268. package/src/Icon/WireIcon.js +3 -3
  269. package/src/Icon/WireIcon.js.map +1 -1
  270. package/src/Identity/Animation.d.ts +2 -2
  271. package/src/Identity/Animation.js +14 -14
  272. package/src/Identity/Animation.js.map +1 -1
  273. package/src/Identity/Avatar.d.ts +3 -2
  274. package/src/Identity/Avatar.js +8 -10
  275. package/src/Identity/Avatar.js.map +1 -1
  276. package/src/Identity/AvatarGrid.d.ts +3 -1
  277. package/src/Identity/AvatarGrid.js +7 -9
  278. package/src/Identity/AvatarGrid.js.map +1 -1
  279. package/src/Identity/Logo.d.ts +3 -2
  280. package/src/Identity/Logo.js +3 -3
  281. package/src/Identity/Logo.js.map +1 -1
  282. package/src/Identity/colors.md +1 -1
  283. package/src/Identity/motions.js +6 -6
  284. package/src/Identity/motions.js.map +1 -1
  285. package/src/Layout/Box.d.ts +2 -2
  286. package/src/Layout/Box.js +3 -3
  287. package/src/Layout/Box.js.map +1 -1
  288. package/src/Layout/Column.d.ts +3 -2
  289. package/src/Layout/Column.js +3 -3
  290. package/src/Layout/Column.js.map +1 -1
  291. package/src/Layout/Container.d.ts +5 -5
  292. package/src/Layout/Container.js +14 -14
  293. package/src/Layout/Container.js.map +1 -1
  294. package/src/Layout/Content.d.ts +2 -2
  295. package/src/Layout/Content.js +2 -2
  296. package/src/Layout/Content.js.map +1 -1
  297. package/src/Layout/FlexBox.d.ts +1 -1
  298. package/src/Layout/FlexBox.js +4 -4
  299. package/src/Layout/FlexBox.js.map +1 -1
  300. package/src/Layout/Footer.d.ts +3 -1
  301. package/src/Layout/Footer.js +3 -3
  302. package/src/Layout/Footer.js.map +1 -1
  303. package/src/Layout/Header.d.ts +2 -2
  304. package/src/Layout/Header.js +3 -3
  305. package/src/Layout/Header.js.map +1 -1
  306. package/src/Layout/MatchMedia.d.ts +10 -8
  307. package/src/Layout/MatchMedia.js +13 -13
  308. package/src/Layout/MatchMedia.js.map +1 -1
  309. package/src/Layout/Spacer.d.ts +1 -1
  310. package/src/Layout/Spacer.js +3 -3
  311. package/src/Layout/Spacer.js.map +1 -1
  312. package/src/Layout/StyledApp.d.ts +2 -1
  313. package/src/Layout/StyledApp.js +4 -4
  314. package/src/Layout/StyledApp.js.map +1 -1
  315. package/src/Layout/Theme.d.ts +3 -1
  316. package/src/Layout/Theme.js +3 -5
  317. package/src/Layout/Theme.js.map +1 -1
  318. package/src/Layout/headerMenu/HeaderMenu.d.ts +3 -1
  319. package/src/Layout/headerMenu/HeaderMenu.js +25 -25
  320. package/src/Layout/headerMenu/HeaderMenu.js.map +1 -1
  321. package/src/Layout/headerMenu/HeaderSubMenu.d.ts +4 -2
  322. package/src/Layout/headerMenu/HeaderSubMenu.js +10 -10
  323. package/src/Layout/headerMenu/HeaderSubMenu.js.map +1 -1
  324. package/src/Layout/headerMenu/MenuContent.d.ts +2 -3
  325. package/src/Layout/headerMenu/MenuContent.js +2 -2
  326. package/src/Layout/headerMenu/MenuContent.js.map +1 -1
  327. package/src/Layout/headerMenu/MenuItems.d.ts +2 -2
  328. package/src/Layout/headerMenu/MenuItems.js +2 -2
  329. package/src/Layout/headerMenu/MenuItems.js.map +1 -1
  330. package/src/Layout/headerMenu/MenuLink.d.ts +2 -3
  331. package/src/Layout/headerMenu/MenuLink.js +2 -2
  332. package/src/Layout/headerMenu/MenuLink.js.map +1 -1
  333. package/src/Layout/headerMenu/MenuOpenButton.d.ts +2 -2
  334. package/src/Layout/headerMenu/MenuOpenButton.js +4 -4
  335. package/src/Layout/headerMenu/MenuOpenButton.js.map +1 -1
  336. package/src/Layout/headerMenu/MenuScrollableItems.d.ts +2 -2
  337. package/src/Layout/headerMenu/MenuScrollableItems.js +3 -3
  338. package/src/Layout/headerMenu/MenuScrollableItems.js.map +1 -1
  339. package/src/Layout/headerMenu/MenuSubLink.d.ts +2 -3
  340. package/src/Layout/headerMenu/MenuSubLink.js +2 -2
  341. package/src/Layout/headerMenu/MenuSubLink.js.map +1 -1
  342. package/src/Menu/MenuModal.d.ts +4 -2
  343. package/src/Menu/MenuModal.js +10 -12
  344. package/src/Menu/MenuModal.js.map +1 -1
  345. package/src/Menu/TabBar.d.ts +4 -2
  346. package/src/Menu/TabBar.js +4 -4
  347. package/src/Menu/TabBar.js.map +1 -1
  348. package/src/Misc/IsInViewport.d.ts +3 -1
  349. package/src/Misc/IsInViewport.js +5 -5
  350. package/src/Misc/IsInViewport.js.map +1 -1
  351. package/src/Misc/Loading.d.ts +3 -1
  352. package/src/Misc/Loading.js +6 -6
  353. package/src/Misc/Loading.js.map +1 -1
  354. package/src/Misc/Pagination.d.ts +1 -1
  355. package/src/Misc/Pagination.js +27 -27
  356. package/src/Misc/Pagination.js.map +1 -1
  357. package/src/Misc/Pill.d.ts +2 -2
  358. package/src/Misc/Pill.js +4 -4
  359. package/src/Misc/Pill.js.map +1 -1
  360. package/src/Modal/Modal.d.ts +1 -1
  361. package/src/Modal/Modal.js +23 -23
  362. package/src/Modal/Modal.js.map +1 -1
  363. package/src/Modal/Overlay.d.ts +5 -5
  364. package/src/Modal/Overlay.js +9 -11
  365. package/src/Modal/Overlay.js.map +1 -1
  366. package/src/Text/Heading.d.ts +6 -7
  367. package/src/Text/Heading.js +9 -9
  368. package/src/Text/Heading.js.map +1 -1
  369. package/src/Text/Label.d.ts +4 -3
  370. package/src/Text/Label.js +3 -3
  371. package/src/Text/Label.js.map +1 -1
  372. package/src/Text/Line.d.ts +2 -2
  373. package/src/Text/Line.js +3 -3
  374. package/src/Text/Line.js.map +1 -1
  375. package/src/Text/Link.d.ts +2 -3
  376. package/src/Text/Link.js +2 -2
  377. package/src/Text/Link.js.map +1 -1
  378. package/src/Text/Paragraph.d.ts +3 -4
  379. package/src/Text/Paragraph.js +3 -3
  380. package/src/Text/Paragraph.js.map +1 -1
  381. package/src/Text/Text.d.ts +7 -7
  382. package/src/Text/Text.js +14 -14
  383. package/src/Text/Text.js.map +1 -1
  384. package/src/Text/TextLink.d.ts +2 -3
  385. package/src/Text/TextLink.js +2 -2
  386. package/src/Text/TextLink.js.map +1 -1
  387. package/src/Text/Title.d.ts +3 -2
  388. package/src/Text/Title.js +2 -2
  389. package/src/Text/Title.js.map +1 -1
@@ -11,9 +11,9 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
 
12
12
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
13
 
14
- var _core = require("@emotion/core");
14
+ var _react = require("@emotion/react");
15
15
 
16
- var _react = _interopRequireDefault(require("react"));
16
+ var _react2 = _interopRequireDefault(require("react"));
17
17
 
18
18
  var _mediaQueries = require("../mediaQueries");
19
19
 
@@ -72,8 +72,8 @@ var filterContainerProps = function filterContainerProps(props) {
72
72
  return (0, _util.filterProps)(props, ['centerText', 'level', 'verticalCenter']);
73
73
  };
74
74
 
75
- var Container = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
76
- return (0, _core.jsx)("div", (0, _extends2["default"])({
75
+ var Container = /*#__PURE__*/_react2["default"].forwardRef(function (props, ref) {
76
+ return (0, _react.jsx)("div", (0, _extends2["default"])({
77
77
  ref: ref,
78
78
  css: containerStyle(props)
79
79
  }, filterContainerProps(props)));
@@ -81,8 +81,8 @@ var Container = /*#__PURE__*/_react["default"].forwardRef(function (props, ref)
81
81
 
82
82
  exports.Container = Container;
83
83
 
84
- var ContainerLG = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
85
- return (0, _core.jsx)(Container, (0, _extends2["default"])({
84
+ var ContainerLG = /*#__PURE__*/_react2["default"].forwardRef(function (props, ref) {
85
+ return (0, _react.jsx)(Container, (0, _extends2["default"])({
86
86
  ref: ref,
87
87
  level: 'lg'
88
88
  }, props));
@@ -90,8 +90,8 @@ var ContainerLG = /*#__PURE__*/_react["default"].forwardRef(function (props, ref
90
90
 
91
91
  exports.ContainerLG = ContainerLG;
92
92
 
93
- var ContainerMD = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
94
- return (0, _core.jsx)(Container, (0, _extends2["default"])({
93
+ var ContainerMD = /*#__PURE__*/_react2["default"].forwardRef(function (props, ref) {
94
+ return (0, _react.jsx)(Container, (0, _extends2["default"])({
95
95
  ref: ref,
96
96
  level: 'md'
97
97
  }, props));
@@ -99,8 +99,8 @@ var ContainerMD = /*#__PURE__*/_react["default"].forwardRef(function (props, ref
99
99
 
100
100
  exports.ContainerMD = ContainerMD;
101
101
 
102
- var ContainerSM = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
103
- return (0, _core.jsx)(Container, (0, _extends2["default"])({
102
+ var ContainerSM = /*#__PURE__*/_react2["default"].forwardRef(function (props, ref) {
103
+ return (0, _react.jsx)(Container, (0, _extends2["default"])({
104
104
  ref: ref,
105
105
  level: 'sm'
106
106
  }, props));
@@ -108,8 +108,8 @@ var ContainerSM = /*#__PURE__*/_react["default"].forwardRef(function (props, ref
108
108
 
109
109
  exports.ContainerSM = ContainerSM;
110
110
 
111
- var ContainerXS = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
112
- return (0, _core.jsx)(Container, (0, _extends2["default"])({
111
+ var ContainerXS = /*#__PURE__*/_react2["default"].forwardRef(function (props, ref) {
112
+ return (0, _react.jsx)(Container, (0, _extends2["default"])({
113
113
  ref: ref,
114
114
  level: 'xs'
115
115
  }, props));
@@ -117,8 +117,8 @@ var ContainerXS = /*#__PURE__*/_react["default"].forwardRef(function (props, ref
117
117
 
118
118
  exports.ContainerXS = ContainerXS;
119
119
 
120
- var ContainerXXS = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
121
- return (0, _core.jsx)(Container, (0, _extends2["default"])({
120
+ var ContainerXXS = /*#__PURE__*/_react2["default"].forwardRef(function (props, ref) {
121
+ return (0, _react.jsx)(Container, (0, _extends2["default"])({
122
122
  ref: ref,
123
123
  level: 'xxs'
124
124
  }, props));
@@ -1 +1 @@
1
- {"version":3,"sources":["Container.tsx"],"names":["LEVEL","lg","WIDTH","DESKTOP_MAX","md","TABLET_MAX","sm","TABLET_MIN","xs","MOBILE","xxs","TINY","containerStyle","centerText","level","undefined","verticalCenter","margin","maxWidth","position","textAlign","width","media","QueryKeys","DESKTOP","padding","DESKTOP_MIN","GUTTER","filterContainerProps","props","Container","React","forwardRef","ref","ContainerLG","ContainerMD","ContainerSM","ContainerXS","ContainerXXS"],"mappings":";;;;;;;;;;;;;AAoBA;;AACA;;AAEA;;AACA;;AACA;;AAzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAsBA,IAAMA,KAAY,GAAG;AACnBC,EAAAA,EAAE,EAAEC,aAAMC,WADS;AAEnBC,EAAAA,EAAE,EAAEF,aAAMG,UAFS;AAGnBC,EAAAA,EAAE,EAAEJ,aAAMK,UAHS;AAInBC,EAAAA,EAAE,EAAEN,aAAMO,MAJS;AAKnBC,EAAAA,GAAG,EAAER,aAAMS;AALQ,CAArB;;AAQA,IAAMC,cAA0D,GAAG,SAA7DA,cAA6D;AAAA,6BACjEC,UADiE;AAAA,MACjEA,UADiE,gCACpD,KADoD;AAAA,wBAEjEC,KAFiE;AAAA,MAEjEA,KAFiE,2BAEzDC,SAFyD;AAAA,iCAGjEC,cAHiE;AAAA,MAGjEA,cAHiE,oCAGhD,KAHgD;AAAA;AAKjEC,IAAAA,MAAM,EAAED,cAAc,GAAG,MAAH,GAAY,QAL+B;AAMjEE,IAAAA,QAAQ,EAAEJ,KAAK,aAAMd,KAAK,CAACc,KAAD,CAAX,UAAyBC,SANyB;AAOjEI,IAAAA,QAAQ,EAAE,UAPuD;AAQjEC,IAAAA,SAAS,EAAEP,UAAU,GAAG,QAAH,GAAc,MAR8B;AASjEQ,IA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,EAD+E;AAAA,CAAtD,CAApB;;;;AAGA,IAAMQ,WAAW,gBAAGN,kBAAMC,UAAN,CAAsD,UAACH,KAAD,EAAQI,GAAR;AAAA,SAC/E,eAAC,SAAD;AAAW,IAAA,GAAG,EAAEA,GAAhB;AAAqB,IAAA,KAAK,EAAE;AAA5B,KAAsCJ,KAAtC,EAD+E;AAAA,CAAtD,CAApB;;;;AAGA,IAAMS,YAAY,gBAAGP,kBAAMC,UAAN,CAAsD,UAACH,KAAD,EAAQI,GAAR;AAAA,SAChF,eAAC,SAAD;AAAW,IAAA,GAAG,EAAEA,GAAhB;AAAqB,IAAA,KAAK,EAAE;AAA5B,KAAuCJ,KAAvC,EADgF;AAAA,CAAtD,CAArB","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {CSSObject, jsx} from '@emotion/core';\nimport React from 'react';\n\nimport {QueryKeys, media} from '../mediaQueries';\nimport {filterProps} from '../util';\nimport {GUTTER, WIDTH} from './sizes';\n\nexport interface ContainerProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n centerText?: boolean;\n level?: keyof Level;\n verticalCenter?: boolean;\n}\n\nexport interface Level {\n lg: number;\n md: number;\n sm: number;\n xs: number;\n xxs: number;\n}\n\nconst LEVEL: Level = {\n lg: WIDTH.DESKTOP_MAX,\n md: WIDTH.TABLET_MAX,\n sm: WIDTH.TABLET_MIN,\n xs: WIDTH.MOBILE,\n xxs: WIDTH.TINY,\n};\n\nconst containerStyle: <T>(props: ContainerProps<T>) => CSSObject = ({\n centerText = false,\n level = undefined,\n verticalCenter = false,\n}) => ({\n margin: verticalCenter ? 'auto' : '0 auto',\n maxWidth: level ? `${LEVEL[level]}px` : undefined,\n position: 'relative',\n textAlign: centerText ? 'center' : 'left',\n width: '100%',\n [media[QueryKeys.DESKTOP]]: level\n ? undefined\n : {\n padding: 0,\n width: `${WIDTH.DESKTOP_MIN - GUTTER * 2}px`,\n },\n});\n\nconst filterContainerProps = (props: ContainerProps) => filterProps(props, ['centerText', 'level', 'verticalCenter']);\n\nexport const Container: React.FC<ContainerProps> = React.forwardRef<HTMLDivElement, ContainerProps>((props, ref) => (\n <div ref={ref} css={containerStyle(props)} {...filterContainerProps(props)} />\n));\n\nexport type LevelContainerProps = Omit<ContainerProps, 'level'>;\n\nexport const ContainerLG = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'lg'} {...props} />\n));\nexport const ContainerMD = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'md'} {...props} />\n));\nexport const ContainerSM = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'sm'} {...props} />\n));\nexport const ContainerXS = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'xs'} {...props} />\n));\nexport const ContainerXXS = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'xxs'} {...props} />\n));\n"],"file":"Container.js"}
1
+ {"version":3,"sources":["Container.tsx"],"names":["LEVEL","lg","WIDTH","DESKTOP_MAX","md","TABLET_MAX","sm","TABLET_MIN","xs","MOBILE","xxs","TINY","containerStyle","centerText","level","undefined","verticalCenter","margin","maxWidth","position","textAlign","width","media","QueryKeys","DESKTOP","padding","DESKTOP_MIN","GUTTER","filterContainerProps","props","Container","React","forwardRef","ref","ContainerLG","ContainerMD","ContainerSM","ContainerXS","ContainerXXS"],"mappings":";;;;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B;AAAqB,IAAA,KAAK,EAAE;AAA5B,KAAuCJ,KAAvC,EADgF;AAAA,CAAtD,CAArB","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {CSSObject, jsx} from '@emotion/react';\nimport React from 'react';\n\nimport {QueryKeys, media} from '../mediaQueries';\nimport {filterProps} from '../util';\nimport {GUTTER, WIDTH} from './sizes';\n\nexport interface ContainerProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n centerText?: boolean;\n level?: keyof Level;\n verticalCenter?: boolean;\n}\n\nexport interface Level {\n lg: number;\n md: number;\n sm: number;\n xs: number;\n xxs: number;\n}\n\nconst LEVEL: Level = {\n lg: WIDTH.DESKTOP_MAX,\n md: WIDTH.TABLET_MAX,\n sm: WIDTH.TABLET_MIN,\n xs: WIDTH.MOBILE,\n xxs: WIDTH.TINY,\n};\n\nconst containerStyle: <T>(props: ContainerProps<T>) => CSSObject = ({\n centerText = false,\n level = undefined,\n verticalCenter = false,\n}) => ({\n margin: verticalCenter ? 'auto' : '0 auto',\n maxWidth: level ? `${LEVEL[level]}px` : undefined,\n position: 'relative',\n textAlign: centerText ? 'center' : 'left',\n width: '100%',\n [media[QueryKeys.DESKTOP]]: level\n ? undefined\n : {\n padding: 0,\n width: `${WIDTH.DESKTOP_MIN - GUTTER * 2}px`,\n },\n});\n\nconst filterContainerProps = (props: ContainerProps) => filterProps(props, ['centerText', 'level', 'verticalCenter']);\n\nexport const Container: React.FC<ContainerProps> = React.forwardRef<HTMLDivElement, ContainerProps>((props, ref) => (\n <div ref={ref} css={containerStyle(props)} {...filterContainerProps(props)} />\n));\n\nexport type LevelContainerProps = Omit<ContainerProps, 'level'>;\n\nexport const ContainerLG = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'lg'} {...props} />\n));\nexport const ContainerMD = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'md'} {...props} />\n));\nexport const ContainerSM = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'sm'} {...props} />\n));\nexport const ContainerXS = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'xs'} {...props} />\n));\nexport const ContainerXXS = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'xxs'} {...props} />\n));\n"],"file":"Container.js"}
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { CSSObject } from '@emotion/core';
3
+ import { CSSObject, jsx } from '@emotion/react';
4
4
  export declare type ContentProps<T = HTMLDivElement> = React.HTMLProps<T>;
5
5
  export declare const contentStyle: <T>(props: ContentProps<T>) => CSSObject;
6
- export declare const Content: (props: ContentProps<HTMLDivElement>) => JSX.Element;
6
+ export declare const Content: (props: ContentProps<HTMLDivElement>) => jsx.JSX.Element;
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
 
12
12
  var _react = _interopRequireDefault(require("react"));
13
13
 
14
- var _core = require("@emotion/core");
14
+ var _react2 = require("@emotion/react");
15
15
 
16
16
  var _sizes = require("./sizes");
17
17
 
@@ -47,7 +47,7 @@ var contentStyle = function contentStyle(props) {
47
47
  exports.contentStyle = contentStyle;
48
48
 
49
49
  var Content = function Content(props) {
50
- return (0, _core.jsx)("div", (0, _extends2["default"])({
50
+ return (0, _react2.jsx)("div", (0, _extends2["default"])({
51
51
  css: contentStyle(props)
52
52
  }, props));
53
53
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["Content.tsx"],"names":["contentStyle","props","display","flexDirection","flexGrow","padding","GUTTER","Content"],"mappings":";;;;;;;;;;;AAoBA;;AACA;;AAEA;;AAvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAQO,IAAMA,YAAsD,GAAG,SAAzDA,YAAyD,CAAAC,KAAK;AAAA,SAAK;AAC9EC,IAAAA,OAAO,EAAE,MADqE;AAE9EC,IAAAA,aAAa,EAAE,QAF+D;AAG9EC,IAAAA,QAAQ,EAAE,CAHoE;AAI9EC,IAAAA,OAAO,cAAOC,aAAP;AAJuE,GAAL;AAAA,CAApE;;;;AAOA,IAAMC,OAAO,GAAG,SAAVA,OAAU,CAACN,KAAD;AAAA,SAAyB;AAAK,IAAA,GAAG,EAAED,YAAY,CAACC,KAAD;AAAtB,KAAmCA,KAAnC,EAAzB;AAAA,CAAhB","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport React from 'react';\nimport {CSSObject, jsx} from '@emotion/core';\n\nimport {GUTTER} from './sizes';\n\nexport type ContentProps<T = HTMLDivElement> = React.HTMLProps<T>;\n\nexport const contentStyle: <T>(props: ContentProps<T>) => CSSObject = props => ({\n display: 'flex',\n flexDirection: 'column',\n flexGrow: 1,\n padding: `0 ${GUTTER}px`,\n});\n\nexport const Content = (props: ContentProps) => <div css={contentStyle(props)} {...props} />;\n"],"file":"Content.js"}
1
+ {"version":3,"sources":["Content.tsx"],"names":["contentStyle","props","display","flexDirection","flexGrow","padding","GUTTER","Content"],"mappings":";;;;;;;;;;;AAoBA;;AACA;;AAEA;;AAvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAQO,IAAMA,YAAsD,GAAG,SAAzDA,YAAyD,CAAAC,KAAK;AAAA,SAAK;AAC9EC,IAAAA,OAAO,EAAE,MADqE;AAE9EC,IAAAA,aAAa,EAAE,QAF+D;AAG9EC,IAAAA,QAAQ,EAAE,CAHoE;AAI9EC,IAAAA,OAAO,cAAOC,aAAP;AAJuE,GAAL;AAAA,CAApE;;;;AAOA,IAAMC,OAAO,GAAG,SAAVA,OAAU,CAACN,KAAD;AAAA,SAAyB;AAAK,IAAA,GAAG,EAAED,YAAY,CAACC,KAAD;AAAtB,KAAmCA,KAAnC,EAAzB;AAAA,CAAhB","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport React from 'react';\nimport {CSSObject, jsx} from '@emotion/react';\n\nimport {GUTTER} from './sizes';\n\nexport type ContentProps<T = HTMLDivElement> = React.HTMLProps<T>;\n\nexport const contentStyle: <T>(props: ContentProps<T>) => CSSObject = props => ({\n display: 'flex',\n flexDirection: 'column',\n flexGrow: 1,\n padding: `0 ${GUTTER}px`,\n});\n\nexport const Content = (props: ContentProps) => <div css={contentStyle(props)} {...props} />;\n"],"file":"Content.js"}
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { CSSObject } from '@emotion/core';
2
+ import { CSSObject } from '@emotion/react';
3
3
  import type { Property } from 'csstype';
4
4
  import React from 'react';
5
5
  export interface FlexBoxProps<T = HTMLDivElement> extends React.PropsWithRef<React.HTMLProps<T>> {
@@ -9,9 +9,9 @@ exports.FlexBox = exports.filterFlexBoxProps = exports.flexBoxStyle = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
12
- var _core = require("@emotion/core");
12
+ var _react = require("@emotion/react");
13
13
 
14
- var _react = _interopRequireDefault(require("react"));
14
+ var _react2 = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _util = require("../util");
17
17
 
@@ -61,8 +61,8 @@ var filterFlexBoxProps = function filterFlexBoxProps(props) {
61
61
 
62
62
  exports.filterFlexBoxProps = filterFlexBoxProps;
63
63
 
64
- var FlexBox = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
65
- return (0, _core.jsx)("div", (0, _extends2["default"])({
64
+ var FlexBox = /*#__PURE__*/_react2["default"].forwardRef(function (props, ref) {
65
+ return (0, _react.jsx)("div", (0, _extends2["default"])({
66
66
  ref: ref,
67
67
  css: flexBoxStyle(props)
68
68
  }, filterFlexBoxProps(props)));
@@ -1 +1 @@
1
- {"version":3,"sources":["FlexBox.tsx"],"names":["flexBoxStyle","align","column","justify","flexWrap","alignItems","display","flexDirection","justifyContent","filterFlexBoxProps","props","FlexBox","React","forwardRef","ref"],"mappings":";;;;;;;;;;;AAoBA;;AAEA;;AAEA;;AAxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAcO,IAAMA,YAAsD,GAAG,SAAzDA,YAAyD;AAAA,wBACpEC,KADoE;AAAA,MACpEA,KADoE,2BAC5D,YAD4D;AAAA,yBAEpEC,MAFoE;AAAA,MAEpEA,MAFoE,4BAE3D,KAF2D;AAAA,0BAGpEC,OAHoE;AAAA,MAGpEA,OAHoE,6BAG1D,YAH0D;AAAA,2BAIpEC,QAJoE;AAAA,MAIpEA,QAJoE,8BAIzD,QAJyD;AAAA,SAK/D;AACLC,IAAAA,UAAU,EAAEJ,KADP;AAELK,IAAAA,OAAO,EAAE,MAFJ;AAGLC,IAAAA,aAAa,EAAEL,MAAM,GAAG,QAAH,GAAc,KAH9B;AAILE,IAAAA,QAAQ,EAAEA,QAJL;AAKLI,IAAAA,cAAc,EAAEL;AALX,GAL+D;AAAA,CAA/D;;;;AAaA,IAAMM,kBAAkB,GAAG,SAArBA,kBAAqB,CAACC,KAAD;AAAA,SAChC,uBAAYA,KAAZ,EAAmB,CAAC,OAAD,EAAU,QAAV,EAAoB,SAApB,EAA+B,UAA/B,CAAnB,CADgC;AAAA,CAA3B;;;;AAGA,IAAMC,OAA+B,gBAAGC,kBAAMC,UAAN,CAA+C,UAACH,KAAD,EAAQI,GAAR;AAAA,SAC5F;AAAK,IAAA,GAAG,EAAEA,GAAV;AAAe,IAAA,GAAG,EAAEd,YAAY,CAACU,KAAD;AAAhC,KAA6CD,kBAAkB,CAACC,KAAD,CAA/D,EAD4F;AAAA,CAA/C,CAAxC","sourcesContent":["/*\n * Wire\n * Copyright (C) 2017 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {CSSObject, jsx} from '@emotion/core';\nimport type {Property} from 'csstype';\nimport React from 'react';\n\nimport {filterProps} from '../util';\n\nexport interface FlexBoxProps<T = HTMLDivElement> extends React.PropsWithRef<React.HTMLProps<T>> {\n align?: string;\n column?: boolean;\n flexWrap?: Property.FlexWrap;\n justify?: string;\n}\n\nexport const flexBoxStyle: <T>(props: FlexBoxProps<T>) => CSSObject = ({\n align = 'flex-start',\n column = false,\n justify = 'flex-start',\n flexWrap = 'nowrap',\n}) => ({\n alignItems: align,\n display: 'flex',\n flexDirection: column ? 'column' : 'row',\n flexWrap: flexWrap,\n justifyContent: justify,\n});\n\nexport const filterFlexBoxProps = (props: FlexBoxProps) =>\n filterProps(props, ['align', 'column', 'justify', 'flexWrap']);\n\nexport const FlexBox: React.FC<FlexBoxProps> = React.forwardRef<HTMLDivElement, FlexBoxProps>((props, ref) => (\n <div ref={ref} css={flexBoxStyle(props)} {...filterFlexBoxProps(props)} />\n));\n"],"file":"FlexBox.js"}
1
+ {"version":3,"sources":["FlexBox.tsx"],"names":["flexBoxStyle","align","column","justify","flexWrap","alignItems","display","flexDirection","justifyContent","filterFlexBoxProps","props","FlexBox","React","forwardRef","ref"],"mappings":";;;;;;;;;;;AAoBA;;AAEA;;AAEA;;AAxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAcO,IAAMA,YAAsD,GAAG,SAAzDA,YAAyD;AAAA,wBACpEC,KADoE;AAAA,MACpEA,KADoE,2BAC5D,YAD4D;AAAA,yBAEpEC,MAFoE;AAAA,MAEpEA,MAFoE,4BAE3D,KAF2D;AAAA,0BAGpEC,OAHoE;AAAA,MAGpEA,OAHoE,6BAG1D,YAH0D;AAAA,2BAIpEC,QAJoE;AAAA,MAIpEA,QAJoE,8BAIzD,QAJyD;AAAA,SAK/D;AACLC,IAAAA,UAAU,EAAEJ,KADP;AAELK,IAAAA,OAAO,EAAE,MAFJ;AAGLC,IAAAA,aAAa,EAAEL,MAAM,GAAG,QAAH,GAAc,KAH9B;AAILE,IAAAA,QAAQ,EAAEA,QAJL;AAKLI,IAAAA,cAAc,EAAEL;AALX,GAL+D;AAAA,CAA/D;;;;AAaA,IAAMM,kBAAkB,GAAG,SAArBA,kBAAqB,CAACC,KAAD;AAAA,SAChC,uBAAYA,KAAZ,EAAmB,CAAC,OAAD,EAAU,QAAV,EAAoB,SAApB,EAA+B,UAA/B,CAAnB,CADgC;AAAA,CAA3B;;;;AAGA,IAAMC,OAA+B,gBAAGC,mBAAMC,UAAN,CAA+C,UAACH,KAAD,EAAQI,GAAR;AAAA,SAC5F;AAAK,IAAA,GAAG,EAAEA,GAAV;AAAe,IAAA,GAAG,EAAEd,YAAY,CAACU,KAAD;AAAhC,KAA6CD,kBAAkB,CAACC,KAAD,CAA/D,EAD4F;AAAA,CAA/C,CAAxC","sourcesContent":["/*\n * Wire\n * Copyright (C) 2017 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {CSSObject, jsx} from '@emotion/react';\nimport type {Property} from 'csstype';\nimport React from 'react';\n\nimport {filterProps} from '../util';\n\nexport interface FlexBoxProps<T = HTMLDivElement> extends React.PropsWithRef<React.HTMLProps<T>> {\n align?: string;\n column?: boolean;\n flexWrap?: Property.FlexWrap;\n justify?: string;\n}\n\nexport const flexBoxStyle: <T>(props: FlexBoxProps<T>) => CSSObject = ({\n align = 'flex-start',\n column = false,\n justify = 'flex-start',\n flexWrap = 'nowrap',\n}) => ({\n alignItems: align,\n display: 'flex',\n flexDirection: column ? 'column' : 'row',\n flexWrap: flexWrap,\n justifyContent: justify,\n});\n\nexport const filterFlexBoxProps = (props: FlexBoxProps) =>\n filterProps(props, ['align', 'column', 'justify', 'flexWrap']);\n\nexport const FlexBox: React.FC<FlexBoxProps> = React.forwardRef<HTMLDivElement, FlexBoxProps>((props, ref) => (\n <div ref={ref} css={flexBoxStyle(props)} {...filterFlexBoxProps(props)} />\n));\n"],"file":"FlexBox.js"}
@@ -1,4 +1,6 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
1
3
  import React from 'react';
2
4
  declare type FooterProps = React.HTMLProps<HTMLElement>;
3
- export declare const Footer: (props: FooterProps) => JSX.Element;
5
+ export declare const Footer: (props: FooterProps) => jsx.JSX.Element;
4
6
  export {};
@@ -7,9 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.Footer = void 0;
9
9
 
10
- var _core = require("@emotion/core");
10
+ var _react = require("@emotion/react");
11
11
 
12
- var _react = _interopRequireDefault(require("react"));
12
+ var _react2 = _interopRequireDefault(require("react"));
13
13
 
14
14
  /*
15
15
  * Wire
@@ -32,7 +32,7 @@ var _react = _interopRequireDefault(require("react"));
32
32
 
33
33
  /** @jsx jsx */
34
34
  var Footer = function Footer(props) {
35
- return (0, _core.jsx)("footer", props);
35
+ return (0, _react.jsx)("footer", props);
36
36
  };
37
37
 
38
38
  exports.Footer = Footer;
@@ -1 +1 @@
1
- {"version":3,"sources":["Footer.tsx"],"names":["Footer","props"],"mappings":";;;;;;;;;AAoBA;;AACA;;AArBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAMO,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAwB,yBAAYA,KAAZ,CAAxB;AAAA,CAAf","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {jsx} from '@emotion/core';\nimport React from 'react';\n\ntype FooterProps = React.HTMLProps<HTMLElement>;\n\nexport const Footer = (props: FooterProps) => <footer {...props} />;\n"],"file":"Footer.js"}
1
+ {"version":3,"sources":["Footer.tsx"],"names":["Footer","props"],"mappings":";;;;;;;;;AAoBA;;AACA;;AArBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAMO,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAwB,0BAAYA,KAAZ,CAAxB;AAAA,CAAf","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {jsx} from '@emotion/react';\nimport React from 'react';\n\ntype FooterProps = React.HTMLProps<HTMLElement>;\n\nexport const Footer = (props: FooterProps) => <footer {...props} />;\n"],"file":"Footer.js"}
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
- import { CSSObject } from '@emotion/core';
2
+ import { CSSObject, jsx } from '@emotion/react';
3
3
  import React from 'react';
4
4
  export declare type HeaderProps<T = HTMLHeadingElement> = React.HTMLProps<T>;
5
5
  export declare const headerStyle: <T>(props: HeaderProps<T>) => CSSObject;
6
- export declare const Header: (props: HeaderProps<HTMLHeadingElement>) => JSX.Element;
6
+ export declare const Header: (props: HeaderProps<HTMLHeadingElement>) => jsx.JSX.Element;
@@ -9,9 +9,9 @@ exports.Header = exports.headerStyle = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
12
- var _core = require("@emotion/core");
12
+ var _react = require("@emotion/react");
13
13
 
14
- var _react = _interopRequireDefault(require("react"));
14
+ var _react2 = _interopRequireDefault(require("react"));
15
15
 
16
16
  /*
17
17
  * Wire
@@ -45,7 +45,7 @@ var headerStyle = function headerStyle(props) {
45
45
  exports.headerStyle = headerStyle;
46
46
 
47
47
  var Header = function Header(props) {
48
- return (0, _core.jsx)("header", (0, _extends2["default"])({
48
+ return (0, _react.jsx)("header", (0, _extends2["default"])({
49
49
  css: headerStyle(props)
50
50
  }, props));
51
51
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["Header.tsx"],"names":["headerStyle","props","alignItems","display","height","justifyContent","Header"],"mappings":";;;;;;;;;;;AAoBA;;AACA;;AArBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAMO,IAAMA,WAAoD,GAAG,SAAvDA,WAAuD,CAAAC,KAAK;AAAA,SAAK;AAC5EC,IAAAA,UAAU,EAAE,QADgE;AAE5EC,IAAAA,OAAO,EAAE,MAFmE;AAG5EC,IAAAA,MAAM,EAAE,MAHoE;AAI5EC,IAAAA,cAAc,EAAE;AAJ4D,GAAL;AAAA,CAAlE;;;;AAOA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACL,KAAD;AAAA,SAAwB;AAAQ,IAAA,GAAG,EAAED,WAAW,CAACC,KAAD;AAAxB,KAAqCA,KAArC,EAAxB;AAAA,CAAf","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {CSSObject, jsx} from '@emotion/core';\nimport React from 'react';\n\nexport type HeaderProps<T = HTMLHeadingElement> = React.HTMLProps<T>;\n\nexport const headerStyle: <T>(props: HeaderProps<T>) => CSSObject = props => ({\n alignItems: 'center',\n display: 'flex',\n height: '64px',\n justifyContent: 'space-between',\n});\n\nexport const Header = (props: HeaderProps) => <header css={headerStyle(props)} {...props} />;\n"],"file":"Header.js"}
1
+ {"version":3,"sources":["Header.tsx"],"names":["headerStyle","props","alignItems","display","height","justifyContent","Header"],"mappings":";;;;;;;;;;;AAoBA;;AACA;;AArBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAMO,IAAMA,WAAoD,GAAG,SAAvDA,WAAuD,CAAAC,KAAK;AAAA,SAAK;AAC5EC,IAAAA,UAAU,EAAE,QADgE;AAE5EC,IAAAA,OAAO,EAAE,MAFmE;AAG5EC,IAAAA,MAAM,EAAE,MAHoE;AAI5EC,IAAAA,cAAc,EAAE;AAJ4D,GAAL;AAAA,CAAlE;;;;AAOA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACL,KAAD;AAAA,SAAwB;AAAQ,IAAA,GAAG,EAAED,WAAW,CAACC,KAAD;AAAxB,KAAqCA,KAArC,EAAxB;AAAA,CAAf","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {CSSObject, jsx} from '@emotion/react';\nimport React from 'react';\n\nexport type HeaderProps<T = HTMLHeadingElement> = React.HTMLProps<T>;\n\nexport const headerStyle: <T>(props: HeaderProps<T>) => CSSObject = props => ({\n alignItems: 'center',\n display: 'flex',\n height: '64px',\n justifyContent: 'space-between',\n});\n\nexport const Header = (props: HeaderProps) => <header css={headerStyle(props)} {...props} />;\n"],"file":"Header.js"}
@@ -1,3 +1,5 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
1
3
  import React, { ReactFragment } from 'react';
2
4
  import { QueryKeys } from '../mediaQueries';
3
5
  declare type Query = string | QueryKeys;
@@ -8,12 +10,12 @@ export interface MatchMediaProps extends React.HTMLProps<ReactFragment> {
8
10
  export declare const useMatchMedia: (query: Query) => boolean;
9
11
  export declare const MatchMedia: React.FC<MatchMediaProps>;
10
12
  export declare type NamedMatchMediaProps = Omit<MatchMediaProps, 'query'>;
11
- export declare const IsDesktop: (props: NamedMatchMediaProps) => JSX.Element;
12
- export declare const IsDesktopXL: (props: NamedMatchMediaProps) => JSX.Element;
13
- export declare const IsMobile: (props: NamedMatchMediaProps) => JSX.Element;
14
- export declare const IsMobileDown: (props: NamedMatchMediaProps) => JSX.Element;
15
- export declare const IsMobileUp: (props: NamedMatchMediaProps) => JSX.Element;
16
- export declare const IsTablet: (props: NamedMatchMediaProps) => JSX.Element;
17
- export declare const IsTabletDown: (props: NamedMatchMediaProps) => JSX.Element;
18
- export declare const IsTabletUp: (props: NamedMatchMediaProps) => JSX.Element;
13
+ export declare const IsDesktop: (props: NamedMatchMediaProps) => jsx.JSX.Element;
14
+ export declare const IsDesktopXL: (props: NamedMatchMediaProps) => jsx.JSX.Element;
15
+ export declare const IsMobile: (props: NamedMatchMediaProps) => jsx.JSX.Element;
16
+ export declare const IsMobileDown: (props: NamedMatchMediaProps) => jsx.JSX.Element;
17
+ export declare const IsMobileUp: (props: NamedMatchMediaProps) => jsx.JSX.Element;
18
+ export declare const IsTablet: (props: NamedMatchMediaProps) => jsx.JSX.Element;
19
+ export declare const IsTabletDown: (props: NamedMatchMediaProps) => jsx.JSX.Element;
20
+ export declare const IsTabletUp: (props: NamedMatchMediaProps) => jsx.JSX.Element;
19
21
  export {};
@@ -13,9 +13,9 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
13
13
 
14
14
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
15
 
16
- var _core = require("@emotion/core");
16
+ var _react = require("@emotion/react");
17
17
 
18
- var _react = _interopRequireWildcard(require("react"));
18
+ var _react2 = _interopRequireWildcard(require("react"));
19
19
 
20
20
  var _mediaQueries = require("../mediaQueries");
21
21
 
@@ -46,7 +46,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
46
46
  var useMatchMedia = function useMatchMedia(query) {
47
47
  var matchMedia = window.matchMedia("(".concat(query, ")"));
48
48
 
49
- var _useState = (0, _react.useState)(matchMedia.matches),
49
+ var _useState = (0, _react2.useState)(matchMedia.matches),
50
50
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
51
51
  isMatching = _useState2[0],
52
52
  setIsMatching = _useState2[1];
@@ -55,7 +55,7 @@ var useMatchMedia = function useMatchMedia(query) {
55
55
  return setIsMatching(matchMedia.matches);
56
56
  };
57
57
 
58
- (0, _react.useEffect)(function () {
58
+ (0, _react2.useEffect)(function () {
59
59
  matchMedia.addListener(updateMatching);
60
60
  return function () {
61
61
  return matchMedia.removeListener(updateMatching);
@@ -72,13 +72,13 @@ var MatchMedia = function MatchMedia(_ref) {
72
72
  not = _ref.not;
73
73
  var matchQuery = useMatchMedia(_mediaQueries.QUERY[query] || query);
74
74
  var isMatching = not ? !matchQuery : matchQuery;
75
- return (0, _core.jsx)(_react["default"].Fragment, null, isMatching ? children : null);
75
+ return (0, _react.jsx)(_react2["default"].Fragment, null, isMatching ? children : null);
76
76
  };
77
77
 
78
78
  exports.MatchMedia = MatchMedia;
79
79
 
80
80
  var IsDesktop = function IsDesktop(props) {
81
- return (0, _core.jsx)(MatchMedia, (0, _extends2["default"])({
81
+ return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
82
82
  query: _mediaQueries.QueryKeys.DESKTOP
83
83
  }, props));
84
84
  };
@@ -86,7 +86,7 @@ var IsDesktop = function IsDesktop(props) {
86
86
  exports.IsDesktop = IsDesktop;
87
87
 
88
88
  var IsDesktopXL = function IsDesktopXL(props) {
89
- return (0, _core.jsx)(MatchMedia, (0, _extends2["default"])({
89
+ return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
90
90
  query: _mediaQueries.QueryKeys.DESKTOP_XL
91
91
  }, props));
92
92
  };
@@ -94,7 +94,7 @@ var IsDesktopXL = function IsDesktopXL(props) {
94
94
  exports.IsDesktopXL = IsDesktopXL;
95
95
 
96
96
  var IsMobile = function IsMobile(props) {
97
- return (0, _core.jsx)(MatchMedia, (0, _extends2["default"])({
97
+ return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
98
98
  query: _mediaQueries.QueryKeys.MOBILE
99
99
  }, props));
100
100
  };
@@ -102,7 +102,7 @@ var IsMobile = function IsMobile(props) {
102
102
  exports.IsMobile = IsMobile;
103
103
 
104
104
  var IsMobileDown = function IsMobileDown(props) {
105
- return (0, _core.jsx)(MatchMedia, (0, _extends2["default"])({
105
+ return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
106
106
  query: _mediaQueries.QueryKeys.MOBILE_DOWN
107
107
  }, props));
108
108
  };
@@ -110,7 +110,7 @@ var IsMobileDown = function IsMobileDown(props) {
110
110
  exports.IsMobileDown = IsMobileDown;
111
111
 
112
112
  var IsMobileUp = function IsMobileUp(props) {
113
- return (0, _core.jsx)(MatchMedia, (0, _extends2["default"])({
113
+ return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
114
114
  query: _mediaQueries.QueryKeys.MOBILE_UP
115
115
  }, props));
116
116
  };
@@ -118,7 +118,7 @@ var IsMobileUp = function IsMobileUp(props) {
118
118
  exports.IsMobileUp = IsMobileUp;
119
119
 
120
120
  var IsTablet = function IsTablet(props) {
121
- return (0, _core.jsx)(MatchMedia, (0, _extends2["default"])({
121
+ return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
122
122
  query: _mediaQueries.QueryKeys.TABLET
123
123
  }, props));
124
124
  };
@@ -126,7 +126,7 @@ var IsTablet = function IsTablet(props) {
126
126
  exports.IsTablet = IsTablet;
127
127
 
128
128
  var IsTabletDown = function IsTabletDown(props) {
129
- return (0, _core.jsx)(MatchMedia, (0, _extends2["default"])({
129
+ return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
130
130
  query: _mediaQueries.QueryKeys.TABLET_DOWN
131
131
  }, props));
132
132
  };
@@ -134,7 +134,7 @@ var IsTabletDown = function IsTabletDown(props) {
134
134
  exports.IsTabletDown = IsTabletDown;
135
135
 
136
136
  var IsTabletUp = function IsTabletUp(props) {
137
- return (0, _core.jsx)(MatchMedia, (0, _extends2["default"])({
137
+ return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
138
138
  query: _mediaQueries.QueryKeys.TABLET_UP
139
139
  }, props));
140
140
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["MatchMedia.tsx"],"names":["useMatchMedia","query","matchMedia","window","matches","isMatching","setIsMatching","updateMatching","addListener","removeListener","MatchMedia","children","not","matchQuery","QUERY","IsDesktop","props","QueryKeys","DESKTOP","IsDesktopXL","DESKTOP_XL","IsMobile","MOBILE","IsMobileDown","MOBILE_DO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under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {jsx} from '@emotion/core';\nimport React, {ReactFragment, useEffect, useState} from 'react';\n\nimport {QUERY, QueryKeys} from '../mediaQueries';\n\ntype Query = string | QueryKeys;\n\nexport interface MatchMediaProps extends React.HTMLProps<ReactFragment> {\n not?: boolean;\n query: Query;\n}\n\nexport const useMatchMedia = (query: Query) => {\n const matchMedia = window.matchMedia(`(${query})`);\n\n const [isMatching, setIsMatching] = useState(matchMedia.matches);\n\n const updateMatching = () => setIsMatching(matchMedia.matches);\n\n useEffect(() => {\n matchMedia.addListener(updateMatching);\n return () => matchMedia.removeListener(updateMatching);\n });\n\n return isMatching;\n};\n\nexport const MatchMedia: React.FC<MatchMediaProps> = ({query, children, not}) => {\n const matchQuery = useMatchMedia(QUERY[query] || query);\n const isMatching = not ? !matchQuery : matchQuery;\n return <React.Fragment>{isMatching ? children : null}</React.Fragment>;\n};\n\nexport type NamedMatchMediaProps = Omit<MatchMediaProps, 'query'>;\n\nexport const IsDesktop = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.DESKTOP} {...props} />;\nexport const IsDesktopXL = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.DESKTOP_XL} {...props} />;\nexport const IsMobile = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.MOBILE} {...props} />;\nexport const IsMobileDown = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.MOBILE_DOWN} {...props} />;\nexport const IsMobileUp = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.MOBILE_UP} {...props} />;\nexport const IsTablet = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.TABLET} {...props} />;\nexport const IsTabletDown = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.TABLET_DOWN} {...props} />;\nexport const IsTabletUp = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.TABLET_UP} {...props} />;\n"],"file":"MatchMedia.js"}
1
+ {"version":3,"sources":["MatchMedia.tsx"],"names":["useMatchMedia","query","matchMedia","window","matches","isMatching","setIsMatching","updateMatching","addListener","removeListener","MatchMedia","children","not","matchQuery","QUERY","IsDesktop","props","QueryKeys","DESKTOP","IsDesktopXL","DESKTOP_XL","IsMobile","MOBILE","IsMobileDown","MOBILE_DOWN","IsMobileUp","MOBILE_UP","IsTablet","TABLET","IsTabletDown","TABLET_DOWN","IsTabletUp","TABLET_UP"],"mappings":";;;;;;;;;;;;;;;AAoBA;;AACA;;AAEA;;;;;;AAvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAaO,IAAMA,aAAa,GAAG,SAAhBA,aAAgB,CAACC,KAAD,EAAkB;AAC7C,MAAMC,UAAU,GAAGC,MAAM,CAACD,UAAP,YAAsBD,KAAtB,OAAnB;;AAEA,kBAAoC,sBAASC,UAAU,CAACE,OAApB,CAApC;AAAA;AAAA,MAAOC,UAAP;AAAA,MAAmBC,aAAnB;;AAEA,MAAMC,cAAc,GAAG,SAAjBA,cAAiB;AAAA,WAAMD,aAAa,CAACJ,UAAU,CAACE,OAAZ,CAAnB;AAAA,GAAvB;;AAEA,yBAAU,YAAM;AACdF,IAAAA,UAAU,CAACM,WAAX,CAAuBD,cAAvB;AACA,WAAO;AAAA,aAAML,UAAU,CAACO,cAAX,CAA0BF,cAA1B,CAAN;AAAA,KAAP;AACD,GAHD;AAKA,SAAOF,UAAP;AACD,CAbM;;;;AAeA,IAAMK,UAAqC,GAAG,SAAxCA,UAAwC,OAA4B;AAAA,MAA1BT,KAA0B,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Z,KAAzC,EAAjC;AAAA,CAAjB;;;;AACA,IAAMa,YAAY,GAAG,SAAfA,YAAe,CAACb,KAAD;AAAA,SAAiC,gBAAC,UAAD;AAAY,IAAA,KAAK,EAAEC,wBAAUa;AAA7B,KAA8Cd,KAA9C,EAAjC;AAAA,CAArB;;;;AACA,IAAMe,UAAU,GAAG,SAAbA,UAAa,CAACf,KAAD;AAAA,SAAiC,gBAAC,UAAD;AAAY,IAAA,KAAK,EAAEC,wBAAUe;AAA7B,KAA4ChB,KAA5C,EAAjC;AAAA,CAAnB","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {jsx} from '@emotion/react';\nimport React, {ReactFragment, useEffect, useState} from 'react';\n\nimport {QUERY, QueryKeys} from '../mediaQueries';\n\ntype Query = string | QueryKeys;\n\nexport interface MatchMediaProps extends React.HTMLProps<ReactFragment> {\n not?: boolean;\n query: Query;\n}\n\nexport const useMatchMedia = (query: Query) => {\n const matchMedia = window.matchMedia(`(${query})`);\n\n const [isMatching, setIsMatching] = useState(matchMedia.matches);\n\n const updateMatching = () => setIsMatching(matchMedia.matches);\n\n useEffect(() => {\n matchMedia.addListener(updateMatching);\n return () => matchMedia.removeListener(updateMatching);\n });\n\n return isMatching;\n};\n\nexport const MatchMedia: React.FC<MatchMediaProps> = ({query, children, not}) => {\n const matchQuery = useMatchMedia(QUERY[query] || query);\n const isMatching = not ? !matchQuery : matchQuery;\n return <React.Fragment>{isMatching ? children : null}</React.Fragment>;\n};\n\nexport type NamedMatchMediaProps = Omit<MatchMediaProps, 'query'>;\n\nexport const IsDesktop = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.DESKTOP} {...props} />;\nexport const IsDesktopXL = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.DESKTOP_XL} {...props} />;\nexport const IsMobile = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.MOBILE} {...props} />;\nexport const IsMobileDown = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.MOBILE_DOWN} {...props} />;\nexport const IsMobileUp = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.MOBILE_UP} {...props} />;\nexport const IsTablet = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.TABLET} {...props} />;\nexport const IsTabletDown = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.TABLET_DOWN} {...props} />;\nexport const IsTabletUp = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.TABLET_UP} {...props} />;\n"],"file":"MatchMedia.js"}
@@ -3,4 +3,4 @@ export interface SpacerProps<T = HTMLDivElement> extends React.HTMLProps<T> {
3
3
  size?: number;
4
4
  vertical?: boolean;
5
5
  }
6
- export declare function Spacer({ size, vertical }: SpacerProps): JSX.Element;
6
+ export declare function Spacer({ size, vertical }: SpacerProps): React.ReactNode;
@@ -7,9 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.Spacer = Spacer;
9
9
 
10
- var _core = require("@emotion/core");
10
+ var _react = require("@emotion/react");
11
11
 
12
- var _react = _interopRequireDefault(require("react"));
12
+ var _react2 = _interopRequireDefault(require("react"));
13
13
 
14
14
  /*
15
15
  * Wire
@@ -36,7 +36,7 @@ function Spacer(_ref) {
36
36
  size = _ref$size === void 0 ? 8 : _ref$size,
37
37
  _ref$vertical = _ref.vertical,
38
38
  vertical = _ref$vertical === void 0 ? false : _ref$vertical;
39
- return (0, _core.jsx)("div", {
39
+ return (0, _react.jsx)("div", {
40
40
  style: vertical ? {
41
41
  display: 'inline-block',
42
42
  width: size
@@ -1 +1 @@
1
- {"version":3,"sources":["Spacer.tsx"],"names":["Spacer","size","vertical","display","width","height"],"mappings":";;;;;;;;;AAoBA;;AACA;;AArBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AASO,SAASA,MAAT,OAAwE;AAAA,uBAAvDC,IAAuD;AAAA,MAAvDA,IAAuD,0BAAhD,CAAgD;AAAA,2BAA7CC,QAA6C;AAAA,MAA7CA,QAA6C,8BAAlC,KAAkC;AAC7E,SAAO;AAAK,IAAA,KAAK,EAAEA,QAAQ,GAAG;AAACC,MAAAA,OAAO,EAAE,cAAV;AAA0BC,MAAAA,KAAK,EAAEH;AAAjC,KAAH,GAA4C;AAACI,MAAAA,MAAM,EAAEJ;AAAT;AAAhE,IAAP;AACD","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {jsx, jsx as JSX} from '@emotion/core';\nimport React from 'react';\n\nexport interface SpacerProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n size?: number;\n vertical?: boolean;\n}\n\nexport function Spacer({size = 8, vertical = false}: SpacerProps): JSX.Element {\n return <div style={vertical ? {display: 'inline-block', width: size} : {height: size}} />;\n}\n"],"file":"Spacer.js"}
1
+ {"version":3,"sources":["Spacer.tsx"],"names":["Spacer","size","vertical","display","width","height"],"mappings":";;;;;;;;;AAoBA;;AACA;;AArBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AASO,SAASA,MAAT,OAA4E;AAAA,uBAA3DC,IAA2D;AAAA,MAA3DA,IAA2D,0BAApD,CAAoD;AAAA,2BAAjDC,QAAiD;AAAA,MAAjDA,QAAiD,8BAAtC,KAAsC;AACjF,SAAO;AAAK,IAAA,KAAK,EAAEA,QAAQ,GAAG;AAACC,MAAAA,OAAO,EAAE,cAAV;AAA0BC,MAAAA,KAAK,EAAEH;AAAjC,KAAH,GAA4C;AAACI,MAAAA,MAAM,EAAEJ;AAAT;AAAhE,IAAP;AACD","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {jsx} from '@emotion/react';\nimport React from 'react';\n\nexport interface SpacerProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n size?: number;\n vertical?: boolean;\n}\n\nexport function Spacer({size = 8, vertical = false}: SpacerProps): React.ReactNode {\n return <div style={vertical ? {display: 'inline-block', width: size} : {height: size}} />;\n}\n"],"file":"Spacer.js"}
@@ -1,5 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
+ import { jsx } from '@emotion/react';
3
4
  import { THEME_ID } from './Theme';
4
5
  export interface StyledAppContainerProps<T = HTMLDivElement> extends React.HTMLProps<T> {
5
6
  backgroundColor?: string;
@@ -9,4 +10,4 @@ export declare const StyledApp: ({ themeId, children, ...props }: {
9
10
  [x: string]: any;
10
11
  themeId?: THEME_ID;
11
12
  children: any;
12
- }) => JSX.Element;
13
+ }) => jsx.JSX.Element;
@@ -13,7 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
13
13
 
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
 
16
- var _core = require("@emotion/core");
16
+ var _react2 = require("@emotion/react");
17
17
 
18
18
  var _GlobalStyle = require("../GlobalStyle");
19
19
 
@@ -37,7 +37,7 @@ var filterStyledAppContainerProps = function filterStyledAppContainerProps(props
37
37
  };
38
38
 
39
39
  var StyledAppContainer = function StyledAppContainer(props) {
40
- return (0, _core.jsx)("div", (0, _extends2["default"])({
40
+ return (0, _react2.jsx)("div", (0, _extends2["default"])({
41
41
  css: function css(theme) {
42
42
  return styledAppContainerStyle(theme, props);
43
43
  }
@@ -49,9 +49,9 @@ var StyledApp = function StyledApp(_ref2) {
49
49
  themeId = _ref2$themeId === void 0 ? _Theme.THEME_ID.LIGHT : _ref2$themeId,
50
50
  children = _ref2.children,
51
51
  props = (0, _objectWithoutProperties2["default"])(_ref2, _excluded);
52
- return (0, _core.jsx)(_Theme.ThemeProvider, {
52
+ return (0, _react2.jsx)(_Theme.ThemeProvider, {
53
53
  themeId: themeId
54
- }, (0, _core.jsx)(StyledAppContainer, props, (0, _core.jsx)(_GlobalStyle.GlobalStyle, null), children));
54
+ }, (0, _react2.jsx)(StyledAppContainer, props, (0, _react2.jsx)(_GlobalStyle.GlobalStyle, null), children));
55
55
  };
56
56
 
57
57
  exports.StyledApp = StyledApp;
@@ -1 +1 @@
1
- {"version":3,"sources":["StyledApp.tsx"],"names":["styledAppContainerStyle","theme","backgroundColor","general","background","transition","filterStyledAppContainerProps","props","StyledAppContainer","StyledApp","themeId","THEME_ID","LIGHT","children"],"mappings":";;;;;;;;;;;;;AAoBA;;AACA;;AAEA;;AACA;;AACA;;;;AAOA,IAAMA,uBAA0F,GAAG,SAA7FA,uBAA6F,CACjGC,KADiG;AAAA,kCAEhGC,eAFgG;AAAA,MAEhGA,eAFgG,qCAE9ED,KAAK,CAACE,OAAN,CAAcD,eAFgE;AAAA,SAG7F;AACJE,IAAAA,UAAU,EAAEF,eADR;AAEJG,IAAAA,UAAU,EAAE;AAFR,GAH6F;AAAA,CAAnG;;AAQA,IAAMC,6BAA6B,GAAG,SAAhCA,6BAAgC,CAACC,KAAD;AAAA,SACpC,uBAAYA,KAAZ,EAAmB,CAAC,iBAAD,EAAoB,SAApB,CAAnB,CADoC;AAAA,CAAtC;;AAGA,IAAMC,kBAAkB,GAAG,SAArBA,kBAAqB,CAACD,KAAD;AAAA,SACzB;AAAK,IAAA,GAAG,EAAE,aAAAN,KAAK;AAAA,aAAID,uBAAuB,CAACC,KAAD,EAAQM,KAAR,CAA3B;AAAA;AAAf,KAA8DD,6BAA6B,CAACC,KAAD,CAA3F,EADyB;AAAA,CAA3B;;AAIO,IAAME,SAAS,GAAG,SAAZA,SAAY;AAAA,4BAAEC,OAAF;AAAA,MAAEA,OAAF,8BAAYC,gBAASC,KAArB;AAAA,MAA4BC,QAA5B,SAA4BA,QAA5B;AAAA,MAAyCN,KAAzC;AAAA,SACvB,eAAC,oBAAD;AAAe,IAAA,OAAO,EAAEG;AAAxB,KACE,eAAC,kBAAD,EAAwBH,KAAxB,EACE,eAAC,wBAAD,OADF,EAEGM,QAFH,CADF,CADuB;AAAA,CAAlB","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport React from 'react';\nimport {CSSObject, jsx} from '@emotion/core';\n\nimport {GlobalStyle} from '../GlobalStyle';\nimport {filterProps} from '../util';\nimport {THEME_ID, Theme, ThemeProvider} from './Theme';\n\nexport interface StyledAppContainerProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n backgroundColor?: string;\n themeId?: THEME_ID;\n}\n\nconst styledAppContainerStyle: <T>(theme: Theme, props: StyledAppContainerProps<T>) => CSSObject = (\n theme,\n {backgroundColor = theme.general.backgroundColor},\n) => ({\n background: backgroundColor,\n transition: 'background 0.15s',\n});\n\nconst filterStyledAppContainerProps = (props: StyledAppContainerProps) =>\n filterProps(props, ['backgroundColor', 'themeId']);\n\nconst StyledAppContainer = (props: StyledAppContainerProps) => (\n <div css={theme => styledAppContainerStyle(theme, props)} {...filterStyledAppContainerProps(props)} />\n);\n\nexport const StyledApp = ({themeId = THEME_ID.LIGHT, children, ...props}) => (\n <ThemeProvider themeId={themeId}>\n <StyledAppContainer {...props}>\n <GlobalStyle />\n {children}\n </StyledAppContainer>\n </ThemeProvider>\n);\n"],"file":"StyledApp.js"}
1
+ {"version":3,"sources":["StyledApp.tsx"],"names":["styledAppContainerStyle","theme","backgroundColor","general","background","transition","filterStyledAppContainerProps","props","StyledAppContainer","StyledApp","themeId","THEME_ID","LIGHT","children"],"mappings":";;;;;;;;;;;;;AAoBA;;AACA;;AAEA;;AACA;;AACA;;;;AAOA,IAAMA,uBAA0F,GAAG,SAA7FA,uBAA6F,CACjGC,KADiG;AAAA,kCAEhGC,eAFgG;AAAA,MAEhGA,eAFgG,qCAE9ED,KAAK,CAACE,OAAN,CAAcD,eAFgE;AAAA,SAG7F;AACJE,IAAAA,UAAU,EAAEF,eADR;AAEJG,IAAAA,UAAU,EAAE;AAFR,GAH6F;AAAA,CAAnG;;AAQA,IAAMC,6BAA6B,GAAG,SAAhCA,6BAAgC,CAACC,KAAD;AAAA,SACpC,uBAAYA,KAAZ,EAAmB,CAAC,iBAAD,EAAoB,SAApB,CAAnB,CADoC;AAAA,CAAtC;;AAGA,IAAMC,kBAAkB,GAAG,SAArBA,kBAAqB,CAACD,KAAD;AAAA,SACzB;AAAK,IAAA,GAAG,EAAE,aAACN,KAAD;AAAA,aAAkBD,uBAAuB,CAACC,KAAD,EAAQM,KAAR,CAAzC;AAAA;AAAV,KAAuED,6BAA6B,CAACC,KAAD,CAApG,EADyB;AAAA,CAA3B;;AAIO,IAAME,SAAS,GAAG,SAAZA,SAAY;AAAA,4BAAEC,OAAF;AAAA,MAAEA,OAAF,8BAAYC,gBAASC,KAArB;AAAA,MAA4BC,QAA5B,SAA4BA,QAA5B;AAAA,MAAyCN,KAAzC;AAAA,SACvB,iBAAC,oBAAD;AAAe,IAAA,OAAO,EAAEG;AAAxB,KACE,iBAAC,kBAAD,EAAwBH,KAAxB,EACE,iBAAC,wBAAD,OADF,EAEGM,QAFH,CADF,CADuB;AAAA,CAAlB","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport React from 'react';\nimport {CSSObject, jsx} from '@emotion/react';\n\nimport {GlobalStyle} from '../GlobalStyle';\nimport {filterProps} from '../util';\nimport {THEME_ID, Theme, ThemeProvider} from './Theme';\n\nexport interface StyledAppContainerProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n backgroundColor?: string;\n themeId?: THEME_ID;\n}\n\nconst styledAppContainerStyle: <T>(theme: Theme, props: StyledAppContainerProps<T>) => CSSObject = (\n theme,\n {backgroundColor = theme.general.backgroundColor},\n) => ({\n background: backgroundColor,\n transition: 'background 0.15s',\n});\n\nconst filterStyledAppContainerProps = (props: StyledAppContainerProps) =>\n filterProps(props, ['backgroundColor', 'themeId']);\n\nconst StyledAppContainer = (props: StyledAppContainerProps) => (\n <div css={(theme: Theme) => styledAppContainerStyle(theme, props)} {...filterStyledAppContainerProps(props)} />\n);\n\nexport const StyledApp = ({themeId = THEME_ID.LIGHT, children, ...props}) => (\n <ThemeProvider themeId={themeId}>\n <StyledAppContainer {...props}>\n <GlobalStyle />\n {children}\n </StyledAppContainer>\n </ThemeProvider>\n);\n"],"file":"StyledApp.js"}
@@ -1,3 +1,5 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
1
3
  import React from 'react';
2
4
  export declare enum THEME_ID {
3
5
  DARK = "THEME_DARK",
@@ -20,4 +22,4 @@ export declare const themes: {
20
22
  export interface ThemeProps<T = HTMLDivElement> extends React.HTMLProps<T> {
21
23
  themeId: THEME_ID;
22
24
  }
23
- export declare const ThemeProvider: (props: ThemeProps) => JSX.Element;
25
+ export declare const ThemeProvider: (props: ThemeProps) => jsx.JSX.Element;
@@ -11,11 +11,9 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
 
12
12
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
13
 
14
- var _core = require("@emotion/core");
14
+ var _react = require("@emotion/react");
15
15
 
16
- var _react = _interopRequireDefault(require("react"));
17
-
18
- var _emotionTheming = require("emotion-theming");
16
+ var _react2 = _interopRequireDefault(require("react"));
19
17
 
20
18
  var _colors = require("../Identity/colors");
21
19
 
@@ -59,7 +57,7 @@ var filterThemeProps = function filterThemeProps(props) {
59
57
  };
60
58
 
61
59
  var ThemeProvider = function ThemeProvider(props) {
62
- return (0, _core.jsx)(_emotionTheming.ThemeProvider, (0, _extends2["default"])({
60
+ return (0, _react.jsx)(_react.ThemeProvider, (0, _extends2["default"])({
63
61
  theme: themes[props.themeId]
64
62
  }, filterThemeProps(props)));
65
63
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["Theme.tsx"],"names":["THEME_ID","themes","LIGHT","Input","backgroundColor","COLOR","WHITE","backgroundColorDisabled","DISABLED","placeholderColor","GRAY_DARKEN_24","general","GRAY_LIGHTEN_88","color","TEXT","DARK","BLACK_LIGHTEN_24","BLACK","filterThemeProps","props","ThemeProvider","themeId"],"mappings":";;;;;;;;;;;;;AAoBA;;AACA;;AACA;;AAEA;;AACA;;;;IAEYA,Q;;;WAAAA,Q;AAAAA,EAAAA,Q;AAAAA,EAAAA,Q;GAAAA,Q,wBAAAA,Q;;AAiBL,IAAMC,MAAsC,4DAChDD,QAAQ,CAACE,KADuC,EAC/B;AAChBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,eAAe,EAAEC,cAAMC,KADlB;AAELC,IAAAA,uBAAuB,EAAEF,cAAMG,QAF1B;AAGLC,IAAAA,gBAAgB,EAAEJ,cAAMK;AAHnB,GADS;AAMhBC,EAAAA,OAAO,EAAE;AACPP,IAAAA,eAAe,EAAEC,cAAMO,eADhB;AAEPC,IAAAA,KAAK,EAAER,cAAMS;AAFN;AANO,CAD+B,6CAYhDd,QAAQ,CAACe,IAZuC,EAYhC;AACfZ,EAAAA,KAAK,EAAE;AACLC,IAAAA,eAAe,EAAEC,cAAMW,gBADlB;AAELT,IAAAA,uBAAuB,EAAEF,cAAMG,QAF1B;AAGLC,IAAAA,gBAAgB,EAAEJ,cAAMO;AAHnB,GADQ;AAMfD,EAAAA,OAAO,EAAE;AACPP,IAAAA,eAAe,EAAEC,cAAMY,KADhB;AAEPJ,IAAAA,KAAK,EAAER,cAAMC;AAFN;AANM,CAZgC,WAA5C;;;AA6BP,IAAMY,gBAAgB,GAAG,SAAnBA,gBAAmB,CAACC,KAAD;AAAA,SAAuB,uBAAYA,KAAZ,EAAmB,CAAC,SAAD,CAAnB,CAAvB;AAAA,CAAzB;;AAEO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,CAACD,KAAD;AAAA,SAC3B,eAAC,6BAAD;AAAsB,IAAA,KAAK,EAAElB,MAAM,CAACkB,KAAK,CAACE,OAAP;AAAnC,KAAwDH,gBAAgB,CAACC,KAAD,CAAxE,EAD2B;AAAA,CAAtB","sourcesContent":["/*\n * Wire\n * Copyright (C) 2019 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {jsx} from '@emotion/core';\nimport React from 'react';\nimport {ThemeProvider as EmotionThemeProvider} from 'emotion-theming';\n\nimport {COLOR} from '../Identity/colors';\nimport {filterProps} from '../util';\n\nexport enum THEME_ID {\n DARK = 'THEME_DARK',\n LIGHT = 'THEME_LIGHT',\n}\n\nexport interface Theme {\n general: {\n backgroundColor: string;\n color: string;\n };\n Input: {\n backgroundColor: string;\n backgroundColorDisabled: string;\n placeholderColor: string;\n };\n}\n\nexport const themes: {[themeId in THEME_ID]: Theme} = {\n [THEME_ID.LIGHT]: {\n Input: {\n backgroundColor: COLOR.WHITE,\n backgroundColorDisabled: COLOR.DISABLED,\n placeholderColor: COLOR.GRAY_DARKEN_24,\n },\n general: {\n backgroundColor: COLOR.GRAY_LIGHTEN_88,\n color: COLOR.TEXT,\n },\n },\n [THEME_ID.DARK]: {\n Input: {\n backgroundColor: COLOR.BLACK_LIGHTEN_24,\n backgroundColorDisabled: COLOR.DISABLED,\n placeholderColor: COLOR.GRAY_LIGHTEN_88,\n },\n general: {\n backgroundColor: COLOR.BLACK,\n color: COLOR.WHITE,\n },\n },\n};\n\nexport interface ThemeProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n themeId: THEME_ID;\n}\n\nconst filterThemeProps = (props: ThemeProps) => filterProps(props, ['themeId']);\n\nexport const ThemeProvider = (props: ThemeProps) => (\n <EmotionThemeProvider theme={themes[props.themeId]} {...filterThemeProps(props)} />\n);\n"],"file":"Theme.js"}
1
+ {"version":3,"sources":["Theme.tsx"],"names":["THEME_ID","themes","LIGHT","Input","backgroundColor","COLOR","WHITE","backgroundColorDisabled","DISABLED","placeholderColor","GRAY_DARKEN_24","general","GRAY_LIGHTEN_88","color","TEXT","DARK","BLACK_LIGHTEN_24","BLACK","filterThemeProps","props","ThemeProvider","themeId"],"mappings":";;;;;;;;;;;;;AAoBA;;AACA;;AAEA;;AACA;;;;IAEYA,Q;;;WAAAA,Q;AAAAA,EAAAA,Q;AAAAA,EAAAA,Q;GAAAA,Q,wBAAAA,Q;;AAiBL,IAAMC,MAAsC,4DAChDD,QAAQ,CAACE,KADuC,EAC/B;AAChBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,eAAe,EAAEC,cAAMC,KADlB;AAELC,IAAAA,uBAAuB,EAAEF,cAAMG,QAF1B;AAGLC,IAAAA,gBAAgB,EAAEJ,cAAMK;AAHnB,GADS;AAMhBC,EAAAA,OAAO,EAAE;AACPP,IAAAA,eAAe,EAAEC,cAAMO,eADhB;AAEPC,IAAAA,KAAK,EAAER,cAAMS;AAFN;AANO,CAD+B,6CAYhDd,QAAQ,CAACe,IAZuC,EAYhC;AACfZ,EAAAA,KAAK,EAAE;AACLC,IAAAA,eAAe,EAAEC,cAAMW,gBADlB;AAELT,IAAAA,uBAAuB,EAAEF,cAAMG,QAF1B;AAGLC,IAAAA,gBAAgB,EAAEJ,cAAMO;AAHnB,GADQ;AAMfD,EAAAA,OAAO,EAAE;AACPP,IAAAA,eAAe,EAAEC,cAAMY,KADhB;AAEPJ,IAAAA,KAAK,EAAER,cAAMC;AAFN;AANM,CAZgC,WAA5C;;;AA6BP,IAAMY,gBAAgB,GAAG,SAAnBA,gBAAmB,CAACC,KAAD;AAAA,SAAuB,uBAAYA,KAAZ,EAAmB,CAAC,SAAD,CAAnB,CAAvB;AAAA,CAAzB;;AAEO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,CAACD,KAAD;AAAA,SAC3B,gBAAC,oBAAD;AAAsB,IAAA,KAAK,EAAElB,MAAM,CAACkB,KAAK,CAACE,OAAP;AAAnC,KAAwDH,gBAAgB,CAACC,KAAD,CAAxE,EAD2B;AAAA,CAAtB","sourcesContent":["/*\n * Wire\n * Copyright (C) 2019 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {jsx, ThemeProvider as EmotionThemeProvider} from '@emotion/react';\nimport React from 'react';\n\nimport {COLOR} from '../Identity/colors';\nimport {filterProps} from '../util';\n\nexport enum THEME_ID {\n DARK = 'THEME_DARK',\n LIGHT = 'THEME_LIGHT',\n}\n\nexport interface Theme {\n general: {\n backgroundColor: string;\n color: string;\n };\n Input: {\n backgroundColor: string;\n backgroundColorDisabled: string;\n placeholderColor: string;\n };\n}\n\nexport const themes: {[themeId in THEME_ID]: Theme} = {\n [THEME_ID.LIGHT]: {\n Input: {\n backgroundColor: COLOR.WHITE,\n backgroundColorDisabled: COLOR.DISABLED,\n placeholderColor: COLOR.GRAY_DARKEN_24,\n },\n general: {\n backgroundColor: COLOR.GRAY_LIGHTEN_88,\n color: COLOR.TEXT,\n },\n },\n [THEME_ID.DARK]: {\n Input: {\n backgroundColor: COLOR.BLACK_LIGHTEN_24,\n backgroundColorDisabled: COLOR.DISABLED,\n placeholderColor: COLOR.GRAY_LIGHTEN_88,\n },\n general: {\n backgroundColor: COLOR.BLACK,\n color: COLOR.WHITE,\n },\n },\n};\n\nexport interface ThemeProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n themeId: THEME_ID;\n}\n\nconst filterThemeProps = (props: ThemeProps) => filterProps(props, ['themeId']);\n\nexport const ThemeProvider = (props: ThemeProps) => (\n <EmotionThemeProvider theme={themes[props.themeId]} {...filterThemeProps(props)} />\n);\n"],"file":"Theme.js"}