@transferwise/components 46.130.3 → 46.131.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (382) hide show
  1. package/build/main.css +27004 -7
  2. package/build/styles/css/accordion.css +255 -0
  3. package/build/styles/css/alerts.css +751 -0
  4. package/build/styles/css/background.css +20 -0
  5. package/build/styles/css/badge.css +90 -0
  6. package/build/styles/css/border-radius.css +3 -0
  7. package/build/styles/css/breadcrumbs.css +20 -0
  8. package/build/styles/css/button-groups.css +495 -0
  9. package/build/styles/css/buttons.css +1390 -0
  10. package/build/styles/css/chevron.css +35 -0
  11. package/build/styles/css/circles.css +248 -0
  12. package/build/styles/css/close.css +47 -0
  13. package/build/styles/css/column-layout.css +164 -0
  14. package/build/styles/css/currency-flags.css +46 -0
  15. package/build/styles/css/decision.css +136 -0
  16. package/build/styles/css/dropdowns.css +472 -0
  17. package/build/styles/css/droppable.css +221 -0
  18. package/build/styles/css/flex.css +598 -0
  19. package/build/styles/css/footer.css +129 -0
  20. package/build/styles/css/grid.css +2369 -0
  21. package/build/styles/css/input-groups.css +2740 -0
  22. package/build/styles/css/link-callout.css +20 -0
  23. package/build/styles/css/list-group.css +350 -0
  24. package/build/styles/css/loaders.css +76 -0
  25. package/build/styles/css/media.css +74 -0
  26. package/build/styles/css/modals.css +185 -0
  27. package/build/styles/css/navbar.css +2406 -0
  28. package/build/styles/css/navs.css +296 -0
  29. package/build/styles/css/neptune-social-media.css +144 -0
  30. package/build/styles/css/neptune.css +25724 -0
  31. package/build/styles/css/panels.css +528 -0
  32. package/build/styles/css/popovers.css +661 -0
  33. package/build/styles/css/process.css +483 -0
  34. package/build/styles/css/progress-bars.css +64 -0
  35. package/build/styles/css/ring.css +55 -0
  36. package/build/styles/css/select.css +99 -0
  37. package/build/styles/css/sequences.css +855 -0
  38. package/build/styles/css/table.css +446 -0
  39. package/build/styles/css/tick.css +32 -0
  40. package/build/styles/css/tooltip.css +160 -0
  41. package/build/styles/css/utilities.css +145 -0
  42. package/build/styles/css/wells.css +74 -0
  43. package/build/styles/fonts/TW-Averta-Bold.woff +0 -0
  44. package/build/styles/fonts/TW-Averta-Bold.woff2 +0 -0
  45. package/build/styles/fonts/TW-Averta-Regular.woff +0 -0
  46. package/build/styles/fonts/TW-Averta-Regular.woff2 +0 -0
  47. package/build/styles/fonts/TW-Averta-Semibold.woff +0 -0
  48. package/build/styles/fonts/TW-Averta-Semibold.woff2 +0 -0
  49. package/build/styles/fonts/TransferWise-IconFont.svg +81 -0
  50. package/build/styles/fonts/TransferWise-IconFont.woff +0 -0
  51. package/build/styles/fonts/WiseSans-Heavy.woff2 +0 -0
  52. package/build/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  53. package/build/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  54. package/build/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  55. package/build/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  56. package/build/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  57. package/build/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  58. package/build/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  59. package/build/styles/img/bg-dark.svg +31 -0
  60. package/build/styles/img/bg-light.svg +26 -0
  61. package/build/styles/less/legacy-variables.css +0 -0
  62. package/build/styles/less/legacy-variables.less +1299 -0
  63. package/build/styles/less/neptune-tokens.css +0 -0
  64. package/build/styles/less/neptune-tokens.less +275 -0
  65. package/build/styles/less/zindex.css +0 -0
  66. package/build/styles/less/zindex.less +17 -0
  67. package/build/styles/main.css +27004 -7
  68. package/build/styles/props/custom-media.css +11 -0
  69. package/build/styles/props/legacy-custom-props.css +69 -0
  70. package/build/styles/props/neptune-tokens.css +152 -0
  71. package/build/styles/styles/less/accordion.css +255 -0
  72. package/build/styles/styles/less/alerts.css +751 -0
  73. package/build/styles/styles/less/background.css +20 -0
  74. package/build/styles/styles/less/badge.css +90 -0
  75. package/build/styles/styles/less/border-radius.css +3 -0
  76. package/build/styles/styles/less/breadcrumbs.css +20 -0
  77. package/build/styles/styles/less/button-groups.css +495 -0
  78. package/build/styles/styles/less/buttons.css +1390 -0
  79. package/build/styles/styles/less/chevron.css +35 -0
  80. package/build/styles/styles/less/circles.css +248 -0
  81. package/build/styles/styles/less/close.css +47 -0
  82. package/build/styles/styles/less/column-layout.css +164 -0
  83. package/build/styles/styles/less/core/viewport-themes.css +59 -0
  84. package/build/styles/styles/less/currency-flags.css +46 -0
  85. package/build/styles/styles/less/decision.css +136 -0
  86. package/build/styles/styles/less/dropdowns.css +472 -0
  87. package/build/styles/styles/less/droppable.css +221 -0
  88. package/build/styles/styles/less/flex.css +598 -0
  89. package/build/styles/styles/less/footer.css +129 -0
  90. package/build/styles/styles/less/forms/bootstrap-forms.css +2277 -0
  91. package/build/styles/styles/less/forms/checkbox-radio.css +367 -0
  92. package/build/styles/styles/less/grid.css +2369 -0
  93. package/build/styles/styles/less/input-groups.css +2740 -0
  94. package/build/styles/styles/less/link-callout.css +20 -0
  95. package/build/styles/styles/less/list-group.css +350 -0
  96. package/build/styles/styles/less/loaders.css +76 -0
  97. package/build/styles/styles/less/media.css +74 -0
  98. package/build/styles/styles/less/modals.css +185 -0
  99. package/build/styles/styles/less/navbar.css +2406 -0
  100. package/build/styles/styles/less/navs.css +296 -0
  101. package/build/styles/styles/less/neptune-social-media.css +144 -0
  102. package/build/styles/styles/less/neptune.css +25724 -0
  103. package/build/styles/styles/less/panels.css +528 -0
  104. package/build/styles/styles/less/popovers.css +661 -0
  105. package/build/styles/styles/less/process.css +483 -0
  106. package/build/styles/styles/less/progress-bars.css +64 -0
  107. package/build/styles/styles/less/ring.css +55 -0
  108. package/build/styles/styles/less/select.css +99 -0
  109. package/build/styles/styles/less/sequences.css +855 -0
  110. package/build/styles/styles/less/table.css +446 -0
  111. package/build/styles/styles/less/tick.css +32 -0
  112. package/build/styles/styles/less/tooltip.css +160 -0
  113. package/build/styles/styles/less/utilities.css +145 -0
  114. package/build/styles/styles/less/wells.css +74 -0
  115. package/build/styles/styles/props/custom-media.css +11 -0
  116. package/build/styles/styles/props/legacy-custom-props.css +69 -0
  117. package/build/styles/styles/props/neptune-tokens.css +11 -0
  118. package/build/styles/styles/variables/legacy-variables.css +0 -0
  119. package/build/styles/styles/variables/neptune-tokens.css +0 -0
  120. package/build/styles/styles/variables/zindex.css +0 -0
  121. package/package.json +9 -5
  122. package/src/{DisabledComponents.story.tsx → DisabledComponents.test.story.tsx} +1 -1
  123. package/src/accordion/Accordion.less +3 -3
  124. package/src/actionButton/ActionButton.less +1 -1
  125. package/src/actionButton/ActionButton.story.tsx +11 -7
  126. package/src/actionButton/ActionButton.test.story.tsx +49 -0
  127. package/src/avatar/Avatar.less +3 -3
  128. package/src/avatarLayout/AvatarLayout.story.tsx +1 -105
  129. package/src/avatarLayout/AvatarLayout.test.story.tsx +117 -0
  130. package/src/avatarView/AvatarView.story.tsx +1 -104
  131. package/src/avatarView/AvatarView.test.story.tsx +114 -0
  132. package/src/badge/Badge.less +1 -1
  133. package/src/button/LegacyButton.less +1 -1
  134. package/src/button/LegacyButton.story.tsx +1 -26
  135. package/src/button/LegacyButton.test.story.tsx +37 -0
  136. package/src/button/_stories/Button.story.tsx +17 -41
  137. package/src/button/_stories/Button.test.story.tsx +30 -0
  138. package/src/card/Card.less +3 -3
  139. package/src/checkbox/Checkbox.story.tsx +1 -6
  140. package/src/checkbox/Checkbox.test.story.tsx +33 -0
  141. package/src/checkboxButton/CheckboxButton.less +2 -2
  142. package/src/chips/Chip.less +3 -3
  143. package/src/circularButton/CircularButton.story.tsx +0 -6
  144. package/src/circularButton/CircularButton.test.story.tsx +62 -1
  145. package/src/common/Option/Option.less +2 -2
  146. package/src/common/bottomSheet/BottomSheet.less +1 -1
  147. package/src/common/bottomSheet/BottomSheet.story.tsx +0 -55
  148. package/src/common/bottomSheet/BottomSheet.test.story.tsx +118 -2
  149. package/src/common/closeButton/CloseButton.less +1 -1
  150. package/src/common/panel/Panel.less +1 -1
  151. package/src/criticalBanner/CriticalCommsBanner.test.story.tsx +1 -1
  152. package/src/dateLookup/DateLookup.less +1 -1
  153. package/src/dateLookup/DateLookup.story.tsx +0 -18
  154. package/src/dateLookup/DateLookup.test.story.tsx +51 -1
  155. package/src/dateLookup/dateTrigger/DateTrigger.less +2 -2
  156. package/src/decision/Decision.less +1 -1
  157. package/src/definitionList/DefinitionList.less +1 -1
  158. package/src/dimmer/Dimmer.less +2 -2
  159. package/src/divider/Divider.story.tsx +0 -1
  160. package/src/expressiveMoneyInput/ExpressiveMoneyInput.autofocus.docs.mdx +1 -1
  161. package/src/expressiveMoneyInput/ExpressiveMoneyInput.story.tsx +0 -9
  162. package/src/expressiveMoneyInput/ExpressiveMoneyInput.test.story.tsx +23 -0
  163. package/src/field/Field.story.tsx +1 -34
  164. package/src/field/Field.test.story.tsx +56 -0
  165. package/src/flowNavigation/FlowNavigation.less +1 -1
  166. package/src/flowNavigation/animatedLabel/AnimatedLabel.less +2 -2
  167. package/src/header/Header.test.story.tsx +1 -1
  168. package/src/info/Info.less +1 -1
  169. package/src/info/Info.story.tsx +1 -34
  170. package/src/info/Info.test.story.tsx +53 -0
  171. package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.tsx +0 -12
  172. package/src/inputWithDisplayFormat/InputWithDisplayFormat.test.story.tsx +33 -0
  173. package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.less +1 -1
  174. package/src/inputs/SelectInput/Options/SelectInputOptions.less +1 -1
  175. package/src/inputs/SelectInput/SelectInput.less +1 -1
  176. package/src/inputs/_common.less +1 -1
  177. package/src/legacylistItem/LegacyListItem.test.story.tsx +1 -1
  178. package/src/link/Link.less +2 -2
  179. package/src/listItem/ListItem.less +1 -1
  180. package/src/listItem/_stories/Breakpoints/ListItem.noMedia.test.story.tsx +1 -1
  181. package/src/listItem/_stories/Breakpoints/ListItem.sideMedia.test.story.tsx +1 -1
  182. package/src/listItem/_stories/Breakpoints/ListItem.stackedMedia.test.story.tsx +1 -1
  183. package/src/listItem/_stories/ListItem.focus.test.story.tsx +1 -1
  184. package/src/listItem/_stories/ListItem.layout.test.story.tsx +1 -1
  185. package/src/listItem/_stories/variants/ListItem.brightGreen.test.story.tsx +1 -1
  186. package/src/listItem/_stories/variants/ListItem.dark.test.story.tsx +1 -1
  187. package/src/listItem/_stories/variants/ListItem.forestGreen.test.story.tsx +1 -1
  188. package/src/listItem/_stories/variants/ListItem.medium.test.story.tsx +1 -1
  189. package/src/listItem/_stories/variants/ListItem.neutral.test.story.tsx +1 -1
  190. package/src/listItem/_stories/variants/ListItem.personal.test.story.tsx +1 -1
  191. package/src/listItem/_stories/variants/ListItem.rtl.test.story.tsx +1 -1
  192. package/src/listItem/_stories/variants/ListItem.small.test.story.tsx +1 -1
  193. package/src/logo/Logo.story.tsx +0 -6
  194. package/src/logo/Logo.test.story.tsx +20 -0
  195. package/src/main.css +27004 -7
  196. package/src/main.less +2 -0
  197. package/src/modal/Modal.story.tsx +0 -26
  198. package/src/modal/Modal.test.story.tsx +125 -0
  199. package/src/moneyInput/MoneyInput.less +2 -2
  200. package/src/moneyInput/MoneyInput.test.story.tsx +1 -1
  201. package/src/navigationOption/NavigationOption.less +3 -3
  202. package/src/navigationOptionsList/NavigationOptionsList.less +1 -1
  203. package/src/overlayHeader/OverlayHeader.less +1 -1
  204. package/src/phoneNumberInput/PhoneNumberInput.less +1 -1
  205. package/src/popover/Popover.less +1 -1
  206. package/src/prompt/ActionPrompt/ActionPrompt.story.tsx +0 -43
  207. package/src/prompt/ActionPrompt/ActionPrompt.test.story.tsx +45 -1
  208. package/src/radioGroup/RadioGroup.test.story.tsx +1 -1
  209. package/src/select/Select.less +5 -5
  210. package/src/slidingPanel/SlidingPanel.less +2 -2
  211. package/src/snackbar/Snackbar.less +3 -3
  212. package/src/stepper/Stepper.less +3 -3
  213. package/src/stepper/Stepper.test.story.tsx +1 -1
  214. package/src/styles/fonts/TW-Averta-Bold.woff +0 -0
  215. package/src/styles/fonts/TW-Averta-Bold.woff2 +0 -0
  216. package/src/styles/fonts/TW-Averta-Regular.woff +0 -0
  217. package/src/styles/fonts/TW-Averta-Regular.woff2 +0 -0
  218. package/src/styles/fonts/TW-Averta-Semibold.woff +0 -0
  219. package/src/styles/fonts/TW-Averta-Semibold.woff2 +0 -0
  220. package/src/styles/fonts/TransferWise-IconFont.svg +81 -0
  221. package/src/styles/fonts/TransferWise-IconFont.woff +0 -0
  222. package/src/styles/fonts/WiseSans-Heavy.woff2 +0 -0
  223. package/src/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  224. package/src/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  225. package/src/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  226. package/src/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  227. package/src/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  228. package/src/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  229. package/src/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  230. package/src/styles/img/bg-dark.svg +31 -0
  231. package/src/styles/img/bg-light.svg +26 -0
  232. package/src/styles/less/accordion.css +255 -0
  233. package/src/styles/less/accordion.less +15 -0
  234. package/src/styles/less/addons/_background-utilities.less +82 -0
  235. package/src/styles/less/addons/_border.less +3 -0
  236. package/src/styles/less/addons/_display-utilities.less +159 -0
  237. package/src/styles/less/addons/_spacing-utilities.less +73 -0
  238. package/src/styles/less/addons/_utilities.less +147 -0
  239. package/src/styles/less/alerts.css +751 -0
  240. package/src/styles/less/alerts.less +252 -0
  241. package/src/styles/less/background.css +20 -0
  242. package/src/styles/less/background.less +24 -0
  243. package/src/styles/less/badge.css +90 -0
  244. package/src/styles/less/badge.less +85 -0
  245. package/src/styles/less/border-radius.css +3 -0
  246. package/src/styles/less/border-radius.less +3 -0
  247. package/src/styles/less/breadcrumbs.css +20 -0
  248. package/src/styles/less/breadcrumbs.less +27 -0
  249. package/src/styles/less/button-groups.css +495 -0
  250. package/src/styles/less/button-groups.less +424 -0
  251. package/src/styles/less/buttons.css +1390 -0
  252. package/src/styles/less/buttons.less +738 -0
  253. package/src/styles/less/chevron.css +35 -0
  254. package/src/styles/less/chevron.less +39 -0
  255. package/src/styles/less/circles.css +248 -0
  256. package/src/styles/less/circles.less +233 -0
  257. package/src/styles/less/close.css +47 -0
  258. package/src/styles/less/close.less +48 -0
  259. package/src/styles/less/column-layout.css +164 -0
  260. package/src/styles/less/column-layout.less +167 -0
  261. package/src/styles/less/components/_component-animations.less +43 -0
  262. package/src/styles/less/core/_fonts.less +97 -0
  263. package/src/styles/less/core/_scaffolding.less +380 -0
  264. package/src/styles/less/core/_typography-utilities.less +255 -0
  265. package/src/styles/less/core/_typography.less +575 -0
  266. package/src/styles/less/core/viewport-themes.css +59 -0
  267. package/src/styles/less/core/viewport-themes.less +65 -0
  268. package/src/styles/less/currency-flags.css +46 -0
  269. package/src/styles/less/currency-flags.less +42 -0
  270. package/src/styles/less/decision.css +136 -0
  271. package/src/styles/less/decision.less +98 -0
  272. package/src/styles/less/dropdowns.css +472 -0
  273. package/src/styles/less/dropdowns.less +365 -0
  274. package/src/styles/less/droppable.css +221 -0
  275. package/src/styles/less/droppable.less +213 -0
  276. package/src/styles/less/flex.css +598 -0
  277. package/src/styles/less/flex.less +113 -0
  278. package/src/styles/less/footer.css +129 -0
  279. package/src/styles/less/footer.less +113 -0
  280. package/src/styles/less/forms/bootstrap-forms.css +2277 -0
  281. package/src/styles/less/forms/bootstrap-forms.less +1218 -0
  282. package/src/styles/less/forms/checkbox-radio.css +367 -0
  283. package/src/styles/less/forms/checkbox-radio.less +330 -0
  284. package/src/styles/less/grid.css +2369 -0
  285. package/src/styles/less/grid.less +187 -0
  286. package/src/styles/less/input-groups.css +2740 -0
  287. package/src/styles/less/input-groups.less +298 -0
  288. package/src/styles/less/link-callout.css +20 -0
  289. package/src/styles/less/link-callout.less +17 -0
  290. package/src/styles/less/list-group.css +350 -0
  291. package/src/styles/less/list-group.less +260 -0
  292. package/src/styles/less/loaders.css +76 -0
  293. package/src/styles/less/loaders.less +91 -0
  294. package/src/styles/less/media.css +74 -0
  295. package/src/styles/less/media.less +68 -0
  296. package/src/styles/less/mixins/_alerts.less +39 -0
  297. package/src/styles/less/mixins/_arrows.less +52 -0
  298. package/src/styles/less/mixins/_border-radius.less +11 -0
  299. package/src/styles/less/mixins/_buttons.less +82 -0
  300. package/src/styles/less/mixins/_center-block.less +7 -0
  301. package/src/styles/less/mixins/_clearfix.less +23 -0
  302. package/src/styles/less/mixins/_flex.less +105 -0
  303. package/src/styles/less/mixins/_forms.less +130 -0
  304. package/src/styles/less/mixins/_grid-framework.less +104 -0
  305. package/src/styles/less/mixins/_grid.less +158 -0
  306. package/src/styles/less/mixins/_hide-text.less +20 -0
  307. package/src/styles/less/mixins/_links.less +7 -0
  308. package/src/styles/less/mixins/_list-group.less +23 -0
  309. package/src/styles/less/mixins/_logical-properties-IE-friendly.less +381 -0
  310. package/src/styles/less/mixins/_logical-properties-modern-browsers.less +226 -0
  311. package/src/styles/less/mixins/_logical-properties.less +5 -0
  312. package/src/styles/less/mixins/_nav-divider.less +10 -0
  313. package/src/styles/less/mixins/_nav-vertical-align.less +10 -0
  314. package/src/styles/less/mixins/_panels.less +23 -0
  315. package/src/styles/less/mixins/_physical-properties.less +110 -0
  316. package/src/styles/less/mixins/_reset-text.less +22 -0
  317. package/src/styles/less/mixins/_sequence.less +203 -0
  318. package/src/styles/less/mixins/_spacing.less +122 -0
  319. package/src/styles/less/mixins/_tab-focus.less +5 -0
  320. package/src/styles/less/mixins/_table-row.less +47 -0
  321. package/src/styles/less/mixins/_text-emphasis.less +39 -0
  322. package/src/styles/less/mixins/_text-overflow.less +8 -0
  323. package/src/styles/less/mixins/_theming.less +7 -0
  324. package/src/styles/less/modals.css +185 -0
  325. package/src/styles/less/modals.less +239 -0
  326. package/src/styles/less/navbar.css +2406 -0
  327. package/src/styles/less/navbar.less +1442 -0
  328. package/src/styles/less/navs.css +296 -0
  329. package/src/styles/less/navs.less +339 -0
  330. package/src/styles/less/neptune-social-media.css +144 -0
  331. package/src/styles/less/neptune-social-media.less +84 -0
  332. package/src/styles/less/neptune.bundle.less +63 -0
  333. package/src/styles/less/neptune.css +25724 -0
  334. package/src/styles/less/panels.css +528 -0
  335. package/src/styles/less/panels.less +410 -0
  336. package/src/styles/less/popovers.css +661 -0
  337. package/src/styles/less/popovers.less +379 -0
  338. package/src/styles/less/process.css +483 -0
  339. package/src/styles/less/process.less +426 -0
  340. package/src/styles/less/progress-bars.css +64 -0
  341. package/src/styles/less/progress-bars.less +55 -0
  342. package/src/styles/less/ring.css +55 -0
  343. package/src/styles/less/ring.less +51 -0
  344. package/src/styles/less/select.css +99 -0
  345. package/src/styles/less/select.less +88 -0
  346. package/src/styles/less/sequences.css +855 -0
  347. package/src/styles/less/sequences.less +511 -0
  348. package/src/styles/less/table.css +446 -0
  349. package/src/styles/less/table.less +385 -0
  350. package/src/styles/less/tick.css +32 -0
  351. package/src/styles/less/tick.less +37 -0
  352. package/src/styles/less/tooltip.css +160 -0
  353. package/src/styles/less/tooltip.less +130 -0
  354. package/src/styles/less/utilities.css +145 -0
  355. package/src/styles/less/utilities.less +153 -0
  356. package/src/styles/less/wells.css +74 -0
  357. package/src/styles/less/wells.less +37 -0
  358. package/src/styles/props/custom-media.css +11 -0
  359. package/src/styles/props/legacy-custom-props.css +69 -0
  360. package/src/styles/props/neptune-tokens.css +11 -0
  361. package/src/styles/variables/legacy-variables.css +0 -0
  362. package/src/styles/variables/legacy-variables.less +1299 -0
  363. package/src/styles/variables/neptune-tokens.css +0 -0
  364. package/src/styles/variables/neptune-tokens.less +12 -0
  365. package/src/styles/variables/zindex.css +0 -0
  366. package/src/styles/variables/zindex.less +17 -0
  367. package/src/summary/Summary.less +1 -1
  368. package/src/summary/Summary.test.story.tsx +1 -1
  369. package/src/switch/Switch.less +4 -4
  370. package/src/table/Table.less +1 -1
  371. package/src/tabs/Tabs.less +4 -4
  372. package/src/tile/Tile.less +1 -1
  373. package/src/tooltip/Tooltip.less +1 -1
  374. package/src/tooltip/Tooltip.story.tsx +0 -21
  375. package/src/tooltip/Tooltip.test.story.tsx +42 -0
  376. package/src/typeahead/Typeahead.less +2 -2
  377. package/src/typeahead/Typeahead.story.tsx +0 -52
  378. package/src/typeahead/Typeahead.test.story.tsx +73 -0
  379. package/src/typeahead/typeaheadOption/TypeaheadOption.less +1 -1
  380. package/src/upload/Upload.less +1 -1
  381. package/src/uploadInput/UploadInput.less +2 -2
  382. package/src/uploadInput/uploadItem/UploadItem.less +1 -1
@@ -0,0 +1,385 @@
1
+ // variables
2
+ @import (reference) "../variables/neptune-tokens.less";
3
+ @import (reference) "../variables/legacy-variables.less";
4
+
5
+ // mixins
6
+ @import "./mixins/_table-row.less";
7
+ @import (reference) "./mixins/_logical-properties.less";
8
+
9
+ //
10
+ // Tables
11
+ // --------------------------------------------------
12
+
13
+ table {
14
+ background-color: var(--color-background-screen);
15
+ border-collapse: separate;
16
+
17
+ td,
18
+ th {
19
+ &[class*="col-"] {
20
+ // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
21
+ position: static;
22
+ float: none;
23
+ display: table-cell;
24
+ }
25
+ }
26
+ }
27
+
28
+ caption {
29
+ padding-top: @table-cell-padding;
30
+ padding-bottom: @table-cell-padding;
31
+ color: var(--color-content-secondary);
32
+ .text-align(left);
33
+ }
34
+
35
+ th {
36
+ .text-align(left);
37
+ }
38
+
39
+ // Baseline styles
40
+
41
+ .table {
42
+ width: 100%;
43
+ max-width: 100%;
44
+ margin-bottom: var(--size-24);
45
+
46
+ // Cells
47
+ > thead,
48
+ > tbody,
49
+ > tfoot {
50
+ > tr > th,
51
+ > tr > td {
52
+ padding: var(--size-24) var(--size-16);
53
+ line-height: var(--line-height-body);
54
+ vertical-align: top;
55
+ border-top: 1px solid var(--color-border-neutral);
56
+ border-bottom: 0;
57
+ transition: border ease @panel-focus-transtion;
58
+ }
59
+ }
60
+
61
+ > .thead > ol > li,
62
+ > .tbody > dl > dd,
63
+ > .tfoot > ol > li {
64
+ padding: var(--size-24) var(--size-16);
65
+ line-height: var(--line-height-body);
66
+ vertical-align: top;
67
+ border-top: 1px solid var(--color-border-neutral);
68
+ border-bottom: 0;
69
+ transition: border ease @panel-focus-transtion;
70
+ }
71
+
72
+ // Bottom align for column headings
73
+ > thead > tr > th,
74
+ > .thead > ol > li {
75
+ vertical-align: bottom;
76
+
77
+ a {
78
+ text-decoration: none;
79
+ }
80
+
81
+ .tw-icon {
82
+ margin-top: -3px;
83
+ }
84
+ }
85
+ // Remove top border from thead by default
86
+ > caption + thead,
87
+ > colgroup + thead,
88
+ > thead:first-child {
89
+ > tr:first-child {
90
+ > th,
91
+ > td {
92
+ border-top: 0;
93
+ }
94
+ }
95
+ }
96
+
97
+ > .thead:first-child {
98
+ > ol:first-child {
99
+ > li {
100
+ border-top: 0;
101
+ }
102
+ }
103
+ }
104
+ // Account for multiple tbody instances
105
+ > tbody + tbody {
106
+ border-top: 1px solid var(--color-border-neutral);
107
+ }
108
+
109
+ // Nesting
110
+ .table {
111
+ background-color: var(--color-background-screen);
112
+ }
113
+
114
+ > thead,
115
+ > tfoot,
116
+ > .thead,
117
+ > .tfoot {
118
+ font-size: var(--font-size-14);
119
+ color: var(--color-content-primary);
120
+ }
121
+
122
+ > tbody,
123
+ > .tbody {
124
+ font-size: var(--font-size-14);
125
+ }
126
+
127
+ > tbody > tr > th,
128
+ > .tbody > dl > .th {
129
+ color: var(--color-content-primary);
130
+ }
131
+ }
132
+
133
+ // Condensed table w/ half padding
134
+
135
+ .table-condensed {
136
+ > thead,
137
+ > tbody,
138
+ > tfoot {
139
+ > tr {
140
+ > th,
141
+ > td {
142
+ padding: var(--size-8);
143
+ }
144
+ }
145
+ }
146
+
147
+ > .thead > ol > li,
148
+ > .tbody > dl > dd {
149
+ padding: var(--size-8);
150
+ }
151
+ }
152
+
153
+ // Bordered version
154
+ //
155
+ // Add borders all around the table and between all the columns.
156
+
157
+ .table-bordered {
158
+ border: 1px solid var(--color-border-neutral);
159
+ border-radius: @border-radius-base;
160
+
161
+ thead,
162
+ .thead {
163
+ background-color: var(--color-background-neutral);
164
+ }
165
+ }
166
+
167
+ @media (max-width: @screen-sm-max) {
168
+ div.table-bordered:not(.table-responsive) {
169
+ border: 0;
170
+ }
171
+ }
172
+
173
+ // Zebra-striping
174
+ //
175
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
176
+
177
+ .table-striped {
178
+ > tbody > tr:nth-of-type(odd) {
179
+ background-color: var(--color-background-neutral);
180
+ }
181
+
182
+ @media (min-width: @screen-md-min) {
183
+ > .tbody > dl:nth-of-type(odd) {
184
+ background-color: var(--color-background-neutral);
185
+ }
186
+ }
187
+ }
188
+
189
+ // Table cell sizing
190
+ //
191
+ // Reset default table behavior
192
+
193
+ table col[class*="col-"] {
194
+ // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
195
+ position: static;
196
+ float: none;
197
+ display: table-column;
198
+ }
199
+
200
+ // Table backgrounds
201
+ //
202
+ // Exact selectors below required to override `.table-striped` and prevent
203
+ // inheritance to nested tables.
204
+
205
+ // Generate the contextual variants
206
+ .table-row-variant(
207
+ primary; @color-navy-background-elevated; var(--color-border-neutral); var(--color-background-elevated)
208
+ );
209
+ .table-row-variant(active; var(--color-background-screen); var(--color-border-neutral));
210
+ .table-row-variant(success; var(--color-background-positive); var(--color-interactive-positive));
211
+ .table-row-variant(info; var(--color-background-accent); var(--color-interactive-accent));
212
+ .table-row-variant(warning; var(--color-background-warning); var(--color-interactive-warning));
213
+ .table-row-variant(danger; var(--color-background-negative); var(--color-interactive-negative));
214
+ .table-row-variant(default; var(--color-background-secondary); var(--color-interactive-secondary));
215
+
216
+ // Responsive tables
217
+ //
218
+ // Wrap your tables in `.table-responsive` and we'll make them mobile friendly
219
+ // by enabling horizontal scrolling. Only applies <768px. Everything above that
220
+ // will display normally.
221
+
222
+ .table-responsive {
223
+ overflow-x: auto;
224
+ min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)
225
+
226
+ &.table-bordered {
227
+ border: 0;
228
+ }
229
+
230
+ @media screen and (max-width: @screen-sm-max) {
231
+ width: 100%;
232
+ margin-bottom: var(--size-24);
233
+ overflow-y: hidden;
234
+ -ms-overflow-style: -ms-autohiding-scrollbar;
235
+
236
+ // Tighten up spacing
237
+ > .table {
238
+ margin-bottom: 0;
239
+
240
+ // Ensure the content doesn't wrap
241
+ > thead,
242
+ > tbody,
243
+ > tfoot {
244
+ > tr {
245
+ > th,
246
+ > td {
247
+ white-space: nowrap;
248
+ }
249
+ }
250
+ }
251
+ }
252
+
253
+ // Special overrides for the bordered tables
254
+ > .table-bordered {
255
+ border: 0;
256
+
257
+ // Only nuke the last row's bottom-border in `tbody` and `tfoot` since
258
+ // chances are there will be only one `tr` in a `thead` and that would
259
+ // remove the border altogether.
260
+ > tbody,
261
+ > tfoot {
262
+ > tr:last-child {
263
+ > th,
264
+ > td {
265
+ border-bottom: 0;
266
+ }
267
+ }
268
+ }
269
+ }
270
+
271
+ &.table-bordered {
272
+ border: 1px solid var(--color-background-neutral);
273
+ border-radius: @border-radius-base;
274
+ }
275
+ }
276
+ }
277
+
278
+ // Definition list tables
279
+ //
280
+ // Act as definition list on mobile and as a table on desktop
281
+ @media (min-width: @screen-md-min) {
282
+ .table {
283
+ display: table;
284
+
285
+ > .thead {
286
+ display: table-header-group;
287
+
288
+ > ol {
289
+ display: table-row;
290
+
291
+ > li {
292
+ display: table-cell;
293
+ font-weight: var(--font-weight-bold);
294
+ color: var(--color-content-primary);
295
+ }
296
+ }
297
+ }
298
+
299
+ > .tbody {
300
+ display: table-row-group;
301
+
302
+ > dl {
303
+ display: table-row;
304
+
305
+ > dt {
306
+ display: none;
307
+ }
308
+
309
+ > dd {
310
+ display: table-cell;
311
+ font-size: var(--font-size-14);
312
+ color: var(--color-content-secondary);
313
+ }
314
+ }
315
+ }
316
+
317
+ > .tfoot {
318
+ display: table-footer-group;
319
+ }
320
+ }
321
+ }
322
+
323
+ @media (max-width: @screen-sm-max) {
324
+ .table {
325
+ > .thead {
326
+ display: none;
327
+ }
328
+
329
+ > .tbody {
330
+ > dl {
331
+ border: 1px var(--color-interactive-secondary) solid;
332
+ border-radius: @border-radius-base;
333
+ margin-bottom: var(--size-24);
334
+ padding: var(--size-24) var(--line-height-body) 0;
335
+
336
+ > dd {
337
+ padding: 0;
338
+ border: 0;
339
+
340
+ &:empty {
341
+ margin: 0;
342
+ }
343
+ }
344
+ }
345
+ }
346
+ }
347
+ }
348
+
349
+ @media (max-width: @screen-xs-max) {
350
+ .table > .tbody > dl {
351
+ padding-bottom: 8px;
352
+ }
353
+ }
354
+
355
+ /* Deprecated - Table CSS for components moved inside @transferwise/components */
356
+ .table-calendar {
357
+ min-width: 300px;
358
+
359
+ > tbody > tr > td {
360
+ padding: 0;
361
+
362
+ > a {
363
+ display: block;
364
+ padding: 4px 0;
365
+ margin: 4px 2px;
366
+ border-radius: @border-radius-base;
367
+ text-align: center;
368
+ text-decoration: none;
369
+
370
+ &.active {
371
+ background-color: @color-navy-background-elevated;
372
+ color: @color-navy-content-primary;
373
+ }
374
+
375
+ &:not([disabled]):hover {
376
+ background-color: var(--color-content-accent);
377
+ color: #fff;
378
+ }
379
+ }
380
+ }
381
+
382
+ > thead > tr > th {
383
+ text-align: center;
384
+ }
385
+ }
@@ -0,0 +1,32 @@
1
+ .tw-checkbox-check {
2
+ position: relative;
3
+ display: inline-block;
4
+ width: 10px;
5
+ height: 8px;
6
+ }
7
+ .tw-checkbox-check::before,
8
+ .tw-checkbox-check::after {
9
+ content: "";
10
+ position: absolute;
11
+ background: #ffffff;
12
+ background: var(--color-background-screen);
13
+ transform: translateX(0.5px) rotate(-45deg);
14
+ transform-origin: left bottom;
15
+ left: 8px;
16
+ left: var(--size-8);
17
+ }
18
+ .tw-checkbox-check .has-error::before,
19
+ .tw-checkbox-check .has-error::after {
20
+ background-color: #e74848;
21
+ background-color: var(--color-interactive-negative);
22
+ }
23
+ .tw-checkbox-check::before {
24
+ top: 9px;
25
+ height: 6px;
26
+ width: 2px;
27
+ }
28
+ .tw-checkbox-check::after {
29
+ bottom: 5px;
30
+ height: 2px;
31
+ width: 11px;
32
+ }
@@ -0,0 +1,37 @@
1
+ @import (reference) "./mixins/_logical-properties.less";
2
+
3
+ .tw-checkbox-check {
4
+ position: relative;
5
+ display: inline-block;
6
+ width: 10px;
7
+ height: 8px;
8
+
9
+ &::before,
10
+ &::after {
11
+ content: "";
12
+ position: absolute;
13
+ background: var(--color-background-screen);
14
+ transform: translateX(0.5px) rotate(-45deg);
15
+ transform-origin: left bottom;
16
+ left: var(--size-8);
17
+ }
18
+
19
+ .has-error {
20
+ &::before,
21
+ &::after {
22
+ background-color: var(--color-interactive-negative);
23
+ }
24
+ }
25
+
26
+ &::before {
27
+ top: 9px;
28
+ height: 6px;
29
+ width: 2px;
30
+ }
31
+
32
+ &::after {
33
+ bottom: 5px;
34
+ height: 2px;
35
+ width: 11px;
36
+ }
37
+ }
@@ -0,0 +1,160 @@
1
+ .tooltip {
2
+ position: absolute;
3
+ z-index: 1070;
4
+ display: block;
5
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
6
+ font-family: var(--font-family-regular);
7
+ font-style: normal;
8
+ font-weight: normal;
9
+ letter-spacing: normal;
10
+ line-break: auto;
11
+ line-height: 24px;
12
+ line-height: var(--size-24);
13
+ text-align: left;
14
+ -webkit-text-decoration: none;
15
+ text-decoration: none;
16
+ text-shadow: none;
17
+ text-transform: none;
18
+ white-space: normal;
19
+ word-break: normal;
20
+ word-spacing: normal;
21
+ word-wrap: normal;
22
+ opacity: 0;
23
+ }
24
+ [dir="rtl"] .tooltip {
25
+ text-align: right;
26
+ }
27
+ .tooltip.in {
28
+ opacity: 1;
29
+ }
30
+ .tooltip.top {
31
+ margin-top: -3px;
32
+ padding: 5px 0;
33
+ }
34
+ .tooltip.right {
35
+ margin-left: 3px;
36
+ padding: 0 5px;
37
+ }
38
+ [dir="rtl"] .tooltip.right {
39
+ margin-right: 3px;
40
+ margin-left: 0;
41
+ margin-left: initial;
42
+ }
43
+ .tooltip.bottom {
44
+ margin-top: 3px;
45
+ padding: 5px 0;
46
+ }
47
+ .tooltip.left {
48
+ margin-left: -3px;
49
+ padding: 0 5px;
50
+ }
51
+ [dir="rtl"] .tooltip.left {
52
+ margin-right: -3px;
53
+ margin-left: 0;
54
+ margin-left: initial;
55
+ }
56
+ .tooltip-inner {
57
+ font-size: 0.875rem;
58
+ font-size: var(--font-size-14);
59
+ line-height: 155%;
60
+ letter-spacing: -0.006em;
61
+ font-weight: 400;
62
+ font-weight: var(--font-weight-regular);
63
+ max-width: 200px;
64
+ min-width: 120px;
65
+ padding: 16px 16px;
66
+ padding: var(--size-16) var(--size-16);
67
+ color: #37517e;
68
+ color: var(--color-content-primary);
69
+ text-align: center;
70
+ background-color: #ffffff;
71
+ background-color: var(--color-background-screen);
72
+ border-radius: 3px;
73
+ box-shadow: 0 1px 28px 0 rgba(34, 48, 73, 0.2);
74
+ }
75
+ .np-theme-personal--forest-green .tooltip-inner,
76
+ .np-theme-personal--bright-green .tooltip-inner,
77
+ .np-theme-personal--dark .tooltip-inner {
78
+ box-shadow: none;
79
+ }
80
+ .tooltip-arrow {
81
+ position: absolute;
82
+ width: 0;
83
+ height: 0;
84
+ border-color: transparent;
85
+ border-style: solid;
86
+ }
87
+ .tooltip.top .tooltip-arrow {
88
+ bottom: 0;
89
+ left: 50%;
90
+ margin-left: -5px;
91
+ border-width: 5px 5px 0;
92
+ border-top-color: #ffffff;
93
+ border-top-color: var(--color-background-screen);
94
+ }
95
+ [dir="rtl"] .tooltip.top .tooltip-arrow {
96
+ right: 50%;
97
+ left: auto;
98
+ left: initial;
99
+ }
100
+ [dir="rtl"] .tooltip.top .tooltip-arrow {
101
+ margin-right: -5px;
102
+ margin-left: 0;
103
+ margin-left: initial;
104
+ }
105
+ .tooltip.right .tooltip-arrow {
106
+ top: 50%;
107
+ left: 0;
108
+ margin-top: -5px;
109
+ border-width: 5px 5px 5px 0;
110
+ border-right-color: #ffffff;
111
+ border-right-color: var(--color-background-screen);
112
+ }
113
+ [dir="rtl"] .tooltip.right .tooltip-arrow {
114
+ right: 0;
115
+ left: auto;
116
+ left: initial;
117
+ }
118
+ .tooltip.left .tooltip-arrow {
119
+ top: 50%;
120
+ right: 0;
121
+ margin-top: -5px;
122
+ border-width: 5px 0 5px 5px;
123
+ border-left-color: #ffffff;
124
+ border-left-color: var(--color-background-screen);
125
+ }
126
+ [dir="rtl"] .tooltip.left .tooltip-arrow {
127
+ left: 0;
128
+ right: auto;
129
+ right: initial;
130
+ }
131
+ .tooltip.bottom .tooltip-arrow {
132
+ top: 0;
133
+ left: 50%;
134
+ margin-left: -5px;
135
+ border-width: 0 5px 5px;
136
+ border-bottom-color: #ffffff;
137
+ border-bottom-color: var(--color-background-screen);
138
+ }
139
+ [dir="rtl"] .tooltip.bottom .tooltip-arrow {
140
+ right: 50%;
141
+ left: auto;
142
+ left: initial;
143
+ }
144
+ [dir="rtl"] .tooltip.bottom .tooltip-arrow {
145
+ margin-right: -5px;
146
+ margin-left: 0;
147
+ margin-left: initial;
148
+ }
149
+ [data-toggle="tooltip"]:not(.btn) {
150
+ cursor: pointer;
151
+ }
152
+ [data-toggle="tooltip"]:not(.btn):hover,
153
+ [data-toggle="tooltip"]:not(.btn):focus {
154
+ color: #0084b3 !important;
155
+ color: var(--color-content-accent-hover) !important;
156
+ outline: 0;
157
+ }
158
+ a[data-toggle="tooltip"] {
159
+ white-space: nowrap;
160
+ }