@wireapp/react-ui-kit 8.17.1 → 8.17.3

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 +28 -28
  2. package/src/Form/Button.d.js.map +1 -1
  3. package/src/Form/Button.js +31 -52
  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 +7 -25
  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 +24 -43
  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 +13 -52
  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 +14 -53
  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 +9 -29
  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 +0 -8
  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 +19 -45
  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 +1 -12
  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 +4 -13
  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 +3 -17
  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 +13 -25
  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 +3 -15
  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 +4 -20
  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 +17 -32
  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 +15 -46
  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 +6 -13
  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 +12 -27
  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 +14 -26
  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 +8 -22
  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 +11 -23
  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 +2 -12
  74. package/src/GlobalStyle.js.map +1 -1
  75. package/src/Icon/AddPeopleIcon.d.js.map +1 -1
  76. package/src/Icon/AddPeopleIcon.js +3 -7
  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 +1 -6
  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 +3 -7
  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 +3 -11
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +3 -7
  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 +1 -6
  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 +1 -6
  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 +2 -11
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +3 -7
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +3 -7
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +3 -7
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +3 -7
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +2 -11
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +11 -22
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +1 -6
  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 +2 -10
  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 +1 -6
  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 +1 -6
  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 +37 -64
  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 +18 -36
  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 +13 -34
  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 +5 -19
  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 +4 -13
  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 +6 -22
  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 +2 -7
  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 +2 -10
  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 +3 -18
  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 +6 -28
  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 +2 -10
  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 +9 -19
  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 +1 -5
  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 +2 -9
  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 +7 -39
  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 +4 -7
  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 +5 -19
  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 +1 -14
  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 +8 -32
  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 +4 -25
  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 +3 -16
  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 +2 -13
  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 +13 -32
  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 +2 -14
  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 +2 -11
  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 +3 -17
  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 +10 -34
  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 +22 -42
  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 +5 -20
  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 +8 -26
  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 +6 -22
  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 +6 -18
  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 +13 -36
  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 +4 -23
  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 +2 -11
  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 +4 -12
  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 +10 -40
  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 +5 -28
  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 +42 -74
  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 +12 -29
  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 +3 -12
  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 +15 -34
  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 +12 -30
  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 +21 -42
  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 +11 -25
  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 +12 -25
  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 +5 -16
  482. package/src/mediaQueries.js.map +1 -1
  483. package/src/util.d.js.map +1 -1
  484. package/src/util.js +6 -19
  485. package/src/util.js.map +1 -1
@@ -1,34 +1,21 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports.HeaderSubMenu = exports.MobileStyledHeaderSubMenu = exports.DesktopStyledHeaderSubMenu = exports.DESKTOP_HEADER_SUB_MENU_CLASSNAME = void 0;
9
-
7
+ exports.MobileStyledHeaderSubMenu = exports.HeaderSubMenu = exports.DesktopStyledHeaderSubMenu = exports.DESKTOP_HEADER_SUB_MENU_CLASSNAME = void 0;
10
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
-
12
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
-
14
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
-
16
11
  var _react = require("@emotion/react");
17
-
18
12
  var _react2 = _interopRequireDefault(require("react"));
19
-
20
13
  var _Identity = require("../../Identity");
21
-
22
14
  var _motions = require("../../Identity/motions");
23
-
24
15
  var _mediaQueries = require("../../mediaQueries");
25
-
26
16
  var _MenuSubLink = require("./MenuSubLink");
27
-
28
17
  var _MenuLink = require("./MenuLink");
29
-
30
18
  var _excluded = ["caption", "isOpen", "children"];
31
-
32
19
  var desktopStyledHeaderSubMenuStyle = function desktopStyledHeaderSubMenuStyle(theme, props) {
33
20
  return (0, _defineProperty2["default"])({
34
21
  alignItems: 'left',
@@ -57,10 +44,8 @@ var desktopStyledHeaderSubMenuStyle = function desktopStyledHeaderSubMenuStyle(t
57
44
  marginTop: '8px'
58
45
  });
59
46
  };
60
-
61
47
  var DESKTOP_HEADER_SUB_MENU_CLASSNAME = 'desktopStyledHeaderSubMenu';
62
48
  exports.DESKTOP_HEADER_SUB_MENU_CLASSNAME = DESKTOP_HEADER_SUB_MENU_CLASSNAME;
63
-
64
49
  var DesktopStyledHeaderSubMenu = function DesktopStyledHeaderSubMenu(props) {
65
50
  return (0, _react.jsx)("div", (0, _extends2["default"])({
66
51
  className: DESKTOP_HEADER_SUB_MENU_CLASSNAME,
@@ -69,9 +54,7 @@ var DesktopStyledHeaderSubMenu = function DesktopStyledHeaderSubMenu(props) {
69
54
  }
70
55
  }, props));
71
56
  };
72
-
73
57
  exports.DesktopStyledHeaderSubMenu = DesktopStyledHeaderSubMenu;
74
-
75
58
  var mobileStyledHeaderSubMenuStyle = function mobileStyledHeaderSubMenuStyle(props) {
76
59
  return {
77
60
  '*': {
@@ -86,20 +69,17 @@ var mobileStyledHeaderSubMenuStyle = function mobileStyledHeaderSubMenuStyle(pro
86
69
  paddingTop: '8px'
87
70
  };
88
71
  };
89
-
90
72
  var MobileStyledHeaderSubMenu = function MobileStyledHeaderSubMenu(props) {
91
73
  return (0, _react.jsx)("span", (0, _extends2["default"])({
92
74
  css: mobileStyledHeaderSubMenuStyle(props)
93
75
  }, props));
94
76
  };
95
-
96
77
  exports.MobileStyledHeaderSubMenu = MobileStyledHeaderSubMenu;
97
-
98
78
  var HeaderSubMenu = function HeaderSubMenu(_ref2) {
99
79
  var caption = _ref2.caption,
100
- isOpen = _ref2.isOpen,
101
- children = _ref2.children,
102
- props = (0, _objectWithoutProperties2["default"])(_ref2, _excluded);
80
+ isOpen = _ref2.isOpen,
81
+ children = _ref2.children,
82
+ props = (0, _objectWithoutProperties2["default"])(_ref2, _excluded);
103
83
  var isDesktop = typeof window !== 'undefined' && window.matchMedia("(".concat(_mediaQueries.QUERY.desktop, ")")).matches;
104
84
  return (0, _react.jsx)(_MenuSubLink.MenuSubLink, (0, _extends2["default"])({}, props, {
105
85
  style: {
@@ -149,6 +129,5 @@ var HeaderSubMenu = function HeaderSubMenu(_ref2) {
149
129
  unmountOnExit: true
150
130
  }, (0, _react.jsx)(MobileStyledHeaderSubMenu, null, children))));
151
131
  };
152
-
153
132
  exports.HeaderSubMenu = HeaderSubMenu;
154
133
  //# sourceMappingURL=HeaderSubMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["HeaderSubMenu.tsx"],"names":["desktopStyledHeaderSubMenuStyle","theme","props","alignItems","backgroundColor","COLOR","tint","general","borderRadius","boxShadow","display","flexDirection","justifyContent","minWidth","padding","span","height","margin","paddingLeft","paddingRight","whiteSpace","MENU_LINK_CLASSNAME","marginTop","DESKTOP_HEADER_SUB_MENU_CLASSNAME","DesktopStyledHeaderSubMenu","mobileStyledHeaderSubMenuStyle","fontWeight","borderTop","GRAY_LIGHTEN_72","paddingTop","MobileStyledHeaderSubMenu","HeaderSubMenu","caption","isOpen","children","isDesktop","window","matchMedia","QUERY","desktop","matches","cursor","position","textAlign","DURATION","DEFAULT","left","zIndex"],"mappings":";;;;;;;;;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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 {COLOR, Opacity, Slide, YAxisMovement} from '../../Identity';\nimport {DURATION} from '../../Identity/motions';\nimport {QUERY} from '../../mediaQueries';\nimport {Theme} from '../Theme';\nimport {MenuSubLink} from './MenuSubLink';\nimport {MENU_LINK_CLASSNAME} from './MenuLink';\n\nexport type DesktopStyledHeaderSubMenuProps<T = HTMLDivElement> = React.HTMLProps<T>;\n\nconst desktopStyledHeaderSubMenuStyle: (theme: Theme, props: DesktopStyledHeaderSubMenuProps) => CSSObject = (\n theme,\n props,\n) => ({\n alignItems: 'left',\n backgroundColor: COLOR.tint(theme.general.backgroundColor, 0.16),\n borderRadius: '8px',\n boxShadow: '0 8px 24px 0 rgba(0, 0, 0, 0.16)',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n minWidth: '200px',\n padding: '8px 8px',\n span: {\n '&:hover': {\n backgroundColor: theme.general.backgroundColor,\n borderRadius: '4px',\n },\n alignItems: 'center',\n display: 'flex',\n height: '30px',\n margin: 0,\n paddingLeft: '10px !important',\n paddingRight: '10px !important',\n whiteSpace: 'nowrap',\n },\n [`.${MENU_LINK_CLASSNAME}:nth-of-type(n+2)`]: {\n marginTop: '8px',\n },\n});\n\nexport const DESKTOP_HEADER_SUB_MENU_CLASSNAME = 'desktopStyledHeaderSubMenu';\n\nexport const DesktopStyledHeaderSubMenu = (props: DesktopStyledHeaderSubMenuProps) => (\n <div\n className={DESKTOP_HEADER_SUB_MENU_CLASSNAME}\n css={(theme: Theme) => desktopStyledHeaderSubMenuStyle(theme, props)}\n {...props}\n />\n);\n\nexport interface MobileStyledHeaderSubMenuProps<T = HTMLSpanElement> extends React.HTMLProps<T> {\n open?: boolean;\n}\n\nconst mobileStyledHeaderSubMenuStyle: (props: MobileStyledHeaderSubMenuProps) => CSSObject = props => ({\n '*': {\n fontWeight: 200,\n },\n alignItems: 'center',\n borderTop: `1px solid ${COLOR.GRAY_LIGHTEN_72}`,\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n marginTop: '16px',\n paddingTop: '8px',\n});\n\nexport const MobileStyledHeaderSubMenu = (props: MobileStyledHeaderSubMenuProps) => (\n <span css={mobileStyledHeaderSubMenuStyle(props)} {...props} />\n);\n\nexport interface HeaderSubMenuProps<T = HTMLParagraphElement> extends React.PropsWithRef<React.HTMLProps<T>> {\n caption: string;\n isOpen: boolean;\n}\n\nexport const HeaderSubMenu: React.FC<HeaderSubMenuProps> = ({caption, isOpen, children, ...props}) => {\n const isDesktop = typeof window !== 'undefined' && window.matchMedia(`(${QUERY.desktop})`).matches;\n return (\n <MenuSubLink\n {...props}\n style={{cursor: 'pointer', display: 'inline-block', position: 'relative', textAlign: 'center'}}\n >\n <span>{caption}</span>\n <Opacity\n in={isOpen && isDesktop}\n timeout={DURATION.DEFAULT}\n style={{display: 'inline-block', left: -18, marginTop: 10, paddingTop: 20, position: 'absolute', zIndex: 1}}\n mountOnEnter={false}\n unmountOnExit={false}\n >\n <YAxisMovement\n in={isOpen && isDesktop}\n startValue={'-30px'}\n endValue={'0px'}\n style={{display: 'inline-block'}}\n timeout={DURATION.DEFAULT}\n mountOnEnter={false}\n unmountOnExit={true}\n >\n <DesktopStyledHeaderSubMenu>{children}</DesktopStyledHeaderSubMenu>\n </YAxisMovement>\n </Opacity>\n <Opacity\n in={isOpen && !isDesktop}\n timeout={DURATION.DEFAULT}\n mountOnEnter={false}\n unmountOnExit={false}\n style={{display: 'block', position: 'relative'}}\n >\n <Slide\n in={isOpen && !isDesktop}\n startValue={'-56%'}\n endValue={'0'}\n timeout={DURATION.DEFAULT}\n mountOnEnter={false}\n unmountOnExit={true}\n >\n <MobileStyledHeaderSubMenu>{children}</MobileStyledHeaderSubMenu>\n </Slide>\n </Opacity>\n </MenuSubLink>\n );\n};\n"],"file":"HeaderSubMenu.js"}
1
+ {"version":3,"file":"HeaderSubMenu.js","names":["desktopStyledHeaderSubMenuStyle","theme","props","alignItems","backgroundColor","COLOR","tint","general","borderRadius","boxShadow","display","flexDirection","justifyContent","minWidth","padding","span","height","margin","paddingLeft","paddingRight","whiteSpace","MENU_LINK_CLASSNAME","marginTop","DESKTOP_HEADER_SUB_MENU_CLASSNAME","DesktopStyledHeaderSubMenu","mobileStyledHeaderSubMenuStyle","fontWeight","borderTop","GRAY_LIGHTEN_72","paddingTop","MobileStyledHeaderSubMenu","HeaderSubMenu","caption","isOpen","children","isDesktop","window","matchMedia","QUERY","desktop","matches","cursor","position","textAlign","DURATION","DEFAULT","left","zIndex"],"sources":["HeaderSubMenu.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 {COLOR, Opacity, Slide, YAxisMovement} from '../../Identity';\nimport {DURATION} from '../../Identity/motions';\nimport {QUERY} from '../../mediaQueries';\nimport {Theme} from '../Theme';\nimport {MenuSubLink} from './MenuSubLink';\nimport {MENU_LINK_CLASSNAME} from './MenuLink';\n\nexport type DesktopStyledHeaderSubMenuProps<T = HTMLDivElement> = React.HTMLProps<T>;\n\nconst desktopStyledHeaderSubMenuStyle: (theme: Theme, props: DesktopStyledHeaderSubMenuProps) => CSSObject = (\n theme,\n props,\n) => ({\n alignItems: 'left',\n backgroundColor: COLOR.tint(theme.general.backgroundColor, 0.16),\n borderRadius: '8px',\n boxShadow: '0 8px 24px 0 rgba(0, 0, 0, 0.16)',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n minWidth: '200px',\n padding: '8px 8px',\n span: {\n '&:hover': {\n backgroundColor: theme.general.backgroundColor,\n borderRadius: '4px',\n },\n alignItems: 'center',\n display: 'flex',\n height: '30px',\n margin: 0,\n paddingLeft: '10px !important',\n paddingRight: '10px !important',\n whiteSpace: 'nowrap',\n },\n [`.${MENU_LINK_CLASSNAME}:nth-of-type(n+2)`]: {\n marginTop: '8px',\n },\n});\n\nexport const DESKTOP_HEADER_SUB_MENU_CLASSNAME = 'desktopStyledHeaderSubMenu';\n\nexport const DesktopStyledHeaderSubMenu = (props: DesktopStyledHeaderSubMenuProps) => (\n <div\n className={DESKTOP_HEADER_SUB_MENU_CLASSNAME}\n css={(theme: Theme) => desktopStyledHeaderSubMenuStyle(theme, props)}\n {...props}\n />\n);\n\nexport interface MobileStyledHeaderSubMenuProps<T = HTMLSpanElement> extends React.HTMLProps<T> {\n open?: boolean;\n}\n\nconst mobileStyledHeaderSubMenuStyle: (props: MobileStyledHeaderSubMenuProps) => CSSObject = props => ({\n '*': {\n fontWeight: 200,\n },\n alignItems: 'center',\n borderTop: `1px solid ${COLOR.GRAY_LIGHTEN_72}`,\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n marginTop: '16px',\n paddingTop: '8px',\n});\n\nexport const MobileStyledHeaderSubMenu = (props: MobileStyledHeaderSubMenuProps) => (\n <span css={mobileStyledHeaderSubMenuStyle(props)} {...props} />\n);\n\nexport interface HeaderSubMenuProps<T = HTMLParagraphElement> extends React.PropsWithRef<React.HTMLProps<T>> {\n caption: string;\n isOpen: boolean;\n}\n\nexport const HeaderSubMenu: React.FC<HeaderSubMenuProps> = ({caption, isOpen, children, ...props}) => {\n const isDesktop = typeof window !== 'undefined' && window.matchMedia(`(${QUERY.desktop})`).matches;\n return (\n <MenuSubLink\n {...props}\n style={{cursor: 'pointer', display: 'inline-block', position: 'relative', textAlign: 'center'}}\n >\n <span>{caption}</span>\n <Opacity\n in={isOpen && isDesktop}\n timeout={DURATION.DEFAULT}\n style={{display: 'inline-block', left: -18, marginTop: 10, paddingTop: 20, position: 'absolute', zIndex: 1}}\n mountOnEnter={false}\n unmountOnExit={false}\n >\n <YAxisMovement\n in={isOpen && isDesktop}\n startValue={'-30px'}\n endValue={'0px'}\n style={{display: 'inline-block'}}\n timeout={DURATION.DEFAULT}\n mountOnEnter={false}\n unmountOnExit={true}\n >\n <DesktopStyledHeaderSubMenu>{children}</DesktopStyledHeaderSubMenu>\n </YAxisMovement>\n </Opacity>\n <Opacity\n in={isOpen && !isDesktop}\n timeout={DURATION.DEFAULT}\n mountOnEnter={false}\n unmountOnExit={false}\n style={{display: 'block', position: 'relative'}}\n >\n <Slide\n in={isOpen && !isDesktop}\n startValue={'-56%'}\n endValue={'0'}\n timeout={DURATION.DEFAULT}\n mountOnEnter={false}\n unmountOnExit={true}\n >\n <MobileStyledHeaderSubMenu>{children}</MobileStyledHeaderSubMenu>\n </Slide>\n </Opacity>\n </MenuSubLink>\n );\n};\n"],"mappings":";;;;;;;;;;AAoBA;AACA;AAEA;AACA;AACA;AAEA;AACA;AAA+C;AAI/C,IAAMA,+BAAoG,GAAG,SAAvGA,+BAAoG,CACxGC,KAAK,EACLC,KAAK;EAAA;IAELC,UAAU,EAAE,MAAM;IAClBC,eAAe,EAAEC,eAAK,CAACC,IAAI,CAACL,KAAK,CAACM,OAAO,CAACH,eAAe,EAAE,IAAI,CAAC;IAChEI,YAAY,EAAE,KAAK;IACnBC,SAAS,EAAE,kCAAkC;IAC7CC,OAAO,EAA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E,KAAM;IACpB,aAAa,EAAE,KAAM;IACrB,KAAK,EAAE;MAACnC,OAAO,EAAE,OAAO;MAAEgC,QAAQ,EAAE;IAAU;EAAE,GAEhD,gBAAC,eAAK;IACJ,MAAIT,MAAM,IAAI,CAACE,SAAU;IACzB,UAAU,EAAE,MAAO;IACnB,QAAQ,EAAE,GAAI;IACd,OAAO,EAAES,iBAAQ,CAACC,OAAQ;IAC1B,YAAY,EAAE,KAAM;IACpB,aAAa,EAAE;EAAK,GAEpB,gBAAC,yBAAyB,QAAEX,QAAQ,CAA6B,CAC3D,CACA,CACE;AAElB,CAAC;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"MenuContent.d.js"}
1
+ {"version":3,"file":"MenuContent.d.js","names":[],"sources":["MenuContent.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport { CSSObject, jsx } from '@emotion/react';\nimport { TextProps } from '../../Text';\nexport interface MenuContentProps<T = HTMLDivElement> extends TextProps<T> {\n open?: boolean;\n}\nexport declare const menuContentStyle: <T>(props: MenuContentProps<T>) => CSSObject;\nexport declare const MenuContent: (props: MenuContentProps) => jsx.JSX.Element;\n"],"mappings":""}
@@ -1,26 +1,17 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports.MenuContent = exports.menuContentStyle = void 0;
9
-
7
+ exports.menuContentStyle = exports.MenuContent = void 0;
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
-
14
10
  var _react = require("@emotion/react");
15
-
16
11
  var _util = require("../../util");
17
-
18
12
  var _Content = require("../Content");
19
-
20
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
21
-
22
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
23
-
13
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24
15
  var menuContentStyle = function menuContentStyle(props) {
25
16
  return _objectSpread(_objectSpread({}, (0, _Content.contentStyle)(props)), {}, {
26
17
  alignItems: 'center',
@@ -35,18 +26,14 @@ var menuContentStyle = function menuContentStyle(props) {
35
26
  zIndex: props.open ? 10000 : undefined
36
27
  });
37
28
  };
38
-
39
29
  exports.menuContentStyle = menuContentStyle;
40
-
41
30
  var filterMenuContentProps = function filterMenuContentProps(props) {
42
31
  return (0, _util.filterProps)(props, ['open']);
43
32
  };
44
-
45
33
  var MenuContent = function MenuContent(props) {
46
34
  return (0, _react.jsx)("div", (0, _extends2["default"])({
47
35
  css: menuContentStyle(props)
48
36
  }, filterMenuContentProps(props)));
49
37
  };
50
-
51
38
  exports.MenuContent = MenuContent;
52
39
  //# sourceMappingURL=MenuContent.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["MenuContent.tsx"],"names":["menuContentStyle","props","alignItems","display","gridColumnGap","gridTemplateColumns","height","justifyContent","left","open","undefined","position","width","zIndex","filterMenuContentProps","MenuContent"],"mappings":";;;;;;;;;;;;;AAoBA;;AAGA;;AACA;;;;;;AAMO,IAAMA,gBAA8D,GAAG,SAAjEA,gBAAiE,CAAAC,KAAK;AAAA,yCAC9E,2BAAaA,KAAb,CAD8E;AAEjFC,IAAAA,UAAU,EAAE,QAFqE;AAGjFC,IAAAA,OAAO,EAAE,MAHwE;AAIjFC,IAAAA,aAAa,EAAE,KAJkE;AAKjFC,IAAAA,mBAAmB,EAAE,cAL4D;AAMjFC,IAAAA,MAAM,EAAE,MANyE;AAOjFC,IAAAA,cAAc,EAAE,eAPiE;AAQjFC,IAAAA,IAAI,EAAEP,KAAK,CAACQ,IAAN,GAAa,CAAb,GAAiBC,SAR0D;AASjFC,IAAAA,QAAQ,EAAEV,KAAK,CAACQ,IAAN,GAAa,OAAb,GAAuBC,SATgD;AAUjFE,IAAAA,KAAK,EAAEX,KAAK,CAACQ,IAAN,GAAa,MAAb,GAAsBC,SAVoD;AAWjFG,IAAAA,MAAM,EAAEZ,KAAK,CAACQ,IAAN,GAAa,KAAb,GAAqBC;AAXoD;AAAA,CAA5E;;;;AAcP,IAAMI,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACb,KAAD;AAAA,SAA6B,uBAAYA,KAAZ,EAAmB,CAAC,MAAD,CAAnB,CAA7B;AAAA,CAA/B;;AAEO,IAAMc,WAAW,GAAG,SAAdA,WAAc,CAACd,KAAD;AAAA,SACzB;AAAK,IAAA,GAAG,EAAED,gBAAgB,CAACC,KAAD;AAA1B,KAAuCa,sBAAsB,CAACb,KAAD,CAA7D,EADyB;AAAA,CAApB","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';\n\nimport {TextProps} from '../../Text';\nimport {filterProps} from '../../util';\nimport {contentStyle} from '../Content';\n\nexport interface MenuContentProps<T = HTMLDivElement> extends TextProps<T> {\n open?: boolean;\n}\n\nexport const menuContentStyle: <T>(props: MenuContentProps<T>) => CSSObject = props => ({\n ...contentStyle(props),\n alignItems: 'center',\n display: 'grid',\n gridColumnGap: '8px',\n gridTemplateColumns: '1fr auto 1fr',\n height: '64px',\n justifyContent: 'space-between',\n left: props.open ? 0 : undefined,\n position: props.open ? 'fixed' : undefined,\n width: props.open ? '100%' : undefined,\n zIndex: props.open ? 10000 : undefined,\n});\n\nconst filterMenuContentProps = (props: MenuContentProps) => filterProps(props, ['open']);\n\nexport const MenuContent = (props: MenuContentProps) => (\n <div css={menuContentStyle(props)} {...filterMenuContentProps(props)} />\n);\n"],"file":"MenuContent.js"}
1
+ {"version":3,"file":"MenuContent.js","names":["menuContentStyle","props","contentStyle","alignItems","display","gridColumnGap","gridTemplateColumns","height","justifyContent","left","open","undefined","position","width","zIndex","filterMenuContentProps","filterProps","MenuContent"],"sources":["MenuContent.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';\n\nimport {TextProps} from '../../Text';\nimport {filterProps} from '../../util';\nimport {contentStyle} from '../Content';\n\nexport interface MenuContentProps<T = HTMLDivElement> extends TextProps<T> {\n open?: boolean;\n}\n\nexport const menuContentStyle: <T>(props: MenuContentProps<T>) => CSSObject = props => ({\n ...contentStyle(props),\n alignItems: 'center',\n display: 'grid',\n gridColumnGap: '8px',\n gridTemplateColumns: '1fr auto 1fr',\n height: '64px',\n justifyContent: 'space-between',\n left: props.open ? 0 : undefined,\n position: props.open ? 'fixed' : undefined,\n width: props.open ? '100%' : undefined,\n zIndex: props.open ? 10000 : undefined,\n});\n\nconst filterMenuContentProps = (props: MenuContentProps) => filterProps(props, ['open']);\n\nexport const MenuContent = (props: MenuContentProps) => (\n <div css={menuContentStyle(props)} {...filterMenuContentProps(props)} />\n);\n"],"mappings":";;;;;;;;;AAoBA;AAGA;AACA;AAAwC;AAAA;AAMjC,IAAMA,gBAA8D,GAAG,SAAjEA,gBAA8D,CAAGC,KAAK;EAAA,uCAC9E,IAAAC,qBAAY,EAACD,KAAK,CAAC;IACtBE,UAAU,EAAE,QAAQ;IACpBC,OAAO,EAAE,MAAM;IACfC,aAAa,EAAE,KAAK;IACpBC,mBAAmB,EAAE,cAAc;IACnCC,MAAM,EAAE,MAAM;IACdC,cAAc,EAAE,eAAe;IAC/BC,IAAI,EAAER,KAAK,CAACS,IAAI,GAAG,CAAC,GAAGC,SAAS;IAChCC,QAAQ,EAAEX,KAAK,CAACS,IAAI,GAAG,OAAO,GAAGC,SAAS;IAC1CE,KAAK,EAAEZ,KAAK,CAACS,IAAI,GAAG,MAAM,GAAGC,SAAS;IACtCG,MAAM,EAAEb,KAAK,CAACS,IAAI,GAAG,KAAK,GAAGC;EAAS;AAAA,CACtC;AAAC;AAEH,IAAMI,sBAAsB,GAAG,SAAzBA,sBAAsB,CAAId,KAAuB;EAAA,OAAK,IAAAe,iBAAW,EAACf,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC;AAAA;AAEjF,IAAMgB,WAAW,GAAG,SAAdA,WAAW,CAAIhB,KAAuB;EAAA,OACjD;IAAK,GAAG,EAAED,gBAAgB,CAACC,KAAK;EAAE,GAAKc,sBAAsB,CAACd,KAAK,CAAC,EAAI;AAAA,CACzE;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"MenuItems.d.js"}
1
+ {"version":3,"file":"MenuItems.d.js","names":[],"sources":["MenuItems.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport React from 'react';\nimport { CSSObject, jsx } from '@emotion/react';\nimport { Theme } from '../Theme';\nexport interface MenuItemsProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n open?: boolean;\n}\nexport declare const menuItemsStyle: <T>(theme: Theme, props: MenuItemsProps<T>) => CSSObject;\nexport declare const MenuItems: (props: MenuItemsProps) => jsx.JSX.Element;\n"],"mappings":""}
@@ -1,24 +1,16 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports.MenuItems = exports.menuItemsStyle = void 0;
9
-
7
+ exports.menuItemsStyle = exports.MenuItems = void 0;
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
-
14
10
  var _react = _interopRequireDefault(require("react"));
15
-
16
11
  var _react2 = require("@emotion/react");
17
-
18
12
  var _mediaQueries = require("../../mediaQueries");
19
-
20
13
  var _util = require("../../util");
21
-
22
14
  /*
23
15
  * Wire
24
16
  * Copyright (C) 2018 Wire Swiss GmbH
@@ -39,6 +31,7 @@ var _util = require("../../util");
39
31
  */
40
32
 
41
33
  /** @jsx jsx */
34
+
42
35
  var menuItemsStyle = function menuItemsStyle(theme, props) {
43
36
  return (0, _defineProperty2["default"])({
44
37
  alignSelf: 'center',
@@ -57,13 +50,10 @@ var menuItemsStyle = function menuItemsStyle(theme, props) {
57
50
  zIndex: 1
58
51
  });
59
52
  };
60
-
61
53
  exports.menuItemsStyle = menuItemsStyle;
62
-
63
54
  var filterMenuItemProps = function filterMenuItemProps(props) {
64
55
  return (0, _util.filterProps)(props, ['open']);
65
56
  };
66
-
67
57
  var MenuItems = function MenuItems(props) {
68
58
  return (0, _react2.jsx)("div", (0, _extends2["default"])({
69
59
  css: function css(theme) {
@@ -71,6 +61,5 @@ var MenuItems = function MenuItems(props) {
71
61
  }
72
62
  }, filterMenuItemProps(props)));
73
63
  };
74
-
75
64
  exports.MenuItems = MenuItems;
76
65
  //# sourceMappingURL=MenuItems.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["MenuItems.tsx"],"names":["menuItemsStyle","theme","props","alignSelf","display","justifySelf","media","QueryKeys","TABLET_DOWN","backgroundColor","general","bottom","left","overflowY","position","right","top","transform","open","transition","zIndex","filterMenuItemProps","MenuItems"],"mappings":";;;;;;;;;;;;;AAoBA;;AACA;;AAEA;;AACA;;AAxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAYO,IAAMA,cAAwE,GAAG,SAA3EA,cAA2E,CAACC,KAAD,EAAQC,KAAR;AAAA;AACtFC,IAAAA,SAAS,EAAE,QAD2E;AAEtFC,IAAAA,OAAO,EAAE,MAF6E;AAGtFC,IAAAA,WAAW,EAAE;AAHyE,KAIrFC,oBAAMC,wBAAUC,WAAhB,CAJqF,EAItD;AAC9BC,IAAAA,eAAe,EAAER,KAAK,CAACS,OAAN,CAAcD,eADD;AAE9BE,IAAAA,MAAM,EAAE,CAFsB;AAG9BC,IAAAA,IAAI,EAAE,CAHwB;AAI9BC,IAAAA,SAAS,EAAE,MAJmB;AAK9BC,IAAAA,QAAQ,EAAE,OALoB;AAM9BC,IAAAA,KAAK,EAAE,CANuB;AAO9BC,IAAAA,GAAG,EAAE,CAPyB;AAQ9BC,IAAAA,SAAS,EAAEf,KAAK,CAACgB,IAAN,GAAa,eAAb,GAA+B,kBARZ;AAS9BC,IAAAA,UAAU,EAAE,sBATkB;AAU9BC,IAAAA,MAAM,EAAE;AAVsB,GAJsD;AAAA,CAAjF;;;;AAkBP,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAsB,CAACnB,KAAD;AAAA,SAA2B,uBAAYA,KAAZ,EAAmB,CAAC,MAAD,CAAnB,CAA3B;AAAA,CAA5B;;AAEO,IAAMoB,SAAS,GAAG,SAAZA,SAAY,CAACpB,KAAD;AAAA,SACvB;AAAK,IAAA,GAAG,EAAE,aAACD,KAAD;AAAA,aAAkBD,cAAc,CAACC,KAAD,EAAQC,KAAR,CAAhC;AAAA;AAAV,KAA8DmB,mBAAmB,CAACnB,KAAD,CAAjF,EADuB;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 {QueryKeys, media} from '../../mediaQueries';\nimport {filterProps} from '../../util';\nimport {Theme} from '../Theme';\n\nexport interface MenuItemsProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n open?: boolean;\n}\n\nexport const menuItemsStyle: <T>(theme: Theme, props: MenuItemsProps<T>) => CSSObject = (theme, props) => ({\n alignSelf: 'center',\n display: 'flex',\n justifySelf: 'end',\n [media[QueryKeys.TABLET_DOWN]]: {\n backgroundColor: theme.general.backgroundColor,\n bottom: 0,\n left: 0,\n overflowY: 'auto',\n position: 'fixed',\n right: 0,\n top: 0,\n transform: props.open ? 'translateX(0)' : 'translateX(110%)',\n transition: 'transform 0.25s ease',\n zIndex: 1,\n },\n});\n\nconst filterMenuItemProps = (props: MenuItemsProps) => filterProps(props, ['open']);\n\nexport const MenuItems = (props: MenuItemsProps) => (\n <div css={(theme: Theme) => menuItemsStyle(theme, props)} {...filterMenuItemProps(props)} />\n);\n"],"file":"MenuItems.js"}
1
+ {"version":3,"file":"MenuItems.js","names":["menuItemsStyle","theme","props","alignSelf","display","justifySelf","media","QueryKeys","TABLET_DOWN","backgroundColor","general","bottom","left","overflowY","position","right","top","transform","open","transition","zIndex","filterMenuItemProps","filterProps","MenuItems"],"sources":["MenuItems.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 {QueryKeys, media} from '../../mediaQueries';\nimport {filterProps} from '../../util';\nimport {Theme} from '../Theme';\n\nexport interface MenuItemsProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n open?: boolean;\n}\n\nexport const menuItemsStyle: <T>(theme: Theme, props: MenuItemsProps<T>) => CSSObject = (theme, props) => ({\n alignSelf: 'center',\n display: 'flex',\n justifySelf: 'end',\n [media[QueryKeys.TABLET_DOWN]]: {\n backgroundColor: theme.general.backgroundColor,\n bottom: 0,\n left: 0,\n overflowY: 'auto',\n position: 'fixed',\n right: 0,\n top: 0,\n transform: props.open ? 'translateX(0)' : 'translateX(110%)',\n transition: 'transform 0.25s ease',\n zIndex: 1,\n },\n});\n\nconst filterMenuItemProps = (props: MenuItemsProps) => filterProps(props, ['open']);\n\nexport const MenuItems = (props: MenuItemsProps) => (\n <div css={(theme: Theme) => menuItemsStyle(theme, props)} {...filterMenuItemProps(props)} />\n);\n"],"mappings":";;;;;;;;;AAoBA;AACA;AAEA;AACA;AAxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAYO,IAAMA,cAAwE,GAAG,SAA3EA,cAAwE,CAAIC,KAAK,EAAEC,KAAK;EAAA;IACnGC,SAAS,EAAE,QAAQ;IACnBC,OAAO,EAAE,MAAM;IACfC,WAAW,EAAE;EAAK,GACjBC,mBAAK,CAACC,uBAAS,CAACC,WAAW,CAAC,EAAG;IAC9BC,eAAe,EAAER,KAAK,CAACS,OAAO,CAACD,eAAe;IAC9CE,MAAM,EAAE,CAAC;IACTC,IAAI,EAAE,CAAC;IACPC,SAAS,EAAE,MAAM;IACjBC,QAAQ,EAAE,OAAO;IACjBC,KAAK,EAAE,CAAC;IACRC,GAAG,EAAE,CAAC;IACNC,SAAS,EAAEf,KAAK,CAACgB,IAAI,GAAG,eAAe,GAAG,kBAAkB;IAC5DC,UAAU,EAAE,sBAAsB;IAClCC,MAAM,EAAE;EACV,CAAC;AAAA,CACD;AAAC;AAEH,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmB,CAAInB,KAAqB;EAAA,OAAK,IAAAoB,iBAAW,EAACpB,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC;AAAA;AAE5E,IAAMqB,SAAS,GAAG,SAAZA,SAAS,CAAIrB,KAAqB;EAAA,OAC7C;IAAK,GAAG,EAAE,aAACD,KAAY;MAAA,OAAKD,cAAc,CAACC,KAAK,EAAEC,KAAK,CAAC;IAAA;EAAC,GAAKmB,mBAAmB,CAACnB,KAAK,CAAC,EAAI;AAAA,CAC7F;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"MenuLink.d.js"}
1
+ {"version":3,"file":"MenuLink.d.js","names":[],"sources":["MenuLink.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport { CSSObject, jsx } from '@emotion/react';\nimport { LinkProps } from '../../Text';\nimport { Theme } from '../Theme';\nexport interface MenuLinkProps<T = HTMLAnchorElement> extends LinkProps<T> {\n button?: boolean;\n}\nexport declare const menuLinkStyle: <T>(theme: Theme, props: MenuLinkProps<T>) => CSSObject;\nexport declare const MENU_LINK_CLASSNAME = \"menu-link\";\nexport declare const filterMenuLinkProps: (props: MenuLinkProps) => Object;\nexport declare const MenuLink: (props: MenuLinkProps) => jsx.JSX.Element;\n"],"mappings":""}
@@ -1,48 +1,34 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports.MenuLink = exports.filterMenuLinkProps = exports.MENU_LINK_CLASSNAME = exports.menuLinkStyle = void 0;
9
-
7
+ exports.menuLinkStyle = exports.filterMenuLinkProps = exports.MenuLink = exports.MENU_LINK_CLASSNAME = void 0;
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
-
14
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
-
16
11
  var _react = require("@emotion/react");
17
-
18
12
  var _mediaQueries = require("../../mediaQueries");
19
-
20
13
  var _Text = require("../../Text");
21
-
22
14
  var _util = require("../../util");
23
-
24
15
  var _HeaderSubMenu = require("./HeaderSubMenu");
25
-
26
16
  var _excluded = ["bold", "color", "fontSize", "textTransform", "button"];
27
-
28
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
29
-
30
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
31
-
17
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32
19
  var menuLinkStyle = function menuLinkStyle(theme, _ref) {
33
20
  var _objectSpread2;
34
-
35
21
  var _ref$bold = _ref.bold,
36
- bold = _ref$bold === void 0 ? true : _ref$bold,
37
- _ref$color = _ref.color,
38
- color = _ref$color === void 0 ? theme.general.color : _ref$color,
39
- _ref$fontSize = _ref.fontSize,
40
- fontSize = _ref$fontSize === void 0 ? '11px' : _ref$fontSize,
41
- _ref$textTransform = _ref.textTransform,
42
- textTransform = _ref$textTransform === void 0 ? 'uppercase' : _ref$textTransform,
43
- _ref$button = _ref.button,
44
- button = _ref$button === void 0 ? false : _ref$button,
45
- props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
22
+ bold = _ref$bold === void 0 ? true : _ref$bold,
23
+ _ref$color = _ref.color,
24
+ color = _ref$color === void 0 ? theme.general.color : _ref$color,
25
+ _ref$fontSize = _ref.fontSize,
26
+ fontSize = _ref$fontSize === void 0 ? '11px' : _ref$fontSize,
27
+ _ref$textTransform = _ref.textTransform,
28
+ textTransform = _ref$textTransform === void 0 ? 'uppercase' : _ref$textTransform,
29
+ _ref$button = _ref.button,
30
+ button = _ref$button === void 0 ? false : _ref$button,
31
+ props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
46
32
  return _objectSpread(_objectSpread({}, (0, _Text.linkStyle)(theme, _objectSpread({
47
33
  bold: bold,
48
34
  color: color,
@@ -72,17 +58,13 @@ var menuLinkStyle = function menuLinkStyle(theme, _ref) {
72
58
  textTransform: 'none !important'
73
59
  }), (0, _defineProperty2["default"])(_objectSpread2, "border", button ? '1px solid rgb(219, 226, 231)' : undefined), (0, _defineProperty2["default"])(_objectSpread2, "borderRadius", button ? '4px' : undefined), (0, _defineProperty2["default"])(_objectSpread2, "padding", button ? '10px 16px' : undefined), _objectSpread2));
74
60
  };
75
-
76
61
  exports.menuLinkStyle = menuLinkStyle;
77
62
  var MENU_LINK_CLASSNAME = 'menu-link';
78
63
  exports.MENU_LINK_CLASSNAME = MENU_LINK_CLASSNAME;
79
-
80
64
  var filterMenuLinkProps = function filterMenuLinkProps(props) {
81
65
  return (0, _util.filterProps)((0, _Text.filterLinkProps)(props), ['button']);
82
66
  };
83
-
84
67
  exports.filterMenuLinkProps = filterMenuLinkProps;
85
-
86
68
  var MenuLink = function MenuLink(props) {
87
69
  return (0, _react.jsx)("a", (0, _extends2["default"])({
88
70
  className: MENU_LINK_CLASSNAME,
@@ -91,6 +73,5 @@ var MenuLink = function MenuLink(props) {
91
73
  }
92
74
  }, filterMenuLinkProps(props)));
93
75
  };
94
-
95
76
  exports.MenuLink = MenuLink;
96
77
  //# sourceMappingURL=MenuLink.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["MenuLink.tsx"],"names":["menuLinkStyle","theme","bold","color","general","fontSize","textTransform","button","props","media","QueryKeys","DESKTOP","marginLeft","marginRight","margin","DESKTOP_HEADER_SUB_MENU_CLASSNAME","TABLET_DOWN","border","fontWeight","maxWidth","padding","undefined","MENU_LINK_CLASSNAME","filterMenuLinkProps","MenuLink"],"mappings":";;;;;;;;;;;;;;;AAoBA;;AAEA;;AACA;;AACA;;AAEA;;;;;;;;AAMO,IAAMA,aAAsE,GAAG,SAAzEA,aAAyE,CACpFC,KADoF;AAAA;;AAAA,uBAEnFC,IAFmF;AAAA,MAEnFA,IAFmF,0BAE5E,IAF4E;AAAA,wBAEtEC,KAFsE;AAAA,MAEtEA,KAFsE,2BAE9DF,KAAK,CAACG,OAAN,CAAcD,KAFgD;AAAA,2BAEzCE,QAFyC;AAAA,MAEzCA,QAFyC,8BAE9B,MAF8B;AAAA,gCAEtBC,aAFsB;AAAA,MAEtBA,aAFsB,mCAEN,WAFM;AAAA,yBAEOC,MAFP;AAAA,MAEOA,MAFP,4BAEgB,KAFhB;AAAA,MAE0BC,KAF1B;AAAA,yCAIjF,qBAAUP,KAAV;AAAkBC,IAAAA,IAAI,EAAJA,IAAlB;AAAwBC,IAAAA,KAAK,EAALA,KAAxB;AAA+BE,IAAAA,QAAQ,EAARA,QAA/B;AAAyCC,IAAAA,aAAa,EAAbA;AAAzC,KAA2DE,KAA3D,EAJiF,8EAKnFC,oBAAMC,wBAAUC,OAAhB,C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* 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';\n\nimport {QueryKeys, media} from '../../mediaQueries';\nimport {LinkProps, filterLinkProps, linkStyle} from '../../Text';\nimport {filterProps} from '../../util';\nimport {Theme} from '../Theme';\nimport {DESKTOP_HEADER_SUB_MENU_CLASSNAME} from './HeaderSubMenu';\n\nexport interface MenuLinkProps<T = HTMLAnchorElement> extends LinkProps<T> {\n button?: boolean;\n}\n\nexport const menuLinkStyle: <T>(theme: Theme, props: MenuLinkProps<T>) => CSSObject = (\n theme,\n {bold = true, color = theme.general.color, fontSize = '11px', textTransform = 'uppercase', button = false, ...props},\n) => ({\n ...linkStyle(theme, {bold, color, fontSize, textTransform, ...props}),\n [media[QueryKeys.DESKTOP]]: {\n '&:first-of-type': {\n marginLeft: 0,\n },\n '&:last-of-type': {\n marginRight: 0,\n },\n margin: '0 26px 0 10px',\n [`.${DESKTOP_HEADER_SUB_MENU_CLASSNAME} &`]: {\n '&:first-of-type': {\n marginLeft: '10px',\n },\n '&:last-of-type': {\n marginRight: '26px',\n },\n },\n },\n [media[QueryKeys.TABLET_DOWN]]: {\n border: 'none',\n fontSize: '32px !important',\n fontWeight: 300,\n maxWidth: '480px',\n padding: '8px 24px',\n textTransform: 'none !important',\n },\n border: button ? '1px solid rgb(219, 226, 231)' : undefined,\n borderRadius: button ? '4px' : undefined,\n padding: button ? '10px 16px' : undefined,\n});\n\nexport const MENU_LINK_CLASSNAME = 'menu-link';\n\nexport const filterMenuLinkProps = (props: MenuLinkProps) =>\n filterProps(filterLinkProps(props) as MenuLinkProps, ['button']);\n\nexport const MenuLink = (props: MenuLinkProps) => (\n <a\n className={MENU_LINK_CLASSNAME}\n css={(theme: Theme) => menuLinkStyle(theme, props)}\n {...filterMenuLinkProps(props)}\n />\n);\n"],"file":"MenuLink.js"}
1
+ {"version":3,"file":"MenuLink.js","names":["menuLinkStyle","theme","bold","color","general","fontSize","textTransform","button","props","linkStyle","media","QueryKeys","DESKTOP","marginLeft","marginRight","margin","DESKTOP_HEADER_SUB_MENU_CLASSNAME","TABLET_DOWN","border","fontWeight","maxWidth","padding","undefined","MENU_LINK_CLASSNAME","filterMenuLinkProps","filterProps","filterLinkProps","MenuLink"],"sources":["MenuLink.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';\n\nimport {QueryKeys, media} from '../../mediaQueries';\nimport {LinkProps, filterLinkProps, linkStyle} from '../../Text';\nimport {filterProps} from '../../util';\nimport {Theme} from '../Theme';\nimport {DESKTOP_HEADER_SUB_MENU_CLASSNAME} from './HeaderSubMenu';\n\nexport interface MenuLinkProps<T = HTMLAnchorElement> extends LinkProps<T> {\n button?: boolean;\n}\n\nexport const menuLinkStyle: <T>(theme: Theme, props: MenuLinkProps<T>) => CSSObject = (\n theme,\n {bold = true, color = theme.general.color, fontSize = '11px', textTransform = 'uppercase', button = false, ...props},\n) => ({\n ...linkStyle(theme, {bold, color, fontSize, textTransform, ...props}),\n [media[QueryKeys.DESKTOP]]: {\n '&:first-of-type': {\n marginLeft: 0,\n },\n '&:last-of-type': {\n marginRight: 0,\n },\n margin: '0 26px 0 10px',\n [`.${DESKTOP_HEADER_SUB_MENU_CLASSNAME} &`]: {\n '&:first-of-type': {\n marginLeft: '10px',\n },\n '&:last-of-type': {\n marginRight: '26px',\n },\n },\n },\n [media[QueryKeys.TABLET_DOWN]]: {\n border: 'none',\n fontSize: '32px !important',\n fontWeight: 300,\n maxWidth: '480px',\n padding: '8px 24px',\n textTransform: 'none !important',\n },\n border: button ? '1px solid rgb(219, 226, 231)' : undefined,\n borderRadius: button ? '4px' : undefined,\n padding: button ? '10px 16px' : undefined,\n});\n\nexport const MENU_LINK_CLASSNAME = 'menu-link';\n\nexport const filterMenuLinkProps = (props: MenuLinkProps) =>\n filterProps(filterLinkProps(props) as MenuLinkProps, ['button']);\n\nexport const MenuLink = (props: MenuLinkProps) => (\n <a\n className={MENU_LINK_CLASSNAME}\n css={(theme: Theme) => menuLinkStyle(theme, props)}\n {...filterMenuLinkProps(props)}\n />\n);\n"],"mappings":";;;;;;;;;;AAoBA;AAEA;AACA;AACA;AAEA;AAAkE;AAAA;AAAA;AAM3D,IAAMA,aAAsE,GAAG,SAAzEA,aAAsE,CACjFC,KAAK;EAAA;EAAA,qBACJC,IAAI;IAAJA,IAAI,0BAAG,IAAI;IAAA,kBAAEC,KAAK;IAALA,KAAK,2BAAGF,KAAK,CAACG,OAAO,CAACD,KAAK;IAAA,qBAAEE,QAAQ;IAARA,QAAQ,8BAAG,MAAM;IAAA,0BAAEC,aAAa;IAAbA,aAAa,mCAAG,WAAW;IAAA,mBAAEC,MAAM;IAANA,MAAM,4BAAG,KAAK;IAAKC,KAAK;EAAA,uCAEhH,IAAAC,eAAS,EAACR,KAAK;IAAGC,IAAI,EAAJA,IAAI;IAAEC,KAAK,EAALA,KAAK;IAAEE,QAAQ,EAARA,QAAQ;IAAEC,aAAa,EAAbA;EAAa,GAAKE,KAAK,EAAE,8EACpEE,mBAAK,CAACC,uBAAS,CAACC,OAAO,CAAC;IACvB,iBAAiB,EAAE;MACjBC,UAAU,EAAE;IACd,CAAC;IACD,gBAAgB,EAAE;MAChBC,WAAW,EAAE;IACf,CAAC;IACDC,MAAM,EAAE;EAAe,cAClBC,gDAAiC,SAAO;IAC3C,iBAAiB,EAAE;MACjBH,UAAU,EAAE;IACd,CAAC;IACD,gBAAgB,EAAE;MAChBC,WAAW,EAAE;IACf;EACF,CAAC,qDAEFJ,mBAAK,CAACC,uBAAS,CAACM,WAAW,CAAC,EAAG;IAC9BC,MAAM,EAAE,MAAM;IACdb,QAAQ,EAAE,iBAAiB;IAC3Bc,UAAU,EAAE,GAAG;IACfC,QAAQ,EAAE,OAAO;IACjBC,OAAO,EAAE,UAAU;IACnBf,aAAa,EAAE;EACjB,CAAC,8DACOC,MAAM,GAAG,8BAA8B,GAAGe,SAAS,oEAC7Cf,MAAM,GAAG,KAAK,GAAGe,SAAS,+DAC/Bf,MAAM,GAAG,WAAW,GAAGe,SAAS;AAAA,CACzC;AAAC;AAEI,IAAMC,mBAAmB,GAAG,WAAW;AAAC;AAExC,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmB,CAAIhB,KAAoB;EAAA,OACtD,IAAAiB,iBAAW,EAAC,IAAAC,qBAAe,EAAClB,KAAK,CAAC,EAAmB,CAAC,QAAQ,CAAC,CAAC;AAAA;AAAC;AAE5D,IAAMmB,QAAQ,GAAG,SAAXA,QAAQ,CAAInB,KAAoB;EAAA,OAC3C;IACE,SAAS,EAAEe,mBAAoB;IAC/B,GAAG,EAAE,aAACtB,KAAY;MAAA,OAAKD,aAAa,CAACC,KAAK,EAAEO,KAAK,CAAC;IAAA;EAAC,GAC/CgB,mBAAmB,CAAChB,KAAK,CAAC,EAC9B;AAAA,CACH;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"MenuOpenButton.d.js"}
1
+ {"version":3,"file":"MenuOpenButton.d.js","names":[],"sources":["MenuOpenButton.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport { CSSObject, jsx } from '@emotion/react';\nimport React from 'react';\nimport { Theme } from '../Theme';\nexport interface MenuOpenButtonProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n open?: boolean;\n}\nexport declare const menuOpenButtonStyle: <T>(theme: Theme, props: MenuOpenButtonProps<T>) => CSSObject;\nexport declare const MenuOpenButton: (props: MenuOpenButtonProps) => jsx.JSX.Element;\n"],"mappings":""}
@@ -1,24 +1,16 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports.MenuOpenButton = exports.menuOpenButtonStyle = void 0;
9
-
7
+ exports.menuOpenButtonStyle = exports.MenuOpenButton = void 0;
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
-
14
10
  var _react = require("@emotion/react");
15
-
16
11
  var _react2 = _interopRequireDefault(require("react"));
17
-
18
12
  var _mediaQueries = require("../../mediaQueries");
19
-
20
13
  var _util = require("../../util");
21
-
22
14
  /*
23
15
  * Wire
24
16
  * Copyright (C) 2018 Wire Swiss GmbH
@@ -39,9 +31,9 @@ var _util = require("../../util");
39
31
  */
40
32
 
41
33
  /** @jsx jsx */
34
+
42
35
  var menuOpenButtonStyle = function menuOpenButtonStyle(theme, _ref) {
43
36
  var _ref2;
44
-
45
37
  var open = _ref.open;
46
38
  return _ref2 = {
47
39
  display: 'block',
@@ -66,13 +58,10 @@ var menuOpenButtonStyle = function menuOpenButtonStyle(theme, _ref) {
66
58
  display: 'none'
67
59
  }), (0, _defineProperty2["default"])(_ref2, "zIndex", 2), _ref2;
68
60
  };
69
-
70
61
  exports.menuOpenButtonStyle = menuOpenButtonStyle;
71
-
72
62
  var filterMenuOpenButtonProps = function filterMenuOpenButtonProps(props) {
73
63
  return (0, _util.filterProps)(props, ['open']);
74
64
  };
75
-
76
65
  var MenuOpenButton = function MenuOpenButton(props) {
77
66
  return (0, _react.jsx)("div", (0, _extends2["default"])({
78
67
  css: function css(theme) {
@@ -80,6 +69,5 @@ var MenuOpenButton = function MenuOpenButton(props) {
80
69
  }
81
70
  }, filterMenuOpenButtonProps(props)), (0, _react.jsx)("div", null), (0, _react.jsx)("div", null), (0, _react.jsx)("div", null));
82
71
  };
83
-
84
72
  exports.MenuOpenButton = MenuOpenButton;
85
73
  //# sourceMappingURL=MenuOpenButton.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["MenuOpenButton.tsx"],"names":["menuOpenButtonStyle","theme","open","display","div","backgroundColor","general","color","height","margin","transition","width","transform","undefined","opacity","media","QueryKeys","DESKTOP","filterMenuOpenButtonProps","props","MenuOpenButton"],"mappings":";;;;;;;;;;;;;AAoBA;;AACA;;AAEA;;AACA;;AAxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAYO,IAAMA,mBAAkF,GAAG,SAArFA,mBAAqF,CAACC,KAAD;AAAA;;AAAA,MAASC,IAAT,QAASA,IAAT;AAAA;AAChGC,IAAAA,OAAO,EAAE,OADuF;AAEhGC,IAAAA,GAAG,EAAE;AACHC,MAAAA,eAAe,EAAEJ,KAAK,CAACK,OAAN,CAAcC,KAD5B;AAEHC,MAAAA,MAAM,EAAE,KAFL;AAGHC,MAAAA,MAAM,EAAE,KAHL;AAIHC,MAAAA,UAAU,EAAE,uBAJT;AAKHC,MAAAA,KAAK,EAAE;AALJ,KAF2F;AAShG,0BAAsB;AACpBC,MAAAA,SAAS,EAAEV,IAAI,GAAG,gCAAH,GAAsCW;AADjC,KAT0E;AAYhG,0BAAsB;AACpBC,MAAAA,OAAO,EAAEZ,IAAI,GAAG,CAAH,GAAOW,SADA;AAEpBD,MAAAA,SAAS,EAAEV,IAAI,GAAG,aAAH,GAAmBW;AAFd,KAZ0E;AAgBhG,0BAAsB;AACpBD,MAAAA,SAAS,EAAEV,IAAI,GAAG,gCAAH,GAAsCW;AADjC;AAhB0E,6CAmB/FE,oBAAMC,wBAAUC,OAAhB,CAnB+F,EAmBpE;AAC1Bd,IAAAA,OAAO,EAAE;AADiB,GAnBoE,qDAsBxF,CAtBwF;AAAA,CAA3F;;;;AAyBP,IAAMe,yBAAyB,GAAG,SAA5BA,yBAA4B,CAACC,KAAD;AAAA,SAAgC,uBAAYA,KAAZ,EAAmB,CAAC,MAAD,CAAnB,CAAhC;AAAA,CAAlC;;AAEO,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CAACD,KAAD;AAAA,SAC5B;AAAK,IAAA,GAAG,EAAE,aAAClB,KAAD;AAAA,aAAkBD,mBAAmB,CAACC,KAAD,EAAQkB,KAAR,CAArC;AAAA;AAAV,KAAmED,yBAAyB,CAACC,KAAD,CAA5F,GACE,4BADF,EAEE,4BAFF,EAGE,4BAHF,CAD4B;AAAA,CAAvB","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 {Theme} from '../Theme';\n\nexport interface MenuOpenButtonProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n open?: boolean;\n}\n\nexport const menuOpenButtonStyle: <T>(theme: Theme, props: MenuOpenButtonProps<T>) => CSSObject = (theme, {open}) => ({\n display: 'block',\n div: {\n backgroundColor: theme.general.color,\n height: '2px',\n margin: '4px',\n transition: 'all 0.25s ease-in-out',\n width: '16px',\n },\n 'div:nth-of-type(1)': {\n transform: open ? 'translateY(6px) rotate(-45deg)' : undefined,\n },\n 'div:nth-of-type(2)': {\n opacity: open ? 0 : undefined,\n transform: open ? 'scale(0, 1)' : undefined,\n },\n 'div:nth-of-type(3)': {\n transform: open ? 'translateY(-6px) rotate(45deg)' : undefined,\n },\n [media[QueryKeys.DESKTOP]]: {\n display: 'none',\n },\n zIndex: 2,\n});\n\nconst filterMenuOpenButtonProps = (props: MenuOpenButtonProps) => filterProps(props, ['open']);\n\nexport const MenuOpenButton = (props: MenuOpenButtonProps) => (\n <div css={(theme: Theme) => menuOpenButtonStyle(theme, props)} {...filterMenuOpenButtonProps(props)}>\n <div />\n <div />\n <div />\n </div>\n);\n"],"file":"MenuOpenButton.js"}
1
+ {"version":3,"file":"MenuOpenButton.js","names":["menuOpenButtonStyle","theme","open","display","div","backgroundColor","general","color","height","margin","transition","width","transform","undefined","opacity","media","QueryKeys","DESKTOP","filterMenuOpenButtonProps","props","filterProps","MenuOpenButton"],"sources":["MenuOpenButton.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 {Theme} from '../Theme';\n\nexport interface MenuOpenButtonProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n open?: boolean;\n}\n\nexport const menuOpenButtonStyle: <T>(theme: Theme, props: MenuOpenButtonProps<T>) => CSSObject = (theme, {open}) => ({\n display: 'block',\n div: {\n backgroundColor: theme.general.color,\n height: '2px',\n margin: '4px',\n transition: 'all 0.25s ease-in-out',\n width: '16px',\n },\n 'div:nth-of-type(1)': {\n transform: open ? 'translateY(6px) rotate(-45deg)' : undefined,\n },\n 'div:nth-of-type(2)': {\n opacity: open ? 0 : undefined,\n transform: open ? 'scale(0, 1)' : undefined,\n },\n 'div:nth-of-type(3)': {\n transform: open ? 'translateY(-6px) rotate(45deg)' : undefined,\n },\n [media[QueryKeys.DESKTOP]]: {\n display: 'none',\n },\n zIndex: 2,\n});\n\nconst filterMenuOpenButtonProps = (props: MenuOpenButtonProps) => filterProps(props, ['open']);\n\nexport const MenuOpenButton = (props: MenuOpenButtonProps) => (\n <div css={(theme: Theme) => menuOpenButtonStyle(theme, props)} {...filterMenuOpenButtonProps(props)}>\n <div />\n <div />\n <div />\n </div>\n);\n"],"mappings":";;;;;;;;;AAoBA;AACA;AAEA;AACA;AAxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAYO,IAAMA,mBAAkF,GAAG,SAArFA,mBAAkF,CAAIC,KAAK;EAAA;EAAA,IAAGC,IAAI,QAAJA,IAAI;EAAA;IAC7GC,OAAO,EAAE,OAAO;IAChBC,GAAG,EAAE;MACHC,eAAe,EAAEJ,KAAK,CAACK,OAAO,CAACC,KAAK;MACpCC,MAAM,EAAE,KAAK;MACbC,MAAM,EAAE,KAAK;MACbC,UAAU,EAAE,uBAAuB;MACnCC,KAAK,EAAE;IACT,CAAC;IACD,oBAAoB,EAAE;MACpBC,SAAS,EAAEV,IAAI,GAAG,gCAAgC,GAAGW;IACvD,CAAC;IACD,oBAAoB,EAAE;MACpBC,OAAO,EAAEZ,IAAI,GAAG,CAAC,GAAGW,SAAS;MAC7BD,SAAS,EAAEV,IAAI,GAAG,aAAa,GAAGW;IACpC,CAAC;IACD,oBAAoB,EAAE;MACpBD,SAAS,EAAEV,IAAI,GAAG,gCAAgC,GAAGW;IACvD;EAAC,2CACAE,mBAAK,CAACC,uBAAS,CAACC,OAAO,CAAC,EAAG;IAC1Bd,OAAO,EAAE;EACX,CAAC,qDACO,CAAC;AAAA,CACT;AAAC;AAEH,IAAMe,yBAAyB,GAAG,SAA5BA,yBAAyB,CAAIC,KAA0B;EAAA,OAAK,IAAAC,iBAAW,EAACD,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC;AAAA;AAEvF,IAAME,cAAc,GAAG,SAAjBA,cAAc,CAAIF,KAA0B;EAAA,OACvD;IAAK,GAAG,EAAE,aAAClB,KAAY;MAAA,OAAKD,mBAAmB,CAACC,KAAK,EAAEkB,KAAK,CAAC;IAAA;EAAC,GAAKD,yBAAyB,CAACC,KAAK,CAAC,GACjG,4BAAO,EACP,4BAAO,EACP,4BAAO,CACH;AAAA,CACP;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"MenuScrollableItems.d.js"}
1
+ {"version":3,"file":"MenuScrollableItems.d.js","names":[],"sources":["MenuScrollableItems.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport { CSSObject, jsx } from '@emotion/react';\nimport React from 'react';\nexport interface MenuScrollableItemsProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n open?: boolean;\n}\nexport declare const menuScrollableItemsStyle: <T>(props: MenuScrollableItemsProps<T>) => CSSObject;\nexport declare const MenuScrollableItems: (props: MenuScrollableItemsProps) => jsx.JSX.Element;\n"],"mappings":""}
@@ -1,22 +1,15 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports.MenuScrollableItems = exports.menuScrollableItemsStyle = void 0;
9
-
7
+ exports.menuScrollableItemsStyle = exports.MenuScrollableItems = void 0;
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
-
14
10
  var _react = require("@emotion/react");
15
-
16
11
  var _react2 = _interopRequireDefault(require("react"));
17
-
18
12
  var _mediaQueries = require("../../mediaQueries");
19
-
20
13
  /*
21
14
  * Wire
22
15
  * Copyright (C) 2018 Wire Swiss GmbH
@@ -37,6 +30,7 @@ var _mediaQueries = require("../../mediaQueries");
37
30
  */
38
31
 
39
32
  /** @jsx jsx */
33
+
40
34
  var menuScrollableItemsStyle = function menuScrollableItemsStyle(props) {
41
35
  return (0, _defineProperty2["default"])({
42
36
  alignItems: 'center',
@@ -48,14 +42,11 @@ var menuScrollableItemsStyle = function menuScrollableItemsStyle(props) {
48
42
  margin: 'auto'
49
43
  });
50
44
  };
51
-
52
45
  exports.menuScrollableItemsStyle = menuScrollableItemsStyle;
53
-
54
46
  var MenuScrollableItems = function MenuScrollableItems(props) {
55
47
  return (0, _react.jsx)("div", (0, _extends2["default"])({
56
48
  css: menuScrollableItemsStyle(props)
57
49
  }, props));
58
50
  };
59
-
60
51
  exports.MenuScrollableItems = MenuScrollableItems;
61
52
  //# sourceMappingURL=MenuScrollableItems.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["MenuScrollableItems.tsx"],"names":["menuScrollableItemsStyle","props","alignItems","alignSelf","display","media","QueryKeys","TABLET_DOWN","flexDirection","margin","MenuScrollableItems"],"mappings":";;;;;;;;;;;;;AAoBA;;AACA;;AAEA;;AAvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAUO,IAAMA,wBAA8E,GAAG,SAAjFA,wBAAiF,CAAAC,KAAK;AAAA;AACjGC,IAAAA,UAAU,EAAE,QADqF;AAEjGC,IAAAA,SAAS,EAAE,QAFsF;AAGjGC,IAAAA,OAAO,EAAE;AAHwF,KAIhGC,oBAAMC,wBAAUC,WAAhB,CAJgG,EAIjE;AAC9BL,IAAAA,UAAU,EAAE,QADkB;AAE9BM,IAAAA,aAAa,EAAE,QAFe;AAG9BC,IAAAA,MAAM,EAAE;AAHsB,GAJiE;AAAA,CAA5F;;;;AAWA,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAsB,CAACT,KAAD;AAAA,SACjC;AAAK,IAAA,GAAG,EAAED,wBAAwB,CAACC,KAAD;AAAlC,KAA+CA,KAA/C,EADiC;AAAA,CAA5B","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';\n\nexport interface MenuScrollableItemsProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n open?: boolean;\n}\n\nexport const menuScrollableItemsStyle: <T>(props: MenuScrollableItemsProps<T>) => CSSObject = props => ({\n alignItems: 'center',\n alignSelf: 'center',\n display: 'flex',\n [media[QueryKeys.TABLET_DOWN]]: {\n alignItems: 'center',\n flexDirection: 'column',\n margin: 'auto',\n },\n});\n\nexport const MenuScrollableItems = (props: MenuScrollableItemsProps) => (\n <div css={menuScrollableItemsStyle(props)} {...props} />\n);\n"],"file":"MenuScrollableItems.js"}
1
+ {"version":3,"file":"MenuScrollableItems.js","names":["menuScrollableItemsStyle","props","alignItems","alignSelf","display","media","QueryKeys","TABLET_DOWN","flexDirection","margin","MenuScrollableItems"],"sources":["MenuScrollableItems.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';\n\nexport interface MenuScrollableItemsProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n open?: boolean;\n}\n\nexport const menuScrollableItemsStyle: <T>(props: MenuScrollableItemsProps<T>) => CSSObject = props => ({\n alignItems: 'center',\n alignSelf: 'center',\n display: 'flex',\n [media[QueryKeys.TABLET_DOWN]]: {\n alignItems: 'center',\n flexDirection: 'column',\n margin: 'auto',\n },\n});\n\nexport const MenuScrollableItems = (props: MenuScrollableItemsProps) => (\n <div css={menuScrollableItemsStyle(props)} {...props} />\n);\n"],"mappings":";;;;;;;;;AAoBA;AACA;AAEA;AAvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAUO,IAAMA,wBAA8E,GAAG,SAAjFA,wBAA8E,CAAGC,KAAK;EAAA;IACjGC,UAAU,EAAE,QAAQ;IACpBC,SAAS,EAAE,QAAQ;IACnBC,OAAO,EAAE;EAAM,GACdC,mBAAK,CAACC,uBAAS,CAACC,WAAW,CAAC,EAAG;IAC9BL,UAAU,EAAE,QAAQ;IACpBM,aAAa,EAAE,QAAQ;IACvBC,MAAM,EAAE;EACV,CAAC;AAAA,CACD;AAAC;AAEI,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmB,CAAIT,KAA+B;EAAA,OACjE;IAAK,GAAG,EAAED,wBAAwB,CAACC,KAAK;EAAE,GAAKA,KAAK,EAAI;AAAA,CACzD;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"MenuSubLink.d.js"}
1
+ {"version":3,"file":"MenuSubLink.d.js","names":[],"sources":["MenuSubLink.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport { CSSObject, jsx } from '@emotion/react';\nimport { TextProps } from '../../Text';\nimport { Theme } from '../Theme';\ndeclare type MenuSubLinkProps<T = HTMLDivElement> = TextProps<T>;\nexport declare const menuSubLinkStyle: <T>(theme: Theme, props: MenuSubLinkProps<T>) => CSSObject;\nexport declare const MenuSubLink: (props: MenuSubLinkProps) => jsx.JSX.Element;\nexport {};\n"],"mappings":""}
@@ -1,31 +1,20 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports.MenuSubLink = exports.menuSubLinkStyle = void 0;
9
-
7
+ exports.menuSubLinkStyle = exports.MenuSubLink = void 0;
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
-
14
10
  var _react = require("@emotion/react");
15
-
16
11
  var _motions = require("../../Identity/motions");
17
-
18
12
  var _mediaQueries = require("../../mediaQueries");
19
-
20
13
  var _Text = require("../../Text");
21
-
22
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
23
-
24
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
25
-
14
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
26
16
  var menuSubLinkStyle = function menuSubLinkStyle(theme, props) {
27
17
  var _objectSpread2;
28
-
29
18
  return _objectSpread(_objectSpread({}, (0, _Text.textStyle)(theme, props)), {}, (_objectSpread2 = {
30
19
  '&:hover': {
31
20
  filter: 'brightness(70%)'
@@ -54,9 +43,7 @@ var menuSubLinkStyle = function menuSubLinkStyle(theme, props) {
54
43
  textTransform: 'none !important'
55
44
  }), _objectSpread2));
56
45
  };
57
-
58
46
  exports.menuSubLinkStyle = menuSubLinkStyle;
59
-
60
47
  var MenuSubLink = function MenuSubLink(props) {
61
48
  return (0, _react.jsx)("div", (0, _extends2["default"])({
62
49
  css: function css(theme) {
@@ -64,6 +51,5 @@ var MenuSubLink = function MenuSubLink(props) {
64
51
  }
65
52
  }, props));
66
53
  };
67
-
68
54
  exports.MenuSubLink = MenuSubLink;
69
55
  //# sourceMappingURL=MenuSubLink.js.map