@transferwise/components 38.0.1-beta-e06d01da76.13 → 38.2.2

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 (201) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/build/es/no-polyfill/accordion/AccordionItem/AccordionItem.js +1 -1
  3. package/build/es/no-polyfill/alert/Alert.js +1 -1
  4. package/build/es/no-polyfill/card/Card.js +1 -1
  5. package/build/es/no-polyfill/checkbox/Checkbox.js +1 -1
  6. package/build/es/no-polyfill/checkboxButton/CheckboxButton.js +1 -1
  7. package/build/es/no-polyfill/checkboxOption/CheckboxOption.js +1 -1
  8. package/build/es/no-polyfill/common/Option/Option.js +1 -1
  9. package/build/es/no-polyfill/common/bottomSheet/BottomSheet.js +2 -2
  10. package/build/es/no-polyfill/common/domHelpers/index.js +1 -1
  11. package/build/es/no-polyfill/common/hooks/index.js +1 -1
  12. package/build/es/no-polyfill/common/index.js +1 -1
  13. package/build/es/no-polyfill/common/locale/index.js +3 -13
  14. package/build/es/no-polyfill/common/theme.js +1 -1
  15. package/build/es/no-polyfill/dateInput/DateInput.js +2 -2
  16. package/build/es/no-polyfill/decision/Decision.js +3 -3
  17. package/build/es/no-polyfill/drawer/Drawer.js +1 -1
  18. package/build/es/no-polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +1 -1
  19. package/build/es/no-polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +1 -1
  20. package/build/es/no-polyfill/index.js +4 -4
  21. package/build/es/no-polyfill/logo/Logo.js +1 -1
  22. package/build/es/no-polyfill/navigationOption/NavigationOption.js +1 -1
  23. package/build/es/no-polyfill/nudge/Nudge.js +1 -1
  24. package/build/es/no-polyfill/phoneNumberInput/PhoneNumberInput.js +1 -1
  25. package/build/es/no-polyfill/provider/Provider.js +1 -1
  26. package/build/es/no-polyfill/provider/direction/DirectionProvider.js +1 -1
  27. package/build/es/no-polyfill/provider/index.js +1 -1
  28. package/build/es/no-polyfill/radio/Radio.js +1 -1
  29. package/build/es/no-polyfill/radioOption/RadioOption.js +1 -1
  30. package/build/es/no-polyfill/select/option/Option.js +1 -1
  31. package/build/es/no-polyfill/snackbar/Snackbar.js +1 -1
  32. package/build/es/no-polyfill/snackbar/SnackbarProvider.js +1 -1
  33. package/build/es/no-polyfill/stepper/Stepper.js +1 -1
  34. package/build/es/no-polyfill/summary/Summary.js +1 -1
  35. package/build/es/no-polyfill/switch/Switch.js +1 -1
  36. package/build/es/no-polyfill/tabs/Tabs.js +1 -1
  37. package/build/es/no-polyfill/tooltip/Tooltip.js +1 -8
  38. package/build/es/no-polyfill/upload/Upload.js +1 -1
  39. package/build/es/no-polyfill/upload/steps/completeStep/completeStep.js +1 -1
  40. package/build/es/no-polyfill/upload/steps/processingStep/processingStep.js +1 -1
  41. package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.js +1 -1
  42. package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.js +2 -2
  43. package/build/es/polyfill/accordion/AccordionItem/AccordionItem.js +1 -1
  44. package/build/es/polyfill/alert/Alert.js +1 -1
  45. package/build/es/polyfill/card/Card.js +1 -1
  46. package/build/es/polyfill/checkbox/Checkbox.js +1 -1
  47. package/build/es/polyfill/checkboxButton/CheckboxButton.js +1 -1
  48. package/build/es/polyfill/checkboxOption/CheckboxOption.js +1 -1
  49. package/build/es/polyfill/common/Option/Option.js +1 -1
  50. package/build/es/polyfill/common/bottomSheet/BottomSheet.js +2 -2
  51. package/build/es/polyfill/common/domHelpers/index.js +1 -1
  52. package/build/es/polyfill/common/hooks/index.js +1 -1
  53. package/build/es/polyfill/common/index.js +1 -1
  54. package/build/es/polyfill/common/locale/index.js +3 -13
  55. package/build/es/polyfill/common/theme.js +1 -1
  56. package/build/es/polyfill/dateInput/DateInput.js +2 -2
  57. package/build/es/polyfill/decision/Decision.js +3 -3
  58. package/build/es/polyfill/drawer/Drawer.js +1 -1
  59. package/build/es/polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +1 -1
  60. package/build/es/polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +1 -1
  61. package/build/es/polyfill/index.js +4 -4
  62. package/build/es/polyfill/logo/Logo.js +1 -1
  63. package/build/es/polyfill/navigationOption/NavigationOption.js +1 -1
  64. package/build/es/polyfill/nudge/Nudge.js +1 -1
  65. package/build/es/polyfill/phoneNumberInput/PhoneNumberInput.js +1 -1
  66. package/build/es/polyfill/provider/Provider.js +1 -1
  67. package/build/es/polyfill/provider/direction/DirectionProvider.js +1 -1
  68. package/build/es/polyfill/provider/index.js +1 -1
  69. package/build/es/polyfill/radio/Radio.js +1 -1
  70. package/build/es/polyfill/radioOption/RadioOption.js +1 -1
  71. package/build/es/polyfill/select/option/Option.js +1 -1
  72. package/build/es/polyfill/snackbar/Snackbar.js +1 -1
  73. package/build/es/polyfill/snackbar/SnackbarProvider.js +1 -1
  74. package/build/es/polyfill/stepper/Stepper.js +1 -1
  75. package/build/es/polyfill/summary/Summary.js +1 -1
  76. package/build/es/polyfill/switch/Switch.js +1 -1
  77. package/build/es/polyfill/tabs/Tabs.js +1 -1
  78. package/build/es/polyfill/tooltip/Tooltip.js +1 -8
  79. package/build/es/polyfill/upload/Upload.js +1 -1
  80. package/build/es/polyfill/upload/steps/completeStep/completeStep.js +1 -1
  81. package/build/es/polyfill/upload/steps/processingStep/processingStep.js +1 -1
  82. package/build/es/polyfill/uploadInput/uploadButton/UploadButton.js +1 -1
  83. package/build/es/polyfill/uploadInput/uploadItem/UploadItem.js +2 -2
  84. package/build/main.css +1 -1
  85. package/build/styles/accordion/Accordion.css +1 -1
  86. package/build/styles/avatar/Avatar.css +1 -1
  87. package/build/styles/badge/Badge.css +1 -1
  88. package/build/styles/button/Button.css +1 -1
  89. package/build/styles/card/Card.css +1 -1
  90. package/build/styles/checkboxButton/CheckboxButton.css +1 -1
  91. package/build/styles/chips/Chip.css +1 -1
  92. package/build/styles/circularButton/CircularButton.css +1 -1
  93. package/build/styles/common/RadioButton/RadioButton.css +1 -1
  94. package/build/styles/common/bottomSheet/BottomSheet.css +1 -1
  95. package/build/styles/common/closeButton/CloseButton.css +1 -1
  96. package/build/styles/dateLookup/DateLookup.css +1 -1
  97. package/build/styles/dateLookup/dateTrigger/DateTrigger.css +1 -1
  98. package/build/styles/decision/Decision.css +1 -1
  99. package/build/styles/definitionList/DefinitionList.css +1 -1
  100. package/build/styles/dimmer/Dimmer.css +1 -1
  101. package/build/styles/drawer/Drawer.css +1 -1
  102. package/build/styles/emphasis/Emphasis.css +1 -1
  103. package/build/styles/flowNavigation/FlowNavigation.css +1 -1
  104. package/build/styles/flowNavigation/backButton/BackButton.css +1 -1
  105. package/build/styles/header/Header.css +1 -1
  106. package/build/styles/info/Info.css +1 -1
  107. package/build/styles/instructionsList/InstructionsList.css +1 -1
  108. package/build/styles/lab/mobileNav/MobileNav.css +1 -1
  109. package/build/styles/lab/pagination/Pagination.css +1 -1
  110. package/build/styles/loader/Loader.css +1 -1
  111. package/build/styles/main.css +1 -1
  112. package/build/styles/moneyInput/MoneyInput.css +1 -1
  113. package/build/styles/navigationOption/NavigationOption.css +1 -1
  114. package/build/styles/navigationOptionsList/NavigationOptionsList.css +1 -1
  115. package/build/styles/nudge/Nudge.css +1 -1
  116. package/build/styles/overlayHeader/OverlayHeader.css +1 -1
  117. package/build/styles/phoneNumberInput/PhoneNumberInput.css +1 -1
  118. package/build/styles/popover/Popover.css +1 -1
  119. package/build/styles/section/Section.css +1 -1
  120. package/build/styles/slidingPanel/SlidingPanel.css +1 -1
  121. package/build/styles/snackbar/Snackbar.css +1 -1
  122. package/build/styles/stepper/Stepper.css +1 -1
  123. package/build/styles/summary/Summary.css +1 -1
  124. package/build/styles/switch/Switch.css +1 -1
  125. package/build/styles/tabs/Tabs.css +1 -1
  126. package/build/styles/tile/Tile.css +1 -1
  127. package/build/styles/tooltip/Tooltip.css +1 -1
  128. package/build/styles/typeahead/Typeahead.css +1 -1
  129. package/build/styles/typeahead/typeaheadOption/TypeaheadOption.css +1 -1
  130. package/build/styles/uploadInput/UploadInput.css +1 -1
  131. package/build/styles/uploadInput/uploadButton/UploadButton.css +1 -1
  132. package/build/styles/uploadInput/uploadItem/UploadItem.css +1 -1
  133. package/build/types/accordion/AccordionItem/AccordionItem.d.ts +18 -18
  134. package/build/types/card/Card.d.ts +1 -0
  135. package/build/types/checkboxOption/CheckboxOption.d.ts +1 -0
  136. package/build/types/common/Option/Option.d.ts +39 -51
  137. package/build/types/common/domHelpers/index.d.ts +1 -2
  138. package/build/types/common/hooks/index.d.ts +2 -3
  139. package/build/types/common/hooks/useDirection/useDirection.d.ts +1 -1
  140. package/build/types/common/index.d.ts +0 -2
  141. package/build/types/common/locale/index.d.ts +2 -23
  142. package/build/types/common/propsValues/position.d.ts +0 -4
  143. package/build/types/common/theme.d.ts +2 -5
  144. package/build/types/index.d.ts +3 -5
  145. package/build/types/navigationOption/NavigationOption.d.ts +1 -0
  146. package/build/types/provider/direction/DirectionProvider.d.ts +18 -8
  147. package/build/types/provider/index.d.ts +0 -2
  148. package/build/types/radioOption/RadioOption.d.ts +1 -0
  149. package/build/types/test-utils/index.d.ts +8 -0
  150. package/build/types/tooltip/Tooltip.d.ts +18 -9
  151. package/build/umd/no-polyfill/main.js +1 -1
  152. package/build/umd/polyfill/main.js +1 -1
  153. package/package.json +10 -10
  154. package/build/es/no-polyfill/common/direction.js +0 -1
  155. package/build/es/no-polyfill/common/hocs/index.js +0 -1
  156. package/build/es/no-polyfill/common/hocs/theme/index.js +0 -1
  157. package/build/es/no-polyfill/common/hocs/theme/withTheme.js +0 -2
  158. package/build/es/no-polyfill/common/hocs/theme/withTheme.spec.js +0 -1
  159. package/build/es/no-polyfill/common/hooks/useTheme/index.js +0 -1
  160. package/build/es/no-polyfill/common/hooks/useTheme/useTheme.js +0 -1
  161. package/build/es/no-polyfill/common/hooks/useTheme/useTheme.spec.js +0 -1
  162. package/build/es/no-polyfill/provider/Provider.spec.js +0 -2
  163. package/build/es/no-polyfill/provider/Provider.story.js +0 -1
  164. package/build/es/no-polyfill/provider/direction/DirectionProvider.spec.js +0 -1
  165. package/build/es/no-polyfill/provider/theme/ThemeProvider.js +0 -2
  166. package/build/es/no-polyfill/provider/theme/ThemeProvider.spec.js +0 -2
  167. package/build/es/no-polyfill/provider/theme/index.js +0 -1
  168. package/build/es/no-polyfill/tooltip/Tooltip.spec.js +0 -1
  169. package/build/es/no-polyfill/tooltip/Tooltip.story.js +0 -1
  170. package/build/es/polyfill/common/direction.js +0 -1
  171. package/build/es/polyfill/common/hocs/index.js +0 -1
  172. package/build/es/polyfill/common/hocs/theme/index.js +0 -1
  173. package/build/es/polyfill/common/hocs/theme/withTheme.js +0 -2
  174. package/build/es/polyfill/common/hocs/theme/withTheme.spec.js +0 -1
  175. package/build/es/polyfill/common/hooks/useTheme/index.js +0 -1
  176. package/build/es/polyfill/common/hooks/useTheme/useTheme.js +0 -1
  177. package/build/es/polyfill/common/hooks/useTheme/useTheme.spec.js +0 -1
  178. package/build/es/polyfill/provider/Provider.spec.js +0 -2
  179. package/build/es/polyfill/provider/Provider.story.js +0 -1
  180. package/build/es/polyfill/provider/direction/DirectionProvider.spec.js +0 -1
  181. package/build/es/polyfill/provider/theme/ThemeProvider.js +0 -2
  182. package/build/es/polyfill/provider/theme/ThemeProvider.spec.js +0 -2
  183. package/build/es/polyfill/provider/theme/index.js +0 -1
  184. package/build/es/polyfill/tooltip/Tooltip.spec.js +0 -1
  185. package/build/es/polyfill/tooltip/Tooltip.story.js +0 -1
  186. package/build/types/common/direction.d.ts +0 -6
  187. package/build/types/common/hocs/index.d.ts +0 -1
  188. package/build/types/common/hocs/theme/index.d.ts +0 -1
  189. package/build/types/common/hocs/theme/withTheme.d.ts +0 -10
  190. package/build/types/common/hocs/theme/withTheme.spec.d.ts +0 -1
  191. package/build/types/common/hooks/useTheme/index.d.ts +0 -1
  192. package/build/types/common/hooks/useTheme/useTheme.d.ts +0 -1
  193. package/build/types/common/hooks/useTheme/useTheme.spec.d.ts +0 -1
  194. package/build/types/provider/Provider.spec.d.ts +0 -1
  195. package/build/types/provider/Provider.story.d.ts +0 -23
  196. package/build/types/provider/direction/DirectionProvider.spec.d.ts +0 -1
  197. package/build/types/provider/theme/ThemeProvider.d.ts +0 -8
  198. package/build/types/provider/theme/ThemeProvider.spec.d.ts +0 -1
  199. package/build/types/provider/theme/index.d.ts +0 -1
  200. package/build/types/tooltip/Tooltip.spec.d.ts +0 -1
  201. package/build/types/tooltip/Tooltip.story.d.ts +0 -12
@@ -1,5 +1,6 @@
1
1
  export default Option;
2
- declare function Option({ as: Element, href, target, media, title, content, onClick, htmlFor, disabled, button, decision, complex, className, inverseMediaCircle, showMediaAtAllSizes, showMediaCircle, }: {
2
+ declare function Option({ "aria-label": ariaLabel, as: Element, href, target, media, title, content, onClick, htmlFor, disabled, button, decision, complex, className, inverseMediaCircle, showMediaAtAllSizes, showMediaCircle, }: {
3
+ "aria-label": any;
3
4
  as: any;
4
5
  href: any;
5
6
  target: any;
@@ -18,55 +19,42 @@ declare function Option({ as: Element, href, target, media, title, content, onCl
18
19
  showMediaCircle: any;
19
20
  }): JSX.Element;
20
21
  declare namespace Option {
21
- namespace propTypes {
22
- const media: PropTypes.Requireable<PropTypes.ReactNodeLike>;
23
- const htmlFor: PropTypes.Requireable<string>;
24
- const title: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
25
- const content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
26
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
27
- const href: any;
28
- const target: PropTypes.Requireable<string>;
29
- const as: PropTypes.Requireable<string>;
30
- const disabled: PropTypes.Requireable<boolean>;
31
- const button: PropTypes.Requireable<PropTypes.ReactNodeLike>;
32
- const decision: PropTypes.Requireable<boolean>;
33
- const complex: PropTypes.Requireable<boolean>;
34
- const inverseMediaCircle: PropTypes.Requireable<boolean>;
35
- const className: PropTypes.Requireable<string>;
36
- const showMediaAtAllSizes: PropTypes.Requireable<boolean>;
37
- const showMediaCircle: PropTypes.Requireable<boolean>;
38
- }
39
- namespace defaultProps {
40
- const as_1: string;
41
- export { as_1 as as };
42
- const media_1: string;
43
- export { media_1 as media };
44
- const content_1: null;
45
- export { content_1 as content };
46
- const htmlFor_1: null;
47
- export { htmlFor_1 as htmlFor };
48
- const disabled_1: boolean;
49
- export { disabled_1 as disabled };
50
- const button_1: null;
51
- export { button_1 as button };
52
- const onClick_1: null;
53
- export { onClick_1 as onClick };
54
- const href_1: null;
55
- export { href_1 as href };
56
- const target_1: undefined;
57
- export { target_1 as target };
58
- const decision_1: boolean;
59
- export { decision_1 as decision };
60
- const complex_1: boolean;
61
- export { complex_1 as complex };
62
- const inverseMediaCircle_1: boolean;
63
- export { inverseMediaCircle_1 as inverseMediaCircle };
64
- const className_1: null;
65
- export { className_1 as className };
66
- const showMediaAtAllSizes_1: boolean;
67
- export { showMediaAtAllSizes_1 as showMediaAtAllSizes };
68
- const showMediaCircle_1: boolean;
69
- export { showMediaCircle_1 as showMediaCircle };
70
- }
22
+ const propTypes: {
23
+ 'aria-label': PropTypes.Requireable<string>;
24
+ media: PropTypes.Requireable<PropTypes.ReactNodeLike>;
25
+ htmlFor: PropTypes.Requireable<string>;
26
+ title: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
27
+ content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
28
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
29
+ href: any;
30
+ target: PropTypes.Requireable<string>;
31
+ as: PropTypes.Requireable<string>;
32
+ disabled: PropTypes.Requireable<boolean>;
33
+ button: PropTypes.Requireable<PropTypes.ReactNodeLike>;
34
+ decision: PropTypes.Requireable<boolean>;
35
+ complex: PropTypes.Requireable<boolean>;
36
+ inverseMediaCircle: PropTypes.Requireable<boolean>;
37
+ className: PropTypes.Requireable<string>;
38
+ showMediaAtAllSizes: PropTypes.Requireable<boolean>;
39
+ showMediaCircle: PropTypes.Requireable<boolean>;
40
+ };
41
+ const defaultProps: {
42
+ 'aria-label': undefined;
43
+ as: string;
44
+ media: string;
45
+ content: null;
46
+ htmlFor: null;
47
+ disabled: boolean;
48
+ button: null;
49
+ onClick: null;
50
+ href: null;
51
+ target: undefined;
52
+ decision: boolean;
53
+ complex: boolean;
54
+ inverseMediaCircle: boolean;
55
+ className: null;
56
+ showMediaAtAllSizes: boolean;
57
+ showMediaCircle: boolean;
58
+ };
71
59
  }
72
60
  import PropTypes from "prop-types";
@@ -1,3 +1,2 @@
1
- export declare function isServerSide(): boolean;
2
- export declare function isBrowser(): boolean;
1
+ export declare function isServerSideRendering(): boolean;
3
2
  export { addClickClassToDocumentOnIos, removeClickClassFromDocumentOnIos, } from './documentIosClick';
@@ -1,5 +1,4 @@
1
+ export { default as useHasIntersected } from "./useHasIntersected";
1
2
  export { default as useClientWidth } from "./useClientWidth";
2
- export { default as useConditionalListener } from "./useConditionalListener";
3
3
  export { default as useDirection } from "./useDirection";
4
- export { default as useHasIntersected } from "./useHasIntersected";
5
- export { default as useTheme } from "./useTheme";
4
+ export { default as useConditionalListener } from "./useConditionalListener";
@@ -1,4 +1,4 @@
1
1
  export function useDirection(): {
2
- direction: import("../..").LayoutDirection;
2
+ direction: string;
3
3
  isRTL: boolean;
4
4
  };
@@ -1,6 +1,5 @@
1
1
  export { default as HistoryNavigator } from "./historyNavigator";
2
2
  export * from "./theme";
3
- export * from "./direction";
4
3
  export * from "./propsValues/size";
5
4
  export * from "./propsValues/width";
6
5
  export * from "./locale";
@@ -18,6 +17,5 @@ export { Scroll } from "./propsValues/scroll";
18
17
  export { MarkdownNodeType } from "./propsValues/markdownNodeType";
19
18
  export { FileType } from "./fileType";
20
19
  export { Key } from "./key";
21
- export { isServerSide, isBrowser } from "./domHelpers";
22
20
  export { addNoScrollBodyClass, removeNoScrollBodyClass } from "./DOMOperations";
23
21
  export { Priority, ControlType } from "./propsValues/control";
@@ -14,22 +14,6 @@ export function adjustLocale(locale: string): string | null;
14
14
  * @returns {string|null}
15
15
  */
16
16
  export function getLangFromLocale(locale: string): string | null;
17
- /**
18
- * Provides corresponding country code (iso2) for locales code with explicit region value (`es-ES`, `en-GB`, `ja-JP` etc.)
19
- * if the value is invalid or missing region it returns null
20
- *
21
- * @param {string} locale
22
- * @returns {string|null}
23
- */
24
- export function getCountryFromLocale(locale: string): string | null;
25
- /**
26
- * Provides the layout direction for a given locale.
27
- * If locale is invalid or language is unsupported returns Direction.LTR
28
- *
29
- * @param {string} locale (`es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP` etc)
30
- * @returns {Direction} The layout direction based on the locale
31
- */
32
- export function getDirectionFromLocale(locale: string): Direction;
33
17
  /**
34
18
  * Default language
35
19
  *
@@ -42,11 +26,6 @@ export const DEFAULT_LANG: string;
42
26
  * @type {string}
43
27
  */
44
28
  export const DEFAULT_LOCALE: string;
45
- /**
46
- * Array of languages that are written from the right to the left
47
- *
48
- * @type {string[]}
49
- */
50
- export const RTL_LANGUAGES: string[];
29
+ export const SUPPORTED_RTL: string[];
51
30
  export const SUPPORTED_LANGUAGES: string[];
52
- import { Direction } from "../direction";
31
+ export function getCountryFromLocale(locale: string): string | null;
@@ -9,7 +9,3 @@ export declare enum Position {
9
9
  RIGHT_TOP = "right-top",
10
10
  TOP = "top"
11
11
  }
12
- export declare type PositionTop = 'top';
13
- export declare type PositionRight = 'right';
14
- export declare type PositionBottom = 'bottom';
15
- export declare type PositionLeft = 'left';
@@ -1,9 +1,6 @@
1
1
  export declare enum Theme {
2
2
  LIGHT = "light",
3
- DARK = "dark",
4
- NAVY = "navy"
3
+ DARK = "dark"
5
4
  }
6
- export declare type ThemeLight = 'light';
7
5
  export declare type ThemeDark = 'dark';
8
- export declare type ThemeNavy = 'navy';
9
- export declare type ThemeType = ThemeLight | ThemeDark | ThemeNavy;
6
+ export declare type ThemeLight = 'light';
@@ -2,7 +2,6 @@
2
2
  * Types
3
3
  */
4
4
  export type { UploadedFile, UploadError, UploadResponse } from './uploadInput/types';
5
- export type { LayoutDirection } from './common';
6
5
  /**
7
6
  * Components
8
7
  */
@@ -50,7 +49,7 @@ export { default as OverlayHeader } from './overlayHeader';
50
49
  export { default as PhoneNumberInput } from './phoneNumberInput';
51
50
  export { default as Popover } from './popover';
52
51
  export { default as ProcessIndicator } from './processIndicator';
53
- export { default as Provider, DirectionProvider } from './provider';
52
+ export { default as Provider } from './provider';
54
53
  export { default as Radio } from './radio';
55
54
  export { default as RadioGroup } from './radioGroup';
56
55
  export { default as RadioOption } from './radioOption';
@@ -75,11 +74,10 @@ export { SnackbarConsumer, SnackbarContext } from './snackbar/SnackbarContext';
75
74
  * Hooks
76
75
  */
77
76
  export { default as useSnackbar } from './snackbar/useSnackbar';
78
- export { useDirection } from './common/hooks';
79
77
  /**
80
78
  * Enums
81
79
  */
82
- export { Direction, Size, Width, Sentiment, Priority, ControlType, Type, Theme, DateMode, MonthFormat, Position, Scroll, ProfileType, Breakpoint, Layout, Status, MarkdownNodeType, } from './common';
80
+ export { Size, Width, Sentiment, Priority, ControlType, Type, Theme, DateMode, MonthFormat, Position, Scroll, ProfileType, Breakpoint, Layout, Status, MarkdownNodeType, } from './common';
83
81
  export { AvatarType } from './avatar';
84
82
  export { InfoPresentation } from './info';
85
83
  export { UploadStep } from './upload';
@@ -90,7 +88,7 @@ export { FileType } from './common';
90
88
  /**
91
89
  * Utils
92
90
  */
93
- export { SUPPORTED_LANGUAGES, RTL_LANGUAGES, DEFAULT_LANG, DEFAULT_LOCALE, adjustLocale, getLangFromLocale, getCountryFromLocale, getDirectionFromLocale, isServerSide, isBrowser, } from './common';
91
+ export { SUPPORTED_LANGUAGES, DEFAULT_LANG, DEFAULT_LOCALE, adjustLocale, getLangFromLocale, getCountryFromLocale, } from './common';
94
92
  /**
95
93
  * Translations
96
94
  */
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  export type NavigationOptionTarget = "_self" | "_blank" | "_parent" | "_top";
4
4
 
5
5
  export interface NavigationOptionProps {
6
+ "aria-label"?: string;
6
7
  as?: string;
7
8
  media?: React.ReactNode;
8
9
  title: React.ReactNode;
@@ -1,8 +1,18 @@
1
- import { ReactElement, PropsWithChildren } from 'react';
2
- import { LayoutDirection } from '../../common/direction';
3
- export declare const DirectionContext: import("react").Context<LayoutDirection>;
4
- declare type Props = PropsWithChildren<{
5
- direction: LayoutDirection;
6
- }>;
7
- export declare const DirectionProvider: ({ direction, children }: Props) => ReactElement;
8
- export {};
1
+ export const DirectionContext: import("react").Context<string>;
2
+ export function DirectionProvider({ locale, children }: {
3
+ locale: any;
4
+ children: any;
5
+ }): JSX.Element;
6
+ export namespace DirectionProvider {
7
+ namespace propTypes {
8
+ const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
+ const locale: PropTypes.Requireable<string>;
10
+ }
11
+ namespace defaultProps {
12
+ const children_1: null;
13
+ export { children_1 as children };
14
+ export { DEFAULT_LOCALE as locale };
15
+ }
16
+ }
17
+ import PropTypes from "prop-types";
18
+ import { DEFAULT_LOCALE } from "../../common/locale";
@@ -1,3 +1 @@
1
- export { DirectionProvider } from "./direction";
2
- export { ThemeProvider } from "./theme";
3
1
  export { default } from "./Provider";
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
 
3
3
  export interface RadioOptionProps {
4
+ "aria-label"?: string;
4
5
  media?: React.ReactNode;
5
6
  id: string;
6
7
  name: string;
@@ -4,6 +4,10 @@ import userEvent from "@testing-library/user-event";
4
4
  * Custom `render` function which wraps passed elements in Provider component
5
5
  * Source: https://testing-library.com/docs/example-react-intl/#creating-a-custom-render-function
6
6
  *
7
+ * @param ui
8
+ * @param root0
9
+ * @param root0.locale
10
+ * @param root0.messages
7
11
  */
8
12
  declare function customRender(ui: any, { locale, messages, ...renderOptions }?: {
9
13
  locale?: string | undefined;
@@ -54,6 +58,10 @@ declare function customRender(ui: any, { locale, messages, ...renderOptions }?:
54
58
  * Custom `renderHook` function which wraps passed elements in Provider component
55
59
  * For more info: https://react-hooks-testing-library.com/usage/advanced-hooks#context
56
60
  *
61
+ * @param callback
62
+ * @param root0
63
+ * @param root0.locale
64
+ * @param root0.messages
57
65
  */
58
66
  declare function customRenderHook(callback: any, { locale, messages }?: {
59
67
  locale?: string | undefined;
@@ -1,9 +1,18 @@
1
- import { ReactNode, ReactElement, PropsWithChildren } from 'react';
2
- import { CommonProps } from '../common';
3
- import { PositionBottom, PositionLeft, PositionRight, PositionTop } from '../common/propsValues/position';
4
- declare type Props = PropsWithChildren<{
5
- position?: PositionTop | PositionRight | PositionBottom | PositionLeft;
6
- label: ReactNode;
7
- }> & CommonProps;
8
- declare const Tooltip: ({ position, children, label, className, }: Props) => ReactElement;
9
- export default Tooltip;
1
+ import * as React from 'react';
2
+
3
+ export type TooltipChildren = React.ReactElement<any> | React.ReactElement<any>[] | string;
4
+
5
+ export type TooltipPosition = "top" | "bottom" | "left" | "right";
6
+
7
+ export interface TooltipProps {
8
+ children: TooltipChildren;
9
+ position?: TooltipPosition;
10
+ label: React.ReactNode;
11
+ offset?: number;
12
+ }
13
+
14
+ export default class Tooltip extends React.Component<TooltipProps, any> {
15
+ render(): JSX.Element;
16
+
17
+ }
18
+