@getpara/core-components 2.0.0-fc.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-f2393be6.js → p-05ec9ce7.js} +2 -2
- package/dist/capsule/{p-f2393be6.js.map → p-05ec9ce7.js.map} +1 -1
- package/dist/capsule/p-1e8a62c5.entry.js +2 -0
- package/dist/capsule/{p-75685be8.entry.js → p-380ece1c.entry.js} +2 -2
- package/dist/capsule/{p-de2a16e4.entry.js → p-77a9fdca.entry.js} +2 -2
- package/dist/capsule/{p-c9e61114.entry.js → p-822cb3ee.entry.js} +2 -2
- package/dist/capsule/{p-d4bdb369.entry.js → p-8da9205d.entry.js} +2 -2
- package/dist/capsule/{p-34a09932.entry.js → p-905a0742.entry.js} +2 -2
- package/dist/capsule/p-d34794ba.entry.js +28 -0
- package/dist/capsule/p-d34794ba.entry.js.map +1 -0
- package/dist/capsule/{p-5cd62456.entry.js → p-e63ae2dd.entry.js} +2 -2
- package/dist/capsule/{p-3719bb1e.entry.js → p-f9274763.entry.js} +2 -2
- package/dist/cjs/capsule.cjs.js +1 -1
- package/dist/cjs/{constants-9b1b01bb.js → constants-1de558ea.js} +3 -3
- package/dist/cjs/{constants-9b1b01bb.js.map → constants-1de558ea.js.map} +1 -1
- package/dist/cjs/cpsl-alert_34.cjs.entry.js +266 -84
- package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-col.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-grid.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-hero.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-identicon.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-info-box.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-nav-button.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
- package/dist/cjs/index.cjs.js +6 -3
- 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/arrow-up-down.svg +4 -0
- package/dist/collection/assets/icons/coins.svg +1 -0
- package/dist/collection/assets/icons/dots-square.svg +13 -0
- package/dist/collection/assets/icons/external-link.svg +3 -0
- package/dist/collection/assets/icons/index.js +20 -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/shuffle.svg +3 -0
- package/dist/collection/assets/icons/user-01.svg +3 -0
- package/dist/collection/assets/icons/wallet-02.svg +3 -0
- package/dist/collection/assets/icons/zap.svg +3 -0
- package/dist/collection/components/cpsl-alert/cpsl-alert.css +14 -8
- 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-button/cpsl-button.js +21 -2
- package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +1 -1
- package/dist/collection/components/cpsl-card/cpsl-card.js +1 -1
- package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +1 -1
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +111 -22
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
- package/dist/collection/components/cpsl-col/cpsl-col.js +1 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.js +1 -1
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +2 -2
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +1 -1
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +1 -1
- package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
- package/dist/collection/components/cpsl-hero/cpsl-hero.js +2 -2
- package/dist/collection/components/cpsl-icon/cpsl-icon.css +16 -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-icon-group/cpsl-icon-group.js +1 -1
- package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.js +2 -2
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +1 -1
- package/dist/collection/components/cpsl-nav-button/cpsl-nav-button.js +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.css +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.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 +2 -2
- 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 +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 +3 -3
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
- package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
- package/dist/collection/components/cpsl-table/cpsl-table.js +1 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
- 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/constants.js +2 -2
- package/dist/collection/constants.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/{constants-fce138fa.js → constants-fefad927.js} +3 -3
- package/dist/esm/{constants-fce138fa.js.map → constants-fefad927.js.map} +1 -1
- package/dist/esm/cpsl-alert_34.entry.js +266 -84
- package/dist/esm/cpsl-alert_34.entry.js.map +1 -1
- package/dist/esm/cpsl-col.entry.js +1 -1
- package/dist/esm/cpsl-grid.entry.js +2 -2
- package/dist/esm/cpsl-hero.entry.js +2 -2
- package/dist/esm/cpsl-identicon.entry.js +1 -1
- package/dist/esm/cpsl-info-box.entry.js +1 -1
- package/dist/esm/cpsl-modal-v2.entry.js +1 -1
- package/dist/esm/cpsl-nav-button.entry.js +1 -1
- package/dist/esm/cpsl-row.entry.js +1 -1
- package/dist/esm/index.js +6 -3
- 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 +10 -0
- package/dist/types/components/cpsl-button/cpsl-button.d.ts +5 -0
- package/dist/types/components/cpsl-code-input/cpsl-code-input.d.ts +2 -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 +74 -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/capsule/p-e424993a.entry.js +0 -2
- /package/dist/capsule/{p-e424993a.entry.js.map → p-1e8a62c5.entry.js.map} +0 -0
- /package/dist/capsule/{p-75685be8.entry.js.map → p-380ece1c.entry.js.map} +0 -0
- /package/dist/capsule/{p-de2a16e4.entry.js.map → p-77a9fdca.entry.js.map} +0 -0
- /package/dist/capsule/{p-c9e61114.entry.js.map → p-822cb3ee.entry.js.map} +0 -0
- /package/dist/capsule/{p-d4bdb369.entry.js.map → p-8da9205d.entry.js.map} +0 -0
- /package/dist/capsule/{p-34a09932.entry.js.map → p-905a0742.entry.js.map} +0 -0
- /package/dist/capsule/{p-5cd62456.entry.js.map → p-e63ae2dd.entry.js.map} +0 -0
- /package/dist/capsule/{p-3719bb1e.entry.js.map → p-f9274763.entry.js.map} +0 -0
- /package/dist/types/Users/{keith/Documents/capsule → norwood/capsule-repos}/web-sdk/packages/core-components/.stencil/scripts/appendLoaderExports.d.ts +0 -0
- /package/dist/types/Users/{keith/Documents/capsule → norwood/capsule-repos}/web-sdk/packages/core-components/.stencil/scripts/buildAssets.d.ts +0 -0
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-65f57499.js');
|
|
6
|
-
const constants = require('./constants-
|
|
6
|
+
const constants = require('./constants-1de558ea.js');
|
|
7
7
|
|
|
8
|
-
const cpslAlertCss = ":host{--container-gap:8px;--container-padding-top:
|
|
8
|
+
const cpslAlertCss = ":host{--container-gap:8px;--container-padding-top:8px;--container-padding-bottom:8px;--container-padding-start:8px;--container-padding-end:8px;--container-font-size:var(--cpsl-font-size-body-s);--container-border-width:1px;--container-border-radius:var(--cpsl-border-radius-alert);--container-background-color:var(--cpsl-color-background-0);--container-color:var(--cpsl-color-text-primary);--container-icon-color:var(--container-color);--container-align-items:center;--container-justify-content:center;--title-container-gap:8px;--title-container-align-items:flex-start;--title-container-justify-content:center;display:inline-block;font-family:var(--cpsl-font-family, inherit)}:host(.error){--container-color:var(--cpsl-color-black);--container-icon-color:var(--cpsl-color-utility-red);--container-border-color:var(--cpsl-color-utility-red)}:host(.error):host(.filled){--container-background-color:var(--cpsl-color-utility-red-light)}:host(.warning){--container-color:var(--cpsl-color-black);--container-icon-color:var(--cpsl-color-utility-yellow);--container-border-color:var(--cpsl-color-utility-yellow)}:host(.warning):host(.filled){--container-background-color:var(--cpsl-color-utility-yellow-light)}:host(.success){--container-color:var(--cpsl-color-black);--container-icon-color:var(--cpsl-color-utility-green);--container-border-color:var(--cpsl-color-utility-green)}:host(.success):host(.filled){--container-background-color:var(--cpsl-color-utility-green-light)}:host cpsl-icon{--icon-color:var(--container-icon-color);--height:24px;--width:24px}.alert-container{border-radius:var(--container-border-radius);-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);font-size:var(--container-font-size);display:flex;flex-direction:column;align-items:var(--container-align-items);justify-content:var(--container-justify-content);gap:var(--container-gap);border-style:solid;border-width:var(--container-border-width);border-color:var(--container-border-color);background-color:var(--container-background-color);color:var(--container-color)}.title-container{display:flex;align-items:var(--title-container-align-items);justify-content:var(--title-container-justify-content);gap:var(--title-container-gap)}";
|
|
9
9
|
const CpslAlertStyle0 = cpslAlertCss;
|
|
10
10
|
|
|
11
11
|
const CpslAlert = class {
|
|
@@ -6106,7 +6106,7 @@ gsap.registerPlugin(CSSPlugin);
|
|
|
6106
6106
|
|
|
6107
6107
|
var gsapWithCSS = gsap.registerPlugin(CSSPlugin) || gsap;
|
|
6108
6108
|
|
|
6109
|
-
const cpslAuthModalCss = ":host{--container-width:
|
|
6109
|
+
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}";
|
|
6110
6110
|
const CpslAuthModalStyle0 = cpslAuthModalCss;
|
|
6111
6111
|
|
|
6112
6112
|
const mm = gsapWithCSS.matchMedia();
|
|
@@ -6288,6 +6288,7 @@ const CpslButton = class {
|
|
|
6288
6288
|
index.registerInstance(this, hostRef);
|
|
6289
6289
|
this.as = 'button';
|
|
6290
6290
|
this.disabled = false;
|
|
6291
|
+
this.pending = false;
|
|
6291
6292
|
this.fullWidth = false;
|
|
6292
6293
|
this.href = undefined;
|
|
6293
6294
|
this.size = 'medium';
|
|
@@ -6296,7 +6297,7 @@ const CpslButton = class {
|
|
|
6296
6297
|
this.variant = 'primary';
|
|
6297
6298
|
}
|
|
6298
6299
|
render() {
|
|
6299
|
-
return (index.h(index.Host, { key: '
|
|
6300
|
+
return (index.h(index.Host, { key: '8f65c32aa3f0bcfcdf621ea1c1b4b4b383b28850', class: {
|
|
6300
6301
|
// VARIANTS
|
|
6301
6302
|
'primary': this.variant === 'primary',
|
|
6302
6303
|
'secondary': this.variant === 'secondary',
|
|
@@ -6310,7 +6311,7 @@ const CpslButton = class {
|
|
|
6310
6311
|
'xSmall': this.size === 'xSmall',
|
|
6311
6312
|
'small': this.size === 'small',
|
|
6312
6313
|
'medium': this.size === 'medium',
|
|
6313
|
-
} }, index.h(this.as, { key: '
|
|
6314
|
+
} }, index.h(this.as, { key: '1079c5db34801176d0aa51aaa02613a2357494fb', href: this.href, target: this.target, part: "button-native", class: "button-native", type: this.type, disabled: this.disabled || this.pending }, index.h("slot", { key: 'f5eaff65f6243b2506557e0cc2797217baa31db7', name: "start" }), this.pending ? index.h("cpsl-spinner", { size: 19 }) : index.h("slot", null), index.h("slot", { key: '257554b7f318af94ac762003129aa13f3b446767', name: "end" }))));
|
|
6314
6315
|
}
|
|
6315
6316
|
};
|
|
6316
6317
|
CpslButton.style = CpslButtonStyle0;
|
|
@@ -6352,7 +6353,7 @@ const CpslButtonGroup = class {
|
|
|
6352
6353
|
return this.el.querySelectorAll('&> *:not(cpsl-button)');
|
|
6353
6354
|
}
|
|
6354
6355
|
render() {
|
|
6355
|
-
return (index.h(index.Host, { key: '
|
|
6356
|
+
return (index.h(index.Host, { key: '13009bfa07a89c5bd9412683b8bc8338e9455dee' }, index.h("slot", { key: '308767ba6d3d3147f1ab60bcc98aa7ca1d1a2c28' })));
|
|
6356
6357
|
}
|
|
6357
6358
|
get el() { return index.getElement(this); }
|
|
6358
6359
|
static get watchers() { return {
|
|
@@ -6369,7 +6370,7 @@ const CpslCard = class {
|
|
|
6369
6370
|
index.registerInstance(this, hostRef);
|
|
6370
6371
|
}
|
|
6371
6372
|
render() {
|
|
6372
|
-
return (index.h(index.Host, { key: '
|
|
6373
|
+
return (index.h(index.Host, { key: 'f0b2545bd8c71dad45cdacc819695a7778bb9fcc' }, index.h("div", { key: '6c49feb59a958cc196d0c12a73839445353d44e7', class: { card: true }, part: "card-container" }, index.h("slot", { key: '04b3ecd54d97ea584a96b915d262a3d357d26fe4' }))));
|
|
6373
6374
|
}
|
|
6374
6375
|
};
|
|
6375
6376
|
CpslCard.style = CpslCardStyle0;
|
|
@@ -6387,7 +6388,7 @@ const CpslCheckbox = class {
|
|
|
6387
6388
|
this.checked = undefined;
|
|
6388
6389
|
}
|
|
6389
6390
|
render() {
|
|
6390
|
-
return (index.h(index.Host, { key: '
|
|
6391
|
+
return (index.h(index.Host, { key: '48249b9fb66fd8acff7fb444f39f1b6b86243b81' }, index.h("input", { key: 'adfca3d8961b8c5ca7d3b3616101772607cb4ee4', type: "checkbox", checked: this.checked }), index.h("span", { key: '0f4004593d47c1b6d36215eda48959770e99252e', onClick: this.handleCheckboxClick, class: { container: true, checked: this.checked } }, index.h("cpsl-icon", { key: '31395afa9b4b9cdcbe74fbccd9ec9abd2f03e441', icon: "check" }))));
|
|
6391
6392
|
}
|
|
6392
6393
|
};
|
|
6393
6394
|
CpslCheckbox.style = CpslCheckboxStyle0;
|
|
@@ -6400,7 +6401,6 @@ const CpslCodeInput = class {
|
|
|
6400
6401
|
index.registerInstance(this, hostRef);
|
|
6401
6402
|
this.cpslInput = index.createEvent(this, "cpslInput", 7);
|
|
6402
6403
|
this.handleInput = (ind, ev) => {
|
|
6403
|
-
var _a;
|
|
6404
6404
|
const inputElements = this.inputs;
|
|
6405
6405
|
// If getting an insertFromPaste remove the last element value since the value setting is handled in the paste event
|
|
6406
6406
|
if (ev.inputType === 'insertFromPaste') {
|
|
@@ -6409,42 +6409,110 @@ const CpslCodeInput = class {
|
|
|
6409
6409
|
}
|
|
6410
6410
|
if (ev.inputType === 'insertText') {
|
|
6411
6411
|
if (this.type === 'number' && isNaN(parseInt(ev.data))) {
|
|
6412
|
+
ev.preventDefault();
|
|
6412
6413
|
inputElements[ind].value = '';
|
|
6413
6414
|
return;
|
|
6414
6415
|
}
|
|
6415
|
-
|
|
6416
|
-
|
|
6416
|
+
// Prevent the default behavior FIRST
|
|
6417
|
+
ev.preventDefault();
|
|
6418
|
+
// Build the new code from the current component state, not the DOM
|
|
6419
|
+
const currentCode = this.code || '';
|
|
6420
|
+
// Insert the new character at the focused position, not at the end
|
|
6421
|
+
const beforeFocused = currentCode.substring(0, ind);
|
|
6422
|
+
const afterFocused = currentCode.substring(ind + 1);
|
|
6423
|
+
const newCode = beforeFocused + ev.data + afterFocused;
|
|
6424
|
+
// Prevent input beyond the maximum length
|
|
6425
|
+
if (newCode.length > this.length) {
|
|
6426
|
+
return;
|
|
6427
|
+
}
|
|
6428
|
+
// Update the component state and emit event
|
|
6417
6429
|
this.cpslInput.emit({ value: newCode });
|
|
6418
6430
|
this.code = newCode;
|
|
6431
|
+
// Update the specific input that was typed in
|
|
6432
|
+
inputElements[ind].value = ev.data;
|
|
6433
|
+
// Focus next input if not at the end
|
|
6434
|
+
if (ind < this.length - 1) {
|
|
6435
|
+
// Set flag to prevent handleFocus from interfering
|
|
6436
|
+
this.isArrowNavigation = true;
|
|
6437
|
+
setTimeout(() => {
|
|
6438
|
+
inputElements[ind + 1].focus();
|
|
6439
|
+
this.isArrowNavigation = false;
|
|
6440
|
+
}, 0);
|
|
6441
|
+
}
|
|
6419
6442
|
}
|
|
6420
6443
|
};
|
|
6444
|
+
this.isArrowNavigation = false;
|
|
6421
6445
|
this.handleKeyDown = (ind, ev) => {
|
|
6422
6446
|
const inputElements = this.inputs;
|
|
6423
6447
|
switch (ev.key) {
|
|
6424
6448
|
case 'Backspace': {
|
|
6425
6449
|
let newCode;
|
|
6426
6450
|
if (!inputElements[ind].value) {
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6451
|
+
// If current input is empty, move to previous and clear it
|
|
6452
|
+
if (ind > 0) {
|
|
6453
|
+
inputElements[ind - 1].value = '';
|
|
6454
|
+
setTimeout(() => {
|
|
6455
|
+
inputElements[ind - 1].focus();
|
|
6456
|
+
}, 0);
|
|
6457
|
+
// Remove character at previous position
|
|
6458
|
+
const currentCode = this.code || '';
|
|
6459
|
+
newCode = currentCode.substring(0, ind - 1) + currentCode.substring(ind);
|
|
6460
|
+
}
|
|
6461
|
+
else {
|
|
6462
|
+
newCode = this.code;
|
|
6463
|
+
}
|
|
6430
6464
|
}
|
|
6431
6465
|
else {
|
|
6432
|
-
|
|
6466
|
+
// Clear current input and remove character at current position
|
|
6467
|
+
inputElements[ind].value = '';
|
|
6468
|
+
const currentCode = this.code || '';
|
|
6469
|
+
newCode = currentCode.substring(0, ind) + currentCode.substring(ind + 1);
|
|
6433
6470
|
}
|
|
6434
6471
|
this.cpslInput.emit({ value: newCode });
|
|
6435
6472
|
this.code = newCode;
|
|
6436
6473
|
break;
|
|
6437
6474
|
}
|
|
6438
6475
|
case 'ArrowLeft': {
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6476
|
+
ev.preventDefault();
|
|
6477
|
+
if (ind > 0) {
|
|
6478
|
+
this.isArrowNavigation = true;
|
|
6479
|
+
setTimeout(() => {
|
|
6480
|
+
inputElements[ind - 1].focus();
|
|
6481
|
+
this.isArrowNavigation = false;
|
|
6482
|
+
}, 0);
|
|
6483
|
+
}
|
|
6484
|
+
break;
|
|
6485
|
+
}
|
|
6486
|
+
case 'ArrowRight': {
|
|
6487
|
+
ev.preventDefault();
|
|
6488
|
+
if (ind < this.length - 1) {
|
|
6489
|
+
this.isArrowNavigation = true;
|
|
6490
|
+
setTimeout(() => {
|
|
6491
|
+
inputElements[ind + 1].focus();
|
|
6492
|
+
this.isArrowNavigation = false;
|
|
6493
|
+
}, 0);
|
|
6494
|
+
}
|
|
6442
6495
|
break;
|
|
6443
6496
|
}
|
|
6444
6497
|
}
|
|
6445
6498
|
};
|
|
6446
6499
|
this.handleFocus = (ind) => {
|
|
6447
6500
|
const inputElements = this.inputs;
|
|
6501
|
+
// Don't interfere with arrow key navigation
|
|
6502
|
+
if (this.isArrowNavigation) {
|
|
6503
|
+
setTimeout(() => {
|
|
6504
|
+
inputElements[ind].setSelectionRange(1, 1);
|
|
6505
|
+
}, 0);
|
|
6506
|
+
return;
|
|
6507
|
+
}
|
|
6508
|
+
// If the focused input already has a value, allow it to stay focused (user clicked on it)
|
|
6509
|
+
if (inputElements[ind].value) {
|
|
6510
|
+
setTimeout(() => {
|
|
6511
|
+
inputElements[ind].setSelectionRange(1, 1);
|
|
6512
|
+
}, 0);
|
|
6513
|
+
return;
|
|
6514
|
+
}
|
|
6515
|
+
// Otherwise, use the default focus logic (find first empty or go to last)
|
|
6448
6516
|
for (const input of inputElements) {
|
|
6449
6517
|
if (!input.value) {
|
|
6450
6518
|
input.focus();
|
|
@@ -6461,21 +6529,28 @@ const CpslCodeInput = class {
|
|
|
6461
6529
|
};
|
|
6462
6530
|
this.handlePaste = (e) => {
|
|
6463
6531
|
const inputElements = this.inputs;
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6532
|
+
let pastedCode = e.clipboardData.getData('text');
|
|
6533
|
+
// Filter based on type
|
|
6534
|
+
if (this.type === 'number') {
|
|
6535
|
+
// Remove all non-numeric characters
|
|
6536
|
+
pastedCode = pastedCode.replace(/\D/g, '');
|
|
6537
|
+
// If no valid numbers remain, clear and return
|
|
6538
|
+
if (!pastedCode) {
|
|
6539
|
+
setTimeout(() => {
|
|
6540
|
+
inputElements[0].value = '';
|
|
6541
|
+
}, 0);
|
|
6542
|
+
return;
|
|
6543
|
+
}
|
|
6471
6544
|
}
|
|
6545
|
+
// Truncate pasted code to match the expected length
|
|
6546
|
+
const truncatedCode = pastedCode.substring(0, this.length);
|
|
6472
6547
|
this.cpslInput.emit({
|
|
6473
|
-
value:
|
|
6548
|
+
value: truncatedCode,
|
|
6474
6549
|
});
|
|
6475
6550
|
inputElements.forEach((input, index) => {
|
|
6476
|
-
input.value =
|
|
6551
|
+
input.value = truncatedCode.charAt(index) || '';
|
|
6477
6552
|
});
|
|
6478
|
-
inputElements[Math.min(this.length - 1,
|
|
6553
|
+
inputElements[Math.min(this.length - 1, truncatedCode.length)].focus();
|
|
6479
6554
|
};
|
|
6480
6555
|
this.code = undefined;
|
|
6481
6556
|
this.errorText = undefined;
|
|
@@ -6483,17 +6558,29 @@ const CpslCodeInput = class {
|
|
|
6483
6558
|
this.length = undefined;
|
|
6484
6559
|
this.type = 'number';
|
|
6485
6560
|
}
|
|
6561
|
+
watchCodeProp(newCode) {
|
|
6562
|
+
// Update the input values when the code prop changes externally
|
|
6563
|
+
const inputElements = this.inputs;
|
|
6564
|
+
if (inputElements.length > 0) {
|
|
6565
|
+
inputElements.forEach((input, index) => {
|
|
6566
|
+
input.value = (newCode === null || newCode === void 0 ? void 0 : newCode[index]) || '';
|
|
6567
|
+
});
|
|
6568
|
+
}
|
|
6569
|
+
}
|
|
6486
6570
|
get inputs() {
|
|
6487
6571
|
return Array.from(this.el.shadowRoot.querySelectorAll('input'));
|
|
6488
6572
|
}
|
|
6489
6573
|
render() {
|
|
6490
6574
|
var _a;
|
|
6491
|
-
return (index.h(index.Host, { key: '
|
|
6575
|
+
return (index.h(index.Host, { key: '16e16cc803f099963c784ed7bbd688afb7b8a59f' }, index.h("div", { key: 'b3f3a0ba95daf12f4e504bf91e9d8e57b3d97b44', class: "code-container" }, new Array(this.length).fill(0).map((_, i) => {
|
|
6492
6576
|
var _a, _b;
|
|
6493
6577
|
return (index.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' }));
|
|
6494
|
-
})), (this.errorText || this.helperText) && (index.h("div", { key: '
|
|
6578
|
+
})), (this.errorText || this.helperText) && (index.h("div", { key: '8f01ee92d99bbdde0f0b501640bb3136e4e134f8', class: { 'helper-text-container': true, 'error-text': Boolean(this.errorText) } }, index.h("cpsl-icon", { key: '52a8d308da8c4fad19eec139510df8439a39b6d7', icon: this.errorText ? 'alertCircle' : 'infoCircle' }), index.h("span", { key: '2d87ea9d774e51055774e76f71074e0eb0d60b10' }, (_a = this.errorText) !== null && _a !== void 0 ? _a : this.helperText)))));
|
|
6495
6579
|
}
|
|
6496
6580
|
get el() { return index.getElement(this); }
|
|
6581
|
+
static get watchers() { return {
|
|
6582
|
+
"code": ["watchCodeProp"]
|
|
6583
|
+
}; }
|
|
6497
6584
|
};
|
|
6498
6585
|
CpslCodeInput.style = CpslCodeInputStyle0;
|
|
6499
6586
|
|
|
@@ -6505,7 +6592,7 @@ const CpslDivider = class {
|
|
|
6505
6592
|
index.registerInstance(this, hostRef);
|
|
6506
6593
|
}
|
|
6507
6594
|
render() {
|
|
6508
|
-
return (index.h(index.Host, { key: '
|
|
6595
|
+
return (index.h(index.Host, { key: 'cffec64f3c150902ccff40b2362ce76dda41e32d' }, index.h("div", { key: '3ae8f787af8f4f112f0f3c51aa102b89fd7d8529' }), index.h("slot", { key: '1a6a2a37cd1966ec492e95b0d5cb718f484cc821' }), index.h("div", { key: '3fbe5d32823ad65a5404a6419d5ea26a73a03290' })));
|
|
6509
6596
|
}
|
|
6510
6597
|
};
|
|
6511
6598
|
CpslDivider.style = CpslDividerStyle0;
|
|
@@ -6547,12 +6634,12 @@ const CpslDrawer = class {
|
|
|
6547
6634
|
const setHeight = this.anchor === 'top' || this.anchor === 'bottom';
|
|
6548
6635
|
const startingAnchor = (_a = `${this.anchorPosition}px`) !== null && _a !== void 0 ? _a : '0px';
|
|
6549
6636
|
const size = this.size === 'auto' ? 'auto' : `${this.size}px`;
|
|
6550
|
-
return (index.h(index.Host, { key: '
|
|
6637
|
+
return (index.h(index.Host, { key: '8e9be7d905e533ffe26c5a13841c7b6770633414', style: Object.assign({ width: setHeight ? '100vw' : size, height: setHeight ? size : '100vh', transitionDuration: `${this.showTransition ? this.transitionDuration : 0}s`, transitionTimingFunction: `${this.transitionFunction}`, [this.anchor]: this.open || this.variant === 'permanent' ? startingAnchor : this.closedAnchorPosition, opacity: this.closedAnchorPosition === undefined ? '0' : '1' }, (this.zIndexOverride ? { zIndex: `${this.zIndexOverride}` } : {})), class: {
|
|
6551
6638
|
top: this.anchor === 'top',
|
|
6552
6639
|
bottom: this.anchor === 'bottom',
|
|
6553
6640
|
left: this.anchor === 'left',
|
|
6554
6641
|
right: this.anchor === 'right',
|
|
6555
|
-
} }, this.variant === 'temporary' && !this.noOverlay && index.h("cpsl-overlay", { key: '
|
|
6642
|
+
} }, this.variant === 'temporary' && !this.noOverlay && index.h("cpsl-overlay", { key: 'b661c385794ab39eb87a304455da85602fadd349', open: this.open, zIndexOverride: constants.DEFAULT_Z_INDICES.modal + 1 }), index.h("div", { key: '1ad94f53ce752f518568139cd33e2aa11caa6d58', id: "container", class: "container", part: "container" }, index.h("slot", { key: '2bd9efb1ed55c388fd4c34e43900a7807f32a0ff' }))));
|
|
6556
6643
|
}
|
|
6557
6644
|
get el() { return index.getElement(this); }
|
|
6558
6645
|
};
|
|
@@ -6645,11 +6732,22 @@ const ArrowCircleDownFilled = `<svg width="32" height="32" viewBox="0 0 32 32" f
|
|
|
6645
6732
|
stroke-linecap="round" stroke-linejoin="round" />
|
|
6646
6733
|
</svg>`;
|
|
6647
6734
|
|
|
6735
|
+
const ArrowCircleDown = `<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6736
|
+
<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"/>
|
|
6737
|
+
</svg>
|
|
6738
|
+
`;
|
|
6739
|
+
|
|
6648
6740
|
const ArrowNarrow = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
6649
6741
|
<path d="M4 12H20M20 12L14 6M20 12L14 18" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6650
6742
|
</svg>
|
|
6651
6743
|
`;
|
|
6652
6744
|
|
|
6745
|
+
const ArrowUpDown = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6746
|
+
<path d="M3.85355 1.64645C3.65829 1.45118 3.34171 1.45118 3.14645 1.64645L1.14645 3.64645C0.951184 3.84171 0.951184 4.15829 1.14645 4.35355C1.34171 4.54882 1.65829 4.54882 1.85355 4.35355L3 3.20711L3 10C3 10.2761 3.22386 10.5 3.5 10.5C3.77614 10.5 4 10.2761 4 10L4 3.20711L5.14645 4.35355C5.34171 4.54882 5.65829 4.54882 5.85355 4.35355C6.04882 4.15829 6.04882 3.84171 5.85355 3.64645L3.85355 1.64645Z" fill="currentColor"/>
|
|
6747
|
+
<path d="M9 8.79289V2C9 1.72386 8.77614 1.5 8.5 1.5C8.22386 1.5 8 1.72386 8 2V8.79289L6.85355 7.64645C6.65829 7.45118 6.34171 7.45118 6.14645 7.64645C5.95118 7.84171 5.95118 8.15829 6.14645 8.35355L8.14645 10.3536C8.34171 10.5488 8.65829 10.5488 8.85355 10.3536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645C10.6583 7.45118 10.3417 7.45118 10.1464 7.64645L9 8.79289Z" fill="currentColor"/>
|
|
6748
|
+
</svg>
|
|
6749
|
+
`;
|
|
6750
|
+
|
|
6653
6751
|
const Arrow = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
6654
6752
|
<path d="M5 12H19M19 12L12 5M19 12L12 19" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6655
6753
|
</svg>
|
|
@@ -6797,6 +6895,9 @@ const Coinbase = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xm
|
|
|
6797
6895
|
</svg>
|
|
6798
6896
|
`;
|
|
6799
6897
|
|
|
6898
|
+
const Coins = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-coins-icon lucide-coins"><circle cx="8" cy="8" r="6"/><path d="M18.09 10.37A6 6 0 1 1 10.34 18"/><path d="M7 6h1v4"/><path d="m16.71 13.88.7.71-2.82 2.82"/></svg>
|
|
6899
|
+
`;
|
|
6900
|
+
|
|
6800
6901
|
const Copy07 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
6801
6902
|
<g id="copy-07">
|
|
6802
6903
|
<path id="Icon" d="M10.5 2.0028C9.82495 2.01194 9.4197 2.05103 9.09202 2.21799C8.71569 2.40973 8.40973 2.71569 8.21799 3.09202C8.05103 3.4197 8.01194 3.82495 8.0028 4.5M19.5 2.0028C20.1751 2.01194 20.5803 2.05103 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C21.949 3.4197 21.9881 3.82494 21.9972 4.49999M21.9972 13.5C21.9881 14.175 21.949 14.5803 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.5803 15.949 20.1751 15.9881 19.5 15.9972M22 7.99999V9.99999M14.0001 2H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -6917,6 +7018,21 @@ const Dot = `<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" view
|
|
|
6917
7018
|
<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"/>
|
|
6918
7019
|
</svg>`;
|
|
6919
7020
|
|
|
7021
|
+
const DotsSquare = `<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7022
|
+
<g opacity="0.1">
|
|
7023
|
+
<rect x="3.55566" y="3.05469" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
7024
|
+
<rect x="3.55566" y="12.2227" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
7025
|
+
<rect x="3.55566" y="21.3887" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
7026
|
+
<rect x="21.8887" y="3.05469" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
7027
|
+
<rect x="21.8887" y="12.2227" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
7028
|
+
<rect x="21.8887" y="21.3887" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
7029
|
+
<rect x="12.7227" y="3.05469" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
7030
|
+
<rect x="12.7227" y="12.2227" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
7031
|
+
<rect x="12.7227" y="21.3887" width="3.05556" height="3.05556" fill="currentColor"/>
|
|
7032
|
+
</g>
|
|
7033
|
+
</svg>
|
|
7034
|
+
`;
|
|
7035
|
+
|
|
6920
7036
|
const Dots = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
6921
7037
|
<path
|
|
6922
7038
|
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"
|
|
@@ -7047,6 +7163,11 @@ const Ethereum = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
|
|
|
7047
7163
|
</svg>
|
|
7048
7164
|
`;
|
|
7049
7165
|
|
|
7166
|
+
const ExternalLink = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7167
|
+
<path d="M14 8.66667V12.6667C14 13.0203 13.8595 13.3594 13.6095 13.6095C13.3594 13.8595 13.0203 14 12.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V3.33333C2 2.97971 2.14048 2.64057 2.39052 2.39052C2.64057 2.14048 2.97971 2 3.33333 2H7.33333M14 2L8 8M14 2H10M14 2V6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7168
|
+
</svg>
|
|
7169
|
+
`;
|
|
7170
|
+
|
|
7050
7171
|
const EyeOff = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
7051
7172
|
<path d="M10.7429 5.09232C11.1494 5.03223 11.5686 5 12.0004 5C17.1054 5 20.4553 9.50484 21.5807 11.2868C21.7169 11.5025 21.785 11.6103 21.8231 11.7767C21.8518 11.9016 21.8517 12.0987 21.8231 12.2236C21.7849 12.3899 21.7164 12.4985 21.5792 12.7156C21.2793 13.1901 20.8222 13.8571 20.2165 14.5805M6.72432 6.71504C4.56225 8.1817 3.09445 10.2194 2.42111 11.2853C2.28428 11.5019 2.21587 11.6102 2.17774 11.7765C2.1491 11.9014 2.14909 12.0984 2.17771 12.2234C2.21583 12.3897 2.28393 12.4975 2.42013 12.7132C3.54554 14.4952 6.89541 19 12.0004 19C14.0588 19 15.8319 18.2676 17.2888 17.2766M3.00042 3L21.0004 21M9.8791 9.87868C9.3362 10.4216 9.00042 11.1716 9.00042 12C9.00042 13.6569 10.3436 15 12.0004 15C12.8288 15 13.5788 14.6642 14.1217 14.1213" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7052
7173
|
</svg>
|
|
@@ -7703,6 +7824,11 @@ const OptimismBrand = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
7703
7824
|
<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"/>
|
|
7704
7825
|
</svg>`;
|
|
7705
7826
|
|
|
7827
|
+
const ParaArrow = `<svg width="31" height="31" viewBox="0 0 31 31" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7828
|
+
<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"/>
|
|
7829
|
+
</svg>
|
|
7830
|
+
`;
|
|
7831
|
+
|
|
7706
7832
|
const ParaBlackBg = `<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70" fill="none" stroke="none">
|
|
7707
7833
|
<mask id="path-1-outside-1_1233_12577" maskUnits="userSpaceOnUse" x="0" y="0" width="70" height="70" fill="black" stroke="none">
|
|
7708
7834
|
<rect fill="white" stroke="none" width="70" height="70"/>
|
|
@@ -7848,13 +7974,15 @@ const Passcode = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xm
|
|
|
7848
7974
|
</svg>
|
|
7849
7975
|
`;
|
|
7850
7976
|
|
|
7851
|
-
const Phantom = `<svg width="
|
|
7852
|
-
<
|
|
7977
|
+
const Phantom = `<svg width="1200" height="1200" viewBox="0 0 1200 1200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7978
|
+
<g clip-path="url(#clip0_2596_138580)">
|
|
7979
|
+
<rect y="-0.000976562" width="1200" height="1200" fill="#AB9FF2"/>
|
|
7980
|
+
<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"/>
|
|
7981
|
+
</g>
|
|
7853
7982
|
<defs>
|
|
7854
|
-
<
|
|
7855
|
-
<
|
|
7856
|
-
</
|
|
7857
|
-
<image id="image0_4266_576" width="128" height="128" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAgKADAAQAAAABAAAAgAAAAABIjgR3AAAK7ElEQVR4Ae1d6XcUxxGvmVmhg0snlxBCIA4BwjbYATtGYCfGzst7yZ+YPyCf8jHhyAMhkHHwISMjgw8EOiwjdCAJdOzupGrx4NVec2xXz/R213v7Znenu6a66tfVx3RXW//8xwsXDGmrAVvbkpuC5zRgAKA5EAwADAA014DmxTcewABAcw1oXnzjAQwANNeA5sU3HsAAQHMNaF584wEMADTXgObFNx7AAEBzDWhefOMBDAA014DmxTcewABAcw1oXnzjAQwANNeA5sU3HsAAQHMNaF584wEMADTXgObFNx7AAEBzDWhefOMBDAA014DmxU9pXv7Qxd+63YJt+GlsBGhotKG+0YX6BoD6egvSGwBray6svnJhfc2C1VWA5SUXFp5nQz9HVgYDgAqa3tFsQfsuG7bvBGhps6C5xYJUnVUhR+lba6suTD7JwtSEC79MJAsMBgAFNqtvsKD7kA0HetDgbWK6SMTz0FEHP4BewoXxn7Iwdt+FVyvxg8EA4DcA7O92oPuwBXv3izF6Aa7e/CQPcviYgx+ARw8ycP/LDGQyb25L/6I9AHqPO3DslA2NTeFde7XWOtLnQGeXBXduZGE+pn6ClgCow1rYi8rvPW5hB06+4fOB07TNhoufWnD7ugu//iI/WItWAHAcwNqegqMnsTOXitfw+SAgWQYu18Ht/6Zh6qncfoE2AOg66MDpd+Nx9fnGrvT9g49ScPNKGn6dlgcC3h5PpdJKurdjpwWXPkvBuQEnlnY+bDHPXXBgS33YXNHT1zQA3nrPgct/r8uN5aOrSG5O6pOcPS/PMct7kkQ90gTO+YEU0FVF6uy2oa3DgufP+DuFNecBjven4PLf6pQ1vgfYU2ewxyqBasYDNG614dyHNrTvrg1Md2A5WtttmJvl7RDWBAB27UXjY+cp7jG96Ap76JiFABDNdTM/5avLsVMOXPhzquaMT2bq7LLBYrYQM/vNaBP5iyZ1zuPQrh/bSkvNvp6vOuq2WLAbvRsn8XJnkrwJ2/s//bUO9uPkTq3T7n286FauD7BtB07sfOrgYgxexSQFWK89AN/rQqUAsB1n9S5eTsVi/JfLWVhZRlgg7ppbLaAXSkFoYx1XBM29Hs+T/GGByz2XoQwAaHHGxU8coHZRNn1xK4OLODbXwjPnaYFH5SbowUgaRr/ePIw7eoLeSVTOV1g+As7SIs+kkBJ9ABoPx2X84ZvFxicDfTmcgSc/bwZFvuEefFtsfLr/8LsMjNwrny+fh/ed1iByUeIBQC9zLsRU86dx/d7E4/LG+upzWs1TXDNfvXThu4Kan2/Ah6OZ3GLR/P8qfW/ABahclGgA0ArcAWzzg7a3opU0/mOxcfOfsbEOuMizOM3jHzPgFv+dnxX8eOcnbmziMxMf5/wSRPhOS61pgidspynCo8pmWVzY3H6XSjj/Wwcv/97SQv6v0t/nn5f3LIU5SBdclMhOINX4AXT7nG2fKIWSFygm/zZ7fd0/jce3vt7HnXgJI1wT6QHev+TAzpb4RQvifRpwY0ghNTYV/lP8O0gaL1fxE7w71V/j13JBGU6dsYFe7iSB2nD04UdtHcVpmtv8cgG04kaToMS5bLxY+qBSMaSjhRDHcdFmUoj2CVQiGp+XAuu+rspvJuk9xsHe4KrPpCtJUd294FJU9xzf3KTM9/4YboLEl2mVCUgmWlZWimiDB72CLkVk4HL3KD2VM8yra9pvyEWJqG6kzA8upRK1VNtTOG3e2LrVgsmnLsxMZdFwAHs67dz2sUrTtOQZPv5LCieLMB+u8s1kcNdRp4UvsCygxR5h6OVSmNTh0iYCAG9jLaPallTad8CGfQdIutI1vpzcrdg/aO0In6+Q3wpOLHFROCgySNGxxwrVHjKIkHiWQeYVohYiVgA46H/+8GEinFBU/bHnW8e3iRRvgItiBcBb76aU2KzBpfwgfBeeB0kVPU1sAOjYY+Pr1NgeH11jknPOhZgyjiJaLBagNXxn3w/XoYpSuFrIw71jOBYAHD2pxjx/3ACiV82zzFvGpQOAAjGcOC39sXHbMtLzyfhZ/xeSkXh7maRbov+sA06C9uZ7ikjidXqS2fpYaKkAaMOIWwd6pD4yiXYNLNPU08BJIyeUao2+fqmPi6yUJGSk2IIvJUQRk2aRbTtez6EnQbkqyPD4J77Jn/zySwNAX78Z9uUrvtL3bNaFxz8EXzJWiZffPSkAoJU13YcNAPyM4d2fGM/mws56vzmvUgDQ25fcN32cyo3K++GoHPdP8kkBwEFT+wNjgWIJL8zxD/88gdgBQAsjgiyu9ATS/To6Is/4pGt2AHQfMu4/KKinMKL4PHNImEJZWAFgI/dOXE1jyF8DLm4lGrnHuPqzjAis1tmLIU6ixNcvI2tN//19br+g/CKyAqAdY90Z8tfAPHb6Rr+S2/Z7UrECoLXdAMBTdLkrbfr4HLeg+20mLZe/2v/ZAECLPloMAHztc3dwA5ZfyBv3FwrEBoAWjOhh2/F6gJVlXsWu4IFQ1RCdGDL5pDoe1Tyf8rIBYGdztaJVl59Cri/O8ymXIn1Uw30Sp3u/+ULOfH8lTbIBII5YPl5BKTDT/25nYRfuOeCgFwsudtoy0BBx3z6B884N+UO+UrpgA0CqrtTj5Pw3fDMNWexVcQxBCVxD1zdyBz2trYYHGIWduXUtGcYna/ABIKb9HtSuzky50MR0CNTwYOZ1uDhU3sJ8uKEbyTZ0HcEZLhtrrWEDgBODB6CXKF67yhE+ltz2TN46vbH7wSxJu3uGb2TeyMZq0ZDM2eopHaMqk2j51ND13ztVq3hap0gawgOdpgsOdKJ5+7voEd45Z5eMX0jDuye4sodq/gYeGJlE4gNAiBg41SpmHffP37ySAQrP5hEN0ej/LXimbzVEJ33eQmDNzpSu7RQrkLZ/05ZvCvtC7z+W8Nnzs3gyaJ481cjAmZcNAKR8GUQ1a/Aqxt0rMZlCK2v8onlWkpGOdiXj+w0n6WzgifHfvU8lnkm7xwaAUuHTRBeeds0OXk2XNdDYty509biR4gyS26Ywr+QBapnYAEBHnaTTOBRj2gRCY/HBa+j2V8obiPoFg1cBo48Ejy4+jkEeH40l+8h3kYBkAwAJSWNeOrBRNFFn7O4Qdqywd+1Hc8+y8O9/uXDybRt6MDBT4a4kehlDEzO5490xDIyspstPbln3WQHwPR6R3nVQbFG+vpuBH8bCtbcEFMpHn1x8HuwXpnEuZhU7aSp01MRqcDM3VgDQuPznR1noOVL9dAOdrk3Tu4shJ182FxfgWZnefGE6XX6zAoCUeO9OGkO+poACQkQh6oHfx3l3ak4MidcAOwBI5Bv/SUPf6RQcOWHBlgAHPlC7PP0U4/RjiLXCyRfxKtCboxQAkIrp9IwHI5A72HH3XsCjUfFINGyLaSUMTZVu4MQRXRfnIHeEOo0gDPFrQBoAvKLQjNrsDP0yLt3TSZzXaA1znBKbZwvVgAGAUHWqx8wAQD2bCZXYAECoOtVjZgCgns2ESmwAIFSd6jEzAFDPZkIlNgAQqk71mBkAqGczoRIbAAhVp3rMDADUs5lQiQ0AhKpTPWYGAOrZTKjEBgBC1akeMwMA9WwmVGIDAKHqVI+ZAYB6NhMqsQGAUHWqx8wAQD2bCZXYAECoOtVjZgCgns2ESmwAIFSd6jEzAFDPZkIlNgAQqk71mBkAqGczoRIbAAhVp3rMDADUs5lQiQ0AhKpTPWb/B0+q13cpbj9iAAAAAElFTkSuQmCC"/>
|
|
7983
|
+
<clipPath id="clip0_2596_138580">
|
|
7984
|
+
<rect y="-0.000976562" width="1200" height="1200" rx="600" fill="white"/>
|
|
7985
|
+
</clipPath>
|
|
7858
7986
|
</defs>
|
|
7859
7987
|
</svg>
|
|
7860
7988
|
`;
|
|
@@ -8095,6 +8223,11 @@ const Shield = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stro
|
|
|
8095
8223
|
</svg>
|
|
8096
8224
|
`;
|
|
8097
8225
|
|
|
8226
|
+
const Shuffle = `<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8227
|
+
<path d="M11 9L13 11M13 11L11 13M13 11H11.3793C10.7531 11 10.44 11 10.1559 10.9137C9.90428 10.8373 9.67024 10.712 9.46712 10.5451C9.23768 10.3565 9.06401 10.096 8.71669 9.57504L8.55556 9.33333M11 1L13 3M13 3L11 5M13 3H11.3793C10.7531 3 10.44 3 10.1559 3.0863C9.90428 3.1627 9.67024 3.28796 9.46712 3.45491C9.23768 3.64349 9.06401 3.90398 8.71669 4.42496L5.28331 9.57504C4.93599 10.096 4.76232 10.3565 4.53288 10.5451C4.32976 10.712 4.09572 10.8373 3.84414 10.9137C3.55996 11 3.24689 11 2.62075 11H1M1 3H2.62075C3.24689 3 3.55996 3 3.84414 3.0863C4.09572 3.1627 4.32976 3.28796 4.53288 3.45491C4.76232 3.64349 4.93599 3.90398 5.28331 4.42496L5.44444 4.66667" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8228
|
+
</svg>
|
|
8229
|
+
`;
|
|
8230
|
+
|
|
8098
8231
|
const SignalBrand = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8099
8232
|
<path d="M9.11911 0.350322L9.38845 1.44131C8.32691 1.70367 7.31091 2.12432 6.3746 2.68912L5.79842 1.72428C6.82904 1.10015 7.94881 0.63684 9.11911 0.350322ZM14.8809 0.350322L14.6115 1.44131C15.6731 1.70367 16.6891 2.12432 17.6254 2.68912L18.2084 1.72428C17.1751 1.1007 16.0531 0.637446 14.8809 0.350322ZM1.72427 5.79503C1.10072 6.82716 0.637457 7.94795 0.350307 9.11913L1.44129 9.38846C1.70365 8.32693 2.1243 7.31093 2.68911 6.37461L1.72427 5.79503ZM1.12423 12C1.12414 11.4545 1.16517 10.9097 1.24696 10.3704L0.135519 10.1999C-0.0451731 11.392 -0.0451731 12.6046 0.135519 13.7967L1.24696 13.6297C1.1653 13.0903 1.12427 12.5455 1.12423 12ZM18.2016 22.2723L17.6254 21.3109C16.6906 21.8762 15.6756 22.2969 14.615 22.5587L14.8843 23.6497C16.0532 23.3604 17.1716 22.8961 18.2016 22.2723ZM22.8758 12C22.8757 12.5455 22.8347 13.0903 22.753 13.6297L23.8645 13.7967C24.0452 12.6046 24.0452 11.392 23.8645 10.1999L22.753 10.3704C22.8348 10.9097 22.8759 11.4545 22.8758 12ZM23.6497 14.8775L22.5587 14.6082C22.297 15.671 21.8763 16.6882 21.3109 17.6254L22.2757 18.205C22.8999 17.172 23.3632 16.0499 23.6497 14.8775ZM13.6297 22.7531C12.5494 22.9167 11.4506 22.9167 10.3703 22.7531L10.2033 23.8645C11.3943 24.0452 12.6057 24.0452 13.7967 23.8645L13.6297 22.7531ZM20.7552 18.4505C20.1072 19.3292 19.3302 20.1051 18.4505 20.7518L19.1187 21.6587C20.0876 20.9454 20.9449 20.0916 21.6621 19.1255L20.7552 18.4505ZM18.4505 3.24485C19.3302 3.89279 20.1072 4.66977 20.7552 5.54955L21.6621 4.87451C20.9474 3.90756 20.0925 3.05263 19.1255 2.33796L18.4505 3.24485ZM3.24483 5.54955C3.89278 4.66977 4.66976 3.89279 5.54954 3.24485L4.87449 2.33796C3.90754 3.05263 3.05262 3.90756 2.33795 4.87451L3.24483 5.54955ZM22.2757 5.79503L21.3109 6.37461C21.8762 7.30945 22.2969 8.3244 22.5587 9.38506L23.6497 9.11572C23.3625 7.94563 22.8992 6.82595 22.2757 5.79503ZM10.3703 1.24698C11.4506 1.08331 12.5494 1.08331 13.6297 1.24698L13.7967 0.135534C12.6057 -0.0451779 11.3943 -0.0451779 10.2033 0.135534L10.3703 1.24698ZM3.82101 21.9587L1.49925 22.4974L2.04134 20.1756L0.946941 19.9199L0.404856 22.2417C0.370939 22.3856 0.365734 22.5348 0.389539 22.6808C0.413344 22.8267 0.465692 22.9666 0.543588 23.0923C0.621485 23.218 0.723402 23.3271 0.843508 23.4134C0.963615 23.4997 1.09956 23.5615 1.24355 23.5952C1.41196 23.6327 1.58655 23.6327 1.75495 23.5952L4.07671 23.0599L3.82101 21.9587ZM1.17878 18.9176L2.27658 19.1698L2.65161 17.5606C2.10394 16.642 1.69604 15.6469 1.44129 14.6082L0.350307 14.8775C0.595705 15.8718 0.966907 16.8307 1.45493 17.7311L1.17878 18.9176ZM6.42915 21.3518L4.81994 21.7268L5.07564 22.8246L6.25868 22.5485C7.15838 23.038 8.11751 23.4093 9.11229 23.6531L9.38163 22.5621C8.34612 22.3041 7.35459 21.8939 6.43938 21.345L6.42915 21.3518ZM12 2.24932C6.61325 2.25273 2.25272 6.62009 2.25272 12.0034C2.25568 13.837 2.77433 15.6328 3.74941 17.1856L2.81185 21.1882L6.81099 20.2506C11.3693 23.1178 17.3902 21.7507 20.2574 17.1958C23.1247 12.641 21.7609 6.62009 17.2061 3.74943C15.6467 2.76884 13.842 2.24882 12 2.24932Z" fill="#3A76F0"/>
|
|
8100
8233
|
</svg>
|
|
@@ -8326,6 +8459,11 @@ const UsdcBrand = `<svg data-name="86977684-12db-4850-8f30-233a7c267d11" xmlns="
|
|
|
8326
8459
|
</svg>
|
|
8327
8460
|
`;
|
|
8328
8461
|
|
|
8462
|
+
const User01 = `<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8463
|
+
<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"/>
|
|
8464
|
+
</svg>
|
|
8465
|
+
`;
|
|
8466
|
+
|
|
8329
8467
|
const UserCircle = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
8330
8468
|
<g id="user-circle">
|
|
8331
8469
|
<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"/>
|
|
@@ -8372,6 +8510,11 @@ const Valora = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmln
|
|
|
8372
8510
|
</svg>
|
|
8373
8511
|
`;
|
|
8374
8512
|
|
|
8513
|
+
const Wallet02 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8514
|
+
<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"/>
|
|
8515
|
+
</svg>
|
|
8516
|
+
`;
|
|
8517
|
+
|
|
8375
8518
|
const WalletConnect = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8376
8519
|
<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"/>
|
|
8377
8520
|
</svg>
|
|
@@ -8407,6 +8550,11 @@ const Youtube = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentCo
|
|
|
8407
8550
|
</svg>
|
|
8408
8551
|
`;
|
|
8409
8552
|
|
|
8553
|
+
const Zap = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
8554
|
+
<path d="M3.99999 13.9997C3.81076 14.0003 3.62522 13.9473 3.46495 13.8467C3.30467 13.746 3.17623 13.602 3.09454 13.4313C3.01286 13.2606 2.98129 13.0703 3.00349 12.8823C3.0257 12.6944 3.10077 12.5166 3.21999 12.3697L13.12 2.16967C13.1943 2.08396 13.2955 2.02603 13.407 2.00541C13.5185 1.98478 13.6337 2.00269 13.7337 2.05618C13.8337 2.10967 13.9126 2.19557 13.9573 2.29978C14.0021 2.40399 14.0101 2.52032 13.98 2.62967L12.06 8.64967C12.0034 8.8012 11.9844 8.96419 12.0046 9.12468C12.0248 9.28517 12.0837 9.43836 12.1761 9.5711C12.2685 9.70385 12.3918 9.81219 12.5353 9.88684C12.6788 9.96148 12.8382 10.0002 13 9.99967H20C20.1892 9.99903 20.3748 10.0521 20.535 10.1527C20.6953 10.2533 20.8238 10.3973 20.9054 10.568C20.9871 10.7387 21.0187 10.9291 20.9965 11.117C20.9743 11.3049 20.8992 11.4827 20.78 11.6297L10.88 21.8297C10.8057 21.9154 10.7045 21.9733 10.593 21.9939C10.4815 22.0146 10.3663 21.9967 10.2663 21.9432C10.1663 21.8897 10.0874 21.8038 10.0427 21.6996C9.99791 21.5954 9.98991 21.479 10.02 21.3697L11.94 15.3497C11.9966 15.1982 12.0156 15.0352 11.9954 14.8747C11.9752 14.7142 11.9163 14.561 11.8239 14.4282C11.7315 14.2955 11.6082 14.1872 11.4647 14.1125C11.3212 14.0379 11.1617 13.9991 11 13.9997H3.99999Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8555
|
+
</svg>
|
|
8556
|
+
`;
|
|
8557
|
+
|
|
8410
8558
|
const Zerion = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8411
8559
|
<g clip-path="url(#clip0_201_2847)">
|
|
8412
8560
|
<mask id="mask0_201_2847" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
@@ -12403,7 +12551,9 @@ const Icons = {
|
|
|
12403
12551
|
arbitrumBrand: ArbitrumBrand,
|
|
12404
12552
|
arrowCircleBrokenDownLeft: ArrowCircleBrokenDownLeft,
|
|
12405
12553
|
arrowCircleDownFilled: ArrowCircleDownFilled,
|
|
12554
|
+
arrowCircleDown: ArrowCircleDown,
|
|
12406
12555
|
arrowNarrow: ArrowNarrow,
|
|
12556
|
+
arrowUpDown: ArrowUpDown,
|
|
12407
12557
|
arrow: Arrow,
|
|
12408
12558
|
asterisk: Asterisk,
|
|
12409
12559
|
backpack: Backpack,
|
|
@@ -12427,6 +12577,7 @@ const Icons = {
|
|
|
12427
12577
|
clubhouse: Clubhouse,
|
|
12428
12578
|
code: Code,
|
|
12429
12579
|
coinbase: Coinbase,
|
|
12580
|
+
coins: Coins,
|
|
12430
12581
|
copy07: Copy07,
|
|
12431
12582
|
copy: Copy,
|
|
12432
12583
|
cosmosCircle: CosmosCircle,
|
|
@@ -12444,6 +12595,7 @@ const Icons = {
|
|
|
12444
12595
|
discordBrand: DiscordBrand,
|
|
12445
12596
|
discord: Discord,
|
|
12446
12597
|
dot: Dot,
|
|
12598
|
+
dotsSquare: DotsSquare,
|
|
12447
12599
|
dots: Dots,
|
|
12448
12600
|
downloadCloud: DownloadCloud,
|
|
12449
12601
|
download: Download,
|
|
@@ -12454,6 +12606,7 @@ const Icons = {
|
|
|
12454
12606
|
emptyCircle: EmptyCircle,
|
|
12455
12607
|
ethCircle: EthCircle,
|
|
12456
12608
|
ethereum: Ethereum,
|
|
12609
|
+
externalLink: ExternalLink,
|
|
12457
12610
|
eyeOff: EyeOff,
|
|
12458
12611
|
eye: Eye,
|
|
12459
12612
|
facebookBrand: FacebookBrand,
|
|
@@ -12513,6 +12666,7 @@ const Icons = {
|
|
|
12513
12666
|
nobleBrand: NobleBrand,
|
|
12514
12667
|
okx: Okx,
|
|
12515
12668
|
optimismBrand: OptimismBrand,
|
|
12669
|
+
paraArrow: ParaArrow,
|
|
12516
12670
|
paraBlackBg: ParaBlackBg,
|
|
12517
12671
|
paraBrand: ParaBrand,
|
|
12518
12672
|
paraIconBrand: ParaIconBrand,
|
|
@@ -12548,6 +12702,7 @@ const Icons = {
|
|
|
12548
12702
|
settings: Settings,
|
|
12549
12703
|
share: Share,
|
|
12550
12704
|
shield: Shield,
|
|
12705
|
+
shuffle: Shuffle,
|
|
12551
12706
|
signalBrand: SignalBrand,
|
|
12552
12707
|
signal: Signal,
|
|
12553
12708
|
sliders: Sliders,
|
|
@@ -12575,15 +12730,18 @@ const Icons = {
|
|
|
12575
12730
|
twitterBrand: TwitterBrand,
|
|
12576
12731
|
twitter: Twitter,
|
|
12577
12732
|
usdcBrand: UsdcBrand,
|
|
12733
|
+
user01: User01,
|
|
12578
12734
|
userCircle: UserCircle,
|
|
12579
12735
|
userPlus: UserPlus,
|
|
12580
12736
|
user: User,
|
|
12581
12737
|
valora: Valora,
|
|
12738
|
+
wallet02: Wallet02,
|
|
12582
12739
|
walletConnect: WalletConnect,
|
|
12583
12740
|
wallet: Wallet,
|
|
12584
12741
|
x: X,
|
|
12585
12742
|
youtubeBrand: YoutubeBrand,
|
|
12586
12743
|
youtube: Youtube,
|
|
12744
|
+
zap: Zap,
|
|
12587
12745
|
zerion: Zerion,
|
|
12588
12746
|
AD: AD,
|
|
12589
12747
|
AE: AE,
|
|
@@ -12921,7 +13079,7 @@ const CpslDropdown = class {
|
|
|
12921
13079
|
}
|
|
12922
13080
|
render() {
|
|
12923
13081
|
var _a, _b, _c;
|
|
12924
|
-
return (index.h(index.Host, { key: '
|
|
13082
|
+
return (index.h(index.Host, { key: '76f4d93f5c0d4fddca26a8d7dc381d8c9b22119c' }, index.h("button", { key: '7186e6bedbeac44d8bc8b95de5acafeea999d2f2', class: "dropdown-button", onClick: this.toggleDropdown }, `${((_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.selectedLabel) || ((_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.label)} ${(_c = this.selectedItem) === null || _c === void 0 ? void 0 : _c.value}`, index.h("div", { key: 'b5ef03a1a7bf5b37aa35ee30ce6233d7b19dc33e', class: `chevron ${this.isOpen ? '' : 'closed'}`, innerHTML: Icons['chevronUp'] })), index.h("ul", { key: 'b0d9227ed1d360405a0294efbd4fe2a25926b7d2', class: { 'dropdown-options': true, 'open': this.isOpen }, style: { width: this.width } }, this.hasCpslSearch && (index.h("li", { key: '0a7100d5c60114bf63583a2d808a7cb677053346', class: "search-bar" }, index.h("input", { key: '098d19346facb88c51674db9005354da36079820', type: "text", placeholder: "Search...", value: this.searchQuery, onInput: this.handleSearchQueryChange }))), this.filteredItems.map(item => (index.h("li", { onClick: this.handleItemSelect(item) }, index.h("span", { innerHTML: Icons[item.icon] }), item.label, " ", index.h("span", { class: "dropdown-value" }, item.value)))))));
|
|
12925
13083
|
}
|
|
12926
13084
|
get el() { return index.getElement(this); }
|
|
12927
13085
|
static get watchers() { return {
|
|
@@ -13057,14 +13215,14 @@ const CpslFileUpload = class {
|
|
|
13057
13215
|
}
|
|
13058
13216
|
render() {
|
|
13059
13217
|
var _a, _b, _c;
|
|
13060
|
-
return (index.h(index.Host, { key: '
|
|
13218
|
+
return (index.h(index.Host, { key: '16d9e9ac3a79cbaab554cd9b8901f2b5a930327d' }, this.label && (index.h("label", { key: 'a0d3cba9de77959cc1fa9d415e943800997fa1db', class: "label", htmlFor: this.inputId }, this.label, this.required ? '*' : ' ', !this.required && this.showOptionalLabel ? index.h("span", { class: "optional-label" }, "(optional)") : '')), index.h("slot", { key: '2ae7b7de344204f341ce8aa8044908bdc183cee1', name: "label" }), index.h("div", { key: 'd4ba3206869ed403217e37b20e9557784f98cfd2', class: { 'container': true, 'error': Boolean(this.errorText), 'drag': this.dragOver, 'drag-error': this.dragError } }, index.h("div", { key: '7f344b81e11e07b00e8cdbee5a89cc4300e02b4b', class: { 'label-container': true } }, index.h("slot", { key: 'c187ed9574eab9e21669a04d6a9d663adabcab75', name: "left-content" })), index.h("div", { key: '6bc08c41c298577cf71ca7f7209764d62fc42641', class: { 'file-container': true } }, this.FileContent), index.h("input", { key: '1696d38e71235671341b9e4388fa2a8478d5b259', id: this.inputId, type: "file", accept: (_b = (_a = this.fileTypes) === null || _a === void 0 ? void 0 : _a.join(', ')) !== null && _b !== void 0 ? _b : '*', files: this.file ? [this.file] : undefined, onDrop: this.handleDrop, onDragEnter: this.handleDragEnter, onDragLeave: this.handleDragLeave, onChange: this.handleInputChange, disabled: this.disabled })), (this.errorText || this.helperText) && (index.h("div", { key: 'f2c25a388395daf16082856e8135d952e4166247', class: { 'helper-text-container': true, 'error-text': Boolean(this.errorText) } }, index.h("span", { key: 'd6af4e67851048e79f3342156e35b87928dbef7c' }, (_c = this.errorText) !== null && _c !== void 0 ? _c : this.helperText)))));
|
|
13061
13219
|
}
|
|
13062
13220
|
get el() { return index.getElement(this); }
|
|
13063
13221
|
};
|
|
13064
13222
|
let inputIds$2 = 0;
|
|
13065
13223
|
CpslFileUpload.style = CpslFileUploadStyle0;
|
|
13066
13224
|
|
|
13067
|
-
const cpslIconCss = ":host{display:block;--filter:auto;--height:24px;--width:24px;--inset:0px;--
|
|
13225
|
+
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);box-sizing:border-box}:host svg{width:var(--computed-width, \"100%\");height:var(--computed-height, \"100%\");filter:var(--filter);border-radius:var(--icon-border-radius, 0)}: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%);max-width:100%;max-height:100%;object-fit:contain}";
|
|
13068
13226
|
const CpslIconStyle0 = cpslIconCss;
|
|
13069
13227
|
|
|
13070
13228
|
const CpslIcon = class {
|
|
@@ -13075,9 +13233,13 @@ const CpslIcon = class {
|
|
|
13075
13233
|
this.invert = undefined;
|
|
13076
13234
|
this.inset = '0px';
|
|
13077
13235
|
this.icon = undefined;
|
|
13236
|
+
this.radius = 'none';
|
|
13237
|
+
this.background = undefined;
|
|
13238
|
+
this.color = undefined;
|
|
13239
|
+
this.border = undefined;
|
|
13078
13240
|
}
|
|
13079
13241
|
render() {
|
|
13080
|
-
return (index.h(index.Host, { key: '
|
|
13242
|
+
return (index.h(index.Host, { key: '68cd89e6f4bd22d2ff4a064ee0103489478b30e1', 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 ? (index.h("div", null, index.h("img", { src: this.src, style: { borderRadius: this.radius === 'full' ? '1000px' : undefined } }))) : (index.h("div", { innerHTML: Icons[this.icon] }))));
|
|
13081
13243
|
}
|
|
13082
13244
|
};
|
|
13083
13245
|
CpslIcon.style = CpslIconStyle0;
|
|
@@ -13115,7 +13277,7 @@ const CpslIconGroup = class {
|
|
|
13115
13277
|
render() {
|
|
13116
13278
|
// If disabled remove all brand icons to ensure the disabled color is shown correctly
|
|
13117
13279
|
const icons = this.disabled ? this.icons.map(icon => icon.replace('Brand', '')) : this.icons;
|
|
13118
|
-
return (index.h(index.Host, { key: '
|
|
13280
|
+
return (index.h(index.Host, { key: '37605ca88dcbabf8aa252ee921306f716ce3459e' }, icons.map((icon, index$1) => {
|
|
13119
13281
|
const isIcon = isOfTypeIconType(icon);
|
|
13120
13282
|
return (index.h("span", { part: "icon-container", class: {
|
|
13121
13283
|
'icon-container': true,
|
|
@@ -17094,7 +17256,7 @@ const CpslInput = class {
|
|
|
17094
17256
|
}
|
|
17095
17257
|
render() {
|
|
17096
17258
|
var _a, _b, _c, _d;
|
|
17097
|
-
return (index.h(index.Host, { key: '
|
|
17259
|
+
return (index.h(index.Host, { key: '3335ee77eeef1674ee4e63dd715d5bef53e7079d', class: { 'disabled': this.disabled, 'focused': this.hasFocus, 'has-value': Boolean(this.focusedValue) || Boolean(this.value), 'contrast-text': this.contrastText } }, this.label && (index.h("label", { key: '6bff728ccf314abe1901fa178442d4519eb0ea2c', class: "label", htmlFor: this.inputId }, this.label, this.required ? '*' : ' ', !this.required && this.showOptionalLabel ? index.h("span", { class: "optional-label" }, "(optional)") : '')), index.h("div", { key: '528f02f84fa0625e7792e31308e68990303752be', class: { 'input-container': true, 'error-container': Boolean(this.errorText), 'textarea': this.as === 'textarea' } }, index.h("slot", { key: '140f3f895d626d947c99741b9d45c478b71e967e', name: "start" }), index.h(this.as, { key: 'e11a9700fab863a08cce868bb7413a2ca50ca45c', part: "native-input", class: { 'native-input': true }, ref: input => (this.nativeInput = input), id: this.inputId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, multiple: this.multiple, name: this.name, pattern: this.pattern, placeholder: this.placeholder || '', readOnly: this.readonly, required: this.required, size: this.fitContent ? ((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 1) : undefined, spellcheck: this.spellcheck, type: this.type, value: (_c = this.value) !== null && _c !== void 0 ? _c : '', rows: this.rows, onInput: this.onInput, onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.focusInput, onPaste: this.onPaste }), index.h("slot", { key: 'ff447dca64a4532e305bdbe3877f04d4ea17220d', name: "end" })), (this.errorText || this.helperText) && (index.h("div", { key: '60330d9d1f935ebc4ab0b948c6d37439ccd7b202', class: { 'helper-text-container': true, 'error-text': Boolean(this.errorText) } }, index.h("span", { key: '18fa73f7a1befbda7680acd7bbceeb355d8f8832' }, (_d = this.errorText) !== null && _d !== void 0 ? _d : this.helperText)))));
|
|
17098
17260
|
}
|
|
17099
17261
|
get el() { return index.getElement(this); }
|
|
17100
17262
|
static get watchers() { return {
|
|
@@ -17124,13 +17286,13 @@ const CpslNavButtonGroup = class {
|
|
|
17124
17286
|
return this.el.querySelectorAll('&> *:not(cpsl-nav-button)');
|
|
17125
17287
|
}
|
|
17126
17288
|
render() {
|
|
17127
|
-
return (index.h(index.Host, { key: '
|
|
17289
|
+
return (index.h(index.Host, { key: 'adffbef53dea8bd1cf9e90fb0a48e66d2eeebb80' }, index.h("slot", { key: 'c32bcb35830d0fdda3a991c66d8cba95ff0c90cd' })));
|
|
17128
17290
|
}
|
|
17129
17291
|
get el() { return index.getElement(this); }
|
|
17130
17292
|
};
|
|
17131
17293
|
CpslNavButtonGroup.style = CpslNavButtonGroupStyle0;
|
|
17132
17294
|
|
|
17133
|
-
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}";
|
|
17295
|
+
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}";
|
|
17134
17296
|
const CpslOverlayStyle0 = cpslOverlayCss;
|
|
17135
17297
|
|
|
17136
17298
|
const CpslOverlay = class {
|
|
@@ -17162,7 +17324,7 @@ const CpslOverlay = class {
|
|
|
17162
17324
|
}
|
|
17163
17325
|
}
|
|
17164
17326
|
render() {
|
|
17165
|
-
return (index.h(index.Host, { key: '
|
|
17327
|
+
return (index.h(index.Host, { key: '6268805f6988b86573778b2f84b543f09c140882', style: this.zIndexOverride ? { zIndex: `${this.zIndexOverride}` } : {} }, index.h("slot", { key: '2c985bbabb236f31cabec9b3efa9ee72b034e8b7' })));
|
|
17166
17328
|
}
|
|
17167
17329
|
get el() { return index.getElement(this); }
|
|
17168
17330
|
static get watchers() { return {
|
|
@@ -17248,7 +17410,7 @@ const CpslPagination = class {
|
|
|
17248
17410
|
filteredPages.push(this.totalPages - 1);
|
|
17249
17411
|
}
|
|
17250
17412
|
}
|
|
17251
|
-
return (index.h(index.Host, { key: '
|
|
17413
|
+
return (index.h(index.Host, { key: '08ba1aa206baa9e7c8cb4c5622e87279b6e8f498' }, index.h("cpsl-button-group", { key: 'f0103c126de971b5571b25e587701976caffd2e1', selectedId: `${this.currentPage}` }, index.h("cpsl-button", { key: 'e3fc3c25e28e72169c669746b211befe19be5879', class: "arrow-button", onClick: this.handlePrevClick }, index.h("cpsl-icon", { key: '27160d1fb321b8f2657c4bc521b2f3bf3f8aae8b', class: { 'icon': true, 'start-icon': true }, icon: "arrowNarrow" })), filteredPages.map(page => (index.h("cpsl-button", { key: page, variant: "secondary", fullWidth: true, id: `${page}`, onClick: this.handlePageClick(page) }, index.h("cpsl-text", { variant: "bodyS" }, page + 1)))), index.h("cpsl-button", { key: '3211a3bb0db95e7f455490b939c7647e8c3ea79e', class: "arrow-button", onClick: this.handleNextClick }, index.h("cpsl-icon", { key: 'e321dd46868eab8d416507685e7415daa41c676e', class: "icon", icon: "arrowNarrow" })))));
|
|
17252
17414
|
}
|
|
17253
17415
|
static get watchers() { return {
|
|
17254
17416
|
"currentPage": ["watchChange"]
|
|
@@ -17265,7 +17427,7 @@ const CpslPill = class {
|
|
|
17265
17427
|
this.text = undefined;
|
|
17266
17428
|
}
|
|
17267
17429
|
render() {
|
|
17268
|
-
return (index.h(index.Host, { key: '
|
|
17430
|
+
return (index.h(index.Host, { key: 'ed6ded111258751c1021876895a8f09a27323f55' }, index.h("div", { key: '5b10f2e2d77eaab9e8cd4d25a63052e8690ad380', class: "pill-container" }, index.h("span", { key: '09704e30cf5e01f1891427d486545735182d0a9d' }, this.text))));
|
|
17269
17431
|
}
|
|
17270
17432
|
};
|
|
17271
17433
|
CpslPill.style = CpslPillStyle0;
|
|
@@ -17379,18 +17541,23 @@ const CpslPopover = class {
|
|
|
17379
17541
|
const elWidth = this.el.clientWidth;
|
|
17380
17542
|
const elHeight = this.el.clientHeight;
|
|
17381
17543
|
const { top, left, height, width } = anchorEl.getBoundingClientRect();
|
|
17382
|
-
|
|
17383
|
-
|
|
17384
|
-
|
|
17385
|
-
|
|
17386
|
-
|
|
17387
|
-
|
|
17388
|
-
|
|
17389
|
-
|
|
17390
|
-
|
|
17391
|
-
|
|
17392
|
-
|
|
17393
|
-
|
|
17544
|
+
if (this.alignCenter) {
|
|
17545
|
+
this.positionX = left + (width / 2 - elWidth / 2);
|
|
17546
|
+
}
|
|
17547
|
+
else {
|
|
17548
|
+
switch (this.anchorOriginHorizontal) {
|
|
17549
|
+
case 'left': {
|
|
17550
|
+
this.positionX = left;
|
|
17551
|
+
break;
|
|
17552
|
+
}
|
|
17553
|
+
case 'center': {
|
|
17554
|
+
this.positionX = left + width / 2;
|
|
17555
|
+
break;
|
|
17556
|
+
}
|
|
17557
|
+
case 'right': {
|
|
17558
|
+
this.positionX = left + width;
|
|
17559
|
+
break;
|
|
17560
|
+
}
|
|
17394
17561
|
}
|
|
17395
17562
|
}
|
|
17396
17563
|
switch (this.anchorOriginVertical) {
|
|
@@ -17467,6 +17634,7 @@ const CpslPopover = class {
|
|
|
17467
17634
|
this.preventBlur = undefined;
|
|
17468
17635
|
this.transformOriginHorizontal = 'left';
|
|
17469
17636
|
this.transformOriginVertical = 'top';
|
|
17637
|
+
this.alignCenter = false;
|
|
17470
17638
|
this.triggerAction = 'click';
|
|
17471
17639
|
this.trigger = undefined;
|
|
17472
17640
|
this.windowPadding = 16;
|
|
@@ -17512,7 +17680,7 @@ const CpslPopover = class {
|
|
|
17512
17680
|
}
|
|
17513
17681
|
render() {
|
|
17514
17682
|
var _a;
|
|
17515
|
-
return (index.h(index.Host, { key: '
|
|
17683
|
+
return (index.h(index.Host, { key: '70f0dae4ade16ae959e70ca856ce6853b2fbc4e8', class: {
|
|
17516
17684
|
'open': this.open,
|
|
17517
17685
|
'transform-h-left': this.transformOriginHorizontal === 'left',
|
|
17518
17686
|
'transform-h-center': this.transformOriginHorizontal === 'center',
|
|
@@ -17524,9 +17692,9 @@ const CpslPopover = class {
|
|
|
17524
17692
|
top: `${this.positionY}px`,
|
|
17525
17693
|
left: `${this.positionX}px`,
|
|
17526
17694
|
width: !this.open ? '0px' : this.autoWidth ? 'auto' : `${(_a = this.triggerEl) === null || _a === void 0 ? void 0 : _a.clientWidth}px`,
|
|
17527
|
-
} }, index.h("div", { key: '
|
|
17695
|
+
} }, index.h("div", { key: '0f8f63ffd0b79319603c30cb8f59c8fb516f13a4', id: "container", class: { container: true, open: this.open }, style: {
|
|
17528
17696
|
visibility: this.hasSetInitialPosition ? 'visible' : 'hidden',
|
|
17529
|
-
} }, index.h("slot", { key: '
|
|
17697
|
+
} }, index.h("slot", { key: 'c03b1433b0454d09175c271d5f16335bad58d0fb' }))));
|
|
17530
17698
|
}
|
|
17531
17699
|
get el() { return index.getElement(this); }
|
|
17532
17700
|
static get watchers() { return {
|
|
@@ -17535,6 +17703,7 @@ const CpslPopover = class {
|
|
|
17535
17703
|
"preventBlur": ["onTriggerChange"],
|
|
17536
17704
|
"anchorOriginHorizontal": ["onAnchorChange"],
|
|
17537
17705
|
"anchorOriginVertical": ["onAnchorChange"],
|
|
17706
|
+
"alignCenter": ["onAnchorChange"],
|
|
17538
17707
|
"open": ["onOpenChange"]
|
|
17539
17708
|
}; }
|
|
17540
17709
|
};
|
|
@@ -21675,7 +21844,7 @@ const CpslQrCode = class {
|
|
|
21675
21844
|
return this.el.shadowRoot.getElementById('qr-code');
|
|
21676
21845
|
}
|
|
21677
21846
|
render() {
|
|
21678
|
-
return (index.h(index.Host, { key: '
|
|
21847
|
+
return (index.h(index.Host, { key: '0dcc5d32f6c8faaacdb5d0ecc8610731b4e8d42f' }, index.h("div", { key: 'b330ff066d7e8215ef74561b6e31fcbafbdea8cb', id: "qr-container", class: "qr-container", style: { width: `${this.size}px`, height: `${this.size}px` } }, index.h("img", { key: '8fabed3495c62214a7d635e0bc777b414d16a308', id: "qr-code", class: "qr-code" }))));
|
|
21679
21848
|
}
|
|
21680
21849
|
get el() { return index.getElement(this); }
|
|
21681
21850
|
};
|
|
@@ -21696,12 +21865,12 @@ const CpslRadio = class {
|
|
|
21696
21865
|
this.checked = undefined;
|
|
21697
21866
|
}
|
|
21698
21867
|
render() {
|
|
21699
|
-
return (index.h(index.Host, { key: '
|
|
21868
|
+
return (index.h(index.Host, { key: 'd16cc95323ff4d04b643beb986081c8ee93d10dd' }, index.h("input", { key: 'e33dbf1aea7fbf6c17f074162e1b123b5df4f797', type: "radio", checked: this.checked }), index.h("span", { key: '9ec66324f32c9ef1c2b3d7fba10ed5b9df0e9979', onClick: this.handleRadioClick, class: { container: true, checked: this.checked } })));
|
|
21700
21869
|
}
|
|
21701
21870
|
};
|
|
21702
21871
|
CpslRadio.style = CpslRadioStyle0;
|
|
21703
21872
|
|
|
21704
|
-
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)}";
|
|
21873
|
+
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)}";
|
|
21705
21874
|
const CpslSelectStyle0 = cpslSelectCss;
|
|
21706
21875
|
|
|
21707
21876
|
const CpslSelect = class {
|
|
@@ -21774,6 +21943,7 @@ const CpslSelect = class {
|
|
|
21774
21943
|
this.hasSelectedItem = false;
|
|
21775
21944
|
this.anchorElId = undefined;
|
|
21776
21945
|
this.autoWidth = false;
|
|
21946
|
+
this.alignCenter = false;
|
|
21777
21947
|
this.disabled = false;
|
|
21778
21948
|
this.dropdownMaxHeight = undefined;
|
|
21779
21949
|
this.errorText = undefined;
|
|
@@ -21820,10 +21990,10 @@ const CpslSelect = class {
|
|
|
21820
21990
|
render() {
|
|
21821
21991
|
var _a, _b, _c, _d, _e;
|
|
21822
21992
|
const selectedValueAsString = Array.isArray(this.selectedValue) ? this.selectedValue.join(', ') : this.selectedValue;
|
|
21823
|
-
return (index.h(index.Host, { key: '
|
|
21993
|
+
return (index.h(index.Host, { key: '18900dc2127936e4cd74c736234287d3a9c4f5d6', id: this.id, class: { 'disabled': this.disabled, 'focused': this.hasFocus, 'has-value': this.hasSelectedItem } }, this.label && (index.h("label", { key: '84edbb138188860c4b53d6bb5414529e0981c6ac', class: "label", htmlFor: this.inputId }, this.label, this.required ? '*' : ' ', !this.required && this.showOptionalLabel ? index.h("span", { class: "optional-label" }, "(optional)") : '')), index.h("div", { key: 'ab6f0e73fb1fc392fb6a37a364334e841c51e4f1', part: "select-container", id: "select-container", class: { 'select-container': true, 'error-container': Boolean(this.errorText) }, onClick: this.handleClick }, this.hasSelectedItem && this.showFormattedSelectedItem && index.h("slot", { key: '227f6bc64a4caf1ab62eb721abcff785f52c900a', name: "selected-item" }), index.h("div", { key: '6085a10a607168ce5804f0d0c10856509ec309db', class: { 'selected-container-content': true, 'hidden': this.hasSelectedItem && this.showFormattedSelectedItem }, id: "selected-container-content", style: {} }, (!this.hasSelectedItem || !this.showFormattedSelectedItem) && (index.h("cpsl-text", { key: '952821d6eb180709bf6484a1e5a201b1173c8e50', 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 && (index.h("cpsl-icon", { key: 'ebc48a455be06e7423f46cd1cbc9794ac9f7158a', part: "icon", class: { 'chevron': true, 'open': !this.noIconAnimation && this.popoverOpen, 'has-value': this.hasSelectedItem }, icon: this.icon })), index.h("input", { key: '3e754fbb61ed2b895d100eac6c066965ccb019d4', id: this.inputId, disabled: this.disabled, class: { disabled: this.disabled }, value: this.selectedValue, onFocus: this.onFocus, onBlur: this.onBlur, onKeyPress: this.handleEnterPress, inputmode: "none" }), index.h("cpsl-popover", { key: 'a8213a89bfd08f45839402e7bea33df24331eadd', part: "popover", autoWidth: this.autoWidth, alignCenter: this.alignCenter, trigger: this.id, preventBlur: this.hasFocus, disabled: this.disabled, anchorEl: this.anchorEl }, index.h("div", { key: '1850448668be81bab36fa485a4ca9efc8a6f42c3', part: "dropdown", class: "dropdown" }, this.showSearch && (index.h("div", { key: 'f4d86eada1ab15fdc1e5c40f177c740ea402854c', class: "search-container" }, index.h("cpsl-input", { key: '5eac08c4bf0d58f52f393cf7fe709ea7104e567c', onClick: e => e.stopPropagation(), placeholder: (_d = this.searchPlaceholder) !== null && _d !== void 0 ? _d : 'Search', value: "", onCpslInput: e => {
|
|
21824
21994
|
e.stopPropagation();
|
|
21825
21995
|
this.cpslSearchChange.emit(e.detail.value);
|
|
21826
|
-
} }))), index.h("div", { key: '
|
|
21996
|
+
} }))), index.h("div", { key: '98be2ccca9d4f3393b375a6be57ecb994f208d63', class: "dropdown-inner", style: { maxHeight: `${this.dropdownMaxHeight}px` } }, index.h("slot", { key: '4b144f409037e0e19542bd01f360812afcbdeb8e', name: "items" }))))), (this.errorText || this.helperText) && (index.h("div", { key: '1ad20642e98bc4b530ba3831d721f4e5602301b7', class: { 'helper-text-container': true, 'error-text': Boolean(this.errorText) } }, index.h("span", { key: 'c78382be9cba907cd2d8400d8602ceebb523b8b5' }, (_e = this.errorText) !== null && _e !== void 0 ? _e : this.helperText)))));
|
|
21827
21997
|
}
|
|
21828
21998
|
get el() { return index.getElement(this); }
|
|
21829
21999
|
static get watchers() { return {
|
|
@@ -21833,7 +22003,7 @@ const CpslSelect = class {
|
|
|
21833
22003
|
let inputIds = 0;
|
|
21834
22004
|
CpslSelect.style = CpslSelectStyle0;
|
|
21835
22005
|
|
|
21836
|
-
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)
|
|
22006
|
+
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%}";
|
|
21837
22007
|
const CpslSelectItemStyle0 = cpslSelectItemCss;
|
|
21838
22008
|
|
|
21839
22009
|
const CpslSelectItem = class {
|
|
@@ -21847,10 +22017,15 @@ const CpslSelectItem = class {
|
|
|
21847
22017
|
this.value = undefined;
|
|
21848
22018
|
}
|
|
21849
22019
|
render() {
|
|
21850
|
-
return (index.h(index.Host, { key: '
|
|
22020
|
+
return (index.h(index.Host, { key: 'db1ce801d1f8811645959e158e37fc3deafeb3f1' }, index.h("div", { key: 'f92eafcaa73a769a63d7f699ed6f96f0baf2acb2', part: "outer-container", class: "outer-container", onClick: e => {
|
|
22021
|
+
var _a;
|
|
22022
|
+
const targetId = (_a = e.target.id) !== null && _a !== void 0 ? _a : '';
|
|
22023
|
+
if (targetId === 'ignore-click') {
|
|
22024
|
+
return;
|
|
22025
|
+
}
|
|
21851
22026
|
this.handleItemClick();
|
|
21852
22027
|
e.stopPropagation();
|
|
21853
|
-
} }, index.h("div", { key: '
|
|
22028
|
+
} }, index.h("div", { key: '654cfd18c8662a4417c70cfd43a1591c5e1af29c', part: "inner-container", class: { 'inner-container': true, 'selected': this.selected } }, index.h("slot", { key: 'c3dc201669ae577827edcf08c59a330ad1a17877' })))));
|
|
21854
22029
|
}
|
|
21855
22030
|
};
|
|
21856
22031
|
CpslSelectItem.style = CpslSelectItemStyle0;
|
|
@@ -21986,7 +22161,7 @@ const CpslSlideButton = class {
|
|
|
21986
22161
|
return this.el.shadowRoot.getElementById('end-icon');
|
|
21987
22162
|
}
|
|
21988
22163
|
render() {
|
|
21989
|
-
return (index.h(index.Host, { key: '
|
|
22164
|
+
return (index.h(index.Host, { key: '566e9b4e928aa3f64f97703768afd374f322b9f4' }, index.h("div", { key: '50440c2fb4a8b8c705c622d17e09f3383b424639', id: "slider-container", class: "slider-container" }, index.h("div", { key: 'f04923282e4ed5d60f260fa612b37673960b566e', id: "start-slider-container-background", class: { 'start-slider-container-background': true, 'slider-container-background': true } }), index.h("div", { key: 'a9d7ba1b286c36b7437301f7d8e64ff51b01026d', id: "end-slider-container-background", class: { 'end-slider-container-background': true, 'slider-container-background': true } }), index.h("div", { key: '62311747abe49016d1ba049185b744c03eab69c1', id: "slider", class: { slider: true, disabled: this.disabled } }, index.h("cpsl-icon", { key: '512f8f4bc665db53a70a47ee7f5e3bf8cb210159', id: "start-icon", class: { 'start-icon': true, 'icon': true }, icon: this.startIcon }), index.h("cpsl-icon", { key: '20342c93f514f9ab236d74a5de245a6ffae88a13', id: "end-icon", class: { 'end-icon': true, 'icon': true }, icon: this.endIcon })), index.h("span", { key: 'c09c1d5fc0fd2138398eb5d55c87158b9e96e438', id: "start-text", class: { 'start-text': true, 'disabled': this.disabled } }, this.startText), index.h("span", { key: '037612378ed71063ee7b220dc6e2d55c412416bc', id: "end-text", class: "end-text" }, this.endText))));
|
|
21990
22165
|
}
|
|
21991
22166
|
get el() { return index.getElement(this); }
|
|
21992
22167
|
};
|
|
@@ -22004,11 +22179,11 @@ const CpslSpinner = class {
|
|
|
22004
22179
|
this.speed = 1;
|
|
22005
22180
|
}
|
|
22006
22181
|
render() {
|
|
22007
|
-
return (index.h(index.Host, { key: '
|
|
22182
|
+
return (index.h(index.Host, { key: '765c31d4263b0dafdd0bdc339cfa3ed894e8371b', style: {
|
|
22008
22183
|
['--height']: `${this.size}px`,
|
|
22009
22184
|
['--width']: `${this.size}px`,
|
|
22010
22185
|
['--bar-width']: `${this.barWidth ? this.barWidth : this.size * 0.12}px`,
|
|
22011
|
-
} }, index.h("div", { key: '
|
|
22186
|
+
} }, index.h("div", { key: '49bf51e5f36cf1e243464af1ca5effdbff2f4295', class: { loader: true, [this.variant]: true } })));
|
|
22012
22187
|
}
|
|
22013
22188
|
};
|
|
22014
22189
|
CpslSpinner.style = CpslSpinnerStyle0;
|
|
@@ -22026,7 +22201,7 @@ const CpslSwitch = class {
|
|
|
22026
22201
|
this.checked = undefined;
|
|
22027
22202
|
}
|
|
22028
22203
|
render() {
|
|
22029
|
-
return (index.h(index.Host, { key: '
|
|
22204
|
+
return (index.h(index.Host, { key: '54a918e6ce51bf58f0a7c5192a98daf7fc9ebbc3' }, index.h("input", { key: 'f17dfaa5870c52b2a4bbb9dcb12ebe413f11639b', type: "checkbox", checked: this.checked }), index.h("span", { key: '87225d9d683d3617c130632bbf5b7353f1fb8a3c', onClick: this.handleSwitchClick, class: { container: true, checked: this.checked } }, index.h("span", { key: '71b879d14a5100a7469e5403d6cd3ec0beae9a9f', class: { thumb: true, checked: this.checked } }))));
|
|
22030
22205
|
}
|
|
22031
22206
|
};
|
|
22032
22207
|
CpslSwitch.style = CpslSwitchStyle0;
|
|
@@ -22066,7 +22241,7 @@ const CpslTab = class {
|
|
|
22066
22241
|
}
|
|
22067
22242
|
}
|
|
22068
22243
|
render() {
|
|
22069
|
-
return (index.h(index.Host, { key: '
|
|
22244
|
+
return (index.h(index.Host, { key: '6c6963acfb80e2af39004e708f8ede2aae57cbcc', class: { selected: this.selected }, onClick: this.onTabClicked }, index.h("div", { key: '01aad54125bcfcf49a7c938ac3922e578d67782a', class: { 'tab-container': true } }, index.h("slot", { key: '67d3752abebd382320be214d48869694c697afc3', name: "start" }), index.h("div", { key: 'a4d0616a7a24c662c2cf326166706dfe67347589', class: "content" }, index.h("slot", { key: '0b5c88a340039d0a045a66ddb01c605930f70fd0' })), index.h("slot", { key: '46ede49409b834acc7743c3c334e7f87fa25486f', name: "end" }))));
|
|
22070
22245
|
}
|
|
22071
22246
|
get el() { return index.getElement(this); }
|
|
22072
22247
|
};
|
|
@@ -22124,7 +22299,7 @@ const CpslTable = class {
|
|
|
22124
22299
|
return this.el.shadowRoot.getElementById('footer-container');
|
|
22125
22300
|
}
|
|
22126
22301
|
render() {
|
|
22127
|
-
return (index.h(index.Host, { key: '
|
|
22302
|
+
return (index.h(index.Host, { key: 'e17bc67faff39c948bb585e03e2eef580a1ec46a' }, index.h("cpsl-card", { key: '50fbee874acdd360c92f8db003b021434515ac50', part: "table-container", style: { position: 'relative' } }, index.h("div", { key: '7c2452e83fd449277290ee067e050015f829ee6a', id: "header-container", class: { 'container-header': true, 'shown': Boolean(this.containerHeaderEl) } }, index.h("slot", { key: '97371b6e8601ecf48c3d361388f45b02447de4d4', name: "header" })), index.h("div", { key: 'ceac73d82a4d2f9ade616104675051d0676ca604', id: "content-container", class: { 'content': true, 'horizontal-scroll': this.hasHorizontalScroll, 'vertical-scroll': this.hasVerticalScroll }, part: "content" }, index.h("slot", { key: '1d88e9d621b434e5495e91f9e7076664a36a233b', name: "content" })), this.headerEl && this.contentContainerEl && this.footerEl && (index.h("div", { key: '95da7f057492601a15e767974b6f2791c433c58b', style: { top: `${this.headerEl.clientHeight + 2}px`, height: `${this.contentContainerEl.clientHeight}px` }, class: { 'overlay': true, 'horizontal-scroll': this.hasHorizontalScroll, 'vertical-scroll': this.hasVerticalScroll } })), index.h("div", { key: '6a9d1821b46b8e0f113228d6a12b1832bf4c3bc4', id: "footer-container", class: { 'container-footer': true, 'shown': Boolean(this.containerFooterEl) } }, index.h("slot", { key: 'eef31e34b0e40fae697d86fe58a40cc46981e0cc', name: "footer" })))));
|
|
22128
22303
|
}
|
|
22129
22304
|
get el() { return index.getElement(this); }
|
|
22130
22305
|
};
|
|
@@ -22192,7 +22367,7 @@ const CpslTabs = class {
|
|
|
22192
22367
|
// Get border width as a number
|
|
22193
22368
|
const tabsBorderWidth = +getComputedStyle(this.el).getPropertyValue('--tabs-border-width').slice(0, -2);
|
|
22194
22369
|
const selectedTabRect = this.selectedTabRect;
|
|
22195
|
-
return (index.h(index.Host, { key: '
|
|
22370
|
+
return (index.h(index.Host, { key: '7444f880d49aefdc6dacfa0893639e67f81e339c', class: { 'full-width': this.fullWidth }, onCpslTabButtonClick: this.onTabClicked }, index.h("div", { key: '029b41848f1ab89faa2e6bc03fc4c24fba4409e5', class: "tabs-container" }, index.h("slot", { key: '706b489cfd13e988d44d91e5ec8b451c937cd5f3' }), index.h("div", { key: '2b3d844134235863e85cecb09c31e18918ac32f4', class: { slider: true, loaded: this.loaded }, style: { width: `${selectedTabRect.width - 8}px`, left: `${selectedTabRect.x - tabsPosition.x - tabsBorderWidth}px` } }))));
|
|
22196
22371
|
}
|
|
22197
22372
|
get el() { return index.getElement(this); }
|
|
22198
22373
|
static get watchers() { return {
|
|
@@ -22206,7 +22381,7 @@ const getTab = (tabs, tab) => {
|
|
|
22206
22381
|
};
|
|
22207
22382
|
CpslTabs.style = CpslTabsStyle0;
|
|
22208
22383
|
|
|
22209
|
-
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}";
|
|
22384
|
+
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}";
|
|
22210
22385
|
const CpslTextStyle0 = cpslTextCss;
|
|
22211
22386
|
|
|
22212
22387
|
const TEXT_EL_PART = 'text-element';
|
|
@@ -22241,9 +22416,10 @@ const CpslText = class {
|
|
|
22241
22416
|
this.color = 'primary';
|
|
22242
22417
|
this.variant = 'bodyM';
|
|
22243
22418
|
this.weight = 'regular';
|
|
22419
|
+
this.align = undefined;
|
|
22244
22420
|
}
|
|
22245
22421
|
render() {
|
|
22246
|
-
return (index.h(index.Host, { key: '
|
|
22422
|
+
return (index.h(index.Host, { key: 'f71afcf547e49260945a89ca24ea1327d5df7fb1', class: {
|
|
22247
22423
|
// COLORS
|
|
22248
22424
|
'primary': this.color === 'primary',
|
|
22249
22425
|
'secondary': this.color === 'secondary',
|
|
@@ -22270,22 +22446,28 @@ const CpslText = class {
|
|
|
22270
22446
|
'heading-l': this.variant === 'headingL',
|
|
22271
22447
|
'heading-xl': this.variant === 'headingXL',
|
|
22272
22448
|
'heading-2xl': this.variant === 'heading2XL',
|
|
22449
|
+
'align-left': this.align === 'left',
|
|
22450
|
+
'align-center': this.align === 'center',
|
|
22451
|
+
'align-right': this.align === 'right',
|
|
22273
22452
|
} }, this.getContent()));
|
|
22274
22453
|
}
|
|
22275
22454
|
};
|
|
22276
22455
|
CpslText.style = CpslTextStyle0;
|
|
22277
22456
|
|
|
22278
|
-
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)}";
|
|
22457
|
+
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)}";
|
|
22279
22458
|
const CpslTileButtonStyle0 = cpslTileButtonCss;
|
|
22280
22459
|
|
|
22281
22460
|
const CpslTileButton = class {
|
|
22282
22461
|
constructor(hostRef) {
|
|
22283
22462
|
index.registerInstance(this, hostRef);
|
|
22463
|
+
this.disabled = false;
|
|
22284
22464
|
this.src = undefined;
|
|
22285
22465
|
this.icon = undefined;
|
|
22286
22466
|
}
|
|
22287
22467
|
render() {
|
|
22288
|
-
return (index.h(index.Host, { key: '
|
|
22468
|
+
return (index.h(index.Host, { key: '6f911ed19619b871cdc3bd96ab59aecf6b548b47', class: {
|
|
22469
|
+
disabled: this.disabled,
|
|
22470
|
+
} }, index.h("button", { key: '3c16b34f26db35202bc0e903b5bf6574d01f6a73', class: "button-native", disabled: this.disabled }, index.h("cpsl-icon", { key: '44d528e585457a719c40fce6f1d36268cf93284a', exportparts: "icon", src: this.src, icon: this.icon }), index.h("slot", { key: '6e48c9594d9a1c5afcff30b9b5c1cbc63002422e' }))));
|
|
22289
22471
|
}
|
|
22290
22472
|
};
|
|
22291
22473
|
CpslTileButton.style = CpslTileButtonStyle0;
|