@pega/react-sdk-components 0.25.2 → 0.25.3
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/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
- package/lib/bridge/helpers/sdk_component_map.js +0 -6
- package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
- package/lib/bridge/react_pconnect.js +11 -13
- package/lib/bridge/react_pconnect.js.map +1 -1
- package/lib/components/designSystemExtension/Banner/Banner.css +1 -1
- package/lib/components/designSystemExtension/Banner/Banner.js +2 -2
- package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +5 -8
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +6 -8
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +3 -5
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +2 -2
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +4 -6
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
- package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
- package/lib/components/designSystemExtension/Operator/Operator.js +3 -4
- package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +27 -3
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css +4 -4
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +1 -1
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
- package/lib/components/field/CancelAlert/CancelAlert.css +4 -4
- package/lib/components/field/CancelAlert/CancelAlert.js +2 -2
- package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
- package/lib/components/field/Checkbox/Checkbox.d.ts +8 -0
- package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/field/Checkbox/Checkbox.js +52 -3
- package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
- package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
- package/lib/components/field/Currency/currency-utils.js +0 -2
- package/lib/components/field/Currency/currency-utils.js.map +1 -1
- package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
- package/lib/components/field/Dropdown/Dropdown.js +2 -6
- package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
- package/lib/components/field/Group/Group.js +2 -2
- package/lib/components/field/Group/Group.js.map +1 -1
- package/lib/components/field/Location/Location.d.ts +10 -0
- package/lib/components/field/Location/Location.d.ts.map +1 -0
- package/lib/components/field/Location/Location.js +157 -0
- package/lib/components/field/Location/Location.js.map +1 -0
- package/lib/components/field/Location/index.d.ts +2 -0
- package/lib/components/field/Location/index.d.ts.map +1 -0
- package/lib/components/field/Location/index.js +2 -0
- package/lib/components/field/Location/index.js.map +1 -0
- package/lib/components/field/ObjectReference/ObjectReference.d.ts +16 -0
- package/lib/components/field/ObjectReference/ObjectReference.d.ts.map +1 -0
- package/lib/components/field/ObjectReference/ObjectReference.js +165 -0
- package/lib/components/field/ObjectReference/ObjectReference.js.map +1 -0
- package/lib/components/field/ObjectReference/index.d.ts +2 -0
- package/lib/components/field/ObjectReference/index.d.ts.map +1 -0
- package/lib/components/field/ObjectReference/index.js +2 -0
- package/lib/components/field/ObjectReference/index.js.map +1 -0
- package/lib/components/field/ObjectReference/utils.d.ts +17 -0
- package/lib/components/field/ObjectReference/utils.d.ts.map +1 -0
- package/lib/components/field/ObjectReference/utils.js +99 -0
- package/lib/components/field/ObjectReference/utils.js.map +1 -0
- package/lib/components/field/RadioButtons/RadioButtons.d.ts +7 -0
- package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
- package/lib/components/field/RadioButtons/RadioButtons.js +12 -1
- package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
- package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
- package/lib/components/field/ScalarList/ScalarList.js +1 -2
- package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
- package/lib/components/field/SelectableCard/SelectableCard.d.ts +2 -0
- package/lib/components/field/SelectableCard/SelectableCard.d.ts.map +1 -0
- package/lib/components/field/SelectableCard/SelectableCard.js +57 -0
- package/lib/components/field/SelectableCard/SelectableCard.js.map +1 -0
- package/lib/components/field/SelectableCard/index.d.ts +2 -0
- package/lib/components/field/SelectableCard/index.d.ts.map +1 -0
- package/lib/components/field/SelectableCard/index.js +2 -0
- package/lib/components/field/SelectableCard/index.js.map +1 -0
- package/lib/components/field/SelectableCard/utils.d.ts +14 -0
- package/lib/components/field/SelectableCard/utils.d.ts.map +1 -0
- package/lib/components/field/SelectableCard/utils.js +185 -0
- package/lib/components/field/SelectableCard/utils.js.map +1 -0
- package/lib/components/field/SemanticLink/SemanticLink.d.ts +9 -1
- package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
- package/lib/components/field/SemanticLink/SemanticLink.js +128 -15
- package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
- package/lib/components/field/SemanticLink/utils.js +1 -1
- package/lib/components/field/SemanticLink/utils.js.map +1 -1
- package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
- package/lib/components/field/TextContent/TextContent.js +0 -1
- package/lib/components/field/TextContent/TextContent.js.map +1 -1
- package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
- package/lib/components/field/UserReference/UserReference.js +0 -1
- package/lib/components/field/UserReference/UserReference.js.map +1 -1
- package/lib/components/helpers/attachmentHelpers.d.ts +14 -11
- package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
- package/lib/components/helpers/attachmentHelpers.js +52 -30
- package/lib/components/helpers/attachmentHelpers.js.map +1 -1
- package/lib/components/helpers/common-utils.d.ts +1 -1
- package/lib/components/helpers/common-utils.js.map +1 -1
- package/lib/components/helpers/data_page.d.ts.map +1 -1
- package/lib/components/helpers/data_page.js +0 -1
- package/lib/components/helpers/data_page.js.map +1 -1
- package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
- package/lib/components/helpers/formatters/CurrencyMap.js +0 -1
- package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
- package/lib/components/helpers/simpleTableHelpers.d.ts +15 -1
- package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
- package/lib/components/helpers/simpleTableHelpers.js +110 -4
- package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
- package/lib/components/helpers/utils.d.ts +1 -0
- package/lib/components/helpers/utils.d.ts.map +1 -1
- package/lib/components/helpers/utils.js +7 -1
- package/lib/components/helpers/utils.js.map +1 -1
- package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
- package/lib/components/helpers/versionHelpers.js +0 -1
- package/lib/components/helpers/versionHelpers.js.map +1 -1
- package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
- package/lib/components/infra/ActionButtons/ActionButtons.js +12 -7
- package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
- package/lib/components/infra/Assignment/Assignment.js +0 -1
- package/lib/components/infra/Assignment/Assignment.js.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +13 -77
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +0 -1
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +0 -2
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +3 -4
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
- package/lib/components/infra/Containers/container-helpers.d.ts +1 -0
- package/lib/components/infra/Containers/container-helpers.d.ts.map +1 -1
- package/lib/components/infra/Containers/container-helpers.js +46 -1
- package/lib/components/infra/Containers/container-helpers.js.map +1 -1
- package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
- package/lib/components/infra/DashboardFilter/DashboardFilter.js +0 -2
- package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
- package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
- package/lib/components/infra/DashboardFilter/filterUtils.js +2 -3
- package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
- package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
- package/lib/components/infra/DeferLoad/DeferLoad.js +1 -3
- package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +0 -2
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/lib/components/infra/MultiStep/MultiStep.css +8 -8
- package/lib/components/infra/NavBar/NavBar.css +1 -1
- package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
- package/lib/components/infra/NavBar/NavBar.js +2 -3
- package/lib/components/infra/NavBar/NavBar.js.map +1 -1
- package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
- package/lib/components/infra/Reference/Reference.js +2 -3
- package/lib/components/infra/Reference/Reference.js.map +1 -1
- package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
- package/lib/components/infra/RootContainer/RootContainer.js +0 -1
- package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
- package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts.map +1 -1
- package/lib/components/template/AdvancedSearch/AdvancedSearch.js +0 -1
- package/lib/components/template/AdvancedSearch/AdvancedSearch.js.map +1 -1
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts +0 -1
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts.map +1 -1
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js +2 -8
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js.map +1 -1
- package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts.map +1 -1
- package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js +3 -5
- package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js.map +1 -1
- package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js +0 -1
- package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js.map +1 -1
- package/lib/components/template/AppShell/AppShell.css +1 -1
- package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
- package/lib/components/template/AppShell/AppShell.js +4 -9
- package/lib/components/template/AppShell/AppShell.js.map +1 -1
- package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
- package/lib/components/template/CaseSummary/CaseSummary.js +0 -1
- package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
- package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
- package/lib/components/template/CaseView/CaseView.js +4 -5
- package/lib/components/template/CaseView/CaseView.js.map +1 -1
- package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
- package/lib/components/template/Confirmation/Confirmation.js +0 -1
- package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
- package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
- package/lib/components/template/DataReference/DataReference.js +8 -12
- package/lib/components/template/DataReference/DataReference.js.map +1 -1
- package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts +1 -1
- package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts.map +1 -1
- package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js.map +1 -1
- package/lib/components/template/DataReference/SearchForm.d.ts.map +1 -1
- package/lib/components/template/DataReference/SearchForm.js +3 -2
- package/lib/components/template/DataReference/SearchForm.js.map +1 -1
- package/lib/components/template/DataReference/utils.d.ts +4 -4
- package/lib/components/template/DataReference/utils.d.ts.map +1 -1
- package/lib/components/template/DataReference/utils.js +1 -1
- package/lib/components/template/DataReference/utils.js.map +1 -1
- package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
- package/lib/components/template/Details/Details/Details.js +2 -3
- package/lib/components/template/Details/Details/Details.js.map +1 -1
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +2 -3
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +2 -3
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +1 -2
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
- package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
- package/lib/components/template/InlineDashboard/InlineDashboard.js +2 -2
- package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
- package/lib/components/template/ListView/ListView.d.ts.map +1 -1
- package/lib/components/template/ListView/ListView.js +2 -13
- package/lib/components/template/ListView/ListView.js.map +1 -1
- package/lib/components/template/ListView/hooks.d.ts.map +1 -1
- package/lib/components/template/ListView/hooks.js +2 -5
- package/lib/components/template/ListView/hooks.js.map +1 -1
- package/lib/components/template/ListView/utils.js +0 -1
- package/lib/components/template/ListView/utils.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +2 -3
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
- package/lib/components/template/OneColumn/OneColumn/OneColumn.js +2 -2
- package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.js +0 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +1 -2
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +32 -30
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +1 -2
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +1 -2
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +2 -3
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
- package/lib/components/template/WssNavBar/WssNavBar.css +1 -1
- package/lib/components/template/WssNavBar/WssNavBar.js +2 -2
- package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
- package/lib/components/widget/Attachment/Attachment.css +6 -8
- package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
- package/lib/components/widget/Attachment/Attachment.js +52 -51
- package/lib/components/widget/Attachment/Attachment.js.map +1 -1
- package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -14
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +1 -1
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +7 -6
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +3 -4
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
- package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
- package/lib/components/widget/Followers/Followers.js +0 -2
- package/lib/components/widget/Followers/Followers.js.map +1 -1
- package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
- package/lib/components/widget/QuickCreate/QuickCreate.js +0 -1
- package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
- package/lib/components/widget/SummaryItem/SummaryItem.css +9 -11
- package/lib/components/widget/SummaryItem/SummaryItem.js +1 -1
- package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
- package/lib/components/widget/ToDo/ToDo.css +1 -13
- package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
- package/lib/components/widget/ToDo/ToDo.js +11 -5
- package/lib/components/widget/ToDo/ToDo.js.map +1 -1
- package/lib/hooks/useGetTabsCount.d.ts.map +1 -1
- package/lib/hooks/useGetTabsCount.js +2 -3
- package/lib/hooks/useGetTabsCount.js.map +1 -1
- package/lib/sdk-pega-component-map.d.ts +6 -0
- package/lib/sdk-pega-component-map.d.ts.map +1 -1
- package/lib/sdk-pega-component-map.js +7 -0
- package/lib/sdk-pega-component-map.js.map +1 -1
- package/lib/theme.d.ts +24 -1
- package/lib/theme.d.ts.map +1 -1
- package/lib/theme.js +189 -2
- package/lib/theme.js.map +1 -1
- package/lib/types/PConnProps.d.ts +1 -1
- package/package.json +2 -1
package/lib/theme.js
CHANGED
|
@@ -1,7 +1,91 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
1
2
|
import { createTheme } from '@mui/material';
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
import { Theme } from '@mui/material/styles';
|
|
4
|
+
import { getSdkConfig } from '@pega/auth/lib/sdk-auth-manager';
|
|
5
|
+
const lightThemeColours = {
|
|
6
|
+
':root': {
|
|
7
|
+
'--app-primary-color': '#007bff' /* was #673ab7; */,
|
|
8
|
+
'--app-primary-dark-color': '#0048cc' /* was #4527A0; */,
|
|
9
|
+
'--app-primary-light-color': '#33aeff' /* was #B499FC; */,
|
|
10
|
+
'--app-secondary-color': '#FFC400',
|
|
11
|
+
'--app-neutral-color': 'grey',
|
|
12
|
+
'--app-neutral-light-color': 'lightgrey',
|
|
13
|
+
'--app-neutral-dark-color': '#262626',
|
|
14
|
+
'--app-error-color': '#f44336',
|
|
15
|
+
'--app-error-light-color': '#e57373',
|
|
16
|
+
'--app-error-dark-color': '#d32f2f',
|
|
17
|
+
'--app-warning-color': '#ff9800',
|
|
18
|
+
'--app-warning-color-light': '#ffb74d',
|
|
19
|
+
'--app-warning-color-dark': '#f57c00',
|
|
20
|
+
'--app-background-color': 'whitesmoke',
|
|
21
|
+
'--app-form-color': 'white',
|
|
22
|
+
/* App Navigation */
|
|
23
|
+
'--app-nav-bg': '#262626' /*! default */,
|
|
24
|
+
'--app-nav-color': '#d9d9d9' /* invert( var(--app-nav-bg)) !default */,
|
|
25
|
+
/* Few custom colors */
|
|
26
|
+
'--modal-background-color': 'rgba(100, 100, 100, 0.4)',
|
|
27
|
+
'--modal-top-color': 'white',
|
|
28
|
+
'--modal-border-color': 'black',
|
|
29
|
+
'--modal-box-shadow-color': '#777',
|
|
30
|
+
'--utility-count-background-color': '#65b5f5',
|
|
31
|
+
'--utility-card-border-color': '#f5f5f5',
|
|
32
|
+
'--link-button-color': '#3f51b5',
|
|
33
|
+
'--banner-text-color': 'rgb(0, 0, 0)',
|
|
34
|
+
'--app-text-color': 'white',
|
|
35
|
+
'--utility-background-color': 'white',
|
|
36
|
+
'--table-header-background': '#f5f5f5',
|
|
37
|
+
'--step-line-color': 'rgba(0, 0, 0, 0.12)',
|
|
38
|
+
'--selected-step-label-color': 'rgba(0, 0, 0, 0.87)',
|
|
39
|
+
'--step-label-color': 'rgba(0, 0, 0, 0.54)',
|
|
40
|
+
'--svg-color': 'invert(0%)',
|
|
41
|
+
'--secondary-button-text-color': '#ffffff'
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const darkThemeColours = {
|
|
45
|
+
':root': {
|
|
46
|
+
'--app-primary-color': '#f72585' /* accent pink */,
|
|
47
|
+
'--app-primary-dark-color': '#c2185b' /* darker pink */,
|
|
48
|
+
'--app-primary-light-color': '#ff5ca2' /* lighter pink */,
|
|
49
|
+
'--app-secondary-color': '#c0c0c0' /* accent silver */,
|
|
50
|
+
'--app-neutral-color': '#b0b0b0' /* light gray for text/icons */,
|
|
51
|
+
'--app-neutral-light-color': '#e0e0e0' /* lighter gray for highlights */,
|
|
52
|
+
'--app-neutral-dark-color': '#262626' /* dark gray for backgrounds */,
|
|
53
|
+
'--app-error-color': '#ff5370' /* vibrant error red */,
|
|
54
|
+
'--app-error-light-color': '#ffb4b4' /* soft error red */,
|
|
55
|
+
'--app-error-dark-color': '#b71c1c' /* deep error red */,
|
|
56
|
+
'--app-warning-color': '#ffb300' /* amber warning */,
|
|
57
|
+
'--app-warning-color-light': '#ffe082' /* light amber */,
|
|
58
|
+
'--app-warning-color-dark': '#c68400' /* dark amber */,
|
|
59
|
+
'--app-background-color': '#060326' /* main dark background */,
|
|
60
|
+
'--app-form-color': '#18132c' /* slightly lighter for forms */,
|
|
61
|
+
/* App Navigation */
|
|
62
|
+
'--app-nav-bg': '#18132c' /* navigation background */,
|
|
63
|
+
'--app-nav-color': '#c0c0c0',
|
|
64
|
+
'--modal-background-color': 'rgba(40, 30, 90, 0.85)' /* nearly matches #060326, slightly lighter and more opaque */,
|
|
65
|
+
'--modal-top-color': '#2a1f54' /* light pink accent for modal top */,
|
|
66
|
+
'--modal-border-color': '#2a1f54' /* matches card background */,
|
|
67
|
+
'--modal-box-shadow-color': '#777',
|
|
68
|
+
'--utility-count-background-color': '#f8aaf0',
|
|
69
|
+
'--utility-card-border-color': '#2a1f54',
|
|
70
|
+
'--link-button-color': '#f72585',
|
|
71
|
+
'--banner-text-color': '#e0e0e0',
|
|
72
|
+
'--app-text-color': '#e0e0e0',
|
|
73
|
+
'--utility-background-color': '#2a1f54',
|
|
74
|
+
'--table-header-background': '#18132c',
|
|
75
|
+
'--step-line-color': 'rgba(0, 0, 0, 0.12)',
|
|
76
|
+
'--selected-step-label-color': 'rgba(0, 0, 0, 0.87)',
|
|
77
|
+
'--step-label-color': 'rgba(0, 0, 0, 0.54)',
|
|
78
|
+
'--svg-color': 'invert(100%)',
|
|
79
|
+
'--secondary-button-text-color': '#1a103c'
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const lightTheme = createTheme({
|
|
4
83
|
components: {
|
|
84
|
+
MuiCssBaseline: {
|
|
85
|
+
styleOverrides: {
|
|
86
|
+
...lightThemeColours
|
|
87
|
+
}
|
|
88
|
+
},
|
|
5
89
|
MuiTextField: {
|
|
6
90
|
defaultProps: {
|
|
7
91
|
size: 'small'
|
|
@@ -13,6 +97,29 @@ export const theme = createTheme({
|
|
|
13
97
|
}
|
|
14
98
|
}
|
|
15
99
|
},
|
|
100
|
+
actionButtons: {
|
|
101
|
+
primary: {
|
|
102
|
+
backgroundColor: '#cc0f60',
|
|
103
|
+
color: '#FFFFFF'
|
|
104
|
+
},
|
|
105
|
+
secondary: {
|
|
106
|
+
backgroundColor: '#3F51B5',
|
|
107
|
+
color: '#FFFFFF'
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
modal: {
|
|
111
|
+
backgroundColor: 'rgba(100, 100, 100, 0.4)',
|
|
112
|
+
topColor: 'white'
|
|
113
|
+
},
|
|
114
|
+
embedded: {
|
|
115
|
+
resolutionTextColor: 'darkslategray'
|
|
116
|
+
},
|
|
117
|
+
backgroundColor: '#fff',
|
|
118
|
+
card: {
|
|
119
|
+
backgroundColor: '#fff',
|
|
120
|
+
borderLeft: '6px solid',
|
|
121
|
+
borderLeftColor: '#C70BB5'
|
|
122
|
+
},
|
|
16
123
|
palette: {
|
|
17
124
|
primary: {
|
|
18
125
|
contrastText: '#fff',
|
|
@@ -25,7 +132,87 @@ export const theme = createTheme({
|
|
|
25
132
|
dark: '#c51162',
|
|
26
133
|
light: '#ff4081',
|
|
27
134
|
main: '#f50057'
|
|
135
|
+
},
|
|
136
|
+
backgroundColor: '#fff'
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
const darkTheme = createTheme({
|
|
140
|
+
components: {
|
|
141
|
+
MuiCssBaseline: {
|
|
142
|
+
styleOverrides: {
|
|
143
|
+
body: {
|
|
144
|
+
background: 'radial-gradient(178.62% 112% at 50% -12%, #0B0F2A 69.96%, #111951 89.19%)',
|
|
145
|
+
backgroundAttachment: 'fixed'
|
|
146
|
+
},
|
|
147
|
+
...darkThemeColours
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
MuiPaper: {
|
|
151
|
+
styleOverrides: {
|
|
152
|
+
root: {}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
MuiTextField: {
|
|
156
|
+
defaultProps: {
|
|
157
|
+
size: 'small'
|
|
158
|
+
},
|
|
159
|
+
styleOverrides: {
|
|
160
|
+
root: {
|
|
161
|
+
width: '100%'
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
actionButtons: {
|
|
167
|
+
primary: {
|
|
168
|
+
backgroundColor: '#C70BB5',
|
|
169
|
+
color: '#FFFFFF'
|
|
170
|
+
},
|
|
171
|
+
secondary: {
|
|
172
|
+
backgroundColor: '#FFFFFF',
|
|
173
|
+
color: '#C70BB5'
|
|
28
174
|
}
|
|
175
|
+
},
|
|
176
|
+
embedded: {
|
|
177
|
+
resolutionTextColor: 'darkslategray'
|
|
178
|
+
},
|
|
179
|
+
backgroundColor: '#060326',
|
|
180
|
+
card: {
|
|
181
|
+
backgroundColor: 'rgba(255, 255, 255, 0.3)',
|
|
182
|
+
borderLeft: '',
|
|
183
|
+
borderLeftColor: ''
|
|
184
|
+
},
|
|
185
|
+
palette: {
|
|
186
|
+
mode: 'dark',
|
|
187
|
+
primary: {
|
|
188
|
+
main: '#f72585', // accent pink
|
|
189
|
+
light: '#ff5ca2', // lighter shade of pink
|
|
190
|
+
dark: '#c2185b', // darker shade
|
|
191
|
+
contrastText: '#ffffff' // white text on pink buttons
|
|
192
|
+
},
|
|
193
|
+
secondary: {
|
|
194
|
+
main: '#c0c0c0', // accent silver
|
|
195
|
+
light: '#d9d9d9',
|
|
196
|
+
dark: '#8c8c8c',
|
|
197
|
+
contrastText: '#1a103c' // dark text on silver background
|
|
198
|
+
},
|
|
199
|
+
info: {
|
|
200
|
+
main: '#e91e63', // Pink
|
|
201
|
+
dark: '#ad1457', // Darker pink
|
|
202
|
+
light: '#f8bbd0', // Light pink for backgrounds
|
|
203
|
+
contrastText: '#fff'
|
|
204
|
+
},
|
|
205
|
+
background: {
|
|
206
|
+
// default: 'radial-gradient(178.62% 112% at 50% -12%, #0B0F2A 69.96%, #111951 89.19%)',
|
|
207
|
+
paper: 'rgba(255, 255, 255, 0.1)' // card-bg
|
|
208
|
+
},
|
|
209
|
+
text: {
|
|
210
|
+
primary: '#e0e0e0', // text-light
|
|
211
|
+
secondary: '#c0c0c0' // silver for muted text
|
|
212
|
+
},
|
|
213
|
+
divider: 'rgba(255, 255, 255, 0.1)' // border-color
|
|
29
214
|
}
|
|
30
215
|
});
|
|
216
|
+
const sdkConfig = await getSdkConfig();
|
|
217
|
+
export const theme = sdkConfig.theme === 'dark' ? darkTheme : lightTheme;
|
|
31
218
|
//# sourceMappingURL=theme.js.map
|
package/lib/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAW5C,wDAAwD;AACxD,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC;IAC/B,UAAU,EAAE;QACV,YAAY,EAAE;YACZ,YAAY,EAAE;gBACZ,IAAI,EAAE,OAAO;aACd;YACD,cAAc,EAAE;gBACd,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM;iBACd;aACF;SACF;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,YAAY,EAAE,MAAM;YACpB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,SAAS;SAChB;QACD,SAAS,EAAE;YACT,YAAY,EAAE,MAAM;YACpB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC,CAAC","sourcesContent":["import { createTheme } from '@mui/material';\nimport type { Theme } from '@mui/material/styles';\n\n/**\n * Since makeStyles is now exported from @mui/styles package which does not know about Theme in the core package.\n * you need to augment the DefaultTheme (empty object) in @mui/styles with Theme from the core.\n */\ndeclare module '@mui/styles/defaultTheme' {\n interface DefaultTheme extends Theme {}\n}\n\n// eslint-disable-next-line import/prefer-default-export\nexport const theme = createTheme({\n components: {\n MuiTextField: {\n defaultProps: {\n size: 'small'\n },\n styleOverrides: {\n root: {\n width: '100%'\n }\n }\n }\n },\n palette: {\n primary: {\n contrastText: '#fff',\n dark: '#303f9f',\n light: '#7986cb',\n main: '#3f51b5'\n },\n secondary: {\n contrastText: '#fff',\n dark: '#c51162',\n light: '#ff4081',\n main: '#f50057'\n }\n }\n});\n"]}
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAkC/D,MAAM,iBAAiB,GAAG;IACxB,OAAO,EAAE;QACP,qBAAqB,EAAE,SAAS,CAAC,kBAAkB;QACnD,0BAA0B,EAAE,SAAS,CAAC,kBAAkB;QACxD,2BAA2B,EAAE,SAAS,CAAC,kBAAkB;QACzD,uBAAuB,EAAE,SAAS;QAClC,qBAAqB,EAAE,MAAM;QAC7B,2BAA2B,EAAE,WAAW;QACxC,0BAA0B,EAAE,SAAS;QACrC,mBAAmB,EAAE,SAAS;QAC9B,yBAAyB,EAAE,SAAS;QACpC,wBAAwB,EAAE,SAAS;QACnC,qBAAqB,EAAE,SAAS;QAChC,2BAA2B,EAAE,SAAS;QACtC,0BAA0B,EAAE,SAAS;QAErC,wBAAwB,EAAE,YAAY;QACtC,kBAAkB,EAAE,OAAO;QAE3B,oBAAoB;QACpB,cAAc,EAAE,SAAS,CAAC,cAAc;QACxC,iBAAiB,EAAE,SAAS,CAAC,yCAAyC;QAEtE,uBAAuB;QACvB,0BAA0B,EAAE,0BAA0B;QACtD,mBAAmB,EAAE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,EAAE,SAAS,CAAC,iCAAiC;SAC1D;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,SAAS,EAAE,OAAO;YACxB,IAAI,EAAE,SAAS,EAAE,cAAc;YAC/B,KAAK,EAAE,SAAS,EAAE,6BAA6B;YAC/C,YAAY,EAAE,MAAM;SACrB;QACD,UAAU,EAAE;YACV,wFAAwF;YACxF,KAAK,EAAE,0BAA0B,CAAC,UAAU;SAC7C;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,SAAS,EAAE,aAAa;YACjC,SAAS,EAAE,SAAS,CAAC,wBAAwB;SAC9C;QACD,OAAO,EAAE,0BAA0B,CAAC,eAAe;KACpD;CACF,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,MAAM,YAAY,EAAE,CAAC;AAEvC,MAAM,CAAC,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC","sourcesContent":["// @ts-nocheck\nimport { createTheme } from '@mui/material';\nimport { Theme } from '@mui/material/styles';\n\nimport { getSdkConfig } from '@pega/auth/lib/sdk-auth-manager';\n\n/**\n * Since makeStyles is now exported from @mui/styles package which does not know about Theme in the core package.\n * you need to augment the DefaultTheme (empty object) in @mui/styles with Theme from the core.\n */\ndeclare module '@mui/styles/defaultTheme' {\n interface DefaultTheme extends Theme {\n backgroundColor: string;\n card: {\n backgroundColor: string;\n borderLeft: string;\n borderLeftColor: string;\n };\n modal: {\n backgroundColor: string;\n topColor: string;\n };\n embedded: {\n resolutionTextColor: string;\n };\n actionButtons: {\n primary: {\n backgroundColor: string;\n color: string;\n };\n secondary: {\n backgroundColor: string;\n color: string;\n };\n };\n }\n}\n\nconst lightThemeColours = {\n ':root': {\n '--app-primary-color': '#007bff' /* was #673ab7; */,\n '--app-primary-dark-color': '#0048cc' /* was #4527A0; */,\n '--app-primary-light-color': '#33aeff' /* was #B499FC; */,\n '--app-secondary-color': '#FFC400',\n '--app-neutral-color': 'grey',\n '--app-neutral-light-color': 'lightgrey',\n '--app-neutral-dark-color': '#262626',\n '--app-error-color': '#f44336',\n '--app-error-light-color': '#e57373',\n '--app-error-dark-color': '#d32f2f',\n '--app-warning-color': '#ff9800',\n '--app-warning-color-light': '#ffb74d',\n '--app-warning-color-dark': '#f57c00',\n\n '--app-background-color': 'whitesmoke',\n '--app-form-color': 'white',\n\n /* App Navigation */\n '--app-nav-bg': '#262626' /*! default */,\n '--app-nav-color': '#d9d9d9' /* invert( var(--app-nav-bg)) !default */,\n\n /* Few custom colors */\n '--modal-background-color': 'rgba(100, 100, 100, 0.4)',\n '--modal-top-color': 'white',\n '--modal-border-color': 'black',\n '--modal-box-shadow-color': '#777',\n '--utility-count-background-color': '#65b5f5',\n '--utility-card-border-color': '#f5f5f5',\n '--link-button-color': '#3f51b5',\n '--banner-text-color': 'rgb(0, 0, 0)',\n '--app-text-color': 'white',\n '--utility-background-color': 'white',\n '--table-header-background': '#f5f5f5',\n '--step-line-color': 'rgba(0, 0, 0, 0.12)',\n '--selected-step-label-color': 'rgba(0, 0, 0, 0.87)',\n '--step-label-color': 'rgba(0, 0, 0, 0.54)',\n '--svg-color': 'invert(0%)',\n '--secondary-button-text-color': '#ffffff'\n }\n};\nconst darkThemeColours = {\n ':root': {\n '--app-primary-color': '#f72585' /* accent pink */,\n '--app-primary-dark-color': '#c2185b' /* darker pink */,\n '--app-primary-light-color': '#ff5ca2' /* lighter pink */,\n '--app-secondary-color': '#c0c0c0' /* accent silver */,\n '--app-neutral-color': '#b0b0b0' /* light gray for text/icons */,\n '--app-neutral-light-color': '#e0e0e0' /* lighter gray for highlights */,\n '--app-neutral-dark-color': '#262626' /* dark gray for backgrounds */,\n '--app-error-color': '#ff5370' /* vibrant error red */,\n '--app-error-light-color': '#ffb4b4' /* soft error red */,\n '--app-error-dark-color': '#b71c1c' /* deep error red */,\n '--app-warning-color': '#ffb300' /* amber warning */,\n '--app-warning-color-light': '#ffe082' /* light amber */,\n '--app-warning-color-dark': '#c68400' /* dark amber */,\n\n '--app-background-color': '#060326' /* main dark background */,\n '--app-form-color': '#18132c' /* slightly lighter for forms */,\n\n /* App Navigation */\n '--app-nav-bg': '#18132c' /* navigation background */,\n '--app-nav-color': '#c0c0c0',\n\n '--modal-background-color': 'rgba(40, 30, 90, 0.85)' /* nearly matches #060326, slightly lighter and more opaque */,\n '--modal-top-color': '#2a1f54' /* light pink accent for modal top */,\n '--modal-border-color': '#2a1f54' /* matches card background */,\n '--modal-box-shadow-color': '#777',\n\n '--utility-count-background-color': '#f8aaf0',\n '--utility-card-border-color': '#2a1f54',\n '--link-button-color': '#f72585',\n '--banner-text-color': '#e0e0e0',\n '--app-text-color': '#e0e0e0',\n '--utility-background-color': '#2a1f54',\n '--table-header-background': '#18132c',\n '--step-line-color': 'rgba(0, 0, 0, 0.12)',\n '--selected-step-label-color': 'rgba(0, 0, 0, 0.87)',\n '--step-label-color': 'rgba(0, 0, 0, 0.54)',\n '--svg-color': 'invert(100%)',\n '--secondary-button-text-color': '#1a103c'\n }\n};\n\nconst lightTheme = createTheme({\n components: {\n MuiCssBaseline: {\n styleOverrides: {\n ...lightThemeColours\n }\n },\n MuiTextField: {\n defaultProps: {\n size: 'small'\n },\n styleOverrides: {\n root: {\n width: '100%'\n }\n }\n }\n },\n actionButtons: {\n primary: {\n backgroundColor: '#cc0f60',\n color: '#FFFFFF'\n },\n secondary: {\n backgroundColor: '#3F51B5',\n color: '#FFFFFF'\n }\n },\n modal: {\n backgroundColor: 'rgba(100, 100, 100, 0.4)',\n topColor: 'white'\n },\n embedded: {\n resolutionTextColor: 'darkslategray'\n },\n backgroundColor: '#fff',\n card: {\n backgroundColor: '#fff',\n borderLeft: '6px solid',\n borderLeftColor: '#C70BB5'\n },\n palette: {\n primary: {\n contrastText: '#fff',\n dark: '#303f9f',\n light: '#7986cb',\n main: '#3f51b5'\n },\n secondary: {\n contrastText: '#fff',\n dark: '#c51162',\n light: '#ff4081',\n main: '#f50057'\n },\n backgroundColor: '#fff'\n }\n});\n\nconst darkTheme = createTheme({\n components: {\n MuiCssBaseline: {\n styleOverrides: {\n body: {\n background: 'radial-gradient(178.62% 112% at 50% -12%, #0B0F2A 69.96%, #111951 89.19%)',\n backgroundAttachment: 'fixed'\n },\n ...darkThemeColours\n }\n },\n MuiPaper: {\n styleOverrides: {\n root: {}\n }\n },\n MuiTextField: {\n defaultProps: {\n size: 'small'\n },\n styleOverrides: {\n root: {\n width: '100%'\n }\n }\n }\n },\n actionButtons: {\n primary: {\n backgroundColor: '#C70BB5',\n color: '#FFFFFF'\n },\n secondary: {\n backgroundColor: '#FFFFFF',\n color: '#C70BB5'\n }\n },\n embedded: {\n resolutionTextColor: 'darkslategray'\n },\n backgroundColor: '#060326',\n card: {\n backgroundColor: 'rgba(255, 255, 255, 0.3)',\n borderLeft: '',\n borderLeftColor: ''\n },\n palette: {\n mode: 'dark',\n primary: {\n main: '#f72585', // accent pink\n light: '#ff5ca2', // lighter shade of pink\n dark: '#c2185b', // darker shade\n contrastText: '#ffffff' // white text on pink buttons\n },\n secondary: {\n main: '#c0c0c0', // accent silver\n light: '#d9d9d9',\n dark: '#8c8c8c',\n contrastText: '#1a103c' // dark text on silver background\n },\n info: {\n main: '#e91e63', // Pink\n dark: '#ad1457', // Darker pink\n light: '#f8bbd0', // Light pink for backgrounds\n contrastText: '#fff'\n },\n background: {\n // default: 'radial-gradient(178.62% 112% at 50% -12%, #0B0F2A 69.96%, #111951 89.19%)',\n paper: 'rgba(255, 255, 255, 0.1)' // card-bg\n },\n text: {\n primary: '#e0e0e0', // text-light\n secondary: '#c0c0c0' // silver for muted text\n },\n divider: 'rgba(255, 255, 255, 0.1)' // border-color\n }\n});\n\nconst sdkConfig = await getSdkConfig();\n\nexport const theme = sdkConfig.theme === 'dark' ? darkTheme : lightTheme;\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// that returns a PConnect object. (new/better way of doing .propTypes).
|
|
6
6
|
// This PConnProps can be extended to include other props that we know are in every component
|
|
7
7
|
export interface PConnProps {
|
|
8
|
-
// getPConnect should exist for every C11n component. (add @ts-
|
|
8
|
+
// getPConnect should exist for every C11n component. (add @ts-expect-error in special cases where it isn't)
|
|
9
9
|
getPConnect: () => typeof PConnect;
|
|
10
10
|
|
|
11
11
|
// Allow any/all other key/value pairs in the BaseProps for now
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/react-sdk-components",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.3",
|
|
4
4
|
"description": "React SDK Infrastructure: bridge and components",
|
|
5
5
|
"_filesComment": "During packing, npm ignores everything NOT in the files list",
|
|
6
6
|
"files": [
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"@mui/material": "^6.5.0",
|
|
21
21
|
"@mui/styles": "^6.5.0",
|
|
22
22
|
"@mui/x-date-pickers": "^7.29.4",
|
|
23
|
+
"@react-google-maps/api": "^2.20.7",
|
|
23
24
|
"@tinymce/tinymce-react": "^6.3.0",
|
|
24
25
|
"clsx": "^2.1.1",
|
|
25
26
|
"dayjs": "^1.11.13",
|