@secondstaxorg/sscomp 1.6.78 → 1.6.79
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 +13 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +17 -22
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +13 -4
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/components/SSXBar/style.d.ts +1 -0
- package/types/components/SSXBar/types.d.ts +3 -2
package/dist/index.js
CHANGED
|
@@ -24665,37 +24665,32 @@ const WidgetTitle = (props) => {
|
|
|
24665
24665
|
};
|
|
24666
24666
|
|
|
24667
24667
|
const SSXBarContainer = styled.div`
|
|
24668
|
-
|
|
24669
|
-
height: 82px;
|
|
24668
|
+
height: 81px;
|
|
24670
24669
|
left: 0;
|
|
24670
|
+
background-color: #fff;
|
|
24671
24671
|
right: 0;
|
|
24672
|
-
|
|
24672
|
+
padding-left: 16.5px;
|
|
24673
|
+
padding-right: 16.5px;
|
|
24673
24674
|
align-items: center;
|
|
24675
|
+
border-bottom: 1px solid var(--neutral-100, #e8eef7);
|
|
24676
|
+
/* mobile screens */
|
|
24677
|
+
@media (max-width: 767px) {
|
|
24678
|
+
height: 76px;
|
|
24679
|
+
}
|
|
24680
|
+
`;
|
|
24681
|
+
|
|
24682
|
+
styled.div`
|
|
24683
|
+
background: white;
|
|
24684
|
+
color: ${theme.colors["error-900"]};
|
|
24674
24685
|
`;
|
|
24675
24686
|
|
|
24676
24687
|
const _jsxFileName$4 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\SSXBar\\SSXBar.tsx";
|
|
24677
24688
|
|
|
24678
24689
|
const SSXBar = (props) => {
|
|
24679
|
-
const {children,
|
|
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
|
-
|
|
24690
|
+
const {children, className} = props;
|
|
24696
24691
|
return (
|
|
24697
|
-
React$1.createElement(SSXBarContainer, { ...props,
|
|
24698
|
-
, children
|
|
24692
|
+
React$1.createElement(SSXBarContainer, { className: className, ...props, __self: undefined, __source: {fileName: _jsxFileName$4, lineNumber: 8}}
|
|
24693
|
+
, children && children
|
|
24699
24694
|
)
|
|
24700
24695
|
)
|
|
24701
24696
|
};
|