@transferwise/components 41.7.2 → 41.7.3-next-07dfb657b6.6

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 (236) hide show
  1. package/build/es/no-polyfill/accordion/AccordionItem/AccordionItem.js +1 -1
  2. package/build/es/no-polyfill/actionButton/ActionButton.js +1 -1
  3. package/build/es/no-polyfill/alert/Alert.js +1 -1
  4. package/build/es/no-polyfill/avatar/Avatar.js +1 -1
  5. package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.js +1 -1
  6. package/build/es/no-polyfill/body/Body.js +1 -0
  7. package/build/es/no-polyfill/body/Body.spec.js +1 -0
  8. package/build/es/no-polyfill/body/Body.story.js +1 -0
  9. package/build/es/no-polyfill/body/index.js +1 -0
  10. package/build/es/no-polyfill/card/Card.js +1 -1
  11. package/build/es/no-polyfill/checkbox/Checkbox.js +1 -1
  12. package/build/es/no-polyfill/checkboxButton/CheckboxButton.story.js +1 -1
  13. package/build/es/no-polyfill/chips/Chip.js +1 -1
  14. package/build/es/no-polyfill/circularButton/CircularButton.js +1 -1
  15. package/build/es/no-polyfill/common/Option/Option.js +1 -1
  16. package/build/es/no-polyfill/common/bottomSheet/BottomSheet.js +2 -2
  17. package/build/es/no-polyfill/common/closeButton/CloseButton.js +1 -1
  18. package/build/es/no-polyfill/common/index.js +1 -1
  19. package/build/es/no-polyfill/common/propsValues/typography.js +1 -0
  20. package/build/es/no-polyfill/common/propsValues/variant.js +1 -0
  21. package/build/es/no-polyfill/common/responsivePanel/ResponsivePanel.js +1 -1
  22. package/build/es/no-polyfill/common/theme.js +1 -1
  23. package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.js +1 -0
  24. package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.story.js +1 -0
  25. package/build/es/no-polyfill/criticalBanner/index.js +1 -0
  26. package/build/es/no-polyfill/dateLookup/dateHeader/DateHeader.js +1 -1
  27. package/build/es/no-polyfill/dateLookup/dayCalendar/table/DayCalendarTable.js +1 -1
  28. package/build/es/no-polyfill/dateLookup/monthCalendar/table/MonthCalendarTable.js +1 -1
  29. package/build/es/no-polyfill/dateLookup/tableLink/TableLink.js +1 -1
  30. package/build/es/no-polyfill/display/Display.story.js +1 -0
  31. package/build/es/no-polyfill/drawer/Drawer.js +1 -1
  32. package/build/es/no-polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +1 -1
  33. package/build/es/no-polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +1 -1
  34. package/build/es/no-polyfill/flowNavigation/animatedLabel/AnimatedLabel.js +1 -1
  35. package/build/es/no-polyfill/header/Header.js +2 -2
  36. package/build/es/no-polyfill/index.js +2 -2
  37. package/build/es/no-polyfill/inlineAlert/InlineAlert.js +1 -1
  38. package/build/es/no-polyfill/instructionsList/InstructionsList.js +3 -3
  39. package/build/es/no-polyfill/link/Link.js +2 -3
  40. package/build/es/no-polyfill/link/Link.story.js +1 -1
  41. package/build/es/no-polyfill/logo/Logo.js +1 -1
  42. package/build/es/no-polyfill/logo/svg/logo-business-inverse.svg +1 -0
  43. package/build/es/no-polyfill/logo/svg/logo-business.svg +1 -0
  44. package/build/es/no-polyfill/logo/svg/logo-inverse.svg +1 -0
  45. package/build/es/no-polyfill/logo/svg/logo.svg +1 -0
  46. package/build/es/no-polyfill/modal/Modal.js +1 -1
  47. package/build/es/no-polyfill/modal/Modal.story.js +1 -1
  48. package/build/es/no-polyfill/moneyInput/MoneyInput.js +1 -1
  49. package/build/es/no-polyfill/nudge/Nudge.js +1 -1
  50. package/build/es/no-polyfill/popover/Popover.js +1 -1
  51. package/build/es/no-polyfill/progressBar/ProgressBar.js +1 -1
  52. package/build/es/no-polyfill/radio/Radio.js +1 -1
  53. package/build/es/no-polyfill/select/Select.js +4 -4
  54. package/build/es/no-polyfill/select/option/Option.js +1 -1
  55. package/build/es/no-polyfill/snackbar/Snackbar.js +1 -1
  56. package/build/es/no-polyfill/stepper/Stepper.js +1 -1
  57. package/build/es/no-polyfill/summary/Summary.js +1 -1
  58. package/build/es/no-polyfill/switch/Switch.js +1 -1
  59. package/build/es/no-polyfill/switch/Switch.story.js +1 -1
  60. package/build/es/no-polyfill/tabs/Tab.js +1 -1
  61. package/build/es/no-polyfill/tile/Tile.js +1 -1
  62. package/build/es/no-polyfill/title/Title.js +1 -0
  63. package/build/es/no-polyfill/title/Title.spec.js +1 -0
  64. package/build/es/no-polyfill/title/Title.story.js +1 -0
  65. package/build/es/no-polyfill/title/index.js +1 -0
  66. package/build/es/no-polyfill/typeahead/typeaheadOption/TypeaheadOption.js +1 -1
  67. package/build/es/no-polyfill/upload/Upload.js +1 -1
  68. package/build/es/no-polyfill/upload/steps/completeStep/completeStep.js +1 -1
  69. package/build/es/no-polyfill/upload/steps/mediaUploadStep/mediaUploadStep.js +1 -1
  70. package/build/es/no-polyfill/upload/steps/processingStep/processingStep.js +1 -1
  71. package/build/es/no-polyfill/upload/steps/uploadImageStep/uploadImageStep.js +1 -1
  72. package/build/es/no-polyfill/uploadInput/UploadInput.story.js +1 -1
  73. package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.js +1 -1
  74. package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.js +2 -2
  75. package/build/es/polyfill/accordion/AccordionItem/AccordionItem.js +1 -1
  76. package/build/es/polyfill/actionButton/ActionButton.js +1 -1
  77. package/build/es/polyfill/alert/Alert.js +1 -1
  78. package/build/es/polyfill/avatar/Avatar.js +1 -1
  79. package/build/es/polyfill/avatarWrapper/AvatarWrapper.js +1 -1
  80. package/build/es/polyfill/body/Body.js +1 -0
  81. package/build/es/polyfill/body/Body.spec.js +1 -0
  82. package/build/es/polyfill/body/Body.story.js +1 -0
  83. package/build/es/polyfill/body/index.js +1 -0
  84. package/build/es/polyfill/card/Card.js +1 -1
  85. package/build/es/polyfill/checkbox/Checkbox.js +1 -1
  86. package/build/es/polyfill/checkboxButton/CheckboxButton.story.js +1 -1
  87. package/build/es/polyfill/chips/Chip.js +1 -1
  88. package/build/es/polyfill/circularButton/CircularButton.js +1 -1
  89. package/build/es/polyfill/common/Option/Option.js +1 -1
  90. package/build/es/polyfill/common/bottomSheet/BottomSheet.js +2 -2
  91. package/build/es/polyfill/common/closeButton/CloseButton.js +1 -1
  92. package/build/es/polyfill/common/index.js +1 -1
  93. package/build/es/polyfill/common/propsValues/typography.js +1 -0
  94. package/build/es/polyfill/common/propsValues/variant.js +1 -0
  95. package/build/es/polyfill/common/responsivePanel/ResponsivePanel.js +1 -1
  96. package/build/es/polyfill/common/theme.js +1 -1
  97. package/build/es/polyfill/criticalBanner/CriticalCommsBanner.js +1 -0
  98. package/build/es/polyfill/criticalBanner/CriticalCommsBanner.story.js +1 -0
  99. package/build/es/polyfill/criticalBanner/index.js +1 -0
  100. package/build/es/polyfill/dateLookup/dateHeader/DateHeader.js +1 -1
  101. package/build/es/polyfill/dateLookup/dayCalendar/table/DayCalendarTable.js +1 -1
  102. package/build/es/polyfill/dateLookup/monthCalendar/table/MonthCalendarTable.js +1 -1
  103. package/build/es/polyfill/dateLookup/tableLink/TableLink.js +1 -1
  104. package/build/es/polyfill/display/Display.story.js +1 -0
  105. package/build/es/polyfill/drawer/Drawer.js +1 -1
  106. package/build/es/polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +1 -1
  107. package/build/es/polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +1 -1
  108. package/build/es/polyfill/flowNavigation/animatedLabel/AnimatedLabel.js +1 -1
  109. package/build/es/polyfill/header/Header.js +2 -2
  110. package/build/es/polyfill/index.js +2 -2
  111. package/build/es/polyfill/inlineAlert/InlineAlert.js +1 -1
  112. package/build/es/polyfill/instructionsList/InstructionsList.js +3 -3
  113. package/build/es/polyfill/link/Link.js +2 -3
  114. package/build/es/polyfill/link/Link.story.js +1 -1
  115. package/build/es/polyfill/logo/Logo.js +1 -1
  116. package/build/es/polyfill/logo/svg/logo-business-inverse.svg +1 -0
  117. package/build/es/polyfill/logo/svg/logo-business.svg +1 -0
  118. package/build/es/polyfill/logo/svg/logo-inverse.svg +1 -0
  119. package/build/es/polyfill/logo/svg/logo.svg +1 -0
  120. package/build/es/polyfill/modal/Modal.js +1 -1
  121. package/build/es/polyfill/modal/Modal.story.js +1 -1
  122. package/build/es/polyfill/moneyInput/MoneyInput.js +1 -1
  123. package/build/es/polyfill/nudge/Nudge.js +1 -1
  124. package/build/es/polyfill/popover/Popover.js +1 -1
  125. package/build/es/polyfill/progressBar/ProgressBar.js +1 -1
  126. package/build/es/polyfill/radio/Radio.js +1 -1
  127. package/build/es/polyfill/select/Select.js +4 -4
  128. package/build/es/polyfill/select/option/Option.js +1 -1
  129. package/build/es/polyfill/snackbar/Snackbar.js +1 -1
  130. package/build/es/polyfill/stepper/Stepper.js +1 -1
  131. package/build/es/polyfill/summary/Summary.js +1 -1
  132. package/build/es/polyfill/switch/Switch.js +1 -1
  133. package/build/es/polyfill/switch/Switch.story.js +1 -1
  134. package/build/es/polyfill/tabs/Tab.js +1 -1
  135. package/build/es/polyfill/tile/Tile.js +1 -1
  136. package/build/es/polyfill/title/Title.js +1 -0
  137. package/build/es/polyfill/title/Title.spec.js +1 -0
  138. package/build/es/polyfill/title/Title.story.js +1 -0
  139. package/build/es/polyfill/title/index.js +1 -0
  140. package/build/es/polyfill/typeahead/typeaheadOption/TypeaheadOption.js +1 -1
  141. package/build/es/polyfill/upload/Upload.js +1 -1
  142. package/build/es/polyfill/upload/steps/completeStep/completeStep.js +1 -1
  143. package/build/es/polyfill/upload/steps/mediaUploadStep/mediaUploadStep.js +1 -1
  144. package/build/es/polyfill/upload/steps/processingStep/processingStep.js +1 -1
  145. package/build/es/polyfill/upload/steps/uploadImageStep/uploadImageStep.js +1 -1
  146. package/build/es/polyfill/uploadInput/UploadInput.story.js +1 -1
  147. package/build/es/polyfill/uploadInput/uploadButton/UploadButton.js +1 -1
  148. package/build/es/polyfill/uploadInput/uploadItem/UploadItem.js +2 -2
  149. package/build/main.css +1 -1
  150. package/build/styles/accordion/Accordion.css +1 -1
  151. package/build/styles/actionButton/ActionButton.css +1 -1
  152. package/build/styles/avatar/Avatar.css +1 -1
  153. package/build/styles/card/Card.css +1 -1
  154. package/build/styles/chips/Chip.css +1 -1
  155. package/build/styles/circularButton/CircularButton.css +1 -1
  156. package/build/styles/common/Option/Option.css +1 -1
  157. package/build/styles/common/bottomSheet/BottomSheet.css +1 -1
  158. package/build/styles/common/closeButton/CloseButton.css +1 -1
  159. package/build/styles/common/panel/Panel.css +1 -1
  160. package/build/styles/criticalBanner/CriticalCommsBanner.css +1 -0
  161. package/build/styles/dateLookup/DateLookup.css +1 -1
  162. package/build/styles/dimmer/Dimmer.css +1 -1
  163. package/build/styles/drawer/Drawer.css +1 -1
  164. package/build/styles/emphasis/Emphasis.css +1 -1
  165. package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +1 -1
  166. package/build/styles/header/Header.css +1 -1
  167. package/build/styles/info/Info.css +1 -1
  168. package/build/styles/instructionsList/InstructionsList.css +1 -1
  169. package/build/styles/lab/mobileNav/MobileNav.css +1 -1
  170. package/build/styles/link/Link.css +1 -1
  171. package/build/styles/main.css +1 -1
  172. package/build/styles/modal/Modal.css +1 -1
  173. package/build/styles/moneyInput/MoneyInput.css +1 -1
  174. package/build/styles/navigationOption/NavigationOption.css +1 -1
  175. package/build/styles/nudge/Nudge.css +1 -1
  176. package/build/styles/overlayHeader/OverlayHeader.css +1 -1
  177. package/build/styles/popover/Popover.css +1 -1
  178. package/build/styles/progress/Progress.css +1 -1
  179. package/build/styles/select/Select.css +1 -1
  180. package/build/styles/slidingPanel/SlidingPanel.css +1 -1
  181. package/build/styles/snackbar/Snackbar.css +1 -1
  182. package/build/styles/stepper/Stepper.css +1 -1
  183. package/build/styles/summary/Summary.css +1 -1
  184. package/build/styles/switch/Switch.css +1 -1
  185. package/build/styles/tabs/Tabs.css +1 -1
  186. package/build/styles/tile/Tile.css +1 -1
  187. package/build/styles/typeahead/Typeahead.css +1 -1
  188. package/build/styles/uploadInput/UploadInput.css +1 -1
  189. package/build/styles/uploadInput/uploadButton/UploadButton.css +1 -1
  190. package/build/styles/uploadInput/uploadItem/UploadItem.css +1 -1
  191. package/build/types/accordion/AccordionItem/AccordionItem.d.ts +3 -3
  192. package/build/types/alert/Alert.d.ts +3 -0
  193. package/build/types/body/Body.d.ts +14 -0
  194. package/build/types/body/Body.spec.d.ts +1 -0
  195. package/build/types/body/Body.story.d.ts +8 -0
  196. package/build/types/body/index.d.ts +1 -0
  197. package/build/types/common/RadioButton/RadioButton.d.ts +1 -1
  198. package/build/types/common/index.d.ts +2 -0
  199. package/build/types/common/panel/Panel.d.ts +1 -1
  200. package/build/types/common/propsValues/typography.d.ts +28 -0
  201. package/build/types/common/propsValues/variant.d.ts +4 -0
  202. package/build/types/common/responsivePanel/ResponsivePanel.d.ts +1 -1
  203. package/build/types/common/theme.d.ts +6 -2
  204. package/build/types/criticalBanner/CriticalCommsBanner.d.ts +12 -0
  205. package/build/types/criticalBanner/CriticalCommsBanner.story.d.ts +8 -0
  206. package/build/types/criticalBanner/index.d.ts +1 -0
  207. package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts +1 -1
  208. package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts +1 -1
  209. package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts +1 -1
  210. package/build/types/display/Display.story.d.ts +6 -0
  211. package/build/types/dynamicFieldDefinitionList/FormattedValue/FormattedValue.d.ts +2 -2
  212. package/build/types/header/Header.d.ts +1 -1
  213. package/build/types/header/Header.story.d.ts +1 -1
  214. package/build/types/index.d.ts +5 -2
  215. package/build/types/instructionsList/InstructionsList.d.ts +8 -11
  216. package/build/types/link/Link.d.ts +6 -5
  217. package/build/types/link/Link.story.d.ts +2 -2
  218. package/build/types/provider/Provider.story.d.ts +3 -3
  219. package/build/types/select/searchBox/SearchBox.d.ts +1 -1
  220. package/build/types/tabs/TabPanel.d.ts +3 -3
  221. package/build/types/tile/Tile.d.ts +2 -2
  222. package/build/types/title/Title.d.ts +14 -0
  223. package/build/types/title/Title.spec.d.ts +1 -0
  224. package/build/types/title/Title.story.d.ts +8 -0
  225. package/build/types/title/index.d.ts +1 -0
  226. package/build/types/tooltip/Tooltip.story.d.ts +1 -1
  227. package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts +2 -2
  228. package/build/types/upload/steps/mediaUploadStep/mediaUploadStep.d.ts +1 -1
  229. package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts +1 -1
  230. package/build/types/withNextPortal/withNextPortal.d.ts +2 -2
  231. package/build/umd/no-polyfill/main.js +1 -1
  232. package/build/umd/polyfill/main.js +1 -1
  233. package/package.json +22 -9
  234. package/scripts/generate-type-declarations.js +0 -1
  235. package/build/styles/actionOption/ActionOption.css +0 -1
  236. package/build/styles/progressBar/ProgressBar.css +0 -1
@@ -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<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
19
+ const media: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
20
20
  const onClick: PropTypes.Validator<(...args: any[]) => any>;
21
21
  const size: PropTypes.Requireable<string>;
22
- const title: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
22
+ const title: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
23
23
  }
24
24
  namespace defaultProps {
25
25
  const className_1: string;
@@ -0,0 +1,14 @@
1
+ import { LabelHTMLAttributes, LiHTMLAttributes } from 'react';
2
+ import { TitleTypes, Heading } from '../common';
3
+ declare type Props = LabelHTMLAttributes<HTMLHeadingElement | HTMLSpanElement | HTMLLabelElement> & LiHTMLAttributes<HTMLLIElement> & {
4
+ /**
5
+ * Default value will based one `type` prop
6
+ */
7
+ as?: 'span' | 'label' | 'li' | Heading;
8
+ /**
9
+ * Default value: {@link DEFAULT_TYPE}
10
+ */
11
+ type?: TitleTypes;
12
+ };
13
+ declare function Title({ as, type, className, ...props }: Props): JSX.Element;
14
+ export default Title;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import Title from './Title';
3
+ declare const _default: {
4
+ component: typeof Title;
5
+ title: string;
6
+ };
7
+ export default _default;
8
+ export declare const Basic: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from './Title';
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
3
  component: ({ position, children, label, className, }: {
4
- position?: "top" | "left" | "right" | "bottom" | undefined;
4
+ position?: "left" | "right" | "top" | "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<PropTypes.InferProps<{
5
+ const option: PropTypes.Validator<NonNullable<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<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
19
+ const usHelpImage: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
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<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
16
+ const usHelpImage: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
17
17
  const usLabel: PropTypes.Validator<string>;
18
18
  const usPlaceholder: PropTypes.Validator<string>;
19
19
  }
@@ -1,2 +1,2 @@
1
- import { ComponentType } from 'react';
2
- export default function withNextPortalWrapper<T>(Component: ComponentType<T>): (props: T) => import("react").ReactPortal | null;
1
+ /// <reference types="react" />
2
+ export default function withNextPortalWrapper<T extends Record<string, any>>(Component: React.FunctionComponent<T>): (props: T) => import("react").ReactPortal | null;