@transferwise/components 0.0.0-experimental-1d96fa0 → 0.0.0-experimental-2d2d0d9
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/index.esm.js +59 -98
- package/build/index.esm.js.map +1 -1
- package/build/index.js +61 -100
- package/build/index.js.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/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/package.json +1 -1
- package/src/avatar/{Avatar.spec.js → Avatar.spec.tsx} +6 -13
- package/src/dateInput/DateInput.spec.js +9 -29
- package/src/dateInput/DateInput.tsx +49 -94
- 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/index.ts +1 -2
- package/src/index.ts +5 -0
- 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/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/index.esm.js
CHANGED
|
@@ -2720,6 +2720,7 @@ const convertToLocalMidnight = date => {
|
|
|
2720
2720
|
return new Date(utcDate.getUTCFullYear(), utcDate.getUTCMonth(), utcDate.getUTCDate());
|
|
2721
2721
|
};
|
|
2722
2722
|
|
|
2723
|
+
const MonthBeforeDay = new Set(['en-US', 'ja-JP']);
|
|
2723
2724
|
const DateInput = ({
|
|
2724
2725
|
'aria-labelledby': ariaLabelledBy,
|
|
2725
2726
|
'aria-label': ariaLabel,
|
|
@@ -2909,86 +2910,7 @@ const DateInput = ({
|
|
|
2909
2910
|
'col-sm-8': monthYearOnly,
|
|
2910
2911
|
'col-sm-5': !monthYearOnly
|
|
2911
2912
|
});
|
|
2912
|
-
const
|
|
2913
|
-
return /*#__PURE__*/jsx("div", {
|
|
2914
|
-
className: monthWidth,
|
|
2915
|
-
children: getSelectElement()
|
|
2916
|
-
});
|
|
2917
|
-
};
|
|
2918
|
-
const getDay = () => {
|
|
2919
|
-
return /*#__PURE__*/jsx("div", {
|
|
2920
|
-
className: "col-sm-3",
|
|
2921
|
-
children: /*#__PURE__*/jsxs("label", {
|
|
2922
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
2923
|
-
className: "sr-only",
|
|
2924
|
-
children: dayLabel
|
|
2925
|
-
}), /*#__PURE__*/jsx("div", {
|
|
2926
|
-
className: `input-group input-group-${size}`,
|
|
2927
|
-
children: /*#__PURE__*/jsx(Input, {
|
|
2928
|
-
type: "text",
|
|
2929
|
-
inputMode: "numeric",
|
|
2930
|
-
pattern: "[0-9]*",
|
|
2931
|
-
name: "day",
|
|
2932
|
-
autoComplete: dayAutoComplete,
|
|
2933
|
-
value: day || '',
|
|
2934
|
-
placeholder: placeholders?.day,
|
|
2935
|
-
disabled: disabled,
|
|
2936
|
-
min: 1,
|
|
2937
|
-
onChange: event => handleDayChange(event)
|
|
2938
|
-
})
|
|
2939
|
-
})]
|
|
2940
|
-
})
|
|
2941
|
-
});
|
|
2942
|
-
};
|
|
2943
|
-
const getYear = () => {
|
|
2944
|
-
return /*#__PURE__*/jsx("div", {
|
|
2945
|
-
className: "col-sm-4",
|
|
2946
|
-
children: /*#__PURE__*/jsxs("label", {
|
|
2947
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
2948
|
-
className: "sr-only",
|
|
2949
|
-
children: yearLabel
|
|
2950
|
-
}), /*#__PURE__*/jsx("div", {
|
|
2951
|
-
className: `input-group input-group-${size}`,
|
|
2952
|
-
children: /*#__PURE__*/jsx(Input, {
|
|
2953
|
-
type: "text",
|
|
2954
|
-
inputMode: "numeric",
|
|
2955
|
-
pattern: "[0-9]*",
|
|
2956
|
-
name: "year",
|
|
2957
|
-
autoComplete: yearAutoComplete,
|
|
2958
|
-
placeholder: placeholders?.year,
|
|
2959
|
-
value: year || '',
|
|
2960
|
-
disabled: disabled,
|
|
2961
|
-
min: 1,
|
|
2962
|
-
onChange: event => handleYearChange(event)
|
|
2963
|
-
})
|
|
2964
|
-
})]
|
|
2965
|
-
})
|
|
2966
|
-
});
|
|
2967
|
-
};
|
|
2968
|
-
const MDY = new Set(['en-US']);
|
|
2969
|
-
const YMD = new Set(['hu', 'hu-HU', 'zh-HK', 'zh-CN', 'ja', 'ja-JP']);
|
|
2970
|
-
const monthBeforeDay = MDY.has(locale);
|
|
2971
|
-
const yearFirst = YMD.has(locale);
|
|
2972
|
-
const returnOrderedInputs = () => {
|
|
2973
|
-
if (monthYearOnly) {
|
|
2974
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
2975
|
-
children: [!yearFirst && getMonth(), getYear(), yearFirst && getMonth()]
|
|
2976
|
-
});
|
|
2977
|
-
}
|
|
2978
|
-
if (monthBeforeDay) {
|
|
2979
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
2980
|
-
children: [getMonth(), getDay(), getYear()]
|
|
2981
|
-
});
|
|
2982
|
-
} else if (yearFirst) {
|
|
2983
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
2984
|
-
children: [getYear(), getMonth(), getDay()]
|
|
2985
|
-
});
|
|
2986
|
-
} else {
|
|
2987
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
2988
|
-
children: [getDay(), getMonth(), getYear()]
|
|
2989
|
-
});
|
|
2990
|
-
}
|
|
2991
|
-
};
|
|
2913
|
+
const monthBeforeDay = MonthBeforeDay.has(locale);
|
|
2992
2914
|
return /*#__PURE__*/jsx("div", {
|
|
2993
2915
|
className: "tw-date",
|
|
2994
2916
|
id: id,
|
|
@@ -2998,9 +2920,59 @@ const DateInput = ({
|
|
|
2998
2920
|
,
|
|
2999
2921
|
onFocus: event => shouldPropagateOnFocus(event) ? onFocus && onFocus(event) : event.stopPropagation(),
|
|
3000
2922
|
onBlur: event => shouldPropagateOnBlur(event) ? onBlur && onBlur(event) : event.stopPropagation(),
|
|
3001
|
-
children: /*#__PURE__*/
|
|
2923
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
3002
2924
|
className: "row",
|
|
3003
|
-
children:
|
|
2925
|
+
children: [monthBeforeDay && /*#__PURE__*/jsx("div", {
|
|
2926
|
+
className: monthWidth,
|
|
2927
|
+
children: getSelectElement()
|
|
2928
|
+
}), !monthYearOnly && /*#__PURE__*/jsx("div", {
|
|
2929
|
+
className: "col-sm-3",
|
|
2930
|
+
children: /*#__PURE__*/jsxs("label", {
|
|
2931
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
2932
|
+
className: "sr-only",
|
|
2933
|
+
children: dayLabel
|
|
2934
|
+
}), /*#__PURE__*/jsx("div", {
|
|
2935
|
+
className: `input-group input-group-${size}`,
|
|
2936
|
+
children: /*#__PURE__*/jsx(Input, {
|
|
2937
|
+
type: "text",
|
|
2938
|
+
inputMode: "numeric",
|
|
2939
|
+
pattern: "[0-9]*",
|
|
2940
|
+
name: "day",
|
|
2941
|
+
autoComplete: dayAutoComplete,
|
|
2942
|
+
value: day || '',
|
|
2943
|
+
placeholder: placeholders.day,
|
|
2944
|
+
disabled: disabled,
|
|
2945
|
+
min: 1,
|
|
2946
|
+
onChange: event => handleDayChange(event)
|
|
2947
|
+
})
|
|
2948
|
+
})]
|
|
2949
|
+
})
|
|
2950
|
+
}), !monthBeforeDay && /*#__PURE__*/jsx("div", {
|
|
2951
|
+
className: monthWidth,
|
|
2952
|
+
children: getSelectElement()
|
|
2953
|
+
}), /*#__PURE__*/jsx("div", {
|
|
2954
|
+
className: "col-sm-4",
|
|
2955
|
+
children: /*#__PURE__*/jsxs("label", {
|
|
2956
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
2957
|
+
className: "sr-only",
|
|
2958
|
+
children: yearLabel
|
|
2959
|
+
}), /*#__PURE__*/jsx("div", {
|
|
2960
|
+
className: `input-group input-group-${size}`,
|
|
2961
|
+
children: /*#__PURE__*/jsx(Input, {
|
|
2962
|
+
type: "text",
|
|
2963
|
+
inputMode: "numeric",
|
|
2964
|
+
pattern: "[0-9]*",
|
|
2965
|
+
name: "year",
|
|
2966
|
+
autoComplete: yearAutoComplete,
|
|
2967
|
+
placeholder: placeholders.year,
|
|
2968
|
+
value: year || '',
|
|
2969
|
+
disabled: disabled,
|
|
2970
|
+
min: 1,
|
|
2971
|
+
onChange: event => handleYearChange(event)
|
|
2972
|
+
})
|
|
2973
|
+
})]
|
|
2974
|
+
})
|
|
2975
|
+
})]
|
|
3004
2976
|
})
|
|
3005
2977
|
});
|
|
3006
2978
|
};
|
|
@@ -7410,7 +7382,6 @@ const getSupportedSize = size => {
|
|
|
7410
7382
|
return Size.MEDIUM;
|
|
7411
7383
|
}
|
|
7412
7384
|
};
|
|
7413
|
-
var Loader$1 = Loader;
|
|
7414
7385
|
|
|
7415
7386
|
const Money = ({
|
|
7416
7387
|
amount,
|
|
@@ -7423,11 +7394,6 @@ const Money = ({
|
|
|
7423
7394
|
children: formatMoney(amount, currency, locale)
|
|
7424
7395
|
});
|
|
7425
7396
|
};
|
|
7426
|
-
Money.propTypes = {
|
|
7427
|
-
amount: PropTypes.number.isRequired,
|
|
7428
|
-
currency: PropTypes.string.isRequired
|
|
7429
|
-
};
|
|
7430
|
-
var Money$1 = Money;
|
|
7431
7397
|
|
|
7432
7398
|
var messages$4 = defineMessages({
|
|
7433
7399
|
selectPlaceholder: {
|
|
@@ -7845,13 +7811,9 @@ const NavigationOptionList = ({
|
|
|
7845
7811
|
children: Children.map(children, child => /*#__PURE__*/jsx("li", {
|
|
7846
7812
|
className: "np-navigation-options-list__item",
|
|
7847
7813
|
children: child
|
|
7848
|
-
}, child
|
|
7814
|
+
}, child?.toString()))
|
|
7849
7815
|
});
|
|
7850
7816
|
};
|
|
7851
|
-
NavigationOptionList.propTypes = {
|
|
7852
|
-
children: PropTypes.node.isRequired
|
|
7853
|
-
};
|
|
7854
|
-
var NavigationOptionList$1 = NavigationOptionList;
|
|
7855
7817
|
|
|
7856
7818
|
const STORAGE_NAME = 'dismissedNudges';
|
|
7857
7819
|
const getLocalStorage = () => {
|
|
@@ -14228,13 +14190,13 @@ var es = {
|
|
|
14228
14190
|
"neptune.Upload.csButtonText": "¿Quieres subir otro archivo?",
|
|
14229
14191
|
"neptune.Upload.csFailureText": "La carga del archivo ha fallado. Por favor, inténtalo de nuevo",
|
|
14230
14192
|
"neptune.Upload.csSuccessText": "¡Se ha subido el archivo!",
|
|
14231
|
-
"neptune.Upload.csTooLargeMessage": "
|
|
14193
|
+
"neptune.Upload.csTooLargeMessage": "Proporciona un archivo menor de {maxSize} MB",
|
|
14232
14194
|
"neptune.Upload.csWrongTypeMessage": "Tipo de archivo no aceptado. Por favor, inténtalo de nuevo con un archivo diferente",
|
|
14233
14195
|
"neptune.Upload.psButtonText": "Cancela",
|
|
14234
14196
|
"neptune.Upload.psProcessingText": "Subiendo...",
|
|
14235
14197
|
"neptune.Upload.usButtonText": "O selecciona un archivo",
|
|
14236
14198
|
"neptune.Upload.usDropMessage": "Arrastra un archivo para subirlo",
|
|
14237
|
-
"neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo
|
|
14199
|
+
"neptune.Upload.usPlaceholder": "Arrastra y suelta un archivo de menos de {maxSize} MB",
|
|
14238
14200
|
"neptune.UploadButton.allFileTypes": "Todos los tipos de archivos",
|
|
14239
14201
|
"neptune.UploadButton.dropFiles": "Arrastra un archivo para subirlo",
|
|
14240
14202
|
"neptune.UploadButton.instructions": "{fileTypes}, menor que {size}MB",
|
|
@@ -15070,13 +15032,12 @@ const translations = {
|
|
|
15070
15032
|
cs,
|
|
15071
15033
|
de,
|
|
15072
15034
|
en,
|
|
15073
|
-
'en-US': en,
|
|
15074
15035
|
es,
|
|
15075
15036
|
fr,
|
|
15076
15037
|
hu,
|
|
15077
15038
|
id,
|
|
15078
15039
|
it,
|
|
15079
|
-
|
|
15040
|
+
ja,
|
|
15080
15041
|
pl,
|
|
15081
15042
|
pt,
|
|
15082
15043
|
ro,
|
|
@@ -15088,5 +15049,5 @@ const translations = {
|
|
|
15088
15049
|
'zh-HK': zhHK
|
|
15089
15050
|
};
|
|
15090
15051
|
|
|
15091
|
-
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
|
|
15052
|
+
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$1 as 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 };
|
|
15092
15053
|
//# sourceMappingURL=index.esm.js.map
|