@pega/cosmos-react-cs 2.1.3 → 2.1.6

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 (193) hide show
  1. package/package.json +3 -3
  2. package/lib/components/Article/Article.d.ts +0 -32
  3. package/lib/components/Article/Article.d.ts.map +0 -1
  4. package/lib/components/Article/Article.js +0 -51
  5. package/lib/components/Article/Article.js.map +0 -1
  6. package/lib/components/Article/ArticleFooter.d.ts +0 -19
  7. package/lib/components/Article/ArticleFooter.d.ts.map +0 -1
  8. package/lib/components/Article/ArticleFooter.js +0 -40
  9. package/lib/components/Article/ArticleFooter.js.map +0 -1
  10. package/lib/components/Article/ArticleSkeleton.d.ts +0 -8
  11. package/lib/components/Article/ArticleSkeleton.d.ts.map +0 -1
  12. package/lib/components/Article/ArticleSkeleton.js +0 -15
  13. package/lib/components/Article/ArticleSkeleton.js.map +0 -1
  14. package/lib/components/Article/index.d.ts +0 -6
  15. package/lib/components/Article/index.d.ts.map +0 -1
  16. package/lib/components/Article/index.js +0 -3
  17. package/lib/components/Article/index.js.map +0 -1
  18. package/lib/components/ArticleList/ArticleList.d.ts +0 -17
  19. package/lib/components/ArticleList/ArticleList.d.ts.map +0 -1
  20. package/lib/components/ArticleList/ArticleList.js +0 -65
  21. package/lib/components/ArticleList/ArticleList.js.map +0 -1
  22. package/lib/components/ArticleList/ArticleListHeader.d.ts +0 -20
  23. package/lib/components/ArticleList/ArticleListHeader.d.ts.map +0 -1
  24. package/lib/components/ArticleList/ArticleListHeader.js +0 -68
  25. package/lib/components/ArticleList/ArticleListHeader.js.map +0 -1
  26. package/lib/components/ArticleList/ArticleSummary.d.ts +0 -14
  27. package/lib/components/ArticleList/ArticleSummary.d.ts.map +0 -1
  28. package/lib/components/ArticleList/ArticleSummary.js +0 -30
  29. package/lib/components/ArticleList/ArticleSummary.js.map +0 -1
  30. package/lib/components/ArticleList/SummarySkeleton.d.ts +0 -7
  31. package/lib/components/ArticleList/SummarySkeleton.d.ts.map +0 -1
  32. package/lib/components/ArticleList/SummarySkeleton.js +0 -9
  33. package/lib/components/ArticleList/SummarySkeleton.js.map +0 -1
  34. package/lib/components/ArticleList/index.d.ts +0 -7
  35. package/lib/components/ArticleList/index.d.ts.map +0 -1
  36. package/lib/components/ArticleList/index.js +0 -4
  37. package/lib/components/ArticleList/index.js.map +0 -1
  38. package/lib/components/CSCaseView/CSCaseView.d.ts +0 -9
  39. package/lib/components/CSCaseView/CSCaseView.d.ts.map +0 -1
  40. package/lib/components/CSCaseView/CSCaseView.js +0 -16
  41. package/lib/components/CSCaseView/CSCaseView.js.map +0 -1
  42. package/lib/components/CSCaseView/index.d.ts +0 -3
  43. package/lib/components/CSCaseView/index.d.ts.map +0 -1
  44. package/lib/components/CSCaseView/index.js +0 -2
  45. package/lib/components/CSCaseView/index.js.map +0 -1
  46. package/lib/components/CallControlPanel/Call.d.ts +0 -6
  47. package/lib/components/CallControlPanel/Call.d.ts.map +0 -1
  48. package/lib/components/CallControlPanel/Call.js +0 -142
  49. package/lib/components/CallControlPanel/Call.js.map +0 -1
  50. package/lib/components/CallControlPanel/CallControlPanel.d.ts +0 -6
  51. package/lib/components/CallControlPanel/CallControlPanel.d.ts.map +0 -1
  52. package/lib/components/CallControlPanel/CallControlPanel.js +0 -68
  53. package/lib/components/CallControlPanel/CallControlPanel.js.map +0 -1
  54. package/lib/components/CallControlPanel/CallControlPanel.styles.d.ts +0 -15
  55. package/lib/components/CallControlPanel/CallControlPanel.styles.d.ts.map +0 -1
  56. package/lib/components/CallControlPanel/CallControlPanel.styles.js +0 -118
  57. package/lib/components/CallControlPanel/CallControlPanel.styles.js.map +0 -1
  58. package/lib/components/CallControlPanel/CallControlPanel.types.d.ts +0 -112
  59. package/lib/components/CallControlPanel/CallControlPanel.types.d.ts.map +0 -1
  60. package/lib/components/CallControlPanel/CallControlPanel.types.js +0 -2
  61. package/lib/components/CallControlPanel/CallControlPanel.types.js.map +0 -1
  62. package/lib/components/CallControlPanel/CallControlPanelIcon.d.ts +0 -19
  63. package/lib/components/CallControlPanel/CallControlPanelIcon.d.ts.map +0 -1
  64. package/lib/components/CallControlPanel/CallControlPanelIcon.js +0 -74
  65. package/lib/components/CallControlPanel/CallControlPanelIcon.js.map +0 -1
  66. package/lib/components/CallControlPanel/CallTransfer.d.ts +0 -19
  67. package/lib/components/CallControlPanel/CallTransfer.d.ts.map +0 -1
  68. package/lib/components/CallControlPanel/CallTransfer.js +0 -121
  69. package/lib/components/CallControlPanel/CallTransfer.js.map +0 -1
  70. package/lib/components/CallControlPanel/CalleePicker.d.ts +0 -20
  71. package/lib/components/CallControlPanel/CalleePicker.d.ts.map +0 -1
  72. package/lib/components/CallControlPanel/CalleePicker.js +0 -61
  73. package/lib/components/CallControlPanel/CalleePicker.js.map +0 -1
  74. package/lib/components/CallControlPanel/ContactsList.d.ts +0 -23
  75. package/lib/components/CallControlPanel/ContactsList.d.ts.map +0 -1
  76. package/lib/components/CallControlPanel/ContactsList.js +0 -88
  77. package/lib/components/CallControlPanel/ContactsList.js.map +0 -1
  78. package/lib/components/CallControlPanel/DTMFKeypad.d.ts +0 -11
  79. package/lib/components/CallControlPanel/DTMFKeypad.d.ts.map +0 -1
  80. package/lib/components/CallControlPanel/DTMFKeypad.js +0 -23
  81. package/lib/components/CallControlPanel/DTMFKeypad.js.map +0 -1
  82. package/lib/components/CallControlPanel/StopWatch.d.ts +0 -9
  83. package/lib/components/CallControlPanel/StopWatch.d.ts.map +0 -1
  84. package/lib/components/CallControlPanel/StopWatch.js +0 -28
  85. package/lib/components/CallControlPanel/StopWatch.js.map +0 -1
  86. package/lib/components/CallControlPanel/index.d.ts +0 -5
  87. package/lib/components/CallControlPanel/index.d.ts.map +0 -1
  88. package/lib/components/CallControlPanel/index.js +0 -4
  89. package/lib/components/CallControlPanel/index.js.map +0 -1
  90. package/lib/components/CallControlPanel/utils.d.ts +0 -7
  91. package/lib/components/CallControlPanel/utils.d.ts.map +0 -1
  92. package/lib/components/CallControlPanel/utils.js +0 -35
  93. package/lib/components/CallControlPanel/utils.js.map +0 -1
  94. package/lib/components/DialPad/DialPad.d.ts +0 -16
  95. package/lib/components/DialPad/DialPad.d.ts.map +0 -1
  96. package/lib/components/DialPad/DialPad.js +0 -33
  97. package/lib/components/DialPad/DialPad.js.map +0 -1
  98. package/lib/components/DialPad/DialPad.types.d.ts +0 -33
  99. package/lib/components/DialPad/DialPad.types.d.ts.map +0 -1
  100. package/lib/components/DialPad/DialPad.types.js +0 -2
  101. package/lib/components/DialPad/DialPad.types.js.map +0 -1
  102. package/lib/components/DialPad/DialPadKeyboard.d.ts +0 -12
  103. package/lib/components/DialPad/DialPadKeyboard.d.ts.map +0 -1
  104. package/lib/components/DialPad/DialPadKeyboard.js +0 -87
  105. package/lib/components/DialPad/DialPadKeyboard.js.map +0 -1
  106. package/lib/components/DialPad/DialPadKeyboard.styles.d.ts +0 -5
  107. package/lib/components/DialPad/DialPadKeyboard.styles.d.ts.map +0 -1
  108. package/lib/components/DialPad/DialPadKeyboard.styles.js +0 -76
  109. package/lib/components/DialPad/DialPadKeyboard.styles.js.map +0 -1
  110. package/lib/components/DialPad/KeyboardNavigation.d.ts +0 -6
  111. package/lib/components/DialPad/KeyboardNavigation.d.ts.map +0 -1
  112. package/lib/components/DialPad/KeyboardNavigation.js +0 -156
  113. package/lib/components/DialPad/KeyboardNavigation.js.map +0 -1
  114. package/lib/components/DialPad/index.d.ts +0 -3
  115. package/lib/components/DialPad/index.d.ts.map +0 -1
  116. package/lib/components/DialPad/index.js +0 -2
  117. package/lib/components/DialPad/index.js.map +0 -1
  118. package/lib/components/DialPad/utils.d.ts +0 -4
  119. package/lib/components/DialPad/utils.d.ts.map +0 -1
  120. package/lib/components/DialPad/utils.js +0 -7
  121. package/lib/components/DialPad/utils.js.map +0 -1
  122. package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts +0 -6
  123. package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts.map +0 -1
  124. package/lib/components/IntelligentGuidance/IntelligentGuidance.js +0 -75
  125. package/lib/components/IntelligentGuidance/IntelligentGuidance.js.map +0 -1
  126. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts +0 -9
  127. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts.map +0 -1
  128. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js +0 -142
  129. package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js.map +0 -1
  130. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.d.ts +0 -31
  131. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.d.ts.map +0 -1
  132. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.js +0 -2
  133. package/lib/components/IntelligentGuidance/IntelligentGuidance.types.js.map +0 -1
  134. package/lib/components/IntelligentGuidance/index.d.ts +0 -3
  135. package/lib/components/IntelligentGuidance/index.d.ts.map +0 -1
  136. package/lib/components/IntelligentGuidance/index.js +0 -2
  137. package/lib/components/IntelligentGuidance/index.js.map +0 -1
  138. package/lib/components/InteractionNotification/InteractionNotification.d.ts +0 -26
  139. package/lib/components/InteractionNotification/InteractionNotification.d.ts.map +0 -1
  140. package/lib/components/InteractionNotification/InteractionNotification.js +0 -78
  141. package/lib/components/InteractionNotification/InteractionNotification.js.map +0 -1
  142. package/lib/components/InteractionNotification/index.d.ts +0 -2
  143. package/lib/components/InteractionNotification/index.d.ts.map +0 -1
  144. package/lib/components/InteractionNotification/index.js +0 -2
  145. package/lib/components/InteractionNotification/index.js.map +0 -1
  146. package/lib/components/InteractionTimer/InteractionTimer.d.ts +0 -29
  147. package/lib/components/InteractionTimer/InteractionTimer.d.ts.map +0 -1
  148. package/lib/components/InteractionTimer/InteractionTimer.js +0 -72
  149. package/lib/components/InteractionTimer/InteractionTimer.js.map +0 -1
  150. package/lib/components/InteractionTimer/index.d.ts +0 -2
  151. package/lib/components/InteractionTimer/index.d.ts.map +0 -1
  152. package/lib/components/InteractionTimer/index.js +0 -2
  153. package/lib/components/InteractionTimer/index.js.map +0 -1
  154. package/lib/components/TaskManager/Picker/Picker.d.ts +0 -6
  155. package/lib/components/TaskManager/Picker/Picker.d.ts.map +0 -1
  156. package/lib/components/TaskManager/Picker/Picker.js +0 -171
  157. package/lib/components/TaskManager/Picker/Picker.js.map +0 -1
  158. package/lib/components/TaskManager/Picker/Picker.types.d.ts +0 -27
  159. package/lib/components/TaskManager/Picker/Picker.types.d.ts.map +0 -1
  160. package/lib/components/TaskManager/Picker/Picker.types.js +0 -2
  161. package/lib/components/TaskManager/Picker/Picker.types.js.map +0 -1
  162. package/lib/components/TaskManager/TaskManager.context.d.ts +0 -5
  163. package/lib/components/TaskManager/TaskManager.context.d.ts.map +0 -1
  164. package/lib/components/TaskManager/TaskManager.context.js +0 -3
  165. package/lib/components/TaskManager/TaskManager.context.js.map +0 -1
  166. package/lib/components/TaskManager/TaskManager.d.ts +0 -6
  167. package/lib/components/TaskManager/TaskManager.d.ts.map +0 -1
  168. package/lib/components/TaskManager/TaskManager.js +0 -76
  169. package/lib/components/TaskManager/TaskManager.js.map +0 -1
  170. package/lib/components/TaskManager/TaskManager.styles.d.ts +0 -20
  171. package/lib/components/TaskManager/TaskManager.styles.d.ts.map +0 -1
  172. package/lib/components/TaskManager/TaskManager.styles.js +0 -232
  173. package/lib/components/TaskManager/TaskManager.styles.js.map +0 -1
  174. package/lib/components/TaskManager/TaskManager.types.d.ts +0 -74
  175. package/lib/components/TaskManager/TaskManager.types.d.ts.map +0 -1
  176. package/lib/components/TaskManager/TaskManager.types.js +0 -2
  177. package/lib/components/TaskManager/TaskManager.types.js.map +0 -1
  178. package/lib/components/TaskManager/TaskManagerTabs.d.ts +0 -6
  179. package/lib/components/TaskManager/TaskManagerTabs.d.ts.map +0 -1
  180. package/lib/components/TaskManager/TaskManagerTabs.js +0 -159
  181. package/lib/components/TaskManager/TaskManagerTabs.js.map +0 -1
  182. package/lib/components/TaskManager/TaskView.d.ts +0 -6
  183. package/lib/components/TaskManager/TaskView.d.ts.map +0 -1
  184. package/lib/components/TaskManager/TaskView.js +0 -10
  185. package/lib/components/TaskManager/TaskView.js.map +0 -1
  186. package/lib/components/TaskManager/index.d.ts +0 -5
  187. package/lib/components/TaskManager/index.d.ts.map +0 -1
  188. package/lib/components/TaskManager/index.js +0 -4
  189. package/lib/components/TaskManager/index.js.map +0 -1
  190. package/lib/index.d.ts +0 -18
  191. package/lib/index.d.ts.map +0 -1
  192. package/lib/index.js +0 -19
  193. package/lib/index.js.map +0 -1
@@ -1,156 +0,0 @@
1
- const baseGraph = [
2
- {
3
- sign: '1',
4
- keyCode: 49,
5
- ref: undefined,
6
- right: 1,
7
- down: 3
8
- },
9
- {
10
- sign: '2',
11
- alt: 'ABC',
12
- keyCode: 50,
13
- ref: undefined,
14
- right: 2,
15
- down: 4,
16
- left: 0
17
- },
18
- {
19
- sign: '3',
20
- alt: 'DEF',
21
- keyCode: 51,
22
- ref: undefined,
23
- down: 5,
24
- left: 1
25
- },
26
- {
27
- sign: '4',
28
- alt: 'GHI',
29
- keyCode: 52,
30
- ref: undefined,
31
- up: 0,
32
- right: 4,
33
- down: 6
34
- },
35
- {
36
- sign: '5',
37
- alt: 'JKL',
38
- keyCode: 53,
39
- ref: undefined,
40
- up: 1,
41
- right: 5,
42
- down: 7,
43
- left: 3
44
- },
45
- {
46
- sign: '6',
47
- alt: 'MNO',
48
- keyCode: 54,
49
- ref: undefined,
50
- up: 2,
51
- down: 8,
52
- left: 4
53
- },
54
- {
55
- sign: '7',
56
- alt: 'PQRS',
57
- keyCode: 55,
58
- ref: undefined,
59
- up: 3,
60
- right: 7,
61
- down: 9
62
- },
63
- {
64
- sign: '8',
65
- alt: 'TUV',
66
- keyCode: 56,
67
- ref: undefined,
68
- up: 4,
69
- right: 8,
70
- down: 10,
71
- left: 6
72
- },
73
- {
74
- sign: '9',
75
- alt: 'WXYZ',
76
- keyCode: 57,
77
- ref: undefined,
78
- up: 5,
79
- down: 11,
80
- left: 7
81
- },
82
- {
83
- special: '*',
84
- keyCode: 42,
85
- ref: undefined,
86
- up: 6,
87
- right: 10,
88
- down: 12
89
- }
90
- ];
91
- export const dtmfGraph = baseGraph.concat([
92
- {
93
- sign: '0',
94
- alt: '+',
95
- keyCode: 48,
96
- altKeyCode: 43,
97
- ref: undefined,
98
- up: 7,
99
- right: 11,
100
- left: 9
101
- },
102
- {
103
- special: '#',
104
- keyCode: 35,
105
- ref: undefined,
106
- up: 8,
107
- left: 10
108
- },
109
- {
110
- icon: 'backspace',
111
- keyCode: 127,
112
- ref: undefined,
113
- up: 10
114
- }
115
- ]);
116
- export const defaultGraph = baseGraph.concat([
117
- {
118
- sign: '0',
119
- alt: '+',
120
- keyCode: 48,
121
- altKeyCode: 43,
122
- ref: undefined,
123
- up: 7,
124
- right: 11,
125
- down: 12,
126
- left: 9
127
- },
128
- {
129
- special: '#',
130
- keyCode: 35,
131
- ref: undefined,
132
- up: 8,
133
- down: 12,
134
- left: 10
135
- },
136
- {
137
- icon: 'backspace',
138
- keyCode: 127,
139
- ref: undefined,
140
- up: 10
141
- }
142
- ]);
143
- export const defaultButtonGrid = [
144
- [defaultGraph[0], defaultGraph[1], defaultGraph[2]],
145
- [defaultGraph[3], defaultGraph[4], defaultGraph[5]],
146
- [defaultGraph[6], defaultGraph[7], defaultGraph[8]],
147
- [defaultGraph[9], defaultGraph[10], defaultGraph[11]],
148
- [defaultGraph[12]]
149
- ];
150
- export const dtmfButtonGrid = [
151
- [dtmfGraph[0], dtmfGraph[1], dtmfGraph[2]],
152
- [dtmfGraph[3], dtmfGraph[4], dtmfGraph[5]],
153
- [dtmfGraph[6], dtmfGraph[7], dtmfGraph[8]],
154
- [dtmfGraph[9], dtmfGraph[10], dtmfGraph[11]]
155
- ];
156
- //# sourceMappingURL=KeyboardNavigation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeyboardNavigation.js","sourceRoot":"","sources":["../../../src/components/DialPad/KeyboardNavigation.ts"],"names":[],"mappings":"AAGA,MAAM,SA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["// cSpell:words PQRS WXYZ\nimport { NavigationGraphElement } from './DialPad.types';\n\nconst baseGraph: NavigationGraphElement[] = [\n {\n sign: '1',\n keyCode: 49,\n ref: undefined,\n right: 1,\n down: 3\n },\n {\n sign: '2',\n alt: 'ABC',\n keyCode: 50,\n ref: undefined,\n right: 2,\n down: 4,\n left: 0\n },\n {\n sign: '3',\n alt: 'DEF',\n keyCode: 51,\n ref: undefined,\n down: 5,\n left: 1\n },\n {\n sign: '4',\n alt: 'GHI',\n keyCode: 52,\n ref: undefined,\n up: 0,\n right: 4,\n down: 6\n },\n {\n sign: '5',\n alt: 'JKL',\n keyCode: 53,\n ref: undefined,\n up: 1,\n right: 5,\n down: 7,\n left: 3\n },\n {\n sign: '6',\n alt: 'MNO',\n keyCode: 54,\n ref: undefined,\n up: 2,\n down: 8,\n left: 4\n },\n {\n sign: '7',\n alt: 'PQRS',\n keyCode: 55,\n ref: undefined,\n up: 3,\n right: 7,\n down: 9\n },\n {\n sign: '8',\n alt: 'TUV',\n keyCode: 56,\n ref: undefined,\n up: 4,\n right: 8,\n down: 10,\n left: 6\n },\n {\n sign: '9',\n alt: 'WXYZ',\n keyCode: 57,\n ref: undefined,\n up: 5,\n down: 11,\n left: 7\n },\n {\n special: '*',\n keyCode: 42,\n ref: undefined,\n up: 6,\n right: 10,\n down: 12\n }\n];\n\nexport const dtmfGraph = baseGraph.concat([\n {\n sign: '0',\n alt: '+',\n keyCode: 48,\n altKeyCode: 43,\n ref: undefined,\n up: 7,\n right: 11,\n left: 9\n },\n {\n special: '#',\n keyCode: 35,\n ref: undefined,\n up: 8,\n left: 10\n },\n {\n icon: 'backspace',\n keyCode: 127,\n ref: undefined,\n up: 10\n }\n]);\n\nexport const defaultGraph = baseGraph.concat([\n {\n sign: '0',\n alt: '+',\n keyCode: 48,\n altKeyCode: 43,\n ref: undefined,\n up: 7,\n right: 11,\n down: 12,\n left: 9\n },\n {\n special: '#',\n keyCode: 35,\n ref: undefined,\n up: 8,\n down: 12,\n left: 10\n },\n {\n icon: 'backspace',\n keyCode: 127,\n ref: undefined,\n up: 10\n }\n]);\n\nexport const defaultButtonGrid = [\n [defaultGraph[0], defaultGraph[1], defaultGraph[2]],\n [defaultGraph[3], defaultGraph[4], defaultGraph[5]],\n [defaultGraph[6], defaultGraph[7], defaultGraph[8]],\n [defaultGraph[9], defaultGraph[10], defaultGraph[11]],\n [defaultGraph[12]]\n];\n\nexport const dtmfButtonGrid = [\n [dtmfGraph[0], dtmfGraph[1], dtmfGraph[2]],\n [dtmfGraph[3], dtmfGraph[4], dtmfGraph[5]],\n [dtmfGraph[6], dtmfGraph[7], dtmfGraph[8]],\n [dtmfGraph[9], dtmfGraph[10], dtmfGraph[11]]\n];\n"]}
@@ -1,3 +0,0 @@
1
- export { default } from './DialPad';
2
- export { DialPadKeyboardProps } from './DialPadKeyboard';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DialPad/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { default } from './DialPad';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DialPad/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC","sourcesContent":["export { default } from './DialPad';\nexport { DialPadKeyboardProps } from './DialPadKeyboard';\n"]}
@@ -1,4 +0,0 @@
1
- import { KeyboardEvent } from 'react';
2
- export declare const getDialButtonIndex: (e: KeyboardEvent) => number;
3
- export declare const isNavigationEvent: (e: KeyboardEvent) => boolean;
4
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/DialPad/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,eAAO,MAAM,kBAAkB,MAAO,aAAa,KAAG,MAIrD,CAAC;AAEF,eAAO,MAAM,iBAAiB,MAAO,aAAa,YAEjD,CAAC"}
@@ -1,7 +0,0 @@
1
- export const getDialButtonIndex = (e) => {
2
- return ['1', '2', '3', '4', '5', '6', '7', '8', '9', '*', '0', '#', 'Backspace'].findIndex(key => key === e.key);
3
- };
4
- export const isNavigationEvent = (e) => {
5
- return ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'].includes(e.key);
6
- };
7
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/DialPad/utils.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAgB,EAAU,EAAE;IAC7D,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,CAAC,CAAC,SAAS,CACxF,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,CACrB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAgB,EAAE,EAAE;IACpD,OAAO,CAAC,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAC7E,CAAC,CAAC","sourcesContent":["import { KeyboardEvent } from 'react';\n\nexport const getDialButtonIndex = (e: KeyboardEvent): number => {\n return ['1', '2', '3', '4', '5', '6', '7', '8', '9', '*', '0', '#', 'Backspace'].findIndex(\n key => key === e.key\n );\n};\n\nexport const isNavigationEvent = (e: KeyboardEvent) => {\n return ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'].includes(e.key);\n};\n"]}
@@ -1,6 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { ForwardProps } from '@pega/cosmos-react-core';
3
- import type IntelligentGuidanceProps from './IntelligentGuidance.types';
4
- declare const IntelligentGuidance: FunctionComponent<IntelligentGuidanceProps & ForwardProps>;
5
- export default IntelligentGuidance;
6
- //# sourceMappingURL=IntelligentGuidance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IntelligentGuidance.d.ts","sourceRoot":"","sources":["../../../src/components/IntelligentGuidance/IntelligentGuidance.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAOlB,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,YAAY,EAQb,MAAM,yBAAyB,CAAC;AAQjC,OAAO,KAAK,wBAAwB,MAAM,6BAA6B,CAAC;AAIxE,QAAA,MAAM,mBAAmB,EAAE,iBAAiB,CAAC,wBAAwB,GAAG,YAAY,CA8GnF,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1,75 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef, useEffect, useLayoutEffect, useRef, useState } from 'react';
3
- import { Icon, registerIcon, useI18n, Count, useBreakpoint, usePrevious } from '@pega/cosmos-react-core';
4
- import * as polarisSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/polaris-solid.icon';
5
- import { StyledIntelligentGuidanceList, StyledIntelligentGuidance, StyledIntelligentGuidanceButton } from './IntelligentGuidance.styles';
6
- registerIcon(polarisSolidIcon);
7
- const IntelligentGuidance = forwardRef(({ items, heading, ...restProps }, ref) => {
8
- const t = useI18n();
9
- const isMediumOrAbove = useBreakpoint('md');
10
- const [isCollapsed, setIsCollapsed] = useState(true);
11
- const previousItems = usePrevious(items);
12
- const summaryListRef = useRef(null);
13
- useEffect(() => {
14
- const previousItemsCount = previousItems?.length || 0;
15
- if (previousItemsCount < items.length) {
16
- setIsCollapsed(false);
17
- }
18
- else if (previousItemsCount && !items.length) {
19
- setIsCollapsed(true);
20
- }
21
- }, [previousItems, items]);
22
- const listItems = items.map(item => {
23
- return {
24
- id: item.id,
25
- visual: _jsx(Icon, { name: item.icon }, void 0),
26
- primary: item.label,
27
- secondary: item.type,
28
- actions: item.onDismiss
29
- ? [
30
- {
31
- text: t('dismiss_label_a11y', [item.label]),
32
- id: item.id,
33
- icon: 'times',
34
- onClick: (id, e) => {
35
- e.stopPropagation();
36
- item.onDismiss?.(id, e);
37
- }
38
- }
39
- ]
40
- : undefined,
41
- container: { colGap: 1 },
42
- role: 'button',
43
- tabIndex: 0,
44
- 'aria-label': t('continue_label_a11y', [item.label]),
45
- onClick: item.onClick,
46
- onKeyDown: (e) => {
47
- if (e.key === 'Enter') {
48
- item.onClick(e);
49
- }
50
- }
51
- };
52
- });
53
- const [headerHeight, setHeaderHeight] = useState(0);
54
- useLayoutEffect(() => {
55
- if (summaryListRef.current) {
56
- setHeaderHeight(summaryListRef.current.querySelector('header')?.offsetHeight || 0);
57
- }
58
- }, [summaryListRef.current]);
59
- return (_jsx(StyledIntelligentGuidance, { ...restProps, ref: ref, role: 'region', "aria-live": 'polite', "aria-relevant": 'all', isCollapsed: isCollapsed, hasItems: !!items.length, children: isMediumOrAbove || !isCollapsed ? (_jsx(StyledIntelligentGuidanceList, { ref: summaryListRef, icon: 'polaris-solid', name: heading, count: items.length, items: listItems, actions: [
60
- {
61
- text: t(isCollapsed
62
- ? 'expand_intelligent_guidance_button_a11y'
63
- : 'collapse_intelligent_guidance_button_a11y'),
64
- id: 'IntelligentGuidanceButton',
65
- icon: 'caret-down',
66
- onClick() {
67
- setIsCollapsed(prevState => !prevState);
68
- }
69
- }
70
- ], EmptyStateText: t('no_recommendations'), style: { '--headerHeight': `${headerHeight}px` } }, void 0)) : (_jsxs(StyledIntelligentGuidanceButton, { variant: 'simple', "aria-label": t('expand_intelligent_guidance_button_a11y'), icon: true, onClick: () => {
71
- setIsCollapsed(false);
72
- }, children: [_jsx(Icon, { name: 'polaris-solid' }, void 0), _jsx(Count, { children: items.length }, void 0)] }, void 0)) }, void 0));
73
- });
74
- export default IntelligentGuidance;
75
- //# sourceMappingURL=IntelligentGuidance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IntelligentGuidance.js","sourceRoot":"","sources":["../../../src/components/IntelligentGuidance/IntelligentGuidance.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EAIV,SAAS,EACT,eAAe,EACf,MAAM,EACN,QAAQ,EACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAEL,IAAI,EACJ,YAAY,EAEZ,OAAO,EACP,KAAK,EACL,aAAa,EACb,WAAW,EACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,gBAAgB,MAAM,sEAAsE,CAAC;AAEzG,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,8BAA8B,CAAC;AAGtC,YAAY,CAAC,gBAAgB,CAAC,CAAC;AAE/B,MAAM,mBAAmB,GAA+D,UAAU,CAChG,CACE,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,SAAS,EAA6C,EAC3E,GAAoC,EACpC,EAAE;IACF,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC;IACpB,MAAM,eAAe,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACrD,MAAM,aAAa,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IACzC,MAAM,cAAc,GAAG,MAAM,CAAc,IAAI,CAAC,CAAC;IAEjD,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,kBAAkB,GAAG,aAAa,EAAE,MAAM,IAAI,CAAC,CAAC;QACtD,IAAI,kBAAkB,GAAG,KAAK,CAAC,MAAM,EAAE;YACrC,cAAc,C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AAC,EACxD,IAAI,QACJ,OAAO,EAAE,GAAG,EAAE;gBACZ,cAAc,CAAC,KAAK,CAAC,CAAC;YACxB,CAAC,aAED,KAAC,IAAI,IAAC,IAAI,EAAC,eAAe,WAAG,EAC7B,KAAC,KAAK,cAAE,KAAK,CAAC,MAAM,WAAS,YACG,CACnC,WACyB,CAC7B,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["import {\n forwardRef,\n FunctionComponent,\n KeyboardEvent,\n PropsWithoutRef,\n useEffect,\n useLayoutEffect,\n useRef,\n useState\n} from 'react';\n\nimport {\n ForwardProps,\n Icon,\n registerIcon,\n SummaryListItem,\n useI18n,\n Count,\n useBreakpoint,\n usePrevious\n} from '@pega/cosmos-react-core';\nimport * as polarisSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/polaris-solid.icon';\n\nimport {\n StyledIntelligentGuidanceList,\n StyledIntelligentGuidance,\n StyledIntelligentGuidanceButton\n} from './IntelligentGuidance.styles';\nimport type IntelligentGuidanceProps from './IntelligentGuidance.types';\n\nregisterIcon(polarisSolidIcon);\n\nconst IntelligentGuidance: FunctionComponent<IntelligentGuidanceProps & ForwardProps> = forwardRef(\n (\n { items, heading, ...restProps }: PropsWithoutRef<IntelligentGuidanceProps>,\n ref: IntelligentGuidanceProps['ref']\n ) => {\n const t = useI18n();\n const isMediumOrAbove = useBreakpoint('md');\n const [isCollapsed, setIsCollapsed] = useState(true);\n const previousItems = usePrevious(items);\n const summaryListRef = useRef<HTMLElement>(null);\n\n useEffect(() => {\n const previousItemsCount = previousItems?.length || 0;\n if (previousItemsCount < items.length) {\n setIsCollapsed(false);\n } else if (previousItemsCount && !items.length) {\n setIsCollapsed(true);\n }\n }, [previousItems, items]);\n\n const listItems: SummaryListItem[] = items.map(item => {\n return {\n id: item.id,\n visual: <Icon name={item.icon} />,\n primary: item.label,\n secondary: item.type,\n actions: item.onDismiss\n ? [\n {\n text: t('dismiss_label_a11y', [item.label]),\n id: item.id,\n icon: 'times',\n onClick: (id, e) => {\n e.stopPropagation();\n item.onDismiss?.(id, e);\n }\n }\n ]\n : undefined,\n container: { colGap: 1 },\n role: 'button',\n tabIndex: 0,\n 'aria-label': t('continue_label_a11y', [item.label]),\n onClick: item.onClick,\n onKeyDown: (e: KeyboardEvent) => {\n if (e.key === 'Enter') {\n item.onClick(e);\n }\n }\n };\n });\n\n const [headerHeight, setHeaderHeight] = useState(0);\n\n useLayoutEffect(() => {\n if (summaryListRef.current) {\n setHeaderHeight(summaryListRef.current.querySelector('header')?.offsetHeight || 0);\n }\n }, [summaryListRef.current]);\n\n return (\n <StyledIntelligentGuidance\n {...restProps}\n ref={ref}\n role='region'\n aria-live='polite'\n aria-relevant='all'\n isCollapsed={isCollapsed}\n hasItems={!!items.length}\n >\n {isMediumOrAbove || !isCollapsed ? (\n <StyledIntelligentGuidanceList\n ref={summaryListRef}\n icon='polaris-solid'\n name={heading}\n count={items.length}\n items={listItems}\n actions={[\n {\n text: t(\n isCollapsed\n ? 'expand_intelligent_guidance_button_a11y'\n : 'collapse_intelligent_guidance_button_a11y'\n ),\n id: 'IntelligentGuidanceButton',\n icon: 'caret-down',\n onClick() {\n setIsCollapsed(prevState => !prevState);\n }\n }\n ]}\n EmptyStateText={t('no_recommendations')}\n style={{ '--headerHeight': `${headerHeight}px` }}\n />\n ) : (\n <StyledIntelligentGuidanceButton\n variant='simple'\n aria-label={t('expand_intelligent_guidance_button_a11y')}\n icon\n onClick={() => {\n setIsCollapsed(false);\n }}\n >\n <Icon name='polaris-solid' />\n <Count>{items.length}</Count>\n </StyledIntelligentGuidanceButton>\n )}\n </StyledIntelligentGuidance>\n );\n }\n);\n\nexport default IntelligentGuidance;\n"]}
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const StyledIntelligentGuidanceList: import("styled-components").StyledComponent<import("react").FC<import("@pega/cosmos-react-core").SummaryListProps & import("@pega/cosmos-react-core").ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
3
- export declare const StyledIntelligentGuidanceButton: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").ButtonProps & import("@pega/cosmos-react-core").ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
4
- export interface StyledIntelligentGuidanceProps {
5
- isCollapsed: boolean;
6
- hasItems: boolean;
7
- }
8
- export declare const StyledIntelligentGuidance: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledIntelligentGuidanceProps, never>;
9
- //# sourceMappingURL=IntelligentGuidance.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IntelligentGuidance.styles.d.ts","sourceRoot":"","sources":["../../../src/components/IntelligentGuidance/IntelligentGuidance.styles.ts"],"names":[],"mappings":";AAwBA,eAAO,MAAM,6BAA6B,2NA8ExC,CAAC;AAIH,eAAO,MAAM,+BAA+B,qOAiB1C,CAAC;AAaH,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,yBAAyB,qIA8BrC,CAAC"}
@@ -1,142 +0,0 @@
1
- import styled, { css, keyframes } from 'styled-components';
2
- import { lighten } from 'polished';
3
- import { Button, defaultThemeProp, StyledButton, StyledCard, StyledFlex, StyledIcon, StyledEmptyState, SummaryList, StyledText, tryCatch, StyledSummaryItem, StyledVisual } from '@pega/cosmos-react-core';
4
- import { StyledCount } from '@pega/cosmos-react-core/lib/components/Badges/Count';
5
- import { StyledCardHeader } from '@pega/cosmos-react-core/lib/components/Card/CardHeader';
6
- import { StyledSummaryListContent } from '@pega/cosmos-react-core/lib/components/SummaryList/SummaryList';
7
- const navWidth = '4rem';
8
- const itemIconSize = '2rem';
9
- export const StyledIntelligentGuidanceList = styled(SummaryList)(({ theme }) => {
10
- const borderColor = tryCatch(() => lighten(0.1, theme.components['app-shell'].nav['background-color']));
11
- const hoverColor = tryCatch(() => lighten(0.05, theme.components['app-shell'].nav['background-color']));
12
- return css `
13
- min-width: 20rem;
14
- max-width: 20rem;
15
- color: ${theme.base.palette.light};
16
- overflow: hidden;
17
- box-shadow: ${theme.base.shadow.low};
18
- @media (min-width: ${theme.base.breakpoints.lg}) {
19
- min-width: 23rem;
20
- max-width: 23rem;
21
- }
22
- &:not(& &) {
23
- background-color: ${theme.components['app-shell'].nav['background-color']};
24
- }
25
- ${StyledCardHeader} {
26
- &:not(${StyledCard} ${StyledCard} > &) {
27
- padding: ${theme.base.spacing};
28
- }
29
- ${StyledFlex} > ${StyledIcon} {
30
- width: ${itemIconSize};
31
- height: ${itemIconSize};
32
- padding: calc(0.75 * ${theme.base.spacing});
33
- border-radius: calc(3 * ${theme.base['border-radius']});
34
- background-color: ${theme.base.palette.success};
35
- }
36
- }
37
- ${StyledSummaryListContent} {
38
- &:not(${StyledCard} ${StyledCard} > &) {
39
- padding: 0;
40
- }
41
- }
42
- ${StyledButton}:enabled:focus {
43
- box-shadow: ${theme.base.shadow['focus-inverted']};
44
- }
45
- ${StyledSummaryItem} {
46
- padding: ${theme.base.spacing};
47
- border-top: ${theme.components.button['border-width']} solid ${borderColor};
48
- outline: none;
49
- ${StyledVisual} ${StyledIcon} {
50
- width: ${itemIconSize};
51
- height: ${itemIconSize};
52
- padding: calc(0.75 * ${theme.base.spacing});
53
- }
54
- ${StyledButton} {
55
- visibility: hidden;
56
- }
57
- &:not(:last-child) {
58
- border-bottom: none;
59
- }
60
- &:hover {
61
- background-color: ${hoverColor};
62
- cursor: pointer;
63
- }
64
- &:hover,
65
- &:focus,
66
- &:focus-within {
67
- ${StyledButton} {
68
- visibility: visible;
69
- }
70
- }
71
- &:enabled:focus,
72
- &:not([disabled]):focus {
73
- box-shadow: inset ${theme.base.shadow['focus-inverted']};
74
- }
75
- }
76
- ${StyledEmptyState} {
77
- padding-bottom: ${theme.base.spacing};
78
- ${StyledIcon}, ${StyledText} {
79
- color: ${theme.base.palette.light};
80
- }
81
- }
82
- `;
83
- });
84
- StyledIntelligentGuidanceList.defaultProps = defaultThemeProp;
85
- export const StyledIntelligentGuidanceButton = styled(Button)(({ theme }) => {
86
- return css `
87
- box-shadow: ${theme.base.shadow.low};
88
- color: ${theme.base.palette.light};
89
- background-color: ${theme.base.palette.success};
90
- width: 4rem;
91
- height: 4rem;
92
- svg {
93
- width: 2.25rem;
94
- height: 2.25rem;
95
- }
96
- ${StyledCount} {
97
- position: absolute;
98
- right: 0;
99
- top: 0;
100
- }
101
- `;
102
- });
103
- StyledIntelligentGuidanceButton.defaultProps = defaultThemeProp;
104
- const slideIn = keyframes `
105
- 0% {
106
- transform: translateY(100%);
107
- }
108
- 100% {
109
- transform: translateY(0);
110
- }
111
- `;
112
- export const StyledIntelligentGuidance = styled.div(({ theme, isCollapsed }) => {
113
- return css `
114
- position: fixed;
115
- inset-inline-start: calc(2 * ${theme.base.spacing} + ${navWidth});
116
- bottom: ${isCollapsed ? `calc(2 * ${theme.base.spacing}) ` : 0};
117
- @media (min-width: ${theme.base.breakpoints.md}) {
118
- bottom: 0;
119
- }
120
- z-index: ${theme.base['z-index'].popover};
121
- ${StyledIntelligentGuidanceList}:not(${StyledIntelligentGuidanceList} ${StyledIntelligentGuidanceList}) {
122
- border-bottom-left-radius: 0;
123
- border-bottom-right-radius: 0;
124
- transition: transform calc(4 * ${theme.base.animation.speed})
125
- ${theme.base.animation.timing.ease};
126
- ${isCollapsed &&
127
- css `
128
- transform: translateY(calc(100% - var(--headerHeight)));
129
- `}
130
- ${StyledCardHeader} ${StyledButton} {
131
- transition: transform calc(2 * ${theme.base.animation.speed})
132
- ${theme.base.animation.timing.ease};
133
- transform: ${isCollapsed ? 'rotate(-180deg)' : 'rotate(0)'};
134
- }
135
- }
136
- ${StyledIntelligentGuidanceButton} {
137
- animation: ${slideIn} calc(4 * ${theme.base.animation.speed});
138
- }
139
- `;
140
- });
141
- StyledIntelligentGuidance.defaultProps = defaultThemeProp;
142
- //# sourceMappingURL=IntelligentGuidance.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IntelligentGuidance.styles.js","sourceRoot":"","sources":["../../../src/components/IntelligentGuidance/IntelligentGuidance.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,YAAY,EACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAE1G,MAAM,QAAQ,GAAG,MAAM,CAAC;AACxB,MAAM,YAAY,GAAG,MAAM,CAAC;AAE5B,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IAC7E,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,EAAE,CAChC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CACpE,CAAC;IACF,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,EAAE,CAC/B,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CACrE,CAAC;IACF,OAAO,GAAG,CAAA;;;aAGC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK;;kBAEnB,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG;yBACd,KAAK,CAAC,IAAI,C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port {\n Button,\n defaultThemeProp,\n StyledButton,\n StyledCard,\n StyledFlex,\n StyledIcon,\n StyledEmptyState,\n SummaryList,\n StyledText,\n tryCatch,\n StyledSummaryItem,\n StyledVisual\n} from '@pega/cosmos-react-core';\nimport { StyledCount } from '@pega/cosmos-react-core/lib/components/Badges/Count';\nimport { StyledCardHeader } from '@pega/cosmos-react-core/lib/components/Card/CardHeader';\nimport { StyledSummaryListContent } from '@pega/cosmos-react-core/lib/components/SummaryList/SummaryList';\n\nconst navWidth = '4rem';\nconst itemIconSize = '2rem';\n\nexport const StyledIntelligentGuidanceList = styled(SummaryList)(({ theme }) => {\n const borderColor = tryCatch(() =>\n lighten(0.1, theme.components['app-shell'].nav['background-color'])\n );\n const hoverColor = tryCatch(() =>\n lighten(0.05, theme.components['app-shell'].nav['background-color'])\n );\n return css`\n min-width: 20rem;\n max-width: 20rem;\n color: ${theme.base.palette.light};\n overflow: hidden;\n box-shadow: ${theme.base.shadow.low};\n @media (min-width: ${theme.base.breakpoints.lg}) {\n min-width: 23rem;\n max-width: 23rem;\n }\n &:not(& &) {\n background-color: ${theme.components['app-shell'].nav['background-color']};\n }\n ${StyledCardHeader} {\n &:not(${StyledCard} ${StyledCard} > &) {\n padding: ${theme.base.spacing};\n }\n ${StyledFlex} > ${StyledIcon} {\n width: ${itemIconSize};\n height: ${itemIconSize};\n padding: calc(0.75 * ${theme.base.spacing});\n border-radius: calc(3 * ${theme.base['border-radius']});\n background-color: ${theme.base.palette.success};\n }\n }\n ${StyledSummaryListContent} {\n &:not(${StyledCard} ${StyledCard} > &) {\n padding: 0;\n }\n }\n ${StyledButton}:enabled:focus {\n box-shadow: ${theme.base.shadow['focus-inverted']};\n }\n ${StyledSummaryItem} {\n padding: ${theme.base.spacing};\n border-top: ${theme.components.button['border-width']} solid ${borderColor};\n outline: none;\n ${StyledVisual} ${StyledIcon} {\n width: ${itemIconSize};\n height: ${itemIconSize};\n padding: calc(0.75 * ${theme.base.spacing});\n }\n ${StyledButton} {\n visibility: hidden;\n }\n &:not(:last-child) {\n border-bottom: none;\n }\n &:hover {\n background-color: ${hoverColor};\n cursor: pointer;\n }\n &:hover,\n &:focus,\n &:focus-within {\n ${StyledButton} {\n visibility: visible;\n }\n }\n &:enabled:focus,\n &:not([disabled]):focus {\n box-shadow: inset ${theme.base.shadow['focus-inverted']};\n }\n }\n ${StyledEmptyState} {\n padding-bottom: ${theme.base.spacing};\n ${StyledIcon}, ${StyledText} {\n color: ${theme.base.palette.light};\n }\n }\n `;\n});\n\nStyledIntelligentGuidanceList.defaultProps = defaultThemeProp;\n\nexport const StyledIntelligentGuidanceButton = styled(Button)(({ theme }) => {\n return css`\n box-shadow: ${theme.base.shadow.low};\n color: ${theme.base.palette.light};\n background-color: ${theme.base.palette.success};\n width: 4rem;\n height: 4rem;\n svg {\n width: 2.25rem;\n height: 2.25rem;\n }\n ${StyledCount} {\n position: absolute;\n right: 0;\n top: 0;\n }\n `;\n});\n\nStyledIntelligentGuidanceButton.defaultProps = defaultThemeProp;\n\nconst slideIn = keyframes`\n 0% {\n transform: translateY(100%);\n }\n 100% {\n transform: translateY(0);\n }\n`;\n\nexport interface StyledIntelligentGuidanceProps {\n isCollapsed: boolean;\n hasItems: boolean;\n}\n\nexport const StyledIntelligentGuidance = styled.div<StyledIntelligentGuidanceProps>(\n ({ theme, isCollapsed }) => {\n return css`\n position: fixed;\n inset-inline-start: calc(2 * ${theme.base.spacing} + ${navWidth});\n bottom: ${isCollapsed ? `calc(2 * ${theme.base.spacing}) ` : 0};\n @media (min-width: ${theme.base.breakpoints.md}) {\n bottom: 0;\n }\n z-index: ${theme.base['z-index'].popover};\n ${StyledIntelligentGuidanceList}:not(${StyledIntelligentGuidanceList} ${StyledIntelligentGuidanceList}) {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n transition: transform calc(4 * ${theme.base.animation.speed})\n ${theme.base.animation.timing.ease};\n ${isCollapsed &&\n css`\n transform: translateY(calc(100% - var(--headerHeight)));\n `}\n ${StyledCardHeader} ${StyledButton} {\n transition: transform calc(2 * ${theme.base.animation.speed})\n ${theme.base.animation.timing.ease};\n transform: ${isCollapsed ? 'rotate(-180deg)' : 'rotate(0)'};\n }\n }\n ${StyledIntelligentGuidanceButton} {\n animation: ${slideIn} calc(4 * ${theme.base.animation.speed});\n }\n `;\n }\n);\n\nStyledIntelligentGuidance.defaultProps = defaultThemeProp;\n"]}
@@ -1,31 +0,0 @@
1
- import { MouseEvent, KeyboardEvent, Ref } from 'react';
2
- import { BaseProps, IconProps, NoChildrenProp } from '@pega/cosmos-react-core';
3
- export interface IntelligentGuidanceItemProps {
4
- /** Unique id for item */
5
- id: string;
6
- /** The label text of the item. */
7
- label: string;
8
- /**
9
- * Name of the icon (to be selected from default Pega icon set)
10
- */
11
- icon: IconProps['name'];
12
- /** Represents the type of task */
13
- type: string;
14
- /**
15
- * Click handler for the action button.
16
- */
17
- onClick: (e: MouseEvent | KeyboardEvent) => void;
18
- /**
19
- * Dismiss handler for the action button.
20
- */
21
- onDismiss?: (id: IntelligentGuidanceItemProps['id'], e: MouseEvent<HTMLButtonElement | HTMLAnchorElement | HTMLInputElement>) => void;
22
- }
23
- export default interface IntelligentGuidanceProps extends BaseProps, NoChildrenProp {
24
- /** List of guidance items. */
25
- items: IntelligentGuidanceItemProps[];
26
- /** Header text. */
27
- heading: string;
28
- /** Ref for the wrapping element. */
29
- ref?: Ref<HTMLDivElement>;
30
- }
31
- //# sourceMappingURL=IntelligentGuidance.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IntelligentGuidance.types.d.ts","sourceRoot":"","sources":["../../../src/components/IntelligentGuidance/IntelligentGuidance.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE/E,MAAM,WAAW,4BAA4B;IAC3C,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACxB,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,GAAG,aAAa,KAAK,IAAI,CAAC;IACjD;;OAEG;IACH,SAAS,CAAC,EAAE,CACV,EAAE,EAAE,4BAA4B,CAAC,IAAI,CAAC,EACtC,CAAC,EAAE,UAAU,CAAC,iBAAiB,GAAG,iBAAiB,GAAG,gBAAgB,CAAC,KACpE,IAAI,CAAC;CACX;AAED,MAAM,CAAC,OAAO,WAAW,wBAAyB,SAAQ,SAAS,EAAE,cAAc;IACjF,8BAA8B;IAC9B,KAAK,EAAE,4BAA4B,EAAE,CAAC;IACtC,mBAAmB;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IntelligentGuidance.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IntelligentGuidance.types.js","sourceRoot":"","sources":["../../../src/components/IntelligentGuidance/IntelligentGuidance.types.ts"],"names":[],"mappings":"","sourcesContent":["import { MouseEvent, KeyboardEvent, Ref } from 'react';\n\nimport { BaseProps, IconProps, NoChildrenProp } from '@pega/cosmos-react-core';\n\nexport interface IntelligentGuidanceItemProps {\n /** Unique id for item */\n id: string;\n /** The label text of the item. */\n label: string;\n /**\n * Name of the icon (to be selected from default Pega icon set)\n */\n icon: IconProps['name'];\n /** Represents the type of task */\n type: string;\n /**\n * Click handler for the action button.\n */\n onClick: (e: MouseEvent | KeyboardEvent) => void;\n /**\n * Dismiss handler for the action button.\n */\n onDismiss?: (\n id: IntelligentGuidanceItemProps['id'],\n e: MouseEvent<HTMLButtonElement | HTMLAnchorElement | HTMLInputElement>\n ) => void;\n}\n\nexport default interface IntelligentGuidanceProps extends BaseProps, NoChildrenProp {\n /** List of guidance items. */\n items: IntelligentGuidanceItemProps[];\n /** Header text. */\n heading: string;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLDivElement>;\n}\n"]}
@@ -1,3 +0,0 @@
1
- export { default } from './IntelligentGuidance';
2
- export { default as IntelligentGuidanceProps } from './IntelligentGuidance.types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IntelligentGuidance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1,2 +0,0 @@
1
- export { default } from './IntelligentGuidance';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/IntelligentGuidance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export { default } from './IntelligentGuidance';\nexport { default as IntelligentGuidanceProps } from './IntelligentGuidance.types';\n"]}
@@ -1,26 +0,0 @@
1
- import { FunctionComponent, Ref } from 'react';
2
- import { StatusProps, ForwardProps, FieldValueListProps, NoChildrenProp } from '@pega/cosmos-react-core';
3
- export interface InteractionNotificationProps extends NoChildrenProp {
4
- /** Ref to Component. */
5
- ref?: Ref<HTMLDivElement>;
6
- /** Name of the icon used in header. */
7
- icon: string;
8
- /** Interaction title. */
9
- title: string;
10
- /** Primary information of the notification. For example caller name . */
11
- primaryText: string;
12
- /** Secondary information of the notification. For example phone number of the caller */
13
- secondaryText?: string;
14
- /** Represents the current status of interaction. */
15
- status: {
16
- variant: StatusProps['variant'];
17
- text: string;
18
- };
19
- /** Information structured as field values to be displayed below main section. */
20
- fields?: FieldValueListProps['fields'];
21
- /** Callback when accept button is clicked. */
22
- onAccept?: () => void;
23
- }
24
- declare const InteractionNotification: FunctionComponent<InteractionNotificationProps & ForwardProps>;
25
- export default InteractionNotification;
26
- //# sourceMappingURL=InteractionNotification.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InteractionNotification.d.ts","sourceRoot":"","sources":["../../../src/components/InteractionNotification/InteractionNotification.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAmB,GAAG,EAAE,MAAM,OAAO,CAAC;AAG5E,OAAO,EAQL,WAAW,EACX,YAAY,EAWZ,mBAAmB,EAEnB,cAAc,EACf,MAAM,yBAAyB,CAAC;AAKjC,MAAM,WAAW,4BAA6B,SAAQ,cAAc;IAClE,wBAAwB;IACxB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAC1B,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,WAAW,EAAE,MAAM,CAAC;IACpB,wFAAwF;IACxF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oDAAoD;IACpD,MAAM,EAAE;QAAE,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1D,iFAAiF;IACjF,MAAM,CAAC,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACvC,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAqED,QAAA,MAAM,uBAAuB,EAAE,iBAAiB,CAAC,4BAA4B,GAAG,YAAY,CA6CzF,CAAC;AAEJ,eAAe,uBAAuB,CAAC"}