@red-hat-developer-hub/backstage-plugin-theme 1.2.2 → 1.4.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @red-hat-developer-hub/backstage-plugin-theme
2
2
 
3
+ ## 1.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a6ada16: Replace PageMainContainer with a CSS-only PatternFly page-inset: BackstageSidebarPage is the sole scrollport, clipped with `clip-path` so the scrollbar follows the rounded well (no extra DOM wrapper).
8
+
9
+ ## 1.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 8c7f13a: Align BUI theme styling with PatternFly v6: add PageMainContainer for page inset, and close gaps for typography, forms, menus, tooltips, popovers, and buttons.
14
+
15
+ ### Patch Changes
16
+
17
+ - e93cf90: Limit the NFS theme module to the RHDH light and dark themes.
18
+
3
19
  ## 1.2.2
4
20
 
5
21
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  import styleInject from '../../node_modules_dist/style-inject/dist/style-inject.es.esm.js';
2
2
 
3
- var css_248z = "body[data-theme-name='light'][data-theme-mode='light'],\nbody[data-theme-name='dark'][data-theme-mode='dark'],\nbody[data-theme-name='light-customized'][data-theme-mode='light'],\nbody[data-theme-name='dark-customized'][data-theme-mode='dark'] {\n /*\n * Override some Backstage UI component styles to match the PatternFly design.\n */\n background-color: var(--bui-redhat-theme-page-inset-bg);\n\n /*\n * Align Accordion to https://www.patternfly.org/components/accordion\n */\n .bui-AccordionGroup {\n gap: var(--bui-space-1);\n }\n .bui-Accordion {\n padding: 0;\n border-radius: var(--bui-radius-2);\n }\n .bui-AccordionTriggerButton {\n border-radius: var(--bui-radius-2);\n padding: var(--bui-space-2) var(--bui-space-4);\n transition: background-color 100ms ease;\n &:hover,\n &:focus {\n background-color: var(--bui-bg-neutral-2);\n }\n }\n .bui-AccordionTriggerTitle {\n font-size: var(--bui-font-size-3);\n font-weight: var(--bui-font-weight-regular);\n }\n .bui-Accordion[data-expanded='true'] .bui-AccordionTriggerTitle {\n font-weight: var(--bui-font-weight-bold);\n }\n .bui-Accordion[data-expanded='true'] > .bui-AccordionPanel {\n margin: 0 var(--bui-space-4) var(--bui-space-4);\n padding: var(--bui-space-2);\n border-radius: var(--bui-radius-2);\n background-color: var(--bui-redhat-theme-bg-primary);\n }\n\n /*\n * Align Alert to https://www.patternfly.org/components/alert\n */\n .bui-Alert {\n --alert-border-color: var(--bui-border-1);\n\n background-color: var(--bui-bg-neutral-1);\n color: var(--bui-fg-primary);\n border: 2px solid var(--alert-border-color);\n border-radius: var(--bui-radius-5);\n box-shadow: var(--bui-shadow);\n }\n\n .bui-Alert[data-status='info'] {\n --alert-border-color: var(--bui-border-info);\n }\n .bui-Alert[data-status='success'] {\n --alert-border-color: var(--bui-border-success);\n }\n .bui-Alert[data-status='warning'] {\n --alert-border-color: var(--bui-border-warning);\n }\n .bui-Alert[data-status='danger'] {\n --alert-border-color: var(--bui-border-danger);\n }\n .bui-AlertIcon {\n color: var(--alert-border-color);\n }\n\n /*\n * Align Button to https://www.patternfly.org/components/button/\n */\n .bui-Button {\n background: var(--bg)\n radial-gradient(\n circle,\n transparent 1%,\n color-mix(in srgb, currentcolor 15%, transparent) 2%\n )\n center/15000% 15000%;\n border-radius: var(--bui-radius-full);\n font-weight: var(--bui-font-weight-regular);\n padding: 8px 24px;\n transition-duration: var(\n --pf-t--global--motion--duration--fade--default,\n 200ms\n );\n transition-timing-function: var(\n --pf-t--global--motion--timing-function--accelerate,\n cubic-bezier(0.4, 0, 0.7, 0.2)\n );\n transition-property: color, background, border-color;\n }\n .bui-Button:active {\n background-size: 100% 100%;\n transition-duration: 0s;\n }\n\n .bui-Button[data-variant='primary'] {\n --bg: var(--bui-bg-solid);\n --bg-hover: var(--bui-bg-solid-hover);\n --bg-active: var(--bui-bg-solid-pressed);\n --fg: var(--bui-fg-solid);\n }\n .bui-Button[data-variant='secondary'] {\n --bg: transparent;\n --bg-hover: transparent;\n --bg-active: transparent;\n --fg: var(--bui-bg-solid);\n border: 1px solid var(--bui-bg-solid);\n &:hover {\n border-color: var(--bui-bg-solid-hover);\n outline: 1px solid var(--bui-bg-solid-hover);\n }\n }\n .bui-Button[data-variant='tertiary'] {\n --bg: transparent;\n --bg-hover: transparent;\n --bg-active: transparent;\n --fg: var(--bui-bg-solid);\n border: 1px solid var(--pf-v6-c-button--m-tertiary--BorderColor, #c7c7c7);\n &:hover {\n border-color: var(--pf-v6-c-button--hover--BorderColor, #c7c7c7);\n outline: 1px solid var(--bui-bg-solid-hover);\n }\n }\n\n .bui-Button[data-variant='primary'][data-destructive='true'] {\n --bg: var(--pf-v6-c-button--m-danger--BackgroundColor, #f0561d);\n }\n .bui-Button[data-variant='secondary'][data-destructive='true'] {\n --fg: var(--pf-v6-c-button--m-danger--Color, #f89b78);\n border: 1px solid\n var(--pf-v6-c-button--m-secondary--m-danger--BorderColor, #f0561d);\n }\n .bui-Button[data-variant='tertiary'][data-destructive='true'] {\n --fg: var(--pf-v6-c-button--m-danger--Color, #f89b78);\n }\n\n .bui-Button[data-variant='primary'][data-disabled='true'],\n .bui-Button[data-variant='secondary'][data-disabled='true'],\n .bui-Button[data-variant='tertiary'][data-disabled='true'] {\n --bg: var(--bui-bg-solid-disabled);\n --bg-hover: var(--bui-bg-solid-disabled);\n --bg-active: var(--bui-bg-solid-disabled);\n --fg: var(--bui-fg-solid-disabled);\n border: 1px solid var(--bg);\n &:hover {\n border-color: var(--bg);\n outline: none;\n }\n }\n\n /*\n * Align ButtonLink to https://www.patternfly.org/components/button/\n *\n * By default they look in Backstage UI more like buttons but in PatternFly they look more like links.\n */\n .bui-ButtonLink,\n .bui-ButtonLink[data-variant='primary'] {\n --bg: transparent;\n --bg-hover: var(--bui-bg-neutral-1-hover);\n --bg-active: transparent;\n --fg: var(--pf-t--global--icon--color--brand--default, #0066cc);\n\n font-weight: var(--bui-font-weight-regular);\n }\n .bui-ButtonLink[data-variant='primary'] {\n font-weight: var(--bui-font-weight-bold);\n }\n .bui-ButtonLink[data-disabled='true'] {\n --bg: transparent;\n --bg-hover: transparent;\n --bg-active: transparent;\n --fg: var(--bui-fg-solid-disabled);\n }\n\n /*\n * Align Card to https://www.patternfly.org/components/card\n */\n .bui-Card {\n border: 1px solid var(--pf-t--global--border--color--default, #c7c7c7);\n border-radius: var(\n --bui-radius-5\n ); /* pf-t--global--border--radius--medium is use for moderately rounded corners, like cards. */\n padding: var(--bui-space-4);\n }\n /* TODO: improve scroll gradient in Card.module.css. For now, we have disabled that gradient shadow. */\n /* https://www.bram.us/2023/09/16/solved-by-css-scroll-driven-animations-detect-if-an-element-can-scroll-or-not/ */\n .bui-Card:has(.bui-CardHeader) .bui-CardBody {\n &::before {\n background: none;\n }\n }\n .bui-Card:has(.bui-CardFooter) .bui-CardBody {\n &::after {\n background: none;\n }\n }\n .bui-CardBody::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 7px;\n }\n .bui-CardBody::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, 0.5);\n box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n }\n\n /*\n * Disable max-width until common pages are aligned.\n * max-width might be a good idea but the catalog table and buttons should be still aligned.\n */\n .bui-Container {\n max-width: none;\n }\n\n /*\n * Align the Dialog with PatternFly Modal https://www.patternfly.org/components/modal\n */\n .bui-Dialog {\n --dialog-border-radius: var(--bui-radius-6);\n }\n .bui-DialogHeader {\n padding-inline-start: var(--bui-space-5);\n padding-block-start: var(--bui-space-4);\n border-bottom: none;\n }\n .bui-DialogHeader > .bui-Button[slot='close'] {\n border: none;\n border-radius: var(--bui-radius-3);\n color: var(--bui-black);\n background-color: transparent;\n padding: var(--bui-space-2);\n }\n .bui-DialogHeader > .bui-Button[slot='close']:hover {\n background-color: var(--bui-bg-neutral-1-hover);\n border: none;\n outline: none;\n }\n .bui-DialogHeader > .bui-Button[slot='close'] > span > svg {\n width: 1.25rem;\n height: 1.25rem;\n }\n .bui-DialogBody {\n padding: var(--bui-space-5);\n }\n .bui-DialogFooter {\n padding-inline-start: var(--bui-space-5);\n padding-block-end: var(--bui-space-5);\n border-top: none;\n /* This is probably a bit \"dangerous\" ... swap buttons to the left and also change their order. */\n justify-content: start;\n flex-direction: row-reverse;\n }\n\n /*\n * Align Header nav and Tabs to https://www.patternfly.org/components/tabs\n */\n .bui-HeaderNavList,\n .bui-TabList {\n border-bottom: 1px solid var(--bui-border-1);\n }\n .bui-HeaderNavItem,\n .bui-Tab {\n height: auto;\n margin: var(--bui-space-1);\n padding: var(--bui-space-3) var(--bui-space-2);\n }\n .bui-Tab[data-disabled] {\n color: var(--bui-fg-disabled);\n cursor: not-allowed;\n }\n .bui-HeaderNavActive,\n .bui-TabActive {\n bottom: 1px;\n height: 3px;\n box-shadow:\n -0.5em 0 0 0 var(--bui-redhat-theme-brand-accent),\n 0.5em 0 0 0 var(--bui-redhat-theme-brand-accent);\n --bui-fg-primary: var(--bui-redhat-theme-brand-accent);\n }\n\n /*\n * Aligned Tags to PatternFly Label https://www.patternfly.org/components/label\n */\n .bui-Tag {\n border-radius: var(--bui-radius-full);\n }\n\n /*\n * Aligned ToggleButton to PatternFly ToggleGroup https://www.patternfly.org/components/toggle-group\n */\n .bui-ToggleButton {\n border: 1px solid var(--bui-border-2);\n background-color: var(\n --pf-t--global--background--color--control--default,\n var(--bui-bg-neutral-1)\n );\n color: var(--bui-fg-primary);\n font-weight: var(--bui-font-weight-regular);\n height: auto;\n padding: var(--bui-space-2) var(--bui-space-4);\n }\n .bui-ToggleButton:not([data-selected])[data-hovered] {\n background-color: var(--bui-redhat-theme-brand-subtle);\n border-color: var(--bui-redhat-theme-brand-subtle-border);\n }\n .bui-ToggleButton[data-selected],\n .bui-ToggleButton[data-pressed] {\n background-color: var(--bui-redhat-theme-brand-subtle);\n color: var(--bui-fg-primary);\n border-color: var(--bui-redhat-theme-brand-subtle-border);\n box-shadow: inset 0 0 0 1px var(--bui-redhat-theme-brand-subtle-border);\n }\n .bui-ToggleButton[data-disabled] {\n background-color: var(--bui-bg-solid-disabled);\n color: var(--bui-fg-solid-disabled);\n border-color: var(--bui-border-2);\n box-shadow: none;\n }\n\n /*\n * Use heading font family for title-level text\n * PatternFly uses \"Red Hat Display\" for headings and \"Red Hat Text\" for body.\n */\n .bui-Text[data-variant='title-large'],\n .bui-Text[data-variant='title-medium'],\n .bui-Text[data-variant='title-small'],\n .bui-Text[data-variant='title-x-small'] {\n font-family: var(--bui-redhat-theme-font-heading);\n }\n .bui-DialogHeaderTitle {\n font-family: var(--bui-redhat-theme-font-heading);\n font-size: var(--bui-font-size-5);\n }\n .bui-HeaderTitle {\n font-family: var(--bui-redhat-theme-font-heading);\n }\n /*\n * Align PluginHeader to PF component-groups PageHeader\n * https://www.patternfly.org/extensions/component-groups/page-header\n */\n .bui-PluginHeader {\n padding-block: var(--bui-space-4) 0;\n padding-inline: var(--bui-space-6);\n }\n .bui-PluginHeaderToolbar {\n border-bottom: none;\n padding-bottom: var(--bui-space-4);\n }\n .bui-PluginHeaderToolbarName {\n font-family: var(--bui-redhat-theme-font-heading);\n font-size: var(--bui-font-size-6);\n font-weight: var(--bui-font-weight-bold);\n line-height: 1.3;\n & .bui-Link,\n & .bui-Text {\n font-size: inherit;\n font-weight: inherit;\n font-family: inherit;\n }\n }\n\n /*\n * Align Avatar to https://www.patternfly.org/components/avatar\n */\n .bui-AvatarFallback {\n font-weight: var(--bui-font-weight-bold);\n }\n\n /*\n * Align Badge to https://www.patternfly.org/components/badge\n */\n .bui-Badge {\n border-radius: var(--bui-radius-full);\n font-weight: var(--bui-font-weight-bold);\n min-width: 2rem;\n }\n\n /*\n * Align form controls to https://www.patternfly.org/components/forms/form-control\n */\n .bui-Input,\n .bui-PasswordFieldInputWrapper,\n .bui-SearchFieldInputWrapper,\n .bui-SearchAutocomplete,\n .bui-ComboboxInput,\n .bui-DatePickerGroup {\n border: 1px solid var(--bui-border-2);\n border-radius: var(--bui-radius-2);\n background-color: var(\n --pf-t--global--background--color--control--default,\n var(--bui-bg-neutral-1)\n );\n }\n .bui-Input,\n .bui-PasswordFieldInput {\n padding-block: var(--bui-space-2);\n padding-inline-end: var(--bui-space-4);\n }\n .bui-Input:not([data-icon]),\n .bui-PasswordFieldInput:not([data-icon]) {\n padding-inline-start: var(--bui-space-4);\n }\n .bui-Input[data-focused],\n .bui-PasswordFieldInput[data-focused] {\n box-shadow: none;\n outline: 2px solid var(--bui-bg-solid);\n outline-offset: -6px;\n }\n .bui-PasswordFieldInputWrapper:has([data-focused]),\n .bui-SearchFieldInputWrapper:has([data-focused]),\n .bui-SearchAutocomplete:has([data-focused]),\n .bui-ComboboxInput[data-focused],\n .bui-DatePickerGroup[data-focused] {\n border-color: var(--bui-bg-solid);\n box-shadow: none;\n }\n .bui-SearchFieldInputWrapper:has([data-focused]),\n .bui-SearchAutocomplete:has([data-focused]),\n .bui-ComboboxInput[data-focused],\n .bui-DatePickerGroup[data-focused] {\n outline: 2px solid var(--bui-bg-solid);\n outline-offset: -6px;\n }\n .bui-Input[data-invalid],\n .bui-PasswordFieldInputWrapper:has([data-invalid]),\n .bui-SearchFieldInputWrapper:has([data-invalid]),\n .bui-SearchAutocomplete:has([data-invalid]),\n .bui-ComboboxInput[data-invalid] {\n border-color: var(--bui-border-danger);\n }\n .bui-Input[readonly],\n .bui-PasswordFieldInput[readonly] {\n background-color: var(--bui-redhat-theme-readonly-bg);\n border-color: var(--bui-redhat-theme-readonly-border);\n }\n .bui-Input[data-disabled],\n .bui-PasswordFieldInputWrapper:has([data-disabled]),\n .bui-SearchFieldInputWrapper:has([data-disabled]),\n .bui-SearchAutocomplete:has([data-disabled]),\n .bui-ComboboxInput[data-disabled],\n .bui-SelectTrigger[disabled] {\n background-color: var(--bui-bg-solid-disabled);\n color: var(--bui-fg-solid-disabled);\n & * {\n color: inherit;\n }\n }\n\n /*\n * Align Select and Combobox to PatternFly MenuToggle\n * https://www.patternfly.org/components/menus/menu-toggle\n */\n .bui-SelectTrigger,\n .bui-ComboboxInput {\n transition-property: color, background-color, border-width, border-color;\n transition-duration: 100ms;\n transition-timing-function: ease;\n }\n .bui-SelectTrigger {\n border: 1px solid var(--bui-border-2);\n border-radius: var(--bui-radius-2);\n background-color: var(--bui-redhat-theme-bg-floating);\n padding: var(--bui-space-2) var(--bui-space-4);\n }\n .bui-SelectPopover,\n .bui-ComboboxPopover {\n border-radius: var(--bui-radius-3);\n &,\n & .bui-Popover,\n & .bui-PopoverContent {\n background: var(--bui-redhat-theme-bg-floating);\n }\n & .bui-Popover {\n margin: 0;\n border: 1px solid var(--bui-border-1);\n }\n & .bui-PopoverContent {\n padding: var(--bui-space-1);\n }\n }\n .bui-SelectItem:has(> .bui-SelectItemIndicator),\n .bui-ComboboxItem:has(> .bui-ComboboxItemIndicator) {\n grid-template-areas: 'text icon';\n grid-template-columns: 1fr 1rem;\n }\n .bui-SelectItem {\n padding: var(--bui-space-2) var(--bui-space-4);\n border-radius: var(--bui-radius-2);\n }\n .bui-SelectItem[data-focused] {\n background-color: var(--bui-bg-neutral-2);\n }\n .bui-SelectTrigger:hover,\n .bui-ComboboxInput:hover {\n border-color: var(--bui-bg-solid);\n }\n .bui-Select[data-focused] .bui-SelectTrigger {\n border-color: var(--bui-bg-solid);\n border-width: 2px;\n padding: calc(var(--bui-space-2) - 1px) calc(var(--bui-space-4) - 1px);\n }\n .bui-ComboboxInput[data-focused] {\n border-width: 2px;\n }\n\n /*\n * Align Table to https://www.patternfly.org/components/table\n */\n .bui-TableHead {\n padding: var(--bui-space-4);\n font-size: var(--bui-font-size-2);\n font-weight: var(--bui-font-weight-bold);\n }\n .bui-TableCell {\n padding: var(--bui-space-4);\n }\n .bui-TableHeader {\n border-bottom: 1px solid var(--bui-border-1);\n }\n .bui-TableRow {\n border-bottom: 1px solid var(--bui-border-1);\n }\n\n /*\n * Align Link to https://www.patternfly.org/components/content (links)\n */\n .bui-Link {\n text-decoration-style: dashed;\n }\n\n /*\n * Align Menu to https://www.patternfly.org/components/menu\n */\n .bui-MenuPopover {\n border-radius: var(--bui-radius-3);\n padding: var(--bui-space-1);\n background-color: var(--bui-redhat-theme-bg-floating);\n }\n .bui-MenuItem {\n border-radius: var(--bui-radius-2);\n }\n .bui-MenuSectionHeader {\n text-transform: none;\n letter-spacing: normal;\n font-weight: var(--bui-font-weight-bold);\n }\n\n /*\n * Align Popover to https://www.patternfly.org/components/popover\n */\n .bui-Popover {\n --popover-border-radius: var(--bui-radius-5);\n }\n\n /*\n * Align Radio to https://www.patternfly.org/components/radio\n */\n .bui-Radio {\n font-size: var(--bui-font-size-3);\n }\n\n /*\n * Align Skeleton to https://www.patternfly.org/components/skeleton\n * PatternFly uses a shimmer gradient animation instead of opacity pulse.\n */\n @keyframes bui-shimmer {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n }\n .bui-Skeleton {\n animation: bui-shimmer 3s linear infinite 0.5s;\n background-image: linear-gradient(\n 90deg,\n var(--bui-bg-neutral-2) 0%,\n var(--bui-bg-neutral-3) 50%,\n var(--bui-bg-neutral-2) 100%\n );\n background-size: 200% 100%;\n }\n @media (prefers-reduced-motion: reduce) {\n .bui-Skeleton {\n animation: none;\n }\n }\n\n /*\n * Align Slider to https://www.patternfly.org/components/slider\n */\n .bui-SliderThumb {\n width: 16px;\n height: 16px;\n }\n .bui-SliderTrack {\n border-radius: var(--bui-radius-1);\n }\n\n /*\n * Align Tooltip to https://www.patternfly.org/components/tooltip\n * PatternFly tooltips use inverse (dark) background with light text.\n */\n .bui-Tooltip {\n --tooltip-border-radius: var(--bui-radius-2);\n background-color: var(--bui-black);\n border: none;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);\n max-width: 300px;\n font-size: var(--bui-font-size-2);\n text-align: center;\n }\n .bui-TooltipContent {\n color: var(--bui-white);\n }\n .bui-TooltipArrow svg {\n use:nth-of-type(1) {\n fill: var(--bui-black);\n }\n use:nth-of-type(2) {\n fill: var(--bui-black);\n }\n path {\n fill: var(--bui-black);\n }\n }\n\n /*\n * Align Switch to https://www.patternfly.org/components/switch\n */\n .bui-SwitchIndicator {\n --switch-indicator-bg: var(\n --pf-t--global--background--color--control--default,\n var(--bui-bg-neutral-1)\n );\n width: calc(var(--bui-font-size-2) * 2.5);\n height: calc(var(--bui-font-size-2) * 1.5);\n border: 1px solid var(--bui-border-2);\n border-radius: calc(var(--bui-font-size-2) * 1.5);\n &:before {\n width: calc(var(--bui-font-size-2) - 2px);\n height: calc(var(--bui-font-size-2) - 2px);\n margin: calc(var(--bui-font-size-2) * 0.2 + 1px);\n background: var(--bui-fg-secondary);\n }\n }\n .bui-Switch[data-selected] .bui-SwitchIndicator {\n border-color: transparent;\n &:before {\n background: var(--bui-accent-fg);\n transform: translateX(calc(100% + 2px));\n }\n }\n .bui-Switch[data-disabled] .bui-SwitchIndicator {\n border-color: transparent;\n background: var(--bui-bg-solid-disabled);\n &:before {\n background: var(--bui-fg-solid-disabled);\n }\n }\n\n /*\n * BUI elements inside BackstageSidebarPage should use the page background\n * so they blend with the content area rather than the shell background.\n */\n [class*='BackstageSidebarPage-root']:has(> nav):not(\n :has([class*='BackstagePage-root-'])\n ) {\n background-color: var(--bui-redhat-theme-bg-primary);\n\n /* Right edge page inset corners */\n max-width: 100%;\n box-sizing: border-box;\n height: 100vh;\n border-width: var(--bui-redhat-theme-page-inset)\n var(--bui-redhat-theme-page-inset) var(--bui-redhat-theme-page-inset) 0;\n border-style: solid;\n border-color: var(--bui-redhat-theme-page-inset-bg);\n clip-path: xywh(\n 0 var(--bui-redhat-theme-page-inset)\n calc(100% - var(--bui-redhat-theme-page-inset))\n calc(100% - 2 * var(--bui-redhat-theme-page-inset)) round 0 1rem 1rem 0\n );\n\n /*\n * A terrible hack for the left edge page inset corners\n * Very difficult to get \"inside border radius\", so instead we use two overlapping\n * borders, one with border radius.\n *\n * To prevent content overlap a clip-path is used.\n */\n &:before,\n &:after {\n content: '';\n display: absolute;\n width: 100%;\n height: calc(100% - var(--bui-redhat-theme-page-inset) * 2);\n top: 0;\n margin: calc(var(--bui-redhat-theme-page-inset)) 0;\n position: fixed;\n clip-path: polygon(\n 0% 100%,\n 0% 1em,\n 1em 0%,\n 0% 0%,\n 0% calc(100% - 1em),\n 1em 100%\n );\n }\n\n &:before {\n border-left: var(--bui-redhat-theme-page-inset) solid\n var(--bui-redhat-theme-page-inset-bg);\n z-index: 0;\n }\n\n &:after {\n border-left: var(--bui-redhat-theme-page-inset) solid\n var(--bui-redhat-theme-bg-primary);\n border-radius: 1em;\n z-index: 1;\n }\n }\n}\n\nbody[data-theme-name='light'][data-theme-mode='light'],\nbody[data-theme-name='light-customized'][data-theme-mode='light'] {\n .bui-DialogContent {\n background-color: var(--pf-v6-c-modal-box--BackgroundColor, #ffffff);\n }\n .bui-DialogHeader > .bui-Button[slot='close'] {\n color: var(--bui-black);\n }\n}\n\nbody[data-theme-name='dark'][data-theme-mode='dark'],\nbody[data-theme-name='dark-customized'][data-theme-mode='dark'] {\n .bui-DialogContent {\n background-color: var(--pf-v6-c-modal-box--BackgroundColor, #383838);\n }\n .bui-DialogHeader > .bui-Button[slot='close'] {\n color: var(--bui-white);\n }\n}\n";
3
+ var css_248z = "/*\n * Page-inset shell: never scroll the document on desktop. Wheel/trackpad\n * chaining from the main well must not move html/body/#root.\n */\n@media (min-width: 600px) {\n html:has(body[data-theme-name]),\n html:has(body[data-theme-name]) #root {\n height: 100%;\n overflow: hidden;\n overscroll-behavior: none;\n }\n}\n\nbody[data-theme-name='light'][data-theme-mode='light'],\nbody[data-theme-name='dark'][data-theme-mode='dark'],\nbody[data-theme-name='light-customized'][data-theme-mode='light'],\nbody[data-theme-name='dark-customized'][data-theme-mode='dark'] {\n /*\n * Override some Backstage UI component styles to match the PatternFly design.\n */\n background-color: var(--bui-redhat-theme-page-inset-bg);\n\n /*\n * Keep scrolling inside the main well (pairs with html/#root rule above).\n */\n @media (min-width: 600px) {\n overflow: hidden;\n overscroll-behavior: none;\n height: 100%;\n }\n\n /*\n * Align Accordion to https://www.patternfly.org/components/accordion\n */\n .bui-AccordionGroup {\n gap: var(--bui-space-1);\n }\n .bui-Accordion {\n padding: 0;\n border-radius: var(--bui-radius-2);\n }\n .bui-AccordionTriggerButton {\n border-radius: var(--bui-radius-2);\n padding: var(--bui-space-2) var(--bui-space-4);\n transition: background-color 100ms ease;\n &:hover,\n &:focus {\n background-color: var(--bui-bg-neutral-2);\n }\n }\n .bui-AccordionTriggerTitle {\n font-size: var(--bui-font-size-3);\n font-weight: var(--bui-font-weight-regular);\n }\n .bui-Accordion[data-expanded='true'] .bui-AccordionTriggerTitle {\n font-weight: var(--bui-font-weight-bold);\n }\n .bui-Accordion[data-expanded='true'] > .bui-AccordionPanel {\n margin: 0 var(--bui-space-4) var(--bui-space-4);\n padding: var(--bui-space-2);\n border-radius: var(--bui-radius-2);\n background-color: var(--bui-redhat-theme-bg-primary);\n }\n\n /*\n * Align Alert to https://www.patternfly.org/components/alert\n */\n .bui-Alert {\n --alert-border-color: var(--bui-border-1);\n\n background-color: var(--bui-bg-neutral-1);\n color: var(--bui-fg-primary);\n border: 2px solid var(--alert-border-color);\n border-radius: var(--bui-radius-5);\n box-shadow: var(--bui-shadow);\n }\n\n .bui-Alert[data-status='info'] {\n --alert-border-color: var(--bui-border-info);\n }\n .bui-Alert[data-status='success'] {\n --alert-border-color: var(--bui-border-success);\n }\n .bui-Alert[data-status='warning'] {\n --alert-border-color: var(--bui-border-warning);\n }\n .bui-Alert[data-status='danger'] {\n --alert-border-color: var(--bui-border-danger);\n }\n .bui-AlertIcon {\n color: var(--alert-border-color);\n }\n\n /*\n * Align Button to https://www.patternfly.org/components/button/\n */\n .bui-Button {\n background: var(--bg)\n radial-gradient(\n circle,\n transparent 1%,\n color-mix(in srgb, currentcolor 15%, transparent) 2%\n )\n center/15000% 15000%;\n border-radius: var(--bui-radius-full);\n font-weight: var(--bui-font-weight-regular);\n padding: 8px 24px;\n transition-duration: var(\n --pf-t--global--motion--duration--fade--default,\n 200ms\n );\n transition-timing-function: var(\n --pf-t--global--motion--timing-function--accelerate,\n cubic-bezier(0.4, 0, 0.7, 0.2)\n );\n transition-property: color, background, border-color;\n }\n .bui-Button:active {\n background-size: 100% 100%;\n transition-duration: 0s;\n }\n\n .bui-Button[data-variant='primary'] {\n --bg: var(--bui-bg-solid);\n --bg-hover: var(--bui-bg-solid-hover);\n --bg-active: var(--bui-bg-solid-pressed);\n --fg: var(--bui-fg-solid);\n }\n /* Our unlayered `background` shorthand beats BUI's layered :hover\n * background-color, so flip the tokens on hover like ButtonLink does. */\n .bui-Button[data-variant='primary']:hover,\n .bui-Button[data-variant='primary'][data-hovered] {\n --bg: var(--bui-bg-solid-hover);\n }\n .bui-Button[data-variant='primary']:active,\n .bui-Button[data-variant='primary'][data-pressed] {\n --bg: var(--bui-bg-solid-pressed);\n }\n .bui-Button[data-variant='secondary'] {\n --bg: transparent;\n --bg-hover: transparent;\n --bg-active: transparent;\n --fg: var(--bui-bg-solid);\n border: 1px solid var(--bui-bg-solid);\n }\n .bui-Button[data-variant='secondary']:hover,\n .bui-Button[data-variant='secondary'][data-hovered] {\n --fg: var(--bui-bg-solid-hover);\n border-color: var(--bui-bg-solid-hover);\n outline: 1px solid var(--bui-bg-solid-hover);\n }\n .bui-Button[data-variant='tertiary'] {\n --bg: transparent;\n --bg-hover: transparent;\n --bg-active: transparent;\n --fg: var(--bui-bg-solid);\n border: 1px solid var(--pf-v6-c-button--m-tertiary--BorderColor, #c7c7c7);\n }\n .bui-Button[data-variant='tertiary']:hover,\n .bui-Button[data-variant='tertiary'][data-hovered] {\n --fg: var(--bui-bg-solid-hover);\n border-color: var(--pf-v6-c-button--hover--BorderColor, #c7c7c7);\n outline: 1px solid var(--bui-bg-solid-hover);\n }\n\n .bui-Button[data-variant='primary'][data-destructive='true'] {\n --bg: var(--pf-v6-c-button--m-danger--BackgroundColor, #f0561d);\n }\n .bui-Button[data-variant='primary'][data-destructive='true']:hover,\n .bui-Button[data-variant='primary'][data-destructive='true'][data-hovered] {\n --bg: var(--pf-v6-c-button--m-danger--hover--BackgroundColor, #c72300);\n }\n .bui-Button[data-variant='secondary'][data-destructive='true'] {\n --fg: var(--pf-v6-c-button--m-danger--Color, #f89b78);\n border: 1px solid\n var(--pf-v6-c-button--m-secondary--m-danger--BorderColor, #f0561d);\n }\n .bui-Button[data-variant='tertiary'][data-destructive='true'] {\n --fg: var(--pf-v6-c-button--m-danger--Color, #f89b78);\n }\n\n .bui-Button[data-variant='primary'][data-disabled='true'],\n .bui-Button[data-variant='secondary'][data-disabled='true'],\n .bui-Button[data-variant='tertiary'][data-disabled='true'] {\n --bg: var(--bui-bg-solid-disabled);\n --bg-hover: var(--bui-bg-solid-disabled);\n --bg-active: var(--bui-bg-solid-disabled);\n --fg: var(--bui-fg-solid-disabled);\n border: 1px solid var(--bg);\n &:hover {\n border-color: var(--bg);\n outline: none;\n }\n }\n\n /*\n * Align ButtonLink to https://www.patternfly.org/components/button/\n *\n * By default they look in Backstage UI more like buttons but in PatternFly they look more like links.\n */\n .bui-ButtonLink,\n .bui-ButtonLink[data-variant='primary'] {\n --bg: transparent;\n --bg-hover: transparent;\n --bg-active: transparent;\n --fg: var(--pf-t--global--link--color--default, #0066cc);\n\n font-weight: var(--bui-font-weight-regular);\n }\n .bui-ButtonLink[data-variant='primary'] {\n font-weight: var(--bui-font-weight-bold);\n }\n .bui-ButtonLink:hover,\n .bui-ButtonLink[data-hovered] {\n --fg: var(--pf-v6-c-button--hover--Color, #004d99);\n }\n .bui-ButtonLink[data-disabled='true'] {\n --bg: transparent;\n --bg-hover: transparent;\n --bg-active: transparent;\n --fg: var(--bui-fg-solid-disabled);\n }\n\n /*\n * Align Card to https://www.patternfly.org/components/card\n */\n .bui-Card {\n border: 1px solid var(--pf-t--global--border--color--default, #c7c7c7);\n border-radius: var(\n --bui-radius-5\n ); /* pf-t--global--border--radius--medium is use for moderately rounded corners, like cards. */\n padding: var(--bui-space-4);\n }\n /* TODO: improve scroll gradient in Card.module.css. For now, we have disabled that gradient shadow. */\n /* https://www.bram.us/2023/09/16/solved-by-css-scroll-driven-animations-detect-if-an-element-can-scroll-or-not/ */\n .bui-Card:has(.bui-CardHeader) .bui-CardBody {\n &::before {\n background: none;\n }\n }\n .bui-Card:has(.bui-CardFooter) .bui-CardBody {\n &::after {\n background: none;\n }\n }\n .bui-CardBody::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 7px;\n }\n .bui-CardBody::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, 0.5);\n box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n }\n\n /*\n * Disable max-width until common pages are aligned.\n * max-width might be a good idea but the catalog table and buttons should be still aligned.\n */\n .bui-Container {\n max-width: none;\n }\n\n /*\n * Align the Dialog with PatternFly Modal https://www.patternfly.org/components/modal\n */\n .bui-Dialog {\n --dialog-border-radius: var(--bui-radius-6);\n }\n .bui-DialogHeader {\n padding-inline-start: var(--bui-space-5);\n padding-block-start: var(--bui-space-4);\n border-bottom: none;\n }\n .bui-DialogHeader > .bui-Button[slot='close'] {\n border: none;\n border-radius: var(--bui-radius-3);\n color: var(--bui-black);\n background-color: transparent;\n padding: var(--bui-space-2);\n }\n .bui-DialogHeader > .bui-Button[slot='close']:hover {\n background-color: var(--bui-bg-neutral-1-hover);\n border: none;\n outline: none;\n }\n .bui-DialogHeader > .bui-Button[slot='close'] > span > svg {\n width: 1.25rem;\n height: 1.25rem;\n }\n .bui-DialogBody {\n padding: var(--bui-space-5);\n }\n .bui-DialogFooter {\n padding-inline-start: var(--bui-space-5);\n padding-block-end: var(--bui-space-5);\n border-top: none;\n /* This is probably a bit \"dangerous\" ... swap buttons to the left and also change their order. */\n justify-content: start;\n flex-direction: row-reverse;\n }\n\n /*\n * Align Header nav and Tabs to https://www.patternfly.org/components/tabs\n */\n .bui-HeaderNavList,\n .bui-TabList {\n border-bottom: 1px solid var(--bui-border-1);\n }\n .bui-HeaderNavItem,\n .bui-Tab {\n height: auto;\n margin: var(--bui-space-1);\n padding: var(--bui-space-3) var(--bui-space-2);\n }\n .bui-Tab[data-disabled] {\n color: var(--bui-fg-disabled);\n cursor: not-allowed;\n }\n .bui-HeaderNavActive,\n .bui-TabActive {\n bottom: 1px;\n height: 3px;\n box-shadow:\n -0.5em 0 0 0 var(--bui-redhat-theme-brand-accent),\n 0.5em 0 0 0 var(--bui-redhat-theme-brand-accent);\n --bui-fg-primary: var(--bui-redhat-theme-brand-accent);\n }\n\n /*\n * Aligned Tags to PatternFly Label https://www.patternfly.org/components/label\n */\n .bui-Tag {\n border-radius: var(--bui-radius-full);\n }\n\n /*\n * Aligned ToggleButton to PatternFly ToggleGroup https://www.patternfly.org/components/toggle-group\n */\n .bui-ToggleButton {\n border: 1px solid var(--bui-border-2);\n background-color: var(\n --pf-t--global--background--color--control--default,\n var(--bui-bg-neutral-1)\n );\n color: var(--bui-fg-primary);\n font-weight: var(--bui-font-weight-regular);\n height: auto;\n padding: var(--bui-space-2) var(--bui-space-4);\n }\n .bui-ToggleButton:not([data-selected])[data-hovered] {\n background-color: var(--bui-redhat-theme-brand-subtle);\n border-color: var(--bui-redhat-theme-brand-subtle-border);\n }\n .bui-ToggleButton[data-selected],\n .bui-ToggleButton[data-pressed] {\n background-color: var(--bui-redhat-theme-brand-subtle);\n color: var(--bui-fg-primary);\n border-color: var(--bui-redhat-theme-brand-subtle-border);\n box-shadow: inset 0 0 0 1px var(--bui-redhat-theme-brand-subtle-border);\n }\n .bui-ToggleButton[data-disabled] {\n background-color: var(--bui-bg-solid-disabled);\n color: var(--bui-fg-solid-disabled);\n border-color: var(--bui-border-2);\n box-shadow: none;\n }\n\n /*\n * Use heading font family, weight, and PF Content line-heights for title-level text\n * PatternFly uses \"Red Hat Display\" for headings and \"Red Hat Text\" for body.\n * Line heights: --pf-v6-c-content--h*--LineHeight 1.3; body/small 1.5.\n */\n .bui-Text[data-variant='title-large'],\n .bui-Text[data-variant='title-medium'],\n .bui-Text[data-variant='title-small'],\n .bui-Text[data-variant='title-x-small'] {\n font-family: var(--bui-redhat-theme-font-heading);\n line-height: var(--pf-v6-c-content--h1--LineHeight, 1.3);\n }\n .bui-Text[data-variant^='title'][data-weight='regular'] {\n font-weight: var(--bui-redhat-theme-font-weight-heading-regular);\n }\n .bui-Text[data-variant^='title'][data-weight='bold'] {\n font-weight: var(--bui-redhat-theme-font-weight-heading-bold);\n }\n .bui-Text[data-variant='body-large'],\n .bui-Text[data-variant='body-medium'],\n .bui-Text[data-variant='body-small'],\n .bui-Text[data-variant='body-x-small'] {\n line-height: var(--pf-v6-c-content--LineHeight, 1.5);\n }\n .bui-DialogHeaderTitle {\n font-family: var(--bui-redhat-theme-font-heading);\n font-size: var(--bui-font-size-5);\n }\n .bui-HeaderTitle {\n font-family: var(--bui-redhat-theme-font-heading);\n }\n /*\n * Align PluginHeader to PF component-groups PageHeader\n * https://www.patternfly.org/extensions/component-groups/page-header\n */\n .bui-PluginHeader {\n padding-block: var(--bui-space-4) 0;\n padding-inline: var(--bui-space-6);\n }\n .bui-PluginHeaderToolbar {\n border-bottom: none;\n padding-bottom: var(--bui-space-4);\n }\n .bui-PluginHeaderToolbarName {\n font-family: var(--bui-redhat-theme-font-heading);\n font-size: var(--bui-font-size-6);\n font-weight: var(--bui-font-weight-bold);\n line-height: 1.3;\n & .bui-Link,\n & .bui-Text {\n font-size: inherit;\n font-weight: inherit;\n font-family: inherit;\n }\n }\n\n /*\n * Align Avatar to https://www.patternfly.org/components/avatar\n */\n .bui-AvatarFallback {\n font-weight: var(--bui-font-weight-bold);\n }\n\n /*\n * Align Badge to https://www.patternfly.org/components/badge\n */\n .bui-Badge {\n border-radius: var(--bui-radius-full);\n font-weight: var(--bui-font-weight-bold);\n min-width: 2rem;\n background-color: var(--pf-v6-c-badge--m-read--BackgroundColor, #e0e0e0);\n }\n\n /*\n * Align form controls to https://www.patternfly.org/components/forms/form-control\n */\n .bui-FieldLabel {\n font-weight: var(--pf-v6-c-form__label-text--FontWeight, 600);\n }\n .bui-Input,\n .bui-PasswordFieldInputWrapper,\n .bui-SearchFieldInputWrapper,\n .bui-SearchAutocomplete,\n .bui-ComboboxInput,\n .bui-DatePickerGroup {\n border: 1px solid\n var(--pf-t--global--border--color--control--default, #8c8c8c);\n border-radius: var(--bui-radius-2);\n background-color: var(\n --pf-t--global--background--color--control--default,\n var(--bui-bg-neutral-1)\n );\n }\n .bui-Input::placeholder,\n .bui-PasswordFieldInput::placeholder,\n .bui-SearchFieldInputWrapper input::placeholder,\n .bui-ComboboxInput::placeholder {\n color: var(--pf-v6-c-form-control--m-placeholder--Color, #4d4d4d);\n }\n .bui-Input,\n .bui-PasswordFieldInput {\n padding-block: var(--bui-space-2);\n padding-inline-end: var(--bui-space-4);\n }\n .bui-Input:not([data-icon]),\n .bui-PasswordFieldInput:not([data-icon]) {\n padding-inline-start: var(--bui-space-4);\n }\n .bui-Input[data-focused],\n .bui-PasswordFieldInput[data-focused] {\n box-shadow: none;\n outline: 2px solid var(--bui-bg-solid);\n outline-offset: -6px;\n }\n .bui-PasswordFieldInputWrapper:has([data-focused]),\n .bui-SearchFieldInputWrapper:has([data-focused]),\n .bui-SearchAutocomplete:has([data-focused]),\n .bui-ComboboxInput[data-focused],\n .bui-DatePickerGroup[data-focused] {\n border-color: var(--bui-bg-solid);\n box-shadow: none;\n }\n .bui-SearchFieldInputWrapper:has([data-focused]),\n .bui-SearchAutocomplete:has([data-focused]),\n .bui-ComboboxInput[data-focused],\n .bui-DatePickerGroup[data-focused] {\n outline: 2px solid var(--bui-bg-solid);\n outline-offset: -6px;\n }\n .bui-Input[data-invalid],\n .bui-PasswordFieldInputWrapper:has([data-invalid]),\n .bui-SearchFieldInputWrapper:has([data-invalid]),\n .bui-SearchAutocomplete:has([data-invalid]),\n .bui-ComboboxInput[data-invalid] {\n border-color: var(--bui-border-danger);\n }\n .bui-Input[readonly],\n .bui-PasswordFieldInput[readonly] {\n background-color: var(--bui-redhat-theme-readonly-bg);\n border-color: var(--bui-redhat-theme-readonly-border);\n }\n .bui-Input[data-disabled],\n .bui-PasswordFieldInputWrapper:has([data-disabled]),\n .bui-SearchFieldInputWrapper:has([data-disabled]),\n .bui-SearchAutocomplete:has([data-disabled]),\n .bui-ComboboxInput[data-disabled],\n .bui-SelectTrigger[disabled] {\n background-color: var(--bui-bg-solid-disabled);\n color: var(--bui-fg-solid-disabled);\n & * {\n color: inherit;\n }\n }\n\n /*\n * Align Select and Combobox to PatternFly MenuToggle\n * https://www.patternfly.org/components/menus/menu-toggle\n */\n .bui-SelectTrigger,\n .bui-ComboboxInput {\n transition-property: color, background-color, border-width, border-color;\n transition-duration: 100ms;\n transition-timing-function: ease;\n }\n .bui-SelectTrigger {\n border: 1px solid var(--bui-border-2);\n border-radius: var(--bui-radius-2);\n background-color: var(--bui-redhat-theme-bg-floating);\n padding: var(--bui-space-2) var(--bui-space-4);\n }\n .bui-SelectPopover,\n .bui-ComboboxPopover {\n border-radius: var(--bui-radius-3);\n &,\n & .bui-Popover,\n & .bui-PopoverContent {\n background: var(\n --pf-v6-c-popover__content--BackgroundColor,\n var(--bui-redhat-theme-bg-floating)\n );\n }\n & .bui-Popover {\n --bui-bg-app: var(\n --pf-v6-c-popover__content--BackgroundColor,\n var(--bui-redhat-theme-bg-floating)\n );\n --bui-bg-neutral-1: var(\n --pf-v6-c-popover__content--BackgroundColor,\n var(--bui-redhat-theme-bg-floating)\n );\n --bui-border-1: var(\n --pf-v6-c-popover__content--BackgroundColor,\n var(--bui-redhat-theme-bg-floating)\n );\n margin: 0;\n border: none;\n box-shadow: var(\n --pf-t--global--box-shadow--md,\n 0px 4px 10px 0px rgba(41, 41, 41, 0.15)\n );\n }\n & .bui-PopoverContent {\n padding: var(--bui-space-1);\n }\n }\n .bui-SelectItem:has(> .bui-SelectItemIndicator),\n .bui-ComboboxItem:has(> .bui-ComboboxItemIndicator) {\n grid-template-areas: 'text icon';\n grid-template-columns: 1fr 1rem;\n }\n .bui-SelectItem {\n padding: var(--bui-space-2) var(--bui-space-4);\n border-radius: var(--bui-radius-2);\n }\n .bui-SelectItem[data-focused] {\n background-color: var(--bui-bg-neutral-2);\n }\n .bui-SelectTrigger:hover,\n .bui-ComboboxInput:hover {\n border-color: var(--bui-bg-solid);\n }\n .bui-Select[data-focused] .bui-SelectTrigger {\n border-color: var(--bui-bg-solid);\n border-width: 2px;\n padding: calc(var(--bui-space-2) - 1px) calc(var(--bui-space-4) - 1px);\n }\n .bui-ComboboxInput[data-focused] {\n border-width: 2px;\n }\n\n /*\n * Align Table to https://www.patternfly.org/components/table\n */\n .bui-TableHead {\n padding: var(--bui-space-4);\n font-size: var(--bui-font-size-2);\n font-weight: var(--bui-font-weight-bold);\n }\n .bui-TableCell {\n padding: var(--bui-space-4);\n }\n .bui-TableHeader {\n border-bottom: 1px solid var(--bui-border-1);\n }\n .bui-TableRow {\n border-bottom: 1px solid var(--bui-border-1);\n }\n .bui-TableRow:hover {\n background-color: var(\n --pf-v6-c-table__tr--m-clickable--BackgroundColor,\n #f2f2f2\n );\n }\n /*\n * Hover/focus parity: BUI only reveals the sort chevron on .bui-TableHead:hover\n * (or when already sorted). Show it on keyboard focus too so mouse and keyboard\n * users get the same sortable affordance.\n *\n * Keyboard note (React Aria / BUI table): Tab enters or leaves the table as a\n * single stop. To move between sortable headers while one is focused, use the\n * arrow keys — not Tab.\n */\n .bui-TableHead:focus-visible .bui-TableHeadSortButton,\n .bui-TableHead[data-focused] .bui-TableHeadSortButton,\n .bui-TableHead[data-focus-visible] .bui-TableHeadSortButton {\n opacity: 1;\n }\n .bui-TableHead:focus-visible,\n .bui-TableHead[data-focused],\n .bui-TableHead[data-focus-visible] {\n outline: 2px solid var(--bui-ring, var(--bui-bg-solid));\n outline-offset: -2px;\n }\n .bui-TableHead[data-sort-direction='ascending'] .bui-TableHeadSortButton,\n .bui-TableHead[data-sort-direction='descending'] .bui-TableHeadSortButton {\n color: var(--pf-t--global--color--brand--clicked, #004d99);\n }\n\n /*\n * Align Link to https://www.patternfly.org/components/content (links)\n */\n .bui-Link {\n text-decoration-style: dashed;\n }\n\n /*\n * Align Menu to https://www.patternfly.org/components/menu\n */\n .bui-MenuPopover {\n border: none;\n border-radius: var(--bui-radius-3);\n padding: var(--bui-space-1);\n background-color: var(--bui-redhat-theme-bg-floating);\n box-shadow: var(\n --pf-v6-c-menu--BoxShadow,\n 0px 4px 10px 0px rgba(41, 41, 41, 0.15)\n );\n }\n\n .bui-MenuInner {\n background-color: var(--bui-redhat-theme-bg-floating);\n & .bui-MenuContent {\n padding-block: 0;\n background-color: var(--bui-redhat-theme-bg-floating);\n }\n }\n\n .bui-MenuItem {\n border-radius: var(--bui-radius-2);\n margin-inline: 0;\n }\n\n .bui-MenuSection {\n padding-inline: 0;\n }\n\n .bui-MenuSectionHeader {\n font-size: var(--bui-font-size-2);\n padding-inline-start: var(--bui-space-2);\n padding-inline-end: var(--bui-space-2);\n padding-top: var(--bui-space-2);\n padding-bottom: var(--bui-space-2);\n text-transform: none;\n letter-spacing: normal;\n font-weight: var(--bui-font-weight-bold);\n }\n .bui-MenuSeparator {\n background: var(--pf-t--global--border--color--default, #e0e0e0);\n margin-inline: 0;\n }\n\n /*\n * Align Popover to https://www.patternfly.org/components/popover\n * PF uses shadow without border; content surface is white / gray-70 dark.\n *\n * Arrow SVG fills come from --bui-bg-app / --bui-bg-neutral-1 / --bui-border-1\n * (same as Tooltip). Override those on the root so the arrow matches the shell —\n * property-level `background` alone leaves the arrow on page --bui-bg-app and it\n * disappears into the inset gray. With border removed, pull the arrow in further\n * so it does not leave a hairline gap at the join.\n */\n .bui-Popover {\n --popover-border-radius: var(--bui-radius-5);\n --bui-bg-app: var(--pf-v6-c-popover__content--BackgroundColor, #ffffff);\n --bui-bg-neutral-1: var(\n --pf-v6-c-popover__content--BackgroundColor,\n #ffffff\n );\n --bui-border-1: var(--pf-v6-c-popover__content--BackgroundColor, #ffffff);\n border: none;\n box-shadow: var(\n --pf-t--global--box-shadow--md,\n 0px 4px 10px 0px rgba(41, 41, 41, 0.15)\n );\n background: var(--bui-bg-app);\n }\n .bui-PopoverContent {\n background: var(--bui-bg-neutral-1);\n }\n .bui-PopoverArrow svg {\n /* BUI default -2px assumes a 1px border; border:none needs a deeper overlap. */\n --popover-arrow-overlap: -4px;\n }\n\n /*\n * Align Radio to https://www.patternfly.org/components/radio\n */\n .bui-Radio {\n font-size: var(--bui-font-size-3);\n }\n\n /*\n * Align Checkbox disabled state to PatternFly\n */\n .bui-Checkbox[data-disabled] .bui-CheckboxIndicator {\n background-color: light-dark(\n rgba(239, 239, 239, 0.3),\n rgba(59, 59, 59, 0.3)\n );\n }\n\n /*\n * Align Skeleton to https://www.patternfly.org/components/skeleton\n * PatternFly uses a shimmer gradient animation instead of opacity pulse.\n */\n @keyframes bui-shimmer {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n }\n .bui-Skeleton {\n animation: bui-shimmer 3s linear infinite 0.5s;\n background-image: linear-gradient(\n 90deg,\n var(--bui-bg-neutral-2) 0%,\n var(--bui-bg-neutral-3) 50%,\n var(--bui-bg-neutral-2) 100%\n );\n background-size: 200% 100%;\n }\n @media (prefers-reduced-motion: reduce) {\n .bui-Skeleton {\n animation: none;\n }\n }\n\n /*\n * Align Slider to https://www.patternfly.org/components/slider\n */\n .bui-SliderThumb {\n width: 16px;\n height: 16px;\n }\n .bui-SliderTrack {\n border-radius: var(--bui-radius-1);\n }\n\n /*\n * Align Tooltip to https://www.patternfly.org/components/tooltip\n * PatternFly tooltips use inverse background with contrasting text.\n *\n * BUI paints the shell/arrow from --bui-bg-app / --bui-bg-neutral-1 / --bui-border-1\n * and text from --bui-fg-primary. Override those tokens on the tooltip root so\n * background, text, and arrow stay in sync (property-level background overrides\n * lose to BUI module CSS). With border removed, deepen arrow overlap to close\n * the hairline gap at the arrow join.\n */\n .bui-Tooltip {\n --tooltip-border-radius: var(--bui-radius-2);\n --bui-bg-app: var(--pf-v6-c-tooltip__content--BackgroundColor, #292929);\n --bui-bg-neutral-1: var(\n --pf-v6-c-tooltip__content--BackgroundColor,\n #292929\n );\n --bui-border-1: var(--pf-v6-c-tooltip__arrow--BackgroundColor, #292929);\n --bui-fg-primary: var(--pf-v6-c-tooltip__content--Color, #ffffff);\n border: none;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);\n max-width: 300px;\n font-size: var(--bui-font-size-2);\n text-align: center;\n }\n .bui-TooltipArrow svg {\n /* BUI default -2px assumes a 1px border; border:none needs a deeper overlap. */\n --tooltip-arrow-overlap: -4px;\n }\n\n /*\n * Align Switch to https://www.patternfly.org/components/switch\n */\n .bui-SwitchIndicator {\n --switch-indicator-bg: var(\n --pf-t--global--background--color--control--default,\n var(--bui-bg-neutral-1)\n );\n width: calc(var(--bui-font-size-2) * 2.5);\n height: calc(var(--bui-font-size-2) * 1.5);\n border: 1px solid var(--bui-border-2);\n border-radius: calc(var(--bui-font-size-2) * 1.5);\n &:before {\n width: calc(var(--bui-font-size-2) - 2px);\n height: calc(var(--bui-font-size-2) - 2px);\n margin: calc(var(--bui-font-size-2) * 0.2 + 1px);\n background: var(--bui-fg-secondary);\n }\n }\n .bui-Switch[data-selected] .bui-SwitchIndicator {\n border-color: transparent;\n &:before {\n background: var(--bui-accent-fg);\n transform: translateX(calc(100% + 2px));\n }\n }\n .bui-Switch[data-disabled] .bui-SwitchIndicator {\n border-color: transparent;\n background: var(--bui-bg-solid-disabled);\n &:before {\n background: var(--bui-fg-solid-disabled);\n }\n }\n\n /*\n * Page inset / rounded content well:\n * BackstageSidebarPage is the sole scrollport. createComponents.ts applies\n * margin inset + clip-path, sticky left-edge corner masks, and\n * overscroll-behavior: none — for both classic <main> and fragmented BUI\n * Header + Container siblings; no extra DOM wrapper.\n */\n}\n\nbody[data-theme-name='light'][data-theme-mode='light'],\nbody[data-theme-name='light-customized'][data-theme-mode='light'] {\n .bui-DialogContent {\n background-color: var(--pf-v6-c-modal-box--BackgroundColor, #ffffff);\n }\n .bui-DialogHeader > .bui-Button[slot='close'] {\n color: var(--bui-black);\n }\n}\n\nbody[data-theme-name='dark'][data-theme-mode='dark'],\nbody[data-theme-name='dark-customized'][data-theme-mode='dark'] {\n .bui-DialogContent {\n background-color: var(--pf-v6-c-modal-box--BackgroundColor, #383838);\n }\n .bui-DialogHeader > .bui-Button[slot='close'] {\n color: var(--bui-white);\n }\n\n .bui-ButtonLink,\n .bui-ButtonLink[data-variant='primary'] {\n --fg: var(--pf-v6-c-button--m-primary--BackgroundColor, #92c5f9);\n }\n .bui-ButtonLink:hover,\n .bui-ButtonLink[data-hovered] {\n --fg: var(--pf-v6-c-button--hover--Color, #e0f0ff);\n }\n\n .bui-TableRow:hover {\n background-color: var(\n --pf-v6-c-table__tr--m-clickable--BackgroundColor,\n #383838\n );\n }\n .bui-TableHead[data-sort-direction='ascending'] .bui-TableHeadSortButton,\n .bui-TableHead[data-sort-direction='descending'] .bui-TableHeadSortButton {\n color: var(--pf-t--global--color--brand--clicked, #b9dafc);\n }\n\n .bui-MenuSeparator {\n background: var(--pf-t--global--border--color--default, #4d4d4d);\n }\n .bui-MenuItem[data-color='danger'] {\n color: var(--pf-v6-c-menu__item--Color, #f89b78);\n }\n\n .bui-Input,\n .bui-PasswordFieldInputWrapper,\n .bui-SearchFieldInputWrapper,\n .bui-SearchAutocomplete,\n .bui-ComboboxInput,\n .bui-DatePickerGroup {\n border-color: var(--pf-t--global--border--color--control--default, #a3a3a3);\n }\n .bui-Input::placeholder,\n .bui-PasswordFieldInput::placeholder,\n .bui-SearchFieldInputWrapper input::placeholder,\n .bui-ComboboxInput::placeholder {\n color: var(--pf-v6-c-form-control--m-placeholder--Color, #c7c7c7);\n }\n\n .bui-SelectPopover .bui-Popover,\n .bui-ComboboxPopover .bui-Popover,\n .bui-Popover {\n --bui-bg-app: var(--pf-v6-c-popover__content--BackgroundColor, #383838);\n --bui-bg-neutral-1: var(\n --pf-v6-c-popover__content--BackgroundColor,\n #383838\n );\n --bui-border-1: var(--pf-v6-c-popover__content--BackgroundColor, #383838);\n box-shadow: var(\n --pf-t--global--box-shadow--md,\n 0px 4px 10px 0px rgba(0, 0, 0, 0.5)\n );\n background: var(--bui-bg-app);\n }\n .bui-SelectPopover .bui-PopoverContent,\n .bui-ComboboxPopover .bui-PopoverContent,\n .bui-PopoverContent {\n background: var(--bui-bg-neutral-1);\n }\n\n .bui-Tooltip {\n --bui-bg-app: var(--pf-v6-c-tooltip__content--BackgroundColor, #ffffff);\n --bui-bg-neutral-1: var(\n --pf-v6-c-tooltip__content--BackgroundColor,\n #ffffff\n );\n --bui-border-1: var(--pf-v6-c-tooltip__arrow--BackgroundColor, #ffffff);\n --bui-fg-primary: var(--pf-v6-c-tooltip__content--Color, #292929);\n }\n\n .bui-Badge {\n background-color: var(--pf-v6-c-badge--m-read--BackgroundColor, #4d4d4d);\n }\n}\n";
4
4
  styleInject(css_248z);
5
5
  //# sourceMappingURL=component-overrides.css.esm.js.map
@@ -1,5 +1,5 @@
1
1
  import styleInject from '../../node_modules_dist/style-inject/dist/style-inject.es.esm.js';
2
2
 
3
- var css_248z = "body[data-theme-name='light'][data-theme-mode='light'],\nbody[data-theme-name='dark'][data-theme-mode='dark'],\nbody[data-theme-name='light-customized'][data-theme-mode='light'],\nbody[data-theme-name='dark-customized'][data-theme-mode='dark'] {\n /*\n * Override BUI tokens with PatternFly tokens. In this storybook and in ui-docs the fallback is always used.\n * These tokens are used here for documentation purposes to show how the BUI tokens map to PatternFly tokens.\n */\n\n /* Font families */\n --bui-font-regular: var(\n --pf-t--global--font--family--body,\n 'Red Hat Text',\n 'RedHatText',\n 'Noto Sans Arabic',\n 'Noto Sans Hebrew',\n 'Noto Sans JP',\n 'Noto Sans KR',\n 'Noto Sans Malayalam',\n 'Noto Sans SC',\n 'Noto Sans TC',\n 'Noto Sans Thai',\n Helvetica,\n Arial,\n sans-serif\n );\n /* This `--bui-redhat-` prefixed variable does NOT exist in BUI but is used only in this theme by some components below */\n --bui-redhat-theme-font-heading: var(\n --pf-t--global--font--family--heading,\n 'Red Hat Display',\n 'RedHatDisplay',\n 'Noto Sans Arabic',\n 'Noto Sans Hebrew',\n 'Noto Sans JP',\n 'Noto Sans KR',\n 'Noto Sans Malayalam',\n 'Noto Sans SC',\n 'Noto Sans TC',\n 'Noto Sans Thai',\n Helvetica,\n Arial,\n sans-serif\n );\n --bui-font-monospace: var(\n --pf-t--global--font--family--mono,\n 'Red Hat Mono',\n 'RedHatMono',\n 'Courier New',\n Courier,\n monospace\n );\n\n /* Font weights */\n --bui-font-weight-regular: var(\n --pf-t--global--font--weight--body--default,\n 400\n );\n --bui-font-weight-bold: var(--pf-t--global--font--weight--body--bold, 600);\n /* This `--bui-redhat-` prefixed variable does NOT exist in BUI but is used only in this theme by some components below */\n --bui-redhat-theme-font-weight-heading-regular: var(\n --pf-t--global--font--weight--heading--default,\n 400\n );\n /* This `--bui-redhat-` prefixed variable does NOT exist in BUI but is used only in this theme by some components below */\n --bui-redhat-theme-font-weight-heading-bold: var(\n --pf-t--global--font--weight--heading--bold,\n 600\n );\n\n /*\n * Font sizes are mostly similar between BUI and this theme. We used a slightly bigger font size.\n *\n * BUI \"Body Medium\" = --bui-font-size-3 is 0.875rem but we aligned with --pf-t--global--font--size--md which is 1rem.\n *\n * TODO: Check line height.\n */\n --bui-font-size-1: var(\n --pf-t--global--font--size--xs,\n 0.75rem\n ); /* BUI default 0.625rem = 10px */\n --bui-font-size-2: var(\n --pf-t--global--font--size--sm,\n 0.875rem\n ); /* BUI default 0.75rem = 12px */\n --bui-font-size-3: var(\n --pf-t--global--font--size--md,\n 14px /*1rem*/\n ); /* BUI default 0.875rem = 14px */\n --bui-font-size-4: var(\n --pf-t--global--font--size--lg,\n 1.125rem\n ); /* BUI default 1rem = 16px */\n --bui-font-size-5: var(\n --pf-t--global--font--size--xl,\n 1.25rem\n ); /* BUI default 1.25rem = 20px */\n --bui-font-size-6: var(\n --pf-t--global--font--size--2xl,\n 1.5rem\n ); /* BUI default 1.5rem = 24px */\n --bui-font-size-7: var(\n --pf-t--global--font--size--3xl,\n 1.75rem\n ); /* BUI default 2rem = 32px */\n --bui-font-size-8: var(\n --pf-t--global--font--size--4xl,\n 2.25rem\n ); /* BUI default 3rem = 48px */\n --bui-font-size-9: var(\n --pf-t--global--font--size--5xl,\n 3rem\n ); /* BUI default 4rem = 64px */\n --bui-font-size-10: var(\n --pf-t--global--font--size--6xl,\n 4rem\n ); /* BUI default 5.75rem = 92px */\n\n /*\n * Spacing\n *\n * Use default BUI spacing tokens because they are matching mostly the PatternFly tokens.\n *\n * For example `--bui-space: 0.25rem` is same as `pf-t--global--spacer--xs: 0.25rem`\n */\n\n /*\n * Radius\n *\n * While BUI has 6 radius tokens and a `full` token, PatternFly has just 4 radius tokens and a `sharp` (0px) and a `pill` token.\n * We mapped the BUI tokens to the closest PatternFly tokens and used custom values in the middle between `small` and `medium`\n * so that BUI component users can still expect different radius options.\n *\n * The `full` token is mapped to the `pill` token in PatternFly but we kept 9999px instead of 999px from PF.\n */\n --bui-radius-1: var(\n --pf-t--global--border--radius--tiny,\n 4px\n ); /* default: 0.125rem */\n --bui-radius-2: var(\n --pf-t--global--border--radius--small,\n 6px\n ); /* default: 0.25rem */\n --bui-radius-3: 8px; /* default: 0.5rem */\n --bui-radius-4: 12px; /* default: 0.75rem */\n --bui-radius-5: var(\n --pf-t--global--border--radius--medium,\n 16px\n ); /* default: 1rem */\n --bui-radius-6: var(\n --pf-t--global--border--radius--large,\n 24px\n ); /* default: 1.25rem */\n --bui-radius-full: var(\n --pf-t--global--border--radius--pill,\n 9999px\n ); /* default: 9999px */\n}\n\nbody[data-theme-name='light'][data-theme-mode='light'],\nbody[data-theme-name='light-customized'][data-theme-mode='light'] {\n /* Base Colors */\n --bui-black: #151515;\n --bui-white: #ffffff;\n\n /* Solid background colors */\n --bui-bg-solid: var(--pf-t--global--icon--color--brand--default, #0066cc);\n --bui-bg-solid-hover: var(--pf-t--global--icon--color--brand--hover, #004d99);\n --bui-bg-solid-pressed: var(\n --pf-t--global--icon--color--brand--clicked,\n #004d99\n );\n --bui-bg-solid-disabled: var(\n --pf-t--global--background--color--disabled--default,\n #c7c7c7\n );\n\n /* Neutral background colors */\n /* --bui-bg-app: #f8f8f8; */\n\n --bui-bg-neutral-1: #fff;\n --bui-bg-neutral-1-hover: oklch(0% 0 0 / 6%);\n --bui-bg-neutral-1-pressed: oklch(0% 0 0 / 12%);\n --bui-bg-neutral-1-disabled: oklch(0% 0 0 / 6%);\n\n --bui-bg-neutral-2: oklch(0% 0 0 / 6%);\n --bui-bg-neutral-2-hover: oklch(0% 0 0 / 12%);\n --bui-bg-neutral-2-pressed: oklch(0% 0 0 / 16%);\n --bui-bg-neutral-2-disabled: oklch(0% 0 0 / 6%);\n\n --bui-bg-neutral-3: oklch(0% 0 0 / 6%);\n --bui-bg-neutral-3-hover: oklch(0% 0 0 / 12%);\n --bui-bg-neutral-3-pressed: oklch(0% 0 0 / 16%);\n --bui-bg-neutral-3-disabled: oklch(0% 0 0 / 6%);\n\n --bui-bg-neutral-4: oklch(0% 0 0 / 6%);\n --bui-bg-neutral-4-hover: oklch(0% 0 0 / 12%);\n --bui-bg-neutral-4-pressed: oklch(0% 0 0 / 16%);\n --bui-bg-neutral-4-disabled: oklch(0% 0 0 / 6%);\n\n /* Status background colors */\n --bui-bg-danger: #ffe2e2;\n --bui-bg-warning: #ffedd5;\n --bui-bg-success: #dcfce7;\n --bui-bg-info: #dbeafe;\n\n /* Foreground colors */\n --bui-fg-primary: var(--bui-black);\n --bui-fg-secondary: var(\n --pf-t--global--text--color--subtle,\n #4d4d4d\n ); /* PF gray-60 */\n --bui-fg-disabled: var(\n --pf-t--global--text--color--disabled,\n #a3a3a3\n ); /* PF gray-40 */\n --bui-fg-solid: var(--bui-white);\n --bui-fg-solid-disabled: var(\n --pf-t--global--text--color--on-disabled,\n #707070\n ); /* PF gray-50 */\n\n /* Foreground Statuses — used as icon/border accent on status backgrounds */\n --bui-fg-danger-on-bg: var(\n --pf-t--global--color--status--danger--default,\n #b1380b\n ); /* PF red-orange-60 */\n --bui-fg-warning-on-bg: var(\n --pf-t--global--color--status--warning--default,\n #dca614\n ); /* PF yellow-40 */\n --bui-fg-success-on-bg: var(\n --pf-t--global--color--status--success--default,\n #3d7317\n ); /* PF green-60 */\n --bui-fg-info-on-bg: var(\n --pf-t--global--color--status--info--default,\n #5e40be\n ); /* PF purple-50 */\n --bui-fg-danger: var(\n --pf-t--global--color--status--danger--default,\n #b1380b\n ); /* PF red-orange-60 */\n --bui-fg-warning: var(\n --pf-t--global--color--status--warning--default,\n #dca614\n ); /* PF yellow-40 */\n --bui-fg-success: var(\n --pf-t--global--color--status--success--default,\n #3d7317\n ); /* PF green-60 */\n --bui-fg-info: var(\n --pf-t--global--color--status--info--default,\n #5e40be\n ); /* PF purple-50 */\n\n /* Border colors */\n --bui-border-1: var(\n --pf-t--global--border--color--default,\n #c7c7c7\n ); /* PF gray-30 */\n --bui-border-2: var(\n --pf-t--global--border--color--control--default,\n #a3a3a3\n ); /* PF gray-40 */\n --bui-border-info: var(\n --pf-t--global--border--color--status--info--default,\n #5e40be\n ); /* PF purple-50 */\n --bui-border-danger: var(\n --pf-t--global--border--color--status--danger--default,\n #b1380b\n ); /* PF red-orange-60 */\n --bui-border-warning: var(\n --pf-t--global--border--color--status--warning--default,\n #dca614\n ); /* PF yellow-40 */\n --bui-border-success: var(\n --pf-t--global--border--color--status--success--default,\n #3d7317\n ); /* PF green-60 */\n\n /* Accent colors (used by Switch and other interactive components) */\n --bui-accent-bg: var(--bui-bg-solid);\n --bui-accent-bg-hover: var(--bui-bg-solid-hover);\n --bui-accent-bg-disabled: var(--bui-bg-solid-disabled);\n --bui-accent-fg: var(--bui-fg-solid);\n --bui-accent-fg-disabled: var(--bui-fg-solid-disabled);\n\n /*\n * Brand accent for tab/nav indicators — separate from the button brand.\n * Defaults to the brand color; felt variants override to red.\n */\n --bui-redhat-theme-brand-accent: var(--bui-bg-solid);\n\n /* Readonly form control colors — PF gray-10 bg, gray-30 border */\n --bui-redhat-theme-readonly-bg: #f2f2f2;\n --bui-redhat-theme-readonly-border: #c7c7c7;\n\n /* Primary background — PF background-color-primary-default */\n --bui-redhat-theme-bg-primary: #ffffff; /* PF white */\n\n /* Floating background — PF background-color-floating-default (menus, popovers) */\n --bui-redhat-theme-bg-floating: #ffffff; /* PF white */\n\n /* Page inset — the shell background behind the rounded content well */\n --bui-redhat-theme-page-inset: 1.5rem;\n --bui-redhat-theme-page-inset-bg: #f2f2f2;\n\n /* Brand subtle — used by ToggleButton selected/hover states */\n --bui-redhat-theme-brand-subtle: #e0f0ff; /* PF blue-10 */\n --bui-redhat-theme-brand-subtle-hover: #b9dafc; /* PF blue-20 */\n --bui-redhat-theme-brand-subtle-border: #4394e5; /* PF blue-40 */\n\n /* Special colors */\n --bui-ring: var(--bui-bg-solid);\n --bui-scrollbar: #a0a0a03b;\n --bui-scrollbar-thumb: #a0a0a0;\n\n /* Shadows */\n --bui-shadow: rgba(41, 41, 41, 0.15) 0px 10px 20px 0px;\n\n --bui-animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n\nbody[data-theme-name='dark'][data-theme-mode='dark'],\nbody[data-theme-name='dark-customized'][data-theme-mode='dark'] {\n /* Base Colors */\n --bui-black: #151515;\n --bui-white: #ffffff;\n\n /* Solid background colors — dark brand uses lighter blue for contrast on dark bg */\n --bui-bg-solid: var(\n --pf-t--global--icon--color--brand--default,\n #92c5f9\n ); /* PF dark brand = blue-30 */\n --bui-bg-solid-hover: var(\n --pf-t--global--icon--color--brand--hover,\n #b9dafc\n ); /* PF dark = blue-20 */\n --bui-bg-solid-pressed: var(\n --pf-t--global--icon--color--brand--clicked,\n #b9dafc\n );\n --bui-bg-solid-disabled: var(\n --pf-t--global--background--color--disabled--default,\n #a3a3a3\n ); /* PF dark gray-40 */\n\n /* Neutral background colors */\n --bui-bg-neutral-1: oklch(100% 0 0 / 10%);\n --bui-bg-neutral-1-hover: oklch(100% 0 0 / 14%);\n --bui-bg-neutral-1-pressed: oklch(100% 0 0 / 20%);\n --bui-bg-neutral-1-disabled: oklch(100% 0 0 / 10%);\n\n --bui-bg-neutral-2: oklch(100% 0 0 / 6%);\n --bui-bg-neutral-2-hover: oklch(100% 0 0 / 10%);\n --bui-bg-neutral-2-pressed: oklch(100% 0 0 / 16%);\n --bui-bg-neutral-2-disabled: oklch(100% 0 0 / 6%);\n\n --bui-bg-neutral-3: oklch(100% 0 0 / 8%);\n --bui-bg-neutral-3-hover: oklch(100% 0 0 / 12%);\n --bui-bg-neutral-3-pressed: oklch(100% 0 0 / 20%);\n --bui-bg-neutral-3-disabled: oklch(100% 0 0 / 8%);\n\n --bui-bg-neutral-4: oklch(100% 0 0 / 8%);\n --bui-bg-neutral-4-hover: oklch(100% 0 0 / 12%);\n --bui-bg-neutral-4-pressed: oklch(100% 0 0 / 20%);\n --bui-bg-neutral-4-disabled: oklch(100% 0 0 / 8%);\n\n /* Status background colors — BUI uses tinted backgrounds for alerts */\n --bui-bg-danger: #ffe2e2;\n --bui-bg-warning: #ffedd5;\n --bui-bg-success: #dcfce7;\n --bui-bg-info: #dbeafe;\n\n /* Foreground colors */\n --bui-fg-primary: var(--bui-white);\n --bui-fg-secondary: var(\n --pf-t--global--text--color--subtle,\n #c7c7c7\n ); /* PF dark = gray-30 */\n --bui-fg-disabled: var(\n --pf-t--global--text--color--disabled,\n #707070\n ); /* PF dark = gray-50 */\n --bui-fg-solid: #151515;\n --bui-fg-solid-disabled: var(\n --pf-t--global--text--color--on-disabled,\n #383838\n ); /* PF dark = gray-70 */\n\n /* Foreground Statuses — dark mode uses lighter status colors for contrast */\n --bui-fg-danger-on-bg: var(\n --pf-t--global--color--status--danger--default,\n #f0561d\n ); /* PF dark = red-orange-50 */\n --bui-fg-warning-on-bg: var(\n --pf-t--global--color--status--warning--default,\n #ffcc17\n ); /* PF dark = yellow-30 */\n --bui-fg-success-on-bg: var(\n --pf-t--global--color--status--success--default,\n #87bb62\n ); /* PF dark = green-40 */\n --bui-fg-info-on-bg: var(\n --pf-t--global--color--status--info--default,\n #b6a6e9\n ); /* PF dark = purple-30 */\n --bui-fg-danger: var(\n --pf-t--global--color--status--danger--default,\n #f0561d\n ); /* PF dark = red-orange-50 */\n --bui-fg-warning: var(\n --pf-t--global--color--status--warning--default,\n #ffcc17\n ); /* PF dark = yellow-30 */\n --bui-fg-success: var(\n --pf-t--global--color--status--success--default,\n #87bb62\n ); /* PF dark = green-40 */\n --bui-fg-info: var(\n --pf-t--global--color--status--info--default,\n #b6a6e9\n ); /* PF dark = purple-30 */\n\n /* Border colors */\n --bui-border-1: var(\n --pf-t--global--border--color--default,\n #4d4d4d\n ); /* PF dark = gray-60 */\n --bui-border-2: var(\n --pf-t--global--border--color--control--default,\n #a3a3a3\n ); /* PF dark = gray-40 */\n --bui-border-info: var(\n --pf-t--global--border--color--status--info--default,\n #b6a6e9\n ); /* PF dark = purple-30 */\n --bui-border-danger: var(\n --pf-t--global--border--color--status--danger--default,\n #f0561d\n ); /* PF dark = red-orange-50 */\n --bui-border-warning: var(\n --pf-t--global--border--color--status--warning--default,\n #ffcc17\n ); /* PF dark = yellow-30 */\n --bui-border-success: var(\n --pf-t--global--border--color--status--success--default,\n #87bb62\n ); /* PF dark = green-40 */\n\n /* Accent colors (used by Switch and other interactive components) */\n --bui-accent-bg: var(--bui-bg-solid);\n --bui-accent-bg-hover: var(--bui-bg-solid-hover);\n --bui-accent-bg-disabled: var(--bui-bg-solid-disabled);\n --bui-accent-fg: var(--bui-fg-solid);\n --bui-accent-fg-disabled: var(--bui-fg-solid-disabled);\n\n --bui-redhat-theme-brand-accent: var(--bui-bg-solid);\n\n /* Readonly form control colors — PF dark: gray-80 bg, gray-60 border */\n --bui-redhat-theme-readonly-bg: #292929;\n --bui-redhat-theme-readonly-border: #4d4d4d;\n\n /* Primary background — PF dark: gray-80 */\n --bui-redhat-theme-bg-primary: #292929;\n\n /* Floating background — PF dark: gray-70 */\n --bui-redhat-theme-bg-floating: #383838;\n\n /* Page inset — dark shell background */\n --bui-redhat-theme-page-inset: 1.5rem;\n --bui-redhat-theme-page-inset-bg: #151515;\n\n /* Brand subtle — PF dark: blue-70, blue-60, blue-30 */\n --bui-redhat-theme-brand-subtle: #003366; /* PF blue-70 */\n --bui-redhat-theme-brand-subtle-hover: #004d99; /* PF blue-60 */\n --bui-redhat-theme-brand-subtle-border: #92c5f9; /* PF blue-30 */\n\n /* Special colors */\n --bui-ring: var(--bui-bg-solid);\n --bui-scrollbar: #a0a0a03b;\n --bui-scrollbar-thumb: #a0a0a0;\n\n /* Shadows */\n --bui-shadow: rgba(0, 0, 0, 0.5) 0px 10px 20px 0px;\n\n --bui-animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n\n/*\n * Felt theme overrides for the customized variants.\n */\nbody[data-theme-name='light-customized'][data-theme-mode='light'] {\n /* Brand accent → red (buttons stay blue via --bui-bg-solid) */\n --bui-redhat-theme-brand-accent: #ee0000;\n}\n\nbody[data-theme-name='dark-customized'][data-theme-mode='dark'] {\n /* Brand accent → red */\n --bui-redhat-theme-brand-accent: #ee0000;\n}\n";
3
+ var css_248z = "body[data-theme-name='light'][data-theme-mode='light'],\nbody[data-theme-name='dark'][data-theme-mode='dark'],\nbody[data-theme-name='light-customized'][data-theme-mode='light'],\nbody[data-theme-name='dark-customized'][data-theme-mode='dark'] {\n /*\n * Override BUI tokens with PatternFly tokens. In this storybook and in ui-docs the fallback is always used.\n * These tokens are used here for documentation purposes to show how the BUI tokens map to PatternFly tokens.\n */\n\n /* Font families */\n --bui-font-regular: var(\n --pf-t--global--font--family--body,\n 'Red Hat Text',\n 'RedHatText',\n 'Noto Sans Arabic',\n 'Noto Sans Hebrew',\n 'Noto Sans JP',\n 'Noto Sans KR',\n 'Noto Sans Malayalam',\n 'Noto Sans SC',\n 'Noto Sans TC',\n 'Noto Sans Thai',\n Helvetica,\n Arial,\n sans-serif\n );\n /* This `--bui-redhat-` prefixed variable does NOT exist in BUI but is used only in this theme by some components below */\n --bui-redhat-theme-font-heading: var(\n --pf-t--global--font--family--heading,\n 'Red Hat Display',\n 'RedHatDisplay',\n 'Noto Sans Arabic',\n 'Noto Sans Hebrew',\n 'Noto Sans JP',\n 'Noto Sans KR',\n 'Noto Sans Malayalam',\n 'Noto Sans SC',\n 'Noto Sans TC',\n 'Noto Sans Thai',\n Helvetica,\n Arial,\n sans-serif\n );\n --bui-font-monospace: var(\n --pf-t--global--font--family--mono,\n 'Red Hat Mono',\n 'RedHatMono',\n 'Courier New',\n Courier,\n monospace\n );\n\n /* Font weights */\n --bui-font-weight-regular: var(\n --pf-t--global--font--weight--body--default,\n 400\n );\n --bui-font-weight-bold: var(--pf-t--global--font--weight--body--bold, 600);\n /* This `--bui-redhat-` prefixed variable does NOT exist in BUI but is used only in this theme by some components below */\n --bui-redhat-theme-font-weight-heading-regular: var(\n --pf-t--global--font--weight--heading--default,\n 400\n );\n /* This `--bui-redhat-` prefixed variable does NOT exist in BUI but is used only in this theme by some components below */\n --bui-redhat-theme-font-weight-heading-bold: var(\n --pf-t--global--font--weight--heading--bold,\n 600\n );\n\n /*\n * Font sizes are mostly similar between BUI and this theme. We used a slightly bigger font size.\n *\n * BUI \"Body Medium\" = --bui-font-size-3 is 0.875rem but we aligned with --pf-t--global--font--size--md which is 1rem.\n *\n * Line heights are applied per Text variant in component-overrides.css to match PatternFly Content\n * (--pf-v6-c-content--h*--LineHeight: 1.3, --pf-v6-c-content--LineHeight: 1.5).\n */\n --bui-font-size-1: var(\n --pf-t--global--font--size--xs,\n 0.75rem\n ); /* BUI default 0.625rem = 10px */\n --bui-font-size-2: var(\n --pf-t--global--font--size--sm,\n 0.875rem\n ); /* BUI default 0.75rem = 12px */\n --bui-font-size-3: var(\n --pf-t--global--font--size--md,\n 14px /*1rem*/\n ); /* BUI default 0.875rem = 14px */\n --bui-font-size-4: var(\n --pf-t--global--font--size--lg,\n 1.125rem\n ); /* BUI default 1rem = 16px */\n --bui-font-size-5: var(\n --pf-t--global--font--size--xl,\n 1.25rem\n ); /* BUI default 1.25rem = 20px */\n --bui-font-size-6: var(\n --pf-t--global--font--size--2xl,\n 1.5rem\n ); /* BUI default 1.5rem = 24px */\n --bui-font-size-7: var(\n --pf-t--global--font--size--3xl,\n 1.75rem\n ); /* BUI default 2rem = 32px */\n --bui-font-size-8: var(\n --pf-t--global--font--size--4xl,\n 2.25rem\n ); /* BUI default 3rem = 48px */\n --bui-font-size-9: var(\n --pf-t--global--font--size--5xl,\n 3rem\n ); /* BUI default 4rem = 64px */\n --bui-font-size-10: var(\n --pf-t--global--font--size--6xl,\n 4rem\n ); /* BUI default 5.75rem = 92px */\n\n /*\n * Spacing\n *\n * Use default BUI spacing tokens because they are matching mostly the PatternFly tokens.\n *\n * For example `--bui-space: 0.25rem` is same as `pf-t--global--spacer--xs: 0.25rem`\n */\n\n /*\n * Radius\n *\n * While BUI has 6 radius tokens and a `full` token, PatternFly has just 4 radius tokens and a `sharp` (0px) and a `pill` token.\n * We mapped the BUI tokens to the closest PatternFly tokens and used custom values in the middle between `small` and `medium`\n * so that BUI component users can still expect different radius options.\n *\n * The `full` token is mapped to the `pill` token in PatternFly but we kept 9999px instead of 999px from PF.\n */\n --bui-radius-1: var(\n --pf-t--global--border--radius--tiny,\n 4px\n ); /* default: 0.125rem */\n --bui-radius-2: var(\n --pf-t--global--border--radius--small,\n 6px\n ); /* default: 0.25rem */\n --bui-radius-3: 8px; /* default: 0.5rem */\n --bui-radius-4: 12px; /* default: 0.75rem */\n --bui-radius-5: var(\n --pf-t--global--border--radius--medium,\n 16px\n ); /* default: 1rem */\n --bui-radius-6: var(\n --pf-t--global--border--radius--large,\n 24px\n ); /* default: 1.25rem */\n --bui-radius-full: var(\n --pf-t--global--border--radius--pill,\n 9999px\n ); /* default: 9999px */\n}\n\nbody[data-theme-name='light'][data-theme-mode='light'],\nbody[data-theme-name='light-customized'][data-theme-mode='light'] {\n /* Base Colors */\n --bui-black: #151515;\n --bui-white: #ffffff;\n\n /* Solid background colors */\n --bui-bg-solid: var(--pf-t--global--icon--color--brand--default, #0066cc);\n --bui-bg-solid-hover: var(--pf-t--global--icon--color--brand--hover, #004d99);\n --bui-bg-solid-pressed: var(\n --pf-t--global--icon--color--brand--clicked,\n #004d99\n );\n --bui-bg-solid-disabled: var(\n --pf-t--global--background--color--disabled--default,\n #c7c7c7\n );\n\n /* Neutral background colors */\n /* App / outer-shell surface — PF masthead background */\n --bui-bg-app: var(--pf-v6-c-masthead--BackgroundColor, #f2f2f2);\n\n --bui-bg-neutral-1: #fff;\n --bui-bg-neutral-1-hover: oklch(0% 0 0 / 6%);\n --bui-bg-neutral-1-pressed: oklch(0% 0 0 / 12%);\n --bui-bg-neutral-1-disabled: oklch(0% 0 0 / 6%);\n\n --bui-bg-neutral-2: oklch(0% 0 0 / 6%);\n --bui-bg-neutral-2-hover: oklch(0% 0 0 / 12%);\n --bui-bg-neutral-2-pressed: oklch(0% 0 0 / 16%);\n --bui-bg-neutral-2-disabled: oklch(0% 0 0 / 6%);\n\n --bui-bg-neutral-3: oklch(0% 0 0 / 6%);\n --bui-bg-neutral-3-hover: oklch(0% 0 0 / 12%);\n --bui-bg-neutral-3-pressed: oklch(0% 0 0 / 16%);\n --bui-bg-neutral-3-disabled: oklch(0% 0 0 / 6%);\n\n --bui-bg-neutral-4: oklch(0% 0 0 / 6%);\n --bui-bg-neutral-4-hover: oklch(0% 0 0 / 12%);\n --bui-bg-neutral-4-pressed: oklch(0% 0 0 / 16%);\n --bui-bg-neutral-4-disabled: oklch(0% 0 0 / 6%);\n\n /* Status background colors */\n --bui-bg-danger: #ffe2e2;\n --bui-bg-warning: #ffedd5;\n --bui-bg-success: #dcfce7;\n --bui-bg-info: #dbeafe;\n\n /* Foreground colors */\n --bui-fg-primary: var(--bui-black);\n --bui-fg-secondary: var(\n --pf-t--global--text--color--subtle,\n #4d4d4d\n ); /* PF gray-60 */\n --bui-fg-disabled: var(\n --pf-t--global--text--color--disabled,\n #a3a3a3\n ); /* PF gray-40 */\n --bui-fg-solid: var(--bui-white);\n --bui-fg-solid-disabled: var(\n --pf-t--global--text--color--on-disabled,\n #707070\n ); /* PF gray-50 */\n\n /* Foreground Statuses — used as icon/border accent on status backgrounds */\n --bui-fg-danger-on-bg: var(\n --pf-t--global--color--status--danger--default,\n #b1380b\n ); /* PF red-orange-60 */\n --bui-fg-warning-on-bg: var(\n --pf-t--global--color--status--warning--default,\n #dca614\n ); /* PF yellow-40 */\n --bui-fg-success-on-bg: var(\n --pf-t--global--color--status--success--default,\n #3d7317\n ); /* PF green-60 */\n --bui-fg-info-on-bg: var(\n --pf-t--global--color--status--info--default,\n #5e40be\n ); /* PF purple-50 */\n --bui-fg-danger: var(\n --pf-t--global--color--status--danger--default,\n #b1380b\n ); /* PF red-orange-60 */\n --bui-fg-warning: var(\n --pf-t--global--color--status--warning--default,\n #dca614\n ); /* PF yellow-40 */\n --bui-fg-success: var(\n --pf-t--global--color--status--success--default,\n #3d7317\n ); /* PF green-60 */\n --bui-fg-info: var(\n --pf-t--global--color--status--info--default,\n #5e40be\n ); /* PF purple-50 */\n\n /* Border colors */\n --bui-border-1: var(\n --pf-t--global--border--color--default,\n #c7c7c7\n ); /* PF gray-30 */\n --bui-border-2: var(\n --pf-t--global--border--color--control--default,\n #a3a3a3\n ); /* PF gray-40 */\n --bui-border-info: var(\n --pf-t--global--border--color--status--info--default,\n #5e40be\n ); /* PF purple-50 */\n --bui-border-danger: var(\n --pf-t--global--border--color--status--danger--default,\n #b1380b\n ); /* PF red-orange-60 */\n --bui-border-warning: var(\n --pf-t--global--border--color--status--warning--default,\n #dca614\n ); /* PF yellow-40 */\n --bui-border-success: var(\n --pf-t--global--border--color--status--success--default,\n #3d7317\n ); /* PF green-60 */\n\n /* Accent colors (used by Switch and other interactive components) */\n --bui-accent-bg: var(--bui-bg-solid);\n --bui-accent-bg-hover: var(--bui-bg-solid-hover);\n --bui-accent-bg-disabled: var(--bui-bg-solid-disabled);\n --bui-accent-fg: var(--bui-fg-solid);\n --bui-accent-fg-disabled: var(--bui-fg-solid-disabled);\n\n /*\n * Brand accent for tab/nav indicators — separate from the button brand.\n * Defaults to the brand color; felt variants override to red.\n */\n --bui-redhat-theme-brand-accent: var(--bui-bg-solid);\n\n /* Readonly form control colors — PF gray-10 bg, gray-30 border */\n --bui-redhat-theme-readonly-bg: #f2f2f2;\n --bui-redhat-theme-readonly-border: #c7c7c7;\n\n /* Primary background — PF background-color-primary-default */\n --bui-redhat-theme-bg-primary: #ffffff; /* PF white */\n\n /* Floating background — PF background-color-floating-default (menus, popovers) */\n --bui-redhat-theme-bg-floating: #ffffff; /* PF white */\n\n /* Page inset — the shell background behind the rounded content well */\n --bui-redhat-theme-page-inset: 1.5rem;\n --bui-redhat-theme-page-inset-bg: #f2f2f2;\n\n /* Brand subtle — used by ToggleButton selected/hover states */\n --bui-redhat-theme-brand-subtle: #e0f0ff; /* PF blue-10 */\n --bui-redhat-theme-brand-subtle-hover: #b9dafc; /* PF blue-20 */\n --bui-redhat-theme-brand-subtle-border: #4394e5; /* PF blue-40 */\n\n /* Special colors */\n --bui-ring: var(--bui-bg-solid);\n --bui-scrollbar: #a0a0a03b;\n --bui-scrollbar-thumb: #a0a0a0;\n\n /* Shadows */\n --bui-shadow: rgba(41, 41, 41, 0.15) 0px 10px 20px 0px;\n\n --bui-animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n\nbody[data-theme-name='dark'][data-theme-mode='dark'],\nbody[data-theme-name='dark-customized'][data-theme-mode='dark'] {\n /* Base Colors */\n --bui-black: #151515;\n --bui-white: #ffffff;\n\n /* Solid background colors — dark brand uses lighter blue for contrast on dark bg */\n --bui-bg-solid: var(\n --pf-t--global--icon--color--brand--default,\n #92c5f9\n ); /* PF dark brand = blue-30 */\n --bui-bg-solid-hover: var(\n --pf-t--global--icon--color--brand--hover,\n #b9dafc\n ); /* PF dark = blue-20 */\n --bui-bg-solid-pressed: var(\n --pf-t--global--icon--color--brand--clicked,\n #b9dafc\n );\n --bui-bg-solid-disabled: var(\n --pf-t--global--background--color--disabled--default,\n #a3a3a3\n ); /* PF dark gray-40 */\n\n /* Neutral background colors */\n /* App / outer-shell surface — PF masthead background (dark) */\n --bui-bg-app: var(--pf-v6-c-masthead--BackgroundColor, #151515);\n\n --bui-bg-neutral-1: oklch(100% 0 0 / 10%);\n --bui-bg-neutral-1-hover: oklch(100% 0 0 / 14%);\n --bui-bg-neutral-1-pressed: oklch(100% 0 0 / 20%);\n --bui-bg-neutral-1-disabled: oklch(100% 0 0 / 10%);\n\n --bui-bg-neutral-2: oklch(100% 0 0 / 6%);\n --bui-bg-neutral-2-hover: oklch(100% 0 0 / 10%);\n --bui-bg-neutral-2-pressed: oklch(100% 0 0 / 16%);\n --bui-bg-neutral-2-disabled: oklch(100% 0 0 / 6%);\n\n --bui-bg-neutral-3: oklch(100% 0 0 / 8%);\n --bui-bg-neutral-3-hover: oklch(100% 0 0 / 12%);\n --bui-bg-neutral-3-pressed: oklch(100% 0 0 / 20%);\n --bui-bg-neutral-3-disabled: oklch(100% 0 0 / 8%);\n\n --bui-bg-neutral-4: oklch(100% 0 0 / 8%);\n --bui-bg-neutral-4-hover: oklch(100% 0 0 / 12%);\n --bui-bg-neutral-4-pressed: oklch(100% 0 0 / 20%);\n --bui-bg-neutral-4-disabled: oklch(100% 0 0 / 8%);\n\n /* Status background colors — BUI uses tinted backgrounds for alerts */\n --bui-bg-danger: #ffe2e2;\n --bui-bg-warning: #ffedd5;\n --bui-bg-success: #dcfce7;\n --bui-bg-info: #dbeafe;\n\n /* Foreground colors */\n --bui-fg-primary: var(--bui-white);\n --bui-fg-secondary: var(\n --pf-t--global--text--color--subtle,\n #c7c7c7\n ); /* PF dark = gray-30 */\n --bui-fg-disabled: var(\n --pf-t--global--text--color--disabled,\n #707070\n ); /* PF dark = gray-50 */\n --bui-fg-solid: #151515;\n --bui-fg-solid-disabled: var(\n --pf-t--global--text--color--on-disabled,\n #383838\n ); /* PF dark = gray-70 */\n\n /* Foreground Statuses — dark mode uses lighter status colors for contrast */\n --bui-fg-danger-on-bg: var(\n --pf-t--global--color--status--danger--default,\n #f0561d\n ); /* PF dark = red-orange-50 */\n --bui-fg-warning-on-bg: var(\n --pf-t--global--color--status--warning--default,\n #ffcc17\n ); /* PF dark = yellow-30 */\n --bui-fg-success-on-bg: var(\n --pf-t--global--color--status--success--default,\n #87bb62\n ); /* PF dark = green-40 */\n --bui-fg-info-on-bg: var(\n --pf-t--global--color--status--info--default,\n #b6a6e9\n ); /* PF dark = purple-30 */\n --bui-fg-danger: var(\n --pf-t--global--color--status--danger--default,\n #f0561d\n ); /* PF dark = red-orange-50 */\n --bui-fg-warning: var(\n --pf-t--global--color--status--warning--default,\n #ffcc17\n ); /* PF dark = yellow-30 */\n --bui-fg-success: var(\n --pf-t--global--color--status--success--default,\n #87bb62\n ); /* PF dark = green-40 */\n --bui-fg-info: var(\n --pf-t--global--color--status--info--default,\n #b6a6e9\n ); /* PF dark = purple-30 */\n\n /* Border colors */\n --bui-border-1: var(\n --pf-t--global--border--color--default,\n #4d4d4d\n ); /* PF dark = gray-60 */\n --bui-border-2: var(\n --pf-t--global--border--color--control--default,\n #a3a3a3\n ); /* PF dark = gray-40 */\n --bui-border-info: var(\n --pf-t--global--border--color--status--info--default,\n #b6a6e9\n ); /* PF dark = purple-30 */\n --bui-border-danger: var(\n --pf-t--global--border--color--status--danger--default,\n #f0561d\n ); /* PF dark = red-orange-50 */\n --bui-border-warning: var(\n --pf-t--global--border--color--status--warning--default,\n #ffcc17\n ); /* PF dark = yellow-30 */\n --bui-border-success: var(\n --pf-t--global--border--color--status--success--default,\n #87bb62\n ); /* PF dark = green-40 */\n\n /* Accent colors (used by Switch and other interactive components) */\n --bui-accent-bg: var(--bui-bg-solid);\n --bui-accent-bg-hover: var(--bui-bg-solid-hover);\n --bui-accent-bg-disabled: var(--bui-bg-solid-disabled);\n --bui-accent-fg: var(--bui-fg-solid);\n --bui-accent-fg-disabled: var(--bui-fg-solid-disabled);\n\n --bui-redhat-theme-brand-accent: var(--bui-bg-solid);\n\n /* Readonly form control colors — PF dark: gray-80 bg, gray-60 border */\n --bui-redhat-theme-readonly-bg: #292929;\n --bui-redhat-theme-readonly-border: #4d4d4d;\n\n /* Primary background — PF dark: gray-80 */\n --bui-redhat-theme-bg-primary: #292929;\n\n /* Floating background — PF dark: gray-70 */\n --bui-redhat-theme-bg-floating: #383838;\n\n /* Page inset — dark shell background */\n --bui-redhat-theme-page-inset: 1.5rem;\n --bui-redhat-theme-page-inset-bg: #151515;\n\n /* Brand subtle — PF dark: blue-70, blue-60, blue-30 */\n --bui-redhat-theme-brand-subtle: #003366; /* PF blue-70 */\n --bui-redhat-theme-brand-subtle-hover: #004d99; /* PF blue-60 */\n --bui-redhat-theme-brand-subtle-border: #92c5f9; /* PF blue-30 */\n\n /* Special colors */\n --bui-ring: var(--bui-bg-solid);\n --bui-scrollbar: #a0a0a03b;\n --bui-scrollbar-thumb: #a0a0a0;\n\n /* Shadows */\n --bui-shadow: rgba(0, 0, 0, 0.5) 0px 10px 20px 0px;\n\n --bui-animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n\n/*\n * Felt theme overrides for the customized variants.\n */\nbody[data-theme-name='light-customized'][data-theme-mode='light'] {\n /* Brand accent → red (buttons stay blue via --bui-bg-solid) */\n --bui-redhat-theme-brand-accent: #ee0000;\n}\n\nbody[data-theme-name='dark-customized'][data-theme-mode='dark'] {\n /* Brand accent → red */\n --bui-redhat-theme-brand-accent: #ee0000;\n}\n";
4
4
  styleInject(css_248z);
5
5
  //# sourceMappingURL=tokens.css.esm.js.map
package/dist/index.d.ts CHANGED
@@ -5,7 +5,8 @@ import 'react/jsx-runtime';
5
5
  /**
6
6
  * RHDH themes as NFS extensions (ThemeBlueprint).
7
7
  * Only the app can register ThemeBlueprint; we use the same theme definitions
8
- * from the theme plugin (getAllThemes()) so behavior matches the legacy app.
8
+ * from the theme plugin (getThemes()) so the app exposes only the current RHDH
9
+ * light and dark themes.
9
10
  *
10
11
  * @public
11
12
  */
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createFrontendModule } from '@backstage/frontend-plugin-api';
2
2
  import { ThemeBlueprint } from '@backstage/plugin-app-react';
3
- import { getAllThemes } from './themes.esm.js';
3
+ import { getThemes } from './themes.esm.js';
4
4
  import './assets/fonts/font.min.css.esm.js';
5
5
  import './assets/bui/tokens.css.esm.js';
6
6
  import './assets/bui/component-overrides.css.esm.js';
@@ -15,7 +15,7 @@ import '@mui/material/GlobalStyles';
15
15
 
16
16
  const rhdhThemeModule = createFrontendModule({
17
17
  pluginId: "app",
18
- extensions: getAllThemes().map(
18
+ extensions: getThemes().map(
19
19
  (appTheme) => ThemeBlueprint.make({
20
20
  name: appTheme.id,
21
21
  params: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * RHDH Theme plugin for Backstage.\n * @packageDocumentation\n */\n\nimport { createFrontendModule } from '@backstage/frontend-plugin-api';\nimport { ThemeBlueprint } from '@backstage/plugin-app-react';\n\nimport { getAllThemes } from './themes';\n\nimport './assets/fonts/font.min.css';\nimport './assets/bui/tokens.css';\nimport './assets/bui/component-overrides.css';\n\nexport { LogoFull, LogoIcon } from './components';\n\n/**\n * RHDH themes as NFS extensions (ThemeBlueprint).\n * Only the app can register ThemeBlueprint; we use the same theme definitions\n * from the theme plugin (getAllThemes()) so behavior matches the legacy app.\n *\n * @public\n */\nconst rhdhThemeModule = createFrontendModule({\n pluginId: 'app',\n extensions: getAllThemes().map(appTheme =>\n ThemeBlueprint.make({\n name: appTheme.id,\n params: {\n theme: {\n id: appTheme.id,\n title: appTheme.title,\n variant: appTheme.variant,\n icon: appTheme.icon,\n Provider: appTheme.Provider,\n },\n },\n }),\n ),\n});\n\nexport default rhdhThemeModule;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAuCA,MAAM,kBAAkB,oBAAA,CAAqB;AAAA,EAC3C,QAAA,EAAU,KAAA;AAAA,EACV,UAAA,EAAY,cAAa,CAAE,GAAA;AAAA,IAAI,CAAA,QAAA,KAC7B,eAAe,IAAA,CAAK;AAAA,MAClB,MAAM,QAAA,CAAS,EAAA;AAAA,MACf,MAAA,EAAQ;AAAA,QACN,KAAA,EAAO;AAAA,UACL,IAAI,QAAA,CAAS,EAAA;AAAA,UACb,OAAO,QAAA,CAAS,KAAA;AAAA,UAChB,SAAS,QAAA,CAAS,OAAA;AAAA,UAClB,MAAM,QAAA,CAAS,IAAA;AAAA,UACf,UAAU,QAAA,CAAS;AAAA;AACrB;AACF,KACD;AAAA;AAEL,CAAC;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * RHDH Theme plugin for Backstage.\n * @packageDocumentation\n */\n\nimport { createFrontendModule } from '@backstage/frontend-plugin-api';\nimport { ThemeBlueprint } from '@backstage/plugin-app-react';\n\nimport { getThemes } from './themes';\n\nimport './assets/fonts/font.min.css';\nimport './assets/bui/tokens.css';\nimport './assets/bui/component-overrides.css';\n\nexport { LogoFull, LogoIcon } from './components';\n\n/**\n * RHDH themes as NFS extensions (ThemeBlueprint).\n * Only the app can register ThemeBlueprint; we use the same theme definitions\n * from the theme plugin (getThemes()) so the app exposes only the current RHDH\n * light and dark themes.\n *\n * @public\n */\nconst rhdhThemeModule = createFrontendModule({\n pluginId: 'app',\n extensions: getThemes().map(appTheme =>\n ThemeBlueprint.make({\n name: appTheme.id,\n params: {\n theme: {\n id: appTheme.id,\n title: appTheme.title,\n variant: appTheme.variant,\n icon: appTheme.icon,\n Provider: appTheme.Provider,\n },\n },\n }),\n ),\n});\n\nexport default rhdhThemeModule;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAwCA,MAAM,kBAAkB,oBAAA,CAAqB;AAAA,EAC3C,QAAA,EAAU,KAAA;AAAA,EACV,UAAA,EAAY,WAAU,CAAE,GAAA;AAAA,IAAI,CAAA,QAAA,KAC1B,eAAe,IAAA,CAAK;AAAA,MAClB,MAAM,QAAA,CAAS,EAAA;AAAA,MACf,MAAA,EAAQ;AAAA,QACN,KAAA,EAAO;AAAA,UACL,IAAI,QAAA,CAAS,EAAA;AAAA,UACb,OAAO,QAAA,CAAS,KAAA;AAAA,UAChB,SAAS,QAAA,CAAS,OAAA;AAAA,UAClB,MAAM,QAAA,CAAS,IAAA;AAAA,UACf,UAAU,QAAA,CAAS;AAAA;AACrB;AACF,KACD;AAAA;AAEL,CAAC;;;;"}
@@ -30,9 +30,34 @@ const createComponents = (themeConfig) => {
30
30
  height: `calc(100vh - ${dialogMastheadOffset} - 3rem) !important`,
31
31
  maxHeight: `calc(100vh - ${dialogMastheadOffset} - 3rem) !important`
32
32
  },
33
+ html: {
34
+ "@media (min-width: 600px)": {
35
+ height: "100%",
36
+ overflow: "hidden",
37
+ overscrollBehavior: "none"
38
+ }
39
+ },
33
40
  body: {
34
41
  ...backstageStyles.body,
35
- fontFamily: redHatFonts.text
42
+ fontFamily: redHatFonts.text,
43
+ "@media (min-width: 600px)": {
44
+ height: "100%",
45
+ overflow: "hidden",
46
+ overscrollBehavior: "none"
47
+ }
48
+ },
49
+ "#root": {
50
+ "@media (min-width: 600px)": {
51
+ height: "100%",
52
+ overflow: "hidden",
53
+ // Shows through SidebarPage's page-inset margin (clip-path well).
54
+ backgroundColor: general.pageInsetBackgroundColor ?? general.appBarBackgroundColor ?? theme.palette.background.default
55
+ }
56
+ },
57
+ "#rhdh-sidebar-layout": {
58
+ "@media (min-width: 600px)": {
59
+ backgroundColor: general.pageInsetBackgroundColor ?? general.appBarBackgroundColor ?? theme.palette.background.default
60
+ }
36
61
  },
37
62
  "h1, h2, h3, h4, h5, h6": {
38
63
  fontFamily: redHatFonts.heading
@@ -657,6 +682,10 @@ const createComponents = (themeConfig) => {
657
682
  // the global header is present in the above-sidebar position.
658
683
  "@media (min-width: 600px)": {
659
684
  "#rhdh-above-sidebar-header-container:has(*) ~ #rhdh-sidebar-layout": {
685
+ // Page inset is margin on SidebarPage; don't double-gap under the masthead.
686
+ "& [class*='BackstageSidebarPage-root']": {
687
+ marginTop: "0 !important"
688
+ },
660
689
  "& main, & [class*='MuiLinearProgress-root']": {
661
690
  marginTop: "0 !important"
662
691
  }
@@ -691,50 +720,78 @@ const createComponents = (themeConfig) => {
691
720
  // height; without a min-height here the page-inset background stops
692
721
  // early and body/html shows through (RHDHBUGS-3498).
693
722
  minHeight: "100vh",
694
- // Let BUI Container's flex: 1 grow into the remaining viewport below
695
- // PluginHeader / Header slots (those slots set flex: none).
696
- display: "flex",
697
- flexDirection: "column",
698
- // Controls the page inset as in PF6 -- only in desktop view
723
+ // All viewports: paint the content well. Page-inset chrome below is
724
+ // desktop-only; without this, mobile falls through to body
725
+ // (--bui-bg-app / page-inset) instead of mainSectionBackgroundColor.
726
+ backgroundColor: general.mainSectionBackgroundColor,
727
+ // Controls the page inset as in PF6 -- only in desktop view.
728
+ // CSS-only: SidebarPage is the sole scrollport so BUI siblings
729
+ // (PluginHeader + Containers) and classic <main> share one rounded
730
+ // well without an extra DOM wrapper (PageMainContainer).
731
+ //
732
+ // Scrollbar clipping: border-radius alone does not clip Chromium
733
+ // scrollbars. clip-path on this same scrollport does. Margin (not
734
+ // border) forms the page inset so the clipped edge is the well
735
+ // edge — the overflow/scrollbar edge — not the outer border-box.
736
+ //
737
+ // Backstage SidebarPage sets width:100%; horizontal margins would
738
+ // otherwise overflow and get clipped (right gutter disappears).
699
739
  "@media (min-width: 600px)": {
700
- backgroundColor: general.pageInsetBackgroundColor ?? general.appBarBackgroundColor,
701
- // Prevents the main content from scrolling weird
740
+ boxSizing: "border-box",
741
+ // Override Backstage `width: 100%` so margin-right is not pushed
742
+ // off-screen by the parent overflow:hidden.
743
+ width: `calc(100% - ${general.pageInset}) !important`,
744
+ marginTop: general.pageInset,
745
+ marginRight: general.pageInset,
746
+ marginBottom: general.pageInset,
747
+ marginLeft: 0,
748
+ height: `calc(100vh - 2 * ${general.pageInset})`,
749
+ maxHeight: `calc(100vh - 2 * ${general.pageInset})`,
750
+ minHeight: "0 !important",
751
+ overflowX: "hidden",
702
752
  overflowY: "auto",
703
- // Cancel out the spacing produced by the page inset border when
704
- // the sidebar is present
705
- "& nav": {
706
- "& ~ main, & ~ [class*='MuiLinearProgress-root']": {
707
- marginLeft: "0 !important"
708
- }
753
+ // `contain` still allows rubber-band overscroll, which reveals an
754
+ // empty rounded well above the content. `none` disables that.
755
+ overscrollBehavior: "none",
756
+ borderRadius: "1rem",
757
+ // Clips the scrollbar into the rounded well (border-radius cannot).
758
+ clipPath: "inset(0 round 1rem)",
759
+ // Left corners: clip-path rounds the border-box (under the drawer
760
+ // spacer), so the visible edge after paddingLeft stays square.
761
+ // Sticky masks paint the curve at the content edge. Keep
762
+ // overscroll-behavior: none so rubber-band does not show a second well.
763
+ // z-index must sit above Backstage Header (z-index: 100) or MUI
764
+ // Page headers cover the top-left mask tile.
765
+ "&::before": {
766
+ content: '""',
767
+ position: "sticky",
768
+ top: 0,
769
+ display: "block",
770
+ width: "100%",
771
+ height: `calc(100vh - 2 * ${general.pageInset})`,
772
+ marginBottom: `calc(0px - (100vh - 2 * ${general.pageInset}))`,
773
+ pointerEvents: "none",
774
+ zIndex: 101,
775
+ backgroundImage: [
776
+ `radial-gradient(circle at 100% 100%, transparent 1rem, ${general.pageInsetBackgroundColor ?? general.appBarBackgroundColor} 1.01rem)`,
777
+ `radial-gradient(circle at 0% 100%, transparent 1rem, ${general.pageInsetBackgroundColor ?? general.appBarBackgroundColor} 1.01rem)`,
778
+ `radial-gradient(circle at 100% 0%, transparent 1rem, ${general.pageInsetBackgroundColor ?? general.appBarBackgroundColor} 1.01rem)`,
779
+ `radial-gradient(circle at 0% 0%, transparent 1rem, ${general.pageInsetBackgroundColor ?? general.appBarBackgroundColor} 1.01rem)`
780
+ ].join(", "),
781
+ backgroundPosition: "top left, top right, bottom left, bottom right",
782
+ backgroundRepeat: "no-repeat",
783
+ backgroundSize: "1rem 1rem"
709
784
  },
785
+ // No nested scroll/radius on children — the shell scrolls as one.
710
786
  "& > [class*='MuiLinearProgress-root'], & > main": {
711
- // clip-path clips the scrollbar properly in Chrome compared to
712
- // border-radius. 1rem is the hardcoded border-radius of the page content.
713
- clipPath: "rect(0 100% 100% 0 round 1rem)",
714
- // Emulate the PatternFly 6 page inset using a margin
715
- margin: general.pageInset,
716
- // Fill the inset well so short pages use mainSectionBackgroundColor
717
- // (#292929) instead of leaving a pageInset (#151515) band below content.
787
+ margin: 0,
788
+ borderRadius: 0,
789
+ clipPath: "none",
718
790
  backgroundColor: general.mainSectionBackgroundColor,
719
- minHeight: `calc(100vh - 2 * ${general.pageInset})`,
720
- // Prevent overflow in the main container due to the margin
721
- maxHeight: `calc(100vh - 2 * ${general.pageInset})`
722
- },
723
- // NFS BUI entity pages wrap their content in a BUI Container inside
724
- // a classless <main>. The Container is flex: 1 1 0%, but that only
725
- // grows when main is a flex column. Keep the main content at least
726
- // viewport-height while allowing longer entity pages to grow.
727
- '& > main:has([class*="bui-Container"])': {
728
- display: "flex",
729
- flexDirection: "column",
730
- flex: "1 0 auto",
731
- minHeight: `calc(100vh - 2 * ${general.pageInset})`,
791
+ overflow: "visible",
732
792
  height: "auto",
733
- maxHeight: "none !important"
793
+ maxHeight: "none"
734
794
  },
735
- // NFS / BUI pages use Container instead of <main>. Match the content
736
- // well color (same token as BackstageContent) and rely on flex: 1
737
- // from BUI rather than 100vh so PluginHeader siblings are not overflowed.
738
795
  "& > [class*='bui-Container']:not([class*='bui-Header'])": {
739
796
  backgroundColor: general.mainSectionBackgroundColor
740
797
  },
@@ -743,30 +800,32 @@ const createComponents = (themeConfig) => {
743
800
  "&:has([class*='BackstagePage-root']) > .bui-PluginHeader": {
744
801
  display: "none"
745
802
  },
746
- // Settings and other pages render BackstageContent as <article>.
747
- // Grow it to fill the flex column so pageInset doesn't show as a band.
748
803
  '& > article, & > [class*="BackstageContent-root"]': {
749
- flex: 1,
750
804
  backgroundColor: general.mainSectionBackgroundColor
751
805
  },
752
- // Prevent TechDocs double scrollbar: the page-inset max-height puts
753
- // <main>'s scrollbar at the same position as the ToC sidebar scrollbar.
754
- // Letting <main> expand moves the scroll to the parent root instead.
806
+ // TechDocs ToC has its own scrollbar — avoid forcing a nested main well.
755
807
  "& > main:has([data-testid='techdocs-native-shadowroot'])": {
756
808
  height: "auto !important",
757
809
  maxHeight: "none !important",
758
- borderRadius: "1rem",
759
810
  marginRight: "0.5rem"
760
811
  },
761
- // The Backstage suspense is an MUI LinearProgress that is not wrapped by
762
- // a `main`. We need to give it 100vh height to fill the page for the page
763
- // inset to look right.
764
812
  "& > [class*='MuiLinearProgress-root']": {
765
- backgroundColor: general.mainSectionBackgroundColor,
766
- height: "100vh",
767
813
  "& > [class*='MuiLinearProgress-']": {
768
814
  height: "0.5rem !important"
769
815
  }
816
+ },
817
+ // DependencyGraph's IconButton is `position:absolute; right:0` but
818
+ // `.fullscreen` is not positioned. Our clip-path on SidebarPage
819
+ // becomes the absolute containing block, so the control sticks to
820
+ // the page-well corner. Re-contain it to the graph, then inset it
821
+ // slightly so the 1rem curve does not shear the icon.
822
+ "& .fullscreen": {
823
+ position: "relative"
824
+ },
825
+ '& .fullscreen > .MuiIconButton-root, & .fullscreen .MuiIconButton-root[class*="fullscreenButton"]': {
826
+ top: "0.5rem !important",
827
+ right: "0.5rem !important",
828
+ zIndex: 3
770
829
  }
771
830
  }
772
831
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createComponents.esm.js","sources":["../../src/utils/createComponents.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n type UnifiedThemeOptions,\n defaultComponentThemes as backstageComponents,\n} from '@backstage/theme';\nimport { type CSSObject } from '@mui/material/styles';\n\nimport { ThemeConfig, ThemeConfigOptions, RHDHThemePalette } from '../types';\nimport { redHatFontFaces, redHatFonts } from '../fonts';\nimport { resolveNavigationSidebarColors } from './navigationSidebarColors';\n\nexport type Component = {\n defaultProps?: unknown;\n styleOverrides?: unknown;\n variants?: unknown;\n};\n\nexport type Components = UnifiedThemeOptions['components'] & {\n BackstageHeaderTabs?: Component;\n BackstageSidebar?: Component;\n BackstageSidebarItem?: Component;\n BackstageSidebarSubmenuItem?: Component;\n BackstagePage?: Component;\n BackstageContent?: Component;\n BackstageContentHeader?: Component;\n BackstageHeader?: Component;\n BackstageItemCardHeader?: Component;\n BackstageTableToolbar?: Component;\n CatalogReactUserListPicker?: Component;\n PrivateTabIndicator?: Component;\n RHDHPageWithoutFixHeight?: Component;\n};\n\nexport const createComponents = (themeConfig: ThemeConfig): Components => {\n // Short hands to ensure that the code doesn't break if one of the properties is not defined.\n\n const options = themeConfig.options ?? ({} as ThemeConfigOptions);\n const disableRipple = options?.rippleEffect !== 'on'; // by default ripple effect is disabled\n\n const palette = themeConfig.palette ?? {};\n\n const general = palette.rhdh?.general || ({} as RHDHThemePalette['general']);\n const rhdhPrimary =\n palette.rhdh?.primary || ({} as RHDHThemePalette['primary']);\n const rhdhSecondary =\n palette.rhdh?.secondary || ({} as RHDHThemePalette['secondary']);\n\n const components: Components = {};\n if (options.components === 'backstage' || options.components === 'mui') {\n return components;\n }\n\n //\n // MUI components\n //\n components.MuiCssBaseline = {\n styleOverrides: theme => {\n const backstageOverrides =\n backstageComponents!.MuiCssBaseline!.styleOverrides!;\n const backstageStyles =\n typeof backstageOverrides === 'function'\n ? (backstageOverrides(theme) as CSSObject)\n : (backstageOverrides as CSSObject);\n\n // Sticky AppBar is z-index 1100. BUI Dialog overlay is 1000 and\n // InspectEntityDialog uses height 100vh, so the masthead covers the\n // title and close control (RHDHBUGS-3603). 64px fallback matches the\n // MUI Toolbar default when --rhdh-global-header-height is unset.\n const dialogMastheadOffset = 'var(--rhdh-global-header-height, 64px)';\n\n return {\n ...backstageStyles,\n '@font-face': redHatFontFaces,\n ':root:has(#global-header) [class*=\"bui-DialogOverlay\"]': {\n top: `${dialogMastheadOffset} !important`,\n height: `calc(100% - ${dialogMastheadOffset}) !important`,\n zIndex: 1300,\n },\n ':root:has(#global-header) [class*=\"bui-DialogOverlay\"] > [class*=\"bui-Dialog\"]':\n {\n height: `calc(100vh - ${dialogMastheadOffset} - 3rem) !important`,\n maxHeight: `calc(100vh - ${dialogMastheadOffset} - 3rem) !important`,\n },\n body: {\n ...(backstageStyles.body as CSSObject),\n fontFamily: redHatFonts.text,\n },\n 'h1, h2, h3, h4, h5, h6': {\n fontFamily: redHatFonts.heading,\n },\n 'pre, code': {\n fontFamily: redHatFonts.monospace,\n },\n \"[class*='BackstagePage-root-'] > [class*='MuiToolbar-root']\": {\n backgroundColor: theme.palette.background.paper,\n },\n };\n },\n };\n\n // MUI base\n if (options.buttons !== 'mui') {\n components.MuiTypography = {\n styleOverrides: {\n root: {\n fontFamily: redHatFonts.text,\n fontWeight: 'normal',\n letterSpacing: '0.01em',\n // This is required to override the default MUI styles\n // that set the `font-weight` to `500` for the `h1` element.\n '&.MuiTypography-h1': {\n fontWeight: 'normal',\n },\n },\n button: {\n textTransform: 'none',\n },\n },\n };\n }\n\n // MUI container\n if (options.paper !== 'mui') {\n const elevationStyle = {\n boxShadow: 'none',\n outline: `1px solid ${general.paperBorderColor}`,\n '& > hr[class|=\"MuiDivider-root\"]': {\n backgroundColor: general.paperBorderColor,\n },\n };\n const noElevationStyle = {\n boxShadow: 'none',\n outline: 'none',\n };\n\n components.MuiPaper = {\n styleOverrides: {\n root: {\n // This works for all MUI v5 components, but in MUI v4\n boxShadow: 'none',\n outline: `1px solid ${general.paperBorderColor}`,\n // Required only for MUI v5 components because a gradient `backgroundImage`\n // overrides the default background.paper color otherwise.\n backgroundImage: general.paperBackgroundImage,\n // hide the first child element which is a divider with MuiDivider-root classname in MuiPaper\n '& > hr:first-child[class|=\"MuiDivider-root\"]': {\n height: 0,\n },\n },\n rounded: {\n '& > :last-child': {\n borderBottomLeftRadius: 16,\n borderBottomRightRadius: 16,\n },\n },\n elevation0: noElevationStyle,\n },\n };\n components.MuiPopover = {\n styleOverrides: {\n paper: {\n // Box shadow from PatternFly 5 (--pf-v5-global--BoxShadow--sm)\n boxShadow: general.popoverBoxShadow,\n // `Popover` has no outline by default, but since we're adding it to the `Paper`\n // components, this ensures that the `Popover` doesn't has a shadow and an outline.\n outline: 0,\n },\n },\n };\n\n // Required for MUI v4, not MUI v5\n const elevations = Array.from(\n { length: 24 },\n (_, i) => `elevation${i + 1}`,\n ) as 'elevation1'[];\n elevations.forEach(elevation => {\n components.MuiPaper!.styleOverrides![elevation] = elevationStyle;\n });\n }\n\n // MUI AppBar\n components.MuiAppBar = {\n styleOverrides: {\n root: {\n boxShadow: 'none',\n ...(options.appBar !== 'mui' && {\n backgroundColor: general.appBarBackgroundColor,\n backgroundImage: general.appBarBackgroundImage,\n outline: 'none',\n }),\n },\n },\n };\n\n // MUI buttons\n // Don't disableRipple for MuiButtonBase as it will affect all the buttons\n // and we need to ensure that the buttons have a right touch and focus styling.\n if (options.buttons !== 'mui') {\n components.MuiButton = {\n defaultProps: {\n disableRipple,\n },\n styleOverrides: {\n root: {\n textTransform: 'none',\n borderRadius: '3px',\n fontWeight: 'normal',\n },\n contained: {\n border: '0',\n borderRadius: '99em',\n boxShadow: 'none',\n '&:hover, &:focus-visible': {\n border: '0',\n boxShadow: 'none',\n },\n '&:-webkit-any-link:focus-visible': {\n outlineOffset: '0',\n },\n },\n containedPrimary: {\n borderRadius: '99em',\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 1px ${rhdhPrimary.focusVisibleBorder}`,\n outline: `${rhdhPrimary.focusVisibleBorder} solid 1px`,\n },\n '&:disabled': {\n color: general.disabled,\n backgroundColor: general.disabledBackground,\n },\n },\n containedSecondary: {\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 1px ${rhdhSecondary.focusVisibleBorder}`,\n outline: `${rhdhSecondary.focusVisibleBorder} solid 1px`,\n },\n '&:disabled': {\n color: general.disabled,\n backgroundColor: general.disabledBackground,\n },\n },\n outlined: {\n borderRadius: '99em',\n border: `1px solid color-mix(in srgb, currentColor 50%, transparent)`,\n '&:hover, &:focus-visible': {\n backgroundColor: 'transparent',\n border: `1px solid`,\n },\n '&:disabled': {\n color: general.disabled,\n backgroudColor: general.disabledBackground,\n border: `1px solid ${general.disabledBackground}`,\n },\n },\n outlinedPrimary: {\n '&:hover, &:focus-visible': {\n backgroundColor: 'transparent',\n },\n },\n outlinedSecondary: {\n '&:hover, &:focus-visible': {\n backgroundColor: 'transparent',\n },\n },\n text: {\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${rhdhPrimary.main}`,\n outline: `${rhdhPrimary.focusVisibleBorder} solid 1px`,\n },\n },\n },\n };\n components.MuiToggleButton = {\n styleOverrides: {\n root: {\n textTransform: 'none',\n },\n },\n };\n components.MuiToggleButtonGroup = {\n styleOverrides: {\n root: {\n flexWrap: 'wrap',\n rowGap: '8px',\n maxWidth: '100%',\n },\n },\n };\n components.MuiIconButton = {\n styleOverrides: {\n root: {\n '&:disabled': {\n color: general.disabled,\n },\n },\n },\n };\n components.MuiLink = {\n styleOverrides: {\n underlineHover: {\n '&:hover, &:focus-visible': {\n textDecoration: 'none',\n },\n },\n },\n };\n }\n\n // MUI input fields\n if (options.inputs !== 'mui') {\n components.MuiInputBase = {\n styleOverrides: {\n input: {\n '&::placeholder': {\n color: general.disabled,\n opacity: 1,\n },\n },\n },\n };\n components.MuiOutlinedInput = {\n styleOverrides: {\n input: {\n '&:autofill': {\n boxShadow: `0 0 0 100px ${general.formControlBackgroundColor} inset`,\n borderRadius: 'unset',\n },\n },\n },\n };\n }\n\n if (options.checkbox !== 'mui') {\n components.MuiCheckbox = {\n defaultProps: {\n color: 'primary',\n },\n };\n }\n\n // MUI accordion\n if (options.accordions !== 'mui') {\n components.MuiAccordion = {\n styleOverrides: {\n root: {\n boxShadow: 'none',\n },\n rounded: {\n '&:first-child': {\n borderTopLeftRadius: '0',\n borderTopRightRadius: '0',\n },\n '&:last-child': {\n borderBottomLeftRadius: '0',\n borderBottomRightRadius: '0',\n },\n },\n },\n };\n }\n\n // MUI cards\n if (options.cards !== 'mui') {\n components.MuiCard = {\n styleOverrides: {\n root: {\n display: 'flex',\n flexDirection: 'column',\n backgroundColor: general.cardBackgroundColor,\n borderRadius: '16px',\n },\n },\n };\n components.MuiCardHeader = {\n styleOverrides: {\n content: {\n '& > span > nav span': {\n textTransform: 'unset',\n letterSpacing: 'normal',\n fountweight: 'normal',\n },\n },\n title: {\n fontSize: '1.125rem',\n },\n action: {\n '& > a > span > svg': {\n fontSize: '1.125rem',\n },\n '& > a[class*=\"MuiIconButton-root\"]:hover': {\n backgroundColor: 'transparent',\n },\n },\n },\n };\n components.MuiCardContent = {\n styleOverrides: {\n root: {\n flexGrow: '1',\n backgroundColor: general.cardBackgroundColor,\n '& > div > div > h2[class*=\"MuiTypography-h2-\"]': {\n textTransform: 'unset',\n opacity: '40%',\n },\n '& > div > div > div[class*=\"MuiChip-sizeSmall\"]': {\n backgroundColor: 'transparent',\n borderRadius: '8px',\n outline: `1px solid ${general.disabled}`,\n },\n '& > div[class*=\"Mui-expanded\"]': {\n margin: 'auto',\n },\n '& > div[class*=\"MuiAccordion-root\"]:before': {\n height: 0,\n },\n // Override the default line-clamp from 10 to 2 for the Software template catalog\n '& > div[class*=\"MuiGrid-root-\"][class*=\"MuiGrid-container-\"][class*=\"MuiGrid-spacing-xs-2-\"] > div[class*=\"MuiGrid-root-\"][class*=\"MuiGrid-item-\"][class*=\"MuiGrid-grid-xs-12-\"] > div[class*=\"MuiBox-root-\"]':\n {\n '-webkit-line-clamp': '2',\n },\n },\n },\n };\n }\n\n // MUI table\n if (options.tables !== 'mui') {\n components.MuiTable = {\n styleOverrides: {\n root: {\n backgroundColor: general.tableBackgroundColor,\n },\n },\n };\n components.MuiTableRow = {\n styleOverrides: {\n root: {\n backgroundColor: general.tableBackgroundColor,\n '&:not([class*=\"MuiTableRow-footer\"]):hover': {\n backgroundColor: `${general.tableRowHover} !important`,\n },\n '& > th[class*=\"MuiTableCell-head\"]': {\n backgroundColor: general.tableBackgroundColor,\n },\n },\n },\n };\n components.MuiTableCell = {\n styleOverrides: {\n root: {\n textTransform: 'none',\n '&[class*=\"BackstageTableHeader-header\"]': {\n borderTop: 'unset',\n borderBottom: `1px solid ${general.tableBorderColor}`,\n },\n },\n head: {\n textTransform: 'unset !important',\n color: `${general.tableColumnTitleColor} !important`,\n '& > span[class*=\"MuiTableSortLabel-active\"]': {\n color: `${rhdhPrimary.main} !important`,\n },\n '& > span > svg[class*=\"MuiTableSortLabel-icon\"]': {\n color: 'inherit !important',\n },\n },\n body: {\n color: general.tableTitleColor,\n '& > div[class*=\"MuiChip-sizeSmall\"]': {\n margin: '2px',\n },\n },\n },\n };\n components.MuiTableFooter = {\n styleOverrides: {\n root: {\n '& > tr > td': {\n borderBottom: 'none',\n },\n },\n },\n };\n }\n\n // MUI toolbar\n if (options.toolbars !== 'mui') {\n components.MuiToolbar = {\n styleOverrides: {\n regular: {\n '& > div > h2[class*=\"MuiTypography-h5\"]': {\n fontSize: '1.25rem',\n color: general.tableTitleColor,\n },\n },\n },\n };\n }\n\n // MUI dialogs\n if (options.dialogs !== 'mui') {\n components.MuiDialogContent = {\n styleOverrides: {\n root: {\n '& > div': {\n backgroundColor: general.cardBackgroundColor,\n },\n },\n },\n };\n }\n\n // MUI tabs\n if (options.tabs !== 'mui') {\n components.MuiTabs = {\n defaultProps: {\n indicatorColor: 'primary',\n },\n styleOverrides: {\n root: {\n borderBottom: `1px solid ${general.paperBorderColor}`,\n padding: '0 1.5rem',\n },\n vertical: {\n '& > div > div > button[class*=\"v5\"]': {\n alignItems: 'baseline',\n textAlign: 'left',\n },\n '& > div > div > button > span': {\n alignItems: 'baseline',\n textAlign: 'left',\n },\n borderBottom: `none`,\n borderLeft: `1px solid ${general.paperBorderColor}`,\n padding: 0,\n \"& span[class*='MuiTabs-indicator']\": {\n width: '3px',\n },\n },\n indicator: {\n left: 0,\n height: '3px',\n },\n },\n };\n components.MuiTab = {\n defaultProps: {\n disableRipple,\n },\n styleOverrides: {\n root: {\n fontWeight: '400',\n minWidth: 'initial !important',\n padding: '0.25em 1em',\n position: 'relative',\n textTransform: 'none',\n zIndex: 1,\n '&:before': {\n content: '\"\"',\n display: 'block',\n position: 'absolute',\n top: '0.75em',\n left: '0.5em',\n right: '0.5em',\n bottom: '0.75em',\n borderRadius: '4px',\n zIndex: -1,\n },\n '&.Mui-selected': {\n color: `${palette.text?.primary} !important`,\n },\n '&[class*=\"v5\"]': {\n lineHeight: 1.75,\n },\n '&:hover, &:focus-visible': {\n backgroundColor: 'transparent !important',\n '&:before': {\n backgroundColor: general.tabsLinkHoverBackgroundColor,\n },\n },\n '&:disabled': {\n color: general.disabled,\n '&:before': {\n backgroundColor: general.disabledBackground,\n },\n },\n },\n },\n };\n\n // MUI Breadcrumbs\n if (options.breadcrumbs !== 'mui') {\n components.MuiBreadcrumbs = {\n defaultProps: {\n separator: '>',\n },\n styleOverrides: {\n separator: {\n fontWeight: 'bold',\n },\n root: {\n fontWeight: '400',\n },\n li: {\n fontSize: '0.875rem !important',\n fontStyle: 'normal !important',\n },\n },\n };\n }\n }\n\n //\n // Backstage\n //\n if (options.tabs !== 'mui') {\n components.BackstageHeaderTabs = {\n styleOverrides: {\n tabsWrapper: {\n paddingLeft: '0',\n backgroundColor: general.mainSectionBackgroundColor,\n },\n defaultTab: {\n textTransform: 'none',\n fontSize: '0.875rem',\n fontWeight: '400',\n color: 'unset',\n padding: '0.25em 1em',\n },\n },\n };\n }\n\n if (options.sidebars !== 'mui') {\n const {\n sidebarBackgroundColor,\n sidebarItemInteractionBackgroundColor,\n navigationItemColor,\n navigationSelectedColor,\n } = resolveNavigationSidebarColors(themeConfig);\n\n components.BackstageSidebar = {\n styleOverrides: {\n drawer: {\n gap: '0.25rem',\n paddingBottom: '1.5rem',\n backgroundColor: sidebarBackgroundColor,\n alignItems: 'stretch',\n '& hr': {\n backgroundColor: general.sidebarDividerColor,\n },\n '#rhdh-sidebar-layout & a[aria-current=\"page\"], & a[aria-current=\"page\"]':\n {\n background: `${sidebarItemInteractionBackgroundColor} !important`,\n backgroundColor: `${sidebarItemInteractionBackgroundColor} !important`,\n color: `${navigationSelectedColor} !important`,\n '& .MuiTypography-root': {\n color: 'inherit !important',\n },\n },\n },\n },\n };\n components.BackstageSidebarItem = {\n styleOverrides: {\n root: {\n borderRadius: '6px',\n width: 'calc(100% - 1rem) !important',\n marginLeft: '0.5rem !important',\n textDecorationLine: 'none',\n '&:hover, &:focus-visible': {\n backgroundColor: sidebarItemInteractionBackgroundColor,\n },\n },\n label: {\n '&[class*=\"MuiTypography-subtitle2\"]': {\n fontWeight: 'normal',\n },\n },\n selected: {\n backgroundColor: `${sidebarItemInteractionBackgroundColor} !important`,\n color: `${navigationSelectedColor} !important`,\n },\n },\n };\n components.BackstageSidebarSubmenuItem = {\n styleOverrides: {\n selected: {\n background: `${sidebarItemInteractionBackgroundColor} !important`,\n color: `${navigationSelectedColor} !important`,\n },\n },\n };\n components.MuiBottomNavigation = {\n styleOverrides: {\n root: {\n backgroundColor: `${sidebarBackgroundColor} !important`,\n borderColor: `${sidebarBackgroundColor} !important`,\n },\n },\n };\n components.MuiBottomNavigationAction = {\n defaultProps: {\n disableRipple,\n },\n styleOverrides: {\n root: {\n color: `${navigationItemColor} !important`,\n backgroundColor: `${sidebarBackgroundColor} !important`,\n borderRadius: '6px',\n borderTop: '3px solid transparent !important', // default mui selected styling\n paddingTop: '6px !important', // default mui selected styling\n marginTop: '-1px !important', // default mui selected styling\n '&:hover, &:focus-visible': {\n backgroundColor: `${sidebarItemInteractionBackgroundColor} !important`,\n },\n '&.Mui-selected': {\n backgroundColor: `${sidebarItemInteractionBackgroundColor} !important`,\n color: `${navigationSelectedColor} !important`,\n },\n },\n },\n };\n components.MuiDrawer = {\n styleOverrides: {\n root: {\n // undocumented Backstage makeStyles\n \"& [class*='makeStyles-overlay-']\": {\n backgroundColor: `${sidebarBackgroundColor} !important`,\n },\n '& hr': {\n backgroundColor: general.sidebarDividerColor,\n },\n },\n },\n };\n }\n\n if (options.pages !== 'mui') {\n components.RHDHPageWithoutFixHeight = {\n styleOverrides: {\n root: {\n // Cancel out the spacing produced by the page inset border when\n // the global header is present in the above-sidebar position.\n '@media (min-width: 600px)': {\n '#rhdh-above-sidebar-header-container:has(*) ~ #rhdh-sidebar-layout':\n {\n \"& main, & [class*='MuiLinearProgress-root']\": {\n marginTop: '0 !important',\n },\n },\n },\n },\n sidebarLayout: {\n // Cancel out the spacing produced by the page inset border when\n // the global header is present in the above-main-content position.\n '@media (min-width: 600px)': {\n '#rhdh-above-main-content-header-container:has(*)': {\n \"& ~ main, & ~ [class*='MuiLinearProgress-root']\": {\n marginTop: '0 !important',\n },\n },\n },\n },\n },\n };\n components.BackstageIconLinkVertical = {\n styleOverrides: {\n label: {\n textTransform: 'none',\n },\n },\n };\n components.BackstageSidebarPage = {\n styleOverrides: {\n root: {\n // Fill the viewport so short pages don't leave a gap below the shell.\n // App root wrappers (e.g. ApplicationDrawer) can collapse to content\n // height; without a min-height here the page-inset background stops\n // early and body/html shows through (RHDHBUGS-3498).\n minHeight: '100vh',\n // Let BUI Container's flex: 1 grow into the remaining viewport below\n // PluginHeader / Header slots (those slots set flex: none).\n display: 'flex',\n flexDirection: 'column',\n // Controls the page inset as in PF6 -- only in desktop view\n '@media (min-width: 600px)': {\n backgroundColor:\n general.pageInsetBackgroundColor ?? general.appBarBackgroundColor,\n // Prevents the main content from scrolling weird\n overflowY: 'auto',\n // Cancel out the spacing produced by the page inset border when\n // the sidebar is present\n '& nav': {\n \"& ~ main, & ~ [class*='MuiLinearProgress-root']\": {\n marginLeft: '0 !important',\n },\n },\n \"& > [class*='MuiLinearProgress-root'], & > main\": {\n // clip-path clips the scrollbar properly in Chrome compared to\n // border-radius. 1rem is the hardcoded border-radius of the page content.\n clipPath: 'rect(0 100% 100% 0 round 1rem)',\n // Emulate the PatternFly 6 page inset using a margin\n margin: general.pageInset,\n // Fill the inset well so short pages use mainSectionBackgroundColor\n // (#292929) instead of leaving a pageInset (#151515) band below content.\n backgroundColor: general.mainSectionBackgroundColor,\n minHeight: `calc(100vh - 2 * ${general.pageInset})`,\n // Prevent overflow in the main container due to the margin\n maxHeight: `calc(100vh - 2 * ${general.pageInset})`,\n },\n // NFS BUI entity pages wrap their content in a BUI Container inside\n // a classless <main>. The Container is flex: 1 1 0%, but that only\n // grows when main is a flex column. Keep the main content at least\n // viewport-height while allowing longer entity pages to grow.\n '& > main:has([class*=\"bui-Container\"])': {\n display: 'flex',\n flexDirection: 'column',\n flex: '1 0 auto',\n minHeight: `calc(100vh - 2 * ${general.pageInset})`,\n height: 'auto',\n maxHeight: 'none !important',\n },\n // NFS / BUI pages use Container instead of <main>. Match the content\n // well color (same token as BackstageContent) and rely on flex: 1\n // from BUI rather than 100vh so PluginHeader siblings are not overflowed.\n \"& > [class*='bui-Container']:not([class*='bui-Header'])\": {\n backgroundColor: general.mainSectionBackgroundColor,\n },\n // When a BackstagePage-root is present, the MUI page already has\n // its own header; hide the sibling BUI PluginHeader to avoid duplication.\n \"&:has([class*='BackstagePage-root']) > .bui-PluginHeader\": {\n display: 'none',\n },\n // Settings and other pages render BackstageContent as <article>.\n // Grow it to fill the flex column so pageInset doesn't show as a band.\n '& > article, & > [class*=\"BackstageContent-root\"]': {\n flex: 1,\n backgroundColor: general.mainSectionBackgroundColor,\n },\n // Prevent TechDocs double scrollbar: the page-inset max-height puts\n // <main>'s scrollbar at the same position as the ToC sidebar scrollbar.\n // Letting <main> expand moves the scroll to the parent root instead.\n \"& > main:has([data-testid='techdocs-native-shadowroot'])\": {\n height: 'auto !important',\n maxHeight: 'none !important',\n borderRadius: '1rem',\n marginRight: '0.5rem',\n },\n // The Backstage suspense is an MUI LinearProgress that is not wrapped by\n // a `main`. We need to give it 100vh height to fill the page for the page\n // inset to look right.\n \"& > [class*='MuiLinearProgress-root']\": {\n backgroundColor: general.mainSectionBackgroundColor,\n height: '100vh',\n \"& > [class*='MuiLinearProgress-']\": {\n height: '0.5rem !important',\n },\n },\n },\n },\n },\n };\n components.BackstageContent = {\n styleOverrides: {\n root: {\n backgroundColor: general.mainSectionBackgroundColor,\n },\n },\n };\n components.BackstageContentHeader = {\n styleOverrides: {\n leftItemsBox: {\n '& > h2[class*=\"BackstageContentHeader-title-\"][class*=\"MuiTypography-h4-\"]':\n {\n fontWeight: 'bold',\n fontSize: '1.75rem',\n },\n },\n },\n };\n }\n\n if (options.headers !== 'mui') {\n components.BackstageHeader = {\n styleOverrides: {\n header: {\n boxShadow: 'none',\n },\n title: {\n '&[class*=\"MuiTypography-h1-\"]': {\n fontWeight: '500',\n fontSize: '1.5rem',\n },\n },\n subtitle: {\n '&[class*=\"BackstageHeader-subtitle-\"]': {\n fontWeight: 'normal',\n fontSize: '0.875rem',\n opacity: 1,\n },\n },\n breadcrumb: {\n marginBottom: '0.5rem',\n },\n },\n };\n components.BreadcrumbsCurrentPage = {\n styleOverrides: {\n root: {\n '& p': {\n fontStyle: 'normal',\n fontSize: 'inherit',\n },\n },\n },\n };\n components.BackstageBreadcrumbsStyledBox = {\n styleOverrides: {\n root: {\n textDecoration: 'underline !important',\n color: palette.rhdh?.primary.main,\n '&:hover': {\n color: `color-mix(in srgb, ${palette.rhdh?.primary.main} 50%, ${palette.text?.primary})`,\n },\n },\n },\n };\n components.BackstageItemCardHeader = {\n styleOverrides: {\n root: {\n // This is required to increase the css specificity, to OVERRIDE the styles from\n // BackstageItemCardHeader (https://github.com/backstage/backstage/blob/master/packages/core-components/src/layout/ItemCard/ItemCardHeader.tsx)\n // These are applied with a CSS class as well.\n\n // This variant is used when running the Storybook locally (dev mode) and in Backstage/RHDH!\n '&[class*=\"MuiBox-root-\"]': {\n color: palette.rhdh?.cards?.headerTextColor,\n backgroundColor: palette.rhdh?.cards?.headerBackgroundColor,\n backgroundImage: palette.rhdh?.cards?.headerBackgroundImage,\n borderBottom: `1px solid ${general.cardBorderColor}`,\n },\n // This variant is used when building a static Storybook (`storybook:build`)\n '&[class~=\"MuiBox-root\"]': {\n color: palette.rhdh?.cards?.headerTextColor,\n backgroundColor: palette.rhdh?.cards?.headerBackgroundColor,\n backgroundImage: palette.rhdh?.cards?.headerBackgroundImage,\n borderBottom: `1px solid ${general.cardBorderColor}`,\n },\n '& > h3[class*=\"MuiTypography-subtitle2-\"] > div > div:first-child': {\n textTransform: 'capitalize',\n },\n },\n },\n };\n }\n\n if (options.toolbars !== 'mui') {\n components.BackstageTableToolbar = {\n styleOverrides: {\n root: {\n '& h2': {\n fontWeight: 'bold',\n },\n },\n title: {\n '& > h2': {\n fontWeight: 'bold',\n },\n },\n },\n };\n }\n\n //\n // Others\n //\n components.CatalogReactUserListPicker = {\n styleOverrides: {\n root: {\n borderRadius: '4px',\n },\n title: {\n textTransform: 'none',\n },\n },\n };\n\n if (options.tabs !== 'mui') {\n components.PrivateTabIndicator = {\n styleOverrides: {\n root: {\n height: '3px',\n zIndex: 1,\n },\n vertical: {\n width: '3px',\n },\n },\n };\n }\n\n return components;\n};\n"],"names":["backstageComponents"],"mappings":";;;;AAgDO,MAAM,gBAAA,GAAmB,CAAC,WAAA,KAAyC;AAGxE,EAAA,MAAM,OAAA,GAAU,WAAA,CAAY,OAAA,IAAY,EAAC;AACzC,EAAA,MAAM,aAAA,GAAgB,SAAS,YAAA,KAAiB,IAAA;AAEhD,EAAA,MAAM,OAAA,GAAU,WAAA,CAAY,OAAA,IAAW,EAAC;AAExC,EAAA,MAAM,OAAA,GAAU,OAAA,CAAQ,IAAA,EAAM,OAAA,IAAY,EAAC;AAC3C,EAAA,MAAM,WAAA,GACJ,OAAA,CAAQ,IAAA,EAAM,OAAA,IAAY,EAAC;AAC7B,EAAA,MAAM,aAAA,GACJ,OAAA,CAAQ,IAAA,EAAM,SAAA,IAAc,EAAC;AAE/B,EAAA,MAAM,aAAyB,EAAC;AAChC,EAAA,IAAI,OAAA,CAAQ,UAAA,KAAe,WAAA,IAAe,OAAA,CAAQ,eAAe,KAAA,EAAO;AACtE,IAAA,OAAO,UAAA;AAAA,EACT;AAKA,EAAA,UAAA,CAAW,cAAA,GAAiB;AAAA,IAC1B,gBAAgB,CAAA,KAAA,KAAS;AACvB,MAAA,MAAM,kBAAA,GACJA,uBAAqB,cAAA,CAAgB,cAAA;AACvC,MAAA,MAAM,kBACJ,OAAO,kBAAA,KAAuB,UAAA,GACzB,kBAAA,CAAmB,KAAK,CAAA,GACxB,kBAAA;AAMP,MAAA,MAAM,oBAAA,GAAuB,wCAAA;AAE7B,MAAA,OAAO;AAAA,QACL,GAAG,eAAA;AAAA,QACH,YAAA,EAAc,eAAA;AAAA,QACd,wDAAA,EAA0D;AAAA,UACxD,GAAA,EAAK,GAAG,oBAAoB,CAAA,WAAA,CAAA;AA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AAAA;AACd;AACF;AACF,KACF;AAAA,EACF;AAKA,EAAA,UAAA,CAAW,0BAAA,GAA6B;AAAA,IACtC,cAAA,EAAgB;AAAA,MACd,IAAA,EAAM;AAAA,QACJ,YAAA,EAAc;AAAA,OAChB;AAAA,MACA,KAAA,EAAO;AAAA,QACL,aAAA,EAAe;AAAA;AACjB;AACF,GACF;AAEA,EAAA,IAAI,OAAA,CAAQ,SAAS,KAAA,EAAO;AAC1B,IAAA,UAAA,CAAW,mBAAA,GAAsB;AAAA,MAC/B,cAAA,EAAgB;AAAA,QACd,IAAA,EAAM;AAAA,UACJ,MAAA,EAAQ,KAAA;AAAA,UACR,MAAA,EAAQ;AAAA,SACV;AAAA,QACA,QAAA,EAAU;AAAA,UACR,KAAA,EAAO;AAAA;AACT;AACF,KACF;AAAA,EACF;AAEA,EAAA,OAAO,UAAA;AACT;;;;"}
1
+ {"version":3,"file":"createComponents.esm.js","sources":["../../src/utils/createComponents.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n type UnifiedThemeOptions,\n defaultComponentThemes as backstageComponents,\n} from '@backstage/theme';\nimport { type CSSObject } from '@mui/material/styles';\n\nimport { ThemeConfig, ThemeConfigOptions, RHDHThemePalette } from '../types';\nimport { redHatFontFaces, redHatFonts } from '../fonts';\nimport { resolveNavigationSidebarColors } from './navigationSidebarColors';\n\nexport type Component = {\n defaultProps?: unknown;\n styleOverrides?: unknown;\n variants?: unknown;\n};\n\nexport type Components = UnifiedThemeOptions['components'] & {\n BackstageHeaderTabs?: Component;\n BackstageSidebar?: Component;\n BackstageSidebarItem?: Component;\n BackstageSidebarSubmenuItem?: Component;\n BackstagePage?: Component;\n BackstageContent?: Component;\n BackstageContentHeader?: Component;\n BackstageHeader?: Component;\n BackstageItemCardHeader?: Component;\n BackstageTableToolbar?: Component;\n CatalogReactUserListPicker?: Component;\n PrivateTabIndicator?: Component;\n RHDHPageWithoutFixHeight?: Component;\n};\n\nexport const createComponents = (themeConfig: ThemeConfig): Components => {\n // Short hands to ensure that the code doesn't break if one of the properties is not defined.\n\n const options = themeConfig.options ?? ({} as ThemeConfigOptions);\n const disableRipple = options?.rippleEffect !== 'on'; // by default ripple effect is disabled\n\n const palette = themeConfig.palette ?? {};\n\n const general = palette.rhdh?.general || ({} as RHDHThemePalette['general']);\n const rhdhPrimary =\n palette.rhdh?.primary || ({} as RHDHThemePalette['primary']);\n const rhdhSecondary =\n palette.rhdh?.secondary || ({} as RHDHThemePalette['secondary']);\n\n const components: Components = {};\n if (options.components === 'backstage' || options.components === 'mui') {\n return components;\n }\n\n //\n // MUI components\n //\n components.MuiCssBaseline = {\n styleOverrides: theme => {\n const backstageOverrides =\n backstageComponents!.MuiCssBaseline!.styleOverrides!;\n const backstageStyles =\n typeof backstageOverrides === 'function'\n ? (backstageOverrides(theme) as CSSObject)\n : (backstageOverrides as CSSObject);\n\n // Sticky AppBar is z-index 1100. BUI Dialog overlay is 1000 and\n // InspectEntityDialog uses height 100vh, so the masthead covers the\n // title and close control (RHDHBUGS-3603). 64px fallback matches the\n // MUI Toolbar default when --rhdh-global-header-height is unset.\n const dialogMastheadOffset = 'var(--rhdh-global-header-height, 64px)';\n\n return {\n ...backstageStyles,\n '@font-face': redHatFontFaces,\n ':root:has(#global-header) [class*=\"bui-DialogOverlay\"]': {\n top: `${dialogMastheadOffset} !important`,\n height: `calc(100% - ${dialogMastheadOffset}) !important`,\n zIndex: 1300,\n },\n ':root:has(#global-header) [class*=\"bui-DialogOverlay\"] > [class*=\"bui-Dialog\"]':\n {\n height: `calc(100vh - ${dialogMastheadOffset} - 3rem) !important`,\n maxHeight: `calc(100vh - ${dialogMastheadOffset} - 3rem) !important`,\n },\n html: {\n '@media (min-width: 600px)': {\n height: '100%',\n overflow: 'hidden',\n overscrollBehavior: 'none',\n },\n },\n body: {\n ...(backstageStyles.body as CSSObject),\n fontFamily: redHatFonts.text,\n '@media (min-width: 600px)': {\n height: '100%',\n overflow: 'hidden',\n overscrollBehavior: 'none',\n },\n },\n '#root': {\n '@media (min-width: 600px)': {\n height: '100%',\n overflow: 'hidden',\n // Shows through SidebarPage's page-inset margin (clip-path well).\n backgroundColor:\n general.pageInsetBackgroundColor ??\n general.appBarBackgroundColor ??\n theme.palette.background.default,\n },\n },\n '#rhdh-sidebar-layout': {\n '@media (min-width: 600px)': {\n backgroundColor:\n general.pageInsetBackgroundColor ??\n general.appBarBackgroundColor ??\n theme.palette.background.default,\n },\n },\n 'h1, h2, h3, h4, h5, h6': {\n fontFamily: redHatFonts.heading,\n },\n 'pre, code': {\n fontFamily: redHatFonts.monospace,\n },\n \"[class*='BackstagePage-root-'] > [class*='MuiToolbar-root']\": {\n backgroundColor: theme.palette.background.paper,\n },\n };\n },\n };\n\n // MUI base\n if (options.buttons !== 'mui') {\n components.MuiTypography = {\n styleOverrides: {\n root: {\n fontFamily: redHatFonts.text,\n fontWeight: 'normal',\n letterSpacing: '0.01em',\n // This is required to override the default MUI styles\n // that set the `font-weight` to `500` for the `h1` element.\n '&.MuiTypography-h1': {\n fontWeight: 'normal',\n },\n },\n button: {\n textTransform: 'none',\n },\n },\n };\n }\n\n // MUI container\n if (options.paper !== 'mui') {\n const elevationStyle = {\n boxShadow: 'none',\n outline: `1px solid ${general.paperBorderColor}`,\n '& > hr[class|=\"MuiDivider-root\"]': {\n backgroundColor: general.paperBorderColor,\n },\n };\n const noElevationStyle = {\n boxShadow: 'none',\n outline: 'none',\n };\n\n components.MuiPaper = {\n styleOverrides: {\n root: {\n // This works for all MUI v5 components, but in MUI v4\n boxShadow: 'none',\n outline: `1px solid ${general.paperBorderColor}`,\n // Required only for MUI v5 components because a gradient `backgroundImage`\n // overrides the default background.paper color otherwise.\n backgroundImage: general.paperBackgroundImage,\n // hide the first child element which is a divider with MuiDivider-root classname in MuiPaper\n '& > hr:first-child[class|=\"MuiDivider-root\"]': {\n height: 0,\n },\n },\n rounded: {\n '& > :last-child': {\n borderBottomLeftRadius: 16,\n borderBottomRightRadius: 16,\n },\n },\n elevation0: noElevationStyle,\n },\n };\n components.MuiPopover = {\n styleOverrides: {\n paper: {\n // Box shadow from PatternFly 5 (--pf-v5-global--BoxShadow--sm)\n boxShadow: general.popoverBoxShadow,\n // `Popover` has no outline by default, but since we're adding it to the `Paper`\n // components, this ensures that the `Popover` doesn't has a shadow and an outline.\n outline: 0,\n },\n },\n };\n\n // Required for MUI v4, not MUI v5\n const elevations = Array.from(\n { length: 24 },\n (_, i) => `elevation${i + 1}`,\n ) as 'elevation1'[];\n elevations.forEach(elevation => {\n components.MuiPaper!.styleOverrides![elevation] = elevationStyle;\n });\n }\n\n // MUI AppBar\n components.MuiAppBar = {\n styleOverrides: {\n root: {\n boxShadow: 'none',\n ...(options.appBar !== 'mui' && {\n backgroundColor: general.appBarBackgroundColor,\n backgroundImage: general.appBarBackgroundImage,\n outline: 'none',\n }),\n },\n },\n };\n\n // MUI buttons\n // Don't disableRipple for MuiButtonBase as it will affect all the buttons\n // and we need to ensure that the buttons have a right touch and focus styling.\n if (options.buttons !== 'mui') {\n components.MuiButton = {\n defaultProps: {\n disableRipple,\n },\n styleOverrides: {\n root: {\n textTransform: 'none',\n borderRadius: '3px',\n fontWeight: 'normal',\n },\n contained: {\n border: '0',\n borderRadius: '99em',\n boxShadow: 'none',\n '&:hover, &:focus-visible': {\n border: '0',\n boxShadow: 'none',\n },\n '&:-webkit-any-link:focus-visible': {\n outlineOffset: '0',\n },\n },\n containedPrimary: {\n borderRadius: '99em',\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 1px ${rhdhPrimary.focusVisibleBorder}`,\n outline: `${rhdhPrimary.focusVisibleBorder} solid 1px`,\n },\n '&:disabled': {\n color: general.disabled,\n backgroundColor: general.disabledBackground,\n },\n },\n containedSecondary: {\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 1px ${rhdhSecondary.focusVisibleBorder}`,\n outline: `${rhdhSecondary.focusVisibleBorder} solid 1px`,\n },\n '&:disabled': {\n color: general.disabled,\n backgroundColor: general.disabledBackground,\n },\n },\n outlined: {\n borderRadius: '99em',\n border: `1px solid color-mix(in srgb, currentColor 50%, transparent)`,\n '&:hover, &:focus-visible': {\n backgroundColor: 'transparent',\n border: `1px solid`,\n },\n '&:disabled': {\n color: general.disabled,\n backgroudColor: general.disabledBackground,\n border: `1px solid ${general.disabledBackground}`,\n },\n },\n outlinedPrimary: {\n '&:hover, &:focus-visible': {\n backgroundColor: 'transparent',\n },\n },\n outlinedSecondary: {\n '&:hover, &:focus-visible': {\n backgroundColor: 'transparent',\n },\n },\n text: {\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${rhdhPrimary.main}`,\n outline: `${rhdhPrimary.focusVisibleBorder} solid 1px`,\n },\n },\n },\n };\n components.MuiToggleButton = {\n styleOverrides: {\n root: {\n textTransform: 'none',\n },\n },\n };\n components.MuiToggleButtonGroup = {\n styleOverrides: {\n root: {\n flexWrap: 'wrap',\n rowGap: '8px',\n maxWidth: '100%',\n },\n },\n };\n components.MuiIconButton = {\n styleOverrides: {\n root: {\n '&:disabled': {\n color: general.disabled,\n },\n },\n },\n };\n components.MuiLink = {\n styleOverrides: {\n underlineHover: {\n '&:hover, &:focus-visible': {\n textDecoration: 'none',\n },\n },\n },\n };\n }\n\n // MUI input fields\n if (options.inputs !== 'mui') {\n components.MuiInputBase = {\n styleOverrides: {\n input: {\n '&::placeholder': {\n color: general.disabled,\n opacity: 1,\n },\n },\n },\n };\n components.MuiOutlinedInput = {\n styleOverrides: {\n input: {\n '&:autofill': {\n boxShadow: `0 0 0 100px ${general.formControlBackgroundColor} inset`,\n borderRadius: 'unset',\n },\n },\n },\n };\n }\n\n if (options.checkbox !== 'mui') {\n components.MuiCheckbox = {\n defaultProps: {\n color: 'primary',\n },\n };\n }\n\n // MUI accordion\n if (options.accordions !== 'mui') {\n components.MuiAccordion = {\n styleOverrides: {\n root: {\n boxShadow: 'none',\n },\n rounded: {\n '&:first-child': {\n borderTopLeftRadius: '0',\n borderTopRightRadius: '0',\n },\n '&:last-child': {\n borderBottomLeftRadius: '0',\n borderBottomRightRadius: '0',\n },\n },\n },\n };\n }\n\n // MUI cards\n if (options.cards !== 'mui') {\n components.MuiCard = {\n styleOverrides: {\n root: {\n display: 'flex',\n flexDirection: 'column',\n backgroundColor: general.cardBackgroundColor,\n borderRadius: '16px',\n },\n },\n };\n components.MuiCardHeader = {\n styleOverrides: {\n content: {\n '& > span > nav span': {\n textTransform: 'unset',\n letterSpacing: 'normal',\n fountweight: 'normal',\n },\n },\n title: {\n fontSize: '1.125rem',\n },\n action: {\n '& > a > span > svg': {\n fontSize: '1.125rem',\n },\n '& > a[class*=\"MuiIconButton-root\"]:hover': {\n backgroundColor: 'transparent',\n },\n },\n },\n };\n components.MuiCardContent = {\n styleOverrides: {\n root: {\n flexGrow: '1',\n backgroundColor: general.cardBackgroundColor,\n '& > div > div > h2[class*=\"MuiTypography-h2-\"]': {\n textTransform: 'unset',\n opacity: '40%',\n },\n '& > div > div > div[class*=\"MuiChip-sizeSmall\"]': {\n backgroundColor: 'transparent',\n borderRadius: '8px',\n outline: `1px solid ${general.disabled}`,\n },\n '& > div[class*=\"Mui-expanded\"]': {\n margin: 'auto',\n },\n '& > div[class*=\"MuiAccordion-root\"]:before': {\n height: 0,\n },\n // Override the default line-clamp from 10 to 2 for the Software template catalog\n '& > div[class*=\"MuiGrid-root-\"][class*=\"MuiGrid-container-\"][class*=\"MuiGrid-spacing-xs-2-\"] > div[class*=\"MuiGrid-root-\"][class*=\"MuiGrid-item-\"][class*=\"MuiGrid-grid-xs-12-\"] > div[class*=\"MuiBox-root-\"]':\n {\n '-webkit-line-clamp': '2',\n },\n },\n },\n };\n }\n\n // MUI table\n if (options.tables !== 'mui') {\n components.MuiTable = {\n styleOverrides: {\n root: {\n backgroundColor: general.tableBackgroundColor,\n },\n },\n };\n components.MuiTableRow = {\n styleOverrides: {\n root: {\n backgroundColor: general.tableBackgroundColor,\n '&:not([class*=\"MuiTableRow-footer\"]):hover': {\n backgroundColor: `${general.tableRowHover} !important`,\n },\n '& > th[class*=\"MuiTableCell-head\"]': {\n backgroundColor: general.tableBackgroundColor,\n },\n },\n },\n };\n components.MuiTableCell = {\n styleOverrides: {\n root: {\n textTransform: 'none',\n '&[class*=\"BackstageTableHeader-header\"]': {\n borderTop: 'unset',\n borderBottom: `1px solid ${general.tableBorderColor}`,\n },\n },\n head: {\n textTransform: 'unset !important',\n color: `${general.tableColumnTitleColor} !important`,\n '& > span[class*=\"MuiTableSortLabel-active\"]': {\n color: `${rhdhPrimary.main} !important`,\n },\n '& > span > svg[class*=\"MuiTableSortLabel-icon\"]': {\n color: 'inherit !important',\n },\n },\n body: {\n color: general.tableTitleColor,\n '& > div[class*=\"MuiChip-sizeSmall\"]': {\n margin: '2px',\n },\n },\n },\n };\n components.MuiTableFooter = {\n styleOverrides: {\n root: {\n '& > tr > td': {\n borderBottom: 'none',\n },\n },\n },\n };\n }\n\n // MUI toolbar\n if (options.toolbars !== 'mui') {\n components.MuiToolbar = {\n styleOverrides: {\n regular: {\n '& > div > h2[class*=\"MuiTypography-h5\"]': {\n fontSize: '1.25rem',\n color: general.tableTitleColor,\n },\n },\n },\n };\n }\n\n // MUI dialogs\n if (options.dialogs !== 'mui') {\n components.MuiDialogContent = {\n styleOverrides: {\n root: {\n '& > div': {\n backgroundColor: general.cardBackgroundColor,\n },\n },\n },\n };\n }\n\n // MUI tabs\n if (options.tabs !== 'mui') {\n components.MuiTabs = {\n defaultProps: {\n indicatorColor: 'primary',\n },\n styleOverrides: {\n root: {\n borderBottom: `1px solid ${general.paperBorderColor}`,\n padding: '0 1.5rem',\n },\n vertical: {\n '& > div > div > button[class*=\"v5\"]': {\n alignItems: 'baseline',\n textAlign: 'left',\n },\n '& > div > div > button > span': {\n alignItems: 'baseline',\n textAlign: 'left',\n },\n borderBottom: `none`,\n borderLeft: `1px solid ${general.paperBorderColor}`,\n padding: 0,\n \"& span[class*='MuiTabs-indicator']\": {\n width: '3px',\n },\n },\n indicator: {\n left: 0,\n height: '3px',\n },\n },\n };\n components.MuiTab = {\n defaultProps: {\n disableRipple,\n },\n styleOverrides: {\n root: {\n fontWeight: '400',\n minWidth: 'initial !important',\n padding: '0.25em 1em',\n position: 'relative',\n textTransform: 'none',\n zIndex: 1,\n '&:before': {\n content: '\"\"',\n display: 'block',\n position: 'absolute',\n top: '0.75em',\n left: '0.5em',\n right: '0.5em',\n bottom: '0.75em',\n borderRadius: '4px',\n zIndex: -1,\n },\n '&.Mui-selected': {\n color: `${palette.text?.primary} !important`,\n },\n '&[class*=\"v5\"]': {\n lineHeight: 1.75,\n },\n '&:hover, &:focus-visible': {\n backgroundColor: 'transparent !important',\n '&:before': {\n backgroundColor: general.tabsLinkHoverBackgroundColor,\n },\n },\n '&:disabled': {\n color: general.disabled,\n '&:before': {\n backgroundColor: general.disabledBackground,\n },\n },\n },\n },\n };\n\n // MUI Breadcrumbs\n if (options.breadcrumbs !== 'mui') {\n components.MuiBreadcrumbs = {\n defaultProps: {\n separator: '>',\n },\n styleOverrides: {\n separator: {\n fontWeight: 'bold',\n },\n root: {\n fontWeight: '400',\n },\n li: {\n fontSize: '0.875rem !important',\n fontStyle: 'normal !important',\n },\n },\n };\n }\n }\n\n //\n // Backstage\n //\n if (options.tabs !== 'mui') {\n components.BackstageHeaderTabs = {\n styleOverrides: {\n tabsWrapper: {\n paddingLeft: '0',\n backgroundColor: general.mainSectionBackgroundColor,\n },\n defaultTab: {\n textTransform: 'none',\n fontSize: '0.875rem',\n fontWeight: '400',\n color: 'unset',\n padding: '0.25em 1em',\n },\n },\n };\n }\n\n if (options.sidebars !== 'mui') {\n const {\n sidebarBackgroundColor,\n sidebarItemInteractionBackgroundColor,\n navigationItemColor,\n navigationSelectedColor,\n } = resolveNavigationSidebarColors(themeConfig);\n\n components.BackstageSidebar = {\n styleOverrides: {\n drawer: {\n gap: '0.25rem',\n paddingBottom: '1.5rem',\n backgroundColor: sidebarBackgroundColor,\n alignItems: 'stretch',\n '& hr': {\n backgroundColor: general.sidebarDividerColor,\n },\n '#rhdh-sidebar-layout & a[aria-current=\"page\"], & a[aria-current=\"page\"]':\n {\n background: `${sidebarItemInteractionBackgroundColor} !important`,\n backgroundColor: `${sidebarItemInteractionBackgroundColor} !important`,\n color: `${navigationSelectedColor} !important`,\n '& .MuiTypography-root': {\n color: 'inherit !important',\n },\n },\n },\n },\n };\n components.BackstageSidebarItem = {\n styleOverrides: {\n root: {\n borderRadius: '6px',\n width: 'calc(100% - 1rem) !important',\n marginLeft: '0.5rem !important',\n textDecorationLine: 'none',\n '&:hover, &:focus-visible': {\n backgroundColor: sidebarItemInteractionBackgroundColor,\n },\n },\n label: {\n '&[class*=\"MuiTypography-subtitle2\"]': {\n fontWeight: 'normal',\n },\n },\n selected: {\n backgroundColor: `${sidebarItemInteractionBackgroundColor} !important`,\n color: `${navigationSelectedColor} !important`,\n },\n },\n };\n components.BackstageSidebarSubmenuItem = {\n styleOverrides: {\n selected: {\n background: `${sidebarItemInteractionBackgroundColor} !important`,\n color: `${navigationSelectedColor} !important`,\n },\n },\n };\n components.MuiBottomNavigation = {\n styleOverrides: {\n root: {\n backgroundColor: `${sidebarBackgroundColor} !important`,\n borderColor: `${sidebarBackgroundColor} !important`,\n },\n },\n };\n components.MuiBottomNavigationAction = {\n defaultProps: {\n disableRipple,\n },\n styleOverrides: {\n root: {\n color: `${navigationItemColor} !important`,\n backgroundColor: `${sidebarBackgroundColor} !important`,\n borderRadius: '6px',\n borderTop: '3px solid transparent !important', // default mui selected styling\n paddingTop: '6px !important', // default mui selected styling\n marginTop: '-1px !important', // default mui selected styling\n '&:hover, &:focus-visible': {\n backgroundColor: `${sidebarItemInteractionBackgroundColor} !important`,\n },\n '&.Mui-selected': {\n backgroundColor: `${sidebarItemInteractionBackgroundColor} !important`,\n color: `${navigationSelectedColor} !important`,\n },\n },\n },\n };\n components.MuiDrawer = {\n styleOverrides: {\n root: {\n // undocumented Backstage makeStyles\n \"& [class*='makeStyles-overlay-']\": {\n backgroundColor: `${sidebarBackgroundColor} !important`,\n },\n '& hr': {\n backgroundColor: general.sidebarDividerColor,\n },\n },\n },\n };\n }\n\n if (options.pages !== 'mui') {\n components.RHDHPageWithoutFixHeight = {\n styleOverrides: {\n root: {\n // Cancel out the spacing produced by the page inset border when\n // the global header is present in the above-sidebar position.\n '@media (min-width: 600px)': {\n '#rhdh-above-sidebar-header-container:has(*) ~ #rhdh-sidebar-layout':\n {\n // Page inset is margin on SidebarPage; don't double-gap under the masthead.\n \"& [class*='BackstageSidebarPage-root']\": {\n marginTop: '0 !important',\n },\n \"& main, & [class*='MuiLinearProgress-root']\": {\n marginTop: '0 !important',\n },\n },\n },\n },\n sidebarLayout: {\n // Cancel out the spacing produced by the page inset border when\n // the global header is present in the above-main-content position.\n '@media (min-width: 600px)': {\n '#rhdh-above-main-content-header-container:has(*)': {\n \"& ~ main, & ~ [class*='MuiLinearProgress-root']\": {\n marginTop: '0 !important',\n },\n },\n },\n },\n },\n };\n components.BackstageIconLinkVertical = {\n styleOverrides: {\n label: {\n textTransform: 'none',\n },\n },\n };\n components.BackstageSidebarPage = {\n styleOverrides: {\n root: {\n // Fill the viewport so short pages don't leave a gap below the shell.\n // App root wrappers (e.g. ApplicationDrawer) can collapse to content\n // height; without a min-height here the page-inset background stops\n // early and body/html shows through (RHDHBUGS-3498).\n minHeight: '100vh',\n // All viewports: paint the content well. Page-inset chrome below is\n // desktop-only; without this, mobile falls through to body\n // (--bui-bg-app / page-inset) instead of mainSectionBackgroundColor.\n backgroundColor: general.mainSectionBackgroundColor,\n // Controls the page inset as in PF6 -- only in desktop view.\n // CSS-only: SidebarPage is the sole scrollport so BUI siblings\n // (PluginHeader + Containers) and classic <main> share one rounded\n // well without an extra DOM wrapper (PageMainContainer).\n //\n // Scrollbar clipping: border-radius alone does not clip Chromium\n // scrollbars. clip-path on this same scrollport does. Margin (not\n // border) forms the page inset so the clipped edge is the well\n // edge — the overflow/scrollbar edge — not the outer border-box.\n //\n // Backstage SidebarPage sets width:100%; horizontal margins would\n // otherwise overflow and get clipped (right gutter disappears).\n '@media (min-width: 600px)': {\n boxSizing: 'border-box',\n // Override Backstage `width: 100%` so margin-right is not pushed\n // off-screen by the parent overflow:hidden.\n width: `calc(100% - ${general.pageInset}) !important`,\n marginTop: general.pageInset,\n marginRight: general.pageInset,\n marginBottom: general.pageInset,\n marginLeft: 0,\n height: `calc(100vh - 2 * ${general.pageInset})`,\n maxHeight: `calc(100vh - 2 * ${general.pageInset})`,\n minHeight: '0 !important',\n overflowX: 'hidden',\n overflowY: 'auto',\n // `contain` still allows rubber-band overscroll, which reveals an\n // empty rounded well above the content. `none` disables that.\n overscrollBehavior: 'none',\n borderRadius: '1rem',\n // Clips the scrollbar into the rounded well (border-radius cannot).\n clipPath: 'inset(0 round 1rem)',\n // Left corners: clip-path rounds the border-box (under the drawer\n // spacer), so the visible edge after paddingLeft stays square.\n // Sticky masks paint the curve at the content edge. Keep\n // overscroll-behavior: none so rubber-band does not show a second well.\n // z-index must sit above Backstage Header (z-index: 100) or MUI\n // Page headers cover the top-left mask tile.\n '&::before': {\n content: '\"\"',\n position: 'sticky',\n top: 0,\n display: 'block',\n width: '100%',\n height: `calc(100vh - 2 * ${general.pageInset})`,\n marginBottom: `calc(0px - (100vh - 2 * ${general.pageInset}))`,\n pointerEvents: 'none',\n zIndex: 101,\n backgroundImage: [\n `radial-gradient(circle at 100% 100%, transparent 1rem, ${\n general.pageInsetBackgroundColor ??\n general.appBarBackgroundColor\n } 1.01rem)`,\n `radial-gradient(circle at 0% 100%, transparent 1rem, ${\n general.pageInsetBackgroundColor ??\n general.appBarBackgroundColor\n } 1.01rem)`,\n `radial-gradient(circle at 100% 0%, transparent 1rem, ${\n general.pageInsetBackgroundColor ??\n general.appBarBackgroundColor\n } 1.01rem)`,\n `radial-gradient(circle at 0% 0%, transparent 1rem, ${\n general.pageInsetBackgroundColor ??\n general.appBarBackgroundColor\n } 1.01rem)`,\n ].join(', '),\n backgroundPosition:\n 'top left, top right, bottom left, bottom right',\n backgroundRepeat: 'no-repeat',\n backgroundSize: '1rem 1rem',\n },\n // No nested scroll/radius on children — the shell scrolls as one.\n \"& > [class*='MuiLinearProgress-root'], & > main\": {\n margin: 0,\n borderRadius: 0,\n clipPath: 'none',\n backgroundColor: general.mainSectionBackgroundColor,\n overflow: 'visible',\n height: 'auto',\n maxHeight: 'none',\n },\n \"& > [class*='bui-Container']:not([class*='bui-Header'])\": {\n backgroundColor: general.mainSectionBackgroundColor,\n },\n // When a BackstagePage-root is present, the MUI page already has\n // its own header; hide the sibling BUI PluginHeader to avoid duplication.\n \"&:has([class*='BackstagePage-root']) > .bui-PluginHeader\": {\n display: 'none',\n },\n '& > article, & > [class*=\"BackstageContent-root\"]': {\n backgroundColor: general.mainSectionBackgroundColor,\n },\n // TechDocs ToC has its own scrollbar — avoid forcing a nested main well.\n \"& > main:has([data-testid='techdocs-native-shadowroot'])\": {\n height: 'auto !important',\n maxHeight: 'none !important',\n marginRight: '0.5rem',\n },\n \"& > [class*='MuiLinearProgress-root']\": {\n \"& > [class*='MuiLinearProgress-']\": {\n height: '0.5rem !important',\n },\n },\n // DependencyGraph's IconButton is `position:absolute; right:0` but\n // `.fullscreen` is not positioned. Our clip-path on SidebarPage\n // becomes the absolute containing block, so the control sticks to\n // the page-well corner. Re-contain it to the graph, then inset it\n // slightly so the 1rem curve does not shear the icon.\n '& .fullscreen': {\n position: 'relative',\n },\n '& .fullscreen > .MuiIconButton-root, & .fullscreen .MuiIconButton-root[class*=\"fullscreenButton\"]':\n {\n top: '0.5rem !important',\n right: '0.5rem !important',\n zIndex: 3,\n },\n },\n },\n },\n };\n components.BackstageContent = {\n styleOverrides: {\n root: {\n backgroundColor: general.mainSectionBackgroundColor,\n },\n },\n };\n components.BackstageContentHeader = {\n styleOverrides: {\n leftItemsBox: {\n '& > h2[class*=\"BackstageContentHeader-title-\"][class*=\"MuiTypography-h4-\"]':\n {\n fontWeight: 'bold',\n fontSize: '1.75rem',\n },\n },\n },\n };\n }\n\n if (options.headers !== 'mui') {\n components.BackstageHeader = {\n styleOverrides: {\n header: {\n boxShadow: 'none',\n },\n title: {\n '&[class*=\"MuiTypography-h1-\"]': {\n fontWeight: '500',\n fontSize: '1.5rem',\n },\n },\n subtitle: {\n '&[class*=\"BackstageHeader-subtitle-\"]': {\n fontWeight: 'normal',\n fontSize: '0.875rem',\n opacity: 1,\n },\n },\n breadcrumb: {\n marginBottom: '0.5rem',\n },\n },\n };\n components.BreadcrumbsCurrentPage = {\n styleOverrides: {\n root: {\n '& p': {\n fontStyle: 'normal',\n fontSize: 'inherit',\n },\n },\n },\n };\n components.BackstageBreadcrumbsStyledBox = {\n styleOverrides: {\n root: {\n textDecoration: 'underline !important',\n color: palette.rhdh?.primary.main,\n '&:hover': {\n color: `color-mix(in srgb, ${palette.rhdh?.primary.main} 50%, ${palette.text?.primary})`,\n },\n },\n },\n };\n components.BackstageItemCardHeader = {\n styleOverrides: {\n root: {\n // This is required to increase the css specificity, to OVERRIDE the styles from\n // BackstageItemCardHeader (https://github.com/backstage/backstage/blob/master/packages/core-components/src/layout/ItemCard/ItemCardHeader.tsx)\n // These are applied with a CSS class as well.\n\n // This variant is used when running the Storybook locally (dev mode) and in Backstage/RHDH!\n '&[class*=\"MuiBox-root-\"]': {\n color: palette.rhdh?.cards?.headerTextColor,\n backgroundColor: palette.rhdh?.cards?.headerBackgroundColor,\n backgroundImage: palette.rhdh?.cards?.headerBackgroundImage,\n borderBottom: `1px solid ${general.cardBorderColor}`,\n },\n // This variant is used when building a static Storybook (`storybook:build`)\n '&[class~=\"MuiBox-root\"]': {\n color: palette.rhdh?.cards?.headerTextColor,\n backgroundColor: palette.rhdh?.cards?.headerBackgroundColor,\n backgroundImage: palette.rhdh?.cards?.headerBackgroundImage,\n borderBottom: `1px solid ${general.cardBorderColor}`,\n },\n '& > h3[class*=\"MuiTypography-subtitle2-\"] > div > div:first-child': {\n textTransform: 'capitalize',\n },\n },\n },\n };\n }\n\n if (options.toolbars !== 'mui') {\n components.BackstageTableToolbar = {\n styleOverrides: {\n root: {\n '& h2': {\n fontWeight: 'bold',\n },\n },\n title: {\n '& > h2': {\n fontWeight: 'bold',\n },\n },\n },\n };\n }\n\n //\n // Others\n //\n components.CatalogReactUserListPicker = {\n styleOverrides: {\n root: {\n borderRadius: '4px',\n },\n title: {\n textTransform: 'none',\n },\n },\n };\n\n if (options.tabs !== 'mui') {\n components.PrivateTabIndicator = {\n styleOverrides: {\n root: {\n height: '3px',\n zIndex: 1,\n },\n vertical: {\n width: '3px',\n },\n },\n };\n }\n\n return components;\n};\n"],"names":["backstageComponents"],"mappings":";;;;AAgDO,MAAM,gBAAA,GAAmB,CAAC,WAAA,KAAyC;AAGxE,EAAA,MAAM,OAAA,GAAU,WAAA,CAAY,OAAA,IAAY,EAAC;AACzC,EAAA,MAAM,aAAA,GAAgB,SAAS,YAAA,KAAiB,IAAA;AAEhD,EAAA,MAAM,OAAA,GAAU,WAAA,CAAY,OAAA,IAAW,EAAC;AAExC,EAAA,MAAM,OAAA,GAAU,OAAA,CAAQ,IAAA,EAAM,OAAA,IAAY,EAAC;AAC3C,EAAA,MAAM,WAAA,GACJ,OAAA,CAAQ,IAAA,EAAM,OAAA,IAAY,EAAC;AAC7B,EAAA,MAAM,aAAA,GACJ,OAAA,CAAQ,IAAA,EAAM,SAAA,IAAc,EAAC;AAE/B,EAAA,MAAM,aAAyB,EAAC;AAChC,EAAA,IAAI,OAAA,CAAQ,UAAA,KAAe,WAAA,IAAe,OAAA,CAAQ,eAAe,KAAA,EAAO;AACtE,IAAA,OAAO,UAAA;AAAA,EACT;AAK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AA,IAAI,OAAA,CAAQ,SAAS,KAAA,EAAO;AAC1B,IAAA,UAAA,CAAW,mBAAA,GAAsB;AAAA,MAC/B,cAAA,EAAgB;AAAA,QACd,IAAA,EAAM;AAAA,UACJ,MAAA,EAAQ,KAAA;AAAA,UACR,MAAA,EAAQ;AAAA,SACV;AAAA,QACA,QAAA,EAAU;AAAA,UACR,KAAA,EAAO;AAAA;AACT;AACF,KACF;AAAA,EACF;AAEA,EAAA,OAAO,UAAA;AACT;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@red-hat-developer-hub/backstage-plugin-theme",
3
- "version": "1.2.2",
3
+ "version": "1.4.0",
4
4
  "description": "Red Hat Developer Hub Theme",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",