@getpara/core-components 2.0.0-dev.3 → 2.0.0-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-1591d4b0.entry.js +28 -0
- package/dist/capsule/p-1591d4b0.entry.js.map +1 -0
- package/dist/cjs/capsule.cjs.js +1 -1
- package/dist/cjs/cpsl-alert_34.cjs.entry.js +140 -50
- package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -1
- package/dist/cjs/index.cjs.js +5 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/icons/arrow-circle-down.svg +3 -0
- package/dist/collection/assets/icons/dots-square.svg +13 -0
- package/dist/collection/assets/icons/index.js +10 -0
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/assets/icons/para-arrow.svg +3 -0
- package/dist/collection/assets/icons/phantom.svg +8 -6
- package/dist/collection/assets/icons/user-01.svg +3 -0
- package/dist/collection/assets/icons/wallet-02.svg +3 -0
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
- package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.css +4 -4
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +39 -15
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
- package/dist/collection/components/cpsl-icon/cpsl-icon.css +12 -9
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +75 -2
- package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.js +1 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +1 -1
- package/dist/collection/components/cpsl-popover/cpsl-popover.js +42 -15
- package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
- package/dist/collection/components/cpsl-select/cpsl-select.css +5 -0
- package/dist/collection/components/cpsl-select/cpsl-select.js +23 -4
- package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.css +0 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +7 -2
- 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 +2 -2
- package/dist/collection/components/cpsl-text/cpsl-text.css +12 -0
- package/dist/collection/components/cpsl-text/cpsl-text.js +22 -1
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +10 -0
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +23 -2
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js.map +1 -1
- package/dist/collection/interface.js.map +1 -1
- package/dist/collection/utils/theme/generatePalette.js +3 -1
- package/dist/collection/utils/theme/generatePalette.js.map +1 -1
- package/dist/collection/utils/theme/generateTheme.js +2 -1
- package/dist/collection/utils/theme/generateTheme.js.map +1 -1
- package/dist/esm/capsule.js +1 -1
- package/dist/esm/cpsl-alert_34.entry.js +140 -50
- package/dist/esm/cpsl-alert_34.entry.js.map +1 -1
- package/dist/esm/index.js +5 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/scripts/appendLoaderExports.js +3 -3
- package/dist/scripts/appendLoaderExports.js.map +1 -1
- package/dist/types/assets/icons/index.d.ts +5 -0
- package/dist/types/components/cpsl-icon/cpsl-icon.d.ts +16 -0
- package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +5 -0
- package/dist/types/components/cpsl-select/cpsl-select.d.ts +6 -1
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +6 -0
- package/dist/types/components/cpsl-tile-button/cpsl-tile-button.d.ts +5 -0
- package/dist/types/components.d.ts +66 -2
- package/dist/types/interface.d.ts +1 -0
- package/dist/types/utils/theme/generatePalette.d.ts +1 -1
- package/dist/types/utils/theme/generateTheme.d.ts +1 -1
- package/package.json +2 -2
- package/dist/capsule/p-834c1ee9.entry.js +0 -28
- package/dist/capsule/p-834c1ee9.entry.js.map +0 -1
- /package/dist/types/Users/{keith/Documents/capsule → taylorbosch/Documents/GitHub/Capsule}/web-sdk/packages/core-components/.stencil/scripts/appendLoaderExports.d.ts +0 -0
- /package/dist/types/Users/{keith/Documents/capsule → taylorbosch/Documents/GitHub/Capsule}/web-sdk/packages/core-components/.stencil/scripts/buildAssets.d.ts +0 -0
|
@@ -6102,7 +6102,7 @@ gsap.registerPlugin(CSSPlugin);
|
|
|
6102
6102
|
|
|
6103
6103
|
var gsapWithCSS = gsap.registerPlugin(CSSPlugin) || gsap;
|
|
6104
6104
|
|
|
6105
|
-
const cpslAuthModalCss = ":host{--container-width:
|
|
6105
|
+
const cpslAuthModalCss = ":host{--container-width:420px;--container-gap:8px;--card-box-shadow:0px 2px 5px 0px rgba(0, 0, 0, 0.08);display:block;z-index:10011;position:relative}:host cpsl-overlay{z-index:10011}@media (max-width: 480px){:host(.include-mobile-styling) .modal-wrapper{scale:none;top:100%;left:0;height:unset;opacity:1}:host(.include-mobile-styling) .modal-container{width:100%;max-width:none;border-bottom-left-radius:0px;border-bottom-right-radius:0px}:host(.include-mobile-styling) .modal-body-card{--card-border-radius-bl:0px;--card-border-radius-br:0px}}:host(.force-mobile-media) .modal-wrapper{scale:none;top:100%;left:0;height:unset;opacity:1}:host(.force-mobile-media) .modal-container{width:100%;max-width:none;border-bottom-left-radius:0px;border-bottom-right-radius:0px}:host(.force-mobile-media) .modal-body-card{--card-border-radius-bl:0px;--card-border-radius-br:0px}:host(.no-overlay){z-index:0}:host(.no-overlay) .modal-body-card{--card-border-width:1px}:host(.no-overlay) .modal-container{max-height:unset}.modal-wrapper{z-index:10011;position:fixed;top:0;left:0;display:none;height:100%;width:100%;justify-content:center;align-items:center;scale:0.8;opacity:0;transform:none}.modal-container{position:relative;overflow:hidden;width:var(--container-width);display:flex;flex-direction:column;gap:var(--container-gap);max-width:95vw;max-height:95vh;max-height:95dvh;overflow:auto;-ms-overflow-style:none;scrollbar-width:none;}.modal-container ::-webkit-scrollbar{display:none}.modal-container.no-footer{gap:0px}.modal-body-card{--card-padding-top:16px;--card-padding-bottom:24px;--card-padding-start:24px;--card-padding-end:24px;--card-border-width:0px}.body::part(card-container){box-shadow:var(--card-box-shadow);width:100%}.no-opacity{opacity:0}.mobile-footer{margin-top:16px}.footer-hidden{height:0px;visibility:hidden;--card-padding-top:0px;--card-padding-bottom:0px;--card-padding-start:0px;--card-padding-end:0px;--card-border-width:0px}";
|
|
6106
6106
|
const CpslAuthModalStyle0 = cpslAuthModalCss;
|
|
6107
6107
|
|
|
6108
6108
|
const mm = gsapWithCSS.matchMedia();
|
|
@@ -6408,10 +6408,27 @@ const CpslCodeInput = class {
|
|
|
6408
6408
|
inputElements[ind].value = '';
|
|
6409
6409
|
return;
|
|
6410
6410
|
}
|
|
6411
|
+
// Prevent input beyond the maximum length
|
|
6412
|
+
if (this.code && this.code.length >= this.length) {
|
|
6413
|
+
inputElements[ind].value = this.code[ind] || '';
|
|
6414
|
+
return;
|
|
6415
|
+
}
|
|
6411
6416
|
const newCode = `${(_a = this.code) !== null && _a !== void 0 ? _a : ''}${ev.data}`;
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6417
|
+
// Ensure we don't exceed the maximum length
|
|
6418
|
+
if (newCode.length > this.length) {
|
|
6419
|
+
const truncatedCode = newCode.substring(0, this.length);
|
|
6420
|
+
this.cpslInput.emit({ value: truncatedCode });
|
|
6421
|
+
this.code = truncatedCode;
|
|
6422
|
+
// Set each input to its corresponding character
|
|
6423
|
+
inputElements.forEach((input, index) => {
|
|
6424
|
+
input.value = truncatedCode[index] || '';
|
|
6425
|
+
});
|
|
6426
|
+
}
|
|
6427
|
+
else {
|
|
6428
|
+
inputElements[Math.min(this.length - 1, newCode.length)].focus();
|
|
6429
|
+
this.cpslInput.emit({ value: newCode });
|
|
6430
|
+
this.code = newCode;
|
|
6431
|
+
}
|
|
6415
6432
|
}
|
|
6416
6433
|
};
|
|
6417
6434
|
this.handleKeyDown = (ind, ev) => {
|
|
@@ -6457,21 +6474,28 @@ const CpslCodeInput = class {
|
|
|
6457
6474
|
};
|
|
6458
6475
|
this.handlePaste = (e) => {
|
|
6459
6476
|
const inputElements = this.inputs;
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6477
|
+
let pastedCode = e.clipboardData.getData('text');
|
|
6478
|
+
// Filter based on type
|
|
6479
|
+
if (this.type === 'number') {
|
|
6480
|
+
// Remove all non-numeric characters
|
|
6481
|
+
pastedCode = pastedCode.replace(/\D/g, '');
|
|
6482
|
+
// If no valid numbers remain, clear and return
|
|
6483
|
+
if (!pastedCode) {
|
|
6484
|
+
setTimeout(() => {
|
|
6485
|
+
inputElements[0].value = '';
|
|
6486
|
+
}, 0);
|
|
6487
|
+
return;
|
|
6488
|
+
}
|
|
6467
6489
|
}
|
|
6490
|
+
// Truncate pasted code to match the expected length
|
|
6491
|
+
const truncatedCode = pastedCode.substring(0, this.length);
|
|
6468
6492
|
this.cpslInput.emit({
|
|
6469
|
-
value:
|
|
6493
|
+
value: truncatedCode,
|
|
6470
6494
|
});
|
|
6471
6495
|
inputElements.forEach((input, index) => {
|
|
6472
|
-
input.value =
|
|
6496
|
+
input.value = truncatedCode.charAt(index) || '';
|
|
6473
6497
|
});
|
|
6474
|
-
inputElements[Math.min(this.length - 1,
|
|
6498
|
+
inputElements[Math.min(this.length - 1, truncatedCode.length)].focus();
|
|
6475
6499
|
};
|
|
6476
6500
|
this.code = undefined;
|
|
6477
6501
|
this.errorText = undefined;
|
|
@@ -6484,10 +6508,10 @@ const CpslCodeInput = class {
|
|
|
6484
6508
|
}
|
|
6485
6509
|
render() {
|
|
6486
6510
|
var _a;
|
|
6487
|
-
return (h(Host, { key: '
|
|
6511
|
+
return (h(Host, { key: '090ef84f543cea35b4e128c5ec2bbcd188bb2a86' }, h("div", { key: '93d16d0a74e81cd367f8ee23bfbfea8118b39b0c', class: "code-container" }, new Array(this.length).fill(0).map((_, i) => {
|
|
6488
6512
|
var _a, _b;
|
|
6489
6513
|
return (h("input", { class: { 'code-input': true, 'error': Boolean(this.errorText), 'has-value': ((_a = this.code) === null || _a === void 0 ? void 0 : _a[i]) !== undefined }, id: `code-input-${i}`, onKeyDown: ev => this.handleKeyDown(i, ev), onInput: ev => this.handleInput(i, ev), onFocus: () => this.handleFocus(i), onPaste: this.handlePaste, min: 0, max: 9, value: (_b = this.code) === null || _b === void 0 ? void 0 : _b[i], inputMode: this.type === 'number' ? 'numeric' : 'text' }));
|
|
6490
|
-
})), (this.errorText || this.helperText) && (h("div", { key: '
|
|
6514
|
+
})), (this.errorText || this.helperText) && (h("div", { key: 'ae9ccf7cb7736ab4ad186f6d317afbb0f58a518c', class: { 'helper-text-container': true, 'error-text': Boolean(this.errorText) } }, h("cpsl-icon", { key: '1fb36b201fe1aa1640b39900881e8b1eaeff614d', icon: this.errorText ? 'alertCircle' : 'infoCircle' }), h("span", { key: '30cc9abb139ef14dca8fae44dfcbb61002e1ca6d' }, (_a = this.errorText) !== null && _a !== void 0 ? _a : this.helperText)))));
|
|
6491
6515
|
}
|
|
6492
6516
|
get el() { return getElement(this); }
|
|
6493
6517
|
};
|
|
@@ -6641,6 +6665,11 @@ const ArrowCircleDownFilled = `<svg width="32" height="32" viewBox="0 0 32 32" f
|
|
|
6641
6665
|
stroke-linecap="round" stroke-linejoin="round" />
|
|
6642
6666
|
</svg>`;
|
|
6643
6667
|
|
|
6668
|
+
const ArrowCircleDown = `<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6669
|
+
<path d="M8.5 12L12.5 16M12.5 16L16.5 12M12.5 16V8M22.5 12C22.5 17.5228 18.0228 22 12.5 22C6.97715 22 2.5 17.5228 2.5 12C2.5 6.47715 6.97715 2 12.5 2C18.0228 2 22.5 6.47715 22.5 12Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6670
|
+
</svg>
|
|
6671
|
+
`;
|
|
6672
|
+
|
|
6644
6673
|
const ArrowNarrow = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
6645
6674
|
<path d="M4 12H20M20 12L14 6M20 12L14 18" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6646
6675
|
</svg>
|
|
@@ -6913,6 +6942,21 @@ const Dot = `<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" view
|
|
|
6913
6942
|
<path d="M5 2.5C3.61929 2.5 2.5 3.61929 2.5 5C2.5 6.38071 3.61929 7.5 5 7.5C6.38071 7.5 7.5 6.38071 7.5 5C7.5 3.61929 6.38071 2.5 5 2.5Z"/>
|
|
6914
6943
|
</svg>`;
|
|
6915
6944
|
|
|
6945
|
+
const DotsSquare = `<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6946
|
+
<g opacity="0.1">
|
|
6947
|
+
<rect x="3.55566" y="3.05469" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
6948
|
+
<rect x="3.55566" y="12.2227" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
6949
|
+
<rect x="3.55566" y="21.3887" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
6950
|
+
<rect x="21.8887" y="3.05469" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
6951
|
+
<rect x="21.8887" y="12.2227" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
6952
|
+
<rect x="21.8887" y="21.3887" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
6953
|
+
<rect x="12.7227" y="3.05469" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
6954
|
+
<rect x="12.7227" y="12.2227" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
6955
|
+
<rect x="12.7227" y="21.3887" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
6956
|
+
</g>
|
|
6957
|
+
</svg>
|
|
6958
|
+
`;
|
|
6959
|
+
|
|
6916
6960
|
const Dots = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
6917
6961
|
<path
|
|
6918
6962
|
d="M12 6C12.5523 6 13 5.55228 13 5C13 4.44772 12.5523 4 12 4C11.4477 4 11 4.44772 11 5C11 5.55228 11.4477 6 12 6Z"
|
|
@@ -7699,6 +7743,11 @@ const OptimismBrand = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
7699
7743
|
<path class="st1" d="M259.3,314.6c-1.4,0-2.4-0.4-3.2-1.3c-0.6-1-0.8-2.1-0.6-3.4l25.9-122c0.2-1.4,0.9-2.5,2.1-3.4 c1.1-0.9,2.3-1.3,3.6-1.3H337c13.9,0,25,2.9,33.4,8.6c8.5,5.8,12.8,14.1,12.8,25c0,3.1-0.4,6.4-1.1,9.8c-3.1,14.4-9.4,25-19,31.9 c-9.4,6.9-22.3,10.3-38.7,10.3h-25.3l-8.6,41.1c-0.3,1.4-0.9,2.5-2.1,3.4c-1.1,0.9-2.3,1.3-3.6,1.3H259.3z M325.7,242.9 c5.3,0,9.8-1.4,13.7-4.3c4-2.9,6.6-7,7.9-12.4c0.4-2.1,0.6-4,0.6-5.6c0-3.6-1.1-6.4-3.2-8.3c-2.1-2-5.8-3-10.9-3h-22.5l-7.1,33.6 H325.7z"/>
|
|
7700
7744
|
</svg>`;
|
|
7701
7745
|
|
|
7746
|
+
const ParaArrow = `<svg width="31" height="31" viewBox="0 0 31 31" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7747
|
+
<path d="M31 0H8.85714V4.42857H19.9286C21.1515 4.42857 22.1429 5.41989 22.1429 6.64286C22.1429 7.86582 21.1515 8.85714 19.9286 8.85714H17.7143V11.0714C17.7143 12.2944 16.7229 13.2857 15.5 13.2857H13.2857V15.5C13.2857 16.723 12.2943 17.7143 11.0714 17.7143H8.85714V19.9286C8.85714 21.1515 7.86577 22.1429 6.64286 22.1429H4.42857V24.3571C4.42857 25.5801 3.4372 26.5714 2.21429 26.5714H0V31H4.42857V28.7857C4.42857 27.5627 5.41994 26.5714 6.64286 26.5714H8.85714V24.3571C8.85714 23.1342 9.84851 22.1429 11.0714 22.1429H13.2857V19.9286C13.2857 18.7056 14.2771 17.7143 15.5 17.7143H17.7143V15.5C17.7143 14.277 18.7057 13.2857 19.9286 13.2857H22.1429V11.0714C22.1429 9.84846 23.1342 8.85714 24.3571 8.85714C25.5801 8.85714 26.5714 9.84846 26.5714 11.0714V22.1429H31V0Z" fill="white"/>
|
|
7748
|
+
</svg>
|
|
7749
|
+
`;
|
|
7750
|
+
|
|
7702
7751
|
const ParaBlackBg = `<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70" fill="none" stroke="none">
|
|
7703
7752
|
<mask id="path-1-outside-1_1233_12577" maskUnits="userSpaceOnUse" x="0" y="0" width="70" height="70" fill="black" stroke="none">
|
|
7704
7753
|
<rect fill="white" stroke="none" width="70" height="70"/>
|
|
@@ -7844,13 +7893,15 @@ const Passcode = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xm
|
|
|
7844
7893
|
</svg>
|
|
7845
7894
|
`;
|
|
7846
7895
|
|
|
7847
|
-
const Phantom = `<svg width="
|
|
7848
|
-
<
|
|
7896
|
+
const Phantom = `<svg width="1200" height="1200" viewBox="0 0 1200 1200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7897
|
+
<g clip-path="url(#clip0_2596_138580)">
|
|
7898
|
+
<rect y="-0.000976562" width="1200" height="1200" fill="#AB9FF2"/>
|
|
7899
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M522.218 764.813C475.101 837.011 396.147 928.377 291.089 928.377C241.425 928.377 193.671 907.932 193.671 819.121C193.671 592.942 502.479 242.812 789.003 242.812C952.003 242.812 1016.95 355.901 1016.95 484.325C1016.95 649.167 909.979 837.65 803.647 837.65C769.901 837.65 753.346 819.121 753.346 789.731C753.346 782.064 754.62 773.758 757.167 764.813C720.874 826.788 650.835 884.292 585.253 884.292C537.499 884.292 513.304 854.262 513.304 812.093C513.304 796.759 516.487 780.786 522.218 764.813ZM769.035 479.871C769.035 517.293 746.956 536.003 722.258 536.003C697.185 536.003 675.481 517.293 675.481 479.871C675.481 442.449 697.185 423.738 722.258 423.738C746.956 423.738 769.035 442.449 769.035 479.871ZM909.367 479.872C909.367 517.294 887.288 536.005 862.59 536.005C837.517 536.005 815.813 517.294 815.813 479.872C815.813 442.45 837.517 423.74 862.59 423.74C887.288 423.74 909.367 442.45 909.367 479.872Z" fill="#FFFDF8"/>
|
|
7900
|
+
</g>
|
|
7849
7901
|
<defs>
|
|
7850
|
-
<
|
|
7851
|
-
<
|
|
7852
|
-
</
|
|
7853
|
-
<image id="image0_4266_576" width="128" height="128" preserveAspectRatio="none" xlink:href="data:image/png;base64,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"/>
|
|
7902
|
+
<clipPath id="clip0_2596_138580">
|
|
7903
|
+
<rect y="-0.000976562" width="1200" height="1200" rx="600" fill="white"/>
|
|
7904
|
+
</clipPath>
|
|
7854
7905
|
</defs>
|
|
7855
7906
|
</svg>
|
|
7856
7907
|
`;
|
|
@@ -8322,6 +8373,11 @@ const UsdcBrand = `<svg data-name="86977684-12db-4850-8f30-233a7c267d11" xmlns="
|
|
|
8322
8373
|
</svg>
|
|
8323
8374
|
`;
|
|
8324
8375
|
|
|
8376
|
+
const User01 = `<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8377
|
+
<path d="M20.5 21C20.5 19.6044 20.5 18.9067 20.3278 18.3389C19.94 17.0605 18.9395 16.06 17.6611 15.6722C17.0933 15.5 16.3956 15.5 15 15.5H10C8.60444 15.5 7.90665 15.5 7.33886 15.6722C6.06045 16.06 5.06004 17.0605 4.67224 18.3389C4.5 18.9067 4.5 19.6044 4.5 21M17 7.5C17 9.98528 14.9853 12 12.5 12C10.0147 12 8 9.98528 8 7.5C8 5.01472 10.0147 3 12.5 3C14.9853 3 17 5.01472 17 7.5Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8378
|
+
</svg>
|
|
8379
|
+
`;
|
|
8380
|
+
|
|
8325
8381
|
const UserCircle = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
8326
8382
|
<g id="user-circle">
|
|
8327
8383
|
<path id="Icon" d="M5.3163 19.4384C5.92462 18.0052 7.34492 17 9 17H15C16.6551 17 18.0754 18.0052 18.6837 19.4384M16 9.5C16 11.7091 14.2091 13.5 12 13.5C9.79086 13.5 8 11.7091 8 9.5C8 7.29086 9.79086 5.5 12 5.5C14.2091 5.5 16 7.29086 16 9.5ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -8368,6 +8424,11 @@ const Valora = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmln
|
|
|
8368
8424
|
</svg>
|
|
8369
8425
|
`;
|
|
8370
8426
|
|
|
8427
|
+
const Wallet02 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8428
|
+
<path d="M17 14H17.01M7 7H19C19.5304 7 20.0391 7.21071 20.4142 7.58579C20.7893 7.96086 21 8.46957 21 9V19C21 19.5304 20.7893 20.0391 20.4142 20.4142C20.0391 20.7893 19.5304 21 19 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8429
|
+
</svg>
|
|
8430
|
+
`;
|
|
8431
|
+
|
|
8371
8432
|
const WalletConnect = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8372
8433
|
<path d="M4.91331 7.87401C8.82718 4.042 15.1728 4.042 19.0867 7.87401L19.5577 8.33519C19.7534 8.52681 19.7534 8.83744 19.5577 9.02906L17.9464 10.6067C17.8486 10.7025 17.6899 10.7025 17.5921 10.6067L16.9439 9.97206C14.2134 7.29872 9.78656 7.29872 7.05612 9.97206L6.36193 10.6517C6.26412 10.7475 6.1055 10.7475 6.00762 10.6517L4.39631 9.07406C4.20056 8.88244 4.20056 8.57181 4.39631 8.38019L4.91331 7.87401ZM22.4191 11.1367L23.8532 12.5408C24.0489 12.7324 24.0489 13.0431 23.8532 13.2347L17.3868 19.566C17.1911 19.7576 16.8738 19.7576 16.6781 19.566L12.0886 15.0725C12.0397 15.0246 11.9604 15.0246 11.9114 15.0725L7.32206 19.566C7.12637 19.7576 6.80906 19.7576 6.61337 19.566L0.14677 13.2346C-0.0489234 13.043 -0.0489234 12.7324 0.14677 12.5407L1.58087 11.1366C1.77656 10.9451 2.09385 10.9451 2.28954 11.1366L6.87912 15.6302C6.928 15.6781 7.00731 15.6781 7.05625 15.6302L11.6456 11.1366C11.8412 10.9451 12.1586 10.9451 12.3542 11.1366L16.9438 15.6302C16.9927 15.6781 17.0721 15.6781 17.121 15.6302L21.7104 11.1367C21.9062 10.9451 22.2234 10.9451 22.4191 11.1367Z" fill="#3396FF"/>
|
|
8373
8434
|
</svg>
|
|
@@ -12399,6 +12460,7 @@ const Icons = {
|
|
|
12399
12460
|
arbitrumBrand: ArbitrumBrand,
|
|
12400
12461
|
arrowCircleBrokenDownLeft: ArrowCircleBrokenDownLeft,
|
|
12401
12462
|
arrowCircleDownFilled: ArrowCircleDownFilled,
|
|
12463
|
+
arrowCircleDown: ArrowCircleDown,
|
|
12402
12464
|
arrowNarrow: ArrowNarrow,
|
|
12403
12465
|
arrow: Arrow,
|
|
12404
12466
|
asterisk: Asterisk,
|
|
@@ -12440,6 +12502,7 @@ const Icons = {
|
|
|
12440
12502
|
discordBrand: DiscordBrand,
|
|
12441
12503
|
discord: Discord,
|
|
12442
12504
|
dot: Dot,
|
|
12505
|
+
dotsSquare: DotsSquare,
|
|
12443
12506
|
dots: Dots,
|
|
12444
12507
|
downloadCloud: DownloadCloud,
|
|
12445
12508
|
download: Download,
|
|
@@ -12509,6 +12572,7 @@ const Icons = {
|
|
|
12509
12572
|
nobleBrand: NobleBrand,
|
|
12510
12573
|
okx: Okx,
|
|
12511
12574
|
optimismBrand: OptimismBrand,
|
|
12575
|
+
paraArrow: ParaArrow,
|
|
12512
12576
|
paraBlackBg: ParaBlackBg,
|
|
12513
12577
|
paraBrand: ParaBrand,
|
|
12514
12578
|
paraIconBrand: ParaIconBrand,
|
|
@@ -12571,10 +12635,12 @@ const Icons = {
|
|
|
12571
12635
|
twitterBrand: TwitterBrand,
|
|
12572
12636
|
twitter: Twitter,
|
|
12573
12637
|
usdcBrand: UsdcBrand,
|
|
12638
|
+
user01: User01,
|
|
12574
12639
|
userCircle: UserCircle,
|
|
12575
12640
|
userPlus: UserPlus,
|
|
12576
12641
|
user: User,
|
|
12577
12642
|
valora: Valora,
|
|
12643
|
+
wallet02: Wallet02,
|
|
12578
12644
|
walletConnect: WalletConnect,
|
|
12579
12645
|
wallet: Wallet,
|
|
12580
12646
|
x: X,
|
|
@@ -13060,7 +13126,7 @@ const CpslFileUpload = class {
|
|
|
13060
13126
|
let inputIds$2 = 0;
|
|
13061
13127
|
CpslFileUpload.style = CpslFileUploadStyle0;
|
|
13062
13128
|
|
|
13063
|
-
const cpslIconCss = ":host{display:block;--filter:auto;--height:24px;--width:24px;--inset:0px;--
|
|
13129
|
+
const cpslIconCss = ":host{display:block;--filter:auto;--height:24px;--width:24px;--inset:0px;--computed-height:calc(var(--height) - (2 * var(--inset)));--computed-width:calc(var(--width) - (2 * var(--inset)));--icon-color:var(--icon-color, currentColor);--icon-fill-color:var(--icon-fill-color, var(--icon-color, currentColor));--icon-stroke-color:var(--icon-stroke-color, var(--icon-color, currentColor));width:var(--width);height:var(--height)}:host .foreground-0{fill:var(--cpsl-color-foreground-0);stop-color:var(--cpsl-color-foreground-0)}:host .accent-0{fill:var(--cpsl-color-accent-0, var(--cpsl-color-foreground-0));stop-color:var(--cpsl-color-accent-0, var(--cpsl-color-foreground-0))}:host div{display:flex;justify-content:center;align-items:center;width:100%;height:100%;border:var(--icon-border, auto);border-radius:var(--icon-border-radius, 0);background:var(--icon-background, transparent);color:var(--icon-color)}:host svg{width:var(--computed-width, \"100%\");height:var(--computed-height, \"100%\");filter:var(--filter)}:host svg .background-16{fill:var(--cpsl-color-background-16)}:host svg .foreground-0{fill:var(--cpsl-color-foreground-0)}:host svg .fill{fill:var(--icon-fill-color)}:host svg .stroke{stroke:var(--icon-stroke-color)}:host img{width:var(--computed-width, 100%);height:var(--computed-height, 100%);object-fit:contain}";
|
|
13064
13130
|
const CpslIconStyle0 = cpslIconCss;
|
|
13065
13131
|
|
|
13066
13132
|
const CpslIcon = class {
|
|
@@ -13071,9 +13137,13 @@ const CpslIcon = class {
|
|
|
13071
13137
|
this.invert = undefined;
|
|
13072
13138
|
this.inset = '0px';
|
|
13073
13139
|
this.icon = undefined;
|
|
13140
|
+
this.radius = 'none';
|
|
13141
|
+
this.background = undefined;
|
|
13142
|
+
this.color = undefined;
|
|
13143
|
+
this.border = undefined;
|
|
13074
13144
|
}
|
|
13075
13145
|
render() {
|
|
13076
|
-
return (h(Host, { key: '
|
|
13146
|
+
return (h(Host, { key: 'fda593bf99b0dedbd76080936d3c6ca40d4a3f39', part: "icon", role: "img", style: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (this.inset ? { ['--inset']: this.inset } : {})), (this.size ? { ['--height']: this.size, ['--width']: this.size } : {})), (this.invert ? { ['--filter']: 'invert(100%)' } : {})), (this.radius === 'full' ? { ['--icon-border-radius']: '1000px' } : {})), (this.radius === 'theme' ? { ['--icon-border-radius']: 'var(--cpsl-border-radius-tile-button)' } : {})), (this.background ? { ['--icon-background']: this.background } : {})), (this.border ? { ['--icon-border']: this.border } : {})), (this.color ? { ['--icon-color']: this.color } : {})) }, this.src ? (h("div", null, h("img", { src: this.src }))) : (h("div", { innerHTML: Icons[this.icon] }))));
|
|
13077
13147
|
}
|
|
13078
13148
|
};
|
|
13079
13149
|
CpslIcon.style = CpslIconStyle0;
|
|
@@ -17126,7 +17196,7 @@ const CpslNavButtonGroup = class {
|
|
|
17126
17196
|
};
|
|
17127
17197
|
CpslNavButtonGroup.style = CpslNavButtonGroupStyle0;
|
|
17128
17198
|
|
|
17129
|
-
const cpslOverlayCss = ":host{position:fixed;width:100%;height:100%;inset:0px;z-index:10001;opacity:0%;display:none;background:linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.7) 100%)}:host(.over-modal){z-index:10005}";
|
|
17199
|
+
const cpslOverlayCss = ":host{position:fixed;width:100%;height:100%;inset:0px;z-index:10001;opacity:0%;display:none;background:var(--cpsl-overlay-background, linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.7) 100%))}:host(.over-modal){z-index:10005}";
|
|
17130
17200
|
const CpslOverlayStyle0 = cpslOverlayCss;
|
|
17131
17201
|
|
|
17132
17202
|
const CpslOverlay = class {
|
|
@@ -17375,18 +17445,23 @@ const CpslPopover = class {
|
|
|
17375
17445
|
const elWidth = this.el.clientWidth;
|
|
17376
17446
|
const elHeight = this.el.clientHeight;
|
|
17377
17447
|
const { top, left, height, width } = anchorEl.getBoundingClientRect();
|
|
17378
|
-
|
|
17379
|
-
|
|
17380
|
-
|
|
17381
|
-
|
|
17382
|
-
|
|
17383
|
-
|
|
17384
|
-
|
|
17385
|
-
|
|
17386
|
-
|
|
17387
|
-
|
|
17388
|
-
|
|
17389
|
-
|
|
17448
|
+
if (this.alignCenter) {
|
|
17449
|
+
this.positionX = left + (width / 2 - elWidth / 2);
|
|
17450
|
+
}
|
|
17451
|
+
else {
|
|
17452
|
+
switch (this.anchorOriginHorizontal) {
|
|
17453
|
+
case 'left': {
|
|
17454
|
+
this.positionX = left;
|
|
17455
|
+
break;
|
|
17456
|
+
}
|
|
17457
|
+
case 'center': {
|
|
17458
|
+
this.positionX = left + width / 2;
|
|
17459
|
+
break;
|
|
17460
|
+
}
|
|
17461
|
+
case 'right': {
|
|
17462
|
+
this.positionX = left + width;
|
|
17463
|
+
break;
|
|
17464
|
+
}
|
|
17390
17465
|
}
|
|
17391
17466
|
}
|
|
17392
17467
|
switch (this.anchorOriginVertical) {
|
|
@@ -17463,6 +17538,7 @@ const CpslPopover = class {
|
|
|
17463
17538
|
this.preventBlur = undefined;
|
|
17464
17539
|
this.transformOriginHorizontal = 'left';
|
|
17465
17540
|
this.transformOriginVertical = 'top';
|
|
17541
|
+
this.alignCenter = false;
|
|
17466
17542
|
this.triggerAction = 'click';
|
|
17467
17543
|
this.trigger = undefined;
|
|
17468
17544
|
this.windowPadding = 16;
|
|
@@ -17508,7 +17584,7 @@ const CpslPopover = class {
|
|
|
17508
17584
|
}
|
|
17509
17585
|
render() {
|
|
17510
17586
|
var _a;
|
|
17511
|
-
return (h(Host, { key: '
|
|
17587
|
+
return (h(Host, { key: 'b089bf481952dd5183b53929b194af4378b60f85', class: {
|
|
17512
17588
|
'open': this.open,
|
|
17513
17589
|
'transform-h-left': this.transformOriginHorizontal === 'left',
|
|
17514
17590
|
'transform-h-center': this.transformOriginHorizontal === 'center',
|
|
@@ -17520,9 +17596,9 @@ const CpslPopover = class {
|
|
|
17520
17596
|
top: `${this.positionY}px`,
|
|
17521
17597
|
left: `${this.positionX}px`,
|
|
17522
17598
|
width: !this.open ? '0px' : this.autoWidth ? 'auto' : `${(_a = this.triggerEl) === null || _a === void 0 ? void 0 : _a.clientWidth}px`,
|
|
17523
|
-
} }, h("div", { key: '
|
|
17599
|
+
} }, h("div", { key: 'ffd47e631fa98bda0d70b65e8dd770cb7b5ee0ba', id: "container", class: { container: true, open: this.open }, style: {
|
|
17524
17600
|
visibility: this.hasSetInitialPosition ? 'visible' : 'hidden',
|
|
17525
|
-
} }, h("slot", { key: '
|
|
17601
|
+
} }, h("slot", { key: 'f43b727062744846e24a775321dd1220e20595bc' }))));
|
|
17526
17602
|
}
|
|
17527
17603
|
get el() { return getElement(this); }
|
|
17528
17604
|
static get watchers() { return {
|
|
@@ -17531,6 +17607,7 @@ const CpslPopover = class {
|
|
|
17531
17607
|
"preventBlur": ["onTriggerChange"],
|
|
17532
17608
|
"anchorOriginHorizontal": ["onAnchorChange"],
|
|
17533
17609
|
"anchorOriginVertical": ["onAnchorChange"],
|
|
17610
|
+
"alignCenter": ["onAnchorChange"],
|
|
17534
17611
|
"open": ["onOpenChange"]
|
|
17535
17612
|
}; }
|
|
17536
17613
|
};
|
|
@@ -21697,7 +21774,7 @@ const CpslRadio = class {
|
|
|
21697
21774
|
};
|
|
21698
21775
|
CpslRadio.style = CpslRadioStyle0;
|
|
21699
21776
|
|
|
21700
|
-
const cpslSelectCss = ":host{--container-box-shadow:none;--container-box-shadow-color:var(--cpsl-color-select-border-placeholder);--container-border-color:var(--cpsl-color-select-border-active);--container-border-error-color:var(--cpsl-color-select-border-error);--container-background-color:var(--cpsl-color-select-surface-default);--container-background-color-disabled:var(--cpsl-color-select-surface-disabled);--container-border-width:1px;--container-border-radius:var(--cpsl-border-radius-select);--container-padding-top:0px;--container-padding-bottom:0px;--container-padding-end:12px;--container-padding-start:12px;--container-height:48px;--container-gap:8px;--dropdown-margin-top:4px;--dropdown-border-width:1px;--dropdown-border-radius:var(--cpsl-border-radius-select);--dropdown-border-color:var(--cpsl-color-select-dropdown-border);--optional-label-color:var(--cpsl-color-text-secondary);--label-color:var(--cpsl-color-text-primary);--label-font-size:var(--cpsl-font-size-body-s);--label-margin-bottom:0px;--helper-text-color:var(--cpsl-color-text-secondary);--helper-text-error-color:var(--cpsl-color-text-error);--helper-text-icon-color:var(--cpsl-color-text-secondary);--helper-text-icon-error-color:var(--cpsl-color-text-error);--helper-text-icon-size:16px;--helper-text-font-size:var(--cpsl-font-size-body-xs);--helper-text-margin-top:0px;--select-color:var(--cpsl-color-text-primary);--icon-height:24px;--icon-width:24px;display:flex;flex-direction:column;gap:4px;font-family:var(--cpsl-font-family, inherit)}input{box-sizing:border-box;position:absolute;width:100%;height:100%;margin:0px;opacity:0;top:0;left:0;z-index:-1;cursor:pointer}input.disabled{cursor:default}:host(:not(.has-value)){--container-border-color:var(--cpsl-color-select-border-placeholder);--select-color:var(--cpsl-color-text-secondary)}:host(.disabled){--container-background-color:var(--container-background-color-disabled);--select-background-color:var(--select-background-color-disabled);--select-color:var(--cpsl-color-text-disabled)}:host(.focused){--container-box-shadow:0px 0px 0px 2px var(--container-box-shadow-color);--container-border-color:var(--cpsl-color-select-border-active);--container-background-color:var(--cpsl-color-select-surface-default)}.select-container{-webkit-padding-start:var(--container-padding-start);padding-inline-start:var(--container-padding-start);-webkit-padding-end:var(--container-padding-end);padding-inline-end:var(--container-padding-end);padding-top:var(--container-padding-top);padding-bottom:var(--container-padding-bottom);position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;height:var(--container-height);gap:var(--container-gap);cursor:pointer;border-style:solid;border-width:var(--container-border-width);border-color:var(--container-border-color);border-radius:var(--container-border-radius);background:var(--container-background-color);box-shadow:var(--container-box-shadow)}.error-container{border-color:var(--container-border-error-color)}.label{display:inline-block;color:var(--label-color);font-size:var(--label-font-size);font-weight:500;margin-bottom:var(--label-margin-bottom)}.optional-label{display:inline-block;color:var(--optional-label-color);font-size:var(--label-font-size);font-weight:500}.helper-text-container{display:flex;align-items:center;gap:4px;color:var(--helper-text-color);font-size:var(--helper-text-font-size);font-weight:500;margin-top:var(--helper-text-margin-top)}.helper-text-container cpsl-icon{--height:var(--helper-text-icon-size);--width:var(--helper-text-icon-size);--icon-color:var(--helper-text-icon-color)}.error-text{color:var(--helper-text-error-color)}.error-text cpsl-icon{--icon-color:var(--helper-text-icon-error-color)}.selected-container-content{flex:1}.selected-container-content.hidden{display:none}.chevron{transition:transform 0.3s ease;transform:rotate(180deg);--icon-color:var(--cpsl-color-text-disabled);--height:var(--icon-height);--width:var(--icon-width)}.chevron.open{transform:rotate(0deg);--icon-color:var(--cpsl-color-text-primary)}.chevron.has-value{--icon-color:var(--cpsl-color-text-primary)}.selected-text{--color-override:var(--select-color)}.selected-text.placeholder{--color-override:var(--select-color)}.dropdown{margin-top:var(--dropdown-margin-top);border-style:solid;border-width:var(--dropdown-border-width);border-color:var(--dropdown-border-color);border-radius:var(--dropdown-border-radius);overflow:hidden}.dropdown ::slotted(*:last-child){--container-border-width:0px}.dropdown-inner{overflow:auto;max-height:calc(100vh - 32px);scrollbar-width:thin}.dropdown-inner ::slotted(cpsl-input){padding:8px}.search-container{position:sticky;top:0px;padding:8px;background-color:var(--cpsl-color-select-surface-default)}";
|
|
21777
|
+
const cpslSelectCss = ":host{--container-box-shadow:none;--container-box-shadow-color:var(--cpsl-color-select-border-placeholder);--container-border-color:var(--cpsl-color-select-border-active);--container-border-error-color:var(--cpsl-color-select-border-error);--container-background-color:var(--cpsl-color-select-surface-default);--container-background-color-disabled:var(--cpsl-color-select-surface-disabled);--container-border-width:1px;--container-border-radius:var(--cpsl-border-radius-select);--container-padding-top:0px;--container-padding-bottom:0px;--container-padding-end:12px;--container-padding-start:12px;--container-height:48px;--container-gap:8px;--dropdown-margin-top:4px;--dropdown-border-width:1px;--dropdown-border-radius:var(--cpsl-border-radius-select);--dropdown-border-color:var(--cpsl-color-select-dropdown-border);--optional-label-color:var(--cpsl-color-text-secondary);--label-color:var(--cpsl-color-text-primary);--label-font-size:var(--cpsl-font-size-body-s);--label-margin-bottom:0px;--helper-text-color:var(--cpsl-color-text-secondary);--helper-text-error-color:var(--cpsl-color-text-error);--helper-text-icon-color:var(--cpsl-color-text-secondary);--helper-text-icon-error-color:var(--cpsl-color-text-error);--helper-text-icon-size:16px;--helper-text-font-size:var(--cpsl-font-size-body-xs);--helper-text-margin-top:0px;--select-color:var(--cpsl-color-text-primary);--icon-height:24px;--icon-width:24px;display:flex;flex-direction:column;gap:4px;font-family:var(--cpsl-font-family, inherit)}input{box-sizing:border-box;position:absolute;width:100%;height:100%;margin:0px;opacity:0;top:0;left:0;z-index:-1;cursor:pointer}input.disabled{cursor:default}:host(:not(.has-value)){--container-border-color:var(--cpsl-color-select-border-placeholder);--select-color:var(--cpsl-color-text-secondary)}:host(.disabled){--container-background-color:var(--container-background-color-disabled);--select-background-color:var(--select-background-color-disabled);--select-color:var(--cpsl-color-text-disabled)}:host(.focused){--container-box-shadow:0px 0px 0px 2px var(--container-box-shadow-color);--container-border-color:var(--cpsl-color-select-border-active);--container-background-color:var(--cpsl-color-select-surface-default)}.select-container{-webkit-padding-start:var(--container-padding-start);padding-inline-start:var(--container-padding-start);-webkit-padding-end:var(--container-padding-end);padding-inline-end:var(--container-padding-end);padding-top:var(--container-padding-top);padding-bottom:var(--container-padding-bottom);position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;height:var(--container-height);gap:var(--container-gap);cursor:pointer;border-style:solid;border-width:var(--container-border-width);border-color:var(--container-border-color);border-radius:var(--container-border-radius);background:var(--container-background-color);box-shadow:var(--container-box-shadow)}.error-container{border-color:var(--container-border-error-color)}.label{display:inline-block;color:var(--label-color);font-size:var(--label-font-size);font-weight:500;margin-bottom:var(--label-margin-bottom)}.optional-label{display:inline-block;color:var(--optional-label-color);font-size:var(--label-font-size);font-weight:500}.helper-text-container{display:flex;align-items:center;gap:4px;color:var(--helper-text-color);font-size:var(--helper-text-font-size);font-weight:500;margin-top:var(--helper-text-margin-top)}.helper-text-container cpsl-icon{--height:var(--helper-text-icon-size);--width:var(--helper-text-icon-size);--icon-color:var(--helper-text-icon-color)}.error-text{color:var(--helper-text-error-color)}.error-text cpsl-icon{--icon-color:var(--helper-text-icon-error-color)}.selected-container-content{flex:1}.selected-container-content.hidden{display:none}.chevron{transition:transform 0.3s ease;transform:rotate(180deg);--icon-color:var(--cpsl-color-text-disabled);--height:var(--icon-height);--width:var(--icon-width)}.chevron.open{transform:rotate(0deg);--icon-color:var(--cpsl-color-text-primary)}.chevron.has-value{--icon-color:var(--cpsl-color-text-primary)}.selected-text{--color-override:var(--select-color)}.selected-text.placeholder{--color-override:var(--select-color)}.dropdown{margin-top:var(--dropdown-margin-top);border-style:solid;border-width:var(--dropdown-border-width);border-color:var(--dropdown-border-color);border-radius:var(--dropdown-border-radius);overflow:hidden}.dropdown ::slotted(*:last-child){--container-border-width:0px}.dropdown-inner{overflow:auto;padding:var(--dropdown-inner-padding, 0px);display:flex;flex-direction:column;gap:var(--dropdown-inner-gap, 0px);background-color:var(--dropdown-background-color, var(--container-background-color));max-height:calc(100vh - 32px);scrollbar-width:thin}.dropdown-inner ::slotted(cpsl-input){padding:8px}.search-container{position:sticky;top:0px;padding:8px;background-color:var(--cpsl-color-select-surface-default)}";
|
|
21701
21778
|
const CpslSelectStyle0 = cpslSelectCss;
|
|
21702
21779
|
|
|
21703
21780
|
const CpslSelect = class {
|
|
@@ -21770,6 +21847,7 @@ const CpslSelect = class {
|
|
|
21770
21847
|
this.hasSelectedItem = false;
|
|
21771
21848
|
this.anchorElId = undefined;
|
|
21772
21849
|
this.autoWidth = false;
|
|
21850
|
+
this.alignCenter = false;
|
|
21773
21851
|
this.disabled = false;
|
|
21774
21852
|
this.dropdownMaxHeight = undefined;
|
|
21775
21853
|
this.errorText = undefined;
|
|
@@ -21816,10 +21894,10 @@ const CpslSelect = class {
|
|
|
21816
21894
|
render() {
|
|
21817
21895
|
var _a, _b, _c, _d, _e;
|
|
21818
21896
|
const selectedValueAsString = Array.isArray(this.selectedValue) ? this.selectedValue.join(', ') : this.selectedValue;
|
|
21819
|
-
return (h(Host, { key: '
|
|
21897
|
+
return (h(Host, { key: '6dc906dbe50086aa8c7fa422e60818d639414777', id: this.id, class: { 'disabled': this.disabled, 'focused': this.hasFocus, 'has-value': this.hasSelectedItem } }, this.label && (h("label", { key: '37d5d5bccea5e77e86586e9cd64386060913c95d', class: "label", htmlFor: this.inputId }, this.label, this.required ? '*' : ' ', !this.required && this.showOptionalLabel ? h("span", { class: "optional-label" }, "(optional)") : '')), h("div", { key: '218f32839c29ae5d822b93aeed3cdecb8d438abf', part: "select-container", id: "select-container", class: { 'select-container': true, 'error-container': Boolean(this.errorText) }, onClick: this.handleClick }, this.hasSelectedItem && this.showFormattedSelectedItem && h("slot", { key: '0a7533bb7431d18d25e3fd1f45a208ef5f751ffa', name: "selected-item" }), h("div", { key: 'ff5886e01acf82bd78dad8db7a372b462b7dd1b6', class: { 'selected-container-content': true, 'hidden': this.hasSelectedItem && this.showFormattedSelectedItem }, id: "selected-container-content", style: {} }, (!this.hasSelectedItem || !this.showFormattedSelectedItem) && (h("cpsl-text", { key: '0acdbbaa034fed2b4d7daf4c27522f58b26f46d9', class: { 'selected-text': true, 'placeholder': !this.selectedValue }, part: "selected-text", color: this.selectedItemColor, variant: this.selectedItemVariant, weight: this.selectedItemWeight }, !this.selectedValue ? ((_a = this.placeholder) !== null && _a !== void 0 ? _a : 'Select') : ((_c = (_b = this.formatValue) === null || _b === void 0 ? void 0 : _b.call(this, this.selectedValue)) !== null && _c !== void 0 ? _c : selectedValueAsString)))), this.icon && this.icon !== null && (h("cpsl-icon", { key: 'ec060c8f306b76575c073f0b10a9cfb037784a23', part: "icon", class: { 'chevron': true, 'open': !this.noIconAnimation && this.popoverOpen, 'has-value': this.hasSelectedItem }, icon: this.icon })), h("input", { key: '8443ce8e3f0e952b12e66686b11ec83a3a3986f4', id: this.inputId, disabled: this.disabled, class: { disabled: this.disabled }, value: this.selectedValue, onFocus: this.onFocus, onBlur: this.onBlur, onKeyPress: this.handleEnterPress, inputmode: "none" }), h("cpsl-popover", { key: '5094f8e466b39f98ad42ee4d585381d9072b15be', part: "popover", autoWidth: this.autoWidth, alignCenter: this.alignCenter, trigger: this.id, preventBlur: this.hasFocus, disabled: this.disabled, anchorEl: this.anchorEl }, h("div", { key: 'd25b7dcb7712d977817d80d7d64b51275d2f2836', part: "dropdown", class: "dropdown" }, this.showSearch && (h("div", { key: 'e7c28b844cb87339e42e5889036ad23816dba245', class: "search-container" }, h("cpsl-input", { key: 'a163fddbe94d0879db37c1e7ea29b3f24c6272a6', onClick: e => e.stopPropagation(), placeholder: (_d = this.searchPlaceholder) !== null && _d !== void 0 ? _d : 'Search', value: "", onCpslInput: e => {
|
|
21820
21898
|
e.stopPropagation();
|
|
21821
21899
|
this.cpslSearchChange.emit(e.detail.value);
|
|
21822
|
-
} }))), h("div", { key: '
|
|
21900
|
+
} }))), h("div", { key: '14b0ce4fc71cb82aa9a8f639c7b51772cb4661c1', class: "dropdown-inner", style: { maxHeight: `${this.dropdownMaxHeight}px` } }, h("slot", { key: 'afb08ac353a11be8b89f16884ed6509e21be2f6d', name: "items" }))))), (this.errorText || this.helperText) && (h("div", { key: 'b68520ddb728e5601fff5082d772d2fedc761850', class: { 'helper-text-container': true, 'error-text': Boolean(this.errorText) } }, h("span", { key: 'fd953ec9c15f952feb64f56b60f933d3a4223d1c' }, (_e = this.errorText) !== null && _e !== void 0 ? _e : this.helperText)))));
|
|
21823
21901
|
}
|
|
21824
21902
|
get el() { return getElement(this); }
|
|
21825
21903
|
static get watchers() { return {
|
|
@@ -21829,7 +21907,7 @@ const CpslSelect = class {
|
|
|
21829
21907
|
let inputIds = 0;
|
|
21830
21908
|
CpslSelect.style = CpslSelectStyle0;
|
|
21831
21909
|
|
|
21832
|
-
const cpslSelectItemCss = ":host{--outer-container-padding-start:8px;--outer-container-padding-end:8px;--outer-container-padding-top:8px;--outer-container-padding-bottom:8px;--container-background-color:var(--cpsl-color-select-surface-default);--container-hover-background-color:var(--cpsl-color-select-surface-hover);--container-border-radius:calc(var(--cpsl-border-radius-select) - 4px);--container-padding-start:8px;--container-padding-end:8px;--container-padding-top:8px;--container-padding-bottom:8px;display:block;font-family:var(--cpsl-font-family, inherit);color:var(--cpsl-color-text-primary);cursor:pointer}.inner-container{-webkit-padding-start:var(--container-padding-start);padding-inline-start:var(--container-padding-start);-webkit-padding-end:var(--container-padding-end);padding-inline-end:var(--container-padding-end);padding-top:var(--container-padding-top);padding-bottom:var(--container-padding-bottom);background-color:var(--container-background-color);border-radius:var(--container-border-radius);height:100%;display:flex;align-items:center}.outer-container{-webkit-padding-start:var(--outer-container-padding-start);padding-inline-start:var(--outer-container-padding-start);-webkit-padding-end:var(--outer-container-padding-end);padding-inline-end:var(--outer-container-padding-end);padding-top:var(--outer-container-padding-top);padding-bottom:var(--outer-container-padding-bottom)
|
|
21910
|
+
const cpslSelectItemCss = ":host{--outer-container-padding-start:8px;--outer-container-padding-end:8px;--outer-container-padding-top:8px;--outer-container-padding-bottom:8px;--container-background-color:var(--cpsl-color-select-surface-default);--container-hover-background-color:var(--cpsl-color-select-surface-hover);--container-border-radius:calc(var(--cpsl-border-radius-select) - 4px);--container-padding-start:8px;--container-padding-end:8px;--container-padding-top:8px;--container-padding-bottom:8px;display:block;font-family:var(--cpsl-font-family, inherit);color:var(--cpsl-color-text-primary);cursor:pointer}.inner-container{-webkit-padding-start:var(--container-padding-start);padding-inline-start:var(--container-padding-start);-webkit-padding-end:var(--container-padding-end);padding-inline-end:var(--container-padding-end);padding-top:var(--container-padding-top);padding-bottom:var(--container-padding-bottom);background-color:var(--container-background-color);border-radius:var(--container-border-radius);height:100%;display:flex;align-items:center}.outer-container{-webkit-padding-start:var(--outer-container-padding-start);padding-inline-start:var(--outer-container-padding-start);-webkit-padding-end:var(--outer-container-padding-end);padding-inline-end:var(--outer-container-padding-end);padding-top:var(--outer-container-padding-top);padding-bottom:var(--outer-container-padding-bottom)}.outer-container:hover>.inner-container{background-color:var(--container-hover-background-color)}.selected{background-color:var(--container-hover-background-color)}:host(.in-select-box){--container-background-color:transparent;--container-hover-background-color:transparent;--container-border-width:0px;--container-padding-start:0px;--container-padding-end:0px;--container-padding-top:0px;--container-padding-bottom:0px;flex:1;height:100%}";
|
|
21833
21911
|
const CpslSelectItemStyle0 = cpslSelectItemCss;
|
|
21834
21912
|
|
|
21835
21913
|
const CpslSelectItem = class {
|
|
@@ -21843,10 +21921,15 @@ const CpslSelectItem = class {
|
|
|
21843
21921
|
this.value = undefined;
|
|
21844
21922
|
}
|
|
21845
21923
|
render() {
|
|
21846
|
-
return (h(Host, { key: '532ed86577783bc61c40a18de178e63d16cf24c1' }, h("div", { key: '
|
|
21924
|
+
return (h(Host, { key: '532ed86577783bc61c40a18de178e63d16cf24c1' }, h("div", { key: 'b8204d608be86196abdb6aa9f87f945a81ed94aa', part: "outer-container", class: "outer-container", onClick: e => {
|
|
21925
|
+
var _a;
|
|
21926
|
+
const targetId = (_a = e.target.id) !== null && _a !== void 0 ? _a : '';
|
|
21927
|
+
if (targetId === 'ignore-click') {
|
|
21928
|
+
return;
|
|
21929
|
+
}
|
|
21847
21930
|
this.handleItemClick();
|
|
21848
21931
|
e.stopPropagation();
|
|
21849
|
-
} }, h("div", { key: '
|
|
21932
|
+
} }, h("div", { key: '39f0db01095055ae5a759d26f35abd862e188f4c', part: "inner-container", class: { 'inner-container': true, 'selected': this.selected } }, h("slot", { key: '2c813c62143a9003c6f45bc979986e375b15f6fe' })))));
|
|
21850
21933
|
}
|
|
21851
21934
|
};
|
|
21852
21935
|
CpslSelectItem.style = CpslSelectItemStyle0;
|
|
@@ -22202,7 +22285,7 @@ const getTab = (tabs, tab) => {
|
|
|
22202
22285
|
};
|
|
22203
22286
|
CpslTabs.style = CpslTabsStyle0;
|
|
22204
22287
|
|
|
22205
|
-
const cpslTextCss = ":host{display:block;font-family:var(--cpsl-font-family, inherit);padding:0px;margin:0px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smooth:never;font-synthesis:none}:host(.primary){color:var(--color-override, var(--cpsl-color-text-primary))}:host(.primary)>p,:host(.primary) h1,:host(.primary) h2,:host(.primary) h3,:host(.primary) h4,:host(.primary) h5,:host(.primary) h6{color:var(--color-override, var(--cpsl-color-text-primary))}:host(.secondary){color:var(--color-override, var(--cpsl-color-text-secondary))}:host(.secondary)>p,:host(.secondary) h1,:host(.secondary) h2,:host(.secondary) h3,:host(.secondary) h4,:host(.secondary) h5,:host(.secondary) h6{color:var(--color-override, var(--cpsl-color-text-secondary))}:host(.tertiary){color:var(--color-override, var(--cpsl-color-text-tertiary))}:host(.tertiary)>p,:host(.tertiary) h1,:host(.tertiary) h2,:host(.tertiary) h3,:host(.tertiary) h4,:host(.tertiary) h5,:host(.tertiary) h6{color:var(--color-override, var(--cpsl-color-text-tertiary))}:host(.subtle){color:var(--color-override, var(--cpsl-color-text-subtle))}:host(.subtle)>p,:host(.subtle) h1,:host(.subtle) h2,:host(.subtle) h3,:host(.subtle) h4,:host(.subtle) h5,:host(.subtle) h6{color:var(--color-override, var(--cpsl-color-text-subtle))}:host(.inverted){color:var(--color-override, var(--cpsl-color-text-inverted))}:host(.inverted)>p,:host(.inverted) h1,:host(.inverted) h2,:host(.inverted) h3,:host(.inverted) h4,:host(.inverted) h5,:host(.inverted) h6{color:var(--color-override, var(--cpsl-color-text-inverted))}:host(.error){color:var(--color-override, var(--cpsl-color-text-error))}:host(.error)>p,:host(.error) h1,:host(.error) h2,:host(.error) h3,:host(.error) h4,:host(.error) h5,:host(.error) h6{color:var(--color-override, var(--cpsl-color-text-error))}:host(.success){color:var(--color-override, var(--cpsl-color-utility-green))}:host(.success)>p,:host(.success) h1,:host(.success) h2,:host(.success) h3,:host(.success) h4,:host(.success) h5,:host(.success) h6{color:var(--color-override, var(--cpsl-color-utility-green))}:host(.contrast){color:var(--color-override, var(--cpsl-color-text-contrast))}:host(.contrast)>p,:host(.contrast) h1,:host(.contrast) h2,:host(.contrast) h3,:host(.contrast) h4,:host(.contrast) h5,:host(.contrast) h6{color:var(--color-override, var(--cpsl-color-text-contrast))}:host(.regular){font-weight:400}:host(.regular)>p,:host(.regular) h1,:host(.regular) h2,:host(.regular) h3,:host(.regular) h4,:host(.regular) h5,:host(.regular) h6{font-weight:400}:host(.medium){font-weight:500}:host(.medium)>p,:host(.medium) h1,:host(.medium) h2,:host(.medium) h3,:host(.medium) h4,:host(.medium) h5,:host(.medium) h6{font-weight:500}:host(.semi-bold){font-weight:600}:host(.semi-bold)>p,:host(.semi-bold) h1,:host(.semi-bold) h2,:host(.semi-bold) h3,:host(.semi-bold) h4,:host(.semi-bold) h5,:host(.semi-bold) h6{font-weight:600}:host(.bold){font-weight:700}:host(.bold)>p,:host(.bold) h1,:host(.bold) h2,:host(.bold) h3,:host(.bold) h4,:host(.bold) h5,:host(.bold) h6{font-weight:700}:host(.body-2xs){font-size:var(--cpsl-font-size-body-2xs)}:host(.body-2xs)>p,:host(.body-2xs) h1,:host(.body-2xs) h2,:host(.body-2xs) h3,:host(.body-2xs) h4,:host(.body-2xs) h5,:host(.body-2xs) h6{font-size:var(--cpsl-font-size-body-2xs)}:host(.body-xs){font-size:var(--cpsl-font-size-body-xs)}:host(.body-xs)>p,:host(.body-xs) h1,:host(.body-xs) h2,:host(.body-xs) h3,:host(.body-xs) h4,:host(.body-xs) h5,:host(.body-xs) h6{font-size:var(--cpsl-font-size-body-xs)}:host(.body-s){font-size:var(--cpsl-font-size-body-s);line-height:142.857%}:host(.body-s)>p,:host(.body-s) h1,:host(.body-s) h2,:host(.body-s) h3,:host(.body-s) h4,:host(.body-s) h5,:host(.body-s) h6{font-size:var(--cpsl-font-size-body-s);line-height:142.857%}:host(.body-m){font-size:var(--cpsl-font-size-body-m);line-height:150%}:host(.body-m)>p,:host(.body-m) h1,:host(.body-m) h2,:host(.body-m) h3,:host(.body-m) h4,:host(.body-m) h5,:host(.body-m) h6{font-size:var(--cpsl-font-size-body-m);line-height:150%}:host(.body-l){font-size:var(--cpsl-font-size-body-l);line-height:140%}:host(.body-l)>p,:host(.body-l) h1,:host(.body-l) h2,:host(.body-l) h3,:host(.body-l) h4,:host(.body-l) h5,:host(.body-l) h6{font-size:var(--cpsl-font-size-body-l);line-height:140%}:host(.body-xl){font-size:var(--cpsl-font-size-body-xl)}:host(.body-xl)>p,:host(.body-xl) h1,:host(.body-xl) h2,:host(.body-xl) h3,:host(.body-xl) h4,:host(.body-xl) h5,:host(.body-xl) h6{font-size:var(--cpsl-font-size-body-xl)}:host(.heading-xs){font-size:var(--cpsl-font-size-heading-xs)}:host(.heading-xs)>p,:host(.heading-xs) h1,:host(.heading-xs) h2,:host(.heading-xs) h3,:host(.heading-xs) h4,:host(.heading-xs) h5,:host(.heading-xs) h6{font-size:var(--cpsl-font-size-heading-xs)}:host(.heading-s){font-size:var(--cpsl-font-size-heading-s)}:host(.heading-s)>p,:host(.heading-s) h1,:host(.heading-s) h2,:host(.heading-s) h3,:host(.heading-s) h4,:host(.heading-s) h5,:host(.heading-s) h6{font-size:var(--cpsl-font-size-heading-s)}:host(.heading-m){font-size:var(--cpsl-font-size-heading-m);letter-spacing:-0.4px}:host(.heading-m)>p,:host(.heading-m) h1,:host(.heading-m) h2,:host(.heading-m) h3,:host(.heading-m) h4,:host(.heading-m) h5,:host(.heading-m) h6{font-size:var(--cpsl-font-size-heading-m);letter-spacing:-0.4px}:host(.heading-l){font-size:var(--cpsl-font-size-heading-l);letter-spacing:-1.12px}:host(.heading-l)>p,:host(.heading-l) h1,:host(.heading-l) h2,:host(.heading-l) h3,:host(.heading-l) h4,:host(.heading-l) h5,:host(.heading-l) h6{font-size:var(--cpsl-font-size-heading-l);letter-spacing:-1.12px}:host(.heading-xl){font-size:var(--cpsl-font-size-heading-xl);letter-spacing:-1.28px}:host(.heading-xl)>p,:host(.heading-xl) h1,:host(.heading-xl) h2,:host(.heading-xl) h3,:host(.heading-xl) h4,:host(.heading-xl) h5,:host(.heading-xl) h6{font-size:var(--cpsl-font-size-heading-xl);letter-spacing:-1.28px}:host(.heading-2xl){font-size:var(--cpsl-font-size-heading-2xl);letter-spacing:-1.44px}:host(.heading-2xl)>p,:host(.heading-2xl) h1,:host(.heading-2xl) h2,:host(.heading-2xl) h3,:host(.heading-2xl) h4,:host(.heading-2xl) h5,:host(.heading-2xl) h6{font-size:var(--cpsl-font-size-heading-2xl);letter-spacing:-1.44px}:host p,h1,h2,h3,h4,h5,h6{font-family:var(--cpsl-font-family, inherit);padding:0px;margin:0px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smooth:never;font-synthesis:none}:host p::-moz-selection,h1::-moz-selection,h2::-moz-selection,h3::-moz-selection,h4::-moz-selection,h5::-moz-selection,h6::-moz-selection{color:var(--cpsl-color-text-inverted) !important;background:var(--cpsl-color-background-64) !important}:host p::selection,h1::selection,h2::selection,h3::selection,h4::selection,h5::selection,h6::selection{color:var(--cpsl-color-text-inverted) !important;background:var(--cpsl-color-background-64) !important}";
|
|
22288
|
+
const cpslTextCss = ":host{display:block;font-family:var(--cpsl-font-family, inherit);padding:0px;margin:0px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smooth:never;font-synthesis:none}:host(.primary){color:var(--color-override, var(--cpsl-color-text-primary))}:host(.primary)>p,:host(.primary) h1,:host(.primary) h2,:host(.primary) h3,:host(.primary) h4,:host(.primary) h5,:host(.primary) h6{color:var(--color-override, var(--cpsl-color-text-primary))}:host(.secondary){color:var(--color-override, var(--cpsl-color-text-secondary))}:host(.secondary)>p,:host(.secondary) h1,:host(.secondary) h2,:host(.secondary) h3,:host(.secondary) h4,:host(.secondary) h5,:host(.secondary) h6{color:var(--color-override, var(--cpsl-color-text-secondary))}:host(.tertiary){color:var(--color-override, var(--cpsl-color-text-tertiary))}:host(.tertiary)>p,:host(.tertiary) h1,:host(.tertiary) h2,:host(.tertiary) h3,:host(.tertiary) h4,:host(.tertiary) h5,:host(.tertiary) h6{color:var(--color-override, var(--cpsl-color-text-tertiary))}:host(.subtle){color:var(--color-override, var(--cpsl-color-text-subtle))}:host(.subtle)>p,:host(.subtle) h1,:host(.subtle) h2,:host(.subtle) h3,:host(.subtle) h4,:host(.subtle) h5,:host(.subtle) h6{color:var(--color-override, var(--cpsl-color-text-subtle))}:host(.inverted){color:var(--color-override, var(--cpsl-color-text-inverted))}:host(.inverted)>p,:host(.inverted) h1,:host(.inverted) h2,:host(.inverted) h3,:host(.inverted) h4,:host(.inverted) h5,:host(.inverted) h6{color:var(--color-override, var(--cpsl-color-text-inverted))}:host(.error){color:var(--color-override, var(--cpsl-color-text-error))}:host(.error)>p,:host(.error) h1,:host(.error) h2,:host(.error) h3,:host(.error) h4,:host(.error) h5,:host(.error) h6{color:var(--color-override, var(--cpsl-color-text-error))}:host(.success){color:var(--color-override, var(--cpsl-color-utility-green))}:host(.success)>p,:host(.success) h1,:host(.success) h2,:host(.success) h3,:host(.success) h4,:host(.success) h5,:host(.success) h6{color:var(--color-override, var(--cpsl-color-utility-green))}:host(.contrast){color:var(--color-override, var(--cpsl-color-text-contrast))}:host(.contrast)>p,:host(.contrast) h1,:host(.contrast) h2,:host(.contrast) h3,:host(.contrast) h4,:host(.contrast) h5,:host(.contrast) h6{color:var(--color-override, var(--cpsl-color-text-contrast))}:host(.regular){font-weight:400}:host(.regular)>p,:host(.regular) h1,:host(.regular) h2,:host(.regular) h3,:host(.regular) h4,:host(.regular) h5,:host(.regular) h6{font-weight:400}:host(.medium){font-weight:500}:host(.medium)>p,:host(.medium) h1,:host(.medium) h2,:host(.medium) h3,:host(.medium) h4,:host(.medium) h5,:host(.medium) h6{font-weight:500}:host(.semi-bold){font-weight:600}:host(.semi-bold)>p,:host(.semi-bold) h1,:host(.semi-bold) h2,:host(.semi-bold) h3,:host(.semi-bold) h4,:host(.semi-bold) h5,:host(.semi-bold) h6{font-weight:600}:host(.bold){font-weight:700}:host(.bold)>p,:host(.bold) h1,:host(.bold) h2,:host(.bold) h3,:host(.bold) h4,:host(.bold) h5,:host(.bold) h6{font-weight:700}:host(.body-2xs){font-size:var(--cpsl-font-size-body-2xs)}:host(.body-2xs)>p,:host(.body-2xs) h1,:host(.body-2xs) h2,:host(.body-2xs) h3,:host(.body-2xs) h4,:host(.body-2xs) h5,:host(.body-2xs) h6{font-size:var(--cpsl-font-size-body-2xs)}:host(.body-xs){font-size:var(--cpsl-font-size-body-xs)}:host(.body-xs)>p,:host(.body-xs) h1,:host(.body-xs) h2,:host(.body-xs) h3,:host(.body-xs) h4,:host(.body-xs) h5,:host(.body-xs) h6{font-size:var(--cpsl-font-size-body-xs)}:host(.body-s){font-size:var(--cpsl-font-size-body-s);line-height:142.857%}:host(.body-s)>p,:host(.body-s) h1,:host(.body-s) h2,:host(.body-s) h3,:host(.body-s) h4,:host(.body-s) h5,:host(.body-s) h6{font-size:var(--cpsl-font-size-body-s);line-height:142.857%}:host(.body-m){font-size:var(--cpsl-font-size-body-m);line-height:150%}:host(.body-m)>p,:host(.body-m) h1,:host(.body-m) h2,:host(.body-m) h3,:host(.body-m) h4,:host(.body-m) h5,:host(.body-m) h6{font-size:var(--cpsl-font-size-body-m);line-height:150%}:host(.body-l){font-size:var(--cpsl-font-size-body-l);line-height:140%}:host(.body-l)>p,:host(.body-l) h1,:host(.body-l) h2,:host(.body-l) h3,:host(.body-l) h4,:host(.body-l) h5,:host(.body-l) h6{font-size:var(--cpsl-font-size-body-l);line-height:140%}:host(.body-xl){font-size:var(--cpsl-font-size-body-xl)}:host(.body-xl)>p,:host(.body-xl) h1,:host(.body-xl) h2,:host(.body-xl) h3,:host(.body-xl) h4,:host(.body-xl) h5,:host(.body-xl) h6{font-size:var(--cpsl-font-size-body-xl)}:host(.heading-xs){font-size:var(--cpsl-font-size-heading-xs)}:host(.heading-xs)>p,:host(.heading-xs) h1,:host(.heading-xs) h2,:host(.heading-xs) h3,:host(.heading-xs) h4,:host(.heading-xs) h5,:host(.heading-xs) h6{font-size:var(--cpsl-font-size-heading-xs)}:host(.heading-s){font-size:var(--cpsl-font-size-heading-s)}:host(.heading-s)>p,:host(.heading-s) h1,:host(.heading-s) h2,:host(.heading-s) h3,:host(.heading-s) h4,:host(.heading-s) h5,:host(.heading-s) h6{font-size:var(--cpsl-font-size-heading-s)}:host(.heading-m){font-size:var(--cpsl-font-size-heading-m);letter-spacing:-0.4px}:host(.heading-m)>p,:host(.heading-m) h1,:host(.heading-m) h2,:host(.heading-m) h3,:host(.heading-m) h4,:host(.heading-m) h5,:host(.heading-m) h6{font-size:var(--cpsl-font-size-heading-m);letter-spacing:-0.4px}:host(.heading-l){font-size:var(--cpsl-font-size-heading-l);letter-spacing:-1.12px}:host(.heading-l)>p,:host(.heading-l) h1,:host(.heading-l) h2,:host(.heading-l) h3,:host(.heading-l) h4,:host(.heading-l) h5,:host(.heading-l) h6{font-size:var(--cpsl-font-size-heading-l);letter-spacing:-1.12px}:host(.heading-xl){font-size:var(--cpsl-font-size-heading-xl);letter-spacing:-1.28px}:host(.heading-xl)>p,:host(.heading-xl) h1,:host(.heading-xl) h2,:host(.heading-xl) h3,:host(.heading-xl) h4,:host(.heading-xl) h5,:host(.heading-xl) h6{font-size:var(--cpsl-font-size-heading-xl);letter-spacing:-1.28px}:host(.heading-2xl){font-size:var(--cpsl-font-size-heading-2xl);letter-spacing:-1.44px}:host(.heading-2xl)>p,:host(.heading-2xl) h1,:host(.heading-2xl) h2,:host(.heading-2xl) h3,:host(.heading-2xl) h4,:host(.heading-2xl) h5,:host(.heading-2xl) h6{font-size:var(--cpsl-font-size-heading-2xl);letter-spacing:-1.44px}:host(.align-left){text-align:left}:host(.align-center){text-align:center}:host(.align-right){text-align:right}:host p,h1,h2,h3,h4,h5,h6{font-family:var(--cpsl-font-family, inherit);padding:0px;margin:0px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smooth:never;font-synthesis:none}:host p::-moz-selection,h1::-moz-selection,h2::-moz-selection,h3::-moz-selection,h4::-moz-selection,h5::-moz-selection,h6::-moz-selection{color:var(--cpsl-color-text-inverted) !important;background:var(--cpsl-color-background-64) !important}:host p::selection,h1::selection,h2::selection,h3::selection,h4::selection,h5::selection,h6::selection{color:var(--cpsl-color-text-inverted) !important;background:var(--cpsl-color-background-64) !important}";
|
|
22206
22289
|
const CpslTextStyle0 = cpslTextCss;
|
|
22207
22290
|
|
|
22208
22291
|
const TEXT_EL_PART = 'text-element';
|
|
@@ -22237,9 +22320,10 @@ const CpslText = class {
|
|
|
22237
22320
|
this.color = 'primary';
|
|
22238
22321
|
this.variant = 'bodyM';
|
|
22239
22322
|
this.weight = 'regular';
|
|
22323
|
+
this.align = undefined;
|
|
22240
22324
|
}
|
|
22241
22325
|
render() {
|
|
22242
|
-
return (h(Host, { key: '
|
|
22326
|
+
return (h(Host, { key: '893cf52df1fa3f8304e8fc61e92ad31abeafec91', class: {
|
|
22243
22327
|
// COLORS
|
|
22244
22328
|
'primary': this.color === 'primary',
|
|
22245
22329
|
'secondary': this.color === 'secondary',
|
|
@@ -22266,22 +22350,28 @@ const CpslText = class {
|
|
|
22266
22350
|
'heading-l': this.variant === 'headingL',
|
|
22267
22351
|
'heading-xl': this.variant === 'headingXL',
|
|
22268
22352
|
'heading-2xl': this.variant === 'heading2XL',
|
|
22353
|
+
'align-left': this.align === 'left',
|
|
22354
|
+
'align-center': this.align === 'center',
|
|
22355
|
+
'align-right': this.align === 'right',
|
|
22269
22356
|
} }, this.getContent()));
|
|
22270
22357
|
}
|
|
22271
22358
|
};
|
|
22272
22359
|
CpslText.style = CpslTextStyle0;
|
|
22273
22360
|
|
|
22274
|
-
const cpslTileButtonCss = ":host{--button-icon-color:var(--cpsl-color-text-primary);--button-border-radius:var(--cpsl-border-radius-tile-button);--button-background-color:var(--cpsl-color-tile-button-surface-default);--button-border-color:var(--cpsl-color-tile-button-border);--button-width:72px;--button-height:56px;--button-gap:8px}:host :hover{--button-background-color:var(--cpsl-color-tile-button-surface-hover)}:host :active{--button-background-color:var(--cpsl-color-tile-button-surface-pressed)}.button-native{border-radius:var(--button-border-radius);-webkit-padding-start:var(--button-padding-start);padding-inline-start:var(--button-padding-start);-webkit-padding-end:var(--button-padding-end);padding-inline-end:var(--button-padding-end);padding-top:var(--button-padding-top);padding-bottom:var(--button-padding-bottom);border:1px solid transparent;cursor:pointer;background:var(--button-background-color);border-color:var(--button-border-color);display:flex;flex-direction:column;gap:var(--button-gap);align-items:center;justify-content:center;width:var(--button-width);height:var(--button-height);box-shadow:var(--button-box-shadow)}.button-native cpsl-icon{--icon-color:var(--button-icon-color);--height:var(--button-icon-height);--width:var(--button-icon-width)}";
|
|
22361
|
+
const cpslTileButtonCss = ":host{--button-icon-color:var(--cpsl-color-text-primary);--button-border-radius:var(--cpsl-border-radius-tile-button);--button-background-color:var(--cpsl-color-tile-button-surface-default);--button-border-color:var(--cpsl-color-tile-button-border);--button-width:72px;--button-height:56px;--button-gap:8px}:host :hover{--button-background-color:var(--cpsl-color-tile-button-surface-hover)}:host :active{--button-background-color:var(--cpsl-color-tile-button-surface-pressed)}:host(.disabled){cursor:default;pointer-events:none;opacity:0.7}:host(.disabled) .button-native{cursor:default;pointer-events:none}.button-native{border-radius:var(--button-border-radius);-webkit-padding-start:var(--button-padding-start);padding-inline-start:var(--button-padding-start);-webkit-padding-end:var(--button-padding-end);padding-inline-end:var(--button-padding-end);padding-top:var(--button-padding-top);padding-bottom:var(--button-padding-bottom);border:1px solid transparent;cursor:pointer;background:var(--button-background-color);border-color:var(--button-border-color);display:flex;flex-direction:column;gap:var(--button-gap);align-items:center;justify-content:center;width:var(--button-width);height:var(--button-height);box-shadow:var(--button-box-shadow)}.button-native cpsl-icon{--icon-color:var(--button-icon-color);--height:var(--button-icon-height);--width:var(--button-icon-width)}";
|
|
22275
22362
|
const CpslTileButtonStyle0 = cpslTileButtonCss;
|
|
22276
22363
|
|
|
22277
22364
|
const CpslTileButton = class {
|
|
22278
22365
|
constructor(hostRef) {
|
|
22279
22366
|
registerInstance(this, hostRef);
|
|
22367
|
+
this.disabled = false;
|
|
22280
22368
|
this.src = undefined;
|
|
22281
22369
|
this.icon = undefined;
|
|
22282
22370
|
}
|
|
22283
22371
|
render() {
|
|
22284
|
-
return (h(Host, { key: '
|
|
22372
|
+
return (h(Host, { key: '4208b5b96abeaa297d65cbe341b8856b6fb1d5f7', class: {
|
|
22373
|
+
disabled: this.disabled,
|
|
22374
|
+
} }, h("button", { key: '15e33d66269d18cad46b69dd7e3b251a6b1672d3', class: "button-native", disabled: this.disabled }, h("cpsl-icon", { key: '5467bad2d0d6b976cefa3625c6878a7e2068b884', exportparts: "icon", src: this.src, icon: this.icon }), h("slot", { key: '209993a9288cfe3de961c955e132abd9ffa7e82a' }))));
|
|
22285
22375
|
}
|
|
22286
22376
|
};
|
|
22287
22377
|
CpslTileButton.style = CpslTileButtonStyle0;
|