@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,82 @@
1
+ // Mixins to generate button styles and state variations
2
+ .button-variant(
3
+ @color;
4
+ @color-hover;
5
+ @background;
6
+ @background-hover;
7
+ @background-active;
8
+ @border;
9
+ @border-hover;
10
+ @border-active;
11
+ @dropdown-background: @background;
12
+ @color-active: @color-hover) {
13
+ color: @color;
14
+ background-color: @background;
15
+ border-color: @border;
16
+ transition: color, background-color 0.15s ease-in-out;
17
+
18
+ &:not(.disabled, :disabled, .btn-loading):hover {
19
+ color: @color-hover;
20
+ background-color: @background-hover;
21
+ border-color: @border-hover;
22
+ }
23
+
24
+ &:not(.disabled, :disabled, .btn-loading):active,
25
+ &:not(.disabled, :disabled, .btn-loading).active,
26
+ .open > .dropdown-toggle& {
27
+ color: @color-active;
28
+ background-color: @background-active;
29
+ border-color: @border-active;
30
+
31
+ &:not(.disabled, :disabled):hover {
32
+ color: @color-active;
33
+ background-color: @background-active;
34
+ border-color: @border-active;
35
+ }
36
+ }
37
+
38
+ &:not(.disabled, :disabled, .btn-loading).active,
39
+ .open > .dropdown-toggle& {
40
+ background-image: none;
41
+ }
42
+
43
+ .badge {
44
+ color: @background;
45
+ background-color: @color;
46
+ }
47
+ }
48
+
49
+ .button-size(@padding; @font-size; @line-height; @border-radius: 9999px; @min-height: 0) {
50
+ padding: @padding;
51
+ font-size: @font-size;
52
+ line-height: @line-height;
53
+ border-radius: @border-radius;
54
+ // TODO: Remove min-height in The Future
55
+ min-height: @min-height;
56
+
57
+ .dropdown-menu {
58
+ > li > a {
59
+ font-size: @font-size;
60
+ line-height: @line-height;
61
+ }
62
+ }
63
+ }
64
+
65
+ // @TODO Deprecate
66
+ .button-outline(@color, @active, @inverse) {
67
+ .button-variant(
68
+ @color;
69
+ @inverse;
70
+ transparent;
71
+ @color;
72
+ @active;
73
+ @color;
74
+ @color;
75
+ @active;
76
+ #FFF
77
+ );
78
+ }
79
+
80
+ .btn-sm {
81
+ height: 32px;
82
+ }
@@ -0,0 +1,7 @@
1
+ // Center-align a block level element
2
+
3
+ .center-block() {
4
+ display: block;
5
+ margin-left: auto;
6
+ margin-right: auto;
7
+ }
@@ -0,0 +1,23 @@
1
+ // Clearfix
2
+ //
3
+ // For modern browsers
4
+ // 1. The space content is one way to avoid an Opera bug when the
5
+ // contenteditable attribute is included anywhere else in the document.
6
+ // Otherwise it causes space to appear at the top and bottom of elements
7
+ // that are clearfixed.
8
+ // 2. The use of `table` rather than `block` is only necessary if using
9
+ // `:before` to contain the top-margins of child elements.
10
+ //
11
+ // Source: http://nicolasgallagher.com/micro-clearfix-hack/
12
+
13
+ .clearfix() {
14
+ &::before,
15
+ &::after {
16
+ content: " "; // 1
17
+ display: table; // 2
18
+ }
19
+
20
+ &::after {
21
+ clear: both;
22
+ }
23
+ }
@@ -0,0 +1,105 @@
1
+ .flex-properties(@break-point) {
2
+ .d-flex@{break-point} {
3
+ display: flex;
4
+ }
5
+
6
+ .d-inline-flex@{break-point} {
7
+ display: inline-flex;
8
+ }
9
+
10
+ .flex-column@{break-point} {
11
+ flex-direction: column;
12
+ }
13
+
14
+ .flex-row@{break-point} {
15
+ flex-direction: row;
16
+ }
17
+
18
+ .justify-content-start@{break-point} {
19
+ justify-content: flex-start;
20
+ }
21
+
22
+ .justify-content-end@{break-point} {
23
+ justify-content: flex-end;
24
+ }
25
+
26
+ .justify-content-center@{break-point} {
27
+ justify-content: center;
28
+ }
29
+
30
+ .justify-content-between@{break-point} {
31
+ justify-content: space-between;
32
+ }
33
+
34
+ .justify-content-around@{break-point} {
35
+ justify-content: space-around;
36
+ }
37
+
38
+ .align-items-start@{break-point} {
39
+ align-items: flex-start;
40
+ }
41
+
42
+ .align-items-end@{break-point} {
43
+ align-items: flex-end;
44
+ }
45
+
46
+ .align-items-center@{break-point} {
47
+ align-items: center;
48
+ }
49
+
50
+ .align-items-baseline@{break-point} {
51
+ align-items: baseline;
52
+ }
53
+
54
+ .align-items-stretch@{break-point} {
55
+ align-items: stretch;
56
+ }
57
+
58
+ .align-self-start@{break-point} {
59
+ align-self: flex-start;
60
+ }
61
+
62
+ .align-self-end@{break-point} {
63
+ align-self: flex-end;
64
+ }
65
+
66
+ .align-self-center@{break-point} {
67
+ align-self: center;
68
+ }
69
+
70
+ .align-self-baseline@{break-point} {
71
+ align-self: baseline;
72
+ }
73
+
74
+ .align-self-stretch@{break-point} {
75
+ align-self: stretch;
76
+ }
77
+
78
+ .flex-nowrap@{break-point} {
79
+ flex-wrap: nowrap;
80
+ }
81
+
82
+ .flex-wrap@{break-point} {
83
+ flex-wrap: wrap;
84
+ }
85
+
86
+ .order-0@{break-point} {
87
+ order: 0;
88
+ }
89
+
90
+ .order-1@{break-point} {
91
+ order: 1;
92
+ }
93
+
94
+ .order-2@{break-point} {
95
+ order: 2;
96
+ }
97
+
98
+ .order-3@{break-point} {
99
+ order: 3;
100
+ }
101
+
102
+ .flex-grow-1@{break-point} {
103
+ flex-grow: 1;
104
+ }
105
+ }
@@ -0,0 +1,130 @@
1
+ @import (reference) "../core/_typography.less";
2
+
3
+ // Form validation states
4
+
5
+ .form-control-validation(@text-color; @border-color; @border-hover;) {
6
+ border-color: @border-color !important;
7
+
8
+ // DEPRECATED: use `Field` component (or in some edge cases `Label` component) instead
9
+ .control-label,
10
+
11
+ // Color the label and help text
12
+ .radio,
13
+ .checkbox,
14
+ .radio-inline,
15
+ .checkbox-inline,
16
+ &.radio label,
17
+ &.checkbox label,
18
+ &.radio-inline label,
19
+ &.checkbox-inline label,
20
+ .radio label,
21
+ .checkbox label,
22
+ .radio-inline label,
23
+ .checkbox-inline label,
24
+ .input-group-addon {
25
+ color: @text-color !important;
26
+ border-color: @border-color !important;
27
+ }
28
+
29
+ // Set the border and box shadow on specific inputs to match
30
+ .form-control,
31
+ .btn-input,
32
+ .btn-input:not(.disabled, :disabled):focus,
33
+ .btn-input:not(.disabled, :disabled):hover,
34
+ .input-group-addon,
35
+ .alert {
36
+ border-color: @border-color !important;
37
+ }
38
+
39
+ &:active,
40
+ &:focus,
41
+ &:focus-within {
42
+ .form-control,
43
+ &.radio label,
44
+ &.checkbox label,
45
+ .btn-input,
46
+ .input-group-addon,
47
+ .input-group .form-control:focus,
48
+ .alert {
49
+ border-color: @border-hover !important;
50
+ }
51
+ }
52
+
53
+ &:not(.disabled, :disabled):hover {
54
+ &.radio label,
55
+ &.checkbox label,
56
+ .btn-input,
57
+ .alert {
58
+ border-color: @border-hover !important;
59
+ }
60
+ }
61
+
62
+ // Optional feedback icon
63
+ .form-control-feedback {
64
+ color: @text-color;
65
+ }
66
+
67
+ .radio,
68
+ &.checkbox {
69
+ > label {
70
+ &:not(.disabled, :disabled) {
71
+ border-color: @border-color;
72
+ color: var(--color-content-primary);
73
+ }
74
+
75
+ &:not(.disabled, :disabled):hover,
76
+ &:focus-within {
77
+ border-color: @border-hover !important;
78
+
79
+ .tw-checkbox-button,
80
+ .tw-radio-button {
81
+ border-color: @border-hover !important;
82
+ }
83
+ }
84
+ }
85
+
86
+ .tw-checkbox-button,
87
+ .tw-radio-button {
88
+ border-color: @border-color;
89
+ }
90
+ }
91
+ }
92
+
93
+ // Form control focus state
94
+ //
95
+ // Generate a customized focus state and for any input with the specified color,
96
+ // which defaults to the `var(--color-interactive-secondary-active)` CSS custom prop.
97
+ //
98
+ // We highly encourage you to not customize the default value, but instead use
99
+ // this to tweak colors on an as-needed basis. This aesthetic change is based on
100
+ // WebKit's default styles, but applicable to a wider range of browsers. Its
101
+ // usability and accessibility should be taken into account with any change.
102
+ //
103
+ // Example usage: change the default blue border and shadow to white for better
104
+ // contrast against a dark gray background.
105
+ .form-control-focus(@color: var(--color-interactive-primary)) {
106
+ &:not(.disabled, :disabled):focus {
107
+ border-color: @color;
108
+ outline: 0;
109
+ }
110
+ }
111
+
112
+ // Form control sizing
113
+ //
114
+ // Relative text size, padding, and border-radii changes for form controls. For
115
+ // horizontal sizing, wrap controls in the predefined grid classes. `<select>`
116
+ // element gets special love because it's special, and that's a fact!
117
+ .input-size(@input-height; @input-padding; @border-radius) {
118
+ min-height: @input-height;
119
+ padding: @input-padding;
120
+ border-radius: @border-radius;
121
+
122
+ select& {
123
+ min-height: @input-height;
124
+ }
125
+
126
+ textarea&,
127
+ select[multiple]& {
128
+ height: auto;
129
+ }
130
+ }
@@ -0,0 +1,104 @@
1
+ @import (reference) "_logical-properties.less";
2
+
3
+ // Framework grid generation
4
+ //
5
+ // Used only by Bootstrap to generate the correct number of grid classes given
6
+ // any value of `@grid-columns`.
7
+
8
+ .make-grid-columns() {
9
+ // Common styles for all sizes of grid columns, widths 1-12
10
+ .col(@index) {
11
+ // initial
12
+ @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}, .col-xl-@{index}";
13
+ .col((@index + 1), @item);
14
+ }
15
+ .col(@index, @list) when (@index =< @grid-columns) {
16
+ // general; "=<" isn't a typo
17
+ @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}, .col-xl-@{index}";
18
+ .col((@index + 1), ~"@{list}, @{item}");
19
+ }
20
+ .col(@index, @list) when (@index > @grid-columns) {
21
+ // terminal
22
+ @{list} {
23
+ position: relative;
24
+ // Prevent columns from collapsing when empty
25
+ min-height: 1px;
26
+ // Inner gutter via padding
27
+ padding-left: ceil((@grid-gutter-width / 2));
28
+ padding-right: floor((@grid-gutter-width / 2));
29
+ }
30
+ }
31
+ .col(1); // kickstart it
32
+ }
33
+
34
+ .float-grid-columns(@class) {
35
+ .col(@index) {
36
+ // initial
37
+ @item: ~".col-@{class}-@{index}";
38
+ .col((@index + 1), @item);
39
+ }
40
+ .col(@index, @list) when (@index =< @grid-columns) {
41
+ // general
42
+ @item: ~".col-@{class}-@{index}";
43
+ .col((@index + 1), ~"@{list}, @{item}");
44
+ }
45
+ .col(@index, @list) when (@index > @grid-columns) {
46
+ // terminal
47
+ @{list} {
48
+ .float(left);
49
+ }
50
+ }
51
+ .col(1); // kickstart it
52
+ }
53
+
54
+ .calc-grid-column(@index, @class, @type) when (@type = width) and (@index > 0) {
55
+ .col-@{class}-@{index} {
56
+ width: percentage((@index / @grid-columns));
57
+
58
+ .row-equal-height & {
59
+ /* stylelint-disable-next-line function-calc-no-unspaced-operator */
60
+ width: calc(percentage((@index / @grid-columns)) ~"- 0.5px");
61
+ }
62
+ }
63
+ }
64
+ .calc-grid-column(@index, @class, @type) when (@type = push) and (@index > 0) {
65
+ .col-@{class}-push-@{index} {
66
+ .left(percentage((@index / @grid-columns)));
67
+ }
68
+ }
69
+ .calc-grid-column(@index, @class, @type) when (@type = push) and (@index = 0) {
70
+ .col-@{class}-push-0 {
71
+ .left(auto);
72
+ }
73
+ }
74
+ .calc-grid-column(@index, @class, @type) when (@type = pull) and (@index > 0) {
75
+ .col-@{class}-pull-@{index} {
76
+ .right(percentage((@index / @grid-columns)));
77
+ }
78
+ }
79
+ .calc-grid-column(@index, @class, @type) when (@type = pull) and (@index = 0) {
80
+ .col-@{class}-pull-0 {
81
+ .right(auto);
82
+ }
83
+ }
84
+ .calc-grid-column(@index, @class, @type) when (@type = offset) {
85
+ .col-@{class}-offset-@{index} {
86
+ .margin(left, percentage((@index / @grid-columns)));
87
+ }
88
+ }
89
+
90
+ // Basic looping in LESS
91
+ .loop-grid-columns(@index, @class, @type) when (@index >= 0) {
92
+ .calc-grid-column(@index, @class, @type);
93
+ // next iteration
94
+ .loop-grid-columns((@index - 1), @class, @type);
95
+ }
96
+
97
+ // Create grid for specific class
98
+ .make-grid(@class) {
99
+ .float-grid-columns(@class);
100
+ .loop-grid-columns(@grid-columns, @class, width);
101
+ .loop-grid-columns(@grid-columns, @class, pull);
102
+ .loop-grid-columns(@grid-columns, @class, push);
103
+ .loop-grid-columns(@grid-columns, @class, offset);
104
+ }
@@ -0,0 +1,158 @@
1
+ // Grid system
2
+ //
3
+ // Generate semantic grid columns with these mixins.
4
+
5
+ // Centered container element
6
+ .container-fixed(@gutter: @grid-gutter-width) {
7
+ margin-right: auto;
8
+ margin-left: auto;
9
+ padding-left: (@gutter / 2);
10
+ padding-right: (@gutter / 2);
11
+
12
+ &:extend(.clearfix all);
13
+ }
14
+
15
+ // Creates a wrapper for a series of columns
16
+ .make-row(@gutter: @grid-gutter-width) {
17
+ .margin(left, ceil((@gutter / -2)), floor((@gutter / -2)));
18
+
19
+ .margin(right, floor((@gutter / -2)), ceil((@gutter / -2)));
20
+
21
+ &:extend(.clearfix all);
22
+ }
23
+
24
+ // Generate the extra small columns
25
+ .make-xs-column(@columns; @gutter: @grid-gutter-width) {
26
+ position: relative;
27
+ .float(left);
28
+
29
+ width: percentage((@columns / @grid-columns));
30
+ min-height: 1px;
31
+ padding-left: (@gutter / 2);
32
+ padding-right: (@gutter / 2);
33
+ }
34
+ .make-xs-column-offset(@columns) {
35
+ .margin(left, percentage((@columns / @grid-columns)));
36
+ }
37
+ .make-xs-column-push(@columns) {
38
+ .left(percentage((@columns / @grid-columns)));
39
+ }
40
+ .make-xs-column-pull(@columns) {
41
+ .right(percentage((@columns / @grid-columns)));
42
+ }
43
+
44
+ // Generate the small columns
45
+ .make-sm-column(@columns; @gutter: @grid-gutter-width) {
46
+ position: relative;
47
+ min-height: 1px;
48
+ padding-left: (@gutter / 2);
49
+ padding-right: (@gutter / 2);
50
+
51
+ @media (min-width: @screen-sm-min) {
52
+ .float(left);
53
+
54
+ width: percentage((@columns / @grid-columns));
55
+ }
56
+ }
57
+ .make-sm-column-offset(@columns) {
58
+ @media (min-width: @screen-sm-min) {
59
+ .margin(left, percentage((@columns / @grid-columns)));
60
+ }
61
+ }
62
+ .make-sm-column-push(@columns) {
63
+ @media (min-width: @screen-sm-min) {
64
+ .left(percentage((@columns / @grid-columns)));
65
+ }
66
+ }
67
+ .make-sm-column-pull(@columns) {
68
+ @media (min-width: @screen-sm-min) {
69
+ .right(percentage((@columns / @grid-columns)));
70
+ }
71
+ }
72
+
73
+ // Generate the medium columns
74
+ .make-md-column(@columns; @gutter: @grid-gutter-width) {
75
+ position: relative;
76
+ min-height: 1px;
77
+ padding-left: (@gutter / 2);
78
+ padding-right: (@gutter / 2);
79
+
80
+ @media (min-width: @screen-md-min) {
81
+ .float(left);
82
+
83
+ width: percentage((@columns / @grid-columns));
84
+ }
85
+ }
86
+ .make-md-column-offset(@columns) {
87
+ @media (min-width: @screen-md-min) {
88
+ .margin(left, percentage((@columns / @grid-columns)));
89
+ }
90
+ }
91
+ .make-md-column-push(@columns) {
92
+ @media (min-width: @screen-md-min) {
93
+ .left(percentage((@columns / @grid-columns)));
94
+ }
95
+ }
96
+ .make-md-column-pull(@columns) {
97
+ @media (min-width: @screen-md-min) {
98
+ .right(percentage((@columns / @grid-columns)));
99
+ }
100
+ }
101
+
102
+ // Generate the large columns
103
+ .make-lg-column(@columns; @gutter: @grid-gutter-width) {
104
+ position: relative;
105
+ min-height: 1px;
106
+ padding-left: (@gutter / 2);
107
+ padding-right: (@gutter / 2);
108
+
109
+ @media (min-width: @screen-lg-min) {
110
+ .float(left);
111
+
112
+ width: percentage((@columns / @grid-columns));
113
+ }
114
+ }
115
+ .make-lg-column-offset(@columns) {
116
+ @media (min-width: @screen-lg-min) {
117
+ .margin(left, percentage((@columns / @grid-columns)));
118
+ }
119
+ }
120
+ .make-lg-column-push(@columns) {
121
+ @media (min-width: @screen-lg-min) {
122
+ .left(percentage((@columns / @grid-columns)));
123
+ }
124
+ }
125
+ .make-lg-column-pull(@columns) {
126
+ @media (min-width: @screen-lg-min) {
127
+ .right(percentage((@columns / @grid-columns)));
128
+ }
129
+ }
130
+
131
+ // Generate the large columns
132
+ .make-xl-column(@columns; @gutter: @grid-gutter-width) {
133
+ position: relative;
134
+ min-height: 1px;
135
+ padding-left: (@gutter / 2);
136
+ padding-right: (@gutter / 2);
137
+
138
+ @media (min-width: @screen-xl-min) {
139
+ .float(left);
140
+
141
+ width: percentage((@columns / @grid-columns));
142
+ }
143
+ }
144
+ .make-xl-column-offset(@columns) {
145
+ @media (min-width: @screen-xl-min) {
146
+ .margin(left, percentage((@columns / @grid-columns)));
147
+ }
148
+ }
149
+ .make-xl-column-push(@columns) {
150
+ @media (min-width: @screen-xl-min) {
151
+ .left(percentage((@columns / @grid-columns)));
152
+ }
153
+ }
154
+ .make-xl-column-pull(@columns) {
155
+ @media (min-width: @screen-xl-min) {
156
+ .right(percentage((@columns / @grid-columns)));
157
+ }
158
+ }
@@ -0,0 +1,20 @@
1
+ // CSS image replacement
2
+ //
3
+ // Heads up! v3 launched with with only `.hide-text()`, but per our pattern for
4
+ // mixins being reused as classes with the same name, this doesn't hold up. As
5
+ // of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.
6
+ //
7
+ // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
8
+
9
+ // Deprecated as of v3.0.1 (will be removed in v4)
10
+ .hide-text() {
11
+ color: transparent;
12
+ text-shadow: none;
13
+ background-color: transparent;
14
+ border: 0;
15
+ }
16
+
17
+ // New mixin to use as of v3.0.1
18
+ .text-hide() {
19
+ .hide-text();
20
+ }
@@ -0,0 +1,7 @@
1
+ .link-underline (@isUnderlineImportant: false) {
2
+ text-decoration: underline;
3
+ & when (@isUnderlineImportant = true) {
4
+ text-decoration: underline !important;
5
+ }
6
+ text-underline-offset: 0.3em;
7
+ }
@@ -0,0 +1,23 @@
1
+ @import (reference) "_logical-properties.less";
2
+
3
+ .list-group-item-variant(@state; @background; @color) {
4
+ .list-group-item-@{state} {
5
+ .border(left, 3px, solid, @color);
6
+
7
+ .list-group-item& {
8
+ background-color: var(--color-background-screen);
9
+ }
10
+
11
+ .list-group-item-text {
12
+ color: @color;
13
+ }
14
+
15
+ a& {
16
+ color: @color;
17
+
18
+ &:hover {
19
+ color: @color;
20
+ }
21
+ }
22
+ }
23
+ }