@transferwise/components 46.23.0 → 46.25.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/es.json +2 -2
- package/build/i18n/hu.json +2 -2
- package/build/i18n/zh-HK.json +2 -2
- package/build/index.js +103 -80
- package/build/index.js.map +1 -1
- package/build/{index.esm.js → index.mjs} +102 -78
- 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/dateUtils/getFormatForLocale/getFormatForLocale.d.ts +3 -0
- package/build/types/common/dateUtils/getFormatForLocale/getFormatForLocale.d.ts.map +1 -0
- package/build/types/common/dateUtils/index.d.ts +7 -6
- package/build/types/common/dateUtils/index.d.ts.map +1 -1
- package/build/types/common/hooks/useMedia.d.ts.map +1 -1
- package/build/types/dateInput/DateInput.d.ts.map +1 -1
- package/build/types/emphasis/Emphasis.d.ts +1 -1
- package/build/types/emphasis/Emphasis.d.ts.map +1 -1
- package/build/types/emphasis/EmphasisHtmlTransformer.d.ts +1 -1
- package/build/types/emphasis/EmphasisHtmlTransformer.d.ts.map +1 -1
- package/build/types/emphasis/index.d.ts +1 -0
- package/build/types/emphasis/index.d.ts.map +1 -1
- package/build/types/i18n/index.d.ts.map +1 -1
- package/build/types/index.d.ts +5 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/inputs/SelectInput.d.ts.map +1 -1
- package/build/types/loader/Loader.d.ts +3 -3
- package/build/types/loader/Loader.d.ts.map +1 -1
- package/build/types/loader/index.d.ts +2 -2
- package/build/types/loader/index.d.ts.map +1 -1
- package/build/types/money/Money.d.ts +8 -11
- package/build/types/money/Money.d.ts.map +1 -1
- package/build/types/money/index.d.ts +2 -1
- package/build/types/money/index.d.ts.map +1 -1
- package/build/types/navigationOptionsList/NavigationOptionsList.d.ts +7 -10
- package/build/types/navigationOptionsList/NavigationOptionsList.d.ts.map +1 -1
- package/build/types/navigationOptionsList/index.d.ts +2 -1
- package/build/types/navigationOptionsList/index.d.ts.map +1 -1
- package/build/types/segmentedControl/SegmentedControl.d.ts.map +1 -1
- package/build/types/slidingPanel/SlidingPanel.d.ts.map +1 -1
- package/package.json +20 -5
- package/src/avatar/{Avatar.spec.js → Avatar.spec.tsx} +6 -13
- package/src/common/dateUtils/getFormatForLocale/getFormatForLocale.ts +2 -0
- package/src/common/dateUtils/index.ts +7 -6
- package/src/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.ts +1 -1
- package/src/common/hooks/useMedia.ts +2 -1
- package/src/dateInput/DateInput.spec.js +29 -9
- package/src/dateInput/DateInput.story.tsx +0 -3
- package/src/dateInput/DateInput.tsx +90 -48
- package/src/emphasis/{Emphasis.spec.js → Emphasis.spec.tsx} +2 -1
- package/src/emphasis/Emphasis.tsx +1 -1
- package/src/emphasis/{EmphasisHtmlTransformer.spec.js → EmphasisHtmlTransformer.spec.tsx} +0 -12
- package/src/emphasis/EmphasisHtmlTransformer.ts +1 -1
- package/src/emphasis/index.ts +1 -0
- package/src/i18n/es.json +2 -2
- package/src/i18n/hu.json +2 -2
- package/src/i18n/index.ts +1 -0
- package/src/i18n/zh-HK.json +2 -2
- package/src/index.ts +5 -0
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.js +3 -2
- package/src/inputs/SelectInput.tsx +5 -3
- package/src/loader/Loader.tsx +3 -3
- package/src/loader/index.ts +2 -0
- package/src/money/{Money.spec.js → Money.spec.tsx} +1 -1
- package/src/money/{Money.js → Money.tsx} +6 -7
- package/src/money/index.ts +2 -0
- package/src/navigationOptionsList/NavigationOptionsList.tsx +20 -0
- package/src/navigationOptionsList/index.ts +2 -0
- package/src/radio/Radio.story.tsx +3 -4
- package/src/segmentedControl/SegmentedControl.tsx +1 -0
- package/src/slidingPanel/SlidingPanel.tsx +4 -4
- package/src/switch/Switch.story.tsx +4 -1
- 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/build/types/common/dateUtils/getDayNames/index.d.ts +0 -2
- package/build/types/common/dateUtils/getDayNames/index.d.ts.map +0 -1
- package/build/types/common/dateUtils/getMonthNames/index.d.ts +0 -2
- package/build/types/common/dateUtils/getMonthNames/index.d.ts.map +0 -1
- package/build/types/common/dateUtils/isDateValid/index.d.ts +0 -2
- package/build/types/common/dateUtils/isDateValid/index.d.ts.map +0 -1
- package/build/types/common/dateUtils/isWithinRange/index.d.ts +0 -2
- package/build/types/common/dateUtils/isWithinRange/index.d.ts.map +0 -1
- package/build/types/common/dateUtils/moveToWithinRange/index.d.ts +0 -2
- package/build/types/common/dateUtils/moveToWithinRange/index.d.ts.map +0 -1
- package/src/common/dateUtils/getDayNames/index.ts +0 -1
- package/src/common/dateUtils/getMonthNames/index.ts +0 -1
- package/src/common/dateUtils/isDateValid/index.ts +0 -1
- package/src/common/dateUtils/isWithinRange/index.ts +0 -1
- package/src/common/dateUtils/moveToWithinRange/index.ts +0 -1
- package/src/loader/index.js +0 -3
- package/src/money/index.js +0 -1
- package/src/navigationOptionsList/NavigationOptionsList.js +0 -20
- package/src/navigationOptionsList/index.js +0 -1
- /package/src/loader/{Loader.spec.js → Loader.spec.tsx} +0 -0
- /package/src/navigationOptionsList/{NavigationOptionsList.spec.js → NavigationOptionsList.spec.tsx} +0 -0
- /package/src/navigationOptionsList/{NavigationOptionsList.story.js → NavigationOptionsList.story.tsx} +0 -0
package/build/i18n/es.json
CHANGED
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"neptune.Upload.csButtonText": "¿Quieres subir otro archivo?",
|
|
30
30
|
"neptune.Upload.csFailureText": "La carga del archivo ha fallado. Por favor, inténtalo de nuevo",
|
|
31
31
|
"neptune.Upload.csSuccessText": "¡Se ha subido el archivo!",
|
|
32
|
-
"neptune.Upload.csTooLargeMessage": "
|
|
32
|
+
"neptune.Upload.csTooLargeMessage": "Proporciona un archivo menor de {maxSize} MB",
|
|
33
33
|
"neptune.Upload.csWrongTypeMessage": "Tipo de archivo no aceptado. Por favor, inténtalo de nuevo con un archivo diferente",
|
|
34
34
|
"neptune.Upload.psButtonText": "Cancela",
|
|
35
35
|
"neptune.Upload.psProcessingText": "Subiendo...",
|
|
36
36
|
"neptune.Upload.usButtonText": "O selecciona un archivo",
|
|
37
37
|
"neptune.Upload.usDropMessage": "Arrastra un archivo para subirlo",
|
|
38
|
-
"neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo
|
|
38
|
+
"neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo de menos de {maxSize} MB",
|
|
39
39
|
"neptune.UploadButton.allFileTypes": "Todos los tipos de archivos",
|
|
40
40
|
"neptune.UploadButton.dropFiles": "Arrastra un archivo para subirlo",
|
|
41
41
|
"neptune.UploadButton.instructions": "{fileTypes}, menor que {size}MB",
|
package/build/i18n/hu.json
CHANGED
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"neptune.Upload.csButtonText": "Másik fájl feltöltése?",
|
|
30
30
|
"neptune.Upload.csFailureText": "Feltöltés sikertelen. Kérünk, próbáld újra",
|
|
31
31
|
"neptune.Upload.csSuccessText": "Feltöltés sikeres",
|
|
32
|
-
"neptune.Upload.csTooLargeMessage": "Kérünk,
|
|
32
|
+
"neptune.Upload.csTooLargeMessage": "Kérünk, olyan fájlt küldj el, amely kisebb mint {maxSize}MB",
|
|
33
33
|
"neptune.Upload.csWrongTypeMessage": "Nem támogatott fájltípus. Kérünk, próbáld újra másik fájllal",
|
|
34
34
|
"neptune.Upload.psButtonText": "Mégsem",
|
|
35
35
|
"neptune.Upload.psProcessingText": "Feltöltés...",
|
|
36
36
|
"neptune.Upload.usButtonText": "Vagy válaszd ki a fájlt",
|
|
37
37
|
"neptune.Upload.usDropMessage": "Húzd ide a fájlokat a feltöltéshez",
|
|
38
|
-
"neptune.Upload.usPlaceholder": "Húzz ide egy {maxSize} MB
|
|
38
|
+
"neptune.Upload.usPlaceholder": "Húzz ide egy legfeljebb {maxSize} MB méretű fájlt",
|
|
39
39
|
"neptune.UploadButton.allFileTypes": "Összes fájltípus",
|
|
40
40
|
"neptune.UploadButton.dropFiles": "Húzd a fájlokat ide a feltöltéshez",
|
|
41
41
|
"neptune.UploadButton.instructions": "{fileTypes}, legfeljebb {size}MB",
|
package/build/i18n/zh-HK.json
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "清除",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "關閉",
|
|
6
6
|
"neptune.DateInput.day.label": "日",
|
|
7
|
-
"neptune.DateInput.day.placeholder": "
|
|
7
|
+
"neptune.DateInput.day.placeholder": "日",
|
|
8
8
|
"neptune.DateInput.month.label": "月",
|
|
9
9
|
"neptune.DateInput.year.label": "年",
|
|
10
|
-
"neptune.DateInput.year.placeholder": "
|
|
10
|
+
"neptune.DateInput.year.placeholder": "年",
|
|
11
11
|
"neptune.DateLookup.day": "日",
|
|
12
12
|
"neptune.DateLookup.goTo20YearView": "切換至20年視圖",
|
|
13
13
|
"neptune.DateLookup.month": "月",
|
package/build/index.js
CHANGED
|
@@ -11,8 +11,7 @@ var componentsTheming = require('@wise/components-theming');
|
|
|
11
11
|
var formatting = require('@transferwise/formatting');
|
|
12
12
|
var react$1 = require('@headlessui/react');
|
|
13
13
|
var mergeProps = require('merge-props');
|
|
14
|
-
var
|
|
15
|
-
var shim = require('use-sync-external-store/shim');
|
|
14
|
+
var index_js = require('use-sync-external-store/shim/index.js');
|
|
16
15
|
var react = require('@floating-ui/react');
|
|
17
16
|
var focus = require('@react-aria/focus');
|
|
18
17
|
var overlays = require('@react-aria/overlays');
|
|
@@ -53,7 +52,6 @@ var classNames__default = /*#__PURE__*/_interopDefault(classNames);
|
|
|
53
52
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
54
53
|
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
55
54
|
var mergeProps__default = /*#__PURE__*/_interopDefault(mergeProps);
|
|
56
|
-
var mergeRefs__default = /*#__PURE__*/_interopDefault(mergeRefs);
|
|
57
55
|
var throttle__default = /*#__PURE__*/_interopDefault(throttle);
|
|
58
56
|
var commonmark__default = /*#__PURE__*/_interopDefault(commonmark);
|
|
59
57
|
var clamp__default = /*#__PURE__*/_interopDefault(clamp$2);
|
|
@@ -1751,8 +1749,9 @@ const useHasIntersected = ({
|
|
|
1751
1749
|
return [hasIntersected];
|
|
1752
1750
|
};
|
|
1753
1751
|
|
|
1752
|
+
// eslint-disable-next-line import/extensions
|
|
1754
1753
|
function useMedia(query) {
|
|
1755
|
-
return
|
|
1754
|
+
return index_js.useSyncExternalStore(onStoreChange => {
|
|
1756
1755
|
const mediaQueryList = window.matchMedia(query);
|
|
1757
1756
|
mediaQueryList.addEventListener('change', onStoreChange);
|
|
1758
1757
|
return () => {
|
|
@@ -1795,6 +1794,7 @@ const SlidingPanel = /*#__PURE__*/React.forwardRef(({
|
|
|
1795
1794
|
...rest
|
|
1796
1795
|
}, reference) => {
|
|
1797
1796
|
const localReference = React.useRef(null);
|
|
1797
|
+
React.useImperativeHandle(reference, () => localReference.current, []);
|
|
1798
1798
|
return /*#__PURE__*/React.createElement(reactTransitionGroup.CSSTransition, {
|
|
1799
1799
|
...rest,
|
|
1800
1800
|
key: `sliding-panel--open-${position}`,
|
|
@@ -1810,7 +1810,7 @@ const SlidingPanel = /*#__PURE__*/React.forwardRef(({
|
|
|
1810
1810
|
appear: true,
|
|
1811
1811
|
unmountOnExit: true
|
|
1812
1812
|
}, /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1813
|
-
ref:
|
|
1813
|
+
ref: localReference,
|
|
1814
1814
|
className: classNames__default.default('sliding-panel', `sliding-panel--open-${position}`, showSlidingPanelBorder && `sliding-panel--border-${position}`, slidingPanelPositionFixed && 'sliding-panel--fixed', className),
|
|
1815
1815
|
children: children
|
|
1816
1816
|
}));
|
|
@@ -2730,6 +2730,9 @@ const validDateObject = dateObject => !isNaN(dateObject.getTime());
|
|
|
2730
2730
|
|
|
2731
2731
|
const isMonthAndYearFormat = dateString => validDateString(dateString) && dateString.split('-').length < 3;
|
|
2732
2732
|
|
|
2733
|
+
const MDY = new Set(['en-US']);
|
|
2734
|
+
const YMD = new Set(['hu', 'hu-HU', 'zh-HK', 'zh-CN', 'ja', 'ja-JP']);
|
|
2735
|
+
|
|
2733
2736
|
var messages$9 = reactIntl.defineMessages({
|
|
2734
2737
|
monthLabel: {
|
|
2735
2738
|
id: "neptune.DateInput.month.label"
|
|
@@ -2753,7 +2756,6 @@ const convertToLocalMidnight = date => {
|
|
|
2753
2756
|
return new Date(utcDate.getUTCFullYear(), utcDate.getUTCMonth(), utcDate.getUTCDate());
|
|
2754
2757
|
};
|
|
2755
2758
|
|
|
2756
|
-
const MonthBeforeDay = new Set(['en-US', 'ja-JP']);
|
|
2757
2759
|
const DateInput = ({
|
|
2758
2760
|
'aria-labelledby': ariaLabelledBy,
|
|
2759
2761
|
'aria-label': ariaLabel,
|
|
@@ -2943,7 +2945,64 @@ const DateInput = ({
|
|
|
2943
2945
|
'col-sm-8': monthYearOnly,
|
|
2944
2946
|
'col-sm-5': !monthYearOnly
|
|
2945
2947
|
});
|
|
2946
|
-
const
|
|
2948
|
+
const getMonth = () => {
|
|
2949
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2950
|
+
className: monthWidth,
|
|
2951
|
+
children: getSelectElement()
|
|
2952
|
+
});
|
|
2953
|
+
};
|
|
2954
|
+
const getDay = () => {
|
|
2955
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2956
|
+
className: "col-sm-3",
|
|
2957
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
2958
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
2959
|
+
className: "sr-only",
|
|
2960
|
+
children: dayLabel
|
|
2961
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2962
|
+
className: `input-group input-group-${size}`,
|
|
2963
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Input, {
|
|
2964
|
+
type: "text",
|
|
2965
|
+
inputMode: "numeric",
|
|
2966
|
+
pattern: "[0-9]*",
|
|
2967
|
+
name: "day",
|
|
2968
|
+
autoComplete: dayAutoComplete,
|
|
2969
|
+
value: day || '',
|
|
2970
|
+
placeholder: placeholders?.day,
|
|
2971
|
+
disabled: disabled,
|
|
2972
|
+
min: 1,
|
|
2973
|
+
onChange: event => handleDayChange(event)
|
|
2974
|
+
})
|
|
2975
|
+
})]
|
|
2976
|
+
})
|
|
2977
|
+
});
|
|
2978
|
+
};
|
|
2979
|
+
const getYear = () => {
|
|
2980
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2981
|
+
className: "col-sm-4",
|
|
2982
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
2983
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
2984
|
+
className: "sr-only",
|
|
2985
|
+
children: yearLabel
|
|
2986
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2987
|
+
className: `input-group input-group-${size}`,
|
|
2988
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Input, {
|
|
2989
|
+
type: "text",
|
|
2990
|
+
inputMode: "numeric",
|
|
2991
|
+
pattern: "[0-9]*",
|
|
2992
|
+
name: "year",
|
|
2993
|
+
autoComplete: yearAutoComplete,
|
|
2994
|
+
placeholder: placeholders?.year,
|
|
2995
|
+
value: year || '',
|
|
2996
|
+
disabled: disabled,
|
|
2997
|
+
min: 1,
|
|
2998
|
+
onChange: event => handleYearChange(event)
|
|
2999
|
+
})
|
|
3000
|
+
})]
|
|
3001
|
+
})
|
|
3002
|
+
});
|
|
3003
|
+
};
|
|
3004
|
+
const monthBeforeDay = MDY.has(locale);
|
|
3005
|
+
const yearFirst = YMD.has(locale);
|
|
2947
3006
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2948
3007
|
className: "tw-date",
|
|
2949
3008
|
id: id,
|
|
@@ -2953,59 +3012,28 @@ const DateInput = ({
|
|
|
2953
3012
|
,
|
|
2954
3013
|
onFocus: event => shouldPropagateOnFocus(event) ? onFocus && onFocus(event) : event.stopPropagation(),
|
|
2955
3014
|
onBlur: event => shouldPropagateOnBlur(event) ? onBlur && onBlur(event) : event.stopPropagation(),
|
|
2956
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
3015
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2957
3016
|
className: "row",
|
|
2958
|
-
children:
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
children:
|
|
2967
|
-
})
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
min: 1,
|
|
2979
|
-
onChange: event => handleDayChange(event)
|
|
2980
|
-
})
|
|
2981
|
-
})]
|
|
2982
|
-
})
|
|
2983
|
-
}), !monthBeforeDay && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2984
|
-
className: monthWidth,
|
|
2985
|
-
children: getSelectElement()
|
|
2986
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2987
|
-
className: "col-sm-4",
|
|
2988
|
-
children: /*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
2989
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
2990
|
-
className: "sr-only",
|
|
2991
|
-
children: yearLabel
|
|
2992
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2993
|
-
className: `input-group input-group-${size}`,
|
|
2994
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Input, {
|
|
2995
|
-
type: "text",
|
|
2996
|
-
inputMode: "numeric",
|
|
2997
|
-
pattern: "[0-9]*",
|
|
2998
|
-
name: "year",
|
|
2999
|
-
autoComplete: yearAutoComplete,
|
|
3000
|
-
placeholder: placeholders.year,
|
|
3001
|
-
value: year || '',
|
|
3002
|
-
disabled: disabled,
|
|
3003
|
-
min: 1,
|
|
3004
|
-
onChange: event => handleYearChange(event)
|
|
3005
|
-
})
|
|
3006
|
-
})]
|
|
3007
|
-
})
|
|
3008
|
-
})]
|
|
3017
|
+
children: (() => {
|
|
3018
|
+
if (monthYearOnly) {
|
|
3019
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3020
|
+
children: [!yearFirst && getMonth(), getYear(), yearFirst && getMonth()]
|
|
3021
|
+
});
|
|
3022
|
+
}
|
|
3023
|
+
if (monthBeforeDay) {
|
|
3024
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3025
|
+
children: [getMonth(), getDay(), getYear()]
|
|
3026
|
+
});
|
|
3027
|
+
} else if (yearFirst) {
|
|
3028
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3029
|
+
children: [getYear(), getMonth(), getDay()]
|
|
3030
|
+
});
|
|
3031
|
+
} else {
|
|
3032
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3033
|
+
children: [getDay(), getMonth(), getYear()]
|
|
3034
|
+
});
|
|
3035
|
+
}
|
|
3036
|
+
})()
|
|
3009
3037
|
})
|
|
3010
3038
|
});
|
|
3011
3039
|
};
|
|
@@ -6574,7 +6602,10 @@ function SelectInput({
|
|
|
6574
6602
|
}) => /*#__PURE__*/jsxRuntime.jsx(SelectInputTriggerButtonPropsContext.Provider, {
|
|
6575
6603
|
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
|
6576
6604
|
value: {
|
|
6577
|
-
ref:
|
|
6605
|
+
ref: node => {
|
|
6606
|
+
ref(node);
|
|
6607
|
+
triggerRef.current = node;
|
|
6608
|
+
},
|
|
6578
6609
|
id,
|
|
6579
6610
|
...mergeProps__default.default({
|
|
6580
6611
|
onClick: () => {
|
|
@@ -7415,7 +7446,6 @@ const getSupportedSize = size => {
|
|
|
7415
7446
|
return exports.Size.MEDIUM;
|
|
7416
7447
|
}
|
|
7417
7448
|
};
|
|
7418
|
-
var Loader$1 = Loader;
|
|
7419
7449
|
|
|
7420
7450
|
const Money = ({
|
|
7421
7451
|
amount,
|
|
@@ -7428,11 +7458,6 @@ const Money = ({
|
|
|
7428
7458
|
children: formatting.formatMoney(amount, currency, locale)
|
|
7429
7459
|
});
|
|
7430
7460
|
};
|
|
7431
|
-
Money.propTypes = {
|
|
7432
|
-
amount: PropTypes__default.default.number.isRequired,
|
|
7433
|
-
currency: PropTypes__default.default.string.isRequired
|
|
7434
|
-
};
|
|
7435
|
-
var Money$1 = Money;
|
|
7436
7461
|
|
|
7437
7462
|
var messages$4 = reactIntl.defineMessages({
|
|
7438
7463
|
selectPlaceholder: {
|
|
@@ -7850,13 +7875,9 @@ const NavigationOptionList = ({
|
|
|
7850
7875
|
children: React.Children.map(children, child => /*#__PURE__*/jsxRuntime.jsx("li", {
|
|
7851
7876
|
className: "np-navigation-options-list__item",
|
|
7852
7877
|
children: child
|
|
7853
|
-
}, child
|
|
7878
|
+
}, child?.toString()))
|
|
7854
7879
|
});
|
|
7855
7880
|
};
|
|
7856
|
-
NavigationOptionList.propTypes = {
|
|
7857
|
-
children: PropTypes__default.default.node.isRequired
|
|
7858
|
-
};
|
|
7859
|
-
var NavigationOptionList$1 = NavigationOptionList;
|
|
7860
7881
|
|
|
7861
7882
|
const STORAGE_NAME = 'dismissedNudges';
|
|
7862
7883
|
const getLocalStorage = () => {
|
|
@@ -10751,6 +10772,7 @@ const SegmentedControl = ({
|
|
|
10751
10772
|
className: classNames__default.default('segmented-control__segments', {
|
|
10752
10773
|
'segmented-control__segments--no-animate': !animate
|
|
10753
10774
|
}),
|
|
10775
|
+
role: mode !== 'input' ? 'tablist' : undefined,
|
|
10754
10776
|
children: segmentsWithRefs.map(segment => mode === 'input' ? /*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
10755
10777
|
ref: segment.ref,
|
|
10756
10778
|
htmlFor: segment.id,
|
|
@@ -14233,13 +14255,13 @@ var es = {
|
|
|
14233
14255
|
"neptune.Upload.csButtonText": "¿Quieres subir otro archivo?",
|
|
14234
14256
|
"neptune.Upload.csFailureText": "La carga del archivo ha fallado. Por favor, inténtalo de nuevo",
|
|
14235
14257
|
"neptune.Upload.csSuccessText": "¡Se ha subido el archivo!",
|
|
14236
|
-
"neptune.Upload.csTooLargeMessage": "
|
|
14258
|
+
"neptune.Upload.csTooLargeMessage": "Proporciona un archivo menor de {maxSize} MB",
|
|
14237
14259
|
"neptune.Upload.csWrongTypeMessage": "Tipo de archivo no aceptado. Por favor, inténtalo de nuevo con un archivo diferente",
|
|
14238
14260
|
"neptune.Upload.psButtonText": "Cancela",
|
|
14239
14261
|
"neptune.Upload.psProcessingText": "Subiendo...",
|
|
14240
14262
|
"neptune.Upload.usButtonText": "O selecciona un archivo",
|
|
14241
14263
|
"neptune.Upload.usDropMessage": "Arrastra un archivo para subirlo",
|
|
14242
|
-
"neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo
|
|
14264
|
+
"neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo de menos de {maxSize} MB",
|
|
14243
14265
|
"neptune.UploadButton.allFileTypes": "Todos los tipos de archivos",
|
|
14244
14266
|
"neptune.UploadButton.dropFiles": "Arrastra un archivo para subirlo",
|
|
14245
14267
|
"neptune.UploadButton.instructions": "{fileTypes}, menor que {size}MB",
|
|
@@ -14349,13 +14371,13 @@ var hu = {
|
|
|
14349
14371
|
"neptune.Upload.csButtonText": "Másik fájl feltöltése?",
|
|
14350
14372
|
"neptune.Upload.csFailureText": "Feltöltés sikertelen. Kérünk, próbáld újra",
|
|
14351
14373
|
"neptune.Upload.csSuccessText": "Feltöltés sikeres",
|
|
14352
|
-
"neptune.Upload.csTooLargeMessage": "Kérünk,
|
|
14374
|
+
"neptune.Upload.csTooLargeMessage": "Kérünk, olyan fájlt küldj el, amely kisebb mint {maxSize}MB",
|
|
14353
14375
|
"neptune.Upload.csWrongTypeMessage": "Nem támogatott fájltípus. Kérünk, próbáld újra másik fájllal",
|
|
14354
14376
|
"neptune.Upload.psButtonText": "Mégsem",
|
|
14355
14377
|
"neptune.Upload.psProcessingText": "Feltöltés...",
|
|
14356
14378
|
"neptune.Upload.usButtonText": "Vagy válaszd ki a fájlt",
|
|
14357
14379
|
"neptune.Upload.usDropMessage": "Húzd ide a fájlokat a feltöltéshez",
|
|
14358
|
-
"neptune.Upload.usPlaceholder": "Húzz ide egy {maxSize} MB
|
|
14380
|
+
"neptune.Upload.usPlaceholder": "Húzz ide egy legfeljebb {maxSize} MB méretű fájlt",
|
|
14359
14381
|
"neptune.UploadButton.allFileTypes": "Összes fájltípus",
|
|
14360
14382
|
"neptune.UploadButton.dropFiles": "Húzd a fájlokat ide a feltöltéshez",
|
|
14361
14383
|
"neptune.UploadButton.instructions": "{fileTypes}, legfeljebb {size}MB",
|
|
@@ -15019,10 +15041,10 @@ var zhHK = {
|
|
|
15019
15041
|
"neptune.ClearButton.ariaLabel": "清除",
|
|
15020
15042
|
"neptune.CloseButton.ariaLabel": "關閉",
|
|
15021
15043
|
"neptune.DateInput.day.label": "日",
|
|
15022
|
-
"neptune.DateInput.day.placeholder": "
|
|
15044
|
+
"neptune.DateInput.day.placeholder": "日",
|
|
15023
15045
|
"neptune.DateInput.month.label": "月",
|
|
15024
15046
|
"neptune.DateInput.year.label": "年",
|
|
15025
|
-
"neptune.DateInput.year.placeholder": "
|
|
15047
|
+
"neptune.DateInput.year.placeholder": "年",
|
|
15026
15048
|
"neptune.DateLookup.day": "日",
|
|
15027
15049
|
"neptune.DateLookup.goTo20YearView": "切換至20年視圖",
|
|
15028
15050
|
"neptune.DateLookup.month": "月",
|
|
@@ -15075,6 +15097,7 @@ const translations = {
|
|
|
15075
15097
|
cs,
|
|
15076
15098
|
de,
|
|
15077
15099
|
en,
|
|
15100
|
+
'en-US': en,
|
|
15078
15101
|
es,
|
|
15079
15102
|
fr,
|
|
15080
15103
|
hu,
|
|
@@ -15137,14 +15160,14 @@ exports.InstructionsList = InstructionsList;
|
|
|
15137
15160
|
exports.LanguageProvider = LanguageProvider;
|
|
15138
15161
|
exports.Link = Link;
|
|
15139
15162
|
exports.ListItem = ListItem$1;
|
|
15140
|
-
exports.Loader = Loader
|
|
15163
|
+
exports.Loader = Loader;
|
|
15141
15164
|
exports.Logo = Logo$1;
|
|
15142
15165
|
exports.Markdown = Markdown;
|
|
15143
15166
|
exports.Modal = Modal;
|
|
15144
|
-
exports.Money = Money
|
|
15167
|
+
exports.Money = Money;
|
|
15145
15168
|
exports.MoneyInput = MoneyInput$1;
|
|
15146
15169
|
exports.NavigationOption = NavigationOption;
|
|
15147
|
-
exports.NavigationOptionsList = NavigationOptionList
|
|
15170
|
+
exports.NavigationOptionsList = NavigationOptionList;
|
|
15148
15171
|
exports.Nudge = Nudge;
|
|
15149
15172
|
exports.Option = Option$2;
|
|
15150
15173
|
exports.OverlayHeader = OverlayHeader$1;
|