@secondstaxorg/sscomp 1.9.68 → 1.9.69
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/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +21 -21
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/components/AmountInput/AmountInput.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -34576,8 +34576,8 @@ const AmountInput = (props) => {
|
|
|
34576
34576
|
|
|
34577
34577
|
React$1.useEffect(() => {
|
|
34578
34578
|
if (initialCurrencyCode) {
|
|
34579
|
-
setCurrencyCode(initialCurrencyCode);
|
|
34580
|
-
const flg = currencies.filter((currency) => currency.currency == initialCurrencyCode);
|
|
34579
|
+
setCurrencyCode(initialCurrencyCode.toUpperCase());
|
|
34580
|
+
const flg = currencies.filter((currency) => currency.currency.toLowerCase() == _optionalChain([initialCurrencyCode, 'optionalAccess', _ => _.toLowerCase, 'call', _2 => _2()]));
|
|
34581
34581
|
setFlag(flg[0].flag);
|
|
34582
34582
|
setCtryName(flg[0].country);
|
|
34583
34583
|
}
|
|
@@ -34648,7 +34648,7 @@ const AmountInput = (props) => {
|
|
|
34648
34648
|
React$1.useEffect(() => {
|
|
34649
34649
|
if (initialAmount && initialCurrencyCode) {
|
|
34650
34650
|
setSrVal(initialAmount.toString());
|
|
34651
|
-
setCurrencyCode(initialCurrencyCode);
|
|
34651
|
+
setCurrencyCode(initialCurrencyCode.toUpperCase());
|
|
34652
34652
|
setSelStatus('success');
|
|
34653
34653
|
}
|
|
34654
34654
|
}, [initialCurrencyCode, initialAmount]);
|
|
@@ -34671,12 +34671,12 @@ const AmountInput = (props) => {
|
|
|
34671
34671
|
, React$1.createElement('input', { className: "sr-only", value: currencyCode, required: required, onChange: () => {
|
|
34672
34672
|
}, onInvalid: () => {
|
|
34673
34673
|
setSelStatus('error');
|
|
34674
|
-
setErrMsg(_optionalChain([labelOverrides, 'optionalAccess',
|
|
34674
|
+
setErrMsg(_optionalChain([labelOverrides, 'optionalAccess', _3 => _3.selectCountryCodeMsg]) || 'Select a country code');
|
|
34675
34675
|
}, __self: undefined, __source: {fileName: _jsxFileName, lineNumber: 129}})
|
|
34676
34676
|
, React$1.createElement('input', { className: "sr-only", value: currencyCode, required: required, onChange: () => {
|
|
34677
34677
|
}, onInvalid: () => {
|
|
34678
34678
|
setSelStatus('error');
|
|
34679
|
-
setErrMsg(_optionalChain([labelOverrides, 'optionalAccess',
|
|
34679
|
+
setErrMsg(_optionalChain([labelOverrides, 'optionalAccess', _4 => _4.requiredFieldMsg]) || 'This field is required');
|
|
34680
34680
|
}, __self: undefined, __source: {fileName: _jsxFileName, lineNumber: 134}})
|
|
34681
34681
|
, React$1.createElement('button', { ref: buttonRef, type: "button", className: "dropdown-field",
|
|
34682
34682
|
onBlur: () => {
|
|
@@ -34732,7 +34732,7 @@ const AmountInput = (props) => {
|
|
|
34732
34732
|
setSelStatus('success');
|
|
34733
34733
|
} else {
|
|
34734
34734
|
setSelStatus('error');
|
|
34735
|
-
setErrMsg(_optionalChain([labelOverrides, 'optionalAccess',
|
|
34735
|
+
setErrMsg(_optionalChain([labelOverrides, 'optionalAccess', _5 => _5.requiredFieldMsg]) || 'This field is required');
|
|
34736
34736
|
}
|
|
34737
34737
|
} else {
|
|
34738
34738
|
setSelStatus(srVal ? 'success' : '');
|
|
@@ -34766,7 +34766,7 @@ const AmountInput = (props) => {
|
|
|
34766
34766
|
setTimeout(() => {
|
|
34767
34767
|
setOpened(false);
|
|
34768
34768
|
}, 200);
|
|
34769
|
-
}, placeholder: _optionalChain([labelOverrides, 'optionalAccess',
|
|
34769
|
+
}, placeholder: _optionalChain([labelOverrides, 'optionalAccess', _6 => _6.searchCountryPlaceholder]) || "Search by country", autoFocus: true, __self: undefined, __source: {fileName: _jsxFileName, lineNumber: 218}})
|
|
34770
34770
|
)
|
|
34771
34771
|
, currencyCodesRec.map((option, index) => (
|
|
34772
34772
|
React$1.createElement(DropdownOption, { key: index, onClick: () => {
|
|
@@ -34782,7 +34782,7 @@ const AmountInput = (props) => {
|
|
|
34782
34782
|
selectedCurrency(option);
|
|
34783
34783
|
}
|
|
34784
34784
|
setCurrencyCode(option.currency);
|
|
34785
|
-
(_optionalChain([activeField, 'optionalAccess',
|
|
34785
|
+
(_optionalChain([activeField, 'optionalAccess', _7 => _7.querySelector, 'call', _8 => _8('.input-field')]) ).focus();
|
|
34786
34786
|
}, 200);
|
|
34787
34787
|
}, __self: undefined, __source: {fileName: _jsxFileName, lineNumber: 230}}
|
|
34788
34788
|
, React$1.createElement('img', { src: option.flag, alt: option.country, __self: undefined, __source: {fileName: _jsxFileName, lineNumber: 246}})
|