@secondstaxorg/sscomp 1.4.9 → 1.5.2
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 +6 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +31 -8
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +5 -5
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/components/Ribbon/Ribbon.d.ts +2 -2
- package/types/components/Ribbon/type.d.ts +2 -1
- package/types/components/SSXBar/SSXBar.d.ts +2 -1
- package/types/components/SSXBar/types.d.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -221,7 +221,13 @@ const _jsxFileName$10 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\compo
|
|
|
221
221
|
*/
|
|
222
222
|
const Button$1 = (props) => {
|
|
223
223
|
const {variant, size, disabled,children} = props;
|
|
224
|
-
return
|
|
224
|
+
return (
|
|
225
|
+
React$1.createElement(React$1.Fragment, null
|
|
226
|
+
, React$1.createElement(ButtonComp, { className: `${variant} ${size}`, disabled: disabled, ...props, __self: undefined, __source: {fileName: _jsxFileName$10, lineNumber: 12}}
|
|
227
|
+
, children
|
|
228
|
+
)
|
|
229
|
+
)
|
|
230
|
+
)
|
|
225
231
|
};
|
|
226
232
|
|
|
227
233
|
const Container$b = styled.div`
|
|
@@ -21578,7 +21584,8 @@ const RibbonContainer = styled.div`
|
|
|
21578
21584
|
border-radius: 100px;
|
|
21579
21585
|
//display: inline-block;
|
|
21580
21586
|
overflow: hidden;
|
|
21581
|
-
|
|
21587
|
+
//max-width: 784px;
|
|
21588
|
+
width: fit-content;
|
|
21582
21589
|
`;
|
|
21583
21590
|
const RibbonItem = styled.a`
|
|
21584
21591
|
display: inline-block;
|
|
@@ -21610,14 +21617,14 @@ const _jsxFileName$h = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\compon
|
|
|
21610
21617
|
* Menu item displayed at the top of the LP app containing links to different products of the SSX ecosystem
|
|
21611
21618
|
*/
|
|
21612
21619
|
const Ribbon = (props) => {
|
|
21613
|
-
const {links,bgColor} = props;
|
|
21620
|
+
const {links,bgColor,openInNewTab} = props;
|
|
21614
21621
|
|
|
21615
21622
|
return (
|
|
21616
21623
|
React$1.createElement(React$1.Fragment, null
|
|
21617
21624
|
, links && links.length > 0 &&
|
|
21618
21625
|
React$1.createElement(RibbonContainer, {__self: undefined, __source: {fileName: _jsxFileName$h, lineNumber: 14}}
|
|
21619
21626
|
, links.map((link,index) => (
|
|
21620
|
-
React$1.createElement(RibbonItem, { key: index, href: link.url, target:
|
|
21627
|
+
React$1.createElement(RibbonItem, { key: index, href: link.url, target: openInNewTab ? '_blank' : '_self', className: bgColor, __self: undefined, __source: {fileName: _jsxFileName$h, lineNumber: 16}}, link.label)
|
|
21621
21628
|
))
|
|
21622
21629
|
)
|
|
21623
21630
|
|
|
@@ -24269,20 +24276,36 @@ const WidgetTitle = (props) => {
|
|
|
24269
24276
|
};
|
|
24270
24277
|
|
|
24271
24278
|
const SSXBarContainer = styled.div`
|
|
24272
|
-
|
|
24279
|
+
padding-inline: 32px;
|
|
24273
24280
|
height: 82px;
|
|
24274
24281
|
left: 0;
|
|
24275
24282
|
right: 0;
|
|
24276
24283
|
display: flex;
|
|
24277
|
-
//justify-content: space-around;
|
|
24278
24284
|
align-items: center;
|
|
24279
24285
|
`;
|
|
24280
24286
|
|
|
24281
24287
|
const _jsxFileName$1 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\SSXBar\\SSXBar.tsx";
|
|
24288
|
+
|
|
24282
24289
|
const SSXBar = (props) => {
|
|
24283
|
-
const {children} = props;
|
|
24290
|
+
const {children,background} = props;
|
|
24291
|
+
const [bgColor,setBgColor] = React$1.useState(null);
|
|
24292
|
+
|
|
24293
|
+
const lightStyles = {
|
|
24294
|
+
background:theme.colors.white,
|
|
24295
|
+
borderBottom:`1px solid ${theme.colors["neutral-100"]}`
|
|
24296
|
+
};
|
|
24297
|
+
const darkStyles = {
|
|
24298
|
+
background:theme.colors["neutral-900"],
|
|
24299
|
+
color:theme.colors.white
|
|
24300
|
+
};
|
|
24301
|
+
|
|
24302
|
+
React$1.useEffect(()=>{
|
|
24303
|
+
if (background === 'light') setBgColor(lightStyles);
|
|
24304
|
+
if (background === 'dark') setBgColor(darkStyles);
|
|
24305
|
+
},[background]);
|
|
24306
|
+
|
|
24284
24307
|
return (
|
|
24285
|
-
React$1.createElement(SSXBarContainer, { ...props, __self: undefined, __source: {fileName: _jsxFileName$1, lineNumber:
|
|
24308
|
+
React$1.createElement(SSXBarContainer, { ...props, style: bgColor, __self: undefined, __source: {fileName: _jsxFileName$1, lineNumber: 25}}
|
|
24286
24309
|
, children
|
|
24287
24310
|
)
|
|
24288
24311
|
)
|