@pega/cosmos-react-wss 10.0.0-build.16.2 → 10.0.0-build.16.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.styles.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/AppShell.styles.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAQpE,eAAO,MAAM,YAAY,WAAW,CAAC;AAiBrC,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,YAAY,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAI9F,CAAC;AAEF,eAAO,MAAM,sBAAsB;iBACpB,aAAa,CAAC,aAAa,CAAC;eAC9B,OAAO;6BACO,MAAM;kBACjB,OAAO;kBACP,OAAO;kBACP,YAAY;EAgB3B,CAAC;AAEF,eAAO,MAAM,SAAS,uNAUrB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;yLAY5B,CAAC;AAIH,eAAO,MAAM,aAAa;;2BAOxB,CAAC;AAIH,eAAO,MAAM,iBAAiB;;;;kMAS7B,CAAC;AAIF,eAAO,MAAM,eAAe;iBACb,aAAa,CAAC,aAAa,CAAC;mBAC1B,OAAO;mBACP,OAAO;YAyJtB,CAAC;AAIH,eAAO,MAAM,iBAAiB;YAAwB,OAAO;YAS3D,CAAC;AAEH,eAAO,MAAM,wBAAwB,kaAKnC,CAAC;AAIH,eAAO,MAAM,UAAU;oBACL,aAAa,CAAC,cAAc,CAAC;mBAC9B,aAAa,CAAC,aAAa,CAAC;oBAC3B,aAAa,CAAC,cAAc,CAAC;YAwD7C,CAAC;AAIH,eAAO,MAAM,kBAAkB;oBA9Db,aAAa,CAAC,cAAc,CAAC;mBAC9B,aAAa,CAAC,aAAa,CAAC;oBAC3B,aAAa,CAAC,cAAc,CAAC;;;mB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B,yOAuC3B,CAAC;AAIH,eAAO,MAAM,qBAAqB,6NAQhC,CAAC;AAIH,eAAO,MAAM,iBAAiB,6NAY5B,CAAC;AAIH,eAAO,MAAM,qBAAqB,6NAehC,CAAC;AAIH,eAAO,MAAM,eAAe,6NAU1B,CAAC;AAIH,eAAO,MAAM,uBAAuB,6NAGnC,CAAC;AAIF,eAAO,MAAM,eAAe;;;2BAjlBf,CAAC;iDAslBb,CAAC;AAIF,eAAO,MAAM,mBAAmB;cAA0B,OAAO;YAa/D,CAAC;AAIH,eAAO,MAAM,sBAAsB,iOAYjC,CAAC;AAIH,eAAO,MAAM,kBAAkB;;gOA2B7B,CAAC;AAIH,eAAO,MAAM,wBAAwB;aAA0B,OAAO;YAoBpE,CAAC;AAIH,eAAO,MAAM,yBAAyB;aAA0B,OAAO;YAMrE,CAAC;AAIH,eAAO,MAAM,2BAA2B;aAA0B,OAAO;YAUxE,CAAC;AAIF,eAAO,MAAM,kBAAkB,6NAAe,CAAC;AAI/C,eAAO,MAAM,yBAAyB,shBAQrC,CAAC;AAIF,eAAO,MAAM,aAAa,6NAGzB,CAAC;AAIF,eAAO,MAAM,eAAe;;gOAG3B,CAAC;AAIF,eAAO,MAAM,gBAAgB;;kHAK5B,CAAC;AAIF,eAAO,MAAM,mBAAmB;;mBAE/B,CAAC"}
@@ -103,6 +103,15 @@ export const StyledAppHeader = styled.header(({ navPosition, $isDefaultWSS, $has
103
103
  ${$isDefaultWSS ? base.palette['border-line'] : headerBorderColor};
104
104
  color: ${foregroundColor};
105
105
 
106
+ &::before {
107
+ content: '';
108
+ position: absolute;
109
+ inset-block-start: calc(-1 * var(--appshell-hard-top-offset));
110
+ inset-inline: 0;
111
+ height: var(--appshell-hard-top-offset);
112
+ background: ${isModernStacked ? stackedTopBackground : headerBg};
113
+ }
114
+
106
115
  ${StyledImage} {
107
116
  height: 1.625rem;
108
117
  align-self: center;
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.styles.js","sourceRoot":"","sources":["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EAAE,CAAC;AAE/C,kBAAkB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEnD,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;;;;;;;;CAQ1D,CAAC;AAEF,yBAAyB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE1D,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGtC,CAAC;AAEF,aAAa,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;;;CAGhD,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEhD,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,WAAW,CAAC,CAAA;;;;;CAKlD,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEjD,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,YAAY,CAAC,CAAA;;CAEtD,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import { lighten, mix } from 'polished';\nimport styled, { createGlobalStyle, css } from 'styled-components';\n\nimport {\n Text,\n calculateFontSize,\n calculateForegroundColor,\n Count,\n defaultThemeProp,\n Icon,\n StyledFlex,\n StyledImage,\n StyledText,\n StyledVisual,\n tryCatch\n} from '@pega/cosmos-react-core';\nimport { StyledAppHeaderOperator } from '@pega/cosmos-react-core/lib/components/AppShell/AppHeader.styles';\nimport { StyledAlert } from '@pega/cosmos-react-core/lib/components/Badges/Alert';\nimport BareButton from '@pega/cosmos-react-core/lib/components/Button/BareButton';\nimport { StyledVisuallyHiddenText } from '@pega/cosmos-react-core/lib/components/VisuallyHiddenText/VisuallyHiddenText';\nimport { resizeDrawerMaxWidth } from '@pega/cosmos-react-core/lib/styles/constants';\n\nimport type { AppShellProps, ContentWidth } from './AppShell.types';\n\nconst headerHeight = '3rem';\nconst tallHeaderHeight = '6rem';\nconst mobileTopBarHeight = '2.75rem';\nconst topBarHeight = '2.5rem';\nconst navBarHeight = '3.25rem';\nconst stackedHeaderHeight = `calc(${topBarHeight} + ${navBarHeight})`;\nexport const footerHeight = '2.5rem';\n\nconst getAppHeaderHeight = ({\n navPosition,\n hasMobileNav,\n isDefaultWSS\n}: {\n navPosition: AppShellProps['navPosition'];\n hasMobileNav: boolean;\n isDefaultWSS: boolean;\n}) => {\n if (navPosition !== 'below') return headerHeight;\n if (!hasMobileNav) return stackedHeaderHeight;\n\n return isDefaultWSS ? headerHeight : mobileTopBarHeight;\n};\n\nexport const contentWidthPresets: Record<ContentWidth, { maxWidth: string; inlineSize: string }> = {\n standard: { maxWidth: '80rem', inlineSize: '85%' },\n wide: { maxWidth: '100rem', inlineSize: '92%' },\n full: { maxWidth: '100%', inlineSize: '100%' }\n};\n\nexport const WSSAppShellGlobalStyle = createGlobalStyle<{\n navPosition: AppShellProps['navPosition'];\n hasFooter: boolean;\n configuredFooterHeight?: string;\n hasMobileNav: boolean;\n isDefaultWSS: boolean;\n contentWidth: ContentWidth;\n}>`\n :root,\n :host {\n --app-header-height: ${({ navPosition, hasMobileNav, isDefaultWSS }) =>\n getAppHeaderHeight({ navPosition, hasMobileNav, isDefaultWSS })};\n --wss-content-max-width: ${({ contentWidth }) => contentWidthPresets[contentWidth].maxWidth};\n --wss-content-inline-size: ${({ contentWidth }) => contentWidthPresets[contentWidth].inlineSize};\n --appshell-hard-top-offset: calc(var(--marking-height, 0rem) + var(--safe-area-inset-block-start, 0rem));\n --appshell-top-offset: calc(var(--appshell-hard-top-offset, 0rem) + var(--app-header-height, 0rem));\n --appshell-hard-bottom-offset: calc(var(--marking-height, 0rem) + var(--safe-area-inset-block-end, 0rem));\n --appshell-footer-height: ${({ hasFooter, configuredFooterHeight }) =>\n hasFooter ? configuredFooterHeight ?? footerHeight : '0rem'};\n --appshell-bottom-offset: calc(var(--appshell-hard-bottom-offset, 0rem) + var(--appshell-footer-height, 0rem));\n --appshell-total-offset: calc(var(--appshell-top-offset, 0rem) + var(--appshell-bottom-offset, 0rem));\n }\n`;\n\nexport const StyledNav = styled.nav`\n white-space: nowrap;\n overflow: visible;\n visibility: hidden;\n height: 100%;\n\n a:hover,\n button:hover {\n text-decoration: none;\n }\n`;\n\nexport const StyledPrimaryName = styled(Text)(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n color: ${theme.base.palette['foreground-color']};\n font-size: ${fontSize.xxl};\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n max-width: 50ch;\n `;\n});\n\nStyledPrimaryName.defaultProps = defaultThemeProp;\n\nexport const StyledAppName = styled(StyledPrimaryName)(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n font-size: ${fontSize.s};\n font-weight: ${theme.base['font-weight']['semi-bold']};\n `;\n});\n\nStyledAppName.defaultProps = defaultThemeProp;\n\nexport const StyledChannelName = styled(Text).attrs({ variant: 'secondary' as const })(\n ({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n font-size: ${fontSize.xs};\n font-weight: ${theme.base['font-weight'].normal};\n `;\n }\n);\n\nStyledChannelName.defaultProps = defaultThemeProp;\n\nexport const StyledAppHeader = styled.header<{\n navPosition: AppShellProps['navPosition'];\n $isDefaultWSS: boolean;\n $hasMobileNav: boolean;\n}>(({ navPosition, $isDefaultWSS, $hasMobileNav, theme }) => {\n const {\n base,\n components: {\n 'app-shell': {\n header: {\n background: headerBg,\n 'foreground-color': headerFgColor,\n 'border-color': headerBorderColor,\n divider: showLogoDivider\n },\n nav: { background: navBg, 'foreground-color': navFgColor }\n }\n }\n } = theme;\n\n const isModernStacked = !$isDefaultWSS && navPosition === 'below';\n const isModernInline = !$isDefaultWSS && navPosition === 'inline';\n\n const foregroundColor = calculateForegroundColor(headerBg, headerFgColor, theme);\n const navForeground = calculateForegroundColor(navBg, navFgColor, theme);\n\n const stackedTopBackground = $hasMobileNav ? headerBg : navBg;\n const stackedTopForeground = $hasMobileNav ? foregroundColor : navForeground;\n const stackedTopBarHeight = $hasMobileNav ? mobileTopBarHeight : topBarHeight;\n\n return css`\n position: sticky;\n inset-block-start: var(--appshell-hard-top-offset, 0);\n height: ${getAppHeaderHeight({\n navPosition,\n hasMobileNav: $hasMobileNav,\n isDefaultWSS: $isDefaultWSS\n })};\n width: 100%;\n background: ${isModernStacked && !$hasMobileNav ? 'transparent' : headerBg};\n z-index: calc(${base['z-index'].popover} + 1);\n border-bottom: 0.0625rem solid\n ${$isDefaultWSS ? base.palette['border-line'] : headerBorderColor};\n color: ${foregroundColor};\n\n ${StyledImage} {\n height: 1.625rem;\n align-self: center;\n }\n\n ${showLogoDivider &&\n css`\n ${StyledImage} + span:has(> :not(${StyledVisuallyHiddenText}))::before {\n content: '';\n align-self: center;\n flex-shrink: 0;\n width: 0.0625rem;\n height: 1.5rem;\n margin-inline-end: calc(0.5 * ${base.spacing});\n margin-block: -1.5rem;\n background-color: ${base.palette['border-line']};\n }\n `}\n\n ${StyledPrimaryName} {\n max-width: min(50ch, 50vw);\n }\n\n & > ${StyledFlex} {\n height: ${headerHeight};\n\n ${StyledAppHeaderOperator} {\n margin: ${$isDefaultWSS || navPosition === 'inline' ? base.spacing : 0};\n }\n\n & > a,\n & > button {\n cursor: pointer;\n text-decoration: none;\n user-select: none;\n -webkit-user-select: none;\n min-height: ${headerHeight};\n\n &:focus-visible {\n box-shadow: ${base.shadow.focus};\n }\n }\n }\n\n & > ${StyledNav} {\n height: calc(${tallHeaderHeight} - ${headerHeight});\n }\n\n ${$isDefaultWSS &&\n navPosition === 'below' &&\n !$hasMobileNav &&\n css`\n & > ${StyledFlex}:first-child {\n height: ${topBarHeight};\n\n ${StyledAppHeaderOperator} {\n margin-block: 0;\n }\n\n & > a,\n & > button {\n min-height: ${topBarHeight};\n }\n }\n\n & > ${StyledFlex}:nth-child(2) {\n height: ${navBarHeight};\n }\n `}\n\n ${isModernStacked &&\n css`\n border-bottom: none;\n\n & > ${StyledFlex}:first-child {\n height: ${stackedTopBarHeight};\n width: 100%;\n background: ${stackedTopBackground};\n color: ${stackedTopForeground};\n padding-inline: calc(${base.spacing} * 2);\n\n & > a,\n & > button {\n min-height: ${stackedTopBarHeight};\n }\n\n ${StyledPrimaryName} {\n color: ${stackedTopForeground};\n }\n }\n\n & > ${StyledFlex}:nth-child(2) {\n height: ${navBarHeight};\n width: 100%;\n background: ${headerBg};\n color: ${foregroundColor};\n padding-inline: calc(${base.spacing} * 2);\n\n ${StyledPrimaryName} {\n color: ${foregroundColor};\n }\n }\n `}\n\n ${isModernInline &&\n css`\n & > ${StyledFlex}:first-child {\n padding-inline: calc(${base.spacing} * 2);\n }\n `}\n `;\n});\n\nStyledAppHeader.defaultProps = defaultThemeProp;\n\nexport const StyledEndNavBlock = styled.div<{ mobile: boolean }>(({ mobile }) => {\n return css`\n flex-shrink: 0;\n\n ${mobile &&\n css`\n margin-inline-start: auto;\n `}\n `;\n});\n\nexport const StyledShareButtonContent = styled(Icon)(({ theme }) => {\n return css`\n white-space: nowrap;\n margin-inline-end: calc(0.5 * ${theme.base.spacing});\n `;\n});\n\nStyledShareButtonContent.defaultProps = defaultThemeProp;\n\nexport const StyledLink = styled.a<{\n $isDefaultWSS?: AppShellProps['isDefaultWSS'];\n $navPosition?: AppShellProps['navPosition'];\n $navAlignment?: AppShellProps['navAlignment'];\n}>(({ theme, $isDefaultWSS, $navPosition, $navAlignment }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n color: inherit;\n padding: 0 calc(0.5 * ${theme.base.spacing});\n\n && {\n margin: 0;\n font-weight: ${theme.base['font-weight'].normal};\n }\n font-size: ${fontSize.xs};\n position: relative;\n height: 100%;\n display: flex;\n align-items: center;\n\n &&:last-child {\n margin-inline-end: ${$navAlignment === 'center' ||\n (!$isDefaultWSS && $navPosition === 'below')\n ? 0\n : theme.base.spacing};\n }\n\n ${$isDefaultWSS &&\n $navPosition === 'below' &&\n $navAlignment === 'start' &&\n css`\n &&:first-of-type {\n margin-inline-start: ${theme.base.spacing};\n }\n `}\n\n &&:hover,\n &&:focus-visible {\n color: ${theme.base.palette.interactive};\n text-decoration: none;\n }\n\n &&[aria-current='page'] {\n color: ${theme.base.palette.interactive};\n font-weight: ${theme.base['font-weight']['semi-bold']};\n text-decoration: none;\n\n &::after {\n content: '';\n position: absolute;\n inset-inline-start: 0;\n inset-block-end: 0;\n background-color: ${theme.base.palette.interactive};\n height: 0.125rem;\n width: 100%;\n }\n }\n `;\n});\n\nStyledLink.defaultProps = defaultThemeProp;\n\nexport const StyledMainMenuLink = styled(StyledLink)(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n font-size: ${fontSize.xs};\n font-weight: ${theme.base['font-weight'].normal};\n\n &&:hover,\n &&:focus-visible {\n color: ${theme.base.palette.interactive};\n\n &::after {\n background-color: ${theme.base.palette.interactive};\n }\n }\n `;\n});\n\nStyledMainMenuLink.defaultProps = defaultThemeProp;\n\nexport const StyledMain = styled.main<{\n navPosition: AppShellProps['navPosition'];\n $isDefaultWSS: boolean;\n $hasFooter: boolean;\n $hasConfiguredFooter?: boolean;\n previewActive: boolean;\n}>(({ theme, $isDefaultWSS, $hasFooter, $hasConfiguredFooter, previewActive }) => {\n return css`\n --appshell-horizontal-offset: 0;\n inset-block-start: var(--appshell-hard-top-offset, 0);\n padding-block-end: var(--appshell-hard-bottom-offset, 0);\n position: relative;\n min-height: calc(100vh - var(--appshell-total-offset, 0rem));\n background: ${theme.base.palette['app-background']};\n\n :focus {\n outline: none;\n }\n\n ${!$isDefaultWSS &&\n css`\n &:has([data-create-stage]) {\n height: calc(100vh - var(--appshell-total-offset, 0rem));\n min-height: auto;\n overflow: auto;\n }\n\n ${$hasFooter &&\n css`\n &:not(:has([data-create-stage])) {\n --footer-height: var(--appshell-footer-height, ${footerHeight});\n min-height: calc(100vh - var(--appshell-total-offset, 0rem));\n }\n `}\n `}\n\n ${!$isDefaultWSS &&\n $hasFooter &&\n !$hasConfiguredFooter &&\n css`\n &:has([data-create-stage]) + footer {\n position: absolute;\n inset-block-end: 0;\n inset-inline: 0;\n border-top: none;\n }\n `}\n\n ${$isDefaultWSS &&\n $hasFooter &&\n css`\n --footer-height: var(--appshell-footer-height, ${footerHeight});\n `}\n\n @media (min-width: ${theme.base.breakpoints.md}) {\n transition: margin-inline-end ${theme.base.animation.speed}\n ${theme.base.animation.timing.ease};\n\n ${previewActive &&\n css`\n transition: none;\n margin-inline-end: min(var(--resize-drawer-width), ${resizeDrawerMaxWidth});\n `}\n }\n `;\n});\n\nStyledMain.defaultProps = defaultThemeProp;\n\nexport const StyledModernAppHeaderOperator = styled.div(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n display: flex;\n align-items: center;\n align-self: center;\n gap: ${theme.base.spacing};\n font-size: ${fontSize.m};\n white-space: nowrap;\n padding-inline: calc(0.75 * ${theme.base.spacing});\n\n ${StyledImage} {\n height: auto;\n }\n `;\n});\n\nStyledModernAppHeaderOperator.defaultProps = defaultThemeProp;\n\nexport const StyledHamburgerMenu = styled.button(({ theme }) => {\n return css`\n margin: ${theme.base.spacing};\n `;\n});\n\nStyledHamburgerMenu.defaultProps = defaultThemeProp;\n\nexport const StyledMobileNav = styled.nav(({ theme }) => {\n return css`\n block-size: 100%;\n overflow-y: hidden;\n background-color: ${theme.base.palette['primary-background']};\n\n @media (max-height: ${theme.base.breakpoints.sm}) {\n overflow-y: auto;\n }\n `;\n});\n\nStyledMobileNav.defaultProps = defaultThemeProp;\n\nexport const StyledMobileLink = styled.a(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n const activeColor = tryCatch(() =>\n mix(0.85, theme.base.palette['primary-background'], theme.base.palette.interactive)\n );\n\n const hoverColor = tryCatch(() =>\n mix(0.95, theme.base.palette['primary-background'], theme.base.palette.interactive)\n );\n\n return css`\n display: block;\n width: 100%;\n min-width: 0;\n font-size: ${fontSize.m};\n padding: ${theme.base.spacing} calc(3 * ${theme.base.spacing});\n background-color: ${theme.base.palette['primary-background']};\n white-space: normal;\n\n & + & {\n margin-inline-start: 0;\n }\n\n &:hover,\n &:focus {\n background-color: ${hoverColor};\n text-decoration: none;\n }\n\n &[aria-current='page'] {\n font-weight: ${theme.base['font-weight']['semi-bold']};\n background-color: ${activeColor};\n }\n\n @media (pointer: coarse) {\n min-height: ${theme.base['hit-area'].finger};\n }\n `;\n});\n\nStyledMobileLink.defaultProps = defaultThemeProp;\n\nexport const StyledMobileNavHeader = styled.div(({ theme }) => {\n return css`\n position: sticky;\n inset-block-start: 0;\n z-index: 1;\n flex-shrink: 0;\n background: ${theme.base.palette['primary-background']};\n `;\n});\n\nStyledMobileNavHeader.defaultProps = defaultThemeProp;\n\nexport const StyledLinkSection = styled.div(({ theme }) => {\n return css`\n flex: 1 1 auto;\n min-block-size: 0;\n overflow-y: auto;\n\n @media (max-height: ${theme.base.breakpoints.sm}) {\n flex: 0 0 auto;\n min-block-size: auto;\n overflow: visible;\n }\n `;\n});\n\nStyledLinkSection.defaultProps = defaultThemeProp;\n\nexport const StyledOperatorSection = styled.div(({ theme }) => {\n return css`\n flex-shrink: 0;\n margin-block-start: auto;\n background: ${theme.base.palette['primary-background']};\n\n @media (min-height: ${theme.base.breakpoints.sm}) {\n position: sticky;\n inset-block-end: 0;\n }\n\n @media (max-height: ${theme.base.breakpoints.sm}) {\n margin-block-start: 0;\n }\n `;\n});\n\nStyledOperatorSection.defaultProps = defaultThemeProp;\n\nexport const HorizontalBreak = styled.div(({ theme }) => {\n return css`\n background-color: ${theme.base.palette['border-line']};\n height: 0.0625rem;\n margin: ${theme.base.spacing} calc(6 * ${theme.base.spacing}) 0 calc(3 * ${theme.base.spacing});\n\n & + ${StyledFlex} {\n margin-inline-start: calc(3 * ${theme.base.spacing});\n }\n `;\n});\n\nHorizontalBreak.defaultProps = defaultThemeProp;\n\nexport const StyledNotificationCount = styled.div`\n position: relative;\n display: inline-flex;\n`;\n\nStyledNotificationCount.defaultProps = defaultThemeProp;\n\nexport const StyledCountIcon = styled(Count)`\n position: absolute;\n inset-block-start: 0;\n inset-inline-end: 0;\n transform: translate(50%, -50%);\n`;\n\nStyledCountIcon.defaultProps = defaultThemeProp;\n\nexport const StyledNotifications = styled.div<{ popover?: boolean }>(({ popover, theme }) => {\n return css`\n min-height: ${popover ? '10rem' : '100vh'};\n max-height: ${popover ? '50vh' : '100vh'};\n background-color: ${theme.base.palette['primary-background']};\n\n ${popover &&\n css`\n max-width: 80ch;\n border-radius: inherit;\n overflow: hidden;\n `}\n `;\n});\n\nStyledNotifications.defaultProps = defaultThemeProp;\n\nexport const StyledNotificationList = styled.ul(({ theme }) => {\n return css`\n overflow: auto;\n\n & > li {\n position: relative;\n }\n\n & > li:not(:last-of-type) {\n border-bottom: solid 0.0625rem ${theme.base.palette['border-line']};\n }\n `;\n});\n\nStyledNotificationList.defaultProps = defaultThemeProp;\n\nexport const StyledNotification = styled(BareButton)(({ theme }) => {\n const hoverColor = lighten(0.55, theme.base.palette.interactive);\n\n return css`\n width: 100%;\n padding: calc(2 * ${theme.base.spacing}) calc(3 * ${theme.base.spacing});\n background-color: ${theme.base.palette['primary-background']};\n color: ${theme.base.palette['foreground-color']};\n text-decoration: none;\n cursor: pointer;\n text-align: start;\n white-space: normal;\n\n &:hover,\n &:focus {\n background-color: ${hoverColor};\n }\n\n &:focus-visible {\n outline: none;\n box-shadow: ${theme.base.shadow['focus-inset']};\n }\n\n ${StyledVisual} {\n align-self: center;\n }\n `;\n});\n\nStyledNotification.defaultProps = defaultThemeProp;\n\nexport const StyledNotificationVisual = styled.span<{ unread?: boolean }>(({ theme, unread }) => {\n return css`\n position: absolute;\n inset-inline-start: ${theme.base.spacing};\n inset-block: 0;\n display: flex;\n align-items: center;\n pointer-events: none;\n\n ${StyledAlert} {\n background-color: ${theme.base.palette.interactive};\n height: 0.75rem;\n width: 0.75rem;\n\n ${!unread &&\n css`\n display: none;\n `}\n }\n `;\n});\n\nStyledNotificationVisual.defaultProps = defaultThemeProp;\n\nexport const StyledNotificationPrimary = styled.span<{ unread?: boolean }>(({ theme, unread }) => {\n return css`\n font-weight: ${unread\n ? theme.base['font-weight'].bold\n : theme.base['font-weight']['semi-bold']};\n `;\n});\n\nStyledNotificationPrimary.defaultProps = defaultThemeProp;\n\nexport const StyledNotificationSecondary = styled.span<{ unread?: boolean }>(\n ({ theme, unread }) => {\n return css`\n ${StyledText} {\n opacity: ${unread\n ? theme.base.transparency['transparent-1']\n : theme.base.transparency['transparent-3']};\n }\n `;\n }\n);\n\nStyledNotificationSecondary.defaultProps = defaultThemeProp;\n\nexport const StyledBannerRegion = styled.div``;\n\nStyledBannerRegion.defaultProps = defaultThemeProp;\n\nexport const StyledVisuallyHiddenLabel = styled(StyledText)`\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 0.0625rem;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 0.0625rem;\n`;\n\nStyledVisuallyHiddenLabel.defaultProps = defaultThemeProp;\n\nexport const StyledNavList = styled.div`\n display: flex;\n align-items: center;\n`;\n\nStyledNavList.defaultProps = defaultThemeProp;\n\nexport const StyledNavAction = styled(BareButton)`\n display: inline-flex;\n align-items: center;\n`;\n\nStyledNavAction.defaultProps = defaultThemeProp;\n\nexport const StyledUtilityDot = styled(StyledAlert)`\n position: absolute;\n inset-block-start: 0;\n inset-inline-end: 0;\n transform: translate(50%, -50%);\n`;\n\nStyledUtilityDot.defaultProps = defaultThemeProp;\n\nexport const StyledUtilityVisual = styled(StyledVisual)`\n position: relative;\n`;\n\nStyledUtilityVisual.defaultProps = defaultThemeProp;\n"]}
1
+ {"version":3,"file":"AppShell.styles.js","sourceRoot":"","sources":["../../../src/components/AppShell/AppShell.styles.ts"],"names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AAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA,EAAE,CAAC;AAE/C,kBAAkB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEnD,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;;;;;;;;CAQ1D,CAAC;AAEF,yBAAyB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE1D,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGtC,CAAC;AAEF,aAAa,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;;;CAGhD,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEhD,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,WAAW,CAAC,CAAA;;;;;CAKlD,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEjD,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,YAAY,CAAC,CAAA;;CAEtD,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import { lighten, mix } from 'polished';\nimport styled, { createGlobalStyle, css } from 'styled-components';\n\nimport {\n Text,\n calculateFontSize,\n calculateForegroundColor,\n Count,\n defaultThemeProp,\n Icon,\n StyledFlex,\n StyledImage,\n StyledText,\n StyledVisual,\n tryCatch\n} from '@pega/cosmos-react-core';\nimport { StyledAppHeaderOperator } from '@pega/cosmos-react-core/lib/components/AppShell/AppHeader.styles';\nimport { StyledAlert } from '@pega/cosmos-react-core/lib/components/Badges/Alert';\nimport BareButton from '@pega/cosmos-react-core/lib/components/Button/BareButton';\nimport { StyledVisuallyHiddenText } from '@pega/cosmos-react-core/lib/components/VisuallyHiddenText/VisuallyHiddenText';\nimport { resizeDrawerMaxWidth } from '@pega/cosmos-react-core/lib/styles/constants';\n\nimport type { AppShellProps, ContentWidth } from './AppShell.types';\n\nconst headerHeight = '3rem';\nconst tallHeaderHeight = '6rem';\nconst mobileTopBarHeight = '2.75rem';\nconst topBarHeight = '2.5rem';\nconst navBarHeight = '3.25rem';\nconst stackedHeaderHeight = `calc(${topBarHeight} + ${navBarHeight})`;\nexport const footerHeight = '2.5rem';\n\nconst getAppHeaderHeight = ({\n navPosition,\n hasMobileNav,\n isDefaultWSS\n}: {\n navPosition: AppShellProps['navPosition'];\n hasMobileNav: boolean;\n isDefaultWSS: boolean;\n}) => {\n if (navPosition !== 'below') return headerHeight;\n if (!hasMobileNav) return stackedHeaderHeight;\n\n return isDefaultWSS ? headerHeight : mobileTopBarHeight;\n};\n\nexport const contentWidthPresets: Record<ContentWidth, { maxWidth: string; inlineSize: string }> = {\n standard: { maxWidth: '80rem', inlineSize: '85%' },\n wide: { maxWidth: '100rem', inlineSize: '92%' },\n full: { maxWidth: '100%', inlineSize: '100%' }\n};\n\nexport const WSSAppShellGlobalStyle = createGlobalStyle<{\n navPosition: AppShellProps['navPosition'];\n hasFooter: boolean;\n configuredFooterHeight?: string;\n hasMobileNav: boolean;\n isDefaultWSS: boolean;\n contentWidth: ContentWidth;\n}>`\n :root,\n :host {\n --app-header-height: ${({ navPosition, hasMobileNav, isDefaultWSS }) =>\n getAppHeaderHeight({ navPosition, hasMobileNav, isDefaultWSS })};\n --wss-content-max-width: ${({ contentWidth }) => contentWidthPresets[contentWidth].maxWidth};\n --wss-content-inline-size: ${({ contentWidth }) => contentWidthPresets[contentWidth].inlineSize};\n --appshell-hard-top-offset: calc(var(--marking-height, 0rem) + var(--safe-area-inset-block-start, 0rem));\n --appshell-top-offset: calc(var(--appshell-hard-top-offset, 0rem) + var(--app-header-height, 0rem));\n --appshell-hard-bottom-offset: calc(var(--marking-height, 0rem) + var(--safe-area-inset-block-end, 0rem));\n --appshell-footer-height: ${({ hasFooter, configuredFooterHeight }) =>\n hasFooter ? configuredFooterHeight ?? footerHeight : '0rem'};\n --appshell-bottom-offset: calc(var(--appshell-hard-bottom-offset, 0rem) + var(--appshell-footer-height, 0rem));\n --appshell-total-offset: calc(var(--appshell-top-offset, 0rem) + var(--appshell-bottom-offset, 0rem));\n }\n`;\n\nexport const StyledNav = styled.nav`\n white-space: nowrap;\n overflow: visible;\n visibility: hidden;\n height: 100%;\n\n a:hover,\n button:hover {\n text-decoration: none;\n }\n`;\n\nexport const StyledPrimaryName = styled(Text)(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n color: ${theme.base.palette['foreground-color']};\n font-size: ${fontSize.xxl};\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n max-width: 50ch;\n `;\n});\n\nStyledPrimaryName.defaultProps = defaultThemeProp;\n\nexport const StyledAppName = styled(StyledPrimaryName)(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n font-size: ${fontSize.s};\n font-weight: ${theme.base['font-weight']['semi-bold']};\n `;\n});\n\nStyledAppName.defaultProps = defaultThemeProp;\n\nexport const StyledChannelName = styled(Text).attrs({ variant: 'secondary' as const })(\n ({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n font-size: ${fontSize.xs};\n font-weight: ${theme.base['font-weight'].normal};\n `;\n }\n);\n\nStyledChannelName.defaultProps = defaultThemeProp;\n\nexport const StyledAppHeader = styled.header<{\n navPosition: AppShellProps['navPosition'];\n $isDefaultWSS: boolean;\n $hasMobileNav: boolean;\n}>(({ navPosition, $isDefaultWSS, $hasMobileNav, theme }) => {\n const {\n base,\n components: {\n 'app-shell': {\n header: {\n background: headerBg,\n 'foreground-color': headerFgColor,\n 'border-color': headerBorderColor,\n divider: showLogoDivider\n },\n nav: { background: navBg, 'foreground-color': navFgColor }\n }\n }\n } = theme;\n\n const isModernStacked = !$isDefaultWSS && navPosition === 'below';\n const isModernInline = !$isDefaultWSS && navPosition === 'inline';\n\n const foregroundColor = calculateForegroundColor(headerBg, headerFgColor, theme);\n const navForeground = calculateForegroundColor(navBg, navFgColor, theme);\n\n const stackedTopBackground = $hasMobileNav ? headerBg : navBg;\n const stackedTopForeground = $hasMobileNav ? foregroundColor : navForeground;\n const stackedTopBarHeight = $hasMobileNav ? mobileTopBarHeight : topBarHeight;\n\n return css`\n position: sticky;\n inset-block-start: var(--appshell-hard-top-offset, 0);\n height: ${getAppHeaderHeight({\n navPosition,\n hasMobileNav: $hasMobileNav,\n isDefaultWSS: $isDefaultWSS\n })};\n width: 100%;\n background: ${isModernStacked && !$hasMobileNav ? 'transparent' : headerBg};\n z-index: calc(${base['z-index'].popover} + 1);\n border-bottom: 0.0625rem solid\n ${$isDefaultWSS ? base.palette['border-line'] : headerBorderColor};\n color: ${foregroundColor};\n\n &::before {\n content: '';\n position: absolute;\n inset-block-start: calc(-1 * var(--appshell-hard-top-offset));\n inset-inline: 0;\n height: var(--appshell-hard-top-offset);\n background: ${isModernStacked ? stackedTopBackground : headerBg};\n }\n\n ${StyledImage} {\n height: 1.625rem;\n align-self: center;\n }\n\n ${showLogoDivider &&\n css`\n ${StyledImage} + span:has(> :not(${StyledVisuallyHiddenText}))::before {\n content: '';\n align-self: center;\n flex-shrink: 0;\n width: 0.0625rem;\n height: 1.5rem;\n margin-inline-end: calc(0.5 * ${base.spacing});\n margin-block: -1.5rem;\n background-color: ${base.palette['border-line']};\n }\n `}\n\n ${StyledPrimaryName} {\n max-width: min(50ch, 50vw);\n }\n\n & > ${StyledFlex} {\n height: ${headerHeight};\n\n ${StyledAppHeaderOperator} {\n margin: ${$isDefaultWSS || navPosition === 'inline' ? base.spacing : 0};\n }\n\n & > a,\n & > button {\n cursor: pointer;\n text-decoration: none;\n user-select: none;\n -webkit-user-select: none;\n min-height: ${headerHeight};\n\n &:focus-visible {\n box-shadow: ${base.shadow.focus};\n }\n }\n }\n\n & > ${StyledNav} {\n height: calc(${tallHeaderHeight} - ${headerHeight});\n }\n\n ${$isDefaultWSS &&\n navPosition === 'below' &&\n !$hasMobileNav &&\n css`\n & > ${StyledFlex}:first-child {\n height: ${topBarHeight};\n\n ${StyledAppHeaderOperator} {\n margin-block: 0;\n }\n\n & > a,\n & > button {\n min-height: ${topBarHeight};\n }\n }\n\n & > ${StyledFlex}:nth-child(2) {\n height: ${navBarHeight};\n }\n `}\n\n ${isModernStacked &&\n css`\n border-bottom: none;\n\n & > ${StyledFlex}:first-child {\n height: ${stackedTopBarHeight};\n width: 100%;\n background: ${stackedTopBackground};\n color: ${stackedTopForeground};\n padding-inline: calc(${base.spacing} * 2);\n\n & > a,\n & > button {\n min-height: ${stackedTopBarHeight};\n }\n\n ${StyledPrimaryName} {\n color: ${stackedTopForeground};\n }\n }\n\n & > ${StyledFlex}:nth-child(2) {\n height: ${navBarHeight};\n width: 100%;\n background: ${headerBg};\n color: ${foregroundColor};\n padding-inline: calc(${base.spacing} * 2);\n\n ${StyledPrimaryName} {\n color: ${foregroundColor};\n }\n }\n `}\n\n ${isModernInline &&\n css`\n & > ${StyledFlex}:first-child {\n padding-inline: calc(${base.spacing} * 2);\n }\n `}\n `;\n});\n\nStyledAppHeader.defaultProps = defaultThemeProp;\n\nexport const StyledEndNavBlock = styled.div<{ mobile: boolean }>(({ mobile }) => {\n return css`\n flex-shrink: 0;\n\n ${mobile &&\n css`\n margin-inline-start: auto;\n `}\n `;\n});\n\nexport const StyledShareButtonContent = styled(Icon)(({ theme }) => {\n return css`\n white-space: nowrap;\n margin-inline-end: calc(0.5 * ${theme.base.spacing});\n `;\n});\n\nStyledShareButtonContent.defaultProps = defaultThemeProp;\n\nexport const StyledLink = styled.a<{\n $isDefaultWSS?: AppShellProps['isDefaultWSS'];\n $navPosition?: AppShellProps['navPosition'];\n $navAlignment?: AppShellProps['navAlignment'];\n}>(({ theme, $isDefaultWSS, $navPosition, $navAlignment }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n color: inherit;\n padding: 0 calc(0.5 * ${theme.base.spacing});\n\n && {\n margin: 0;\n font-weight: ${theme.base['font-weight'].normal};\n }\n font-size: ${fontSize.xs};\n position: relative;\n height: 100%;\n display: flex;\n align-items: center;\n\n &&:last-child {\n margin-inline-end: ${$navAlignment === 'center' ||\n (!$isDefaultWSS && $navPosition === 'below')\n ? 0\n : theme.base.spacing};\n }\n\n ${$isDefaultWSS &&\n $navPosition === 'below' &&\n $navAlignment === 'start' &&\n css`\n &&:first-of-type {\n margin-inline-start: ${theme.base.spacing};\n }\n `}\n\n &&:hover,\n &&:focus-visible {\n color: ${theme.base.palette.interactive};\n text-decoration: none;\n }\n\n &&[aria-current='page'] {\n color: ${theme.base.palette.interactive};\n font-weight: ${theme.base['font-weight']['semi-bold']};\n text-decoration: none;\n\n &::after {\n content: '';\n position: absolute;\n inset-inline-start: 0;\n inset-block-end: 0;\n background-color: ${theme.base.palette.interactive};\n height: 0.125rem;\n width: 100%;\n }\n }\n `;\n});\n\nStyledLink.defaultProps = defaultThemeProp;\n\nexport const StyledMainMenuLink = styled(StyledLink)(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n font-size: ${fontSize.xs};\n font-weight: ${theme.base['font-weight'].normal};\n\n &&:hover,\n &&:focus-visible {\n color: ${theme.base.palette.interactive};\n\n &::after {\n background-color: ${theme.base.palette.interactive};\n }\n }\n `;\n});\n\nStyledMainMenuLink.defaultProps = defaultThemeProp;\n\nexport const StyledMain = styled.main<{\n navPosition: AppShellProps['navPosition'];\n $isDefaultWSS: boolean;\n $hasFooter: boolean;\n $hasConfiguredFooter?: boolean;\n previewActive: boolean;\n}>(({ theme, $isDefaultWSS, $hasFooter, $hasConfiguredFooter, previewActive }) => {\n return css`\n --appshell-horizontal-offset: 0;\n inset-block-start: var(--appshell-hard-top-offset, 0);\n padding-block-end: var(--appshell-hard-bottom-offset, 0);\n position: relative;\n min-height: calc(100vh - var(--appshell-total-offset, 0rem));\n background: ${theme.base.palette['app-background']};\n\n :focus {\n outline: none;\n }\n\n ${!$isDefaultWSS &&\n css`\n &:has([data-create-stage]) {\n height: calc(100vh - var(--appshell-total-offset, 0rem));\n min-height: auto;\n overflow: auto;\n }\n\n ${$hasFooter &&\n css`\n &:not(:has([data-create-stage])) {\n --footer-height: var(--appshell-footer-height, ${footerHeight});\n min-height: calc(100vh - var(--appshell-total-offset, 0rem));\n }\n `}\n `}\n\n ${!$isDefaultWSS &&\n $hasFooter &&\n !$hasConfiguredFooter &&\n css`\n &:has([data-create-stage]) + footer {\n position: absolute;\n inset-block-end: 0;\n inset-inline: 0;\n border-top: none;\n }\n `}\n\n ${$isDefaultWSS &&\n $hasFooter &&\n css`\n --footer-height: var(--appshell-footer-height, ${footerHeight});\n `}\n\n @media (min-width: ${theme.base.breakpoints.md}) {\n transition: margin-inline-end ${theme.base.animation.speed}\n ${theme.base.animation.timing.ease};\n\n ${previewActive &&\n css`\n transition: none;\n margin-inline-end: min(var(--resize-drawer-width), ${resizeDrawerMaxWidth});\n `}\n }\n `;\n});\n\nStyledMain.defaultProps = defaultThemeProp;\n\nexport const StyledModernAppHeaderOperator = styled.div(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n display: flex;\n align-items: center;\n align-self: center;\n gap: ${theme.base.spacing};\n font-size: ${fontSize.m};\n white-space: nowrap;\n padding-inline: calc(0.75 * ${theme.base.spacing});\n\n ${StyledImage} {\n height: auto;\n }\n `;\n});\n\nStyledModernAppHeaderOperator.defaultProps = defaultThemeProp;\n\nexport const StyledHamburgerMenu = styled.button(({ theme }) => {\n return css`\n margin: ${theme.base.spacing};\n `;\n});\n\nStyledHamburgerMenu.defaultProps = defaultThemeProp;\n\nexport const StyledMobileNav = styled.nav(({ theme }) => {\n return css`\n block-size: 100%;\n overflow-y: hidden;\n background-color: ${theme.base.palette['primary-background']};\n\n @media (max-height: ${theme.base.breakpoints.sm}) {\n overflow-y: auto;\n }\n `;\n});\n\nStyledMobileNav.defaultProps = defaultThemeProp;\n\nexport const StyledMobileLink = styled.a(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n const activeColor = tryCatch(() =>\n mix(0.85, theme.base.palette['primary-background'], theme.base.palette.interactive)\n );\n\n const hoverColor = tryCatch(() =>\n mix(0.95, theme.base.palette['primary-background'], theme.base.palette.interactive)\n );\n\n return css`\n display: block;\n width: 100%;\n min-width: 0;\n font-size: ${fontSize.m};\n padding: ${theme.base.spacing} calc(3 * ${theme.base.spacing});\n background-color: ${theme.base.palette['primary-background']};\n white-space: normal;\n\n & + & {\n margin-inline-start: 0;\n }\n\n &:hover,\n &:focus {\n background-color: ${hoverColor};\n text-decoration: none;\n }\n\n &[aria-current='page'] {\n font-weight: ${theme.base['font-weight']['semi-bold']};\n background-color: ${activeColor};\n }\n\n @media (pointer: coarse) {\n min-height: ${theme.base['hit-area'].finger};\n }\n `;\n});\n\nStyledMobileLink.defaultProps = defaultThemeProp;\n\nexport const StyledMobileNavHeader = styled.div(({ theme }) => {\n return css`\n position: sticky;\n inset-block-start: 0;\n z-index: 1;\n flex-shrink: 0;\n background: ${theme.base.palette['primary-background']};\n `;\n});\n\nStyledMobileNavHeader.defaultProps = defaultThemeProp;\n\nexport const StyledLinkSection = styled.div(({ theme }) => {\n return css`\n flex: 1 1 auto;\n min-block-size: 0;\n overflow-y: auto;\n\n @media (max-height: ${theme.base.breakpoints.sm}) {\n flex: 0 0 auto;\n min-block-size: auto;\n overflow: visible;\n }\n `;\n});\n\nStyledLinkSection.defaultProps = defaultThemeProp;\n\nexport const StyledOperatorSection = styled.div(({ theme }) => {\n return css`\n flex-shrink: 0;\n margin-block-start: auto;\n background: ${theme.base.palette['primary-background']};\n\n @media (min-height: ${theme.base.breakpoints.sm}) {\n position: sticky;\n inset-block-end: 0;\n }\n\n @media (max-height: ${theme.base.breakpoints.sm}) {\n margin-block-start: 0;\n }\n `;\n});\n\nStyledOperatorSection.defaultProps = defaultThemeProp;\n\nexport const HorizontalBreak = styled.div(({ theme }) => {\n return css`\n background-color: ${theme.base.palette['border-line']};\n height: 0.0625rem;\n margin: ${theme.base.spacing} calc(6 * ${theme.base.spacing}) 0 calc(3 * ${theme.base.spacing});\n\n & + ${StyledFlex} {\n margin-inline-start: calc(3 * ${theme.base.spacing});\n }\n `;\n});\n\nHorizontalBreak.defaultProps = defaultThemeProp;\n\nexport const StyledNotificationCount = styled.div`\n position: relative;\n display: inline-flex;\n`;\n\nStyledNotificationCount.defaultProps = defaultThemeProp;\n\nexport const StyledCountIcon = styled(Count)`\n position: absolute;\n inset-block-start: 0;\n inset-inline-end: 0;\n transform: translate(50%, -50%);\n`;\n\nStyledCountIcon.defaultProps = defaultThemeProp;\n\nexport const StyledNotifications = styled.div<{ popover?: boolean }>(({ popover, theme }) => {\n return css`\n min-height: ${popover ? '10rem' : '100vh'};\n max-height: ${popover ? '50vh' : '100vh'};\n background-color: ${theme.base.palette['primary-background']};\n\n ${popover &&\n css`\n max-width: 80ch;\n border-radius: inherit;\n overflow: hidden;\n `}\n `;\n});\n\nStyledNotifications.defaultProps = defaultThemeProp;\n\nexport const StyledNotificationList = styled.ul(({ theme }) => {\n return css`\n overflow: auto;\n\n & > li {\n position: relative;\n }\n\n & > li:not(:last-of-type) {\n border-bottom: solid 0.0625rem ${theme.base.palette['border-line']};\n }\n `;\n});\n\nStyledNotificationList.defaultProps = defaultThemeProp;\n\nexport const StyledNotification = styled(BareButton)(({ theme }) => {\n const hoverColor = lighten(0.55, theme.base.palette.interactive);\n\n return css`\n width: 100%;\n padding: calc(2 * ${theme.base.spacing}) calc(3 * ${theme.base.spacing});\n background-color: ${theme.base.palette['primary-background']};\n color: ${theme.base.palette['foreground-color']};\n text-decoration: none;\n cursor: pointer;\n text-align: start;\n white-space: normal;\n\n &:hover,\n &:focus {\n background-color: ${hoverColor};\n }\n\n &:focus-visible {\n outline: none;\n box-shadow: ${theme.base.shadow['focus-inset']};\n }\n\n ${StyledVisual} {\n align-self: center;\n }\n `;\n});\n\nStyledNotification.defaultProps = defaultThemeProp;\n\nexport const StyledNotificationVisual = styled.span<{ unread?: boolean }>(({ theme, unread }) => {\n return css`\n position: absolute;\n inset-inline-start: ${theme.base.spacing};\n inset-block: 0;\n display: flex;\n align-items: center;\n pointer-events: none;\n\n ${StyledAlert} {\n background-color: ${theme.base.palette.interactive};\n height: 0.75rem;\n width: 0.75rem;\n\n ${!unread &&\n css`\n display: none;\n `}\n }\n `;\n});\n\nStyledNotificationVisual.defaultProps = defaultThemeProp;\n\nexport const StyledNotificationPrimary = styled.span<{ unread?: boolean }>(({ theme, unread }) => {\n return css`\n font-weight: ${unread\n ? theme.base['font-weight'].bold\n : theme.base['font-weight']['semi-bold']};\n `;\n});\n\nStyledNotificationPrimary.defaultProps = defaultThemeProp;\n\nexport const StyledNotificationSecondary = styled.span<{ unread?: boolean }>(\n ({ theme, unread }) => {\n return css`\n ${StyledText} {\n opacity: ${unread\n ? theme.base.transparency['transparent-1']\n : theme.base.transparency['transparent-3']};\n }\n `;\n }\n);\n\nStyledNotificationSecondary.defaultProps = defaultThemeProp;\n\nexport const StyledBannerRegion = styled.div``;\n\nStyledBannerRegion.defaultProps = defaultThemeProp;\n\nexport const StyledVisuallyHiddenLabel = styled(StyledText)`\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 0.0625rem;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 0.0625rem;\n`;\n\nStyledVisuallyHiddenLabel.defaultProps = defaultThemeProp;\n\nexport const StyledNavList = styled.div`\n display: flex;\n align-items: center;\n`;\n\nStyledNavList.defaultProps = defaultThemeProp;\n\nexport const StyledNavAction = styled(BareButton)`\n display: inline-flex;\n align-items: center;\n`;\n\nStyledNavAction.defaultProps = defaultThemeProp;\n\nexport const StyledUtilityDot = styled(StyledAlert)`\n position: absolute;\n inset-block-start: 0;\n inset-inline-end: 0;\n transform: translate(50%, -50%);\n`;\n\nStyledUtilityDot.defaultProps = defaultThemeProp;\n\nexport const StyledUtilityVisual = styled(StyledVisual)`\n position: relative;\n`;\n\nStyledUtilityVisual.defaultProps = defaultThemeProp;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/cosmos-react-wss",
3
- "version": "10.0.0-build.16.2",
3
+ "version": "10.0.0-build.16.4",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "Pegasystems",
6
6
  "sideEffects": false,
@@ -14,8 +14,8 @@
14
14
  "build": "tsc -b tsconfig.build.json"
15
15
  },
16
16
  "dependencies": {
17
- "@pega/cosmos-react-core": "10.0.0-build.16.2",
18
- "@pega/cosmos-react-work": "10.0.0-build.16.2",
17
+ "@pega/cosmos-react-core": "10.0.0-build.16.4",
18
+ "@pega/cosmos-react-work": "10.0.0-build.16.4",
19
19
  "@types/react": "^17.0.62 || ^18.3.3",
20
20
  "@types/react-dom": "^17.0.20 || ^18.3.0",
21
21
  "polished": "^4.1.0",
@@ -24,7 +24,7 @@
24
24
  "styled-components": "~6.3.11"
25
25
  },
26
26
  "devDependencies": {
27
- "@storybook/react": "~8.2.9",
27
+ "@storybook/react": "~10.6.6",
28
28
  "@testing-library/react": "^16.0.0",
29
29
  "@testing-library/user-event": "^14.6.1",
30
30
  "typescript": "~6.0.3"