@secondstaxorg/sscomp 1.7.72 → 1.7.73
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 +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16590,6 +16590,11 @@ const CountrySelector = (props) => {
|
|
|
16590
16590
|
}
|
|
16591
16591
|
},[initialCountry]);
|
|
16592
16592
|
|
|
16593
|
+
React$1.useEffect(()=>{
|
|
16594
|
+
setOptionsOri(options);
|
|
16595
|
+
setOptionsRec(options);
|
|
16596
|
+
},[options]);
|
|
16597
|
+
|
|
16593
16598
|
React$1.useEffect(()=>{
|
|
16594
16599
|
document.addEventListener('keyup',function(e){
|
|
16595
16600
|
if (opened && e.key === 'Escape') setOpened(false);
|
|
@@ -16621,11 +16626,6 @@ const CountrySelector = (props) => {
|
|
|
16621
16626
|
});
|
|
16622
16627
|
},[opened]);
|
|
16623
16628
|
|
|
16624
|
-
React$1.useEffect(()=>{
|
|
16625
|
-
setOptionsOri(options);
|
|
16626
|
-
setOptionsRec(options);
|
|
16627
|
-
},[options]);
|
|
16628
|
-
|
|
16629
16629
|
React$1.useEffect(()=>{
|
|
16630
16630
|
if (passedOption.optionShortName){
|
|
16631
16631
|
if (options.filter((options)=>options.optionShortName.toLowerCase().includes(passedOption.optionShortName.toLowerCase())).length === 0) setPassedOption({});
|
|
@@ -18584,13 +18584,18 @@ const DropdownList = (props) => {
|
|
|
18584
18584
|
const [firstRun,setFirstRun] = React$1.useState(true);
|
|
18585
18585
|
|
|
18586
18586
|
React$1.useEffect(()=>{
|
|
18587
|
-
if (initialText &&
|
|
18588
|
-
let opt =
|
|
18587
|
+
if (initialText && optionsOri.length > 0) {
|
|
18588
|
+
let opt = optionsOri.filter((option) => option.label.toLowerCase() === _optionalChain([initialText, 'optionalAccess', _ => _.toLowerCase, 'call', _2 => _2()]) || option.value.toLowerCase() === _optionalChain([initialText, 'optionalAccess', _3 => _3.toLowerCase, 'call', _4 => _4()]));
|
|
18589
18589
|
setInitText(opt.length > 0 ? opt[0].label : initialText);
|
|
18590
18590
|
setSrVal(initialText);
|
|
18591
18591
|
setSelStatus('success');
|
|
18592
18592
|
}
|
|
18593
|
-
},[initialText,
|
|
18593
|
+
},[initialText,optionsOri]);
|
|
18594
|
+
|
|
18595
|
+
React$1.useEffect(()=>{
|
|
18596
|
+
setOptionsOri(options);
|
|
18597
|
+
setOptionsRec(options);
|
|
18598
|
+
},[options]);
|
|
18594
18599
|
|
|
18595
18600
|
React$1.useEffect(()=>{
|
|
18596
18601
|
document.addEventListener('keyup',function(e){
|
|
@@ -18623,11 +18628,6 @@ const DropdownList = (props) => {
|
|
|
18623
18628
|
});
|
|
18624
18629
|
},[opened]);
|
|
18625
18630
|
|
|
18626
|
-
React$1.useEffect(()=>{
|
|
18627
|
-
setOptionsOri(options);
|
|
18628
|
-
setOptionsRec(options);
|
|
18629
|
-
},[options]);
|
|
18630
|
-
|
|
18631
18631
|
React$1.useEffect(()=>{
|
|
18632
18632
|
if (!firstRun){ //only run this block when it's not the first run
|
|
18633
18633
|
if (required) {
|
|
@@ -25699,8 +25699,8 @@ const DropdownField = styled.div`
|
|
|
25699
25699
|
height:45px;
|
|
25700
25700
|
}
|
|
25701
25701
|
button span.globe-icon{
|
|
25702
|
-
width:
|
|
25703
|
-
height: 15px;
|
|
25702
|
+
width: 24px;
|
|
25703
|
+
//height: 15px;
|
|
25704
25704
|
padding-inline: 5px;
|
|
25705
25705
|
//background: ${theme.colors["neutral-50"]};
|
|
25706
25706
|
border-radius: 3px;
|