@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.
- package/CHANGELOG.md +38 -0
- package/build/es/no-polyfill/accordion/AccordionItem/AccordionItem.js +1 -1
- package/build/es/no-polyfill/alert/Alert.js +1 -1
- package/build/es/no-polyfill/card/Card.js +1 -1
- package/build/es/no-polyfill/checkbox/Checkbox.js +1 -1
- package/build/es/no-polyfill/checkboxButton/CheckboxButton.js +1 -1
- package/build/es/no-polyfill/checkboxOption/CheckboxOption.js +1 -1
- package/build/es/no-polyfill/common/Option/Option.js +1 -1
- package/build/es/no-polyfill/common/bottomSheet/BottomSheet.js +2 -2
- package/build/es/no-polyfill/common/domHelpers/index.js +1 -1
- package/build/es/no-polyfill/common/hooks/index.js +1 -1
- package/build/es/no-polyfill/common/index.js +1 -1
- package/build/es/no-polyfill/common/locale/index.js +3 -13
- package/build/es/no-polyfill/common/theme.js +1 -1
- package/build/es/no-polyfill/dateInput/DateInput.js +2 -2
- package/build/es/no-polyfill/decision/Decision.js +3 -3
- package/build/es/no-polyfill/drawer/Drawer.js +1 -1
- package/build/es/no-polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +1 -1
- package/build/es/no-polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +1 -1
- package/build/es/no-polyfill/index.js +4 -4
- package/build/es/no-polyfill/logo/Logo.js +1 -1
- package/build/es/no-polyfill/navigationOption/NavigationOption.js +1 -1
- package/build/es/no-polyfill/nudge/Nudge.js +1 -1
- package/build/es/no-polyfill/phoneNumberInput/PhoneNumberInput.js +1 -1
- package/build/es/no-polyfill/provider/Provider.js +1 -1
- package/build/es/no-polyfill/provider/direction/DirectionProvider.js +1 -1
- package/build/es/no-polyfill/provider/index.js +1 -1
- package/build/es/no-polyfill/radio/Radio.js +1 -1
- package/build/es/no-polyfill/radioOption/RadioOption.js +1 -1
- package/build/es/no-polyfill/select/option/Option.js +1 -1
- package/build/es/no-polyfill/snackbar/Snackbar.js +1 -1
- package/build/es/no-polyfill/snackbar/SnackbarProvider.js +1 -1
- package/build/es/no-polyfill/stepper/Stepper.js +1 -1
- package/build/es/no-polyfill/summary/Summary.js +1 -1
- package/build/es/no-polyfill/switch/Switch.js +1 -1
- package/build/es/no-polyfill/tabs/Tabs.js +1 -1
- package/build/es/no-polyfill/tooltip/Tooltip.js +1 -8
- package/build/es/no-polyfill/upload/Upload.js +1 -1
- package/build/es/no-polyfill/upload/steps/completeStep/completeStep.js +1 -1
- package/build/es/no-polyfill/upload/steps/processingStep/processingStep.js +1 -1
- package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.js +1 -1
- package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.js +2 -2
- package/build/es/polyfill/accordion/AccordionItem/AccordionItem.js +1 -1
- package/build/es/polyfill/alert/Alert.js +1 -1
- package/build/es/polyfill/card/Card.js +1 -1
- package/build/es/polyfill/checkbox/Checkbox.js +1 -1
- package/build/es/polyfill/checkboxButton/CheckboxButton.js +1 -1
- package/build/es/polyfill/checkboxOption/CheckboxOption.js +1 -1
- package/build/es/polyfill/common/Option/Option.js +1 -1
- package/build/es/polyfill/common/bottomSheet/BottomSheet.js +2 -2
- package/build/es/polyfill/common/domHelpers/index.js +1 -1
- package/build/es/polyfill/common/hooks/index.js +1 -1
- package/build/es/polyfill/common/index.js +1 -1
- package/build/es/polyfill/common/locale/index.js +3 -13
- package/build/es/polyfill/common/theme.js +1 -1
- package/build/es/polyfill/dateInput/DateInput.js +2 -2
- package/build/es/polyfill/decision/Decision.js +3 -3
- package/build/es/polyfill/drawer/Drawer.js +1 -1
- package/build/es/polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +1 -1
- package/build/es/polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +1 -1
- package/build/es/polyfill/index.js +4 -4
- package/build/es/polyfill/logo/Logo.js +1 -1
- package/build/es/polyfill/navigationOption/NavigationOption.js +1 -1
- package/build/es/polyfill/nudge/Nudge.js +1 -1
- package/build/es/polyfill/phoneNumberInput/PhoneNumberInput.js +1 -1
- package/build/es/polyfill/provider/Provider.js +1 -1
- package/build/es/polyfill/provider/direction/DirectionProvider.js +1 -1
- package/build/es/polyfill/provider/index.js +1 -1
- package/build/es/polyfill/radio/Radio.js +1 -1
- package/build/es/polyfill/radioOption/RadioOption.js +1 -1
- package/build/es/polyfill/select/option/Option.js +1 -1
- package/build/es/polyfill/snackbar/Snackbar.js +1 -1
- package/build/es/polyfill/snackbar/SnackbarProvider.js +1 -1
- package/build/es/polyfill/stepper/Stepper.js +1 -1
- package/build/es/polyfill/summary/Summary.js +1 -1
- package/build/es/polyfill/switch/Switch.js +1 -1
- package/build/es/polyfill/tabs/Tabs.js +1 -1
- package/build/es/polyfill/tooltip/Tooltip.js +1 -8
- package/build/es/polyfill/upload/Upload.js +1 -1
- package/build/es/polyfill/upload/steps/completeStep/completeStep.js +1 -1
- package/build/es/polyfill/upload/steps/processingStep/processingStep.js +1 -1
- package/build/es/polyfill/uploadInput/uploadButton/UploadButton.js +1 -1
- package/build/es/polyfill/uploadInput/uploadItem/UploadItem.js +2 -2
- package/build/main.css +1 -1
- package/build/styles/accordion/Accordion.css +1 -1
- package/build/styles/avatar/Avatar.css +1 -1
- package/build/styles/badge/Badge.css +1 -1
- package/build/styles/button/Button.css +1 -1
- package/build/styles/card/Card.css +1 -1
- package/build/styles/checkboxButton/CheckboxButton.css +1 -1
- package/build/styles/chips/Chip.css +1 -1
- package/build/styles/circularButton/CircularButton.css +1 -1
- package/build/styles/common/RadioButton/RadioButton.css +1 -1
- package/build/styles/common/bottomSheet/BottomSheet.css +1 -1
- package/build/styles/common/closeButton/CloseButton.css +1 -1
- package/build/styles/dateLookup/DateLookup.css +1 -1
- package/build/styles/dateLookup/dateTrigger/DateTrigger.css +1 -1
- package/build/styles/decision/Decision.css +1 -1
- package/build/styles/definitionList/DefinitionList.css +1 -1
- package/build/styles/dimmer/Dimmer.css +1 -1
- package/build/styles/drawer/Drawer.css +1 -1
- package/build/styles/emphasis/Emphasis.css +1 -1
- package/build/styles/flowNavigation/FlowNavigation.css +1 -1
- package/build/styles/flowNavigation/backButton/BackButton.css +1 -1
- package/build/styles/header/Header.css +1 -1
- package/build/styles/info/Info.css +1 -1
- package/build/styles/instructionsList/InstructionsList.css +1 -1
- package/build/styles/lab/mobileNav/MobileNav.css +1 -1
- package/build/styles/lab/pagination/Pagination.css +1 -1
- package/build/styles/loader/Loader.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/styles/moneyInput/MoneyInput.css +1 -1
- package/build/styles/navigationOption/NavigationOption.css +1 -1
- package/build/styles/navigationOptionsList/NavigationOptionsList.css +1 -1
- package/build/styles/nudge/Nudge.css +1 -1
- package/build/styles/overlayHeader/OverlayHeader.css +1 -1
- package/build/styles/phoneNumberInput/PhoneNumberInput.css +1 -1
- package/build/styles/popover/Popover.css +1 -1
- package/build/styles/section/Section.css +1 -1
- package/build/styles/slidingPanel/SlidingPanel.css +1 -1
- package/build/styles/snackbar/Snackbar.css +1 -1
- package/build/styles/stepper/Stepper.css +1 -1
- package/build/styles/summary/Summary.css +1 -1
- package/build/styles/switch/Switch.css +1 -1
- package/build/styles/tabs/Tabs.css +1 -1
- package/build/styles/tile/Tile.css +1 -1
- package/build/styles/tooltip/Tooltip.css +1 -1
- package/build/styles/typeahead/Typeahead.css +1 -1
- package/build/styles/typeahead/typeaheadOption/TypeaheadOption.css +1 -1
- package/build/styles/uploadInput/UploadInput.css +1 -1
- package/build/styles/uploadInput/uploadButton/UploadButton.css +1 -1
- package/build/styles/uploadInput/uploadItem/UploadItem.css +1 -1
- package/build/types/accordion/AccordionItem/AccordionItem.d.ts +18 -18
- package/build/types/card/Card.d.ts +1 -0
- package/build/types/checkboxOption/CheckboxOption.d.ts +1 -0
- package/build/types/common/Option/Option.d.ts +39 -51
- package/build/types/common/domHelpers/index.d.ts +1 -2
- package/build/types/common/hooks/index.d.ts +2 -3
- package/build/types/common/hooks/useDirection/useDirection.d.ts +1 -1
- package/build/types/common/index.d.ts +0 -2
- package/build/types/common/locale/index.d.ts +2 -23
- package/build/types/common/propsValues/position.d.ts +0 -4
- package/build/types/common/theme.d.ts +2 -5
- package/build/types/index.d.ts +3 -5
- package/build/types/navigationOption/NavigationOption.d.ts +1 -0
- package/build/types/provider/direction/DirectionProvider.d.ts +18 -8
- package/build/types/provider/index.d.ts +0 -2
- package/build/types/radioOption/RadioOption.d.ts +1 -0
- package/build/types/test-utils/index.d.ts +8 -0
- package/build/types/tooltip/Tooltip.d.ts +18 -9
- package/build/umd/no-polyfill/main.js +1 -1
- package/build/umd/polyfill/main.js +1 -1
- package/package.json +10 -10
- package/build/es/no-polyfill/common/direction.js +0 -1
- package/build/es/no-polyfill/common/hocs/index.js +0 -1
- package/build/es/no-polyfill/common/hocs/theme/index.js +0 -1
- package/build/es/no-polyfill/common/hocs/theme/withTheme.js +0 -2
- package/build/es/no-polyfill/common/hocs/theme/withTheme.spec.js +0 -1
- package/build/es/no-polyfill/common/hooks/useTheme/index.js +0 -1
- package/build/es/no-polyfill/common/hooks/useTheme/useTheme.js +0 -1
- package/build/es/no-polyfill/common/hooks/useTheme/useTheme.spec.js +0 -1
- package/build/es/no-polyfill/provider/Provider.spec.js +0 -2
- package/build/es/no-polyfill/provider/Provider.story.js +0 -1
- package/build/es/no-polyfill/provider/direction/DirectionProvider.spec.js +0 -1
- package/build/es/no-polyfill/provider/theme/ThemeProvider.js +0 -2
- package/build/es/no-polyfill/provider/theme/ThemeProvider.spec.js +0 -2
- package/build/es/no-polyfill/provider/theme/index.js +0 -1
- package/build/es/no-polyfill/tooltip/Tooltip.spec.js +0 -1
- package/build/es/no-polyfill/tooltip/Tooltip.story.js +0 -1
- package/build/es/polyfill/common/direction.js +0 -1
- package/build/es/polyfill/common/hocs/index.js +0 -1
- package/build/es/polyfill/common/hocs/theme/index.js +0 -1
- package/build/es/polyfill/common/hocs/theme/withTheme.js +0 -2
- package/build/es/polyfill/common/hocs/theme/withTheme.spec.js +0 -1
- package/build/es/polyfill/common/hooks/useTheme/index.js +0 -1
- package/build/es/polyfill/common/hooks/useTheme/useTheme.js +0 -1
- package/build/es/polyfill/common/hooks/useTheme/useTheme.spec.js +0 -1
- package/build/es/polyfill/provider/Provider.spec.js +0 -2
- package/build/es/polyfill/provider/Provider.story.js +0 -1
- package/build/es/polyfill/provider/direction/DirectionProvider.spec.js +0 -1
- package/build/es/polyfill/provider/theme/ThemeProvider.js +0 -2
- package/build/es/polyfill/provider/theme/ThemeProvider.spec.js +0 -2
- package/build/es/polyfill/provider/theme/index.js +0 -1
- package/build/es/polyfill/tooltip/Tooltip.spec.js +0 -1
- package/build/es/polyfill/tooltip/Tooltip.story.js +0 -1
- package/build/types/common/direction.d.ts +0 -6
- package/build/types/common/hocs/index.d.ts +0 -1
- package/build/types/common/hocs/theme/index.d.ts +0 -1
- package/build/types/common/hocs/theme/withTheme.d.ts +0 -10
- package/build/types/common/hocs/theme/withTheme.spec.d.ts +0 -1
- package/build/types/common/hooks/useTheme/index.d.ts +0 -1
- package/build/types/common/hooks/useTheme/useTheme.d.ts +0 -1
- package/build/types/common/hooks/useTheme/useTheme.spec.d.ts +0 -1
- package/build/types/provider/Provider.spec.d.ts +0 -1
- package/build/types/provider/Provider.story.d.ts +0 -23
- package/build/types/provider/direction/DirectionProvider.spec.d.ts +0 -1
- package/build/types/provider/theme/ThemeProvider.d.ts +0 -8
- package/build/types/provider/theme/ThemeProvider.spec.d.ts +0 -1
- package/build/types/provider/theme/index.d.ts +0 -1
- package/build/types/tooltip/Tooltip.spec.d.ts +0 -1
- 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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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,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
|
|
5
|
-
export { default as useTheme } from "./useTheme";
|
|
4
|
+
export { default as useConditionalListener } from "./useConditionalListener";
|
|
@@ -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
|
-
|
|
31
|
+
export function getCountryFromLocale(locale: string): string | null;
|
|
@@ -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
|
|
9
|
-
export declare type ThemeType = ThemeLight | ThemeDark | ThemeNavy;
|
|
6
|
+
export declare type ThemeLight = 'light';
|
package/build/types/index.d.ts
CHANGED
|
@@ -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
|
|
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 {
|
|
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,
|
|
91
|
+
export { SUPPORTED_LANGUAGES, DEFAULT_LANG, DEFAULT_LOCALE, adjustLocale, getLangFromLocale, getCountryFromLocale, } from './common';
|
|
94
92
|
/**
|
|
95
93
|
* Translations
|
|
96
94
|
*/
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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";
|
|
@@ -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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
|