@usecapsule/core-components 2.0.9 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/css/capsule-core.css +54 -19
- package/css/capsule-core.css.map +1 -1
- package/dist/capsule/capsule.esm.js +1 -1
- package/dist/capsule/capsule.esm.js.map +1 -1
- package/dist/capsule/index.esm.js +1 -1
- package/dist/capsule/index.esm.js.map +1 -1
- package/dist/capsule/{p-415384b7.entry.js → p-0d0a0037.entry.js} +2 -2
- package/dist/capsule/p-107e1ff5.entry.js +29 -0
- package/dist/capsule/p-107e1ff5.entry.js.map +1 -0
- package/dist/capsule/p-86e48e61.js +3 -0
- package/dist/capsule/p-86e48e61.js.map +1 -0
- package/dist/capsule/p-ad14a817.entry.js +2 -0
- package/dist/capsule/p-b6b38e73.js +2 -0
- package/dist/capsule/p-b6b38e73.js.map +1 -0
- package/dist/capsule/p-d28b96ba.entry.js +10 -0
- package/dist/capsule/{p-b76350fd.entry.js.map → p-d28b96ba.entry.js.map} +1 -1
- package/dist/capsule/{p-4d957466.entry.js → p-fa078837.entry.js} +2 -2
- package/dist/capsule/{p-fa4e3c14.entry.js → p-fcead80b.entry.js} +2 -2
- package/dist/cjs/capsule.cjs.js +2 -2
- package/dist/cjs/constants-0869a780.js +29 -0
- package/dist/cjs/constants-0869a780.js.map +1 -0
- package/dist/cjs/{cpsl-alert_18.cjs.entry.js → cpsl-alert_29.cjs.entry.js} +615 -187
- package/dist/cjs/cpsl-alert_29.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-animation.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-col.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
- package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
- package/dist/cjs/{index-87ba56f9.js → index-5733071e.js} +6 -3
- package/dist/cjs/index-5733071e.js.map +1 -0
- package/dist/cjs/index.cjs.js +53 -24
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/icons/brush.svg +3 -0
- package/dist/collection/assets/icons/check-circle.svg +3 -0
- package/dist/collection/assets/icons/file.svg +3 -0
- package/dist/collection/assets/icons/home.svg +3 -0
- package/dist/collection/assets/icons/index.js +7 -1
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/assets/icons/lightning-01.svg +3 -0
- package/dist/collection/assets/icons/lightning.svg +2 -2
- package/dist/collection/assets/icons/settings.svg +4 -0
- package/dist/collection/collection-manifest.json +11 -0
- package/dist/collection/components/cpsl-alert/cpsl-alert.css +21 -11
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +34 -26
- package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
- package/dist/collection/components/cpsl-animation/cpsl-animation.js +1 -1
- package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.css +67 -0
- package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +69 -0
- package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -0
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js +29 -0
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js +37 -0
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js.map +1 -0
- package/dist/collection/components/cpsl-avatar/cpsl-avatar.css +31 -0
- package/dist/collection/components/cpsl-avatar/cpsl-avatar.js +81 -0
- package/dist/collection/components/cpsl-avatar/cpsl-avatar.js.map +1 -0
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js +29 -0
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js +37 -0
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js.map +1 -0
- package/dist/collection/components/cpsl-button/cpsl-button.css +175 -51
- package/dist/collection/components/cpsl-button/cpsl-button.js +46 -5
- package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.css +88 -0
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +78 -0
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.js.map +1 -0
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js +29 -0
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js +37 -0
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js.map +1 -0
- package/dist/collection/components/cpsl-card/cpsl-card.css +81 -0
- package/dist/collection/components/cpsl-card/cpsl-card.js +19 -0
- package/dist/collection/components/cpsl-card/cpsl-card.js.map +1 -0
- package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js +29 -0
- package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js +37 -0
- package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js.map +1 -0
- package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.css +110 -0
- package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +64 -0
- package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js.map +1 -0
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js +29 -0
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js +37 -0
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js.map +1 -0
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +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.css +90 -0
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +149 -0
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -0
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js +29 -0
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js +37 -0
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js.map +1 -0
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +1 -1
- package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.css +35 -19
- package/dist/collection/components/cpsl-input/cpsl-input.js +47 -6
- package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
- package/dist/collection/components/cpsl-modal/cpsl-modal.css +12 -2
- package/dist/collection/components/cpsl-modal/cpsl-modal.js +20 -2
- package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -1
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.css +50 -0
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +78 -0
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js.map +1 -0
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js +29 -0
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js +37 -0
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js.map +1 -0
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +61 -3
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +35 -17
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -1
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.css +67 -0
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +174 -0
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js.map +1 -0
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js +29 -0
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js +37 -0
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js.map +1 -0
- package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
- package/dist/collection/components/cpsl-radio/cpsl-radio.css +97 -0
- package/dist/collection/components/cpsl-radio/cpsl-radio.js +66 -0
- package/dist/collection/components/cpsl-radio/cpsl-radio.js.map +1 -0
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js +29 -0
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js +37 -0
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js.map +1 -0
- package/dist/collection/components/cpsl-row/cpsl-row.js +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.css +115 -0
- package/dist/collection/components/cpsl-switch/cpsl-switch.js +64 -0
- package/dist/collection/components/cpsl-switch/cpsl-switch.js.map +1 -0
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js +29 -0
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js +37 -0
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js.map +1 -0
- package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
- package/dist/collection/components/cpsl-table/cpsl-table.css +179 -0
- package/dist/collection/components/cpsl-table/cpsl-table.js +88 -0
- package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -0
- package/dist/collection/components/cpsl-table/table-interface.js +2 -0
- package/dist/collection/components/cpsl-table/table-interface.js.map +1 -0
- package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js +29 -0
- package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js +37 -0
- package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js.map +1 -0
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
- package/dist/collection/components/cpsl-text/cpsl-text.js +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
- package/dist/collection/constants.js +14 -0
- package/dist/collection/constants.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/interface.js.map +1 -1
- package/dist/collection/utils/theme/generateBorderRadii.js +24 -7
- package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
- package/dist/collection/utils/theme/generatePalette.js +22 -18
- package/dist/collection/utils/theme/generatePalette.js.map +1 -1
- package/dist/collection/utils/theme/utils.js +8 -0
- package/dist/collection/utils/theme/utils.js.map +1 -1
- package/dist/esm/capsule.js +3 -3
- package/dist/esm/constants-6acf4ea8.js +23 -0
- package/dist/esm/constants-6acf4ea8.js.map +1 -0
- package/dist/esm/{cpsl-alert_18.entry.js → cpsl-alert_29.entry.js} +605 -188
- package/dist/esm/cpsl-alert_29.entry.js.map +1 -0
- package/dist/esm/cpsl-animation.entry.js +2 -2
- package/dist/esm/cpsl-col.entry.js +2 -2
- package/dist/esm/cpsl-grid.entry.js +3 -3
- package/dist/esm/cpsl-info-box.entry.js +2 -2
- package/dist/esm/cpsl-row.entry.js +2 -2
- package/dist/esm/{index-fd970ca2.js → index-8fe9f35e.js} +6 -3
- package/dist/esm/index-8fe9f35e.js.map +1 -0
- package/dist/esm/index.js +53 -24
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/assets/icons/index.d.ts +6 -0
- package/dist/types/components/cpsl-alert/cpsl-alert.d.ts +2 -2
- package/dist/types/components/cpsl-app-bar/cpsl-app-bar.d.ts +5 -0
- package/dist/types/components/cpsl-avatar/cpsl-avatar.d.ts +6 -0
- package/dist/types/components/cpsl-button/cpsl-button.d.ts +2 -0
- package/dist/types/components/cpsl-button-group/cpsl-button-group.d.ts +9 -0
- package/dist/types/components/cpsl-card/cpsl-card.d.ts +3 -0
- package/dist/types/components/cpsl-checkbox/cpsl-checkbox.d.ts +7 -0
- package/dist/types/components/cpsl-drawer/cpsl-drawer.d.ts +9 -0
- package/dist/types/components/cpsl-input/cpsl-input.d.ts +4 -0
- package/dist/types/components/cpsl-modal/cpsl-modal.d.ts +1 -0
- package/dist/types/components/cpsl-nav-button-group/cpsl-nav-button-group.d.ts +9 -0
- package/dist/types/components/cpsl-overlay/cpsl-overlay.d.ts +2 -1
- package/dist/types/components/cpsl-pagination/cpsl-pagination.d.ts +14 -0
- package/dist/types/components/cpsl-radio/cpsl-radio.d.ts +7 -0
- package/dist/types/components/cpsl-switch/cpsl-switch.d.ts +7 -0
- package/dist/types/components/cpsl-table/cpsl-table.d.ts +9 -0
- package/dist/types/components/cpsl-table/table-interface.d.ts +19 -0
- package/dist/types/components.d.ts +435 -6
- package/dist/types/constants.d.ts +14 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/interface.d.ts +35 -0
- package/dist/types/utils/theme/utils.d.ts +1 -0
- package/package.json +3 -2
- package/dist/capsule/p-2ce99420.entry.js +0 -29
- package/dist/capsule/p-2ce99420.entry.js.map +0 -1
- package/dist/capsule/p-6b02ea8d.entry.js +0 -2
- package/dist/capsule/p-b2997f3c.js +0 -3
- package/dist/capsule/p-b2997f3c.js.map +0 -1
- package/dist/capsule/p-b76350fd.entry.js +0 -10
- package/dist/capsule/p-c2bf050b.js +0 -2
- package/dist/capsule/p-c2bf050b.js.map +0 -1
- package/dist/cjs/constants-4bb85cc5.js +0 -12
- package/dist/cjs/constants-4bb85cc5.js.map +0 -1
- package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +0 -1
- package/dist/cjs/index-87ba56f9.js.map +0 -1
- package/dist/esm/constants-7b49abd5.js +0 -9
- package/dist/esm/constants-7b49abd5.js.map +0 -1
- package/dist/esm/cpsl-alert_18.entry.js.map +0 -1
- package/dist/esm/index-fd970ca2.js.map +0 -1
- /package/dist/capsule/{p-415384b7.entry.js.map → p-0d0a0037.entry.js.map} +0 -0
- /package/dist/capsule/{p-6b02ea8d.entry.js.map → p-ad14a817.entry.js.map} +0 -0
- /package/dist/capsule/{p-4d957466.entry.js.map → p-fa078837.entry.js.map} +0 -0
- /package/dist/capsule/{p-fa4e3c14.entry.js.map → p-fcead80b.entry.js.map} +0 -0
- /package/dist/types/Users/{vinay → taylorbosch}/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +0 -0
@@ -2,10 +2,326 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
6
|
-
const constants = require('./constants-
|
5
|
+
const index = require('./index-5733071e.js');
|
6
|
+
const constants = require('./constants-0869a780.js');
|
7
7
|
const _commonjsHelpers = require('./_commonjsHelpers-b3309d7b.js');
|
8
8
|
|
9
|
+
const cpslAlertCss = ":host{--container-gap:8px;--container-padding-top:14px;--container-padding-bottom:14px;--container-padding-start:16px;--container-padding-end:16px;--container-font-size:var(--cpsl-font-size-body-m);--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);display:inline-block;font-family:var(--cpsl-font-family, inherit)}:host(.error){--container-border-color:var(--cpsl-color-utility-red)}:host(.warning){--container-border-color:var(--cpsl-color-utility-yellow)}:host(.success){--container-border-color:var(--cpsl-color-utility-green)}:host cpsl-icon{--icon-color:var(--container-icon-color);--height:20px;--width:20px}.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;align-items:center;justify-content:center;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)}";
|
10
|
+
const CpslAlertStyle0 = cpslAlertCss;
|
11
|
+
|
12
|
+
const CpslAlert = class {
|
13
|
+
constructor(hostRef) {
|
14
|
+
index.registerInstance(this, hostRef);
|
15
|
+
this.icon = undefined;
|
16
|
+
this.variant = 'error';
|
17
|
+
}
|
18
|
+
get iconType() {
|
19
|
+
switch (this.variant) {
|
20
|
+
case 'custom': {
|
21
|
+
return undefined;
|
22
|
+
}
|
23
|
+
case 'success': {
|
24
|
+
return 'checkCircle';
|
25
|
+
}
|
26
|
+
case 'warning': {
|
27
|
+
return 'alertCircle';
|
28
|
+
}
|
29
|
+
case 'error':
|
30
|
+
default: {
|
31
|
+
return 'alertCircle';
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
render() {
|
36
|
+
return (index.h(index.Host, { key: 'f7534f6c528225bc1c5704870eceb202304a8f37', class: { error: this.variant === 'error', warning: this.variant === 'warning', success: this.variant === 'success' } }, index.h("div", { key: 'fade95f15517a992708d924cd7a1ca17a6077c22', class: "alert-container" }, this.iconType && index.h("cpsl-icon", { icon: this.iconType }), index.h("slot", { key: '8a2ed501e583e444203fa6168c7eb10011ec57fe' }))));
|
37
|
+
}
|
38
|
+
};
|
39
|
+
CpslAlert.style = CpslAlertStyle0;
|
40
|
+
|
41
|
+
const cpslAppBarCss = ":host{display:block;position:relative;top:0;width:100%;z-index:10000}.container{display:flex;width:100%}";
|
42
|
+
const CpslAppBarStyle0 = cpslAppBarCss;
|
43
|
+
|
44
|
+
const CpslAppBar = class {
|
45
|
+
constructor(hostRef) {
|
46
|
+
index.registerInstance(this, hostRef);
|
47
|
+
this.height = undefined;
|
48
|
+
this.position = 'fixed';
|
49
|
+
}
|
50
|
+
render() {
|
51
|
+
return (index.h(index.Host, { key: 'ea193eb47aaa71a32556004f5a43b8e903408054', style: {
|
52
|
+
height: `${this.height}px`,
|
53
|
+
} }, index.h("div", { key: '7e3c3b25bb6dfe9177de027ee9920c190b55b265', class: "container", part: "container", style: {
|
54
|
+
position: this.position,
|
55
|
+
height: `${this.height}px`,
|
56
|
+
} }, index.h("slot", { key: '00ac3af6b3485807bf63701f9b0b845efcb288c7' })), this.position === 'fixed' && (index.h("div", { style: {
|
57
|
+
height: `${this.height}px`,
|
58
|
+
} }))));
|
59
|
+
}
|
60
|
+
};
|
61
|
+
CpslAppBar.style = CpslAppBarStyle0;
|
62
|
+
|
63
|
+
const cpslAvatarCss = ":host{--container-border-color:var(--cpsl-color-avatar-border);--container-border-width:1px;--container-border-radius:var(--cpsl-border-radius-avatar);--container-background-color:var(--cpsl-color-avatar-surface);--container-padding:4px;--container-height:40px;--container-width:40px;display:block;height:100%;width:100%}span{display:inline-block;height:var(--container-height);width:var(--container-width);border:var(--container-border-width) solid var(--container-border-color);border-radius:var(--container-border-radius);padding:var(--container-padding);background-color:var(--container-background-color)}span.round{border-radius:1000px}img{width:100%;height:100%;object-fit:contain}";
|
64
|
+
const CpslAvatarStyle0 = cpslAvatarCss;
|
65
|
+
|
66
|
+
const CpslAvatar = class {
|
67
|
+
constructor(hostRef) {
|
68
|
+
index.registerInstance(this, hostRef);
|
69
|
+
this.alt = undefined;
|
70
|
+
this.src = undefined;
|
71
|
+
this.variant = 'square';
|
72
|
+
}
|
73
|
+
render() {
|
74
|
+
var _a;
|
75
|
+
return (index.h(index.Host, { key: 'c148e7d268c681fa6a7273c109b9ab418f433c24' }, index.h("span", { key: 'd1f977ab0c5d6f6758f84fb33ed9e72d9a1270c9', class: { round: this.variant === 'round' } }, index.h("img", { key: '3a13f96266ee6476df2154a09b433dcf7ba44daf', src: this.src, alt: (_a = this.alt) !== null && _a !== void 0 ? _a : 'avatar' }))));
|
76
|
+
}
|
77
|
+
};
|
78
|
+
CpslAvatar.style = CpslAvatarStyle0;
|
79
|
+
|
80
|
+
const cpslButtonCss = ":host{--button-border-width:1px;--button-border-width-start:var(--button-border-width);--button-border-width-end:var(--button-border-width);--button-border-width-top:var(--button-border-width);--button-border-width-bottom:var(--button-border-width);--button-gap:8px;--button-justify-content:center;--button-border-radius-top-start:var(--button-border-radius);--button-border-radius-top-end:var(--button-border-radius);--button-border-radius-bottom-end:var(--button-border-radius);--button-border-radius-bottom-start:var(--button-border-radius);--button-padding-start:16px;--button-padding-end:16px;--button-icon-size:var(--cpls-font-size-body-l);--button-primary-color:var(--cpsl-color-primary-button-text);--button-primary-background-color:var(--cpsl-color-primary-button-surface-default);--button-primary-border-color:var(--cpsl-color-primary-button-border-default);--button-primary-icon-color:var(--cpsl-color-primary-button-text);--button-primary-disabled-color:var(--cpsl-color-primary-button-text);--button-primary-disabled-background-color:var(--cpsl-color-primary-button-surface-disabled);--button-primary-disabled-border-color:var(--cpsl-color-primary-button-border-disabled);--button-primary-disabled-icon-color:var(--cpsl-color-primary-button-text);--button-primary-hover-color:var(--cpsl-color-primary-button-text);--button-primary-hover-background-color:var(--cpsl-color-primary-button-surface-hover);--button-primary-hover-border-color:var(--cpsl-color-primary-button-surface-hover);--button-primary-hover-icon-color:var(--cpsl-color-primary-button-text);--button-primary-active-color:var(--cpsl-color-primary-button-text);--button-primary-active-background-color:var(--cpsl-color-primary-button-surface-pressed);--button-primary-active-border-color:var(--cpsl-color-primary-button-surface-pressed);--button-primary-active-icon-color:var(--cpsl-color-primary-button-text);--button-secondary-color:var(--cpsl-color-secondary-button-text);--button-secondary-background-color:var(--cpsl-color-secondary-button-surface-default);--button-secondary-border-color:var(--cpsl-color-secondary-button-border-default);--button-secondary-icon-color:var(--cpsl-color-secondary-button-text);--button-secondary-disabled-color:var(--cpsl-color-secondary-button-text);--button-secondary-disabled-background-color:var(--cpsl-color-secondary-button-surface-disabled);--button-secondary-disabled-border-color:var(--cpsl-color-secondary-button-border-disabled);--button-secondary-disabled-icon-color:var(--cpsl-color-secondary-button-text);--button-secondary-hover-color:var(--cpsl-color-secondary-button-text);--button-secondary-hover-background-color:var(--cpsl-color-secondary-button-surface-hover);--button-secondary-hover-border-color:var(--cpsl-color-secondary-button-border-default);--button-secondary-hover-icon-color:var(--cpsl-color-secondary-button-text);--button-secondary-active-color:var(--cpsl-color-secondary-button-text);--button-secondary-active-background-color:var(--cpsl-color-secondary-button-surface-pressed);--button-secondary-active-border-color:var(--cpsl-color-secondary-button-border-default);--button-secondary-active-icon-color:var(--cpsl-color-secondary-button-text);--button-icon-color:var(--cpsl-color-icon-button-default);--button-icon-disabled-color:var(--cpsl-color-icon-button-disabled);--button-icon-hover-color:var(--cpsl-color-icon-button-hover);height:100%;display:inline-block;font-family:var(--cpsl-font-family, inherit)}:host(.full-width){width:100%;display:block}:host(.full-width) .button-native{width:100%}:host(.small){--button-font-size:var(--cpsl-font-size-body-s);--button-padding-top:12px;--button-padding-bottom:12px;--button-icon-size:var(--cpsl-font-size-body-m)}:host(.medium){--button-font-size:var(--cpsl-font-size-body-m);--button-padding-top:14px;--button-padding-bottom:14px;--button-icon-size:var(--cpsl-font-size-body-l)}:host(.disabled){cursor:default;pointer-events:none}:host ::slotted(cpsl-icon){--height:var(--button-icon-size);--width:var(--button-icon-size)}:host(.primary){--button-border-radius:var(--cpsl-border-radius-primary-button);--button-color:var(--button-primary-color);--button-background-color:var(--button-primary-background-color);--button-border-color:var(--button-primary-border-color)}:host(.primary) ::slotted(cpsl-icon){--icon-color:var(--button-primary-icon-color)}:host(.primary):host(.disabled){--button-color:var(--button-primary-disabled-color);--button-background-color:var(--button-primary-disabled-background-color);--button-border-color:var(--button-primary-disabled-border-color);--button-outline-color:transparent}:host(.primary):host(.disabled) ::slotted(cpsl-icon){--icon-color:var(--button-primary-disabled-icon-color)}:host(.primary) :not(.disabled):hover{--button-color:var(--button-primary-hover-color);--button-background-color:var(--button-primary-hover-background-color);--button-border-color:var(--button-primary-hover-border-color)}:host(.primary) :not(.disabled):hover ::slotted(cpsl-icon){--icon-color:var(--button-primary-hover-icon-color)}:host(.primary) :not(.disabled):active{--button-color:var(--button-primary-active-color);--button-background-color:var(--button-primary-active-background-color);--button-border-color:var(--button-primary-active-border-color)}:host(.primary) :not(.disabled):active ::slotted(cpsl-icon){--icon-color:var(--button-primary-active-icon-color)}:host(.primary) :not(.disabled):focus-visible{--button-outline-color:var(--cpsl-color-primary-button-outline)}:host(.secondary){--button-border-radius:var(--cpsl-border-radius-secondary-button);--button-color:var(--button-secondary-color);--button-background-color:var(--button-primary-secondary-color);--button-border-color:var(--button-secondary-border-color)}:host(.secondary) ::slotted(cpsl-icon){--icon-color:var(--button-secondary-icon-color)}:host(.secondary):host(.disabled){--button-color:var(--button-secondary-disabled-color);--button-background-color:var(--button-secondary-disabled-background-color);--button-border-color:var(--button-secondary-disabled-border-color);--button-outline-color:transparent}:host(.secondary):host(.disabled) ::slotted(cpsl-icon){--icon-color:var(--button-secondary-disabled-icon-color)}:host(.secondary) :not(.disabled):hover{--button-color:var(--button-secondary-hover-color);--button-border-color:var(--button-secondary-hover-border-color);--button-background-color:var(--button-secondary-hover-background-color)}:host(.secondary) :not(.disabled):hover ::slotted(cpsl-icon){--icon-color:var(--button-secondary-hover-icon-color)}:host(.secondary) :not(.disabled):active{--button-color:var(--button-secondary-active-color);--button-border-color:var(--button-secondary-active-border-color);--button-background-color:var(--button-secondary-active-background-color)}:host(.secondary) :not(.disabled):active ::slotted(cpsl-icon){--icon-color:var(--button-secondary-active-icon-color)}:host(.secondary) :not(.disabled):focus-visible{--button-outline-color:var(--cpsl-color-secondary-button-outline)}:host(.icon){--button-color:transparent;--button-background-color:transparent;--button-border-color:transparent;--button-outline-color:transparent}:host(.icon) ::slotted(cpsl-icon){--icon-color:var(--button-icon-color)}:host(.icon):host(.disabled) ::slotted(cpsl-icon){--icon-color:var(--button-icon-disabled-color)}:host(.icon) :not(.disabled):hover ::slotted(cpsl-icon){--icon-color:var(--button-icon-hover-color)}.button-native{border-top-left-radius:var(--button-border-radius-top-start);border-top-right-radius:var(--button-border-radius-top-end);border-bottom-right-radius:var(--button-border-radius-bottom-end);border-bottom-left-radius:var(--button-border-radius-bottom-start);-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);font-size:var(--button-font-size);border:0px solid transparent;border-width:var(--button-border-width-top) var(--button-border-width-end) var(--button-border-width-bottom) var(--button-border-width-start);cursor:pointer;color:var(--button-color);background-color:var(--button-background-color);border-color:var(--button-border-color);display:flex;justify-content:var(--button-justify-content);align-items:center;height:100%;gap:var(--button-gap);word-break:break-all;outline-color:var(--button-outline-color)}:host-context([dir=rtl]) .button-native{border-top-left-radius:var(--button-border-radius-top-end);border-top-right-radius:var(--button-border-radius-top-start);border-bottom-right-radius:var(--button-border-radius-bottom-start);border-bottom-left-radius:var(--button-border-radius-bottom-end)}[dir=rtl] .button-native{border-top-left-radius:var(--button-border-radius-top-end);border-top-right-radius:var(--button-border-radius-top-start);border-bottom-right-radius:var(--button-border-radius-bottom-start);border-bottom-left-radius:var(--button-border-radius-bottom-end)}@supports selector(:dir(rtl)){.button-native:dir(rtl){border-top-left-radius:var(--button-border-radius-top-end);border-top-right-radius:var(--button-border-radius-top-start);border-bottom-right-radius:var(--button-border-radius-bottom-start);border-bottom-left-radius:var(--button-border-radius-bottom-end)}}:host ::slotted(cpsl-text){color:var(--button-color)}";
|
81
|
+
const CpslButtonStyle0 = cpslButtonCss;
|
82
|
+
|
83
|
+
const CpslButton = class {
|
84
|
+
constructor(hostRef) {
|
85
|
+
index.registerInstance(this, hostRef);
|
86
|
+
this.disabled = false;
|
87
|
+
this.fullWidth = false;
|
88
|
+
this.size = 'medium';
|
89
|
+
this.variant = 'primary';
|
90
|
+
}
|
91
|
+
render() {
|
92
|
+
return (index.h(index.Host, { key: '62f94f1db8f1019d47a3fcd481638dd21769b74f', class: {
|
93
|
+
'primary': this.variant === 'primary',
|
94
|
+
'secondary': this.variant === 'secondary',
|
95
|
+
'icon': this.variant === 'icon',
|
96
|
+
'disabled': this.disabled,
|
97
|
+
'full-width': this.fullWidth,
|
98
|
+
'small': this.size === 'small',
|
99
|
+
'medium': this.size === 'medium',
|
100
|
+
} }, index.h("button", { key: '8b018abcc84330186611db6319bcf56022f5cccc', part: "button-native", class: "button-native" }, index.h("slot", { key: 'cad9e0b269752f30514957663de666eee0f2622c', name: "start" }), index.h("slot", { key: '6170188bf7734375bb3c99ae7ffab4d21c817e32' }), index.h("slot", { key: '2e483b4c7d21796c4e519c9c553483f633d2c8ac', name: "end" }))));
|
101
|
+
}
|
102
|
+
};
|
103
|
+
CpslButton.style = CpslButtonStyle0;
|
104
|
+
|
105
|
+
const cpslButtonGroupCss = ":host{--button-size:32px;display:flex}:host ::slotted(cpsl-button:first-child){--button-border-radius-top-end:0px;--button-border-radius-bottom-end:0px}:host ::slotted(cpsl-button:last-child){--button-border-width-start:0px;--button-border-radius-top-start:0px;--button-border-radius-bottom-start:0px}:host ::slotted(cpsl-button:not(:first-child):not(:last-child)){--button-border-width-start:0px;--button-border-radius-top-start:0px;--button-border-radius-bottom-start:0px;--button-border-radius-top-end:0px;--button-border-radius-bottom-end:0px}:host ::slotted(cpsl-button){--button-color:var(--cpsl-color-text-tertiary);--button-padding-start:0px;--button-padding-end:0px;--button-padding-top:0px;--button-padding-bottom:0px;height:var(--button-size);width:var(--button-size)}:host ::slotted(cpsl-button.selected){--button-color:var(--cpsl-color-text-primary)}";
|
106
|
+
const CpslButtonGroupStyle0 = cpslButtonGroupCss;
|
107
|
+
|
108
|
+
const CpslButtonGroup = class {
|
109
|
+
constructor(hostRef) {
|
110
|
+
index.registerInstance(this, hostRef);
|
111
|
+
this.selectedId = undefined;
|
112
|
+
}
|
113
|
+
selectItem() {
|
114
|
+
this.buttonSlots.forEach(item => {
|
115
|
+
if (item.id === this.selectedId) {
|
116
|
+
item.classList.add('selected');
|
117
|
+
}
|
118
|
+
else {
|
119
|
+
item.classList.remove('selected');
|
120
|
+
}
|
121
|
+
});
|
122
|
+
}
|
123
|
+
componentWillRender() {
|
124
|
+
var _a;
|
125
|
+
this.buttonSlots.forEach(item => {
|
126
|
+
item.setAttribute('variant', 'secondary');
|
127
|
+
item.setAttribute('full-width', 'true');
|
128
|
+
this.selectItem();
|
129
|
+
});
|
130
|
+
if (Boolean((_a = this.otherSlots) === null || _a === void 0 ? void 0 : _a.length)) {
|
131
|
+
console.error('cpsl-button is the only valid child of cpsl-button-group');
|
132
|
+
this.otherSlots.forEach(item => item.remove());
|
133
|
+
}
|
134
|
+
}
|
135
|
+
get buttonSlots() {
|
136
|
+
return this.el.querySelectorAll('cpsl-button');
|
137
|
+
}
|
138
|
+
get otherSlots() {
|
139
|
+
return this.el.querySelectorAll('&> *:not(cpsl-button)');
|
140
|
+
}
|
141
|
+
render() {
|
142
|
+
return (index.h(index.Host, { key: 'e15232f4180db66b6b7bd21b5e22980f197514be' }, index.h("slot", { key: 'f3c566eaf9574fb38331e8a44c5c369d1edd5223' })));
|
143
|
+
}
|
144
|
+
get el() { return index.getElement(this); }
|
145
|
+
static get watchers() { return {
|
146
|
+
"selectedId": ["selectItem"]
|
147
|
+
}; }
|
148
|
+
};
|
149
|
+
CpslButtonGroup.style = CpslButtonGroupStyle0;
|
150
|
+
|
151
|
+
const cpslCardCss = ":host{--card-padding-top:24px;--card-padding-end:24px;--card-padding-bottom:24px;--card-padding-start:24px;--card-border-width:1px;--card-border-color:var(--cpsl-color-card-border);--card-border-radius:var(--cpsl-border-radius-card);--card-background-color:var(--cpsl-color-card-surface);display:block}.card{-webkit-padding-start:var(--card-padding-start);padding-inline-start:var(--card-padding-start);-webkit-padding-end:var(--card-padding-end);padding-inline-end:var(--card-padding-end);padding-top:var(--card-padding-top);padding-bottom:var(--card-padding-bottom);display:block;box-sizing:border-box;overflow:hidden;border:var(--card-border-width) solid var(--card-border-color);border-radius:var(--card-border-radius);background-color:var(--card-background-color)}";
|
152
|
+
const CpslCardStyle0 = cpslCardCss;
|
153
|
+
|
154
|
+
const CpslCard = class {
|
155
|
+
constructor(hostRef) {
|
156
|
+
index.registerInstance(this, hostRef);
|
157
|
+
}
|
158
|
+
render() {
|
159
|
+
return (index.h(index.Host, { key: '8633aeaedaaf81af67835ee3ffc8964ec28ced92' }, index.h("div", { key: '3f2a22aad0a9dde3c6819ec9746576691d2084e5', class: { card: true } }, index.h("slot", { key: 'c6f573694f67d2096cac429c27f87f3b04547d4b' }))));
|
160
|
+
}
|
161
|
+
};
|
162
|
+
CpslCard.style = CpslCardStyle0;
|
163
|
+
|
164
|
+
const cpslCheckboxCss = ":host{--container-height:20px;--container-width:20px;--container-border-radius:var(--cpsl-border-radius-checkbox);--container-border-width:2px;--container-background-color-default:var(--cpsl-color-checkbox-surface-default);--container-border-color-default:var(--cpsl-color-checkbox-border-default);--container-background-color-checked:var(--cpsl-color-checkbox-surface-checked);--container-border-color-checked:var(--cpsl-color-checkbox-border-checked);--icon-height:16px;--icon-width:16px;--checkbox-icon-color:var(--cpsl-color-checkbox-icon);display:block;position:relative;height:var(--container-height);width:var(--container-width);cursor:pointer}input{position:absolute;width:100%;height:100%;margin:0px;opacity:0}span.container{display:flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;width:100%;height:100%;border-radius:var(--container-border-radius);border:var(--container-border-width) solid;background-color:var(--container-background-color-default);border-color:var(--container-border-color-default);transition:all 0.15s ease-in-out}span.container cpsl-icon{--height:var(--icon-height);--width:var(--icon-width);opacity:0;--icon-color:var(--checkbox-icon-color);transition:all 0.15s ease-in-out}span.container.checked{background-color:var(--container-background-color-checked);border-color:var(--container-border-color-checked)}span.container.checked cpsl-icon{opacity:1}";
|
165
|
+
const CpslCheckboxStyle0 = cpslCheckboxCss;
|
166
|
+
|
167
|
+
const CpslCheckbox = class {
|
168
|
+
constructor(hostRef) {
|
169
|
+
index.registerInstance(this, hostRef);
|
170
|
+
this.cpslCheckboxChanged = index.createEvent(this, "cpslCheckboxChanged", 7);
|
171
|
+
this.handleCheckboxClick = () => {
|
172
|
+
this.cpslCheckboxChanged.emit(!this.checked);
|
173
|
+
};
|
174
|
+
this.checked = undefined;
|
175
|
+
}
|
176
|
+
render() {
|
177
|
+
return (index.h(index.Host, { key: 'b5d7963285854a20983f8655c8a9545b8d0735e9' }, index.h("input", { key: 'b822a505e826f06d47f1da51fff0c7f310d9c9ce', type: "checkbox", checked: this.checked }), index.h("span", { key: '3747cf548b8d88ceee19eae5c1df78cdc5f9c87e', onClick: this.handleCheckboxClick, class: { container: true, checked: this.checked } }, index.h("cpsl-icon", { key: '9d5d0cdba4b22bc2167aed23e7748201320a6553', icon: "check" }))));
|
178
|
+
}
|
179
|
+
};
|
180
|
+
CpslCheckbox.style = CpslCheckboxStyle0;
|
181
|
+
|
182
|
+
const cpslCodeInputCss = ":host{--input-width:40px;--input-height:54px;--input-border-radius:var(--cpsl-border-radius-input);--input-border-color:var(--cpsl-color-input-border-placeholder);--input-border-width:1px;--input-background-color:var(--cpsl-color-input-surface-default);--input-border-error-color:var(--cpsl-color-input-border-error);--input-font-size:clamp(20px, 1.25rem, 30px);--input-color:var(--cpsl-color-text-primary);--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:12px;--helper-text-margin-top:6px;display:block;font-family:var(--cpsl-font-family, inherit)}.code-container{display:flex;gap:8px}.code-input{font-family:var(--cpsl-font-family, inherit);border-radius:var(--input-border-radius);font-size:var(--input-font-size);border-color:var(--input-border-color);border-width:var(--input-border-width);border-style:solid;font-size:var(--input-font-size);color:var(--input-color);width:var(--input-width);height:var(--input-height);background-color:var(--input-background-color);box-sizing:border-box;text-align:center;outline:none}.code-input:focus{--input-border-color:var(--cpsl-color-input-border-active)}.code-input::-webkit-outer-spin-button,.code-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.code-input .error-container{border-color:var(--input-border-error-color)}input[type=number]{-moz-appearance:textfield}.helper-text-container{flex-basis:100%;display:flex;align-items:center;gap:4px;color:var(--helper-text-color);font-size:var(--helper-text-font-size);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)}";
|
183
|
+
const CpslCodeInputStyle0 = cpslCodeInputCss;
|
184
|
+
|
185
|
+
const CpslCodeInput = class {
|
186
|
+
constructor(hostRef) {
|
187
|
+
index.registerInstance(this, hostRef);
|
188
|
+
this.cpslInput = index.createEvent(this, "cpslInput", 7);
|
189
|
+
this.handleInput = (ind, ev) => {
|
190
|
+
var _a;
|
191
|
+
const inputElements = this.inputs;
|
192
|
+
if (ev.inputType == 'insertText') {
|
193
|
+
if (this.type === 'number' && isNaN(parseInt(ev.data))) {
|
194
|
+
inputElements[ind].value = '';
|
195
|
+
return;
|
196
|
+
}
|
197
|
+
inputElements[Math.min(this.length - 1, ind + 1)].focus();
|
198
|
+
const newCode = `${(_a = this.code) !== null && _a !== void 0 ? _a : ''}${ev.data}`;
|
199
|
+
this.cpslInput.emit({ value: newCode });
|
200
|
+
this.code = newCode;
|
201
|
+
}
|
202
|
+
};
|
203
|
+
this.handleKeyDown = (ind, ev) => {
|
204
|
+
const inputElements = this.inputs;
|
205
|
+
switch (ev.key) {
|
206
|
+
case 'Backspace': {
|
207
|
+
let newCode;
|
208
|
+
if (!inputElements[ind].value) {
|
209
|
+
inputElements[Math.max(0, ind - 1)].value = '';
|
210
|
+
inputElements[Math.max(0, ind - 1)].focus();
|
211
|
+
newCode = this.code.substring(0, ind - 1);
|
212
|
+
}
|
213
|
+
else {
|
214
|
+
newCode = this.code.substring(0, ind);
|
215
|
+
}
|
216
|
+
this.cpslInput.emit({ value: newCode });
|
217
|
+
this.code = newCode;
|
218
|
+
break;
|
219
|
+
}
|
220
|
+
case 'ArrowLeft': {
|
221
|
+
setTimeout(() => {
|
222
|
+
this.inputs[ind].setSelectionRange(1, 1);
|
223
|
+
}, 0);
|
224
|
+
break;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
};
|
228
|
+
this.handleFocus = (ind) => {
|
229
|
+
const inputElements = this.inputs;
|
230
|
+
for (const input of inputElements) {
|
231
|
+
if (!input.value) {
|
232
|
+
input.focus();
|
233
|
+
break;
|
234
|
+
}
|
235
|
+
else if (input.id === `code-input-${this.length - 1}`) {
|
236
|
+
input.focus();
|
237
|
+
break;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
setTimeout(() => {
|
241
|
+
inputElements[ind].setSelectionRange(1, 1);
|
242
|
+
}, 0);
|
243
|
+
};
|
244
|
+
this.handlePaste = (e) => {
|
245
|
+
const inputElements = this.inputs;
|
246
|
+
const pastedCode = e.clipboardData.getData('text');
|
247
|
+
if (this.type === 'number' && isNaN(parseInt(pastedCode))) {
|
248
|
+
setTimeout(() => {
|
249
|
+
inputElements[0].value = '';
|
250
|
+
}, 0);
|
251
|
+
return;
|
252
|
+
}
|
253
|
+
this.cpslInput.emit({
|
254
|
+
value: pastedCode,
|
255
|
+
});
|
256
|
+
inputElements.forEach((input, index) => {
|
257
|
+
input.value = pastedCode.charAt(index);
|
258
|
+
});
|
259
|
+
inputElements[this.length - 1].focus();
|
260
|
+
};
|
261
|
+
this.code = undefined;
|
262
|
+
this.errorText = undefined;
|
263
|
+
this.helperText = undefined;
|
264
|
+
this.length = undefined;
|
265
|
+
this.type = 'number';
|
266
|
+
}
|
267
|
+
get inputs() {
|
268
|
+
return Array.from(this.el.shadowRoot.querySelectorAll('input'));
|
269
|
+
}
|
270
|
+
render() {
|
271
|
+
var _a;
|
272
|
+
return (index.h(index.Host, { key: '2f52778c8b8b51ef7c875b53394e7275bd93412f' }, index.h("div", { key: 'e96c3deea7d1e4eaaef4c72fbaca702b6bb46cf1', class: "code-container" }, new Array(this.length).fill(0).map((_, i) => {
|
273
|
+
var _a;
|
274
|
+
return (index.h("input", { class: { 'code-input': true, 'error': Boolean(this.errorText) }, id: `code-input-${i}`, maxLength: 1, onKeyDown: ev => this.handleKeyDown(i, ev), onInput: ev => this.handleInput(i, ev), onFocus: () => this.handleFocus(i), onPaste: this.handlePaste, min: 0, max: 9, value: (_a = this.code) === null || _a === void 0 ? void 0 : _a[i], inputMode: this.type === 'number' ? 'numeric' : 'text' }));
|
275
|
+
})), (this.errorText || this.helperText) && (index.h("div", { class: { 'helper-text-container': true, 'error-text': Boolean(this.errorText) } }, index.h("cpsl-icon", { icon: Boolean(this.errorText) ? 'alertCircle' : 'infoCircle' }), index.h("span", null, (_a = this.errorText) !== null && _a !== void 0 ? _a : this.helperText)))));
|
276
|
+
}
|
277
|
+
get el() { return index.getElement(this); }
|
278
|
+
};
|
279
|
+
CpslCodeInput.style = CpslCodeInputStyle0;
|
280
|
+
|
281
|
+
const cpslDividerCss = ":host{--divider-height:1px;--divider-color:var(--cpsl-color-divider);display:flex;align-items:center;height:24px;color:var(--cpsl-color-text-subtle);font-family:var(--cpsl-font-family, inherit);font-size:clamp(14px, 0.875rem, 21px);font-weight:600;gap:16px}:host div{flex:1;background-color:var(--divider-color);height:var(--divider-height)}";
|
282
|
+
const CpslDividerStyle0 = cpslDividerCss;
|
283
|
+
|
284
|
+
const CpslDivider = class {
|
285
|
+
constructor(hostRef) {
|
286
|
+
index.registerInstance(this, hostRef);
|
287
|
+
}
|
288
|
+
render() {
|
289
|
+
return (index.h(index.Host, { key: '1ed13a5022a89b899e6a16f168bff6b71c3c2ad8' }, index.h("div", { key: 'e9fec054de82d84298ac7cf7fc45f239a9a78442' }), index.h("slot", { key: 'c6ab3f0e787ee245d206b300c68192bfb3515aa6' }), index.h("div", { key: '5591e16b69c4cdce5cd5b9932923a189440b7fd5' })));
|
290
|
+
}
|
291
|
+
};
|
292
|
+
CpslDivider.style = CpslDividerStyle0;
|
293
|
+
|
294
|
+
const cpslDrawerCss = ":host{display:flex;position:fixed;z-index:10004}:host(.left){left:0;top:0;transition:left}:host(.right){right:0;top:0;transition:right}:host(.top){top:0;left:0;transition:top}:host(.bottom){bottom:0;left:0;transition:bottom}.container{flex:1;overflow:auto;z-index:10004}";
|
295
|
+
const CpslDrawerStyle0 = cpslDrawerCss;
|
296
|
+
|
297
|
+
const CpslDrawer = class {
|
298
|
+
constructor(hostRef) {
|
299
|
+
index.registerInstance(this, hostRef);
|
300
|
+
this.anchor = undefined;
|
301
|
+
this.open = undefined;
|
302
|
+
this.size = undefined;
|
303
|
+
this.transitionDuration = 0.15;
|
304
|
+
this.transitionFunction = 'ease-in-out';
|
305
|
+
this.variant = 'temporary';
|
306
|
+
}
|
307
|
+
render() {
|
308
|
+
const setHeight = this.anchor === 'top' || this.anchor === 'bottom';
|
309
|
+
return (index.h(index.Host, { key: '14b5f63f68d3e543b9b2b2f8e7fcbe24222ceb7a', style: {
|
310
|
+
width: setHeight ? '100vw' : `${this.size}px`,
|
311
|
+
height: setHeight ? `${this.size}px` : '100vh',
|
312
|
+
transitionDuration: `${this.transitionDuration}s`,
|
313
|
+
transitionTimingFunction: `${this.transitionFunction}`,
|
314
|
+
[this.anchor]: this.open || this.variant === 'permanent' ? '0px' : `-${this.size}px`,
|
315
|
+
}, class: {
|
316
|
+
top: this.anchor === 'top',
|
317
|
+
bottom: this.anchor === 'bottom',
|
318
|
+
left: this.anchor === 'left',
|
319
|
+
right: this.anchor === 'right',
|
320
|
+
} }, this.variant === 'temporary' && index.h("cpsl-overlay", { open: this.open, zIndexOverride: constants.DEFAULT_Z_INDICES.modal + 1 }), index.h("div", { key: '9877dd496d8a055a84ca81d7bf5b3a425b45e473', class: "container", part: "container" }, index.h("slot", { key: 'b02a97fc7f1fb6fe5f0a8fb45dbf7709977c2c3b' }))));
|
321
|
+
}
|
322
|
+
};
|
323
|
+
CpslDrawer.style = CpslDrawerStyle0;
|
324
|
+
|
9
325
|
const AD = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
10
326
|
<g clip-path="url(#clip0_2087_4012)">
|
11
327
|
<path d="M6.78286 22.8093C8.36049 23.5721 10.1303 24 12.0002 24C13.8701 24 15.64 23.5721 17.2176 22.8093L18.2611 12L17.2176 1.19072C15.64 0.427875 13.8701 0 12.0002 0C10.1303 0 8.36049 0.427875 6.78286 1.19072L5.73938 12L6.78286 22.8093Z" fill="#FFDA44"/>
|
@@ -4015,6 +4331,11 @@ const BackupKit = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" s
|
|
4015
4331
|
</svg>
|
4016
4332
|
`;
|
4017
4333
|
|
4334
|
+
const Brush = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
4335
|
+
<path d="M20 10V3.6C20 3.03995 20 2.75992 19.891 2.54601C19.7951 2.35785 19.6422 2.20487 19.454 2.10899C19.2401 2 18.9601 2 18.4 2H5.6C5.03995 2 4.75992 2 4.54601 2.10899C4.35785 2.20487 4.20487 2.35785 4.10899 2.54601C4 2.75992 4 3.03995 4 3.6V10M20 10H4M20 10V10.2C20 11.8802 20 12.7202 19.673 13.362C19.3854 13.9265 18.9265 14.3854 18.362 14.673C17.7202 15 16.8802 15 15.2 15H8.8C7.11984 15 6.27976 15 5.63803 14.673C5.07354 14.3854 4.6146 13.9265 4.32698 13.362C4 12.7202 4 11.8802 4 10.2V10M14.5 15V19.5C14.5 20.8807 13.3807 22 12 22C10.6193 22 9.5 20.8807 9.5 19.5V15" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
4336
|
+
</svg>
|
4337
|
+
`;
|
4338
|
+
|
4018
4339
|
const CapsuleLogo = `<svg width="66" height="18" viewBox="0 0 66 18" fill="currentColor" stroke="none" xmlns="http://www.w3.org/2000/svg">
|
4019
4340
|
<g clip-path="url(#clip0_1065_1067)">
|
4020
4341
|
<path d="M8.90893 5.98154C8.79593 6.37659 8.36391 6.57225 7.98741 6.41488C7.64799 6.27305 7.4779 5.89324 7.56125 5.53225C7.61419 5.30292 7.65233 5.08449 7.6757 4.87695C7.72165 4.48163 7.72115 4.13023 7.6742 3.82275C7.62728 3.51526 7.53433 3.26052 7.39539 3.05853C7.26076 2.85258 7.0849 2.70424 6.8678 2.6135C6.48209 2.45231 6.05553 2.51587 5.58813 2.80414C5.12272 3.08752 4.64333 3.58956 4.14988 4.31029C3.65849 5.0261 3.17976 5.95161 2.71371 7.08679C2.23959 8.24161 1.9244 9.24985 1.76818 10.1115C1.61628 10.9692 1.60543 11.6613 1.73562 12.1878C1.87013 12.7104 2.1291 13.0518 2.51249 13.212C2.72496 13.3008 2.9478 13.3248 3.18098 13.2841C3.4185 13.2394 3.65959 13.13 3.90425 12.9559C4.15121 12.7828 4.39612 12.5454 4.63897 12.2439C4.76621 12.0879 4.89014 11.9151 5.01082 11.7254C5.2102 11.4119 5.5999 11.2672 5.93935 11.4136C6.31297 11.5748 6.47729 12.021 6.2762 12.3772C6.02913 12.8148 5.76478 13.2219 5.48314 13.5985C5.06553 14.1609 4.62853 14.6288 4.17213 15.0023C3.71776 15.3709 3.26186 15.6179 2.80446 15.7434C2.34908 15.864 1.91005 15.836 1.4874 15.6594C0.863804 15.3988 0.433286 14.859 0.195844 14.0401C-0.0415976 13.2212 -0.0631333 12.173 0.131237 10.8955C0.325607 9.61802 0.755687 8.16844 1.42148 6.54674C2.08929 4.92015 2.80228 3.58879 3.5605 2.55268C4.32072 1.51165 5.07175 0.786304 5.81357 0.376648C6.55541 -0.0330046 7.2358 -0.108495 7.85478 0.150177C8.24973 0.315224 8.56852 0.58663 8.8112 0.964396C9.05387 1.34216 9.21418 1.81505 9.29215 2.38307C9.37214 2.94618 9.36242 3.59269 9.26298 4.32262C9.19509 4.84082 9.07707 5.39378 8.90893 5.98154Z" />
|
@@ -4112,6 +4433,11 @@ const Capsule = `<svg xmlns="http://www.w3.org/2000/svg" width="23" height="38"
|
|
4112
4433
|
<path d="M15.4555 20.2909C15.8721 19.3437 17.0252 18.8939 18.031 19.2862L18.1275 19.3239C19.1333 19.7162 19.6109 20.8021 19.1943 21.7493C18.7777 22.6966 17.6246 23.1464 16.6188 22.754L16.5223 22.7164C15.5165 22.324 15.0389 21.2381 15.4555 20.2909Z"/>
|
4113
4434
|
</svg>`;
|
4114
4435
|
|
4436
|
+
const CheckCircle = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
4437
|
+
<path d="M7.5 12L10.5 15L16.5 9M22 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"/>
|
4438
|
+
</svg>
|
4439
|
+
`;
|
4440
|
+
|
4115
4441
|
const Check = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
4116
4442
|
<path d="M20 6L9 17L4 12" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
4117
4443
|
</svg>
|
@@ -4258,6 +4584,11 @@ const Figma = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColo
|
|
4258
4584
|
</svg>
|
4259
4585
|
`;
|
4260
4586
|
|
4587
|
+
const File = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
4588
|
+
<path d="M14 2.26946V6.4C14 6.96005 14 7.24008 14.109 7.45399C14.2049 7.64215 14.3578 7.79513 14.546 7.89101C14.7599 8 15.0399 8 15.6 8H19.7305M20 9.98822V17.2C20 18.8802 20 19.7202 19.673 20.362C19.3854 20.9265 18.9265 21.3854 18.362 21.673C17.7202 22 16.8802 22 15.2 22H8.8C7.11984 22 6.27976 22 5.63803 21.673C5.07354 21.3854 4.6146 20.9265 4.32698 20.362C4 19.7202 4 18.8802 4 17.2V6.8C4 5.11984 4 4.27976 4.32698 3.63803C4.6146 3.07354 5.07354 2.6146 5.63803 2.32698C6.27976 2 7.11984 2 8.8 2H12.0118C12.7455 2 13.1124 2 13.4577 2.08289C13.7638 2.15638 14.0564 2.27759 14.3249 2.44208C14.6276 2.6276 14.887 2.88703 15.4059 3.40589L18.5941 6.59411C19.113 7.11297 19.3724 7.3724 19.5579 7.67515C19.7224 7.94356 19.8436 8.2362 19.9171 8.5423C20 8.88757 20 9.25445 20 9.98822Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
4589
|
+
</svg>
|
4590
|
+
`;
|
4591
|
+
|
4261
4592
|
const GithubBrand = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4262
4593
|
<g clip-path="url(#clip0_106_21439)">
|
4263
4594
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 0C5.3724 0 0 5.3808 0 12.0204C0 17.3304 3.438 21.8364 8.2068 23.4252C8.8068 23.5356 9.0252 23.1648 9.0252 22.8456C9.0252 22.5612 9.0156 21.804 9.0096 20.802C5.6712 21.528 4.9668 19.1904 4.9668 19.1904C4.422 17.8008 3.6348 17.4312 3.6348 17.4312C2.5452 16.6872 3.7176 16.7016 3.7176 16.7016C4.9212 16.7856 5.5548 17.94 5.5548 17.94C6.6252 19.776 8.364 19.2456 9.0468 18.9384C9.1572 18.162 9.4668 17.6328 9.81 17.3328C7.146 17.0292 4.344 15.9972 4.344 11.3916C4.344 10.08 4.812 9.006 5.5788 8.166C5.4552 7.8624 5.0436 6.6396 5.6964 4.986C5.6964 4.986 6.7044 4.662 8.9964 6.2172C9.97532 5.95022 10.9853 5.81423 12 5.8128C13.02 5.8176 14.046 5.9508 15.0048 6.2172C17.2956 4.662 18.3012 4.9848 18.3012 4.9848C18.9564 6.6396 18.5436 7.8624 18.4212 8.166C19.1892 9.006 19.6548 10.08 19.6548 11.3916C19.6548 16.0092 16.848 17.0256 14.1756 17.3232C14.6064 17.694 14.9892 18.4272 14.9892 19.5492C14.9892 21.1548 14.9748 22.452 14.9748 22.8456C14.9748 23.1672 15.1908 23.5416 15.8004 23.424C18.19 22.6225 20.2672 21.0904 21.7386 19.0441C23.2099 16.9977 24.001 14.5408 24 12.0204C24 5.3808 18.6264 0 12 0Z" fill="black"/>
|
@@ -4356,6 +4687,11 @@ const HeroWallet = `<svg xmlns="http://www.w3.org/2000/svg" width="64" height="6
|
|
4356
4687
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.7762 34.7246C4.80223 36.3946 4.82878 38.098 5.86538 39.1346C6.89237 40.1616 8.54788 40.1842 10.1963 40.2068C11.3876 40.2231 12.5753 40.2393 13.5192 40.6346C14.4656 41.0309 15.3371 41.8661 16.2081 42.7009C17.4081 43.8508 18.6072 45 20 45C21.402 45 22.6339 43.8225 23.8484 42.6617C24.7162 41.8323 25.5751 41.0113 26.4808 40.6346C27.3806 40.2603 28.5443 40.2422 29.7246 40.2238C31.3946 40.1978 33.098 40.1712 34.1346 39.1346C35.1616 38.1076 35.1842 36.4521 35.2068 34.8037C35.2231 33.6124 35.2393 32.4247 35.6346 31.4808C36.0309 30.5344 36.8661 29.6629 37.7009 28.7919C38.8508 27.5919 40 26.3928 40 25C40 23.598 38.8225 22.3661 37.6617 21.1516C36.8323 20.2838 36.0113 19.4249 35.6346 18.5192C35.2603 17.6194 35.2422 16.4557 35.2238 15.2754C35.1978 13.6054 35.1712 11.902 34.1346 10.8654C33.1076 9.8384 31.4521 9.81577 29.8037 9.79324C28.6124 9.77695 27.4247 9.76071 26.4808 9.36539C25.5344 8.96905 24.6629 8.13387 23.7919 7.2991C22.5919 6.14915 21.3928 5 20 5C18.598 5 17.3661 6.17749 16.1516 7.33828C15.2838 8.16775 14.4249 8.98869 13.5192 9.36539C12.6194 9.73966 11.4557 9.7578 10.2754 9.7762C8.60535 9.80223 6.90199 9.82878 5.86538 10.8654C4.8384 11.8924 4.81577 13.5479 4.79324 15.1963C4.77695 16.3876 4.76071 17.5753 4.36539 18.5192C3.96905 19.4656 3.13387 20.3371 2.2991 21.2081C1.14915 22.4081 0 23.6072 0 25C0 26.402 1.17749 27.6339 2.33828 28.8484C3.16775 29.7162 3.98869 30.5751 4.36539 31.4808C4.73966 32.3806 4.7578 33.5443 4.7762 34.7246ZM29.9607 21.9561C30.8287 21.1281 30.861 19.7533 30.033 18.8854C29.205 18.0175 27.8302 17.9851 26.9623 18.8131L17.1743 28.1508L13.039 24.199C12.1718 23.3703 10.7969 23.4014 9.9682 24.2687C9.13946 25.1359 9.17065 26.5107 10.0379 27.3395L15.6725 32.7241C16.5115 33.5259 17.8326 33.5264 18.6723 32.7254L29.9607 21.9561Z" class="foreground-0" opacity="0.95"/>
|
4357
4688
|
</svg>`;
|
4358
4689
|
|
4690
|
+
const Home = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
4691
|
+
<path d="M9 21V13.6C9 13.0399 9 12.7599 9.10899 12.546C9.20487 12.3578 9.35785 12.2049 9.54601 12.109C9.75992 12 10.0399 12 10.6 12H13.4C13.9601 12 14.2401 12 14.454 12.109C14.6422 12.2049 14.7951 12.3578 14.891 12.546C15 12.7599 15 13.0399 15 13.6V21M11.0177 2.764L4.23539 8.03912C3.78202 8.39175 3.55534 8.56806 3.39203 8.78886C3.24737 8.98444 3.1396 9.20478 3.07403 9.43905C3 9.70352 3 9.9907 3 10.5651V17.8C3 18.9201 3 19.4801 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21H17.8C18.9201 21 19.4802 21 19.908 20.782C20.2843 20.5903 20.5903 20.2843 20.782 19.908C21 19.4801 21 18.9201 21 17.8V10.5651C21 9.9907 21 9.70352 20.926 9.43905C20.8604 9.20478 20.7526 8.98444 20.608 8.78886C20.4447 8.56806 20.218 8.39175 19.7646 8.03913L12.9823 2.764C12.631 2.49075 12.4553 2.35412 12.2613 2.3016C12.0902 2.25526 11.9098 2.25526 11.7387 2.3016C11.5447 2.35412 11.369 2.49075 11.0177 2.764Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
4692
|
+
</svg>
|
4693
|
+
`;
|
4694
|
+
|
4359
4695
|
const InfoCircle = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
4360
4696
|
<path d="M12 16V12M12 8H12.01M22 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"/>
|
4361
4697
|
</svg>
|
@@ -4394,8 +4730,13 @@ const Key = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke=
|
|
4394
4730
|
</svg>
|
4395
4731
|
`;
|
4396
4732
|
|
4397
|
-
const
|
4398
|
-
<path d="
|
4733
|
+
const Lightning01 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4734
|
+
<path d="M13 2L4.09347 12.6879C3.74466 13.1064 3.57026 13.3157 3.56759 13.4925C3.56528 13.6461 3.63375 13.7923 3.75327 13.8889C3.89076 14 4.16319 14 4.70805 14H12L11 22L19.9066 11.3121C20.2554 10.8936 20.4298 10.6843 20.4324 10.5075C20.4348 10.3539 20.3663 10.2077 20.2468 10.1111C20.1093 10 19.8368 10 19.292 10H12L13 2Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
4735
|
+
</svg>
|
4736
|
+
`;
|
4737
|
+
|
4738
|
+
const Lightning = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
4739
|
+
<path d="M13 2L4.09347 12.6879C3.74466 13.1064 3.57026 13.3157 3.56759 13.4925C3.56528 13.6461 3.63375 13.7923 3.75327 13.8889C3.89076 14 4.16319 14 4.70805 14H12L11 22L19.9066 11.3121C20.2554 10.8936 20.4298 10.6843 20.4324 10.5075C20.4348 10.3539 20.3663 10.2077 20.2468 10.1111C20.1093 10 19.8368 10 19.292 10H12L13 2Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
4399
4740
|
</svg>
|
4400
4741
|
`;
|
4401
4742
|
|
@@ -4508,6 +4849,12 @@ const Reddit = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentCol
|
|
4508
4849
|
</svg>
|
4509
4850
|
`;
|
4510
4851
|
|
4852
|
+
const Settings = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
4853
|
+
<path d="M9.39516 19.3711L9.97961 20.6856C10.1533 21.0768 10.4369 21.4093 10.7958 21.6426C11.1548 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8489 21.8759 13.2078 21.6426C13.5668 21.4093 13.8503 21.0768 14.0241 20.6856L14.6085 19.3711C14.8165 18.9047 15.1665 18.5159 15.6085 18.26C16.0533 18.0034 16.5678 17.8941 17.0785 17.9478L18.5085 18.1C18.9342 18.145 19.3638 18.0656 19.7452 17.8713C20.1266 17.6771 20.4435 17.3763 20.6574 17.0056C20.8716 16.635 20.9736 16.2103 20.9511 15.7829C20.9286 15.3555 20.7826 14.9438 20.5307 14.5978L19.6841 13.4344C19.3826 13.0171 19.2215 12.5148 19.2241 12C19.224 11.4866 19.3866 10.9864 19.6885 10.5711L20.5352 9.40778C20.787 9.06175 20.9331 8.65007 20.9556 8.22267C20.978 7.79528 20.876 7.37054 20.6618 7C20.4479 6.62923 20.1311 6.32849 19.7496 6.13423C19.3682 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5723 6.11141 16.0577 6.00212 15.6129 5.74556C15.1701 5.48825 14.82 5.09736 14.6129 4.62889L14.0241 3.31444C13.8503 2.92317 13.5668 2.59072 13.2078 2.3574C12.8489 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1548 2.12408 10.7958 2.3574C10.4369 2.59072 10.1533 2.92317 9.97961 3.31444L9.39516 4.62889C9.18809 5.09736 8.83804 5.48825 8.39516 5.74556C7.95038 6.00212 7.43583 6.11141 6.92516 6.05778L5.49072 5.90556C5.06505 5.86053 4.63546 5.93997 4.25403 6.13423C3.87261 6.32849 3.55574 6.62923 3.34183 7C3.12765 7.37054 3.02561 7.79528 3.0481 8.22267C3.07058 8.65007 3.21662 9.06175 3.4685 9.40778L4.31516 10.5711C4.61711 10.9864 4.7797 11.4866 4.77961 12C4.7797 12.5134 4.61711 13.0137 4.31516 13.4289L3.4685 14.5922C3.21662 14.9382 3.07058 15.3499 3.0481 15.7773C3.02561 16.2047 3.12765 16.6295 3.34183 17C3.55595 17.3706 3.87286 17.6712 4.25423 17.8654C4.6356 18.0596 5.06508 18.1392 5.49072 18.0944L6.92072 17.9422C7.43139 17.8886 7.94594 17.9979 8.39072 18.2544C8.83525 18.511 9.18693 18.902 9.39516 19.3711Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
4854
|
+
<path d="M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3432 9 9.00004 10.3431 9.00004 12C9.00004 13.6569 10.3432 15 12 15Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
4855
|
+
</svg>
|
4856
|
+
`;
|
4857
|
+
|
4511
4858
|
const SignalBrand = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4512
4859
|
<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"/>
|
4513
4860
|
</svg>
|
@@ -4629,165 +4976,7 @@ const Youtube = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentCo
|
|
4629
4976
|
</svg>
|
4630
4977
|
`;
|
4631
4978
|
|
4632
|
-
const Icons = { AD: AD, AE: AE, AF: AF, AG: AG, AI: AI, AL: AL, AM: AM, AO: AO, AR: AR, AS: AS, AT: AT, AU: AU, AW: AW, AX: AX, AZ: AZ, BA: BA, BB: BB, BD: BD, BE: BE, BF: BF, BG: BG, BH: BH, BI: BI, BJ: BJ, BL: BL, BM: BM, BN: BN, BO: BO, BQ: BQ, BQ2: BQ2, BQ3: BQ3, BR: BR, BS: BS, BT: BT, BW: BW, BY: BY, BZ: BZ, CA: CA, CC: CC, CD: CD, CD2: CD2, CF: CF, CH: CH, CK: CK, CL: CL, CM: CM, CN: CN, CO: CO, CR: CR, CU: CU, CW: CW, CX: CX, CY: CY, CZ: CZ, DE: DE, DJ: DJ, DK: DK, DM: DM, DO: DO, DS: DS, DZ: DZ, EC: EC, EE: EE, EG: EG, EH: EH, ER: ER, ES: ES, ET: ET, FI: FI, FJ: FJ, FK: FK, FM: FM, FO: FO, FR: FR, GA: GA, GB2: GB2, GB: GB, GD: GD, GE: GE, GG: GG, GH: GH, GI: GI, GL: GL, GM: GM, GN: GN, GQ: GQ, GR: GR, GT: GT, GU: GU, GW: GW, GY: GY, HK: HK, HN: HN, HR: HR, HT: HT, HU: HU, ID: ID, IE: IE, IL: IL, IM: IM, IN: IN, IO: IO, IQ: IQ, IR: IR, IS: IS, IT: IT, JE: JE, JM: JM, JO: JO, JP: JP, KE: KE, KG: KG, KH: KH, KI: KI, KM: KM, KN: KN, KP: KP, KR: KR, KW: KW, KY: KY, KZ: KZ, LA: LA, LB: LB, LC: LC, LI: LI, LK: LK, LR: LR, LS: LS, LT: LT, LU: LU, LV: LV, LY: LY, MA: MA, MC: MC, MD: MD, ME: ME, MG: MG, MH: MH, MK: MK, ML: ML, MM: MM, MN: MN, MO: MO, MP: MP, MQ: MQ, MR: MR, MS: MS, MT: MT, MU: MU, MV: MV, MW: MW, MX: MX, MY: MY, MZ: MZ, NA: NA, NE: NE, NF: NF, NG: NG, NI: NI, NL: NL, NO: NO, NP: NP, NR: NR, NU: NU, NZ: NZ, OM: OM, PA: PA, PE: PE, PF: PF, PG: PG, PH: PH, PK: PK, PL: PL, PN: PN, PR: PR, PS: PS, PT: PT, PW: PW, PY: PY, QA: QA, RO: RO, RS: RS, RU: RU, RW: RW, SA: SA, SB: SB, SC: SC, SE: SE, SG: SG, SI: SI, SK: SK, SL: SL, SM: SM, SN: SN, SO: SO, SR: SR, SS: SS, ST: ST, SV: SV, SX: SX, SY: SY, SZ: SZ, TC: TC, TD: TD, TG: TG, TH: TH, TJ: TJ, TK: TK, TL: TL, TM: TM, TN: TN, TO: TO, TR: TR, TT: TT, TV: TV, TW: TW, TZ: TZ, UA: UA, UG: UG, US: US, UY: UY, UZ: UZ, VC: VC, VE: VE, VG: VG, VI: VI, VN: VN, VU: VU, WS: WS, YE: YE, ZA: ZA, ZM: ZM, ZW: ZW, alertCircle: AlertCircle, angelListBrand: AngelListBrand, angelList: AngelList, appleBrand: AppleBrand, apple: Apple, arrowNarrow: ArrowNarrow, arrow: Arrow, backupKit: BackupKit, capsuleLogo: CapsuleLogo, capsuleRingsDark: CapsuleRingsDark, capsuleRings: CapsuleRings, capsule: Capsule, check: Check, chevronUp: ChevronUp, clock: Clock, close: Close, clubhouseBrand: ClubhouseBrand, clubhouse: Clubhouse, copy: Copy, decentBrand: DecentBrand, decent: Decent, discordBrand: DiscordBrand, discord: Discord, downloadCloud: DownloadCloud, dribbbleBrand: DribbbleBrand, dribbble: Dribbble, earth: Earth, eyeOff: EyeOff, eye: Eye, facebookBrand: FacebookBrand, facebook: Facebook, figmaBrand: FigmaBrand, figma: Figma, githubBrand: GithubBrand, github: Github, googleBrand: GoogleBrand, google: Google, helpCircle: HelpCircle, heroEmail: HeroEmail, heroLock: HeroLock, heroPasskey: HeroPasskey, heroPhone: HeroPhone, heroWallet: HeroWallet, infoCircle: InfoCircle, instagramBrand: InstagramBrand, instagram: Instagram, key: Key, lightning: Lightning, linkedinBrand: LinkedinBrand, linkedin: Linkedin, mail: Mail, moreLoginOptions: MoreLoginOptions, phone: Phone, pintrestBrand: PintrestBrand, pintrest: Pintrest, plusCircle: PlusCircle, rampNetworkBrand: RampNetworkBrand, rampNetwork: RampNetwork, redditBrand: RedditBrand, reddit: Reddit, signalBrand: SignalBrand, signal: Signal, snapchatBrand: SnapchatBrand, snapchat: Snapchat, telegramBrand: TelegramBrand, telegram: Telegram, tikTokBrand: TikTokBrand, tikTok: TikTok, tumblrBrand: TumblrBrand, tumblr: Tumblr, twitterBrand: TwitterBrand, twitter: Twitter, wallet: Wallet, youtubeBrand: YoutubeBrand, youtube: Youtube, };
|
4633
|
-
|
4634
|
-
const cpslAlertCss = ":host{--container-gap:8px;--container-padding-top:4px;--container-padding-bottom:4px;--container-padding-start:16px;--container-padding-end:16px;--container-font-size:clamp(12px, 0.75rem, 18px);--container-border-width:1px;--container-border-radius:var(--cpsl-border-radius-alert);display:inline-block;font-family:var(--cpsl-font-family, inherit)}:host(.error){--container-background-color:var(--cpsl-color-alert-surface-error);--container-border-color:var(--cpsl-color-alert-border-error);--container-color:var(--cpsl-color-text-error)}.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);font-weight:500;display:flex;align-items:center;justify-content:center;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)}.icon{display:flex}";
|
4635
|
-
const CpslAlertStyle0 = cpslAlertCss;
|
4636
|
-
|
4637
|
-
const CpslAlert = class {
|
4638
|
-
constructor(hostRef) {
|
4639
|
-
index.registerInstance(this, hostRef);
|
4640
|
-
this.type = 'error';
|
4641
|
-
this.icon = undefined;
|
4642
|
-
}
|
4643
|
-
get Icon() {
|
4644
|
-
if (Boolean(this.icon)) {
|
4645
|
-
return Icons[this.icon];
|
4646
|
-
}
|
4647
|
-
switch (this.type) {
|
4648
|
-
case 'error':
|
4649
|
-
default: {
|
4650
|
-
return Icons.alertCircle;
|
4651
|
-
}
|
4652
|
-
}
|
4653
|
-
}
|
4654
|
-
render() {
|
4655
|
-
return (index.h(index.Host, { key: '44ed39687dc02639f574f002aeb4449c19cc3246', class: { error: this.type === 'error' } }, index.h("div", { key: '68acc8a8679cd344f450b606ee31888e03b2ef8a', class: "alert-container" }, index.h("div", { key: 'ebb639aef153672c3249d4d6bccaa31b4e933c4d', class: "icon", innerHTML: this.Icon }), index.h("slot", { key: '0dd11c5b640986d6b6c710b9fb82d344e01a46c0' }))));
|
4656
|
-
}
|
4657
|
-
};
|
4658
|
-
CpslAlert.style = CpslAlertStyle0;
|
4659
|
-
|
4660
|
-
const cpslButtonCss = ":host{--button-border-radius:var(--cpsl-border-radius-primary-button);--button-border-width:1px;--button-gap:4px;--button-box-shadow:0px 1px 2px 0px rgba(16, 24, 40, 0.05), 0px 2px 2px 0px var(--cpsl-color-alpha-white-25) inset, 0px -2px 2px 0px var(--cpsl-color-alpha-black-25) inset;--button-padding-top:10px;--button-padding-bottom:10px;--button-padding-start:16px;--button-padding-end:16px;--button-font-size:clamp(14px, 0.875rem, 21px);height:100%;width:100%;font-family:var(--cpsl-font-family, inherit)}:host(.button-disabled){cursor:default;pointer-events:none}:host(.primary){--button-color:var(--cpsl-color-text-inverted);--button-background-color:var(--cpsl-color-primary-button-surface-default);--button-border-color:var(--cpsl-color-primary-button-border-default)}:host(.primary):host(.button-disabled){--button-background-color:var(--cpsl-color-primary-button-surface-disabled);--button-border-color:var(--cpsl-color-primary-button-border-disabled);--button-box-shadow:none;--button-outline-color:transparent}:host(.primary) :not(.button-disabled):hover{--button-background-color:var(--cpsl-color-primary-button-surface-hover)}:host(.primary) :not(.button-disabled):active{--button-background-color:var(--cpsl-color-primary-button-surface-pressed)}:host(.primary) :not(.button-disabled):focus-visible{--button-outline-color:var(--cpsl-color-primary-button-outline)}:host(.primary) ::slotted(cpsl-icon){--icon-color:var(--cpsl-text-inverted)}:host(.secondary){--button-color:var(--cpsl-color-text-primary);--button-background-color:var(--cpsl-color-secondary-button-surface-default);--button-border-color:var(--cpsl-color-secondary-button-border-default)}:host(.secondary):host(.button-disabled){--button-background-color:var(--cpsl-color-secondary-button-surface-disabled);--button-border-color:var(--cpsl-color-secondary-button-border-disabled);--button-box-shadow:none;--button-outline-color:transparent}:host(.secondary) :not(.button-disabled):hover{--button-background-color:var(--cpsl-color-secondary-button-surface-hover)}:host(.secondary) :not(.button-disabled):active{--button-background-color:var(--cpsl-color-secondary-button-surface-pressed)}:host(.secondary) :not(.button-disabled):focus-visible{--button-outline-color:var(--cpsl-color-secondary-button-outline)}:host(.secondary) ::slotted(cpsl-icon){--icon-color:var(--cpsl-text-primary)}:host(.icon){--button-color:transparent;--button-background-color:transparent;--button-border-color:transparent;--button-box-shadow:none;--button-outline-color:transparent}:host(.icon) ::slotted(cpsl-icon){--icon-color:var(--cpsl-color-text-secondary)}:host(.icon) :not(.button-disabled):hover ::slotted(cpsl-icon){--icon-color:var(--cpsl-color-text-primary)}.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);font-size:var(--container-font-size);font-weight:500;border:var(--button-border-width) solid transparent;cursor:pointer;color:var(--button-color);background-color:var(--button-background-color);border-color:var(--button-border-color);display:flex;justify-content:center;align-items:center;height:100%;width:100%;box-shadow:var(--button-box-shadow);gap:var(--button-gap);word-break:break-all;outline-color:var(--button-outline-color)}";
|
4661
|
-
const CpslButtonStyle0 = cpslButtonCss;
|
4662
|
-
|
4663
|
-
const CpslButton = class {
|
4664
|
-
constructor(hostRef) {
|
4665
|
-
index.registerInstance(this, hostRef);
|
4666
|
-
this.disabled = false;
|
4667
|
-
this.variant = 'primary';
|
4668
|
-
}
|
4669
|
-
render() {
|
4670
|
-
return (index.h(index.Host, { key: '258bec70d4cf27d453500c712285e45a1304b925', class: {
|
4671
|
-
'primary': this.variant === 'primary',
|
4672
|
-
'secondary': this.variant === 'secondary',
|
4673
|
-
'icon': this.variant === 'icon',
|
4674
|
-
'button-disabled': this.disabled,
|
4675
|
-
} }, index.h("button", { key: 'b13438808d69e389bc75d6f06b81a40c7561eea8', class: "button-native" }, index.h("slot", { key: 'e684524f4ff0ceeca466293e1fc8737cf66184e0', name: "start" }), index.h("slot", { key: '66a1c7fa233f85a76a7d0cc2aad74e35ce5cd3f4' }), index.h("slot", { key: 'e369d09a351a1d1dd0d98d3812c1b75a0e84eae0', name: "end" }))));
|
4676
|
-
}
|
4677
|
-
};
|
4678
|
-
CpslButton.style = CpslButtonStyle0;
|
4679
|
-
|
4680
|
-
const cpslCodeInputCss = ":host{--input-width:40px;--input-height:54px;--input-border-radius:var(--cpsl-border-radius-input);--input-border-color:var(--cpsl-color-input-border-placeholder);--input-border-width:1px;--input-background-color:var(--cpsl-color-input-surface-default);--input-border-error-color:var(--cpsl-color-input-border-error);--input-font-size:clamp(20px, 1.25rem, 30px);--input-color:var(--cpsl-color-text-primary);--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:12px;--helper-text-margin-top:6px;display:block;font-family:var(--cpsl-font-family, inherit)}.code-container{display:flex;gap:8px}.code-input{font-family:var(--cpsl-font-family, inherit);border-radius:var(--input-border-radius);font-size:var(--input-font-size);border-color:var(--input-border-color);border-width:var(--input-border-width);border-style:solid;font-size:var(--input-font-size);color:var(--input-color);width:var(--input-width);height:var(--input-height);background-color:var(--input-background-color);box-sizing:border-box;text-align:center;outline:none}.code-input:focus{--input-border-color:var(--cpsl-color-input-border-active)}.code-input::-webkit-outer-spin-button,.code-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.code-input .error-container{border-color:var(--input-border-error-color)}input[type=number]{-moz-appearance:textfield}.helper-text-container{flex-basis:100%;display:flex;align-items:center;gap:4px;color:var(--helper-text-color);font-size:var(--helper-text-font-size);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)}";
|
4681
|
-
const CpslCodeInputStyle0 = cpslCodeInputCss;
|
4682
|
-
|
4683
|
-
const CpslCodeInput = class {
|
4684
|
-
constructor(hostRef) {
|
4685
|
-
index.registerInstance(this, hostRef);
|
4686
|
-
this.cpslInput = index.createEvent(this, "cpslInput", 7);
|
4687
|
-
this.handleInput = (ind, ev) => {
|
4688
|
-
var _a;
|
4689
|
-
const inputElements = this.inputs;
|
4690
|
-
if (ev.inputType == 'insertText') {
|
4691
|
-
if (this.type === 'number' && isNaN(parseInt(ev.data))) {
|
4692
|
-
inputElements[ind].value = '';
|
4693
|
-
return;
|
4694
|
-
}
|
4695
|
-
inputElements[Math.min(this.length - 1, ind + 1)].focus();
|
4696
|
-
const newCode = `${(_a = this.code) !== null && _a !== void 0 ? _a : ''}${ev.data}`;
|
4697
|
-
this.cpslInput.emit({ value: newCode });
|
4698
|
-
this.code = newCode;
|
4699
|
-
}
|
4700
|
-
};
|
4701
|
-
this.handleKeyDown = (ind, ev) => {
|
4702
|
-
const inputElements = this.inputs;
|
4703
|
-
switch (ev.key) {
|
4704
|
-
case 'Backspace': {
|
4705
|
-
let newCode;
|
4706
|
-
if (!inputElements[ind].value) {
|
4707
|
-
inputElements[Math.max(0, ind - 1)].value = '';
|
4708
|
-
inputElements[Math.max(0, ind - 1)].focus();
|
4709
|
-
newCode = this.code.substring(0, ind - 1);
|
4710
|
-
}
|
4711
|
-
else {
|
4712
|
-
newCode = this.code.substring(0, ind);
|
4713
|
-
}
|
4714
|
-
this.cpslInput.emit({ value: newCode });
|
4715
|
-
this.code = newCode;
|
4716
|
-
break;
|
4717
|
-
}
|
4718
|
-
case 'ArrowLeft': {
|
4719
|
-
setTimeout(() => {
|
4720
|
-
this.inputs[ind].setSelectionRange(1, 1);
|
4721
|
-
}, 0);
|
4722
|
-
break;
|
4723
|
-
}
|
4724
|
-
}
|
4725
|
-
};
|
4726
|
-
this.handleFocus = (ind) => {
|
4727
|
-
const inputElements = this.inputs;
|
4728
|
-
for (const input of inputElements) {
|
4729
|
-
if (!input.value) {
|
4730
|
-
input.focus();
|
4731
|
-
break;
|
4732
|
-
}
|
4733
|
-
else if (input.id === `code-input-${this.length - 1}`) {
|
4734
|
-
input.focus();
|
4735
|
-
break;
|
4736
|
-
}
|
4737
|
-
}
|
4738
|
-
setTimeout(() => {
|
4739
|
-
inputElements[ind].setSelectionRange(1, 1);
|
4740
|
-
}, 0);
|
4741
|
-
};
|
4742
|
-
this.handlePaste = (e) => {
|
4743
|
-
const inputElements = this.inputs;
|
4744
|
-
const pastedCode = e.clipboardData.getData('text');
|
4745
|
-
if (this.type === 'number' && isNaN(parseInt(pastedCode))) {
|
4746
|
-
setTimeout(() => {
|
4747
|
-
inputElements[0].value = '';
|
4748
|
-
}, 0);
|
4749
|
-
return;
|
4750
|
-
}
|
4751
|
-
this.cpslInput.emit({
|
4752
|
-
value: pastedCode,
|
4753
|
-
});
|
4754
|
-
inputElements.forEach((input, index) => {
|
4755
|
-
input.value = pastedCode.charAt(index);
|
4756
|
-
});
|
4757
|
-
inputElements[this.length - 1].focus();
|
4758
|
-
};
|
4759
|
-
this.code = undefined;
|
4760
|
-
this.errorText = undefined;
|
4761
|
-
this.helperText = undefined;
|
4762
|
-
this.length = undefined;
|
4763
|
-
this.type = 'number';
|
4764
|
-
}
|
4765
|
-
get inputs() {
|
4766
|
-
return Array.from(this.el.shadowRoot.querySelectorAll('input'));
|
4767
|
-
}
|
4768
|
-
render() {
|
4769
|
-
var _a;
|
4770
|
-
return (index.h(index.Host, { key: 'a71927ad671c9bcea55951797bb22fcede118d59' }, index.h("div", { key: '033281ae8250377ee175112f6428f412eaa339f5', class: "code-container" }, new Array(this.length).fill(0).map((_, i) => {
|
4771
|
-
var _a;
|
4772
|
-
return (index.h("input", { class: { 'code-input': true, 'error': Boolean(this.errorText) }, id: `code-input-${i}`, maxLength: 1, onKeyDown: ev => this.handleKeyDown(i, ev), onInput: ev => this.handleInput(i, ev), onFocus: () => this.handleFocus(i), onPaste: this.handlePaste, min: 0, max: 9, value: (_a = this.code) === null || _a === void 0 ? void 0 : _a[i], inputMode: this.type === 'number' ? 'numeric' : 'text' }));
|
4773
|
-
})), (this.errorText || this.helperText) && (index.h("div", { class: { 'helper-text-container': true, 'error-text': Boolean(this.errorText) } }, index.h("cpsl-icon", { icon: Boolean(this.errorText) ? 'alertCircle' : 'infoCircle' }), index.h("span", null, (_a = this.errorText) !== null && _a !== void 0 ? _a : this.helperText)))));
|
4774
|
-
}
|
4775
|
-
get el() { return index.getElement(this); }
|
4776
|
-
};
|
4777
|
-
CpslCodeInput.style = CpslCodeInputStyle0;
|
4778
|
-
|
4779
|
-
const cpslDividerCss = ":host{--divider-height:1px;--divider-color:var(--cpsl-color-divider);display:flex;align-items:center;height:24px;color:var(--cpsl-color-text-subtle);font-family:var(--cpsl-font-family, inherit);font-size:clamp(14px, 0.875rem, 21px);font-weight:600;gap:16px}:host div{flex:1;background-color:var(--divider-color);height:var(--divider-height)}";
|
4780
|
-
const CpslDividerStyle0 = cpslDividerCss;
|
4781
|
-
|
4782
|
-
const CpslDivider = class {
|
4783
|
-
constructor(hostRef) {
|
4784
|
-
index.registerInstance(this, hostRef);
|
4785
|
-
}
|
4786
|
-
render() {
|
4787
|
-
return (index.h(index.Host, { key: '7b35806d55027d32c6f8c0e5cfcaef46f35ebd68' }, index.h("div", { key: '5af8157b329cfd491256537c267adbe3e15c8914' }), index.h("slot", { key: '913734d72f49bc1092f447326710223eb85f901e' }), index.h("div", { key: '47b8c8569f8e43a830bfb84636faca0df7b7e7df' })));
|
4788
|
-
}
|
4789
|
-
};
|
4790
|
-
CpslDivider.style = CpslDividerStyle0;
|
4979
|
+
const Icons = { AD: AD, AE: AE, AF: AF, AG: AG, AI: AI, AL: AL, AM: AM, AO: AO, AR: AR, AS: AS, AT: AT, AU: AU, AW: AW, AX: AX, AZ: AZ, BA: BA, BB: BB, BD: BD, BE: BE, BF: BF, BG: BG, BH: BH, BI: BI, BJ: BJ, BL: BL, BM: BM, BN: BN, BO: BO, BQ: BQ, BQ2: BQ2, BQ3: BQ3, BR: BR, BS: BS, BT: BT, BW: BW, BY: BY, BZ: BZ, CA: CA, CC: CC, CD: CD, CD2: CD2, CF: CF, CH: CH, CK: CK, CL: CL, CM: CM, CN: CN, CO: CO, CR: CR, CU: CU, CW: CW, CX: CX, CY: CY, CZ: CZ, DE: DE, DJ: DJ, DK: DK, DM: DM, DO: DO, DS: DS, DZ: DZ, EC: EC, EE: EE, EG: EG, EH: EH, ER: ER, ES: ES, ET: ET, FI: FI, FJ: FJ, FK: FK, FM: FM, FO: FO, FR: FR, GA: GA, GB2: GB2, GB: GB, GD: GD, GE: GE, GG: GG, GH: GH, GI: GI, GL: GL, GM: GM, GN: GN, GQ: GQ, GR: GR, GT: GT, GU: GU, GW: GW, GY: GY, HK: HK, HN: HN, HR: HR, HT: HT, HU: HU, ID: ID, IE: IE, IL: IL, IM: IM, IN: IN, IO: IO, IQ: IQ, IR: IR, IS: IS, IT: IT, JE: JE, JM: JM, JO: JO, JP: JP, KE: KE, KG: KG, KH: KH, KI: KI, KM: KM, KN: KN, KP: KP, KR: KR, KW: KW, KY: KY, KZ: KZ, LA: LA, LB: LB, LC: LC, LI: LI, LK: LK, LR: LR, LS: LS, LT: LT, LU: LU, LV: LV, LY: LY, MA: MA, MC: MC, MD: MD, ME: ME, MG: MG, MH: MH, MK: MK, ML: ML, MM: MM, MN: MN, MO: MO, MP: MP, MQ: MQ, MR: MR, MS: MS, MT: MT, MU: MU, MV: MV, MW: MW, MX: MX, MY: MY, MZ: MZ, NA: NA, NE: NE, NF: NF, NG: NG, NI: NI, NL: NL, NO: NO, NP: NP, NR: NR, NU: NU, NZ: NZ, OM: OM, PA: PA, PE: PE, PF: PF, PG: PG, PH: PH, PK: PK, PL: PL, PN: PN, PR: PR, PS: PS, PT: PT, PW: PW, PY: PY, QA: QA, RO: RO, RS: RS, RU: RU, RW: RW, SA: SA, SB: SB, SC: SC, SE: SE, SG: SG, SI: SI, SK: SK, SL: SL, SM: SM, SN: SN, SO: SO, SR: SR, SS: SS, ST: ST, SV: SV, SX: SX, SY: SY, SZ: SZ, TC: TC, TD: TD, TG: TG, TH: TH, TJ: TJ, TK: TK, TL: TL, TM: TM, TN: TN, TO: TO, TR: TR, TT: TT, TV: TV, TW: TW, TZ: TZ, UA: UA, UG: UG, US: US, UY: UY, UZ: UZ, VC: VC, VE: VE, VG: VG, VI: VI, VN: VN, VU: VU, WS: WS, YE: YE, ZA: ZA, ZM: ZM, ZW: ZW, alertCircle: AlertCircle, angelListBrand: AngelListBrand, angelList: AngelList, appleBrand: AppleBrand, apple: Apple, arrowNarrow: ArrowNarrow, arrow: Arrow, backupKit: BackupKit, brush: Brush, capsuleLogo: CapsuleLogo, capsuleRingsDark: CapsuleRingsDark, capsuleRings: CapsuleRings, capsule: Capsule, checkCircle: CheckCircle, check: Check, chevronUp: ChevronUp, clock: Clock, close: Close, clubhouseBrand: ClubhouseBrand, clubhouse: Clubhouse, copy: Copy, decentBrand: DecentBrand, decent: Decent, discordBrand: DiscordBrand, discord: Discord, downloadCloud: DownloadCloud, dribbbleBrand: DribbbleBrand, dribbble: Dribbble, earth: Earth, eyeOff: EyeOff, eye: Eye, facebookBrand: FacebookBrand, facebook: Facebook, figmaBrand: FigmaBrand, figma: Figma, file: File, githubBrand: GithubBrand, github: Github, googleBrand: GoogleBrand, google: Google, helpCircle: HelpCircle, heroEmail: HeroEmail, heroLock: HeroLock, heroPasskey: HeroPasskey, heroPhone: HeroPhone, heroWallet: HeroWallet, home: Home, infoCircle: InfoCircle, instagramBrand: InstagramBrand, instagram: Instagram, key: Key, lightning01: Lightning01, lightning: Lightning, linkedinBrand: LinkedinBrand, linkedin: Linkedin, mail: Mail, moreLoginOptions: MoreLoginOptions, phone: Phone, pintrestBrand: PintrestBrand, pintrest: Pintrest, plusCircle: PlusCircle, rampNetworkBrand: RampNetworkBrand, rampNetwork: RampNetwork, redditBrand: RedditBrand, reddit: Reddit, settings: Settings, signalBrand: SignalBrand, signal: Signal, snapchatBrand: SnapchatBrand, snapchat: Snapchat, telegramBrand: TelegramBrand, telegram: Telegram, tikTokBrand: TikTokBrand, tikTok: TikTok, tumblrBrand: TumblrBrand, tumblr: Tumblr, twitterBrand: TwitterBrand, twitter: Twitter, wallet: Wallet, youtubeBrand: YoutubeBrand, youtube: Youtube, };
|
4791
4980
|
|
4792
4981
|
const cpslDropdownCss = ":host{display:block;position:relative;font-family:Arial, sans-serif;--input-color:var(--cpsl-color-text-primary);--container-background-color:var(--cpsl-color-input-surface-default);--container-border-color:var(--cpsl-color-input-border-active);--scrollbar-color:var(--cpsl-color-text-subtle);--divider-color:var(--cpsl-color-divider);--input-placeholder-color:var(--cpsl-color-text-secondary);--input-font-size:var(--cpsl-font-size-body-m);--button-hover-color:var(--cpsl-color-tile-button-surface-hover);font-family:var(--cpsl-font-family, inherit)}.input-container{position:relative;width:100%}::slotted(cpsl-dropdown){position:absolute;width:100%;top:100%;left:0;z-index:2}.dropdown-button{display:flex;width:100%;padding:0 4px;background:none;border:none;align-items:center;justify-content:space-between;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--input-color)}.dropdown-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}.dropdown-button div{margin-left:8px;display:flex;align-items:center}.dropdown-options{display:none;position:fixed;list-style:none;padding:0;margin-top:4px;border:1px solid var(--container-border-color);border-radius:8px;z-index:999999999999;overflow-y:auto;max-height:300px;box-sizing:border-box;background-color:var(--container-background-color);}.dropdown-options.open{display:block}.dropdown-options li{padding:8px;cursor:pointer;display:flex;align-items:center;border-bottom:1px solid var(--cpsl-color-divider);color:var(--input-color);background:var(--container-background-color);font-size:var(--input-font-size)}.dropdown-options li:hover{background-color:var(--button-hover-color)}.dropdown-options li svg{width:24px;height:24px;margin-right:8px;padding:0 8px;vertical-align:middle;}.dropdown-options::-webkit-scrollbar{width:8px;height:8px;background-color:transparent;}.dropdown-options::-webkit-scrollbar-thumb{background-color:var(--scrollbar-color);border-radius:10px;border:2px solid transparent;background-clip:content-box;height:8px}.dropdown-options::-webkit-scrollbar-track{background:transparent;}.dropdown-value{margin-left:8px;color:var(--cpsl-color-text-secondary)}.dropdown-button .chevron{transition:transform 0.3s ease}.dropdown-button .chevron.closed{transform:rotate(180deg)}.search-bar{padding:0;border-bottom:1px solid var(--cpsl-color-divider);position:sticky;top:0;background:var(--container-background-color);z-index:1;}.search-bar input{width:100%;padding:8px;border:none;box-sizing:border-box;font-size:var(--input-font-size);color:var(--input-color);background-color:var(--container-background-color);border-radius:0;}.search-bar input::placeholder{color:var(--input-placeholder-color)}.search-bar input:focus{outline:none;border-color:transparent;}";
|
4793
4982
|
const CpslDropdownStyle0 = cpslDropdownCss;
|
@@ -4888,7 +5077,7 @@ const CpslDropdown = class {
|
|
4888
5077
|
}
|
4889
5078
|
render() {
|
4890
5079
|
var _a, _b, _c;
|
4891
|
-
return (index.h(index.Host, { key: '
|
5080
|
+
return (index.h(index.Host, { key: '65a2ad9d39aa2b234814128f565d1d0024f7b356', style: { width: this.width } }, index.h("button", { key: '15cf331bd42c8ef8812d699f43f01f234f24e6b4', 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: '1259100020d7726980b14ae655377fda6321de39', class: `chevron ${this.isOpen ? '' : 'closed'}`, innerHTML: Icons['chevronUp'] })), index.h("ul", { key: '78fd5bece65d9264cb76bae4c1512489747dc2e1', class: { 'dropdown-options': true, 'open': this.isOpen }, style: { width: this.width } }, this.hasCpslSearch && (index.h("li", { class: "search-bar" }, index.h("input", { 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))))));
|
4892
5081
|
}
|
4893
5082
|
get el() { return index.getElement(this); }
|
4894
5083
|
static get watchers() { return {
|
@@ -4908,12 +5097,12 @@ const CpslIcon = class {
|
|
4908
5097
|
this.icon = undefined;
|
4909
5098
|
}
|
4910
5099
|
render() {
|
4911
|
-
return (index.h(index.Host, { key: '
|
5100
|
+
return (index.h(index.Host, { key: '5e1a7143534342f6c3d79ccf1edcc40aa903773a', part: "icon", role: "img" }, !Boolean(this.icon) ? index.h("img", { src: this.src }) : index.h("div", { innerHTML: Icons[this.icon] })));
|
4912
5101
|
}
|
4913
5102
|
};
|
4914
5103
|
CpslIcon.style = CpslIconStyle0;
|
4915
5104
|
|
4916
|
-
const cpslInputCss = ":host{--container-box-shadow:none;--container-box-shadow-color:var(--cpsl-color-
|
5105
|
+
const cpslInputCss = ":host{--container-box-shadow:none;--container-box-shadow-color:var(--cpsl-color-input-border-placeholder);--container-border-color:var(--cpsl-color-input-border-active);--container-border-error-color:var(--cpsl-color-input-border-error);--container-background-color:var(--cpsl-color-input-surface-default);--container-background-color-disabled:var(--cpsl-color-input-surface-disabled);--container-border-width:1px;--container-border-radius:var(--cpsl-border-radius-input);--container-padding-top:0px;--container-padding-bottom:0px;--container-padding-end:12px;--container-padding-start:12px;--container-height:48px;--container-gap:12px;--input-background-color:var(--cpsl-color-input-surface-default);--input-background-color-disabled:var(--cpsl-color-input-surface-disabled);--input-color:var(--cpsl-color-text-primary);--input-placeholder-color:var(--cpsl-color-text-secondary);--input-font-size:var(--cpsl-font-size-body-m);--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;--button-padding:4px;display:flex;flex-direction:column;gap:4px;font-family:var(--cpsl-font-family, inherit)}:host(:not(.has-value)){--container-border-color:var(--cpsl-color-input-border-placeholder);--input-color:var(--cpsl-color-text-secondary)}:host(.disabled){--container-background-color:var(--container-background-color-disabled);--input-background-color:var(--input-background-color-disabled);--input-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-input-border-active);--container-background-color:var(--cpsl-color-input-surface-default)}.input-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);display:flex;align-items:center;box-sizing:border-box;height:var(--container-height);gap:var(--container-gap);border-style:solid;border-width:var(--container-border-width);border-color:var(--container-border-color);border-radius:var(--container-border-radius);background-color:var(--container-background-color);box-shadow:var(--container-box-shadow)}.error-container{border-color:var(--container-border-error-color)}.native-input{flex:1;min-width:0;border:none;height:100%;box-sizing:border-box;font-size:var(--input-font-size);color:var(--input-color);background-color:var(--input-background-color);font-family:var(--cpsl-font-family, inherit)}.native-input:focus,.native-input:focus-visible{outline:none}.native-input::placeholder{color:var(--input-placeholder-color);opacity:1;}.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)}:host ::slotted([slot=start]){flex:0}:host ::slotted([slot=end]){flex:0}:host ::slotted(cpsl-icon){--icon-color:var(--input-color)}:host ::slotted(cpsl-button){width:calc(var(--container-height) - var(--button-padding) * 2);height:calc(var(--container-height) - var(--button-padding) * 2);--button-border-radius:calc(var(--container-border-radius) - 2px)}:host slot[name=end]::slotted(cpsl-button){margin-right:calc((var(--container-padding-end) - var(--button-padding)) * -1)}:host slot[name=start]::slotted(cpsl-button){margin-left:calc((var(--container-padding-end) - var(--button-padding)) * -1)}";
|
4917
5106
|
const CpslInputStyle0 = cpslInputCss;
|
4918
5107
|
|
4919
5108
|
const CpslInput = class {
|
@@ -4985,6 +5174,7 @@ const CpslInput = class {
|
|
4985
5174
|
this.placeholder = undefined;
|
4986
5175
|
this.readonly = false;
|
4987
5176
|
this.required = false;
|
5177
|
+
this.showOptionalLabel = false;
|
4988
5178
|
this.spellcheck = false;
|
4989
5179
|
this.startIconSrc = undefined;
|
4990
5180
|
this.startIcon = undefined;
|
@@ -5001,6 +5191,7 @@ const CpslInput = class {
|
|
5001
5191
|
}
|
5002
5192
|
}
|
5003
5193
|
componentDidLoad() {
|
5194
|
+
this.initButtons();
|
5004
5195
|
if (Boolean(this.value)) {
|
5005
5196
|
this.enableSlots();
|
5006
5197
|
}
|
@@ -5011,14 +5202,29 @@ const CpslInput = class {
|
|
5011
5202
|
disableSlots() {
|
5012
5203
|
var _a, _b;
|
5013
5204
|
if (!this.noAutoDisable) {
|
5014
|
-
(_a = this.
|
5015
|
-
(_b = this.
|
5205
|
+
(_a = this.endEl) === null || _a === void 0 ? void 0 : _a.setAttribute('disabled', 'true');
|
5206
|
+
(_b = this.startEl) === null || _b === void 0 ? void 0 : _b.setAttribute('disabled', 'true');
|
5016
5207
|
}
|
5017
5208
|
}
|
5018
5209
|
enableSlots() {
|
5019
5210
|
var _a, _b;
|
5020
|
-
(_a = this.
|
5021
|
-
(_b = this.
|
5211
|
+
(_a = this.endEl) === null || _a === void 0 ? void 0 : _a.setAttribute('disabled', 'false');
|
5212
|
+
(_b = this.startEl) === null || _b === void 0 ? void 0 : _b.setAttribute('disabled', 'false');
|
5213
|
+
}
|
5214
|
+
initButtons() {
|
5215
|
+
var _a, _b;
|
5216
|
+
if (((_a = this.endEl) === null || _a === void 0 ? void 0 : _a.tagName) === 'CPSL-BUTTON') {
|
5217
|
+
this.endEl.setAttribute('full-width', 'true');
|
5218
|
+
this.endEl.addEventListener('mousedown', e => {
|
5219
|
+
e.preventDefault();
|
5220
|
+
});
|
5221
|
+
}
|
5222
|
+
if (((_b = this.startEl) === null || _b === void 0 ? void 0 : _b.tagName) === 'CPSL-BUTTON') {
|
5223
|
+
this.startEl.setAttribute('full-width', 'true');
|
5224
|
+
this.startEl.addEventListener('mousedown', e => {
|
5225
|
+
e.preventDefault();
|
5226
|
+
});
|
5227
|
+
}
|
5022
5228
|
}
|
5023
5229
|
emitInputChange(event) {
|
5024
5230
|
const { value } = this;
|
@@ -5034,9 +5240,15 @@ const CpslInput = class {
|
|
5034
5240
|
get nativeInput() {
|
5035
5241
|
return this.el.shadowRoot.getElementById(this.inputId);
|
5036
5242
|
}
|
5243
|
+
get startEl() {
|
5244
|
+
return this.el.querySelector('[slot="start"]');
|
5245
|
+
}
|
5246
|
+
get endEl() {
|
5247
|
+
return this.el.querySelector('[slot="end"]');
|
5248
|
+
}
|
5037
5249
|
render() {
|
5038
5250
|
var _a;
|
5039
|
-
return (index.h(index.Host, { key: '
|
5251
|
+
return (index.h(index.Host, { key: '323cd77e6a96a6259c294cf30c1acfc8b638295d', class: { 'disabled': this.disabled, 'focused': this.hasFocus, 'has-value': Boolean(this.focusedValue) || Boolean(this.value) } }, this.label && (index.h("label", { class: "label", htmlFor: this.inputId }, this.label, this.required ? '*' : ' ', !this.required && this.showOptionalLabel ? index.h("span", { class: "optional-label" }, "(optional)") : '')), index.h("div", { key: '645781496038445cb011ba003a54ca5a63d80731', class: { 'input-container': true, 'error-container': Boolean(this.errorText) } }, index.h("slot", { key: 'c32784e17782d18f44d5e1adda605ca47bf6937c', name: "start" }), index.h("input", { key: 'bbe3efcc48eb71aaf6d6f58e32fc466a19bb06ae', class: "native-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, spellcheck: this.spellcheck, type: this.type, value: this.value, onInput: this.onInput, onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.focusInput, onPaste: this.onPaste }), index.h("slot", { key: '646727d4e5be630242778f6df967810be7dea7a6', name: "end" })), (this.errorText || this.helperText) && (index.h("div", { class: { 'helper-text-container': true, 'error-text': Boolean(this.errorText) } }, index.h("span", null, (_a = this.errorText) !== null && _a !== void 0 ? _a : this.helperText)))));
|
5040
5252
|
}
|
5041
5253
|
get el() { return index.getElement(this); }
|
5042
5254
|
static get watchers() { return {
|
@@ -14192,7 +14404,7 @@ Draggable.zIndex = 1000;
|
|
14192
14404
|
Draggable.version = "3.12.5";
|
14193
14405
|
_getGSAP() && gsap.registerPlugin(Draggable);
|
14194
14406
|
|
14195
|
-
const cpslModalCss = ":host{--container-width:360px;--container-gap:16px;--container-border-radius:var(--cpsl-border-radius-modal);--container-border-width:1px;--container-border-color:var(--cpsl-color-modal-border);--container-background-color:var(--cpsl-color-modal-surface-footer);--container-padding-bottom:16px;--container-box-shadow:0px 2px 4px 0px var(--cpsl-color-alpha-black-8);--inner-container-background-color:var(--cpsl-color-modal-surface-main);--inner-container-border-radius:var(--cpsl-border-radius-modal);--inner-container-box-shadow:0px 1px 2px 0px var(--cpsl-color-alpha-black-8);--inner-container-padding-top:16px;--inner-container-padding-end:16px;--inner-container-padding-bottom:24px;--inner-container-padding-start:16px;--inner-container-margin-bottom:16px;display:
|
14407
|
+
const cpslModalCss = ":host{--container-width:360px;--container-gap:16px;--container-border-radius:var(--cpsl-border-radius-modal);--container-border-width:1px;--container-border-color:var(--cpsl-color-modal-border);--container-background-color:var(--cpsl-color-modal-surface-footer);--container-padding-bottom:16px;--container-box-shadow:0px 2px 4px 0px var(--cpsl-color-alpha-black-8);--inner-container-background-color:var(--cpsl-color-modal-surface-main);--inner-container-border-radius:var(--cpsl-border-radius-modal);--inner-container-box-shadow:0px 1px 2px 0px var(--cpsl-color-alpha-black-8);--inner-container-padding-top:16px;--inner-container-padding-end:16px;--inner-container-padding-bottom:24px;--inner-container-padding-start:16px;--inner-container-margin-bottom:16px;display:block;z-index:10005;position:relative}:host cpsl-overlay{z-index:10005}@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(.no-overlay){z-index:0}.modal-header{position:sticky;top:0;padding-top:var(--inner-container-padding-top);background-color:var(--inner-container-background-color)}.modal-wrapper{z-index:10005;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;-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);width:var(--container-width);display:flex;flex-direction:column;border:var(--container-border-width) solid var(--container-border-color);border-radius:var(--container-border-radius);box-shadow:var(--container-box-shadow);background-color:var(--container-background-color);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-inner-container{-webkit-padding-start:var(--inner-container-padding-start);padding-inline-start:var(--inner-container-padding-start);-webkit-padding-end:var(--inner-container-padding-end);padding-inline-end:var(--inner-container-padding-end);padding-top:0;padding-bottom:var(--inner-container-padding-bottom);margin-bottom:var(--inner-container-margin-bottom);border-radius:var(--inner-container-border-radius);box-shadow:var(--inner-container-box-shadow);background-color:var(--inner-container-background-color)}.expanded{height:0px;overflow:hidden;display:none}.modal-inner-container.no-footer{margin-bottom:0px;box-shadow:none}.modal-container.no-footer{padding-bottom:0px}.no-opacity{opacity:0}";
|
14196
14408
|
const CpslModalStyle0 = cpslModalCss;
|
14197
14409
|
|
14198
14410
|
gsapWithCSS.registerPlugin(Draggable);
|
@@ -14215,6 +14427,7 @@ const CpslModal = class {
|
|
14215
14427
|
this.footerTransitionDuration = 0.15;
|
14216
14428
|
this.noOverlay = undefined;
|
14217
14429
|
this.open = undefined;
|
14430
|
+
this.zIndexOverride = undefined;
|
14218
14431
|
}
|
14219
14432
|
toggleHeight() {
|
14220
14433
|
this.footerExpanded ? this.expandFooterTl.play() : this.expandFooterTl.reverse();
|
@@ -14408,9 +14621,9 @@ const CpslModal = class {
|
|
14408
14621
|
}
|
14409
14622
|
render() {
|
14410
14623
|
if (this.noOverlay) {
|
14411
|
-
return index.h(index.Host,
|
14624
|
+
return (index.h(index.Host, { style: Boolean(this.zIndexOverride) ? { zIndex: `${this.zIndexOverride}` } : {}, class: "no-overlay" }, this.Modal));
|
14412
14625
|
}
|
14413
|
-
return (index.h(index.Host, { class: { 'include-mobile-styling': true } }, index.h("cpsl-overlay", { id: "overlay", open: this.open, enterTransitionDuration: this.enterTransitionDuration, exitTransitionDuration: this.exitTransitionDuration }), index.h("div", { id: "modal-wrapper", class: "modal-wrapper" }, this.Modal)));
|
14626
|
+
return (index.h(index.Host, { style: Boolean(this.zIndexOverride) ? { zIndex: `${this.zIndexOverride}` } : {}, class: { 'include-mobile-styling': true } }, index.h("cpsl-overlay", { zIndexOverride: Boolean(this.zIndexOverride) ? this.zIndexOverride : undefined, id: "overlay", open: this.open, enterTransitionDuration: this.enterTransitionDuration, exitTransitionDuration: this.exitTransitionDuration }), index.h("div", { id: "modal-wrapper", class: "modal-wrapper" }, this.Modal)));
|
14414
14627
|
}
|
14415
14628
|
get el() { return index.getElement(this); }
|
14416
14629
|
static get watchers() { return {
|
@@ -14420,15 +14633,62 @@ const CpslModal = class {
|
|
14420
14633
|
};
|
14421
14634
|
CpslModal.style = CpslModalStyle0;
|
14422
14635
|
|
14423
|
-
const
|
14636
|
+
const cpslNavButtonGroupCss = ":host{display:flex;flex-direction:column;gap:8px;padding:0px 16px;box-sizing:border-box;width:100%}:host ::slotted(cpsl-button){--button-padding-start:8px;--button-padding-end:8px;--button-padding-top:8px;--button-padding-bottom:8px;--button-justify-content:start;--button-primary-color:var(--cpsl-color-background-48);--button-primary-background-color:var(--cpsl-color-background-0);--button-primary-border-color:var(--cpsl-color-background-0);--button-primary-icon-color:var(--cpsl-color-background-48);--button-primary-disabled-color:var(--cpsl-color-background-48);--button-primary-disabled-background-color:var(--cpsl-color-background-0);--button-primary-disabled-border-color:var(--cpsl-color-background-0);--button-primary-disabled-icon-color:var(--cpsl-color-background-48);--button-primary-hover-color:var(--cpsl-color-background-48);--button-primary-hover-background-color:var(--cpsl-color-background-4);--button-primary-hover-border-color:var(--cpsl-color-background-4);--button-primary-hover-icon-color:var(--cpsl-color-background-48);--button-primary-active-color:var(--cpsl-color-background-48);--button-primary-active-background-color:var(--cpsl-color-background-4);--button-primary-active-border-color:var(--cpsl-color-background-4);--button-primary-active-icon-color:var(--cpsl-color-background-48)}:host ::slotted(cpsl-button.selected){--button-primary-color:var(--cpsl-color-text-primary);--button-primary-background-color:var(--cpsl-color-background-4);--button-primary-border-color:var(--cpsl-color-background-4);--button-primary-icon-color:var(--cpsl-color-text-primary);--button-primary-disabled-color:var(--cpsl-color-text-primary);--button-primary-disabled-background-color:var(--cpsl-color-background-4);--button-primary-disabled-border-color:var(--cpsl-color-background-4);--button-primary-disabled-icon-color:var(--cpsl-color-text-primary);--button-primary-hover-color:var(--cpsl-color-text-primary);--button-primary-hover-background-color:var(--cpsl-color-background-4);--button-primary-hover-border-color:var(--cpsl-color-background-4);--button-primary-hover-icon-color:var(--cpsl-color-text-primary);--button-primary-active-color:var(--cpsl-color-text-primary);--button-primary-active-background-color:var(--cpsl-color-background-4);--button-primary-active-border-color:var(--cpsl-color-background-4);--button-primary-active-icon-color:var(--cpsl-color-text-primary)}";
|
14637
|
+
const CpslNavButtonGroupStyle0 = cpslNavButtonGroupCss;
|
14638
|
+
|
14639
|
+
const CpslNavButtonGroup = class {
|
14640
|
+
constructor(hostRef) {
|
14641
|
+
index.registerInstance(this, hostRef);
|
14642
|
+
this.selectedId = undefined;
|
14643
|
+
}
|
14644
|
+
selectItem() {
|
14645
|
+
this.buttonSlots.forEach(item => {
|
14646
|
+
if (item.id === this.selectedId) {
|
14647
|
+
item.classList.add('selected');
|
14648
|
+
}
|
14649
|
+
else {
|
14650
|
+
item.classList.remove('selected');
|
14651
|
+
}
|
14652
|
+
});
|
14653
|
+
}
|
14654
|
+
componentWillRender() {
|
14655
|
+
var _a;
|
14656
|
+
this.buttonSlots.forEach(item => {
|
14657
|
+
item.setAttribute('variant', 'primary');
|
14658
|
+
item.setAttribute('full-width', 'true');
|
14659
|
+
this.selectItem();
|
14660
|
+
});
|
14661
|
+
if (Boolean((_a = this.otherSlots) === null || _a === void 0 ? void 0 : _a.length)) {
|
14662
|
+
console.error('cpsl-button is the only valid child of cpsl-nav-button-group');
|
14663
|
+
this.otherSlots.forEach(item => item.remove());
|
14664
|
+
}
|
14665
|
+
}
|
14666
|
+
get buttonSlots() {
|
14667
|
+
return this.el.querySelectorAll('cpsl-button');
|
14668
|
+
}
|
14669
|
+
get otherSlots() {
|
14670
|
+
return this.el.querySelectorAll('&> *:not(cpsl-button)');
|
14671
|
+
}
|
14672
|
+
render() {
|
14673
|
+
return (index.h(index.Host, { key: '4de8526be6448d13688e491a0d460557939fe83b' }, index.h("slot", { key: '633ee1b8e1e637171e8fd55b0375df99bb9d4607' })));
|
14674
|
+
}
|
14675
|
+
get el() { return index.getElement(this); }
|
14676
|
+
static get watchers() { return {
|
14677
|
+
"selectedId": ["selectItem"]
|
14678
|
+
}; }
|
14679
|
+
};
|
14680
|
+
CpslNavButtonGroup.style = CpslNavButtonGroupStyle0;
|
14681
|
+
|
14682
|
+
const cpslOverlayCss = ":host{position:fixed;width:100%;height:100%;inset:0px;z-index:10001;opacity:0%;display:none;background-color:var(--cpsl-color-alpha-black-50)}:host(.over-modal){z-index:10005}";
|
14424
14683
|
const CpslOverlayStyle0 = cpslOverlayCss;
|
14425
14684
|
|
14426
14685
|
const CpslOverlay = class {
|
14427
14686
|
constructor(hostRef) {
|
14428
14687
|
index.registerInstance(this, hostRef);
|
14429
|
-
this.open = undefined;
|
14430
14688
|
this.enterTransitionDuration = 0.5;
|
14431
14689
|
this.exitTransitionDuration = 0.5;
|
14690
|
+
this.open = undefined;
|
14691
|
+
this.zIndexOverride = undefined;
|
14432
14692
|
}
|
14433
14693
|
toggleHeight() {
|
14434
14694
|
this.open
|
@@ -14450,7 +14710,7 @@ const CpslOverlay = class {
|
|
14450
14710
|
}
|
14451
14711
|
}
|
14452
14712
|
render() {
|
14453
|
-
return (index.h(index.Host, { key: '
|
14713
|
+
return (index.h(index.Host, { key: '7e2c644351871bd6d49b477302635ee51b57848b', style: Boolean(this.zIndexOverride) ? { zIndex: `${this.zIndexOverride}` } : {} }, index.h("slot", { key: 'd21ebec32fbc75066a5fd3c4107ff48fd6a9ee91' })));
|
14454
14714
|
}
|
14455
14715
|
get el() { return index.getElement(this); }
|
14456
14716
|
static get watchers() { return {
|
@@ -14459,6 +14719,91 @@ const CpslOverlay = class {
|
|
14459
14719
|
};
|
14460
14720
|
CpslOverlay.style = CpslOverlayStyle0;
|
14461
14721
|
|
14722
|
+
const cpslPaginationCss = ":host{display:block}.icon{--height:20px;--width:20px}.start-icon{transform:rotate(180deg)}";
|
14723
|
+
const CpslPaginationStyle0 = cpslPaginationCss;
|
14724
|
+
|
14725
|
+
const CpslPagination = class {
|
14726
|
+
constructor(hostRef) {
|
14727
|
+
index.registerInstance(this, hostRef);
|
14728
|
+
this.cpslPaginationChanged = index.createEvent(this, "cpslPaginationChanged", 7);
|
14729
|
+
this.handlePrevClick = () => {
|
14730
|
+
if (this.currentPage > 0) {
|
14731
|
+
this.currentPage--;
|
14732
|
+
}
|
14733
|
+
};
|
14734
|
+
this.handleNextClick = () => {
|
14735
|
+
if (this.currentPage < this.totalPages - 1) {
|
14736
|
+
this.currentPage++;
|
14737
|
+
}
|
14738
|
+
};
|
14739
|
+
this.handlePageClick = (value) => () => {
|
14740
|
+
if (value >= 0 && value <= this.totalPages - 1) {
|
14741
|
+
this.currentPage = value;
|
14742
|
+
}
|
14743
|
+
};
|
14744
|
+
this.currentPage = 0;
|
14745
|
+
this.initialPage = undefined;
|
14746
|
+
this.totalPages = undefined;
|
14747
|
+
this.visiblePages = 5;
|
14748
|
+
}
|
14749
|
+
watchChange() {
|
14750
|
+
this.cpslPaginationChanged.emit(this.currentPage);
|
14751
|
+
}
|
14752
|
+
componentWillLoad() {
|
14753
|
+
var _a;
|
14754
|
+
this.currentPage = (_a = this.initialPage) !== null && _a !== void 0 ? _a : 0;
|
14755
|
+
if (this.visiblePages < 5) {
|
14756
|
+
this.visiblePages = 5;
|
14757
|
+
}
|
14758
|
+
}
|
14759
|
+
render() {
|
14760
|
+
const filteredPages = this.totalPages <= this.visiblePages ? [...Array(this.totalPages).keys()] : [];
|
14761
|
+
if (this.totalPages > this.visiblePages) {
|
14762
|
+
filteredPages.push(0);
|
14763
|
+
const isFirstSelected = this.currentPage === 0;
|
14764
|
+
const isLastSelected = this.currentPage === this.totalPages - 1;
|
14765
|
+
const isFirstOrLastSelected = isFirstSelected || isLastSelected;
|
14766
|
+
let remainingVisible = this.visiblePages - (isFirstOrLastSelected ? 2 : 3);
|
14767
|
+
const halfRemaining = Math.round(remainingVisible / 2);
|
14768
|
+
const numberBefore = Math.max(this.currentPage - 1, 0);
|
14769
|
+
const numberAfter = Math.max(this.totalPages - 2 - this.currentPage, 0);
|
14770
|
+
let beforeHalf = halfRemaining;
|
14771
|
+
let afterHalf = remainingVisible - halfRemaining;
|
14772
|
+
if (numberBefore >= beforeHalf) {
|
14773
|
+
if (numberAfter < afterHalf) {
|
14774
|
+
beforeHalf += afterHalf - numberAfter;
|
14775
|
+
afterHalf = numberAfter;
|
14776
|
+
}
|
14777
|
+
}
|
14778
|
+
else {
|
14779
|
+
afterHalf += beforeHalf - numberBefore;
|
14780
|
+
beforeHalf = numberBefore;
|
14781
|
+
}
|
14782
|
+
while (beforeHalf > 0) {
|
14783
|
+
filteredPages.push(this.currentPage - beforeHalf);
|
14784
|
+
beforeHalf--;
|
14785
|
+
}
|
14786
|
+
if (!isFirstSelected) {
|
14787
|
+
filteredPages.push(this.currentPage);
|
14788
|
+
}
|
14789
|
+
const pagesAfter = [];
|
14790
|
+
while (afterHalf > 0) {
|
14791
|
+
pagesAfter.push(this.currentPage + afterHalf);
|
14792
|
+
afterHalf--;
|
14793
|
+
}
|
14794
|
+
filteredPages.push(...pagesAfter.reverse());
|
14795
|
+
if (!isLastSelected) {
|
14796
|
+
filteredPages.push(this.totalPages - 1);
|
14797
|
+
}
|
14798
|
+
}
|
14799
|
+
return (index.h(index.Host, { key: 'ac3681eabdc35a5c620713a722619b7e5f52e2e3' }, index.h("cpsl-button-group", { key: '05f7fcfb5ca4edf4de561357ec16fe2fd5bdf9d8', selectedId: `${this.currentPage}` }, index.h("cpsl-button", { key: '613f70869b90aad3c5973b7c55270e3088335ff9', onClick: this.handlePrevClick }, index.h("cpsl-icon", { key: '458e036ab72bd2a8fc57bb8bcc0be614ad07aa72', 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: '2dc257023f6d4270a79bf88399e3b27ad538b928', onClick: this.handleNextClick }, index.h("cpsl-icon", { key: '716ad78992c6e56c3855d8dc544fc19fefa01804', class: "icon", icon: "arrowNarrow" })))));
|
14800
|
+
}
|
14801
|
+
static get watchers() { return {
|
14802
|
+
"currentPage": ["watchChange"]
|
14803
|
+
}; }
|
14804
|
+
};
|
14805
|
+
CpslPagination.style = CpslPaginationStyle0;
|
14806
|
+
|
14462
14807
|
const cpslPillCss = ":host{--pill-text-color:var(--cpsl-pill-text);--pill-text-size:clamp(10px, 0.625rem, 15px);--pill-text-line-height:100%;--pill-container-height:18px;--pill-container-background-color:var(--cpsl-color-pill-container-background);--pill-container-border-color:var(--cpsl-color-pill-container-border);--pill-container-padding-start:8px;--pill-container-padding-end:8px;--pill-container-border-radius:var(--cpsl-border-radius-pill);font-family:var(--cpsl-font-family, inherit);display:inline-block}.pill-container{-webkit-padding-start:var(--pill-container-padding-start);padding-inline-start:var(--pill-container-padding-start);-webkit-padding-end:var(--pill-container-padding-end);padding-inline-end:var(--pill-container-padding-end);padding-top:var(--pill-container-padding-top);padding-bottom:var(--pill-container-padding-bottom);display:flex;justify-content:center;align-items:center;box-sizing:border-box;height:var(--pill-container-height);background-color:var(--pill-container-background-color);border:1px solid;border-color:var(--pill-container-border-color);border-radius:var(--pill-container-border-radius);color:var(--pill-text-color);font-size:var(--pill-text-size);line-height:var(--pill-text-line-height)}.pill-container span{display:inline-block}";
|
14463
14808
|
const CpslPillStyle0 = cpslPillCss;
|
14464
14809
|
|
@@ -14468,7 +14813,7 @@ const CpslPill = class {
|
|
14468
14813
|
this.text = undefined;
|
14469
14814
|
}
|
14470
14815
|
render() {
|
14471
|
-
return (index.h(index.Host, { key: '
|
14816
|
+
return (index.h(index.Host, { key: 'cfb75db6154db11d15a26f253686793fd21beccc' }, index.h("div", { key: '00381588b8d9e34201b439a7fd4233069a62f2f5', class: "pill-container" }, index.h("span", { key: '4fa5134cc5f873373ca8a2102d4a88ef6455ff7d' }, this.text))));
|
14472
14817
|
}
|
14473
14818
|
};
|
14474
14819
|
CpslPill.style = CpslPillStyle0;
|
@@ -14543,12 +14888,32 @@ const CpslQrCode = class {
|
|
14543
14888
|
qrCode.append(container);
|
14544
14889
|
}
|
14545
14890
|
render() {
|
14546
|
-
return (index.h(index.Host, { key: '
|
14891
|
+
return (index.h(index.Host, { key: '249236c83c51fa7b3bf66c74a3e122f945288313' }, index.h("div", { key: 'cd899dac84d029d89648572584ffddae0c98ab37', id: "qr-container", class: "qr-container" })));
|
14547
14892
|
}
|
14548
14893
|
get el() { return index.getElement(this); }
|
14549
14894
|
};
|
14550
14895
|
CpslQrCode.style = CpslQrCodeStyle0;
|
14551
14896
|
|
14897
|
+
const cpslRadioCss = ":host{--container-height:20px;--container-width:20px;--container-border-radius:var(--cpsl-border-radius-radio);--container-border-width-default:2px;--container-border-width-checked:5px;--container-background-color-default:var(--cpsl-color-radio-surface-default);--container-border-color-default:var(--cpsl-color-radio-border-default);--container-background-color-checked:var(--cpsl-color-radio-surface-checked);--container-border-color-checked:var(--cpsl-color-radio-border-checked);display:block;position:relative;height:var(--container-height);width:var(--container-width);cursor:pointer}input{position:absolute;width:100%;height:100%;margin:0px;opacity:0}span.container{display:inline-block;position:relative;box-sizing:border-box;width:100%;height:100%;border-radius:var(--container-border-radius);border:var(--container-border-width-default) solid;background-color:var(--container-background-color-default);border-color:var(--container-border-color-default);transition:all 0.15s ease-in-out}span.container.checked{background-color:var(--container-background-color-checked);border-color:var(--container-border-color-checked);border-width:var(--container-border-width-checked)}";
|
14898
|
+
const CpslRadioStyle0 = cpslRadioCss;
|
14899
|
+
|
14900
|
+
const CpslRadio = class {
|
14901
|
+
constructor(hostRef) {
|
14902
|
+
index.registerInstance(this, hostRef);
|
14903
|
+
this.cpslRadioChanged = index.createEvent(this, "cpslRadioChanged", 7);
|
14904
|
+
this.handleRadioClick = () => {
|
14905
|
+
if (!this.checked) {
|
14906
|
+
this.cpslRadioChanged.emit(!this.checked);
|
14907
|
+
}
|
14908
|
+
};
|
14909
|
+
this.checked = undefined;
|
14910
|
+
}
|
14911
|
+
render() {
|
14912
|
+
return (index.h(index.Host, { key: '9c027812c817ec008e28b66fb74ca35e407f2572' }, index.h("input", { key: 'da445cfc2c18da5852cd21d54daf14897d3bc13a', type: "radio", checked: this.checked }), index.h("span", { key: '2f432d7c3a6f33ea7581a8c62dd84078de1904d1', onClick: this.handleRadioClick, class: { container: true, checked: this.checked } })));
|
14913
|
+
}
|
14914
|
+
};
|
14915
|
+
CpslRadio.style = CpslRadioStyle0;
|
14916
|
+
|
14552
14917
|
const cpslSlideButtonCss = ":host{--slider-container-font-size:14px;--slider-container-height:44px;--slider-container-border-width:1px;--slider-container-box-shadow:0px 0px 4px 0px var(--cpsl-color-alpha-black-10) inset;--slider-container-start-background-color:var(--cpsl-color-slideButton-slider-container-start-background);--slider-container-end-background-color:var(--cpsl-color-slideButton-slider-container-end-background);--slider-container-start-border-color:var(--cpsl-color-slideButton-slider-container-start-border);--slider-container-end-border-color:var(--cpsl-color-slideButton-slider-container-end-border);--slider-border-width:1px;--slider-box-shadow:3px 0px 4px 0px var(--cpsl-color-alpha-black-16);--slider-border-color:var(--cpsl-color-slideButton-slider-border);--slider-background-color:var(--cpsl-color-slideButton-slider-background);--slider-color:var(--cpsl-color-slideButton-slider-text);--start-text-color:var(--cpsl-color-slideButton-start-text);--end-text-color:var(--cpsl-color-slideButton-end-text);font-family:var(--cpsl-font-family, inherit);display:block}.slider-container{overflow:hidden;position:relative;box-sizing:border-box;display:flex;align-items:center;font-size:var(--slider-container-font-size);font-weight:500;height:var(--slider-container-height);border-width:var(--slider-container-border-width);border-style:solid;border-radius:calc(var(--slider-container-height) / 2);box-shadow:var(--slider-container-box-shadow)}.slider-container-background{position:absolute;top:0;bottom:0;left:0;right:0}.start-slider-container-background{background-color:var(--slider-container-start-background-color);border-color:var(--slider-container-start-border-color);opacity:100%}.end-slider-container-background{background-color:var(--slider-container-end-background-color);border-color:var(--slider-container-end-border-color);opacity:0%}.start-text{user-select:none;color:var(--start-text-color);position:absolute;text-align:center;opacity:100%;width:calc(100% - var(--slider-container-height) - 8px - 16px);left:calc(var(--slider-container-height) - 4px + 8px)}.start-text.disabled{left:0;width:100%}.end-text{user-select:none;color:var(--end-text-color);position:absolute;text-align:center;opacity:0%;width:calc(100% - var(--slider-container-height) - 8px);left:16px}.icon{position:absolute}.start-icon{opacity:100%}.end-icon{opacity:0%}.slider{left:1px;cursor:pointer;box-sizing:border-box;display:flex;align-items:center;justify-content:center;position:absolute;z-index:10;height:calc(var(--slider-container-height) - 4px);width:calc(var(--slider-container-height) - 4px);color:var(--slider-color);background-color:var(--slider-background-color);border-width:var(--slider-border-width);border-style:solid;border-color:var(--slider-border-color);border-radius:100%;box-shadow:var(--slider-box-shadow)}.slider cpsl-icon{--icon-color:var(--slider-color)}.slider.disabled{visibility:hidden}";
|
14553
14918
|
const CpslSlideButtonStyle0 = cpslSlideButtonCss;
|
14554
14919
|
|
@@ -14669,7 +15034,7 @@ const CpslSlideButton = class {
|
|
14669
15034
|
return this.el.shadowRoot.getElementById('end-icon');
|
14670
15035
|
}
|
14671
15036
|
render() {
|
14672
|
-
return (index.h(index.Host, { key: '
|
15037
|
+
return (index.h(index.Host, { key: 'ce820db689b1265c282d3f1571f4e7f5f401f855' }, index.h("div", { key: '6b1feb1979df007eff0652d0ab5b8e6dadb1d413', id: "slider-container", class: "slider-container" }, index.h("div", { key: '89bc7d66ac4ea9b5903832882ddba6aa140b6a1b', id: "start-slider-container-background", class: { 'start-slider-container-background': true, 'slider-container-background': true } }), index.h("div", { key: '95961311d2e58de9771619f09382085af3fc935f', id: "end-slider-container-background", class: { 'end-slider-container-background': true, 'slider-container-background': true } }), index.h("div", { key: '077f99524f8ebada535665e50b84d6faa523be85', id: "slider", class: { slider: true, disabled: this.disabled } }, index.h("cpsl-icon", { key: 'e4de60ec93911da7db0d5b8744f842be4f2fe58a', id: "start-icon", class: { 'start-icon': true, 'icon': true }, icon: this.startIcon }), index.h("cpsl-icon", { key: '64faf5178d56e37660a9818258aa1bd757bb9478', id: "end-icon", class: { 'end-icon': true, 'icon': true }, icon: this.endIcon })), index.h("span", { key: '91f4b16cbdc4f230b10d3e2f331906936fb43e7f', id: "start-text", class: { 'start-text': true, 'disabled': this.disabled } }, this.startText), index.h("span", { key: '8d6555e7bedb77c97c6abd4eb537b1190c7b7f39', id: "end-text", class: "end-text" }, this.endText))));
|
14673
15038
|
}
|
14674
15039
|
get el() { return index.getElement(this); }
|
14675
15040
|
};
|
@@ -14685,17 +15050,35 @@ const CpslSpinner = class {
|
|
14685
15050
|
this.speed = 1;
|
14686
15051
|
}
|
14687
15052
|
render() {
|
14688
|
-
return (index.h(index.Host, { key: '
|
15053
|
+
return (index.h(index.Host, { key: 'f4e9344be21951951c710806a75f532586f0ad84', style: {
|
14689
15054
|
'height': `${this.size}px`,
|
14690
15055
|
'width': `${this.size}px`,
|
14691
15056
|
'animation': `spin ${this.speed}s linear infinite`,
|
14692
15057
|
'-webkit-animation': `spin ${this.speed}s linear infinite`,
|
14693
15058
|
'-moz-animation': `spin ${this.speed}s linear infinite`,
|
14694
|
-
} }, index.h("svg", { key: '
|
15059
|
+
} }, index.h("svg", { key: '41e78e14a99896ee395fde9c23c08cafd7d737ff', height: this.size, width: this.size, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 54 54", fill: "none" }, index.h("path", { key: 'b061382c44c35633987276b986871bb350f9cfe3', d: "M43.1586 17C39.8082 11.5978 33.8243 8 27 8C16.5066 8 8 16.5066 8 27C8 37.4934 16.5066 46 27 46C33.8242 46 39.8082 42.4022 43.1586 37", "stroke-width": "6", "stroke-linecap": "round" }), index.h("circle", { key: '0f1b7ca48c926abe3244fe7e7e70dffc0ef4ce30', cx: "45", cy: "27", r: "5" }))));
|
14695
15060
|
}
|
14696
15061
|
};
|
14697
15062
|
CpslSpinner.style = CpslSpinnerStyle0;
|
14698
15063
|
|
15064
|
+
const cpslSwitchCss = ":host{--container-height:24px;--container-width:44px;--container-padding:2px;--container-border-radius:var(--cpsl-border-radius-switch);--container-background-color-default:var(--cpsl-color-switch-surface-default);--container-background-color-checked:var(--cpsl-color-switch-surface-checked);--thumb-size:calc(var(--container-height) - var(--container-padding) * 2);--thumb-border-radius:var(--cpsl-border-radius-switch);--thumb-background-color-default:var(--cpsl-color-switch-thumb-default);--thumb-background-color-checked:var(--cpsl-color-switch-thumb-checked);display:block;position:relative;height:var(--container-height);width:var(--container-width);cursor:pointer}input{position:absolute;width:100%;height:100%;margin:0px;opacity:0}span.container{display:inline-block;position:relative;box-sizing:border-box;width:100%;height:100%;padding:var(--container-padding);border-radius:var(--container-border-radius);background-color:var(--container-background-color-default);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.08) inset;transition:all 0.15s ease-in-out}span.container.checked{background-color:var(--container-background-color-checked);box-shadow:none}span.thumb{display:inline-block;position:relative;background-color:var(--thumb-background-color-default);box-shadow:0px 1px 1px 0px rgba(0, 0, 0, 0.1);height:var(--thumb-size);width:var(--thumb-size);border-radius:var(--thumb-border-radius);transform:translateX(0);left:0;transition:all 0.15s ease-in-out}span.thumb.checked{background-color:var(--thumb-background-color-checked);left:100%;transform:translateX(-100%)}";
|
15065
|
+
const CpslSwitchStyle0 = cpslSwitchCss;
|
15066
|
+
|
15067
|
+
const CpslSwitch = class {
|
15068
|
+
constructor(hostRef) {
|
15069
|
+
index.registerInstance(this, hostRef);
|
15070
|
+
this.cpslSwitchChanged = index.createEvent(this, "cpslSwitchChanged", 7);
|
15071
|
+
this.handleSwitchClick = () => {
|
15072
|
+
this.cpslSwitchChanged.emit(!this.checked);
|
15073
|
+
};
|
15074
|
+
this.checked = undefined;
|
15075
|
+
}
|
15076
|
+
render() {
|
15077
|
+
return (index.h(index.Host, { key: '74a3c5fb6e54a87438ab0fe7c3b9f05ebefb783d' }, index.h("input", { key: '0415f006e830227c030d5d42199bcb3ce375051a', type: "checkbox", checked: this.checked }), index.h("span", { key: '61db3b2230704cf61f57aab1a952cd9f94892026', onClick: this.handleSwitchClick, class: { container: true, checked: this.checked } }, index.h("span", { key: '819dd65586f45cc5dba402b1acd64b9b5f4ef04e', class: { thumb: true, checked: this.checked } }))));
|
15078
|
+
}
|
15079
|
+
};
|
15080
|
+
CpslSwitch.style = CpslSwitchStyle0;
|
15081
|
+
|
14699
15082
|
const cpslTabCss = ":host{--tab-color:var(--cpsl-color-text-primary);padding-top:var(--tab-top-padding);padding-bottom:var(--tab-bottom-padding);padding-left:var(--tab-left-padding);padding-right:var(--tab-right-padding);display:flex;flex:1 1 auto;align-items:center;cursor:pointer;z-index:10}.tab-container{align-items:center;overflow:hidden;width:100%;text-overflow:ellipsis;text-align:center;white-space:nowrap;font-weight:500;color:var(--tab-color)}";
|
14700
15083
|
const CpslTabStyle0 = cpslTabCss;
|
14701
15084
|
|
@@ -14723,12 +15106,46 @@ const CpslTab = class {
|
|
14723
15106
|
}
|
14724
15107
|
}
|
14725
15108
|
render() {
|
14726
|
-
return (index.h(index.Host, { key: '
|
15109
|
+
return (index.h(index.Host, { key: '6d506e0c6eedecab0b0e61134f6ef99da64ffdc9', onClick: this.onTabClicked }, index.h("div", { key: '486e44a1e511d79125dd44ed244c767c8176ac65', class: { 'tab-container': true } }, index.h("slot", { key: '09ec342cf25149f89e2ccb338d86f161e9ebcc12' }))));
|
14727
15110
|
}
|
14728
15111
|
get el() { return index.getElement(this); }
|
14729
15112
|
};
|
14730
15113
|
CpslTab.style = CpslTabStyle0;
|
14731
15114
|
|
15115
|
+
const cpslTableCss = ":host{--container-background-radius:var(--cpsl-border-radius-table-container);--container-border-radius:var(--cpsl-border-radius-table-container);--container-border-color:var(--cpsl-color-background-16);--container-background-color:var(--cpsl-color-background-0);--container-border-width:1px;--container-header-padding-top:24px;--container-header-padding-bottom:24px;--container-header-padding-start:24px;--container-header-padding-end:24px;--container-no-content-padding-top:24px;--container-no-content-padding-bottom:24px;--container-no-content-padding-start:24px;--container-no-content-padding-end:24px;--container-footer-padding-top:16px;--container-footer-padding-bottom:16px;--container-footer-padding-start:24px;--container-footer-padding-end:24px;--table-header-padding-top:16px;--table-header-padding-bottom:16px;--table-header-padding-start:24px;--table-header-padding-end:24px;--table-header-background-color:var(--cpsl-color-background-4);--table-header-border-color:var(--cpsl-color-background-16);--table-header-border-width:1px;--table-content-padding-top:16px;--table-content-padding-bottom:16px;--table-content-padding-start:24px;--table-content-padding-end:24px;--table-content-border-color:var(--cpsl-color-background-8);--table-content-border-width:1px;display:flex}.table-container{display:flex;flex-direction:column;flex:1;overflow:hidden;border-radius:var(--container-border-radius);border:var(--container-border-width) solid var(--container-border-color);background-color:var(--container-background-color)}.table-wrapper{overflow:auto}.table{width:100%;border-spacing:0;border-collapse:collapse}.table th{-webkit-padding-start:var(--table-header-padding-start);padding-inline-start:var(--table-header-padding-start);-webkit-padding-end:var(--table-header-padding-end);padding-inline-end:var(--table-header-padding-end);padding-top:var(--table-header-padding-top);padding-bottom:var(--table-header-padding-bottom);background-color:var(--table-header-background-color);border-bottom:var(--table-header-border-width) solid var(--table-header-border-color)}.table td{-webkit-padding-start:var(--table-content-padding-start);padding-inline-start:var(--table-content-padding-start);-webkit-padding-end:var(--table-content-padding-end);padding-inline-end:var(--table-content-padding-end);padding-top:var(--table-content-padding-top);padding-bottom:var(--table-content-padding-bottom)}.table tr{border-bottom:var(--table-content-border-width) solid var(--table-content-border-color)}.table tr:last-child{border-bottom:none}.container-header{display:none;-webkit-padding-start:var(--container-header-padding-start);padding-inline-start:var(--container-header-padding-start);-webkit-padding-end:var(--container-header-padding-end);padding-inline-end:var(--container-header-padding-end);padding-top:var(--container-header-padding-top);padding-bottom:var(--container-header-padding-bottom);border-bottom:var(--table-header-border-width) solid var(--table-header-border-color)}.container-footer{display:none;-webkit-padding-start:var(--container-footer-padding-start);padding-inline-start:var(--container-footer-padding-start);-webkit-padding-end:var(--container-footer-padding-end);padding-inline-end:var(--container-footer-padding-end);padding-top:var(--container-footer-padding-top);padding-bottom:var(--container-footer-padding-bottom);border-top:var(--table-content-border-width) solid var(--table-content-border-color)}.container-no-content{-webkit-padding-start:var(--container-no-content-padding-start);padding-inline-start:var(--container-no-content-padding-start);-webkit-padding-end:var(--container-no-content-padding-end);padding-inline-end:var(--container-no-content-padding-end);padding-top:var(--container-no-content-padding-top);padding-bottom:var(--container-no-content-padding-bottom)}.shown{display:block}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}";
|
15116
|
+
const CpslTableStyle0 = cpslTableCss;
|
15117
|
+
|
15118
|
+
const CpslTable = class {
|
15119
|
+
constructor(hostRef) {
|
15120
|
+
index.registerInstance(this, hostRef);
|
15121
|
+
this.columns = undefined;
|
15122
|
+
this.rows = undefined;
|
15123
|
+
}
|
15124
|
+
get containerHeaderEl() {
|
15125
|
+
return this.el.querySelector('[slot="header"]');
|
15126
|
+
}
|
15127
|
+
get containerFooterEl() {
|
15128
|
+
return this.el.querySelector('[slot="footer"]');
|
15129
|
+
}
|
15130
|
+
render() {
|
15131
|
+
var _a;
|
15132
|
+
return (index.h(index.Host, { key: '8ff024bee3c372cff775b8ecc68be3ee884eae3f' }, index.h("div", { key: 'cea1971fa6faf622f72a6ec103bcd6c6df81a457', class: "table-container", part: "table-container" }, index.h("div", { key: '191fbeab85091a081e6bacc76ea3a8f52e342c0d', class: { 'container-header': true, 'shown': Boolean(this.containerHeaderEl) } }, index.h("slot", { key: 'caf8cb186cb311b7db83f65e8bad15ee9ecf8cb8', name: "header" })), index.h("div", { key: 'b0d534df26ab4784fa89e8b1e6b74b6ea973b203', class: "table-wrapper", part: "table-wrapper" }, Boolean((_a = this.rows) === null || _a === void 0 ? void 0 : _a.length) ? (index.h("table", { class: "table" }, index.h("thead", null, index.h("tr", null, this.columns.map(col => {
|
15133
|
+
var _a;
|
15134
|
+
const align = (_a = col.align) !== null && _a !== void 0 ? _a : 'left';
|
15135
|
+
return (index.h("th", { class: { 'text-center': align === 'center', 'text-right': align === 'right', 'text-left': align === 'left' }, id: col.field, scope: "col" }, index.h("cpsl-text", { variant: "bodyXS", weight: "medium" }, col.headerName)));
|
15136
|
+
}))), index.h("tbody", null, this.rows.map(row => {
|
15137
|
+
return (index.h("tr", { style: { height: Boolean(row.height) ? `${row.height}px` : `80px` } }, this.columns.map(col => {
|
15138
|
+
var _a;
|
15139
|
+
const align = (_a = col.align) !== null && _a !== void 0 ? _a : 'left';
|
15140
|
+
const value = Boolean(col.valueGetter) ? col.valueGetter(row[col.field], row) : row[col.field];
|
15141
|
+
return (index.h("td", { class: { 'text-center': align === 'center', 'text-right': align === 'right', 'text-left': align === 'left' } }, Boolean(col.renderCell) ? (col.renderCell(value, row)) : (index.h("cpsl-text", { variant: "bodyXS", weight: "medium" }, value))));
|
15142
|
+
})));
|
15143
|
+
})))) : (index.h("div", { class: { 'container-no-content': true } }, index.h("slot", { name: "no-content" })))), index.h("div", { key: '5ac2bfcfdebca316cd61b39826772819ccfe5444', class: { 'container-footer': true, 'shown': Boolean(this.containerFooterEl) } }, index.h("slot", { key: 'f2506b2260272276a49ebd98c636064b148bccaa', name: "footer" })))));
|
15144
|
+
}
|
15145
|
+
get el() { return index.getElement(this); }
|
15146
|
+
};
|
15147
|
+
CpslTable.style = CpslTableStyle0;
|
15148
|
+
|
14732
15149
|
const cpslTabsCss = ":host{--tab-top-padding:5px;--tab-bottom-padding:5px;--tab-left-padding:16px;--tab-right-padding:16px;--tabs-border-radius:var(--cpsl-border-radius-tabs);--tabs-font-size:12px;--tabs-line-height:24px;--tabs-border-width:1px;--tabs-border-color:var(--cpsl-color-tabs-border);--tabs-background-color:var(--cpsl-color-tabs-background);--slider-background-color:var(--cpsl-color-tabs-slider-background);display:inline-block;max-width:100%;font-family:var(--cpsl-font-family, inherit)}:host(.full-width){display:block}.tabs-container{position:relative;display:flex;overflow-x:scroll;overflow-y:hidden;border-width:var(--tabs-border-width);border-style:solid;border-color:var(--tabs-border-color);border-radius:var(--tabs-border-radius);background-color:var(--tabs-background-color);font-size:var(--tabs-font-size);line-height:var(--tabs-line-height);-ms-overflow-style:none;scrollbar-width:none}.tabs-container::-webkit-scrollbar{display:none}.slider{position:absolute;top:calc(var(--tabs-border-width) * -1);bottom:calc(var(--tabs-border-width) * -1);left:-1px;border-width:var(--tabs-border-width);border-style:solid;border-color:var(--tabs-border-color);border-radius:var(--tabs-border-radius);background-color:var(--slider-background-color);box-shadow:-1px 0px 2px 0px var(--cpsl-color-alpha-black-10), 1px 0px 2px 0px var(--cpsl-color-alpha-black-10)}.loaded{transition:all 0.5s}";
|
14733
15150
|
const CpslTabsStyle0 = cpslTabsCss;
|
14734
15151
|
|
@@ -14782,7 +15199,7 @@ const CpslTabs = class {
|
|
14782
15199
|
const tabsPosition = this.el.getBoundingClientRect();
|
14783
15200
|
const tabsBorderWidth = +getComputedStyle(this.el).getPropertyValue('--tabs-border-width').slice(0, -2);
|
14784
15201
|
const selectedTabRect = this.selectedTabRect;
|
14785
|
-
return (index.h(index.Host, { key: '
|
15202
|
+
return (index.h(index.Host, { key: '372d02e7014c72414dc3282660ffab8a37df3a5e', class: { 'full-width': this.fullWidth }, onCpslTabButtonClick: this.onTabClicked }, index.h("div", { key: '762452e904014f3ea0d6e2bfb20d4277916bd296', class: "tabs-container" }, index.h("slot", { key: '52c4edd26157825c5bcd4cb5ffa30a6b5944d6ce' }), index.h("div", { key: '4b83b7a5c78bcf913622ddc7b8dc870ed001e93d', class: { slider: true, loaded: this.loaded }, style: { width: `${selectedTabRect.width}px`, left: `${selectedTabRect.x - tabsPosition.x - tabsBorderWidth * 2}px` } }))));
|
14786
15203
|
}
|
14787
15204
|
get el() { return index.getElement(this); }
|
14788
15205
|
static get watchers() { return {
|
@@ -14832,7 +15249,7 @@ const CpslText = class {
|
|
14832
15249
|
}
|
14833
15250
|
}
|
14834
15251
|
render() {
|
14835
|
-
return (index.h(index.Host, { key: '
|
15252
|
+
return (index.h(index.Host, { key: 'dfb056131c8efe94b9a5ec99a8dadd4669dde15f', class: {
|
14836
15253
|
'primary': this.color === 'primary',
|
14837
15254
|
'secondary': this.color === 'secondary',
|
14838
15255
|
'subtle': this.color === 'subtle',
|
@@ -14868,28 +15285,39 @@ const CpslTileButton = class {
|
|
14868
15285
|
this.icon = undefined;
|
14869
15286
|
}
|
14870
15287
|
render() {
|
14871
|
-
return (index.h(index.Host, { key: '
|
15288
|
+
return (index.h(index.Host, { key: 'c4aee36001539cabc1965e193962701a2f5f7ade' }, index.h("button", { key: '76e0f5b921f2b6c2086610a8c4b1e48dc85c751e', class: "button-native" }, index.h("cpsl-icon", { key: '379e1ba5fe8ee4bf089ce84d8ce3eaa0eb32b214', exportparts: "icon", src: this.src, icon: this.icon }), index.h("slot", { key: 'e09443c7527e061ea752b6ebe7abc6152ae61783' }))));
|
14872
15289
|
}
|
14873
15290
|
};
|
14874
15291
|
CpslTileButton.style = CpslTileButtonStyle0;
|
14875
15292
|
|
14876
15293
|
exports.cpsl_alert = CpslAlert;
|
15294
|
+
exports.cpsl_app_bar = CpslAppBar;
|
15295
|
+
exports.cpsl_avatar = CpslAvatar;
|
14877
15296
|
exports.cpsl_button = CpslButton;
|
15297
|
+
exports.cpsl_button_group = CpslButtonGroup;
|
15298
|
+
exports.cpsl_card = CpslCard;
|
15299
|
+
exports.cpsl_checkbox = CpslCheckbox;
|
14878
15300
|
exports.cpsl_code_input = CpslCodeInput;
|
14879
15301
|
exports.cpsl_divider = CpslDivider;
|
15302
|
+
exports.cpsl_drawer = CpslDrawer;
|
14880
15303
|
exports.cpsl_dropdown = CpslDropdown;
|
14881
15304
|
exports.cpsl_icon = CpslIcon;
|
14882
15305
|
exports.cpsl_input = CpslInput;
|
14883
15306
|
exports.cpsl_modal = CpslModal;
|
15307
|
+
exports.cpsl_nav_button_group = CpslNavButtonGroup;
|
14884
15308
|
exports.cpsl_overlay = CpslOverlay;
|
15309
|
+
exports.cpsl_pagination = CpslPagination;
|
14885
15310
|
exports.cpsl_pill = CpslPill;
|
14886
15311
|
exports.cpsl_progress_indicator = CpslProgressIndicator;
|
14887
15312
|
exports.cpsl_qr_code = CpslQrCode;
|
15313
|
+
exports.cpsl_radio = CpslRadio;
|
14888
15314
|
exports.cpsl_slide_button = CpslSlideButton;
|
14889
15315
|
exports.cpsl_spinner = CpslSpinner;
|
15316
|
+
exports.cpsl_switch = CpslSwitch;
|
14890
15317
|
exports.cpsl_tab = CpslTab;
|
15318
|
+
exports.cpsl_table = CpslTable;
|
14891
15319
|
exports.cpsl_tabs = CpslTabs;
|
14892
15320
|
exports.cpsl_text = CpslText;
|
14893
15321
|
exports.cpsl_tile_button = CpslTileButton;
|
14894
15322
|
|
14895
|
-
//# sourceMappingURL=cpsl-
|
15323
|
+
//# sourceMappingURL=cpsl-alert_29.cjs.entry.js.map
|