@pega/cosmos-react-work 9.25.1-2 → 9.25.1-4

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 (52) hide show
  1. package/lib/components/CasePreview/CasePreview.d.ts +2 -0
  2. package/lib/components/CasePreview/CasePreview.d.ts.map +1 -1
  3. package/lib/components/CasePreview/CasePreview.js +18 -3
  4. package/lib/components/CasePreview/CasePreview.js.map +1 -1
  5. package/lib/components/CaseView/CaseHeader/CaseHeader.d.ts.map +1 -1
  6. package/lib/components/CaseView/CaseHeader/CaseHeader.js +4 -2
  7. package/lib/components/CaseView/CaseHeader/CaseHeader.js.map +1 -1
  8. package/lib/components/CaseView/CaseSummary.d.ts +3 -2
  9. package/lib/components/CaseView/CaseSummary.d.ts.map +1 -1
  10. package/lib/components/CaseView/CaseSummary.js +2 -2
  11. package/lib/components/CaseView/CaseSummary.js.map +1 -1
  12. package/lib/components/CaseView/CaseView.js +1 -1
  13. package/lib/components/CaseView/CaseView.js.map +1 -1
  14. package/lib/components/CaseView/CaseView.styles.d.ts.map +1 -1
  15. package/lib/components/CaseView/CaseView.styles.js +13 -4
  16. package/lib/components/CaseView/CaseView.styles.js.map +1 -1
  17. package/lib/components/CaseView/CaseView.types.d.ts +5 -2
  18. package/lib/components/CaseView/CaseView.types.d.ts.map +1 -1
  19. package/lib/components/CaseView/CaseView.types.js.map +1 -1
  20. package/lib/components/MasterDetail/DetailPanelHeader.d.ts +29 -0
  21. package/lib/components/MasterDetail/DetailPanelHeader.d.ts.map +1 -0
  22. package/lib/components/MasterDetail/DetailPanelHeader.js +14 -0
  23. package/lib/components/MasterDetail/DetailPanelHeader.js.map +1 -0
  24. package/lib/components/MasterDetail/MasterDetail.d.ts +6 -0
  25. package/lib/components/MasterDetail/MasterDetail.d.ts.map +1 -0
  26. package/lib/components/MasterDetail/MasterDetail.js +116 -0
  27. package/lib/components/MasterDetail/MasterDetail.js.map +1 -0
  28. package/lib/components/MasterDetail/MasterDetail.styles.d.ts +595 -0
  29. package/lib/components/MasterDetail/MasterDetail.styles.d.ts.map +1 -0
  30. package/lib/components/MasterDetail/MasterDetail.styles.js +246 -0
  31. package/lib/components/MasterDetail/MasterDetail.styles.js.map +1 -0
  32. package/lib/components/MasterDetail/MasterDetail.test-ids.d.ts +2 -0
  33. package/lib/components/MasterDetail/MasterDetail.test-ids.d.ts.map +1 -0
  34. package/lib/components/MasterDetail/MasterDetail.test-ids.js +19 -0
  35. package/lib/components/MasterDetail/MasterDetail.test-ids.js.map +1 -0
  36. package/lib/components/MasterDetail/MasterDetail.types.d.ts +71 -0
  37. package/lib/components/MasterDetail/MasterDetail.types.d.ts.map +1 -0
  38. package/lib/components/MasterDetail/MasterDetail.types.js +2 -0
  39. package/lib/components/MasterDetail/MasterDetail.types.js.map +1 -0
  40. package/lib/components/MasterDetail/MasterDetailActions.d.ts +10 -0
  41. package/lib/components/MasterDetail/MasterDetailActions.d.ts.map +1 -0
  42. package/lib/components/MasterDetail/MasterDetailActions.js +45 -0
  43. package/lib/components/MasterDetail/MasterDetailActions.js.map +1 -0
  44. package/lib/components/MasterDetail/index.d.ts +5 -0
  45. package/lib/components/MasterDetail/index.d.ts.map +1 -0
  46. package/lib/components/MasterDetail/index.js +4 -0
  47. package/lib/components/MasterDetail/index.js.map +1 -0
  48. package/lib/index.d.ts +2 -0
  49. package/lib/index.d.ts.map +1 -1
  50. package/lib/index.js +2 -0
  51. package/lib/index.js.map +1 -1
  52. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MasterDetail.styles.d.ts","sourceRoot":"","sources":["../../../src/components/MasterDetail/MasterDetail.styles.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB;mBAAmC,QAAQ,GAAG,SAAS;YAsBpF,CAAC;AAIF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,6NAqBlC,CAAC;AAIF,eAAO,MAAM,uBAAuB;gBAA4B,OAAO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styled-components';
3
+ import { Button, Flex, Icon, defaultThemeProp } from '@pega/cosmos-react-core';
4
+ import { StyledResizeHandle } from '@pega/cosmos-react-core/lib/components/Drawer/ResizeHandle';
5
+ import { ellipsisOverflow } from '@pega/cosmos-react-core/lib/styles/mixins';
6
+ /**
7
+ * The detail surface. In `docked` mode it is an in-flow flex item stretched to the host's height
8
+ * (its body scrolls internally). In `overlay` mode it floats over the host anchored to the trailing
9
+ * edge, lifted with a stronger shadow.
10
+ *
11
+ * In both modes the panel never contributes its intrinsic (content) height to the layout — its
12
+ * content is rendered in an absolutely-positioned inner column (`StyledDetailPanelInner`). That is
13
+ * what keeps a docked panel from growing the host past the master: the flex row's height is dictated
14
+ * solely by the master, `align-items: stretch` on the host stretches this panel to that height, and
15
+ * the body scrolls internally instead of overflowing.
16
+ */
17
+ export const StyledDetailPanel = styled.section(({ theme, presentation }) => css `
18
+ --md-panel-edge-shadow: ${transparentize(0.85, theme.base.palette['foreground-color'])};
19
+ position: relative;
20
+ z-index: 1;
21
+ min-inline-size: 0;
22
+ overflow: hidden;
23
+ background: ${theme.base.palette['primary-background']};
24
+ border: 0.0625rem solid ${theme.base.palette['border-line']};
25
+ border-radius: 0 ${theme.base['border-radius']} ${theme.base['border-radius']} 0;
26
+
27
+ ${presentation === 'overlay' &&
28
+ css `
29
+ position: absolute;
30
+ inset-block: 0;
31
+ inset-inline-end: 0;
32
+ inline-size: min(90%, 40rem);
33
+ max-inline-size: 90%;
34
+ z-index: ${theme.base['z-index'].drawer};
35
+ box-shadow: ${theme.base.shadow.high};
36
+ `}
37
+ `);
38
+ StyledDetailPanel.defaultProps = defaultThemeProp;
39
+ /**
40
+ * Absolutely-positioned column that holds the header + body. Filling the panel box (`inset: 0`) while
41
+ * contributing zero intrinsic height is what lets the panel take its height from the host row rather
42
+ * than dictate it — the body then scrolls within this fixed box.
43
+ */
44
+ export const StyledDetailPanelInner = styled.div `
45
+ position: absolute;
46
+ inset: 0;
47
+ display: flex;
48
+ flex-direction: column;
49
+
50
+ &::before {
51
+ content: '';
52
+ position: absolute;
53
+ inset-block: 0;
54
+ inset-inline-start: 0;
55
+ inline-size: 0.375rem;
56
+ pointer-events: none;
57
+ box-shadow: 0.1875rem 0 0.1875rem 0 var(--md-panel-edge-shadow) inset;
58
+ z-index: 1;
59
+ }
60
+
61
+ > * {
62
+ position: relative;
63
+ z-index: 0;
64
+ }
65
+ `;
66
+ StyledDetailPanelInner.defaultProps = defaultThemeProp;
67
+ export const StyledDetailPanelHeader = styled.div(({ theme, $isNested }) => css `
68
+ display: flex;
69
+ flex-direction: row;
70
+ justify-content: space-between;
71
+ align-items: center;
72
+ height: calc(${theme.base.spacing} * 4);
73
+ flex-shrink: 0;
74
+ padding: 0;
75
+ background: ${theme.base.palette['primary-background']};
76
+
77
+ ${$isNested &&
78
+ css `
79
+ border-radius: ${theme.base['border-radius']} ${theme.base['border-radius']} 0 0;
80
+ border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};
81
+ box-shadow: 0 -0.125rem 0.25rem 0 ${transparentize(0.9, theme.base.palette.dark)};
82
+ `}
83
+ `);
84
+ StyledDetailPanelHeader.defaultProps = defaultThemeProp;
85
+ export const StyledDetailPanelNav = styled.div(({ theme }) => css `
86
+ display: flex;
87
+ flex-direction: row;
88
+ align-items: stretch;
89
+ justify-content: space-between;
90
+ flex-shrink: 0;
91
+ padding: 0;
92
+ min-block-size: calc(${theme.base.spacing} * 4);
93
+ border-top: 0.0625rem solid ${theme.base.palette['border-line']};
94
+ `);
95
+ StyledDetailPanelNav.defaultProps = defaultThemeProp;
96
+ export const StyledDetailPanelIdentity = styled.div(({ theme }) => css `
97
+ flex: 1 1 auto;
98
+ min-inline-size: 0;
99
+ overflow: hidden;
100
+ display: flex;
101
+ align-self: stretch;
102
+ flex-direction: row;
103
+ justify-content: flex-start;
104
+ align-items: center;
105
+ gap: calc(${theme.base.spacing} * 0.5);
106
+ padding-inline: calc(${theme.base.spacing} * 0.5);
107
+
108
+ > * {
109
+ min-inline-size: 0;
110
+ }
111
+
112
+ > h2,
113
+ > span,
114
+ > p {
115
+ display: block;
116
+ ${ellipsisOverflow}
117
+ color: ${theme.base.palette['foreground-color']};
118
+ }
119
+ `);
120
+ StyledDetailPanelIdentity.defaultProps = defaultThemeProp;
121
+ export const StyledDetailPanelIcon = styled(Icon)(({ theme }) => css `
122
+ margin-inline-start: ${theme.base.spacing};
123
+ `);
124
+ StyledDetailPanelIcon.defaultProps = defaultThemeProp;
125
+ const navActionGroupStyles = css `
126
+ display: flex;
127
+ flex-direction: row;
128
+
129
+ > button:last-child:hover {
130
+ border-radius: inherit;
131
+ }
132
+ `;
133
+ export const StyledNavButtonGroup = styled.span(({ theme }) => css `
134
+ ${navActionGroupStyles}
135
+ inline-size: 100%;
136
+
137
+ > * {
138
+ flex: 1 1 0;
139
+ }
140
+
141
+ > *:not(:first-child) {
142
+ border-inline-start: 0.0625rem solid ${theme.base.palette['border-line']};
143
+ }
144
+ `);
145
+ StyledNavButtonGroup.defaultProps = defaultThemeProp;
146
+ export const StyledCloseButtonGroup = styled.span(() => css `
147
+ ${navActionGroupStyles}
148
+ flex: 0 0 auto;
149
+ align-items: center;
150
+ align-self: stretch;
151
+ margin-inline-start: auto;
152
+ `);
153
+ StyledCloseButtonGroup.defaultProps = defaultThemeProp;
154
+ export const StyledNavButton = styled(Button)(({ theme }) => css `
155
+ display: flex;
156
+ padding: 0;
157
+ align-items: center;
158
+ border: 0;
159
+ border-radius: 0;
160
+ min-width: 2rem;
161
+ min-height: 2rem;
162
+
163
+ & + & {
164
+ margin-inline-start: 0;
165
+ }
166
+
167
+ &:not([disabled], [aria-disabled='true']):focus-visible,
168
+ &:enabled:not([aria-disabled='true']):focus-visible {
169
+ box-shadow: inset 0 0 0 0.0625rem ${theme.base.palette.interactive};
170
+ }
171
+ `);
172
+ StyledNavButton.defaultProps = defaultThemeProp;
173
+ export const StyledBackButton = styled(StyledNavButton)(({ theme }) => css `
174
+ align-self: stretch;
175
+ border-inline-end: 0.0625rem solid ${theme.base.palette['border-line']};
176
+ border-start-start-radius: inherit;
177
+ `);
178
+ StyledBackButton.defaultProps = defaultThemeProp;
179
+ export const StyledDetailPanelBody = styled.div(({ theme }) => css `
180
+ position: relative;
181
+ flex: 1;
182
+ min-block-size: 0;
183
+ overflow: auto;
184
+ padding: ${theme.base.spacing};
185
+ background: ${theme.base.palette['secondary-background']};
186
+ `);
187
+ StyledDetailPanelBody.defaultProps = defaultThemeProp;
188
+ /**
189
+ * Flex layout that lets the master (e.g. a table) and the detail surface share the host box. The
190
+ * master fills the row until the detail opens, then yields the trailing space to the panel. When
191
+ * `--md-master-width` is set the split is controlled to that ratio (master width). On narrow hosts
192
+ * the `overlay` modifier keeps the master full width and floats the panel over it.
193
+ */
194
+ export const StyledMasterRegion = styled(Flex)(() => css `
195
+ min-inline-size: 0;
196
+ `);
197
+ StyledMasterRegion.defaultProps = defaultThemeProp;
198
+ export const StyledResizeHandleSlot = styled(Flex)(() => css `
199
+ position: relative;
200
+ width: 0;
201
+ `);
202
+ StyledResizeHandleSlot.defaultProps = defaultThemeProp;
203
+ export const StyledMasterDetail = styled(Flex)(({ $masterWidth, $open, $overlay }) => css `
204
+ --md-master-width: ${$masterWidth}%;
205
+ position: relative;
206
+ isolation: isolate;
207
+ align-items: stretch;
208
+ inline-size: 100%;
209
+ block-size: 100%;
210
+ min-block-size: 0;
211
+ container-type: inline-size;
212
+
213
+ > ${StyledMasterRegion} {
214
+ flex: 1 1 auto;
215
+ min-inline-size: 0;
216
+ }
217
+
218
+ ${$open &&
219
+ !$overlay &&
220
+ css `
221
+ > ${StyledMasterRegion} {
222
+ flex: 0 0 var(--md-master-width, 60%);
223
+ max-inline-size: var(--md-master-width, 60%);
224
+ order: 1;
225
+ }
226
+
227
+ > ${StyledResizeHandleSlot} {
228
+ flex: 0 0 auto;
229
+ display: flex;
230
+ align-items: stretch;
231
+ order: 2;
232
+ position: relative;
233
+ }
234
+
235
+ > ${StyledDetailPanel} {
236
+ order: 3;
237
+ flex: 1 1 auto;
238
+ }
239
+ `}
240
+
241
+ ${StyledResizeHandle} {
242
+ z-index: ${({ theme }) => theme.base['z-index'].max};
243
+ }
244
+ `);
245
+ StyledMasterDetail.defaultProps = defaultThemeProp;
246
+ //# sourceMappingURL=MasterDetail.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MasterDetail.styles.js","sourceRoot":"","sources":["../../../src/components/MasterDetail/MasterDetail.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,4DAA4D,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAE7E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,CAC7C,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;8BACJ,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;;;;;kBAKxE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC;8BAC5B,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;uBACxC,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;;MAE3E,YAAY,KAAK,SAAS;IAC5B,GAAG,CAAA;;;;;;iBAMU,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM;oBACzB,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI;KACrC;GACF,CACF,CAAC;AA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kB,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import { transparentize } from 'polished';\nimport styled, { css } from 'styled-components';\n\nimport { Button, Flex, Icon, defaultThemeProp } from '@pega/cosmos-react-core';\nimport { StyledResizeHandle } from '@pega/cosmos-react-core/lib/components/Drawer/ResizeHandle';\nimport { ellipsisOverflow } from '@pega/cosmos-react-core/lib/styles/mixins';\n\n/**\n * The detail surface. In `docked` mode it is an in-flow flex item stretched to the host's height\n * (its body scrolls internally). In `overlay` mode it floats over the host anchored to the trailing\n * edge, lifted with a stronger shadow.\n *\n * In both modes the panel never contributes its intrinsic (content) height to the layout — its\n * content is rendered in an absolutely-positioned inner column (`StyledDetailPanelInner`). That is\n * what keeps a docked panel from growing the host past the master: the flex row's height is dictated\n * solely by the master, `align-items: stretch` on the host stretches this panel to that height, and\n * the body scrolls internally instead of overflowing.\n */\nexport const StyledDetailPanel = styled.section<{ presentation?: 'docked' | 'overlay' }>(\n ({ theme, presentation }) => css`\n --md-panel-edge-shadow: ${transparentize(0.85, theme.base.palette['foreground-color'])};\n position: relative;\n z-index: 1;\n min-inline-size: 0;\n overflow: hidden;\n background: ${theme.base.palette['primary-background']};\n border: 0.0625rem solid ${theme.base.palette['border-line']};\n border-radius: 0 ${theme.base['border-radius']} ${theme.base['border-radius']} 0;\n\n ${presentation === 'overlay' &&\n css`\n position: absolute;\n inset-block: 0;\n inset-inline-end: 0;\n inline-size: min(90%, 40rem);\n max-inline-size: 90%;\n z-index: ${theme.base['z-index'].drawer};\n box-shadow: ${theme.base.shadow.high};\n `}\n `\n);\n\nStyledDetailPanel.defaultProps = defaultThemeProp;\n\n/**\n * Absolutely-positioned column that holds the header + body. Filling the panel box (`inset: 0`) while\n * contributing zero intrinsic height is what lets the panel take its height from the host row rather\n * than dictate it — the body then scrolls within this fixed box.\n */\nexport const StyledDetailPanelInner = styled.div`\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n\n &::before {\n content: '';\n position: absolute;\n inset-block: 0;\n inset-inline-start: 0;\n inline-size: 0.375rem;\n pointer-events: none;\n box-shadow: 0.1875rem 0 0.1875rem 0 var(--md-panel-edge-shadow) inset;\n z-index: 1;\n }\n\n > * {\n position: relative;\n z-index: 0;\n }\n`;\n\nStyledDetailPanelInner.defaultProps = defaultThemeProp;\n\nexport const StyledDetailPanelHeader = styled.div<{ $isNested?: boolean }>(\n ({ theme, $isNested }) => css`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n height: calc(${theme.base.spacing} * 4);\n flex-shrink: 0;\n padding: 0;\n background: ${theme.base.palette['primary-background']};\n\n ${$isNested &&\n css`\n border-radius: ${theme.base['border-radius']} ${theme.base['border-radius']} 0 0;\n border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};\n box-shadow: 0 -0.125rem 0.25rem 0 ${transparentize(0.9, theme.base.palette.dark)};\n `}\n `\n);\n\nStyledDetailPanelHeader.defaultProps = defaultThemeProp;\n\nexport const StyledDetailPanelNav = styled.div(\n ({ theme }) => css`\n display: flex;\n flex-direction: row;\n align-items: stretch;\n justify-content: space-between;\n flex-shrink: 0;\n padding: 0;\n min-block-size: calc(${theme.base.spacing} * 4);\n border-top: 0.0625rem solid ${theme.base.palette['border-line']};\n `\n);\n\nStyledDetailPanelNav.defaultProps = defaultThemeProp;\n\nexport const StyledDetailPanelIdentity = styled.div(\n ({ theme }) => css`\n flex: 1 1 auto;\n min-inline-size: 0;\n overflow: hidden;\n display: flex;\n align-self: stretch;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: calc(${theme.base.spacing} * 0.5);\n padding-inline: calc(${theme.base.spacing} * 0.5);\n\n > * {\n min-inline-size: 0;\n }\n\n > h2,\n > span,\n > p {\n display: block;\n ${ellipsisOverflow}\n color: ${theme.base.palette['foreground-color']};\n }\n `\n);\n\nStyledDetailPanelIdentity.defaultProps = defaultThemeProp;\n\nexport const StyledDetailPanelIcon = styled(Icon)(\n ({ theme }) => css`\n margin-inline-start: ${theme.base.spacing};\n `\n);\n\nStyledDetailPanelIcon.defaultProps = defaultThemeProp;\n\nconst navActionGroupStyles = css`\n display: flex;\n flex-direction: row;\n\n > button:last-child:hover {\n border-radius: inherit;\n }\n`;\n\nexport const StyledNavButtonGroup = styled.span(\n ({ theme }) => css`\n ${navActionGroupStyles}\n inline-size: 100%;\n\n > * {\n flex: 1 1 0;\n }\n\n > *:not(:first-child) {\n border-inline-start: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n `\n);\n\nStyledNavButtonGroup.defaultProps = defaultThemeProp;\n\nexport const StyledCloseButtonGroup = styled.span(\n () => css`\n ${navActionGroupStyles}\n flex: 0 0 auto;\n align-items: center;\n align-self: stretch;\n margin-inline-start: auto;\n `\n);\n\nStyledCloseButtonGroup.defaultProps = defaultThemeProp;\n\nexport const StyledNavButton = styled(Button)(\n ({ theme }) => css`\n display: flex;\n padding: 0;\n align-items: center;\n border: 0;\n border-radius: 0;\n min-width: 2rem;\n min-height: 2rem;\n\n & + & {\n margin-inline-start: 0;\n }\n\n &:not([disabled], [aria-disabled='true']):focus-visible,\n &:enabled:not([aria-disabled='true']):focus-visible {\n box-shadow: inset 0 0 0 0.0625rem ${theme.base.palette.interactive};\n }\n `\n);\n\nStyledNavButton.defaultProps = defaultThemeProp;\n\nexport const StyledBackButton = styled(StyledNavButton)(\n ({ theme }) => css`\n align-self: stretch;\n border-inline-end: 0.0625rem solid ${theme.base.palette['border-line']};\n border-start-start-radius: inherit;\n `\n);\n\nStyledBackButton.defaultProps = defaultThemeProp;\n\nexport const StyledDetailPanelBody = styled.div(\n ({ theme }) => css`\n position: relative;\n flex: 1;\n min-block-size: 0;\n overflow: auto;\n padding: ${theme.base.spacing};\n background: ${theme.base.palette['secondary-background']};\n `\n);\n\nStyledDetailPanelBody.defaultProps = defaultThemeProp;\n\n/**\n * Flex layout that lets the master (e.g. a table) and the detail surface share the host box. The\n * master fills the row until the detail opens, then yields the trailing space to the panel. When\n * `--md-master-width` is set the split is controlled to that ratio (master width). On narrow hosts\n * the `overlay` modifier keeps the master full width and floats the panel over it.\n */\nexport const StyledMasterRegion = styled(Flex)(\n () => css`\n min-inline-size: 0;\n `\n);\n\nStyledMasterRegion.defaultProps = defaultThemeProp;\n\nexport const StyledResizeHandleSlot = styled(Flex)(\n () => css`\n position: relative;\n width: 0;\n `\n);\n\nStyledResizeHandleSlot.defaultProps = defaultThemeProp;\n\nexport const StyledMasterDetail = styled(Flex)<{\n $masterWidth: number;\n $open: boolean;\n $overlay: boolean;\n}>(\n ({ $masterWidth, $open, $overlay }) => css`\n --md-master-width: ${$masterWidth}%;\n position: relative;\n isolation: isolate;\n align-items: stretch;\n inline-size: 100%;\n block-size: 100%;\n min-block-size: 0;\n container-type: inline-size;\n\n > ${StyledMasterRegion} {\n flex: 1 1 auto;\n min-inline-size: 0;\n }\n\n ${$open &&\n !$overlay &&\n css`\n > ${StyledMasterRegion} {\n flex: 0 0 var(--md-master-width, 60%);\n max-inline-size: var(--md-master-width, 60%);\n order: 1;\n }\n\n > ${StyledResizeHandleSlot} {\n flex: 0 0 auto;\n display: flex;\n align-items: stretch;\n order: 2;\n position: relative;\n }\n\n > ${StyledDetailPanel} {\n order: 3;\n flex: 1 1 auto;\n }\n `}\n\n ${StyledResizeHandle} {\n z-index: ${({ theme }) => theme.base['z-index'].max};\n }\n `\n);\n\nStyledMasterDetail.defaultProps = defaultThemeProp;\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const getMasterDetailTestIds: (testIdProp?: import("@pega/cosmos-react-core").TestIdProp["testId"]) => import("@pega/cosmos-react-core").TestIdsRecord<readonly ["master", "resizeHandle", "detail", "header", "nestedHeader", "nav", "prev", "next", "identity", "nestedIdentity", "position", "back", "close", "body", "progress"]>;
2
+ //# sourceMappingURL=MasterDetail.test-ids.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MasterDetail.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/MasterDetail/MasterDetail.test-ids.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,ySAgBxB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { createTestIds } from '@pega/cosmos-react-core';
2
+ export const getMasterDetailTestIds = createTestIds('masterDetail', [
3
+ 'master',
4
+ 'resizeHandle',
5
+ 'detail',
6
+ 'header',
7
+ 'nestedHeader',
8
+ 'nav',
9
+ 'prev',
10
+ 'next',
11
+ 'identity',
12
+ 'nestedIdentity',
13
+ 'position',
14
+ 'back',
15
+ 'close',
16
+ 'body',
17
+ 'progress'
18
+ ]);
19
+ //# sourceMappingURL=MasterDetail.test-ids.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MasterDetail.test-ids.js","sourceRoot":"","sources":["../../../src/components/MasterDetail/MasterDetail.test-ids.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,cAAc,EAAE;IAClE,QAAQ;IACR,cAAc;IACd,QAAQ;IACR,QAAQ;IACR,cAAc;IACd,KAAK;IACL,MAAM;IACN,MAAM;IACN,UAAU;IACV,gBAAgB;IAChB,UAAU;IACV,MAAM;IACN,OAAO;IACP,MAAM;IACN,UAAU;CACF,CAAC,CAAC","sourcesContent":["import { createTestIds } from '@pega/cosmos-react-core';\n\nexport const getMasterDetailTestIds = createTestIds('masterDetail', [\n 'master',\n 'resizeHandle',\n 'detail',\n 'header',\n 'nestedHeader',\n 'nav',\n 'prev',\n 'next',\n 'identity',\n 'nestedIdentity',\n 'position',\n 'back',\n 'close',\n 'body',\n 'progress'\n] as const);\n"]}
@@ -0,0 +1,71 @@
1
+ import type { MutableRefObject, ReactNode } from 'react';
2
+ import type { Action, AsProp, BaseProps, TestIdProp } from '@pega/cosmos-react-core';
3
+ /**
4
+ * Resolved form factor the detail surface renders in.
5
+ * - `docked` — an in-flow region that shares the host's layout box (e.g. the 40% of a split).
6
+ * - `overlay` — floats over the host, anchored to the trailing edge (used on narrow hosts).
7
+ *
8
+ * The template host resolves this value before rendering the surface.
9
+ */
10
+ export type DetailPanelPresentation = 'docked' | 'overlay';
11
+ /**
12
+ * Describes the currently selected master item so the detail surface can render its identity and
13
+ * enable/disable previous/next. Fully host-defined — the surface treats it as opaque.
14
+ */
15
+ export interface MasterDetailHeader {
16
+ /** Stable id of the selected item (used for keys and change detection). */
17
+ id: string;
18
+ /** Primary text shown in the panel header (e.g. the record title). */
19
+ header?: string;
20
+ /** Optional icon name rendered before the header text. */
21
+ icon?: string;
22
+ /** Plain-text selection identity supplied by the host for announcements. */
23
+ accessibleName?: string;
24
+ /** Step to the previous item. Omit to disable the previous control. */
25
+ onPrevious?: () => void;
26
+ /** Step to the next item. Omit to disable the next control. */
27
+ onNext?: () => void;
28
+ /** Standard static actions or a function that fetches actions when the header menu opens. */
29
+ actions?: Action[] | (() => Promise<Action[]>);
30
+ }
31
+ export interface PanelHeader extends MasterDetailHeader {
32
+ }
33
+ /**
34
+ * Presentation resolved by the template host for the detail region.
35
+ */
36
+ export type MasterDetailPresentation = DetailPanelPresentation;
37
+ export interface MasterDetailNestedNavigation {
38
+ onBack?: () => void;
39
+ title?: ReactNode;
40
+ icon?: string;
41
+ }
42
+ export interface MasterDetailProps extends AsProp, TestIdProp, BaseProps {
43
+ /** The master surface (e.g. the table). Always rendered at full width until `open`. */
44
+ master: ReactNode;
45
+ /** The detail content for the current selection. */
46
+ detail?: ReactNode;
47
+ /** Controlled open state of the detail region. */
48
+ open: boolean;
49
+ /** Current selection metadata forwarded to the panel header. */
50
+ selection?: MasterDetailHeader;
51
+ /** Renders the detail body in a loading state. */
52
+ loading?: boolean;
53
+ /** Host-resolved detail presentation. */
54
+ presentation: DetailPanelPresentation;
55
+ /** Optional nested detail navigation state supplied by the host renderer. */
56
+ nestedNavigation?: MasterDetailNestedNavigation;
57
+ /** Enable the drag-to-resize handle in docked mode. Default true. */
58
+ resizeable?: boolean;
59
+ /** Docked split ratio configuration. Omit for an uncontrolled 60% ratio with a [20, 80] range. */
60
+ splitRatio?: {
61
+ ratio: number;
62
+ range?: [number, number];
63
+ };
64
+ /** Collapse the detail region and clear selection. */
65
+ onClose: () => void;
66
+ /** Fired when the user drags the resize handle (host may persist the ratio). */
67
+ onResize?: (ratio: number) => void;
68
+ /** Optional generic target that receives focus when detail closes. */
69
+ restoreFocusRef?: MutableRefObject<HTMLElement | null>;
70
+ }
71
+ //# sourceMappingURL=MasterDetail.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MasterDetail.types.d.ts","sourceRoot":"","sources":["../../../src/components/MasterDetail/MasterDetail.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErF;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE3D;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,2EAA2E;IAC3E,EAAE,EAAE,MAAM,CAAC;IACX,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,6FAA6F;IAC7F,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;CAChD;AAED,MAAM,WAAW,WAAY,SAAQ,kBAAkB;CAAG;AAE1D;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,uBAAuB,CAAC;AAE/D,MAAM,WAAW,4BAA4B;IAC3C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAkB,SAAQ,MAAM,EAAE,UAAU,EAAE,SAAS;IACtE,uFAAuF;IACvF,MAAM,EAAE,SAAS,CAAC;IAClB,oDAAoD;IACpD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,kDAAkD;IAClD,IAAI,EAAE,OAAO,CAAC;IACd,gEAAgE;IAChE,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,YAAY,EAAE,uBAAuB,CAAC;IACtC,6EAA6E;IAC7E,gBAAgB,CAAC,EAAE,4BAA4B,CAAC;IAChD,qEAAqE;IACrE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kGAAkG;IAClG,UAAU,CAAC,EAAE;QACX,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC1B,CAAC;IACF,sDAAsD;IACtD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,sEAAsE;IACtE,eAAe,CAAC,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACxD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MasterDetail.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MasterDetail.types.js","sourceRoot":"","sources":["../../../src/components/MasterDetail/MasterDetail.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { MutableRefObject, ReactNode } from 'react';\n\nimport type { Action, AsProp, BaseProps, TestIdProp } from '@pega/cosmos-react-core';\n\n/**\n * Resolved form factor the detail surface renders in.\n * - `docked` — an in-flow region that shares the host's layout box (e.g. the 40% of a split).\n * - `overlay` — floats over the host, anchored to the trailing edge (used on narrow hosts).\n *\n * The template host resolves this value before rendering the surface.\n */\nexport type DetailPanelPresentation = 'docked' | 'overlay';\n\n/**\n * Describes the currently selected master item so the detail surface can render its identity and\n * enable/disable previous/next. Fully host-defined — the surface treats it as opaque.\n */\nexport interface MasterDetailHeader {\n /** Stable id of the selected item (used for keys and change detection). */\n id: string;\n /** Primary text shown in the panel header (e.g. the record title). */\n header?: string;\n /** Optional icon name rendered before the header text. */\n icon?: string;\n /** Plain-text selection identity supplied by the host for announcements. */\n accessibleName?: string;\n /** Step to the previous item. Omit to disable the previous control. */\n onPrevious?: () => void;\n /** Step to the next item. Omit to disable the next control. */\n onNext?: () => void;\n /** Standard static actions or a function that fetches actions when the header menu opens. */\n actions?: Action[] | (() => Promise<Action[]>);\n}\n\nexport interface PanelHeader extends MasterDetailHeader {}\n\n/**\n * Presentation resolved by the template host for the detail region.\n */\nexport type MasterDetailPresentation = DetailPanelPresentation;\n\nexport interface MasterDetailNestedNavigation {\n onBack?: () => void;\n title?: ReactNode;\n icon?: string;\n}\n\nexport interface MasterDetailProps extends AsProp, TestIdProp, BaseProps {\n /** The master surface (e.g. the table). Always rendered at full width until `open`. */\n master: ReactNode;\n /** The detail content for the current selection. */\n detail?: ReactNode;\n /** Controlled open state of the detail region. */\n open: boolean;\n /** Current selection metadata forwarded to the panel header. */\n selection?: MasterDetailHeader;\n /** Renders the detail body in a loading state. */\n loading?: boolean;\n /** Host-resolved detail presentation. */\n presentation: DetailPanelPresentation;\n /** Optional nested detail navigation state supplied by the host renderer. */\n nestedNavigation?: MasterDetailNestedNavigation;\n /** Enable the drag-to-resize handle in docked mode. Default true. */\n resizeable?: boolean;\n /** Docked split ratio configuration. Omit for an uncontrolled 60% ratio with a [20, 80] range. */\n splitRatio?: {\n ratio: number;\n range?: [number, number];\n };\n /** Collapse the detail region and clear selection. */\n onClose: () => void;\n /** Fired when the user drags the resize handle (host may persist the ratio). */\n onResize?: (ratio: number) => void;\n /** Optional generic target that receives focus when detail closes. */\n restoreFocusRef?: MutableRefObject<HTMLElement | null>;\n}\n"]}
@@ -0,0 +1,10 @@
1
+ import type { MasterDetailHeader } from './MasterDetail.types';
2
+ type MasterDetailActionsType = NonNullable<MasterDetailHeader['actions']>;
3
+ interface MasterDetailActionsProps {
4
+ actions: MasterDetailActionsType;
5
+ contextualLabel?: string;
6
+ }
7
+ /** Renders static or on-demand actions for a Master Detail header. */
8
+ export default function MasterDetailActions({ actions, contextualLabel }: MasterDetailActionsProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=MasterDetailActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MasterDetailActions.d.ts","sourceRoot":"","sources":["../../../src/components/MasterDetail/MasterDetailActions.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,KAAK,uBAAuB,GAAG,WAAW,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC;AAE1E,UAAU,wBAAwB;IAChC,OAAO,EAAE,uBAAuB,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,sEAAsE;AACtE,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,OAAO,EACP,eAAe,EAChB,EAAE,wBAAwB,2CA4D1B"}
@@ -0,0 +1,45 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useCallback, useState } from 'react';
3
+ import { Actions, MenuButton, useConsolidatedRef, useI18n } from '@pega/cosmos-react-core';
4
+ /** Renders static or on-demand actions for a Master Detail header. */
5
+ export default function MasterDetailActions({ actions, contextualLabel }) {
6
+ const t = useI18n();
7
+ const menuButtonRef = useConsolidatedRef(null);
8
+ const [isLoading, setIsLoading] = useState(false);
9
+ const [menuItems, setMenuItems] = useState([]);
10
+ const handleClick = useCallback(async (event) => {
11
+ if (typeof actions !== 'function')
12
+ return;
13
+ if (event.currentTarget.getAttribute('aria-expanded') === 'true')
14
+ return;
15
+ setIsLoading(true);
16
+ setMenuItems([]);
17
+ try {
18
+ const fetchedActions = await actions();
19
+ setMenuItems(fetchedActions.map(({ text, onClick, ...action }) => ({
20
+ ...action,
21
+ primary: text,
22
+ onClick: onClick
23
+ ? (id, clickEvent) => {
24
+ onClick(id, clickEvent, menuButtonRef.current ?? undefined);
25
+ menuButtonRef.current?.focus();
26
+ }
27
+ : undefined
28
+ })));
29
+ }
30
+ catch {
31
+ // The empty menu is the appropriate fallback when actions are unavailable.
32
+ }
33
+ finally {
34
+ setIsLoading(false);
35
+ }
36
+ }, [actions, menuButtonRef]);
37
+ if (typeof actions !== 'function') {
38
+ return _jsx(Actions, { items: actions, menuAt: 1, compact: true, contextualLabel: contextualLabel });
39
+ }
40
+ return (_jsx(MenuButton, { ref: menuButtonRef, text: t('actions'), "aria-label": contextualLabel ? t('actions_for', [contextualLabel]) : undefined, icon: 'more', iconOnly: true, variant: 'simple', compact: true, onClick: handleClick, menu: {
41
+ items: menuItems,
42
+ loading: isLoading
43
+ }, popover: { portal: true } }));
44
+ }
45
+ //# sourceMappingURL=MasterDetailActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MasterDetailActions.js","sourceRoot":"","sources":["../../../src/components/MasterDetail/MasterDetailActions.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAY3F,sEAAsE;AACtE,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,OAAO,EACP,eAAe,EACU;IACzB,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC;IACpB,MAAM,aAAa,GAAG,kBAAkB,CAAoB,IAAI,CAAC,CAA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E,CAAC,EAAE,OAAO,QAAC,eAAe,EAAE,eAAe,GAAI,CAAC;IAC1F,CAAC;IAED,OAAO,CACL,KAAC,UAAU,IACT,GAAG,EAAE,aAAa,EAClB,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,gBACN,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,EAC7E,IAAI,EAAC,MAAM,EACX,QAAQ,QACR,OAAO,EAAC,QAAQ,EAChB,OAAO,QACP,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE;YACJ,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,SAAS;SACnB,EACD,OAAO,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GACzB,CACH,CAAC;AACJ,CAAC","sourcesContent":["import { useCallback, useState } from 'react';\nimport type { MouseEvent as ReactMouseEvent } from 'react';\n\nimport { Actions, MenuButton, useConsolidatedRef, useI18n } from '@pega/cosmos-react-core';\nimport type { Action } from '@pega/cosmos-react-core';\n\nimport type { MasterDetailHeader } from './MasterDetail.types';\n\ntype MasterDetailActionsType = NonNullable<MasterDetailHeader['actions']>;\n\ninterface MasterDetailActionsProps {\n actions: MasterDetailActionsType;\n contextualLabel?: string;\n}\n\n/** Renders static or on-demand actions for a Master Detail header. */\nexport default function MasterDetailActions({\n actions,\n contextualLabel\n}: MasterDetailActionsProps) {\n const t = useI18n();\n const menuButtonRef = useConsolidatedRef<HTMLButtonElement>(null);\n const [isLoading, setIsLoading] = useState(false);\n const [menuItems, setMenuItems] = useState<\n { id: string; primary: string; onClick?: Action['onClick']; disabled?: boolean }[]\n >([]);\n\n const handleClick = useCallback(\n async (event: ReactMouseEvent<HTMLButtonElement>) => {\n if (typeof actions !== 'function') return;\n if (event.currentTarget.getAttribute('aria-expanded') === 'true') return;\n\n setIsLoading(true);\n setMenuItems([]);\n\n try {\n const fetchedActions = await actions();\n setMenuItems(\n fetchedActions.map(({ text, onClick, ...action }) => ({\n ...action,\n primary: text,\n onClick: onClick\n ? (id, clickEvent) => {\n onClick(id, clickEvent, menuButtonRef.current ?? undefined);\n menuButtonRef.current?.focus();\n }\n : undefined\n }))\n );\n } catch {\n // The empty menu is the appropriate fallback when actions are unavailable.\n } finally {\n setIsLoading(false);\n }\n },\n [actions, menuButtonRef]\n );\n\n if (typeof actions !== 'function') {\n return <Actions items={actions} menuAt={1} compact contextualLabel={contextualLabel} />;\n }\n\n return (\n <MenuButton\n ref={menuButtonRef}\n text={t('actions')}\n aria-label={contextualLabel ? t('actions_for', [contextualLabel]) : undefined}\n icon='more'\n iconOnly\n variant='simple'\n compact\n onClick={handleClick}\n menu={{\n items: menuItems,\n loading: isLoading\n }}\n popover={{ portal: true }}\n />\n );\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export { default } from './MasterDetail';
2
+ export type { MasterDetailProps, MasterDetailPresentation, MasterDetailHeader, PanelHeader as DetailPanelSelection, DetailPanelPresentation } from './MasterDetail.types';
3
+ export { getMasterDetailTestIds } from './MasterDetail.test-ids';
4
+ export { StyledMasterDetail, StyledResizeHandleSlot } from './MasterDetail.styles';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MasterDetail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,YAAY,EACV,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,WAAW,IAAI,oBAAoB,EACnC,uBAAuB,EACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default } from './MasterDetail';
2
+ export { getMasterDetailTestIds } from './MasterDetail.test-ids';
3
+ export { StyledMasterDetail, StyledResizeHandleSlot } from './MasterDetail.styles';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/MasterDetail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAQzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export { default } from './MasterDetail';\nexport type {\n MasterDetailProps,\n MasterDetailPresentation,\n MasterDetailHeader,\n PanelHeader as DetailPanelSelection,\n DetailPanelPresentation\n} from './MasterDetail.types';\nexport { getMasterDetailTestIds } from './MasterDetail.test-ids';\nexport { StyledMasterDetail, StyledResizeHandleSlot } from './MasterDetail.styles';\n"]}
package/lib/index.d.ts CHANGED
@@ -27,6 +27,8 @@ export * from './components/HierarchicalAssignments';
27
27
  export { default as IntelligentGuidance } from './components/IntelligentGuidance';
28
28
  export * from './components/IntelligentGuidance';
29
29
  export { default as InteractionNotification } from './components/InteractionNotification';
30
+ export { default as MasterDetail } from './components/MasterDetail';
31
+ export * from './components/MasterDetail';
30
32
  export { default as Predictions } from './components/Predictions';
31
33
  export * from './components/Predictions';
32
34
  export { default as SearchResults } from './components/SearchResults';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,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,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,cAAc,8BAA8B,CAAC"}
package/lib/index.js CHANGED
@@ -28,6 +28,8 @@ export * from './components/HierarchicalAssignments';
28
28
  export { default as IntelligentGuidance } from './components/IntelligentGuidance';
29
29
  export * from './components/IntelligentGuidance';
30
30
  export { default as InteractionNotification } from './components/InteractionNotification';
31
+ export { default as MasterDetail } from './components/MasterDetail';
32
+ export * from './components/MasterDetail';
31
33
  export { default as Predictions } from './components/Predictions';
32
34
  export * from './components/Predictions';
33
35
  export { default as SearchResults } from './components/SearchResults';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,QAAQ,EA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IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,cAAc,8BAA8B,CAAC","sourcesContent":["// This file is autogenerated. Any changes will be overwritten.\nexport { default as AppAnnouncement } from './components/AppAnnouncement';\nexport * from './components/AppAnnouncement';\nexport { default as Article } from './components/Article';\nexport * from './components/Article';\nexport { default as ArticleList } from './components/ArticleList';\nexport * from './components/ArticleList';\nexport { default as Assignments } from './components/Assignments';\nexport * from './components/Assignments';\nexport { default as CaseHierarchy } from './components/CaseHierarchy';\nexport * from './components/CaseHierarchy';\nexport { default as CasePreview } from './components/CasePreview';\nexport * from './components/CasePreview';\nexport { default as CaseView } from './components/CaseView';\nexport * from './components/CaseView';\nexport { default as ConfigurableLayout } from './components/ConfigurableLayout';\nexport * from './components/ConfigurableLayout';\nexport { default as Confirmation } from './components/Confirmation';\nexport * from './components/Confirmation';\nexport { default as Details } from './components/Details';\nexport * from './components/Details';\nexport { default as GenAICoach } from './components/GenAICoach';\nexport * from './components/GenAICoach';\nexport { default as Glimpse } from './components/Glimpse';\nexport * from './components/Glimpse';\nexport { default as HierarchicalAssignments } from './components/HierarchicalAssignments';\nexport * from './components/HierarchicalAssignments';\nexport { default as IntelligentGuidance } from './components/IntelligentGuidance';\nexport * from './components/IntelligentGuidance';\nexport { default as InteractionNotification } from './components/InteractionNotification';\nexport { default as Predictions } from './components/Predictions';\nexport * from './components/Predictions';\nexport { default as SearchResults } from './components/SearchResults';\nexport * from './components/SearchResults';\nexport { default as Shortcuts } from './components/Shortcuts';\nexport * from './components/Shortcuts';\nexport { default as Stages } from './components/Stages';\nexport * from './components/Stages';\nexport { default as Stakeholders } from './components/Stakeholders';\nexport * from './components/Stakeholders';\nexport { default as Tags } from './components/Tags';\nexport * from './components/Tags';\nexport { default as Tasks } from './components/Tasks';\nexport * from './components/Tasks';\nexport { default as UtilitiesLayout } from './components/UtilitiesLayout';\nexport * from './components/UtilitiesLayout';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC1F,cAAc,sCAAsC,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAClF,cAAc,kCAAkC,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,cAAc,8BAA8B,CAAC","sourcesContent":["// This file is autogenerated. Any changes will be overwritten.\nexport { default as AppAnnouncement } from './components/AppAnnouncement';\nexport * from './components/AppAnnouncement';\nexport { default as Article } from './components/Article';\nexport * from './components/Article';\nexport { default as ArticleList } from './components/ArticleList';\nexport * from './components/ArticleList';\nexport { default as Assignments } from './components/Assignments';\nexport * from './components/Assignments';\nexport { default as CaseHierarchy } from './components/CaseHierarchy';\nexport * from './components/CaseHierarchy';\nexport { default as CasePreview } from './components/CasePreview';\nexport * from './components/CasePreview';\nexport { default as CaseView } from './components/CaseView';\nexport * from './components/CaseView';\nexport { default as ConfigurableLayout } from './components/ConfigurableLayout';\nexport * from './components/ConfigurableLayout';\nexport { default as Confirmation } from './components/Confirmation';\nexport * from './components/Confirmation';\nexport { default as Details } from './components/Details';\nexport * from './components/Details';\nexport { default as GenAICoach } from './components/GenAICoach';\nexport * from './components/GenAICoach';\nexport { default as Glimpse } from './components/Glimpse';\nexport * from './components/Glimpse';\nexport { default as HierarchicalAssignments } from './components/HierarchicalAssignments';\nexport * from './components/HierarchicalAssignments';\nexport { default as IntelligentGuidance } from './components/IntelligentGuidance';\nexport * from './components/IntelligentGuidance';\nexport { default as InteractionNotification } from './components/InteractionNotification';\nexport { default as MasterDetail } from './components/MasterDetail';\nexport * from './components/MasterDetail';\nexport { default as Predictions } from './components/Predictions';\nexport * from './components/Predictions';\nexport { default as SearchResults } from './components/SearchResults';\nexport * from './components/SearchResults';\nexport { default as Shortcuts } from './components/Shortcuts';\nexport * from './components/Shortcuts';\nexport { default as Stages } from './components/Stages';\nexport * from './components/Stages';\nexport { default as Stakeholders } from './components/Stakeholders';\nexport * from './components/Stakeholders';\nexport { default as Tags } from './components/Tags';\nexport * from './components/Tags';\nexport { default as Tasks } from './components/Tasks';\nexport * from './components/Tasks';\nexport { default as UtilitiesLayout } from './components/UtilitiesLayout';\nexport * from './components/UtilitiesLayout';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/cosmos-react-work",
3
- "version": "9.25.1-2",
3
+ "version": "9.25.1-4",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "Pegasystems",
6
6
  "sideEffects": false,
@@ -14,8 +14,8 @@
14
14
  "build": "tsc -b tsconfig.build.json"
15
15
  },
16
16
  "dependencies": {
17
- "@pega/cosmos-react-core": "9.25.1-2",
18
- "@pega/cosmos-react-rte": "9.25.1-2",
17
+ "@pega/cosmos-react-core": "9.25.1-4",
18
+ "@pega/cosmos-react-rte": "9.25.1-4",
19
19
  "@types/react": "^17.0.62 || ^18.3.3",
20
20
  "@types/react-dom": "^17.0.20 || ^18.3.0",
21
21
  "polished": "^4.1.0",