@usecapsule/core-components 3.3.0-dev.0 → 3.3.0-dev.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. package/css/capsule-core.css +10 -25
  2. package/css/capsule-core.css.map +1 -1
  3. package/dist/capsule/capsule.esm.js +1 -1
  4. package/dist/capsule/capsule.esm.js.map +1 -1
  5. package/dist/capsule/index.esm.js +1 -1
  6. package/dist/capsule/index.esm.js.map +1 -1
  7. package/dist/capsule/p-0462f723.js +2 -0
  8. package/dist/capsule/p-0462f723.js.map +1 -0
  9. package/dist/capsule/p-05cb769b.entry.js +10 -0
  10. package/dist/capsule/{p-0e558c7f.entry.js.map → p-05cb769b.entry.js.map} +1 -1
  11. package/dist/capsule/p-0eea90f8.entry.js +2 -0
  12. package/dist/capsule/p-4203888d.entry.js +29 -0
  13. package/dist/capsule/p-4203888d.entry.js.map +1 -0
  14. package/dist/capsule/{p-1bd11889.entry.js → p-69c3c53b.entry.js} +2 -2
  15. package/dist/capsule/{p-1bd11889.entry.js.map → p-69c3c53b.entry.js.map} +1 -1
  16. package/dist/capsule/{p-5d62e610.entry.js → p-742bda0b.entry.js} +2 -2
  17. package/dist/capsule/p-c1aa1ffb.entry.js +2 -0
  18. package/dist/capsule/{p-5965b15e.entry.js.map → p-c1aa1ffb.entry.js.map} +1 -1
  19. package/dist/capsule/p-d351f076.entry.js +2 -0
  20. package/dist/capsule/p-d351f076.entry.js.map +1 -0
  21. package/dist/cjs/_commonjsHelpers-b3309d7b.js +12 -0
  22. package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +1 -0
  23. package/dist/cjs/capsule.cjs.js +1 -1
  24. package/dist/cjs/{cpsl-alert_34.cjs.entry.js → cpsl-alert_33.cjs.entry.js} +13368 -16935
  25. package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +1 -0
  26. package/dist/cjs/cpsl-animation.cjs.entry.js +2 -3
  27. package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -1
  28. package/dist/cjs/cpsl-hero.cjs.entry.js +6 -9
  29. package/dist/cjs/cpsl-hero.cjs.entry.js.map +1 -1
  30. package/dist/cjs/cpsl-identicon.cjs.entry.js +1 -1
  31. package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
  32. package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -1
  33. package/dist/cjs/cpsl-modal-v2.cjs.entry.js +1 -1
  34. package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -1
  35. package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
  36. package/dist/cjs/index-65f57499.js +2 -2
  37. package/dist/cjs/index.cjs.js +12 -35
  38. package/dist/cjs/index.cjs.js.map +1 -1
  39. package/dist/cjs/loader.cjs.js +1 -1
  40. package/dist/collection/assets/icons/index.js +1 -21
  41. package/dist/collection/assets/icons/index.js.map +1 -1
  42. package/dist/collection/assets/icons/refresh.svg +3 -3
  43. package/dist/collection/collection-manifest.json +1 -2
  44. package/dist/collection/components/cpsl-alert/cpsl-alert.js +2 -2
  45. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
  46. package/dist/collection/components/cpsl-button/cpsl-button.css +2 -89
  47. package/dist/collection/components/cpsl-button/cpsl-button.js +5 -6
  48. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
  49. package/dist/collection/components/cpsl-button/cpsl-button.stories.js.map +1 -1
  50. package/dist/collection/components/cpsl-card/cpsl-card.css +2 -5
  51. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +0 -3
  52. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +7 -11
  53. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
  54. package/dist/collection/components/cpsl-divider/cpsl-divider.css +1 -2
  55. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +1 -1
  56. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
  57. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +2 -2
  58. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
  59. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +6 -1
  60. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
  61. package/dist/collection/components/cpsl-hero/cpsl-hero.css +71 -136
  62. package/dist/collection/components/cpsl-hero/cpsl-hero.js +9 -63
  63. package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
  64. package/dist/collection/components/cpsl-icon/cpsl-icon.css +0 -8
  65. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  66. package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
  67. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +2 -1
  68. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  69. package/dist/collection/components/cpsl-input/cpsl-input.css +2 -21
  70. package/dist/collection/components/cpsl-input/cpsl-input.js +28 -100
  71. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  72. package/dist/collection/components/{cpsl-auth-modal/cpsl-auth-modal.css → cpsl-modal/cpsl-modal.css} +58 -33
  73. package/dist/collection/components/{cpsl-auth-modal/cpsl-auth-modal.js → cpsl-modal/cpsl-modal.js} +129 -11
  74. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -0
  75. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +1 -1
  76. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -1
  77. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +1 -1
  78. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
  79. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
  80. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  81. package/dist/collection/components/cpsl-popover/cpsl-popover.css +0 -2
  82. package/dist/collection/components/cpsl-popover/cpsl-popover.js +11 -9
  83. package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
  84. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +3 -12
  85. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +23 -28
  86. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -1
  87. package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
  88. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  89. package/dist/collection/components/cpsl-select/cpsl-select.css +0 -17
  90. package/dist/collection/components/cpsl-select/cpsl-select.js +5 -95
  91. package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
  92. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
  93. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -1
  94. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  95. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -1
  96. package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +8 -30
  97. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +7 -5
  98. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -1
  99. package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
  100. package/dist/collection/components/cpsl-tab/cpsl-tab.css +1 -24
  101. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  102. package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -1
  103. package/dist/collection/components/cpsl-table/cpsl-table.js +9 -1
  104. package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
  105. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +4 -1
  106. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +4 -1
  107. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
  108. package/dist/collection/components/cpsl-text/cpsl-text.css +0 -19
  109. package/dist/collection/components/cpsl-text/cpsl-text.js +4 -5
  110. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  111. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +1 -3
  112. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  113. package/dist/collection/interface.js.map +1 -1
  114. package/dist/collection/utils/theme/generateBorderRadii.js +3 -4
  115. package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
  116. package/dist/collection/utils/theme/generatePalette.js +6 -22
  117. package/dist/collection/utils/theme/generatePalette.js.map +1 -1
  118. package/dist/collection/utils/theme/generateTheme.js +3 -9
  119. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  120. package/dist/collection/utils/theme/utils.js.map +1 -1
  121. package/dist/esm/_commonjsHelpers-1789f0cf.js +9 -0
  122. package/dist/esm/_commonjsHelpers-1789f0cf.js.map +1 -0
  123. package/dist/esm/capsule.js +1 -1
  124. package/dist/esm/{cpsl-alert_34.entry.js → cpsl-alert_33.entry.js} +13370 -16936
  125. package/dist/esm/cpsl-alert_33.entry.js.map +1 -0
  126. package/dist/esm/cpsl-animation.entry.js +1 -2
  127. package/dist/esm/cpsl-animation.entry.js.map +1 -1
  128. package/dist/esm/cpsl-hero.entry.js +7 -10
  129. package/dist/esm/cpsl-hero.entry.js.map +1 -1
  130. package/dist/esm/cpsl-identicon.entry.js +1 -1
  131. package/dist/esm/cpsl-info-box.entry.js +2 -2
  132. package/dist/esm/cpsl-info-box.entry.js.map +1 -1
  133. package/dist/esm/cpsl-modal-v2.entry.js +1 -1
  134. package/dist/esm/cpsl-modal-v2.entry.js.map +1 -1
  135. package/dist/esm/cpsl-row.entry.js +1 -1
  136. package/dist/esm/index-91db3414.js +2 -2
  137. package/dist/esm/index.js +12 -35
  138. package/dist/esm/index.js.map +1 -1
  139. package/dist/esm/loader.js +1 -1
  140. package/dist/types/assets/icons/index.d.ts +0 -20
  141. package/dist/types/components/cpsl-button/cpsl-button.d.ts +2 -2
  142. package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +3 -18
  143. package/dist/types/components/cpsl-input/cpsl-input.d.ts +3 -13
  144. package/dist/types/components/{cpsl-auth-modal/cpsl-auth-modal.d.ts → cpsl-modal/cpsl-modal.d.ts} +23 -3
  145. package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +2 -2
  146. package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +0 -1
  147. package/dist/types/components/cpsl-select/cpsl-select.d.ts +1 -22
  148. package/dist/types/components/cpsl-text/cpsl-text.d.ts +1 -1
  149. package/dist/types/components.d.ts +146 -222
  150. package/dist/types/interface.d.ts +0 -13
  151. package/dist/types/utils/theme/generateBorderRadii.d.ts +1 -1
  152. package/dist/types/utils/theme/generatePalette.d.ts +2 -4
  153. package/dist/types/utils/theme/generateTheme.d.ts +1 -1
  154. package/package.json +2 -3
  155. package/dist/capsule/p-0e558c7f.entry.js +0 -10
  156. package/dist/capsule/p-32cdf894.entry.js +0 -2
  157. package/dist/capsule/p-32cdf894.entry.js.map +0 -1
  158. package/dist/capsule/p-3b042fd1.entry.js +0 -2
  159. package/dist/capsule/p-5965b15e.entry.js +0 -2
  160. package/dist/capsule/p-60508b1e.entry.js +0 -20
  161. package/dist/capsule/p-60508b1e.entry.js.map +0 -1
  162. package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +0 -1
  163. package/dist/collection/assets/icons/arrow-circle-broken-down-left.svg +0 -3
  164. package/dist/collection/assets/icons/bank.svg +0 -3
  165. package/dist/collection/assets/icons/credit-card.svg +0 -3
  166. package/dist/collection/assets/icons/dot.svg +0 -3
  167. package/dist/collection/assets/icons/download.svg +0 -3
  168. package/dist/collection/assets/icons/globe.svg +0 -3
  169. package/dist/collection/assets/icons/hero-alert-circle.svg +0 -3
  170. package/dist/collection/assets/icons/hero-checkmark-capsule.svg +0 -11
  171. package/dist/collection/assets/icons/hero-checkmark.svg +0 -3
  172. package/dist/collection/assets/icons/hero-external-connection.svg +0 -71
  173. package/dist/collection/assets/icons/link-external.svg +0 -3
  174. package/dist/collection/assets/icons/log-out.svg +0 -3
  175. package/dist/collection/assets/icons/moonpay-brand.svg +0 -10
  176. package/dist/collection/assets/icons/puzzle-piece.svg +0 -3
  177. package/dist/collection/assets/icons/qr-code-02.svg +0 -3
  178. package/dist/collection/assets/icons/qr-code.svg +0 -3
  179. package/dist/collection/assets/icons/search.svg +0 -3
  180. package/dist/collection/assets/icons/send.svg +0 -3
  181. package/dist/collection/assets/icons/shield.svg +0 -3
  182. package/dist/collection/assets/icons/stripe-brand.svg +0 -3
  183. package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.js.map +0 -1
  184. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.css +0 -97
  185. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js +0 -121
  186. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js.map +0 -1
  187. package/dist/esm/cpsl-alert_34.entry.js.map +0 -1
  188. package/dist/types/components/cpsl-icon-group/cpsl-icon-group.d.ts +0 -20
  189. /package/dist/capsule/{p-3b042fd1.entry.js.map → p-0eea90f8.entry.js.map} +0 -0
  190. /package/dist/capsule/{p-5d62e610.entry.js.map → p-742bda0b.entry.js.map} +0 -0
@@ -54,14 +54,6 @@
54
54
  * }
55
55
  */
56
56
  :host {
57
- --ring-3-size: 480px;
58
- --ring-2-size: 360px;
59
- --ring-1-size: 240px;
60
- --ring-0-size: 120px;
61
- --default-theme-ring-3-opacity: 0.05;
62
- --default-theme-ring-2-opacity: 0.1;
63
- --default-theme-ring-1-opacity: 0.2;
64
- --default-theme-ring-0-opacity: 0.3;
65
57
  position: relative;
66
58
  top: 0;
67
59
  right: 0;
@@ -85,6 +77,7 @@
85
77
  right: 0;
86
78
  left: 0;
87
79
  width: 100%;
80
+ height: 180px;
88
81
  display: flex;
89
82
  align-items: center;
90
83
  justify-content: center;
@@ -110,30 +103,27 @@
110
103
  transition: box-shadow 0.3s;
111
104
  }
112
105
 
113
- :host(.connection) .ring1,
114
- :host(.externalWalletConnection) > .backgroundContainer > .background .ring1 {
115
- box-shadow: 0px 0px 20px var(--cpsl-color-accent-0, color-mix(in srgb, var(--cpsl-color-foreground-0), transparent 93%));
106
+ :host(.connection) > .backgroundContainer > .background .ring1 {
107
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.07);
116
108
  }
117
- :host(.connection) .ring2,
118
- :host(.externalWalletConnection) > .backgroundContainer > .background .ring2 {
119
- box-shadow: 0px 0px 12px var(--cpsl-color-accent-0, color-mix(in srgb, var(--cpsl-color-foreground-0), transparent 95%));
109
+ :host(.connection) > .backgroundContainer > .background .ring2 {
110
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.05);
120
111
  }
121
- :host(.connection) .ring3,
122
- :host(.externalWalletConnection) > .backgroundContainer > .background .ring3 {
123
- box-shadow: 0px 0px 12px var(--cpsl-color-accent-0, color-mix(in srgb, var(--cpsl-color-foreground-0), transparent 96%));
112
+ :host(.connection) > .backgroundContainer > .background .ring3 {
113
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.04);
124
114
  }
125
115
 
126
116
  :host(.pending) > .backgroundContainer > .background .ring0 {
127
- box-shadow: 0px 0px 20px var(--cpsl-color-accent-0, color-mix(in srgb, var(--cpsl-color-foreground-0), transparent 80%));
117
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
128
118
  }
129
119
  :host(.pending) > .backgroundContainer > .background .ring1 {
130
- box-shadow: 0px 0px 20px var(--cpsl-color-accent-0, color-mix(in srgb, var(--cpsl-color-foreground-0), transparent 92%));
120
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.08);
131
121
  }
132
122
  :host(.pending) > .backgroundContainer > .background .ring2 {
133
- box-shadow: 0px 0px 12px var(--cpsl-color-accent-0, color-mix(in srgb, var(--cpsl-color-foreground-0), transparent 94%));
123
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.06);
134
124
  }
135
125
  :host(.pending) > .backgroundContainer > .background .ring3 {
136
- box-shadow: 0px 0px 12px var(--cpsl-color-accent-0, color-mix(in srgb, var(--cpsl-color-foreground-0), transparent 96%));
126
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.04);
137
127
  }
138
128
 
139
129
  :host(.failed) > .backgroundContainer > .background > .ring0 {
@@ -159,78 +149,38 @@
159
149
  box-shadow: 0px 0px 20px rgba(254, 83, 48, 0.1);
160
150
  }
161
151
 
162
- :host(.failed) > .backgroundContainer > .background.defaultTheme > .ring0 {
163
- box-shadow: 0px 0px 20px color-mix(in srgb, var(--cpsl-color-utility-red), transparent 90%);
164
- }
165
- :host(.failed) > .backgroundContainer > .background.defaultTheme > .ring1 {
166
- box-shadow: 0px 0px 20px color-mix(in srgb, var(--cpsl-color-utility-red), transparent 92%);
167
- }
168
- :host(.failed) > .backgroundContainer > .background.defaultTheme > .ring2 {
169
- box-shadow: 0px 0px 12px color-mix(in srgb, var(--cpsl-color-utility-red), transparent 94%);
170
- }
171
- :host(.failed) > .backgroundContainer > .background.defaultTheme > .ring3 {
172
- box-shadow: 0px 0px 12px color-mix(in srgb, var(--cpsl-color-utility-red), transparent 96%);
173
- }
174
-
175
- :host(.approved) > .backgroundContainer > .background.defaultTheme .ring1 {
176
- box-shadow: 0px 0px 20px var(--cpsl-color-accent-0, color-mix(in srgb, var(--cpsl-color-foreground-0), transparent 93%));
177
- }
178
- :host(.approved) > .backgroundContainer > .background.defaultTheme .ring2 {
179
- box-shadow: 0px 0px 12px var(--cpsl-color-accent-0, color-mix(in srgb, var(--cpsl-color-foreground-0), transparent 95%));
180
- }
181
- :host(.approved) > .backgroundContainer > .background.defaultTheme .ring3 {
182
- box-shadow: 0px 0px 12px var(--cpsl-color-accent-0, color-mix(in srgb, var(--cpsl-color-foreground-0), transparent 96%));
183
- }
184
-
185
- :host(:not(.failed)) > .backgroundContainer > .background.defaultTheme > .ring0 {
186
- opacity: var(--default-theme-ring-0-opacity);
187
- }
188
- :host(:not(.failed)) > .backgroundContainer > .background.defaultTheme > .ring1 {
189
- opacity: var(--default-theme-ring-1-opacity);
190
- }
191
- :host(:not(.failed)) > .backgroundContainer > .background.defaultTheme > .ring2 {
192
- opacity: var(--default-theme-ring-2-opacity);
193
- }
194
- :host(:not(.failed)) > .backgroundContainer > .background.defaultTheme > .ring3 {
195
- opacity: var(--default-theme-ring-3-opacity);
196
- }
197
-
198
152
  :host > .backgroundContainer > .background > .ring3 {
199
- width: var(--ring-3-size);
200
- height: var(--ring-3-size);
201
- border-radius: var(--ring-3-size);
153
+ width: 480px;
154
+ height: 480px;
155
+ border-radius: 480px;
202
156
  }
203
157
 
204
158
  :host > .backgroundContainer > .background > .ring2 {
205
- width: var(--ring-2-size);
206
- height: var(--ring-2-size);
207
- border-radius: var(--ring-2-size);
159
+ width: 360px;
160
+ height: 360px;
161
+ border-radius: 360px;
208
162
  }
209
163
 
210
164
  :host > .backgroundContainer > .background > .ring1 {
211
- width: var(--ring-1-size);
212
- height: var(--ring-1-size);
213
- border-radius: var(--ring-1-size);
165
+ width: 240px;
166
+ height: 240px;
167
+ border-radius: 240px;
214
168
  }
215
169
 
216
170
  :host > .backgroundContainer > .background > .ring0 {
217
- width: var(--ring-0-size);
218
- height: var(--ring-0-size);
219
- border-radius: var(--ring-0-size);
171
+ width: 120px;
172
+ height: 120px;
173
+ border-radius: 120px;
220
174
  }
221
175
 
222
- :host > .backgroundContainer > .background > .ringCenter {
223
- display: flex;
224
- justify-content: center;
225
- align-items: center;
176
+ :host > .backgroundContainer > .background > .ringCenter.connection {
226
177
  position: absolute;
227
178
  top: 45px;
228
179
  left: 50%;
229
180
  transform: translate(-50%, -50%);
230
- z-index: 10;
231
- width: 120px;
232
- height: 120px;
233
- border-radius: 82px;
181
+ width: 160px;
182
+ height: 160px;
183
+ border-radius: 160px;
234
184
  }
235
185
  @keyframes spin {
236
186
  from {
@@ -240,66 +190,43 @@
240
190
  transform: rotate(360deg);
241
191
  }
242
192
  }
243
- :host > .backgroundContainer > .background > .ringCenter img {
193
+ :host > .backgroundContainer > .background > .ringCenter.connection img {
244
194
  width: 100%;
245
195
  height: 100%;
246
196
  animation: spin 2s linear infinite;
247
197
  }
248
- :host > .backgroundContainer > .background > .ringCenter img.approvedImage {
249
- height: 160px;
250
- width: 160px;
251
- }
252
- :host > .backgroundContainer > .background > .ringCenter img.connectionImage {
253
- height: 160px;
254
- width: 160px;
255
- }
256
- :host > .backgroundContainer > .background > .ringCenter img.pendingImage {
257
- height: 90px;
258
- width: 90px;
259
- }
260
198
 
261
- :host > .backgroundContainer > .background > .fadeOut {
199
+ :host > .backgroundContainer > .background > .ringCenter.approved {
262
200
  position: absolute;
263
- height: 19%;
264
- top: 15%;
265
- right: 0;
266
- left: 0;
267
- background: linear-gradient(180deg, color-mix(in srgb, var(--cpsl-color-background-0), transparent 100%) 0%, var(--cpsl-color-background-0) 100%);
268
- }
269
-
270
- :host > .backgroundContainer > .background > .cover {
271
- position: absolute;
272
- height: 50%;
273
- top: 34%;
274
- right: 0;
275
- left: 0;
276
- background: var(--cpsl-color-background-0);
277
- }
278
-
279
- :host > .backgroundContainer > .children {
280
- z-index: 1;
201
+ top: 45px;
202
+ left: 50%;
203
+ transform: translate(-50%, -50%);
204
+ width: 160px;
205
+ height: 160px;
206
+ border-radius: 160px;
281
207
  }
282
-
283
- :host(.connection) > .backgroundContainer > .background > .ringCenter > .connectDiagramContainer {
284
- position: absolute;
285
- display: flex;
286
- justify-content: center;
287
- align-items: center;
288
- gap: 40px;
208
+ @keyframes spin {
209
+ from {
210
+ transform: rotate(0deg);
211
+ }
212
+ to {
213
+ transform: rotate(360deg);
214
+ }
289
215
  }
290
-
291
- .centerIcon {
292
- position: absolute;
293
- --icon-color: var(--cpsl-color-accent-0, var(--cpsl-color-foreground-0));
294
- --width: 64px;
295
- --height: 64px;
216
+ :host > .backgroundContainer > .background > .ringCenter.approved img {
217
+ width: 100%;
218
+ height: 100%;
219
+ animation: spin 2s linear infinite;
296
220
  }
297
221
 
298
- .externalConnectionIcon {
299
- animation: spin 2s linear infinite;
222
+ :host > .backgroundContainer > .background > .ringCenter.pending {
300
223
  position: absolute;
301
- --width: 120px;
302
- --height: 120px;
224
+ top: 45px;
225
+ left: 50%;
226
+ transform: translate(-50%, -50%);
227
+ width: 82px;
228
+ height: 82px;
229
+ border-radius: 82px;
303
230
  }
304
231
  @keyframes spin {
305
232
  from {
@@ -309,20 +236,28 @@
309
236
  transform: rotate(360deg);
310
237
  }
311
238
  }
312
-
313
- :host(.approved) > .backgroundContainer > .background > .ringCenter.defaultTheme {
314
- border: 4px solid var(--cpsl-color-accent-0, var(--cpsl-color-foreground-0));
239
+ :host > .backgroundContainer > .background > .ringCenter.pending img {
240
+ width: 100%;
241
+ height: 100%;
242
+ animation: spin 2s linear infinite;
315
243
  }
316
244
 
317
- .customImageContainer {
245
+ :host > .backgroundContainer > .background > .fadeOut {
318
246
  position: absolute;
247
+ height: 200%;
248
+ right: 0;
249
+ bottom: -100%;
250
+ left: 0;
251
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
252
+ }
253
+
254
+ :host > .backgroundContainer > .children {
255
+ z-index: 1;
256
+ }
257
+
258
+ :host(.connection) > .backgroundContainer > .children > .connectDiagramContainer {
319
259
  display: flex;
320
260
  justify-content: center;
321
261
  align-items: center;
322
- width: var(--ring-0-size);
323
- height: var(--ring-0-size);
324
- border-radius: var(--ring-0-size);
325
- border: 2px solid var(--cpsl-color-background-0);
326
- box-sizing: border-box;
327
- overflow: hidden;
262
+ gap: 40px;
328
263
  }
@@ -1,24 +1,21 @@
1
- import { Fragment, Host, h } from "@stencil/core";
1
+ import { Host, h } from "@stencil/core";
2
2
  import { Images } from "../../assets/images";
3
+ const Checkmark = () => (h("svg", { width: "48", height: "35", viewBox: "0 0 48 35", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M47.219 1.11439C48.2604 2.15579 48.2604 3.84423 47.219 4.88563L17.8856 34.219C16.8442 35.2604 15.1558 35.2604 14.1144 34.219L0.781049 20.8856C-0.26035 19.8442 -0.26035 18.1558 0.781049 17.1144C1.82245 16.073 3.51089 16.073 4.55229 17.1144L16 28.5621L43.4477 1.11439C44.4891 0.0729939 46.1776 0.0729939 47.219 1.11439Z", fill: "url(#paint0_linear_841_278)" }), h("defs", null, h("linearGradient", { id: "paint0_linear_841_278", x1: "48", y1: "17.6667", x2: "0", y2: "17.6667", gradientUnits: "userSpaceOnUse" }, h("stop", { "stop-color": "#BC82F3" }), h("stop", { offset: "0.485", "stop-color": "#FF6778" }), h("stop", { offset: "1", "stop-color": "#FFBA71" })))));
4
+ const AlertCircle = () => (h("svg", { width: "58", height: "58", viewBox: "0 0 58 58", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M29 18.3333V29M29 39.6666H29.0267M55.6667 29C55.6667 43.7276 43.7276 55.6666 29 55.6666C14.2724 55.6666 2.33333 43.7276 2.33333 29C2.33333 14.2724 14.2724 2.33331 29 2.33331C43.7276 2.33331 55.6667 14.2724 55.6667 29Z", stroke: "#F04438", "stroke-width": "4", "stroke-linecap": "round", "stroke-linejoin": "round" })));
3
5
  export class CpslHero {
4
6
  constructor() {
5
- this.height = undefined;
6
- this.hideFadeOut = undefined;
7
7
  this.variant = 'connection';
8
8
  this.title = undefined;
9
9
  this.subtitle = undefined;
10
- this.withDefaultTheme = undefined;
11
10
  }
12
11
  render() {
13
- var _a;
14
- return (h(Host, { key: '8dd773a0e1ee3a5c05c05d2099d737818b25efc7', class: {
12
+ return (h(Host, { key: '846f2b1808af5f172d659c1531015763190d9eaa', class: {
15
13
  // VARIANTS
16
14
  connection: this.variant === 'connection',
17
- pending: this.variant === 'pending' || this.variant === 'customContent',
15
+ pending: this.variant === 'pending',
18
16
  approved: this.variant === 'approved',
19
17
  failed: this.variant === 'failed',
20
- externalWalletConnection: this.variant === 'externalWalletConnection',
21
- } }, h("div", { key: '793b0e4c326ef2fd8894a74c9e4280b3fd341dde', class: "backgroundContainer", style: { height: `${(_a = this.height) !== null && _a !== void 0 ? _a : 180}px` } }, h("div", { key: '64f11ece96bfc01633e75eaa28fbda51ec0602a7', class: { background: true, defaultTheme: this.withDefaultTheme } }, h("div", { key: 'cffcbbd95f87412c34928df1cb5aafe4d01706e3', class: "ring ring3" }), h("div", { key: '604ab833dce66efa6e16a468a750b519efbab070', class: "ring ring2" }), h("div", { key: '9d8763f780a7f5dd3f91bf3f05fcee50b97e45f5', class: "ring ring1" }), h("div", { key: '42cdab4a680c82fc4781ae92ec38937b4b0c8bdc', class: "ring ring0" }), h("div", { key: 'd82113434ee28f9c9be557d6321951a72fdab58c', class: { ringCenter: true, defaultTheme: this.withDefaultTheme } }, this.variant === 'connection' && (h(Fragment, { key: '7127673b7a5db701819c34aaef3d6f7e5c5803d9' }, h("img", { key: '797ccf7bd5375778e356427e0114da95d7120c4f', class: "connectionImage", src: Images.heroDefault }), h("div", { key: 'e23bc69562835a0e6cd2ad922d9d654c59561ef5', class: "connectDiagramContainer" }, h("slot", { key: 'a42bef00021936db7b636b10222f1f77d25cbb50', name: "connectionLeft" }), h("slot", { key: '4fb3b0e055cb03d14a08aea95c5a00d8304eb4e6', name: "connectionRight" })))), this.variant === 'pending' && h("img", { key: '5f8783a9bed64273684e5d13dcef5f77ba75ea95', class: "pendingImage", src: Images.heroPending }), this.variant === 'approved' && (h(Fragment, { key: 'c691f28dd91807e2944d0509825c08f502b40c3c' }, !this.withDefaultTheme && h("img", { key: '668f6c1739916f7093ff8a94e7681600a88afa17', class: "approvedImage", src: Images.heroSuccess }), h("cpsl-icon", { key: '84c7acdc9a8da362ef1339573a54bb77b7005565', class: "centerIcon", icon: this.withDefaultTheme ? 'heroCheckmark' : 'heroCheckmarkCapsule' }))), this.variant === 'failed' && h("cpsl-icon", { key: '80eaa04aef39d950696db31274a9ecca131845a5', class: "centerIcon", icon: "heroAlertCircle" }), this.variant === 'externalWalletConnection' && (h(Fragment, { key: '55a3e015dde2bb77b9dae8936cb911e4ded3ff05' }, h("cpsl-icon", { key: 'f20d8fe367025a64c4e53dcec762731aa2424fa9', class: "externalConnectionIcon", icon: "heroExternalConnection" }), h("div", { key: '53b182bee0e7e11b8ebb3c8f1fbfa3cc97580b82', class: "connectDiagramContainer" }, h("slot", { key: 'de11d3f26b9cfc5ee84154d23d7bf3adba1d669e', name: "connectionLeft" }), h("slot", { key: '09b04c47be473cbf9baaf126662f6c1464468036', name: "connectionRight" })))), this.variant === 'customContent' && (h("div", { key: 'a624f56e2af44bcb72d94e0e1d99c6a2f2b3c366', class: "customImageContainer" }, h("slot", { key: '369fc086b6d342675cb6157843ccdc178abbe94d', name: "image" })))), !this.hideFadeOut && (h(Fragment, { key: '3a1d8b00f4c900fe8a6df3b2e87ba68008b95c00' }, h("div", { key: 'a9faca5706d144f168c6ba591682258ae5dda893', class: "fadeOut" }), h("div", { key: 'fcf9237b04487248c9dde40c3bbc932ff43fcbb9', class: "cover" }))))), h("cpsl-text", { key: '9b97bb727c1713afe1fb263bdca990481de2e693', variant: "headingXS", color: "primary", weight: "medium" }, this.title), this.subtitle && (h("cpsl-text", { key: 'efcb2b0940b85681fe44f9ab115a206e958e75fa', variant: "bodyM", color: "secondary" }, this.subtitle))));
18
+ } }, h("div", { key: 'f11070c3f78fd6ad2fbb9842d2484b4263112cb3', class: "backgroundContainer" }, h("div", { key: '5a50e2df5669ff92d3bee0b00bd3ed92075dfa7a', class: "background" }, h("div", { key: '24062e48e9d07feb6e79d4ec1c527b2476950f3b', class: "ring ring3" }), h("div", { key: '37913e7689bbdc4165811fb25b747b8badaa287c', class: "ring ring2" }), h("div", { key: 'f265592120f9fa1052e346bd92951f6789d85502', class: "ring ring1" }), h("div", { key: '19e252b63847df7ea5acb450d8e3479a4b2ad561', class: "ring ring0" }), this.variant === 'connection' && (h("div", { key: '8b94818b22a288284509fe63578b68277ed71edc', class: `ringCenter connection` }, h("img", { key: 'c50d6f5be69303e9c9c1c7f885bbacadceb1c5c8', src: Images.heroDefault }))), this.variant === 'pending' && (h("div", { key: '9ab25648fd147203cba45136ab8956adb6bd99d1', class: `ringCenter pending` }, h("img", { key: '9b0d536b4213ab558b37355e3b605fe3b65824ca', src: Images.heroPending }))), this.variant === 'approved' && (h("div", { key: '2ed926910d870e3b9577b0203ce2e68e8389623c', class: `ringCenter approved` }, h("img", { key: 'aab912dbedf89db56946d2de72f7b0883c4fb261', src: Images.heroSuccess }))), h("div", { key: '55421fe06f9649f27d8728414fac8ce0a592efbb', class: "fadeOut" })), h("div", { key: '41a49e438379a139864d0b7b55ee2e89b5c9aaf0', class: "children" }, this.variant === 'connection' && (h("div", { key: 'a874f21784102c8001043cd93e8a281e63939875', class: "connectDiagramContainer" }, h("slot", { key: 'd99d0f2c0248f360da1829403ca9929ce3d9243c', name: "connectionLeft" }), h("slot", { key: '5557ab28d6108ecb660e5d8203b3decd991f4ea6', name: "connectionRight" }))), this.variant === 'failed' && AlertCircle(), this.variant === 'approved' && Checkmark())), h("cpsl-text", { key: '1aeb3912ca6386a8d1ca1f2d18735716db070cb5', variant: "headingXS", color: "primary", weight: "medium" }, this.title), this.subtitle && (h("cpsl-text", { key: 'e01dbe76df7f55f80fc20bce10e8e82c829851fc', variant: "bodyM", color: "secondary" }, this.subtitle))));
22
19
  }
23
20
  static get is() { return "cpsl-hero"; }
24
21
  static get encapsulation() { return "shadow"; }
@@ -34,53 +31,19 @@ export class CpslHero {
34
31
  }
35
32
  static get properties() {
36
33
  return {
37
- "height": {
38
- "type": "number",
39
- "mutable": false,
40
- "complexType": {
41
- "original": "number",
42
- "resolved": "number",
43
- "references": {}
44
- },
45
- "required": false,
46
- "optional": true,
47
- "docs": {
48
- "tags": [],
49
- "text": "The height of the container.\nDefault is: 180."
50
- },
51
- "attribute": "height",
52
- "reflect": false
53
- },
54
- "hideFadeOut": {
55
- "type": "boolean",
56
- "mutable": false,
57
- "complexType": {
58
- "original": "boolean",
59
- "resolved": "boolean",
60
- "references": {}
61
- },
62
- "required": false,
63
- "optional": true,
64
- "docs": {
65
- "tags": [],
66
- "text": "Hides the fade out components\nDefault is: `false`."
67
- },
68
- "attribute": "hide-fade-out",
69
- "reflect": false
70
- },
71
34
  "variant": {
72
35
  "type": "string",
73
36
  "mutable": false,
74
37
  "complexType": {
75
- "original": "'customContent' | 'connection' | 'externalWalletConnection' | 'pending' | 'approved' | 'failed'",
76
- "resolved": "\"approved\" | \"connection\" | \"customContent\" | \"externalWalletConnection\" | \"failed\" | \"pending\"",
38
+ "original": "'connection' | 'pending' | 'approved' | 'failed'",
39
+ "resolved": "\"approved\" | \"connection\" | \"failed\" | \"pending\"",
77
40
  "references": {}
78
41
  },
79
42
  "required": false,
80
43
  "optional": true,
81
44
  "docs": {
82
45
  "tags": [],
83
- "text": "The variant of the button.\nOptions are: `\"customContent\"`, `\"connection\"`, `\"externalWalletConnection\"`, `\"pending\", `\"approved\", `\"failed\".\nDefault is: `\"connection\"`."
46
+ "text": "The variant of the button.\nOptions are: `\"default\"`, `\"loading\", `\"success\".\nDefault is: `\"default\"`."
84
47
  },
85
48
  "attribute": "variant",
86
49
  "reflect": true,
@@ -119,23 +82,6 @@ export class CpslHero {
119
82
  },
120
83
  "attribute": "subtitle",
121
84
  "reflect": true
122
- },
123
- "withDefaultTheme": {
124
- "type": "boolean",
125
- "mutable": false,
126
- "complexType": {
127
- "original": "boolean",
128
- "resolved": "boolean",
129
- "references": {}
130
- },
131
- "required": false,
132
- "optional": true,
133
- "docs": {
134
- "tags": [],
135
- "text": "Whether to use the Capsule custom theming or use the provided theme\nDefault is: `false`."
136
- },
137
- "attribute": "with-default-theme",
138
- "reflect": false
139
85
  }
140
86
  };
141
87
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cpsl-hero.js","sourceRoot":"","sources":["../../../../src/components/cpsl-hero/cpsl-hero.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO7C,MAAM,OAAO,QAAQ;;;;uBAkBkH,YAAY;;;;;IAYjJ,MAAM;;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,WAAW;gBACX,UAAU,EAAE,IAAI,CAAC,OAAO,KAAK,YAAY;gBACzC,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC,OAAO,KAAK,eAAe;gBACvE,QAAQ,EAAE,IAAI,CAAC,OAAO,KAAK,UAAU;gBACrC,MAAM,EAAE,IAAI,CAAC,OAAO,KAAK,QAAQ;gBACjC,wBAAwB,EAAE,IAAI,CAAC,OAAO,KAAK,0BAA0B;aACtE;YAED,4DAAK,KAAK,EAAC,qBAAqB,EAAC,KAAK,EAAE,EAAE,MAAM,EAAE,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,GAAG,IAAI,EAAE;gBAC3E,4DAAK,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,gBAAgB,EAAE;oBACnE,4DAAK,KAAK,EAAC,YAAY,GAAG;oBAC1B,4DAAK,KAAK,EAAC,YAAY,GAAG;oBAC1B,4DAAK,KAAK,EAAC,YAAY,GAAG;oBAC1B,4DAAK,KAAK,EAAC,YAAY,GAAG;oBAC1B,4DAAK,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,gBAAgB,EAAE;wBAClE,IAAI,CAAC,OAAO,KAAK,YAAY,IAAI,CAChC,EAAC,QAAQ;4BACP,4DAAK,KAAK,EAAC,iBAAiB,EAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAI;4BACxD,4DAAK,KAAK,EAAC,yBAAyB;gCAClC,6DAAM,IAAI,EAAC,gBAAgB,GAAG;gCAC9B,6DAAM,IAAI,EAAC,iBAAiB,GAAG,CAC3B,CACG,CACZ;wBACA,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,4DAAK,KAAK,EAAC,cAAc,EAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAI;wBACnF,IAAI,CAAC,OAAO,KAAK,UAAU,IAAI,CAC9B,EAAC,QAAQ;4BACN,CAAC,IAAI,CAAC,gBAAgB,IAAI,4DAAK,KAAK,EAAC,eAAe,EAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAI;4BACjF,kEAAW,KAAK,EAAC,YAAY,EAAC,IAAI,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,sBAAsB,GAAI,CAC/F,CACZ;wBACA,IAAI,CAAC,OAAO,KAAK,QAAQ,IAAI,kEAAW,KAAK,EAAC,YAAY,EAAC,IAAI,EAAC,iBAAiB,GAAG;wBACpF,IAAI,CAAC,OAAO,KAAK,0BAA0B,IAAI,CAC9C,EAAC,QAAQ;4BACP,kEAAW,KAAK,EAAC,wBAAwB,EAAC,IAAI,EAAC,wBAAwB,GAAG;4BAC1E,4DAAK,KAAK,EAAC,yBAAyB;gCAClC,6DAAM,IAAI,EAAC,gBAAgB,GAAG;gCAC9B,6DAAM,IAAI,EAAC,iBAAiB,GAAG,CAC3B,CACG,CACZ;wBACA,IAAI,CAAC,OAAO,KAAK,eAAe,IAAI,CACnC,4DAAK,KAAK,EAAC,sBAAsB;4BAC/B,6DAAM,IAAI,EAAC,OAAO,GAAG,CACjB,CACP,CACG;oBACL,CAAC,IAAI,CAAC,WAAW,IAAI,CACpB,EAAC,QAAQ;wBACP,4DAAK,KAAK,EAAC,SAAS,GAAG;wBACvB,4DAAK,KAAK,EAAC,OAAO,GAAG,CACZ,CACZ,CACG,CACF;YACN,kEAAW,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,SAAS,EAAC,MAAM,EAAC,QAAQ,IAC3D,IAAI,CAAC,KAAK,CACD;YACX,IAAI,CAAC,QAAQ,IAAI,CAChB,kEAAW,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,WAAW,IACzC,IAAI,CAAC,QAAQ,CACJ,CACb,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Fragment, Host, Prop, h } from '@stencil/core';\nimport { Images } from '../../assets/images';\n\n@Component({\n tag: 'cpsl-hero',\n styleUrl: 'cpsl-hero.scss',\n shadow: true,\n})\nexport class CpslHero {\n /**\n * The height of the container.\n * Default is: 180.\n */\n @Prop() height?: number;\n\n /**\n * Hides the fade out components\n * Default is: `false`.\n */\n @Prop() hideFadeOut?: boolean;\n\n /**\n * The variant of the button.\n * Options are: `\"customContent\"`, `\"connection\"`, `\"externalWalletConnection\"`, `\"pending\", `\"approved\", `\"failed\".\n * Default is: `\"connection\"`.\n */\n @Prop({ reflect: true }) variant?: 'customContent' | 'connection' | 'externalWalletConnection' | 'pending' | 'approved' | 'failed' = 'connection';\n\n @Prop({ reflect: true }) title: string;\n\n @Prop({ reflect: true }) subtitle?: string;\n\n /**\n * Whether to use the Capsule custom theming or use the provided theme\n * Default is: `false`.\n */\n @Prop() withDefaultTheme?: boolean;\n\n render() {\n return (\n <Host\n class={{\n // VARIANTS\n connection: this.variant === 'connection',\n pending: this.variant === 'pending' || this.variant === 'customContent',\n approved: this.variant === 'approved',\n failed: this.variant === 'failed',\n externalWalletConnection: this.variant === 'externalWalletConnection',\n }}\n >\n <div class=\"backgroundContainer\" style={{ height: `${this.height ?? 180}px` }}>\n <div class={{ background: true, defaultTheme: this.withDefaultTheme }}>\n <div class=\"ring ring3\" />\n <div class=\"ring ring2\" />\n <div class=\"ring ring1\" />\n <div class=\"ring ring0\" />\n <div class={{ ringCenter: true, defaultTheme: this.withDefaultTheme }}>\n {this.variant === 'connection' && (\n <Fragment>\n <img class=\"connectionImage\" src={Images.heroDefault} />\n <div class=\"connectDiagramContainer\">\n <slot name=\"connectionLeft\" />\n <slot name=\"connectionRight\" />\n </div>\n </Fragment>\n )}\n {this.variant === 'pending' && <img class=\"pendingImage\" src={Images.heroPending} />}\n {this.variant === 'approved' && (\n <Fragment>\n {!this.withDefaultTheme && <img class=\"approvedImage\" src={Images.heroSuccess} />}\n <cpsl-icon class=\"centerIcon\" icon={this.withDefaultTheme ? 'heroCheckmark' : 'heroCheckmarkCapsule'} />\n </Fragment>\n )}\n {this.variant === 'failed' && <cpsl-icon class=\"centerIcon\" icon=\"heroAlertCircle\" />}\n {this.variant === 'externalWalletConnection' && (\n <Fragment>\n <cpsl-icon class=\"externalConnectionIcon\" icon=\"heroExternalConnection\" />\n <div class=\"connectDiagramContainer\">\n <slot name=\"connectionLeft\" />\n <slot name=\"connectionRight\" />\n </div>\n </Fragment>\n )}\n {this.variant === 'customContent' && (\n <div class=\"customImageContainer\">\n <slot name=\"image\" />\n </div>\n )}\n </div>\n {!this.hideFadeOut && (\n <Fragment>\n <div class=\"fadeOut\" />\n <div class=\"cover\" />\n </Fragment>\n )}\n </div>\n </div>\n <cpsl-text variant=\"headingXS\" color=\"primary\" weight=\"medium\">\n {this.title}\n </cpsl-text>\n {this.subtitle && (\n <cpsl-text variant=\"bodyM\" color=\"secondary\">\n {this.subtitle}\n </cpsl-text>\n )}\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"cpsl-hero.js","sourceRoot":"","sources":["../../../../src/components/cpsl-hero/cpsl-hero.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\nimport { Images } from '../../assets/images';\n\nconst Checkmark = () => (\n <svg width=\"48\" height=\"35\" viewBox=\"0 0 48 35\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M47.219 1.11439C48.2604 2.15579 48.2604 3.84423 47.219 4.88563L17.8856 34.219C16.8442 35.2604 15.1558 35.2604 14.1144 34.219L0.781049 20.8856C-0.26035 19.8442 -0.26035 18.1558 0.781049 17.1144C1.82245 16.073 3.51089 16.073 4.55229 17.1144L16 28.5621L43.4477 1.11439C44.4891 0.0729939 46.1776 0.0729939 47.219 1.11439Z\"\n fill=\"url(#paint0_linear_841_278)\"\n />\n <defs>\n <linearGradient id=\"paint0_linear_841_278\" x1=\"48\" y1=\"17.6667\" x2=\"0\" y2=\"17.6667\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"#BC82F3\" />\n <stop offset=\"0.485\" stop-color=\"#FF6778\" />\n <stop offset=\"1\" stop-color=\"#FFBA71\" />\n </linearGradient>\n </defs>\n </svg>\n);\n\nconst AlertCircle = () => (\n <svg width=\"58\" height=\"58\" viewBox=\"0 0 58 58\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M29 18.3333V29M29 39.6666H29.0267M55.6667 29C55.6667 43.7276 43.7276 55.6666 29 55.6666C14.2724 55.6666 2.33333 43.7276 2.33333 29C2.33333 14.2724 14.2724 2.33331 29 2.33331C43.7276 2.33331 55.6667 14.2724 55.6667 29Z\"\n stroke=\"#F04438\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n);\n\n@Component({\n tag: 'cpsl-hero',\n styleUrl: 'cpsl-hero.scss',\n shadow: true,\n})\nexport class CpslHero {\n /**\n * The variant of the button.\n * Options are: `\"default\"`, `\"loading\", `\"success\".\n * Default is: `\"default\"`.\n */\n @Prop({ reflect: true }) variant?: 'connection' | 'pending' | 'approved' | 'failed' = 'connection';\n\n @Prop({ reflect: true }) title: string;\n\n @Prop({ reflect: true }) subtitle?: string;\n\n render() {\n return (\n <Host\n class={{\n // VARIANTS\n connection: this.variant === 'connection',\n pending: this.variant === 'pending',\n approved: this.variant === 'approved',\n failed: this.variant === 'failed',\n }}\n >\n <div class=\"backgroundContainer\">\n <div class=\"background\">\n <div class=\"ring ring3\" />\n <div class=\"ring ring2\" />\n <div class=\"ring ring1\" />\n <div class=\"ring ring0\" />\n {this.variant === 'connection' && (\n <div class={`ringCenter connection`}>\n <img src={Images.heroDefault} />\n </div>\n )}\n {this.variant === 'pending' && (\n <div class={`ringCenter pending`}>\n <img src={Images.heroPending} />\n </div>\n )}\n\n {this.variant === 'approved' && (\n <div class={`ringCenter approved`}>\n <img src={Images.heroSuccess} />\n </div>\n )}\n <div class=\"fadeOut\" />\n </div>\n <div class=\"children\">\n {this.variant === 'connection' && (\n <div class=\"connectDiagramContainer\">\n <slot name=\"connectionLeft\" />\n <slot name=\"connectionRight\" />\n </div>\n )}\n {this.variant === 'failed' && AlertCircle()}\n {this.variant === 'approved' && Checkmark()}\n </div>\n </div>\n <cpsl-text variant=\"headingXS\" color=\"primary\" weight=\"medium\">\n {this.title}\n </cpsl-text>\n {this.subtitle && (\n <cpsl-text variant=\"bodyM\" color=\"secondary\">\n {this.subtitle}\n </cpsl-text>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -63,14 +63,6 @@
63
63
  width: var(--width);
64
64
  height: var(--height);
65
65
  }
66
- :host .foreground-0 {
67
- fill: var(--cpsl-color-foreground-0);
68
- stop-color: var(--cpsl-color-foreground-0);
69
- }
70
- :host .accent-0 {
71
- fill: var(--cpsl-color-accent-0, var(--cpsl-color-foreground-0));
72
- stop-color: var(--cpsl-color-accent-0, var(--cpsl-color-foreground-0));
73
- }
74
66
 
75
67
  :host div {
76
68
  display: flex;
@@ -6,7 +6,7 @@ export class CpslIcon {
6
6
  this.icon = undefined;
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: 'f7a86185e4b1deadba2a41381b88d6860d0d60d5', part: "icon", role: "img" }, !this.icon ? h("img", { src: this.src }) : h("div", { innerHTML: Icons[this.icon] })));
9
+ return (h(Host, { key: '6960e6da25cb3cd108021f8a5aa20a92a24f92b3', part: "icon", role: "img" }, !this.icon ? h("img", { src: this.src }) : h("div", { innerHTML: Icons[this.icon] })));
10
10
  }
11
11
  static get is() { return "cpsl-icon"; }
12
12
  static get encapsulation() { return "shadow"; }
@@ -44,7 +44,7 @@ export class CpslIcon {
44
44
  "mutable": false,
45
45
  "complexType": {
46
46
  "original": "IconType",
47
- "resolved": "\"search\" | \"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowCircleBrokenDownLeft\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"bank\" | \"brush\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"checkCircle\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"creditCard\" | \"cube\" | \"decentBrand\" | \"decent\" | \"discordBrand\" | \"discord\" | \"dot\" | \"downloadCloud\" | \"download\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"farcasterBrand\" | \"farcaster\" | \"figmaBrand\" | \"figma\" | \"file\" | \"githubBrand\" | \"github\" | \"globe\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroAlertCircle\" | \"heroCheckmarkCapsule\" | \"heroCheckmark\" | \"heroEmail\" | \"heroExternalConnection\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"home\" | \"image\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"lightning01\" | \"lightning\" | \"linkExternal\" | \"linkedinBrand\" | \"linkedin\" | \"logOut\" | \"mail\" | \"menu\" | \"moonpayBrand\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"puzzlePiece\" | \"qrCode02\" | \"qrCode\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"redditBrand\" | \"reddit\" | \"refresh\" | \"send\" | \"settings\" | \"shield\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"stars\" | \"stripeBrand\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"x\" | \"youtubeBrand\" | \"youtube\" | \"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\"",
47
+ "resolved": "\"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"brush\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"checkCircle\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"cube\" | \"decentBrand\" | \"decent\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"farcasterBrand\" | \"farcaster\" | \"figmaBrand\" | \"figma\" | \"file\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"home\" | \"image\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"lightning01\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"menu\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"redditBrand\" | \"reddit\" | \"refresh\" | \"settings\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"stars\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"x\" | \"youtubeBrand\" | \"youtube\" | \"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\"",
48
48
  "references": {
49
49
  "IconType": {
50
50
  "location": "import",
@@ -28,7 +28,7 @@ export class CpslIdenticon {
28
28
  [shapeA, shapeB, shapeC, shapeD],
29
29
  [rotationA, rotationB, rotationC, rotationD],
30
30
  ];
31
- return (h(Host, { key: '39bcae00e3fd58ff94639fbb43c77fd942899e51', class: {
31
+ return (h(Host, { key: '9e7e42f8de3d9611e30bf8c193d4ff8864805dd9', class: {
32
32
  red: color === 'red',
33
33
  orange: color === 'orange',
34
34
  yellow: color === 'yellow',
@@ -71,6 +71,7 @@
71
71
  padding-top: var(--box-padding-top);
72
72
  padding-bottom: var(--box-padding-bottom);
73
73
  display: flex;
74
- background: var(--cpsl-color-background-4);
74
+ background: var(--cpsl-color-background-secondary);
75
+ border: var(--box-border-width) solid var(--cpsl-color-input-border-placeholder);
75
76
  border-radius: var(--box-border-radius);
76
77
  }
@@ -1,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class CpslInfoBox {
3
3
  render() {
4
- return (h(Host, { key: '363605fc58be1a71b771e4d839654c6198fb9988' }, h("div", { key: '7b56cdfbb5db9ee33d906a9235ffd89fce06962f', class: "info-box-container" }, h("slot", { key: '868bc4bdb1f1817d2f918a7c5a1c50582c4545f7' }))));
4
+ return (h(Host, { key: '71bc7e0e6976741e4da0fcc6d0135037c416d663' }, h("div", { key: 'd7c1f41e2d60c1e7319ea93b740dc789061f6f2b', class: "info-box-container" }, h("slot", { key: '84681d40c32832a00874901eb9e75679313f2034' }))));
5
5
  }
6
6
  static get is() { return "cpsl-info-box"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -73,7 +73,6 @@
73
73
  --input-color: var(--cpsl-color-text-primary);
74
74
  --input-placeholder-color: var(--cpsl-color-text-secondary);
75
75
  --input-font-size: var(--cpsl-font-size-body-m);
76
- --input-font-weight: 400;
77
76
  --optional-label-color: var(--cpsl-color-text-secondary);
78
77
  --label-color: var(--cpsl-color-text-primary);
79
78
  --label-font-size: var(--cpsl-font-size-body-s);
@@ -85,17 +84,13 @@
85
84
  --helper-text-icon-size: 16px;
86
85
  --helper-text-font-size: var(--cpsl-font-size-body-xs);
87
86
  --helper-text-margin-top: 0px;
88
- --button-padding: 8px;
87
+ --button-padding: 4px;
89
88
  display: flex;
90
89
  flex-direction: column;
91
90
  gap: 4px;
92
91
  font-family: var(--cpsl-font-family, inherit);
93
92
  }
94
93
 
95
- :host(.contrast-text) {
96
- --input-color: var(--cpsl-color-contrast);
97
- }
98
-
99
94
  :host(:not(.has-value)) {
100
95
  --container-border-color: var(--cpsl-color-input-border-placeholder);
101
96
  --input-color: var(--cpsl-color-text-secondary);
@@ -145,7 +140,6 @@
145
140
  height: 100%;
146
141
  box-sizing: border-box;
147
142
  font-size: var(--input-font-size);
148
- font-weight: var(--input-font-weight);
149
143
  color: var(--input-color);
150
144
  background: var(--input-background-color);
151
145
  font-family: var(--cpsl-font-family, inherit);
@@ -157,15 +151,6 @@
157
151
  color: var(--input-placeholder-color);
158
152
  opacity: 1; /* Firefox */
159
153
  }
160
- .native-input::-moz-selection {
161
- /* Code for Firefox */
162
- color: var(--cpsl-color-text-inverted);
163
- background: var(--cpsl-color-background-64);
164
- }
165
- .native-input::selection {
166
- color: var(--cpsl-color-text-inverted);
167
- background: var(--cpsl-color-background-64);
168
- }
169
154
 
170
155
  .label {
171
156
  display: inline-block;
@@ -216,11 +201,7 @@
216
201
  :host ::slotted(cpsl-button) {
217
202
  width: calc(var(--container-height) - var(--button-padding) * 2);
218
203
  height: calc(var(--container-height) - var(--button-padding) * 2);
219
- --button-border-radius: calc(var(--container-border-radius) - 4px);
220
- --button-padding-top: 4px;
221
- --button-padding-start: 4px;
222
- --button-padding-end: 4px;
223
- --button-padding-bottom: 4px;
204
+ --button-border-radius: calc(var(--container-border-radius) - 2px);
224
205
  }
225
206
  :host slot[name=end]::slotted(cpsl-button) {
226
207
  margin-right: calc((var(--container-padding-end) - var(--button-padding)) * -1);