@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,145 @@
1
+ .d-inline-block {
2
+ display: inline-block;
3
+ }
4
+ .d-inline {
5
+ display: inline;
6
+ }
7
+ .clearfix::before,
8
+ .clearfix::after {
9
+ content: " ";
10
+ display: table;
11
+ }
12
+ .clearfix::after {
13
+ clear: both;
14
+ }
15
+ .center-block {
16
+ display: block;
17
+ margin-left: auto;
18
+ margin-right: auto;
19
+ }
20
+ .pull-right,
21
+ .pull-xs-right {
22
+ float: right !important;
23
+ }
24
+ [dir="rtl"] .pull-right,
25
+ [dir="rtl"] .pull-xs-right {
26
+ float: left !important;
27
+ }
28
+ .pull-left,
29
+ .pull-xs-left {
30
+ float: left !important;
31
+ }
32
+ [dir="rtl"] .pull-left,
33
+ [dir="rtl"] .pull-xs-left {
34
+ float: right !important;
35
+ }
36
+ .pull-xs-none {
37
+ float: none !important;
38
+ }
39
+ @media (min-width: 576px) {
40
+ .pull-sm-left {
41
+ float: left !important;
42
+ }
43
+ [dir="rtl"] .pull-sm-left {
44
+ float: right !important;
45
+ }
46
+ .pull-sm-right {
47
+ float: right !important;
48
+ }
49
+ [dir="rtl"] .pull-sm-right {
50
+ float: left !important;
51
+ }
52
+ .pull-sm-none {
53
+ float: none !important;
54
+ }
55
+ }
56
+ @media (min-width: 768px) {
57
+ .pull-md-left {
58
+ float: left !important;
59
+ }
60
+ [dir="rtl"] .pull-md-left {
61
+ float: right !important;
62
+ }
63
+ .pull-md-right {
64
+ float: right !important;
65
+ }
66
+ [dir="rtl"] .pull-md-right {
67
+ float: left !important;
68
+ }
69
+ .pull-md-none {
70
+ float: none !important;
71
+ }
72
+ }
73
+ @media (min-width: 992px) {
74
+ .pull-lg-left {
75
+ float: left !important;
76
+ }
77
+ [dir="rtl"] .pull-lg-left {
78
+ float: right !important;
79
+ }
80
+ .pull-lg-right {
81
+ float: right !important;
82
+ }
83
+ [dir="rtl"] .pull-lg-right {
84
+ float: left !important;
85
+ }
86
+ .pull-lg-none {
87
+ float: none !important;
88
+ }
89
+ }
90
+ @media (min-width: 1200px) {
91
+ .pull-xl-left {
92
+ float: left !important;
93
+ }
94
+ [dir="rtl"] .pull-xl-left {
95
+ float: right !important;
96
+ }
97
+ .pull-xl-right {
98
+ float: right !important;
99
+ }
100
+ [dir="rtl"] .pull-xl-right {
101
+ float: left !important;
102
+ }
103
+ .pull-xl-none {
104
+ float: none !important;
105
+ }
106
+ }
107
+ .pull-left-single-direction {
108
+ float: left !important;
109
+ }
110
+ .pull-right-single-direction {
111
+ float: right !important;
112
+ }
113
+ .hide {
114
+ display: none !important;
115
+ }
116
+ .show {
117
+ display: block !important;
118
+ }
119
+ .invisible {
120
+ visibility: hidden;
121
+ }
122
+ .text-hide {
123
+ color: transparent;
124
+ text-shadow: none;
125
+ background-color: transparent;
126
+ border: 0;
127
+ }
128
+ .hidden {
129
+ display: none !important;
130
+ }
131
+ .affix {
132
+ position: fixed;
133
+ }
134
+ .rotate90 {
135
+ transform: rotate(90deg);
136
+ }
137
+ .rotate180 {
138
+ transform: rotate(180deg);
139
+ }
140
+ .rotate270 {
141
+ transform: rotate(270deg);
142
+ }
143
+ .rotate-90 {
144
+ transform: rotate(-90deg);
145
+ }
@@ -0,0 +1,74 @@
1
+ .well,
2
+ .well-xs {
3
+ min-height: 24px;
4
+ min-height: var(--size-24);
5
+ margin-bottom: 24px;
6
+ margin-bottom: var(--size-24);
7
+ border-radius: 10px;
8
+ border-radius: var(--radius-small);
9
+ border: solid 1px rgba(0,0,0,0.10196);
10
+ border: solid 1px var(--color-border-neutral);
11
+ padding: 24px;
12
+ padding: var(--size-24);
13
+ box-shadow: none;
14
+ }
15
+ @media only screen and (min-width: 576px) {
16
+ .well-sm {
17
+ min-height: 24px;
18
+ min-height: var(--size-24);
19
+ margin-bottom: 24px;
20
+ margin-bottom: var(--size-24);
21
+ border-radius: 10px;
22
+ border-radius: var(--radius-small);
23
+ border: solid 1px rgba(0,0,0,0.10196);
24
+ border: solid 1px var(--color-border-neutral);
25
+ padding: 24px;
26
+ padding: var(--size-24);
27
+ box-shadow: none;
28
+ }
29
+ }
30
+ @media only screen and (min-width: 768px) {
31
+ .well-md {
32
+ min-height: 24px;
33
+ min-height: var(--size-24);
34
+ margin-bottom: 24px;
35
+ margin-bottom: var(--size-24);
36
+ border-radius: 10px;
37
+ border-radius: var(--radius-small);
38
+ border: solid 1px rgba(0,0,0,0.10196);
39
+ border: solid 1px var(--color-border-neutral);
40
+ padding: 24px;
41
+ padding: var(--size-24);
42
+ box-shadow: none;
43
+ }
44
+ }
45
+ @media only screen and (min-width: 992px) {
46
+ .well-lg {
47
+ min-height: 24px;
48
+ min-height: var(--size-24);
49
+ margin-bottom: 24px;
50
+ margin-bottom: var(--size-24);
51
+ border-radius: 10px;
52
+ border-radius: var(--radius-small);
53
+ border: solid 1px rgba(0,0,0,0.10196);
54
+ border: solid 1px var(--color-border-neutral);
55
+ padding: 24px;
56
+ padding: var(--size-24);
57
+ box-shadow: none;
58
+ }
59
+ }
60
+ @media only screen and (min-width: 1200px) {
61
+ .well-xl {
62
+ min-height: 24px;
63
+ min-height: var(--size-24);
64
+ margin-bottom: 24px;
65
+ margin-bottom: var(--size-24);
66
+ border-radius: 10px;
67
+ border-radius: var(--radius-small);
68
+ border: solid 1px rgba(0,0,0,0.10196);
69
+ border: solid 1px var(--color-border-neutral);
70
+ padding: 24px;
71
+ padding: var(--size-24);
72
+ box-shadow: none;
73
+ }
74
+ }
@@ -0,0 +1,11 @@
1
+ @custom-media --screen-xs (min-width: 480px);
2
+ @custom-media --screen-xs-max (max-width: 575px); /* --screen-sm - 1 */
3
+ @custom-media --screen-sm (min-width: 576px);
4
+ @custom-media --screen-sm-max (max-width: 767px); /* --screen-md - 1 */
5
+ @custom-media --screen-md (min-width: 768px);
6
+ @custom-media --screen-md-max (max-width: 991px); /* --screen-lg - 1 */
7
+ @custom-media --screen-lg (min-width: 992px);
8
+ @custom-media --screen-lg-max (max-width: 1199px); /* --screen-xl - 1 */
9
+ @custom-media --screen-xl (min-width: 1200px);
10
+
11
+ @custom-media --screen-400-zoom (max-width: 320px); /* ~400% zoom viewport */
@@ -0,0 +1,69 @@
1
+ /*
2
+ DEPRECATED
3
+ Use neptune-tokens.css instead.
4
+ If the token you want isn't available there, raise an issue in @transferwise/neptune-tokens.
5
+ */
6
+ :root {
7
+ --border-radius: var(--radius-small);
8
+ --spacer: 8px;
9
+ --space-4: 4px;
10
+ --space-8: 8px;
11
+ --space-12: 12px;
12
+ --space-16: 16px;
13
+ --space-24: 24px;
14
+ --space-32: 32px;
15
+ --space-40: 40px;
16
+ --space-48: 48px;
17
+ --space-56: 56px;
18
+ --space-64: 64px;
19
+ --color-text-link-hover: #00a4df;
20
+ --color-text-link-active: #008ec0;
21
+ --brand-white: #fff;
22
+ --link-color: #00b9ff;
23
+ --brand-pale-blue: #dbf0fd;
24
+ --brand-navy-minus-20: #253655;
25
+ --brand-navy-minus-10: #2e4369;
26
+ --brand-navy: #37517e;
27
+ --brand-blue-minus-20: #111824;
28
+ --brand-blue-minus-10: #192439;
29
+ --brand-blue: #223049;
30
+ --brand-light-blue-minus-10: #00a4df;
31
+ --brand-light-blue: #00b9ff;
32
+ --brand-grey-plus-10: #6f8691;
33
+ --brand-smoke-minus-10: #a8aaac;
34
+ --brand-smoke: #d3d5d8;
35
+ --brand-smoke-plus-10: #e2e6e8;
36
+ --brand-smoke-plus-20: #f2f5f7;
37
+ --brand-green-minus-10: #28b862;
38
+ --brand-green: #2ed06e;
39
+ --gray-base: #f2f5f7;
40
+ --gray-darker: #384347;
41
+ --gray-light: #829ca9;
42
+ --brand-primary: #37517e;
43
+ --body-bg: #fff;
44
+ --text-bold-color: #2e4369;
45
+ --font-size-xx-large: 2.8rem; /* 42px */
46
+ /* stylelint-disable-next-line number-max-precision */
47
+ --font-size-x-large: 1.8666666667rem; /* 28px */
48
+ /* stylelint-disable-next-line number-max-precision */
49
+ --font-size-large: 1.4666666667rem; /* 22px */
50
+ --font-size-medium: 1.2rem; /* 18px */
51
+ --font-size: 0.9375rem; /* 15px */
52
+ /* stylelint-disable-next-line number-max-precision */
53
+ --font-size-small: 0.9333333333rem; /* 14px */
54
+ --font-size-x-small: 0.8rem; /* 12px */
55
+ --line-height: 1.6; /* 24/15 */
56
+ }
57
+
58
+ @media (--screen-md) {
59
+ :root {
60
+ --font-size-xx-large: 2.625rem; /* 42px */
61
+ --font-size-x-large: 1.75rem; /* 28px */
62
+ --font-size-large: 1.375rem; /* 22px */
63
+ --font-size-medium: 1.125rem; /* 18px */
64
+ --font-size: 1rem; /* 16px */
65
+ --font-size-small: 0.875rem; /* 14px */
66
+ --font-size-x-small: 0.75rem; /* 12px */
67
+ --line-height: 1.5; /* 24/16px */
68
+ }
69
+ }
@@ -0,0 +1,11 @@
1
+ @import "@transferwise/neptune-tokens/tokens.css";
2
+
3
+ /* DEPRECATED, use neptune-tokens instead: https://transferwise.github.io/neptune-web/styles/tokens/Colors */
4
+ :root {
5
+ --color-primary: #37517e;
6
+ --color-secondary: #5d7079;
7
+ --color-accent: #00b9ff;
8
+ --color-positive: #2ed06e;
9
+ --color-negative: #f53636;
10
+ --color-warning: #ffa600;
11
+ }
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"FlowNavigation.d.ts","sourceRoot":"","sources":["../../../src/flowNavigation/FlowNavigation.tsx"],"names":[],"mappings":"AAOA,OAAgB,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAQxD,MAAM,WAAW,mBAAmB;IAClC,iBAAiB;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,wBAAwB;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,qBAAqB;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,sIAAsI;IACtI,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,wGAAwG;IACxG,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;CACxB;AAED,QAAA,MAAM,cAAc,GAAI,+DAQrB,mBAAmB,gCAsErB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"FlowNavigation.d.ts","sourceRoot":"","sources":["../../../src/flowNavigation/FlowNavigation.tsx"],"names":[],"mappings":"AAOA,OAAgB,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAQxD,MAAM,WAAW,mBAAmB;IAClC,iBAAiB;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,wBAAwB;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,qBAAqB;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,sIAAsI;IACtI,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,wGAAwG;IACxG,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;CACxB;AAED,QAAA,MAAM,cAAc,GAAI,+DAQrB,mBAAmB,gCAyErB,CAAC;AAEF,eAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "46.130.3",
3
+ "version": "46.131.1",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -87,13 +87,12 @@
87
87
  "storybook-addon-tag-badges": "^3.0.6",
88
88
  "storybook-addon-test-codegen": "^3.0.1",
89
89
  "@transferwise/less-config": "3.1.2",
90
- "@transferwise/neptune-css": "14.26.3",
90
+ "@transferwise/neptune-css": "14.27.0",
91
91
  "@wise/components-theming": "1.10.1",
92
92
  "@wise/wds-configs": "0.0.0"
93
93
  },
94
94
  "peerDependencies": {
95
95
  "@transferwise/icons": "^3 || ^4",
96
- "@transferwise/neptune-css": "^14.26",
97
96
  "@wise/art": "^2.26",
98
97
  "@wise/components-theming": "^1.9.1",
99
98
  "framer-motion": "^12.23.26",
@@ -119,7 +118,8 @@
119
118
  "merge-props": "^6.0.0",
120
119
  "react-popper": "^2.3.0",
121
120
  "react-transition-group": "^4.4.5",
122
- "virtua": "^0.48.5"
121
+ "virtua": "^0.48.5",
122
+ "@transferwise/neptune-tokens": "^8.16.0"
123
123
  },
124
124
  "publishConfig": {
125
125
  "access": "public",
@@ -139,6 +139,10 @@
139
139
  "build:copy-files": "cpx 'src/**/!(db)/*.{json,svg}' build",
140
140
  "build:copy-css": "cpx 'src/main.css' build/ & cpx 'src/**/*.css' build/styles/",
141
141
  "build:copy-lang": "cpx 'src/i18n/*.json' build/i18n && cpx 'src/i18n/index.js' build/i18n",
142
+ "build:neptune-css": "npm-run-all build:neptune-css:*",
143
+ "build:neptune-css:copy-brand-assets": "cpx 'src/styles/img/**' build/styles/img && cpx 'src/styles/fonts/*' build/styles/fonts",
144
+ "build:neptune-css:compile": "gulp compileLess --src='src/styles/less' --dest=build/styles/css",
145
+ "build:neptune-css:copy-vars": "gulp copyPropsAndVars --src='src/styles/props' --dest='build/styles/props' && gulp copyPropsAndVars --src='src/styles/variables' --dest='build/styles/less'",
142
146
  "docs": "pnpm build",
143
147
  "test": "TZ=UTC jest",
144
148
  "test:watch": "TZ=UTC jest --watch",
@@ -10,7 +10,7 @@ import Checkbox from './checkbox';
10
10
  import Body from './body';
11
11
 
12
12
  export default {
13
- title: 'Forms/Disabled Forms',
13
+ title: 'Forms/Disabled/Tests/Disabled Forms',
14
14
  parameters: {
15
15
  layout: 'centered',
16
16
  },
@@ -1,6 +1,6 @@
1
- @import (reference) "../../node_modules/@transferwise/neptune-css/src/variables/neptune-tokens.less";
2
- @import (reference) "../../node_modules/@transferwise/neptune-css/src/less/mixins/_logical-properties.less";
3
- @import (reference) "../../node_modules/@transferwise/neptune-css/src/less/core/_typography.less";
1
+ @import (reference) "./../styles/variables/neptune-tokens.less";
2
+ @import (reference) "./../styles/less/mixins/_logical-properties.less";
3
+ @import (reference) "./../styles/less/core/_typography.less";
4
4
 
5
5
  .np-accordion-item {
6
6
  display: block;
@@ -1,4 +1,4 @@
1
- @import (reference) "../../node_modules/@transferwise/neptune-css/src/less/ring.less";
1
+ @import (reference) "./../styles/less/ring.less";
2
2
 
3
3
  .np-action-btn {
4
4
  display: inline-flex;
@@ -45,14 +45,18 @@ export const Basic: Story = {
45
45
  Tertiary label
46
46
  </ActionButton>
47
47
  </div>
48
+ <div>
49
+ <ActionButton priority="primary" {...args} disabled>
50
+ Primary disabled
51
+ </ActionButton>
52
+ <ActionButton priority="secondary" {...args} disabled>
53
+ Secondary disabled
54
+ </ActionButton>
55
+ <ActionButton priority="tertiary" {...args} disabled>
56
+ Tertiary disabled
57
+ </ActionButton>
58
+ </div>
48
59
  </div>
49
60
  ),
50
61
  ...withVariantConfig(['default', 'dark', 'rtl', 'mobile']),
51
62
  };
52
-
53
- export const Disabled: Story = {
54
- ...Basic,
55
- args: {
56
- disabled: true,
57
- },
58
- };
@@ -0,0 +1,49 @@
1
+ import { Meta, StoryObj } from '@storybook/react-webpack5';
2
+ import { Settings } from '@transferwise/icons';
3
+ import ActionButton from './ActionButton';
4
+ import { withVariantConfig } from '../../.storybook/helpers';
5
+
6
+ const meta: Meta<typeof ActionButton> = {
7
+ component: ActionButton,
8
+ tags: ['!autodocs', '!manifest', 'deprecated'],
9
+ title: 'Actions/ActionButton/Tests',
10
+ };
11
+ export default meta;
12
+
13
+ type Story = StoryObj<typeof ActionButton>;
14
+
15
+ export const DisabledVariants: Story = {
16
+ render: (args) => (
17
+ <div style={{ display: 'flex', flexDirection: 'column', gap: '0.4rem' }}>
18
+ <div>
19
+ <ActionButton priority="primary" {...args}>
20
+ Primary label
21
+ </ActionButton>
22
+ <ActionButton priority="secondary" {...args}>
23
+ Secondary label
24
+ </ActionButton>
25
+ <ActionButton priority="tertiary" {...args}>
26
+ Tertiary label
27
+ </ActionButton>
28
+ </div>
29
+ <div>
30
+ <ActionButton priority="primary" {...args}>
31
+ <Settings />
32
+ Primary label
33
+ </ActionButton>
34
+ <ActionButton priority="secondary" {...args}>
35
+ <Settings />
36
+ Secondary label
37
+ </ActionButton>
38
+ <ActionButton priority="tertiary" {...args}>
39
+ <Settings />
40
+ Tertiary label
41
+ </ActionButton>
42
+ </div>
43
+ </div>
44
+ ),
45
+ args: {
46
+ disabled: true,
47
+ },
48
+ ...withVariantConfig(['default', 'dark', 'rtl', 'mobile']),
49
+ };
@@ -1,6 +1,6 @@
1
- @import (reference) "../../node_modules/@transferwise/neptune-css/src/variables/neptune-tokens.less";
2
- @import (reference) "../../node_modules/@transferwise/neptune-css/src/less/mixins/_logical-properties.less";
3
- @import (reference) "../../node_modules/@transferwise/neptune-css/src/less/core/_typography.less";
1
+ @import (reference) "./../styles/variables/neptune-tokens.less";
2
+ @import (reference) "./../styles/less/mixins/_logical-properties.less";
3
+ @import (reference) "./../styles/less/core/_typography.less";
4
4
 
5
5
  @avatar-diameter-72: 72px;
6
6
  @avatar-diameter-56: 56px;
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable react/jsx-key */
2
2
  import { Meta, StoryObj } from '@storybook/react-webpack5';
3
3
  import AvatarLayout, { AvatarLayoutProps } from '.';
4
- import { Freeze, Graph, Plane, Rewards } from '@transferwise/icons';
4
+ import { Freeze } from '@transferwise/icons';
5
5
  import { Flag } from '@wise/art';
6
6
  import Body from '../body';
7
7
  import SentimentSurface from '../sentimentSurface';
@@ -181,110 +181,6 @@ export const Horizontal: Story = {
181
181
  ),
182
182
  };
183
183
 
184
- export const EdgeInstances: Story = {
185
- render: () => (
186
- <div
187
- style={{
188
- gap: '1em',
189
- display: 'grid',
190
- justifyContent: 'space-between',
191
- gridTemplate: `auto auto / repeat(2, min-content)`,
192
- }}
193
- >
194
- <AvatarLayout orientation="diagonal" avatars={[]} />
195
-
196
- <AvatarLayout orientation="diagonal" avatars={[{}]} />
197
-
198
- <AvatarLayout orientation="diagonal" avatars={[{ profileName: 'Jay Jay' }]} />
199
- <AvatarLayout orientation="diagonal" size={16} avatars={[{ profileName: 'Jay Jay' }]} />
200
-
201
- <AvatarLayout orientation="diagonal" avatars={[{ asset: <Flag code="gb" /> }]} />
202
- <AvatarLayout orientation="diagonal" size={24} avatars={[{ asset: <Flag code="gb" /> }]} />
203
-
204
- <AvatarLayout
205
- orientation="diagonal"
206
- avatars={[{ asset: <Flag code="gb" /> }, { asset: <Flag code="jp" /> }]}
207
- />
208
-
209
- <AvatarLayout
210
- orientation="horizontal"
211
- interactive
212
- avatars={[
213
- { imgSrc: '../avatar-squere-dude.webp' },
214
- { asset: null, style: { border: '1px dashed var(--color-border-neutral)' } },
215
- ]}
216
- />
217
-
218
- <AvatarLayout
219
- orientation="horizontal"
220
- interactive
221
- avatars={[
222
- { imgSrc: '../avatar-square-dude.webp' },
223
- {
224
- asset: <Plane />,
225
- style: { backgroundColor: 'var(--color-bright-pink)' },
226
- },
227
- ]}
228
- />
229
-
230
- <AvatarLayout
231
- orientation="horizontal"
232
- interactive
233
- avatars={[
234
- {
235
- asset: <Graph />,
236
- style: { color: 'rgb(22, 51, 0)', backgroundColor: 'rgb(203, 217, 195)' },
237
- },
238
- {
239
- asset: <Rewards />,
240
- style: { color: 'rgb(203, 217, 195)', backgroundColor: 'rgb(22, 51, 0)' },
241
- },
242
- ]}
243
- />
244
-
245
- <AvatarLayout
246
- orientation="horizontal"
247
- interactive
248
- avatars={[
249
- { asset: <Flag code="gb" /> },
250
- { asset: '3+', style: { border: '1px dashed var(--color-border-neutral)' } },
251
- ]}
252
- />
253
-
254
- <AvatarLayout
255
- orientation="horizontal"
256
- avatars={[{ imgSrc: '../avatar-rectangle-fox.webp' }, { profileName: 'Jay Jay' }]}
257
- />
258
-
259
- <AvatarLayout
260
- interactive
261
- orientation="horizontal"
262
- avatars={[
263
- { imgSrc: '../avatar-rectangle-fox.webp' },
264
- { imgSrc: '../avatar-square-dude.webp' },
265
- { asset: '7+' },
266
- ]}
267
- />
268
-
269
- <AvatarLayout
270
- interactive
271
- orientation="horizontal"
272
- avatars={[{ asset: <Flag code="gb" /> }, { asset: <Flag code="br" /> }, { asset: '3+' }]}
273
- />
274
-
275
- <AvatarLayout
276
- orientation="horizontal"
277
- avatars={[
278
- { asset: <Flag code="gb" /> },
279
- { asset: <Flag code="br" /> },
280
- { asset: <Flag code="jp" /> },
281
- { asset: '3+' },
282
- ]}
283
- />
284
- </div>
285
- ),
286
- };
287
-
288
184
  /**
289
185
  * Like [AvatarView](?path=/docs/content-avatarview--docs#sentiment-awareness), `AvatarLayout` is sentiment-aware (note: not all features are supported) and will automatically adjust its colours if wrapped inside the
290
186
  * [SentimentSurface](?path=/docs/content-sentimentsurface--docs) component.