@wireapp/react-ui-kit 8.13.9 → 8.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (355) hide show
  1. package/package.json +7 -6
  2. package/src/Form/Button.d.ts +1 -1
  3. package/src/Form/Button.js +125 -210
  4. package/src/Form/Button.js.map +1 -1
  5. package/src/Form/ButtonLink.d.ts +1 -1
  6. package/src/Form/ButtonLink.js +47 -60
  7. package/src/Form/ButtonLink.js.map +1 -1
  8. package/src/Form/Checkbox.js +84 -139
  9. package/src/Form/Checkbox.js.map +1 -1
  10. package/src/Form/CodeInput.js +98 -201
  11. package/src/Form/CodeInput.js.map +1 -1
  12. package/src/Form/DropFileInput.d.ts +2 -2
  13. package/src/Form/DropFileInput.js +116 -214
  14. package/src/Form/DropFileInput.js.map +1 -1
  15. package/src/Form/ErrorMessage.js +45 -78
  16. package/src/Form/ErrorMessage.js.map +1 -1
  17. package/src/Form/Form.d.ts +0 -1
  18. package/src/Form/Form.js +28 -31
  19. package/src/Form/Form.js.map +1 -1
  20. package/src/Form/Input.d.ts +3 -3
  21. package/src/Form/Input.js +101 -178
  22. package/src/Form/Input.js.map +1 -1
  23. package/src/Form/InputBlock.d.ts +1 -1
  24. package/src/Form/InputBlock.js +19 -45
  25. package/src/Form/InputBlock.js.map +1 -1
  26. package/src/Form/InputLabel.js +44 -46
  27. package/src/Form/InputLabel.js.map +1 -1
  28. package/src/Form/InputSubmitCombo.js +49 -53
  29. package/src/Form/InputSubmitCombo.js.map +1 -1
  30. package/src/Form/RangeInput.js +47 -71
  31. package/src/Form/RangeInput.js.map +1 -1
  32. package/src/Form/RangeInput.styles.js +39 -55
  33. package/src/Form/RangeInput.styles.js.map +1 -1
  34. package/src/Form/RoundIconButton.d.ts +1 -1
  35. package/src/Form/RoundIconButton.js +42 -62
  36. package/src/Form/RoundIconButton.js.map +1 -1
  37. package/src/Form/Select.js +55 -95
  38. package/src/Form/Select.js.map +1 -1
  39. package/src/Form/SelectComponents.js +101 -173
  40. package/src/Form/SelectComponents.js.map +1 -1
  41. package/src/Form/SelectStyles.d.ts +1 -899
  42. package/src/Form/SelectStyles.js +96 -156
  43. package/src/Form/SelectStyles.js.map +1 -1
  44. package/src/Form/ShakeBox.d.ts +1 -1
  45. package/src/Form/ShakeBox.js +33 -81
  46. package/src/Form/ShakeBox.js.map +1 -1
  47. package/src/Form/Switch.d.ts +1 -1
  48. package/src/Form/Switch.js +89 -124
  49. package/src/Form/Switch.js.map +1 -1
  50. package/src/Form/TextArea.d.ts +3 -3
  51. package/src/Form/TextArea.js +59 -80
  52. package/src/Form/TextArea.js.map +1 -1
  53. package/src/Form/Tooltip.js +66 -75
  54. package/src/Form/Tooltip.js.map +1 -1
  55. package/src/Form/index.js +52 -238
  56. package/src/Form/index.js.map +1 -1
  57. package/src/GlobalCssVariables.js +79 -96
  58. package/src/GlobalCssVariables.js.map +1 -1
  59. package/src/GlobalStyle.d.ts +2 -3
  60. package/src/GlobalStyle.js +40 -55
  61. package/src/GlobalStyle.js.map +1 -1
  62. package/src/Icon/AddPeopleIcon.js +19 -24
  63. package/src/Icon/AddPeopleIcon.js.map +1 -1
  64. package/src/Icon/ArchiveIcon.js +6 -24
  65. package/src/Icon/ArchiveIcon.js.map +1 -1
  66. package/src/Icon/ArrowDown.js +19 -23
  67. package/src/Icon/ArrowDown.js.map +1 -1
  68. package/src/Icon/ArrowIcon.js +42 -35
  69. package/src/Icon/ArrowIcon.js.map +1 -1
  70. package/src/Icon/AttachmentIcon.js +6 -24
  71. package/src/Icon/AttachmentIcon.js.map +1 -1
  72. package/src/Icon/AudioVideoIcon.js +6 -24
  73. package/src/Icon/AudioVideoIcon.js.map +1 -1
  74. package/src/Icon/BlockIcon.js +6 -24
  75. package/src/Icon/BlockIcon.js.map +1 -1
  76. package/src/Icon/Brand/AndroidIcon.js +6 -25
  77. package/src/Icon/Brand/AndroidIcon.js.map +1 -1
  78. package/src/Icon/Brand/AppleIcon.js +6 -25
  79. package/src/Icon/Brand/AppleIcon.js.map +1 -1
  80. package/src/Icon/Brand/ChromeIcon.js +6 -25
  81. package/src/Icon/Brand/ChromeIcon.js.map +1 -1
  82. package/src/Icon/Brand/FacebookIcon.js +6 -24
  83. package/src/Icon/Brand/FacebookIcon.js.map +1 -1
  84. package/src/Icon/Brand/GitHubIcon.js +6 -24
  85. package/src/Icon/Brand/GitHubIcon.js.map +1 -1
  86. package/src/Icon/Brand/LinkedInIcon.js +6 -24
  87. package/src/Icon/Brand/LinkedInIcon.js.map +1 -1
  88. package/src/Icon/Brand/LinuxIcon.js +6 -25
  89. package/src/Icon/Brand/LinuxIcon.js.map +1 -1
  90. package/src/Icon/Brand/MicrosoftIcon.js +6 -25
  91. package/src/Icon/Brand/MicrosoftIcon.js.map +1 -1
  92. package/src/Icon/Brand/TwitterIcon.js +6 -24
  93. package/src/Icon/Brand/TwitterIcon.js.map +1 -1
  94. package/src/Icon/CallIcon.js +6 -24
  95. package/src/Icon/CallIcon.js.map +1 -1
  96. package/src/Icon/CamIcon.js +6 -24
  97. package/src/Icon/CamIcon.js.map +1 -1
  98. package/src/Icon/CameraIcon.js +19 -24
  99. package/src/Icon/CameraIcon.js.map +1 -1
  100. package/src/Icon/CheckIcon.js +6 -24
  101. package/src/Icon/CheckIcon.js.map +1 -1
  102. package/src/Icon/CheckRoundIcon.js +6 -24
  103. package/src/Icon/CheckRoundIcon.js.map +1 -1
  104. package/src/Icon/ChevronIcon.js +38 -31
  105. package/src/Icon/ChevronIcon.js.map +1 -1
  106. package/src/Icon/CloseIcon.js +6 -24
  107. package/src/Icon/CloseIcon.js.map +1 -1
  108. package/src/Icon/CopyIcon.js +6 -24
  109. package/src/Icon/CopyIcon.js.map +1 -1
  110. package/src/Icon/DeviceIcon.js +6 -24
  111. package/src/Icon/DeviceIcon.js.map +1 -1
  112. package/src/Icon/DownloadIcon.js +6 -24
  113. package/src/Icon/DownloadIcon.js.map +1 -1
  114. package/src/Icon/EditDocumentIcon.js +19 -25
  115. package/src/Icon/EditDocumentIcon.js.map +1 -1
  116. package/src/Icon/EditIcon.js +6 -24
  117. package/src/Icon/EditIcon.js.map +1 -1
  118. package/src/Icon/EnterIcon.js +6 -24
  119. package/src/Icon/EnterIcon.js.map +1 -1
  120. package/src/Icon/ErrorIcon.js +9 -39
  121. package/src/Icon/ErrorIcon.js.map +1 -1
  122. package/src/Icon/FileIcon.js +6 -24
  123. package/src/Icon/FileIcon.js.map +1 -1
  124. package/src/Icon/GifIcon.js +6 -24
  125. package/src/Icon/GifIcon.js.map +1 -1
  126. package/src/Icon/GridIcon.js +19 -24
  127. package/src/Icon/GridIcon.js.map +1 -1
  128. package/src/Icon/GroupIcon.js +6 -24
  129. package/src/Icon/GroupIcon.js.map +1 -1
  130. package/src/Icon/HangupIcon.js +6 -24
  131. package/src/Icon/HangupIcon.js.map +1 -1
  132. package/src/Icon/HideIcon.js +6 -24
  133. package/src/Icon/HideIcon.js.map +1 -1
  134. package/src/Icon/ImageIcon.js +6 -24
  135. package/src/Icon/ImageIcon.js.map +1 -1
  136. package/src/Icon/InfoIcon.js +6 -24
  137. package/src/Icon/InfoIcon.js.map +1 -1
  138. package/src/Icon/InviteIcon.js +6 -24
  139. package/src/Icon/InviteIcon.js.map +1 -1
  140. package/src/Icon/LeaveIcon.js +6 -24
  141. package/src/Icon/LeaveIcon.js.map +1 -1
  142. package/src/Icon/LinkIcon.js +19 -24
  143. package/src/Icon/LinkIcon.js.map +1 -1
  144. package/src/Icon/ListIcon.js +6 -24
  145. package/src/Icon/ListIcon.js.map +1 -1
  146. package/src/Icon/LockIcon.js +6 -25
  147. package/src/Icon/LockIcon.js.map +1 -1
  148. package/src/Icon/MessageIcon.js +6 -24
  149. package/src/Icon/MessageIcon.js.map +1 -1
  150. package/src/Icon/MinusIcon.js +6 -24
  151. package/src/Icon/MinusIcon.js.map +1 -1
  152. package/src/Icon/MoreIcon.js +6 -24
  153. package/src/Icon/MoreIcon.js.map +1 -1
  154. package/src/Icon/MuteIcon.js +6 -24
  155. package/src/Icon/MuteIcon.js.map +1 -1
  156. package/src/Icon/NotificationIcon.js +6 -24
  157. package/src/Icon/NotificationIcon.js.map +1 -1
  158. package/src/Icon/NotificationOffIcon.js +6 -24
  159. package/src/Icon/NotificationOffIcon.js.map +1 -1
  160. package/src/Icon/OptionsIcon.js +6 -24
  161. package/src/Icon/OptionsIcon.js.map +1 -1
  162. package/src/Icon/PeopleIcon.js +19 -24
  163. package/src/Icon/PeopleIcon.js.map +1 -1
  164. package/src/Icon/PingIcon.js +6 -24
  165. package/src/Icon/PingIcon.js.map +1 -1
  166. package/src/Icon/PlaneIcon.js +6 -24
  167. package/src/Icon/PlaneIcon.js.map +1 -1
  168. package/src/Icon/PlusIcon.js +6 -24
  169. package/src/Icon/PlusIcon.js.map +1 -1
  170. package/src/Icon/ProfileIcon.js +6 -24
  171. package/src/Icon/ProfileIcon.js.map +1 -1
  172. package/src/Icon/RecordBoldIcon.js +43 -50
  173. package/src/Icon/RecordBoldIcon.js.map +1 -1
  174. package/src/Icon/RecordIcon.js +8 -34
  175. package/src/Icon/RecordIcon.js.map +1 -1
  176. package/src/Icon/RecordPendingIcon.js +8 -31
  177. package/src/Icon/RecordPendingIcon.js.map +1 -1
  178. package/src/Icon/ReloadIcon.js +6 -24
  179. package/src/Icon/ReloadIcon.js.map +1 -1
  180. package/src/Icon/SVGIcon.js +53 -78
  181. package/src/Icon/SVGIcon.js.map +1 -1
  182. package/src/Icon/ScreenshareIcon.js +6 -24
  183. package/src/Icon/ScreenshareIcon.js.map +1 -1
  184. package/src/Icon/SearchIcon.js +6 -25
  185. package/src/Icon/SearchIcon.js.map +1 -1
  186. package/src/Icon/ServicesIcon.js +6 -24
  187. package/src/Icon/ServicesIcon.js.map +1 -1
  188. package/src/Icon/SettingsIcon.js +6 -24
  189. package/src/Icon/SettingsIcon.js.map +1 -1
  190. package/src/Icon/ShowIcon.js +6 -24
  191. package/src/Icon/ShowIcon.js.map +1 -1
  192. package/src/Icon/SignIcon.js +6 -24
  193. package/src/Icon/SignIcon.js.map +1 -1
  194. package/src/Icon/SpeakerIcon.js +6 -24
  195. package/src/Icon/SpeakerIcon.js.map +1 -1
  196. package/src/Icon/SupportIcon.js +6 -24
  197. package/src/Icon/SupportIcon.js.map +1 -1
  198. package/src/Icon/TeamIcon.js +6 -24
  199. package/src/Icon/TeamIcon.js.map +1 -1
  200. package/src/Icon/TimedIcon.js +6 -24
  201. package/src/Icon/TimedIcon.js.map +1 -1
  202. package/src/Icon/TrashCrossIcon.js +6 -24
  203. package/src/Icon/TrashCrossIcon.js.map +1 -1
  204. package/src/Icon/TrashIcon.js +6 -24
  205. package/src/Icon/TrashIcon.js.map +1 -1
  206. package/src/Icon/TriangleIcon.d.ts +1 -1
  207. package/src/Icon/TriangleIcon.js +42 -35
  208. package/src/Icon/TriangleIcon.js.map +1 -1
  209. package/src/Icon/UploadIcon.js +6 -24
  210. package/src/Icon/UploadIcon.js.map +1 -1
  211. package/src/Icon/WireIcon.js +6 -24
  212. package/src/Icon/WireIcon.js.map +1 -1
  213. package/src/Icon/index.js +107 -953
  214. package/src/Icon/index.js.map +1 -1
  215. package/src/Identity/Animation.js +88 -211
  216. package/src/Identity/Animation.js.map +1 -1
  217. package/src/Identity/Avatar.js +66 -114
  218. package/src/Identity/Avatar.js.map +1 -1
  219. package/src/Identity/AvatarGrid.d.ts +1 -1
  220. package/src/Identity/AvatarGrid.js +66 -108
  221. package/src/Identity/AvatarGrid.js.map +1 -1
  222. package/src/Identity/Logo.js +45 -54
  223. package/src/Identity/Logo.js.map +1 -1
  224. package/src/Identity/colors-v2.js +163 -186
  225. package/src/Identity/colors-v2.js.map +1 -1
  226. package/src/Identity/colors.js +64 -80
  227. package/src/Identity/colors.js.map +1 -1
  228. package/src/Identity/index.js +38 -81
  229. package/src/Identity/index.js.map +1 -1
  230. package/src/Identity/motions.js +71 -35
  231. package/src/Identity/motions.js.map +1 -1
  232. package/src/Layout/Box.d.ts +1 -1
  233. package/src/Layout/Box.js +9 -31
  234. package/src/Layout/Box.js.map +1 -1
  235. package/src/Layout/Column.d.ts +1 -1
  236. package/src/Layout/Column.js +17 -57
  237. package/src/Layout/Column.js.map +1 -1
  238. package/src/Layout/Container.d.ts +5 -5
  239. package/src/Layout/Container.js +29 -102
  240. package/src/Layout/Container.js.map +1 -1
  241. package/src/Layout/Content.d.ts +1 -1
  242. package/src/Layout/Content.js +8 -31
  243. package/src/Layout/Content.js.map +1 -1
  244. package/src/Layout/FlexBox.d.ts +1 -1
  245. package/src/Layout/FlexBox.js +10 -45
  246. package/src/Layout/FlexBox.js.map +1 -1
  247. package/src/Layout/Footer.d.ts +1 -4
  248. package/src/Layout/Footer.js +4 -17
  249. package/src/Layout/Footer.js.map +1 -1
  250. package/src/Layout/Header.d.ts +1 -1
  251. package/src/Layout/Header.js +7 -28
  252. package/src/Layout/Header.js.map +1 -1
  253. package/src/Layout/MatchMedia.js +27 -112
  254. package/src/Layout/MatchMedia.js.map +1 -1
  255. package/src/Layout/Spacer.js +6 -26
  256. package/src/Layout/Spacer.js.map +1 -1
  257. package/src/Layout/StyledApp.js +45 -53
  258. package/src/Layout/StyledApp.js.map +1 -1
  259. package/src/Layout/Theme.js +217 -225
  260. package/src/Layout/Theme.js.map +1 -1
  261. package/src/Layout/headerMenu/HeaderMenu.js +54 -117
  262. package/src/Layout/headerMenu/HeaderMenu.js.map +1 -1
  263. package/src/Layout/headerMenu/HeaderSubMenu.d.ts +1 -1
  264. package/src/Layout/headerMenu/HeaderSubMenu.js +74 -131
  265. package/src/Layout/headerMenu/HeaderSubMenu.js.map +1 -1
  266. package/src/Layout/headerMenu/MenuContent.d.ts +1 -1
  267. package/src/Layout/headerMenu/MenuContent.js +26 -47
  268. package/src/Layout/headerMenu/MenuContent.js.map +1 -1
  269. package/src/Layout/headerMenu/MenuItems.d.ts +1 -1
  270. package/src/Layout/headerMenu/MenuItems.js +22 -52
  271. package/src/Layout/headerMenu/MenuItems.js.map +1 -1
  272. package/src/Layout/headerMenu/MenuLink.d.ts +1 -1
  273. package/src/Layout/headerMenu/MenuLink.js +65 -89
  274. package/src/Layout/headerMenu/MenuLink.js.map +1 -1
  275. package/src/Layout/headerMenu/MenuOpenButton.d.ts +1 -1
  276. package/src/Layout/headerMenu/MenuOpenButton.js +26 -54
  277. package/src/Layout/headerMenu/MenuOpenButton.js.map +1 -1
  278. package/src/Layout/headerMenu/MenuScrollableItems.js +13 -36
  279. package/src/Layout/headerMenu/MenuScrollableItems.js.map +1 -1
  280. package/src/Layout/headerMenu/MenuSubLink.d.ts +1 -1
  281. package/src/Layout/headerMenu/MenuSubLink.js +45 -64
  282. package/src/Layout/headerMenu/MenuSubLink.js.map +1 -1
  283. package/src/Layout/headerMenu/index.js +41 -108
  284. package/src/Layout/headerMenu/index.js.map +1 -1
  285. package/src/Layout/index.js +46 -173
  286. package/src/Layout/index.js.map +1 -1
  287. package/src/Layout/sizes.js +14 -21
  288. package/src/Layout/sizes.js.map +1 -1
  289. package/src/Menu/MenuModal.js +78 -123
  290. package/src/Menu/MenuModal.js.map +1 -1
  291. package/src/Menu/TabBar.d.ts +1 -1
  292. package/src/Menu/TabBar.js +50 -96
  293. package/src/Menu/TabBar.js.map +1 -1
  294. package/src/Menu/index.js +34 -29
  295. package/src/Menu/index.js.map +1 -1
  296. package/src/Misc/ButtonGroup.js +67 -97
  297. package/src/Misc/ButtonGroup.js.map +1 -1
  298. package/src/Misc/IconButton.d.ts +1 -1
  299. package/src/Misc/IconButton.js +72 -102
  300. package/src/Misc/IconButton.js.map +1 -1
  301. package/src/Misc/IsInViewport.js +57 -63
  302. package/src/Misc/IsInViewport.js.map +1 -1
  303. package/src/Misc/Loading.d.ts +1 -1
  304. package/src/Misc/Loading.js +58 -66
  305. package/src/Misc/Loading.js.map +1 -1
  306. package/src/Misc/Pagination.js +64 -149
  307. package/src/Misc/Pagination.js.map +1 -1
  308. package/src/Misc/Pill.d.ts +1 -1
  309. package/src/Misc/Pill.js +66 -80
  310. package/src/Misc/Pill.js.map +1 -1
  311. package/src/Misc/childrenWithDefaultProps.d.ts +1 -1
  312. package/src/Misc/childrenWithDefaultProps.js +28 -28
  313. package/src/Misc/childrenWithDefaultProps.js.map +1 -1
  314. package/src/Misc/index.js +42 -121
  315. package/src/Misc/index.js.map +1 -1
  316. package/src/Misc/useLongTouch.js +23 -38
  317. package/src/Misc/useLongTouch.js.map +1 -1
  318. package/src/Misc/useTimeout.js +24 -44
  319. package/src/Misc/useTimeout.js.map +1 -1
  320. package/src/Modal/Modal.js +95 -177
  321. package/src/Modal/Modal.js.map +1 -1
  322. package/src/Modal/Overlay.d.ts +2 -2
  323. package/src/Modal/Overlay.js +68 -92
  324. package/src/Modal/Overlay.js.map +1 -1
  325. package/src/Modal/index.js +36 -28
  326. package/src/Modal/index.js.map +1 -1
  327. package/src/Text/Heading.d.ts +1 -1
  328. package/src/Text/Heading.js +71 -188
  329. package/src/Text/Heading.js.map +1 -1
  330. package/src/Text/Label.js +45 -74
  331. package/src/Text/Label.js.map +1 -1
  332. package/src/Text/Line.js +11 -36
  333. package/src/Text/Line.js.map +1 -1
  334. package/src/Text/Link.js +60 -88
  335. package/src/Text/Link.js.map +1 -1
  336. package/src/Text/Paragraph.d.ts +1 -1
  337. package/src/Text/Paragraph.js +44 -75
  338. package/src/Text/Paragraph.js.map +1 -1
  339. package/src/Text/Text.d.ts +8 -8
  340. package/src/Text/Text.js +29 -107
  341. package/src/Text/Text.js.map +1 -1
  342. package/src/Text/TextLink.d.ts +1 -1
  343. package/src/Text/TextLink.js +38 -52
  344. package/src/Text/TextLink.js.map +1 -1
  345. package/src/Text/Title.js +38 -55
  346. package/src/Text/Title.js.map +1 -1
  347. package/src/Text/index.js +41 -108
  348. package/src/Text/index.js.map +1 -1
  349. package/src/index.js +42 -121
  350. package/src/index.js.map +1 -1
  351. package/src/mediaQueries.js +40 -41
  352. package/src/mediaQueries.js.map +1 -1
  353. package/src/util.js +8 -39
  354. package/src/util.js.map +1 -1
  355. package/CHANGELOG.md +0 -5471
@@ -1,26 +1,4 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.InputBlock = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
-
14
- var _react = _interopRequireDefault(require("react"));
15
-
16
- var _react2 = require("@emotion/react");
17
-
18
- var _Identity = require("../Identity");
19
-
20
- var _Input = require("./Input");
21
-
22
- var _InputSubmitCombo = require("./InputSubmitCombo");
23
-
24
2
  /*
25
3
  * Wire
26
4
  * Copyright (C) 2018 Wire Swiss GmbH
@@ -39,29 +17,25 @@ var _InputSubmitCombo = require("./InputSubmitCombo");
39
17
  * along with this program. If not, see http://www.gnu.org/licenses/.
40
18
  *
41
19
  */
42
-
43
- /** @jsx jsx */
44
- var inputBlockStyle = function inputBlockStyle(props) {
45
- var _ref;
46
-
47
- return _ref = {
48
- backgroundColor: _Identity.COLOR.GRAY_LIGHTEN_88,
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ exports.InputBlock = void 0;
22
+ const react_1 = require("@emotion/react");
23
+ const Identity_1 = require("../Identity");
24
+ const Input_1 = require("./Input");
25
+ const InputSubmitCombo_1 = require("./InputSubmitCombo");
26
+ const inputBlockStyle = props => ({
27
+ backgroundColor: Identity_1.COLOR.GRAY_LIGHTEN_88,
49
28
  borderRadius: '4px',
50
- boxShadow: "inset 16px 16px 0 ".concat(_Identity.COLOR.WHITE, ", inset -16px -16px 0 ").concat(_Identity.COLOR.WHITE),
51
- marginBottom: '16px'
52
- }, (0, _defineProperty2["default"])(_ref, ".".concat(_Input.INPUT_CLASSNAME, ", .").concat(_InputSubmitCombo.INPUT_SUBMIT_COMBO_CLASSNAME), {
53
- marginBottom: '1px !important',
54
- marginTop: '0 !important'
55
- }), (0, _defineProperty2["default"])(_ref, ".".concat(_Input.INPUT_GROUP), {
56
- marginBottom: 0
57
- }), _ref;
58
- };
59
-
60
- var InputBlock = function InputBlock(props) {
61
- return (0, _react2.jsx)("div", (0, _extends2["default"])({
62
- css: inputBlockStyle(props)
63
- }, props));
64
- };
65
-
29
+ boxShadow: `inset 16px 16px 0 ${Identity_1.COLOR.WHITE}, inset -16px -16px 0 ${Identity_1.COLOR.WHITE}`,
30
+ marginBottom: '16px',
31
+ [`.${Input_1.INPUT_CLASSNAME}, .${InputSubmitCombo_1.INPUT_SUBMIT_COMBO_CLASSNAME}`]: {
32
+ marginBottom: '1px !important',
33
+ marginTop: '0 !important',
34
+ },
35
+ [`.${Input_1.INPUT_GROUP}`]: {
36
+ marginBottom: 0,
37
+ },
38
+ });
39
+ const InputBlock = (props) => (0, react_1.jsx)("div", Object.assign({ css: inputBlockStyle(props) }, props));
66
40
  exports.InputBlock = InputBlock;
67
41
  //# sourceMappingURL=InputBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["InputBlock.tsx"],"names":["inputBlockStyle","props","backgroundColor","COLOR","GRAY_LIGHTEN_88","borderRadius","boxShadow","WHITE","marginBottom","INPUT_CLASSNAME","INPUT_SUBMIT_COMBO_CLASSNAME","marginTop","INPUT_GROUP","InputBlock"],"mappings":";;;;;;;;;;;;;AAoBA;;AACA;;AAEA;;AACA;;AACA;;AAzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAUA,IAAMA,eAAsD,GAAG,SAAzDA,eAAyD,CAAAC,KAAK;AAAA;;AAAA;AAClEC,IAAAA,eAAe,EAAEC,gBAAMC,eAD2C;AAElEC,IAAAA,YAAY,EAAE,KAFoD;AAGlEC,IAAAA,SAAS,8BAAuBH,gBAAMI,KAA7B,mCAA2DJ,gBAAMI,KAAjE,CAHyD;AAIlEC,IAAAA,YAAY,EAAE;AAJoD,uDAK7DC,sBAL6D,gBAKxCC,8CALwC,GAKP;AACzDF,IAAAA,YAAY,EAAE,gBAD2C;AAEzDG,IAAAA,SAAS,EAAE;AAF8C,GALO,qDAS7DC,kBAT6D,GAS7C;AACnBJ,IAAAA,YAAY,EAAE;AADK,GAT6C;AAAA,CAApE;;AAcO,IAAMK,UAAU,GAAG,SAAbA,UAAa,CAACZ,KAAD;AAAA,SAA4B;AAAK,IAAA,GAAG,EAAED,eAAe,CAACC,KAAD;AAAzB,KAAsCA,KAAtC,EAA5B;AAAA,CAAnB","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport React from 'react';\nimport {CSSObject, jsx} from '@emotion/react';\n\nimport {COLOR} from '../Identity';\nimport {INPUT_CLASSNAME, INPUT_GROUP} from './Input';\nimport {INPUT_SUBMIT_COMBO_CLASSNAME} from './InputSubmitCombo';\n\nexport type InputBlockProps<T = HTMLDivElement> = React.HTMLProps<T>;\n\nconst inputBlockStyle: (props: InputBlockProps) => CSSObject = props => ({\n backgroundColor: COLOR.GRAY_LIGHTEN_88,\n borderRadius: '4px',\n boxShadow: `inset 16px 16px 0 ${COLOR.WHITE}, inset -16px -16px 0 ${COLOR.WHITE}`,\n marginBottom: '16px',\n [`.${INPUT_CLASSNAME}, .${INPUT_SUBMIT_COMBO_CLASSNAME}`]: {\n marginBottom: '1px !important',\n marginTop: '0 !important',\n },\n [`.${INPUT_GROUP}`]: {\n marginBottom: 0,\n },\n});\n\nexport const InputBlock = (props: InputBlockProps) => <div css={inputBlockStyle(props)} {...props} />;\n"],"file":"InputBlock.js"}
1
+ {"version":3,"file":"InputBlock.js","sourceRoot":"","sources":["InputBlock.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAIH,0CAA8C;AAE9C,0CAAkC;AAClC,mCAAqD;AACrD,yDAAgE;AAIhE,MAAM,eAAe,GAA0C,KAAK,CAAC,EAAE,CAAC,CAAC;IACvE,eAAe,EAAE,gBAAK,CAAC,eAAe;IACtC,YAAY,EAAE,KAAK;IACnB,SAAS,EAAE,qBAAqB,gBAAK,CAAC,KAAK,yBAAyB,gBAAK,CAAC,KAAK,EAAE;IACjF,YAAY,EAAE,MAAM;IACpB,CAAC,IAAI,uBAAe,MAAM,+CAA4B,EAAE,CAAC,EAAE;QACzD,YAAY,EAAE,gBAAgB;QAC9B,SAAS,EAAE,cAAc;KAC1B;IACD,CAAC,IAAI,mBAAW,EAAE,CAAC,EAAE;QACnB,YAAY,EAAE,CAAC;KAChB;CACF,CAAC,CAAC;AAEI,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,wCAAK,GAAG,EAAE,eAAe,CAAC,KAAK,CAAC,IAAM,KAAK,EAAI,CAAC;AAAzF,QAAA,UAAU,cAA+E"}
@@ -1,49 +1,47 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
- var _react = require("@emotion/react");
13
-
14
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
-
16
- var _Identity = require("../Identity");
17
-
18
- var _react2 = _interopRequireDefault(require("react"));
19
-
20
- var _excluded = ["htmlFor", "markInvalid", "isRequired", "children"];
21
-
22
- var InputLabel = function InputLabel(_ref) {
23
- var htmlFor = _ref.htmlFor,
24
- markInvalid = _ref.markInvalid,
25
- isRequired = _ref.isRequired,
26
- children = _ref.children,
27
- props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
28
- return (0, _react.jsx)("label", (0, _extends2["default"])({
29
- htmlFor: htmlFor,
30
- css: function css(theme) {
31
- return {
32
- fontSize: '14px',
33
- fontWeight: 400,
34
- lineHeight: '16px',
35
- color: markInvalid ? _Identity.COLOR_V2.RED_LIGHT_500 : theme.Input.labelColor
36
- };
37
- }
38
- }, props), children, isRequired && (0, _react.jsx)("span", {
39
- css: /*#__PURE__*/(0, _react.css)({
40
- fontSize: '16px',
41
- marginLeft: '4px',
42
- color: _Identity.COLOR_V2.RED_LIGHT_500
43
- }, process.env.NODE_ENV === "production" ? "" : ";label:InputLabel;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIklucHV0TGFiZWwudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZDeUIiLCJmaWxlIjoiSW5wdXRMYWJlbC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogV2lyZVxuICogQ29weXJpZ2h0IChDKSAyMDIyIFdpcmUgU3dpc3MgR21iSFxuICpcbiAqIFRoaXMgcHJvZ3JhbSBpcyBmcmVlIHNvZnR3YXJlOiB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IgbW9kaWZ5XG4gKiBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieVxuICogdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbiwgZWl0aGVyIHZlcnNpb24gMyBvZiB0aGUgTGljZW5zZSwgb3JcbiAqIChhdCB5b3VyIG9wdGlvbikgYW55IGxhdGVyIHZlcnNpb24uXG4gKlxuICogVGhpcyBwcm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsXG4gKiBidXQgV0lUSE9VVCBBTlkgV0FSUkFOVFk7IHdpdGhvdXQgZXZlbiB0aGUgaW1wbGllZCB3YXJyYW50eSBvZlxuICogTUVSQ0hBTlRBQklMSVRZIG9yIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiBTZWUgdGhlXG4gKiBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBmb3IgbW9yZSBkZXRhaWxzLlxuICpcbiAqIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlXG4gKiBhbG9uZyB3aXRoIHRoaXMgcHJvZ3JhbS4gSWYgbm90LCBzZWUgaHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLy5cbiAqXG4gKi9cblxuLyoqIEBqc3gganN4ICovXG5pbXBvcnQge2pzeH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHtDT0xPUl9WMn0gZnJvbSAnLi4vSWRlbnRpdHknO1xuaW1wb3J0IHR5cGUge1RoZW1lfSBmcm9tICcuLi9MYXlvdXQnO1xuaW1wb3J0IFJlYWN0LCB7RkMsIFJlYWN0Tm9kZX0gZnJvbSAncmVhY3QnO1xuXG5leHBvcnQgaW50ZXJmYWNlIElucHV0TGFiZWxQcm9wcyB7XG4gIGNoaWxkcmVuOiBSZWFjdE5vZGUgfCBzdHJpbmc7XG4gIGh0bWxGb3I/OiBzdHJpbmc7XG4gIG1hcmtJbnZhbGlkPzogYm9vbGVhbjtcbiAgaXNSZXF1aXJlZD86IGJvb2xlYW47XG59XG5cbmNvbnN0IElucHV0TGFiZWw6IEZDPElucHV0TGFiZWxQcm9wcz4gPSAoe2h0bWxGb3IsIG1hcmtJbnZhbGlkLCBpc1JlcXVpcmVkLCBjaGlsZHJlbiwgLi4ucHJvcHN9KSA9PiAoXG4gIDxsYWJlbFxuICAgIGh0bWxGb3I9e2h0bWxGb3J9XG4gICAgY3NzPXsodGhlbWU6IFRoZW1lKSA9PiAoe1xuICAgICAgZm9udFNpemU6ICcxNHB4JyxcbiAgICAgIGZvbnRXZWlnaHQ6IDQwMCxcbiAgICAgIGxpbmVIZWlnaHQ6ICcxNnB4JyxcbiAgICAgIGNvbG9yOiBtYXJrSW52YWxpZCA/IENPTE9SX1YyLlJFRF9MSUdIVF81MDAgOiB0aGVtZS5JbnB1dC5sYWJlbENvbG9yLFxuICAgIH0pfVxuICAgIHsuLi5wcm9wc31cbiAgPlxuICAgIHtjaGlsZHJlbn1cblxuICAgIHtpc1JlcXVpcmVkICYmIDxzcGFuIGNzcz17e2ZvbnRTaXplOiAnMTZweCcsIG1hcmdpbkxlZnQ6ICc0cHgnLCBjb2xvcjogQ09MT1JfVjIuUkVEX0xJR0hUXzUwMH19Pio8L3NwYW4+fVxuICA8L2xhYmVsPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgSW5wdXRMYWJlbDtcbiJdfQ== */")
44
- }, "*"));
2
+ /*
3
+ * Wire
4
+ * Copyright (C) 2022 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
+ 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;
45
30
  };
46
-
47
- var _default = InputLabel;
48
- exports["default"] = _default;
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ /** @jsx jsx */
33
+ const react_1 = require("@emotion/react");
34
+ const Identity_1 = require("../Identity");
35
+ const InputLabel = (_a) => {
36
+ var { htmlFor, markInvalid, isRequired, children } = _a, props = __rest(_a, ["htmlFor", "markInvalid", "isRequired", "children"]);
37
+ return ((0, react_1.jsx)("label", Object.assign({ htmlFor: htmlFor, css: (theme) => ({
38
+ fontSize: '14px',
39
+ fontWeight: 400,
40
+ lineHeight: '16px',
41
+ color: markInvalid ? Identity_1.COLOR_V2.RED_LIGHT_500 : theme.Input.labelColor,
42
+ }) }, props),
43
+ children,
44
+ isRequired && (0, react_1.jsx)("span", { css: { fontSize: '16px', marginLeft: '4px', color: Identity_1.COLOR_V2.RED_LIGHT_500 } }, "*")));
45
+ };
46
+ exports.default = InputLabel;
49
47
  //# sourceMappingURL=InputLabel.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["InputLabel.tsx"],"names":["InputLabel","htmlFor","markInvalid","isRequired","children","props","theme","fontSize","fontWeight","lineHeight","color","COLOR_V2","RED_LIGHT_500","Input","labelColor","marginLeft"],"mappings":";;;;;;;;;;;AAoBA;;;;AACA;;AAEA;;;;AASA,IAAMA,UAA+B,GAAG,SAAlCA,UAAkC;AAAA,MAAEC,OAAF,QAAEA,OAAF;AAAA,MAAWC,WAAX,QAAWA,WAAX;AAAA,MAAwBC,UAAxB,QAAwBA,UAAxB;AAAA,MAAoCC,QAApC,QAAoCA,QAApC;AAAA,MAAiDC,KAAjD;AAAA,SACtC;AACE,IAAA,OAAO,EAAEJ,OADX;AAEE,IAAA,GAAG,EAAE,aAACK,KAAD;AAAA,aAAmB;AACtBC,QAAAA,QAAQ,EAAE,MADY;AAEtBC,QAAAA,UAAU,EAAE,GAFU;AAGtBC,QAAAA,UAAU,EAAE,MAHU;AAItBC,QAAAA,KAAK,EAAER,WAAW,GAAGS,mBAASC,aAAZ,GAA4BN,KAAK,CAACO,KAAN,CAAYC;AAJpC,OAAnB;AAAA;AAFP,KAQMT,KARN,GAUGD,QAVH,EAYGD,UAAU,IAAI;AAAM,IAAA,GAAG,+BAAE;AAACI,MAAAA,QAAQ,EAAE,MAAX;AAAmBQ,MAAAA,UAAU,EAAE,KAA/B;AAAsCL,MAAAA,KAAK,EAAEC,mBAASC;AAAtD,KAAF;AAAT,SAZjB,CADsC;AAAA,CAAxC;;eAiBeZ,U","sourcesContent":["/*\n * Wire\n * Copyright (C) 2022 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {jsx} from '@emotion/react';\nimport {COLOR_V2} from '../Identity';\nimport type {Theme} from '../Layout';\nimport React, {FC, ReactNode} from 'react';\n\nexport interface InputLabelProps {\n children: ReactNode | string;\n htmlFor?: string;\n markInvalid?: boolean;\n isRequired?: boolean;\n}\n\nconst InputLabel: FC<InputLabelProps> = ({htmlFor, markInvalid, isRequired, children, ...props}) => (\n <label\n htmlFor={htmlFor}\n css={(theme: Theme) => ({\n fontSize: '14px',\n fontWeight: 400,\n lineHeight: '16px',\n color: markInvalid ? COLOR_V2.RED_LIGHT_500 : theme.Input.labelColor,\n })}\n {...props}\n >\n {children}\n\n {isRequired && <span css={{fontSize: '16px', marginLeft: '4px', color: COLOR_V2.RED_LIGHT_500}}>*</span>}\n </label>\n);\n\nexport default InputLabel;\n"],"file":"InputLabel.js"}
1
+ {"version":3,"file":"InputLabel.js","sourceRoot":"","sources":["InputLabel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;AAEH,eAAe;AACf,0CAAmC;AACnC,0CAAqC;AAWrC,MAAM,UAAU,GAAwB,CAAC,EAAsD,EAAE,EAAE;QAA1D,EAAC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,OAAW,EAAN,KAAK,cAArD,oDAAsD,CAAD;IAAM,OAAA,CAClG,0CACE,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC;YACtB,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE,GAAG;YACf,UAAU,EAAE,MAAM;YAClB,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,mBAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU;SACrE,CAAC,IACE,KAAK;QAER,QAAQ;QAER,UAAU,IAAI,2BAAM,GAAG,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,mBAAQ,CAAC,aAAa,EAAC,QAAU,CAClG,CACT,CAAA;CAAA,CAAC;AAEF,kBAAe,UAAU,CAAC"}
@@ -1,58 +1,54 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.InputSubmitCombo = exports.INPUT_SUBMIT_COMBO_CLASSNAME = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
-
14
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
-
16
- var _react = require("@emotion/react");
17
-
18
- var _Input = require("./Input");
19
-
20
- var _Identity = require("../Identity");
21
-
22
- var _excluded = ["children"];
23
-
24
- 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; }
25
-
26
- 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; }
27
-
28
- var INPUT_SUBMIT_COMBO_CLASSNAME = 'inputSubmitCombo';
29
- exports.INPUT_SUBMIT_COMBO_CLASSNAME = INPUT_SUBMIT_COMBO_CLASSNAME;
30
-
31
- var InputSubmitCombo = function InputSubmitCombo(_ref) {
32
- var children = _ref.children,
33
- props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
34
- return (0, _react.jsx)("div", (0, _extends2["default"])({
35
- className: INPUT_SUBMIT_COMBO_CLASSNAME,
36
- css: function css(theme) {
37
- var _objectSpread2;
38
-
39
- return _objectSpread(_objectSpread({}, (0, _Input.inputStyle)(theme, props)), {}, (_objectSpread2 = {
40
- '&:focus-within': {
41
- boxShadow: "0 0 0 1px ".concat(_Identity.COLOR_V2.BLUE)
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
+ 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]];
42
28
  }
43
- }, (0, _defineProperty2["default"])(_objectSpread2, ".".concat(_Input.INPUT_GROUP), {
44
- flexGrow: 1
45
- }), (0, _defineProperty2["default"])(_objectSpread2, ".".concat(_Input.INPUT_CLASSNAME), {
46
- '&:focus, &:invalid:not(:focus)': {
47
- boxShadow: 'none'
48
- },
49
- boxShadow: 'none',
50
- margin: '0 8px 0 0',
51
- padding: '0 0 0 16px'
52
- }), (0, _defineProperty2["default"])(_objectSpread2, "alignItems", 'center'), (0, _defineProperty2["default"])(_objectSpread2, "display", 'flex'), (0, _defineProperty2["default"])(_objectSpread2, "height", '49px'), (0, _defineProperty2["default"])(_objectSpread2, "justifyContent", 'space-between'), (0, _defineProperty2["default"])(_objectSpread2, "marginBottom", '4px'), (0, _defineProperty2["default"])(_objectSpread2, "paddingLeft", 0), _objectSpread2));
53
- }
54
- }, props), children);
29
+ return t;
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.InputSubmitCombo = exports.INPUT_SUBMIT_COMBO_CLASSNAME = void 0;
33
+ /** @jsx jsx */
34
+ const react_1 = require("@emotion/react");
35
+ const Input_1 = require("./Input");
36
+ const Identity_1 = require("../Identity");
37
+ exports.INPUT_SUBMIT_COMBO_CLASSNAME = 'inputSubmitCombo';
38
+ const InputSubmitCombo = (_a) => {
39
+ var { children } = _a, props = __rest(_a, ["children"]);
40
+ return ((0, react_1.jsx)("div", Object.assign({ className: exports.INPUT_SUBMIT_COMBO_CLASSNAME, css: (theme) => (Object.assign(Object.assign({}, (0, Input_1.inputStyle)(theme, props)), { '&:focus-within': {
41
+ boxShadow: `0 0 0 1px ${Identity_1.COLOR_V2.BLUE}`,
42
+ }, [`.${Input_1.INPUT_GROUP}`]: {
43
+ flexGrow: 1,
44
+ }, [`.${Input_1.INPUT_CLASSNAME}`]: {
45
+ '&:focus, &:invalid:not(:focus)': {
46
+ boxShadow: 'none',
47
+ },
48
+ boxShadow: 'none',
49
+ margin: '0 8px 0 0',
50
+ padding: '0 0 0 16px',
51
+ }, alignItems: 'center', display: 'flex', height: '49px', justifyContent: 'space-between', marginBottom: '4px', paddingLeft: 0 })) }, props), children));
55
52
  };
56
-
57
53
  exports.InputSubmitCombo = InputSubmitCombo;
58
54
  //# sourceMappingURL=InputSubmitCombo.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["InputSubmitCombo.tsx"],"names":["INPUT_SUBMIT_COMBO_CLASSNAME","InputSubmitCombo","children","props","theme","boxShadow","COLOR_V2","BLUE","INPUT_GROUP","flexGrow","INPUT_CLASSNAME","margin","padding"],"mappings":";;;;;;;;;;;;;;;AAoBA;;AAEA;;AACA;;;;;;;;AAKO,IAAMA,4BAA4B,GAAG,kBAArC;;;AAEA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB;AAAA,MAAEC,QAAF,QAAEA,QAAF;AAAA,MAAeC,KAAf;AAAA,SAC9B;AACE,IAAA,SAAS,EAAEH,4BADb;AAEE,IAAA,GAAG,EAAE,aAACI,KAAD;AAAA;;AAAA,6CACA,uBAAWA,KAAX,EAAkBD,KAAlB,CADA;AAEH,0BAAkB;AAChBE,UAAAA,SAAS,sBAAeC,mBAASC,IAAxB;AADO;AAFf,qEAKEC,kBALF,GAKkB;AACnBC,QAAAA,QAAQ,EAAE;AADS,OALlB,+DAQEC,sBARF,GAQsB;AACvB,0CAAkC;AAChCL,UAAAA,SAAS,EAAE;AADqB,SADX;AAIvBA,QAAAA,SAAS,EAAE,MAJY;AAKvBM,QAAAA,MAAM,EAAE,WALe;AAMvBC,QAAAA,OAAO,EAAE;AANc,OARtB,kEAgBS,QAhBT,+DAiBM,MAjBN,8DAkBK,MAlBL,sEAmBa,eAnBb,oEAoBW,KApBX,mEAqBU,CArBV;AAAA;AAFP,KAyBMT,KAzBN,GA2BGD,QA3BH,CAD8B;AAAA,CAAzB","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {jsx} from '@emotion/react';\n\nimport {INPUT_CLASSNAME, INPUT_GROUP, InputProps, inputStyle} from './Input';\nimport {COLOR_V2} from '../Identity';\nimport {Theme} from '../Layout';\n\nexport type InputSubmitComboProps<T = HTMLDivElement> = InputProps<T>;\n\nexport const INPUT_SUBMIT_COMBO_CLASSNAME = 'inputSubmitCombo';\n\nexport const InputSubmitCombo = ({children, ...props}: InputSubmitComboProps) => (\n <div\n className={INPUT_SUBMIT_COMBO_CLASSNAME}\n css={(theme: Theme) => ({\n ...inputStyle(theme, props),\n '&:focus-within': {\n boxShadow: `0 0 0 1px ${COLOR_V2.BLUE}`,\n },\n [`.${INPUT_GROUP}`]: {\n flexGrow: 1,\n },\n [`.${INPUT_CLASSNAME}`]: {\n '&:focus, &:invalid:not(:focus)': {\n boxShadow: 'none',\n },\n boxShadow: 'none',\n margin: '0 8px 0 0',\n padding: '0 0 0 16px',\n },\n alignItems: 'center',\n display: 'flex',\n height: '49px', // needs a bit more space to not overlap with the `boxShadow` from `:focus`\n justifyContent: 'space-between',\n marginBottom: '4px',\n paddingLeft: 0,\n })}\n {...props}\n >\n {children}\n </div>\n);\n"],"file":"InputSubmitCombo.js"}
1
+ {"version":3,"file":"InputSubmitCombo.js","sourceRoot":"","sources":["InputSubmitCombo.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;AAEH,eAAe;AACf,0CAAmC;AAEnC,mCAA6E;AAC7E,0CAAqC;AAKxB,QAAA,4BAA4B,GAAG,kBAAkB,CAAC;AAExD,MAAM,gBAAgB,GAAG,CAAC,EAA2C,EAAE,EAAE;QAA/C,EAAC,QAAQ,OAAkC,EAA7B,KAAK,cAAnB,YAAoB,CAAD;IAA6B,OAAA,CAC/E,wCACE,SAAS,EAAE,oCAA4B,EACvC,GAAG,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,iCAClB,IAAA,kBAAU,EAAC,KAAK,EAAE,KAAK,CAAC,KAC3B,gBAAgB,EAAE;gBAChB,SAAS,EAAE,aAAa,mBAAQ,CAAC,IAAI,EAAE;aACxC,EACD,CAAC,IAAI,mBAAW,EAAE,CAAC,EAAE;gBACnB,QAAQ,EAAE,CAAC;aACZ,EACD,CAAC,IAAI,uBAAe,EAAE,CAAC,EAAE;gBACvB,gCAAgC,EAAE;oBAChC,SAAS,EAAE,MAAM;iBAClB;gBACD,SAAS,EAAE,MAAM;gBACjB,MAAM,EAAE,WAAW;gBACnB,OAAO,EAAE,YAAY;aACtB,EACD,UAAU,EAAE,QAAQ,EACpB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,eAAe,EAC/B,YAAY,EAAE,KAAK,EACnB,WAAW,EAAE,CAAC,IACd,IACE,KAAK,GAER,QAAQ,CACL,CACP,CAAA;CAAA,CAAC;AA9BW,QAAA,gBAAgB,oBA8B3B"}
@@ -1,75 +1,51 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _typeof = require("@babel/runtime/helpers/typeof");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
2
+ /*
3
+ * Wire
4
+ * Copyright (C) 2022 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
+ 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 });
10
32
  exports.RangeInput = void 0;
11
-
12
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
-
14
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
-
16
- var _react = require("@emotion/react");
17
-
18
- var _react2 = _interopRequireWildcard(require("react"));
19
-
20
- var _InputLabel = _interopRequireDefault(require("./InputLabel"));
21
-
22
- var _RangeInput = require("./RangeInput.styles");
23
-
24
- var _excluded = ["ref", "id", "label", "minValueLabel", "maxValueLabel", "min", "max", "value", "onChange", "wrapperCSS"];
25
-
26
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
-
28
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
-
30
- var RangeInput = /*#__PURE__*/(0, _react2.forwardRef)(function (_ref) {
31
- var ref = _ref.ref,
32
- _ref$id = _ref.id,
33
- id = _ref$id === void 0 ? Math.random().toString() : _ref$id,
34
- label = _ref.label,
35
- minValueLabel = _ref.minValueLabel,
36
- maxValueLabel = _ref.maxValueLabel,
37
- _ref$min = _ref.min,
38
- min = _ref$min === void 0 ? '0' : _ref$min,
39
- _ref$max = _ref.max,
40
- max = _ref$max === void 0 ? '100' : _ref$max,
41
- _ref$value = _ref.value,
42
- value = _ref$value === void 0 ? '0' : _ref$value,
43
- onChange = _ref.onChange,
44
- wrapperCSS = _ref.wrapperCSS,
45
- inputProps = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
46
- var minNum = Number(min);
47
- var maxNum = Number(max);
48
- var valueNum = Number(value);
49
- var backgroundSize = "".concat((valueNum - minNum) * 100 / (maxNum - minNum), "% 100%");
50
- return (0, _react.jsx)("div", {
51
- css: wrapperCSS
52
- }, label && (0, _react.jsx)(_InputLabel["default"], {
53
- htmlFor: id
54
- }, label), (0, _react.jsx)("div", {
55
- css: _RangeInput.rangeInputWrapperStyles
56
- }, minValueLabel && (0, _react.jsx)("span", {
57
- css: (0, _RangeInput.getValueLabelStyles)(_RangeInput.ValueLabelPosition.LEFT)
58
- }, minValueLabel), maxValueLabel && (0, _react.jsx)("span", {
59
- css: (0, _RangeInput.getValueLabelStyles)(_RangeInput.ValueLabelPosition.RIGHT)
60
- }, maxValueLabel), (0, _react.jsx)("input", (0, _extends2["default"])({
61
- ref: ref,
62
- css: function css(theme) {
63
- return (0, _RangeInput.getImageCropZoomInputStyles)(theme, backgroundSize);
64
- },
65
- id: id,
66
- name: id,
67
- min: min,
68
- max: max,
69
- value: value,
70
- onChange: onChange,
71
- type: "range"
72
- }, inputProps))));
33
+ /** @jsx jsx */
34
+ const react_1 = require("@emotion/react");
35
+ const react_2 = require("react");
36
+ const InputLabel_1 = require("./InputLabel");
37
+ const RangeInput_styles_1 = require("./RangeInput.styles");
38
+ exports.RangeInput = (0, react_2.forwardRef)((_a) => {
39
+ var { ref, id = Math.random().toString(), label, minValueLabel, maxValueLabel, min = '0', max = '100', value = '0', onChange, wrapperCSS } = _a, inputProps = __rest(_a, ["ref", "id", "label", "minValueLabel", "maxValueLabel", "min", "max", "value", "onChange", "wrapperCSS"]);
40
+ const minNum = Number(min);
41
+ const maxNum = Number(max);
42
+ const valueNum = Number(value);
43
+ const backgroundSize = `${((valueNum - minNum) * 100) / (maxNum - minNum)}% 100%`;
44
+ return ((0, react_1.jsx)("div", { css: wrapperCSS },
45
+ label && (0, react_1.jsx)(InputLabel_1.default, { htmlFor: id }, label),
46
+ (0, react_1.jsx)("div", { css: RangeInput_styles_1.rangeInputWrapperStyles },
47
+ minValueLabel && (0, react_1.jsx)("span", { css: (0, RangeInput_styles_1.getValueLabelStyles)(RangeInput_styles_1.ValueLabelPosition.LEFT) }, minValueLabel),
48
+ maxValueLabel && (0, react_1.jsx)("span", { css: (0, RangeInput_styles_1.getValueLabelStyles)(RangeInput_styles_1.ValueLabelPosition.RIGHT) }, maxValueLabel),
49
+ (0, react_1.jsx)("input", Object.assign({ ref: ref, css: (theme) => (0, RangeInput_styles_1.getImageCropZoomInputStyles)(theme, backgroundSize), id: id, name: id, min: min, max: max, value: value, onChange: onChange, type: "range" }, inputProps)))));
73
50
  });
74
- exports.RangeInput = RangeInput;
75
51
  //# sourceMappingURL=RangeInput.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["RangeInput.tsx"],"names":["RangeInput","ref","id","Math","random","toString","label","minValueLabel","maxValueLabel","min","max","value","onChange","wrapperCSS","inputProps","minNum","Number","maxNum","valueNum","backgroundSize","rangeInputWrapperStyles","ValueLabelPosition","LEFT","RIGHT","theme"],"mappings":";;;;;;;;;;;;;;;AAoBA;;AACA;;AAGA;;AACA;;;;;;;;AAcO,IAAMA,UAA+B,gBAAG,wBAC7C,gBAYM;AAAA,MAXJC,GAWI,QAXJA,GAWI;AAAA,qBAVJC,EAUI;AAAA,MAVJA,EAUI,wBAVCC,IAAI,CAACC,MAAL,GAAcC,QAAd,EAUD;AAAA,MATJC,KASI,QATJA,KASI;AAAA,MARJC,aAQI,QARJA,aAQI;AAAA,MAPJC,aAOI,QAPJA,aAOI;AAAA,sBANJC,GAMI;AAAA,MANJA,GAMI,yBANE,GAMF;AAAA,sBALJC,GAKI;AAAA,MALJA,GAKI,yBALE,KAKF;AAAA,wBAJJC,KAII;AAAA,MAJJA,KAII,2BAJI,GAIJ;AAAA,MAHJC,QAGI,QAHJA,QAGI;AAAA,MAFJC,UAEI,QAFJA,UAEI;AAAA,MADDC,UACC;AACJ,MAAMC,MAAM,GAAGC,MAAM,CAACP,GAAD,CAArB;AACA,MAAMQ,MAAM,GAAGD,MAAM,CAACN,GAAD,CAArB;AACA,MAAMQ,QAAQ,GAAGF,MAAM,CAACL,KAAD,CAAvB;AAEA,MAAMQ,cAAc,aAAO,CAACD,QAAQ,GAAGH,MAAZ,IAAsB,GAAvB,IAA+BE,MAAM,GAAGF,MAAxC,CAAN,WAApB;AAEA,SACE;AAAK,IAAA,GAAG,EAAEF;AAAV,KACGP,KAAK,IAAI,gBAAC,sBAAD;AAAY,IAAA,OAAO,EAAEJ;AAArB,KAA0BI,KAA1B,CADZ,EAEE;AAAK,IAAA,GAAG,EAAEc;AAAV,KACGb,aAAa,IAAI;AAAM,IAAA,GAAG,EAAE,qCAAoBc,+BAAmBC,IAAvC;AAAX,KAA0Df,aAA1D,CADpB,EAEGC,aAAa,IAAI;AAAM,IAAA,GAAG,EAAE,qCAAoBa,+BAAmBE,KAAvC;AAAX,KAA2Df,aAA3D,CAFpB,EAGE;AACE,IAAA,GAAG,EAAEP,GADP;AAEE,IAAA,GAAG,EAAE,aAACuB,KAAD;AAAA,aAAkB,6CAA4BA,KAA5B,EAAmCL,cAAnC,CAAlB;AAAA,KAFP;AAGE,IAAA,EAAE,EAAEjB,EAHN;AAIE,IAAA,IAAI,EAAEA,EAJR;AAKE,IAAA,GAAG,EAAEO,GALP;AAME,IAAA,GAAG,EAAEC,GANP;AAOE,IAAA,KAAK,EAAEC,KAPT;AAQE,IAAA,QAAQ,EAAEC,QARZ;AASE,IAAA,IAAI,EAAC;AATP,KAUME,UAVN,EAHF,CAFF,CADF;AAqBD,CAzC4C,CAAxC","sourcesContent":["/*\n * Wire\n * Copyright (C) 2022 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, {FC, forwardRef} from 'react';\nimport {TextProps} from '../Text';\nimport {Theme} from '../Layout';\nimport InputLabel from './InputLabel';\nimport {\n getImageCropZoomInputStyles,\n getValueLabelStyles,\n rangeInputWrapperStyles,\n ValueLabelPosition,\n} from './RangeInput.styles';\n\nexport interface RangeInputProps<T = HTMLInputElement> extends TextProps<T> {\n label?: string;\n minValueLabel?: string;\n maxValueLabel?: string;\n wrapperCSS?: CSSObject;\n}\n\nexport const RangeInput: FC<RangeInputProps> = forwardRef<HTMLInputElement, RangeInputProps<HTMLInputElement>>(\n ({\n ref,\n id = Math.random().toString(),\n label,\n minValueLabel,\n maxValueLabel,\n min = '0',\n max = '100',\n value = '0',\n onChange,\n wrapperCSS,\n ...inputProps\n }) => {\n const minNum = Number(min);\n const maxNum = Number(max);\n const valueNum = Number(value);\n\n const backgroundSize = `${((valueNum - minNum) * 100) / (maxNum - minNum)}% 100%` as const;\n\n return (\n <div css={wrapperCSS}>\n {label && <InputLabel htmlFor={id}>{label}</InputLabel>}\n <div css={rangeInputWrapperStyles}>\n {minValueLabel && <span css={getValueLabelStyles(ValueLabelPosition.LEFT)}>{minValueLabel}</span>}\n {maxValueLabel && <span css={getValueLabelStyles(ValueLabelPosition.RIGHT)}>{maxValueLabel}</span>}\n <input\n ref={ref}\n css={(theme: Theme) => getImageCropZoomInputStyles(theme, backgroundSize)}\n id={id}\n name={id}\n min={min}\n max={max}\n value={value}\n onChange={onChange}\n type=\"range\"\n {...inputProps}\n />\n </div>\n </div>\n );\n },\n);\n"],"file":"RangeInput.js"}
1
+ {"version":3,"file":"RangeInput.js","sourceRoot":"","sources":["RangeInput.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;AAEH,eAAe;AACf,0CAA8C;AAC9C,iCAA4C;AAG5C,6CAAsC;AACtC,2DAK6B;AAShB,QAAA,UAAU,GAAwB,IAAA,kBAAU,EACvD,CAAC,EAYA,EAAE,EAAE;QAZJ,EACC,GAAG,EACH,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAC7B,KAAK,EACL,aAAa,EACb,aAAa,EACb,GAAG,GAAG,GAAG,EACT,GAAG,GAAG,KAAK,EACX,KAAK,GAAG,GAAG,EACX,QAAQ,EACR,UAAU,OAEX,EADI,UAAU,cAXd,yGAYA,CADc;IAEb,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3B,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3B,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAE/B,MAAM,cAAc,GAAG,GAAG,CAAC,CAAC,QAAQ,GAAG,MAAM,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,QAAiB,CAAC;IAE3F,OAAO,CACL,0BAAK,GAAG,EAAE,UAAU;QACjB,KAAK,IAAI,iBAAC,oBAAU,IAAC,OAAO,EAAE,EAAE,IAAG,KAAK,CAAc;QACvD,0BAAK,GAAG,EAAE,2CAAuB;YAC9B,aAAa,IAAI,2BAAM,GAAG,EAAE,IAAA,uCAAmB,EAAC,sCAAkB,CAAC,IAAI,CAAC,IAAG,aAAa,CAAQ;YAChG,aAAa,IAAI,2BAAM,GAAG,EAAE,IAAA,uCAAmB,EAAC,sCAAkB,CAAC,KAAK,CAAC,IAAG,aAAa,CAAQ;YAClG,0CACE,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,IAAA,+CAA2B,EAAC,KAAK,EAAE,cAAc,CAAC,EACzE,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,EAAE,EACR,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,OAAO,IACR,UAAU,EACd,CACE,CACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,76 +1,60 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
2
+ /*
3
+ * Wire
4
+ * Copyright (C) 2022 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
+ Object.defineProperty(exports, "__esModule", { value: true });
8
21
  exports.getValueLabelStyles = exports.ValueLabelPosition = exports.getImageCropZoomInputStyles = exports.rangeInputWrapperStyles = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- var _Identity = require("../Identity");
13
-
14
- var _util = require("../util");
15
-
16
- 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; }
17
-
18
- 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; }
19
-
20
- var rangeInputWrapperStyles = {
21
- position: 'relative',
22
- marginTop: '19px'
22
+ const Identity_1 = require("../Identity");
23
+ const util_1 = require("../util");
24
+ exports.rangeInputWrapperStyles = {
25
+ position: 'relative',
26
+ marginTop: '19px',
23
27
  };
24
- exports.rangeInputWrapperStyles = rangeInputWrapperStyles;
25
- var thumbSelectors = ['&::-webkit-slider-thumb', '&::-moz-range-thumb', '&::-ms-thumb'];
26
- var sliderSelectors = ['&::-webkit-slider-runnable-track', '&::-moz-range-track', '&::-ms-track'];
27
-
28
- var getImageCropZoomInputStyles = function getImageCropZoomInputStyles(theme, backgroundSize) {
29
- return _objectSpread(_objectSpread({
30
- display: 'block',
31
- '-webkit-appearance': 'none',
32
- width: '100%',
33
- height: '8px',
34
- background: _Identity.COLOR_V2.GRAY_60,
35
- borderRadius: '4px',
36
- backgroundImage: "linear-gradient(".concat(theme.general.primaryColor, ", ").concat(theme.general.primaryColor, ")"),
37
- backgroundSize: backgroundSize || '0% 100%',
38
- backgroundRepeat: 'no-repeat'
39
- }, (0, _util.manySelectors)(thumbSelectors, {
28
+ const thumbSelectors = ['&::-webkit-slider-thumb', '&::-moz-range-thumb', '&::-ms-thumb'];
29
+ const sliderSelectors = ['&::-webkit-slider-runnable-track', '&::-moz-range-track', '&::-ms-track'];
30
+ const getImageCropZoomInputStyles = (theme, backgroundSize) => (Object.assign(Object.assign({ display: 'block', '-webkit-appearance': 'none', width: '100%', height: '8px', background: Identity_1.COLOR_V2.GRAY_60, borderRadius: '4px', backgroundImage: `linear-gradient(${theme.general.primaryColor}, ${theme.general.primaryColor})`, backgroundSize: backgroundSize || '0% 100%', backgroundRepeat: 'no-repeat' }, (0, util_1.manySelectors)(thumbSelectors, {
40
31
  '-webkit-appearance': 'none',
41
32
  height: '18px',
42
33
  width: '18px',
43
34
  borderRadius: '50%',
44
- background: _Identity.COLOR_V2.GRAY_80,
35
+ background: Identity_1.COLOR_V2.GRAY_80,
45
36
  cursor: 'pointer',
46
37
  border: 'none',
47
- boxShadow: 'none'
48
- })), (0, _util.manySelectors)(sliderSelectors, {
38
+ boxShadow: 'none',
39
+ })), (0, util_1.manySelectors)(sliderSelectors, {
49
40
  '-webkit-appearance': 'none',
50
41
  boxShadow: 'none',
51
42
  border: 'none',
52
- background: 'transparent'
53
- }));
54
- };
55
-
43
+ background: 'transparent',
44
+ })));
56
45
  exports.getImageCropZoomInputStyles = getImageCropZoomInputStyles;
57
46
  var ValueLabelPosition;
58
- exports.ValueLabelPosition = ValueLabelPosition;
59
-
60
47
  (function (ValueLabelPosition) {
61
- ValueLabelPosition["LEFT"] = "left";
62
- ValueLabelPosition["RIGHT"] = "right";
63
- })(ValueLabelPosition || (exports.ValueLabelPosition = ValueLabelPosition = {}));
64
-
65
- var getValueLabelStyles = function getValueLabelStyles(position) {
66
- return (0, _defineProperty2["default"])({
48
+ ValueLabelPosition["LEFT"] = "left";
49
+ ValueLabelPosition["RIGHT"] = "right";
50
+ })(ValueLabelPosition = exports.ValueLabelPosition || (exports.ValueLabelPosition = {}));
51
+ const getValueLabelStyles = (position) => ({
67
52
  pointerEvents: 'none',
68
53
  bottom: '100%',
69
54
  fontSize: '16px',
70
55
  fontWeight: 300,
71
- position: 'absolute'
72
- }, position, '4px');
73
- };
74
-
56
+ position: 'absolute',
57
+ [position]: '4px',
58
+ });
75
59
  exports.getValueLabelStyles = getValueLabelStyles;
76
60
  //# sourceMappingURL=RangeInput.styles.js.map