@secondstaxorg/sscomp 2.0.74 → 2.0.76
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
|
@@ -3232,7 +3232,7 @@ function round$1(e){return e+.5|0}const lim=(e,t,o)=>Math.max(Math.min(e,o),t);f
|
|
|
3232
3232
|
width: 100%;
|
|
3233
3233
|
}
|
|
3234
3234
|
}
|
|
3235
|
-
`,_jsxFileName$R="D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\NewsFilterBar\\NewsFilterBar.tsx";function _optionalChain$u(e){let t,o=e[0],r=1;for(;r<e.length;){const i=e[r],a=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==o)return;"access"===i||"optionalAccess"===i?(t=o,o=a(o)):"call"!==i&&"optionalCall"!==i||(o=a(((...e)=>o.call(t,...e))),t=void 0)}return o}const NewsFilterBar=e=>{const{countries:t,outlets:o,selectedCountryFxn:r,selectedOutletFxn:i,initialOutlet:a,theme:n,labelOverrides:s,tabs:l,currentTab:c}=e,[d,u]=React$2.useState(720),[m,g]=React$2.useState(""),[p,f]=React$2.useState("");return React$2.useEffect((()=>{u(window.innerWidth),window.addEventListener("resize",(function(){u(window.innerWidth)}))}),[]),React$2.useEffect((()=>{l&&l.length>0&&(f(l[0].label),c&&c(l[0].label))}),[
|
|
3235
|
+
`,_jsxFileName$R="D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\NewsFilterBar\\NewsFilterBar.tsx";function _optionalChain$u(e){let t,o=e[0],r=1;for(;r<e.length;){const i=e[r],a=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==o)return;"access"===i||"optionalAccess"===i?(t=o,o=a(o)):"call"!==i&&"optionalCall"!==i||(o=a(((...e)=>o.call(t,...e))),t=void 0)}return o}const NewsFilterBar=e=>{const{countries:t,outlets:o,selectedCountryFxn:r,selectedOutletFxn:i,initialOutlet:a,theme:n,labelOverrides:s,tabs:l,currentTab:c}=e,[d,u]=React$2.useState(720),[m,g]=React$2.useState(""),[p,f]=React$2.useState("");return React$2.useEffect((()=>{u(window.innerWidth),window.addEventListener("resize",(function(){u(window.innerWidth)}))}),[]),React$2.useEffect((()=>{l&&l.length>0&&(f(l[0].label),c&&c(l[0].label))}),[]),React$2.useEffect((()=>{a&&g(a)}),[a]),React$2.createElement(TitleBarContainer$2,{className:n,...e,__self:void 0,__source:{fileName:_jsxFileName$R,lineNumber:35}},React$2.createElement("div",{className:"tabs",__self:void 0,__source:{fileName:_jsxFileName$R,lineNumber:36}},l?React$2.createElement(React$2.Fragment,null,l.map(((e,t)=>React$2.createElement("button",{className:`paragraph2Medium tab-button ${e.label===p?"active":""} ${n}`,key:t,onClick:()=>{p!==e.label&&(f(e.label),c&&c(e.label))},__self:void 0,__source:{fileName:_jsxFileName$R,lineNumber:40}},e.label)))):React$2.createElement("h4",{className:d<=720?"paragraph2Medium":"heading6Medium",__self:void 0,__source:{fileName:_jsxFileName$R,lineNumber:50}},_optionalChain$u([s,"optionalAccess",e=>e.title])||"News")),React$2.createElement("div",{__self:void 0,__source:{fileName:_jsxFileName$R,lineNumber:53}},l&&_optionalChain$u([l,"access",e=>e.find,"call",e=>e((e=>e.label===p)),"optionalAccess",e=>e.actions])||React$2.createElement(NewsFilters,{__self:void 0,__source:{fileName:_jsxFileName$R,lineNumber:54}},t&&t.length>0&&React$2.createElement("div",{className:"filterContainer",__self:void 0,__source:{fileName:_jsxFileName$R,lineNumber:56}},React$2.createElement(DropdownList,{options:t,returnedSelection:e=>{r&&r(e)},placeholder:_optionalChain$u([s,"optionalAccess",e=>e.selectCountryPlaceholder])||"Select Country",searchable:!0,inputName:"country",__self:void 0,__source:{fileName:_jsxFileName$R,lineNumber:57}})),o&&o.length>0&&React$2.createElement("div",{className:"filterContainer",__self:void 0,__source:{fileName:_jsxFileName$R,lineNumber:66}},React$2.createElement(DropdownList,{options:o,initialText:m,returnedSelection:e=>{i&&i(e)},placeholder:_optionalChain$u([s,"optionalAccess",e=>e.selectOutletPlaceholder])||"Select Outlet",searchable:!0,inputName:"outlet",__self:void 0,__source:{fileName:_jsxFileName$R,lineNumber:67}})))))},SourceDate$1=styled.div`
|
|
3236
3236
|
background: ${theme.colors["neutral-50"]};
|
|
3237
3237
|
border-radius: 8px;
|
|
3238
3238
|
display: inline-flex;
|