@transferwise/components 46.82.0 → 46.83.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/build/alert/Alert.js +2 -9
  2. package/build/alert/Alert.js.map +1 -1
  3. package/build/alert/Alert.mjs +2 -9
  4. package/build/alert/Alert.mjs.map +1 -1
  5. package/build/avatarLayout/AvatarLayout.js +111 -0
  6. package/build/avatarLayout/AvatarLayout.js.map +1 -0
  7. package/build/avatarLayout/AvatarLayout.mjs +109 -0
  8. package/build/avatarLayout/AvatarLayout.mjs.map +1 -0
  9. package/build/button/Button.js +1 -1
  10. package/build/button/Button.js.map +1 -1
  11. package/build/button/Button.mjs +1 -1
  12. package/build/button/Button.mjs.map +1 -1
  13. package/build/i18n/commonMessages/Button.messages.js.map +1 -0
  14. package/build/i18n/commonMessages/Button.messages.mjs.map +1 -0
  15. package/build/i18n/es.json +5 -0
  16. package/build/i18n/es.json.js +5 -0
  17. package/build/i18n/es.json.js.map +1 -1
  18. package/build/i18n/es.json.mjs +5 -0
  19. package/build/i18n/es.json.mjs.map +1 -1
  20. package/build/i18n/pl.json +5 -0
  21. package/build/i18n/pl.json.js +5 -0
  22. package/build/i18n/pl.json.js.map +1 -1
  23. package/build/i18n/pl.json.mjs +5 -0
  24. package/build/i18n/pl.json.mjs.map +1 -1
  25. package/build/i18n/ro.json +5 -0
  26. package/build/i18n/ro.json.js +5 -0
  27. package/build/i18n/ro.json.js.map +1 -1
  28. package/build/i18n/ro.json.mjs +5 -0
  29. package/build/i18n/ro.json.mjs.map +1 -1
  30. package/build/index.js +2 -0
  31. package/build/index.js.map +1 -1
  32. package/build/index.mjs +1 -0
  33. package/build/index.mjs.map +1 -1
  34. package/build/logo/Logo.js +11 -131
  35. package/build/logo/Logo.js.map +1 -1
  36. package/build/logo/Logo.mjs +1 -121
  37. package/build/logo/Logo.mjs.map +1 -1
  38. package/build/logo/logo-assets.js +134 -0
  39. package/build/logo/logo-assets.js.map +1 -0
  40. package/build/logo/logo-assets.mjs +125 -0
  41. package/build/logo/logo-assets.mjs.map +1 -0
  42. package/build/main.css +30 -0
  43. package/build/styles/avatarLayout/AvatarLayout.css +30 -0
  44. package/build/styles/main.css +30 -0
  45. package/build/types/alert/Alert.d.ts +1 -5
  46. package/build/types/alert/Alert.d.ts.map +1 -1
  47. package/build/types/avatarLayout/AvatarLayout.d.ts +11 -0
  48. package/build/types/avatarLayout/AvatarLayout.d.ts.map +1 -0
  49. package/build/types/avatarLayout/index.d.ts +3 -0
  50. package/build/types/avatarLayout/index.d.ts.map +1 -0
  51. package/build/types/i18n/commonMessages/Button.messages.d.ts.map +1 -0
  52. package/build/types/index.d.ts +2 -0
  53. package/build/types/index.d.ts.map +1 -1
  54. package/build/types/logo/Logo.d.ts.map +1 -1
  55. package/build/types/logo/logo-assets.d.ts +10 -0
  56. package/build/types/logo/logo-assets.d.ts.map +1 -0
  57. package/build/types/primitives/PrimitiveAnchor/index.d.ts +3 -0
  58. package/build/types/primitives/PrimitiveAnchor/index.d.ts.map +1 -0
  59. package/build/types/primitives/PrimitiveAnchor/src/PrimitiveAnchor.d.ts +14 -0
  60. package/build/types/primitives/PrimitiveAnchor/src/PrimitiveAnchor.d.ts.map +1 -0
  61. package/build/types/primitives/PrimitiveAnchor/src/PrimitiveAnchor.types.d.ts +21 -0
  62. package/build/types/primitives/PrimitiveAnchor/src/PrimitiveAnchor.types.d.ts.map +1 -0
  63. package/build/types/primitives/PrimitiveAnchor/src/index.d.ts +3 -0
  64. package/build/types/primitives/PrimitiveAnchor/src/index.d.ts.map +1 -0
  65. package/build/types/primitives/PrimitiveButton/index.d.ts +3 -0
  66. package/build/types/primitives/PrimitiveButton/index.d.ts.map +1 -0
  67. package/build/types/primitives/PrimitiveButton/src/PrimitiveButton.d.ts +14 -0
  68. package/build/types/primitives/PrimitiveButton/src/PrimitiveButton.d.ts.map +1 -0
  69. package/build/types/primitives/PrimitiveButton/src/PrimitiveButton.types.d.ts +21 -0
  70. package/build/types/primitives/PrimitiveButton/src/PrimitiveButton.types.d.ts.map +1 -0
  71. package/build/types/primitives/PrimitiveButton/src/index.d.ts +3 -0
  72. package/build/types/primitives/PrimitiveButton/src/index.d.ts.map +1 -0
  73. package/build/types/primitives/index.d.ts +6 -0
  74. package/build/types/primitives/index.d.ts.map +1 -0
  75. package/build/types/primitives/types.d.ts +34 -0
  76. package/build/types/primitives/types.d.ts.map +1 -0
  77. package/build/types/test-utils/index.d.ts.map +1 -1
  78. package/package.json +1 -2
  79. package/src/alert/Alert.spec.story.tsx +0 -82
  80. package/src/alert/Alert.spec.tsx +0 -30
  81. package/src/alert/Alert.tsx +51 -67
  82. package/src/avatarLayout/AvatarLayout.css +30 -0
  83. package/src/avatarLayout/AvatarLayout.less +39 -0
  84. package/src/avatarLayout/AvatarLayout.story.tsx +277 -0
  85. package/src/avatarLayout/AvatarLayout.tsx +91 -0
  86. package/src/avatarLayout/index.ts +2 -0
  87. package/src/button/Button.spec.tsx +1 -1
  88. package/src/button/Button.tsx +1 -1
  89. package/src/i18n/es.json +5 -0
  90. package/src/i18n/pl.json +5 -0
  91. package/src/i18n/ro.json +5 -0
  92. package/src/index.ts +2 -0
  93. package/src/logo/Logo.tsx +10 -8
  94. package/src/logo/__snapshots__/Logo.spec.tsx.snap +16 -16
  95. package/src/logo/logo-assets.tsx +137 -0
  96. package/src/main.css +30 -0
  97. package/src/main.less +1 -0
  98. package/src/primitives/PrimitiveAnchor/index.ts +2 -0
  99. package/src/primitives/PrimitiveAnchor/src/PrimitiveAnchor.tsx +122 -0
  100. package/src/primitives/PrimitiveAnchor/src/PrimitiveAnchor.types.ts +28 -0
  101. package/src/primitives/PrimitiveAnchor/src/index.ts +6 -0
  102. package/src/primitives/PrimitiveAnchor/stories/PrimitiveAnchor.story.tsx +77 -0
  103. package/src/primitives/PrimitiveAnchor/stories/PrimitiveAnchor.tests.story.tsx +169 -0
  104. package/src/primitives/PrimitiveAnchor/test/PrimitiveAnchor.spec.tsx +95 -0
  105. package/src/primitives/PrimitiveButton/index.ts +2 -0
  106. package/src/primitives/PrimitiveButton/src/PrimitiveButton.tsx +131 -0
  107. package/src/primitives/PrimitiveButton/src/PrimitiveButton.types.ts +28 -0
  108. package/src/primitives/PrimitiveButton/src/index.ts +6 -0
  109. package/src/primitives/PrimitiveButton/stories/PrimitiveButton.story.tsx +73 -0
  110. package/src/primitives/PrimitiveButton/stories/PrimitiveButton.tests.story.tsx +230 -0
  111. package/src/primitives/PrimitiveButton/test/PrimitiveButton.spec.tsx +114 -0
  112. package/src/primitives/index.ts +14 -0
  113. package/src/primitives/types.ts +40 -0
  114. package/src/test-utils/index.tsx +1 -0
  115. package/build/button/Button.messages.js.map +0 -1
  116. package/build/button/Button.messages.mjs.map +0 -1
  117. package/build/logo/svg/flag-inverse.svg +0 -1
  118. package/build/logo/svg/flag-platform-white.svg +0 -1
  119. package/build/logo/svg/flag-platform.svg +0 -1
  120. package/build/logo/svg/flag.svg +0 -1
  121. package/build/logo/svg/logo-business-inverse.svg +0 -1
  122. package/build/logo/svg/logo-business.svg +0 -1
  123. package/build/logo/svg/logo-inverse.svg +0 -1
  124. package/build/logo/svg/logo-platform-white.svg +0 -1
  125. package/build/logo/svg/logo-platform.svg +0 -1
  126. package/build/logo/svg/logo.svg +0 -1
  127. package/build/types/button/Button.messages.d.ts.map +0 -1
  128. package/src/logo/svg/flag-inverse.svg +0 -1
  129. package/src/logo/svg/flag-platform-white.svg +0 -1
  130. package/src/logo/svg/flag-platform.svg +0 -1
  131. package/src/logo/svg/flag.svg +0 -1
  132. package/src/logo/svg/logo-business-inverse.svg +0 -1
  133. package/src/logo/svg/logo-business.svg +0 -1
  134. package/src/logo/svg/logo-inverse.svg +0 -1
  135. package/src/logo/svg/logo-platform-white.svg +0 -1
  136. package/src/logo/svg/logo-platform.svg +0 -1
  137. package/src/logo/svg/logo.svg +0 -1
  138. /package/build/{button → i18n/commonMessages}/Button.messages.js +0 -0
  139. /package/build/{button → i18n/commonMessages}/Button.messages.mjs +0 -0
  140. /package/build/types/{button → i18n/commonMessages}/Button.messages.d.ts +0 -0
  141. /package/src/{button → i18n/commonMessages}/Button.messages.ts +0 -0
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="172" height="18" fill="none"><path fill="#163300" d="M43.276.841h4.787l-2.409 16.86h-4.787L43.276.84Zm-6.036 0-3.232 9.712L32.598.84H29.25l-4.23 9.684L24.49.84h-4.64l1.616 16.86h3.848l4.758-10.664 1.675 10.664h3.788L41.794.84H37.24Zm40.196 9.8H66.069c.059 2.189 1.396 3.63 3.363 3.63 1.483 0 2.657-.778 3.568-2.261l3.837 1.711c-1.32 2.55-4.098 4.211-7.523 4.211-4.67 0-7.769-3.083-7.769-8.04 0-5.447 3.642-9.31 8.783-9.31 4.524 0 7.373 2.998 7.373 7.667 0 .778-.088 1.555-.265 2.391Zm-4.259-3.228c0-1.96-1.117-3.2-2.908-3.2s-3.378 1.298-3.789 3.2h6.697ZM4.887 5.92 0 11.526h8.726l.98-2.642H5.969l2.284-2.592.008-.069-1.486-2.508h6.683L8.276 17.702h3.546L18.079.842H1.916l2.97 5.08Zm50.96-1.709c1.69 0 3.169.892 4.461 2.42l.679-4.755C59.783 1.077 58.152.58 55.994.58c-4.288 0-6.697 2.464-6.697 5.59 0 2.17 1.234 3.496 3.26 4.353l.97.432c1.806.756 2.291 1.132 2.291 1.931 0 .8-.815 1.355-2.056 1.355-2.048.007-3.708-1.024-4.956-2.782l-.692 4.843c1.422 1.063 3.245 1.628 5.648 1.628 4.076 0 6.58-2.306 6.58-5.505 0-2.176-.984-3.573-3.466-4.669l-1.058-.49c-1.469-.641-1.968-.994-1.968-1.7 0-.763.683-1.354 1.997-1.354ZM83.392 17.72V.792h6.149c1.342 0 2.454.24 3.335.719.882.48 1.541 1.134 1.979 1.963.437.83.656 1.762.656 2.798s-.22 1.976-.662 2.806c-.44.829-1.103 1.485-1.988 1.967-.884.482-1.994.723-3.33.723H85.3V9.603h3.993c.848 0 1.536-.144 2.064-.434.528-.29.915-.684 1.163-1.186.247-.501.37-1.07.37-1.71 0-.639-.123-1.206-.37-1.702-.248-.497-.636-.885-1.167-1.165-.53-.282-1.228-.422-2.092-.422h-3.269v14.735h-2.602ZM100.21.793v16.926h-2.519V.793h2.519ZM107.102 18c-.82 0-1.561-.15-2.224-.45a3.664 3.664 0 0 1-1.571-1.31c-.385-.573-.577-1.275-.577-2.107 0-.717.141-1.307.421-1.768.281-.462.661-.83 1.138-1.1a6.031 6.031 0 0 1 1.6-.612c.589-.139 1.19-.243 1.802-.314.774-.088 1.403-.16 1.887-.218.482-.058.833-.153 1.052-.286.219-.132.329-.347.329-.644v-.058c0-.72-.207-1.28-.619-1.678-.412-.396-1.026-.595-1.84-.595-.813 0-1.514.183-2.001.55-.486.366-.821.772-1.006 1.218l-2.367-.528c.281-.772.692-1.395 1.235-1.873a5.03 5.03 0 0 1 1.874-1.041 7.558 7.558 0 0 1 2.231-.327c.517 0 1.066.06 1.648.178a4.952 4.952 0 0 1 1.634.65c.508.313.925.76 1.25 1.342.325.58.489 1.334.489 2.26v8.43h-2.46v-1.736h-.101c-.162.32-.407.634-.732.942-.327.309-.745.565-1.256.77-.511.204-1.123.305-1.836.305Zm.548-1.984c.696 0 1.293-.135 1.79-.405.497-.27.876-.623 1.138-1.062.26-.438.391-.908.391-1.409v-1.637c-.09.089-.262.17-.517.244a7.34 7.34 0 0 1-.872.19c-.326.054-.643.1-.951.14l-.775.104a6.22 6.22 0 0 0-1.335.306c-.401.144-.722.348-.961.616-.238.267-.357.62-.357 1.062 0 .612.23 1.073.69 1.385.46.31 1.047.466 1.76.466h-.001ZM122.224 5.025V7.01h-7.068V5.025h7.068Zm-5.173-3.04h2.519v12.008c0 .48.073.838.219 1.078a1.1 1.1 0 0 0 .569.488c.233.086.487.128.762.128.202 0 .379-.014.531-.04l.354-.066.455 2.041a4.555 4.555 0 0 1-.624.17c-.27.058-.607.09-1.011.095a4.51 4.51 0 0 1-1.853-.347 3.17 3.17 0 0 1-1.39-1.124c-.354-.506-.531-1.143-.531-1.91V1.985ZM130.897 5.026V7.01h-7.311V5.026h7.311Zm-5.306 12.694V3.555c0-.794.177-1.453.531-1.98.354-.525.823-.92 1.406-1.18a4.614 4.614 0 0 1 1.904-.393 6.067 6.067 0 0 1 2.098.338l-.59 2c-.118-.034-.27-.074-.454-.12a2.818 2.818 0 0 0-.674-.07c-.612 0-1.048.148-1.309.445-.261.297-.392.728-.392 1.29V17.72h-2.52ZM137.773 17.975c-1.214 0-2.271-.273-3.175-.818-.905-.545-1.607-1.31-2.106-2.289-.5-.981-.75-2.127-.75-3.438 0-1.312.25-2.469.75-3.455.499-.986 1.201-1.753 2.106-2.298.904-.545 1.963-.818 3.175-.818 1.212 0 2.271.273 3.175.818.905.545 1.606 1.312 2.106 2.298.5.986.75 2.138.75 3.455 0 1.316-.25 2.457-.75 3.438-.499.981-1.201 1.744-2.106 2.289-.904.545-1.963.818-3.175.818Zm.008-2.074c.786 0 1.437-.204 1.954-.612.516-.41.9-.95 1.149-1.628.25-.678.375-1.425.375-2.24 0-.815-.125-1.555-.375-2.236-.25-.68-.633-1.227-1.149-1.64-.517-.415-1.168-.62-1.954-.62s-1.448.206-1.967.62c-.519.412-.904.96-1.153 1.64a6.414 6.414 0 0 0-.375 2.236c0 .81.124 1.562.375 2.24.25.677.634 1.22 1.153 1.628.519.407 1.175.612 1.967.612ZM145.82 17.72V5.026h2.435v2.016h.135a3.1 3.1 0 0 1 1.25-1.617 3.62 3.62 0 0 1 2.034-.591 10.671 10.671 0 0 1 1.071.058v2.363a5.174 5.174 0 0 0-.539-.095 5.594 5.594 0 0 0-.774-.054c-.595 0-1.125.122-1.589.368a2.83 2.83 0 0 0-1.099 1.017c-.27.432-.405.924-.405 1.475v7.752h-2.519v.002ZM154.41 17.72V5.025h2.418v2.067h.16c.27-.7.71-1.246 1.322-1.641.612-.394 1.345-.592 2.199-.592.855 0 1.591.198 2.178.596a3.5 3.5 0 0 1 1.301 1.637h.135c.31-.678.801-1.22 1.475-1.624.673-.405 1.477-.607 2.408-.607 1.175 0 2.132.361 2.877 1.082.744.722 1.116 1.81 1.116 3.265v8.512h-2.518V9.44c0-.86-.239-1.483-.716-1.869-.477-.386-1.047-.578-1.71-.578-.82 0-1.457.246-1.912.739-.455.492-.683 1.125-.683 1.896v8.092h-2.509V9.283c0-.69-.219-1.243-.657-1.662-.438-.419-1.008-.627-1.71-.627-.477 0-.917.122-1.318.368a2.742 2.742 0 0 0-.969 1.02c-.244.435-.365.94-.365 1.513v7.826h-2.519l-.003-.001Z"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="106" height="24" fill="none"><path fill="#163300" d="M58.7377.358803h6.4982L61.9668 23.681h-6.4983L58.7377.358803Zm-8.1922 0L46.1602 13.794 44.2465.358803h-4.5448L33.9608 13.7541 33.2433.358803h-6.2991L29.1369 23.681h5.2226L40.818 8.93022 43.0904 23.681h5.1428L56.7249.358803h-6.1794ZM105.103 13.9136H89.6744c.0798 3.0299 1.8937 5.0233 4.5648 5.0233 2.0133 0 3.608-1.0765 4.8439-3.1296l5.2079 2.3674C102.501 21.7017 98.729 24 94.0798 24 87.741 24 83.535 19.7342 83.535 12.8771 83.535 5.34221 88.4784 0 95.4552 0c6.1398 0 10.0068 4.14618 10.0068 10.6046 0 1.0765-.12 2.1528-.359 3.309Zm-5.7807-4.46512c0-2.71095-1.515-4.42525-3.9468-4.42525-2.5117 0-4.5848 1.79402-5.143 4.42525h9.0898ZM6.63326 7.38685 0 15.1389h11.844l1.3309-3.6553H8.09965l3.10105-3.58555.01-.09511L9.19424 4.3319h9.07196l-7.0323 19.3492h4.8124L24.538.358823H2.60021L6.63326 7.38685Zm69.16744-2.3636c2.2923 0 4.301 1.23273 6.0551 3.34565l.9216-6.57488C81.1429.687707 78.9303 0 76 0c-5.8205 0-9.0896 3.40865-9.0896 7.73421 0 2.99999 1.6744 4.83389 4.4252 6.01989l1.3156.598c2.4518 1.0466 3.1097 1.5649 3.1097 2.6712 0 1.1461-1.1064 1.8737-2.7907 1.8737-2.7808.01-5.0332-1.4153-6.7276-3.8472l-.939 6.699C67.2332 23.2201 69.7067 24 72.9702 24c5.5315 0 8.9302-3.1894 8.9302-7.6147 0-3.0099-1.3355-4.9434-4.7044-6.4584l-1.4351-.67772c-1.9934-.88708-2.6711-1.37543-2.6711-2.35216 0-1.05647.9269-1.87377 2.7109-1.87377Z"/></svg>