@wireapp/react-ui-kit 8.17.2 → 8.17.4

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 (485) hide show
  1. package/package.json +12 -17
  2. package/src/Form/Button.d.js.map +1 -1
  3. package/src/Form/Button.js +36 -57
  4. package/src/Form/Button.js.map +1 -1
  5. package/src/Form/ButtonLink.d.js.map +1 -1
  6. package/src/Form/ButtonLink.js +12 -30
  7. package/src/Form/ButtonLink.js.map +1 -1
  8. package/src/Form/Checkbox.d.js.map +1 -1
  9. package/src/Form/Checkbox.js +38 -57
  10. package/src/Form/Checkbox.js.map +1 -1
  11. package/src/Form/CodeInput.d.js.map +1 -1
  12. package/src/Form/CodeInput.js +24 -59
  13. package/src/Form/CodeInput.js.map +1 -1
  14. package/src/Form/DropFileInput.d.js.map +1 -1
  15. package/src/Form/DropFileInput.js +26 -60
  16. package/src/Form/DropFileInput.js.map +1 -1
  17. package/src/Form/ErrorMessage.d.js.map +1 -1
  18. package/src/Form/ErrorMessage.js +14 -34
  19. package/src/Form/ErrorMessage.js.map +1 -1
  20. package/src/Form/Form.d.js.map +1 -1
  21. package/src/Form/Form.js +3 -11
  22. package/src/Form/Form.js.map +1 -1
  23. package/src/Form/Input.d.js.map +1 -1
  24. package/src/Form/Input.js +32 -52
  25. package/src/Form/Input.js.map +1 -1
  26. package/src/Form/InputBlock.d.js.map +1 -1
  27. package/src/Form/InputBlock.js +6 -38
  28. package/src/Form/InputBlock.js.map +1 -1
  29. package/src/Form/InputLabel.d.js.map +1 -1
  30. package/src/Form/InputLabel.js +9 -17
  31. package/src/Form/InputLabel.js.map +1 -1
  32. package/src/Form/InputSubmitCombo.d.js.map +1 -1
  33. package/src/Form/InputSubmitCombo.js +11 -25
  34. package/src/Form/InputSubmitCombo.js.map +1 -1
  35. package/src/Form/RangeInput.d.js.map +1 -1
  36. package/src/Form/RangeInput.js +19 -30
  37. package/src/Form/RangeInput.js.map +1 -1
  38. package/src/Form/RangeInput.styles.d.js.map +1 -1
  39. package/src/Form/RangeInput.styles.js +5 -18
  40. package/src/Form/RangeInput.styles.js.map +1 -1
  41. package/src/Form/RoundIconButton.d.js.map +1 -1
  42. package/src/Form/RoundIconButton.js +10 -25
  43. package/src/Form/RoundIconButton.js.map +1 -1
  44. package/src/Form/Select.d.js.map +1 -1
  45. package/src/Form/Select.js +23 -37
  46. package/src/Form/Select.js.map +1 -1
  47. package/src/Form/SelectComponents.d.js.map +1 -1
  48. package/src/Form/SelectComponents.js +21 -51
  49. package/src/Form/SelectComponents.js.map +1 -1
  50. package/src/Form/SelectStyles.d.js.map +1 -1
  51. package/src/Form/SelectStyles.js +7 -15
  52. package/src/Form/SelectStyles.js.map +1 -1
  53. package/src/Form/ShakeBox.d.js.map +1 -1
  54. package/src/Form/ShakeBox.js +18 -50
  55. package/src/Form/ShakeBox.js.map +1 -1
  56. package/src/Form/Switch.d.js.map +1 -1
  57. package/src/Form/Switch.js +20 -32
  58. package/src/Form/Switch.js.map +1 -1
  59. package/src/Form/TextArea.d.js.map +1 -1
  60. package/src/Form/TextArea.js +12 -26
  61. package/src/Form/TextArea.js.map +1 -1
  62. package/src/Form/Tooltip.d.js.map +1 -1
  63. package/src/Form/Tooltip.js +16 -27
  64. package/src/Form/Tooltip.js.map +1 -1
  65. package/src/Form/index.d.js +0 -36
  66. package/src/Form/index.d.js.map +1 -1
  67. package/src/Form/index.js +0 -36
  68. package/src/Form/index.js.map +1 -1
  69. package/src/GlobalCssVariables.d.js.map +1 -1
  70. package/src/GlobalCssVariables.js +1 -5
  71. package/src/GlobalCssVariables.js.map +1 -1
  72. package/src/GlobalStyle.d.js.map +1 -1
  73. package/src/GlobalStyle.js +4 -14
  74. package/src/GlobalStyle.js.map +1 -1
  75. package/src/Icon/AddPeopleIcon.d.js.map +1 -1
  76. package/src/Icon/AddPeopleIcon.js +4 -30
  77. package/src/Icon/AddPeopleIcon.js.map +1 -1
  78. package/src/Icon/ArchiveIcon.d.js.map +1 -1
  79. package/src/Icon/ArchiveIcon.js +2 -29
  80. package/src/Icon/ArchiveIcon.js.map +1 -1
  81. package/src/Icon/ArrowDown.d.js.map +1 -1
  82. package/src/Icon/ArrowDown.js +5 -28
  83. package/src/Icon/ArrowDown.js.map +1 -1
  84. package/src/Icon/ArrowIcon.d.js.map +1 -1
  85. package/src/Icon/ArrowIcon.js +7 -15
  86. package/src/Icon/ArrowIcon.js.map +1 -1
  87. package/src/Icon/AttachmentIcon.d.js.map +1 -1
  88. package/src/Icon/AttachmentIcon.js +2 -29
  89. package/src/Icon/AttachmentIcon.js.map +1 -1
  90. package/src/Icon/AudioVideoIcon.d.js.map +1 -1
  91. package/src/Icon/AudioVideoIcon.js +2 -29
  92. package/src/Icon/AudioVideoIcon.js.map +1 -1
  93. package/src/Icon/BlockIcon.d.js.map +1 -1
  94. package/src/Icon/BlockIcon.js +2 -29
  95. package/src/Icon/BlockIcon.js.map +1 -1
  96. package/src/Icon/Brand/AndroidIcon.d.js.map +1 -1
  97. package/src/Icon/Brand/AndroidIcon.js +2 -29
  98. package/src/Icon/Brand/AndroidIcon.js.map +1 -1
  99. package/src/Icon/Brand/AppleIcon.d.js.map +1 -1
  100. package/src/Icon/Brand/AppleIcon.js +2 -29
  101. package/src/Icon/Brand/AppleIcon.js.map +1 -1
  102. package/src/Icon/Brand/ChromeIcon.d.js.map +1 -1
  103. package/src/Icon/Brand/ChromeIcon.js +2 -29
  104. package/src/Icon/Brand/ChromeIcon.js.map +1 -1
  105. package/src/Icon/Brand/FacebookIcon.d.js.map +1 -1
  106. package/src/Icon/Brand/FacebookIcon.js +2 -29
  107. package/src/Icon/Brand/FacebookIcon.js.map +1 -1
  108. package/src/Icon/Brand/GitHubIcon.d.js.map +1 -1
  109. package/src/Icon/Brand/GitHubIcon.js +2 -29
  110. package/src/Icon/Brand/GitHubIcon.js.map +1 -1
  111. package/src/Icon/Brand/LinkedInIcon.d.js.map +1 -1
  112. package/src/Icon/Brand/LinkedInIcon.js +2 -29
  113. package/src/Icon/Brand/LinkedInIcon.js.map +1 -1
  114. package/src/Icon/Brand/LinuxIcon.d.js.map +1 -1
  115. package/src/Icon/Brand/LinuxIcon.js +2 -29
  116. package/src/Icon/Brand/LinuxIcon.js.map +1 -1
  117. package/src/Icon/Brand/MicrosoftIcon.d.js.map +1 -1
  118. package/src/Icon/Brand/MicrosoftIcon.js +2 -29
  119. package/src/Icon/Brand/MicrosoftIcon.js.map +1 -1
  120. package/src/Icon/Brand/TwitterIcon.d.js.map +1 -1
  121. package/src/Icon/Brand/TwitterIcon.js +2 -29
  122. package/src/Icon/Brand/TwitterIcon.js.map +1 -1
  123. package/src/Icon/CallIcon.d.js.map +1 -1
  124. package/src/Icon/CallIcon.js +2 -29
  125. package/src/Icon/CallIcon.js.map +1 -1
  126. package/src/Icon/CamIcon.d.js.map +1 -1
  127. package/src/Icon/CamIcon.js +2 -29
  128. package/src/Icon/CamIcon.js.map +1 -1
  129. package/src/Icon/CameraIcon.d.js.map +1 -1
  130. package/src/Icon/CameraIcon.js +4 -30
  131. package/src/Icon/CameraIcon.js.map +1 -1
  132. package/src/Icon/CheckIcon.d.js.map +1 -1
  133. package/src/Icon/CheckIcon.js +2 -29
  134. package/src/Icon/CheckIcon.js.map +1 -1
  135. package/src/Icon/CheckRoundIcon.d.js.map +1 -1
  136. package/src/Icon/CheckRoundIcon.js +2 -29
  137. package/src/Icon/CheckRoundIcon.js.map +1 -1
  138. package/src/Icon/ChevronIcon.d.js.map +1 -1
  139. package/src/Icon/ChevronIcon.js +6 -15
  140. package/src/Icon/ChevronIcon.js.map +1 -1
  141. package/src/Icon/CloseIcon.d.js.map +1 -1
  142. package/src/Icon/CloseIcon.js +2 -29
  143. package/src/Icon/CloseIcon.js.map +1 -1
  144. package/src/Icon/CopyIcon.d.js.map +1 -1
  145. package/src/Icon/CopyIcon.js +2 -29
  146. package/src/Icon/CopyIcon.js.map +1 -1
  147. package/src/Icon/DeviceIcon.d.js.map +1 -1
  148. package/src/Icon/DeviceIcon.js +2 -29
  149. package/src/Icon/DeviceIcon.js.map +1 -1
  150. package/src/Icon/DownloadIcon.d.js.map +1 -1
  151. package/src/Icon/DownloadIcon.js +2 -29
  152. package/src/Icon/DownloadIcon.js.map +1 -1
  153. package/src/Icon/EditDocumentIcon.d.js.map +1 -1
  154. package/src/Icon/EditDocumentIcon.js +4 -30
  155. package/src/Icon/EditDocumentIcon.js.map +1 -1
  156. package/src/Icon/EditIcon.d.js.map +1 -1
  157. package/src/Icon/EditIcon.js +2 -29
  158. package/src/Icon/EditIcon.js.map +1 -1
  159. package/src/Icon/EnterIcon.d.js.map +1 -1
  160. package/src/Icon/EnterIcon.js +2 -29
  161. package/src/Icon/EnterIcon.js.map +1 -1
  162. package/src/Icon/ErrorIcon.d.js.map +1 -1
  163. package/src/Icon/ErrorIcon.js +2 -29
  164. package/src/Icon/ErrorIcon.js.map +1 -1
  165. package/src/Icon/FileIcon.d.js.map +1 -1
  166. package/src/Icon/FileIcon.js +2 -29
  167. package/src/Icon/FileIcon.js.map +1 -1
  168. package/src/Icon/GifIcon.d.js.map +1 -1
  169. package/src/Icon/GifIcon.js +2 -29
  170. package/src/Icon/GifIcon.js.map +1 -1
  171. package/src/Icon/GridIcon.d.js.map +1 -1
  172. package/src/Icon/GridIcon.js +4 -30
  173. package/src/Icon/GridIcon.js.map +1 -1
  174. package/src/Icon/GroupIcon.d.js.map +1 -1
  175. package/src/Icon/GroupIcon.js +2 -29
  176. package/src/Icon/GroupIcon.js.map +1 -1
  177. package/src/Icon/HangupIcon.d.js.map +1 -1
  178. package/src/Icon/HangupIcon.js +2 -29
  179. package/src/Icon/HangupIcon.js.map +1 -1
  180. package/src/Icon/HideIcon.d.js.map +1 -1
  181. package/src/Icon/HideIcon.js +2 -29
  182. package/src/Icon/HideIcon.js.map +1 -1
  183. package/src/Icon/ImageIcon.d.js.map +1 -1
  184. package/src/Icon/ImageIcon.js +2 -29
  185. package/src/Icon/ImageIcon.js.map +1 -1
  186. package/src/Icon/InfoIcon.d.js.map +1 -1
  187. package/src/Icon/InfoIcon.js +2 -29
  188. package/src/Icon/InfoIcon.js.map +1 -1
  189. package/src/Icon/InviteIcon.d.js.map +1 -1
  190. package/src/Icon/InviteIcon.js +2 -29
  191. package/src/Icon/InviteIcon.js.map +1 -1
  192. package/src/Icon/LeaveIcon.d.js.map +1 -1
  193. package/src/Icon/LeaveIcon.js +2 -29
  194. package/src/Icon/LeaveIcon.js.map +1 -1
  195. package/src/Icon/LinkIcon.d.js.map +1 -1
  196. package/src/Icon/LinkIcon.js +4 -30
  197. package/src/Icon/LinkIcon.js.map +1 -1
  198. package/src/Icon/ListIcon.d.js.map +1 -1
  199. package/src/Icon/ListIcon.js +2 -29
  200. package/src/Icon/ListIcon.js.map +1 -1
  201. package/src/Icon/LockIcon.d.js.map +1 -1
  202. package/src/Icon/LockIcon.js +2 -29
  203. package/src/Icon/LockIcon.js.map +1 -1
  204. package/src/Icon/MessageIcon.d.js.map +1 -1
  205. package/src/Icon/MessageIcon.js +2 -29
  206. package/src/Icon/MessageIcon.js.map +1 -1
  207. package/src/Icon/MinusIcon.d.js.map +1 -1
  208. package/src/Icon/MinusIcon.js +2 -29
  209. package/src/Icon/MinusIcon.js.map +1 -1
  210. package/src/Icon/MoreIcon.d.js.map +1 -1
  211. package/src/Icon/MoreIcon.js +2 -29
  212. package/src/Icon/MoreIcon.js.map +1 -1
  213. package/src/Icon/MuteIcon.d.js.map +1 -1
  214. package/src/Icon/MuteIcon.js +2 -29
  215. package/src/Icon/MuteIcon.js.map +1 -1
  216. package/src/Icon/NotificationIcon.d.js.map +1 -1
  217. package/src/Icon/NotificationIcon.js +2 -29
  218. package/src/Icon/NotificationIcon.js.map +1 -1
  219. package/src/Icon/NotificationOffIcon.d.js.map +1 -1
  220. package/src/Icon/NotificationOffIcon.js +2 -29
  221. package/src/Icon/NotificationOffIcon.js.map +1 -1
  222. package/src/Icon/OptionsIcon.d.js.map +1 -1
  223. package/src/Icon/OptionsIcon.js +2 -29
  224. package/src/Icon/OptionsIcon.js.map +1 -1
  225. package/src/Icon/PeopleIcon.d.js.map +1 -1
  226. package/src/Icon/PeopleIcon.js +4 -30
  227. package/src/Icon/PeopleIcon.js.map +1 -1
  228. package/src/Icon/PingIcon.d.js.map +1 -1
  229. package/src/Icon/PingIcon.js +2 -29
  230. package/src/Icon/PingIcon.js.map +1 -1
  231. package/src/Icon/PlaneIcon.d.js.map +1 -1
  232. package/src/Icon/PlaneIcon.js +2 -29
  233. package/src/Icon/PlaneIcon.js.map +1 -1
  234. package/src/Icon/PlusIcon.d.js.map +1 -1
  235. package/src/Icon/PlusIcon.js +2 -29
  236. package/src/Icon/PlusIcon.js.map +1 -1
  237. package/src/Icon/ProfileIcon.d.js.map +1 -1
  238. package/src/Icon/ProfileIcon.js +2 -29
  239. package/src/Icon/ProfileIcon.js.map +1 -1
  240. package/src/Icon/RecordBoldIcon.d.js.map +1 -1
  241. package/src/Icon/RecordBoldIcon.js +6 -15
  242. package/src/Icon/RecordBoldIcon.js.map +1 -1
  243. package/src/Icon/RecordIcon.d.js.map +1 -1
  244. package/src/Icon/RecordIcon.js +2 -29
  245. package/src/Icon/RecordIcon.js.map +1 -1
  246. package/src/Icon/RecordPendingIcon.d.js.map +1 -1
  247. package/src/Icon/RecordPendingIcon.js +2 -29
  248. package/src/Icon/RecordPendingIcon.js.map +1 -1
  249. package/src/Icon/ReloadIcon.d.js.map +1 -1
  250. package/src/Icon/ReloadIcon.js +2 -29
  251. package/src/Icon/ReloadIcon.js.map +1 -1
  252. package/src/Icon/SVGIcon.d.js.map +1 -1
  253. package/src/Icon/SVGIcon.js +16 -26
  254. package/src/Icon/SVGIcon.js.map +1 -1
  255. package/src/Icon/ScreenshareIcon.d.js.map +1 -1
  256. package/src/Icon/ScreenshareIcon.js +2 -29
  257. package/src/Icon/ScreenshareIcon.js.map +1 -1
  258. package/src/Icon/SearchIcon.d.js.map +1 -1
  259. package/src/Icon/SearchIcon.js +2 -29
  260. package/src/Icon/SearchIcon.js.map +1 -1
  261. package/src/Icon/ServicesIcon.d.js.map +1 -1
  262. package/src/Icon/ServicesIcon.js +2 -29
  263. package/src/Icon/ServicesIcon.js.map +1 -1
  264. package/src/Icon/SettingsIcon.d.js.map +1 -1
  265. package/src/Icon/SettingsIcon.js +2 -29
  266. package/src/Icon/SettingsIcon.js.map +1 -1
  267. package/src/Icon/ShowIcon.d.js.map +1 -1
  268. package/src/Icon/ShowIcon.js +2 -29
  269. package/src/Icon/ShowIcon.js.map +1 -1
  270. package/src/Icon/SignIcon.d.js.map +1 -1
  271. package/src/Icon/SignIcon.js +2 -29
  272. package/src/Icon/SignIcon.js.map +1 -1
  273. package/src/Icon/SpeakerIcon.d.js.map +1 -1
  274. package/src/Icon/SpeakerIcon.js +2 -29
  275. package/src/Icon/SpeakerIcon.js.map +1 -1
  276. package/src/Icon/SupportIcon.d.js.map +1 -1
  277. package/src/Icon/SupportIcon.js +2 -29
  278. package/src/Icon/SupportIcon.js.map +1 -1
  279. package/src/Icon/TeamIcon.d.js.map +1 -1
  280. package/src/Icon/TeamIcon.js +2 -29
  281. package/src/Icon/TeamIcon.js.map +1 -1
  282. package/src/Icon/TimedIcon.d.js.map +1 -1
  283. package/src/Icon/TimedIcon.js +2 -29
  284. package/src/Icon/TimedIcon.js.map +1 -1
  285. package/src/Icon/TrashCrossIcon.d.js.map +1 -1
  286. package/src/Icon/TrashCrossIcon.js +2 -29
  287. package/src/Icon/TrashCrossIcon.js.map +1 -1
  288. package/src/Icon/TrashIcon.d.js.map +1 -1
  289. package/src/Icon/TrashIcon.js +2 -29
  290. package/src/Icon/TrashIcon.js.map +1 -1
  291. package/src/Icon/TriangleIcon.d.js.map +1 -1
  292. package/src/Icon/TriangleIcon.js +6 -14
  293. package/src/Icon/TriangleIcon.js.map +1 -1
  294. package/src/Icon/UploadIcon.d.js.map +1 -1
  295. package/src/Icon/UploadIcon.js +2 -29
  296. package/src/Icon/UploadIcon.js.map +1 -1
  297. package/src/Icon/WireIcon.d.js.map +1 -1
  298. package/src/Icon/WireIcon.js +2 -29
  299. package/src/Icon/WireIcon.js.map +1 -1
  300. package/src/Icon/index.d.js +0 -146
  301. package/src/Icon/index.d.js.map +1 -1
  302. package/src/Icon/index.js +0 -146
  303. package/src/Icon/index.js.map +1 -1
  304. package/src/Identity/Animation.d.js.map +1 -1
  305. package/src/Identity/Animation.js +50 -76
  306. package/src/Identity/Animation.js.map +1 -1
  307. package/src/Identity/Avatar.d.js.map +1 -1
  308. package/src/Identity/Avatar.js +26 -61
  309. package/src/Identity/Avatar.js.map +1 -1
  310. package/src/Identity/AvatarGrid.d.js.map +1 -1
  311. package/src/Identity/AvatarGrid.js +19 -39
  312. package/src/Identity/AvatarGrid.js.map +1 -1
  313. package/src/Identity/Logo.d.js.map +1 -1
  314. package/src/Identity/Logo.js +10 -24
  315. package/src/Identity/Logo.js.map +1 -1
  316. package/src/Identity/colors-v2.d.js.map +1 -1
  317. package/src/Identity/colors-v2.js +5 -15
  318. package/src/Identity/colors-v2.js.map +1 -1
  319. package/src/Identity/colors.d.js.map +1 -1
  320. package/src/Identity/colors.js +16 -27
  321. package/src/Identity/colors.js.map +1 -1
  322. package/src/Identity/index.d.js +0 -12
  323. package/src/Identity/index.d.js.map +1 -1
  324. package/src/Identity/index.js +0 -12
  325. package/src/Identity/index.js.map +1 -1
  326. package/src/Identity/motions.d.js.map +1 -1
  327. package/src/Identity/motions.js +8 -14
  328. package/src/Identity/motions.js.map +1 -1
  329. package/src/Layout/Box.d.js.map +1 -1
  330. package/src/Layout/Box.js +4 -33
  331. package/src/Layout/Box.js.map +1 -1
  332. package/src/Layout/Column.d.js.map +1 -1
  333. package/src/Layout/Column.js +8 -44
  334. package/src/Layout/Column.js.map +1 -1
  335. package/src/Layout/Container.d.js.map +1 -1
  336. package/src/Layout/Container.js +15 -58
  337. package/src/Layout/Container.js.map +1 -1
  338. package/src/Layout/Content.d.js.map +1 -1
  339. package/src/Layout/Content.js +4 -33
  340. package/src/Layout/Content.js.map +1 -1
  341. package/src/Layout/FlexBox.d.js.map +1 -1
  342. package/src/Layout/FlexBox.js +11 -42
  343. package/src/Layout/FlexBox.js.map +1 -1
  344. package/src/Layout/Footer.d.js.map +1 -1
  345. package/src/Layout/Footer.js +2 -6
  346. package/src/Layout/Footer.js.map +1 -1
  347. package/src/Layout/Header.d.js.map +1 -1
  348. package/src/Layout/Header.js +4 -32
  349. package/src/Layout/Header.js.map +1 -1
  350. package/src/Layout/MatchMedia.d.js.map +1 -1
  351. package/src/Layout/MatchMedia.js +22 -72
  352. package/src/Layout/MatchMedia.js.map +1 -1
  353. package/src/Layout/Spacer.d.js.map +1 -1
  354. package/src/Layout/Spacer.js +5 -8
  355. package/src/Layout/Spacer.js.map +1 -1
  356. package/src/Layout/StyledApp.d.js.map +1 -1
  357. package/src/Layout/StyledApp.js +10 -23
  358. package/src/Layout/StyledApp.js.map +1 -1
  359. package/src/Layout/Theme.d.js.map +1 -1
  360. package/src/Layout/Theme.js +8 -21
  361. package/src/Layout/Theme.js.map +1 -1
  362. package/src/Layout/headerMenu/HeaderMenu.d.js.map +1 -1
  363. package/src/Layout/headerMenu/HeaderMenu.js +19 -38
  364. package/src/Layout/headerMenu/HeaderMenu.js.map +1 -1
  365. package/src/Layout/headerMenu/HeaderSubMenu.d.js.map +1 -1
  366. package/src/Layout/headerMenu/HeaderSubMenu.js +13 -33
  367. package/src/Layout/headerMenu/HeaderSubMenu.js.map +1 -1
  368. package/src/Layout/headerMenu/MenuContent.d.js.map +1 -1
  369. package/src/Layout/headerMenu/MenuContent.js +6 -20
  370. package/src/Layout/headerMenu/MenuContent.js.map +1 -1
  371. package/src/Layout/headerMenu/MenuItems.d.js.map +1 -1
  372. package/src/Layout/headerMenu/MenuItems.js +6 -38
  373. package/src/Layout/headerMenu/MenuItems.js.map +1 -1
  374. package/src/Layout/headerMenu/MenuLink.d.js.map +1 -1
  375. package/src/Layout/headerMenu/MenuLink.js +21 -40
  376. package/src/Layout/headerMenu/MenuLink.js.map +1 -1
  377. package/src/Layout/headerMenu/MenuOpenButton.d.js.map +1 -1
  378. package/src/Layout/headerMenu/MenuOpenButton.js +7 -40
  379. package/src/Layout/headerMenu/MenuOpenButton.js.map +1 -1
  380. package/src/Layout/headerMenu/MenuScrollableItems.d.js.map +1 -1
  381. package/src/Layout/headerMenu/MenuScrollableItems.js +6 -36
  382. package/src/Layout/headerMenu/MenuScrollableItems.js.map +1 -1
  383. package/src/Layout/headerMenu/MenuSubLink.d.js.map +1 -1
  384. package/src/Layout/headerMenu/MenuSubLink.js +8 -23
  385. package/src/Layout/headerMenu/MenuSubLink.js.map +1 -1
  386. package/src/Layout/headerMenu/index.d.js +0 -16
  387. package/src/Layout/headerMenu/index.d.js.map +1 -1
  388. package/src/Layout/headerMenu/index.js +0 -16
  389. package/src/Layout/headerMenu/index.js.map +1 -1
  390. package/src/Layout/index.d.js +0 -26
  391. package/src/Layout/index.d.js.map +1 -1
  392. package/src/Layout/index.js +0 -26
  393. package/src/Layout/index.js.map +1 -1
  394. package/src/Layout/sizes.d.js.map +1 -1
  395. package/src/Layout/sizes.js +2 -2
  396. package/src/Layout/sizes.js.map +1 -1
  397. package/src/Menu/MenuModal.d.js.map +1 -1
  398. package/src/Menu/MenuModal.js +21 -44
  399. package/src/Menu/MenuModal.js.map +1 -1
  400. package/src/Menu/TabBar.d.js.map +1 -1
  401. package/src/Menu/TabBar.js +31 -50
  402. package/src/Menu/TabBar.js.map +1 -1
  403. package/src/Menu/index.d.js +0 -4
  404. package/src/Menu/index.d.js.map +1 -1
  405. package/src/Menu/index.js +0 -4
  406. package/src/Menu/index.js.map +1 -1
  407. package/src/Misc/ButtonGroup.d.js.map +1 -1
  408. package/src/Misc/ButtonGroup.js +10 -25
  409. package/src/Misc/ButtonGroup.js.map +1 -1
  410. package/src/Misc/IconButton.d.js.map +1 -1
  411. package/src/Misc/IconButton.js +13 -31
  412. package/src/Misc/IconButton.js.map +1 -1
  413. package/src/Misc/IsInViewport.d.js.map +1 -1
  414. package/src/Misc/IsInViewport.js +18 -29
  415. package/src/Misc/IsInViewport.js.map +1 -1
  416. package/src/Misc/Loading.d.js.map +1 -1
  417. package/src/Misc/Loading.js +13 -24
  418. package/src/Misc/Loading.js.map +1 -1
  419. package/src/Misc/Pagination.d.js.map +1 -1
  420. package/src/Misc/Pagination.js +18 -40
  421. package/src/Misc/Pagination.js.map +1 -1
  422. package/src/Misc/Pill.d.js.map +1 -1
  423. package/src/Misc/Pill.js +11 -30
  424. package/src/Misc/Pill.js.map +1 -1
  425. package/src/Misc/childrenWithDefaultProps.d.js.map +1 -1
  426. package/src/Misc/childrenWithDefaultProps.js +4 -13
  427. package/src/Misc/childrenWithDefaultProps.js.map +1 -1
  428. package/src/Misc/index.d.js +0 -18
  429. package/src/Misc/index.d.js.map +1 -1
  430. package/src/Misc/index.js +0 -18
  431. package/src/Misc/index.js.map +1 -1
  432. package/src/Misc/useLongTouch.d.js.map +1 -1
  433. package/src/Misc/useLongTouch.js +3 -11
  434. package/src/Misc/useLongTouch.js.map +1 -1
  435. package/src/Misc/useTimeout.d.js.map +1 -1
  436. package/src/Misc/useTimeout.js +9 -32
  437. package/src/Misc/useTimeout.js.map +1 -1
  438. package/src/Modal/Modal.d.js.map +1 -1
  439. package/src/Modal/Modal.js +21 -50
  440. package/src/Modal/Modal.js.map +1 -1
  441. package/src/Modal/Overlay.d.js.map +1 -1
  442. package/src/Modal/Overlay.js +15 -37
  443. package/src/Modal/Overlay.js.map +1 -1
  444. package/src/Modal/index.d.js +0 -3
  445. package/src/Modal/index.d.js.map +1 -1
  446. package/src/Modal/index.js +0 -3
  447. package/src/Modal/index.js.map +1 -1
  448. package/src/Text/Heading.d.js.map +1 -1
  449. package/src/Text/Heading.js +52 -84
  450. package/src/Text/Heading.js.map +1 -1
  451. package/src/Text/Label.d.js.map +1 -1
  452. package/src/Text/Label.js +18 -35
  453. package/src/Text/Label.js.map +1 -1
  454. package/src/Text/Line.d.js.map +1 -1
  455. package/src/Text/Line.js +5 -35
  456. package/src/Text/Line.js.map +1 -1
  457. package/src/Text/Link.d.js.map +1 -1
  458. package/src/Text/Link.js +20 -39
  459. package/src/Text/Link.js.map +1 -1
  460. package/src/Text/Paragraph.d.js.map +1 -1
  461. package/src/Text/Paragraph.js +19 -37
  462. package/src/Text/Paragraph.js.map +1 -1
  463. package/src/Text/Text.d.js.map +1 -1
  464. package/src/Text/Text.js +28 -70
  465. package/src/Text/Text.js.map +1 -1
  466. package/src/Text/TextLink.d.js.map +1 -1
  467. package/src/Text/TextLink.js +16 -30
  468. package/src/Text/TextLink.js.map +1 -1
  469. package/src/Text/Title.d.js.map +1 -1
  470. package/src/Text/Title.js +17 -30
  471. package/src/Text/Title.js.map +1 -1
  472. package/src/Text/index.d.js +0 -16
  473. package/src/Text/index.d.js.map +1 -1
  474. package/src/Text/index.js +0 -16
  475. package/src/Text/index.js.map +1 -1
  476. package/src/index.d.js +0 -18
  477. package/src/index.d.js.map +1 -1
  478. package/src/index.js +0 -18
  479. package/src/index.js.map +1 -1
  480. package/src/mediaQueries.d.js.map +1 -1
  481. package/src/mediaQueries.js +15 -22
  482. package/src/mediaQueries.js.map +1 -1
  483. package/src/util.d.js.map +1 -1
  484. package/src/util.js +15 -24
  485. package/src/util.js.map +1 -1
@@ -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;AA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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
+ {"version":3,"file":"Container.js","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","filterProps","Container","React","forwardRef","ref","ContainerLG","ContainerMD","ContainerSM","ContainerXS","ContainerXXS"],"sources":["Container.tsx"],"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"],"mappings":";;;;;;AAoBA;AACA;AAEA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AAAA,CAC/E,CAAC;AAAC;AAII,IAAMM,WAAW,gBAAGH,kBAAK,CAACC,UAAU,CAAsC,UAACJ,KAAK,EAAEK,GAAG;EAAA,OAC1F,gBAAC,SAAS;IAAC,GAAG,EAAEA,GAAI;IAAC,KAAK,EAAE;EAAK,GAAKL,KAAK,EAAI;AAAA,CAChD,CAAC;AAAC;AACI,IAAMO,WAAW,gBAAGJ,kBAAK,CAACC,UAAU,CAAsC,UAACJ,KAAK,EAAEK,GAAG;EAAA,OAC1F,gBAAC,SAAS;IAAC,GAAG,EAAEA,GAAI;IAAC,KAAK,EAAE;EAAK,GAAKL,KAAK,EAAI;AAAA,CAChD,CAAC;AAAC;AACI,IAAMQ,WAAW,gBAAGL,kBAAK,CAACC,UAAU,CAAsC,UAACJ,KAAK,EAAEK,GAAG;EAAA,OAC1F,gBAAC,SAAS;IAAC,GAAG,EAAEA,GAAI;IAAC,KAAK,EAAE;EAAK,GAAKL,KAAK,EAAI;AAAA,CAChD,CAAC;AAAC;AACI,IAAMS,WAAW,gBAAGN,kBAAK,CAACC,UAAU,CAAsC,UAACJ,KAAK,EAAEK,GAAG;EAAA,OAC1F,gBAAC,SAAS;IAAC,GAAG,EAAEA,GAAI;IAAC,KAAK,EAAE;EAAK,GAAKL,KAAK,EAAI;AAAA,CAChD,CAAC;AAAC;AACI,IAAMU,YAAY,gBAAGP,kBAAK,CAACC,UAAU,CAAsC,UAACJ,KAAK,EAAEK,GAAG;EAAA,OAC3F,gBAAC,SAAS;IAAC,GAAG,EAAEA,GAAI;IAAC,KAAK,EAAE;EAAM,GAAKL,KAAK,EAAI;AAAA,CACjD,CAAC;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"Content.d.js"}
1
+ {"version":3,"file":"Content.d.js","names":[],"sources":["Content.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport React from 'react';\nimport { CSSObject, jsx } from '@emotion/react';\nexport declare type ContentProps<T = HTMLDivElement> = React.HTMLProps<T>;\nexport declare const contentStyle: <T>(props: ContentProps<T>) => CSSObject;\nexport declare const Content: (props: ContentProps<HTMLDivElement>) => jsx.JSX.Element;\n"],"mappings":""}
@@ -1,40 +1,14 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports.Content = exports.contentStyle = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
6
+ exports.contentStyle = exports.Content = void 0;
12
7
  var _react = _interopRequireDefault(require("react"));
13
-
14
8
  var _react2 = require("@emotion/react");
15
-
16
9
  var _sizes = require("./sizes");
17
-
18
- /*
19
- * Wire
20
- * Copyright (C) 2018 Wire Swiss GmbH
21
- *
22
- * This program is free software: you can redistribute it and/or modify
23
- * it under the terms of the GNU General Public License as published by
24
- * the Free Software Foundation, either version 3 of the License, or
25
- * (at your option) any later version.
26
- *
27
- * This program is distributed in the hope that it will be useful,
28
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
29
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30
- * GNU General Public License for more details.
31
- *
32
- * You should have received a copy of the GNU General Public License
33
- * along with this program. If not, see http://www.gnu.org/licenses/.
34
- *
35
- */
36
-
37
- /** @jsx jsx */
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
38
12
  var contentStyle = function contentStyle(props) {
39
13
  return {
40
14
  display: 'flex',
@@ -43,14 +17,11 @@ var contentStyle = function contentStyle(props) {
43
17
  padding: "0 ".concat(_sizes.GUTTER, "px")
44
18
  };
45
19
  };
46
-
47
20
  exports.contentStyle = contentStyle;
48
-
49
21
  var Content = function Content(props) {
50
- return (0, _react2.jsx)("div", (0, _extends2["default"])({
22
+ return (0, _react2.jsx)("div", _extends({
51
23
  css: contentStyle(props)
52
24
  }, props));
53
25
  };
54
-
55
26
  exports.Content = Content;
56
27
  //# sourceMappingURL=Content.js.map
@@ -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/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
+ {"version":3,"file":"Content.js","names":["contentStyle","props","display","flexDirection","flexGrow","padding","GUTTER","Content"],"sources":["Content.tsx"],"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"],"mappings":";;;;;;AAoBA;AACA;AAEA;AAA+B;AAAA;AAIxB,IAAMA,YAAsD,GAAG,SAAzDA,YAAsD,CAAGC,KAAK;EAAA,OAAK;IAC9EC,OAAO,EAAE,MAAM;IACfC,aAAa,EAAE,QAAQ;IACvBC,QAAQ,EAAE,CAAC;IACXC,OAAO,cAAOC,aAAM;EACtB,CAAC;AAAA,CAAC;AAAC;AAEI,IAAMC,OAAO,GAAG,SAAVA,OAAO,CAAIN,KAAmB;EAAA,OAAK;IAAK,GAAG,EAAED,YAAY,CAACC,KAAK;EAAE,GAAKA,KAAK,EAAI;AAAA;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"FlexBox.d.js"}
1
+ {"version":3,"file":"FlexBox.d.js","names":[],"sources":["FlexBox.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport { CSSObject } from '@emotion/react';\nimport { Property } from 'csstype';\nimport React from 'react';\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}\nexport declare const flexBoxStyle: <T>(props: FlexBoxProps<T>) => CSSObject;\nexport declare const filterFlexBoxProps: (props: FlexBoxProps) => Object;\nexport declare const FlexBox: React.FC<FlexBoxProps>;\n"],"mappings":""}
@@ -1,49 +1,23 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports.FlexBox = exports.filterFlexBoxProps = exports.flexBoxStyle = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
6
+ exports.flexBoxStyle = exports.filterFlexBoxProps = exports.FlexBox = void 0;
12
7
  var _react = require("@emotion/react");
13
-
14
8
  var _react2 = _interopRequireDefault(require("react"));
15
-
16
9
  var _util = require("../util");
17
-
18
- /*
19
- * Wire
20
- * Copyright (C) 2017 Wire Swiss GmbH
21
- *
22
- * This program is free software: you can redistribute it and/or modify
23
- * it under the terms of the GNU General Public License as published by
24
- * the Free Software Foundation, either version 3 of the License, or
25
- * (at your option) any later version.
26
- *
27
- * This program is distributed in the hope that it will be useful,
28
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
29
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30
- * GNU General Public License for more details.
31
- *
32
- * You should have received a copy of the GNU General Public License
33
- * along with this program. If not, see http://www.gnu.org/licenses/.
34
- *
35
- */
36
-
37
- /** @jsx jsx */
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
38
12
  var flexBoxStyle = function flexBoxStyle(_ref) {
39
13
  var _ref$align = _ref.align,
40
- align = _ref$align === void 0 ? 'flex-start' : _ref$align,
41
- _ref$column = _ref.column,
42
- column = _ref$column === void 0 ? false : _ref$column,
43
- _ref$justify = _ref.justify,
44
- justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
45
- _ref$flexWrap = _ref.flexWrap,
46
- flexWrap = _ref$flexWrap === void 0 ? 'nowrap' : _ref$flexWrap;
14
+ align = _ref$align === void 0 ? 'flex-start' : _ref$align,
15
+ _ref$column = _ref.column,
16
+ column = _ref$column === void 0 ? false : _ref$column,
17
+ _ref$justify = _ref.justify,
18
+ justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
19
+ _ref$flexWrap = _ref.flexWrap,
20
+ flexWrap = _ref$flexWrap === void 0 ? 'nowrap' : _ref$flexWrap;
47
21
  return {
48
22
  alignItems: align,
49
23
  display: 'flex',
@@ -52,21 +26,16 @@ var flexBoxStyle = function flexBoxStyle(_ref) {
52
26
  justifyContent: justify
53
27
  };
54
28
  };
55
-
56
29
  exports.flexBoxStyle = flexBoxStyle;
57
-
58
30
  var filterFlexBoxProps = function filterFlexBoxProps(props) {
59
31
  return (0, _util.filterProps)(props, ['align', 'column', 'justify', 'flexWrap']);
60
32
  };
61
-
62
33
  exports.filterFlexBoxProps = filterFlexBoxProps;
63
-
64
34
  var FlexBox = /*#__PURE__*/_react2["default"].forwardRef(function (props, ref) {
65
- return (0, _react.jsx)("div", (0, _extends2["default"])({
35
+ return (0, _react.jsx)("div", _extends({
66
36
  ref: ref,
67
37
  css: flexBoxStyle(props)
68
38
  }, filterFlexBoxProps(props)));
69
39
  });
70
-
71
40
  exports.FlexBox = FlexBox;
72
41
  //# sourceMappingURL=FlexBox.js.map
@@ -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,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 {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,"file":"FlexBox.js","names":["flexBoxStyle","align","column","justify","flexWrap","alignItems","display","flexDirection","justifyContent","filterFlexBoxProps","props","filterProps","FlexBox","React","forwardRef","ref"],"sources":["FlexBox.tsx"],"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 {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"],"mappings":";;;;;;AAoBA;AAEA;AAEA;AAAoC;AAAA;AAS7B,IAAMA,YAAsD,GAAG,SAAzDA,YAAsD;EAAA,sBACjEC,KAAK;IAALA,KAAK,2BAAG,YAAY;IAAA,mBACpBC,MAAM;IAANA,MAAM,4BAAG,KAAK;IAAA,oBACdC,OAAO;IAAPA,OAAO,6BAAG,YAAY;IAAA,qBACtBC,QAAQ;IAARA,QAAQ,8BAAG,QAAQ;EAAA,OACd;IACLC,UAAU,EAAEJ,KAAK;IACjBK,OAAO,EAAE,MAAM;IACfC,aAAa,EAAEL,MAAM,GAAG,QAAQ,GAAG,KAAK;IACxCE,QAAQ,EAAEA,QAAQ;IAClBI,cAAc,EAAEL;EAClB,CAAC;AAAA,CAAC;AAAC;AAEI,IAAMM,kBAAkB,GAAG,SAArBA,kBAAkB,CAAIC,KAAmB;EAAA,OACpD,IAAAC,iBAAW,EAACD,KAAK,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAAA;AAAC;AAE1D,IAAME,OAA+B,gBAAGC,kBAAK,CAACC,UAAU,CAA+B,UAACJ,KAAK,EAAEK,GAAG;EAAA,OACvG;IAAK,GAAG,EAAEA,GAAI;IAAC,GAAG,EAAEf,YAAY,CAACU,KAAK;EAAE,GAAKD,kBAAkB,CAACC,KAAK,CAAC,EAAI;AAAA,CAC3E,CAAC;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"Footer.d.js"}
1
+ {"version":3,"file":"Footer.d.js","names":[],"sources":["Footer.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport { jsx } from '@emotion/react';\nimport React from 'react';\ndeclare type FooterProps = React.HTMLProps<HTMLElement>;\nexport declare const Footer: (props: FooterProps) => jsx.JSX.Element;\nexport {};\n"],"mappings":""}
@@ -1,16 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.Footer = void 0;
9
-
10
7
  var _react = require("@emotion/react");
11
-
12
8
  var _react2 = _interopRequireDefault(require("react"));
13
-
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
10
  /*
15
11
  * Wire
16
12
  * Copyright (C) 2018 Wire Swiss GmbH
@@ -31,9 +27,9 @@ var _react2 = _interopRequireDefault(require("react"));
31
27
  */
32
28
 
33
29
  /** @jsx jsx */
30
+
34
31
  var Footer = function Footer(props) {
35
32
  return (0, _react.jsx)("footer", props);
36
33
  };
37
-
38
34
  exports.Footer = Footer;
39
35
  //# sourceMappingURL=Footer.js.map
@@ -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,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
+ {"version":3,"file":"Footer.js","names":["Footer","props"],"sources":["Footer.tsx"],"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"],"mappings":";;;;;;AAoBA;AACA;AAA0B;AArB1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAMO,IAAMA,MAAM,GAAG,SAATA,MAAM,CAAIC,KAAkB;EAAA,OAAK,0BAAYA,KAAK,CAAI;AAAA;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"Header.d.js"}
1
+ {"version":3,"file":"Header.d.js","names":[],"sources":["Header.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport { CSSObject, jsx } from '@emotion/react';\nimport React from 'react';\nexport declare type HeaderProps<T = HTMLHeadingElement> = React.HTMLProps<T>;\nexport declare const headerStyle: <T>(props: HeaderProps<T>) => CSSObject;\nexport declare const Header: (props: HeaderProps<HTMLHeadingElement>) => jsx.JSX.Element;\n"],"mappings":""}
@@ -1,38 +1,13 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports.Header = exports.headerStyle = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
6
+ exports.headerStyle = exports.Header = void 0;
12
7
  var _react = require("@emotion/react");
13
-
14
8
  var _react2 = _interopRequireDefault(require("react"));
15
-
16
- /*
17
- * Wire
18
- * Copyright (C) 2018 Wire Swiss GmbH
19
- *
20
- * This program is free software: you can redistribute it and/or modify
21
- * it under the terms of the GNU General Public License as published by
22
- * the Free Software Foundation, either version 3 of the License, or
23
- * (at your option) any later version.
24
- *
25
- * This program is distributed in the hope that it will be useful,
26
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
- * GNU General Public License for more details.
29
- *
30
- * You should have received a copy of the GNU General Public License
31
- * along with this program. If not, see http://www.gnu.org/licenses/.
32
- *
33
- */
34
-
35
- /** @jsx jsx */
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
36
11
  var headerStyle = function headerStyle(props) {
37
12
  return {
38
13
  alignItems: 'center',
@@ -41,14 +16,11 @@ var headerStyle = function headerStyle(props) {
41
16
  justifyContent: 'space-between'
42
17
  };
43
18
  };
44
-
45
19
  exports.headerStyle = headerStyle;
46
-
47
20
  var Header = function Header(props) {
48
- return (0, _react.jsx)("header", (0, _extends2["default"])({
21
+ return (0, _react.jsx)("header", _extends({
49
22
  css: headerStyle(props)
50
23
  }, props));
51
24
  };
52
-
53
25
  exports.Header = Header;
54
26
  //# sourceMappingURL=Header.js.map
@@ -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/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
+ {"version":3,"file":"Header.js","names":["headerStyle","props","alignItems","display","height","justifyContent","Header"],"sources":["Header.tsx"],"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"],"mappings":";;;;;;AAoBA;AACA;AAA0B;AAAA;AAInB,IAAMA,WAAoD,GAAG,SAAvDA,WAAoD,CAAGC,KAAK;EAAA,OAAK;IAC5EC,UAAU,EAAE,QAAQ;IACpBC,OAAO,EAAE,MAAM;IACfC,MAAM,EAAE,MAAM;IACdC,cAAc,EAAE;EAClB,CAAC;AAAA,CAAC;AAAC;AAEI,IAAMC,MAAM,GAAG,SAATA,MAAM,CAAIL,KAAkB;EAAA,OAAK;IAAQ,GAAG,EAAED,WAAW,CAACC,KAAK;EAAE,GAAKA,KAAK,EAAI;AAAA;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"MatchMedia.d.js"}
1
+ {"version":3,"file":"MatchMedia.d.js","names":[],"sources":["MatchMedia.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport { jsx } from '@emotion/react';\nimport React, { ReactFragment } from 'react';\nimport { QueryKeys } from '../mediaQueries';\ndeclare type Query = string | QueryKeys;\nexport interface MatchMediaProps extends React.HTMLProps<ReactFragment> {\n not?: boolean;\n query: Query;\n}\nexport declare const useMatchMedia: (query: Query) => boolean;\nexport declare const MatchMedia: React.FC<MatchMediaProps>;\nexport declare type NamedMatchMediaProps = Omit<MatchMediaProps, 'query'>;\nexport declare const IsDesktop: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport declare const IsDesktopXL: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport declare const IsMobile: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport declare const IsMobileDown: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport declare const IsMobileUp: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport declare const IsTablet: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport declare const IsTabletDown: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport declare const IsTabletUp: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport {};\n"],"mappings":""}
@@ -1,64 +1,33 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _typeof = require("@babel/runtime/helpers/typeof");
6
-
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
7
4
  Object.defineProperty(exports, "__esModule", {
8
5
  value: true
9
6
  });
10
- exports.IsTabletUp = exports.IsTabletDown = exports.IsTablet = exports.IsMobileUp = exports.IsMobileDown = exports.IsMobile = exports.IsDesktopXL = exports.IsDesktop = exports.MatchMedia = exports.useMatchMedia = void 0;
11
-
12
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
-
14
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
-
7
+ exports.useMatchMedia = exports.MatchMedia = exports.IsTabletUp = exports.IsTabletDown = exports.IsTablet = exports.IsMobileUp = exports.IsMobileDown = exports.IsMobile = exports.IsDesktopXL = exports.IsDesktop = void 0;
16
8
  var _react = require("@emotion/react");
17
-
18
9
  var _react2 = _interopRequireWildcard(require("react"));
19
-
20
10
  var _mediaQueries = require("../mediaQueries");
21
-
22
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
-
24
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
-
26
- /*
27
- * Wire
28
- * Copyright (C) 2018 Wire Swiss GmbH
29
- *
30
- * This program is free software: you can redistribute it and/or modify
31
- * it under the terms of the GNU General Public License as published by
32
- * the Free Software Foundation, either version 3 of the License, or
33
- * (at your option) any later version.
34
- *
35
- * This program is distributed in the hope that it will be useful,
36
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
37
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38
- * GNU General Public License for more details.
39
- *
40
- * You should have received a copy of the GNU General Public License
41
- * along with this program. If not, see http://www.gnu.org/licenses/.
42
- *
43
- */
44
-
45
- /** @jsx jsx */
46
-
47
- /* @jsxFrag React.Fragment */
13
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
15
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
17
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
18
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
19
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
48
20
  var useMatchMedia = function useMatchMedia(query) {
49
21
  var matchMedia = (0, _react2.useMemo)(function () {
50
22
  return window.matchMedia("(".concat(query, ")"));
51
23
  }, [query]);
52
-
53
24
  var _useState = (0, _react2.useState)(matchMedia.matches),
54
- _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
55
- isMatching = _useState2[0],
56
- setIsMatching = _useState2[1];
57
-
25
+ _useState2 = _slicedToArray(_useState, 2),
26
+ isMatching = _useState2[0],
27
+ setIsMatching = _useState2[1];
58
28
  var updateMatching = function updateMatching(event) {
59
29
  setIsMatching(event.matches);
60
30
  };
61
-
62
31
  (0, _react2.useEffect)(function () {
63
32
  matchMedia.addEventListener('change', updateMatching);
64
33
  return function () {
@@ -67,81 +36,62 @@ var useMatchMedia = function useMatchMedia(query) {
67
36
  }, [matchMedia]);
68
37
  return isMatching;
69
38
  };
70
-
71
39
  exports.useMatchMedia = useMatchMedia;
72
-
73
40
  var MatchMedia = function MatchMedia(_ref) {
74
41
  var query = _ref.query,
75
- children = _ref.children,
76
- not = _ref.not;
42
+ children = _ref.children,
43
+ not = _ref.not;
77
44
  var matchQuery = useMatchMedia(_mediaQueries.QUERY[query] || query);
78
45
  var isMatching = not ? !matchQuery : matchQuery;
79
46
  return isMatching ? (0, _react.jsx)(_react2["default"].Fragment, null, children) : null;
80
47
  };
81
-
82
48
  exports.MatchMedia = MatchMedia;
83
-
84
49
  var IsDesktop = function IsDesktop(props) {
85
- return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
50
+ return (0, _react.jsx)(MatchMedia, _extends({
86
51
  query: _mediaQueries.QueryKeys.DESKTOP
87
52
  }, props));
88
53
  };
89
-
90
54
  exports.IsDesktop = IsDesktop;
91
-
92
55
  var IsDesktopXL = function IsDesktopXL(props) {
93
- return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
56
+ return (0, _react.jsx)(MatchMedia, _extends({
94
57
  query: _mediaQueries.QueryKeys.DESKTOP_XL
95
58
  }, props));
96
59
  };
97
-
98
60
  exports.IsDesktopXL = IsDesktopXL;
99
-
100
61
  var IsMobile = function IsMobile(props) {
101
- return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
62
+ return (0, _react.jsx)(MatchMedia, _extends({
102
63
  query: _mediaQueries.QueryKeys.MOBILE
103
64
  }, props));
104
65
  };
105
-
106
66
  exports.IsMobile = IsMobile;
107
-
108
67
  var IsMobileDown = function IsMobileDown(props) {
109
- return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
68
+ return (0, _react.jsx)(MatchMedia, _extends({
110
69
  query: _mediaQueries.QueryKeys.MOBILE_DOWN
111
70
  }, props));
112
71
  };
113
-
114
72
  exports.IsMobileDown = IsMobileDown;
115
-
116
73
  var IsMobileUp = function IsMobileUp(props) {
117
- return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
74
+ return (0, _react.jsx)(MatchMedia, _extends({
118
75
  query: _mediaQueries.QueryKeys.MOBILE_UP
119
76
  }, props));
120
77
  };
121
-
122
78
  exports.IsMobileUp = IsMobileUp;
123
-
124
79
  var IsTablet = function IsTablet(props) {
125
- return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
80
+ return (0, _react.jsx)(MatchMedia, _extends({
126
81
  query: _mediaQueries.QueryKeys.TABLET
127
82
  }, props));
128
83
  };
129
-
130
84
  exports.IsTablet = IsTablet;
131
-
132
85
  var IsTabletDown = function IsTabletDown(props) {
133
- return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
86
+ return (0, _react.jsx)(MatchMedia, _extends({
134
87
  query: _mediaQueries.QueryKeys.TABLET_DOWN
135
88
  }, props));
136
89
  };
137
-
138
90
  exports.IsTabletDown = IsTabletDown;
139
-
140
91
  var IsTabletUp = function IsTabletUp(props) {
141
- return (0, _react.jsx)(MatchMedia, (0, _extends2["default"])({
92
+ return (0, _react.jsx)(MatchMedia, _extends({
142
93
  query: _mediaQueries.QueryKeys.TABLET_UP
143
94
  }, props));
144
95
  };
145
-
146
96
  exports.IsTabletUp = IsTabletUp;
147
97
  //# sourceMappingURL=MatchMedia.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["MatchMedia.tsx"],"names":["useMatchMedia","query","matchMedia","window","matches","isMatching","setIsMatching","updateMatching","event","addEventListener","removeEventListener","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":";;;;;;;;;;;;;;;AAqBA;;AACA;;AAEA;;;;;;AAxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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AAdA,WAAc,CAACH,KAAD;AAAA,SAAiC,gBAAC,UAAD;AAAY,IAAA,KAAK,EAAEC,wBAAUG;AAA7B,KAA6CJ,KAA7C,EAAjC;AAAA,CAApB;;;;AACA,IAAMK,QAAQ,GAAG,SAAXA,QAAW,CAACL,KAAD;AAAA,SAAiC,gBAAC,UAAD;AAAY,IAAA,KAAK,EAAEC,wBAAUK;AAA7B,KAAyCN,KAAzC,EAAjC;AAAA,CAAjB;;;;AACA,IAAMO,YAAY,GAAG,SAAfA,YAAe,CAACP,KAAD;AAAA,SAAiC,gBAAC,UAAD;AAAY,IAAA,KAAK,EAAEC,wBAAUO;AAA7B,KAA8CR,KAA9C,EAAjC;AAAA,CAArB;;;;AACA,IAAMS,UAAU,GAAG,SAAbA,UAAa,CAACT,KAAD;AAAA,SAAiC,gBAAC,UAAD;AAAY,IAAA,KAAK,EAAEC,wBAAUS;AAA7B,KAA4CV,KAA5C,EAAjC;AAAA,CAAnB;;;;AACA,IAAMW,QAAQ,GAAG,SAAXA,QAAW,CAACX,KAAD;AAAA,SAAiC,gBAAC,UAAD;AAAY,IAAA,KAAK,EAAEC,wBAAUW;AAA7B,KAAyCZ,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 */\n/* @jsxFrag React.Fragment */\nimport {jsx} from '@emotion/react';\nimport React, {ReactFragment, useEffect, useMemo, 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 = useMemo(() => window.matchMedia(`(${query})`), [query]);\n\n const [isMatching, setIsMatching] = useState(matchMedia.matches);\n\n const updateMatching = (event: MediaQueryListEvent) => {\n setIsMatching(event.matches);\n };\n\n useEffect(() => {\n matchMedia.addEventListener('change', updateMatching);\n return () => matchMedia.removeEventListener('change', updateMatching);\n }, [matchMedia]);\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 isMatching ? <>{children}</> : null;\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,"file":"MatchMedia.js","names":["useMatchMedia","query","matchMedia","useMemo","window","useState","matches","isMatching","setIsMatching","updateMatching","event","useEffect","addEventListener","removeEventListener","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"],"sources":["MatchMedia.tsx"],"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 */\n/* @jsxFrag React.Fragment */\nimport {jsx} from '@emotion/react';\nimport React, {ReactFragment, useEffect, useMemo, 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 = useMemo(() => window.matchMedia(`(${query})`), [query]);\n\n const [isMatching, setIsMatching] = useState(matchMedia.matches);\n\n const updateMatching = (event: MediaQueryListEvent) => {\n setIsMatching(event.matches);\n };\n\n useEffect(() => {\n matchMedia.addEventListener('change', updateMatching);\n return () => matchMedia.removeEventListener('change', updateMatching);\n }, [matchMedia]);\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 isMatching ? <>{children}</> : null;\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"],"mappings":";;;;;;;AAqBA;AACA;AAEA;AAAiD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS1C,IAAMA,aAAa,GAAG,SAAhBA,aAAa,CAAIC,KAAY,EAAK;EAC7C,IAAMC,UAAU,GAAG,IAAAC,eAAO,EAAC;IAAA,OAAMC,MAAM,CAACF,UAAU,YAAKD,KAAK,OAAI;EAAA,GAAE,CAACA,KAAK,CAAC,CAAC;EAE1E,gBAAoC,IAAAI,gBAAQ,EAACH,UAAU,CAACI,OAAO,CAAC;IAAA;IAAzDC,UAAU;IAAEC,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AAY,CAAIP,KAA2B;EAAA,OAAK,gBAAC,UAAU;IAAC,KAAK,EAAEC,uBAAS,CAACO;EAAY,GAAKR,KAAK,EAAI;AAAA;AAAC;AAC9G,IAAMS,UAAU,GAAG,SAAbA,UAAU,CAAIT,KAA2B;EAAA,OAAK,gBAAC,UAAU;IAAC,KAAK,EAAEC,uBAAS,CAACS;EAAU,GAAKV,KAAK,EAAI;AAAA;AAAC;AAC1G,IAAMW,QAAQ,GAAG,SAAXA,QAAQ,CAAIX,KAA2B;EAAA,OAAK,gBAAC,UAAU;IAAC,KAAK,EAAEC,uBAAS,CAACW;EAAO,GAAKZ,KAAK,EAAI;AAAA;AAAC;AACrG,IAAMa,YAAY,GAAG,SAAfA,YAAY,CAAIb,KAA2B;EAAA,OAAK,gBAAC,UAAU;IAAC,KAAK,EAAEC,uBAAS,CAACa;EAAY,GAAKd,KAAK,EAAI;AAAA;AAAC;AAC9G,IAAMe,UAAU,GAAG,SAAbA,UAAU,CAAIf,KAA2B;EAAA,OAAK,gBAAC,UAAU;IAAC,KAAK,EAAEC,uBAAS,CAACe;EAAU,GAAKhB,KAAK,EAAI;AAAA;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"Spacer.d.js"}
1
+ {"version":3,"file":"Spacer.d.js","names":[],"sources":["Spacer.d.ts"],"sourcesContent":["import React from 'react';\nexport interface SpacerProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n size?: number;\n vertical?: boolean;\n}\nexport declare function Spacer({ size, vertical }: SpacerProps): React.ReactNode;\n"],"mappings":""}
@@ -1,16 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.Spacer = Spacer;
9
-
10
7
  var _react = require("@emotion/react");
11
-
12
8
  var _react2 = _interopRequireDefault(require("react"));
13
-
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
10
  /*
15
11
  * Wire
16
12
  * Copyright (C) 2018 Wire Swiss GmbH
@@ -31,11 +27,12 @@ var _react2 = _interopRequireDefault(require("react"));
31
27
  */
32
28
 
33
29
  /** @jsx jsx */
30
+
34
31
  function Spacer(_ref) {
35
32
  var _ref$size = _ref.size,
36
- size = _ref$size === void 0 ? 8 : _ref$size,
37
- _ref$vertical = _ref.vertical,
38
- vertical = _ref$vertical === void 0 ? false : _ref$vertical;
33
+ size = _ref$size === void 0 ? 8 : _ref$size,
34
+ _ref$vertical = _ref.vertical,
35
+ vertical = _ref$vertical === void 0 ? false : _ref$vertical;
39
36
  return (0, _react.jsx)("div", {
40
37
  style: vertical ? {
41
38
  display: 'inline-block',
@@ -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,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
+ {"version":3,"file":"Spacer.js","names":["Spacer","size","vertical","display","width","height"],"sources":["Spacer.tsx"],"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"],"mappings":";;;;;;AAoBA;AACA;AAA0B;AArB1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AASO,SAASA,MAAM,OAA6D;EAAA,qBAA3DC,IAAI;IAAJA,IAAI,0BAAG,CAAC;IAAA,qBAAEC,QAAQ;IAARA,QAAQ,8BAAG,KAAK;EAChD,OAAO;IAAK,KAAK,EAAEA,QAAQ,GAAG;MAACC,OAAO,EAAE,cAAc;MAAEC,KAAK,EAAEH;IAAI,CAAC,GAAG;MAACI,MAAM,EAAEJ;IAAI;EAAE,EAAG;AAC3F"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"StyledApp.d.js"}
1
+ {"version":3,"file":"StyledApp.d.js","names":[],"sources":["StyledApp.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport React from 'react';\nimport { THEME_ID, Theme } from './Theme';\ndeclare type StyledAppContainerProps = {\n themeId: THEME_ID;\n theme?: never;\n} | {\n theme: Theme;\n themeId?: never;\n};\ndeclare type BackgroundColorProps = {\n backgroundColor?: string;\n};\nexport declare type StyledAppProps = React.HTMLProps<HTMLDivElement> & StyledAppContainerProps & BackgroundColorProps;\nexport declare const StyledApp: React.FC<StyledAppProps>;\nexport {};\n"],"mappings":""}