@usecapsule/core-components 3.2.0 → 3.3.1-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. package/css/capsule-core.css +25 -10
  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-0e558c7f.entry.js +10 -0
  8. package/dist/capsule/{p-05cb769b.entry.js.map → p-0e558c7f.entry.js.map} +1 -1
  9. package/dist/capsule/{p-dc4591d5.entry.js → p-1bd11889.entry.js} +2 -2
  10. package/dist/capsule/p-1bd11889.entry.js.map +1 -0
  11. package/dist/capsule/p-32cdf894.entry.js +2 -0
  12. package/dist/capsule/p-32cdf894.entry.js.map +1 -0
  13. package/dist/capsule/p-3b042fd1.entry.js +2 -0
  14. package/dist/capsule/p-5965b15e.entry.js +2 -0
  15. package/dist/capsule/{p-c1aa1ffb.entry.js.map → p-5965b15e.entry.js.map} +1 -1
  16. package/dist/capsule/{p-742bda0b.entry.js → p-5d62e610.entry.js} +2 -2
  17. package/dist/capsule/p-60508b1e.entry.js +20 -0
  18. package/dist/capsule/p-60508b1e.entry.js.map +1 -0
  19. package/dist/cjs/capsule.cjs.js +1 -1
  20. package/dist/cjs/{cpsl-alert_33.cjs.entry.js → cpsl-alert_34.cjs.entry.js} +17025 -13458
  21. package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -0
  22. package/dist/cjs/cpsl-animation.cjs.entry.js +3 -2
  23. package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -1
  24. package/dist/cjs/cpsl-hero.cjs.entry.js +9 -6
  25. package/dist/cjs/cpsl-hero.cjs.entry.js.map +1 -1
  26. package/dist/cjs/cpsl-identicon.cjs.entry.js +1 -1
  27. package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
  28. package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -1
  29. package/dist/cjs/cpsl-modal-v2.cjs.entry.js +1 -1
  30. package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -1
  31. package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
  32. package/dist/cjs/index-65f57499.js +2 -2
  33. package/dist/cjs/index.cjs.js +40 -17
  34. package/dist/cjs/index.cjs.js.map +1 -1
  35. package/dist/cjs/loader.cjs.js +1 -1
  36. package/dist/collection/assets/icons/arrow-circle-broken-down-left.svg +3 -0
  37. package/dist/collection/assets/icons/bank.svg +3 -0
  38. package/dist/collection/assets/icons/credit-card.svg +3 -0
  39. package/dist/collection/assets/icons/dot.svg +3 -0
  40. package/dist/collection/assets/icons/download.svg +3 -0
  41. package/dist/collection/assets/icons/globe.svg +3 -0
  42. package/dist/collection/assets/icons/hero-alert-circle.svg +3 -0
  43. package/dist/collection/assets/icons/hero-checkmark-capsule.svg +11 -0
  44. package/dist/collection/assets/icons/hero-checkmark.svg +3 -0
  45. package/dist/collection/assets/icons/hero-external-connection.svg +71 -0
  46. package/dist/collection/assets/icons/index.js +21 -1
  47. package/dist/collection/assets/icons/index.js.map +1 -1
  48. package/dist/collection/assets/icons/link-external.svg +3 -0
  49. package/dist/collection/assets/icons/log-out.svg +3 -0
  50. package/dist/collection/assets/icons/moonpay-brand.svg +10 -0
  51. package/dist/collection/assets/icons/puzzle-piece.svg +3 -0
  52. package/dist/collection/assets/icons/qr-code-02.svg +3 -0
  53. package/dist/collection/assets/icons/qr-code.svg +3 -0
  54. package/dist/collection/assets/icons/refresh.svg +3 -3
  55. package/dist/collection/assets/icons/search.svg +3 -0
  56. package/dist/collection/assets/icons/send.svg +3 -0
  57. package/dist/collection/assets/icons/shield.svg +3 -0
  58. package/dist/collection/assets/icons/stripe-brand.svg +3 -0
  59. package/dist/collection/collection-manifest.json +2 -1
  60. package/dist/collection/components/cpsl-alert/cpsl-alert.js +3 -3
  61. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
  62. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +3 -3
  63. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -1
  64. package/dist/collection/components/{cpsl-modal/cpsl-modal.css → cpsl-auth-modal/cpsl-auth-modal.css} +33 -58
  65. package/dist/collection/components/{cpsl-modal/cpsl-modal.js → cpsl-auth-modal/cpsl-auth-modal.js} +13 -131
  66. package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.js.map +1 -0
  67. package/dist/collection/components/cpsl-button/cpsl-button.css +89 -2
  68. package/dist/collection/components/cpsl-button/cpsl-button.js +6 -5
  69. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
  70. package/dist/collection/components/cpsl-button/cpsl-button.stories.js.map +1 -1
  71. package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +2 -2
  72. package/dist/collection/components/cpsl-button-group/cpsl-button-group.js.map +1 -1
  73. package/dist/collection/components/cpsl-card/cpsl-card.css +5 -2
  74. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +3 -0
  75. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +11 -7
  76. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
  77. package/dist/collection/components/cpsl-divider/cpsl-divider.css +2 -1
  78. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +2 -2
  79. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
  80. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +2 -2
  81. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
  82. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +5 -10
  83. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
  84. package/dist/collection/components/cpsl-hero/cpsl-hero.css +136 -71
  85. package/dist/collection/components/cpsl-hero/cpsl-hero.js +63 -9
  86. package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
  87. package/dist/collection/components/cpsl-icon/cpsl-icon.css +8 -0
  88. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  89. package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -1
  90. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.css +97 -0
  91. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js +121 -0
  92. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js.map +1 -0
  93. package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
  94. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +1 -2
  95. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  96. package/dist/collection/components/cpsl-input/cpsl-input.css +21 -2
  97. package/dist/collection/components/cpsl-input/cpsl-input.js +100 -28
  98. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  99. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +1 -1
  100. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -1
  101. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +2 -2
  102. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js.map +1 -1
  103. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
  104. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -1
  105. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
  106. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  107. package/dist/collection/components/cpsl-popover/cpsl-popover.css +2 -0
  108. package/dist/collection/components/cpsl-popover/cpsl-popover.js +12 -14
  109. package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
  110. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +12 -3
  111. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +28 -23
  112. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -1
  113. package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
  114. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  115. package/dist/collection/components/cpsl-select/cpsl-select.css +17 -0
  116. package/dist/collection/components/cpsl-select/cpsl-select.js +96 -6
  117. package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
  118. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
  119. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -1
  120. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  121. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -1
  122. package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +30 -8
  123. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +5 -7
  124. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -1
  125. package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
  126. package/dist/collection/components/cpsl-tab/cpsl-tab.css +24 -1
  127. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  128. package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -1
  129. package/dist/collection/components/cpsl-table/cpsl-table.js +1 -9
  130. package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
  131. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +1 -4
  132. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +2 -5
  133. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
  134. package/dist/collection/components/cpsl-text/cpsl-text.css +19 -0
  135. package/dist/collection/components/cpsl-text/cpsl-text.js +5 -4
  136. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  137. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +3 -1
  138. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  139. package/dist/collection/interface.js.map +1 -1
  140. package/dist/collection/utils/theme/generateBorderRadii.js +5 -4
  141. package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
  142. package/dist/collection/utils/theme/generateFont.js +1 -1
  143. package/dist/collection/utils/theme/generateFont.js.map +1 -1
  144. package/dist/collection/utils/theme/generatePalette.js +25 -9
  145. package/dist/collection/utils/theme/generatePalette.js.map +1 -1
  146. package/dist/collection/utils/theme/generateTheme.js +9 -3
  147. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  148. package/dist/collection/utils/theme/utils.js.map +1 -1
  149. package/dist/esm/capsule.js +1 -1
  150. package/dist/esm/{cpsl-alert_33.entry.js → cpsl-alert_34.entry.js} +17026 -13460
  151. package/dist/esm/cpsl-alert_34.entry.js.map +1 -0
  152. package/dist/esm/cpsl-animation.entry.js +2 -1
  153. package/dist/esm/cpsl-animation.entry.js.map +1 -1
  154. package/dist/esm/cpsl-hero.entry.js +10 -7
  155. package/dist/esm/cpsl-hero.entry.js.map +1 -1
  156. package/dist/esm/cpsl-identicon.entry.js +1 -1
  157. package/dist/esm/cpsl-info-box.entry.js +2 -2
  158. package/dist/esm/cpsl-info-box.entry.js.map +1 -1
  159. package/dist/esm/cpsl-modal-v2.entry.js +1 -1
  160. package/dist/esm/cpsl-modal-v2.entry.js.map +1 -1
  161. package/dist/esm/cpsl-row.entry.js +1 -1
  162. package/dist/esm/index-91db3414.js +2 -2
  163. package/dist/esm/index.js +40 -17
  164. package/dist/esm/index.js.map +1 -1
  165. package/dist/esm/loader.js +1 -1
  166. package/dist/types/assets/icons/index.d.ts +20 -0
  167. package/dist/types/components/{cpsl-modal/cpsl-modal.d.ts → cpsl-auth-modal/cpsl-auth-modal.d.ts} +3 -23
  168. package/dist/types/components/cpsl-button/cpsl-button.d.ts +2 -2
  169. package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +18 -3
  170. package/dist/types/components/cpsl-icon-group/cpsl-icon-group.d.ts +20 -0
  171. package/dist/types/components/cpsl-input/cpsl-input.d.ts +13 -3
  172. package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +2 -2
  173. package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +1 -0
  174. package/dist/types/components/cpsl-select/cpsl-select.d.ts +22 -1
  175. package/dist/types/components/cpsl-text/cpsl-text.d.ts +1 -1
  176. package/dist/types/components.d.ts +222 -146
  177. package/dist/types/interface.d.ts +13 -0
  178. package/dist/types/utils/theme/generateBorderRadii.d.ts +1 -1
  179. package/dist/types/utils/theme/generatePalette.d.ts +4 -2
  180. package/dist/types/utils/theme/generateTheme.d.ts +1 -1
  181. package/package.json +4 -3
  182. package/dist/capsule/p-0462f723.js +0 -2
  183. package/dist/capsule/p-0462f723.js.map +0 -1
  184. package/dist/capsule/p-05cb769b.entry.js +0 -10
  185. package/dist/capsule/p-0eea90f8.entry.js +0 -2
  186. package/dist/capsule/p-7233228e.entry.js +0 -29
  187. package/dist/capsule/p-7233228e.entry.js.map +0 -1
  188. package/dist/capsule/p-c1aa1ffb.entry.js +0 -2
  189. package/dist/capsule/p-d351f076.entry.js +0 -2
  190. package/dist/capsule/p-d351f076.entry.js.map +0 -1
  191. package/dist/capsule/p-dc4591d5.entry.js.map +0 -1
  192. package/dist/cjs/_commonjsHelpers-b3309d7b.js +0 -12
  193. package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +0 -1
  194. package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +0 -1
  195. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +0 -1
  196. package/dist/esm/_commonjsHelpers-1789f0cf.js +0 -9
  197. package/dist/esm/_commonjsHelpers-1789f0cf.js.map +0 -1
  198. package/dist/esm/cpsl-alert_33.entry.js.map +0 -1
  199. /package/dist/capsule/{p-0eea90f8.entry.js.map → p-3b042fd1.entry.js.map} +0 -0
  200. /package/dist/capsule/{p-742bda0b.entry.js.map → p-5d62e610.entry.js.map} +0 -0
@@ -54,6 +54,14 @@
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;
57
65
  position: relative;
58
66
  top: 0;
59
67
  right: 0;
@@ -77,7 +85,6 @@
77
85
  right: 0;
78
86
  left: 0;
79
87
  width: 100%;
80
- height: 180px;
81
88
  display: flex;
82
89
  align-items: center;
83
90
  justify-content: center;
@@ -103,27 +110,30 @@
103
110
  transition: box-shadow 0.3s;
104
111
  }
105
112
 
106
- :host(.connection) > .backgroundContainer > .background .ring1 {
107
- box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.07);
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%));
108
116
  }
109
- :host(.connection) > .backgroundContainer > .background .ring2 {
110
- box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.05);
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%));
111
120
  }
112
- :host(.connection) > .backgroundContainer > .background .ring3 {
113
- box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.04);
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%));
114
124
  }
115
125
 
116
126
  :host(.pending) > .backgroundContainer > .background .ring0 {
117
- box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
127
+ box-shadow: 0px 0px 20px var(--cpsl-color-accent-0, color-mix(in srgb, var(--cpsl-color-foreground-0), transparent 80%));
118
128
  }
119
129
  :host(.pending) > .backgroundContainer > .background .ring1 {
120
- box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.08);
130
+ box-shadow: 0px 0px 20px var(--cpsl-color-accent-0, color-mix(in srgb, var(--cpsl-color-foreground-0), transparent 92%));
121
131
  }
122
132
  :host(.pending) > .backgroundContainer > .background .ring2 {
123
- box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.06);
133
+ box-shadow: 0px 0px 12px var(--cpsl-color-accent-0, color-mix(in srgb, var(--cpsl-color-foreground-0), transparent 94%));
124
134
  }
125
135
  :host(.pending) > .backgroundContainer > .background .ring3 {
126
- box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.04);
136
+ box-shadow: 0px 0px 12px var(--cpsl-color-accent-0, color-mix(in srgb, var(--cpsl-color-foreground-0), transparent 96%));
127
137
  }
128
138
 
129
139
  :host(.failed) > .backgroundContainer > .background > .ring0 {
@@ -149,38 +159,78 @@
149
159
  box-shadow: 0px 0px 20px rgba(254, 83, 48, 0.1);
150
160
  }
151
161
 
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
+
152
198
  :host > .backgroundContainer > .background > .ring3 {
153
- width: 480px;
154
- height: 480px;
155
- border-radius: 480px;
199
+ width: var(--ring-3-size);
200
+ height: var(--ring-3-size);
201
+ border-radius: var(--ring-3-size);
156
202
  }
157
203
 
158
204
  :host > .backgroundContainer > .background > .ring2 {
159
- width: 360px;
160
- height: 360px;
161
- border-radius: 360px;
205
+ width: var(--ring-2-size);
206
+ height: var(--ring-2-size);
207
+ border-radius: var(--ring-2-size);
162
208
  }
163
209
 
164
210
  :host > .backgroundContainer > .background > .ring1 {
165
- width: 240px;
166
- height: 240px;
167
- border-radius: 240px;
211
+ width: var(--ring-1-size);
212
+ height: var(--ring-1-size);
213
+ border-radius: var(--ring-1-size);
168
214
  }
169
215
 
170
216
  :host > .backgroundContainer > .background > .ring0 {
171
- width: 120px;
172
- height: 120px;
173
- border-radius: 120px;
217
+ width: var(--ring-0-size);
218
+ height: var(--ring-0-size);
219
+ border-radius: var(--ring-0-size);
174
220
  }
175
221
 
176
- :host > .backgroundContainer > .background > .ringCenter.connection {
222
+ :host > .backgroundContainer > .background > .ringCenter {
223
+ display: flex;
224
+ justify-content: center;
225
+ align-items: center;
177
226
  position: absolute;
178
227
  top: 45px;
179
228
  left: 50%;
180
229
  transform: translate(-50%, -50%);
181
- width: 160px;
182
- height: 160px;
183
- border-radius: 160px;
230
+ z-index: 10;
231
+ width: 120px;
232
+ height: 120px;
233
+ border-radius: 82px;
184
234
  }
185
235
  @keyframes spin {
186
236
  from {
@@ -190,43 +240,66 @@
190
240
  transform: rotate(360deg);
191
241
  }
192
242
  }
193
- :host > .backgroundContainer > .background > .ringCenter.connection img {
243
+ :host > .backgroundContainer > .background > .ringCenter img {
194
244
  width: 100%;
195
245
  height: 100%;
196
246
  animation: spin 2s linear infinite;
197
247
  }
198
-
199
- :host > .backgroundContainer > .background > .ringCenter.approved {
200
- position: absolute;
201
- top: 45px;
202
- left: 50%;
203
- transform: translate(-50%, -50%);
248
+ :host > .backgroundContainer > .background > .ringCenter img.approvedImage {
249
+ height: 160px;
204
250
  width: 160px;
251
+ }
252
+ :host > .backgroundContainer > .background > .ringCenter img.connectionImage {
205
253
  height: 160px;
206
- border-radius: 160px;
254
+ width: 160px;
207
255
  }
208
- @keyframes spin {
209
- from {
210
- transform: rotate(0deg);
211
- }
212
- to {
213
- transform: rotate(360deg);
214
- }
256
+ :host > .backgroundContainer > .background > .ringCenter img.pendingImage {
257
+ height: 90px;
258
+ width: 90px;
215
259
  }
216
- :host > .backgroundContainer > .background > .ringCenter.approved img {
217
- width: 100%;
218
- height: 100%;
219
- animation: spin 2s linear infinite;
260
+
261
+ :host > .backgroundContainer > .background > .fadeOut {
262
+ 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%);
220
268
  }
221
269
 
222
- :host > .backgroundContainer > .background > .ringCenter.pending {
270
+ :host > .backgroundContainer > .background > .cover {
223
271
  position: absolute;
224
- top: 45px;
225
- left: 50%;
226
- transform: translate(-50%, -50%);
227
- width: 82px;
228
- height: 82px;
229
- border-radius: 82px;
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;
281
+ }
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;
289
+ }
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;
296
+ }
297
+
298
+ .externalConnectionIcon {
299
+ animation: spin 2s linear infinite;
300
+ position: absolute;
301
+ --width: 120px;
302
+ --height: 120px;
230
303
  }
231
304
  @keyframes spin {
232
305
  from {
@@ -236,28 +309,20 @@
236
309
  transform: rotate(360deg);
237
310
  }
238
311
  }
239
- :host > .backgroundContainer > .background > .ringCenter.pending img {
240
- width: 100%;
241
- height: 100%;
242
- animation: spin 2s linear infinite;
243
- }
244
312
 
245
- :host > .backgroundContainer > .background > .fadeOut {
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;
313
+ :host(.approved) > .backgroundContainer > .background > .ringCenter.defaultTheme {
314
+ border: 4px solid var(--cpsl-color-accent-0, var(--cpsl-color-foreground-0));
256
315
  }
257
316
 
258
- :host(.connection) > .backgroundContainer > .children > .connectDiagramContainer {
317
+ .customImageContainer {
318
+ position: absolute;
259
319
  display: flex;
260
320
  justify-content: center;
261
321
  align-items: center;
262
- gap: 40px;
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;
263
328
  }
@@ -1,21 +1,24 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { Fragment, 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" })));
5
3
  export class CpslHero {
6
4
  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;
10
11
  }
11
12
  render() {
12
- return (h(Host, { key: '846f2b1808af5f172d659c1531015763190d9eaa', class: {
13
+ var _a;
14
+ return (h(Host, { key: '8dd773a0e1ee3a5c05c05d2099d737818b25efc7', class: {
13
15
  // VARIANTS
14
16
  connection: this.variant === 'connection',
15
- pending: this.variant === 'pending',
17
+ pending: this.variant === 'pending' || this.variant === 'customContent',
16
18
  approved: this.variant === 'approved',
17
19
  failed: this.variant === 'failed',
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))));
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))));
19
22
  }
20
23
  static get is() { return "cpsl-hero"; }
21
24
  static get encapsulation() { return "shadow"; }
@@ -31,19 +34,53 @@ export class CpslHero {
31
34
  }
32
35
  static get properties() {
33
36
  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
+ },
34
71
  "variant": {
35
72
  "type": "string",
36
73
  "mutable": false,
37
74
  "complexType": {
38
- "original": "'connection' | 'pending' | 'approved' | 'failed'",
39
- "resolved": "\"approved\" | \"connection\" | \"failed\" | \"pending\"",
75
+ "original": "'customContent' | 'connection' | 'externalWalletConnection' | 'pending' | 'approved' | 'failed'",
76
+ "resolved": "\"approved\" | \"connection\" | \"customContent\" | \"externalWalletConnection\" | \"failed\" | \"pending\"",
40
77
  "references": {}
41
78
  },
42
79
  "required": false,
43
80
  "optional": true,
44
81
  "docs": {
45
82
  "tags": [],
46
- "text": "The variant of the button.\nOptions are: `\"default\"`, `\"loading\", `\"success\".\nDefault is: `\"default\"`."
83
+ "text": "The variant of the button.\nOptions are: `\"customContent\"`, `\"connection\"`, `\"externalWalletConnection\"`, `\"pending\", `\"approved\", `\"failed\".\nDefault is: `\"connection\"`."
47
84
  },
48
85
  "attribute": "variant",
49
86
  "reflect": true,
@@ -82,6 +119,23 @@ export class CpslHero {
82
119
  },
83
120
  "attribute": "subtitle",
84
121
  "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
85
139
  }
86
140
  };
87
141
  }
@@ -1 +1 @@
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"]}
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, 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"]}
@@ -63,6 +63,14 @@
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
+ }
66
74
 
67
75
  :host div {
68
76
  display: flex;
@@ -6,7 +6,7 @@ export class CpslIcon {
6
6
  this.icon = undefined;
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: '6960e6da25cb3cd108021f8a5aa20a92a24f92b3', part: "icon", role: "img" }, !Boolean(this.icon) ? h("img", { src: this.src }) : h("div", { innerHTML: Icons[this.icon] })));
9
+ return (h(Host, { key: 'f7a86185e4b1deadba2a41381b88d6860d0d60d5', 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": "\"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\"",
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\"",
48
48
  "references": {
49
49
  "IconType": {
50
50
  "location": "import",
@@ -1 +1 @@
1
- {"version":3,"file":"cpsl-icon.js","sourceRoot":"","sources":["../../../../src/components/cpsl-icon/cpsl-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAO3C,MAAM,OAAO,QAAQ;;;;;IAWnB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,IACzB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,WAAK,GAAG,EAAE,IAAI,CAAC,GAAG,GAAI,CAAC,CAAC,CAAC,WAAK,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAI,CAC/E,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\nimport { IconType } from '../../interface';\nimport { Icons } from '../../assets/icons';\n\n@Component({\n tag: 'cpsl-icon',\n styleUrl: 'cpsl-icon.scss',\n shadow: true,\n})\nexport class CpslIcon {\n /**\n * The external source of the icon. If both `icon` and `src` are provided, `icon` will be used.\n */\n @Prop() src?: string;\n\n /**\n * The name of the icon. If both `icon` and `src` are provided, `icon` will be used.\n */\n @Prop() icon?: IconType;\n\n render() {\n return (\n <Host part=\"icon\" role=\"img\">\n {!Boolean(this.icon) ? <img src={this.src} /> : <div innerHTML={Icons[this.icon]} />}\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"cpsl-icon.js","sourceRoot":"","sources":["../../../../src/components/cpsl-icon/cpsl-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAO3C,MAAM,OAAO,QAAQ;;;;;IAWnB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,IACzB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,WAAK,GAAG,EAAE,IAAI,CAAC,GAAG,GAAI,CAAC,CAAC,CAAC,WAAK,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAI,CACtE,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\nimport { IconType } from '../../interface';\nimport { Icons } from '../../assets/icons';\n\n@Component({\n tag: 'cpsl-icon',\n styleUrl: 'cpsl-icon.scss',\n shadow: true,\n})\nexport class CpslIcon {\n /**\n * The external source of the icon. If both `icon` and `src` are provided, `icon` will be used.\n */\n @Prop() src?: string;\n\n /**\n * The name of the icon. If both `icon` and `src` are provided, `icon` will be used.\n */\n @Prop() icon?: IconType;\n\n render() {\n return (\n <Host part=\"icon\" role=\"img\">\n {!this.icon ? <img src={this.src} /> : <div innerHTML={Icons[this.icon]} />}\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Convert a font size to a dynamic font size.
3
+ * Fonts that participate in Dynamic Type should use
4
+ * dynamic font sizes.
5
+ * @param size - The initial font size including the unit (i.e. px or pt)
6
+ * @param unit (optional) - The unit to convert to. Use this if you want to
7
+ * convert to a unit other than $baselineUnit.
8
+ */
9
+ /**
10
+ * Convert a font size to a dynamic font size but impose
11
+ * a maximum font size.
12
+ * @param size - The initial font size including the unit (i.e. px or pt)
13
+ * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
14
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
15
+ * convert to a unit other than $baselineUnit.
16
+ */
17
+ /**
18
+ * Convert a font size to a dynamic font size but impose
19
+ * a minimum font size.
20
+ * @param size - The initial font size including the unit (i.e. px or pt)
21
+ * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
22
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
23
+ * convert to a unit other than $baselineUnit.
24
+ */
25
+ /**
26
+ * Convert a font size to a dynamic font size but impose
27
+ * maximum and minimum font sizes.
28
+ * @param size - The initial font size including the unit (i.e. px or pt)
29
+ * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
30
+ * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
31
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
32
+ * convert to a unit other than $baselineUnit.
33
+ */
34
+ /**
35
+ * A heuristic that applies CSS to tablet
36
+ * viewports.
37
+ *
38
+ * Usage:
39
+ * @include tablet-viewport() {
40
+ * :host {
41
+ * background-color: green;
42
+ * }
43
+ * }
44
+ */
45
+ /**
46
+ * A heuristic that applies CSS to mobile
47
+ * viewports (i.e. phones, not tablets).
48
+ *
49
+ * Usage:
50
+ * @include mobile-viewport() {
51
+ * :host {
52
+ * background-color: blue;
53
+ * }
54
+ * }
55
+ */
56
+ :host {
57
+ --container-padding-top: 4px;
58
+ --container-padding-end: 4px;
59
+ --container-padding-bottom: 4px;
60
+ --container-padding-start: 4px;
61
+ --container-border-width: 2px;
62
+ --container-border-color: var(--cpsl-color-iconGroup-border);
63
+ --container-background: var(--cpsl-color-iconGroup-surface);
64
+ --icon-height: 15px;
65
+ --icon-width: 15px;
66
+ --icon-item-color: var(--cpsl-color-iconGroup-icon-default);
67
+ display: flex;
68
+ width: auto;
69
+ padding-right: calc(var(--container-border-width) * 3);
70
+ }
71
+
72
+ .icon-container {
73
+ -webkit-padding-start: var(--container-padding-start);
74
+ padding-inline-start: var(--container-padding-start);
75
+ -webkit-padding-end: var(--container-padding-end);
76
+ padding-inline-end: var(--container-padding-end);
77
+ padding-top: var(--container-padding-top);
78
+ padding-bottom: var(--container-padding-bottom);
79
+ margin-right: calc(var(--container-border-width) * -3);
80
+ border-style: solid;
81
+ border-width: var(--container-border-width);
82
+ border-color: var(--container-border-color);
83
+ border-radius: 1000px;
84
+ background: var(--container-background);
85
+ transition: margin 250ms;
86
+ }
87
+ .icon-container cpsl-icon {
88
+ --height: var(--icon-height);
89
+ --width: var(--icon-width);
90
+ --icon-color: var(--icon-item-color);
91
+ }
92
+ .icon-container.expanded {
93
+ margin-right: calc(var(--container-border-width) * -1);
94
+ }
95
+ .icon-container.disabled cpsl-icon {
96
+ --icon-color: var(--cpsl-color-iconGroup-icon-disabled);
97
+ }