@transferwise/components 0.0.0-experimental-32eb423 → 0.0.0-experimental-c02d699
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/build/index.js +4 -18
- package/build/index.js.map +1 -1
- package/build/index.mjs +4 -18
- package/build/index.mjs.map +1 -1
- package/build/types/common/DOMOperations/DOMOperations.d.ts +10 -2
- package/build/types/common/DOMOperations/DOMOperations.d.ts.map +1 -1
- package/build/types/common/DOMOperations/index.d.ts +1 -3
- package/build/types/common/DOMOperations/index.d.ts.map +1 -1
- package/build/types/common/focusBoundary/index.d.ts +1 -1
- package/build/types/common/focusBoundary/index.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/provider/Provider.d.ts +8 -19
- package/build/types/provider/Provider.d.ts.map +1 -1
- package/build/types/provider/direction/DirectionProvider.d.ts +2 -3
- package/build/types/provider/direction/DirectionProvider.d.ts.map +1 -1
- package/build/types/provider/direction/index.d.ts +2 -1
- package/build/types/provider/direction/index.d.ts.map +1 -1
- package/build/types/provider/index.d.ts +6 -3
- package/build/types/provider/index.d.ts.map +1 -1
- package/build/types/provider/language/LanguageProvider.d.ts +2 -3
- package/build/types/provider/language/LanguageProvider.d.ts.map +1 -1
- package/build/types/provider/language/index.d.ts +2 -1
- package/build/types/provider/language/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/common/DOMOperations/index.ts +1 -0
- package/src/common/flowHeader/{FlowHeader.spec.js → FlowHeader.spec.tsx} +2 -2
- package/src/index.ts +1 -0
- package/src/provider/Provider.spec.tsx +0 -2
- package/src/provider/{Provider.js → Provider.tsx} +8 -19
- package/src/provider/direction/DirectionProvider.tsx +5 -2
- package/src/provider/direction/{index.js → index.ts} +1 -0
- package/src/provider/index.ts +6 -0
- package/src/provider/language/LanguageProvider.tsx +2 -2
- package/src/provider/language/index.ts +2 -0
- package/src/common/DOMOperations/index.js +0 -3
- package/src/provider/index.js +0 -3
- package/src/provider/language/index.js +0 -1
- /package/src/common/DOMOperations/{DOMOperations.spec.js → DOMOperations.spec.tsx} +0 -0
- /package/src/common/DOMOperations/{DOMOperations.js → DOMOperations.ts} +0 -0
- /package/src/common/flowHeader/__snapshots__/{FlowHeader.spec.js.snap → FlowHeader.spec.tsx.snap} +0 -0
- /package/src/common/focusBoundary/{index.js → index.ts} +0 -0
package/build/index.mjs
CHANGED
|
@@ -106,7 +106,6 @@ function getSimpleRandomId(prefix) {
|
|
|
106
106
|
* Defined in `Dimmer.less`
|
|
107
107
|
*/
|
|
108
108
|
const NO_SCROLL_CLASS = 'no-scroll';
|
|
109
|
-
|
|
110
109
|
/**
|
|
111
110
|
* Apply {@link NO_SCROLL_CLASS} that disables scroll on page (e.g use in Dimmer to disable scroll behind the component)
|
|
112
111
|
*
|
|
@@ -115,7 +114,6 @@ const NO_SCROLL_CLASS = 'no-scroll';
|
|
|
115
114
|
const addNoScrollClass = () => {
|
|
116
115
|
document.documentElement.classList.add(NO_SCROLL_CLASS);
|
|
117
116
|
};
|
|
118
|
-
|
|
119
117
|
/**
|
|
120
118
|
* Clean up after {@link addNoScrollClass} function
|
|
121
119
|
*/
|
|
@@ -9815,10 +9813,10 @@ var en = {
|
|
|
9815
9813
|
"neptune.UploadItem.uploadingFailed": "Uploading failed"
|
|
9816
9814
|
};
|
|
9817
9815
|
|
|
9818
|
-
|
|
9816
|
+
function Provider({
|
|
9819
9817
|
i18n,
|
|
9820
9818
|
children
|
|
9821
|
-
})
|
|
9819
|
+
}) {
|
|
9822
9820
|
const {
|
|
9823
9821
|
locale,
|
|
9824
9822
|
messages,
|
|
@@ -9855,19 +9853,7 @@ const Provider = ({
|
|
|
9855
9853
|
})
|
|
9856
9854
|
})
|
|
9857
9855
|
});
|
|
9858
|
-
}
|
|
9859
|
-
Provider.propTypes = {
|
|
9860
|
-
i18n: PropTypes.shape({
|
|
9861
|
-
locale: PropTypes.string.isRequired,
|
|
9862
|
-
messages: PropTypes.shape({}).isRequired,
|
|
9863
|
-
defaultRichTextElements: PropTypes.shape({})
|
|
9864
|
-
}).isRequired,
|
|
9865
|
-
children: PropTypes.node
|
|
9866
|
-
};
|
|
9867
|
-
Provider.defaultProps = {
|
|
9868
|
-
children: undefined
|
|
9869
|
-
};
|
|
9870
|
-
var Provider$1 = Provider;
|
|
9856
|
+
}
|
|
9871
9857
|
|
|
9872
9858
|
function RadioButton({
|
|
9873
9859
|
id,
|
|
@@ -15083,5 +15069,5 @@ const translations = {
|
|
|
15083
15069
|
'zh-HK': zhHK
|
|
15084
15070
|
};
|
|
15085
15071
|
|
|
15086
|
-
export { Accordion, ActionButton, ActionOption, Alert$1 as Alert, ArrowPosition as AlertArrowPosition, Avatar, AvatarType, AvatarWrapper, Badge, Card as BaseCard, Body, BottomSheet$2 as BottomSheet, Breakpoint, Button, Card$2 as Card, Checkbox$1 as Checkbox, CheckboxButton$1 as CheckboxButton, CheckboxOption, Chevron, Chip, Chips, CircularButton, ControlType, CriticalCommsBanner, DEFAULT_LANG, DEFAULT_LOCALE, DateInput, DateLookup$1 as DateLookup, DateMode, Decision, DecisionPresentation, DecisionType, DefinitionList$1 as DefinitionList, Dimmer$1 as Dimmer, Direction, DirectionProvider, Display, Drawer$1 as Drawer, DropFade, DynamicFieldDefinitionList$1 as DynamicFieldDefinitionList, Emphasis, FileType, FlowNavigation, Header, Image, Info, InfoPresentation, InlineAlert, Input, InputGroup, InputWithDisplayFormat, InstructionsList, LanguageProvider, Layout, Link, ListItem$1 as ListItem, Loader, Logo$1 as Logo, LogoType, Markdown, MarkdownNodeType, Modal, Money, MoneyInput$1 as MoneyInput, MonthFormat, NavigationOption, NavigationOptionList as NavigationOptionsList, Nudge, Option$2 as Option, OverlayHeader$1 as OverlayHeader, PhoneNumberInput, Popover$1 as Popover, Position, Priority, ProcessIndicator$1 as ProcessIndicator, ProfileType, Progress, ProgressBar, PromoCard$1 as PromoCard, PromoCard$1 as PromoCardGroup, Provider
|
|
15072
|
+
export { Accordion, ActionButton, ActionOption, Alert$1 as Alert, ArrowPosition as AlertArrowPosition, Avatar, AvatarType, AvatarWrapper, Badge, Card as BaseCard, Body, BottomSheet$2 as BottomSheet, Breakpoint, Button, Card$2 as Card, Checkbox$1 as Checkbox, CheckboxButton$1 as CheckboxButton, CheckboxOption, Chevron, Chip, Chips, CircularButton, ControlType, CriticalCommsBanner, DEFAULT_LANG, DEFAULT_LOCALE, DateInput, DateLookup$1 as DateLookup, DateMode, Decision, DecisionPresentation, DecisionType, DefinitionList$1 as DefinitionList, Dimmer$1 as Dimmer, Direction, DirectionProvider, Display, Drawer$1 as Drawer, DropFade, DynamicFieldDefinitionList$1 as DynamicFieldDefinitionList, Emphasis, FileType, FlowNavigation, Header, Image, Info, InfoPresentation, InlineAlert, Input, InputGroup, InputWithDisplayFormat, InstructionsList, LanguageProvider, Layout, Link, ListItem$1 as ListItem, Loader, Logo$1 as Logo, LogoType, Markdown, MarkdownNodeType, Modal, Money, MoneyInput$1 as MoneyInput, MonthFormat, NavigationOption, NavigationOptionList as NavigationOptionsList, Nudge, Option$2 as Option, OverlayHeader$1 as OverlayHeader, PhoneNumberInput, Popover$1 as Popover, Position, Priority, ProcessIndicator$1 as ProcessIndicator, ProfileType, Progress, ProgressBar, PromoCard$1 as PromoCard, PromoCard$1 as PromoCardGroup, Provider, RTL_LANGUAGES, Radio, RadioGroup, RadioOption, SUPPORTED_LANGUAGES, Scroll, SearchInput, Section, SegmentedControl, Select, SelectInput, SelectInputOptionContent, SelectInputTriggerButton, Sentiment, Size, SlidingPanel, SnackbarConsumer, SnackbarContext, SnackbarPortal, SnackbarProvider, Status, StatusIcon, Stepper, Sticky, Summary, Switch, SwitchOption, Tabs$1 as Tabs, TextArea, TextareaWithDisplayFormat, Theme, Title, Tooltip, Type, Typeahead, Typography, Upload$1 as Upload, UploadInput, UploadStep, Variant, Width, adjustLocale, getCountryFromLocale, getDirectionFromLocale, getLangFromLocale, isBrowser, isServerSide, translations, useDirection, useLayout, useScreenSize, useSnackbar };
|
|
15087
15073
|
//# sourceMappingURL=index.mjs.map
|