@capillarytech/blaze-ui 6.1.0 → 6.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/.npmrc +3 -0
  2. package/CapCustomCheckboxList/styles.css +3 -3
  3. package/CapCustomCheckboxList/styles.scss +7 -8
  4. package/CapEventCalendar/CalendarCanvas/calendarCanvasStyles.css +21 -0
  5. package/CapEventCalendar/CalendarCanvas/calendarCanvasStyles.module.scss.js +8 -0
  6. package/CapEventCalendar/CalendarCanvas/calendarCanvasStyles.scss +17 -0
  7. package/CapEventCalendar/CalendarCanvas/index.d.ts +3 -52
  8. package/CapEventCalendar/CalendarCanvas/index.d.ts.map +1 -1
  9. package/CapEventCalendar/CalendarCanvas/index.js +31 -50
  10. package/CapEventCalendar/CalendarCanvas/utils.d.ts +5 -9
  11. package/CapEventCalendar/CalendarCanvas/utils.d.ts.map +1 -1
  12. package/CapEventCalendar/CalendarCanvas/utils.js +6 -6
  13. package/CapEventCalendar/components/DayDropdown/index.d.ts +3 -13
  14. package/CapEventCalendar/components/DayDropdown/index.d.ts.map +1 -1
  15. package/CapEventCalendar/components/DayDropdown/index.js +32 -14
  16. package/CapEventCalendar/components/MonthHeader/index.d.ts +3 -9
  17. package/CapEventCalendar/components/MonthHeader/index.d.ts.map +1 -1
  18. package/CapEventCalendar/components/MonthHeader/index.js +4 -9
  19. package/CapEventCalendar/components/MonthHeader/monthHeaderStyles.css +20 -0
  20. package/CapEventCalendar/components/MonthHeader/monthHeaderStyles.module.scss.js +7 -0
  21. package/CapEventCalendar/components/MonthHeader/monthHeaderStyles.scss +15 -0
  22. package/CapEventCalendar/drawUtils.d.ts +9 -71
  23. package/CapEventCalendar/drawUtils.d.ts.map +1 -1
  24. package/CapEventCalendar/drawUtils.js +12 -4
  25. package/CapEventCalendar/index.d.ts +4 -80
  26. package/CapEventCalendar/index.d.ts.map +1 -1
  27. package/CapEventCalendar/index.js +60 -85
  28. package/CapEventCalendar/messages.d.ts +25 -0
  29. package/CapEventCalendar/messages.d.ts.map +1 -0
  30. package/CapEventCalendar/messages.js +28 -0
  31. package/CapEventCalendar/styles.css +9 -81
  32. package/CapEventCalendar/styles.module.scss.js +12 -0
  33. package/CapEventCalendar/styles.scss +34 -107
  34. package/CapEventCalendar/tests/types.d.ts +26 -0
  35. package/CapEventCalendar/tests/types.d.ts.map +1 -0
  36. package/CapEventCalendar/types.d.ts +188 -0
  37. package/CapEventCalendar/types.d.ts.map +1 -0
  38. package/CapEventCalendar/types.js +1 -0
  39. package/CapEventCalendar/utils.d.ts +11 -9
  40. package/CapEventCalendar/utils.d.ts.map +1 -1
  41. package/CapEventCalendar/utils.js +10 -7
  42. package/CapProductSelection/index.d.ts +7 -29
  43. package/CapProductSelection/index.d.ts.map +1 -1
  44. package/CapProductSelection/index.js +52 -89
  45. package/CapProductSelection/messages.d.ts +76 -0
  46. package/CapProductSelection/messages.d.ts.map +1 -0
  47. package/CapProductSelection/messages.js +79 -0
  48. package/CapProductSelection/styles.css +81 -0
  49. package/CapProductSelection/styles.module.scss.js +8 -0
  50. package/CapProductSelection/styles.scss +82 -40
  51. package/CapProductSelection/tests/CapProductSelection.mockData.d.ts +36 -0
  52. package/CapProductSelection/tests/CapProductSelection.mockData.d.ts.map +1 -0
  53. package/CapProductSelection/types.d.ts +34 -0
  54. package/CapProductSelection/types.d.ts.map +1 -0
  55. package/CapProductSelection/types.js +1 -0
  56. package/CapRadioCard/index.d.ts.map +1 -1
  57. package/CapRadioCard/index.js +52 -20
  58. package/CapRadioCard/styles.css +25 -25
  59. package/CapRadioCard/styles.module.scss.js +14 -40
  60. package/CapRadioCard/styles.scss +20 -20
  61. package/CapRadioCard/types.d.ts +20 -0
  62. package/CapRadioCard/types.d.ts.map +1 -1
  63. package/CapStaticTemplates/index.d.ts +3 -1
  64. package/CapStaticTemplates/index.d.ts.map +1 -1
  65. package/CapStaticTemplates/index.js +185 -144
  66. package/CapStaticTemplates/messages.d.ts +32 -0
  67. package/CapStaticTemplates/messages.d.ts.map +1 -0
  68. package/CapStaticTemplates/messages.js +35 -0
  69. package/CapStaticTemplates/styles.css +220 -0
  70. package/CapStaticTemplates/styles.module.scss.js +55 -0
  71. package/CapStaticTemplates/styles.scss +291 -0
  72. package/CapStaticTemplates/tests/CapStaticTemplates.mockData.d.ts +54 -0
  73. package/CapStaticTemplates/tests/CapStaticTemplates.mockData.d.ts.map +1 -0
  74. package/CapStaticTemplates/types.d.ts +97 -0
  75. package/CapStaticTemplates/types.d.ts.map +1 -0
  76. package/CapStaticTemplates/types.js +1 -0
  77. package/CapTabV3/tests/CapTabV3.mockData.d.ts +26 -26
  78. package/CapTabV3/tests/CapTabV3.mockData.d.ts.map +1 -1
  79. package/index.d.ts +6 -0
  80. package/index.d.ts.map +1 -1
  81. package/index.js +227 -221
  82. package/package.json +1 -1
  83. package/styles/_variables.scss +2 -0
  84. package/utils/dayjs.d.ts +1 -0
  85. package/utils/dayjs.d.ts.map +1 -1
  86. package/utils/dayjs.js +1 -0
  87. package/CapProductSelection/style.d.ts +0 -3
  88. package/CapProductSelection/style.d.ts.map +0 -1
  89. package/CapProductSelection/style.js +0 -38
  90. package/CapStaticTemplates/style.d.ts +0 -13
  91. package/CapStaticTemplates/style.d.ts.map +0 -1
  92. package/CapStaticTemplates/style.js +0 -216
@@ -0,0 +1,220 @@
1
+ /* Color Palette */
2
+ /* Fonts */
3
+ /* Backward Compatibility Aliases */
4
+ /* Component Heights */
5
+ /* Border Radius */
6
+ /* Border Width */
7
+ /* Transition */
8
+ /* Timezones Footer */
9
+ .cap-static-templates-v2 {
10
+ display: flex;
11
+ flex-flow: nowrap;
12
+ min-width: 85vw;
13
+ }
14
+ .sidebar {
15
+ width: 18.429rem;
16
+ margin-right: 1.214rem;
17
+ border: 0.071rem solid #dfe2e7;
18
+ }
19
+ .templates-and-search-container {
20
+ width: var(--templates-container-width, 70.714rem);
21
+ }
22
+ .templates-container {
23
+ max-height: var(--templates-container-max-height, 28.571rem);
24
+ overflow-y: scroll;
25
+ scroll-behavior: smooth;
26
+ }
27
+ .category-container {
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: space-between;
31
+ height: 2.857rem;
32
+ padding: 0.857rem 1.142rem 0.857rem 1.428rem;
33
+ border-left: 0.285rem solid var(--category-color, #97a0af);
34
+ cursor: pointer;
35
+ }
36
+ .category-container.selected {
37
+ background-color: #f4f5f7;
38
+ border-radius: unset;
39
+ }
40
+ .search-box {
41
+ width: 19.857rem;
42
+ margin-bottom: 0.857rem;
43
+ margin-left: 0.428rem;
44
+ }
45
+ .search-box .ant-input.ant-input-lg {
46
+ height: 2.285rem;
47
+ }
48
+ .template-icon.cap-icon-v2 {
49
+ font-size: 0.929rem;
50
+ }
51
+ .strategy-template .strategy-template-radio-root .strategy-template-radio-button {
52
+ border-left: 0.285rem solid var(--category-color, #97a0af);
53
+ }
54
+ .strategy-template .strategy-template-radio-root .strategy-template-radio-button.template-disabled {
55
+ opacity: 0.5;
56
+ }
57
+ .strategy-template .strategy-template-radio-root .strategy-template-radio-button .ant-card.ant-card-bordered {
58
+ border-left: 0.285rem solid var(--border-color, #97a0af);
59
+ }
60
+ .strategy-template .strategy-template-radio-root .strategy-template-radio-button .card-header-title {
61
+ max-width: 14.286rem;
62
+ text-overflow: ellipsis;
63
+ overflow: hidden;
64
+ white-space: nowrap;
65
+ }
66
+ .strategy-template .strategy-template-radio-root .strategy-template-radio-button .coming-soon-tag {
67
+ display: none;
68
+ margin-bottom: 0.857rem;
69
+ }
70
+ .strategy-template .strategy-template-radio-root .strategy-template-radio-button:hover {
71
+ opacity: 1;
72
+ }
73
+ .strategy-template .strategy-template-radio-root .strategy-template-radio-button:hover .coming-soon-tag {
74
+ display: inline-flex;
75
+ height: auto;
76
+ }
77
+ .strategy-template .strategy-template-radio-root .strategy-template-radio-button:hover .card-header-title {
78
+ margin-right: 0.143rem;
79
+ }
80
+ .strategy-template .strategy-template-radio-root .strategy-template-radio-button:hover .card-available {
81
+ max-width: 14.286rem;
82
+ }
83
+ .strategy-template .strategy-template-radio-root .strategy-template-radio-button .strategy-template-radio-icon-container {
84
+ height: 2.857rem;
85
+ width: 2.857rem;
86
+ border-radius: 1.142rem;
87
+ }
88
+ .strategy-template .strategy-template-radio-root .strategy-template-radio-button .strategy-template-radio-icon-container .strategy-template-radio-div-icon {
89
+ left: 43%;
90
+ top: 21%;
91
+ }
92
+ .strategy-template .strategy-template-radio-root .strategy-template-radio-button .strategy-template-radio-icon-container .strategy-template-radio-div-icon .cap-icon-v2-add {
93
+ display: block;
94
+ margin-left: 0.071rem;
95
+ margin-top: 0.428rem;
96
+ }
97
+ .strategy-template .strategy-template-radio-root .strategy-template-radio-button .strategy-template-radio-icon-wrapper {
98
+ width: 2.857rem;
99
+ height: 2.857rem;
100
+ margin-right: 0.571rem;
101
+ }
102
+ .strategy-template .strategy-template-radio-root .ant-card div.ant-card-body {
103
+ display: flex;
104
+ align-items: center;
105
+ flex-wrap: wrap;
106
+ height: auto;
107
+ padding: 0.571rem 0.571rem 0.285rem 0.857rem;
108
+ }
109
+ .strategy-template .strategy-template-radio-root .ant-card div.ant-card-body div.strategy-template-radio-content-container {
110
+ width: 14.5rem;
111
+ }
112
+ .strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .card-content {
113
+ max-height: 3.214rem;
114
+ }
115
+ .strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .card-header-row {
116
+ width: 14.857rem;
117
+ flex-flow: nowrap;
118
+ align-items: center;
119
+ }
120
+ .strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .custom-template {
121
+ margin-left: 0.571rem;
122
+ }
123
+ .strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .custom-template .title-desc-container {
124
+ width: 14rem;
125
+ }
126
+ .strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .strategy-icon {
127
+ display: flex;
128
+ align-items: center;
129
+ justify-content: center;
130
+ height: 2.857rem;
131
+ width: 2.857rem;
132
+ margin-top: -0.571rem;
133
+ margin-left: -0.857rem;
134
+ }
135
+ .strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .strategy-icon svg {
136
+ width: 2.857rem;
137
+ height: 2.857rem;
138
+ }
139
+ .strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .strategy-icon .text-label {
140
+ font-weight: 500;
141
+ text-transform: uppercase;
142
+ background-color: unset;
143
+ border-radius: unset;
144
+ }
145
+ .strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .strategy-icon .selected {
146
+ color: #ffffff;
147
+ }
148
+ .strategy-template-icon-placeholder .strategy-template-radio-div-icon {
149
+ left: 35% !important;
150
+ top: 30% !important;
151
+ }
152
+ .templates-modal .ant-modal-container {
153
+ width: 52.643rem;
154
+ height: 19.571rem;
155
+ right: 50%;
156
+ padding: 0;
157
+ }
158
+ .templates-modal .ant-modal-container div.ant-modal-body {
159
+ padding: 1.714rem 1.714rem 1.571rem 1.714rem;
160
+ }
161
+ .templates-modal .ant-modal-container .modal-image {
162
+ width: 17.357rem;
163
+ height: 15.714rem;
164
+ }
165
+ .templates-modal .ant-modal-container .modal-info-content {
166
+ width: 28.429rem;
167
+ margin-right: 1.714rem;
168
+ }
169
+ .templates-modal .ant-modal-container .ant-modal-close-x {
170
+ margin-top: 0.571rem;
171
+ }
172
+ .templates-modal .ant-modal-container .ant-modal-footer {
173
+ display: none;
174
+ }
175
+ .styled-cap-card {
176
+ width: 6.571rem;
177
+ height: 6.143rem;
178
+ }
179
+ .styled-cap-card div.ant-card-head {
180
+ max-height: 2.786rem;
181
+ min-height: 2.786rem;
182
+ text-align: center;
183
+ background-color: #e9f0fe;
184
+ }
185
+ .styled-cap-card div.ant-card-head .ant-card-head-title {
186
+ padding: 0.571rem 0;
187
+ }
188
+ .styled-cap-card div.ant-card-body {
189
+ height: 3.357rem;
190
+ margin-top: 0.571rem;
191
+ padding: 0.643rem 0.714rem 0.428rem 0.714rem !important;
192
+ text-align: center;
193
+ }
194
+ .styled-cap-card .cap-icon svg {
195
+ height: 1.714rem;
196
+ width: 1.714rem;
197
+ color: #c7d8fb;
198
+ }
199
+ .premium-icon {
200
+ margin-left: 0.285rem;
201
+ color: #e8bc25;
202
+ }
203
+ .cap-static-templates-v2-margin-t-4 {
204
+ margin-top: 0.285rem;
205
+ }
206
+ .cap-static-templates-v2-margin-t-13 {
207
+ margin-top: 0.928rem;
208
+ }
209
+ .cap-static-templates-v2-margin-l-8 {
210
+ margin-left: 0.571rem;
211
+ }
212
+ .cap-static-templates-v2-margin-b-8 {
213
+ margin-bottom: 0.571rem;
214
+ }
215
+ .cap-static-templates-v2-margin-t-16 {
216
+ margin-top: 1.142rem;
217
+ }
218
+ .cap-static-templates-v2-margin-b-16 {
219
+ margin-bottom: 1.142rem;
220
+ }
@@ -0,0 +1,55 @@
1
+ import './styles.css';const sidebar = "sidebar";
2
+ const selected = "selected";
3
+ const styles = {
4
+ "cap-static-templates-v2": "cap-static-templates-v2",
5
+ sidebar,
6
+ "templates-and-search-container": "templates-and-search-container",
7
+ "templates-container": "templates-container",
8
+ "category-container": "category-container",
9
+ selected,
10
+ "search-box": "search-box",
11
+ "template-icon": "template-icon",
12
+ "cap-icon-v2": "cap-icon-v2",
13
+ "strategy-template": "strategy-template",
14
+ "strategy-template-radio-root": "strategy-template-radio-root",
15
+ "strategy-template-radio-button": "strategy-template-radio-button",
16
+ "template-disabled": "template-disabled",
17
+ "card-header-title": "card-header-title",
18
+ "coming-soon-tag": "coming-soon-tag",
19
+ "card-available": "card-available",
20
+ "strategy-template-radio-icon-container": "strategy-template-radio-icon-container",
21
+ "strategy-template-radio-div-icon": "strategy-template-radio-div-icon",
22
+ "cap-icon-v2-add": "cap-icon-v2-add",
23
+ "strategy-template-radio-icon-wrapper": "strategy-template-radio-icon-wrapper",
24
+ "strategy-template-radio-content-container": "strategy-template-radio-content-container",
25
+ "card-content": "card-content",
26
+ "card-header-row": "card-header-row",
27
+ "custom-template": "custom-template",
28
+ "title-desc-container": "title-desc-container",
29
+ "strategy-icon": "strategy-icon",
30
+ "text-label": "text-label",
31
+ "strategy-template-icon-placeholder": "strategy-template-icon-placeholder",
32
+ "templates-modal": "templates-modal",
33
+ "ant-modal-body": "ant-modal-body",
34
+ "modal-image": "modal-image",
35
+ "modal-info-content": "modal-info-content",
36
+ "ant-modal-close-x": "ant-modal-close-x",
37
+ "ant-modal-footer": "ant-modal-footer",
38
+ "styled-cap-card": "styled-cap-card",
39
+ "ant-card-head": "ant-card-head",
40
+ "ant-card-head-title": "ant-card-head-title",
41
+ "ant-card-body": "ant-card-body",
42
+ "cap-icon": "cap-icon",
43
+ "premium-icon": "premium-icon",
44
+ "cap-static-templates-v2-margin-t-4": "cap-static-templates-v2-margin-t-4",
45
+ "cap-static-templates-v2-margin-t-13": "cap-static-templates-v2-margin-t-13",
46
+ "cap-static-templates-v2-margin-l-8": "cap-static-templates-v2-margin-l-8",
47
+ "cap-static-templates-v2-margin-b-8": "cap-static-templates-v2-margin-b-8",
48
+ "cap-static-templates-v2-margin-t-16": "cap-static-templates-v2-margin-t-16",
49
+ "cap-static-templates-v2-margin-b-16": "cap-static-templates-v2-margin-b-16"
50
+ };
51
+ export {
52
+ styles as default,
53
+ selected,
54
+ sidebar
55
+ };
@@ -0,0 +1,291 @@
1
+ @import '../styles/_variables';
2
+
3
+ $component: cap-static-templates-v2;
4
+
5
+ .#{$component} {
6
+ display: flex;
7
+ flex-flow: nowrap;
8
+ min-width: 85vw;
9
+ }
10
+
11
+ .sidebar {
12
+ width: 18.429rem; // 258px
13
+ margin-right: 1.214rem; // 17px
14
+ border: $border-width-1 solid $CAP_G07;
15
+ }
16
+
17
+ .templates-and-search-container {
18
+ width: var(--templates-container-width, 70.714rem); // 990px
19
+ }
20
+
21
+ .templates-container {
22
+ max-height: var(--templates-container-max-height, 28.571rem); // 400px
23
+ overflow-y: scroll;
24
+ scroll-behavior: smooth;
25
+ }
26
+
27
+ .category-container {
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: space-between;
31
+ height: $CAP_SPACE_40;
32
+ padding: $CAP_SPACE_12 $CAP_SPACE_16 $CAP_SPACE_12 $CAP_SPACE_20;
33
+ border-left: $CAP_SPACE_04 solid var(--category-color, $CAP_G05);
34
+ cursor: pointer;
35
+
36
+ &.selected {
37
+ background-color: $CAP_G09;
38
+ border-radius: unset;
39
+ }
40
+ }
41
+
42
+ .search-box {
43
+ width: 19.857rem; // 278px
44
+ margin-bottom: $CAP_SPACE_12;
45
+ margin-left: $CAP_SPACE_06;
46
+
47
+ :global(.ant-input.ant-input-lg) {
48
+ height: $CAP_SPACE_32;
49
+ }
50
+ }
51
+
52
+ .template-icon {
53
+ &.cap-icon-v2 {
54
+ font-size: 0.929rem; // 13px
55
+ }
56
+ }
57
+
58
+ // Class names passed to CapRadioCard via classNames prop (no longer depend on CapRadioCard internals)
59
+ $radio: strategy-template-radio;
60
+
61
+ .strategy-template {
62
+ // Target CapRadioCard via passed classNames (root, radioButtonWrapper, etc.)
63
+ .#{$radio}-root {
64
+ .#{$radio}-button {
65
+ border-left: $CAP_SPACE_04 solid var(--category-color, $CAP_G05);
66
+
67
+ &.template-disabled {
68
+ opacity: 0.5;
69
+ }
70
+
71
+ :global(.ant-card.ant-card-bordered) {
72
+ border-left: $CAP_SPACE_04 solid var(--border-color, $CAP_G05);
73
+ }
74
+
75
+ .card-header-title {
76
+ max-width: 14.286rem; // 200px
77
+ text-overflow: ellipsis;
78
+ overflow: hidden;
79
+ white-space: nowrap;
80
+ }
81
+
82
+ .coming-soon-tag {
83
+ display: none;
84
+ margin-bottom: $cap-space-12;
85
+ }
86
+
87
+ &:hover {
88
+ opacity: 1;
89
+
90
+ .coming-soon-tag {
91
+ display: inline-flex;
92
+ height: auto;
93
+ }
94
+
95
+ .card-header-title {
96
+ margin-right: $border-width-2;
97
+ }
98
+
99
+ .card-available {
100
+ max-width: 14.286rem; // 200px
101
+ }
102
+ }
103
+
104
+ .#{$radio}-icon-container {
105
+ height: $CAP_SPACE_40;
106
+ width: $CAP_SPACE_40;
107
+ border-radius: $CAP_SPACE_16;
108
+
109
+ .#{$radio}-div-icon {
110
+ left: 43%;
111
+ top: 21%;
112
+
113
+ .cap-icon-v2-add {
114
+ display: block;
115
+ margin-left: $border-width-1;
116
+ margin-top: $CAP_SPACE_06;
117
+ }
118
+ }
119
+ }
120
+
121
+ .#{$radio}-icon-wrapper {
122
+ width: $CAP_SPACE_40;
123
+ height: $CAP_SPACE_40;
124
+ margin-right: $CAP_SPACE_08;
125
+ }
126
+ }
127
+
128
+ :global(.ant-card) {
129
+ div:global(.ant-card-body) {
130
+ display: flex;
131
+ align-items: center;
132
+ flex-wrap: wrap;
133
+ height: auto;
134
+ padding: $CAP_SPACE_08 $CAP_SPACE_08 $CAP_SPACE_04 $CAP_SPACE_12;
135
+
136
+ div.#{$radio}-content-container {
137
+ width: 14.5rem; // 203px
138
+ }
139
+
140
+ .card-content {
141
+ max-height: 3.214rem; // 45px
142
+ }
143
+
144
+ .card-header-row {
145
+ width: 14.857rem; // 208px
146
+ flex-flow: nowrap;
147
+ align-items: center;
148
+ }
149
+
150
+ .custom-template {
151
+ margin-left: $CAP_SPACE_08;
152
+
153
+ .title-desc-container {
154
+ width: 14rem; // 196px
155
+ }
156
+ }
157
+
158
+ .strategy-icon {
159
+ display: flex;
160
+ align-items: center;
161
+ justify-content: center;
162
+ height: $CAP_SPACE_40;
163
+ width: $CAP_SPACE_40;
164
+ margin-top: -$CAP_SPACE_08;
165
+ margin-left: -$CAP_SPACE_12;
166
+
167
+ svg {
168
+ width: $CAP_SPACE_40;
169
+ height: $CAP_SPACE_40;
170
+ }
171
+
172
+ .text-label {
173
+ font-weight: 500;
174
+ text-transform: uppercase;
175
+ background-color: unset;
176
+ border-radius: unset;
177
+ }
178
+
179
+ .selected {
180
+ color: $CAP_WHITE;
181
+ }
182
+ }
183
+ }
184
+ }
185
+ }
186
+ }
187
+
188
+ .strategy-template-icon-placeholder {
189
+ .#{$radio}-div-icon {
190
+ left: 35% !important;
191
+ top: 30% !important;
192
+ }
193
+ }
194
+
195
+ .templates-modal {
196
+ // OVERRIDE: Fixed modal dimensions and custom layout cannot be tokenized
197
+ // Modal width/height tokens don't support custom fixed dimensions
198
+ // Footer display: none requires CSS override
199
+ :global(.ant-modal-container) {
200
+ width: 52.643rem; // 737px
201
+ height: 19.571rem; // 274px
202
+ right: 50%;
203
+ padding: 0;
204
+
205
+ div.ant-modal-body {
206
+ padding: $CAP_SPACE_24 $CAP_SPACE_24 1.571rem $CAP_SPACE_24; // 24px 24px 22px 24px
207
+ }
208
+
209
+ .modal-image {
210
+ width: 17.357rem; // 243px
211
+ height: 15.714rem; // 220px
212
+ }
213
+
214
+ .modal-info-content {
215
+ width: 28.429rem; // 398px
216
+ margin-right: $CAP_SPACE_24;
217
+ }
218
+
219
+ .ant-modal-close-x {
220
+ margin-top: $CAP_SPACE_08;
221
+ }
222
+
223
+ .ant-modal-footer {
224
+ display: none;
225
+ }
226
+ }
227
+ }
228
+
229
+ .styled-cap-card {
230
+ // OVERRIDE: Custom card dimensions and layout are component-specific
231
+ // No tokens available for fixed width/height and custom card structure
232
+
233
+ width: 6.571rem; // 92px
234
+ height: 6.143rem; // 86px
235
+
236
+ div.ant-card-head {
237
+ max-height: 2.786rem; // 39px
238
+ min-height: 2.786rem; // 39px
239
+ text-align: center;
240
+ background-color: $CAP_PALE_GREY;
241
+
242
+ .ant-card-head-title {
243
+ padding: $CAP_SPACE_08 0;
244
+ }
245
+ }
246
+
247
+ div.ant-card-body {
248
+ height: 3.357rem; // 47px
249
+ margin-top: $CAP_SPACE_08;
250
+ padding: 0.643rem 0.714rem $CAP_SPACE_06 0.714rem !important; // 9px 10px 6px 10px
251
+ text-align: center;
252
+ }
253
+
254
+ .cap-icon {
255
+ svg {
256
+ height: $CAP_SPACE_24;
257
+ width: $CAP_SPACE_24;
258
+ color: $cap-color-28;
259
+ }
260
+ }
261
+ }
262
+
263
+ .premium-icon {
264
+ margin-left: $CAP_SPACE_04;
265
+ color: $CAP_YELLOW01;
266
+ }
267
+
268
+ // Component-specific margin utilities (replacing margin-t-4, margin-t-13, etc.)
269
+ .#{$component}-margin-t-4 {
270
+ margin-top: $CAP_SPACE_04;
271
+ }
272
+
273
+ .#{$component}-margin-t-13 {
274
+ margin-top: 0.928rem; // ~13px
275
+ }
276
+
277
+ .#{$component}-margin-l-8 {
278
+ margin-left: $CAP_SPACE_08;
279
+ }
280
+
281
+ .#{$component}-margin-b-8 {
282
+ margin-bottom: $CAP_SPACE_08;
283
+ }
284
+
285
+ .#{$component}-margin-t-16 {
286
+ margin-top: $CAP_SPACE_16;
287
+ }
288
+
289
+ .#{$component}-margin-b-16 {
290
+ margin-bottom: $CAP_SPACE_16;
291
+ }
@@ -0,0 +1,54 @@
1
+ import type { Category, ModalContent } from '../types';
2
+ export declare const mockCategories: Category[];
3
+ export declare const mockCategoriesWithLongLabel: Category[];
4
+ export declare const mockCategoriesEmptyPanes: Category[];
5
+ export declare const mockModalContent: ModalContent;
6
+ export declare const mockHandlers: {
7
+ onSelectCategory: jest.Mock<any, any, any>;
8
+ onSelectStrategyTemplate: jest.Mock<any, any, any>;
9
+ };
10
+ export declare const mockProps: {
11
+ basic: {
12
+ categories: Category[];
13
+ modalContent: ModalContent;
14
+ };
15
+ withBlankTemplate: {
16
+ isBlankTemplateRequired: boolean;
17
+ categories: Category[];
18
+ modalContent: ModalContent;
19
+ };
20
+ withSelectedCategory: {
21
+ selectedCategory: string;
22
+ categories: Category[];
23
+ modalContent: ModalContent;
24
+ };
25
+ withSelectedTemplate: {
26
+ selectedStrategyTemplate: string;
27
+ categories: Category[];
28
+ modalContent: ModalContent;
29
+ };
30
+ withCustomSizes: {
31
+ cardWidth: string;
32
+ cardHeight: string;
33
+ blankCardWidth: string;
34
+ blankCardHeight: string;
35
+ templatesContainerWidth: string;
36
+ templatesContainerMaxHeight: string;
37
+ categories: Category[];
38
+ modalContent: ModalContent;
39
+ };
40
+ withShowComingSoonFalse: {
41
+ showComingSoon: boolean;
42
+ categories: Category[];
43
+ modalContent: ModalContent;
44
+ };
45
+ emptyCategories: {
46
+ categories: any[];
47
+ modalContent: ModalContent;
48
+ };
49
+ emptyPanes: {
50
+ categories: Category[];
51
+ modalContent: ModalContent;
52
+ };
53
+ };
54
+ //# sourceMappingURL=CapStaticTemplates.mockData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CapStaticTemplates.mockData.d.ts","sourceRoot":"","sources":["../../../components/CapStaticTemplates/tests/CapStaticTemplates.mockData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEvD,eAAO,MAAM,cAAc,EAAE,QAAQ,EA4CpC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,EAgBjD,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,EAQ9C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,YAsB9B,CAAC;AAEF,eAAO,MAAM,YAAY;;;CAGxB,CAAC;AAOF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCrB,CAAC"}