@pega/react-sdk-overrides 0.25.1 → 0.25.2

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 (97) hide show
  1. package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  2. package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +48 -30
  3. package/lib/designSystemExtension/FieldGroup/FieldGroup.tsx +1 -1
  4. package/lib/designSystemExtension/Operator/Operator.tsx +10 -7
  5. package/lib/designSystemExtension/Pulse/Pulse.tsx +1 -1
  6. package/lib/field/AutoComplete/AutoComplete.tsx +1 -1
  7. package/lib/field/CancelAlert/CancelAlert.tsx +1 -1
  8. package/lib/field/Checkbox/Checkbox.tsx +1 -1
  9. package/lib/field/Currency/Currency.tsx +3 -3
  10. package/lib/field/Date/Date.tsx +3 -7
  11. package/lib/field/DateTime/DateTime.tsx +3 -8
  12. package/lib/field/Decimal/Decimal.tsx +3 -5
  13. package/lib/field/Dropdown/Dropdown.tsx +5 -5
  14. package/lib/field/Email/Email.tsx +11 -13
  15. package/lib/field/Group/Group.tsx +2 -2
  16. package/lib/field/Integer/Integer.tsx +5 -7
  17. package/lib/field/Percentage/Percentage.tsx +3 -7
  18. package/lib/field/Phone/Phone.tsx +7 -5
  19. package/lib/field/RadioButtons/RadioButtons.tsx +1 -1
  20. package/lib/field/RichText/RichText.tsx +1 -1
  21. package/lib/field/ScalarList/ScalarList.tsx +1 -1
  22. package/lib/field/SemanticLink/SemanticLink.tsx +1 -1
  23. package/lib/field/TextArea/TextArea.tsx +5 -7
  24. package/lib/field/TextContent/TextContent.tsx +1 -1
  25. package/lib/field/TextInput/TextInput.tsx +5 -7
  26. package/lib/field/Time/Time.tsx +3 -7
  27. package/lib/field/URL/URL.tsx +5 -7
  28. package/lib/field/UserReference/UserReference.tsx +1 -1
  29. package/lib/helpers/field-group-utils.ts +1 -1
  30. package/lib/helpers/simpleTableHelpers.ts +1 -1
  31. package/lib/infra/Assignment/Assignment.tsx +2 -2
  32. package/lib/infra/AssignmentCard/AssignmentCard.tsx +2 -2
  33. package/lib/infra/Containers/FlowContainer/FlowContainer.tsx +1 -1
  34. package/lib/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +1 -1
  35. package/lib/infra/Containers/ModalViewContainer/ModalViewContainer.tsx +1 -1
  36. package/lib/infra/Containers/ViewContainer/ViewContainer.tsx +1 -1
  37. package/lib/infra/DashboardFilter/DashboardFilter.tsx +2 -2
  38. package/lib/infra/DeferLoad/DeferLoad.tsx +1 -1
  39. package/lib/infra/ErrorBoundary/ErrorBoundary.tsx +1 -1
  40. package/lib/infra/MultiStep/MultiStep.tsx +2 -2
  41. package/lib/infra/NavBar/NavBar.tsx +26 -23
  42. package/lib/infra/Reference/Reference.tsx +1 -1
  43. package/lib/infra/Region/Region.tsx +1 -1
  44. package/lib/infra/RootContainer/RootContainer.tsx +2 -2
  45. package/lib/infra/Stages/Stages.tsx +1 -1
  46. package/lib/infra/View/View.tsx +2 -2
  47. package/lib/template/AppShell/AppShell.tsx +2 -2
  48. package/lib/template/BannerPage/BannerPage.tsx +2 -2
  49. package/lib/template/CaseSummary/CaseSummary.tsx +2 -2
  50. package/lib/template/CaseView/CaseView.tsx +2 -2
  51. package/lib/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +1 -1
  52. package/lib/template/Confirmation/Confirmation.tsx +2 -2
  53. package/lib/template/DataReference/DataReference.tsx +2 -2
  54. package/lib/template/DefaultForm/DefaultForm.tsx +2 -2
  55. package/lib/template/Details/Details/Details.tsx +1 -1
  56. package/lib/template/Details/DetailsSubTabs/DetailsSubTabs.tsx +2 -2
  57. package/lib/template/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +1 -1
  58. package/lib/template/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +1 -1
  59. package/lib/template/Details/DynamicTabs/DynamicTabs.tsx +1 -1
  60. package/lib/template/FieldGroupTemplate/FieldGroupTemplate.tsx +1 -1
  61. package/lib/template/InlineDashboard/InlineDashboard.tsx +2 -2
  62. package/lib/template/InlineDashboardPage/InlineDashboardPage.tsx +2 -2
  63. package/lib/template/ListPage/ListPage.tsx +1 -1
  64. package/lib/template/ListView/ListView.tsx +2 -2
  65. package/lib/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +1 -1
  66. package/lib/template/NarrowWide/NarrowWide/NarrowWide.tsx +2 -2
  67. package/lib/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +2 -2
  68. package/lib/template/NarrowWide/NarrowWideForm/NarrowWideForm.tsx +2 -2
  69. package/lib/template/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +2 -2
  70. package/lib/template/OneColumn/OneColumn/OneColumn.tsx +2 -2
  71. package/lib/template/OneColumn/OneColumnPage/OneColumnPage.tsx +1 -1
  72. package/lib/template/OneColumn/OneColumnTab/OneColumnTab.tsx +2 -2
  73. package/lib/template/PromotedFilters/PromotedFilters.tsx +1 -1
  74. package/lib/template/SimpleTable/SimpleTable/SimpleTable.tsx +1 -1
  75. package/lib/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +2 -2
  76. package/lib/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +1 -1
  77. package/lib/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +1 -1
  78. package/lib/template/SubTabs/SubTabs.tsx +2 -2
  79. package/lib/template/TwoColumn/TwoColumn/TwoColumn.tsx +9 -9
  80. package/lib/template/TwoColumn/TwoColumnPage/TwoColumnPage.tsx +1 -1
  81. package/lib/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +9 -9
  82. package/lib/template/WideNarrow/WideNarrow/WideNarrow.tsx +2 -2
  83. package/lib/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +2 -2
  84. package/lib/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx +2 -2
  85. package/lib/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +2 -2
  86. package/lib/template/WssNavBar/WssNavBar.tsx +1 -1
  87. package/lib/widget/AppAnnouncement/AppAnnouncement.tsx +1 -1
  88. package/lib/widget/Attachment/Attachment.tsx +1 -1
  89. package/lib/widget/CaseHistory/CaseHistory.tsx +2 -2
  90. package/lib/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +1 -1
  91. package/lib/widget/FileUtility/FileUtility/FileUtility.tsx +1 -1
  92. package/lib/widget/Followers/Followers.tsx +2 -2
  93. package/lib/widget/QuickCreate/QuickCreate.tsx +1 -1
  94. package/lib/widget/SummaryItem/SummaryItem.tsx +1 -1
  95. package/lib/widget/SummaryList/SummaryList.tsx +1 -1
  96. package/lib/widget/ToDo/ToDo.tsx +11 -19
  97. package/package.json +1 -1
@@ -7,7 +7,6 @@
7
7
  font-weight: bold;
8
8
  line-height: calc(0.5rem * 2.5);
9
9
  height: calc(0.5rem * 2.5);
10
- padding: 0 0.5rem;
11
10
  text-transform: uppercase;
12
11
  }
13
12
 
@@ -46,9 +46,11 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
46
46
  variant='standard'
47
47
  value='---'
48
48
  label={field.config.label}
49
- InputProps={{
50
- readOnly: true,
51
- disableUnderline: true
49
+ slotProps={{
50
+ input: {
51
+ readOnly: true,
52
+ disableUnderline: true
53
+ }
52
54
  }}
53
55
  />
54
56
  );
@@ -65,9 +67,11 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
65
67
  variant='standard'
66
68
  value={field.config.value}
67
69
  label={field.config.label}
68
- InputProps={{
69
- readOnly: true,
70
- disableUnderline: true
70
+ slotProps={{
71
+ input: {
72
+ readOnly: true,
73
+ disableUnderline: true
74
+ }
71
75
  }}
72
76
  />
73
77
  );
@@ -82,9 +86,11 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
82
86
  variant='standard'
83
87
  value={fieldValue}
84
88
  label={fieldLabel}
85
- InputProps={{
86
- readOnly: true,
87
- disableUnderline: true
89
+ slotProps={{
90
+ input: {
91
+ readOnly: true,
92
+ disableUnderline: true
93
+ }
88
94
  }}
89
95
  />
90
96
  );
@@ -97,9 +103,11 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
97
103
  className='psdk-csf-status-style'
98
104
  value={field.config.value}
99
105
  label={field.config.label}
100
- InputProps={{
101
- readOnly: true,
102
- disableUnderline: true
106
+ slotProps={{
107
+ input: {
108
+ readOnly: true,
109
+ disableUnderline: true
110
+ }
103
111
  }}
104
112
  />
105
113
  );
@@ -112,11 +120,13 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
112
120
  variant='standard'
113
121
  value={field.config.value}
114
122
  label={field.config.label}
115
- InputProps={{
116
- readOnly: true,
117
- inputProps: {
118
- style: { cursor: 'pointer' },
119
- disableUnderline: true
123
+ slotProps={{
124
+ input: {
125
+ readOnly: true,
126
+ inputProps: {
127
+ style: { cursor: 'pointer' },
128
+ disableUnderline: true
129
+ }
120
130
  }
121
131
  }}
122
132
  />
@@ -132,10 +142,12 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
132
142
  variant='standard'
133
143
  value={field.config.value}
134
144
  label={field.config.label}
135
- InputProps={{
136
- readOnly: true,
137
- disableUnderline: true,
138
- inputProps: { style: { cursor: 'pointer' } }
145
+ slotProps={{
146
+ input: {
147
+ readOnly: true,
148
+ disableUnderline: true,
149
+ inputProps: { style: { cursor: 'pointer' } }
150
+ }
139
151
  }}
140
152
  />
141
153
  </a>
@@ -156,9 +168,11 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
156
168
  format: theFormat
157
169
  })}
158
170
  label={field.config.label}
159
- InputProps={{
160
- readOnly: true,
161
- disableUnderline: true
171
+ slotProps={{
172
+ input: {
173
+ readOnly: true,
174
+ disableUnderline: true
175
+ }
162
176
  }}
163
177
  />
164
178
  );
@@ -171,9 +185,11 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
171
185
  variant='standard'
172
186
  value={format(field.config.value, field.type, theCurrencyOptions)}
173
187
  label={field.config.label}
174
- InputProps={{
175
- readOnly: true,
176
- disableUnderline: true
188
+ slotProps={{
189
+ input: {
190
+ readOnly: true,
191
+ disableUnderline: true
192
+ }
177
193
  }}
178
194
  />
179
195
  );
@@ -186,9 +202,11 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
186
202
  variant='standard'
187
203
  value={format(field.config.value, field.type)}
188
204
  label={field.config.label}
189
- InputProps={{
190
- readOnly: true,
191
- disableUnderline: true
205
+ slotProps={{
206
+ input: {
207
+ readOnly: true,
208
+ disableUnderline: true
209
+ }
192
210
  }}
193
211
  />
194
212
  );
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren, useState } from 'react';
1
+ import { type PropsWithChildren, useState } from 'react';
2
2
  import Grid from '@mui/material/Grid';
3
3
  import makeStyles from '@mui/styles/makeStyles';
4
4
  import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
@@ -6,7 +6,7 @@ import Typography from '@mui/material/Typography';
6
6
  import makeStyles from '@mui/styles/makeStyles';
7
7
 
8
8
  import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
9
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
9
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
10
10
 
11
11
  // Operator is one of the few components that does NOT have getPConnect.
12
12
  // So, no need to extend PConnProps
@@ -193,15 +193,16 @@ export default function Operator(props: OperatorProps) {
193
193
  defaultValue={caseOpName}
194
194
  label={caseOpLabel}
195
195
  onClick={showOperatorDetails}
196
- InputProps={{
197
- readOnly: true,
198
- disableUnderline: true,
199
- inputProps: { style: { cursor: 'pointer' } }
196
+ slotProps={{
197
+ input: {
198
+ readOnly: true,
199
+ disableUnderline: true,
200
+ inputProps: { style: { cursor: 'pointer' } }
201
+ }
200
202
  }}
201
203
  />
202
204
  <br />
203
205
  {Utils.generateDateTime(caseTime, 'DateTime-Since')}
204
-
205
206
  <Popover
206
207
  id={popoverId}
207
208
  open={popoverOpen}
@@ -209,7 +210,9 @@ export default function Operator(props: OperatorProps) {
209
210
  onClose={handlePopoverClose}
210
211
  anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}
211
212
  transformOrigin={{ vertical: 'top', horizontal: 'center' }}
212
- PaperProps={{ style: { maxWidth: '45ch' } }}
213
+ slotProps={{
214
+ paper: { style: { maxWidth: '45ch' } }
215
+ }}
213
216
  >
214
217
  {getPopoverGrid()}
215
218
  </Popover>
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
2
  import { Card, CardContent, CardHeader, Typography } from '@mui/material';
3
3
  import makeStyles from '@mui/styles/makeStyles';
4
4
 
@@ -7,7 +7,7 @@ import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
7
7
  import { getDataPage } from '@pega/react-sdk-components/lib/components/helpers/data_page';
8
8
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
9
9
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
10
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
10
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
11
11
 
12
12
  interface IOption {
13
13
  key: string;
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
2
2
  import { Button, Grid, IconButton, Snackbar } from '@mui/material';
3
3
  import CloseIcon from '@mui/icons-material/Close';
4
4
 
5
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
6
  import './CancelAlert.css';
7
7
 
8
8
  interface CancelAlertProps extends PConnFieldProps {
@@ -6,7 +6,7 @@ import makeStyles from '@mui/styles/makeStyles';
6
6
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
7
7
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
8
8
  import { insertInstruction, deleteInstruction, updateNewInstuctions } from '@pega/react-sdk-components/lib/components/helpers/instructions-utils';
9
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
9
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
10
10
 
11
11
  interface CheckboxProps extends Omit<PConnFieldProps, 'value'> {
12
12
  // If any, enter additional props that only exist on Checkbox here
@@ -2,7 +2,7 @@ import { useEffect, useState } from 'react';
2
2
  import { NumericFormat } from 'react-number-format';
3
3
  import { TextField } from '@mui/material';
4
4
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
5
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
6
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
7
7
  import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
8
8
  import { getCurrencyCharacters, getCurrencyOptions } from './currency-utils';
@@ -45,7 +45,7 @@ export default function Currency(props: CurrrencyProps) {
45
45
  const helperTextToDisplay = validatemessage || helperText;
46
46
  const [values, setValues] = useState(value.toString());
47
47
 
48
- const testProp = { 'data-test-id': testId };
48
+ const testProps: any = { 'data-test-id': testId };
49
49
 
50
50
  useEffect(() => {
51
51
  setValues(value.toString());
@@ -104,7 +104,7 @@ export default function Currency(props: CurrrencyProps) {
104
104
  {...currencyProp}
105
105
  decimalScale={allowDecimals !== false ? 2 : 0}
106
106
  fixedDecimalScale={allowDecimals}
107
- InputProps={{ ...readOnlyProp, inputProps: { ...testProp } }}
107
+ slotProps={{ input: { ...readOnlyProp, inputProps: { ...testProps } } }}
108
108
  customInput={TextField}
109
109
  />
110
110
  );
@@ -6,7 +6,7 @@ import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event
6
6
  import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
7
7
  import { dateFormatInfoDefault, getDateFormatInfo } from '@pega/react-sdk-components/lib/components/helpers/date-format-utils';
8
8
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
9
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
9
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
10
10
 
11
11
  // Will return the date string in YYYY-MM-DD format which we'll be POSTing to the server
12
12
  function getFormattedDate(date) {
@@ -62,11 +62,7 @@ export default function Date(props: DateProps) {
62
62
  return <TextInput {...props} />;
63
63
  }
64
64
 
65
- let testProp = {};
66
-
67
- testProp = {
68
- 'data-test-id': testId
69
- };
65
+ const testProps: any = { 'data-test-id': testId };
70
66
 
71
67
  const handleChange = date => {
72
68
  if (date && date.isValid()) {
@@ -89,7 +85,7 @@ export default function Date(props: DateProps) {
89
85
  error: status === 'error',
90
86
  helperText: helperTextToDisplay,
91
87
  size: 'small',
92
- InputProps: { ...testProp }
88
+ InputProps: { ...testProps }
93
89
  }
94
90
  }}
95
91
  onChange={handleChange}
@@ -6,7 +6,7 @@ import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event
6
6
  import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
7
7
  import { dateFormatInfoDefault, getDateFormatInfo } from '@pega/react-sdk-components/lib/components/helpers/date-format-utils';
8
8
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
9
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
9
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
10
10
 
11
11
  interface DateTimeProps extends PConnFieldProps {
12
12
  // If any, enter additional props that only exist on DateTime here
@@ -60,11 +60,7 @@ export default function DateTime(props: DateTimeProps) {
60
60
  return <TextInput {...props} value={formattedDateTime} />;
61
61
  }
62
62
 
63
- let testProp = {};
64
-
65
- testProp = {
66
- 'data-test-id': testId
67
- };
63
+ const testProps: any = { 'data-test-id': testId };
68
64
 
69
65
  const handleChange = date => {
70
66
  const timeZoneDateTime = (dayjs as any).tz(date.format('YYYY-MM-DDTHH:mm:ss'), timezone);
@@ -89,7 +85,6 @@ export default function DateTime(props: DateTimeProps) {
89
85
  label={label}
90
86
  value={dateValue}
91
87
  onChange={handleChange}
92
- data-test-id={testId}
93
88
  slotProps={{
94
89
  textField: {
95
90
  variant: 'outlined',
@@ -98,7 +93,7 @@ export default function DateTime(props: DateTimeProps) {
98
93
  error: status === 'error',
99
94
  helperText: helperTextToDisplay,
100
95
  size: 'small',
101
- InputProps: { ...testProp }
96
+ InputProps: { ...testProps }
102
97
  }
103
98
  }}
104
99
  />
@@ -5,7 +5,7 @@ import { getCurrencyCharacters, getCurrencyOptions } from '@pega/react-sdk-compo
5
5
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
6
6
  import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
7
7
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
8
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
8
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
9
9
 
10
10
  /* Using react-number-format component here, since it allows formatting decimal values,
11
11
  as per the locale.
@@ -83,9 +83,7 @@ export default function Decimal(props: DecimalProps) {
83
83
  return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} variant='stacked' />;
84
84
  }
85
85
 
86
- const testProp = {
87
- 'data-test-id': testId
88
- };
86
+ const testProps: any = { 'data-test-id': testId };
89
87
 
90
88
  function decimalOnBlur() {
91
89
  handleEvent(actions, 'changeNblur', propName, values);
@@ -117,7 +115,7 @@ export default function Decimal(props: DecimalProps) {
117
115
  decimalSeparator={theCurrDec}
118
116
  thousandSeparator={showGroupSeparators ? theCurrSep : ''}
119
117
  decimalScale={readOnly && formatter === 'Currency' ? undefined : decimalPrecision}
120
- InputProps={{ ...readOnlyProp, inputProps: { ...testProp } }}
118
+ slotProps={{ input: { ...readOnlyProp, inputProps: { ...testProps } } }}
121
119
  customInput={TextField}
122
120
  />
123
121
  );
@@ -6,7 +6,7 @@ import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
6
6
  import { getDataPage } from '@pega/react-sdk-components/lib/components/helpers/data_page';
7
7
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
8
8
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
9
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
9
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
10
10
 
11
11
  interface IOption {
12
12
  key: string;
@@ -198,9 +198,7 @@ export default function Dropdown(props: DropdownProps) {
198
198
  readOnlyProp = { readOnly: true };
199
199
  }
200
200
 
201
- let testProp = {};
202
-
203
- testProp = {
201
+ const testProps: any = {
204
202
  'data-test-id': testId
205
203
  };
206
204
 
@@ -228,7 +226,9 @@ export default function Dropdown(props: DropdownProps) {
228
226
  label={label}
229
227
  value={value === '' && !readOnly ? placeholder : value}
230
228
  select
231
- InputProps={{ ...readOnlyProp, ...testProp }}
229
+ slotProps={{
230
+ input: { ...readOnlyProp, ...testProps }
231
+ }}
232
232
  >
233
233
  {options.map((option: any) => (
234
234
  <MenuItem key={option.key} value={option.key}>
@@ -3,7 +3,7 @@ import { InputAdornment, TextField } from '@mui/material';
3
3
  import MailOutlineIcon from '@mui/icons-material/MailOutline';
4
4
 
5
5
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
6
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
7
7
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
8
8
 
9
9
  interface EmailProps extends PConnFieldProps {
@@ -55,11 +55,7 @@ export default function Email(props: EmailProps) {
55
55
  return <TextInput {...props} />;
56
56
  }
57
57
 
58
- let testProp = {};
59
-
60
- testProp = {
61
- 'data-test-id': testId
62
- };
58
+ const testProps: any = { 'data-test-id': testId };
63
59
 
64
60
  function handleChange(event) {
65
61
  // update internal value
@@ -85,13 +81,15 @@ export default function Email(props: EmailProps) {
85
81
  label={label}
86
82
  value={inputValue}
87
83
  type='email'
88
- InputProps={{
89
- startAdornment: (
90
- <InputAdornment position='start'>
91
- <MailOutlineIcon />
92
- </InputAdornment>
93
- ),
94
- inputProps: { ...testProp }
84
+ slotProps={{
85
+ input: {
86
+ startAdornment: (
87
+ <InputAdornment position='start'>
88
+ <MailOutlineIcon />
89
+ </InputAdornment>
90
+ ),
91
+ inputProps: { ...testProps }
92
+ }
95
93
  }}
96
94
  />
97
95
  );
@@ -1,7 +1,7 @@
1
- import { ReactElement, useMemo } from 'react';
1
+ import { type ReactElement, useMemo } from 'react';
2
2
  import { Grid } from '@mui/material';
3
3
  import FieldGroup from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldGroup';
4
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
5
 
6
6
  interface GroupProps extends PConnFieldProps {
7
7
  children: ReactElement[];
@@ -3,7 +3,7 @@ import { TextField } from '@mui/material';
3
3
 
4
4
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
5
5
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
6
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
7
7
 
8
8
  interface IntegerProps extends PConnFieldProps {
9
9
  // If any, enter additional props that only exist on Integer here
@@ -54,11 +54,7 @@ export default function Integer(props: IntegerProps) {
54
54
  return <TextInput {...props} />;
55
55
  }
56
56
 
57
- let testProp = {};
58
-
59
- testProp = {
60
- 'data-test-id': testId
61
- };
57
+ const testProps: any = { 'data-test-id': testId };
62
58
 
63
59
  function intOnChange(event) {
64
60
  // console.log(`Integer intOnChange inValue: ${event.target.value}`);
@@ -96,7 +92,9 @@ export default function Integer(props: IntegerProps) {
96
92
  label={label}
97
93
  value={inputValue}
98
94
  type='text'
99
- inputProps={{ inputMode: 'numeric', pattern: '[0-9]*', ...testProp }}
95
+ slotProps={{
96
+ htmlInput: { inputMode: 'numeric', pattern: '[0-9]*', ...testProps }
97
+ }}
100
98
  />
101
99
  );
102
100
  }
@@ -2,7 +2,7 @@ import { useEffect, useState } from 'react';
2
2
  import { NumericFormat } from 'react-number-format';
3
3
  import { TextField } from '@mui/material';
4
4
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
5
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
6
  import { getCurrencyCharacters, getCurrencyOptions } from '@pega/react-sdk-components/lib/components/field/Currency/currency-utils';
7
7
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
8
8
  import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
@@ -70,11 +70,7 @@ export default function Percentage(props: PercentageProps) {
70
70
  return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} variant='stacked' />;
71
71
  }
72
72
 
73
- let testProp = {};
74
-
75
- testProp = {
76
- 'data-test-id': testId
77
- };
73
+ const testProps: any = { 'data-test-id': testId };
78
74
 
79
75
  const theSymbols = getCurrencyCharacters(currencyISOCode);
80
76
  const theCurrDec = theSymbols.theDecimalIndicator;
@@ -109,7 +105,7 @@ export default function Percentage(props: PercentageProps) {
109
105
  thousandSeparator={showGroupSeparators ? theCurrSep : ''}
110
106
  decimalScale={decimalPrecision}
111
107
  suffix='%'
112
- InputProps={{ ...readOnlyProp, inputProps: { ...testProp } }}
108
+ slotProps={{ input: { ...readOnlyProp, inputProps: { ...testProps } } }}
113
109
  customInput={TextField}
114
110
  />
115
111
  );
@@ -2,7 +2,7 @@ import { useEffect, useState } from 'react';
2
2
  import { MuiTelInput } from 'mui-tel-input';
3
3
 
4
4
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
5
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
6
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
7
7
 
8
8
  interface PhoneProps extends PConnFieldProps {
@@ -69,9 +69,11 @@ export default function Phone(props: PhoneProps) {
69
69
  error={status === 'error'}
70
70
  label={label}
71
71
  value={value}
72
- InputProps={{
73
- readOnly: true,
74
- inputProps: { ...testProp }
72
+ slotProps={{
73
+ input: {
74
+ readOnly: true,
75
+ ...testProp
76
+ }
75
77
  }}
76
78
  disableDropdown={disableDropdown}
77
79
  />
@@ -105,7 +107,7 @@ export default function Phone(props: PhoneProps) {
105
107
  error={status === 'error'}
106
108
  label={label}
107
109
  value={inputValue}
108
- InputProps={{ ...testProp }}
110
+ slotProps={{ input: { ...testProp } }}
109
111
  />
110
112
  );
111
113
  }
@@ -4,7 +4,7 @@ import { Radio, RadioGroup, FormControl, FormControlLabel, FormLabel, FormHelper
4
4
  import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
5
5
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
6
6
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
7
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
7
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
8
8
 
9
9
  // Can't use RadioButtonProps until getLocaleRuleNameFromKeys is NOT private
10
10
  interface RadioButtonsProps extends PConnFieldProps {
@@ -2,7 +2,7 @@ import { useRef } from 'react';
2
2
 
3
3
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
4
4
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
5
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
6
 
7
7
  interface RichTextProps extends PConnFieldProps {
8
8
  // If any, enter additional props that only exist on TextArea here
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable react/no-array-index-key */
2
2
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
3
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
4
 
5
5
  // ScalarListProps can't extend PConnFieldProps because its 'value' has a different type
6
6
  interface ScalarListProps extends PConnProps {
@@ -3,7 +3,7 @@ import Grid from '@mui/material/Grid';
3
3
  import makeStyles from '@mui/styles/makeStyles';
4
4
 
5
5
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
6
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
7
7
 
8
8
  /* although this is called the SemanticLink component, we are not yet displaying as a
9
9
  SemanticLink in SDK and only showing the value as a read only text field. */
@@ -3,7 +3,7 @@ import { TextField } from '@mui/material';
3
3
 
4
4
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
5
5
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
6
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
7
7
 
8
8
  interface TextAreaProps extends PConnFieldProps {
9
9
  // If any, enter additional props that only exist on TextArea here
@@ -58,11 +58,7 @@ export default function TextArea(props: TextAreaProps) {
58
58
  readOnlyProp = { readOnly: true };
59
59
  }
60
60
 
61
- let testProp = {};
62
-
63
- testProp = {
64
- 'data-test-id': testId
65
- };
61
+ const testProps: any = { 'data-test-id': testId };
66
62
 
67
63
  function handleChange(event) {
68
64
  // update internal value
@@ -90,7 +86,9 @@ export default function TextArea(props: TextAreaProps) {
90
86
  error={status === 'error'}
91
87
  label={label}
92
88
  value={inputValue}
93
- InputProps={{ ...readOnlyProp, inputProps: { maxLength, ...testProp } }}
89
+ slotProps={{
90
+ input: { ...readOnlyProp, inputProps: { maxLength, ...testProps } }
91
+ }}
94
92
  />
95
93
  );
96
94
  }
@@ -1,6 +1,6 @@
1
1
  import { Typography } from '@mui/material';
2
2
 
3
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
4
 
5
5
  interface TextContentProps extends PConnProps {
6
6
  // If any, enter additional props that only exist on TextContent here