@secondstaxorg/sscomp 1.6.78 → 1.6.81

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.js CHANGED
@@ -21934,9 +21934,6 @@ const RibbonItem = styled.a`
21934
21934
  display: inline-block;
21935
21935
  padding: 16px;
21936
21936
  text-decoration: none;
21937
- font-weight: 400;
21938
- font-size: 14px;
21939
- line-height: 17px;
21940
21937
  text-wrap: nowrap;
21941
21938
  &.dark{
21942
21939
  background: ${theme.colors["neutral-900"]};
@@ -21973,7 +21970,7 @@ const Ribbon = (props) => {
21973
21970
  , links && links.length > 0 &&
21974
21971
  React$1.createElement(RibbonContainer, {__self: undefined, __source: {fileName: _jsxFileName$k, lineNumber: 19}}
21975
21972
  , links.map((link,index) => (
21976
- React$1.createElement(RibbonItem, { key: index, href: link.url, target: openInNewTab ? '_blank' : '_self', className: `${bgColor} ${currentPageItem && currentPageItem === link.label ? 'current' : ''}`, onClick: (e)=>{
21973
+ React$1.createElement(RibbonItem, { key: index, href: link.url, target: openInNewTab ? '_blank' : '_self', className: `paragraph1Regular ${bgColor} ${currentPageItem && currentPageItem === link.label ? 'current' : ''}`, onClick: (e)=>{
21977
21974
  if (navigationOverride) {
21978
21975
  e.preventDefault();
21979
21976
  navigationOverride(link);
@@ -24665,37 +24662,32 @@ const WidgetTitle = (props) => {
24665
24662
  };
24666
24663
 
24667
24664
  const SSXBarContainer = styled.div`
24668
- padding-inline: 32px;
24669
- height: 82px;
24665
+ height: 81px;
24670
24666
  left: 0;
24667
+ background-color: #fff;
24671
24668
  right: 0;
24672
- display: flex;
24669
+ padding-left: 16.5px;
24670
+ padding-right: 16.5px;
24673
24671
  align-items: center;
24672
+ border-bottom: 1px solid var(--neutral-100, #e8eef7);
24673
+ /* mobile screens */
24674
+ @media (max-width: 767px) {
24675
+ height: 76px;
24676
+ }
24677
+ `;
24678
+
24679
+ styled.div`
24680
+ background: white;
24681
+ color: ${theme.colors["error-900"]};
24674
24682
  `;
24675
24683
 
24676
24684
  const _jsxFileName$4 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\SSXBar\\SSXBar.tsx";
24677
24685
 
24678
24686
  const SSXBar = (props) => {
24679
- const {children,background} = props;
24680
- const [bgColor,setBgColor] = React$1.useState(null);
24681
-
24682
- const lightStyles = {
24683
- background:theme.colors.white,
24684
- borderBottom:`1px solid ${theme.colors["neutral-100"]}`
24685
- };
24686
- const darkStyles = {
24687
- background:theme.colors["neutral-900"],
24688
- color:theme.colors.white
24689
- };
24690
-
24691
- React$1.useEffect(()=>{
24692
- if (background === 'light') setBgColor(lightStyles);
24693
- if (background === 'dark') setBgColor(darkStyles);
24694
- },[background]);
24695
-
24687
+ const {children, className} = props;
24696
24688
  return (
24697
- React$1.createElement(SSXBarContainer, { ...props, style: bgColor, __self: undefined, __source: {fileName: _jsxFileName$4, lineNumber: 25}}
24698
- , children
24689
+ React$1.createElement(SSXBarContainer, { className: className, ...props, __self: undefined, __source: {fileName: _jsxFileName$4, lineNumber: 8}}
24690
+ , children && children
24699
24691
  )
24700
24692
  )
24701
24693
  };