@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,365 @@
1
+ @import (reference) "../variables/neptune-tokens.less";
2
+ @import (reference) "../variables/legacy-variables.less";
3
+ @import (reference) "../less/core/_typography.less";
4
+ @import (reference) "./mixins/_border-radius.less";
5
+ @import (reference) "./mixins/_logical-properties.less";
6
+ @import (reference) "./mixins/_theming.less";
7
+ @import (reference) "./mixins/_nav-divider.less";
8
+
9
+ //
10
+ // Dropdown menus
11
+ // @deprecated use ResponsivePanel / Panel components
12
+ // --------------------------------------------------
13
+
14
+ // The dropdown wrapper (div)
15
+ .dropup,
16
+ .dropdown {
17
+ position: relative;
18
+ }
19
+
20
+ // The dropdown menu (ul)
21
+ .dropdown-menu {
22
+ position: absolute;
23
+ top: 0; //100%;
24
+ .left(0);
25
+
26
+ z-index: @zindex-dropdown;
27
+ .float(left);
28
+
29
+ .padding-shorthand(@padding-base-vertical);
30
+
31
+ margin: 0; // override default ul
32
+ list-style: none;
33
+ .np-text-body-default;
34
+ .text-align(left); // Ensures proper alignment if parent has it changed (e.g., modal footer)
35
+
36
+ background-color: var(--color-background-screen);
37
+ border: 0 solid var(--color-border-neutral);
38
+ border-radius: @border-radius-base;
39
+ box-shadow: 0 20px 66px 0 rgba(34, 48, 73, 0.2);
40
+ background-clip: padding-box;
41
+
42
+ // Bit of a hack for our calculators to make the two controls the same width.
43
+ min-width: 104px;
44
+
45
+ .np-theme-personal &,
46
+ .np-theme-personal--forest-green &,
47
+ .np-theme-personal--dark & {
48
+ background-color: var(--color-background-elevated);
49
+ border-radius: var(--radius-medium);
50
+ box-shadow: 0 0 40px rgb(69 71 69 / 20%);
51
+ }
52
+
53
+ @media (min-width: @screen-sm-min) {
54
+ min-width: 160px;
55
+ }
56
+
57
+ .remove-dark-themes-box-shadows();
58
+
59
+ // Dividers (basically an hr) within the dropdown
60
+ .divider {
61
+ .nav-divider(var(--color-border-neutral));
62
+ }
63
+
64
+ //Force color to text-primary because the dropdowns are white regardless the context
65
+ .text-primary {
66
+ color: var(--color-content-primary) !important;
67
+ }
68
+
69
+ .dropdown-menu-closed();
70
+
71
+ // Links within the dropdown menu
72
+ > li > a {
73
+ display: block;
74
+ padding: var(--dropdown-link-padding);
75
+ clear: both;
76
+ border-radius: @border-radius-base;
77
+ .np-text-body-default;
78
+
79
+ color: var(--color-content-primary);
80
+ white-space: nowrap; // prevent links from randomly breaking onto new lines
81
+
82
+ .secondary {
83
+ display: block;
84
+ white-space: normal;
85
+ }
86
+
87
+ .np-theme-personal &,
88
+ .np-theme-personal--forest-green &,
89
+ .np-theme-personal--dark & {
90
+ border-radius: var(--radius-small);
91
+ }
92
+ }
93
+
94
+ .np-theme-light & {
95
+ > li:first-child > a {
96
+ .border-top-radius((@border-radius-base - 1px));
97
+ }
98
+
99
+ > li:last-child > a {
100
+ .border-bottom-radius((@border-radius-base - 1px));
101
+ }
102
+ }
103
+
104
+ > .overlay-back-button,
105
+ > .overlay-title {
106
+ display: none;
107
+ }
108
+ }
109
+
110
+ .dropdown-menu-open() {
111
+ transition:
112
+ opacity 0.2s cubic-bezier(0.6, 0.2, 0.1, 1),
113
+ transform 0.2s cubic-bezier(0.6, 0.2, 0.1, 1),
114
+ visibility 0s linear 0s;
115
+ visibility: visible;
116
+ opacity: 1;
117
+ transform: none;
118
+ }
119
+
120
+ .dropdown-menu-closed() {
121
+ // the visibility transition here allows us to wait
122
+ // for the opacity/transform animation to finish before we make it hidden.
123
+ transition:
124
+ opacity 0.2s cubic-bezier(0.6, 0.2, 0.1, 1),
125
+ transform 0.2s cubic-bezier(0.6, 0.2, 0.1, 1),
126
+ visibility 0s linear 0.2s;
127
+ opacity: 0;
128
+ transform: translateY(-10px) scale(0.95, 0.95);
129
+ visibility: hidden;
130
+ }
131
+
132
+ .dropdown-menu,
133
+ .btn-group .dropdown-menu {
134
+ max-width: ~"calc(100vw - 32px)";
135
+
136
+ &.dropdown-menu-sm {
137
+ width: 220px;
138
+ }
139
+
140
+ &.dropdown-menu-md {
141
+ width: 300px;
142
+ }
143
+
144
+ &.dropdown-menu-lg {
145
+ width: 420px;
146
+ }
147
+ }
148
+
149
+ // Hover/Focus/Active state
150
+ .dropdown-menu > li:not(.active):not(.selected) > a:not([disabled]):not(.disabled) {
151
+ &:hover,
152
+ &:focus,
153
+ &:active {
154
+ text-decoration: none;
155
+ color: var(--color-content-primary);
156
+ outline: 0;
157
+ box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
158
+ }
159
+ }
160
+
161
+ // Active state
162
+ .dropdown-menu > .active > a,
163
+ .dropdown-menu > .selected > a {
164
+ &,
165
+ &:hover,
166
+ &:focus {
167
+ color: @color-navy-content-primary;
168
+ text-decoration: none;
169
+ outline: 0;
170
+ background-color: @color-navy-background-elevated;
171
+ }
172
+
173
+ strong {
174
+ color: inherit;
175
+ }
176
+
177
+ .np-text-body-default,
178
+ .small,
179
+ .secondary {
180
+ color: @color-navy-content-secondary;
181
+ }
182
+ }
183
+
184
+ // Disabled state
185
+ //
186
+ // Gray out text and ensure the hover/focus state remains gray
187
+
188
+ .dropdown-menu > .disabled > a {
189
+ // Nuke hover/focus effects
190
+ &:hover,
191
+ &:focus {
192
+ text-decoration: none;
193
+ background-color: transparent;
194
+ background-image: none; // Remove CSS gradient
195
+ }
196
+ }
197
+
198
+ // Open state for the dropdown
199
+ .open {
200
+ > .dropdown-menu {
201
+ .dropdown-menu-open();
202
+ }
203
+
204
+ @media (--screen-xs-max) {
205
+ > .dropdown-menu-overlay {
206
+ position: fixed;
207
+ top: 0;
208
+ .left(0);
209
+
210
+ width: 100vw;
211
+ height: 100vh;
212
+ height: 100dvh;
213
+ border: 0;
214
+ border-radius: 0;
215
+ box-shadow: none;
216
+ max-width: none;
217
+ overflow-y: auto;
218
+ animation: listSlideOver 0.15s ease-out forwards;
219
+
220
+ > .overlay-back-button,
221
+ > .overlay-title {
222
+ display: block;
223
+ }
224
+ }
225
+ }
226
+
227
+ // Remove the outline when :focus is triggered
228
+ > a {
229
+ outline: 0;
230
+ }
231
+ }
232
+
233
+ // Menu positioning
234
+ //
235
+ // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
236
+ // menu with the parent.
237
+ .dropdown-menu-right,
238
+ .dropdown-menu-xs-right {
239
+ .left(auto);
240
+
241
+ .right(0);
242
+ }
243
+
244
+ .dropdown-menu-left,
245
+ .dropdown-menu-xs-left {
246
+ .left(0);
247
+
248
+ .right(auto);
249
+ }
250
+
251
+ @media (min-width: @screen-sm-min) {
252
+ .dropdown-menu-sm-right {
253
+ .left(auto);
254
+
255
+ .right(0);
256
+ }
257
+
258
+ .dropdown-menu-sm-left {
259
+ .left(0);
260
+
261
+ .right(auto);
262
+ }
263
+ }
264
+
265
+ @media (min-width: @screen-md-min) {
266
+ .dropdown-menu-md-right {
267
+ .left(auto);
268
+
269
+ .right(0);
270
+ }
271
+
272
+ .dropdown-menu-md-left {
273
+ .left(0);
274
+
275
+ .right(auto);
276
+ }
277
+ }
278
+
279
+ @media (min-width: @screen-lg-min) {
280
+ .dropdown-menu-lg-right {
281
+ .left(auto);
282
+
283
+ .right(0);
284
+ }
285
+
286
+ .dropdown-menu-lg-left {
287
+ .left(0);
288
+
289
+ .right(auto);
290
+ }
291
+ }
292
+
293
+ @media (min-width: @screen-xl-min) {
294
+ .dropdown-menu-xl-right {
295
+ .left(auto); // Reset the default from `.dropdown-menu`
296
+
297
+ .right(0);
298
+ }
299
+
300
+ .dropdown-menu-xl-left {
301
+ .left(0);
302
+
303
+ .right(auto);
304
+ }
305
+ }
306
+
307
+ // Dropdown section headers
308
+ .dropdown-header {
309
+ display: block;
310
+ padding: 8px 16px;
311
+ font-size: var(--font-size-14);
312
+ line-height: var(--line-height-body);
313
+ color: var(--color-content-secondary);
314
+ white-space: nowrap; // as with > li > a
315
+
316
+ .np-text-title-group();
317
+ }
318
+
319
+ // Backdrop to catch body clicks on mobile, etc.
320
+ .dropdown-backdrop {
321
+ position: fixed;
322
+ .left(0);
323
+
324
+ .right(0);
325
+
326
+ bottom: 0;
327
+ top: 0;
328
+ z-index: (@zindex-dropdown - 10);
329
+ }
330
+
331
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
332
+ //
333
+ // Just add .dropup after the standard .dropdown class and you're set, bro.
334
+ // TODO: abstract this so that the navbar fixed styles are not placed here?
335
+
336
+ .dropup,
337
+ .navbar-fixed-bottom .dropdown {
338
+ // Different positioning for bottom up menu
339
+ .dropdown-menu {
340
+ top: auto;
341
+ bottom: -2px; // 100%;
342
+ margin-bottom: 2px;
343
+ }
344
+ }
345
+
346
+ // Component alignment
347
+ //
348
+ // Reiterate per navbar.less and the modified component alignment there.
349
+
350
+ @media (min-width: @grid-float-breakpoint) {
351
+ .navbar-right {
352
+ .dropdown-menu {
353
+ .dropdown-menu-right();
354
+ }
355
+ // Necessary for overrides of the default right aligned menu.
356
+ // Will remove come v4 in all likelihood.
357
+ .dropdown-menu-left {
358
+ .dropdown-menu-left();
359
+ }
360
+ }
361
+ }
362
+
363
+ .bootstrap-select .dropdown-menu {
364
+ margin: -8px 0 -6px;
365
+ }
@@ -0,0 +1,221 @@
1
+ .droppable {
2
+ position: relative;
3
+ font-weight: 400;
4
+ font-weight: var(--font-weight-regular);
5
+ font-size: 1rem;
6
+ font-size: var(--font-size-16);
7
+ line-height: 150%;
8
+ letter-spacing: -0.011em;
9
+ text-align: center;
10
+ border: 1px solid #c9cbce;
11
+ border: 1px solid var(--color-interactive-secondary);
12
+ border-radius: 3px;
13
+ overflow: auto;
14
+ transition: border-color 0.15s linear;
15
+ }
16
+ .droppable:hover {
17
+ border-color: #b5b7ba;
18
+ border-color: var(--color-interactive-secondary-hover);
19
+ }
20
+ .droppable:active {
21
+ border-color: #a7a9ab;
22
+ border-color: var(--color-interactive-secondary-active);
23
+ }
24
+ .np-theme-personal .droppable {
25
+ border-radius: 0;
26
+ border-radius: initial;
27
+ }
28
+ @media (min-width: 768px) {
29
+ .droppable {
30
+ border-style: dashed;
31
+ }
32
+ }
33
+ .np-theme-personal .droppable-area {
34
+ border-radius: 16px;
35
+ border-radius: var(--radius-medium);
36
+ background-color: rgba(134,167,189,0.10196);
37
+ background-color: var(--color-background-neutral);
38
+ padding: 24px;
39
+ padding: var(--padding-medium);
40
+ }
41
+ .np-theme-personal .droppable-area,
42
+ .np-theme-personal .droppable-area.droppable-dropping .droppable-dropping-card {
43
+ border-color: transparent !important;
44
+ }
45
+ .np-theme-personal .droppable-area.tw-droppable-md {
46
+ min-height: 242px;
47
+ }
48
+ .np-theme-personal .droppable-area.droppable-dropping .droppable-default-card {
49
+ opacity: 0;
50
+ }
51
+ .np-theme-personal .droppable-area.droppable-dropping .tw-icon-plus svg {
52
+ width: 24px;
53
+ width: var(--size-24);
54
+ height: 24px;
55
+ height: var(--size-24);
56
+ }
57
+ .np-theme-personal .droppable-area.droppable-dropping h4 {
58
+ margin-top: 16px !important;
59
+ margin-top: var(--padding-small) !important;
60
+ }
61
+ .np-theme-personal .droppable-area.droppable-negative {
62
+ border: 2px solid var(--color-sentiment-negative) !important;
63
+ background-color: #ffffff;
64
+ background-color: var(--color-background-screen);
65
+ min-height: 315px;
66
+ }
67
+ .np-theme-personal .droppable-area.droppable-complete .thumbnail {
68
+ margin-bottom: 8px !important;
69
+ margin-bottom: var(--padding-x-small) !important;
70
+ }
71
+ .np-theme-personal .droppable-area .droppable-default-card .m-b-3 {
72
+ margin-bottom: 16px !important;
73
+ margin-bottom: var(--padding-small) !important;
74
+ }
75
+ .np-theme-personal .droppable-area .droppable-dropping-card {
76
+ background-color: var(--color-background-neutral-hover);
77
+ }
78
+ .np-theme-personal .droppable-area .droppable-card-content .circle {
79
+ padding-top: 0 !important;
80
+ }
81
+ .np-theme-personal .droppable-area .circle {
82
+ background-color: var(--color-contrast);
83
+ color: #37517e !important;
84
+ color: var(--color-content-primary) !important;
85
+ }
86
+ .droppable-card {
87
+ background-color: #ffffff;
88
+ background-color: var(--color-background-screen);
89
+ position: absolute;
90
+ top: 0;
91
+ left: 0;
92
+ display: none;
93
+ width: 100%;
94
+ height: 100%;
95
+ align-items: center;
96
+ justify-content: center;
97
+ padding: inherit;
98
+ transition: transform 0.3s ease;
99
+ }
100
+ [dir="rtl"] .droppable-card {
101
+ right: 0;
102
+ left: auto;
103
+ left: initial;
104
+ }
105
+ .droppable-card-content {
106
+ max-width: 100%;
107
+ opacity: 1;
108
+ }
109
+ .droppable-dropping {
110
+ border-color: #a7a9ab !important;
111
+ border-color: var(--color-interactive-secondary-active) !important;
112
+ }
113
+ .np-theme-personal .droppable-dropping {
114
+ border-color: var(--color-background-neutral-hover) !important;
115
+ border-style: solid;
116
+ }
117
+ .droppable-processing,
118
+ .droppable-complete {
119
+ border-style: solid;
120
+ }
121
+ .droppable .thumbnail {
122
+ width: auto;
123
+ max-height: 96px;
124
+ max-width: 96px;
125
+ margin: 0 auto;
126
+ }
127
+ @media (min-width: 768px) {
128
+ .droppable .thumbnail {
129
+ max-height: 128px;
130
+ max-width: 128px;
131
+ }
132
+ }
133
+ /***** Card variants *****/
134
+ .droppable-dropping-card {
135
+ display: none;
136
+ animation: droppable-fade-in 0.15s 0s linear forwards;
137
+ color: #0097c7;
138
+ color: var(--color-content-accent);
139
+ background-color: #d8f1fa;
140
+ border-color: #00a2dd;
141
+ border-color: var(--color-interactive-accent);
142
+ z-index: 1;
143
+ }
144
+ .np-theme-personal .droppable-dropping-card {
145
+ background-color: #E1E4DF;
146
+ color: #37517e;
147
+ color: var(--color-content-primary);
148
+ }
149
+ .np-theme-personal--dark .droppable-dropping-card {
150
+ background-color: #404440;
151
+ }
152
+ .np-theme-personal--forest-green .droppable-dropping-card {
153
+ background-color: #455C35;
154
+ }
155
+ .droppable-dropping .droppable-dropping-card {
156
+ display: flex;
157
+ }
158
+ .droppable-processing .droppable-processing-card {
159
+ display: flex;
160
+ align-items: baseline;
161
+ }
162
+ .droppable-complete .droppable-processing-card {
163
+ display: flex;
164
+ }
165
+ .droppable-complete-card {
166
+ display: flex;
167
+ }
168
+ /***** End card variants *****/
169
+ .droppable-active {
170
+ border-style: solid;
171
+ }
172
+ .droppable-active.droppable-dropping {
173
+ border-style: dashed;
174
+ }
175
+ .droppable-sm {
176
+ padding: 16px 16px;
177
+ }
178
+ @media (min-width: 576px) {
179
+ .droppable-sm {
180
+ padding: 24px 16px;
181
+ }
182
+ }
183
+ @media (min-width: 992px) {
184
+ .droppable-sm {
185
+ padding: 32px 24px;
186
+ }
187
+ }
188
+ .droppable-md {
189
+ padding: 32px 32px;
190
+ }
191
+ @media (min-width: 576px) {
192
+ .droppable-md {
193
+ padding: 48px 32px;
194
+ }
195
+ }
196
+ @media (min-width: 992px) {
197
+ .droppable-md {
198
+ padding: 64px 48px;
199
+ }
200
+ }
201
+ .droppable-lg {
202
+ padding: 48px 48px;
203
+ }
204
+ @media (min-width: 576px) {
205
+ .droppable-lg {
206
+ padding: 72px 48px;
207
+ }
208
+ }
209
+ @media (min-width: 992px) {
210
+ .droppable-lg {
211
+ padding: 96px 72px;
212
+ }
213
+ }
214
+ @keyframes droppable-fade-in {
215
+ from {
216
+ opacity: 0;
217
+ }
218
+ to {
219
+ opacity: 1;
220
+ }
221
+ }