@usecapsule/core-components 3.3.0-dev.0 → 3.3.0-dev.1
Sign up to get free protection for your applications and to get access to all the features.
- package/css/capsule-core.css +10 -25
- package/css/capsule-core.css.map +1 -1
- package/dist/capsule/capsule.esm.js +1 -1
- package/dist/capsule/capsule.esm.js.map +1 -1
- package/dist/capsule/index.esm.js +1 -1
- package/dist/capsule/index.esm.js.map +1 -1
- package/dist/capsule/p-0462f723.js +2 -0
- package/dist/capsule/p-0462f723.js.map +1 -0
- package/dist/capsule/p-05cb769b.entry.js +10 -0
- package/dist/capsule/{p-0e558c7f.entry.js.map → p-05cb769b.entry.js.map} +1 -1
- package/dist/capsule/p-0eea90f8.entry.js +2 -0
- package/dist/capsule/p-4203888d.entry.js +29 -0
- package/dist/capsule/p-4203888d.entry.js.map +1 -0
- package/dist/capsule/{p-1bd11889.entry.js → p-69c3c53b.entry.js} +2 -2
- package/dist/capsule/{p-1bd11889.entry.js.map → p-69c3c53b.entry.js.map} +1 -1
- package/dist/capsule/{p-5d62e610.entry.js → p-742bda0b.entry.js} +2 -2
- package/dist/capsule/p-c1aa1ffb.entry.js +2 -0
- package/dist/capsule/{p-5965b15e.entry.js.map → p-c1aa1ffb.entry.js.map} +1 -1
- package/dist/capsule/p-d351f076.entry.js +2 -0
- package/dist/capsule/p-d351f076.entry.js.map +1 -0
- package/dist/cjs/_commonjsHelpers-b3309d7b.js +12 -0
- package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +1 -0
- package/dist/cjs/capsule.cjs.js +1 -1
- package/dist/cjs/{cpsl-alert_34.cjs.entry.js → cpsl-alert_33.cjs.entry.js} +13368 -16935
- package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-animation.cjs.entry.js +2 -3
- package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-hero.cjs.entry.js +6 -9
- package/dist/cjs/cpsl-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-identicon.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
- package/dist/cjs/index-65f57499.js +2 -2
- package/dist/cjs/index.cjs.js +12 -35
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/icons/index.js +1 -21
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/assets/icons/refresh.svg +3 -3
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +2 -2
- package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
- package/dist/collection/components/cpsl-button/cpsl-button.css +2 -89
- package/dist/collection/components/cpsl-button/cpsl-button.js +5 -6
- package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
- package/dist/collection/components/cpsl-button/cpsl-button.stories.js.map +1 -1
- package/dist/collection/components/cpsl-card/cpsl-card.css +2 -5
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +0 -3
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +7 -11
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.css +1 -2
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +1 -1
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +2 -2
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +6 -1
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
- package/dist/collection/components/cpsl-hero/cpsl-hero.css +71 -136
- package/dist/collection/components/cpsl-hero/cpsl-hero.js +9 -63
- package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
- package/dist/collection/components/cpsl-icon/cpsl-icon.css +0 -8
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
- package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +2 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.css +2 -21
- package/dist/collection/components/cpsl-input/cpsl-input.js +28 -100
- package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
- package/dist/collection/components/{cpsl-auth-modal/cpsl-auth-modal.css → cpsl-modal/cpsl-modal.css} +58 -33
- package/dist/collection/components/{cpsl-auth-modal/cpsl-auth-modal.js → cpsl-modal/cpsl-modal.js} +129 -11
- package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -0
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +1 -1
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -1
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +1 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
- package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
- package/dist/collection/components/cpsl-popover/cpsl-popover.css +0 -2
- package/dist/collection/components/cpsl-popover/cpsl-popover.js +11 -9
- package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +3 -12
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +23 -28
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -1
- package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
- package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
- package/dist/collection/components/cpsl-select/cpsl-select.css +0 -17
- package/dist/collection/components/cpsl-select/cpsl-select.js +5 -95
- package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -1
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -1
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +8 -30
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +7 -5
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -1
- package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.css +1 -24
- package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -1
- package/dist/collection/components/cpsl-table/cpsl-table.js +9 -1
- package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +4 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +4 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
- package/dist/collection/components/cpsl-text/cpsl-text.css +0 -19
- package/dist/collection/components/cpsl-text/cpsl-text.js +4 -5
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +1 -3
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
- package/dist/collection/interface.js.map +1 -1
- package/dist/collection/utils/theme/generateBorderRadii.js +3 -4
- package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
- package/dist/collection/utils/theme/generatePalette.js +6 -22
- package/dist/collection/utils/theme/generatePalette.js.map +1 -1
- package/dist/collection/utils/theme/generateTheme.js +3 -9
- package/dist/collection/utils/theme/generateTheme.js.map +1 -1
- package/dist/collection/utils/theme/utils.js.map +1 -1
- package/dist/esm/_commonjsHelpers-1789f0cf.js +9 -0
- package/dist/esm/_commonjsHelpers-1789f0cf.js.map +1 -0
- package/dist/esm/capsule.js +1 -1
- package/dist/esm/{cpsl-alert_34.entry.js → cpsl-alert_33.entry.js} +13370 -16936
- package/dist/esm/cpsl-alert_33.entry.js.map +1 -0
- package/dist/esm/cpsl-animation.entry.js +1 -2
- package/dist/esm/cpsl-animation.entry.js.map +1 -1
- package/dist/esm/cpsl-hero.entry.js +7 -10
- package/dist/esm/cpsl-hero.entry.js.map +1 -1
- package/dist/esm/cpsl-identicon.entry.js +1 -1
- package/dist/esm/cpsl-info-box.entry.js +2 -2
- package/dist/esm/cpsl-info-box.entry.js.map +1 -1
- package/dist/esm/cpsl-modal-v2.entry.js +1 -1
- package/dist/esm/cpsl-modal-v2.entry.js.map +1 -1
- package/dist/esm/cpsl-row.entry.js +1 -1
- package/dist/esm/index-91db3414.js +2 -2
- package/dist/esm/index.js +12 -35
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/assets/icons/index.d.ts +0 -20
- package/dist/types/components/cpsl-button/cpsl-button.d.ts +2 -2
- package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +3 -18
- package/dist/types/components/cpsl-input/cpsl-input.d.ts +3 -13
- package/dist/types/components/{cpsl-auth-modal/cpsl-auth-modal.d.ts → cpsl-modal/cpsl-modal.d.ts} +23 -3
- package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +2 -2
- package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +0 -1
- package/dist/types/components/cpsl-select/cpsl-select.d.ts +1 -22
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +1 -1
- package/dist/types/components.d.ts +146 -222
- package/dist/types/interface.d.ts +0 -13
- package/dist/types/utils/theme/generateBorderRadii.d.ts +1 -1
- package/dist/types/utils/theme/generatePalette.d.ts +2 -4
- package/dist/types/utils/theme/generateTheme.d.ts +1 -1
- package/package.json +2 -3
- package/dist/capsule/p-0e558c7f.entry.js +0 -10
- package/dist/capsule/p-32cdf894.entry.js +0 -2
- package/dist/capsule/p-32cdf894.entry.js.map +0 -1
- package/dist/capsule/p-3b042fd1.entry.js +0 -2
- package/dist/capsule/p-5965b15e.entry.js +0 -2
- package/dist/capsule/p-60508b1e.entry.js +0 -20
- package/dist/capsule/p-60508b1e.entry.js.map +0 -1
- package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +0 -1
- package/dist/collection/assets/icons/arrow-circle-broken-down-left.svg +0 -3
- package/dist/collection/assets/icons/bank.svg +0 -3
- package/dist/collection/assets/icons/credit-card.svg +0 -3
- package/dist/collection/assets/icons/dot.svg +0 -3
- package/dist/collection/assets/icons/download.svg +0 -3
- package/dist/collection/assets/icons/globe.svg +0 -3
- package/dist/collection/assets/icons/hero-alert-circle.svg +0 -3
- package/dist/collection/assets/icons/hero-checkmark-capsule.svg +0 -11
- package/dist/collection/assets/icons/hero-checkmark.svg +0 -3
- package/dist/collection/assets/icons/hero-external-connection.svg +0 -71
- package/dist/collection/assets/icons/link-external.svg +0 -3
- package/dist/collection/assets/icons/log-out.svg +0 -3
- package/dist/collection/assets/icons/moonpay-brand.svg +0 -10
- package/dist/collection/assets/icons/puzzle-piece.svg +0 -3
- package/dist/collection/assets/icons/qr-code-02.svg +0 -3
- package/dist/collection/assets/icons/qr-code.svg +0 -3
- package/dist/collection/assets/icons/search.svg +0 -3
- package/dist/collection/assets/icons/send.svg +0 -3
- package/dist/collection/assets/icons/shield.svg +0 -3
- package/dist/collection/assets/icons/stripe-brand.svg +0 -3
- package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.js.map +0 -1
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.css +0 -97
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js +0 -121
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js.map +0 -1
- package/dist/esm/cpsl-alert_34.entry.js.map +0 -1
- package/dist/types/components/cpsl-icon-group/cpsl-icon-group.d.ts +0 -20
- /package/dist/capsule/{p-3b042fd1.entry.js.map → p-0eea90f8.entry.js.map} +0 -0
- /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
|
-
:
|
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
|
-
:
|
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
|
-
:
|
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
|
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
|
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
|
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
|
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:
|
200
|
-
height:
|
201
|
-
border-radius:
|
153
|
+
width: 480px;
|
154
|
+
height: 480px;
|
155
|
+
border-radius: 480px;
|
202
156
|
}
|
203
157
|
|
204
158
|
:host > .backgroundContainer > .background > .ring2 {
|
205
|
-
width:
|
206
|
-
height:
|
207
|
-
border-radius:
|
159
|
+
width: 360px;
|
160
|
+
height: 360px;
|
161
|
+
border-radius: 360px;
|
208
162
|
}
|
209
163
|
|
210
164
|
:host > .backgroundContainer > .background > .ring1 {
|
211
|
-
width:
|
212
|
-
height:
|
213
|
-
border-radius:
|
165
|
+
width: 240px;
|
166
|
+
height: 240px;
|
167
|
+
border-radius: 240px;
|
214
168
|
}
|
215
169
|
|
216
170
|
:host > .backgroundContainer > .background > .ring0 {
|
217
|
-
width:
|
218
|
-
height:
|
219
|
-
border-radius:
|
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
|
-
|
231
|
-
|
232
|
-
|
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 > .
|
199
|
+
:host > .backgroundContainer > .background > .ringCenter.approved {
|
262
200
|
position: absolute;
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
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
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
208
|
+
@keyframes spin {
|
209
|
+
from {
|
210
|
+
transform: rotate(0deg);
|
211
|
+
}
|
212
|
+
to {
|
213
|
+
transform: rotate(360deg);
|
214
|
+
}
|
289
215
|
}
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
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
|
-
.
|
299
|
-
animation: spin 2s linear infinite;
|
222
|
+
:host > .backgroundContainer > .background > .ringCenter.pending {
|
300
223
|
position: absolute;
|
301
|
-
|
302
|
-
|
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
|
-
:
|
314
|
-
|
239
|
+
:host > .backgroundContainer > .background > .ringCenter.pending img {
|
240
|
+
width: 100%;
|
241
|
+
height: 100%;
|
242
|
+
animation: spin 2s linear infinite;
|
315
243
|
}
|
316
244
|
|
317
|
-
.
|
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
|
-
|
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 {
|
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
|
-
|
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'
|
15
|
+
pending: this.variant === 'pending',
|
18
16
|
approved: this.variant === 'approved',
|
19
17
|
failed: this.variant === 'failed',
|
20
|
-
|
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": "'
|
76
|
-
"resolved": "\"approved\" | \"connection\" | \"
|
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: `\"
|
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,
|
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: '
|
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": "\"
|
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: '
|
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-
|
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: '
|
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:
|
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) -
|
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);
|