@pega/cosmos-react-work 3.0.0-dev.9.1 → 3.0.0-rc.10

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 (171) hide show
  1. package/lib/components/AppAnnouncement/AppAnnouncement.d.ts +4 -0
  2. package/lib/components/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  3. package/lib/components/AppAnnouncement/AppAnnouncement.js +3 -2
  4. package/lib/components/AppAnnouncement/AppAnnouncement.js.map +1 -1
  5. package/lib/components/CasePreview/CasePreview.d.ts +2 -2
  6. package/lib/components/CasePreview/CasePreview.d.ts.map +1 -1
  7. package/lib/components/CasePreview/CasePreview.js +2 -2
  8. package/lib/components/CasePreview/CasePreview.js.map +1 -1
  9. package/lib/components/CaseView/CaseHeader.d.ts +4 -0
  10. package/lib/components/CaseView/CaseHeader.d.ts.map +1 -0
  11. package/lib/components/CaseView/CaseHeader.js +49 -0
  12. package/lib/components/CaseView/CaseHeader.js.map +1 -0
  13. package/lib/components/CaseView/CaseSummary.d.ts +4 -0
  14. package/lib/components/CaseView/CaseSummary.d.ts.map +1 -0
  15. package/lib/components/CaseView/CaseSummary.js +13 -0
  16. package/lib/components/CaseView/CaseSummary.js.map +1 -0
  17. package/lib/components/CaseView/CaseSummaryFields.d.ts +6 -0
  18. package/lib/components/CaseView/CaseSummaryFields.d.ts.map +1 -0
  19. package/lib/components/CaseView/CaseSummaryFields.js +8 -0
  20. package/lib/components/CaseView/CaseSummaryFields.js.map +1 -0
  21. package/lib/components/CaseView/CaseView.context.d.ts +5 -0
  22. package/lib/components/CaseView/CaseView.context.d.ts.map +1 -0
  23. package/lib/components/CaseView/CaseView.context.js +5 -0
  24. package/lib/components/CaseView/CaseView.context.js.map +1 -0
  25. package/lib/components/CaseView/CaseView.d.ts +2 -27
  26. package/lib/components/CaseView/CaseView.d.ts.map +1 -1
  27. package/lib/components/CaseView/CaseView.js +220 -191
  28. package/lib/components/CaseView/CaseView.js.map +1 -1
  29. package/lib/components/CaseView/CaseView.styles.d.ts +14 -17
  30. package/lib/components/CaseView/CaseView.styles.d.ts.map +1 -1
  31. package/lib/components/CaseView/CaseView.styles.js +249 -41
  32. package/lib/components/CaseView/CaseView.styles.js.map +1 -1
  33. package/lib/components/CaseView/CaseView.types.d.ts +103 -0
  34. package/lib/components/CaseView/CaseView.types.d.ts.map +1 -0
  35. package/lib/components/CaseView/CaseView.types.js +2 -0
  36. package/lib/components/CaseView/CaseView.types.js.map +1 -0
  37. package/lib/components/CaseView/UtilitiesSummary.d.ts +4 -6
  38. package/lib/components/CaseView/UtilitiesSummary.d.ts.map +1 -1
  39. package/lib/components/CaseView/UtilitiesSummary.js +6 -2
  40. package/lib/components/CaseView/UtilitiesSummary.js.map +1 -1
  41. package/lib/components/CaseView/index.d.ts +5 -2
  42. package/lib/components/CaseView/index.d.ts.map +1 -1
  43. package/lib/components/CaseView/index.js +4 -1
  44. package/lib/components/CaseView/index.js.map +1 -1
  45. package/lib/components/ConfigurableLayout/ConfigurableLayout.d.ts.map +1 -1
  46. package/lib/components/ConfigurableLayout/ConfigurableLayout.js +9 -16
  47. package/lib/components/ConfigurableLayout/ConfigurableLayout.js.map +1 -1
  48. package/lib/components/ConfigurableLayout/useTrackWrappedRegions.d.ts +1 -1
  49. package/lib/components/ConfigurableLayout/useTrackWrappedRegions.d.ts.map +1 -1
  50. package/lib/components/Confirmation/Confirmation.d.ts +2 -2
  51. package/lib/components/Confirmation/Confirmation.d.ts.map +1 -1
  52. package/lib/components/Confirmation/Confirmation.js +1 -1
  53. package/lib/components/Confirmation/Confirmation.js.map +1 -1
  54. package/lib/components/Details/Details.d.ts +31 -10
  55. package/lib/components/Details/Details.d.ts.map +1 -1
  56. package/lib/components/Details/Details.js +77 -35
  57. package/lib/components/Details/Details.js.map +1 -1
  58. package/lib/components/Details/Details.styles.d.ts +47 -0
  59. package/lib/components/Details/Details.styles.d.ts.map +1 -0
  60. package/lib/components/Details/Details.styles.js +243 -0
  61. package/lib/components/Details/Details.styles.js.map +1 -0
  62. package/lib/components/Details/DetailsContext.d.ts +9 -0
  63. package/lib/components/Details/DetailsContext.d.ts.map +1 -0
  64. package/lib/components/Details/DetailsContext.js +9 -0
  65. package/lib/components/Details/DetailsContext.js.map +1 -0
  66. package/lib/components/Details/index.d.ts +2 -2
  67. package/lib/components/Details/index.d.ts.map +1 -1
  68. package/lib/components/Details/index.js +2 -1
  69. package/lib/components/Details/index.js.map +1 -1
  70. package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts +6 -0
  71. package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts.map +1 -0
  72. package/lib/components/IntelligentGuidance/IntelligentGuidance.js +87 -0
  73. package/lib/components/IntelligentGuidance/IntelligentGuidance.js.map +1 -0
  74. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts +8 -0
  75. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts.map +1 -0
  76. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js +143 -0
  77. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js.map +1 -0
  78. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.d.ts +31 -0
  79. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.d.ts.map +1 -0
  80. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.js +2 -0
  81. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.js.map +1 -0
  82. package/lib/components/IntelligentGuidance/index.d.ts +3 -0
  83. package/lib/components/IntelligentGuidance/index.d.ts.map +1 -0
  84. package/lib/components/IntelligentGuidance/index.js +2 -0
  85. package/lib/components/IntelligentGuidance/index.js.map +1 -0
  86. package/lib/components/SearchResults/SearchResult.d.ts +1 -1
  87. package/lib/components/SearchResults/SearchResult.d.ts.map +1 -1
  88. package/lib/components/SearchResults/SearchResult.js +9 -3
  89. package/lib/components/SearchResults/SearchResult.js.map +1 -1
  90. package/lib/components/SearchResults/SearchResults.d.ts.map +1 -1
  91. package/lib/components/SearchResults/SearchResults.js +56 -37
  92. package/lib/components/SearchResults/SearchResults.js.map +1 -1
  93. package/lib/components/SearchResults/SearchResults.styles.d.ts +3 -0
  94. package/lib/components/SearchResults/SearchResults.styles.d.ts.map +1 -1
  95. package/lib/components/SearchResults/SearchResults.styles.js +38 -17
  96. package/lib/components/SearchResults/SearchResults.styles.js.map +1 -1
  97. package/lib/components/SearchResults/SearchResults.types.d.ts +4 -0
  98. package/lib/components/SearchResults/SearchResults.types.d.ts.map +1 -1
  99. package/lib/components/SearchResults/SearchResults.types.js.map +1 -1
  100. package/lib/components/Stages/StageGlimpse.d.ts +10 -0
  101. package/lib/components/Stages/StageGlimpse.d.ts.map +1 -0
  102. package/lib/components/Stages/StageGlimpse.js +11 -0
  103. package/lib/components/Stages/StageGlimpse.js.map +1 -0
  104. package/lib/components/Stages/Stages.d.ts +1 -1
  105. package/lib/components/Stages/Stages.d.ts.map +1 -1
  106. package/lib/components/Stages/Stages.js +105 -112
  107. package/lib/components/Stages/Stages.js.map +1 -1
  108. package/lib/components/Stages/Stages.styles.d.ts +5 -7
  109. package/lib/components/Stages/Stages.styles.d.ts.map +1 -1
  110. package/lib/components/Stages/Stages.styles.js +170 -189
  111. package/lib/components/Stages/Stages.styles.js.map +1 -1
  112. package/lib/components/Stages/Stages.types.d.ts +19 -4
  113. package/lib/components/Stages/Stages.types.d.ts.map +1 -1
  114. package/lib/components/Stages/Stages.types.js.map +1 -1
  115. package/lib/components/Stakeholders/Stakeholders.d.ts.map +1 -1
  116. package/lib/components/Stakeholders/Stakeholders.js +10 -4
  117. package/lib/components/Stakeholders/Stakeholders.js.map +1 -1
  118. package/lib/components/Tags/Tags.d.ts.map +1 -1
  119. package/lib/components/Tags/Tags.js +23 -9
  120. package/lib/components/Tags/Tags.js.map +1 -1
  121. package/lib/components/Tasks/TaskList.d.ts +8 -5
  122. package/lib/components/Tasks/TaskList.d.ts.map +1 -1
  123. package/lib/components/Tasks/TaskList.js +12 -4
  124. package/lib/components/Tasks/TaskList.js.map +1 -1
  125. package/lib/components/Tasks/Tasks.d.ts.map +1 -1
  126. package/lib/components/Tasks/Tasks.js +2 -1
  127. package/lib/components/Tasks/Tasks.js.map +1 -1
  128. package/lib/components/Timeline/Timeline.styles.d.ts +1 -1
  129. package/lib/components/Timeline/Timeline.styles.d.ts.map +1 -1
  130. package/lib/components/Timeline/Timeline.styles.js +1 -0
  131. package/lib/components/Timeline/Timeline.styles.js.map +1 -1
  132. package/lib/components/Timeline/TimelineItem.d.ts.map +1 -1
  133. package/lib/components/Timeline/TimelineItem.js +2 -2
  134. package/lib/components/Timeline/TimelineItem.js.map +1 -1
  135. package/lib/index.d.ts +2 -6
  136. package/lib/index.d.ts.map +1 -1
  137. package/lib/index.js +2 -6
  138. package/lib/index.js.map +1 -1
  139. package/package.json +6 -5
  140. package/lib/components/CaseHeader/CaseHeader.d.ts +0 -30
  141. package/lib/components/CaseHeader/CaseHeader.d.ts.map +0 -1
  142. package/lib/components/CaseHeader/CaseHeader.js +0 -119
  143. package/lib/components/CaseHeader/CaseHeader.js.map +0 -1
  144. package/lib/components/CaseHeader/index.d.ts +0 -4
  145. package/lib/components/CaseHeader/index.d.ts.map +0 -1
  146. package/lib/components/CaseHeader/index.js +0 -3
  147. package/lib/components/CaseHeader/index.js.map +0 -1
  148. package/lib/components/CaseSummary/CaseSummary.d.ts +0 -36
  149. package/lib/components/CaseSummary/CaseSummary.d.ts.map +0 -1
  150. package/lib/components/CaseSummary/CaseSummary.js +0 -130
  151. package/lib/components/CaseSummary/CaseSummary.js.map +0 -1
  152. package/lib/components/CaseSummary/index.d.ts +0 -4
  153. package/lib/components/CaseSummary/index.d.ts.map +0 -1
  154. package/lib/components/CaseSummary/index.js +0 -3
  155. package/lib/components/CaseSummary/index.js.map +0 -1
  156. package/lib/components/CaseSummaryFields/CaseSummaryFields.d.ts +0 -22
  157. package/lib/components/CaseSummaryFields/CaseSummaryFields.d.ts.map +0 -1
  158. package/lib/components/CaseSummaryFields/CaseSummaryFields.js +0 -25
  159. package/lib/components/CaseSummaryFields/CaseSummaryFields.js.map +0 -1
  160. package/lib/components/CaseSummaryFields/index.d.ts +0 -4
  161. package/lib/components/CaseSummaryFields/index.d.ts.map +0 -1
  162. package/lib/components/CaseSummaryFields/index.js +0 -3
  163. package/lib/components/CaseSummaryFields/index.js.map +0 -1
  164. package/lib/components/Stages/Steps.d.ts +0 -8
  165. package/lib/components/Stages/Steps.d.ts.map +0 -1
  166. package/lib/components/Stages/Steps.js +0 -12
  167. package/lib/components/Stages/Steps.js.map +0 -1
  168. package/lib/components/Stages/StepsContainer.d.ts +0 -8
  169. package/lib/components/Stages/StepsContainer.d.ts.map +0 -1
  170. package/lib/components/Stages/StepsContainer.js +0 -11
  171. package/lib/components/Stages/StepsContainer.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":";AAAA,OAAO,EAAa,UAAU,EAA2C,MAAM,OAAO,CAAC;AACvF,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACL,IAAI,EACJ,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAGjB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IAC9D,MAAM,SAAS,GAAG,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;IAEvF,OAAO,GAAG,CAAA;wBACY,KAAK,CAAC,IAAI,CAAC,OAAO;;QAElC,oBAAoB;;;QAGpB,gBAAgB;qBACH,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,WAAW,CAAa,CAAC;uBAC1D,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC;;;GAG3D,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,uBAAuB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAmBxD,MAAM,iBAAiB,GAA6D,UAAU,CAC5F,CACE,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,SAAS,EAA2C,EACzF,GAAkC,EAClC,EAAE;IACF,OAAO,CACL,MAAC,IAAI,OAAK,SAAS,EAAE,EAAE,EAAE,uBAAuB,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,aAClF,KAAC,cAAc,IAAC,OAAO,EAAC,SAAS,EAAC,MAAM,EAAE,aAAa,GAAI,EAC3D,KAAC,cAAc,IAAC,OAAO,EAAC,QAAQ,EAAC,MAAM,EAAE,eAAe,GAAI,IACvD,CACR,CAAC;AACJ,CAAC,CACF,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"]}
@@ -1,8 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { StepProps } from './Stages.types';
3
- interface StepsProps {
4
- steps?: StepProps[];
5
- }
6
- declare const Steps: FunctionComponent<StepsProps>;
7
- export default Steps;
8
- //# sourceMappingURL=Steps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../../../src/components/Stages/Steps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM3D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAK3C,UAAU,UAAU;IAClB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,QAAA,MAAM,KAAK,EAAE,iBAAiB,CAAC,UAAU,CAcxC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Icon, registerIcon, Text, Grid } from '@pega/cosmos-react-core';
3
- import * as checkIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/check.icon';
4
- import * as circleSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/circle-solid.icon';
5
- import { StyledStep, StyledStepsContainer } from './Stages.styles';
6
- registerIcon(checkIcon, circleSolidIcon);
7
- const Steps = ({ steps }) => {
8
- return (_jsx(StyledStepsContainer, { children: steps &&
9
- steps.map(({ id, name, complete }) => (_jsx(StyledStep, { complete: complete, children: _jsxs(Grid, { container: { cols: '1.625rem 1fr' }, children: [_jsx(Icon, { name: complete ? 'check' : 'circle-solid' }), _jsx(Text, { children: name })] }) }, id))) }));
10
- };
11
- export default Steps;
12
- //# sourceMappingURL=Steps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Steps.js","sourceRoot":"","sources":["../../../src/components/Stages/Steps.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,KAAK,SAAS,MAAM,8DAA8D,CAAC;AAC1F,OAAO,KAAK,eAAe,MAAM,qEAAqE,CAAC;AAGvG,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEnE,YAAY,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;AAMzC,MAAM,KAAK,GAAkC,CAAC,EAAE,KAAK,EAA+B,EAAE,EAAE;IACtF,OAAO,CACL,KAAC,oBAAoB,cAClB,KAAK;YACJ,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACpC,KAAC,UAAU,IAAU,QAAQ,EAAE,QAAQ,YACrC,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,aACvC,KAAC,IAAI,IAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,GAAI,EACnD,KAAC,IAAI,cAAE,IAAI,GAAQ,IACd,IAJQ,EAAE,CAKN,CACd,CAAC,GACiB,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC","sourcesContent":["import { PropsWithoutRef, FunctionComponent } from 'react';\n\nimport { Icon, registerIcon, Text, Grid } from '@pega/cosmos-react-core';\nimport * as checkIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/check.icon';\nimport * as circleSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/circle-solid.icon';\n\nimport { StepProps } from './Stages.types';\nimport { StyledStep, StyledStepsContainer } from './Stages.styles';\n\nregisterIcon(checkIcon, circleSolidIcon);\n\ninterface StepsProps {\n steps?: StepProps[];\n}\n\nconst Steps: FunctionComponent<StepsProps> = ({ steps }: PropsWithoutRef<StepsProps>) => {\n return (\n <StyledStepsContainer>\n {steps &&\n steps.map(({ id, name, complete }) => (\n <StyledStep key={id} complete={complete}>\n <Grid container={{ cols: '1.625rem 1fr' }}>\n <Icon name={complete ? 'check' : 'circle-solid'} />\n <Text>{name}</Text>\n </Grid>\n </StyledStep>\n ))}\n </StyledStepsContainer>\n );\n};\n\nexport default Steps;\n"]}
@@ -1,8 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { StagesProps } from './Stages.types';
3
- export interface StepsContainerProps {
4
- currentStage: StagesProps['stages'];
5
- }
6
- declare const StepsContainer: FunctionComponent<StepsContainerProps>;
7
- export default StepsContainer;
8
- //# sourceMappingURL=StepsContainer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StepsContainer.d.ts","sourceRoot":"","sources":["../../../src/components/Stages/StepsContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAmB,MAAM,OAAO,CAAC;AAM3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK7C,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;CACrC;AAED,QAAA,MAAM,cAAc,EAAE,iBAAiB,CAAC,mBAAmB,CAqB1D,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,11 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Flex, Icon, registerIcon, DateTimeDisplay, Text } from '@pega/cosmos-react-core';
3
- import * as checkIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/check.icon';
4
- import Steps from './Steps';
5
- import { StyledDateTimeDisplay, StyledInnerStep, StyledSteps } from './Stages.styles';
6
- registerIcon(checkIcon);
7
- const StepsContainer = ({ currentStage }) => {
8
- return (_jsxs(Flex, { as: StyledSteps, container: { direction: 'column' }, item: { grow: 1 }, children: [_jsxs(StyledInnerStep, { complete: currentStage[0]?.complete, children: [currentStage[0]?.complete && _jsx(Icon, { name: 'check' }), _jsx(Text, { variant: 'h2', children: currentStage[0]?.name })] }), currentStage[0]?.date && (_jsx(DateTimeDisplay, { as: StyledDateTimeDisplay, value: currentStage[0]?.date, variant: 'relative', format: 'short' })), _jsx(Steps, { steps: currentStage[0].steps })] }));
9
- };
10
- export default StepsContainer;
11
- //# sourceMappingURL=StepsContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StepsContainer.js","sourceRoot":"","sources":["../../../src/components/Stages/StepsContainer.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,KAAK,SAAS,MAAM,8DAA8D,CAAC;AAE1F,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEtF,YAAY,CAAC,SAAS,CAAC,CAAC;AAMxB,MAAM,cAAc,GAA2C,CAAC,EAC9D,YAAY,EACyB,EAAE,EAAE;IACzC,OAAO,CACL,MAAC,IAAI,IAAC,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,aAC1E,MAAC,eAAe,IAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,QAAQ,aACjD,YAAY,CAAC,CAAC,CAAC,EAAE,QAAQ,IAAI,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,GAAG,EACnD,KAAC,IAAI,IAAC,OAAO,EAAC,IAAI,YAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,GAAQ,IACjC,EACjB,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CACxB,KAAC,eAAe,IACd,EAAE,EAAE,qBAAqB,EACzB,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,EAC5B,OAAO,EAAC,UAAU,EAClB,MAAM,EAAC,OAAO,GACd,CACH,EAED,KAAC,KAAK,IAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,GAAI,IAClC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import { FunctionComponent, PropsWithoutRef } from 'react';\n\nimport { Flex, Icon, registerIcon, DateTimeDisplay, Text } from '@pega/cosmos-react-core';\nimport * as checkIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/check.icon';\n\nimport Steps from './Steps';\nimport { StagesProps } from './Stages.types';\nimport { StyledDateTimeDisplay, StyledInnerStep, StyledSteps } from './Stages.styles';\n\nregisterIcon(checkIcon);\n\nexport interface StepsContainerProps {\n currentStage: StagesProps['stages'];\n}\n\nconst StepsContainer: FunctionComponent<StepsContainerProps> = ({\n currentStage\n}: PropsWithoutRef<StepsContainerProps>) => {\n return (\n <Flex as={StyledSteps} container={{ direction: 'column' }} item={{ grow: 1 }}>\n <StyledInnerStep complete={currentStage[0]?.complete}>\n {currentStage[0]?.complete && <Icon name='check' />}\n <Text variant='h2'>{currentStage[0]?.name}</Text>\n </StyledInnerStep>\n {currentStage[0]?.date && (\n <DateTimeDisplay\n as={StyledDateTimeDisplay}\n value={currentStage[0]?.date}\n variant='relative'\n format='short'\n />\n )}\n\n <Steps steps={currentStage[0].steps} />\n </Flex>\n );\n};\n\nexport default StepsContainer;\n"]}