@secondstaxorg/sscomp 1.5.95 → 1.5.96
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 +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/components/Ribbon/type.d.ts +7 -0
package/dist/index.js
CHANGED
|
@@ -21631,7 +21631,7 @@ const RibbonItem = styled.a`
|
|
|
21631
21631
|
background: white;
|
|
21632
21632
|
color: ${theme.colors["neutral-900"]};
|
|
21633
21633
|
}
|
|
21634
|
-
&.light:hover{
|
|
21634
|
+
&.light:hover,&.current{
|
|
21635
21635
|
background:${theme.colors["primary-500"]};
|
|
21636
21636
|
color: white;
|
|
21637
21637
|
}
|
|
@@ -21643,14 +21643,14 @@ const _jsxFileName$j = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\compon
|
|
|
21643
21643
|
* Menu item displayed at the top of the LP app containing links to different products of the SSX ecosystem
|
|
21644
21644
|
*/
|
|
21645
21645
|
const Ribbon = (props) => {
|
|
21646
|
-
const {links,bgColor,openInNewTab} = props;
|
|
21646
|
+
const {links,bgColor,openInNewTab,currentPageItem} = props;
|
|
21647
21647
|
|
|
21648
21648
|
return (
|
|
21649
21649
|
React$1.createElement(React$1.Fragment, null
|
|
21650
21650
|
, links && links.length > 0 &&
|
|
21651
21651
|
React$1.createElement(RibbonContainer, {__self: undefined, __source: {fileName: _jsxFileName$j, lineNumber: 14}}
|
|
21652
21652
|
, links.map((link,index) => (
|
|
21653
|
-
React$1.createElement(RibbonItem, { key: index, href: link.url, target: openInNewTab ? '_blank' : '_self', className: bgColor
|
|
21653
|
+
React$1.createElement(RibbonItem, { key: index, href: link.url, target: openInNewTab ? '_blank' : '_self', className: `${bgColor} ${currentPageItem && currentPageItem === link.label ? 'current' : ''}`, __self: undefined, __source: {fileName: _jsxFileName$j, lineNumber: 16}}, link.label)
|
|
21654
21654
|
))
|
|
21655
21655
|
)
|
|
21656
21656
|
|