@transferwise/components 46.130.3 → 46.131.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 (389) hide show
  1. package/build/flowNavigation/FlowNavigation.js +4 -2
  2. package/build/flowNavigation/FlowNavigation.js.map +1 -1
  3. package/build/flowNavigation/FlowNavigation.mjs +4 -2
  4. package/build/flowNavigation/FlowNavigation.mjs.map +1 -1
  5. package/build/main.css +27004 -7
  6. package/build/styles/css/accordion.css +255 -0
  7. package/build/styles/css/alerts.css +751 -0
  8. package/build/styles/css/background.css +20 -0
  9. package/build/styles/css/badge.css +90 -0
  10. package/build/styles/css/border-radius.css +3 -0
  11. package/build/styles/css/breadcrumbs.css +20 -0
  12. package/build/styles/css/button-groups.css +495 -0
  13. package/build/styles/css/buttons.css +1390 -0
  14. package/build/styles/css/chevron.css +35 -0
  15. package/build/styles/css/circles.css +248 -0
  16. package/build/styles/css/close.css +47 -0
  17. package/build/styles/css/column-layout.css +164 -0
  18. package/build/styles/css/currency-flags.css +46 -0
  19. package/build/styles/css/decision.css +136 -0
  20. package/build/styles/css/dropdowns.css +472 -0
  21. package/build/styles/css/droppable.css +221 -0
  22. package/build/styles/css/flex.css +598 -0
  23. package/build/styles/css/footer.css +129 -0
  24. package/build/styles/css/grid.css +2369 -0
  25. package/build/styles/css/input-groups.css +2740 -0
  26. package/build/styles/css/link-callout.css +20 -0
  27. package/build/styles/css/list-group.css +350 -0
  28. package/build/styles/css/loaders.css +76 -0
  29. package/build/styles/css/media.css +74 -0
  30. package/build/styles/css/modals.css +185 -0
  31. package/build/styles/css/navbar.css +2406 -0
  32. package/build/styles/css/navs.css +296 -0
  33. package/build/styles/css/neptune-social-media.css +144 -0
  34. package/build/styles/css/neptune.css +25724 -0
  35. package/build/styles/css/panels.css +528 -0
  36. package/build/styles/css/popovers.css +661 -0
  37. package/build/styles/css/process.css +483 -0
  38. package/build/styles/css/progress-bars.css +64 -0
  39. package/build/styles/css/ring.css +55 -0
  40. package/build/styles/css/select.css +99 -0
  41. package/build/styles/css/sequences.css +855 -0
  42. package/build/styles/css/table.css +446 -0
  43. package/build/styles/css/tick.css +32 -0
  44. package/build/styles/css/tooltip.css +160 -0
  45. package/build/styles/css/utilities.css +145 -0
  46. package/build/styles/css/wells.css +74 -0
  47. package/build/styles/fonts/TW-Averta-Bold.woff +0 -0
  48. package/build/styles/fonts/TW-Averta-Bold.woff2 +0 -0
  49. package/build/styles/fonts/TW-Averta-Regular.woff +0 -0
  50. package/build/styles/fonts/TW-Averta-Regular.woff2 +0 -0
  51. package/build/styles/fonts/TW-Averta-Semibold.woff +0 -0
  52. package/build/styles/fonts/TW-Averta-Semibold.woff2 +0 -0
  53. package/build/styles/fonts/TransferWise-IconFont.svg +81 -0
  54. package/build/styles/fonts/TransferWise-IconFont.woff +0 -0
  55. package/build/styles/fonts/WiseSans-Heavy.woff2 +0 -0
  56. package/build/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  57. package/build/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  58. package/build/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  59. package/build/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  60. package/build/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  61. package/build/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  62. package/build/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  63. package/build/styles/img/bg-dark.svg +31 -0
  64. package/build/styles/img/bg-light.svg +26 -0
  65. package/build/styles/less/legacy-variables.css +0 -0
  66. package/build/styles/less/legacy-variables.less +1299 -0
  67. package/build/styles/less/neptune-tokens.css +0 -0
  68. package/build/styles/less/neptune-tokens.less +275 -0
  69. package/build/styles/less/zindex.css +0 -0
  70. package/build/styles/less/zindex.less +17 -0
  71. package/build/styles/main.css +27004 -7
  72. package/build/styles/props/custom-media.css +11 -0
  73. package/build/styles/props/legacy-custom-props.css +69 -0
  74. package/build/styles/props/neptune-tokens.css +152 -0
  75. package/build/styles/styles/less/accordion.css +255 -0
  76. package/build/styles/styles/less/alerts.css +751 -0
  77. package/build/styles/styles/less/background.css +20 -0
  78. package/build/styles/styles/less/badge.css +90 -0
  79. package/build/styles/styles/less/border-radius.css +3 -0
  80. package/build/styles/styles/less/breadcrumbs.css +20 -0
  81. package/build/styles/styles/less/button-groups.css +495 -0
  82. package/build/styles/styles/less/buttons.css +1390 -0
  83. package/build/styles/styles/less/chevron.css +35 -0
  84. package/build/styles/styles/less/circles.css +248 -0
  85. package/build/styles/styles/less/close.css +47 -0
  86. package/build/styles/styles/less/column-layout.css +164 -0
  87. package/build/styles/styles/less/core/viewport-themes.css +59 -0
  88. package/build/styles/styles/less/currency-flags.css +46 -0
  89. package/build/styles/styles/less/decision.css +136 -0
  90. package/build/styles/styles/less/dropdowns.css +472 -0
  91. package/build/styles/styles/less/droppable.css +221 -0
  92. package/build/styles/styles/less/flex.css +598 -0
  93. package/build/styles/styles/less/footer.css +129 -0
  94. package/build/styles/styles/less/forms/bootstrap-forms.css +2277 -0
  95. package/build/styles/styles/less/forms/checkbox-radio.css +367 -0
  96. package/build/styles/styles/less/grid.css +2369 -0
  97. package/build/styles/styles/less/input-groups.css +2740 -0
  98. package/build/styles/styles/less/link-callout.css +20 -0
  99. package/build/styles/styles/less/list-group.css +350 -0
  100. package/build/styles/styles/less/loaders.css +76 -0
  101. package/build/styles/styles/less/media.css +74 -0
  102. package/build/styles/styles/less/modals.css +185 -0
  103. package/build/styles/styles/less/navbar.css +2406 -0
  104. package/build/styles/styles/less/navs.css +296 -0
  105. package/build/styles/styles/less/neptune-social-media.css +144 -0
  106. package/build/styles/styles/less/neptune.css +25724 -0
  107. package/build/styles/styles/less/panels.css +528 -0
  108. package/build/styles/styles/less/popovers.css +661 -0
  109. package/build/styles/styles/less/process.css +483 -0
  110. package/build/styles/styles/less/progress-bars.css +64 -0
  111. package/build/styles/styles/less/ring.css +55 -0
  112. package/build/styles/styles/less/select.css +99 -0
  113. package/build/styles/styles/less/sequences.css +855 -0
  114. package/build/styles/styles/less/table.css +446 -0
  115. package/build/styles/styles/less/tick.css +32 -0
  116. package/build/styles/styles/less/tooltip.css +160 -0
  117. package/build/styles/styles/less/utilities.css +145 -0
  118. package/build/styles/styles/less/wells.css +74 -0
  119. package/build/styles/styles/props/custom-media.css +11 -0
  120. package/build/styles/styles/props/legacy-custom-props.css +69 -0
  121. package/build/styles/styles/props/neptune-tokens.css +11 -0
  122. package/build/styles/styles/variables/legacy-variables.css +0 -0
  123. package/build/styles/styles/variables/neptune-tokens.css +0 -0
  124. package/build/styles/styles/variables/zindex.css +0 -0
  125. package/build/types/flowNavigation/FlowNavigation.d.ts.map +1 -1
  126. package/package.json +8 -4
  127. package/src/{DisabledComponents.story.tsx → DisabledComponents.test.story.tsx} +1 -1
  128. package/src/accordion/Accordion.less +3 -3
  129. package/src/actionButton/ActionButton.less +1 -1
  130. package/src/actionButton/ActionButton.story.tsx +11 -7
  131. package/src/actionButton/ActionButton.test.story.tsx +49 -0
  132. package/src/avatar/Avatar.less +3 -3
  133. package/src/avatarLayout/AvatarLayout.story.tsx +1 -105
  134. package/src/avatarLayout/AvatarLayout.test.story.tsx +117 -0
  135. package/src/avatarView/AvatarView.story.tsx +1 -104
  136. package/src/avatarView/AvatarView.test.story.tsx +114 -0
  137. package/src/badge/Badge.less +1 -1
  138. package/src/button/LegacyButton.less +1 -1
  139. package/src/button/LegacyButton.story.tsx +1 -26
  140. package/src/button/LegacyButton.test.story.tsx +37 -0
  141. package/src/button/_stories/Button.story.tsx +17 -41
  142. package/src/button/_stories/Button.test.story.tsx +30 -0
  143. package/src/card/Card.less +3 -3
  144. package/src/checkbox/Checkbox.story.tsx +1 -6
  145. package/src/checkbox/Checkbox.test.story.tsx +33 -0
  146. package/src/checkboxButton/CheckboxButton.less +2 -2
  147. package/src/chips/Chip.less +3 -3
  148. package/src/circularButton/CircularButton.story.tsx +0 -6
  149. package/src/circularButton/CircularButton.test.story.tsx +62 -1
  150. package/src/common/Option/Option.less +2 -2
  151. package/src/common/bottomSheet/BottomSheet.less +1 -1
  152. package/src/common/bottomSheet/BottomSheet.story.tsx +0 -55
  153. package/src/common/bottomSheet/BottomSheet.test.story.tsx +118 -2
  154. package/src/common/closeButton/CloseButton.less +1 -1
  155. package/src/common/panel/Panel.less +1 -1
  156. package/src/criticalBanner/CriticalCommsBanner.test.story.tsx +1 -1
  157. package/src/dateLookup/DateLookup.less +1 -1
  158. package/src/dateLookup/DateLookup.story.tsx +0 -18
  159. package/src/dateLookup/DateLookup.test.story.tsx +51 -1
  160. package/src/dateLookup/dateTrigger/DateTrigger.less +2 -2
  161. package/src/decision/Decision.less +1 -1
  162. package/src/definitionList/DefinitionList.less +1 -1
  163. package/src/dimmer/Dimmer.less +2 -2
  164. package/src/divider/Divider.story.tsx +0 -1
  165. package/src/expressiveMoneyInput/ExpressiveMoneyInput.autofocus.docs.mdx +1 -1
  166. package/src/expressiveMoneyInput/ExpressiveMoneyInput.story.tsx +0 -9
  167. package/src/expressiveMoneyInput/ExpressiveMoneyInput.test.story.tsx +23 -0
  168. package/src/field/Field.story.tsx +1 -34
  169. package/src/field/Field.test.story.tsx +56 -0
  170. package/src/flowNavigation/FlowNavigation.less +1 -1
  171. package/src/flowNavigation/FlowNavigation.test.js +7 -0
  172. package/src/flowNavigation/FlowNavigation.tsx +5 -2
  173. package/src/flowNavigation/animatedLabel/AnimatedLabel.less +2 -2
  174. package/src/header/Header.test.story.tsx +1 -1
  175. package/src/info/Info.less +1 -1
  176. package/src/info/Info.story.tsx +1 -34
  177. package/src/info/Info.test.story.tsx +53 -0
  178. package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.tsx +0 -12
  179. package/src/inputWithDisplayFormat/InputWithDisplayFormat.test.story.tsx +33 -0
  180. package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.less +1 -1
  181. package/src/inputs/SelectInput/Options/SelectInputOptions.less +1 -1
  182. package/src/inputs/SelectInput/SelectInput.less +1 -1
  183. package/src/inputs/_common.less +1 -1
  184. package/src/legacylistItem/LegacyListItem.test.story.tsx +1 -1
  185. package/src/link/Link.less +2 -2
  186. package/src/listItem/ListItem.less +1 -1
  187. package/src/listItem/_stories/Breakpoints/ListItem.noMedia.test.story.tsx +1 -1
  188. package/src/listItem/_stories/Breakpoints/ListItem.sideMedia.test.story.tsx +1 -1
  189. package/src/listItem/_stories/Breakpoints/ListItem.stackedMedia.test.story.tsx +1 -1
  190. package/src/listItem/_stories/ListItem.focus.test.story.tsx +1 -1
  191. package/src/listItem/_stories/ListItem.layout.test.story.tsx +1 -1
  192. package/src/listItem/_stories/variants/ListItem.brightGreen.test.story.tsx +1 -1
  193. package/src/listItem/_stories/variants/ListItem.dark.test.story.tsx +1 -1
  194. package/src/listItem/_stories/variants/ListItem.forestGreen.test.story.tsx +1 -1
  195. package/src/listItem/_stories/variants/ListItem.medium.test.story.tsx +1 -1
  196. package/src/listItem/_stories/variants/ListItem.neutral.test.story.tsx +1 -1
  197. package/src/listItem/_stories/variants/ListItem.personal.test.story.tsx +1 -1
  198. package/src/listItem/_stories/variants/ListItem.rtl.test.story.tsx +1 -1
  199. package/src/listItem/_stories/variants/ListItem.small.test.story.tsx +1 -1
  200. package/src/logo/Logo.story.tsx +0 -6
  201. package/src/logo/Logo.test.story.tsx +20 -0
  202. package/src/main.css +27004 -7
  203. package/src/main.less +2 -0
  204. package/src/modal/Modal.story.tsx +0 -26
  205. package/src/modal/Modal.test.story.tsx +125 -0
  206. package/src/moneyInput/MoneyInput.less +2 -2
  207. package/src/moneyInput/MoneyInput.test.story.tsx +1 -1
  208. package/src/navigationOption/NavigationOption.less +3 -3
  209. package/src/navigationOptionsList/NavigationOptionsList.less +1 -1
  210. package/src/overlayHeader/OverlayHeader.less +1 -1
  211. package/src/phoneNumberInput/PhoneNumberInput.less +1 -1
  212. package/src/popover/Popover.less +1 -1
  213. package/src/prompt/ActionPrompt/ActionPrompt.story.tsx +0 -43
  214. package/src/prompt/ActionPrompt/ActionPrompt.test.story.tsx +45 -1
  215. package/src/radioGroup/RadioGroup.test.story.tsx +1 -1
  216. package/src/select/Select.less +5 -5
  217. package/src/slidingPanel/SlidingPanel.less +2 -2
  218. package/src/snackbar/Snackbar.less +3 -3
  219. package/src/stepper/Stepper.less +3 -3
  220. package/src/stepper/Stepper.test.story.tsx +1 -1
  221. package/src/styles/fonts/TW-Averta-Bold.woff +0 -0
  222. package/src/styles/fonts/TW-Averta-Bold.woff2 +0 -0
  223. package/src/styles/fonts/TW-Averta-Regular.woff +0 -0
  224. package/src/styles/fonts/TW-Averta-Regular.woff2 +0 -0
  225. package/src/styles/fonts/TW-Averta-Semibold.woff +0 -0
  226. package/src/styles/fonts/TW-Averta-Semibold.woff2 +0 -0
  227. package/src/styles/fonts/TransferWise-IconFont.svg +81 -0
  228. package/src/styles/fonts/TransferWise-IconFont.woff +0 -0
  229. package/src/styles/fonts/WiseSans-Heavy.woff2 +0 -0
  230. package/src/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  231. package/src/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  232. package/src/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  233. package/src/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  234. package/src/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  235. package/src/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  236. package/src/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  237. package/src/styles/img/bg-dark.svg +31 -0
  238. package/src/styles/img/bg-light.svg +26 -0
  239. package/src/styles/less/accordion.css +255 -0
  240. package/src/styles/less/accordion.less +15 -0
  241. package/src/styles/less/addons/_background-utilities.less +82 -0
  242. package/src/styles/less/addons/_border.less +3 -0
  243. package/src/styles/less/addons/_display-utilities.less +159 -0
  244. package/src/styles/less/addons/_spacing-utilities.less +73 -0
  245. package/src/styles/less/addons/_utilities.less +147 -0
  246. package/src/styles/less/alerts.css +751 -0
  247. package/src/styles/less/alerts.less +252 -0
  248. package/src/styles/less/background.css +20 -0
  249. package/src/styles/less/background.less +24 -0
  250. package/src/styles/less/badge.css +90 -0
  251. package/src/styles/less/badge.less +85 -0
  252. package/src/styles/less/border-radius.css +3 -0
  253. package/src/styles/less/border-radius.less +3 -0
  254. package/src/styles/less/breadcrumbs.css +20 -0
  255. package/src/styles/less/breadcrumbs.less +27 -0
  256. package/src/styles/less/button-groups.css +495 -0
  257. package/src/styles/less/button-groups.less +424 -0
  258. package/src/styles/less/buttons.css +1390 -0
  259. package/src/styles/less/buttons.less +738 -0
  260. package/src/styles/less/chevron.css +35 -0
  261. package/src/styles/less/chevron.less +39 -0
  262. package/src/styles/less/circles.css +248 -0
  263. package/src/styles/less/circles.less +233 -0
  264. package/src/styles/less/close.css +47 -0
  265. package/src/styles/less/close.less +48 -0
  266. package/src/styles/less/column-layout.css +164 -0
  267. package/src/styles/less/column-layout.less +167 -0
  268. package/src/styles/less/components/_component-animations.less +43 -0
  269. package/src/styles/less/core/_fonts.less +97 -0
  270. package/src/styles/less/core/_scaffolding.less +380 -0
  271. package/src/styles/less/core/_typography-utilities.less +255 -0
  272. package/src/styles/less/core/_typography.less +575 -0
  273. package/src/styles/less/core/viewport-themes.css +59 -0
  274. package/src/styles/less/core/viewport-themes.less +65 -0
  275. package/src/styles/less/currency-flags.css +46 -0
  276. package/src/styles/less/currency-flags.less +42 -0
  277. package/src/styles/less/decision.css +136 -0
  278. package/src/styles/less/decision.less +98 -0
  279. package/src/styles/less/dropdowns.css +472 -0
  280. package/src/styles/less/dropdowns.less +365 -0
  281. package/src/styles/less/droppable.css +221 -0
  282. package/src/styles/less/droppable.less +213 -0
  283. package/src/styles/less/flex.css +598 -0
  284. package/src/styles/less/flex.less +113 -0
  285. package/src/styles/less/footer.css +129 -0
  286. package/src/styles/less/footer.less +113 -0
  287. package/src/styles/less/forms/bootstrap-forms.css +2277 -0
  288. package/src/styles/less/forms/bootstrap-forms.less +1218 -0
  289. package/src/styles/less/forms/checkbox-radio.css +367 -0
  290. package/src/styles/less/forms/checkbox-radio.less +330 -0
  291. package/src/styles/less/grid.css +2369 -0
  292. package/src/styles/less/grid.less +187 -0
  293. package/src/styles/less/input-groups.css +2740 -0
  294. package/src/styles/less/input-groups.less +298 -0
  295. package/src/styles/less/link-callout.css +20 -0
  296. package/src/styles/less/link-callout.less +17 -0
  297. package/src/styles/less/list-group.css +350 -0
  298. package/src/styles/less/list-group.less +260 -0
  299. package/src/styles/less/loaders.css +76 -0
  300. package/src/styles/less/loaders.less +91 -0
  301. package/src/styles/less/media.css +74 -0
  302. package/src/styles/less/media.less +68 -0
  303. package/src/styles/less/mixins/_alerts.less +39 -0
  304. package/src/styles/less/mixins/_arrows.less +52 -0
  305. package/src/styles/less/mixins/_border-radius.less +11 -0
  306. package/src/styles/less/mixins/_buttons.less +82 -0
  307. package/src/styles/less/mixins/_center-block.less +7 -0
  308. package/src/styles/less/mixins/_clearfix.less +23 -0
  309. package/src/styles/less/mixins/_flex.less +105 -0
  310. package/src/styles/less/mixins/_forms.less +130 -0
  311. package/src/styles/less/mixins/_grid-framework.less +104 -0
  312. package/src/styles/less/mixins/_grid.less +158 -0
  313. package/src/styles/less/mixins/_hide-text.less +20 -0
  314. package/src/styles/less/mixins/_links.less +7 -0
  315. package/src/styles/less/mixins/_list-group.less +23 -0
  316. package/src/styles/less/mixins/_logical-properties-IE-friendly.less +381 -0
  317. package/src/styles/less/mixins/_logical-properties-modern-browsers.less +226 -0
  318. package/src/styles/less/mixins/_logical-properties.less +5 -0
  319. package/src/styles/less/mixins/_nav-divider.less +10 -0
  320. package/src/styles/less/mixins/_nav-vertical-align.less +10 -0
  321. package/src/styles/less/mixins/_panels.less +23 -0
  322. package/src/styles/less/mixins/_physical-properties.less +110 -0
  323. package/src/styles/less/mixins/_reset-text.less +22 -0
  324. package/src/styles/less/mixins/_sequence.less +203 -0
  325. package/src/styles/less/mixins/_spacing.less +122 -0
  326. package/src/styles/less/mixins/_tab-focus.less +5 -0
  327. package/src/styles/less/mixins/_table-row.less +47 -0
  328. package/src/styles/less/mixins/_text-emphasis.less +39 -0
  329. package/src/styles/less/mixins/_text-overflow.less +8 -0
  330. package/src/styles/less/mixins/_theming.less +7 -0
  331. package/src/styles/less/modals.css +185 -0
  332. package/src/styles/less/modals.less +239 -0
  333. package/src/styles/less/navbar.css +2406 -0
  334. package/src/styles/less/navbar.less +1442 -0
  335. package/src/styles/less/navs.css +296 -0
  336. package/src/styles/less/navs.less +339 -0
  337. package/src/styles/less/neptune-social-media.css +144 -0
  338. package/src/styles/less/neptune-social-media.less +84 -0
  339. package/src/styles/less/neptune.bundle.less +63 -0
  340. package/src/styles/less/neptune.css +25724 -0
  341. package/src/styles/less/panels.css +528 -0
  342. package/src/styles/less/panels.less +410 -0
  343. package/src/styles/less/popovers.css +661 -0
  344. package/src/styles/less/popovers.less +379 -0
  345. package/src/styles/less/process.css +483 -0
  346. package/src/styles/less/process.less +426 -0
  347. package/src/styles/less/progress-bars.css +64 -0
  348. package/src/styles/less/progress-bars.less +55 -0
  349. package/src/styles/less/ring.css +55 -0
  350. package/src/styles/less/ring.less +51 -0
  351. package/src/styles/less/select.css +99 -0
  352. package/src/styles/less/select.less +88 -0
  353. package/src/styles/less/sequences.css +855 -0
  354. package/src/styles/less/sequences.less +511 -0
  355. package/src/styles/less/table.css +446 -0
  356. package/src/styles/less/table.less +385 -0
  357. package/src/styles/less/tick.css +32 -0
  358. package/src/styles/less/tick.less +37 -0
  359. package/src/styles/less/tooltip.css +160 -0
  360. package/src/styles/less/tooltip.less +130 -0
  361. package/src/styles/less/utilities.css +145 -0
  362. package/src/styles/less/utilities.less +153 -0
  363. package/src/styles/less/wells.css +74 -0
  364. package/src/styles/less/wells.less +37 -0
  365. package/src/styles/props/custom-media.css +11 -0
  366. package/src/styles/props/legacy-custom-props.css +69 -0
  367. package/src/styles/props/neptune-tokens.css +11 -0
  368. package/src/styles/variables/legacy-variables.css +0 -0
  369. package/src/styles/variables/legacy-variables.less +1299 -0
  370. package/src/styles/variables/neptune-tokens.css +0 -0
  371. package/src/styles/variables/neptune-tokens.less +12 -0
  372. package/src/styles/variables/zindex.css +0 -0
  373. package/src/styles/variables/zindex.less +17 -0
  374. package/src/summary/Summary.less +1 -1
  375. package/src/summary/Summary.test.story.tsx +1 -1
  376. package/src/switch/Switch.less +4 -4
  377. package/src/table/Table.less +1 -1
  378. package/src/tabs/Tabs.less +4 -4
  379. package/src/tile/Tile.less +1 -1
  380. package/src/tooltip/Tooltip.less +1 -1
  381. package/src/tooltip/Tooltip.story.tsx +0 -21
  382. package/src/tooltip/Tooltip.test.story.tsx +42 -0
  383. package/src/typeahead/Typeahead.less +2 -2
  384. package/src/typeahead/Typeahead.story.tsx +0 -52
  385. package/src/typeahead/Typeahead.test.story.tsx +73 -0
  386. package/src/typeahead/typeaheadOption/TypeaheadOption.less +1 -1
  387. package/src/upload/Upload.less +1 -1
  388. package/src/uploadInput/UploadInput.less +2 -2
  389. package/src/uploadInput/uploadItem/UploadItem.less +1 -1
@@ -0,0 +1,260 @@
1
+ @import (reference) "../variables/legacy-variables.less";
2
+ @import (reference) "./mixins/_list-group.less";
3
+ @import (reference) "./mixins/_logical-properties.less";
4
+ @import (reference) "./mixins/_theming.less";
5
+ @import (reference) "./core/_typography.less";
6
+
7
+ //
8
+ // List groups
9
+ // --------------------------------------------------
10
+
11
+ // Base class
12
+ //
13
+ // Easily usable on <ul>, <ol>, or <div>.
14
+
15
+ .list-group {
16
+ list-style-type: none;
17
+ margin-bottom: 20px;
18
+ .padding(left, 0); // reset padding because ul and ol
19
+
20
+ border-left: 1px solid var(--color-border-neutral);
21
+ border-right: 1px solid var(--color-border-neutral);
22
+ }
23
+
24
+ // Individual list items
25
+ //
26
+ // Use on `li`s or `div`s within the `.list-group` parent.
27
+
28
+ .list-group-item {
29
+ display: block;
30
+ .padding-shorthand(@spacing-1-mobile, @spacing-1-mobile, @spacing-1-mobile, (@spacing-1-mobile - 2px));
31
+
32
+ // Place the border on the list items and negative margin up for better styling
33
+
34
+ background-color: var(--color-background-screen);
35
+ .border(left, 2px, solid, transparent);
36
+
37
+ margin-top: 1px;
38
+ line-height: var(--line-height-body);
39
+ transition: all ease @panel-focus-transtion;
40
+
41
+ .panel-group & {
42
+ margin-top: 0;
43
+ }
44
+ }
45
+
46
+ @media (--screen-sm) {
47
+ .list-group-item {
48
+ .padding-shorthand(@spacing-1-tablet, @spacing-1-tablet, @spacing-1-tablet, (@spacing-1-tablet - 2px));
49
+ }
50
+ }
51
+
52
+ @media (--screen-lg) {
53
+ .list-group-item {
54
+ .padding-shorthand(@spacing-1-desktop, @spacing-1-desktop, @spacing-1-desktop, (@spacing-1-desktop - 2px));
55
+ }
56
+ }
57
+
58
+ // Custom content options
59
+ //
60
+ // Extra classes for creating well-formatted content within `.list-group-item`s.
61
+
62
+ .list-group-item-heading {
63
+ margin-bottom: 0;
64
+ .np-text-title-group;
65
+
66
+ color: var(--color-content-primary);
67
+ }
68
+
69
+ .list-group-item-text {
70
+ margin-bottom: 0;
71
+ color: var(--color-content-secondary);
72
+ }
73
+
74
+ // Linked list items
75
+ //
76
+ // Use anchor elements instead of `li`s or `div`s to create linked list items.
77
+ // Includes an extra `.active` modifier class for showing selected items.
78
+
79
+ a.list-group-item {
80
+ color: var(--color-content-accent);
81
+ text-decoration: none;
82
+
83
+ .list-group-item-heading {
84
+ color: var(--color-content-accent);
85
+ }
86
+
87
+ // Hover state
88
+ &:not(.disabled, :disabled):hover,
89
+ &:not(.disabled, :disabled):focus {
90
+ text-decoration: none;
91
+ color: var(--color-content-accent-hover);
92
+ background-color: var(--color-background-neutral);
93
+ }
94
+ }
95
+
96
+ // stylelint-disable-next-line no-duplicate-selectors
97
+ .list-group-item {
98
+ // Ideally would use role=button on list group item but invalid markup on li
99
+ &[ng-click] {
100
+ cursor: pointer;
101
+
102
+ &:hover {
103
+ // tell the browser there is a likelihood this will animate when clicked
104
+ will-change: margin, contents;
105
+ }
106
+ }
107
+
108
+ // Active class on item itself, not parent
109
+ &.active {
110
+ z-index: 2; // Place active items above their siblings for proper border styling
111
+ background-color: var(--color-background-elevated);
112
+ box-shadow: 0 1px 10px var(--color-border-neutral);
113
+ margin-top: var(--size-24);
114
+ margin-bottom: var(--size-24);
115
+
116
+ &:first-child {
117
+ margin-top: 1px;
118
+ }
119
+
120
+ &:last-child {
121
+ margin-bottom: 0;
122
+ }
123
+
124
+ .remove-dark-themes-box-shadows();
125
+ }
126
+
127
+ @media (min-width: @screen-md-min) {
128
+ &.active {
129
+ margin-left: -12px;
130
+ margin-right: -12px;
131
+ }
132
+
133
+ .media-body {
134
+ // In combination with applying extra padding to the media-body,
135
+ // this prevents text reflow on panel expansion
136
+ transition: padding ease @panel-focus-transtion;
137
+ }
138
+ }
139
+ }
140
+
141
+ .list-group-inactive {
142
+ .list-group-item {
143
+ background-color: transparent;
144
+ margin-top: 0;
145
+
146
+ &:hover,
147
+ &.active {
148
+ background-color: var(--color-background-screen);
149
+
150
+ @media (--screen-sm) {
151
+ .circle {
152
+ background-color: var(--color-background-neutral);
153
+ }
154
+ }
155
+ }
156
+
157
+ &.active {
158
+ margin-top: var(--size-24);
159
+ }
160
+ }
161
+ }
162
+
163
+ // Contextual variants
164
+ //
165
+ // Add modifier classes to change text and background color on individual items.
166
+ // Organizationally, this must come after the `:hover` states.
167
+
168
+ .list-group-item-variant(success; var(--color-background-positive); var(--color-content-positive));
169
+ .list-group-item-variant(info; var(--color-background-accent); var(--color-content-accent));
170
+ .list-group-item-variant(warning; var(--color-background-warning); var(--color-content-warning));
171
+ .list-group-item-variant(danger; var(--color-background-negative); var(--color-content-negative));
172
+
173
+ // Hover states
174
+ .list-group:hover {
175
+ .list-group-item:not(.active) {
176
+ background-color: #fbfcfd;
177
+
178
+ .media {
179
+ opacity: 0.94;
180
+ }
181
+ }
182
+
183
+ .list-group-item:hover {
184
+ background-color: var(--color-background-screen);
185
+
186
+ .media {
187
+ opacity: 1;
188
+ }
189
+ }
190
+ }
191
+
192
+ .list-group-inactive:hover {
193
+ .list-group-item:not(.active) {
194
+ background-color: var(--color-background-neutral);
195
+ }
196
+
197
+ .list-group-item:hover {
198
+ background-color: var(--color-background-screen);
199
+ }
200
+ }
201
+
202
+ @keyframes listSlideOver {
203
+ 0% { transform: translateX(100vw); }
204
+ 100% { transform: translateX(0); }
205
+ }
206
+
207
+ @media (max-width: @screen-sm-max) {
208
+ .list-group-slide-out {
209
+ .list-group-item {
210
+ .collapse {
211
+ position: fixed;
212
+ top: 0;
213
+ .left(0);
214
+
215
+ width: 100vw;
216
+ height: 100vh;
217
+ height: 100dvh;
218
+ margin: 0;
219
+ overflow-y: auto;
220
+ background-color: #fff;
221
+ animation: listSlideOver 0.15s ease-out forwards;
222
+ z-index: 3;
223
+
224
+ .media-left {
225
+ display: none;
226
+ }
227
+
228
+ .well {
229
+ border-radius: 0;
230
+ margin-bottom: 0;
231
+ }
232
+ }
233
+ }
234
+
235
+ .list-group-item.active,
236
+ .list-group-inactive .list-group-item.active {
237
+ margin-top: 1px;
238
+ margin-bottom: 0;
239
+ box-shadow: none !important;
240
+ }
241
+
242
+ .list-group-item.active .collapse {
243
+ height: 100vh;
244
+ height: 100dvh;
245
+ overflow-y: auto;
246
+
247
+ // Annoying but makes sure the last content is visible in iOS safari
248
+
249
+ padding-bottom: 72px;
250
+ }
251
+
252
+ .list-group-item.active .collapse .well {
253
+
254
+ // Annoying but makes sure the last content is visible in iOS safari
255
+
256
+ padding-bottom: 72px;
257
+ margin-bottom: -72px;
258
+ }
259
+ }
260
+ }
@@ -0,0 +1,76 @@
1
+ .loader {
2
+ position: relative;
3
+ display: inline-block;
4
+ height: 160px;
5
+ width: 160px;
6
+ }
7
+ .loader .loader-flag {
8
+ top: 58px;
9
+ left: 52px;
10
+ position: relative;
11
+ height: 52px;
12
+ width: 52px;
13
+ }
14
+ .loader .loader-flag-stroke {
15
+ animation: loaderStroke 3.5s infinite;
16
+ }
17
+ .loader .loader-flag-fill {
18
+ display: block;
19
+ position: absolute;
20
+ top: 1px;
21
+ opacity: 1;
22
+ animation: loaderFill 3.5s infinite;
23
+ }
24
+ .loader .loader-spinner {
25
+ width: 160px;
26
+ height: 160px;
27
+ position: absolute;
28
+ background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjU0IC01NCAxNjAgMTYwIj48bGluZWFyR3JhZGllbnQgaWQ9ImEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMTA4LjY2MiIgeTE9IjUyLjE3NSIgeDI9IjEwNy42NjIiIHkyPSI1Mi4xNzUiIGdyYWRpZW50VHJhbnNmb3JtPSJtYXRyaXgoMTYwIDAgMCAtODAgLTE3MTcyIDQxNjApIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiMwMDk3YzciLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMDk3YzciIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTIxNCAyNmMwLTQ0LjItMzUuOC04MC04MC04MFM1NC0xOC4yIDU0IDI2aDJjMC00My4xIDM0LjktNzggNzgtNzhzNzggMzQuOSA3OCA3OGgyeiIvPjwvc3ZnPg==");
29
+ animation: rotating 1.4s linear infinite;
30
+ }
31
+ .loader .loader-flag-fill,
32
+ .loader .loader-flag-outline {
33
+ width: 52px;
34
+ height: 52px;
35
+ }
36
+ /* Animations */
37
+ @keyframes loaderStroke {
38
+ 30% {
39
+ stroke-dashoffset: 300;
40
+ opacity: 0;
41
+ }
42
+ 40% {
43
+ stroke-dashoffset: 300;
44
+ opacity: 1;
45
+ }
46
+ 70% {
47
+ stroke-dashoffset: 0;
48
+ opacity: 1;
49
+ }
50
+ 100% {
51
+ stroke-dashoffset: 0;
52
+ opacity: 0;
53
+ }
54
+ }
55
+ @keyframes loaderFill {
56
+ 0% {
57
+ opacity: 1;
58
+ }
59
+ 30% {
60
+ opacity: 0;
61
+ }
62
+ 70% {
63
+ opacity: 0;
64
+ }
65
+ 100% {
66
+ opacity: 1;
67
+ }
68
+ }
69
+ @keyframes rotating {
70
+ from {
71
+ transform: rotate(0deg);
72
+ }
73
+ to {
74
+ transform: rotate(360deg);
75
+ }
76
+ }
@@ -0,0 +1,91 @@
1
+ .loader {
2
+ position: relative;
3
+ display: inline-block;
4
+ height: 160px;
5
+ width: 160px;
6
+
7
+ .loader-flag {
8
+ top: 58px;
9
+ left: 52px;
10
+ position: relative;
11
+ height: 52px;
12
+ width: 52px;
13
+ }
14
+
15
+ .loader-flag-stroke {
16
+ animation: loaderStroke 3.5s infinite;
17
+ }
18
+
19
+ .loader-flag-fill {
20
+ display: block;
21
+ position: absolute;
22
+ top: 1px;
23
+ opacity: 1;
24
+ animation: loaderFill 3.5s infinite;
25
+ }
26
+
27
+ .loader-spinner {
28
+ width: 160px;
29
+ height: 160px;
30
+ position: absolute;
31
+ background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjU0IC01NCAxNjAgMTYwIj48bGluZWFyR3JhZGllbnQgaWQ9ImEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMTA4LjY2MiIgeTE9IjUyLjE3NSIgeDI9IjEwNy42NjIiIHkyPSI1Mi4xNzUiIGdyYWRpZW50VHJhbnNmb3JtPSJtYXRyaXgoMTYwIDAgMCAtODAgLTE3MTcyIDQxNjApIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiMwMDk3YzciLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMDk3YzciIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTIxNCAyNmMwLTQ0LjItMzUuOC04MC04MC04MFM1NC0xOC4yIDU0IDI2aDJjMC00My4xIDM0LjktNzggNzgtNzhzNzggMzQuOSA3OCA3OGgyeiIvPjwvc3ZnPg==");
32
+ animation: rotating 1.4s linear infinite;
33
+ }
34
+
35
+ .loader-flag-fill,
36
+ .loader-flag-outline {
37
+ width: 52px;
38
+ height: 52px;
39
+ }
40
+ }
41
+
42
+ /* Animations */
43
+ @keyframes loaderStroke {
44
+ 30% {
45
+ stroke-dashoffset: 300;
46
+ opacity: 0;
47
+ }
48
+
49
+ 40% {
50
+ stroke-dashoffset: 300;
51
+ opacity: 1;
52
+ }
53
+
54
+ 70% {
55
+ stroke-dashoffset: 0;
56
+ opacity: 1;
57
+ }
58
+
59
+ 100% {
60
+ stroke-dashoffset: 0;
61
+ opacity: 0;
62
+ }
63
+ }
64
+
65
+ @keyframes loaderFill {
66
+ 0% {
67
+ opacity: 1;
68
+ }
69
+
70
+ 30% {
71
+ opacity: 0;
72
+ }
73
+
74
+ 70% {
75
+ opacity: 0;
76
+ }
77
+
78
+ 100% {
79
+ opacity: 1;
80
+ }
81
+ }
82
+
83
+ @keyframes rotating {
84
+ from {
85
+ transform: rotate(0deg);
86
+ }
87
+
88
+ to {
89
+ transform: rotate(360deg);
90
+ }
91
+ }
@@ -0,0 +1,74 @@
1
+ .media {
2
+ display: flex;
3
+ align-items: center;
4
+ }
5
+ .media-body {
6
+ flex: 1;
7
+ }
8
+ .media-body > *:last-child {
9
+ margin-bottom: 0;
10
+ }
11
+ .media-middle {
12
+ align-self: center;
13
+ }
14
+ .media-bottom {
15
+ align-self: flex-end;
16
+ }
17
+ /* Images/elements as the media anchor */
18
+ .media-object {
19
+ display: block;
20
+ }
21
+ /* Alignment */
22
+ .media-right {
23
+ padding-left: 16px;
24
+ padding-left: var(--size-16);
25
+ }
26
+ [dir="rtl"] .media-right {
27
+ padding-right: 16px;
28
+ padding-right: var(--size-16);
29
+ padding-left: 0;
30
+ padding-left: initial;
31
+ }
32
+ .media-left {
33
+ padding-right: 16px;
34
+ padding-right: var(--size-16);
35
+ }
36
+ [dir="rtl"] .media-left {
37
+ padding-left: 16px;
38
+ padding-left: var(--size-16);
39
+ padding-right: 0;
40
+ padding-right: initial;
41
+ }
42
+ @media (max-width: 320px) {
43
+ .media-right,
44
+ .media-left {
45
+ padding-left: 32px;
46
+ padding-left: var(--size-32);
47
+ }
48
+ [dir="rtl"] .media-right,
49
+ [dir="rtl"] .media-left {
50
+ padding-right: 32px;
51
+ padding-right: var(--size-32);
52
+ padding-left: 0;
53
+ padding-left: initial;
54
+ }
55
+ }
56
+ /* Headings */
57
+ .media-heading {
58
+ margin-top: 0;
59
+ margin-bottom: 0;
60
+ }
61
+ /* Media list variation */
62
+ .media-list {
63
+ padding-left: 0;
64
+ list-style: none;
65
+ }
66
+ [dir="rtl"] .media-list {
67
+ padding-right: 0;
68
+ padding-left: 0;
69
+ padding-left: initial;
70
+ }
71
+ /* Fix text-ellipsis issue with text in dropdown */
72
+ .dropdown-menu .media-body {
73
+ overflow: hidden;
74
+ }
@@ -0,0 +1,68 @@
1
+ @import (reference) "./mixins/_logical-properties.less";
2
+
3
+ .media {
4
+ display: flex;
5
+ align-items: center;
6
+ }
7
+
8
+ .media-body {
9
+ flex: 1;
10
+
11
+ > *:last-child {
12
+ margin-bottom: 0;
13
+ }
14
+ }
15
+
16
+ .media-middle {
17
+ align-self: center;
18
+ }
19
+
20
+ .media-bottom {
21
+ align-self: flex-end;
22
+ }
23
+
24
+ /* Images/elements as the media anchor */
25
+
26
+ .media-object {
27
+ display: block;
28
+ }
29
+
30
+ /* Alignment */
31
+
32
+ .media-right {
33
+ .padding(left, var(--size-16));
34
+ }
35
+
36
+ .media-left {
37
+ .padding(right, var(--size-16));
38
+ }
39
+
40
+ @media (--screen-400-zoom) {
41
+ .media-right,
42
+ .media-left {
43
+ .padding(left, var(--size-32));
44
+ }
45
+ }
46
+
47
+ /* Headings */
48
+
49
+ .media-heading {
50
+ margin-top: 0;
51
+ margin-bottom: 0;
52
+ }
53
+
54
+ /* Media list variation */
55
+
56
+ .media-list {
57
+ .padding(left, 0);
58
+
59
+ list-style: none;
60
+ }
61
+
62
+ /* Fix text-ellipsis issue with text in dropdown */
63
+
64
+ .dropdown-menu {
65
+ .media-body {
66
+ overflow: hidden;
67
+ }
68
+ }
@@ -0,0 +1,39 @@
1
+ @import (reference) "./_logical-properties.less";
2
+ @import (reference) "./_arrows.less";
3
+
4
+ /**
5
+ * DEPRECATED: use <InfoPrompt /> component instead
6
+ */
7
+
8
+ .alert-variant(@background; @text-color; @text-hover) {
9
+ background-color: @background;
10
+ color: @text-color;
11
+
12
+ a,
13
+ b,
14
+ strong,
15
+ .close,
16
+ .alert-link,
17
+ .icon {
18
+ color: @text-color;
19
+ }
20
+
21
+ a:hover,
22
+ a:focus,
23
+ .alert-link:hover,
24
+ .alert-link:focus,
25
+ .close:hover,
26
+ .close:focus {
27
+ color: @text-hover;
28
+ }
29
+ }
30
+
31
+ .alert-arrow(@size: 10px) {
32
+ position: relative;
33
+ .arrow-pointer(@size);
34
+
35
+ &::before {
36
+ clip-path: polygon(0% 0%, 0 100%, 100% 0);
37
+ }
38
+ .arrow-positions(@size);
39
+ }
@@ -0,0 +1,52 @@
1
+ @import (reference) "../mixins/_logical-properties.less";
2
+
3
+ .arrow(@size: 10px) {
4
+ position: relative;
5
+ .arrow-pointer(@size);
6
+ .arrow-positions(@size);
7
+ }
8
+
9
+ .arrow-pointer(@size: 10px) {
10
+ &::before {
11
+ content: " ";
12
+ position: absolute;
13
+ display: block;
14
+ width: @size;
15
+ height: @size;
16
+ .left((2 * @size));
17
+
18
+ top: (@size / -2);
19
+ transform: rotate(45deg);
20
+ background-color: inherit;
21
+ }
22
+ }
23
+
24
+ .arrow-positions(@size: 10px) {
25
+ &.arrow-center::before {
26
+ .left(50%);
27
+
28
+ .margin(left, (@size / -2));
29
+ }
30
+
31
+ &.arrow-top::before {
32
+ top: (@size / -2);
33
+ bottom: auto;
34
+ }
35
+
36
+ &.arrow-left::before {
37
+ .left((2 * @size));
38
+
39
+ .right(auto);
40
+ }
41
+
42
+ &.arrow-right::before {
43
+ .left(auto);
44
+
45
+ .right((2 * @size));
46
+ }
47
+
48
+ &.arrow-bottom::before {
49
+ top: auto;
50
+ bottom: (@size / -2);
51
+ }
52
+ }
@@ -0,0 +1,11 @@
1
+ // Single side border-radius
2
+
3
+ .border-top-radius(@radius) {
4
+ border-top-right-radius: @radius;
5
+ border-top-left-radius: @radius;
6
+ }
7
+
8
+ .border-bottom-radius(@radius) {
9
+ border-bottom-right-radius: @radius;
10
+ border-bottom-left-radius: @radius;
11
+ }