@red-hat-developer-hub/backstage-plugin-theme 1.3.0 → 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 +6 -0
- package/dist/assets/bui/component-overrides.css.esm.js +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.esm.js +0 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/legacy.d.ts +1 -1
- package/dist/legacy.esm.js +0 -1
- package/dist/legacy.esm.js.map +1 -1
- package/dist/types/{PageMainContainer.d-DwNQl41_.d.ts → LogoIcon.d-CTRMVGhF.d.ts} +1 -4
- package/dist/utils/createComponents.esm.js +94 -69
- package/dist/utils/createComponents.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/PageMainContainer.esm.js +0 -18
- package/dist/components/PageMainContainer.esm.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 1.3.0
|
|
4
10
|
|
|
5
11
|
### Minor 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 = "/*\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 .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 * Prefer a PatternFly-style main container (`RHDHPageMainContainer` /\n * `#rhdh-page-main-container`) beside the sidebar — see createComponents.ts.\n * Do not clip/round BackstageSidebarPage-root itself; that fights scrolling\n * when Header + Containers are loose siblings of nav (BUI pages).\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";
|
|
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
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
2
|
-
export { L as LogoFull, a as LogoIcon
|
|
2
|
+
export { L as LogoFull, a as LogoIcon } from './types/LogoIcon.d-CTRMVGhF.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
|
-
import 'react';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* RHDH themes as NFS extensions (ThemeBlueprint).
|
package/dist/index.esm.js
CHANGED
|
@@ -6,7 +6,6 @@ import './assets/bui/tokens.css.esm.js';
|
|
|
6
6
|
import './assets/bui/component-overrides.css.esm.js';
|
|
7
7
|
export { LogoFull } from './components/LogoFull.esm.js';
|
|
8
8
|
export { LogoIcon } from './components/LogoIcon.esm.js';
|
|
9
|
-
export { PageMainContainer } from './components/PageMainContainer.esm.js';
|
|
10
9
|
import 'react/jsx-runtime';
|
|
11
10
|
import 'react';
|
|
12
11
|
import '@backstage/core-plugin-api';
|
package/dist/index.esm.js.map
CHANGED
|
@@ -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 { 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
|
|
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;;;;"}
|
package/dist/legacy.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { UnifiedThemeOptions } from '@backstage/theme';
|
|
|
4
4
|
import * as _mui_material from '@mui/material';
|
|
5
5
|
import * as react from 'react';
|
|
6
6
|
import { AppTheme } from '@backstage/core-plugin-api';
|
|
7
|
-
export { L as LogoFull, a as LogoIcon
|
|
7
|
+
export { L as LogoFull, a as LogoIcon } from './types/LogoIcon.d-CTRMVGhF.js';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
type BackstageThemePalette = UnifiedThemeOptions['palette'];
|
package/dist/legacy.esm.js
CHANGED
|
@@ -7,7 +7,6 @@ export { useThemeOptions } from './hooks/useThemeOptions.esm.js';
|
|
|
7
7
|
export { darkThemeProvider, getAllThemes, getThemes, lightThemeProvider, useAllThemes, useLoaderTheme, useThemes } from './themes.esm.js';
|
|
8
8
|
export { LogoFull } from './components/LogoFull.esm.js';
|
|
9
9
|
export { LogoIcon } from './components/LogoIcon.esm.js';
|
|
10
|
-
export { PageMainContainer } from './components/PageMainContainer.esm.js';
|
|
11
10
|
import 'react/jsx-runtime';
|
|
12
11
|
import 'react';
|
|
13
12
|
import '@backstage/core-plugin-api';
|
package/dist/legacy.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacy.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"legacy.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
2
|
|
|
4
3
|
declare const LogoFull: (props: React.ComponentProps<"svg">) => react_jsx_runtime.JSX.Element;
|
|
5
4
|
|
|
6
5
|
declare const LogoIcon: (props: React.ComponentProps<"svg">) => react_jsx_runtime.JSX.Element;
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export { LogoFull as L, PageMainContainer as P, LogoIcon as a };
|
|
7
|
+
export { LogoFull as L, LogoIcon as a };
|
|
@@ -49,7 +49,14 @@ const createComponents = (themeConfig) => {
|
|
|
49
49
|
"#root": {
|
|
50
50
|
"@media (min-width: 600px)": {
|
|
51
51
|
height: "100%",
|
|
52
|
-
overflow: "hidden"
|
|
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
|
|
53
60
|
}
|
|
54
61
|
},
|
|
55
62
|
"h1, h2, h3, h4, h5, h6": {
|
|
@@ -675,6 +682,10 @@ const createComponents = (themeConfig) => {
|
|
|
675
682
|
// the global header is present in the above-sidebar position.
|
|
676
683
|
"@media (min-width: 600px)": {
|
|
677
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
|
+
},
|
|
678
689
|
"& main, & [class*='MuiLinearProgress-root']": {
|
|
679
690
|
marginTop: "0 !important"
|
|
680
691
|
}
|
|
@@ -709,103 +720,117 @@ const createComponents = (themeConfig) => {
|
|
|
709
720
|
// height; without a min-height here the page-inset background stops
|
|
710
721
|
// early and body/html shows through (RHDHBUGS-3498).
|
|
711
722
|
minHeight: "100vh",
|
|
712
|
-
//
|
|
713
|
-
//
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
// 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).
|
|
717
739
|
"@media (min-width: 600px)": {
|
|
718
|
-
backgroundColor: general.pageInsetBackgroundColor ?? general.appBarBackgroundColor,
|
|
719
|
-
// Fixed viewport shell. Inset uses padding (border-box) so in-flow
|
|
720
|
-
// children still respect Backstage's paddingLeft for the sidebar.
|
|
721
|
-
// Do not position the main well absolutely — that ignores drawer padding.
|
|
722
740
|
boxSizing: "border-box",
|
|
723
|
-
|
|
724
|
-
|
|
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})`,
|
|
725
750
|
minHeight: "0 !important",
|
|
726
|
-
|
|
751
|
+
overflowX: "hidden",
|
|
752
|
+
overflowY: "auto",
|
|
753
|
+
// `contain` still allows rubber-band overscroll, which reveals an
|
|
754
|
+
// empty rounded well above the content. `none` disables that.
|
|
727
755
|
overscrollBehavior: "none",
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
//
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
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"
|
|
784
|
+
},
|
|
785
|
+
// No nested scroll/radius on children — the shell scrolls as one.
|
|
786
|
+
"& > [class*='MuiLinearProgress-root'], & > main": {
|
|
736
787
|
margin: 0,
|
|
737
|
-
|
|
738
|
-
|
|
788
|
+
borderRadius: 0,
|
|
789
|
+
clipPath: "none",
|
|
739
790
|
backgroundColor: general.mainSectionBackgroundColor,
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
alignSelf: "stretch",
|
|
744
|
-
width: "100%",
|
|
745
|
-
// Scroll only inside this well; contain so wheel/trackpad does not
|
|
746
|
-
// chain to the document once you hit the top/bottom.
|
|
747
|
-
overflowY: "auto",
|
|
748
|
-
overscrollBehaviorY: "contain",
|
|
749
|
-
display: "flex",
|
|
750
|
-
flexDirection: "column"
|
|
791
|
+
overflow: "visible",
|
|
792
|
+
height: "auto",
|
|
793
|
+
maxHeight: "none"
|
|
751
794
|
},
|
|
752
|
-
|
|
753
|
-
// well color (same token as BackstageContent) and rely on flex: 1
|
|
754
|
-
// from BUI rather than 100vh so PluginHeader siblings are not overflowed.
|
|
755
|
-
"& > [class*='bui-Container']:not([class*='bui-Header']), & > [class*='RHDHPageMainContainer'] [class*='bui-Container']:not([class*='bui-Header'])": {
|
|
795
|
+
"& > [class*='bui-Container']:not([class*='bui-Header'])": {
|
|
756
796
|
backgroundColor: general.mainSectionBackgroundColor
|
|
757
797
|
},
|
|
758
798
|
// When a BackstagePage-root is present, the MUI page already has
|
|
759
799
|
// its own header; hide the sibling BUI PluginHeader to avoid duplication.
|
|
760
|
-
"&:has([class*='BackstagePage-root']) > .bui-PluginHeader
|
|
800
|
+
"&:has([class*='BackstagePage-root']) > .bui-PluginHeader": {
|
|
761
801
|
display: "none"
|
|
762
802
|
},
|
|
763
|
-
|
|
764
|
-
// Grow it to fill the flex column so pageInset doesn't show as a band.
|
|
765
|
-
'& > article, & > [class*="BackstageContent-root"], & > [class*="RHDHPageMainContainer"] > article, & > [class*="RHDHPageMainContainer"] > [class*="BackstageContent-root"]': {
|
|
766
|
-
flex: 1,
|
|
803
|
+
'& > article, & > [class*="BackstageContent-root"]': {
|
|
767
804
|
backgroundColor: general.mainSectionBackgroundColor
|
|
768
805
|
},
|
|
769
|
-
//
|
|
770
|
-
// shell scroll instead (ToC has its own scrollbar).
|
|
771
|
-
"&:has(> main:has([data-testid='techdocs-native-shadowroot']))": {
|
|
772
|
-
overflowY: "auto",
|
|
773
|
-
overscrollBehaviorY: "contain"
|
|
774
|
-
},
|
|
806
|
+
// TechDocs ToC has its own scrollbar — avoid forcing a nested main well.
|
|
775
807
|
"& > main:has([data-testid='techdocs-native-shadowroot'])": {
|
|
776
808
|
height: "auto !important",
|
|
777
809
|
maxHeight: "none !important",
|
|
778
|
-
flex: "0 0 auto",
|
|
779
|
-
borderRadius: "1rem",
|
|
780
810
|
marginRight: "0.5rem"
|
|
781
811
|
},
|
|
782
|
-
// The Backstage suspense is an MUI LinearProgress that is not wrapped by
|
|
783
|
-
// a `main`. Fill the padded shell like the main well.
|
|
784
812
|
"& > [class*='MuiLinearProgress-root']": {
|
|
785
|
-
backgroundColor: general.mainSectionBackgroundColor,
|
|
786
813
|
"& > [class*='MuiLinearProgress-']": {
|
|
787
814
|
height: "0.5rem !important"
|
|
788
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
|
|
789
829
|
}
|
|
790
830
|
}
|
|
791
831
|
}
|
|
792
832
|
}
|
|
793
833
|
};
|
|
794
|
-
components.RHDHPageMainContainer = {
|
|
795
|
-
styleOverrides: {
|
|
796
|
-
root: {
|
|
797
|
-
"@media (min-width: 600px)": {
|
|
798
|
-
// Inherits height/radius/overflow via BackstageSidebarPage
|
|
799
|
-
// `> RHDHPageMainContainer` selectors; flex column stacks BUI chrome.
|
|
800
|
-
display: "flex",
|
|
801
|
-
flexDirection: "column",
|
|
802
|
-
flex: "1 1 auto",
|
|
803
|
-
minHeight: 0,
|
|
804
|
-
minWidth: 0
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
};
|
|
809
834
|
components.BackstageContent = {
|
|
810
835
|
styleOverrides: {
|
|
811
836
|
root: {
|
|
@@ -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 RHDHPageMainContainer?: 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 },\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 // Fixed viewport shell. Inset uses padding (border-box) so in-flow\n // children still respect Backstage's paddingLeft for the sidebar.\n // Do not position the main well absolutely — that ignores drawer padding.\n boxSizing: 'border-box',\n height: '100vh',\n maxHeight: '100vh',\n minHeight: '0 !important',\n overflow: 'hidden',\n overscrollBehavior: 'none',\n paddingTop: general.pageInset,\n paddingRight: general.pageInset,\n paddingBottom: general.pageInset,\n // PatternFly `.pf-v6-c-page__main-container` equivalent + classic <main>\n \"& > [class*='MuiLinearProgress-root'], & > main, & > [class*='RHDHPageMainContainer']\":\n {\n // Match PF border-radius; clip-path also rounds the scrollbar track.\n borderRadius: '1rem',\n clipPath: 'rect(0 100% 100% 0 round 1rem)',\n margin: 0,\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 // Flex-fill the padded content box; minHeight:0 enables internal scroll.\n flex: '1 1 auto',\n minHeight: 0,\n alignSelf: 'stretch',\n width: '100%',\n // Scroll only inside this well; contain so wheel/trackpad does not\n // chain to the document once you hit the top/bottom.\n overflowY: 'auto',\n overscrollBehaviorY: 'contain',\n display: 'flex',\n flexDirection: 'column',\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']), & > [class*='RHDHPageMainContainer'] [class*='bui-Container']:not([class*='bui-Header'])\":\n {\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, &:has([class*='BackstagePage-root']) > [class*='RHDHPageMainContainer'] > .bui-PluginHeader\":\n {\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\"], & > [class*=\"RHDHPageMainContainer\"] > article, & > [class*=\"RHDHPageMainContainer\"] > [class*=\"BackstageContent-root\"]':\n {\n flex: 1,\n backgroundColor: general.mainSectionBackgroundColor,\n },\n // Prevent TechDocs double scrollbar: unlock the main well and let this\n // shell scroll instead (ToC has its own scrollbar).\n \"&:has(> main:has([data-testid='techdocs-native-shadowroot']))\": {\n overflowY: 'auto',\n overscrollBehaviorY: 'contain',\n },\n \"& > main:has([data-testid='techdocs-native-shadowroot'])\": {\n height: 'auto !important',\n maxHeight: 'none !important',\n flex: '0 0 auto',\n borderRadius: '1rem',\n marginRight: '0.5rem',\n },\n // The Backstage suspense is an MUI LinearProgress that is not wrapped by\n // a `main`. Fill the padded shell like the main well.\n \"& > [class*='MuiLinearProgress-root']\": {\n backgroundColor: general.mainSectionBackgroundColor,\n \"& > [class*='MuiLinearProgress-']\": {\n height: '0.5rem !important',\n },\n },\n },\n },\n },\n };\n // PatternFly `.pf-v6-c-page__main-container` — fixed inset frame beside sidebar\n components.RHDHPageMainContainer = {\n styleOverrides: {\n root: {\n '@media (min-width: 600px)': {\n // Inherits height/radius/overflow via BackstageSidebarPage\n // `> RHDHPageMainContainer` selectors; flex column stacks BUI chrome.\n display: 'flex',\n flexDirection: 'column',\n flex: '1 1 auto',\n minHeight: 0,\n minWidth: 0,\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":";;;;AAiDO,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,CA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ACL,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;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,UAA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Q;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,18 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import Box from '@mui/material/Box';
|
|
3
|
-
import { styled } from '@mui/material/styles';
|
|
4
|
-
|
|
5
|
-
const PageMainContainerRoot = styled(Box, {
|
|
6
|
-
name: "RHDHPageMainContainer",
|
|
7
|
-
slot: "root"
|
|
8
|
-
})(() => ({
|
|
9
|
-
display: "flex",
|
|
10
|
-
flexDirection: "column",
|
|
11
|
-
flex: "1 1 auto",
|
|
12
|
-
minWidth: 0,
|
|
13
|
-
minHeight: 0
|
|
14
|
-
}));
|
|
15
|
-
const PageMainContainer = ({ children }) => /* @__PURE__ */ jsx(PageMainContainerRoot, { id: "rhdh-page-main-container", children });
|
|
16
|
-
|
|
17
|
-
export { PageMainContainer };
|
|
18
|
-
//# sourceMappingURL=PageMainContainer.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageMainContainer.esm.js","sources":["../../src/components/PageMainContainer.tsx"],"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 { PropsWithChildren } from 'react';\nimport Box from '@mui/material/Box';\nimport { styled } from '@mui/material/styles';\n\n/**\n * PatternFly-aligned main content well beside the sidebar.\n *\n * Mirrors `.pf-v6-c-page__main-container`: everything except the sidebar\n * (headers, page body, footers) should live under this wrapper so page-inset\n * rounding and scrolling apply to one surface — not the SidebarPage root.\n *\n * Use inside `SidebarPage` as a sibling of `Sidebar` / `nav`:\n *\n * ```tsx\n * <SidebarPage>\n * <Sidebar>...</Sidebar>\n * <PageMainContainer>{children}</PageMainContainer>\n * </SidebarPage>\n * ```\n *\n * @public\n */\nconst PageMainContainerRoot = styled(Box, {\n name: 'RHDHPageMainContainer',\n slot: 'root',\n})(() => ({\n display: 'flex',\n flexDirection: 'column',\n flex: '1 1 auto',\n minWidth: 0,\n minHeight: 0,\n}));\n\nexport const PageMainContainer = ({ children }: PropsWithChildren) => (\n <PageMainContainerRoot id=\"rhdh-page-main-container\">\n {children}\n </PageMainContainerRoot>\n);\n"],"names":[],"mappings":";;;;AAsCA,MAAM,qBAAA,GAAwB,OAAO,GAAA,EAAK;AAAA,EACxC,IAAA,EAAM,uBAAA;AAAA,EACN,IAAA,EAAM;AACR,CAAC,EAAE,OAAO;AAAA,EACR,OAAA,EAAS,MAAA;AAAA,EACT,aAAA,EAAe,QAAA;AAAA,EACf,IAAA,EAAM,UAAA;AAAA,EACN,QAAA,EAAU,CAAA;AAAA,EACV,SAAA,EAAW;AACb,CAAA,CAAE,CAAA;AAEK,MAAM,iBAAA,GAAoB,CAAC,EAAE,QAAA,uBAClC,GAAA,CAAC,qBAAA,EAAA,EAAsB,EAAA,EAAG,0BAAA,EACvB,QAAA,EACH;;;;"}
|