@transferwise/components 41.7.3-next-b40350b9cc.13 → 41.8.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 (241) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/build/es/no-polyfill/accordion/AccordionItem/AccordionItem.js +1 -1
  3. package/build/es/no-polyfill/actionButton/ActionButton.js +1 -1
  4. package/build/es/no-polyfill/alert/Alert.js +1 -1
  5. package/build/es/no-polyfill/avatar/Avatar.js +1 -1
  6. package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.js +1 -1
  7. package/build/es/no-polyfill/card/Card.js +1 -1
  8. package/build/es/no-polyfill/checkbox/Checkbox.js +1 -1
  9. package/build/es/no-polyfill/checkboxButton/CheckboxButton.story.js +1 -1
  10. package/build/es/no-polyfill/chips/Chip.js +1 -1
  11. package/build/es/no-polyfill/circularButton/CircularButton.js +1 -1
  12. package/build/es/no-polyfill/common/Option/Option.js +1 -1
  13. package/build/es/no-polyfill/common/bottomSheet/BottomSheet.js +2 -2
  14. package/build/es/no-polyfill/common/closeButton/CloseButton.js +1 -1
  15. package/build/es/no-polyfill/common/index.js +1 -1
  16. package/build/es/no-polyfill/common/responsivePanel/ResponsivePanel.js +1 -1
  17. package/build/es/no-polyfill/common/theme.js +1 -1
  18. package/build/es/no-polyfill/dateLookup/dateHeader/DateHeader.js +1 -1
  19. package/build/es/no-polyfill/dateLookup/dayCalendar/table/DayCalendarTable.js +1 -1
  20. package/build/es/no-polyfill/dateLookup/monthCalendar/table/MonthCalendarTable.js +1 -1
  21. package/build/es/no-polyfill/dateLookup/tableLink/TableLink.js +1 -1
  22. package/build/es/no-polyfill/drawer/Drawer.js +1 -1
  23. package/build/es/no-polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +1 -1
  24. package/build/es/no-polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +1 -1
  25. package/build/es/no-polyfill/flowNavigation/animatedLabel/AnimatedLabel.js +1 -1
  26. package/build/es/no-polyfill/header/Header.js +2 -2
  27. package/build/es/no-polyfill/header/Header.story.js +2 -1
  28. package/build/es/no-polyfill/index.js +2 -2
  29. package/build/es/no-polyfill/inlineAlert/InlineAlert.js +1 -1
  30. package/build/es/no-polyfill/instructionsList/InstructionsList.js +3 -3
  31. package/build/es/no-polyfill/link/Link.js +3 -2
  32. package/build/es/no-polyfill/link/Link.story.js +1 -1
  33. package/build/es/no-polyfill/logo/Logo.js +1 -1
  34. package/build/es/no-polyfill/modal/Modal.js +1 -1
  35. package/build/es/no-polyfill/modal/Modal.story.js +1 -1
  36. package/build/es/no-polyfill/moneyInput/MoneyInput.js +1 -1
  37. package/build/es/no-polyfill/nudge/Nudge.js +1 -1
  38. package/build/es/no-polyfill/popover/Popover.js +1 -1
  39. package/build/es/no-polyfill/progressBar/ProgressBar.js +1 -1
  40. package/build/es/no-polyfill/radio/Radio.js +1 -1
  41. package/build/es/no-polyfill/select/Select.js +4 -4
  42. package/build/es/no-polyfill/select/option/Option.js +1 -1
  43. package/build/es/no-polyfill/snackbar/Snackbar.js +1 -1
  44. package/build/es/no-polyfill/stepper/Stepper.js +1 -1
  45. package/build/es/no-polyfill/summary/Summary.js +1 -1
  46. package/build/es/no-polyfill/switch/Switch.js +1 -1
  47. package/build/es/no-polyfill/switch/Switch.story.js +1 -1
  48. package/build/es/no-polyfill/tabs/Tab.js +1 -1
  49. package/build/es/no-polyfill/tile/Tile.js +1 -1
  50. package/build/es/no-polyfill/typeahead/typeaheadOption/TypeaheadOption.js +1 -1
  51. package/build/es/no-polyfill/upload/Upload.js +1 -1
  52. package/build/es/no-polyfill/upload/steps/completeStep/completeStep.js +1 -1
  53. package/build/es/no-polyfill/upload/steps/mediaUploadStep/mediaUploadStep.js +1 -1
  54. package/build/es/no-polyfill/upload/steps/processingStep/processingStep.js +1 -1
  55. package/build/es/no-polyfill/upload/steps/uploadImageStep/uploadImageStep.js +1 -1
  56. package/build/es/no-polyfill/uploadInput/UploadInput.story.js +1 -1
  57. package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.js +1 -1
  58. package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.js +2 -2
  59. package/build/es/polyfill/accordion/AccordionItem/AccordionItem.js +1 -1
  60. package/build/es/polyfill/actionButton/ActionButton.js +1 -1
  61. package/build/es/polyfill/alert/Alert.js +1 -1
  62. package/build/es/polyfill/avatar/Avatar.js +1 -1
  63. package/build/es/polyfill/avatarWrapper/AvatarWrapper.js +1 -1
  64. package/build/es/polyfill/card/Card.js +1 -1
  65. package/build/es/polyfill/checkbox/Checkbox.js +1 -1
  66. package/build/es/polyfill/checkboxButton/CheckboxButton.story.js +1 -1
  67. package/build/es/polyfill/chips/Chip.js +1 -1
  68. package/build/es/polyfill/circularButton/CircularButton.js +1 -1
  69. package/build/es/polyfill/common/Option/Option.js +1 -1
  70. package/build/es/polyfill/common/bottomSheet/BottomSheet.js +2 -2
  71. package/build/es/polyfill/common/closeButton/CloseButton.js +1 -1
  72. package/build/es/polyfill/common/index.js +1 -1
  73. package/build/es/polyfill/common/responsivePanel/ResponsivePanel.js +1 -1
  74. package/build/es/polyfill/common/theme.js +1 -1
  75. package/build/es/polyfill/dateLookup/dateHeader/DateHeader.js +1 -1
  76. package/build/es/polyfill/dateLookup/dayCalendar/table/DayCalendarTable.js +1 -1
  77. package/build/es/polyfill/dateLookup/monthCalendar/table/MonthCalendarTable.js +1 -1
  78. package/build/es/polyfill/dateLookup/tableLink/TableLink.js +1 -1
  79. package/build/es/polyfill/drawer/Drawer.js +1 -1
  80. package/build/es/polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +1 -1
  81. package/build/es/polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +1 -1
  82. package/build/es/polyfill/flowNavigation/animatedLabel/AnimatedLabel.js +1 -1
  83. package/build/es/polyfill/header/Header.js +2 -2
  84. package/build/es/polyfill/header/Header.story.js +2 -1
  85. package/build/es/polyfill/index.js +2 -2
  86. package/build/es/polyfill/inlineAlert/InlineAlert.js +1 -1
  87. package/build/es/polyfill/instructionsList/InstructionsList.js +3 -3
  88. package/build/es/polyfill/link/Link.js +3 -2
  89. package/build/es/polyfill/link/Link.story.js +1 -1
  90. package/build/es/polyfill/logo/Logo.js +1 -1
  91. package/build/es/polyfill/modal/Modal.js +1 -1
  92. package/build/es/polyfill/modal/Modal.story.js +1 -1
  93. package/build/es/polyfill/moneyInput/MoneyInput.js +1 -1
  94. package/build/es/polyfill/nudge/Nudge.js +1 -1
  95. package/build/es/polyfill/popover/Popover.js +1 -1
  96. package/build/es/polyfill/progressBar/ProgressBar.js +1 -1
  97. package/build/es/polyfill/radio/Radio.js +1 -1
  98. package/build/es/polyfill/select/Select.js +4 -4
  99. package/build/es/polyfill/select/option/Option.js +1 -1
  100. package/build/es/polyfill/snackbar/Snackbar.js +1 -1
  101. package/build/es/polyfill/stepper/Stepper.js +1 -1
  102. package/build/es/polyfill/summary/Summary.js +1 -1
  103. package/build/es/polyfill/switch/Switch.js +1 -1
  104. package/build/es/polyfill/switch/Switch.story.js +1 -1
  105. package/build/es/polyfill/tabs/Tab.js +1 -1
  106. package/build/es/polyfill/tile/Tile.js +1 -1
  107. package/build/es/polyfill/typeahead/typeaheadOption/TypeaheadOption.js +1 -1
  108. package/build/es/polyfill/upload/Upload.js +1 -1
  109. package/build/es/polyfill/upload/steps/completeStep/completeStep.js +1 -1
  110. package/build/es/polyfill/upload/steps/mediaUploadStep/mediaUploadStep.js +1 -1
  111. package/build/es/polyfill/upload/steps/processingStep/processingStep.js +1 -1
  112. package/build/es/polyfill/upload/steps/uploadImageStep/uploadImageStep.js +1 -1
  113. package/build/es/polyfill/uploadInput/UploadInput.story.js +1 -1
  114. package/build/es/polyfill/uploadInput/uploadButton/UploadButton.js +1 -1
  115. package/build/es/polyfill/uploadInput/uploadItem/UploadItem.js +2 -2
  116. package/build/main.css +1 -1
  117. package/build/styles/accordion/Accordion.css +1 -1
  118. package/build/styles/actionButton/ActionButton.css +1 -1
  119. package/build/styles/actionOption/ActionOption.css +1 -0
  120. package/build/styles/avatar/Avatar.css +1 -1
  121. package/build/styles/card/Card.css +1 -1
  122. package/build/styles/chips/Chip.css +1 -1
  123. package/build/styles/circularButton/CircularButton.css +1 -1
  124. package/build/styles/common/Option/Option.css +1 -1
  125. package/build/styles/common/bottomSheet/BottomSheet.css +1 -1
  126. package/build/styles/common/closeButton/CloseButton.css +1 -1
  127. package/build/styles/common/panel/Panel.css +1 -1
  128. package/build/styles/dateLookup/DateLookup.css +1 -1
  129. package/build/styles/dimmer/Dimmer.css +1 -1
  130. package/build/styles/drawer/Drawer.css +1 -1
  131. package/build/styles/emphasis/Emphasis.css +1 -1
  132. package/build/styles/flowNavigation/FlowNavigation.css +1 -1
  133. package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +1 -1
  134. package/build/styles/header/Header.css +1 -1
  135. package/build/styles/info/Info.css +1 -1
  136. package/build/styles/instructionsList/InstructionsList.css +1 -1
  137. package/build/styles/lab/mobileNav/MobileNav.css +1 -1
  138. package/build/styles/link/Link.css +1 -1
  139. package/build/styles/main.css +1 -1
  140. package/build/styles/modal/Modal.css +1 -1
  141. package/build/styles/moneyInput/MoneyInput.css +1 -1
  142. package/build/styles/navigationOption/NavigationOption.css +1 -1
  143. package/build/styles/nudge/Nudge.css +1 -1
  144. package/build/styles/overlayHeader/OverlayHeader.css +1 -1
  145. package/build/styles/popover/Popover.css +1 -1
  146. package/build/styles/progress/Progress.css +1 -1
  147. package/build/styles/progressBar/ProgressBar.css +1 -0
  148. package/build/styles/select/Select.css +1 -1
  149. package/build/styles/slidingPanel/SlidingPanel.css +1 -1
  150. package/build/styles/snackbar/Snackbar.css +1 -1
  151. package/build/styles/stepper/Stepper.css +1 -1
  152. package/build/styles/summary/Summary.css +1 -1
  153. package/build/styles/switch/Switch.css +1 -1
  154. package/build/styles/tabs/Tabs.css +1 -1
  155. package/build/styles/tile/Tile.css +1 -1
  156. package/build/styles/typeahead/Typeahead.css +1 -1
  157. package/build/styles/uploadInput/UploadInput.css +1 -1
  158. package/build/styles/uploadInput/uploadButton/UploadButton.css +1 -1
  159. package/build/styles/uploadInput/uploadItem/UploadItem.css +1 -1
  160. package/build/types/accordion/AccordionItem/AccordionItem.d.ts +3 -3
  161. package/build/types/alert/Alert.d.ts +0 -3
  162. package/build/types/common/RadioButton/RadioButton.d.ts +1 -1
  163. package/build/types/common/commonProps.d.ts +2 -0
  164. package/build/types/common/index.d.ts +0 -2
  165. package/build/types/common/panel/Panel.d.ts +1 -1
  166. package/build/types/common/responsivePanel/ResponsivePanel.d.ts +1 -1
  167. package/build/types/common/theme.d.ts +2 -6
  168. package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts +1 -1
  169. package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts +1 -1
  170. package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts +1 -1
  171. package/build/types/dynamicFieldDefinitionList/FormattedValue/FormattedValue.d.ts +2 -2
  172. package/build/types/header/Header.d.ts +1 -1
  173. package/build/types/header/Header.story.d.ts +2 -1
  174. package/build/types/index.d.ts +2 -5
  175. package/build/types/instructionsList/InstructionsList.d.ts +11 -8
  176. package/build/types/link/Link.d.ts +5 -6
  177. package/build/types/link/Link.story.d.ts +2 -2
  178. package/build/types/provider/Provider.story.d.ts +3 -3
  179. package/build/types/select/searchBox/SearchBox.d.ts +1 -1
  180. package/build/types/tabs/TabPanel.d.ts +3 -3
  181. package/build/types/tile/Tile.d.ts +2 -2
  182. package/build/types/tooltip/Tooltip.story.d.ts +1 -1
  183. package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts +2 -2
  184. package/build/types/upload/steps/mediaUploadStep/mediaUploadStep.d.ts +1 -1
  185. package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts +1 -1
  186. package/build/types/withNextPortal/withNextPortal.d.ts +2 -2
  187. package/build/umd/no-polyfill/main.js +1 -1
  188. package/build/umd/polyfill/main.js +1 -1
  189. package/package.json +9 -22
  190. package/scripts/generate-type-declarations.js +1 -0
  191. package/build/es/no-polyfill/body/Body.js +0 -1
  192. package/build/es/no-polyfill/body/Body.spec.js +0 -1
  193. package/build/es/no-polyfill/body/Body.story.js +0 -1
  194. package/build/es/no-polyfill/body/index.js +0 -1
  195. package/build/es/no-polyfill/common/propsValues/typography.js +0 -1
  196. package/build/es/no-polyfill/common/propsValues/variant.js +0 -1
  197. package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.js +0 -1
  198. package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.story.js +0 -1
  199. package/build/es/no-polyfill/criticalBanner/index.js +0 -1
  200. package/build/es/no-polyfill/display/Display.story.js +0 -1
  201. package/build/es/no-polyfill/logo/svg/logo-business-inverse.svg +0 -1
  202. package/build/es/no-polyfill/logo/svg/logo-business.svg +0 -1
  203. package/build/es/no-polyfill/logo/svg/logo-inverse.svg +0 -1
  204. package/build/es/no-polyfill/logo/svg/logo.svg +0 -1
  205. package/build/es/no-polyfill/title/Title.js +0 -1
  206. package/build/es/no-polyfill/title/Title.spec.js +0 -1
  207. package/build/es/no-polyfill/title/Title.story.js +0 -1
  208. package/build/es/no-polyfill/title/index.js +0 -1
  209. package/build/es/polyfill/body/Body.js +0 -1
  210. package/build/es/polyfill/body/Body.spec.js +0 -1
  211. package/build/es/polyfill/body/Body.story.js +0 -1
  212. package/build/es/polyfill/body/index.js +0 -1
  213. package/build/es/polyfill/common/propsValues/typography.js +0 -1
  214. package/build/es/polyfill/common/propsValues/variant.js +0 -1
  215. package/build/es/polyfill/criticalBanner/CriticalCommsBanner.js +0 -1
  216. package/build/es/polyfill/criticalBanner/CriticalCommsBanner.story.js +0 -1
  217. package/build/es/polyfill/criticalBanner/index.js +0 -1
  218. package/build/es/polyfill/display/Display.story.js +0 -1
  219. package/build/es/polyfill/logo/svg/logo-business-inverse.svg +0 -1
  220. package/build/es/polyfill/logo/svg/logo-business.svg +0 -1
  221. package/build/es/polyfill/logo/svg/logo-inverse.svg +0 -1
  222. package/build/es/polyfill/logo/svg/logo.svg +0 -1
  223. package/build/es/polyfill/title/Title.js +0 -1
  224. package/build/es/polyfill/title/Title.spec.js +0 -1
  225. package/build/es/polyfill/title/Title.story.js +0 -1
  226. package/build/es/polyfill/title/index.js +0 -1
  227. package/build/styles/criticalBanner/CriticalCommsBanner.css +0 -1
  228. package/build/types/body/Body.d.ts +0 -14
  229. package/build/types/body/Body.spec.d.ts +0 -1
  230. package/build/types/body/Body.story.d.ts +0 -8
  231. package/build/types/body/index.d.ts +0 -1
  232. package/build/types/common/propsValues/typography.d.ts +0 -28
  233. package/build/types/common/propsValues/variant.d.ts +0 -4
  234. package/build/types/criticalBanner/CriticalCommsBanner.d.ts +0 -12
  235. package/build/types/criticalBanner/CriticalCommsBanner.story.d.ts +0 -8
  236. package/build/types/criticalBanner/index.d.ts +0 -1
  237. package/build/types/display/Display.story.d.ts +0 -6
  238. package/build/types/title/Title.d.ts +0 -14
  239. package/build/types/title/Title.spec.d.ts +0 -1
  240. package/build/types/title/Title.story.d.ts +0 -8
  241. package/build/types/title/index.d.ts +0 -1
@@ -1 +1 @@
1
- .np-summary{min-width:280px}.np-summary__title{justify-content:space-between;line-height:1.375;margin-top:2px}.np-summary__title .np-info__small{margin-top:2px}.np-theme-personal .np-summary__title .np-info .tw-icon{color:var(--color-interactive-primary)}.np-summary__icon{color:#37517e;color:var(--color-content-primary);position:relative}.np-summary__icon .np-summary-icon__done{color:#2ead4b;color:var(--color-interactive-positive)}.np-theme-personal .np-summary__icon .np-summary-icon__done{color:var(--color-sentiment-positive)}.np-summary__icon .np-summary-icon__pending{color:#df8700;color:var(--color-interactive-warning)}.np-theme-personal .np-summary__icon .np-summary-icon__pending{color:var(--color-sentiment-warning)}.np-summary__icon :nth-child(2){background-color:#fff;background-color:var(--color-background-screen);border-radius:50%;bottom:-6px;position:absolute;right:-8px}[dir=rtl] .np-summary__icon :nth-child(2){left:-8px;right:auto}.np-theme-personal .np-summary__icon :nth-child(2){background-color:transparent}.np-summary__description{font-size:.875rem;font-size:var(--font-size-14);line-height:1.42857;margin-top:4px;margin-top:var(--size-4)}.np-theme-personal .np-summary__description{color:#5d7079;color:var(--color-content-secondary);padding-right:32px;padding-right:calc(var(--size-24) + var(--size-8))}[dir=rtl] .np-theme-personal .np-summary__description{padding-left:32px;padding-left:calc(var(--size-24) + var(--size-8));padding-right:0}.np-summary__action{margin-top:4px;margin-top:var(--size-4)}.np-summary+.np-summary{margin-top:24px;margin-top:var(--size-24)}
1
+ .np-summary{min-width:280px}.np-summary__title{line-height:1.375;margin-top:2px}.np-summary__title .np-info__small{margin-top:2px}.np-summary__icon{color:#37517e;color:var(--color-content-primary);position:relative}.np-summary__icon .np-summary-icon__done{color:#2ead4b;color:var(--color-interactive-positive)}.np-summary__icon .np-summary-icon__pending{color:#df8700;color:var(--color-interactive-warning)}.np-summary__icon :nth-child(2){background-color:#fff;background-color:var(--color-background-screen);border-radius:50%;bottom:-6px;position:absolute;right:-8px}[dir=rtl] .np-summary__icon :nth-child(2){left:-8px;right:auto}.np-summary__description{line-height:1.42857}.np-summary__action,.np-summary__description{font-size:.875rem;font-size:var(--font-size-14);margin-top:4px;margin-top:var(--size-4)}.np-summary__action{line-height:1.28571}.np-summary+.np-summary{margin-top:24px;margin-top:var(--size-24)}
@@ -1 +1 @@
1
- .np-switch{border-radius:16px;display:inline-flex;overflow:hidden;padding:2px;width:50px}.np-switch--thumb{display:flex;transition:transform .35s cubic-bezier(0,.94,.62,1)}.np-switch--thumb .tw-icon{color:#fff}.np-switch--unchecked{background:#c9cbce;background:var(--color-interactive-secondary)}.np-switch--unchecked .switch--thumb{transform:translateX(0)}.np-switch--checked{background:#00a2dd;background:var(--color-interactive-accent)}.np-switch--checked .np-switch--thumb{transform:translateX(20px)}[dir=rtl] .np-switch--checked .np-switch--thumb{transform:translateX(-20px)}.np-switch input{display:none;height:0;left:-100%;opacity:0;position:absolute;width:0}[dir=rtl] .np-switch input{left:auto;right:-100%}.np-switch:not([aria-disabled]){cursor:pointer}.np-theme-personal .np-switch{padding:1px 2px;transition:outline-offset .1s ease}.np-theme-personal .np-switch--checked{background:var(--color-interactive-primary)}.np-theme-personal .np-switch:not(.disabled,:disabled):active,.np-theme-personal .np-switch:not(.disabled,:disabled):focus,.np-theme-personal .np-switch:not(.disabled,:disabled):focus-within{outline:3px solid var(--color-interactive-primary);outline-offset:2px}.np-theme-personal .np-switch--thumb{background-color:#fff;background-color:var(--color-background-screen);border-radius:50%;height:20px;margin:3px;width:20px}
1
+ .np-switch{border-radius:16px;display:inline-flex;overflow:hidden;padding:2px;width:50px}.np-switch--thumb{display:flex;transition:transform .35s cubic-bezier(0,.94,.62,1)}.np-switch--thumb .tw-icon{color:#fff}.np-switch--unchecked{background:#c9cbce;background:var(--color-interactive-secondary)}.np-switch--unchecked .switch--thumb{transform:translateX(0)}.np-switch--checked{background:#00a2dd;background:var(--color-interactive-accent)}.np-switch--checked .np-switch--thumb{transform:translateX(20px)}[dir=rtl] .np-switch--checked .np-switch--thumb{transform:translateX(-20px)}.np-switch input{display:none;height:0;left:-100%;opacity:0;position:absolute;width:0}[dir=rtl] .np-switch input{left:auto;right:-100%}.np-switch:not([aria-disabled]){cursor:pointer}
@@ -1 +1 @@
1
- .tabs{position:relative}.tabs__tab{color:#37517e;color:var(--color-content-primary);display:inline-block;margin-bottom:-3px;outline:none;padding:8px;padding:var(--size-8);text-align:center;transition:color .15s ease-in-out}.np-theme-personal .tabs__tab{color:#5d7079;color:var(--color-content-secondary);font-weight:400}.tabs__tab--selected{color:#0097c7;color:var(--color-content-accent)}.np-theme-personal .tabs__tab--selected{color:var(--color-interactive-primary);font-weight:600;font-weight:var(--font-weight-semi-bold)}.tabs__tab:not(.disabled,:disabled):focus{color:#0084b3;color:var(--color-content-accent-hover)}.np-theme-personal .tabs__tab:not(.disabled,:disabled):focus{color:var(--color-interactive-primary-hover);outline:2px solid var(--color-interactive-primary);outline-offset:-2px;transition:outline-offset .1s ease}@media (min-width:992px){.tabs__tab:not(.disabled,:disabled):hover{color:#0084b3;color:var(--color-content-accent-hover)}.np-theme-personal .tabs__tab:not(.disabled,:disabled):hover{color:var(--color-interactive-primary-hover);font-weight:600;font-weight:var(--font-weight-semi-bold)}}@media (hover:hover){.tabs__tab:not(.disabled,:disabled):hover{color:#0084b3;color:var(--color-content-accent-hover)}.np-theme-personal .tabs__tab:not(.disabled,:disabled):hover{color:var(--color-interactive-primary-hover);font-weight:600;font-weight:var(--font-weight-semi-bold)}}.tabs__tab-list{border-bottom:1px solid #0000001a;border-bottom:1px solid var(--color-border-neutral);list-style:none;margin:0;padding:0}[dir=rtl] .tabs__tab-list{padding-left:0;padding-right:0}.tabs__line{background-color:#00a2dd;background-color:var(--color-interactive-accent);height:3px;transition:transform .35s cubic-bezier(0,.94,.62,1)}.np-theme-personal .tabs__line{background-color:var(--color-interactive-primary);height:2px}.tabs__panel-container{width:100%}.tabs__slider{display:flex}.tabs__panel--selected{padding:8px;padding:var(--size-8)}.tabs__panel.enter{opacity:0}.tabs__panel.enter-active{opacity:1}.tabs__panel.exit{opacity:0}.tabs--inverse .tabs__tab-list{border-bottom-color:#0000001a;border-bottom-color:var(--color-border-neutral)}.tabs--inverse .tabs__tab:not(.tabs__tab--selected){color:#fff}.tabs.tabs--auto-width .tabs__tab{align-items:center;display:inline-flex;justify-content:center;min-height:40px;min-height:var(--size-40);padding:0 12px;padding:0 var(--size-12);vertical-align:middle}@media (min-width:576px){.tabs.tabs--auto-width .tabs__tab{padding:0 24px;padding:0 var(--size-24)}}
1
+ .tabs{position:relative}.tabs__tab{color:#37517e;color:var(--color-content-primary);cursor:pointer;display:inline-block;font-weight:600;font-weight:var(--font-weight-semi-bold);margin-bottom:-3px;outline:none;padding:8px;padding:var(--size-8);text-align:center;transition:color .15s ease-in-out}.tabs__tab--selected{color:#0097c7;color:var(--color-content-accent)}.tabs__tab:not(.disabled,:disabled):focus{color:#0084b3;color:var(--color-content-accent-hover)}@media (min-width:992px){.tabs__tab:not(.disabled,:disabled):hover{color:#0084b3;color:var(--color-content-accent-hover)}}@media (hover:hover){.tabs__tab:not(.disabled,:disabled):hover{color:#0084b3;color:var(--color-content-accent-hover)}}.tabs__tab-list{border-bottom:1px solid #0000001a;border-bottom:1px solid var(--color-border-neutral);list-style:none;margin:0;padding:0}[dir=rtl] .tabs__tab-list{padding-left:0;padding-right:0}.tabs__line{background-color:#00a2dd;background-color:var(--color-interactive-accent);height:3px;transition:transform .35s cubic-bezier(0,.94,.62,1)}.tabs__panel-container{width:100%}.tabs__slider{display:flex}.tabs__panel--selected{padding:8px;padding:var(--size-8)}.tabs__panel.enter{opacity:0}.tabs__panel.enter-active{opacity:1}.tabs__panel.exit{opacity:0}.tabs--inverse .tabs__tab-list{border-bottom-color:#0000001a;border-bottom-color:var(--color-border-neutral)}.tabs--inverse .tabs__tab:not(.tabs__tab--selected){color:#fff}.tabs.tabs--auto-width .tabs__tab{align-items:center;display:inline-flex;justify-content:center;min-height:40px;min-height:var(--size-40);padding:0 12px;padding:0 var(--size-12);vertical-align:middle}@media (min-width:576px){.tabs.tabs--auto-width .tabs__tab{padding:0 24px;padding:0 var(--size-24)}}
@@ -1 +1 @@
1
- .np-tile{border-radius:10px;border-radius:var(--radius-small);min-width:120px;width:100%}.np-theme-personal .np-tile{background-color:#86a7bd1a;background-color:var(--color-background-neutral)}.np-theme-personal .np-tile .tw-avatar .tw-avatar__content{background-color:var(--color-contrast)}.np-tile.decision{border:1px solid #0000001a;border:1px solid var(--color-border-neutral);margin-top:0}.np-theme-personal .np-tile.decision{border:none}.np-theme-personal .np-tile.decision:hover{background-color:var(--color-background-neutral-hover)}.np-theme-personal .np-tile.decision:active{background-color:var(--color-background-neutral-active)}.np-tile.np-decision__tile--fixed-width{width:300px}.np-tile__media{width:100%}.np-tile__description{color:#5d7079;color:var(--color-content-secondary);display:inline-block;margin-top:12px;margin-top:var(--size-12)}.np-tile--small.np-decision__tile--fixed-width{width:260px}.np-tile--small .np-tile__description{margin-top:4px;margin-top:var(--size-4)}.np-tile:hover .tw-avatar{pointer-events:none}.np-tile:hover .tw-avatar .tw-avatar__content{background-color:#fff;background-color:var(--color-background-screen)}
1
+ .np-tile{border-radius:3px;border-radius:var(--radius-small);min-width:120px;width:100%}.np-tile.decision{border:1px solid #0000001a;border:1px solid var(--color-border-neutral);margin-top:0}.np-tile.np-decision__tile--fixed-width{width:300px}.np-tile__media{width:100%}.np-tile__title{color:#37517e;color:var(--color-content-primary);font-size:1.25rem;font-size:var(--font-size-20);line-height:1.2;line-height:var(--line-height-title);margin-top:16px;margin-top:var(--size-16)}.np-tile__description{color:#5d7079;color:var(--color-content-secondary);font-weight:500;font-weight:var(--font-weight-regular);line-height:1.5;line-height:var(--line-height-body);margin-top:12px;margin-top:var(--size-12)}.np-tile--small.np-decision__tile--fixed-width{width:260px}.np-tile--small .np-tile__title{font-size:1rem;font-size:var(--font-size-16);line-height:1.2;line-height:var(--line-height-title);margin-top:12px;margin-top:var(--size-12)}.np-tile--small .np-tile__description{margin-top:4px;margin-top:var(--size-4)}.np-tile:hover .tw-avatar{pointer-events:none}.np-tile:hover .tw-avatar .tw-avatar__content{background-color:#fff;background-color:var(--color-background-screen)}
@@ -1 +1 @@
1
- .typeahead.open .input-group{z-index:1060}.typeahead .dropdown.btn-block{display:block}.typeahead .dropdown-menu{max-width:100%;width:100%}.typeahead--multiple .np-chip{animation-duration:.03s;animation-name:slide;animation-timing-function:ease-in-out;margin-bottom:auto}.typeahead--multiple .np-chip:first-child{animation-name:slideFirst}.typeahead--multiple .np-chip-remove{animation-duration:.03s;animation-name:fadeIn;animation-timing-function:ease-in-out}.typeahead--multiple .form-control{height:auto;min-height:auto;overflow:auto;padding-bottom:0;padding-top:0}.typeahead--multiple .typeahead__input{align-self:stretch;border:none;float:none;outline:none;padding:0}.typeahead--multiple .typeahead__input-aligner{display:inline-block;height:40px;width:0}.typeahead--multiple .typeahead__input-container{cursor:text;display:flex}.typeahead--multiple .sizer{position:absolute;visibility:hidden;white-space:pre;width:auto}.typeahead--multiple.typeahead--has-value .typeahead__input-container{padding-left:8px;padding-left:var(--size-8)}[dir=rtl] .typeahead--multiple.typeahead--has-value .typeahead__input-container{padding-left:0;padding-right:8px;padding-right:var(--size-8)}.typeahead--multiple.typeahead--has-value .typeahead__input{margin-bottom:-7px;margin-bottom:calc(var(--size-8)*-1 + 1px);margin-left:4px;margin-left:var(--size-4)}[dir=rtl] .typeahead--multiple.typeahead--has-value .typeahead__input{margin-left:0;margin-right:4px;margin-right:var(--size-4)}.typeahead--multiple.typeahead--has-value .typeahead__input-wrapper:after{content:"";height:calc(8px - 1);height:calc(var(--size-8) - 1);width:100%}.typeahead__input-wrapper{align-items:center;display:flex;flex:1;flex-wrap:wrap;margin-top:-1px;width:100%}.typeahead--empty.typeahead--multiple .typeahead__input-wrapper{margin:0;padding:0}.typeahead-sm.typeahead--multiple .typeahead__input-container{min-height:32px}.typeahead-sm.typeahead--multiple .typeahead__input{padding-top:0}.typeahead-md.typeahead--multiple .typeahead__input-container{min-height:48px}.typeahead-lg.typeahead--multiple .typeahead__input-container{min-height:72px}.typeahead-lg.typeahead--multiple .typeahead__input{padding-top:calc(8px - 1);padding-top:calc(var(--size-8) - 1)}.typeahead-lg.typeahead--multiple .typeahead__input-wrapper{margin:0;padding-bottom:8px;padding-bottom:var(--size-8)}.typeahead-lg.typeahead--multiple .typeahead__input-wrapper:after{content:none}.typeahead-lg.typeahead--multiple .np-chip{margin-bottom:0}@keyframes slide{0%{transform:translateX(-12px)}to{transform:none}}@keyframes slideFirst{0%{transform:translateX(-4px)}to{transform:none}}@keyframes fadeIn{0%{opacity:0}to{opacity:.6}}@media (max-width:575px){.typeahead .dropdown.open .dropdown-menu{bottom:auto;overflow:scroll;position:absolute}}
1
+ .typeahead.open .input-group{z-index:1060}.typeahead .dropdown.btn-block{display:block}.typeahead .dropdown-menu{max-width:100%;width:100%}.typeahead--multiple .np-chip{animation-duration:.03s;animation-name:slide;animation-timing-function:ease-in-out;margin-bottom:auto}.typeahead--multiple .np-chip:first-child{animation-name:slideFirst}.typeahead--multiple .np-chip-remove{animation-duration:.03s;animation-name:fadeIn;animation-timing-function:ease-in-out}.typeahead--multiple .form-control{height:auto;min-height:auto;overflow:auto;padding-bottom:0;padding-top:0}.typeahead--multiple .typeahead__input{align-self:stretch;border:none;float:none;font-size:inherit;line-height:inherit;outline:none;padding:2px 0 0}.typeahead--multiple .typeahead__input-aligner{display:inline-block;height:40px;width:0}.typeahead--multiple .typeahead__input-container{cursor:text;display:flex}.typeahead--multiple .sizer{position:absolute;visibility:hidden;white-space:pre;width:auto}.typeahead--multiple.typeahead--has-value .typeahead__input-container{padding-left:8px;padding-left:var(--size-8)}[dir=rtl] .typeahead--multiple.typeahead--has-value .typeahead__input-container{padding-left:0;padding-right:8px;padding-right:var(--size-8)}.typeahead--multiple.typeahead--has-value .typeahead__input{margin-bottom:-7px;margin-bottom:calc(var(--size-8)*-1 + 1px);margin-left:4px;margin-left:var(--size-4)}[dir=rtl] .typeahead--multiple.typeahead--has-value .typeahead__input{margin-left:0;margin-right:4px;margin-right:var(--size-4)}.typeahead--multiple.typeahead--has-value .typeahead__input-wrapper:after{content:"";height:calc(8px - 1);height:calc(var(--size-8) - 1);width:100%}.typeahead__input-wrapper{align-items:center;display:flex;flex:1;flex-wrap:wrap;margin-top:-1px;width:100%}.typeahead--empty.typeahead--multiple .typeahead__input-wrapper{margin:0;padding:0}.typeahead-sm.typeahead--multiple .typeahead__input-container{min-height:32px}.typeahead-sm.typeahead--multiple .typeahead__input{padding-top:0}.typeahead-md.typeahead--multiple .typeahead__input-container{min-height:48px}.typeahead-lg.typeahead--multiple .typeahead__input-container{min-height:72px}.typeahead-lg.typeahead--multiple .typeahead__input{padding-top:calc(8px - 1);padding-top:calc(var(--size-8) - 1)}.typeahead-lg.typeahead--multiple .typeahead__input-wrapper{margin:0;padding-bottom:8px;padding-bottom:var(--size-8)}.typeahead-lg.typeahead--multiple .typeahead__input-wrapper:after{content:none}.typeahead-lg.typeahead--multiple .np-chip{line-height:0;margin-bottom:0}@keyframes slide{0%{transform:translateX(-12px)}to{transform:none}}@keyframes slideFirst{0%{transform:translateX(-4px)}to{transform:none}}@keyframes fadeIn{0%{opacity:0}to{opacity:.6}}@media (max-width:575px){.typeahead .dropdown.open .dropdown-menu{bottom:auto;overflow:scroll;position:absolute}}
@@ -1 +1 @@
1
- .np-upload-input{border:1px solid #c9cbce;border:1px solid var(--color-interactive-secondary);border-radius:10px;border-radius:var(--radius-small)}.np-upload-input.form-control{height:auto;padding:initial}.np-theme-personal .np-upload-input .np-upload-button{border-radius:10px;border-radius:var(--radius-small)}.np-theme-personal .np-upload-input .np-upload-item__remove-button{border-radius:unset}.np-theme-personal .np-upload-input .np-upload-icon{color:var(--color-interactive-primary)}.np-theme-personal .np-upload-input .media-body{color:var(--color-content-link)}.np-theme-personal .np-upload-input .media-body .np-text-body-large-bold{text-decoration:underline}.np-theme-personal .np-upload-input .media-body .np-upload-description,.np-theme-personal .np-upload-input .media-body .text-positive{color:#5d7079!important;color:var(--color-content-secondary)!important}.np-theme-personal .np-upload-input .media-body .text-negative{color:var(--color-sentiment-negative)!important}
1
+ .np-upload-input{border:1px solid #c9cbce;border:1px solid var(--color-interactive-secondary);border-radius:3px;border-radius:var(--radius-small)}.np-upload-input.form-control{height:auto;padding:initial}
@@ -1 +1 @@
1
- .np-upload-button{border:0!important;padding:12px 16px;padding:var(--size-12) var(--size-16);width:100%}.np-upload-button.np-upload-accent{color:#00a2dd;color:var(--color-interactive-accent)}label.np-upload-button:not(.disabled):active,label.np-upload-button:not(.disabled):focus,label.np-upload-button:not(.disabled):hover{background-color:#86a7bd1a;background-color:var(--color-background-neutral)}.np-upload-button .np-upload-icon{align-items:center;display:flex}.np-upload-button-container.droppable{border:0}.np-upload-button-container .droppable-card-content{display:flex}.np-upload-button-container input[type=file]{opacity:0;position:absolute;z-index:-1}.np-upload-button-container input[type=file]:focus+label{background-color:#86a7bd1a;background-color:var(--color-background-neutral)}
1
+ .np-upload-button{border:0!important;letter-spacing:normal!important;padding:12px 16px;padding:var(--size-12) var(--size-16);text-decoration:none!important;width:100%}.np-upload-button.np-upload-accent{color:#00a2dd;color:var(--color-interactive-accent)}label.np-upload-button:not(.disabled):active,label.np-upload-button:not(.disabled):focus,label.np-upload-button:not(.disabled):hover{background-color:#86a7bd1a;background-color:var(--color-background-neutral)}.np-upload-button .np-upload-icon{align-items:center;display:flex}.np-upload-button .np-upload-description{font-weight:400;white-space:normal}.np-upload-button-container.droppable{border:0}.np-upload-button-container .droppable-card-content{display:flex}.np-upload-button-container input[type=file]{opacity:0;position:absolute;z-index:-1}.np-upload-button-container input[type=file]:focus+label{background-color:#86a7bd1a;background-color:var(--color-background-neutral)}
@@ -1 +1 @@
1
- .np-upload-item:not(:last-child):after{border-bottom:1px solid #0000001a;border-bottom:1px solid var(--color-border-neutral);content:" ";display:block;margin:0 16px;margin:0 var(--size-16);position:relative}.np-upload-item__link a{flex:1;outline:none;text-decoration:none}.np-upload-item__link a:active,.np-upload-item__link a:focus,.np-upload-item__link a:hover{background-color:#86a7bd1a;background-color:var(--color-background-neutral);text-decoration:none}.np-upload-item__link a:active~.np-upload-item__remove-button,.np-upload-item__link a:focus~.np-upload-item__remove-button,.np-upload-item__link a:hover~.np-upload-item__remove-button{background-color:#86a7bd1a;background-color:var(--color-background-neutral)}.np-upload-item__body{align-items:center;display:flex;justify-content:space-between}.np-upload-item__remove-button{align-self:stretch;background:transparent;color:#c9cbce;color:var(--color-interactive-secondary);flex-shrink:0;padding:12px 16px;padding:var(--size-12) var(--size-16)}.np-upload-item__remove-button:focus,.np-upload-item__remove-button:hover{color:#d03238!important;color:var(--color-interactive-negative-hover)!important}
1
+ .np-upload-item:not(:last-child):after{border-bottom:1px solid #0000001a;border-bottom:1px solid var(--color-border-neutral);content:" ";display:block;margin:0 16px;margin:0 var(--size-16);position:relative}.np-upload-item__link a{flex:1;font-weight:500;font-weight:var(--font-weight-regular);outline:none;text-decoration:none}.np-upload-item__link a:active,.np-upload-item__link a:focus,.np-upload-item__link a:hover{background-color:#86a7bd1a;background-color:var(--color-background-neutral);text-decoration:none}.np-upload-item__link a:active~.np-upload-item__remove-button,.np-upload-item__link a:focus~.np-upload-item__remove-button,.np-upload-item__link a:hover~.np-upload-item__remove-button{background-color:#86a7bd1a;background-color:var(--color-background-neutral)}.np-upload-item__body{align-items:center;display:flex;justify-content:space-between}.np-upload-item__remove-button{align-self:stretch;background:transparent;color:#c9cbce;color:var(--color-interactive-secondary);flex-shrink:0;padding:12px 16px;padding:var(--size-12) var(--size-16)}.np-upload-item__remove-button:focus,.np-upload-item__remove-button:hover{color:#d03238!important;color:var(--color-interactive-negative-hover)!important}
@@ -1,5 +1,5 @@
1
1
  export default AccordionItem;
2
- declare function AccordionItem({ "aria-label": ariaLabel, id, title, content, onClick, open, icon, theme: oldTheme, }: {
2
+ declare function AccordionItem({ "aria-label": ariaLabel, id, title, content, onClick, open, icon, theme, }: {
3
3
  "aria-label": any;
4
4
  id: any;
5
5
  title: any;
@@ -12,12 +12,12 @@ declare function AccordionItem({ "aria-label": ariaLabel, id, title, content, on
12
12
  declare namespace AccordionItem {
13
13
  const propTypes: {
14
14
  'aria-label': PropTypes.Requireable<string>;
15
- content: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
15
+ content: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
16
16
  icon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
17
  id: PropTypes.Requireable<string>;
18
18
  open: PropTypes.Validator<boolean>;
19
19
  onClick: PropTypes.Validator<(...args: any[]) => any>;
20
- title: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
20
+ title: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
21
21
  theme: PropTypes.Requireable<string>;
22
22
  };
23
23
  const defaultProps: {
@@ -9,8 +9,6 @@ export interface AlertAction {
9
9
 
10
10
  export type AlertType = "negative" | "neutral" | "positive" | "warning" | "info" | "error" | "success";
11
11
 
12
- export type AlertVariant = "desktop" | "mobile";
13
-
14
12
  export interface AlertProps {
15
13
  /**
16
14
  * An optional call to action to sit under the main body of the alert. If your label is short, use aria-label to provide more context
@@ -33,7 +31,6 @@ export interface AlertProps {
33
31
  * The type dictates which icon and colour will be used
34
32
  */
35
33
  type?: AlertType;
36
- variant?: AlertVariant;
37
34
  /**
38
35
  * @deprecated no arrow for `Alert` component anymore, consider to use [`InlineAlert`](https://transferwise.github.io/neptune-web/components/alerts/InlineAlert) component
39
36
  */
@@ -15,7 +15,7 @@ declare namespace RadioButton {
15
15
  const checked: PropTypes.Requireable<boolean>;
16
16
  const onChange: PropTypes.Requireable<(...args: any[]) => any>;
17
17
  const disabled: PropTypes.Requireable<boolean>;
18
- const value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
18
+ const value: PropTypes.Requireable<string | number>;
19
19
  const readOnly: PropTypes.Requireable<boolean>;
20
20
  }
21
21
  namespace defaultProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare type CommonProps = {
2
3
  /**
3
4
  * Space-separated list of the case-sensitive CSS classes,
@@ -13,6 +14,7 @@ export declare type AriaLabelProperty = {
13
14
  export declare type LinkProps = {
14
15
  href: string;
15
16
  target?: '_blank' | '_self' | '_parent' | '_top';
17
+ onClick?: React.MouseEventHandler<HTMLElement>;
16
18
  };
17
19
  export declare type Heading = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
18
20
  export declare type ParentElement = HTMLElement | Window | Document;
@@ -4,7 +4,6 @@ export * from "./theme";
4
4
  export * from "./direction";
5
5
  export * from "./propsValues/control";
6
6
  export * from "./propsValues/size";
7
- export * from "./propsValues/typography";
8
7
  export * from "./propsValues/width";
9
8
  export * from "./propsValues/position";
10
9
  export * from "./propsValues/scroll";
@@ -18,7 +17,6 @@ export { Layout } from "./propsValues/layouts";
18
17
  export { Status } from "./propsValues/status";
19
18
  export { Sentiment } from "./propsValues/sentiment";
20
19
  export { ProfileType } from "./propsValues/profileType";
21
- export { Variant } from "./propsValues/variant";
22
20
  export { MarkdownNodeType } from "./propsValues/markdownNodeType";
23
21
  export { FileType } from "./fileType";
24
22
  export { Key } from "./key";
@@ -16,7 +16,7 @@ declare const Panel: import("react").ForwardRefExoticComponent<{
16
16
  altAxis?: boolean | undefined;
17
17
  open?: boolean | undefined;
18
18
  onClose?: ((event: Event | SyntheticEvent) => void) | undefined;
19
- position?: "left" | "right" | "top" | "bottom" | undefined;
19
+ position?: "top" | "left" | "right" | "bottom" | undefined;
20
20
  anchorRef: RefObject<Element>;
21
21
  anchorWidth?: boolean | undefined;
22
22
  } & {
@@ -5,7 +5,7 @@ declare const ResponsivePanel: import("react").ForwardRefExoticComponent<{
5
5
  altAxis?: boolean | undefined;
6
6
  open?: boolean | undefined;
7
7
  onClose?: ((event: Event | import("react").SyntheticEvent<Element, Event>) => void) | undefined;
8
- position?: "left" | "right" | "top" | "bottom" | undefined;
8
+ position?: "top" | "left" | "right" | "bottom" | undefined;
9
9
  anchorRef: import("react").RefObject<Element>;
10
10
  anchorWidth?: boolean | undefined;
11
11
  } & {
@@ -1,13 +1,9 @@
1
1
  export declare enum Theme {
2
2
  LIGHT = "light",
3
3
  DARK = "dark",
4
- NAVY = "navy",
5
- PERSONAL = "personal"
4
+ NAVY = "navy"
6
5
  }
7
6
  export declare type ThemeLight = 'light';
8
7
  export declare type ThemeDark = 'dark';
9
8
  export declare type ThemeNavy = 'navy';
10
- export declare type ThemePersonal = 'personal';
11
- export declare type ThemeType = ThemeLight | ThemeDark | ThemeNavy | ThemePersonal;
12
- export declare const modernThemes: Set<ThemeType>;
13
- export declare const getThemeClassName: (theme: ThemeType) => string;
9
+ export declare type ThemeType = ThemeLight | ThemeDark | ThemeNavy;
@@ -1,4 +1,4 @@
1
- declare const _default: import("react").FC<import("react-intl").WithIntlProps<any>> & {
1
+ declare var _default: import("react").FC<import("react-intl").WithIntlProps<any>> & {
2
2
  WrappedComponent: import("react").ComponentType<any>;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("react").FC<import("react-intl").WithIntlProps<any>> & {
1
+ declare var _default: import("react").FC<import("react-intl").WithIntlProps<any>> & {
2
2
  WrappedComponent: import("react").ComponentType<any>;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("react").FC<import("react-intl").WithIntlProps<any>> & {
1
+ declare var _default: import("react").FC<import("react-intl").WithIntlProps<any>> & {
2
2
  WrappedComponent: import("react").ComponentType<any>;
3
3
  };
4
4
  export default _default;
@@ -5,7 +5,7 @@ declare function FormattedValue({ field, value }: {
5
5
  }): JSX.Element;
6
6
  declare namespace FormattedValue {
7
7
  namespace propTypes {
8
- const field: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
8
+ const field: PropTypes.Validator<PropTypes.InferProps<{
9
9
  control: PropTypes.Validator<string>;
10
10
  displayFormat: PropTypes.Requireable<string>;
11
11
  refreshRequirementsOnChange: PropTypes.Requireable<boolean>;
@@ -18,7 +18,7 @@ declare namespace FormattedValue {
18
18
  values: PropTypes.Requireable<(PropTypes.InferProps<{
19
19
  value: PropTypes.Requireable<any>;
20
20
  }> | null | undefined)[]>;
21
- }>>>;
21
+ }>>;
22
22
  const value: PropTypes.Validator<any>;
23
23
  }
24
24
  }
@@ -24,5 +24,5 @@ export declare type HeaderProps = CommonProps & {
24
24
  * Neptune Web: https://transferwise.github.io/neptune-web/components/content/Header
25
25
  *
26
26
  */
27
- export declare const Header: ({ action, as, title, className }: HeaderProps) => JSX.Element;
27
+ export declare const Header: ({ action, as: Element, title, className }: HeaderProps) => JSX.Element;
28
28
  export default Header;
@@ -1,9 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- component: ({ action, as, title, className }: import("./Header").HeaderProps) => JSX.Element;
3
+ component: ({ action, as: Element, title, className }: import("./Header").HeaderProps) => JSX.Element;
4
4
  title: string;
5
5
  };
6
6
  export default _default;
7
7
  export declare const Basic: () => JSX.Element;
8
8
  export declare const WithAction: () => JSX.Element;
9
9
  export declare const WithActionAsLink: () => JSX.Element;
10
+ export declare const WithActionAsLinkPreventingNavigationWithTracking: () => JSX.Element;
@@ -3,12 +3,10 @@
3
3
  */
4
4
  export type { UploadedFile, UploadError, UploadResponse } from './uploadInput/types';
5
5
  export type { ModalProps } from './modal';
6
- export type { LayoutDirection, TypographyTypes, TitleTypes, BodyTypes, LinkTypes } from './common';
6
+ export type { LayoutDirection } from './common';
7
7
  /**
8
8
  * Components
9
9
  */
10
- export { default as Title } from './title';
11
- export { default as Body } from './body';
12
10
  export { default as Accordion } from './accordion';
13
11
  export { default as ActionButton } from './actionButton';
14
12
  export { default as ActionOption } from './actionOption';
@@ -79,7 +77,6 @@ export { default as Typeahead } from './typeahead';
79
77
  export { default as Upload } from './upload';
80
78
  export { default as UploadInput } from './uploadInput';
81
79
  export { SnackbarConsumer, SnackbarContext } from './snackbar/SnackbarContext';
82
- export { default as CriticalCommsBanner } from './criticalBanner';
83
80
  /**
84
81
  * Hooks
85
82
  */
@@ -88,7 +85,7 @@ export { useDirection, useLayout } from './common/hooks';
88
85
  /**
89
86
  * Enums
90
87
  */
91
- export { Direction, Size, Width, Sentiment, Priority, ControlType, Type, Theme, DateMode, MonthFormat, Position, Scroll, ProfileType, Breakpoint, Layout, Status, MarkdownNodeType, Typography, Variant, } from './common';
88
+ export { Direction, Size, Width, Sentiment, Priority, ControlType, Type, Theme, DateMode, MonthFormat, Position, Scroll, ProfileType, Breakpoint, Layout, Status, MarkdownNodeType, } from './common';
92
89
  export { AvatarType } from './avatar';
93
90
  export { InfoPresentation } from './info';
94
91
  export { UploadStep } from './upload';
@@ -1,8 +1,11 @@
1
- import { ReactNode } from 'react';
2
- import { CommonProps } from '../common';
3
- declare type Props = CommonProps & {
4
- dos?: ReactNode[];
5
- donts?: ReactNode[];
6
- };
7
- declare const InstructionsList: (props: Props) => JSX.Element;
8
- export default InstructionsList;
1
+ import * as React from 'react';
2
+
3
+ export interface InstructionsListProps {
4
+ dos?: React.ReactNode[];
5
+ donts?: React.ReactNode[];
6
+ }
7
+
8
+ declare const InstructionsList: React.FC<InstructionsListProps>;
9
+
10
+ export default InstructionsList;
11
+
@@ -1,12 +1,11 @@
1
- import { AnchorHTMLAttributes } from 'react';
2
- import { LinkLarge, LinkDefault } from '../common';
3
- declare type Props = AnchorHTMLAttributes<HTMLAnchorElement> & {
4
- type?: LinkLarge | LinkDefault;
5
- };
1
+ import { PropsWithChildren } from 'react';
2
+ import { AriaLabelProperty, CommonProps, LinkProps } from '../common';
3
+ declare type Props = PropsWithChildren<CommonProps & AriaLabelProperty & LinkProps>;
6
4
  /**
7
5
  * Standard Link component with navigate away icon
8
6
  *
9
7
  * Documentation: https://transferwise.github.io/neptune-web/components/content/Link
8
+ *
10
9
  */
11
- declare const Link: ({ className, children, type, ...props }: Props) => JSX.Element;
10
+ declare const Link: ({ className, children, href, target, "aria-label": ariaLabel, onClick }: Props) => JSX.Element;
12
11
  export default Link;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- component: ({ className, children, type, ...props }: import("react").AnchorHTMLAttributes<HTMLAnchorElement> & {
4
- type?: "link-default" | "link-large" | undefined;
3
+ component: ({ className, children, href, target, "aria-label": ariaLabel, onClick }: import("../common").CommonProps & import("../common").AriaLabelProperty & import("../common").LinkProps & {
4
+ children?: import("react").ReactNode;
5
5
  }) => JSX.Element;
6
6
  title: string;
7
7
  };
@@ -6,11 +6,11 @@ declare const _default: {
6
6
  children: any;
7
7
  }): JSX.Element;
8
8
  propTypes: {
9
- i18n: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
9
+ i18n: import("prop-types").Validator<import("prop-types").InferProps<{
10
10
  locale: import("prop-types").Validator<string>;
11
- messages: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{}>>>;
11
+ messages: import("prop-types").Validator<import("prop-types").InferProps<{}>>;
12
12
  defaultRichTextElements: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
13
- }>>>;
13
+ }>>;
14
14
  children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
15
15
  };
16
16
  defaultProps: {
@@ -1,5 +1,5 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
2
  declare const SearchBox: import("react").ForwardRefExoticComponent<{
3
3
  classNames?: Record<string, string> | undefined;
4
- } & Pick<InputHTMLAttributes<HTMLInputElement>, "value" | "placeholder" | "onChange" | "onClick"> & import("react").RefAttributes<HTMLInputElement>>;
4
+ } & Pick<InputHTMLAttributes<HTMLInputElement>, "value" | "onClick" | "placeholder" | "onChange"> & import("react").RefAttributes<HTMLInputElement>>;
5
5
  export default SearchBox;
@@ -7,12 +7,12 @@ declare function TabPanel({ children, id, tabId, style }: {
7
7
  }): JSX.Element;
8
8
  declare namespace TabPanel {
9
9
  namespace propTypes {
10
- const children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
10
+ const children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
11
11
  const id: PropTypes.Validator<string>;
12
12
  const tabId: PropTypes.Validator<string>;
13
- const style: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
13
+ const style: PropTypes.Validator<PropTypes.InferProps<{
14
14
  width: PropTypes.Validator<string>;
15
- }>>>;
15
+ }>>;
16
16
  }
17
17
  }
18
18
  import PropTypes from "prop-types";
@@ -16,10 +16,10 @@ export namespace Tile {
16
16
  const disabled: PropTypes.Requireable<boolean>;
17
17
  const href: PropTypes.Validator<string>;
18
18
  const target: PropTypes.Requireable<string>;
19
- const media: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
19
+ const media: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
20
20
  const onClick: PropTypes.Validator<(...args: any[]) => any>;
21
21
  const size: PropTypes.Requireable<string>;
22
- const title: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
22
+ const title: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
23
23
  }
24
24
  namespace defaultProps {
25
25
  const className_1: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
3
  component: ({ position, children, label, className, }: {
4
- position?: "left" | "right" | "top" | "bottom" | undefined;
4
+ position?: "top" | "left" | "right" | "bottom" | undefined;
5
5
  label: import("react").ReactNode;
6
6
  } & {
7
7
  children?: import("react").ReactNode;
@@ -2,11 +2,11 @@ export default Option;
2
2
  declare function Option(props: any): JSX.Element;
3
3
  declare namespace Option {
4
4
  namespace propTypes {
5
- const option: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
5
+ const option: PropTypes.Validator<PropTypes.InferProps<{
6
6
  label: PropTypes.Validator<string>;
7
7
  note: PropTypes.Requireable<string>;
8
8
  secondary: PropTypes.Requireable<string>;
9
- }>>>;
9
+ }>>;
10
10
  const query: PropTypes.Requireable<string>;
11
11
  const selected: PropTypes.Requireable<boolean>;
12
12
  const onClick: PropTypes.Requireable<(...args: any[]) => any>;
@@ -16,7 +16,7 @@ declare namespace MediaUploadStep {
16
16
  const usAccept: PropTypes.Validator<string>;
17
17
  const usButtonText: PropTypes.Validator<string>;
18
18
  const usDisabled: PropTypes.Validator<boolean>;
19
- const usHelpImage: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
19
+ const usHelpImage: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
20
20
  const usLabel: PropTypes.Validator<string>;
21
21
  const usPlaceholder: PropTypes.Validator<string>;
22
22
  }
@@ -13,7 +13,7 @@ declare namespace UploadImageStep {
13
13
  const usAccept: PropTypes.Validator<string>;
14
14
  const usButtonText: PropTypes.Validator<string>;
15
15
  const usDisabled: PropTypes.Validator<boolean>;
16
- const usHelpImage: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
16
+ const usHelpImage: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
17
17
  const usLabel: PropTypes.Validator<string>;
18
18
  const usPlaceholder: PropTypes.Validator<string>;
19
19
  }
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export default function withNextPortalWrapper<T extends Record<string, any>>(Component: React.FunctionComponent<T>): (props: T) => import("react").ReactPortal | null;
1
+ import { ComponentType } from 'react';
2
+ export default function withNextPortalWrapper<T>(Component: ComponentType<T>): (props: T) => import("react").ReactPortal | null;