@wireapp/react-ui-kit 9.0.3 → 9.0.7

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 (633) hide show
  1. package/lib/Form/Button.d.ts +3 -3
  2. package/lib/Form/Button.d.ts.map +1 -0
  3. package/lib/Form/Button.js +2 -22
  4. package/lib/Form/ButtonLink.d.ts +3 -3
  5. package/lib/Form/ButtonLink.d.ts.map +1 -0
  6. package/lib/Form/ButtonLink.js +5 -25
  7. package/lib/Form/Checkbox.d.ts +6 -7
  8. package/lib/Form/Checkbox.d.ts.map +1 -0
  9. package/lib/Form/Checkbox.js +37 -41
  10. package/lib/Form/CodeInput.d.ts +2 -3
  11. package/lib/Form/CodeInput.d.ts.map +1 -0
  12. package/lib/Form/CodeInput.js +32 -28
  13. package/lib/Form/DropFileInput.d.ts +4 -4
  14. package/lib/Form/DropFileInput.d.ts.map +1 -0
  15. package/lib/Form/DropFileInput.js +20 -30
  16. package/lib/Form/ErrorMessage.d.ts +4 -4
  17. package/lib/Form/ErrorMessage.d.ts.map +1 -0
  18. package/lib/Form/ErrorMessage.js +2 -23
  19. package/lib/Form/Form.d.ts +3 -4
  20. package/lib/Form/Form.d.ts.map +1 -0
  21. package/lib/Form/Form.js +2 -22
  22. package/lib/Form/Input.d.ts +4 -3
  23. package/lib/Form/Input.d.ts.map +1 -0
  24. package/lib/Form/Input.js +33 -44
  25. package/lib/Form/InputBlock.d.ts +4 -5
  26. package/lib/Form/InputBlock.d.ts.map +1 -0
  27. package/lib/Form/InputBlock.js +4 -23
  28. package/lib/Form/InputLabel.d.ts +2 -1
  29. package/lib/Form/InputLabel.d.ts.map +1 -0
  30. package/lib/Form/InputLabel.js +5 -26
  31. package/lib/Form/InputSubmitCombo.d.ts +3 -4
  32. package/lib/Form/InputSubmitCombo.d.ts.map +1 -0
  33. package/lib/Form/InputSubmitCombo.js +16 -18
  34. package/lib/Form/RangeInput.d.ts +2 -2
  35. package/lib/Form/RangeInput.d.ts.map +1 -0
  36. package/lib/Form/RangeInput.js +22 -28
  37. package/lib/Form/RangeInput.styles.d.ts +1 -0
  38. package/lib/Form/RangeInput.styles.d.ts.map +1 -0
  39. package/lib/Form/RangeInput.styles.js +0 -1
  40. package/lib/Form/RoundIconButton.d.ts +3 -3
  41. package/lib/Form/RoundIconButton.d.ts.map +1 -0
  42. package/lib/Form/RoundIconButton.js +3 -23
  43. package/lib/Form/Select.d.ts +5 -5
  44. package/lib/Form/Select.d.ts.map +1 -0
  45. package/lib/Form/Select.js +13 -37
  46. package/lib/Form/SelectComponents.d.ts +8 -11
  47. package/lib/Form/SelectComponents.d.ts.map +1 -0
  48. package/lib/Form/SelectComponents.js +32 -49
  49. package/lib/Form/SelectStyles.d.ts +7 -6
  50. package/lib/Form/SelectStyles.d.ts.map +1 -0
  51. package/lib/Form/SelectStyles.js +1 -2
  52. package/lib/Form/ShakeBox.d.ts +3 -2
  53. package/lib/Form/ShakeBox.d.ts.map +1 -0
  54. package/lib/Form/ShakeBox.js +27 -27
  55. package/lib/Form/Switch.d.ts +2 -3
  56. package/lib/Form/Switch.d.ts.map +1 -0
  57. package/lib/Form/Switch.js +57 -67
  58. package/lib/Form/TextArea.d.ts +3 -3
  59. package/lib/Form/TextArea.d.ts.map +1 -0
  60. package/lib/Form/TextArea.js +29 -10
  61. package/lib/Form/Tooltip.d.ts +3 -4
  62. package/lib/Form/Tooltip.d.ts.map +1 -0
  63. package/lib/Form/Tooltip.js +2 -22
  64. package/lib/Form/index.d.ts +1 -1
  65. package/lib/Form/index.d.ts.map +1 -0
  66. package/lib/Form/index.js +0 -2
  67. package/lib/GlobalCssVariables.d.ts +1 -1
  68. package/lib/GlobalCssVariables.d.ts.map +1 -0
  69. package/lib/GlobalCssVariables.js +0 -1
  70. package/lib/GlobalStyle.d.ts +1 -0
  71. package/lib/GlobalStyle.d.ts.map +1 -0
  72. package/lib/GlobalStyle.js +7 -8
  73. package/lib/Icon/AddPeopleIcon.d.ts +2 -3
  74. package/lib/Icon/AddPeopleIcon.d.ts.map +1 -0
  75. package/lib/Icon/AddPeopleIcon.js +15 -18
  76. package/lib/Icon/ArchiveIcon.d.ts +2 -3
  77. package/lib/Icon/ArchiveIcon.d.ts.map +1 -0
  78. package/lib/Icon/ArchiveIcon.js +4 -7
  79. package/lib/Icon/ArrowDown.d.ts +2 -1
  80. package/lib/Icon/ArrowDown.d.ts.map +1 -0
  81. package/lib/Icon/ArrowDown.js +15 -20
  82. package/lib/Icon/ArrowIcon.d.ts +2 -3
  83. package/lib/Icon/ArrowIcon.d.ts.map +1 -0
  84. package/lib/Icon/ArrowIcon.js +15 -18
  85. package/lib/Icon/AttachmentIcon.d.ts +2 -3
  86. package/lib/Icon/AttachmentIcon.d.ts.map +1 -0
  87. package/lib/Icon/AttachmentIcon.js +4 -7
  88. package/lib/Icon/AudioVideoIcon.d.ts +2 -3
  89. package/lib/Icon/AudioVideoIcon.d.ts.map +1 -0
  90. package/lib/Icon/AudioVideoIcon.js +4 -7
  91. package/lib/Icon/BlockIcon.d.ts +2 -3
  92. package/lib/Icon/BlockIcon.d.ts.map +1 -0
  93. package/lib/Icon/BlockIcon.js +4 -7
  94. package/lib/Icon/Brand/AndroidIcon.d.ts +2 -3
  95. package/lib/Icon/Brand/AndroidIcon.d.ts.map +1 -0
  96. package/lib/Icon/Brand/AndroidIcon.js +4 -7
  97. package/lib/Icon/Brand/AppleIcon.d.ts +2 -3
  98. package/lib/Icon/Brand/AppleIcon.d.ts.map +1 -0
  99. package/lib/Icon/Brand/AppleIcon.js +4 -7
  100. package/lib/Icon/Brand/ChromeIcon.d.ts +2 -3
  101. package/lib/Icon/Brand/ChromeIcon.d.ts.map +1 -0
  102. package/lib/Icon/Brand/ChromeIcon.js +4 -7
  103. package/lib/Icon/Brand/FacebookIcon.d.ts +2 -3
  104. package/lib/Icon/Brand/FacebookIcon.d.ts.map +1 -0
  105. package/lib/Icon/Brand/FacebookIcon.js +4 -7
  106. package/lib/Icon/Brand/GitHubIcon.d.ts +2 -3
  107. package/lib/Icon/Brand/GitHubIcon.d.ts.map +1 -0
  108. package/lib/Icon/Brand/GitHubIcon.js +4 -7
  109. package/lib/Icon/Brand/LinkedInIcon.d.ts +2 -3
  110. package/lib/Icon/Brand/LinkedInIcon.d.ts.map +1 -0
  111. package/lib/Icon/Brand/LinkedInIcon.js +4 -7
  112. package/lib/Icon/Brand/LinuxIcon.d.ts +2 -3
  113. package/lib/Icon/Brand/LinuxIcon.d.ts.map +1 -0
  114. package/lib/Icon/Brand/LinuxIcon.js +4 -7
  115. package/lib/Icon/Brand/MicrosoftIcon.d.ts +2 -3
  116. package/lib/Icon/Brand/MicrosoftIcon.d.ts.map +1 -0
  117. package/lib/Icon/Brand/MicrosoftIcon.js +4 -7
  118. package/lib/Icon/Brand/TwitterIcon.d.ts +2 -3
  119. package/lib/Icon/Brand/TwitterIcon.d.ts.map +1 -0
  120. package/lib/Icon/Brand/TwitterIcon.js +4 -7
  121. package/lib/Icon/CallIcon.d.ts +2 -3
  122. package/lib/Icon/CallIcon.d.ts.map +1 -0
  123. package/lib/Icon/CallIcon.js +4 -7
  124. package/lib/Icon/CamIcon.d.ts +2 -3
  125. package/lib/Icon/CamIcon.d.ts.map +1 -0
  126. package/lib/Icon/CamIcon.js +4 -7
  127. package/lib/Icon/CameraIcon.d.ts +2 -3
  128. package/lib/Icon/CameraIcon.d.ts.map +1 -0
  129. package/lib/Icon/CameraIcon.js +15 -18
  130. package/lib/Icon/CheckIcon.d.ts +2 -3
  131. package/lib/Icon/CheckIcon.d.ts.map +1 -0
  132. package/lib/Icon/CheckIcon.js +4 -7
  133. package/lib/Icon/CheckRoundIcon.d.ts +2 -3
  134. package/lib/Icon/CheckRoundIcon.d.ts.map +1 -0
  135. package/lib/Icon/CheckRoundIcon.js +4 -7
  136. package/lib/Icon/ChevronIcon.d.ts +2 -3
  137. package/lib/Icon/ChevronIcon.d.ts.map +1 -0
  138. package/lib/Icon/ChevronIcon.js +15 -18
  139. package/lib/Icon/CloseIcon.d.ts +2 -3
  140. package/lib/Icon/CloseIcon.d.ts.map +1 -0
  141. package/lib/Icon/CloseIcon.js +4 -7
  142. package/lib/Icon/CopyIcon.d.ts +2 -3
  143. package/lib/Icon/CopyIcon.d.ts.map +1 -0
  144. package/lib/Icon/CopyIcon.js +4 -7
  145. package/lib/Icon/DeviceIcon.d.ts +2 -3
  146. package/lib/Icon/DeviceIcon.d.ts.map +1 -0
  147. package/lib/Icon/DeviceIcon.js +4 -7
  148. package/lib/Icon/DownloadIcon.d.ts +2 -3
  149. package/lib/Icon/DownloadIcon.d.ts.map +1 -0
  150. package/lib/Icon/DownloadIcon.js +4 -7
  151. package/lib/Icon/EditDocumentIcon.d.ts +2 -3
  152. package/lib/Icon/EditDocumentIcon.d.ts.map +1 -0
  153. package/lib/Icon/EditDocumentIcon.js +15 -18
  154. package/lib/Icon/EditIcon.d.ts +2 -3
  155. package/lib/Icon/EditIcon.d.ts.map +1 -0
  156. package/lib/Icon/EditIcon.js +4 -7
  157. package/lib/Icon/EnterIcon.d.ts +2 -3
  158. package/lib/Icon/EnterIcon.d.ts.map +1 -0
  159. package/lib/Icon/EnterIcon.js +4 -7
  160. package/lib/Icon/ErrorIcon.d.ts +2 -3
  161. package/lib/Icon/ErrorIcon.d.ts.map +1 -0
  162. package/lib/Icon/ErrorIcon.js +4 -10
  163. package/lib/Icon/FileIcon.d.ts +2 -3
  164. package/lib/Icon/FileIcon.d.ts.map +1 -0
  165. package/lib/Icon/FileIcon.js +4 -7
  166. package/lib/Icon/GifIcon.d.ts +2 -3
  167. package/lib/Icon/GifIcon.d.ts.map +1 -0
  168. package/lib/Icon/GifIcon.js +4 -7
  169. package/lib/Icon/GridIcon.d.ts +2 -3
  170. package/lib/Icon/GridIcon.d.ts.map +1 -0
  171. package/lib/Icon/GridIcon.js +15 -18
  172. package/lib/Icon/GroupIcon.d.ts +2 -3
  173. package/lib/Icon/GroupIcon.d.ts.map +1 -0
  174. package/lib/Icon/GroupIcon.js +4 -7
  175. package/lib/Icon/HangupIcon.d.ts +2 -3
  176. package/lib/Icon/HangupIcon.d.ts.map +1 -0
  177. package/lib/Icon/HangupIcon.js +4 -7
  178. package/lib/Icon/HideIcon.d.ts +2 -3
  179. package/lib/Icon/HideIcon.d.ts.map +1 -0
  180. package/lib/Icon/HideIcon.js +4 -7
  181. package/lib/Icon/ImageIcon.d.ts +2 -3
  182. package/lib/Icon/ImageIcon.d.ts.map +1 -0
  183. package/lib/Icon/ImageIcon.js +4 -7
  184. package/lib/Icon/InfoIcon.d.ts +2 -3
  185. package/lib/Icon/InfoIcon.d.ts.map +1 -0
  186. package/lib/Icon/InfoIcon.js +4 -7
  187. package/lib/Icon/InviteIcon.d.ts +2 -3
  188. package/lib/Icon/InviteIcon.d.ts.map +1 -0
  189. package/lib/Icon/InviteIcon.js +4 -7
  190. package/lib/Icon/LeaveIcon.d.ts +2 -3
  191. package/lib/Icon/LeaveIcon.d.ts.map +1 -0
  192. package/lib/Icon/LeaveIcon.js +4 -7
  193. package/lib/Icon/LinkIcon.d.ts +2 -3
  194. package/lib/Icon/LinkIcon.d.ts.map +1 -0
  195. package/lib/Icon/LinkIcon.js +15 -18
  196. package/lib/Icon/ListIcon.d.ts +2 -3
  197. package/lib/Icon/ListIcon.d.ts.map +1 -0
  198. package/lib/Icon/ListIcon.js +4 -7
  199. package/lib/Icon/LockIcon.d.ts +2 -3
  200. package/lib/Icon/LockIcon.d.ts.map +1 -0
  201. package/lib/Icon/LockIcon.js +4 -7
  202. package/lib/Icon/MessageIcon.d.ts +2 -3
  203. package/lib/Icon/MessageIcon.d.ts.map +1 -0
  204. package/lib/Icon/MessageIcon.js +4 -7
  205. package/lib/Icon/MinusIcon.d.ts +2 -3
  206. package/lib/Icon/MinusIcon.d.ts.map +1 -0
  207. package/lib/Icon/MinusIcon.js +4 -7
  208. package/lib/Icon/MoreIcon.d.ts +2 -3
  209. package/lib/Icon/MoreIcon.d.ts.map +1 -0
  210. package/lib/Icon/MoreIcon.js +4 -7
  211. package/lib/Icon/MuteIcon.d.ts +2 -3
  212. package/lib/Icon/MuteIcon.d.ts.map +1 -0
  213. package/lib/Icon/MuteIcon.js +4 -7
  214. package/lib/Icon/NotificationIcon.d.ts +2 -3
  215. package/lib/Icon/NotificationIcon.d.ts.map +1 -0
  216. package/lib/Icon/NotificationIcon.js +4 -7
  217. package/lib/Icon/NotificationOffIcon.d.ts +2 -3
  218. package/lib/Icon/NotificationOffIcon.d.ts.map +1 -0
  219. package/lib/Icon/NotificationOffIcon.js +4 -7
  220. package/lib/Icon/OptionsIcon.d.ts +2 -3
  221. package/lib/Icon/OptionsIcon.d.ts.map +1 -0
  222. package/lib/Icon/OptionsIcon.js +4 -7
  223. package/lib/Icon/PeopleIcon.d.ts +2 -3
  224. package/lib/Icon/PeopleIcon.d.ts.map +1 -0
  225. package/lib/Icon/PeopleIcon.js +15 -18
  226. package/lib/Icon/PingIcon.d.ts +2 -3
  227. package/lib/Icon/PingIcon.d.ts.map +1 -0
  228. package/lib/Icon/PingIcon.js +4 -7
  229. package/lib/Icon/PlaneIcon.d.ts +2 -3
  230. package/lib/Icon/PlaneIcon.d.ts.map +1 -0
  231. package/lib/Icon/PlaneIcon.js +4 -7
  232. package/lib/Icon/PlusIcon.d.ts +2 -3
  233. package/lib/Icon/PlusIcon.d.ts.map +1 -0
  234. package/lib/Icon/PlusIcon.js +4 -7
  235. package/lib/Icon/ProfileIcon.d.ts +2 -3
  236. package/lib/Icon/ProfileIcon.d.ts.map +1 -0
  237. package/lib/Icon/ProfileIcon.js +4 -7
  238. package/lib/Icon/RecordBoldIcon.d.ts +2 -3
  239. package/lib/Icon/RecordBoldIcon.d.ts.map +1 -0
  240. package/lib/Icon/RecordBoldIcon.js +19 -24
  241. package/lib/Icon/RecordIcon.d.ts +2 -3
  242. package/lib/Icon/RecordIcon.d.ts.map +1 -0
  243. package/lib/Icon/RecordIcon.js +4 -9
  244. package/lib/Icon/RecordPendingIcon.d.ts +2 -3
  245. package/lib/Icon/RecordPendingIcon.d.ts.map +1 -0
  246. package/lib/Icon/RecordPendingIcon.js +4 -9
  247. package/lib/Icon/ReloadIcon.d.ts +2 -3
  248. package/lib/Icon/ReloadIcon.d.ts.map +1 -0
  249. package/lib/Icon/ReloadIcon.js +4 -7
  250. package/lib/Icon/SVGIcon.d.ts +3 -4
  251. package/lib/Icon/SVGIcon.d.ts.map +1 -0
  252. package/lib/Icon/SVGIcon.js +2 -28
  253. package/lib/Icon/ScreenshareIcon.d.ts +2 -3
  254. package/lib/Icon/ScreenshareIcon.d.ts.map +1 -0
  255. package/lib/Icon/ScreenshareIcon.js +4 -7
  256. package/lib/Icon/SearchIcon.d.ts +2 -3
  257. package/lib/Icon/SearchIcon.d.ts.map +1 -0
  258. package/lib/Icon/SearchIcon.js +4 -7
  259. package/lib/Icon/ServicesIcon.d.ts +2 -3
  260. package/lib/Icon/ServicesIcon.d.ts.map +1 -0
  261. package/lib/Icon/ServicesIcon.js +4 -7
  262. package/lib/Icon/SettingsIcon.d.ts +2 -3
  263. package/lib/Icon/SettingsIcon.d.ts.map +1 -0
  264. package/lib/Icon/SettingsIcon.js +4 -7
  265. package/lib/Icon/ShowIcon.d.ts +2 -3
  266. package/lib/Icon/ShowIcon.d.ts.map +1 -0
  267. package/lib/Icon/ShowIcon.js +4 -7
  268. package/lib/Icon/SignIcon.d.ts +2 -3
  269. package/lib/Icon/SignIcon.d.ts.map +1 -0
  270. package/lib/Icon/SignIcon.js +4 -7
  271. package/lib/Icon/SpeakerIcon.d.ts +2 -3
  272. package/lib/Icon/SpeakerIcon.d.ts.map +1 -0
  273. package/lib/Icon/SpeakerIcon.js +4 -7
  274. package/lib/Icon/SupportIcon.d.ts +2 -3
  275. package/lib/Icon/SupportIcon.d.ts.map +1 -0
  276. package/lib/Icon/SupportIcon.js +4 -7
  277. package/lib/Icon/TeamIcon.d.ts +2 -3
  278. package/lib/Icon/TeamIcon.d.ts.map +1 -0
  279. package/lib/Icon/TeamIcon.js +4 -7
  280. package/lib/Icon/TimedIcon.d.ts +2 -3
  281. package/lib/Icon/TimedIcon.d.ts.map +1 -0
  282. package/lib/Icon/TimedIcon.js +4 -7
  283. package/lib/Icon/TrashCrossIcon.d.ts +2 -3
  284. package/lib/Icon/TrashCrossIcon.d.ts.map +1 -0
  285. package/lib/Icon/TrashCrossIcon.js +4 -7
  286. package/lib/Icon/TrashIcon.d.ts +2 -3
  287. package/lib/Icon/TrashIcon.d.ts.map +1 -0
  288. package/lib/Icon/TrashIcon.js +4 -7
  289. package/lib/Icon/TriangleIcon.d.ts +2 -3
  290. package/lib/Icon/TriangleIcon.d.ts.map +1 -0
  291. package/lib/Icon/TriangleIcon.js +2 -23
  292. package/lib/Icon/UploadIcon.d.ts +2 -3
  293. package/lib/Icon/UploadIcon.d.ts.map +1 -0
  294. package/lib/Icon/UploadIcon.js +4 -7
  295. package/lib/Icon/WireIcon.d.ts +2 -3
  296. package/lib/Icon/WireIcon.d.ts.map +1 -0
  297. package/lib/Icon/WireIcon.js +4 -7
  298. package/lib/Icon/index.d.ts +1 -0
  299. package/lib/Icon/index.d.ts.map +1 -0
  300. package/lib/Icon/index.js +0 -1
  301. package/lib/Identity/Animation.d.ts +16 -15
  302. package/lib/Identity/Animation.d.ts.map +1 -0
  303. package/lib/Identity/Animation.js +49 -29
  304. package/lib/Identity/Avatar.d.ts +2 -3
  305. package/lib/Identity/Avatar.d.ts.map +1 -0
  306. package/lib/Identity/Avatar.js +20 -22
  307. package/lib/Identity/AvatarGrid.d.ts +3 -4
  308. package/lib/Identity/AvatarGrid.d.ts.map +1 -0
  309. package/lib/Identity/AvatarGrid.js +8 -28
  310. package/lib/Identity/Logo.d.ts +2 -3
  311. package/lib/Identity/Logo.d.ts.map +1 -0
  312. package/lib/Identity/Logo.js +3 -24
  313. package/lib/Identity/colors-v2.d.ts +1 -0
  314. package/lib/Identity/colors-v2.d.ts.map +1 -0
  315. package/lib/Identity/colors-v2.js +3 -4
  316. package/lib/Identity/colors.d.ts +2 -1
  317. package/lib/Identity/colors.d.ts.map +1 -0
  318. package/lib/Identity/colors.js +0 -1
  319. package/lib/Identity/index.d.ts +1 -0
  320. package/lib/Identity/index.d.ts.map +1 -0
  321. package/lib/Identity/index.js +0 -1
  322. package/lib/Identity/motions.d.ts +1 -0
  323. package/lib/Identity/motions.d.ts.map +1 -0
  324. package/lib/Identity/motions.js +0 -1
  325. package/lib/Layout/Box.d.ts +5 -5
  326. package/lib/Layout/Box.d.ts.map +1 -0
  327. package/lib/Layout/Box.js +3 -23
  328. package/lib/Layout/Column.d.ts +5 -6
  329. package/lib/Layout/Column.d.ts.map +1 -0
  330. package/lib/Layout/Column.js +5 -24
  331. package/lib/Layout/Container.d.ts +8 -7
  332. package/lib/Layout/Container.d.ts.map +1 -0
  333. package/lib/Layout/Container.js +40 -16
  334. package/lib/Layout/Content.d.ts +5 -5
  335. package/lib/Layout/Content.d.ts.map +1 -0
  336. package/lib/Layout/Content.js +3 -22
  337. package/lib/Layout/FlexBox.d.ts +3 -3
  338. package/lib/Layout/FlexBox.d.ts.map +1 -0
  339. package/lib/Layout/FlexBox.js +29 -10
  340. package/lib/Layout/Footer.d.ts +4 -5
  341. package/lib/Layout/Footer.d.ts.map +1 -0
  342. package/lib/Layout/Footer.js +2 -22
  343. package/lib/Layout/Header.d.ts +5 -5
  344. package/lib/Layout/Header.d.ts.map +1 -0
  345. package/lib/Layout/Header.js +3 -23
  346. package/lib/Layout/MatchMedia.d.ts +13 -13
  347. package/lib/Layout/MatchMedia.d.ts.map +1 -0
  348. package/lib/Layout/MatchMedia.js +16 -42
  349. package/lib/Layout/Spacer.d.ts +2 -1
  350. package/lib/Layout/Spacer.d.ts.map +1 -0
  351. package/lib/Layout/Spacer.js +2 -22
  352. package/lib/Layout/StyledApp.d.ts +5 -5
  353. package/lib/Layout/StyledApp.d.ts.map +1 -0
  354. package/lib/Layout/StyledApp.js +4 -26
  355. package/lib/Layout/Theme.d.ts +4 -4
  356. package/lib/Layout/Theme.d.ts.map +1 -0
  357. package/lib/Layout/Theme.js +2 -21
  358. package/lib/Layout/headerMenu/HeaderMenu.d.ts +3 -4
  359. package/lib/Layout/headerMenu/HeaderMenu.d.ts.map +1 -0
  360. package/lib/Layout/headerMenu/HeaderMenu.js +17 -25
  361. package/lib/Layout/headerMenu/HeaderSubMenu.d.ts +5 -6
  362. package/lib/Layout/headerMenu/HeaderSubMenu.d.ts.map +1 -0
  363. package/lib/Layout/headerMenu/HeaderSubMenu.js +8 -35
  364. package/lib/Layout/headerMenu/MenuContent.d.ts +3 -3
  365. package/lib/Layout/headerMenu/MenuContent.d.ts.map +1 -0
  366. package/lib/Layout/headerMenu/MenuContent.js +2 -22
  367. package/lib/Layout/headerMenu/MenuItems.d.ts +4 -4
  368. package/lib/Layout/headerMenu/MenuItems.d.ts.map +1 -0
  369. package/lib/Layout/headerMenu/MenuItems.js +2 -21
  370. package/lib/Layout/headerMenu/MenuLink.d.ts +3 -3
  371. package/lib/Layout/headerMenu/MenuLink.d.ts.map +1 -0
  372. package/lib/Layout/headerMenu/MenuLink.js +3 -23
  373. package/lib/Layout/headerMenu/MenuOpenButton.d.ts +4 -4
  374. package/lib/Layout/headerMenu/MenuOpenButton.d.ts.map +1 -0
  375. package/lib/Layout/headerMenu/MenuOpenButton.js +2 -25
  376. package/lib/Layout/headerMenu/MenuScrollableItems.d.ts +4 -4
  377. package/lib/Layout/headerMenu/MenuScrollableItems.d.ts.map +1 -0
  378. package/lib/Layout/headerMenu/MenuScrollableItems.js +3 -23
  379. package/lib/Layout/headerMenu/MenuSubLink.d.ts +4 -4
  380. package/lib/Layout/headerMenu/MenuSubLink.d.ts.map +1 -0
  381. package/lib/Layout/headerMenu/MenuSubLink.js +2 -22
  382. package/lib/Layout/headerMenu/index.d.ts +1 -0
  383. package/lib/Layout/headerMenu/index.d.ts.map +1 -0
  384. package/lib/Layout/headerMenu/index.js +0 -1
  385. package/lib/Layout/index.d.ts +1 -0
  386. package/lib/Layout/index.d.ts.map +1 -0
  387. package/lib/Layout/index.js +0 -1
  388. package/lib/Layout/sizes.d.ts +1 -0
  389. package/lib/Layout/sizes.d.ts.map +1 -0
  390. package/lib/Layout/sizes.js +0 -1
  391. package/lib/Menu/MenuModal.d.ts +5 -6
  392. package/lib/Menu/MenuModal.d.ts.map +1 -0
  393. package/lib/Menu/MenuModal.js +8 -31
  394. package/lib/Menu/TabBar.d.ts +5 -6
  395. package/lib/Menu/TabBar.d.ts.map +1 -0
  396. package/lib/Menu/TabBar.js +3 -23
  397. package/lib/Menu/index.d.ts +1 -0
  398. package/lib/Menu/index.d.ts.map +1 -0
  399. package/lib/Menu/index.js +0 -1
  400. package/lib/Misc/ButtonGroup.d.ts +10 -10
  401. package/lib/Misc/ButtonGroup.d.ts.map +1 -0
  402. package/lib/Misc/ButtonGroup.js +10 -32
  403. package/lib/Misc/IconButton.d.ts +3 -3
  404. package/lib/Misc/IconButton.d.ts.map +1 -0
  405. package/lib/Misc/IconButton.js +2 -22
  406. package/lib/Misc/IsInViewport.d.ts +3 -4
  407. package/lib/Misc/IsInViewport.d.ts.map +1 -0
  408. package/lib/Misc/IsInViewport.js +18 -20
  409. package/lib/Misc/Loading.d.ts +3 -4
  410. package/lib/Misc/Loading.d.ts.map +1 -0
  411. package/lib/Misc/Loading.js +6 -27
  412. package/lib/Misc/Pagination.d.ts +2 -1
  413. package/lib/Misc/Pagination.d.ts.map +1 -0
  414. package/lib/Misc/Pagination.js +5 -30
  415. package/lib/Misc/Pill.d.ts +4 -4
  416. package/lib/Misc/Pill.d.ts.map +1 -0
  417. package/lib/Misc/Pill.js +2 -21
  418. package/lib/Misc/childrenWithDefaultProps.d.ts +2 -1
  419. package/lib/Misc/childrenWithDefaultProps.d.ts.map +1 -0
  420. package/lib/Misc/childrenWithDefaultProps.js +26 -7
  421. package/lib/Misc/index.d.ts +1 -0
  422. package/lib/Misc/index.d.ts.map +1 -0
  423. package/lib/Misc/index.js +0 -1
  424. package/lib/Misc/useLongTouch.d.ts +1 -0
  425. package/lib/Misc/useLongTouch.d.ts.map +1 -0
  426. package/lib/Misc/useLongTouch.js +2 -3
  427. package/lib/Misc/useTimeout.d.ts +1 -0
  428. package/lib/Misc/useTimeout.d.ts.map +1 -0
  429. package/lib/Misc/useTimeout.js +0 -1
  430. package/lib/Modal/Modal.d.ts +3 -1
  431. package/lib/Modal/Modal.d.ts.map +1 -0
  432. package/lib/Modal/Modal.js +8 -33
  433. package/lib/Modal/Overlay.d.ts +9 -9
  434. package/lib/Modal/Overlay.d.ts.map +1 -0
  435. package/lib/Modal/Overlay.js +5 -27
  436. package/lib/Modal/index.d.ts +1 -0
  437. package/lib/Modal/index.d.ts.map +1 -0
  438. package/lib/Modal/index.js +0 -1
  439. package/lib/Text/Heading.d.ts +8 -8
  440. package/lib/Text/Heading.d.ts.map +1 -0
  441. package/lib/Text/Heading.js +10 -30
  442. package/lib/Text/Label.d.ts +4 -5
  443. package/lib/Text/Label.d.ts.map +1 -0
  444. package/lib/Text/Label.js +3 -23
  445. package/lib/Text/Line.d.ts +4 -4
  446. package/lib/Text/Line.d.ts.map +1 -0
  447. package/lib/Text/Line.js +2 -22
  448. package/lib/Text/Link.d.ts +4 -4
  449. package/lib/Text/Link.d.ts.map +1 -0
  450. package/lib/Text/Link.js +3 -23
  451. package/lib/Text/Paragraph.d.ts +7 -7
  452. package/lib/Text/Paragraph.d.ts.map +1 -0
  453. package/lib/Text/Paragraph.js +4 -24
  454. package/lib/Text/Text.d.ts +9 -9
  455. package/lib/Text/Text.d.ts.map +1 -0
  456. package/lib/Text/Text.js +40 -16
  457. package/lib/Text/TextLink.d.ts +5 -5
  458. package/lib/Text/TextLink.d.ts.map +1 -0
  459. package/lib/Text/TextLink.js +3 -23
  460. package/lib/Text/Title.d.ts +3 -4
  461. package/lib/Text/Title.d.ts.map +1 -0
  462. package/lib/Text/Title.js +3 -23
  463. package/lib/Text/index.d.ts +1 -0
  464. package/lib/Text/index.d.ts.map +1 -0
  465. package/lib/Text/index.js +0 -1
  466. package/lib/index.d.ts +1 -0
  467. package/lib/index.d.ts.map +1 -0
  468. package/lib/index.js +2 -2
  469. package/lib/mediaQueries.d.ts +2 -1
  470. package/lib/mediaQueries.d.ts.map +1 -0
  471. package/lib/mediaQueries.js +0 -1
  472. package/lib/util.d.ts +1 -0
  473. package/lib/util.d.ts.map +1 -0
  474. package/lib/util.js +0 -1
  475. package/package.json +6 -5
  476. package/lib/Form/Button.js.map +0 -1
  477. package/lib/Form/ButtonLink.js.map +0 -1
  478. package/lib/Form/Checkbox.js.map +0 -1
  479. package/lib/Form/CodeInput.js.map +0 -1
  480. package/lib/Form/DropFileInput.js.map +0 -1
  481. package/lib/Form/ErrorMessage.js.map +0 -1
  482. package/lib/Form/Form.js.map +0 -1
  483. package/lib/Form/Input.js.map +0 -1
  484. package/lib/Form/InputBlock.js.map +0 -1
  485. package/lib/Form/InputLabel.js.map +0 -1
  486. package/lib/Form/InputSubmitCombo.js.map +0 -1
  487. package/lib/Form/RangeInput.js.map +0 -1
  488. package/lib/Form/RangeInput.styles.js.map +0 -1
  489. package/lib/Form/RoundIconButton.js.map +0 -1
  490. package/lib/Form/Select.js.map +0 -1
  491. package/lib/Form/SelectComponents.js.map +0 -1
  492. package/lib/Form/SelectStyles.js.map +0 -1
  493. package/lib/Form/ShakeBox.js.map +0 -1
  494. package/lib/Form/Switch.js.map +0 -1
  495. package/lib/Form/TextArea.js.map +0 -1
  496. package/lib/Form/Tooltip.js.map +0 -1
  497. package/lib/Form/index.js.map +0 -1
  498. package/lib/GlobalCssVariables.js.map +0 -1
  499. package/lib/GlobalStyle.js.map +0 -1
  500. package/lib/Icon/AddPeopleIcon.js.map +0 -1
  501. package/lib/Icon/ArchiveIcon.js.map +0 -1
  502. package/lib/Icon/ArrowDown.js.map +0 -1
  503. package/lib/Icon/ArrowIcon.js.map +0 -1
  504. package/lib/Icon/AttachmentIcon.js.map +0 -1
  505. package/lib/Icon/AudioVideoIcon.js.map +0 -1
  506. package/lib/Icon/BlockIcon.js.map +0 -1
  507. package/lib/Icon/Brand/AndroidIcon.js.map +0 -1
  508. package/lib/Icon/Brand/AppleIcon.js.map +0 -1
  509. package/lib/Icon/Brand/ChromeIcon.js.map +0 -1
  510. package/lib/Icon/Brand/FacebookIcon.js.map +0 -1
  511. package/lib/Icon/Brand/GitHubIcon.js.map +0 -1
  512. package/lib/Icon/Brand/LinkedInIcon.js.map +0 -1
  513. package/lib/Icon/Brand/LinuxIcon.js.map +0 -1
  514. package/lib/Icon/Brand/MicrosoftIcon.js.map +0 -1
  515. package/lib/Icon/Brand/TwitterIcon.js.map +0 -1
  516. package/lib/Icon/CallIcon.js.map +0 -1
  517. package/lib/Icon/CamIcon.js.map +0 -1
  518. package/lib/Icon/CameraIcon.js.map +0 -1
  519. package/lib/Icon/CheckIcon.js.map +0 -1
  520. package/lib/Icon/CheckRoundIcon.js.map +0 -1
  521. package/lib/Icon/ChevronIcon.js.map +0 -1
  522. package/lib/Icon/CloseIcon.js.map +0 -1
  523. package/lib/Icon/CopyIcon.js.map +0 -1
  524. package/lib/Icon/DeviceIcon.js.map +0 -1
  525. package/lib/Icon/DownloadIcon.js.map +0 -1
  526. package/lib/Icon/EditDocumentIcon.js.map +0 -1
  527. package/lib/Icon/EditIcon.js.map +0 -1
  528. package/lib/Icon/EnterIcon.js.map +0 -1
  529. package/lib/Icon/ErrorIcon.js.map +0 -1
  530. package/lib/Icon/FileIcon.js.map +0 -1
  531. package/lib/Icon/GifIcon.js.map +0 -1
  532. package/lib/Icon/GridIcon.js.map +0 -1
  533. package/lib/Icon/GroupIcon.js.map +0 -1
  534. package/lib/Icon/HangupIcon.js.map +0 -1
  535. package/lib/Icon/HideIcon.js.map +0 -1
  536. package/lib/Icon/ImageIcon.js.map +0 -1
  537. package/lib/Icon/InfoIcon.js.map +0 -1
  538. package/lib/Icon/InviteIcon.js.map +0 -1
  539. package/lib/Icon/LeaveIcon.js.map +0 -1
  540. package/lib/Icon/LinkIcon.js.map +0 -1
  541. package/lib/Icon/ListIcon.js.map +0 -1
  542. package/lib/Icon/LockIcon.js.map +0 -1
  543. package/lib/Icon/MessageIcon.js.map +0 -1
  544. package/lib/Icon/MinusIcon.js.map +0 -1
  545. package/lib/Icon/MoreIcon.js.map +0 -1
  546. package/lib/Icon/MuteIcon.js.map +0 -1
  547. package/lib/Icon/NotificationIcon.js.map +0 -1
  548. package/lib/Icon/NotificationOffIcon.js.map +0 -1
  549. package/lib/Icon/OptionsIcon.js.map +0 -1
  550. package/lib/Icon/PeopleIcon.js.map +0 -1
  551. package/lib/Icon/PingIcon.js.map +0 -1
  552. package/lib/Icon/PlaneIcon.js.map +0 -1
  553. package/lib/Icon/PlusIcon.js.map +0 -1
  554. package/lib/Icon/ProfileIcon.js.map +0 -1
  555. package/lib/Icon/RecordBoldIcon.js.map +0 -1
  556. package/lib/Icon/RecordIcon.js.map +0 -1
  557. package/lib/Icon/RecordPendingIcon.js.map +0 -1
  558. package/lib/Icon/ReloadIcon.js.map +0 -1
  559. package/lib/Icon/SVGIcon.js.map +0 -1
  560. package/lib/Icon/ScreenshareIcon.js.map +0 -1
  561. package/lib/Icon/SearchIcon.js.map +0 -1
  562. package/lib/Icon/ServicesIcon.js.map +0 -1
  563. package/lib/Icon/SettingsIcon.js.map +0 -1
  564. package/lib/Icon/ShowIcon.js.map +0 -1
  565. package/lib/Icon/SignIcon.js.map +0 -1
  566. package/lib/Icon/SpeakerIcon.js.map +0 -1
  567. package/lib/Icon/SupportIcon.js.map +0 -1
  568. package/lib/Icon/TeamIcon.js.map +0 -1
  569. package/lib/Icon/TimedIcon.js.map +0 -1
  570. package/lib/Icon/TrashCrossIcon.js.map +0 -1
  571. package/lib/Icon/TrashIcon.js.map +0 -1
  572. package/lib/Icon/TriangleIcon.js.map +0 -1
  573. package/lib/Icon/UploadIcon.js.map +0 -1
  574. package/lib/Icon/WireIcon.js.map +0 -1
  575. package/lib/Icon/index.js.map +0 -1
  576. package/lib/Identity/Animation.js.map +0 -1
  577. package/lib/Identity/Avatar.js.map +0 -1
  578. package/lib/Identity/AvatarGrid.js.map +0 -1
  579. package/lib/Identity/Logo.js.map +0 -1
  580. package/lib/Identity/colors-v2.js.map +0 -1
  581. package/lib/Identity/colors.js.map +0 -1
  582. package/lib/Identity/index.js.map +0 -1
  583. package/lib/Identity/motions.js.map +0 -1
  584. package/lib/Layout/Box.js.map +0 -1
  585. package/lib/Layout/Column.js.map +0 -1
  586. package/lib/Layout/Container.js.map +0 -1
  587. package/lib/Layout/Content.js.map +0 -1
  588. package/lib/Layout/FlexBox.js.map +0 -1
  589. package/lib/Layout/Footer.js.map +0 -1
  590. package/lib/Layout/Header.js.map +0 -1
  591. package/lib/Layout/MatchMedia.js.map +0 -1
  592. package/lib/Layout/Spacer.js.map +0 -1
  593. package/lib/Layout/StyledApp.js.map +0 -1
  594. package/lib/Layout/Theme.js.map +0 -1
  595. package/lib/Layout/headerMenu/HeaderMenu.js.map +0 -1
  596. package/lib/Layout/headerMenu/HeaderSubMenu.js.map +0 -1
  597. package/lib/Layout/headerMenu/MenuContent.js.map +0 -1
  598. package/lib/Layout/headerMenu/MenuItems.js.map +0 -1
  599. package/lib/Layout/headerMenu/MenuLink.js.map +0 -1
  600. package/lib/Layout/headerMenu/MenuOpenButton.js.map +0 -1
  601. package/lib/Layout/headerMenu/MenuScrollableItems.js.map +0 -1
  602. package/lib/Layout/headerMenu/MenuSubLink.js.map +0 -1
  603. package/lib/Layout/headerMenu/index.js.map +0 -1
  604. package/lib/Layout/index.js.map +0 -1
  605. package/lib/Layout/sizes.js.map +0 -1
  606. package/lib/Menu/MenuModal.js.map +0 -1
  607. package/lib/Menu/TabBar.js.map +0 -1
  608. package/lib/Menu/index.js.map +0 -1
  609. package/lib/Misc/ButtonGroup.js.map +0 -1
  610. package/lib/Misc/IconButton.js.map +0 -1
  611. package/lib/Misc/IsInViewport.js.map +0 -1
  612. package/lib/Misc/Loading.js.map +0 -1
  613. package/lib/Misc/Pagination.js.map +0 -1
  614. package/lib/Misc/Pill.js.map +0 -1
  615. package/lib/Misc/childrenWithDefaultProps.js.map +0 -1
  616. package/lib/Misc/index.js.map +0 -1
  617. package/lib/Misc/useLongTouch.js.map +0 -1
  618. package/lib/Misc/useTimeout.js.map +0 -1
  619. package/lib/Modal/Modal.js.map +0 -1
  620. package/lib/Modal/Overlay.js.map +0 -1
  621. package/lib/Modal/index.js.map +0 -1
  622. package/lib/Text/Heading.js.map +0 -1
  623. package/lib/Text/Label.js.map +0 -1
  624. package/lib/Text/Line.js.map +0 -1
  625. package/lib/Text/Link.js.map +0 -1
  626. package/lib/Text/Paragraph.js.map +0 -1
  627. package/lib/Text/Text.js.map +0 -1
  628. package/lib/Text/TextLink.js.map +0 -1
  629. package/lib/Text/Title.js.map +0 -1
  630. package/lib/Text/index.js.map +0 -1
  631. package/lib/index.js.map +0 -1
  632. package/lib/mediaQueries.js.map +0 -1
  633. package/lib/util.js.map +0 -1
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import { CSSObject, jsx } from '@emotion/react';
1
+ import { CSSObject } from '@emotion/react';
3
2
  import { Theme } from '../Layout';
4
3
  import { TextProps } from '../Text';
5
4
  export declare enum ButtonVariant {
@@ -17,5 +16,6 @@ export interface ButtonProps<T = HTMLButtonElement> extends TextProps<T> {
17
16
  showLoading?: boolean;
18
17
  }
19
18
  export declare const buttonStyle: <T>(theme: Theme, props: ButtonProps<T>) => CSSObject;
20
- export declare const Button: ({ showLoading, children, loadingColor, ...props }: ButtonProps) => jsx.JSX.Element;
19
+ export declare const Button: ({ showLoading, children, loadingColor, ...props }: ButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
21
20
  export declare const filterButtonProps: (props: ButtonProps) => Object;
21
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Form/Button.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAIzC,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAC,SAAS,EAA6B,MAAM,SAAS,CAAC;AAG9D,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,IAAI,SAAS;CACd;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,iBAAiB,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IACtE,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,SAsJpE,CAAC;AAEH,eAAO,MAAM,MAAM,sDAAmE,WAAW,qDAIhG,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,WAAW,WAEnD,CAAC"}
@@ -1,22 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * Wire
4
- * Copyright (C) 2018 Wire Swiss GmbH
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see http://www.gnu.org/licenses/.
18
- *
19
- */
20
2
  var __rest = (this && this.__rest) || function (s, e) {
21
3
  var t = {};
22
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -30,8 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
30
12
  };
31
13
  Object.defineProperty(exports, "__esModule", { value: true });
32
14
  exports.filterButtonProps = exports.Button = exports.buttonStyle = exports.ButtonVariant = void 0;
33
- /** @jsx jsx */
34
- const react_1 = require("@emotion/react");
15
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
35
16
  const Identity_1 = require("../Identity");
36
17
  const motions_1 = require("../Identity/motions");
37
18
  const Misc_1 = require("../Misc");
@@ -126,11 +107,10 @@ const buttonStyle = (theme, _a) => {
126
107
  exports.buttonStyle = buttonStyle;
127
108
  const Button = (_a) => {
128
109
  var { showLoading, children, loadingColor = Identity_1.COLOR.WHITE } = _a, props = __rest(_a, ["showLoading", "children", "loadingColor"]);
129
- return ((0, react_1.jsx)("button", Object.assign({ css: (theme) => (0, exports.buttonStyle)(theme, props) }, (0, exports.filterButtonProps)(props)), showLoading ? (0, react_1.jsx)(Misc_1.Loading, { size: 30, color: loadingColor, style: { display: 'flex', margin: 'auto' } }) : children));
110
+ return ((0, jsx_runtime_1.jsx)("button", Object.assign({ css: (theme) => (0, exports.buttonStyle)(theme, props) }, (0, exports.filterButtonProps)(props), { children: showLoading ? (0, jsx_runtime_1.jsx)(Misc_1.Loading, { size: 30, color: loadingColor, style: { display: 'flex', margin: 'auto' } }) : children })));
130
111
  };
131
112
  exports.Button = Button;
132
113
  const filterButtonProps = (props) => {
133
114
  return (0, util_1.filterProps)((0, Text_1.filterTextProps)(props), ['backgroundColor', 'noCapital']);
134
115
  };
135
116
  exports.filterButtonProps = filterButtonProps;
136
- //# sourceMappingURL=Button.js.map
@@ -1,6 +1,6 @@
1
- /** @jsx jsx */
2
- import { CSSObject, jsx } from '@emotion/react';
1
+ import { CSSObject } from '@emotion/react';
3
2
  import { ButtonProps } from './Button';
4
3
  import { Theme } from '../Layout';
5
4
  export declare const buttonLinkStyle: (theme: Theme, props: ButtonProps<HTMLAnchorElement>) => CSSObject;
6
- export declare const ButtonLink: ({ children, showLoading, loadingColor, ...props }: ButtonProps<HTMLAnchorElement>) => jsx.JSX.Element;
5
+ export declare const ButtonLink: ({ children, showLoading, loadingColor, ...props }: ButtonProps<HTMLAnchorElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=ButtonLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonLink.d.ts","sourceRoot":"","sources":["../../src/Form/ButtonLink.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAC,WAAW,EAAc,MAAM,UAAU,CAAC;AAGlD,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAKhC,eAAO,MAAM,eAAe,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,CAAC,iBAAiB,CAAC,KAAK,SAGrF,CAAC;AAUH,eAAO,MAAM,UAAU,sDAKpB,YAAY,iBAAiB,CAAC,qDAIhC,CAAC"}
@@ -1,22 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * Wire
4
- * Copyright (C) 2018 Wire Swiss GmbH
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see http://www.gnu.org/licenses/.
18
- *
19
- */
20
2
  var __rest = (this && this.__rest) || function (s, e) {
21
3
  var t = {};
22
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -30,13 +12,12 @@ var __rest = (this && this.__rest) || function (s, e) {
30
12
  };
31
13
  Object.defineProperty(exports, "__esModule", { value: true });
32
14
  exports.ButtonLink = exports.buttonLinkStyle = void 0;
33
- /** @jsx jsx */
34
- const react_1 = require("@emotion/react");
35
- const Misc_1 = require("../Misc");
15
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
16
+ const Button_1 = require("./Button");
36
17
  const Identity_1 = require("../Identity");
37
- const util_1 = require("../util");
18
+ const Misc_1 = require("../Misc");
38
19
  const Text_1 = require("../Text");
39
- const Button_1 = require("./Button");
20
+ const util_1 = require("../util");
40
21
  const buttonLinkStyle = (theme, props) => (Object.assign(Object.assign({}, (0, Button_1.buttonStyle)(theme, props)), { display: 'inline-flex !important' }));
41
22
  exports.buttonLinkStyle = buttonLinkStyle;
42
23
  const filterButtonLinkProps = (props) => {
@@ -48,7 +29,6 @@ const filterButtonLinkProps = (props) => {
48
29
  };
49
30
  const ButtonLink = (_a) => {
50
31
  var { children, showLoading, loadingColor = Identity_1.COLOR.WHITE } = _a, props = __rest(_a, ["children", "showLoading", "loadingColor"]);
51
- return ((0, react_1.jsx)("a", Object.assign({ css: (theme) => (0, exports.buttonLinkStyle)(theme, props) }, filterButtonLinkProps(props)), showLoading ? (0, react_1.jsx)(Misc_1.Loading, { size: 30, color: loadingColor, style: { display: 'flex', margin: 'auto' } }) : children));
32
+ return ((0, jsx_runtime_1.jsx)("a", Object.assign({ css: (theme) => (0, exports.buttonLinkStyle)(theme, props) }, filterButtonLinkProps(props), { children: showLoading ? (0, jsx_runtime_1.jsx)(Misc_1.Loading, { size: 30, color: loadingColor, style: { display: 'flex', margin: 'auto' } }) : children })));
52
33
  };
53
34
  exports.ButtonLink = ButtonLink;
54
- //# sourceMappingURL=ButtonLink.js.map
@@ -1,8 +1,6 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import React from 'react';
4
- import { TextProps } from '../Text';
1
+ import * as React from 'react';
5
2
  import { InputProps } from './Input';
3
+ import { TextProps } from '../Text';
6
4
  export interface StyledLabelProps<T = HTMLLabelElement> extends React.HTMLProps<T> {
7
5
  disabled?: boolean;
8
6
  markInvalid?: boolean;
@@ -15,7 +13,8 @@ interface CheckboxProps<T = HTMLInputElement> extends InputProps<T> {
15
13
  labelBeforeCheckbox?: boolean;
16
14
  outlineOffset?: string;
17
15
  }
18
- export declare const Checkbox: React.FC<CheckboxProps<HTMLInputElement>>;
19
- export declare type CheckboxLabelProps<T = HTMLSpanElement> = TextProps<T>;
20
- export declare const CheckboxLabel: ({ ...props }: CheckboxLabelProps) => jsx.JSX.Element;
16
+ export declare const Checkbox: React.FC<CheckboxProps>;
17
+ export type CheckboxLabelProps<T = HTMLSpanElement> = TextProps<T>;
18
+ export declare const CheckboxLabel: ({ ...props }: CheckboxLabelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
21
19
  export {};
20
+ //# sourceMappingURL=Checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/Form/Checkbox.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAkB,UAAU,EAAC,MAAM,SAAS,CAAC;AAGpD,OAAO,EAAO,SAAS,EAAY,MAAM,SAAS,CAAC;AAEnD,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,gBAAgB,CAAE,SAAQ,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAmFD,UAAU,aAAa,CAAC,CAAC,GAAG,gBAAgB,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IACjE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6D5C,CAAC;AAGF,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,eAAe,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AAEnE,eAAO,MAAM,aAAa,iBAAgB,kBAAkB,qDAS3D,CAAC"}
@@ -1,22 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * Wire
4
- * Copyright (C) 2018 Wire Swiss GmbH
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see http://www.gnu.org/licenses/.
18
- *
19
- */
20
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
3
  if (k2 === undefined) k2 = k;
22
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -53,14 +35,32 @@ var __rest = (this && this.__rest) || function (s, e) {
53
35
  };
54
36
  Object.defineProperty(exports, "__esModule", { value: true });
55
37
  exports.CheckboxLabel = exports.Checkbox = void 0;
56
- /** @jsx jsx */
57
- const react_1 = require("@emotion/react");
58
- const react_2 = __importStar(require("react"));
59
- const Text_1 = require("../Text");
38
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
39
+ /*
40
+ * Wire
41
+ * Copyright (C) 2018 Wire Swiss GmbH
42
+ *
43
+ * This program is free software: you can redistribute it and/or modify
44
+ * it under the terms of the GNU General Public License as published by
45
+ * the Free Software Foundation, either version 3 of the License, or
46
+ * (at your option) any later version.
47
+ *
48
+ * This program is distributed in the hope that it will be useful,
49
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
50
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51
+ * GNU General Public License for more details.
52
+ *
53
+ * You should have received a copy of the GNU General Public License
54
+ * along with this program. If not, see http://www.gnu.org/licenses/.
55
+ *
56
+ */
57
+ const react_1 = require("react");
58
+ const React = __importStar(require("react"));
60
59
  const Input_1 = require("./Input");
60
+ const Text_1 = require("../Text");
61
61
  const StyledLabel = (_a) => {
62
62
  var { disabled, markInvalid, aligncenter = false, labelBeforeCheckbox = false, children } = _a, props = __rest(_a, ["disabled", "markInvalid", "aligncenter", "labelBeforeCheckbox", "children"]);
63
- return ((0, react_1.jsx)("label", Object.assign({ css: (theme) => (Object.assign(Object.assign(Object.assign(Object.assign({ [`.${Input_1.INPUT_CLASSNAME}:checked + &::before`]: {
63
+ return ((0, jsx_runtime_1.jsxs)("label", Object.assign({ css: (theme) => (Object.assign(Object.assign(Object.assign(Object.assign({ [`.${Input_1.INPUT_CLASSNAME}:checked + &::before`]: {
64
64
  background: `${disabled ? theme.Checkbox.disablecheckedBgColor : theme.general.primaryColor}`,
65
65
  borderColor: theme.general.primaryColor,
66
66
  }, [`.${Input_1.INPUT_CLASSNAME}:checked + & > svg`]: {
@@ -86,29 +86,25 @@ const StyledLabel = (_a) => {
86
86
  })), { borderRadius: '3px', boxSizing: 'border-box', content: '""', display: 'inline-block', width: '22px', height: '22px', lineHeight: 1.4, margin: '0 8px 0 0px', color: theme.general.color }) }), (labelBeforeCheckbox && {
87
87
  flexDirection: 'row-reverse',
88
88
  justifyContent: 'space-between',
89
- })), { alignItems: 'center', position: 'relative', margin: '0 0 0 -16px', width: aligncenter ? 'auto' : '100%', lineHeight: 1.4, display: 'flex', opacity: disabled ? 0.56 : 1, cursor: disabled ? 'not-allowed' : 'pointer', borderRadius: '4px' })) }, props),
90
- children,
91
- (0, react_1.jsx)("svg", { width: "15", height: "13", viewBox: "0 0 16 13", xmlns: "http://www.w3.org/2000/svg" },
92
- (0, react_1.jsx)("path", { d: "M5.65685 12.0711L15.9842 1.62738L14.57 0.213167L5.65685 9.24264L1.41421 5L0 6.41421L5.65685 12.0711Z" }))));
89
+ })), { alignItems: 'center', position: 'relative', margin: '0 0 0 -16px', width: aligncenter ? 'auto' : '100%', lineHeight: 1.4, display: 'flex', opacity: disabled ? 0.56 : 1, cursor: disabled ? 'not-allowed' : 'pointer', borderRadius: '4px' })) }, props, { children: [children, (0, jsx_runtime_1.jsx)("svg", Object.assign({ width: "15", height: "13", viewBox: "0 0 16 13", xmlns: "http://www.w3.org/2000/svg" }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M5.65685 12.0711L15.9842 1.62738L14.57 0.213167L5.65685 9.24264L1.41421 5L0 6.41421L5.65685 12.0711Z" }) }))] })));
93
90
  };
94
- exports.Checkbox = react_2.default.forwardRef((_a, ref) => {
95
- var { id = (0, react_2.useId)(), children, style, disabled, wrapperCSS = {}, markInvalid, aligncenter, labelBeforeCheckbox, outlineOffset = '0.4rem' } = _a, props = __rest(_a, ["id", "children", "style", "disabled", "wrapperCSS", "markInvalid", "aligncenter", "labelBeforeCheckbox", "outlineOffset"]);
96
- return ((0, react_1.jsx)("div", { css: (theme) => (Object.assign({ alignItems: 'center', display: 'flex', justifyContent: 'flex-start', position: 'relative', left: '-0.3rem', [`.${Input_1.INPUT_CLASSNAME}:focus-visible + label`]: {
91
+ exports.Checkbox = React.forwardRef((_a, ref) => {
92
+ var { id, children, style, disabled, wrapperCSS = {}, markInvalid, aligncenter, labelBeforeCheckbox, outlineOffset = '0.4rem' } = _a, props = __rest(_a, ["id", "children", "style", "disabled", "wrapperCSS", "markInvalid", "aligncenter", "labelBeforeCheckbox", "outlineOffset"]);
93
+ const inputId = (0, react_1.useId)();
94
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ css: (theme) => (Object.assign({ alignItems: 'center', display: 'flex', justifyContent: 'flex-start', position: 'relative', left: '-0.3rem', [`.${Input_1.INPUT_CLASSNAME}:focus-visible + label`]: {
97
95
  outline: `1px solid ${theme.general.primaryColor}`,
98
96
  outlineOffset: outlineOffset,
99
- } }, wrapperCSS)), style: style },
100
- (0, react_1.jsx)("input", Object.assign({ type: "checkbox", id: id, style: {
101
- height: '22px',
102
- marginBottom: '0',
103
- opacity: 0,
104
- width: '22px',
105
- cursor: disabled ? 'not-allowed' : 'pointer',
106
- }, disabled: disabled, ref: ref, className: Input_1.INPUT_CLASSNAME }, props)),
107
- (0, react_1.jsx)(StyledLabel, { htmlFor: id, disabled: disabled, markInvalid: markInvalid, aligncenter: aligncenter, labelBeforeCheckbox: labelBeforeCheckbox }, children)));
97
+ } }, wrapperCSS)), style: style }, { children: [(0, jsx_runtime_1.jsx)("input", Object.assign({ type: "checkbox", id: id !== null && id !== void 0 ? id : inputId, style: {
98
+ height: '22px',
99
+ marginBottom: '0',
100
+ opacity: 0,
101
+ width: '22px',
102
+ cursor: disabled ? 'not-allowed' : 'pointer',
103
+ }, disabled: disabled, ref: ref, className: Input_1.INPUT_CLASSNAME }, props)), (0, jsx_runtime_1.jsx)(StyledLabel, Object.assign({ htmlFor: id, disabled: disabled, markInvalid: markInvalid, aligncenter: aligncenter, labelBeforeCheckbox: labelBeforeCheckbox }, { children: children }))] })));
108
104
  });
105
+ exports.Checkbox.displayName = 'Checkbox';
109
106
  const CheckboxLabel = (_a) => {
110
107
  var props = __rest(_a, []);
111
- return ((0, react_1.jsx)(Text_1.Text, Object.assign({ css: (theme) => (Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({}, props)))) }, props)));
108
+ return ((0, jsx_runtime_1.jsx)(Text_1.Text, Object.assign({ css: (theme) => (Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({}, props)))) }, props)));
112
109
  };
113
110
  exports.CheckboxLabel = CheckboxLabel;
114
- //# sourceMappingURL=Checkbox.js.map
@@ -1,5 +1,3 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
1
  import { InputProps } from './Input';
4
2
  export interface CodeInputProps<T = HTMLInputElement> extends InputProps<T> {
5
3
  autoFocus?: boolean;
@@ -7,4 +5,5 @@ export interface CodeInputProps<T = HTMLInputElement> extends InputProps<T> {
7
5
  markInvalid?: boolean;
8
6
  onCodeComplete?: (completeCode?: string) => void;
9
7
  }
10
- export declare const CodeInput: ({ style, digits, autoFocus, markInvalid, onCodeComplete, disabled, }: CodeInputProps) => jsx.JSX.Element;
8
+ export declare const CodeInput: ({ style, digits, autoFocus, markInvalid, onCodeComplete, disabled, }: CodeInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=CodeInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeInput.d.ts","sourceRoot":"","sources":["../../src/Form/CodeInput.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAC,UAAU,EAAa,MAAM,SAAS,CAAC;AAwC/C,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,gBAAgB,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IACzE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAClD;AAED,eAAO,MAAM,SAAS,yEAOnB,cAAc,qDAqGhB,CAAC"}
@@ -1,22 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * Wire
4
- * Copyright (C) 2018 Wire Swiss GmbH
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see http://www.gnu.org/licenses/.
18
- *
19
- */
20
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
3
  if (k2 === undefined) k2 = k;
22
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -42,13 +24,31 @@ var __importStar = (this && this.__importStar) || function (mod) {
42
24
  };
43
25
  Object.defineProperty(exports, "__esModule", { value: true });
44
26
  exports.CodeInput = void 0;
45
- /** @jsx jsx */
46
- const react_1 = require("@emotion/react");
47
- const react_2 = __importStar(require("react"));
48
- const util_1 = require("../util");
27
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
28
+ /*
29
+ * Wire
30
+ * Copyright (C) 2018 Wire Swiss GmbH
31
+ *
32
+ * This program is free software: you can redistribute it and/or modify
33
+ * it under the terms of the GNU General Public License as published by
34
+ * the Free Software Foundation, either version 3 of the License, or
35
+ * (at your option) any later version.
36
+ *
37
+ * This program is distributed in the hope that it will be useful,
38
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
39
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40
+ * GNU General Public License for more details.
41
+ *
42
+ * You should have received a copy of the GNU General Public License
43
+ * along with this program. If not, see http://www.gnu.org/licenses/.
44
+ *
45
+ */
46
+ const react_1 = require("react");
47
+ const React = __importStar(require("react"));
49
48
  const Input_1 = require("./Input");
50
49
  const Identity_1 = require("../Identity");
51
- const CodeInputWrapper = (props) => ((0, react_1.jsx)("div", Object.assign({ css: {
50
+ const util_1 = require("../util");
51
+ const CodeInputWrapper = (props) => ((0, jsx_runtime_1.jsx)("div", Object.assign({ css: {
52
52
  display: 'flex',
53
53
  justifyContent: 'center',
54
54
  } }, props)));
@@ -57,9 +57,10 @@ const digitInputStyle = (theme, props) => (Object.assign(Object.assign({}, (0, I
57
57
  }, '&:hover': {
58
58
  boxShadow: `0 0 0 1px ${Identity_1.COLOR_V2.GRAY_60}`,
59
59
  }, fontSize: '24px', lineHeight: '28px', borderRadius: '12px', padding: 0, textAlign: 'center', width: 'min(48px, 13vw)', height: '56px' }));
60
- const DigitInput = react_2.default.forwardRef((props, ref) => (0, react_1.jsx)("input", Object.assign({ ref: ref, css: (theme) => digitInputStyle(theme, props) }, props, { type: "tel" })));
60
+ const DigitInput = React.forwardRef((props, ref) => (0, jsx_runtime_1.jsx)("input", Object.assign({ ref: ref, css: (theme) => digitInputStyle(theme, props) }, props, { type: "tel" })));
61
+ DigitInput.displayName = 'DigitInput';
61
62
  const CodeInput = ({ style, digits = 6, autoFocus = false, markInvalid, onCodeComplete = util_1.noop, disabled, }) => {
62
- const [values, setValues] = (0, react_2.useState)(Array(digits).fill(''));
63
+ const [values, setValues] = (0, react_1.useState)(Array(digits).fill(''));
63
64
  const inputs = Array(digits);
64
65
  const forceSelection = (event) => {
65
66
  const target = event.target;
@@ -114,13 +115,16 @@ const CodeInput = ({ style, digits = 6, autoFocus = false, markInvalid, onCodeCo
114
115
  setValues(values.slice(0, fieldIndex).concat(cleanedPaste.split('')).slice(0, digits));
115
116
  }
116
117
  };
117
- (0, react_2.useEffect)(() => {
118
+ (0, react_1.useEffect)(() => {
118
119
  const completeCode = values.join('');
119
120
  if (completeCode.length === digits) {
120
121
  onCodeComplete(completeCode);
121
122
  }
122
123
  }, [values]);
123
- return ((0, react_1.jsx)(CodeInputWrapper, { style: style }, Array.from({ length: digits }, (_, index) => ((0, react_1.jsx)(DigitInput, { autoFocus: index === 0 && autoFocus, key: index, onPaste: event => handlePaste(index, event), onFocus: forceSelection, onMouseDown: forceSelectionPreventDefault, onTouchStart: forceSelectionPreventDefault, onKeyDown: event => handleKeyDown(index, event), onKeyUp: forceSelection, markInvalid: markInvalid, ref: node => (inputs[index] = node), value: values[index], onChange: () => { }, disabled: disabled })))));
124
+ return ((0, jsx_runtime_1.jsx)(CodeInputWrapper, Object.assign({ style: style }, { children: Array.from({ length: digits }, (_, index) => ((0, jsx_runtime_1.jsx)(DigitInput
125
+ // eslint-disable-next-line jsx-a11y/no-autofocus
126
+ , {
127
+ // eslint-disable-next-line jsx-a11y/no-autofocus
128
+ autoFocus: index === 0 && autoFocus, onPaste: event => handlePaste(index, event), onFocus: forceSelection, onMouseDown: forceSelectionPreventDefault, onTouchStart: forceSelectionPreventDefault, onKeyDown: event => handleKeyDown(index, event), onKeyUp: forceSelection, markInvalid: markInvalid, ref: node => (inputs[index] = node), value: values[index], onChange: () => { }, disabled: disabled }, index))) })));
124
129
  };
125
130
  exports.CodeInput = CodeInput;
126
- //# sourceMappingURL=CodeInput.js.map
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
- import { CSSObject } from '@emotion/react';
3
1
  import { FC } from 'react';
2
+ import { CSSObject } from '@emotion/react';
4
3
  import { Theme } from '../Layout';
5
4
  import { TextProps } from '../Text';
6
5
  export interface DropFileInputProps<T = HTMLInputElement> extends TextProps<T> {
@@ -12,8 +11,9 @@ export interface DropFileInputProps<T = HTMLInputElement> extends TextProps<T> {
12
11
  dropFileZoneWrapperCSS?: CSSObject;
13
12
  }
14
13
  export declare const dropFileWrapperStyle: CSSObject;
15
- export declare const dropFileZoneWrapperStyle: <T>(theme: Theme, isDraggedOver: boolean) => CSSObject;
16
- export declare const dropFileZoneLabelStyle: <T>(theme: Theme) => CSSObject;
14
+ export declare const dropFileZoneWrapperStyle: (theme: Theme, isDraggedOver: boolean) => CSSObject;
15
+ export declare const dropFileZoneLabelStyle: (theme: Theme) => CSSObject;
17
16
  export declare const dropFileZoneHeadingStyle: CSSObject;
18
17
  export declare const dropFileZonDescriptionStyle: CSSObject;
19
18
  export declare const DropFileInput: FC<DropFileInputProps<HTMLInputElement>>;
19
+ //# sourceMappingURL=DropFileInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropFileInput.d.ts","sourceRoot":"","sources":["../../src/Form/DropFileInput.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAW,EAAE,EAAwB,MAAM,OAAO,CAAC;AAG1D,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAIzC,OAAO,EAAC,KAAK,EAAU,MAAM,WAAW,CAAC;AACzC,OAAO,EAAC,SAAS,EAAC,MAAM,SAAS,CAAC;AAElC,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,gBAAgB,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IAC5E,eAAe,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACzC,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB,CAAC,EAAE,SAAS,CAAC;CACpC;AAYD,eAAO,MAAM,oBAAoB,EAAE,SAElC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,KAAK,SAe/E,CAAC;AAEH,eAAO,MAAM,sBAAsB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,SASrD,CAAC;AAEH,eAAO,MAAM,wBAAwB,EAAE,SAGtC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,SAOzC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CA+GlE,CAAC"}
@@ -1,4 +1,18 @@
1
1
  "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.DropFileInput = exports.dropFileZonDescriptionStyle = exports.dropFileZoneHeadingStyle = exports.dropFileZoneLabelStyle = exports.dropFileZoneWrapperStyle = exports.dropFileWrapperStyle = void 0;
15
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
2
16
  /*
3
17
  * Wire
4
18
  * Copyright (C) 2022 Wire Swiss GmbH
@@ -17,24 +31,9 @@
17
31
  * along with this program. If not, see http://www.gnu.org/licenses/.
18
32
  *
19
33
  */
20
- var __rest = (this && this.__rest) || function (s, e) {
21
- var t = {};
22
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
23
- t[p] = s[p];
24
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
25
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
26
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
27
- t[p[i]] = s[p[i]];
28
- }
29
- return t;
30
- };
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.DropFileInput = exports.dropFileZonDescriptionStyle = exports.dropFileZoneHeadingStyle = exports.dropFileZoneLabelStyle = exports.dropFileZoneWrapperStyle = exports.dropFileWrapperStyle = void 0;
33
- /** @jsx jsx */
34
- const react_1 = require("@emotion/react");
35
- const react_2 = require("react");
36
- const Identity_1 = require("../Identity");
34
+ const react_1 = require("react");
37
35
  const Icon_1 = require("../Icon");
36
+ const Identity_1 = require("../Identity");
38
37
  const Layout_1 = require("../Layout");
39
38
  const visuallyHiddenStyles = {
40
39
  clip: 'rect(0 0 0 0)',
@@ -85,9 +84,9 @@ exports.dropFileZonDescriptionStyle = {
85
84
  color: Identity_1.COLOR.GRAY,
86
85
  whiteSpace: 'pre-line',
87
86
  };
88
- exports.DropFileInput = (0, react_2.forwardRef)((_a, ref) => {
87
+ exports.DropFileInput = (0, react_1.forwardRef)((_a, ref) => {
89
88
  var { onFilesUploaded, onInvalidFilesDropError, dropFileZoneWrapperCSS, labelText, headingText, description, accept, multiple } = _a, inputProps = __rest(_a, ["onFilesUploaded", "onInvalidFilesDropError", "dropFileZoneWrapperCSS", "labelText", "headingText", "description", "accept", "multiple"]);
90
- const [isDraggedOver, setIsDraggedOver] = (0, react_2.useState)(false);
89
+ const [isDraggedOver, setIsDraggedOver] = (0, react_1.useState)(false);
91
90
  const resetDraggedOver = () => setIsDraggedOver(false);
92
91
  const handleDragOver = (event) => {
93
92
  event.preventDefault();
@@ -125,15 +124,6 @@ exports.DropFileInput = (0, react_2.forwardRef)((_a, ref) => {
125
124
  }
126
125
  onFilesUploaded(Array.from(files));
127
126
  };
128
- return ((0, react_1.jsx)("div", { css: exports.dropFileWrapperStyle },
129
- (0, react_1.jsx)("div", { css: (theme) => (Object.assign(Object.assign({}, (0, exports.dropFileZoneWrapperStyle)(theme, isDraggedOver)), dropFileZoneWrapperCSS)), "data-testid": "dropzone", onDragOver: handleDragOver, onDragLeave: resetDraggedOver, onDrop: handleDrop },
130
- (0, react_1.jsx)(Layout_1.FlexBox, { align: "center", justify: "center", flexWrap: "wrap", css: { maxWidth: '280px', margin: '0 auto' } },
131
- (0, react_1.jsx)(Icon_1.UploadIcon, { css: { margin: '12px 0' } }),
132
- (0, react_1.jsx)("div", { css: { maxWidth: '160px', margin: '0 25px' } },
133
- (0, react_1.jsx)("span", { css: exports.dropFileZoneHeadingStyle }, headingText),
134
- (0, react_1.jsx)("label", { "aria-label": `${headingText} ${labelText} (${description})`, css: (theme) => (0, exports.dropFileZoneLabelStyle)(theme) },
135
- (0, react_1.jsx)("span", null, labelText),
136
- (0, react_1.jsx)("input", Object.assign({ "data-testid": "file-input", ref: ref, accept: accept, multiple: multiple, css: visuallyHiddenStyles, onChange: handleChange, type: "file" }, inputProps)))))),
137
- description && (0, react_1.jsx)("p", { css: exports.dropFileZonDescriptionStyle }, description)));
127
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ css: exports.dropFileWrapperStyle }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ css: (theme) => (Object.assign(Object.assign({}, (0, exports.dropFileZoneWrapperStyle)(theme, isDraggedOver)), dropFileZoneWrapperCSS)), "data-testid": "dropzone", onDragOver: handleDragOver, onDragLeave: resetDraggedOver, onDrop: handleDrop }, { children: (0, jsx_runtime_1.jsxs)(Layout_1.FlexBox, Object.assign({ align: "center", justify: "center", flexWrap: "wrap", css: { maxWidth: '280px', margin: '0 auto' } }, { children: [(0, jsx_runtime_1.jsx)(Icon_1.UploadIcon, { css: { margin: '12px 0' } }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ css: { maxWidth: '160px', margin: '0 25px' } }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ css: exports.dropFileZoneHeadingStyle }, { children: headingText })), (0, jsx_runtime_1.jsxs)("label", Object.assign({ "aria-label": `${headingText} ${labelText} (${description})`, css: (theme) => (0, exports.dropFileZoneLabelStyle)(theme) }, { children: [(0, jsx_runtime_1.jsx)("span", { children: labelText }), (0, jsx_runtime_1.jsx)("input", Object.assign({ "data-testid": "file-input", ref: ref, accept: accept, multiple: multiple, css: visuallyHiddenStyles, onChange: handleChange, type: "file" }, inputProps))] }))] }))] })) })), description && (0, jsx_runtime_1.jsx)("p", Object.assign({ css: exports.dropFileZonDescriptionStyle }, { children: description }))] })));
138
128
  });
139
- //# sourceMappingURL=DropFileInput.js.map
129
+ exports.DropFileInput.displayName = 'DropFileInput';
@@ -1,8 +1,8 @@
1
- /** @jsx jsx */
2
- import { CSSObject, jsx } from '@emotion/react';
1
+ import { CSSObject } from '@emotion/react';
3
2
  import { FlexBoxProps, Theme } from '../Layout';
4
- declare type ErrorMessageProps<T = HTMLDivElement> = FlexBoxProps<T>;
3
+ type ErrorMessageProps<T = HTMLDivElement> = FlexBoxProps<T>;
5
4
  export declare const errorMessageStyle: <T>(theme: Theme, props: ErrorMessageProps<T>) => CSSObject;
6
5
  export declare const filterErrorMessageProps: (props: ErrorMessageProps) => Object;
7
- export declare const ErrorMessage: ({ children, ...props }: ErrorMessageProps) => jsx.JSX.Element;
6
+ export declare const ErrorMessage: ({ children, ...props }: ErrorMessageProps) => import("@emotion/react/jsx-runtime").JSX.Element;
8
7
  export {};
8
+ //# sourceMappingURL=ErrorMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../src/Form/ErrorMessage.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAGzC,OAAO,EAAU,YAAY,EAAoC,KAAK,EAAC,MAAM,WAAW,CAAC;AAIzF,KAAK,iBAAiB,CAAC,CAAC,GAAG,cAAc,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAE7D,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,KAAK,SAShF,CAAC;AAEH,eAAO,MAAM,uBAAuB,UAAW,iBAAiB,WAE/D,CAAC;AAEF,eAAO,MAAM,YAAY,2BAA0B,iBAAiB,qDAMnE,CAAC"}
@@ -1,22 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * Wire
4
- * Copyright (C) 2018 Wire Swiss GmbH
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see http://www.gnu.org/licenses/.
18
- *
19
- */
20
2
  var __rest = (this && this.__rest) || function (s, e) {
21
3
  var t = {};
22
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -30,8 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
30
12
  };
31
13
  Object.defineProperty(exports, "__esModule", { value: true });
32
14
  exports.ErrorMessage = exports.filterErrorMessageProps = exports.errorMessageStyle = void 0;
33
- /** @jsx jsx */
34
- const react_1 = require("@emotion/react");
15
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
35
16
  const Identity_1 = require("../Identity");
36
17
  const Layout_1 = require("../Layout");
37
18
  const Text_1 = require("../Text");
@@ -47,8 +28,6 @@ const filterErrorMessageProps = (props) => {
47
28
  exports.filterErrorMessageProps = filterErrorMessageProps;
48
29
  const ErrorMessage = (_a) => {
49
30
  var { children } = _a, props = __rest(_a, ["children"]);
50
- return ((0, react_1.jsx)(Layout_1.FlexBox, Object.assign({ css: (theme) => (0, exports.errorMessageStyle)(theme, props) }, props),
51
- (0, react_1.jsx)(Text_1.Text, { color: Identity_1.COLOR_V2.RED_LIGHT_500, fontSize: '12px', css: { fontWeight: 400 } }, children)));
31
+ return ((0, jsx_runtime_1.jsx)(Layout_1.FlexBox, Object.assign({ css: (theme) => (0, exports.errorMessageStyle)(theme, props) }, props, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, Object.assign({ color: Identity_1.COLOR_V2.RED_LIGHT_500, fontSize: '12px', css: { fontWeight: 400 } }, { children: children })) })));
52
32
  };
53
33
  exports.ErrorMessage = ErrorMessage;
54
- //# sourceMappingURL=ErrorMessage.js.map
@@ -1,4 +1,3 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import React from 'react';
4
- export declare const Form: (props: React.HTMLProps<HTMLFormElement>) => jsx.JSX.Element;
1
+ import * as React from 'react';
2
+ export declare const Form: (props: React.HTMLProps<HTMLFormElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=Form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../src/Form/Form.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAO,MAAM,IAAI,UAAW,MAAM,SAAS,CAAC,eAAe,CAAC,qDAW3D,CAAC"}
package/lib/Form/Form.js CHANGED
@@ -1,27 +1,8 @@
1
1
  "use strict";
2
- /*
3
- * Wire
4
- * Copyright (C) 2018 Wire Swiss GmbH
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see http://www.gnu.org/licenses/.
18
- *
19
- */
20
2
  Object.defineProperty(exports, "__esModule", { value: true });
21
3
  exports.Form = void 0;
22
- /** @jsx jsx */
23
- const react_1 = require("@emotion/react");
24
- const Form = (props) => ((0, react_1.jsx)("form", Object.assign({ css: {
4
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
+ const Form = (props) => ((0, jsx_runtime_1.jsx)("form", Object.assign({ css: {
25
6
  display: 'flex',
26
7
  flexDirection: 'column',
27
8
  justifyContent: 'space-between',
@@ -29,4 +10,3 @@ const Form = (props) => ((0, react_1.jsx)("form", Object.assign({ css: {
29
10
  width: '100%',
30
11
  } }, props)));
31
12
  exports.Form = Form;
32
- //# sourceMappingURL=Form.js.map
@@ -1,7 +1,7 @@
1
- /** @jsx jsx */
1
+ import { ReactElement } from 'react';
2
+ import * as React from 'react';
2
3
  import { CSSObject } from '@emotion/react';
3
- import { Property } from 'csstype';
4
- import React, { ReactElement } from 'react';
4
+ import type { Property } from 'csstype';
5
5
  import { Theme } from '../Layout';
6
6
  import { TextProps } from '../Text';
7
7
  export interface InputProps<T = HTMLInputElement> extends TextProps<T> {
@@ -16,3 +16,4 @@ export declare const inputStyle: <T>(theme: Theme, props: InputProps<T>, hasErro
16
16
  export declare const INPUT_CLASSNAME = "wireinput";
17
17
  export declare const INPUT_GROUP = "input-group";
18
18
  export declare const Input: React.FC<InputProps<HTMLInputElement>>;
19
+ //# sourceMappingURL=Input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/Form/Input.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAW,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAKtC,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAChC,OAAO,EAAC,SAAS,EAAC,MAAM,SAAS,CAAC;AAGlC,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,gBAAgB,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wBAAwB,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IAClD,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,SA6CvF,CAAC;AAEF,eAAO,MAAM,eAAe,cAAc,CAAC;AAC3C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAWzC,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,CA2EvD,CAAC"}