@secondstaxorg/sscomp 2.0.36 → 2.0.38
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 +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +18 -16
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22413,7 +22413,7 @@ const _jsxFileName$Q = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\compon
|
|
|
22413
22413
|
const NewsFilterBar = (props) => {
|
|
22414
22414
|
const {countries,outlets,selectedCountryFxn,selectedOutletFxn,initialOutlet,theme,labelOverrides} = props;
|
|
22415
22415
|
const [windowWidth,setWindowWidth] = React$1.useState(720);
|
|
22416
|
-
const [outletInitText,setOutletInitText] = React$1.useState(
|
|
22416
|
+
const [outletInitText,setOutletInitText] = React$1.useState('');
|
|
22417
22417
|
|
|
22418
22418
|
React$1.useEffect(() => {
|
|
22419
22419
|
setWindowWidth(window.innerWidth);
|
|
@@ -22422,28 +22422,30 @@ const NewsFilterBar = (props) => {
|
|
|
22422
22422
|
});
|
|
22423
22423
|
}, []);
|
|
22424
22424
|
|
|
22425
|
+
React$1.useEffect(()=>{
|
|
22426
|
+
if (initialOutlet){
|
|
22427
|
+
setOutletInitText(initialOutlet);
|
|
22428
|
+
}
|
|
22429
|
+
},[initialOutlet]);
|
|
22430
|
+
|
|
22425
22431
|
return (
|
|
22426
|
-
React$1.createElement(TitleBarContainer$2, { className: theme, ...props, __self: undefined, __source: {fileName: _jsxFileName$Q, lineNumber:
|
|
22427
|
-
, React$1.createElement('h4', { className: windowWidth <= 720 ? "paragraph2Medium" : "heading6Medium", __self: undefined, __source: {fileName: _jsxFileName$Q, lineNumber:
|
|
22428
|
-
, React$1.createElement(NewsFilters, {__self: undefined, __source: {fileName: _jsxFileName$Q, lineNumber:
|
|
22432
|
+
React$1.createElement(TitleBarContainer$2, { className: theme, ...props, __self: undefined, __source: {fileName: _jsxFileName$Q, lineNumber: 29}}
|
|
22433
|
+
, React$1.createElement('h4', { className: windowWidth <= 720 ? "paragraph2Medium" : "heading6Medium", __self: undefined, __source: {fileName: _jsxFileName$Q, lineNumber: 30}}, _optionalChain$u([labelOverrides, 'optionalAccess', _ => _.title]) || 'News')
|
|
22434
|
+
, React$1.createElement(NewsFilters, {__self: undefined, __source: {fileName: _jsxFileName$Q, lineNumber: 31}}
|
|
22429
22435
|
, countries && countries.length > 0 &&
|
|
22430
|
-
React$1.createElement('div', { className: "filterContainer", __self: undefined, __source: {fileName: _jsxFileName$Q, lineNumber:
|
|
22431
|
-
, React$1.createElement(DropdownList, { options: countries, returnedSelection: (
|
|
22436
|
+
React$1.createElement('div', { className: "filterContainer", __self: undefined, __source: {fileName: _jsxFileName$Q, lineNumber: 33}}
|
|
22437
|
+
, React$1.createElement(DropdownList, { options: countries, returnedSelection: (selCtr) => {
|
|
22432
22438
|
if (selectedCountryFxn){
|
|
22433
|
-
selectedCountryFxn(
|
|
22434
|
-
setOutletInitText('');
|
|
22435
|
-
setTimeout(()=>{
|
|
22436
|
-
setOutletInitText(_optionalChain$u([labelOverrides, 'optionalAccess', _2 => _2.allOption]) || 'All');
|
|
22437
|
-
},200);
|
|
22439
|
+
selectedCountryFxn(selCtr);
|
|
22438
22440
|
}
|
|
22439
|
-
}, placeholder: _optionalChain$u([labelOverrides, 'optionalAccess',
|
|
22441
|
+
}, placeholder: _optionalChain$u([labelOverrides, 'optionalAccess', _2 => _2.selectCountryPlaceholder]) || "Select Country", searchable: true, inputName: "country", __self: undefined, __source: {fileName: _jsxFileName$Q, lineNumber: 34}})
|
|
22440
22442
|
)
|
|
22441
22443
|
|
|
22442
22444
|
, outlets && outlets.length > 0 &&
|
|
22443
|
-
React$1.createElement('div', { className: "filterContainer", __self: undefined, __source: {fileName: _jsxFileName$Q, lineNumber:
|
|
22445
|
+
React$1.createElement('div', { className: "filterContainer", __self: undefined, __source: {fileName: _jsxFileName$Q, lineNumber: 42}}
|
|
22444
22446
|
, React$1.createElement(DropdownList, { options: outlets, initialText: outletInitText, returnedSelection: (selOutlet) => {
|
|
22445
22447
|
if (selectedOutletFxn) selectedOutletFxn(selOutlet);
|
|
22446
|
-
}, placeholder: _optionalChain$u([labelOverrides, 'optionalAccess',
|
|
22448
|
+
}, placeholder: _optionalChain$u([labelOverrides, 'optionalAccess', _3 => _3.selectOutletPlaceholder]) || "Select Outlet", searchable: true, inputName: "outlet", __self: undefined, __source: {fileName: _jsxFileName$Q, lineNumber: 43}})
|
|
22447
22449
|
)
|
|
22448
22450
|
|
|
22449
22451
|
)
|
|
@@ -36029,7 +36031,7 @@ const AmountInput = (props) => {
|
|
|
36029
36031
|
};
|
|
36030
36032
|
|
|
36031
36033
|
const MainContainer = styled.div`
|
|
36032
|
-
|
|
36034
|
+
width: 510px;
|
|
36033
36035
|
background: ${theme.colors.white};
|
|
36034
36036
|
padding: 40px;
|
|
36035
36037
|
border-radius: 16px;
|
|
@@ -36218,7 +36220,7 @@ const Container = styled.div`
|
|
|
36218
36220
|
display: flex;
|
|
36219
36221
|
flex-direction: column;
|
|
36220
36222
|
gap: 40px;
|
|
36221
|
-
|
|
36223
|
+
width: 510px;
|
|
36222
36224
|
|
|
36223
36225
|
.email-field{
|
|
36224
36226
|
padding: 16px;
|