@transferwise/components 46.24.0 → 46.26.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.
- package/build/i18n/zh-HK.json +2 -2
- package/build/index.js +9 -20
- package/build/index.js.map +1 -1
- package/build/{index.esm.js → index.mjs} +9 -20
- package/build/index.mjs.map +1 -0
- package/build/mocks.js +33 -27
- package/build/mocks.js.map +1 -1
- package/build/mocks.mjs +40 -0
- package/build/mocks.mjs.map +1 -0
- package/build/types/common/hooks/useMedia.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 +20 -4
- package/src/common/hooks/useMedia.ts +2 -1
- package/src/i18n/zh-HK.json +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/build/index.esm.js.map +0 -1
- package/build/mocks.d.ts +0 -9
- package/build/mocks.d.ts.map +0 -1
- package/build/mocks.esm.js +0 -34
- package/build/mocks.esm.js.map +0 -1
- package/src/provider/index.js +0 -3
- package/src/provider/language/index.js +0 -1
|
@@ -10,7 +10,7 @@ import { useTheme, ThemeProvider } from '@wise/components-theming';
|
|
|
10
10
|
import { formatDate, formatNumber, formatMoney, formatAmount } from '@transferwise/formatting';
|
|
11
11
|
import { Transition, Listbox } from '@headlessui/react';
|
|
12
12
|
import mergeProps from 'merge-props';
|
|
13
|
-
import { useSyncExternalStore } from 'use-sync-external-store/shim';
|
|
13
|
+
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js';
|
|
14
14
|
import { useFloating, useDismiss, useRole, useInteractions, FloatingPortal, FloatingFocusManager, offset, flip, shift, size, autoUpdate } from '@floating-ui/react';
|
|
15
15
|
import { FocusScope } from '@react-aria/focus';
|
|
16
16
|
import { usePreventScroll } from '@react-aria/overlays';
|
|
@@ -1717,6 +1717,7 @@ const useHasIntersected = ({
|
|
|
1717
1717
|
return [hasIntersected];
|
|
1718
1718
|
};
|
|
1719
1719
|
|
|
1720
|
+
// eslint-disable-next-line import/extensions
|
|
1720
1721
|
function useMedia(query) {
|
|
1721
1722
|
return useSyncExternalStore(onStoreChange => {
|
|
1722
1723
|
const mediaQueryList = window.matchMedia(query);
|
|
@@ -9814,10 +9815,10 @@ var en = {
|
|
|
9814
9815
|
"neptune.UploadItem.uploadingFailed": "Uploading failed"
|
|
9815
9816
|
};
|
|
9816
9817
|
|
|
9817
|
-
|
|
9818
|
+
function Provider({
|
|
9818
9819
|
i18n,
|
|
9819
9820
|
children
|
|
9820
|
-
})
|
|
9821
|
+
}) {
|
|
9821
9822
|
const {
|
|
9822
9823
|
locale,
|
|
9823
9824
|
messages,
|
|
@@ -9854,19 +9855,7 @@ const Provider = ({
|
|
|
9854
9855
|
})
|
|
9855
9856
|
})
|
|
9856
9857
|
});
|
|
9857
|
-
}
|
|
9858
|
-
Provider.propTypes = {
|
|
9859
|
-
i18n: PropTypes.shape({
|
|
9860
|
-
locale: PropTypes.string.isRequired,
|
|
9861
|
-
messages: PropTypes.shape({}).isRequired,
|
|
9862
|
-
defaultRichTextElements: PropTypes.shape({})
|
|
9863
|
-
}).isRequired,
|
|
9864
|
-
children: PropTypes.node
|
|
9865
|
-
};
|
|
9866
|
-
Provider.defaultProps = {
|
|
9867
|
-
children: undefined
|
|
9868
|
-
};
|
|
9869
|
-
var Provider$1 = Provider;
|
|
9858
|
+
}
|
|
9870
9859
|
|
|
9871
9860
|
function RadioButton({
|
|
9872
9861
|
id,
|
|
@@ -15008,10 +14997,10 @@ var zhHK = {
|
|
|
15008
14997
|
"neptune.ClearButton.ariaLabel": "清除",
|
|
15009
14998
|
"neptune.CloseButton.ariaLabel": "關閉",
|
|
15010
14999
|
"neptune.DateInput.day.label": "日",
|
|
15011
|
-
"neptune.DateInput.day.placeholder": "
|
|
15000
|
+
"neptune.DateInput.day.placeholder": "日",
|
|
15012
15001
|
"neptune.DateInput.month.label": "月",
|
|
15013
15002
|
"neptune.DateInput.year.label": "年",
|
|
15014
|
-
"neptune.DateInput.year.placeholder": "
|
|
15003
|
+
"neptune.DateInput.year.placeholder": "年",
|
|
15015
15004
|
"neptune.DateLookup.day": "日",
|
|
15016
15005
|
"neptune.DateLookup.goTo20YearView": "切換至20年視圖",
|
|
15017
15006
|
"neptune.DateLookup.month": "月",
|
|
@@ -15082,5 +15071,5 @@ const translations = {
|
|
|
15082
15071
|
'zh-HK': zhHK
|
|
15083
15072
|
};
|
|
15084
15073
|
|
|
15085
|
-
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
|
|
15086
|
-
//# sourceMappingURL=index.
|
|
15074
|
+
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 };
|
|
15075
|
+
//# sourceMappingURL=index.mjs.map
|