@pega/custom-dx-components 0.23.41 → 0.23.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "0.23.41",
3
+ "version": "0.23.43",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -4,7 +4,7 @@ import FormattedText from "./FormattedText";
4
4
 
5
5
  import type { PConnFieldProps } from './PConnProps';
6
6
 
7
- import StyledPegaDxilMyDateWrapper from './styles';
7
+ import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
8
8
 
9
9
  // includes in bundle
10
10
  import {
@@ -20,7 +20,7 @@ import { suggestionsHandler } from './suggestions-handler';
20
20
  import type { DateTimeFormat, DateTimeVariant } from '@pega/cosmos-react-core/lib/components/DateTime/DateTime.types.js';
21
21
 
22
22
  // interface for props
23
- interface PegaDxilMyDateProps extends PConnFieldProps {
23
+ interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
24
24
  // If any, enter additional props that only exist on TextInput here
25
25
  displayAsStatus?: boolean;
26
26
  isTableFormatter?: boolean;
@@ -52,7 +52,7 @@ interface ActionsProps {
52
52
 
53
53
  // props passed in combination of props from property panel (config.json) and run time props from Constellation
54
54
  // any default values in config.pros should be set in defaultProps at bottom of this file
55
- function PegaDxilMyDate (props: PegaDxilMyDateProps) {
55
+ function {{COMPONENT_CLASS_NAME}} (props: {{COMPONENT_CLASS_NAME}}Props) {
56
56
  const {
57
57
  getPConnect,
58
58
  value,
@@ -175,29 +175,29 @@ function PegaDxilMyDate (props: PegaDxilMyDateProps) {
175
175
  );
176
176
  switch(displayMode){
177
177
  case 'DISPLAY_ONLY': {
178
- return ( <StyledPegaDxilMyDateWrapper> displayComp </StyledPegaDxilMyDateWrapper>);
178
+ return ( <Styled{{COMPONENT_CLASS_NAME}}Wrapper> displayComp </Styled{{COMPONENT_CLASS_NAME}}Wrapper>);
179
179
  }
180
180
  case "LABELS_LEFT" : {
181
181
  return (
182
- <StyledPegaDxilMyDateWrapper>
182
+ <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
183
183
  <FieldValueList
184
184
  variant={hideLabel ? "stacked" : variant}
185
185
  data-testid={testId}
186
186
  fields={[{ id: '1', name: hideLabel ? "" :label, value: displayComp }]}
187
187
  />
188
- </StyledPegaDxilMyDateWrapper>
188
+ </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
189
189
 
190
190
  );
191
191
  }
192
192
  case "STACKED_LARGE_VAL" : {
193
193
  return (
194
- <StyledPegaDxilMyDateWrapper>
194
+ <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
195
195
  <FieldValueList
196
196
  variant='stacked'
197
197
  data-testid={testId}
198
198
  fields={[{ id: '2', name: hideLabel ? "" :label, value: <Text variant='h1' as='span'>{displayComp}</Text> }]}
199
199
  />
200
- </StyledPegaDxilMyDateWrapper>
200
+ </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
201
201
 
202
202
  );
203
203
  }
@@ -216,7 +216,7 @@ function PegaDxilMyDate (props: PegaDxilMyDateProps) {
216
216
  fieldType: 'Date'
217
217
  };
218
218
  dateComponent = (
219
- <StyledPegaDxilMyDateWrapper>
219
+ <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
220
220
  <FormattedText
221
221
  formatType='date'
222
222
  value={value}
@@ -227,12 +227,12 @@ function PegaDxilMyDate (props: PegaDxilMyDateProps) {
227
227
  // @ts-ignore
228
228
  customFormat={getDateFormat(locale)}
229
229
  />
230
- </StyledPegaDxilMyDateWrapper>
230
+ </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
231
231
  );
232
232
  } else {
233
233
 
234
234
  dateComponent = (
235
- <StyledPegaDxilMyDateWrapper>
235
+ <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
236
236
  <DateInput
237
237
  {...additionalProps}
238
238
  label={label}
@@ -252,11 +252,11 @@ function PegaDxilMyDate (props: PegaDxilMyDateProps) {
252
252
  onBlur={handleBlur}
253
253
  onResolveSuggestion={onResolveSuggestionHandler}
254
254
  />
255
- </StyledPegaDxilMyDateWrapper>
255
+ </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
256
256
  );
257
257
  }
258
258
  return dateComponent;
259
259
  }
260
260
 
261
261
 
262
- export default withConfiguration(PegaDxilMyDate);
262
+ export default withConfiguration({{COMPONENT_CLASS_NAME}});
@@ -1,7 +1,7 @@
1
1
 
2
2
  /* eslint-disable react/jsx-no-useless-fragment */
3
3
  // @ts-nocheck
4
- import { withKnobs } from '@storybook/addon-knobs';
4
+ import type { Meta, StoryObj } from '@storybook/react';
5
5
 
6
6
  import {{COMPONENT_CLASS_NAME}} from './index';
7
7
 
@@ -3,7 +3,7 @@
3
3
  // @ts-nocheck
4
4
  import type { Meta, StoryObj } from '@storybook/react';
5
5
  import { Text, FieldValueList, Button, DateTimeDisplay, useTheme } from '@pega/cosmos-react-core';
6
- import PegaDxilMyDetails from './index';
6
+ import {{COMPONENT_CLASS_NAME}} from './index';
7
7
  import { pyReviewRaw, pyReviewResolved, regionChildrenResolved } from './mock';
8
8
  import StatusWorkRenderer from './StatusWork';
9
9
 
@@ -69,11 +69,10 @@
69
69
  },
70
70
  "devDependencies": {
71
71
  "@pega/configs": "^0.6.0",
72
- "@pega/custom-dx-components": "0.23.41",
72
+ "@pega/custom-dx-components": "0.23.43",
73
73
  "@pega/pcore-pconnect-typedefs": "~2.1.1",
74
74
  "@storybook/addon-actions": "^7.6.7",
75
75
  "@storybook/addon-essentials": "^7.6.7",
76
- "@storybook/addon-knobs": "^7.0.2",
77
76
  "@storybook/addon-links": "^7.6.7",
78
77
  "@storybook/addon-storysource": "^7.6.7",
79
78
  "@storybook/react": "^7.6.7",
@@ -1,7 +1,7 @@
1
1
 
2
2
  /* eslint-disable react/jsx-no-useless-fragment */
3
3
  // @ts-nocheck
4
- import { withKnobs } from '@storybook/addon-knobs';
4
+ import type { Meta, StoryObj } from '@storybook/react';
5
5
 
6
6
  import PegaDxilMyTextInput from './index';
7
7
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  /* eslint-disable react/jsx-no-useless-fragment */
3
3
  // @ts-nocheck
4
- import { withKnobs } from '@storybook/addon-knobs';
4
+ import type { Meta, StoryObj } from '@storybook/react';
5
5
 
6
6
  import PegaDxilMyTextInput from './index';
7
7