@red-hat-developer-hub/plugin-cost-management 2.0.3-rc.4 → 2.2.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +1 -1
  3. package/app-config.dynamic.yaml +2 -2
  4. package/dist/Router.esm.js.map +1 -1
  5. package/dist/apis.esm.js.map +1 -1
  6. package/dist/components/BasePage.esm.js.map +1 -1
  7. package/dist/components/InfoCardTitle.esm.js.map +1 -1
  8. package/dist/components/PageLayout.esm.js.map +1 -1
  9. package/dist/components/filtersStyles.esm.js.map +1 -1
  10. package/dist/components/icon/AnalyticsIcon.esm.js.map +1 -1
  11. package/dist/components/icon/AnalyticsIconFilled.esm.js.map +1 -1
  12. package/dist/components/icon/AnalyticsIconOutlined.esm.js.map +1 -1
  13. package/dist/components/icon/CostManagementIcon.esm.js.map +1 -1
  14. package/dist/components/icon/CostManagementIconFilled.esm.js.map +1 -1
  15. package/dist/components/icon/CostManagementIconOutlined.esm.js.map +1 -1
  16. package/dist/constants/currencies.esm.js.map +1 -1
  17. package/dist/hooks/usePatternFlyTheme.esm.js.map +1 -1
  18. package/dist/hooks/useThemeBackgroundColor.esm.js.map +1 -1
  19. package/dist/index.d.ts +2 -2
  20. package/dist/pages/openshift/OpenShiftPage.esm.js.map +1 -1
  21. package/dist/pages/openshift/components/AutocompleteComponent.esm.js.map +1 -1
  22. package/dist/pages/openshift/components/DownloadIconButton.esm.js.map +1 -1
  23. package/dist/pages/openshift/components/Filters.esm.js.map +1 -1
  24. package/dist/pages/openshift/components/PageHeader.esm.js.map +1 -1
  25. package/dist/pages/openshift/components/SelectComponent.esm.js.map +1 -1
  26. package/dist/pages/openshift/components/TableToolbar.esm.js.map +1 -1
  27. package/dist/pages/optimizations/OptimizationsPage.esm.js.map +1 -1
  28. package/dist/pages/optimizations/components/ComboBox.esm.js +8 -12
  29. package/dist/pages/optimizations/components/ComboBox.esm.js.map +1 -1
  30. package/dist/pages/optimizations/components/Filters.esm.js.map +1 -1
  31. package/dist/pages/optimizations/components/TableToolbar.esm.js.map +1 -1
  32. package/dist/pages/optimizations-breakdown/OptimizationsBreakdownPage.esm.js.map +1 -1
  33. package/dist/pages/optimizations-breakdown/components/optimization-engine-tab/OptimizationEngineTab.esm.js.map +1 -1
  34. package/dist/pages/optimizations-breakdown/components/optimization-engine-tab/components/CodeInfoCard.esm.js.map +1 -1
  35. package/dist/pages/optimizations-breakdown/components/optimization-engine-tab/components/ContainerInfoCard.esm.js.map +1 -1
  36. package/dist/pages/optimizations-breakdown/components/optimization-engine-tab/components/chart-info-card/ChartInfoCard.esm.js.map +1 -1
  37. package/dist/pages/optimizations-breakdown/components/optimization-engine-tab/components/chart-info-card/components/IntlBreakdownChart.esm.js.map +1 -1
  38. package/dist/pages/optimizations-breakdown/components/optimization-engine-tab/components/chart-info-card/components/intl-breakdown-chart/components/optimizations-breakdown-chart/components/optimizations-breakdown-chart/OptimizationsBreakdownChart.esm.js.map +1 -1
  39. package/dist/pages/optimizations-breakdown/components/optimization-engine-tab/components/chart-info-card/components/intl-breakdown-chart/components/optimizations-breakdown-chart/components/optimizations-breakdown-chart/i18n/intl.esm.js.map +1 -1
  40. package/dist/pages/optimizations-breakdown/components/optimization-engine-tab/components/chart-info-card/components/intl-breakdown-chart/components/optimizations-breakdown-chart/components/optimizations-breakdown-chart/i18n/messages.esm.js.map +1 -1
  41. package/dist/pages/optimizations-breakdown/components/optimization-engine-tab/components/chart-info-card/components/intl-breakdown-chart/components/optimizations-breakdown-chart/components/optimizations-breakdown-chart/utils/chart-data-format.esm.js.map +1 -1
  42. package/dist/pages/optimizations-breakdown/components/optimization-engine-tab/components/chart-info-card/components/intl-breakdown-chart/components/optimizations-breakdown-chart/components/optimizations-breakdown-chart/utils/chart-datum.esm.js.map +1 -1
  43. package/dist/pages/optimizations-breakdown/components/optimization-engine-tab/components/chart-info-card/components/intl-breakdown-chart/components/optimizations-breakdown-chart/components/optimizations-breakdown-chart/utils/chart-utils.esm.js.map +1 -1
  44. package/dist/pages/optimizations-breakdown/components/optimization-engine-tab/components/chart-info-card/components/intl-breakdown-chart/components/optimizations-breakdown-chart/components/optimizations-breakdown-chart/utils/format.esm.js.map +1 -1
  45. package/dist/pages/optimizations-breakdown/models/ChartEnums.esm.js.map +1 -1
  46. package/dist/pages/optimizations-breakdown/models/YamlCodeData.esm.js.map +1 -1
  47. package/dist/plugin.esm.js.map +1 -1
  48. package/dist/routes.esm.js.map +1 -1
  49. package/dist/utils/dates.esm.js.map +1 -1
  50. package/package.json +19 -20
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @red-hat-developer-hub/plugin-cost-management
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ce8cb07: Add authorization, input validation, and confirmation dialog for Apply Recommendation workflow.
8
+
9
+ - New `ros.apply` permission required to execute the Apply Recommendation workflow
10
+ - New backend `POST /apply-recommendation` endpoint validates `resourceType` against server-side allowlist and checks `ros.apply` permission before forwarding to Orchestrator
11
+ - Workflow execution now routes through the cost-management backend instead of directly to the Orchestrator plugin, enabling server-side authorization and audit logging
12
+ - Confirmation dialog added before workflow execution to prevent accidental clicks
13
+
14
+ - ab26a80: Move Cost Management data fetching server-side to eliminate token exposure and RBAC bypass
15
+
16
+ - Added secure backend proxy (`/api/cost-management/proxy/*`) that authenticates requests via Backstage httpAuth, checks RBAC permissions, retrieves SSO tokens internally, and injects server-side cluster/project filters before forwarding to the Cost Management API
17
+ - Removed `/token` endpoint that exposed SSO service account credentials to the browser
18
+ - Removed `dangerously-allow-unauthenticated` proxy configuration from `app-config.dynamic.yaml`
19
+ - Updated `OptimizationsClient` and `CostManagementSlimClient` to route through the new secure backend proxy instead of the old Backstage proxy
20
+ - Eliminated client-side RBAC filter injection that could be bypassed by calling the proxy directly
21
+
22
+ ### Patch Changes
23
+
24
+ - fdcdf41: Fix `menuItems` keys in `app-config.dynamic.yaml` to use dots instead of slashes as path separators, so that "Optimizations" and "OpenShift" are properly nested under the "Cost management" parent menu in the RHDH sidebar.
25
+ - 5148408: Migrated to Jest 30 as required by @backstage/cli 0.36.0.
26
+ - Updated dependencies [ce8cb07]
27
+ - Updated dependencies [5148408]
28
+ - Updated dependencies [7b7bab9]
29
+ - Updated dependencies [ab26a80]
30
+ - @red-hat-developer-hub/plugin-cost-management-common@2.2.0
31
+
3
32
  ## 2.0.1
4
33
 
5
34
  ### Patch Changes
package/README.md CHANGED
@@ -149,4 +149,4 @@ The procedure involves the following steps:
149
149
 
150
150
  - [License Apache 2.0](../../LICENSE.md)
151
151
  - [DCO](../../DCO.md)
152
- - Find more details in the [Resource Optimization back-end](../cost-mangament-backend/README.md) part of this plugin.
152
+ - Find more details in the [Resource Optimization back-end](../cost-management-backend/README.md) part of this plugin.
@@ -16,10 +16,10 @@ dynamicPlugins:
16
16
  icon: costManagementIconOutlined
17
17
  text: OpenShift
18
18
  menuItems:
19
- cost-management/optimizations:
19
+ cost-management.optimizations:
20
20
  parent: cost-management
21
21
  priority: 10
22
- cost-management/openshift:
22
+ cost-management.openshift:
23
23
  parent: cost-management
24
24
  priority: 20
25
25
  cost-management:
@@ -1 +1 @@
1
- {"version":3,"file":"Router.esm.js","sources":["../src/Router.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 { ErrorPage } from '@backstage/core-components';\nimport React from 'react';\nimport { Routes, Route } from 'react-router-dom';\nimport { OptimizationsPage } from './pages/optimizations/OptimizationsPage';\nimport { OptimizationsBreakdownPage } from './pages/optimizations-breakdown/OptimizationsBreakdownPage';\nimport { OpenShiftPage } from './pages/openshift/OpenShiftPage';\nimport { usePatternFlyTheme } from './hooks/usePatternFlyTheme';\n\n/** @public */\nexport function Router() {\n usePatternFlyTheme();\n\n return (\n <Routes>\n <Route path=\"/\" element={<OptimizationsPage />} />\n <Route path=\"/optimizations\" element={<OptimizationsPage />} />\n <Route path=\"/openshift\" element={<OpenShiftPage />} />\n <Route path=\"/:id/*\" element={<OptimizationsBreakdownPage />} />\n <Route\n path=\"*\"\n element={<ErrorPage status=\"404\" statusMessage=\"Page not found\" />}\n />\n </Routes>\n );\n}\n"],"names":[],"mappings":";;;;;;;;AAyBO,SAAS,MAAS,GAAA;AACvB,EAAmB,kBAAA,EAAA;AAEnB,EAAA,2CACG,MACC,EAAA,IAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,KAAM,EAAA,EAAA,IAAA,EAAK,KAAI,OAAS,kBAAA,KAAA,CAAA,aAAA,CAAC,iBAAkB,EAAA,IAAA,CAAA,EAAI,mBAC/C,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAM,IAAK,EAAA,gBAAA,EAAiB,yBAAU,KAAA,CAAA,aAAA,CAAA,iBAAA,EAAA,IAAkB,CAAI,EAAA,CAAA,sCAC5D,KAAM,EAAA,EAAA,IAAA,EAAK,YAAa,EAAA,OAAA,sCAAU,aAAc,EAAA,IAAA,CAAA,EAAI,CACrD,kBAAA,KAAA,CAAA,aAAA,CAAC,SAAM,IAAK,EAAA,QAAA,EAAS,yBAAU,KAAA,CAAA,aAAA,CAAA,0BAAA,EAAA,IAA2B,GAAI,CAC9D,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,IAAK,EAAA,GAAA;AAAA,MACL,yBAAU,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA,EAAU,MAAO,EAAA,KAAA,EAAM,eAAc,gBAAiB,EAAA;AAAA;AAAA,GAEpE,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"Router.esm.js","sources":["../src/Router.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 { ErrorPage } from '@backstage/core-components';\nimport React from 'react';\nimport { Routes, Route } from 'react-router-dom';\nimport { OptimizationsPage } from './pages/optimizations/OptimizationsPage';\nimport { OptimizationsBreakdownPage } from './pages/optimizations-breakdown/OptimizationsBreakdownPage';\nimport { OpenShiftPage } from './pages/openshift/OpenShiftPage';\nimport { usePatternFlyTheme } from './hooks/usePatternFlyTheme';\n\n/** @public */\nexport function Router() {\n usePatternFlyTheme();\n\n return (\n <Routes>\n <Route path=\"/\" element={<OptimizationsPage />} />\n <Route path=\"/optimizations\" element={<OptimizationsPage />} />\n <Route path=\"/openshift\" element={<OpenShiftPage />} />\n <Route path=\"/:id/*\" element={<OptimizationsBreakdownPage />} />\n <Route\n path=\"*\"\n element={<ErrorPage status=\"404\" statusMessage=\"Page not found\" />}\n />\n </Routes>\n );\n}\n"],"names":[],"mappings":";;;;;;;;AAyBO,SAAS,MAAA,GAAS;AACvB,EAAA,kBAAA,EAAmB;AAEnB,EAAA,2CACG,MAAA,EAAA,IAAA,kBACC,KAAA,CAAA,aAAA,CAAC,KAAA,EAAA,EAAM,IAAA,EAAK,KAAI,OAAA,kBAAS,KAAA,CAAA,aAAA,CAAC,iBAAA,EAAA,IAAkB,CAAA,EAAI,mBAChD,KAAA,CAAA,aAAA,CAAC,KAAA,EAAA,EAAM,IAAA,EAAK,gBAAA,EAAiB,yBAAS,KAAA,CAAA,aAAA,CAAC,iBAAA,EAAA,IAAkB,CAAA,EAAI,CAAA,sCAC5D,KAAA,EAAA,EAAM,IAAA,EAAK,YAAA,EAAa,OAAA,sCAAU,aAAA,EAAA,IAAc,CAAA,EAAI,CAAA,kBACrD,KAAA,CAAA,aAAA,CAAC,SAAM,IAAA,EAAK,QAAA,EAAS,yBAAS,KAAA,CAAA,aAAA,CAAC,0BAAA,EAAA,IAA2B,GAAI,CAAA,kBAC9D,KAAA,CAAA,aAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,IAAA,EAAK,GAAA;AAAA,MACL,yBAAS,KAAA,CAAA,aAAA,CAAC,SAAA,EAAA,EAAU,MAAA,EAAO,KAAA,EAAM,eAAc,gBAAA,EAAiB;AAAA;AAAA,GAEpE,CAAA;AAEJ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"apis.esm.js","sources":["../src/apis.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 { createApiRef } from '@backstage/core-plugin-api';\nimport {\n type OptimizationsApi,\n type OrchestratorSlimApi,\n type CostManagementSlimApi,\n} from '@red-hat-developer-hub/plugin-cost-management-common/clients';\n\n/** @public */\nexport const optimizationsApiRef = createApiRef<OptimizationsApi>({\n id: 'plugin.cost-management.api',\n});\n\n/** @public */\nexport const orchestratorSlimApiRef = createApiRef<OrchestratorSlimApi>({\n id: 'plugin.redhat-orchestrator-slim.api',\n});\n\n/** @public */\nexport const costManagementSlimApiRef = createApiRef<CostManagementSlimApi>({\n id: 'plugin.redhat-cost-management-slim.api',\n});\n"],"names":[],"mappings":";;AAwBO,MAAM,sBAAsB,YAA+B,CAAA;AAAA,EAChE,EAAI,EAAA;AACN,CAAC;AAGM,MAAM,yBAAyB,YAAkC,CAAA;AAAA,EACtE,EAAI,EAAA;AACN,CAAC;AAGM,MAAM,2BAA2B,YAAoC,CAAA;AAAA,EAC1E,EAAI,EAAA;AACN,CAAC;;;;"}
1
+ {"version":3,"file":"apis.esm.js","sources":["../src/apis.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 { createApiRef } from '@backstage/core-plugin-api';\nimport {\n type OptimizationsApi,\n type OrchestratorSlimApi,\n type CostManagementSlimApi,\n} from '@red-hat-developer-hub/plugin-cost-management-common/clients';\n\n/** @public */\nexport const optimizationsApiRef = createApiRef<OptimizationsApi>({\n id: 'plugin.cost-management.api',\n});\n\n/** @public */\nexport const orchestratorSlimApiRef = createApiRef<OrchestratorSlimApi>({\n id: 'plugin.redhat-orchestrator-slim.api',\n});\n\n/** @public */\nexport const costManagementSlimApiRef = createApiRef<CostManagementSlimApi>({\n id: 'plugin.redhat-cost-management-slim.api',\n});\n"],"names":[],"mappings":";;AAwBO,MAAM,sBAAsB,YAAA,CAA+B;AAAA,EAChE,EAAA,EAAI;AACN,CAAC;AAGM,MAAM,yBAAyB,YAAA,CAAkC;AAAA,EACtE,EAAA,EAAI;AACN,CAAC;AAGM,MAAM,2BAA2B,YAAA,CAAoC;AAAA,EAC1E,EAAA,EAAI;AACN,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"BasePage.esm.js","sources":["../../src/components/BasePage.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 React, { PropsWithChildren } from 'react';\nimport {\n PageWithHeader,\n Content,\n ContentHeader,\n SupportButton,\n} from '@backstage/core-components';\n\n/** @public */\nexport function BasePage(\n props: PropsWithChildren<{\n pageThemeId?: string;\n pageTitle: string;\n pageType?: string;\n pageTypeLink?: string;\n contentHeaderTitle?: string;\n showSupportButton?: boolean;\n showContentHeader?: boolean;\n withContentPadding?: boolean;\n }>,\n) {\n const {\n children,\n contentHeaderTitle = '',\n pageThemeId = 'tool',\n pageTitle,\n pageType,\n pageTypeLink,\n showContentHeader = false,\n showSupportButton = false,\n withContentPadding = false,\n } = props;\n\n return (\n <PageWithHeader\n title={pageTitle}\n type={pageType}\n typeLink={pageTypeLink}\n themeId={pageThemeId}\n >\n <Content noPadding={!withContentPadding}>\n {showContentHeader && (\n <ContentHeader title={contentHeaderTitle}>\n {showSupportButton && <SupportButton>Support</SupportButton>}\n </ContentHeader>\n )}\n {children}\n </Content>\n </PageWithHeader>\n );\n}\n"],"names":[],"mappings":";;;AAyBO,SAAS,SACd,KAUA,EAAA;AACA,EAAM,MAAA;AAAA,IACJ,QAAA;AAAA,IACA,kBAAqB,GAAA,EAAA;AAAA,IACrB,WAAc,GAAA,MAAA;AAAA,IACd,SAAA;AAAA,IACA,QAAA;AAAA,IACA,YAAA;AAAA,IACA,iBAAoB,GAAA,KAAA;AAAA,IACpB,iBAAoB,GAAA,KAAA;AAAA,IACpB,kBAAqB,GAAA;AAAA,GACnB,GAAA,KAAA;AAEJ,EACE,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,cAAA;AAAA,IAAA;AAAA,MACC,KAAO,EAAA,SAAA;AAAA,MACP,IAAM,EAAA,QAAA;AAAA,MACN,QAAU,EAAA,YAAA;AAAA,MACV,OAAS,EAAA;AAAA,KAAA;AAAA,wCAER,OAAQ,EAAA,EAAA,SAAA,EAAW,CAAC,kBAAA,EAAA,EAClB,qCACE,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA,EAAc,KAAO,EAAA,kBAAA,EAAA,EACnB,qCAAsB,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA,IAAA,EAAc,SAAO,CAC9C,GAED,QACH;AAAA,GACF;AAEJ;;;;"}
1
+ {"version":3,"file":"BasePage.esm.js","sources":["../../src/components/BasePage.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 React, { PropsWithChildren } from 'react';\nimport {\n PageWithHeader,\n Content,\n ContentHeader,\n SupportButton,\n} from '@backstage/core-components';\n\n/** @public */\nexport function BasePage(\n props: PropsWithChildren<{\n pageThemeId?: string;\n pageTitle: string;\n pageType?: string;\n pageTypeLink?: string;\n contentHeaderTitle?: string;\n showSupportButton?: boolean;\n showContentHeader?: boolean;\n withContentPadding?: boolean;\n }>,\n) {\n const {\n children,\n contentHeaderTitle = '',\n pageThemeId = 'tool',\n pageTitle,\n pageType,\n pageTypeLink,\n showContentHeader = false,\n showSupportButton = false,\n withContentPadding = false,\n } = props;\n\n return (\n <PageWithHeader\n title={pageTitle}\n type={pageType}\n typeLink={pageTypeLink}\n themeId={pageThemeId}\n >\n <Content noPadding={!withContentPadding}>\n {showContentHeader && (\n <ContentHeader title={contentHeaderTitle}>\n {showSupportButton && <SupportButton>Support</SupportButton>}\n </ContentHeader>\n )}\n {children}\n </Content>\n </PageWithHeader>\n );\n}\n"],"names":[],"mappings":";;;AAyBO,SAAS,SACd,KAAA,EAUA;AACA,EAAA,MAAM;AAAA,IACJ,QAAA;AAAA,IACA,kBAAA,GAAqB,EAAA;AAAA,IACrB,WAAA,GAAc,MAAA;AAAA,IACd,SAAA;AAAA,IACA,QAAA;AAAA,IACA,YAAA;AAAA,IACA,iBAAA,GAAoB,KAAA;AAAA,IACpB,iBAAA,GAAoB,KAAA;AAAA,IACpB,kBAAA,GAAqB;AAAA,GACvB,GAAI,KAAA;AAEJ,EAAA,uBACE,KAAA,CAAA,aAAA;AAAA,IAAC,cAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAO,SAAA;AAAA,MACP,IAAA,EAAM,QAAA;AAAA,MACN,QAAA,EAAU,YAAA;AAAA,MACV,OAAA,EAAS;AAAA,KAAA;AAAA,wCAER,OAAA,EAAA,EAAQ,SAAA,EAAW,CAAC,kBAAA,EAAA,EAClB,qCACC,KAAA,CAAA,aAAA,CAAC,aAAA,EAAA,EAAc,KAAA,EAAO,kBAAA,EAAA,EACnB,qCAAqB,KAAA,CAAA,aAAA,CAAC,aAAA,EAAA,IAAA,EAAc,SAAO,CAC9C,GAED,QACH;AAAA,GACF;AAEJ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"InfoCardTitle.esm.js","sources":["../../src/components/InfoCardTitle.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 React from 'react';\nimport Typography from '@material-ui/core/Typography';\n\ninterface InfoCardTitleProps {\n title: React.ReactNode;\n}\n\nexport const InfoCardTitle = (props: InfoCardTitleProps) => {\n return (\n <Typography variant=\"body1\">\n <b>{props.title}</b>\n </Typography>\n );\n};\n"],"names":[],"mappings":";;;AAuBa,MAAA,aAAA,GAAgB,CAAC,KAA8B,KAAA;AAC1D,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,cAAW,OAAQ,EAAA,OAAA,EAAA,sCACjB,GAAG,EAAA,IAAA,EAAA,KAAA,CAAM,KAAM,CAClB,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"InfoCardTitle.esm.js","sources":["../../src/components/InfoCardTitle.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 React from 'react';\nimport Typography from '@material-ui/core/Typography';\n\ninterface InfoCardTitleProps {\n title: React.ReactNode;\n}\n\nexport const InfoCardTitle = (props: InfoCardTitleProps) => {\n return (\n <Typography variant=\"body1\">\n <b>{props.title}</b>\n </Typography>\n );\n};\n"],"names":[],"mappings":";;;AAuBO,MAAM,aAAA,GAAgB,CAAC,KAAA,KAA8B;AAC1D,EAAA,uBACE,KAAA,CAAA,aAAA,CAAC,cAAW,OAAA,EAAQ,OAAA,EAAA,sCACjB,GAAA,EAAA,IAAA,EAAG,KAAA,CAAM,KAAM,CAClB,CAAA;AAEJ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PageLayout.esm.js","sources":["../../src/components/PageLayout.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 React, { useState } from 'react';\nimport Box from '@material-ui/core/Box';\nimport Button from '@material-ui/core/Button';\nimport Drawer from '@material-ui/core/Drawer';\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport useMediaQuery from '@material-ui/core/useMediaQuery';\nimport { Theme, useTheme } from '@material-ui/core/styles';\nimport FilterListIcon from '@material-ui/icons/FilterList';\n\nfunction Filters(props: {\n children: React.ReactNode;\n options?: {\n drawerBreakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;\n drawerAnchor?: 'left' | 'right' | 'top' | 'bottom';\n };\n}) {\n const isScreenSmallerThanBreakpoint = useMediaQuery((theme: Theme) =>\n theme.breakpoints.down(props.options?.drawerBreakpoint ?? 'md'),\n );\n const theme = useTheme();\n const [filterDrawerOpen, setFilterDrawerOpen] = useState<boolean>(false);\n\n return isScreenSmallerThanBreakpoint ? (\n <>\n <Button\n style={{ marginTop: theme.spacing(1), marginLeft: theme.spacing(1) }}\n onClick={() => setFilterDrawerOpen(true)}\n startIcon={<FilterListIcon />}\n >\n Filters\n </Button>\n <Drawer\n open={filterDrawerOpen}\n onClose={() => setFilterDrawerOpen(false)}\n anchor={props.options?.drawerAnchor ?? 'left'}\n disableAutoFocus\n keepMounted\n variant=\"temporary\"\n >\n <Box m={2}>\n <Typography\n variant=\"h6\"\n component=\"h2\"\n style={{ marginBottom: theme.spacing(1) }}\n >\n Filters\n </Typography>\n {props.children}\n </Box>\n </Drawer>\n </>\n ) : (\n <Grid item lg={2}>\n {props.children}\n </Grid>\n );\n}\n\nfunction Table(props: { children: React.ReactNode }) {\n return (\n <Grid item xs={12} lg={10}>\n {props.children}\n </Grid>\n );\n}\n\n/** @public */\nexport function PageLayout(props: { children: React.ReactNode }) {\n return (\n <Grid container style={{ position: 'relative' }}>\n {props.children}\n </Grid>\n );\n}\n\nPageLayout.Filters = Filters;\nPageLayout.Table = Table;\n"],"names":["theme"],"mappings":";;;;;;;;;;AA0BA,SAAS,QAAQ,KAMd,EAAA;AACD,EAAA,MAAM,6BAAgC,GAAA,aAAA;AAAA,IAAc,CAACA,WACnDA,MAAM,CAAA,WAAA,CAAY,KAAK,KAAM,CAAA,OAAA,EAAS,oBAAoB,IAAI;AAAA,GAChE;AACA,EAAA,MAAM,QAAQ,QAAS,EAAA;AACvB,EAAA,MAAM,CAAC,gBAAA,EAAkB,mBAAmB,CAAA,GAAI,SAAkB,KAAK,CAAA;AAEvE,EAAA,OAAO,gDAEH,KAAA,CAAA,aAAA,CAAA,KAAA,CAAA,QAAA,EAAA,IAAA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAO,EAAE,SAAA,EAAW,KAAM,CAAA,OAAA,CAAQ,CAAC,CAAA,EAAG,UAAY,EAAA,KAAA,CAAM,OAAQ,CAAA,CAAC,CAAE,EAAA;AAAA,MACnE,OAAA,EAAS,MAAM,mBAAA,CAAoB,IAAI,CAAA;AAAA,MACvC,SAAA,sCAAY,cAAe,EAAA,IAAA;AAAA,KAAA;AAAA,IAC5B;AAAA,GAGD,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,IAAM,EAAA,gBAAA;AAAA,MACN,OAAA,EAAS,MAAM,mBAAA,CAAoB,KAAK,CAAA;AAAA,MACxC,MAAA,EAAQ,KAAM,CAAA,OAAA,EAAS,YAAgB,IAAA,MAAA;AAAA,MACvC,gBAAgB,EAAA,IAAA;AAAA,MAChB,WAAW,EAAA,IAAA;AAAA,MACX,OAAQ,EAAA;AAAA,KAAA;AAAA,oBAER,KAAA,CAAA,aAAA,CAAC,GAAI,EAAA,EAAA,CAAA,EAAG,CACN,EAAA,kBAAA,KAAA,CAAA,aAAA;AAAA,MAAC,UAAA;AAAA,MAAA;AAAA,QACC,OAAQ,EAAA,IAAA;AAAA,QACR,SAAU,EAAA,IAAA;AAAA,QACV,OAAO,EAAE,YAAA,EAAc,KAAM,CAAA,OAAA,CAAQ,CAAC,CAAE;AAAA,OAAA;AAAA,MACzC;AAAA,KAED,EACC,MAAM,QACT;AAAA,GAEJ,oBAEC,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAK,MAAI,IAAC,EAAA,EAAA,EAAI,CACZ,EAAA,EAAA,KAAA,CAAM,QACT,CAAA;AAEJ;AAEA,SAAS,MAAM,KAAsC,EAAA;AACnD,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,QAAK,IAAI,EAAA,IAAA,EAAC,IAAI,EAAI,EAAA,EAAA,EAAI,EACpB,EAAA,EAAA,KAAA,CAAM,QACT,CAAA;AAEJ;AAGO,SAAS,WAAW,KAAsC,EAAA;AAC/D,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,IAAK,EAAA,EAAA,SAAA,EAAS,IAAC,EAAA,KAAA,EAAO,EAAE,QAAU,EAAA,UAAA,EAChC,EAAA,EAAA,KAAA,CAAM,QACT,CAAA;AAEJ;AAEA,UAAA,CAAW,OAAU,GAAA,OAAA;AACrB,UAAA,CAAW,KAAQ,GAAA,KAAA;;;;"}
1
+ {"version":3,"file":"PageLayout.esm.js","sources":["../../src/components/PageLayout.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 React, { useState } from 'react';\nimport Box from '@material-ui/core/Box';\nimport Button from '@material-ui/core/Button';\nimport Drawer from '@material-ui/core/Drawer';\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport useMediaQuery from '@material-ui/core/useMediaQuery';\nimport { Theme, useTheme } from '@material-ui/core/styles';\nimport FilterListIcon from '@material-ui/icons/FilterList';\n\nfunction Filters(props: {\n children: React.ReactNode;\n options?: {\n drawerBreakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;\n drawerAnchor?: 'left' | 'right' | 'top' | 'bottom';\n };\n}) {\n const isScreenSmallerThanBreakpoint = useMediaQuery((theme: Theme) =>\n theme.breakpoints.down(props.options?.drawerBreakpoint ?? 'md'),\n );\n const theme = useTheme();\n const [filterDrawerOpen, setFilterDrawerOpen] = useState<boolean>(false);\n\n return isScreenSmallerThanBreakpoint ? (\n <>\n <Button\n style={{ marginTop: theme.spacing(1), marginLeft: theme.spacing(1) }}\n onClick={() => setFilterDrawerOpen(true)}\n startIcon={<FilterListIcon />}\n >\n Filters\n </Button>\n <Drawer\n open={filterDrawerOpen}\n onClose={() => setFilterDrawerOpen(false)}\n anchor={props.options?.drawerAnchor ?? 'left'}\n disableAutoFocus\n keepMounted\n variant=\"temporary\"\n >\n <Box m={2}>\n <Typography\n variant=\"h6\"\n component=\"h2\"\n style={{ marginBottom: theme.spacing(1) }}\n >\n Filters\n </Typography>\n {props.children}\n </Box>\n </Drawer>\n </>\n ) : (\n <Grid item lg={2}>\n {props.children}\n </Grid>\n );\n}\n\nfunction Table(props: { children: React.ReactNode }) {\n return (\n <Grid item xs={12} lg={10}>\n {props.children}\n </Grid>\n );\n}\n\n/** @public */\nexport function PageLayout(props: { children: React.ReactNode }) {\n return (\n <Grid container style={{ position: 'relative' }}>\n {props.children}\n </Grid>\n );\n}\n\nPageLayout.Filters = Filters;\nPageLayout.Table = Table;\n"],"names":["theme"],"mappings":";;;;;;;;;;AA0BA,SAAS,QAAQ,KAAA,EAMd;AACD,EAAA,MAAM,6BAAA,GAAgC,aAAA;AAAA,IAAc,CAACA,WACnDA,MAAAA,CAAM,WAAA,CAAY,KAAK,KAAA,CAAM,OAAA,EAAS,oBAAoB,IAAI;AAAA,GAChE;AACA,EAAA,MAAM,QAAQ,QAAA,EAAS;AACvB,EAAA,MAAM,CAAC,gBAAA,EAAkB,mBAAmB,CAAA,GAAI,SAAkB,KAAK,CAAA;AAEvE,EAAA,OAAO,gDACL,KAAA,CAAA,aAAA,CAAA,KAAA,CAAA,QAAA,EAAA,IAAA,kBACE,KAAA,CAAA,aAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAO,EAAE,SAAA,EAAW,KAAA,CAAM,OAAA,CAAQ,CAAC,CAAA,EAAG,UAAA,EAAY,KAAA,CAAM,OAAA,CAAQ,CAAC,CAAA,EAAE;AAAA,MACnE,OAAA,EAAS,MAAM,mBAAA,CAAoB,IAAI,CAAA;AAAA,MACvC,SAAA,sCAAY,cAAA,EAAA,IAAe;AAAA,KAAA;AAAA,IAC5B;AAAA,GAED,kBACA,KAAA,CAAA,aAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,IAAA,EAAM,gBAAA;AAAA,MACN,OAAA,EAAS,MAAM,mBAAA,CAAoB,KAAK,CAAA;AAAA,MACxC,MAAA,EAAQ,KAAA,CAAM,OAAA,EAAS,YAAA,IAAgB,MAAA;AAAA,MACvC,gBAAA,EAAgB,IAAA;AAAA,MAChB,WAAA,EAAW,IAAA;AAAA,MACX,OAAA,EAAQ;AAAA,KAAA;AAAA,oBAER,KAAA,CAAA,aAAA,CAAC,GAAA,EAAA,EAAI,CAAA,EAAG,CAAA,EAAA,kBACN,KAAA,CAAA,aAAA;AAAA,MAAC,UAAA;AAAA,MAAA;AAAA,QACC,OAAA,EAAQ,IAAA;AAAA,QACR,SAAA,EAAU,IAAA;AAAA,QACV,OAAO,EAAE,YAAA,EAAc,KAAA,CAAM,OAAA,CAAQ,CAAC,CAAA;AAAE,OAAA;AAAA,MACzC;AAAA,KAED,EACC,MAAM,QACT;AAAA,GAEJ,oBAEA,KAAA,CAAA,aAAA,CAAC,IAAA,EAAA,EAAK,MAAI,IAAA,EAAC,EAAA,EAAI,CAAA,EAAA,EACZ,KAAA,CAAM,QACT,CAAA;AAEJ;AAEA,SAAS,MAAM,KAAA,EAAsC;AACnD,EAAA,uBACE,KAAA,CAAA,aAAA,CAAC,QAAK,IAAA,EAAI,IAAA,EAAC,IAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAA,EACpB,KAAA,CAAM,QACT,CAAA;AAEJ;AAGO,SAAS,WAAW,KAAA,EAAsC;AAC/D,EAAA,uBACE,KAAA,CAAA,aAAA,CAAC,IAAA,EAAA,EAAK,SAAA,EAAS,IAAA,EAAC,KAAA,EAAO,EAAE,QAAA,EAAU,UAAA,EAAW,EAAA,EAC3C,KAAA,CAAM,QACT,CAAA;AAEJ;AAEA,UAAA,CAAW,OAAA,GAAU,OAAA;AACrB,UAAA,CAAW,KAAA,GAAQ,KAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"filtersStyles.esm.js","sources":["../../src/components/filtersStyles.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 { makeStyles, Theme } from '@material-ui/core/styles';\n\n/**\n * Common base styles for Filters components.\n * These styles are shared between OpenShift and Optimizations filters.\n *\n * @public\n */\nexport const useBaseFiltersStyles = makeStyles(\n (theme: Theme) => ({\n root: {\n height: '100%',\n width: '100%',\n display: 'flex',\n flexDirection: 'column',\n marginRight: theme.spacing(3),\n },\n value: {\n fontWeight: 'bold',\n fontSize: 18,\n },\n header: {\n display: 'flex',\n alignItems: 'center',\n height: theme.spacing(7.5),\n justifyContent: 'space-between',\n borderBottom: `1px solid ${theme.palette.grey[500]}`,\n },\n filters: {\n display: 'flex',\n flexDirection: 'column',\n },\n }),\n { name: 'BaseFilters' },\n);\n"],"names":[],"mappings":";;AAwBO,MAAM,oBAAuB,GAAA,UAAA;AAAA,EAClC,CAAC,KAAkB,MAAA;AAAA,IACjB,IAAM,EAAA;AAAA,MACJ,MAAQ,EAAA,MAAA;AAAA,MACR,KAAO,EAAA,MAAA;AAAA,MACP,OAAS,EAAA,MAAA;AAAA,MACT,aAAe,EAAA,QAAA;AAAA,MACf,WAAA,EAAa,KAAM,CAAA,OAAA,CAAQ,CAAC;AAAA,KAC9B;AAAA,IACA,KAAO,EAAA;AAAA,MACL,UAAY,EAAA,MAAA;AAAA,MACZ,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,MAAQ,EAAA;AAAA,MACN,OAAS,EAAA,MAAA;AAAA,MACT,UAAY,EAAA,QAAA;AAAA,MACZ,MAAA,EAAQ,KAAM,CAAA,OAAA,CAAQ,GAAG,CAAA;AAAA,MACzB,cAAgB,EAAA,eAAA;AAAA,MAChB,cAAc,CAAa,UAAA,EAAA,KAAA,CAAM,OAAQ,CAAA,IAAA,CAAK,GAAG,CAAC,CAAA;AAAA,KACpD;AAAA,IACA,OAAS,EAAA;AAAA,MACP,OAAS,EAAA,MAAA;AAAA,MACT,aAAe,EAAA;AAAA;AACjB,GACF,CAAA;AAAA,EACA,EAAE,MAAM,aAAc;AACxB;;;;"}
1
+ {"version":3,"file":"filtersStyles.esm.js","sources":["../../src/components/filtersStyles.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 { makeStyles, Theme } from '@material-ui/core/styles';\n\n/**\n * Common base styles for Filters components.\n * These styles are shared between OpenShift and Optimizations filters.\n *\n * @public\n */\nexport const useBaseFiltersStyles = makeStyles(\n (theme: Theme) => ({\n root: {\n height: '100%',\n width: '100%',\n display: 'flex',\n flexDirection: 'column',\n marginRight: theme.spacing(3),\n },\n value: {\n fontWeight: 'bold',\n fontSize: 18,\n },\n header: {\n display: 'flex',\n alignItems: 'center',\n height: theme.spacing(7.5),\n justifyContent: 'space-between',\n borderBottom: `1px solid ${theme.palette.grey[500]}`,\n },\n filters: {\n display: 'flex',\n flexDirection: 'column',\n },\n }),\n { name: 'BaseFilters' },\n);\n"],"names":[],"mappings":";;AAwBO,MAAM,oBAAA,GAAuB,UAAA;AAAA,EAClC,CAAC,KAAA,MAAkB;AAAA,IACjB,IAAA,EAAM;AAAA,MACJ,MAAA,EAAQ,MAAA;AAAA,MACR,KAAA,EAAO,MAAA;AAAA,MACP,OAAA,EAAS,MAAA;AAAA,MACT,aAAA,EAAe,QAAA;AAAA,MACf,WAAA,EAAa,KAAA,CAAM,OAAA,CAAQ,CAAC;AAAA,KAC9B;AAAA,IACA,KAAA,EAAO;AAAA,MACL,UAAA,EAAY,MAAA;AAAA,MACZ,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,OAAA,EAAS,MAAA;AAAA,MACT,UAAA,EAAY,QAAA;AAAA,MACZ,MAAA,EAAQ,KAAA,CAAM,OAAA,CAAQ,GAAG,CAAA;AAAA,MACzB,cAAA,EAAgB,eAAA;AAAA,MAChB,cAAc,CAAA,UAAA,EAAa,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK,GAAG,CAAC,CAAA;AAAA,KACpD;AAAA,IACA,OAAA,EAAS;AAAA,MACP,OAAA,EAAS,MAAA;AAAA,MACT,aAAA,EAAe;AAAA;AACjB,GACF,CAAA;AAAA,EACA,EAAE,MAAM,aAAA;AACV;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticsIcon.esm.js","sources":["../../../src/components/icon/AnalyticsIcon.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 React from 'react';\nimport SvgIcon, { SvgIconProps } from '@material-ui/core/SvgIcon';\n\n/**\n * The Analytics icon.\n *\n * @public\n */\nexport const AnalyticsIcon = (\n props: SvgIconProps & { variant?: 'outlined' | 'filled' },\n) => {\n const variant = props.variant ?? 'outlined';\n const path =\n variant === 'outlined' ? (\n <path d=\"M280-280h80v-200h-80v200Zm320 0h80v-400h-80v400Zm-160 0h80v-120h-80v120Zm0-200h80v-80h-80v80ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Z\" />\n ) : (\n <path d=\"M280-280h80v-200h-80v200Zm320 0h80v-400h-80v400Zm-160 0h80v-120h-80v120Zm0-200h80v-80h-80v80ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z\" />\n );\n\n return (\n <SvgIcon {...props} viewBox=\"0 -960 960 960\">\n {path}\n </SvgIcon>\n );\n};\n"],"names":[],"mappings":";;;AAwBa,MAAA,aAAA,GAAgB,CAC3B,KACG,KAAA;AACH,EAAM,MAAA,OAAA,GAAU,MAAM,OAAW,IAAA,UAAA;AACjC,EAAM,MAAA,IAAA,GACJ,OAAY,KAAA,UAAA,mBACT,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAK,CAAE,EAAA,4PAAA,EAA6P,CAErQ,mBAAA,KAAA,CAAA,aAAA,CAAC,MAAK,EAAA,EAAA,CAAA,EAAE,sNAAuN,EAAA,CAAA;AAGnO,EAAA,2CACG,OAAS,EAAA,EAAA,GAAG,KAAO,EAAA,OAAA,EAAQ,oBACzB,IACH,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"AnalyticsIcon.esm.js","sources":["../../../src/components/icon/AnalyticsIcon.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 React from 'react';\nimport SvgIcon, { SvgIconProps } from '@material-ui/core/SvgIcon';\n\n/**\n * The Analytics icon.\n *\n * @public\n */\nexport const AnalyticsIcon = (\n props: SvgIconProps & { variant?: 'outlined' | 'filled' },\n) => {\n const variant = props.variant ?? 'outlined';\n const path =\n variant === 'outlined' ? (\n <path d=\"M280-280h80v-200h-80v200Zm320 0h80v-400h-80v400Zm-160 0h80v-120h-80v120Zm0-200h80v-80h-80v80ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Z\" />\n ) : (\n <path d=\"M280-280h80v-200h-80v200Zm320 0h80v-400h-80v400Zm-160 0h80v-120h-80v120Zm0-200h80v-80h-80v80ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z\" />\n );\n\n return (\n <SvgIcon {...props} viewBox=\"0 -960 960 960\">\n {path}\n </SvgIcon>\n );\n};\n"],"names":[],"mappings":";;;AAwBO,MAAM,aAAA,GAAgB,CAC3B,KAAA,KACG;AACH,EAAA,MAAM,OAAA,GAAU,MAAM,OAAA,IAAW,UAAA;AACjC,EAAA,MAAM,IAAA,GACJ,OAAA,KAAY,UAAA,mBACV,KAAA,CAAA,aAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,4PAAA,EAA6P,CAAA,mBAErQ,KAAA,CAAA,aAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,sNAAA,EAAuN,CAAA;AAGnO,EAAA,2CACG,OAAA,EAAA,EAAS,GAAG,KAAA,EAAO,OAAA,EAAQ,oBACzB,IACH,CAAA;AAEJ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticsIconFilled.esm.js","sources":["../../../src/components/icon/AnalyticsIconFilled.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 React from 'react';\nimport type { SvgIconProps } from '@material-ui/core/SvgIcon';\nimport { AnalyticsIcon } from './AnalyticsIcon';\n\n/**\n * The filled variant of the Analytics icon.\n *\n * @public\n */\nexport const AnalyticsIconFilled = (props: SvgIconProps) => {\n return <AnalyticsIcon variant=\"filled\" {...props} />;\n};\n"],"names":[],"mappings":";;;AAyBa,MAAA,mBAAA,GAAsB,CAAC,KAAwB,KAAA;AAC1D,EAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA,EAAc,OAAQ,EAAA,QAAA,EAAU,GAAG,KAAO,EAAA,CAAA;AACpD;;;;"}
1
+ {"version":3,"file":"AnalyticsIconFilled.esm.js","sources":["../../../src/components/icon/AnalyticsIconFilled.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 React from 'react';\nimport type { SvgIconProps } from '@material-ui/core/SvgIcon';\nimport { AnalyticsIcon } from './AnalyticsIcon';\n\n/**\n * The filled variant of the Analytics icon.\n *\n * @public\n */\nexport const AnalyticsIconFilled = (props: SvgIconProps) => {\n return <AnalyticsIcon variant=\"filled\" {...props} />;\n};\n"],"names":[],"mappings":";;;AAyBO,MAAM,mBAAA,GAAsB,CAAC,KAAA,KAAwB;AAC1D,EAAA,uBAAO,KAAA,CAAA,aAAA,CAAC,aAAA,EAAA,EAAc,OAAA,EAAQ,QAAA,EAAU,GAAG,KAAA,EAAO,CAAA;AACpD;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticsIconOutlined.esm.js","sources":["../../../src/components/icon/AnalyticsIconOutlined.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 React from 'react';\nimport type { SvgIconProps } from '@material-ui/core/SvgIcon';\nimport { AnalyticsIcon } from './AnalyticsIcon';\n\n/**\n * The outlined variant of the Analytics icon.\n *\n * @public\n */\nexport const AnalyticsIconOutlined = (props: SvgIconProps) => {\n return <AnalyticsIcon variant=\"outlined\" {...props} />;\n};\n"],"names":[],"mappings":";;;AAyBa,MAAA,qBAAA,GAAwB,CAAC,KAAwB,KAAA;AAC5D,EAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA,EAAc,OAAQ,EAAA,UAAA,EAAY,GAAG,KAAO,EAAA,CAAA;AACtD;;;;"}
1
+ {"version":3,"file":"AnalyticsIconOutlined.esm.js","sources":["../../../src/components/icon/AnalyticsIconOutlined.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 React from 'react';\nimport type { SvgIconProps } from '@material-ui/core/SvgIcon';\nimport { AnalyticsIcon } from './AnalyticsIcon';\n\n/**\n * The outlined variant of the Analytics icon.\n *\n * @public\n */\nexport const AnalyticsIconOutlined = (props: SvgIconProps) => {\n return <AnalyticsIcon variant=\"outlined\" {...props} />;\n};\n"],"names":[],"mappings":";;;AAyBO,MAAM,qBAAA,GAAwB,CAAC,KAAA,KAAwB;AAC5D,EAAA,uBAAO,KAAA,CAAA,aAAA,CAAC,aAAA,EAAA,EAAc,OAAA,EAAQ,UAAA,EAAY,GAAG,KAAA,EAAO,CAAA;AACtD;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CostManagementIcon.esm.js","sources":["../../../src/components/icon/CostManagementIcon.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 React from 'react';\nimport SvgIcon, { SvgIconProps } from '@material-ui/core/SvgIcon';\n\n/**\n * The Cost Management icon.\n *\n * @public\n */\nexport const CostManagementIcon = (\n props: SvgIconProps & { variant?: 'outlined' | 'filled' },\n) => {\n const variant = props.variant ?? 'outlined';\n const path =\n variant === 'outlined' ? (\n <path d=\"M10.9999948,16.8089888 C14.0684705,16.8089888 16.564698,14.4249501 16.564698,11.494382 C16.564698,10.8850957 16.458539,10.2893259 16.2482502,9.72348591 C16.1289533,9.40193985 16.3048704,9.0485358 16.6415375,8.93460052 C16.9792193,8.82066524 17.3472351,8.98867602 17.4675466,9.31021216 C17.7273845,10.009298 17.8588152,10.7441178 17.8588152,11.4943721 C17.8588152,15.1066436 14.7822538,18.044934 10.9999948,18.044934 C7.21773589,18.044934 4.14117451,15.1066436 4.14117451,11.4943721 C4.14117451,9.16247108 5.45551085,6.98796136 7.57058467,5.8205672 C7.87996147,5.64965934 8.27426335,5.7510472 8.45422849,6.04651956 C8.63317894,6.34199192 8.52701993,6.7195317 8.21764314,6.89044945 C6.50192352,7.83865439 5.43529156,9.60278749 5.43529156,11.494382 C5.43529156,14.4249501 7.93151914,16.8089888 10.9999948,16.8089888 Z M11,22 C4.93483061,22 0,17.2869573 0,11.494382 C0,6.87983012 3.09476184,2.85138788 7.69999637,1.46962967 C8.04374487,1.36727281 8.40467928,1.54880989 8.51185298,1.87421213 C8.61902653,2.19961438 8.42894662,2.54722428 8.08823148,2.64958113 C4.02389645,3.86815371 1.29411703,7.4224935 1.29411703,11.494382 C1.29411703,16.605254 5.6486138,20.764045 11,20.764045 C16.3513759,20.764045 20.7058726,16.605254 20.7058726,11.494382 C20.7058726,9.86543278 20.2569796,8.26255733 19.4077076,6.85955058 C19.2287571,6.56407822 19.3349161,6.18653845 19.6442929,6.01562069 C19.9516509,5.84471282 20.3489758,5.9451317 20.5279367,6.24157304 C21.4914431,7.83190114 22,9.64817176 22,11.494382 C22,17.2869573 17.0651694,22 11,22 L11,22 Z M10.9999948,12.9775281 C11.8576601,12.9775281 12.5529353,12.313501 12.5529353,11.494382 C12.5529353,10.6752631 11.8576601,10.011236 10.9999948,10.011236 C10.1423295,10.011236 9.44705437,10.6752631 9.44705437,11.494382 C9.44705437,12.313501 10.1423295,12.9775281 10.9999948,12.9775281 Z M11.6470534,1.25429663 L11.6470534,8.98142833 C11.9169336,9.04497625 12.169183,9.14745171 12.4007782,9.28172581 L18.1165722,3.82281889 C16.3104817,2.2917672 14.0562023,1.38990562 11.6470534,1.25429663 Z M10.3529362,8.98143827 L10.3529362,0.617977534 C10.3529362,0.277120904 10.643098,0 10.9999948,0 C14.2127905,0 17.2334978,1.19455551 19.507044,3.36363687 C19.5081828,3.36466518 19.5096943,3.36496181 19.5108332,3.36604944 C19.5976528,3.44933305 19.6434646,3.55235237 19.6703823,3.65910923 C19.70229,3.78439551 19.7037497,3.91547596 19.6525027,4.03598652 C19.6210299,4.11057889 19.5738307,4.18046473 19.5108332,4.24086832 L13.3167646,10.1565546 C13.5659183,10.5485798 13.7176406,11.0033124 13.7176406,11.494382 C13.7176406,12.9253906 12.4983443,14.0898877 10.9999948,14.0898877 C9.50164536,14.0898877 8.28234904,12.9253906 8.28234904,11.494382 C8.28234904,10.2773816 9.16750444,9.26054649 10.3529362,8.98143827 Z\" />\n ) : (\n <path d=\"M16.5,0 C19.5375767,0 22,2.46242333 22,5.5 L22,16.5 C22,19.53754 19.5375767,22 16.5,22 L5.5,22 C2.46242333,22 0,19.53754 0,16.5 L0,5.5 C0,2.46242333 2.46242333,0 5.5,0 Z M9.13388974,4.1556591 C9.05350946,3.91160741 8.78280865,3.77545461 8.52499728,3.85222225 C5.07107138,4.88854091 2.75,7.90987259 2.75,11.3707865 C2.75,15.715218 6.45112296,19.25 11.0000039,19.25 C15.5488771,19.25 19.25,15.715218 19.25,11.3707865 C19.25,9.98612882 18.8685823,8.62392586 18.1459525,7.43117978 C18.0117319,7.20884877 17.7137382,7.13353461 17.4832197,7.26171552 C17.2511871,7.38990383 17.1715678,7.67305866 17.3057807,7.89466293 C17.9427347,8.946918 18.2794045,10.1490746 18.2794045,11.3707865 C18.2794045,15.2039405 15.0135319,18.3230337 10.9999961,18.3230337 C6.98646035,18.3230337 3.72058777,15.2039405 3.72058777,11.3707865 C3.72058777,8.31687012 5.76792234,5.65111528 8.81617361,4.73718585 C9.07170996,4.66041821 9.2142699,4.39971079 9.13388974,4.1556591 Z M9.09067137,7.28488967 C8.95569751,7.0632854 8.6599711,6.9872445 8.42793851,7.1154254 C6.84163313,7.99097102 5.85588088,9.62185331 5.85588088,11.3707791 C5.85588088,14.0799827 8.16330192,16.2837005 10.9999961,16.2837005 C13.8366903,16.2837005 16.1441114,14.0799827 16.1441114,11.3707791 C16.1441114,10.8080883 16.0455384,10.2569735 15.8506599,9.73265912 C15.7604263,9.49150702 15.4844145,9.36549893 15.2311531,9.45095039 C14.9786528,9.53640185 14.846715,9.80145488 14.9361877,10.0426144 C15.0939043,10.4669944 15.1735235,10.9138218 15.1735235,11.3707865 C15.1735235,13.5687126 13.3013529,15.3567416 10.9999961,15.3567416 C8.69863935,15.3567416 6.82646867,13.5687126 6.82646867,11.3707865 C6.82646867,9.95209062 7.62644264,8.6289908 8.91323235,7.91783709 C9.14526495,7.78964877 9.22488421,7.50649394 9.09067137,7.28488967 Z M10.9999961,2.75 C10.7323235,2.75 10.5147022,2.95784068 10.5147022,3.21348315 L10.5147022,9.4860787 C9.62562833,9.69540987 8.96176178,10.4580362 8.96176178,11.3707865 C8.96176178,12.444043 9.87623402,13.3174158 10.9999961,13.3174158 C12.1237582,13.3174158 13.0382305,12.444043 13.0382305,11.3707865 C13.0382305,11.0024843 12.9244387,10.6614348 12.7375734,10.367416 L17.3831249,5.93065124 C17.4303731,5.88534855 17.4657724,5.83293417 17.489377,5.77698989 C17.5278123,5.68660697 17.5267175,5.58829664 17.5027867,5.49433192 C17.4825984,5.41426428 17.4482396,5.33699978 17.380283,5.27272765 C15.6751233,3.64591663 13.4095929,2.75 10.9999961,2.75 Z M10.9999961,10.258427 C11.6432451,10.258427 12.1647015,10.7564473 12.1647015,11.3707865 C12.1647015,11.9851258 11.6432451,12.4831461 10.9999961,12.4831461 C10.3567471,12.4831461 9.83529078,11.9851258 9.83529078,11.3707865 C9.83529078,10.7564473 10.3567471,10.258427 10.9999961,10.258427 Z M11.48529,3.69072247 C13.2921517,3.79242921 14.9828613,4.4688254 16.3374292,5.61711417 L12.0505836,9.71129436 C11.8768873,9.61058878 11.6877002,9.53373219 11.48529,9.48607125 Z\" />\n );\n\n return (\n <SvgIcon {...props} viewBox=\"0 0 24 24\">\n {path}\n </SvgIcon>\n );\n};\n"],"names":[],"mappings":";;;AAwBa,MAAA,kBAAA,GAAqB,CAChC,KACG,KAAA;AACH,EAAM,MAAA,OAAA,GAAU,MAAM,OAAW,IAAA,UAAA;AACjC,EAAM,MAAA,IAAA,GACJ,OAAY,KAAA,UAAA,mBACT,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAK,CAAE,EAAA,4qFAAA,EAA6qF,CAErrF,mBAAA,KAAA,CAAA,aAAA,CAAC,MAAK,EAAA,EAAA,CAAA,EAAE,8zFAA+zF,EAAA,CAAA;AAG30F,EAAA,2CACG,OAAS,EAAA,EAAA,GAAG,KAAO,EAAA,OAAA,EAAQ,eACzB,IACH,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"CostManagementIcon.esm.js","sources":["../../../src/components/icon/CostManagementIcon.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 React from 'react';\nimport SvgIcon, { SvgIconProps } from '@material-ui/core/SvgIcon';\n\n/**\n * The Cost Management icon.\n *\n * @public\n */\nexport const CostManagementIcon = (\n props: SvgIconProps & { variant?: 'outlined' | 'filled' },\n) => {\n const variant = props.variant ?? 'outlined';\n const path =\n variant === 'outlined' ? (\n <path d=\"M10.9999948,16.8089888 C14.0684705,16.8089888 16.564698,14.4249501 16.564698,11.494382 C16.564698,10.8850957 16.458539,10.2893259 16.2482502,9.72348591 C16.1289533,9.40193985 16.3048704,9.0485358 16.6415375,8.93460052 C16.9792193,8.82066524 17.3472351,8.98867602 17.4675466,9.31021216 C17.7273845,10.009298 17.8588152,10.7441178 17.8588152,11.4943721 C17.8588152,15.1066436 14.7822538,18.044934 10.9999948,18.044934 C7.21773589,18.044934 4.14117451,15.1066436 4.14117451,11.4943721 C4.14117451,9.16247108 5.45551085,6.98796136 7.57058467,5.8205672 C7.87996147,5.64965934 8.27426335,5.7510472 8.45422849,6.04651956 C8.63317894,6.34199192 8.52701993,6.7195317 8.21764314,6.89044945 C6.50192352,7.83865439 5.43529156,9.60278749 5.43529156,11.494382 C5.43529156,14.4249501 7.93151914,16.8089888 10.9999948,16.8089888 Z M11,22 C4.93483061,22 0,17.2869573 0,11.494382 C0,6.87983012 3.09476184,2.85138788 7.69999637,1.46962967 C8.04374487,1.36727281 8.40467928,1.54880989 8.51185298,1.87421213 C8.61902653,2.19961438 8.42894662,2.54722428 8.08823148,2.64958113 C4.02389645,3.86815371 1.29411703,7.4224935 1.29411703,11.494382 C1.29411703,16.605254 5.6486138,20.764045 11,20.764045 C16.3513759,20.764045 20.7058726,16.605254 20.7058726,11.494382 C20.7058726,9.86543278 20.2569796,8.26255733 19.4077076,6.85955058 C19.2287571,6.56407822 19.3349161,6.18653845 19.6442929,6.01562069 C19.9516509,5.84471282 20.3489758,5.9451317 20.5279367,6.24157304 C21.4914431,7.83190114 22,9.64817176 22,11.494382 C22,17.2869573 17.0651694,22 11,22 L11,22 Z M10.9999948,12.9775281 C11.8576601,12.9775281 12.5529353,12.313501 12.5529353,11.494382 C12.5529353,10.6752631 11.8576601,10.011236 10.9999948,10.011236 C10.1423295,10.011236 9.44705437,10.6752631 9.44705437,11.494382 C9.44705437,12.313501 10.1423295,12.9775281 10.9999948,12.9775281 Z M11.6470534,1.25429663 L11.6470534,8.98142833 C11.9169336,9.04497625 12.169183,9.14745171 12.4007782,9.28172581 L18.1165722,3.82281889 C16.3104817,2.2917672 14.0562023,1.38990562 11.6470534,1.25429663 Z M10.3529362,8.98143827 L10.3529362,0.617977534 C10.3529362,0.277120904 10.643098,0 10.9999948,0 C14.2127905,0 17.2334978,1.19455551 19.507044,3.36363687 C19.5081828,3.36466518 19.5096943,3.36496181 19.5108332,3.36604944 C19.5976528,3.44933305 19.6434646,3.55235237 19.6703823,3.65910923 C19.70229,3.78439551 19.7037497,3.91547596 19.6525027,4.03598652 C19.6210299,4.11057889 19.5738307,4.18046473 19.5108332,4.24086832 L13.3167646,10.1565546 C13.5659183,10.5485798 13.7176406,11.0033124 13.7176406,11.494382 C13.7176406,12.9253906 12.4983443,14.0898877 10.9999948,14.0898877 C9.50164536,14.0898877 8.28234904,12.9253906 8.28234904,11.494382 C8.28234904,10.2773816 9.16750444,9.26054649 10.3529362,8.98143827 Z\" />\n ) : (\n <path d=\"M16.5,0 C19.5375767,0 22,2.46242333 22,5.5 L22,16.5 C22,19.53754 19.5375767,22 16.5,22 L5.5,22 C2.46242333,22 0,19.53754 0,16.5 L0,5.5 C0,2.46242333 2.46242333,0 5.5,0 Z M9.13388974,4.1556591 C9.05350946,3.91160741 8.78280865,3.77545461 8.52499728,3.85222225 C5.07107138,4.88854091 2.75,7.90987259 2.75,11.3707865 C2.75,15.715218 6.45112296,19.25 11.0000039,19.25 C15.5488771,19.25 19.25,15.715218 19.25,11.3707865 C19.25,9.98612882 18.8685823,8.62392586 18.1459525,7.43117978 C18.0117319,7.20884877 17.7137382,7.13353461 17.4832197,7.26171552 C17.2511871,7.38990383 17.1715678,7.67305866 17.3057807,7.89466293 C17.9427347,8.946918 18.2794045,10.1490746 18.2794045,11.3707865 C18.2794045,15.2039405 15.0135319,18.3230337 10.9999961,18.3230337 C6.98646035,18.3230337 3.72058777,15.2039405 3.72058777,11.3707865 C3.72058777,8.31687012 5.76792234,5.65111528 8.81617361,4.73718585 C9.07170996,4.66041821 9.2142699,4.39971079 9.13388974,4.1556591 Z M9.09067137,7.28488967 C8.95569751,7.0632854 8.6599711,6.9872445 8.42793851,7.1154254 C6.84163313,7.99097102 5.85588088,9.62185331 5.85588088,11.3707791 C5.85588088,14.0799827 8.16330192,16.2837005 10.9999961,16.2837005 C13.8366903,16.2837005 16.1441114,14.0799827 16.1441114,11.3707791 C16.1441114,10.8080883 16.0455384,10.2569735 15.8506599,9.73265912 C15.7604263,9.49150702 15.4844145,9.36549893 15.2311531,9.45095039 C14.9786528,9.53640185 14.846715,9.80145488 14.9361877,10.0426144 C15.0939043,10.4669944 15.1735235,10.9138218 15.1735235,11.3707865 C15.1735235,13.5687126 13.3013529,15.3567416 10.9999961,15.3567416 C8.69863935,15.3567416 6.82646867,13.5687126 6.82646867,11.3707865 C6.82646867,9.95209062 7.62644264,8.6289908 8.91323235,7.91783709 C9.14526495,7.78964877 9.22488421,7.50649394 9.09067137,7.28488967 Z M10.9999961,2.75 C10.7323235,2.75 10.5147022,2.95784068 10.5147022,3.21348315 L10.5147022,9.4860787 C9.62562833,9.69540987 8.96176178,10.4580362 8.96176178,11.3707865 C8.96176178,12.444043 9.87623402,13.3174158 10.9999961,13.3174158 C12.1237582,13.3174158 13.0382305,12.444043 13.0382305,11.3707865 C13.0382305,11.0024843 12.9244387,10.6614348 12.7375734,10.367416 L17.3831249,5.93065124 C17.4303731,5.88534855 17.4657724,5.83293417 17.489377,5.77698989 C17.5278123,5.68660697 17.5267175,5.58829664 17.5027867,5.49433192 C17.4825984,5.41426428 17.4482396,5.33699978 17.380283,5.27272765 C15.6751233,3.64591663 13.4095929,2.75 10.9999961,2.75 Z M10.9999961,10.258427 C11.6432451,10.258427 12.1647015,10.7564473 12.1647015,11.3707865 C12.1647015,11.9851258 11.6432451,12.4831461 10.9999961,12.4831461 C10.3567471,12.4831461 9.83529078,11.9851258 9.83529078,11.3707865 C9.83529078,10.7564473 10.3567471,10.258427 10.9999961,10.258427 Z M11.48529,3.69072247 C13.2921517,3.79242921 14.9828613,4.4688254 16.3374292,5.61711417 L12.0505836,9.71129436 C11.8768873,9.61058878 11.6877002,9.53373219 11.48529,9.48607125 Z\" />\n );\n\n return (\n <SvgIcon {...props} viewBox=\"0 0 24 24\">\n {path}\n </SvgIcon>\n );\n};\n"],"names":[],"mappings":";;;AAwBO,MAAM,kBAAA,GAAqB,CAChC,KAAA,KACG;AACH,EAAA,MAAM,OAAA,GAAU,MAAM,OAAA,IAAW,UAAA;AACjC,EAAA,MAAM,IAAA,GACJ,OAAA,KAAY,UAAA,mBACV,KAAA,CAAA,aAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,4qFAAA,EAA6qF,CAAA,mBAErrF,KAAA,CAAA,aAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,8zFAAA,EAA+zF,CAAA;AAG30F,EAAA,2CACG,OAAA,EAAA,EAAS,GAAG,KAAA,EAAO,OAAA,EAAQ,eACzB,IACH,CAAA;AAEJ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CostManagementIconFilled.esm.js","sources":["../../../src/components/icon/CostManagementIconFilled.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 React from 'react';\nimport type { SvgIconProps } from '@material-ui/core/SvgIcon';\nimport { CostManagementIcon } from './CostManagementIcon';\n\n/**\n * The filled variant of the Cost Management icon.\n *\n * @public\n */\nexport const CostManagementIconFilled = (props: SvgIconProps) => {\n return <CostManagementIcon variant=\"filled\" {...props} />;\n};\n"],"names":[],"mappings":";;;AAyBa,MAAA,wBAAA,GAA2B,CAAC,KAAwB,KAAA;AAC/D,EAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,kBAAA,EAAA,EAAmB,OAAQ,EAAA,QAAA,EAAU,GAAG,KAAO,EAAA,CAAA;AACzD;;;;"}
1
+ {"version":3,"file":"CostManagementIconFilled.esm.js","sources":["../../../src/components/icon/CostManagementIconFilled.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 React from 'react';\nimport type { SvgIconProps } from '@material-ui/core/SvgIcon';\nimport { CostManagementIcon } from './CostManagementIcon';\n\n/**\n * The filled variant of the Cost Management icon.\n *\n * @public\n */\nexport const CostManagementIconFilled = (props: SvgIconProps) => {\n return <CostManagementIcon variant=\"filled\" {...props} />;\n};\n"],"names":[],"mappings":";;;AAyBO,MAAM,wBAAA,GAA2B,CAAC,KAAA,KAAwB;AAC/D,EAAA,uBAAO,KAAA,CAAA,aAAA,CAAC,kBAAA,EAAA,EAAmB,OAAA,EAAQ,QAAA,EAAU,GAAG,KAAA,EAAO,CAAA;AACzD;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CostManagementIconOutlined.esm.js","sources":["../../../src/components/icon/CostManagementIconOutlined.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 React from 'react';\nimport type { SvgIconProps } from '@material-ui/core/SvgIcon';\nimport { CostManagementIcon } from './CostManagementIcon';\n\n/**\n * The outlined variant of the Cost Management icon.\n *\n * @public\n */\nexport const CostManagementIconOutlined = (props: SvgIconProps) => {\n return <CostManagementIcon variant=\"outlined\" {...props} />;\n};\n"],"names":[],"mappings":";;;AAyBa,MAAA,0BAAA,GAA6B,CAAC,KAAwB,KAAA;AACjE,EAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,kBAAA,EAAA,EAAmB,OAAQ,EAAA,UAAA,EAAY,GAAG,KAAO,EAAA,CAAA;AAC3D;;;;"}
1
+ {"version":3,"file":"CostManagementIconOutlined.esm.js","sources":["../../../src/components/icon/CostManagementIconOutlined.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 React from 'react';\nimport type { SvgIconProps } from '@material-ui/core/SvgIcon';\nimport { CostManagementIcon } from './CostManagementIcon';\n\n/**\n * The outlined variant of the Cost Management icon.\n *\n * @public\n */\nexport const CostManagementIconOutlined = (props: SvgIconProps) => {\n return <CostManagementIcon variant=\"outlined\" {...props} />;\n};\n"],"names":[],"mappings":";;;AAyBO,MAAM,0BAAA,GAA6B,CAAC,KAAA,KAAwB;AACjE,EAAA,uBAAO,KAAA,CAAA,aAAA,CAAC,kBAAA,EAAA,EAAmB,OAAA,EAAQ,UAAA,EAAY,GAAG,KAAA,EAAO,CAAA;AAC3D;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"currencies.esm.js","sources":["../../src/constants/currencies.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\nexport const CURRENCY_SYMBOLS: Record<string, string> = {\n USD: '$',\n EUR: '€',\n GBP: '£',\n JPY: '¥',\n AUD: 'A$',\n CAD: 'CA$',\n CHF: 'CHF',\n CNY: 'CN¥',\n INR: '₹',\n MXN: '$',\n NZD: 'NZ$',\n SEK: 'SEK',\n SGD: 'SGD',\n HKD: 'HK$',\n TWD: 'NT$',\n THB: '฿',\n RUB: '₽',\n BRL: 'R$',\n ZAR: 'ZAR',\n PLN: 'zł',\n KRW: '₩',\n TRY: '₺',\n IDR: 'Rp',\n MYR: 'RM',\n PHP: '₱',\n VND: '₫',\n HUF: 'Ft',\n CZK: 'Kč',\n NOK: 'NOK',\n DKK: 'DKK',\n NGN: '₦',\n};\n"],"names":[],"mappings":"AAgBO,MAAM,gBAA2C,GAAA;AAAA,EACtD,GAAK,EAAA,GAAA;AAAA,EACL,GAAK,EAAA,QAAA;AAAA,EACL,GAAK,EAAA,MAAA;AAAA,EACL,GAAK,EAAA,MAAA;AAAA,EACL,GAAK,EAAA,IAAA;AAAA,EACL,GAAK,EAAA,KAAA;AAAA,EACL,GAAK,EAAA,KAAA;AAAA,EACL,GAAK,EAAA,QAAA;AAAA,EACL,GAAK,EAAA,QAAA;AAAA,EACL,GAAK,EAAA,GAAA;AAAA,EACL,GAAK,EAAA,KAAA;AAAA,EACL,GAAK,EAAA,KAAA;AAAA,EACL,GAAK,EAAA,KAAA;AAAA,EACL,GAAK,EAAA,KAAA;AAAA,EACL,GAAK,EAAA,KAAA;AAAA,EACL,GAAK,EAAA,QAAA;AAAA,EACL,GAAK,EAAA,QAAA;AAAA,EACL,GAAK,EAAA,IAAA;AAAA,EACL,GAAK,EAAA,KAAA;AAAA,EACL,GAAK,EAAA,SAAA;AAAA,EACL,GAAK,EAAA,QAAA;AAAA,EACL,GAAK,EAAA,QAAA;AAAA,EACL,GAAK,EAAA,IAAA;AAAA,EACL,GAAK,EAAA,IAAA;AAAA,EACL,GAAK,EAAA,QAAA;AAAA,EACL,GAAK,EAAA,QAAA;AAAA,EACL,GAAK,EAAA,IAAA;AAAA,EACL,GAAK,EAAA,SAAA;AAAA,EACL,GAAK,EAAA,KAAA;AAAA,EACL,GAAK,EAAA,KAAA;AAAA,EACL,GAAK,EAAA;AACP;;;;"}
1
+ {"version":3,"file":"currencies.esm.js","sources":["../../src/constants/currencies.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\nexport const CURRENCY_SYMBOLS: Record<string, string> = {\n USD: '$',\n EUR: '€',\n GBP: '£',\n JPY: '¥',\n AUD: 'A$',\n CAD: 'CA$',\n CHF: 'CHF',\n CNY: 'CN¥',\n INR: '₹',\n MXN: '$',\n NZD: 'NZ$',\n SEK: 'SEK',\n SGD: 'SGD',\n HKD: 'HK$',\n TWD: 'NT$',\n THB: '฿',\n RUB: '₽',\n BRL: 'R$',\n ZAR: 'ZAR',\n PLN: 'zł',\n KRW: '₩',\n TRY: '₺',\n IDR: 'Rp',\n MYR: 'RM',\n PHP: '₱',\n VND: '₫',\n HUF: 'Ft',\n CZK: 'Kč',\n NOK: 'NOK',\n DKK: 'DKK',\n NGN: '₦',\n};\n"],"names":[],"mappings":"AAgBO,MAAM,gBAAA,GAA2C;AAAA,EACtD,GAAA,EAAK,GAAA;AAAA,EACL,GAAA,EAAK,QAAA;AAAA,EACL,GAAA,EAAK,MAAA;AAAA,EACL,GAAA,EAAK,MAAA;AAAA,EACL,GAAA,EAAK,IAAA;AAAA,EACL,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK,QAAA;AAAA,EACL,GAAA,EAAK,QAAA;AAAA,EACL,GAAA,EAAK,GAAA;AAAA,EACL,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK,QAAA;AAAA,EACL,GAAA,EAAK,QAAA;AAAA,EACL,GAAA,EAAK,IAAA;AAAA,EACL,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,QAAA;AAAA,EACL,GAAA,EAAK,QAAA;AAAA,EACL,GAAA,EAAK,IAAA;AAAA,EACL,GAAA,EAAK,IAAA;AAAA,EACL,GAAA,EAAK,QAAA;AAAA,EACL,GAAA,EAAK,QAAA;AAAA,EACL,GAAA,EAAK,IAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK;AACP;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePatternFlyTheme.esm.js","sources":["../../src/hooks/usePatternFlyTheme.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 { useEffect } from 'react';\nimport { useTheme } from '@material-ui/core/styles';\n\n/**\n * Hook to automatically sync Backstage theme with PatternFly dark theme.\n * Applies 'pf-v6-theme-dark' class to HTML element when Backstage is in dark mode.\n */\nexport const usePatternFlyTheme = () => {\n const muiTheme = useTheme();\n\n useEffect(() => {\n // Detect if Backstage is using dark theme\n const isDarkByType = muiTheme.palette.type === 'dark';\n const isDarkByMode = (muiTheme.palette as any).mode === 'dark';\n\n // Check background color for dark theme indicators\n const backgroundColor = muiTheme.palette.background?.default;\n const isDarkByBackground =\n backgroundColor &&\n (backgroundColor === '#303030' ||\n backgroundColor === '#121212' ||\n (backgroundColor.startsWith('#') &&\n parseInt(backgroundColor.slice(1), 16) < 0x808080));\n\n const isDark = isDarkByType || isDarkByMode || isDarkByBackground;\n\n // Apply PatternFly dark theme class to HTML when Backstage is in dark mode\n const html = document.documentElement;\n if (isDark) {\n html.classList.add('pf-v6-theme-dark');\n } else {\n html.classList.remove('pf-v6-theme-dark');\n }\n }, [muiTheme]);\n};\n"],"names":[],"mappings":";;;AAuBO,MAAM,qBAAqB,MAAM;AACtC,EAAA,MAAM,WAAW,QAAS,EAAA;AAE1B,EAAA,SAAA,CAAU,MAAM;AAEd,IAAM,MAAA,YAAA,GAAe,QAAS,CAAA,OAAA,CAAQ,IAAS,KAAA,MAAA;AAC/C,IAAM,MAAA,YAAA,GAAgB,QAAS,CAAA,OAAA,CAAgB,IAAS,KAAA,MAAA;AAGxD,IAAM,MAAA,eAAA,GAAkB,QAAS,CAAA,OAAA,CAAQ,UAAY,EAAA,OAAA;AACrD,IAAA,MAAM,qBACJ,eACC,KAAA,eAAA,KAAoB,SACnB,IAAA,eAAA,KAAoB,aACnB,eAAgB,CAAA,UAAA,CAAW,GAAG,CAAA,IAC7B,SAAS,eAAgB,CAAA,KAAA,CAAM,CAAC,CAAA,EAAG,EAAE,CAAI,GAAA,OAAA,CAAA;AAE/C,IAAM,MAAA,MAAA,GAAS,gBAAgB,YAAgB,IAAA,kBAAA;AAG/C,IAAA,MAAM,OAAO,QAAS,CAAA,eAAA;AACtB,IAAA,IAAI,MAAQ,EAAA;AACV,MAAK,IAAA,CAAA,SAAA,CAAU,IAAI,kBAAkB,CAAA;AAAA,KAChC,MAAA;AACL,MAAK,IAAA,CAAA,SAAA,CAAU,OAAO,kBAAkB,CAAA;AAAA;AAC1C,GACF,EAAG,CAAC,QAAQ,CAAC,CAAA;AACf;;;;"}
1
+ {"version":3,"file":"usePatternFlyTheme.esm.js","sources":["../../src/hooks/usePatternFlyTheme.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 { useEffect } from 'react';\nimport { useTheme } from '@material-ui/core/styles';\n\n/**\n * Hook to automatically sync Backstage theme with PatternFly dark theme.\n * Applies 'pf-v6-theme-dark' class to HTML element when Backstage is in dark mode.\n */\nexport const usePatternFlyTheme = () => {\n const muiTheme = useTheme();\n\n useEffect(() => {\n // Detect if Backstage is using dark theme\n const isDarkByType = muiTheme.palette.type === 'dark';\n const isDarkByMode = (muiTheme.palette as any).mode === 'dark';\n\n // Check background color for dark theme indicators\n const backgroundColor = muiTheme.palette.background?.default;\n const isDarkByBackground =\n backgroundColor &&\n (backgroundColor === '#303030' ||\n backgroundColor === '#121212' ||\n (backgroundColor.startsWith('#') &&\n parseInt(backgroundColor.slice(1), 16) < 0x808080));\n\n const isDark = isDarkByType || isDarkByMode || isDarkByBackground;\n\n // Apply PatternFly dark theme class to HTML when Backstage is in dark mode\n const html = document.documentElement;\n if (isDark) {\n html.classList.add('pf-v6-theme-dark');\n } else {\n html.classList.remove('pf-v6-theme-dark');\n }\n }, [muiTheme]);\n};\n"],"names":[],"mappings":";;;AAuBO,MAAM,qBAAqB,MAAM;AACtC,EAAA,MAAM,WAAW,QAAA,EAAS;AAE1B,EAAA,SAAA,CAAU,MAAM;AAEd,IAAA,MAAM,YAAA,GAAe,QAAA,CAAS,OAAA,CAAQ,IAAA,KAAS,MAAA;AAC/C,IAAA,MAAM,YAAA,GAAgB,QAAA,CAAS,OAAA,CAAgB,IAAA,KAAS,MAAA;AAGxD,IAAA,MAAM,eAAA,GAAkB,QAAA,CAAS,OAAA,CAAQ,UAAA,EAAY,OAAA;AACrD,IAAA,MAAM,qBACJ,eAAA,KACC,eAAA,KAAoB,SAAA,IACnB,eAAA,KAAoB,aACnB,eAAA,CAAgB,UAAA,CAAW,GAAG,CAAA,IAC7B,SAAS,eAAA,CAAgB,KAAA,CAAM,CAAC,CAAA,EAAG,EAAE,CAAA,GAAI,OAAA,CAAA;AAE/C,IAAA,MAAM,MAAA,GAAS,gBAAgB,YAAA,IAAgB,kBAAA;AAG/C,IAAA,MAAM,OAAO,QAAA,CAAS,eAAA;AACtB,IAAA,IAAI,MAAA,EAAQ;AACV,MAAA,IAAA,CAAK,SAAA,CAAU,IAAI,kBAAkB,CAAA;AAAA,IACvC,CAAA,MAAO;AACL,MAAA,IAAA,CAAK,SAAA,CAAU,OAAO,kBAAkB,CAAA;AAAA,IAC1C;AAAA,EACF,CAAA,EAAG,CAAC,QAAQ,CAAC,CAAA;AACf;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useThemeBackgroundColor.esm.js","sources":["../../src/hooks/useThemeBackgroundColor.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 { useTheme } from '@material-ui/core/styles';\n\n/**\n * Hook that returns the appropriate background color based on the current theme mode.\n * @returns Object with backgroundColor and filterTableBackgroundColor strings\n */\nexport const useThemeBackgroundColor = (): {\n backgroundColor: string;\n filterTableBackgroundColor: string;\n} => {\n const theme = useTheme();\n const isDarkMode = (theme.palette as any).mode === 'dark';\n\n return {\n backgroundColor: isDarkMode ? '#292929' : '#FFFFFF',\n filterTableBackgroundColor: isDarkMode ? '#262626' : '#F2F2F2',\n };\n};\n"],"names":[],"mappings":";;AAsBO,MAAM,0BAA0B,MAGlC;AACH,EAAA,MAAM,QAAQ,QAAS,EAAA;AACvB,EAAM,MAAA,UAAA,GAAc,KAAM,CAAA,OAAA,CAAgB,IAAS,KAAA,MAAA;AAEnD,EAAO,OAAA;AAAA,IACL,eAAA,EAAiB,aAAa,SAAY,GAAA,SAAA;AAAA,IAC1C,0BAAA,EAA4B,aAAa,SAAY,GAAA;AAAA,GACvD;AACF;;;;"}
1
+ {"version":3,"file":"useThemeBackgroundColor.esm.js","sources":["../../src/hooks/useThemeBackgroundColor.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 { useTheme } from '@material-ui/core/styles';\n\n/**\n * Hook that returns the appropriate background color based on the current theme mode.\n * @returns Object with backgroundColor and filterTableBackgroundColor strings\n */\nexport const useThemeBackgroundColor = (): {\n backgroundColor: string;\n filterTableBackgroundColor: string;\n} => {\n const theme = useTheme();\n const isDarkMode = (theme.palette as any).mode === 'dark';\n\n return {\n backgroundColor: isDarkMode ? '#292929' : '#FFFFFF',\n filterTableBackgroundColor: isDarkMode ? '#262626' : '#F2F2F2',\n };\n};\n"],"names":[],"mappings":";;AAsBO,MAAM,0BAA0B,MAGlC;AACH,EAAA,MAAM,QAAQ,QAAA,EAAS;AACvB,EAAA,MAAM,UAAA,GAAc,KAAA,CAAM,OAAA,CAAgB,IAAA,KAAS,MAAA;AAEnD,EAAA,OAAO;AAAA,IACL,eAAA,EAAiB,aAAa,SAAA,GAAY,SAAA;AAAA,IAC1C,0BAAA,EAA4B,aAAa,SAAA,GAAY;AAAA,GACvD;AACF;;;;"}
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
8
8
  * @public
9
9
  */
10
10
  declare const CostManagementIcon: (props: SvgIconProps & {
11
- variant?: 'outlined' | 'filled';
11
+ variant?: "outlined" | "filled";
12
12
  }) => React.JSX.Element;
13
13
 
14
14
  /**
@@ -31,7 +31,7 @@ declare const CostManagementIconFilled: (props: SvgIconProps) => React.JSX.Eleme
31
31
  * @public
32
32
  */
33
33
  declare const AnalyticsIcon: (props: SvgIconProps & {
34
- variant?: 'outlined' | 'filled';
34
+ variant?: "outlined" | "filled";
35
35
  }) => React.JSX.Element;
36
36
 
37
37
  /**