@capillarytech/creatives-library 8.0.241 → 8.0.242-alpha.0

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 (119) hide show
  1. package/package.json +1 -1
  2. package/sagas/__tests__/assetPolling.test.js +607 -0
  3. package/sagas/assetPolling.js +156 -0
  4. package/services/api.js +16 -0
  5. package/services/tests/api.test.js +124 -0
  6. package/translations/en.json +1 -0
  7. package/utils/assetStatusConstants.js +12 -0
  8. package/utils/asyncAssetUpload.js +161 -0
  9. package/utils/tests/asyncAssetUpload.test.js +292 -0
  10. package/utils/transformerUtils.js +42 -0
  11. package/v2Components/CapImageUpload/constants.js +2 -0
  12. package/v2Components/CapImageUpload/index.js +54 -14
  13. package/v2Components/CapImageUpload/index.scss +4 -1
  14. package/v2Components/CapImageUpload/messages.js +4 -0
  15. package/v2Components/CapImageUrlUpload/constants.js +19 -0
  16. package/v2Components/CapImageUrlUpload/index.js +455 -0
  17. package/v2Components/CapImageUrlUpload/index.scss +35 -0
  18. package/v2Components/CapImageUrlUpload/messages.js +47 -0
  19. package/v2Containers/App/constants.js +5 -0
  20. package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +1 -0
  21. package/v2Containers/CreativesContainer/SlideBoxContent.js +57 -2
  22. package/v2Containers/CreativesContainer/SlideBoxHeader.js +1 -0
  23. package/v2Containers/CreativesContainer/constants.js +2 -0
  24. package/v2Containers/CreativesContainer/index.js +152 -0
  25. package/v2Containers/CreativesContainer/messages.js +4 -0
  26. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +3 -0
  27. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +2 -0
  28. package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +25 -0
  29. package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +18 -0
  30. package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +46 -0
  31. package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +4 -0
  32. package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +8 -0
  33. package/v2Containers/Templates/ChannelTypeIllustration.js +13 -1
  34. package/v2Containers/Templates/_templates.scss +203 -0
  35. package/v2Containers/Templates/actions.js +2 -1
  36. package/v2Containers/Templates/constants.js +1 -0
  37. package/v2Containers/Templates/index.js +273 -30
  38. package/v2Containers/Templates/messages.js +24 -0
  39. package/v2Containers/Templates/reducer.js +2 -0
  40. package/v2Containers/Templates/tests/index.test.js +10 -0
  41. package/v2Containers/TemplatesV2/index.js +3 -2
  42. package/v2Containers/TemplatesV2/messages.js +4 -0
  43. package/v2Containers/WebPush/Create/components/ButtonForm.js +175 -0
  44. package/v2Containers/WebPush/Create/components/ButtonItem.js +101 -0
  45. package/v2Containers/WebPush/Create/components/ButtonList.js +144 -0
  46. package/v2Containers/WebPush/Create/components/_buttons.scss +246 -0
  47. package/v2Containers/WebPush/Create/components/tests/ButtonForm.test.js +554 -0
  48. package/v2Containers/WebPush/Create/components/tests/ButtonItem.test.js +607 -0
  49. package/v2Containers/WebPush/Create/components/tests/ButtonList.test.js +633 -0
  50. package/v2Containers/WebPush/Create/components/tests/__snapshots__/ButtonForm.test.js.snap +666 -0
  51. package/v2Containers/WebPush/Create/components/tests/__snapshots__/ButtonItem.test.js.snap +74 -0
  52. package/v2Containers/WebPush/Create/components/tests/__snapshots__/ButtonList.test.js.snap +80 -0
  53. package/v2Containers/WebPush/Create/index.js +1755 -0
  54. package/v2Containers/WebPush/Create/index.scss +123 -0
  55. package/v2Containers/WebPush/Create/messages.js +199 -0
  56. package/v2Containers/WebPush/Create/preview/DevicePreviewContent.js +241 -0
  57. package/v2Containers/WebPush/Create/preview/NotificationContainer.js +290 -0
  58. package/v2Containers/WebPush/Create/preview/PreviewContent.js +81 -0
  59. package/v2Containers/WebPush/Create/preview/PreviewControls.js +240 -0
  60. package/v2Containers/WebPush/Create/preview/PreviewDisclaimer.js +23 -0
  61. package/v2Containers/WebPush/Create/preview/WebPushPreview.js +144 -0
  62. package/v2Containers/WebPush/Create/preview/assets/Light.svg +53 -0
  63. package/v2Containers/WebPush/Create/preview/assets/Top.svg +5 -0
  64. package/v2Containers/WebPush/Create/preview/assets/chrome-icon.png +0 -0
  65. package/v2Containers/WebPush/Create/preview/assets/edge-icon.png +0 -0
  66. package/v2Containers/WebPush/Create/preview/assets/firefox-icon.svg +106 -0
  67. package/v2Containers/WebPush/Create/preview/assets/iOS.svg +26 -0
  68. package/v2Containers/WebPush/Create/preview/assets/opera-icon.svg +18 -0
  69. package/v2Containers/WebPush/Create/preview/assets/safari-icon.svg +29 -0
  70. package/v2Containers/WebPush/Create/preview/components/AndroidMobileChromeHeader.js +44 -0
  71. package/v2Containers/WebPush/Create/preview/components/AndroidMobileExpanded.js +110 -0
  72. package/v2Containers/WebPush/Create/preview/components/IOSHeader.js +45 -0
  73. package/v2Containers/WebPush/Create/preview/components/NotificationExpandedContent.js +72 -0
  74. package/v2Containers/WebPush/Create/preview/components/NotificationHeader.js +55 -0
  75. package/v2Containers/WebPush/Create/preview/components/WindowsChromeExpanded.js +70 -0
  76. package/v2Containers/WebPush/Create/preview/components/tests/AndroidMobileExpanded.test.js +512 -0
  77. package/v2Containers/WebPush/Create/preview/components/tests/__snapshots__/AndroidMobileExpanded.test.js.snap +77 -0
  78. package/v2Containers/WebPush/Create/preview/config/notificationMappings.js +527 -0
  79. package/v2Containers/WebPush/Create/preview/constants.js +162 -0
  80. package/v2Containers/WebPush/Create/preview/notification-container.scss +104 -0
  81. package/v2Containers/WebPush/Create/preview/preview.scss +409 -0
  82. package/v2Containers/WebPush/Create/preview/styles/_android-mobile-chrome.scss +300 -0
  83. package/v2Containers/WebPush/Create/preview/styles/_android-mobile-edge.scss +12 -0
  84. package/v2Containers/WebPush/Create/preview/styles/_android-mobile-firefox.scss +12 -0
  85. package/v2Containers/WebPush/Create/preview/styles/_android-mobile-opera.scss +12 -0
  86. package/v2Containers/WebPush/Create/preview/styles/_android-tablet-chrome.scss +303 -0
  87. package/v2Containers/WebPush/Create/preview/styles/_android-tablet-edge.scss +11 -0
  88. package/v2Containers/WebPush/Create/preview/styles/_android-tablet-firefox.scss +11 -0
  89. package/v2Containers/WebPush/Create/preview/styles/_android-tablet-opera.scss +11 -0
  90. package/v2Containers/WebPush/Create/preview/styles/_base.scss +188 -0
  91. package/v2Containers/WebPush/Create/preview/styles/_ios.scss +106 -0
  92. package/v2Containers/WebPush/Create/preview/styles/_ipados.scss +107 -0
  93. package/v2Containers/WebPush/Create/preview/styles/_macos-chrome.scss +75 -0
  94. package/v2Containers/WebPush/Create/preview/styles/_windows-chrome.scss +174 -0
  95. package/v2Containers/WebPush/Create/preview/tests/DevicePreviewContent.test.js +909 -0
  96. package/v2Containers/WebPush/Create/preview/tests/NotificationContainer.test.js +1077 -0
  97. package/v2Containers/WebPush/Create/preview/tests/PreviewControls.test.js +723 -0
  98. package/v2Containers/WebPush/Create/preview/tests/WebPushPreview.test.js +943 -0
  99. package/v2Containers/WebPush/Create/preview/tests/__snapshots__/DevicePreviewContent.test.js.snap +128 -0
  100. package/v2Containers/WebPush/Create/preview/tests/__snapshots__/NotificationContainer.test.js.snap +121 -0
  101. package/v2Containers/WebPush/Create/preview/tests/__snapshots__/PreviewControls.test.js.snap +144 -0
  102. package/v2Containers/WebPush/Create/preview/tests/__snapshots__/WebPushPreview.test.js.snap +127 -0
  103. package/v2Containers/WebPush/Create/utils/urlValidation.js +116 -0
  104. package/v2Containers/WebPush/Create/utils/urlValidation.test.js +449 -0
  105. package/v2Containers/WebPush/actions.js +60 -0
  106. package/v2Containers/WebPush/constants.js +108 -0
  107. package/v2Containers/WebPush/index.js +2 -0
  108. package/v2Containers/WebPush/reducer.js +104 -0
  109. package/v2Containers/WebPush/sagas.js +119 -0
  110. package/v2Containers/WebPush/selectors.js +65 -0
  111. package/v2Containers/WebPush/tests/reducer.test.js +863 -0
  112. package/v2Containers/WebPush/tests/sagas.test.js +566 -0
  113. package/v2Containers/WebPush/tests/selectors.test.js +960 -0
  114. package/v2Containers/Whatsapp/constants.js +9 -0
  115. package/v2Containers/Whatsapp/reducer.js +34 -5
  116. package/v2Containers/Whatsapp/sagas.js +61 -10
  117. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +132 -0
  118. package/v2Containers/Whatsapp/tests/reducer.test.js +188 -0
  119. package/v2Containers/Whatsapp/tests/saga.test.js +420 -7
@@ -0,0 +1,188 @@
1
+ @import '~@capillarytech/cap-ui-library/styles/_variables';
2
+
3
+ /**
4
+ * Base Notification Container Styles
5
+ *
6
+ * Common styles shared across all platform + browser combinations.
7
+ * These styles define the base structure and common elements.
8
+ */
9
+
10
+ // Base notification container styles
11
+ .notification-container {
12
+ box-sizing: border-box;
13
+ display: flex;
14
+ flex-direction: column;
15
+
16
+ // Common notification header structure
17
+ .notification-header {
18
+ display: flex;
19
+ align-items: flex-start;
20
+ gap: 0.75rem;
21
+ width: 100%;
22
+
23
+ .notification-icon-container {
24
+ flex-shrink: 0;
25
+ box-sizing: border-box;
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+
30
+ .notification-icon {
31
+ width: 100%;
32
+ height: 100%;
33
+ object-fit: contain;
34
+ }
35
+ }
36
+
37
+ .notification-content {
38
+ flex: 1;
39
+ width: 0; // to prevent the children from increasing the parent's width
40
+ min-width: 0;
41
+ display: flex;
42
+ flex-direction: column;
43
+ gap: 0.125rem;
44
+
45
+ .notification-title {
46
+ margin: 0;
47
+ overflow: hidden;
48
+ text-overflow: ellipsis;
49
+ white-space: nowrap;
50
+ }
51
+
52
+ .notification-url {
53
+ margin: 0;
54
+ overflow: hidden;
55
+ text-overflow: ellipsis;
56
+ white-space: nowrap;
57
+ }
58
+
59
+ .notification-body {
60
+ margin: 0;
61
+ word-break: break-word;
62
+ }
63
+ }
64
+
65
+ .notification-brand-icon-container {
66
+ flex-shrink: 0;
67
+ box-sizing: border-box;
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ width: 2.1875rem;
72
+ height: 2.1875rem;
73
+
74
+ .notification-brand-icon {
75
+ width: 100%;
76
+ height: 100%;
77
+ object-fit: cover;
78
+ }
79
+ }
80
+
81
+ .notification-header-actions {
82
+ flex-shrink: 0;
83
+ display: flex;
84
+ align-items: center;
85
+ gap: 0.5rem;
86
+ margin-left: 0.5rem;
87
+
88
+ .notification-action-menu {
89
+ font-size: $FONT_SIZE_M;
90
+ color: $FONT_COLOR_01;
91
+ line-height: 1;
92
+ cursor: default;
93
+ user-select: none;
94
+ }
95
+
96
+ .notification-action-arrow {
97
+ font-size: $FONT_SIZE_M;
98
+ color: $FONT_COLOR_01;
99
+ line-height: 1;
100
+ cursor: default;
101
+ user-select: none;
102
+ transform: rotate(0deg) translateY(-0.25rem);
103
+ }
104
+ }
105
+ }
106
+
107
+ // Expanded state content
108
+ .notification-expanded-content {
109
+ width: 100%;
110
+ margin-top: 0.75rem;
111
+ display: flex;
112
+ flex-direction: column;
113
+ gap: 0.75rem;
114
+
115
+ .notification-media {
116
+ width: 100%;
117
+ border-radius: 0.5rem;
118
+ overflow: hidden;
119
+ display: flex;
120
+ align-items: center;
121
+ justify-content: center;
122
+
123
+ .notification-media-image {
124
+ width: 100%;
125
+ max-width: 100%;
126
+ height: 10.5rem; // Fixed height limit
127
+ object-fit: cover; // Ensures image covers the area without distortion
128
+ object-position: center; // Centers the image
129
+ display: block;
130
+ box-sizing: border-box;
131
+ }
132
+ }
133
+
134
+ .notification-actions {
135
+ width: 100%;
136
+ display: flex;
137
+ flex-direction: column;
138
+
139
+ .notification-action-item {
140
+ width: 100%;
141
+ display: flex;
142
+ flex-direction: column;
143
+
144
+ .notification-action-divider {
145
+ width: 100%;
146
+ height: 0.0625rem;
147
+ background-color: $CAP_G08;
148
+ }
149
+
150
+ .notification-action-button {
151
+ width: 100%;
152
+ display: flex;
153
+ align-items: center;
154
+ justify-content: center;
155
+ gap: 0.5rem;
156
+ padding: 0.5rem 0.75rem;
157
+ background-color: transparent;
158
+ border: none;
159
+ border-radius: 0.5rem;
160
+ cursor: pointer;
161
+ text-align: center;
162
+ font-size: $FONT_SIZE_S;
163
+ font-weight: 500;
164
+ color: $FONT_COLOR_01;
165
+ transition: background-color 0.2s ease;
166
+
167
+ &:hover {
168
+ background-color: $CAP_G09;
169
+ }
170
+
171
+ &:active {
172
+ background-color: $CAP_G08;
173
+ }
174
+
175
+ .notification-action-icon {
176
+ font-size: $FONT_SIZE_M;
177
+ flex-shrink: 0;
178
+ }
179
+
180
+ .notification-action-label {
181
+ flex-shrink: 0;
182
+ }
183
+ }
184
+ }
185
+ }
186
+ }
187
+ }
188
+
@@ -0,0 +1,106 @@
1
+ @import '~@capillarytech/cap-ui-library/styles/_variables';
2
+
3
+ /**
4
+ * iOS Notification Styles
5
+ * Applies to all browsers on iOS: Chrome, Safari, Firefox, Edge, Opera
6
+ *
7
+ * iOS notifications are simple and clean:
8
+ * - Browser icon on the left
9
+ * - Title and "now" timestamp on the same row
10
+ * - Body text below
11
+ * - NO brand icon
12
+ * - NO URL display
13
+ * - NO expanded state
14
+ */
15
+
16
+ .notification-container.ios-chrome,
17
+ .notification-container.ios-safari,
18
+ .notification-container.ios-firefox,
19
+ .notification-container.ios-edge,
20
+ .notification-container.ios-opera {
21
+ background-color: $CAP_WHITE;
22
+ border: 1px solid $CAP_G08;
23
+ border-radius: 0.5rem;
24
+ padding: 0.75rem;
25
+ box-sizing: border-box;
26
+
27
+ &.collapsed {
28
+ width: 20.375rem;
29
+ height: 4.875rem;
30
+
31
+ .notification-header {
32
+ display: flex;
33
+ gap: 0.75rem;
34
+ height: 100%;
35
+ }
36
+
37
+ .notification-header.ios-header {
38
+ align-items: center;
39
+ }
40
+
41
+ .notification-icon-container {
42
+ width: 1.75rem;
43
+ height: 1.75rem;
44
+ padding: 0.125rem;
45
+ border-radius: 50%;
46
+ flex-shrink: 0;
47
+ }
48
+
49
+ .notification-icon {
50
+ width: 100%;
51
+ height: 100%;
52
+ object-fit: contain;
53
+ }
54
+
55
+ .ios-content {
56
+ display: flex;
57
+ flex-direction: column;
58
+ gap: 0.25rem;
59
+ min-width: 0;
60
+ flex: 1;
61
+
62
+ .notification-title-row {
63
+ display: flex;
64
+ align-items: center;
65
+ justify-content: space-between;
66
+ gap: 0.5rem;
67
+ min-width: 0;
68
+
69
+ .notification-title {
70
+ font-weight: 600;
71
+ font-size: $FONT_SIZE_S;
72
+ color: $FONT_COLOR_01;
73
+ margin: 0;
74
+ overflow: hidden;
75
+ text-overflow: ellipsis;
76
+ white-space: nowrap;
77
+ flex: 1;
78
+ min-width: 0;
79
+ }
80
+
81
+ .notification-time {
82
+ font-size: $FONT_SIZE_S;
83
+ color: $CAP_G05;
84
+ flex-shrink: 0;
85
+ }
86
+ }
87
+
88
+ .notification-body {
89
+ font-size: $FONT_SIZE_S;
90
+ color: $FONT_COLOR_01;
91
+ margin: 0;
92
+ line-height: 1.2;
93
+ overflow: hidden;
94
+ text-overflow: ellipsis;
95
+ display: -webkit-box;
96
+ -webkit-box-orient: vertical;
97
+ -webkit-line-clamp: 2;
98
+ }
99
+
100
+ .notification-url {
101
+ display: none;
102
+ }
103
+ }
104
+ }
105
+ }
106
+
@@ -0,0 +1,107 @@
1
+ @import '~@capillarytech/cap-ui-library/styles/_variables';
2
+
3
+ /**
4
+ * iPadOS Notification Styles
5
+ * Applies to all browsers on iPadOS: Chrome, Safari, Firefox, Edge, Opera
6
+ *
7
+ * iPadOS notifications follow the same design as iOS but with wider dimensions:
8
+ * - Browser icon on the left
9
+ * - Title and "now" timestamp on the same row
10
+ * - Body text below
11
+ * - NO brand icon
12
+ * - NO URL display
13
+ * - NO expanded state
14
+ * - WIDER width than iOS (tablet format)
15
+ */
16
+
17
+ .notification-container.ipados-chrome,
18
+ .notification-container.ipados-safari,
19
+ .notification-container.ipados-firefox,
20
+ .notification-container.ipados-edge,
21
+ .notification-container.ipados-opera {
22
+ background-color: $CAP_WHITE;
23
+ border: 1px solid $CAP_G08;
24
+ border-radius: 0.5rem;
25
+ padding: 0.75rem;
26
+ box-sizing: border-box;
27
+
28
+ &.collapsed {
29
+ width: 30rem;
30
+ height: 4.875rem;
31
+
32
+ .notification-header {
33
+ display: flex;
34
+ gap: 0.75rem;
35
+ height: 100%;
36
+ }
37
+
38
+ .notification-header.ios-header {
39
+ align-items: center;
40
+ }
41
+
42
+ .notification-icon-container {
43
+ width: 1.75rem;
44
+ height: 1.75rem;
45
+ padding: 0.125rem;
46
+ border-radius: 50%;
47
+ flex-shrink: 0;
48
+ }
49
+
50
+ .notification-icon {
51
+ width: 100%;
52
+ height: 100%;
53
+ object-fit: contain;
54
+ }
55
+
56
+ .ios-content {
57
+ display: flex;
58
+ flex-direction: column;
59
+ gap: 0.25rem;
60
+ min-width: 0;
61
+ flex: 1;
62
+
63
+ .notification-title-row {
64
+ display: flex;
65
+ align-items: center;
66
+ justify-content: space-between;
67
+ gap: 0.5rem;
68
+ min-width: 0;
69
+
70
+ .notification-title {
71
+ font-weight: 600;
72
+ font-size: $FONT_SIZE_S;
73
+ color: $FONT_COLOR_01;
74
+ margin: 0;
75
+ overflow: hidden;
76
+ text-overflow: ellipsis;
77
+ white-space: nowrap;
78
+ flex: 1;
79
+ min-width: 0;
80
+ }
81
+
82
+ .notification-time {
83
+ font-size: $FONT_SIZE_S;
84
+ color: $CAP_G05;
85
+ flex-shrink: 0;
86
+ }
87
+ }
88
+
89
+ .notification-body {
90
+ font-size: $FONT_SIZE_S;
91
+ color: $FONT_COLOR_01;
92
+ margin: 0;
93
+ line-height: 1.2;
94
+ overflow: hidden;
95
+ text-overflow: ellipsis;
96
+ display: -webkit-box;
97
+ -webkit-box-orient: vertical;
98
+ -webkit-line-clamp: 2;
99
+ }
100
+
101
+ .notification-url {
102
+ display: none;
103
+ }
104
+ }
105
+ }
106
+ }
107
+
@@ -0,0 +1,75 @@
1
+ @import '~@capillarytech/cap-ui-library/styles/_variables';
2
+
3
+ /**
4
+ * macOS + Chrome Notification Styles
5
+ */
6
+
7
+ .notification-container.macos-chrome {
8
+ width: 100%;
9
+ max-width: 21.75rem;
10
+ background-color: $CAP_WHITE;
11
+ border: 1px solid $CAP_G07;
12
+ border-radius: 0.75rem;
13
+ padding: 0.75rem;
14
+
15
+ .notification-header {
16
+ .notification-icon-container {
17
+ width: 2.5rem;
18
+ height: 2.5rem;
19
+ background-color: $CAP_G09;
20
+ border-radius: 0.75rem;
21
+ padding: 0.5rem;
22
+ }
23
+
24
+ .notification-content {
25
+ .notification-title {
26
+ font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
27
+ font-weight: 590;
28
+ font-size: $FONT_SIZE_S;
29
+ line-height: 1rem;
30
+ min-height: 1rem;
31
+ color: $FONT_COLOR_01;
32
+ letter-spacing: 0;
33
+ }
34
+
35
+ .notification-url {
36
+ font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
37
+ font-weight: 510;
38
+ font-size: $FONT_SIZE_S;
39
+ line-height: 1rem;
40
+ min-height: 1rem;
41
+ color: $FONT_COLOR_01;
42
+ letter-spacing: 0;
43
+ }
44
+
45
+ .notification-body {
46
+ font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
47
+ font-weight: 400;
48
+ font-size: $FONT_SIZE_S;
49
+ line-height: 1rem;
50
+ min-height: 1rem;
51
+ color: $FONT_COLOR_01;
52
+ letter-spacing: 0;
53
+
54
+ // Limit notification body to 3 lines as per macOS notification behavior
55
+ display: -webkit-box;
56
+ -webkit-box-orient: vertical;
57
+ -webkit-line-clamp: 3;
58
+ overflow: hidden;
59
+ text-overflow: ellipsis;
60
+ }
61
+ }
62
+ }
63
+
64
+ // Collapsed state - ensure header aligns center vertically
65
+ &.collapsed .notification-header {
66
+ align-items: center;
67
+
68
+ .notification-brand-icon-container {
69
+ .notification-brand-icon {
70
+ border-radius: 0.3125rem;
71
+ }
72
+ }
73
+ }
74
+ }
75
+
@@ -0,0 +1,174 @@
1
+ @import '~@capillarytech/cap-ui-library/styles/_variables';
2
+
3
+ /**
4
+ * Windows + Chrome Notification Styles
5
+ * Also applies to Windows + Firefox/Edge/Opera (they extend this)
6
+ */
7
+
8
+ .notification-container.windows-chrome {
9
+ // Inherit shared styles from macOS Chrome
10
+ @extend .notification-container.macos-chrome;
11
+
12
+ // Collapsed state - ensure header aligns center vertically and add brand icon border-radius
13
+ &.collapsed .notification-header {
14
+ align-items: center;
15
+
16
+ .notification-brand-icon-container {
17
+ .notification-brand-icon {
18
+ border-radius: 0.3125rem;
19
+ }
20
+ }
21
+ }
22
+
23
+ &.expanded {
24
+ width: 100%;
25
+ max-width: 22rem;
26
+ background: $CAP_G09;
27
+ border: 1px solid $CAP_G07;
28
+ border-radius: 0.25rem;
29
+ padding: 0;
30
+ box-sizing: border-box;
31
+ overflow: hidden;
32
+
33
+ .windows-chrome-expanded-wrapper {
34
+ display: flex;
35
+ flex-direction: column;
36
+ width: 100%;
37
+ height: 100%;
38
+ gap: 0.625rem;
39
+ }
40
+
41
+ .windows-chrome-banner {
42
+ width: 100%;
43
+ line-height: 0;
44
+
45
+ .windows-chrome-banner-image {
46
+ width: 100%;
47
+ height: 9.4375rem;
48
+ object-fit: cover;
49
+ display: block;
50
+ }
51
+ }
52
+
53
+ .windows-chrome-body {
54
+ display: flex;
55
+ flex-direction: column;
56
+ gap: 0.75rem;
57
+ padding: 0 0.75rem 0.75rem 0.75rem;
58
+ width: 100%;
59
+ box-sizing: border-box;
60
+ }
61
+
62
+ .windows-chrome-header-row {
63
+ display: flex;
64
+ align-items: center;
65
+ gap: 0.5rem;
66
+ width: 100%;
67
+ }
68
+
69
+ .windows-chrome-browser-icon {
70
+ width: 2rem;
71
+ height: 2rem;
72
+ background: $CAP_G09;
73
+ border-radius: 0.375rem;
74
+ padding: 0.375rem;
75
+ }
76
+
77
+ .windows-chrome-browser-title {
78
+ flex: 1;
79
+ font-weight: 600;
80
+ font-size: $FONT_SIZE_S;
81
+ color: $FONT_COLOR_01;
82
+ margin: 0;
83
+ font-family: 'Roboto', 'Segoe UI', sans-serif;
84
+ }
85
+
86
+ .windows-chrome-header-actions {
87
+ display: flex;
88
+ align-items: center;
89
+ gap: 0.5rem;
90
+
91
+ .windows-chrome-menu-text {
92
+ font-weight: 500;
93
+ font-size: $FONT_SIZE_M;
94
+ margin-bottom: 0.3125rem;
95
+ color: $FONT_COLOR_01;
96
+ line-height: 1;
97
+ user-select: none;
98
+ font-family: 'Roboto', 'Segoe UI', sans-serif;
99
+ }
100
+
101
+ .windows-chrome-close-text {
102
+ font-weight: 500;
103
+ font-size: $FONT_SIZE_M;
104
+ color: $FONT_COLOR_01;
105
+ line-height: 1;
106
+ user-select: none;
107
+ font-family: 'Roboto', 'Segoe UI', sans-serif;
108
+ }
109
+ }
110
+
111
+ .windows-chrome-content-row {
112
+ display: flex;
113
+ align-items: flex-start;
114
+ gap: 0.75rem;
115
+ width: 100%;
116
+ }
117
+
118
+ .windows-chrome-brand-icon {
119
+ width: 2.625rem;
120
+ height: 2.625rem;
121
+ padding: 0;
122
+ border-radius: 0.25rem;
123
+ border: 1px solid $CAP_G07;
124
+ background: $CAP_WHITE;
125
+ flex-shrink: 0;
126
+
127
+ .notification-brand-icon {
128
+ width: 100%;
129
+ height: 100%;
130
+ object-fit: cover;
131
+ }
132
+ }
133
+
134
+ .windows-chrome-text-block {
135
+ display: flex;
136
+ flex-direction: column;
137
+ gap: 0.25rem;
138
+ min-width: 0;
139
+ width: 100%;
140
+ font-family: 'Roboto', 'Segoe UI', sans-serif;
141
+ }
142
+
143
+ .windows-chrome-title {
144
+ font-weight: 600;
145
+ font-size: $FONT_SIZE_S;
146
+ color: $FONT_COLOR_01;
147
+ margin: 0;
148
+ line-height: 0.875rem;
149
+ word-break: break-word;
150
+ font-family: 'Roboto', 'Segoe UI', sans-serif;
151
+ }
152
+
153
+ .windows-chrome-url {
154
+ font-weight: 500;
155
+ font-size: $FONT_SIZE_VS;
156
+ color: $FONT_COLOR_01;
157
+ margin: 0;
158
+ line-height: 0.75rem;
159
+ word-break: break-word;
160
+ font-family: 'Roboto', 'Segoe UI', sans-serif;
161
+ }
162
+
163
+ .windows-chrome-body-text {
164
+ font-weight: 400;
165
+ font-size: $FONT_SIZE_VS;
166
+ color: $FONT_COLOR_01;
167
+ margin: 0;
168
+ line-height: 0.75rem;
169
+ word-break: break-word;
170
+ font-family: 'Roboto', 'Segoe UI', sans-serif;
171
+ }
172
+ }
173
+ }
174
+