@pega/cosmos-react-work 3.0.0-dev.22.0 → 3.0.0-dev.23.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 (71) hide show
  1. package/lib/components/CasePreview/CasePreview.d.ts +2 -2
  2. package/lib/components/CasePreview/CasePreview.d.ts.map +1 -1
  3. package/lib/components/CasePreview/CasePreview.js +1 -1
  4. package/lib/components/CasePreview/CasePreview.js.map +1 -1
  5. package/lib/components/CaseView/CaseHeader.d.ts +4 -0
  6. package/lib/components/CaseView/CaseHeader.d.ts.map +1 -0
  7. package/lib/components/CaseView/CaseHeader.js +49 -0
  8. package/lib/components/CaseView/CaseHeader.js.map +1 -0
  9. package/lib/components/CaseView/CaseSummary.d.ts +4 -0
  10. package/lib/components/CaseView/CaseSummary.d.ts.map +1 -0
  11. package/lib/components/CaseView/CaseSummary.js +13 -0
  12. package/lib/components/CaseView/CaseSummary.js.map +1 -0
  13. package/lib/components/CaseView/CaseSummaryFields.d.ts +6 -0
  14. package/lib/components/CaseView/CaseSummaryFields.d.ts.map +1 -0
  15. package/lib/components/CaseView/CaseSummaryFields.js +8 -0
  16. package/lib/components/CaseView/CaseSummaryFields.js.map +1 -0
  17. package/lib/components/CaseView/CaseView.context.d.ts +5 -0
  18. package/lib/components/CaseView/CaseView.context.d.ts.map +1 -0
  19. package/lib/components/CaseView/CaseView.context.js +5 -0
  20. package/lib/components/CaseView/CaseView.context.js.map +1 -0
  21. package/lib/components/CaseView/CaseView.d.ts +2 -27
  22. package/lib/components/CaseView/CaseView.d.ts.map +1 -1
  23. package/lib/components/CaseView/CaseView.js +210 -190
  24. package/lib/components/CaseView/CaseView.js.map +1 -1
  25. package/lib/components/CaseView/CaseView.styles.d.ts +13 -17
  26. package/lib/components/CaseView/CaseView.styles.d.ts.map +1 -1
  27. package/lib/components/CaseView/CaseView.styles.js +225 -41
  28. package/lib/components/CaseView/CaseView.styles.js.map +1 -1
  29. package/lib/components/CaseView/CaseView.types.d.ts +100 -0
  30. package/lib/components/CaseView/CaseView.types.d.ts.map +1 -0
  31. package/lib/components/CaseView/CaseView.types.js +2 -0
  32. package/lib/components/CaseView/CaseView.types.js.map +1 -0
  33. package/lib/components/CaseView/UtilitiesSummary.d.ts +4 -6
  34. package/lib/components/CaseView/UtilitiesSummary.d.ts.map +1 -1
  35. package/lib/components/CaseView/UtilitiesSummary.js +6 -2
  36. package/lib/components/CaseView/UtilitiesSummary.js.map +1 -1
  37. package/lib/components/CaseView/index.d.ts +5 -2
  38. package/lib/components/CaseView/index.d.ts.map +1 -1
  39. package/lib/components/CaseView/index.js +4 -1
  40. package/lib/components/CaseView/index.js.map +1 -1
  41. package/lib/components/Stages/StageGlimpse.js +1 -1
  42. package/lib/components/Stages/StageGlimpse.js.map +1 -1
  43. package/lib/index.d.ts +0 -6
  44. package/lib/index.d.ts.map +1 -1
  45. package/lib/index.js +0 -6
  46. package/lib/index.js.map +1 -1
  47. package/package.json +2 -2
  48. package/lib/components/CaseHeader/CaseHeader.d.ts +0 -33
  49. package/lib/components/CaseHeader/CaseHeader.d.ts.map +0 -1
  50. package/lib/components/CaseHeader/CaseHeader.js +0 -133
  51. package/lib/components/CaseHeader/CaseHeader.js.map +0 -1
  52. package/lib/components/CaseHeader/index.d.ts +0 -4
  53. package/lib/components/CaseHeader/index.d.ts.map +0 -1
  54. package/lib/components/CaseHeader/index.js +0 -3
  55. package/lib/components/CaseHeader/index.js.map +0 -1
  56. package/lib/components/CaseSummary/CaseSummary.d.ts +0 -36
  57. package/lib/components/CaseSummary/CaseSummary.d.ts.map +0 -1
  58. package/lib/components/CaseSummary/CaseSummary.js +0 -131
  59. package/lib/components/CaseSummary/CaseSummary.js.map +0 -1
  60. package/lib/components/CaseSummary/index.d.ts +0 -4
  61. package/lib/components/CaseSummary/index.d.ts.map +0 -1
  62. package/lib/components/CaseSummary/index.js +0 -3
  63. package/lib/components/CaseSummary/index.js.map +0 -1
  64. package/lib/components/CaseSummaryFields/CaseSummaryFields.d.ts +0 -22
  65. package/lib/components/CaseSummaryFields/CaseSummaryFields.d.ts.map +0 -1
  66. package/lib/components/CaseSummaryFields/CaseSummaryFields.js +0 -25
  67. package/lib/components/CaseSummaryFields/CaseSummaryFields.js.map +0 -1
  68. package/lib/components/CaseSummaryFields/index.d.ts +0 -4
  69. package/lib/components/CaseSummaryFields/index.d.ts.map +0 -1
  70. package/lib/components/CaseSummaryFields/index.js +0 -3
  71. package/lib/components/CaseSummaryFields/index.js.map +0 -1
@@ -1,25 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef } from 'react';
3
- import styled, { css } from 'styled-components';
4
- import { Grid, FieldValueList, StyledFieldValueList, StyledFieldValue, calculateFontSize, defaultThemeProp } from '@pega/cosmos-react-core';
5
- export const StyledCaseSummaryFields = styled.div(({ theme }) => {
6
- const fontSizes = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
7
- return css `
8
- padding: calc(2 * ${theme.base.spacing});
9
-
10
- > ${StyledFieldValueList}:first-child {
11
- grid-template-columns: 16ch auto;
12
-
13
- ${StyledFieldValue} {
14
- font-size: ${fontSizes[theme.components.text.h1['font-size']]};
15
- font-weight: ${theme.components.text.h1['font-weight']};
16
- }
17
- }
18
- `;
19
- });
20
- StyledCaseSummaryFields.defaultProps = defaultThemeProp;
21
- const CaseSummaryFields = forwardRef(({ primaryFields, secondaryFields, ...restProps }, ref) => {
22
- return (_jsxs(Grid, { ...restProps, as: StyledCaseSummaryFields, ref: ref, container: { rowGap: 2 }, children: [_jsx(FieldValueList, { variant: 'stacked', fields: primaryFields }), _jsx(FieldValueList, { variant: 'inline', fields: secondaryFields })] }));
23
- });
24
- export default CaseSummaryFields;
25
- //# sourceMappingURL=CaseSummaryFields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CaseSummaryFields.js","sourceRoot":"","sources":["../../../src/components/CaseSummaryFields/CaseSummaryFields.tsx"],"names":[],"mappings":";AAA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F,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import { ReactNode, forwardRef, FunctionComponent, PropsWithoutRef, Ref } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport {\n Grid,\n FieldValueList,\n StyledFieldValueList,\n StyledFieldValue,\n calculateFontSize,\n defaultThemeProp,\n ForwardProps,\n FontSize\n} from '@pega/cosmos-react-core';\n\nexport const StyledCaseSummaryFields = styled.div(({ theme }) => {\n const fontSizes = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n padding: calc(2 * ${theme.base.spacing});\n\n > ${StyledFieldValueList}:first-child {\n grid-template-columns: 16ch auto;\n\n ${StyledFieldValue} {\n font-size: ${fontSizes[theme.components.text.h1['font-size'] as FontSize]};\n font-weight: ${theme.components.text.h1['font-weight']};\n }\n }\n `;\n});\n\nStyledCaseSummaryFields.defaultProps = defaultThemeProp;\n\nexport interface CaseSummaryFieldsProps {\n /** The primary summary fields to display above secondary fields. */\n primaryFields: {\n id?: string;\n name: string;\n value: ReactNode;\n }[];\n /** The secondary summary fields to display below primary fields. */\n secondaryFields: {\n id?: string;\n name: string;\n value: ReactNode;\n }[];\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLDivElement>;\n}\n\nconst CaseSummaryFields: FunctionComponent<CaseSummaryFieldsProps & ForwardProps> = forwardRef(\n (\n { primaryFields, secondaryFields, ...restProps }: PropsWithoutRef<CaseSummaryFieldsProps>,\n ref: CaseSummaryFieldsProps['ref']\n ) => {\n return (\n <Grid {...restProps} as={StyledCaseSummaryFields} ref={ref} container={{ rowGap: 2 }}>\n <FieldValueList variant='stacked' fields={primaryFields} />\n <FieldValueList variant='inline' fields={secondaryFields} />\n </Grid>\n );\n }\n);\n\nexport default CaseSummaryFields;\n"]}
@@ -1,4 +0,0 @@
1
- export { default } from './CaseSummaryFields';
2
- export { CaseSummaryFieldsProps } from './CaseSummaryFields';
3
- export { StyledCaseSummaryFields } from './CaseSummaryFields';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CaseSummaryFields/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,3 +0,0 @@
1
- export { default } from './CaseSummaryFields';
2
- export { StyledCaseSummaryFields } from './CaseSummaryFields';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CaseSummaryFields/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC","sourcesContent":["export { default } from './CaseSummaryFields';\nexport { CaseSummaryFieldsProps } from './CaseSummaryFields';\nexport { StyledCaseSummaryFields } from './CaseSummaryFields';\n"]}