@usecapsule/core-components 3.0.0 → 3.0.1-dev.2
Sign up to get free protection for your applications and to get access to all the features.
- package/css/capsule-core.css +84 -15
- 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-397edab5.entry.js +2 -0
- package/dist/capsule/{p-ad14a817.entry.js.map → p-397edab5.entry.js.map} +1 -1
- package/dist/capsule/p-52d6ebee.entry.js +2 -0
- package/dist/capsule/{p-fcead80b.entry.js.map → p-52d6ebee.entry.js.map} +1 -1
- package/dist/capsule/p-5ed5e96c.entry.js +2 -0
- package/dist/capsule/p-5ed5e96c.entry.js.map +1 -0
- package/dist/capsule/p-6e71539d.js +3 -0
- package/dist/capsule/p-6e71539d.js.map +1 -0
- package/dist/capsule/{p-0d0a0037.entry.js → p-70f95c93.entry.js} +2 -2
- package/dist/capsule/{p-0d0a0037.entry.js.map → p-70f95c93.entry.js.map} +1 -1
- package/dist/capsule/p-86e6cba5.entry.js +10 -0
- package/dist/capsule/{p-d28b96ba.entry.js.map → p-86e6cba5.entry.js.map} +1 -1
- package/dist/capsule/p-dd596431.entry.js +29 -0
- package/dist/capsule/p-dd596431.entry.js.map +1 -0
- package/dist/capsule/p-f2393be6.js +2 -0
- package/dist/capsule/p-f2393be6.js.map +1 -0
- package/dist/capsule/{p-fa078837.entry.js → p-f9351426.entry.js} +2 -2
- package/dist/capsule/{p-fa078837.entry.js.map → p-f9351426.entry.js.map} +1 -1
- package/dist/cjs/capsule.cjs.js +10 -10
- package/dist/cjs/capsule.cjs.js.map +1 -1
- package/dist/cjs/{constants-0869a780.js → constants-9b1b01bb.js} +3 -3
- package/dist/cjs/{constants-0869a780.js.map → constants-9b1b01bb.js.map} +1 -1
- package/dist/cjs/{cpsl-alert_29.cjs.entry.js → cpsl-alert_33.cjs.entry.js} +645 -95
- package/dist/cjs/cpsl-alert_33.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 +3 -3
- package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js +55 -0
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
- package/dist/cjs/index-85125285.js +1414 -0
- package/dist/cjs/index-85125285.js.map +1 -0
- package/dist/cjs/index.cjs.js +16 -4
- 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/chevron-up.svg +2 -2
- package/dist/collection/assets/icons/close.svg +3 -4
- package/dist/collection/assets/icons/cube.svg +3 -0
- package/dist/collection/assets/icons/file.svg +3 -0
- package/dist/collection/assets/icons/image.svg +3 -0
- package/dist/collection/assets/icons/index.js +10 -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/menu.svg +3 -0
- package/dist/collection/assets/icons/refresh.svg +3 -0
- package/dist/collection/assets/icons/stars.svg +4 -0
- package/dist/collection/assets/icons/x.svg +3 -0
- package/dist/collection/collection-manifest.json +7 -2
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +2 -2
- package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
- package/dist/collection/components/cpsl-animation/cpsl-animation.js +1 -1
- package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +20 -4
- package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -1
- package/dist/collection/components/cpsl-avatar/cpsl-avatar.js +1 -1
- package/dist/collection/components/cpsl-button/cpsl-button.css +113 -17
- package/dist/collection/components/cpsl-button/cpsl-button.js +63 -7
- package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.css +1 -0
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +1 -1
- package/dist/collection/components/cpsl-card/cpsl-card.css +1 -1
- package/dist/collection/components/cpsl-card/cpsl-card.js +1 -1
- package/dist/collection/components/cpsl-card/cpsl-card.js.map +1 -1
- package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.css +2 -2
- package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +1 -1
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +1 -1
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +2 -2
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
- package/dist/collection/components/cpsl-col/cpsl-col.js +1 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.css +1 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.js +1 -1
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +84 -11
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +1 -1
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.css +210 -0
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +406 -0
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -0
- package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js +29 -0
- package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js +37 -0
- package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js.map +1 -0
- 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.css +1 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.css +7 -6
- package/dist/collection/components/cpsl-input/cpsl-input.js +3 -8
- package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
- package/dist/collection/components/cpsl-modal/cpsl-modal.css +4 -4
- package/dist/collection/components/cpsl-modal/cpsl-modal.js +1 -0
- package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -1
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.css +91 -0
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +224 -0
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -0
- package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js +29 -0
- package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js +37 -0
- package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js.map +1 -0
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +1 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +1 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
- package/dist/collection/components/cpsl-pill/cpsl-pill.css +1 -1
- package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
- package/dist/collection/components/cpsl-popover/cpsl-popover.css +98 -0
- package/dist/collection/components/cpsl-popover/cpsl-popover.js +511 -0
- package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -0
- package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js +29 -0
- package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js +37 -0
- package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js.map +1 -0
- package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.css +3 -3
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
- package/dist/collection/components/cpsl-radio/cpsl-radio.css +2 -2
- package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
- package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
- package/dist/collection/components/cpsl-select/cpsl-select.css +229 -0
- package/dist/collection/components/cpsl-select/cpsl-select.js +427 -0
- package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -0
- package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js +29 -0
- package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js +37 -0
- package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js.map +1 -0
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.css +114 -0
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +85 -0
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -0
- package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js +29 -0
- package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js +37 -0
- package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js.map +1 -0
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.css +3 -3
- 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 +4 -4
- package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
- package/dist/collection/components/cpsl-table/cpsl-table.css +25 -64
- package/dist/collection/components/cpsl-table/cpsl-table.js +1 -63
- package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +2 -2
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
- package/dist/collection/components/cpsl-text/cpsl-text.css +4 -0
- package/dist/collection/components/cpsl-text/cpsl-text.js +5 -4
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
- package/dist/collection/constants.js +2 -2
- 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 +4 -0
- package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
- package/dist/collection/utils/theme/generatePalette.js +11 -3
- package/dist/collection/utils/theme/generatePalette.js.map +1 -1
- package/dist/esm/capsule.js +11 -11
- package/dist/esm/capsule.js.map +1 -1
- package/dist/esm/{constants-6acf4ea8.js → constants-fce138fa.js} +3 -3
- package/dist/esm/{constants-6acf4ea8.js.map → constants-fce138fa.js.map} +1 -1
- package/dist/esm/{cpsl-alert_29.entry.js → cpsl-alert_33.entry.js} +642 -96
- package/dist/esm/cpsl-alert_33.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 +3 -3
- package/dist/esm/cpsl-info-box.entry.js.map +1 -1
- package/dist/esm/cpsl-modal-v2.entry.js +51 -0
- package/dist/esm/cpsl-modal-v2.entry.js.map +1 -0
- package/dist/esm/cpsl-row.entry.js +2 -2
- package/dist/esm/index-b9a060b3.js +1383 -0
- package/dist/esm/index-b9a060b3.js.map +1 -0
- package/dist/esm/index.js +16 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/loader/cdn.js +1 -3
- package/dist/loader/index.cjs.js +1 -3
- package/dist/loader/index.es2017.js +1 -3
- package/dist/loader/index.js +1 -3
- package/dist/types/assets/icons/index.d.ts +9 -0
- package/dist/types/components/cpsl-app-bar/cpsl-app-bar.d.ts +1 -0
- package/dist/types/components/cpsl-button/cpsl-button.d.ts +4 -1
- package/dist/types/components/cpsl-drawer/cpsl-drawer.d.ts +10 -1
- package/dist/types/components/cpsl-file-upload/cpsl-file-upload.d.ts +34 -0
- package/dist/types/components/cpsl-input/cpsl-input.d.ts +1 -1
- package/dist/types/components/cpsl-modal-v2/cpsl-modal-v2.d.ts +17 -0
- package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +35 -0
- package/dist/types/components/cpsl-select/cpsl-select.d.ts +41 -0
- package/dist/types/components/cpsl-select-item/cpsl-select-item.d.ts +8 -0
- package/dist/types/components/cpsl-table/cpsl-table.d.ts +0 -3
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +1 -1
- package/dist/types/components.d.ts +596 -28
- package/dist/types/constants.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/interface.d.ts +44 -0
- package/dist/types/stencil-public-runtime.d.ts +3 -8
- package/package.json +2 -3
- package/dist/capsule/p-4d8e4d86.entry.js +0 -29
- package/dist/capsule/p-4d8e4d86.entry.js.map +0 -1
- package/dist/capsule/p-86e48e61.js +0 -3
- package/dist/capsule/p-86e48e61.js.map +0 -1
- package/dist/capsule/p-ad14a817.entry.js +0 -2
- package/dist/capsule/p-b6b38e73.js +0 -2
- package/dist/capsule/p-b6b38e73.js.map +0 -1
- package/dist/capsule/p-d28b96ba.entry.js +0 -10
- package/dist/capsule/p-fcead80b.entry.js +0 -2
- package/dist/cjs/cpsl-alert_29.cjs.entry.js.map +0 -1
- package/dist/cjs/index-5733071e.js +0 -2020
- package/dist/cjs/index-5733071e.js.map +0 -1
- package/dist/collection/components/cpsl-table/table-interface.js +0 -2
- package/dist/collection/components/cpsl-table/table-interface.js.map +0 -1
- package/dist/esm/cpsl-alert_29.entry.js.map +0 -1
- package/dist/esm/index-8fe9f35e.js +0 -1990
- package/dist/esm/index-8fe9f35e.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/types/components/cpsl-table/table-interface.d.ts +0 -19
@@ -1,3 +1,3 @@
|
|
1
|
-
<svg width="
|
2
|
-
<path d="
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<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"/>
|
3
3
|
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M2 10C2 10 2.12132 9.15076 5.63604 5.63604C9.15076 2.12132 14.8492 2.12132 18.364 5.63604C19.6092 6.88131 20.4133 8.40072 20.7762 10M2 10V4M2 10H8M22 14C22 14 21.8787 14.8492 18.364 18.364C14.8492 21.8787 9.15076 21.8787 5.63604 18.364C4.39076 17.1187 3.58669 15.5993 3.22383 14M22 14V20M22 14H16" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
3
|
+
</svg>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M6.5 13L7.28446 14.5689C7.54995 15.0999 7.68269 15.3654 7.86003 15.5954C8.01739 15.7996 8.20041 15.9826 8.40455 16.14C8.63462 16.3173 8.9001 16.4501 9.43108 16.7155L11 17.5L9.43108 18.2845C8.9001 18.5499 8.63462 18.6827 8.40455 18.86C8.20041 19.0174 8.01739 19.2004 7.86003 19.4046C7.68269 19.6346 7.54995 19.9001 7.28446 20.4311L6.5 22L5.71554 20.4311C5.45005 19.9001 5.31731 19.6346 5.13997 19.4046C4.98261 19.2004 4.79959 19.0174 4.59545 18.86C4.36538 18.6827 4.0999 18.5499 3.56892 18.2845L2 17.5L3.56892 16.7155C4.0999 16.4501 4.36538 16.3173 4.59545 16.14C4.79959 15.9826 4.98261 15.7996 5.13997 15.5954C5.31731 15.3654 5.45005 15.0999 5.71554 14.5689L6.5 13Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
3
|
+
<path d="M15 2L16.1786 5.06442C16.4606 5.79765 16.6016 6.16426 16.8209 6.47264C17.0153 6.74595 17.254 6.98475 17.5274 7.17909C17.8357 7.39836 18.2024 7.53937 18.9356 7.82138L22 9L18.9356 10.1786C18.2024 10.4606 17.8357 10.6016 17.5274 10.8209C17.254 11.0153 17.0153 11.254 16.8209 11.5274C16.6016 11.8357 16.4606 12.2024 16.1786 12.9356L15 16L13.8214 12.9356C13.5394 12.2024 13.3984 11.8357 13.1791 11.5274C12.9847 11.254 12.746 11.0153 12.4726 10.8209C12.1643 10.6016 11.7976 10.4606 11.0644 10.1786L8 9L11.0644 7.82138C11.7976 7.53937 12.1643 7.39836 12.4726 7.17909C12.746 6.98475 12.9847 6.74595 13.1791 6.47264C13.3984 6.16426 13.5394 5.79765 13.8214 5.06442L15 2Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
4
|
+
</svg>
|
@@ -13,19 +13,24 @@
|
|
13
13
|
"components/cpsl-divider/cpsl-divider.js",
|
14
14
|
"components/cpsl-drawer/cpsl-drawer.js",
|
15
15
|
"components/cpsl-dropdown/cpsl-dropdown.js",
|
16
|
+
"components/cpsl-file-upload/cpsl-file-upload.js",
|
16
17
|
"components/cpsl-grid/cpsl-grid.js",
|
17
18
|
"components/cpsl-icon/cpsl-icon.js",
|
18
19
|
"components/cpsl-info-box/cpsl-info-box.js",
|
19
20
|
"components/cpsl-input/cpsl-input.js",
|
20
21
|
"components/cpsl-modal/cpsl-modal.js",
|
22
|
+
"components/cpsl-modal-v2/cpsl-modal-v2.js",
|
21
23
|
"components/cpsl-nav-button-group/cpsl-nav-button-group.js",
|
22
24
|
"components/cpsl-overlay/cpsl-overlay.js",
|
23
25
|
"components/cpsl-pagination/cpsl-pagination.js",
|
24
26
|
"components/cpsl-pill/cpsl-pill.js",
|
27
|
+
"components/cpsl-popover/cpsl-popover.js",
|
25
28
|
"components/cpsl-progress-indicator/cpsl-progress-indicator.js",
|
26
29
|
"components/cpsl-qr-code/cpsl-qr-code.js",
|
27
30
|
"components/cpsl-radio/cpsl-radio.js",
|
28
31
|
"components/cpsl-row/cpsl-row.js",
|
32
|
+
"components/cpsl-select/cpsl-select.js",
|
33
|
+
"components/cpsl-select-item/cpsl-select-item.js",
|
29
34
|
"components/cpsl-slide-button/cpsl-slide-button.js",
|
30
35
|
"components/cpsl-spinner/cpsl-spinner.js",
|
31
36
|
"components/cpsl-switch/cpsl-switch.js",
|
@@ -37,8 +42,8 @@
|
|
37
42
|
],
|
38
43
|
"compiler": {
|
39
44
|
"name": "@stencil/core",
|
40
|
-
"version": "4.
|
41
|
-
"typescriptVersion": "5.
|
45
|
+
"version": "4.18.3",
|
46
|
+
"typescriptVersion": "5.4.5"
|
42
47
|
},
|
43
48
|
"collections": [],
|
44
49
|
"bundles": []
|
@@ -25,7 +25,7 @@ export class CpslAlert {
|
|
25
25
|
}
|
26
26
|
}
|
27
27
|
render() {
|
28
|
-
return (h(Host, { key: 'f7534f6c528225bc1c5704870eceb202304a8f37', class: { error: this.variant === 'error', warning: this.variant === 'warning', success: this.variant === 'success' } }, h("div", { key: 'fade95f15517a992708d924cd7a1ca17a6077c22', class: "alert-container" }, this.iconType && h("cpsl-icon", { icon: this.iconType }), h("slot", { key: '
|
28
|
+
return (h(Host, { key: 'f7534f6c528225bc1c5704870eceb202304a8f37', class: { error: this.variant === 'error', warning: this.variant === 'warning', success: this.variant === 'success' } }, h("div", { key: 'fade95f15517a992708d924cd7a1ca17a6077c22', class: "alert-container" }, this.iconType && h("cpsl-icon", { key: 'c037b1d18057d53d05e52be9cfbb81f234ea0f1d', icon: this.iconType }), h("slot", { key: 'ec02796cf9ad119f95be56701d28e3490b07bc43' }))));
|
29
29
|
}
|
30
30
|
static get is() { return "cpsl-alert"; }
|
31
31
|
static get encapsulation() { return "shadow"; }
|
@@ -46,7 +46,7 @@ export class CpslAlert {
|
|
46
46
|
"mutable": false,
|
47
47
|
"complexType": {
|
48
48
|
"original": "IconType",
|
49
|
-
"resolved": "\"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\" | \"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"checkCircle\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"decentBrand\" | \"decent\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"home\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"redditBrand\" | \"reddit\" | \"settings\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"youtubeBrand\" | \"youtube\"",
|
49
|
+
"resolved": "\"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\" | \"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"brush\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"checkCircle\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"cube\" | \"decentBrand\" | \"decent\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"file\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"home\" | \"image\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"lightning01\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"menu\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"redditBrand\" | \"reddit\" | \"refresh\" | \"settings\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"stars\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"x\" | \"youtubeBrand\" | \"youtube\"",
|
50
50
|
"references": {
|
51
51
|
"IconType": {
|
52
52
|
"location": "import",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cpsl-alert.js","sourceRoot":"","sources":["../../../../src/components/cpsl-alert/cpsl-alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAQzD,MAAM,OAAO,SAAS;;;uBAW2C,OAAO;;IAEtE,IAAY,QAAQ;QAClB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YACvB,IAAI,CAAC,IAAI,CAAC;QACZ,CAAC;QAED,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC;YACrB,KAAK,QAAQ,CAAC,CAAC,CAAC;gBACd,OAAO,SAAS,CAAC;YACnB,CAAC;YACD,KAAK,SAAS,CAAC,CAAC,CAAC;gBACf,OAAO,aAAa,CAAC;YACvB,CAAC;YACD,KAAK,SAAS,CAAC,CAAC,CAAC;gBACf,OAAO,aAAa,CAAC;YACvB,CAAC;YACD,KAAK,OAAO,CAAC;YACb,OAAO,CAAC,CAAC,CAAC;gBACR,OAAO,aAAa,CAAC;YACvB,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,KAAK,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE;YACxH,4DAAK,KAAK,EAAC,iBAAiB;gBACzB,IAAI,CAAC,QAAQ,IAAI,
|
1
|
+
{"version":3,"file":"cpsl-alert.js","sourceRoot":"","sources":["../../../../src/components/cpsl-alert/cpsl-alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAQzD,MAAM,OAAO,SAAS;;;uBAW2C,OAAO;;IAEtE,IAAY,QAAQ;QAClB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YACvB,IAAI,CAAC,IAAI,CAAC;QACZ,CAAC;QAED,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC;YACrB,KAAK,QAAQ,CAAC,CAAC,CAAC;gBACd,OAAO,SAAS,CAAC;YACnB,CAAC;YACD,KAAK,SAAS,CAAC,CAAC,CAAC;gBACf,OAAO,aAAa,CAAC;YACvB,CAAC;YACD,KAAK,SAAS,CAAC,CAAC,CAAC;gBACf,OAAO,aAAa,CAAC;YACvB,CAAC;YACD,KAAK,OAAO,CAAC;YACb,OAAO,CAAC,CAAC,CAAC;gBACR,OAAO,aAAa,CAAC;YACvB,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,KAAK,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE;YACxH,4DAAK,KAAK,EAAC,iBAAiB;gBACzB,IAAI,CAAC,QAAQ,IAAI,kEAAW,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAI;gBACpD,8DAAa,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\nimport { IconType } from '../../interface';\n\n@Component({\n tag: 'cpsl-alert',\n styleUrl: 'cpsl-alert.scss',\n shadow: true,\n})\nexport class CpslAlert {\n /**\n * The name of the icon to show.\n */\n @Prop() icon?: IconType;\n\n /**\n * The variant of alert.\n * Options are: `\"error\"` | `\"warning\"` | `\"success\"` | `\"custom\"`\n * Default is: `\"error\"`.\n */\n @Prop() variant?: 'error' | 'warning' | 'success' | 'custom' = 'error';\n\n private get iconType(): IconType | undefined {\n if (Boolean(this.icon)) {\n this.icon;\n }\n\n switch (this.variant) {\n case 'custom': {\n return undefined;\n }\n case 'success': {\n return 'checkCircle';\n }\n case 'warning': {\n return 'alertCircle';\n }\n case 'error':\n default: {\n return 'alertCircle';\n }\n }\n }\n\n render() {\n return (\n <Host class={{ error: this.variant === 'error', warning: this.variant === 'warning', success: this.variant === 'success' }}>\n <div class=\"alert-container\">\n {this.iconType && <cpsl-icon icon={this.iconType} />}\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
|
@@ -41,7 +41,7 @@ export class CpslAnimation {
|
|
41
41
|
return this.el.shadowRoot.getElementById('animation-container');
|
42
42
|
}
|
43
43
|
render() {
|
44
|
-
return (h(Host, { key: '
|
44
|
+
return (h(Host, { key: '5fab748126f7b18a9051aa89df1b8a78ef647648' }, h("div", { key: 'b9cac260ee00f54a56c7cd249850a8df5e84dc3b', part: "animation-container", id: "animation-container", class: "animation-container" })));
|
45
45
|
}
|
46
46
|
static get is() { return "cpsl-animation"; }
|
47
47
|
static get encapsulation() { return "shadow"; }
|
@@ -3,14 +3,13 @@ export class CpslAppBar {
|
|
3
3
|
constructor() {
|
4
4
|
this.height = undefined;
|
5
5
|
this.position = 'fixed';
|
6
|
+
this.zIndexOverride = undefined;
|
6
7
|
}
|
7
8
|
render() {
|
8
|
-
return (h(Host, { key: '
|
9
|
-
height: `${this.height}px`,
|
10
|
-
} }, h("div", { key: '7e3c3b25bb6dfe9177de027ee9920c190b55b265', class: "container", part: "container", style: {
|
9
|
+
return (h(Host, { key: '4608b0dc424585b7e7f865d55b3d217ebe172f04', style: Object.assign({ height: `${this.height}px` }, (Boolean(this.zIndexOverride) ? { zIndex: `${this.zIndexOverride}` } : {})) }, h("div", { key: 'c598749bcfb29c806856573b9f61141b7b68022e', class: "container", part: "container", style: {
|
11
10
|
position: this.position,
|
12
11
|
height: `${this.height}px`,
|
13
|
-
} }, h("slot", { key: '
|
12
|
+
} }, h("slot", { key: '7e2bd9efbe98ca5ff70dd0bc33333d95799f5fe7' })), this.position === 'fixed' && (h("div", { key: 'fc4e1e9f6414ccf74c816f19be79b7d4b0df8bd5', style: {
|
14
13
|
height: `${this.height}px`,
|
15
14
|
} }))));
|
16
15
|
}
|
@@ -62,6 +61,23 @@ export class CpslAppBar {
|
|
62
61
|
"attribute": "position",
|
63
62
|
"reflect": false,
|
64
63
|
"defaultValue": "'fixed'"
|
64
|
+
},
|
65
|
+
"zIndexOverride": {
|
66
|
+
"type": "number",
|
67
|
+
"mutable": false,
|
68
|
+
"complexType": {
|
69
|
+
"original": "number",
|
70
|
+
"resolved": "number",
|
71
|
+
"references": {}
|
72
|
+
},
|
73
|
+
"required": false,
|
74
|
+
"optional": true,
|
75
|
+
"docs": {
|
76
|
+
"tags": [],
|
77
|
+
"text": "Override z-index."
|
78
|
+
},
|
79
|
+
"attribute": "z-index-override",
|
80
|
+
"reflect": false
|
65
81
|
}
|
66
82
|
};
|
67
83
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cpsl-app-bar.js","sourceRoot":"","sources":["../../../../src/components/cpsl-app-bar/cpsl-app-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,UAAU;;;wBAUmB,OAAO
|
1
|
+
{"version":3,"file":"cpsl-app-bar.js","sourceRoot":"","sources":["../../../../src/components/cpsl-app-bar/cpsl-app-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,UAAU;;;wBAUmB,OAAO;;;IAO/C,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,kBAEH,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,IAAI,IACvB,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAG/E,4DACE,KAAK,EAAC,WAAW,EACjB,IAAI,EAAC,WAAW,EAChB,KAAK,EAAE;oBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;oBACvB,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,IAAI;iBAC3B;gBAED,8DAAa,CACT;YACL,IAAI,CAAC,QAAQ,KAAK,OAAO,IAAI,CAC5B,4DACE,KAAK,EAAE;oBACL,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,IAAI;iBAC3B,GACD,CACH,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'cpsl-app-bar',\n styleUrl: 'cpsl-app-bar.scss',\n shadow: true,\n})\nexport class CpslAppBar {\n /**\n * Height of the app bar.\n */\n @Prop() height: number;\n\n /**\n * The position of the drawer.\n * Default is `fixed`.\n */\n @Prop() position?: 'fixed' | 'static' = 'fixed';\n\n /**\n * Override z-index.\n */\n @Prop() zIndexOverride?: number;\n\n render() {\n return (\n <Host\n style={{\n // position: this.position,\n height: `${this.height}px`,\n ...(Boolean(this.zIndexOverride) ? { zIndex: `${this.zIndexOverride}` } : {}),\n }}\n >\n <div\n class=\"container\"\n part=\"container\"\n style={{\n position: this.position,\n height: `${this.height}px`,\n }}\n >\n <slot></slot>\n </div>\n {this.position === 'fixed' && (\n <div\n style={{\n height: `${this.height}px`,\n }}\n />\n )}\n </Host>\n );\n }\n}\n"]}
|
@@ -7,7 +7,7 @@ export class CpslAvatar {
|
|
7
7
|
}
|
8
8
|
render() {
|
9
9
|
var _a;
|
10
|
-
return (h(Host, { key: '
|
10
|
+
return (h(Host, { key: '04dfd668bc6ab12f758e82ccfd915f06e1de3504' }, h("span", { key: '906c7c6e113040b95273c987689e848954e14a1c', class: { round: this.variant === 'round' } }, h("img", { key: '2d952a27ebbeb118c931162487f2d7e13370b41f', src: this.src, alt: (_a = this.alt) !== null && _a !== void 0 ? _a : 'avatar' }))));
|
11
11
|
}
|
12
12
|
static get is() { return "cpsl-avatar"; }
|
13
13
|
static get encapsulation() { return "shadow"; }
|
@@ -68,11 +68,12 @@
|
|
68
68
|
--button-padding-start: 16px;
|
69
69
|
--button-padding-end: 16px;
|
70
70
|
--button-icon-size: var(--cpls-font-size-body-l);
|
71
|
+
--button-font-weight: 500;
|
71
72
|
--button-primary-color: var(--cpsl-color-primary-button-text);
|
72
73
|
--button-primary-background-color: var(--cpsl-color-primary-button-surface-default);
|
73
74
|
--button-primary-border-color: var(--cpsl-color-primary-button-border-default);
|
74
75
|
--button-primary-icon-color: var(--cpsl-color-primary-button-text);
|
75
|
-
--button-primary-disabled-color: var(--cpsl-color-
|
76
|
+
--button-primary-disabled-color: var(--cpsl-color-text-disabled);
|
76
77
|
--button-primary-disabled-background-color: var(--cpsl-color-primary-button-surface-disabled);
|
77
78
|
--button-primary-disabled-border-color: var(--cpsl-color-primary-button-border-disabled);
|
78
79
|
--button-primary-disabled-icon-color: var(--cpsl-color-primary-button-text);
|
@@ -88,7 +89,7 @@
|
|
88
89
|
--button-secondary-background-color: var(--cpsl-color-secondary-button-surface-default);
|
89
90
|
--button-secondary-border-color: var(--cpsl-color-secondary-button-border-default);
|
90
91
|
--button-secondary-icon-color: var(--cpsl-color-secondary-button-text);
|
91
|
-
--button-secondary-disabled-color: var(--cpsl-color-
|
92
|
+
--button-secondary-disabled-color: var(--cpsl-color-text-disabled);
|
92
93
|
--button-secondary-disabled-background-color: var(--cpsl-color-secondary-button-surface-disabled);
|
93
94
|
--button-secondary-disabled-border-color: var(--cpsl-color-secondary-button-border-disabled);
|
94
95
|
--button-secondary-disabled-icon-color: var(--cpsl-color-secondary-button-text);
|
@@ -100,12 +101,34 @@
|
|
100
101
|
--button-secondary-active-background-color: var(--cpsl-color-secondary-button-surface-pressed);
|
101
102
|
--button-secondary-active-border-color: var(--cpsl-color-secondary-button-border-default);
|
102
103
|
--button-secondary-active-icon-color: var(--cpsl-color-secondary-button-text);
|
103
|
-
--button-
|
104
|
-
--button-
|
105
|
-
--button-
|
106
|
-
|
104
|
+
--button-ghost-color: var(--cpsl-color-ghost-button-default);
|
105
|
+
--button-ghost-disabled-color: var(--cpsl-color-ghost-button-disabled);
|
106
|
+
--button-ghost-hover-color: var(--cpsl-color-ghost-button-hover);
|
107
|
+
--button-destructive-color: var(--cpsl-color-destructive-button-text);
|
108
|
+
--button-destructive-background-color: var(--cpsl-color-destructive-button-surface-default);
|
109
|
+
--button-destructive-border-color: var(--cpsl-color-destructive-button-border-default);
|
110
|
+
--button-destructive-icon-color: var(--cpsl-color-destructive-button-text);
|
111
|
+
--button-destructive-disabled-color: var(--cpsl-color-text-disabled);
|
112
|
+
--button-destructive-disabled-background-color: var(--cpsl-color-destructive-button-surface-disabled);
|
113
|
+
--button-destructive-disabled-border-color: var(--cpsl-color-destructive-button-border-disabled);
|
114
|
+
--button-destructive-disabled-icon-color: var(--cpsl-color-destructive-button-text);
|
115
|
+
--button-destructive-hover-color: var(--cpsl-color-destructive-button-text);
|
116
|
+
--button-destructive-hover-background-color: var(--cpsl-color-destructive-button-surface-hover);
|
117
|
+
--button-destructive-hover-border-color: var(--cpsl-color-destructive-button-border-default);
|
118
|
+
--button-destructive-hover-icon-color: var(--cpsl-color-destructive-button-text);
|
119
|
+
--button-destructive-active-color: var(--cpsl-color-destructive-button-text);
|
120
|
+
--button-destructive-active-background-color: var(--cpsl-color-destructive-button-surface-pressed);
|
121
|
+
--button-destructive-active-border-color: var(--cpsl-color-destructive-button-border-default);
|
122
|
+
--button-destructive-active-icon-color: var(--cpsl-color-destructive-button-text);
|
123
|
+
height: fit-content;
|
124
|
+
width: fit-content;
|
107
125
|
display: inline-block;
|
108
126
|
font-family: var(--cpsl-font-family, inherit);
|
127
|
+
-webkit-tap-highlight-color: transparent;
|
128
|
+
}
|
129
|
+
:host a {
|
130
|
+
height: fit-content;
|
131
|
+
width: auto !important;
|
109
132
|
}
|
110
133
|
|
111
134
|
:host(.full-width) {
|
@@ -123,12 +146,26 @@
|
|
123
146
|
--button-icon-size: var(--cpsl-font-size-body-m);
|
124
147
|
}
|
125
148
|
|
149
|
+
:host(.small.primary) {
|
150
|
+
--button-padding-top: 13px;
|
151
|
+
--button-padding-bottom: 13px;
|
152
|
+
}
|
153
|
+
|
126
154
|
:host(.medium) {
|
127
155
|
--button-font-size: var(--cpsl-font-size-body-m);
|
128
156
|
--button-padding-top: 14px;
|
129
157
|
--button-padding-bottom: 14px;
|
130
158
|
--button-icon-size: var(--cpsl-font-size-body-l);
|
131
159
|
}
|
160
|
+
:host(.medium) :host(.primary) {
|
161
|
+
--button-padding-top: 15px;
|
162
|
+
--button-padding-bottom: 15px;
|
163
|
+
}
|
164
|
+
|
165
|
+
:host(.medium.primary) {
|
166
|
+
--button-padding-top: 15px;
|
167
|
+
--button-padding-bottom: 15px;
|
168
|
+
}
|
132
169
|
|
133
170
|
:host(.disabled) {
|
134
171
|
cursor: default;
|
@@ -145,6 +182,9 @@
|
|
145
182
|
--button-color: var(--button-primary-color);
|
146
183
|
--button-background-color: var(--button-primary-background-color);
|
147
184
|
--button-border-color: var(--button-primary-border-color);
|
185
|
+
--button-padding-start: 17px;
|
186
|
+
--button-padding-end: 17px;
|
187
|
+
--button-border-width: 0px;
|
148
188
|
}
|
149
189
|
:host(.primary) ::slotted(cpsl-icon) {
|
150
190
|
--icon-color: var(--button-primary-icon-color);
|
@@ -179,9 +219,9 @@
|
|
179
219
|
}
|
180
220
|
|
181
221
|
:host(.secondary) {
|
182
|
-
--button-border-radius: var(--cpsl-border-radius-
|
222
|
+
--button-border-radius: var(--cpsl-border-radius-destructive-button);
|
183
223
|
--button-color: var(--button-secondary-color);
|
184
|
-
--button-background-color: var(--button-
|
224
|
+
--button-background-color: var(--button-secondary-background-color);
|
185
225
|
--button-border-color: var(--button-secondary-border-color);
|
186
226
|
}
|
187
227
|
:host(.secondary) ::slotted(cpsl-icon) {
|
@@ -216,20 +256,71 @@
|
|
216
256
|
--button-outline-color: var(--cpsl-color-secondary-button-outline);
|
217
257
|
}
|
218
258
|
|
219
|
-
:host(.
|
220
|
-
--button-color:
|
259
|
+
:host(.ghost) {
|
260
|
+
--button-color: var(--button-ghost-color);
|
221
261
|
--button-background-color: transparent;
|
222
262
|
--button-border-color: transparent;
|
223
263
|
--button-outline-color: transparent;
|
264
|
+
--button-padding-start: 0px;
|
265
|
+
--button-padding-end: 0px;
|
266
|
+
--button-padding-top: 0px;
|
267
|
+
--button-padding-bottom: 0px;
|
268
|
+
--button-border-width: 0px;
|
269
|
+
}
|
270
|
+
:host(.ghost) ::slotted(cpsl-icon) {
|
271
|
+
--icon-color: var(--button-ghost-color);
|
272
|
+
--height: var(--cpsl-font-size-body-xl);
|
273
|
+
--width: var(--cpsl-font-size-body-xl);
|
274
|
+
}
|
275
|
+
:host(.ghost):host(.disabled) {
|
276
|
+
--button-color: var(--button-ghost-disabled-color);
|
277
|
+
}
|
278
|
+
:host(.ghost):host(.disabled) ::slotted(cpsl-icon) {
|
279
|
+
--icon-color: var(--button-ghost-disabled-color);
|
280
|
+
}
|
281
|
+
:host(.ghost) :not(.disabled):hover {
|
282
|
+
--button-color: var(--button-ghost-hover-color);
|
283
|
+
}
|
284
|
+
:host(.ghost) :not(.disabled):hover ::slotted(cpsl-icon) {
|
285
|
+
--icon-color: var(--button-ghost-hover-color);
|
286
|
+
}
|
287
|
+
|
288
|
+
:host(.destructive) {
|
289
|
+
--button-border-radius: var(--cpsl-border-radius-secondary-button);
|
290
|
+
--button-color: var(--button-destructive-color);
|
291
|
+
--button-background-color: var(--button-destructive-background-color);
|
292
|
+
--button-border-color: var(--button-destructive-border-color);
|
293
|
+
}
|
294
|
+
:host(.destructive) ::slotted(cpsl-icon) {
|
295
|
+
--icon-color: var(--button-destructive-icon-color);
|
296
|
+
}
|
297
|
+
:host(.destructive):host(.disabled) {
|
298
|
+
--button-color: var(--button-destructive-disabled-color);
|
299
|
+
--button-background-color: var(--button-destructive-disabled-background-color);
|
300
|
+
--button-border-color: var(--button-destructive-disabled-border-color);
|
301
|
+
--button-outline-color: transparent;
|
302
|
+
}
|
303
|
+
:host(.destructive):host(.disabled) ::slotted(cpsl-icon) {
|
304
|
+
--icon-color: var(--button-destructive-disabled-icon-color);
|
305
|
+
}
|
306
|
+
:host(.destructive) :not(.disabled):hover {
|
307
|
+
--button-color: var(--button-destructive-hover-color);
|
308
|
+
--button-border-color: var(--button-destructive-hover-border-color);
|
309
|
+
--button-background-color: var(--button-destructive-hover-background-color);
|
310
|
+
}
|
311
|
+
:host(.destructive) :not(.disabled):hover ::slotted(cpsl-icon) {
|
312
|
+
--icon-color: var(--button-destructive-hover-icon-color);
|
224
313
|
}
|
225
|
-
:host(.
|
226
|
-
--
|
314
|
+
:host(.destructive) :not(.disabled):active {
|
315
|
+
--button-color: var(--button-destructive-active-color);
|
316
|
+
--button-border-color: var(--button-destructive-active-border-color);
|
317
|
+
--button-background-color: var(--button-destructive-active-background-color);
|
227
318
|
}
|
228
|
-
:host(.
|
229
|
-
--icon-color: var(--button-icon-
|
319
|
+
:host(.destructive) :not(.disabled):active ::slotted(cpsl-icon) {
|
320
|
+
--icon-color: var(--button-destructive-active-icon-color);
|
230
321
|
}
|
231
|
-
:host(.
|
232
|
-
--
|
322
|
+
:host(.destructive) :not(.disabled):focus-visible {
|
323
|
+
--button-outline-color: var(--cpsl-color-destructive-button-outline);
|
233
324
|
}
|
234
325
|
|
235
326
|
.button-native {
|
@@ -244,11 +335,15 @@
|
|
244
335
|
padding-top: var(--button-padding-top);
|
245
336
|
padding-bottom: var(--button-padding-bottom);
|
246
337
|
font-size: var(--button-font-size);
|
338
|
+
font-weight: var(--button-font-weight);
|
339
|
+
font-family: inherit;
|
340
|
+
white-space: nowrap;
|
341
|
+
text-decoration: none;
|
247
342
|
border: 0px solid transparent;
|
248
343
|
border-width: var(--button-border-width-top) var(--button-border-width-end) var(--button-border-width-bottom) var(--button-border-width-start);
|
249
344
|
cursor: pointer;
|
250
345
|
color: var(--button-color);
|
251
|
-
background
|
346
|
+
background: var(--button-background-color);
|
252
347
|
border-color: var(--button-border-color);
|
253
348
|
display: flex;
|
254
349
|
justify-content: var(--button-justify-content);
|
@@ -257,6 +352,7 @@
|
|
257
352
|
gap: var(--button-gap);
|
258
353
|
word-break: break-all;
|
259
354
|
outline-color: var(--button-outline-color);
|
355
|
+
-webkit-tap-highlight-color: transparent;
|
260
356
|
}
|
261
357
|
:host-context([dir=rtl]) .button-native {
|
262
358
|
border-top-left-radius: var(--button-border-radius-top-end);
|
@@ -1,21 +1,25 @@
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
2
2
|
export class CpslButton {
|
3
3
|
constructor() {
|
4
|
+
this.as = 'button';
|
4
5
|
this.disabled = false;
|
5
6
|
this.fullWidth = false;
|
7
|
+
this.href = undefined;
|
6
8
|
this.size = 'medium';
|
9
|
+
this.target = undefined;
|
7
10
|
this.variant = 'primary';
|
8
11
|
}
|
9
12
|
render() {
|
10
|
-
return (h(Host, { key: '
|
13
|
+
return (h(Host, { key: '554350e7af597bd14c9584f9924f73e04fe44093', class: {
|
11
14
|
'primary': this.variant === 'primary',
|
12
15
|
'secondary': this.variant === 'secondary',
|
13
|
-
'
|
16
|
+
'ghost': this.variant === 'ghost',
|
17
|
+
'destructive': this.variant === 'destructive',
|
14
18
|
'disabled': this.disabled,
|
15
19
|
'full-width': this.fullWidth,
|
16
20
|
'small': this.size === 'small',
|
17
21
|
'medium': this.size === 'medium',
|
18
|
-
} }, h(
|
22
|
+
} }, h(this.as, { key: '20b6865c03e312d263c523f681bb775d8626fc9c', href: this.href, target: this.target, part: "button-native", class: "button-native" }, h("slot", { key: '4ee8d68b06ce21288e63bfcff9aa186908b89af2', name: "start" }), h("slot", { key: '9c0a5f0daa64c75886d03fb830739c8f8cfb65d9' }), h("slot", { key: 'cf9addee55b0a0d8f487313c972d7b48d6f8c75c', name: "end" }))));
|
19
23
|
}
|
20
24
|
static get is() { return "cpsl-button"; }
|
21
25
|
static get encapsulation() { return "shadow"; }
|
@@ -31,6 +35,24 @@ export class CpslButton {
|
|
31
35
|
}
|
32
36
|
static get properties() {
|
33
37
|
return {
|
38
|
+
"as": {
|
39
|
+
"type": "string",
|
40
|
+
"mutable": false,
|
41
|
+
"complexType": {
|
42
|
+
"original": "'button' | 'a'",
|
43
|
+
"resolved": "\"a\" | \"button\"",
|
44
|
+
"references": {}
|
45
|
+
},
|
46
|
+
"required": false,
|
47
|
+
"optional": true,
|
48
|
+
"docs": {
|
49
|
+
"tags": [],
|
50
|
+
"text": "The tag for the button.\nOptions are: `\"button\"`, `\"a\".\nDefault is: `\"button\"`."
|
51
|
+
},
|
52
|
+
"attribute": "as",
|
53
|
+
"reflect": false,
|
54
|
+
"defaultValue": "'button'"
|
55
|
+
},
|
34
56
|
"disabled": {
|
35
57
|
"type": "boolean",
|
36
58
|
"mutable": false,
|
@@ -67,6 +89,23 @@ export class CpslButton {
|
|
67
89
|
"reflect": false,
|
68
90
|
"defaultValue": "false"
|
69
91
|
},
|
92
|
+
"href": {
|
93
|
+
"type": "string",
|
94
|
+
"mutable": false,
|
95
|
+
"complexType": {
|
96
|
+
"original": "string",
|
97
|
+
"resolved": "string",
|
98
|
+
"references": {}
|
99
|
+
},
|
100
|
+
"required": false,
|
101
|
+
"optional": true,
|
102
|
+
"docs": {
|
103
|
+
"tags": [],
|
104
|
+
"text": "href to use when using a link."
|
105
|
+
},
|
106
|
+
"attribute": "href",
|
107
|
+
"reflect": false
|
108
|
+
},
|
70
109
|
"size": {
|
71
110
|
"type": "string",
|
72
111
|
"mutable": false,
|
@@ -85,22 +124,39 @@ export class CpslButton {
|
|
85
124
|
"reflect": false,
|
86
125
|
"defaultValue": "'medium'"
|
87
126
|
},
|
127
|
+
"target": {
|
128
|
+
"type": "string",
|
129
|
+
"mutable": false,
|
130
|
+
"complexType": {
|
131
|
+
"original": "string",
|
132
|
+
"resolved": "string",
|
133
|
+
"references": {}
|
134
|
+
},
|
135
|
+
"required": false,
|
136
|
+
"optional": true,
|
137
|
+
"docs": {
|
138
|
+
"tags": [],
|
139
|
+
"text": "target to use when using a link."
|
140
|
+
},
|
141
|
+
"attribute": "target",
|
142
|
+
"reflect": false
|
143
|
+
},
|
88
144
|
"variant": {
|
89
145
|
"type": "string",
|
90
146
|
"mutable": false,
|
91
147
|
"complexType": {
|
92
|
-
"original": "'primary' | 'secondary' | '
|
93
|
-
"resolved": "\"
|
148
|
+
"original": "'primary' | 'secondary' | 'ghost' | 'destructive'",
|
149
|
+
"resolved": "\"destructive\" | \"ghost\" | \"primary\" | \"secondary\"",
|
94
150
|
"references": {}
|
95
151
|
},
|
96
152
|
"required": false,
|
97
153
|
"optional": true,
|
98
154
|
"docs": {
|
99
155
|
"tags": [],
|
100
|
-
"text": "The variant of the button.\nOptions are: `\"primary\"`, `\"secondary\", `\"icon\"
|
156
|
+
"text": "The variant of the button.\nOptions are: `\"primary\"`, `\"secondary\", `\"icon\", `\"text\"`.\nDefault is: `\"primary\"`."
|
101
157
|
},
|
102
158
|
"attribute": "variant",
|
103
|
-
"reflect":
|
159
|
+
"reflect": true,
|
104
160
|
"defaultValue": "'primary'"
|
105
161
|
}
|
106
162
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cpsl-button.js","sourceRoot":"","sources":["../../../../src/components/cpsl-button/cpsl-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,UAAU;;
|
1
|
+
{"version":3,"file":"cpsl-button.js","sourceRoot":"","sources":["../../../../src/components/cpsl-button/cpsl-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,UAAU;;kBAMS,QAAQ;wBAMQ,KAAK;yBAMrB,KAAK;;oBAYC,QAAQ;;uBAY2C,SAAS;;IAEhG,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE;gBAEL,SAAS,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS;gBACrC,WAAW,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW;gBACzC,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,OAAO;gBACjC,aAAa,EAAE,IAAI,CAAC,OAAO,KAAK,aAAa;gBAE7C,UAAU,EAAE,IAAI,CAAC,QAAQ;gBACzB,YAAY,EAAE,IAAI,CAAC,SAAS;gBAE5B,OAAO,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;gBAC9B,QAAQ,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;aACjC;YAED,EAAC,IAAI,CAAC,EAAE,qDAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAC,eAAe,EAAC,KAAK,EAAC,eAAe;gBACvF,6DAAM,IAAI,EAAC,OAAO,GAAQ;gBAC1B,8DAAa;gBACb,6DAAM,IAAI,EAAC,KAAK,GAAQ,CAChB,CACL,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'cpsl-button',\n styleUrl: 'cpsl-button.scss',\n shadow: true,\n})\nexport class CpslButton {\n /**\n * The tag for the button.\n * Options are: `\"button\"`, `\"a\".\n * Default is: `\"button\"`.\n */\n @Prop() as?: 'button' | 'a' = 'button';\n\n /**\n * If the button is disabled.\n * Default is: false.\n */\n @Prop({ reflect: true }) disabled?: boolean = false;\n\n /**\n * Whether the button takes the full width of it's container.\n * Default is: false.\n */\n @Prop() fullWidth?: boolean = false;\n\n /**\n * href to use when using a link.\n */\n @Prop() href?: string;\n\n /**\n * The size of the button.\n * Options are: `\"small\"`, `\"medium\".\n * Default is: `\"medium\"`.\n */\n @Prop() size?: 'small' | 'medium' = 'medium';\n\n /**\n * target to use when using a link.\n */\n @Prop() target?: string;\n\n /**\n * The variant of the button.\n * Options are: `\"primary\"`, `\"secondary\", `\"icon\", `\"text\"`.\n * Default is: `\"primary\"`.\n */\n @Prop({ reflect: true }) variant?: 'primary' | 'secondary' | 'ghost' | 'destructive' = 'primary';\n\n render() {\n return (\n <Host\n class={{\n // VARIANTS\n 'primary': this.variant === 'primary',\n 'secondary': this.variant === 'secondary',\n 'ghost': this.variant === 'ghost',\n 'destructive': this.variant === 'destructive',\n // STATE\n 'disabled': this.disabled,\n 'full-width': this.fullWidth,\n // SIZES\n 'small': this.size === 'small',\n 'medium': this.size === 'medium',\n }}\n >\n <this.as href={this.href} target={this.target} part=\"button-native\" class=\"button-native\">\n <slot name=\"start\"></slot>\n <slot></slot>\n <slot name=\"end\"></slot>\n </this.as>\n </Host>\n );\n }\n}\n"]}
|
@@ -32,7 +32,7 @@ export class CpslButtonGroup {
|
|
32
32
|
return this.el.querySelectorAll('&> *:not(cpsl-button)');
|
33
33
|
}
|
34
34
|
render() {
|
35
|
-
return (h(Host, { key: '
|
35
|
+
return (h(Host, { key: '18830efc419c35995cc7b31a89e2405e230f4978' }, h("slot", { key: 'f466f88653fd0fe91b258c03706b13adc78be777' })));
|
36
36
|
}
|
37
37
|
static get is() { return "cpsl-button-group"; }
|
38
38
|
static get encapsulation() { return "shadow"; }
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
2
2
|
export class CpslCard {
|
3
3
|
render() {
|
4
|
-
return (h(Host, { key: '
|
4
|
+
return (h(Host, { key: '21177f5a9ceec0246dc1fa89a052bfdadacc3063' }, h("div", { key: '0940e0aaf62b24e1be0e99c736069b5bb463854c', class: { card: true }, part: "card-container" }, h("slot", { key: '6317e03f97be9841c03b040845591043bf203e36' }))));
|
5
5
|
}
|
6
6
|
static get is() { return "cpsl-card"; }
|
7
7
|
static get encapsulation() { return "shadow"; }
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cpsl-card.js","sourceRoot":"","sources":["../../../../src/components/cpsl-card/cpsl-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,QAAQ;IACnB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;
|
1
|
+
{"version":3,"file":"cpsl-card.js","sourceRoot":"","sources":["../../../../src/components/cpsl-card/cpsl-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,QAAQ;IACnB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,IAAI,EAAC,gBAAgB;gBAC/C,8DAAa,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'cpsl-card',\n styleUrl: 'cpsl-card.scss',\n shadow: true,\n})\nexport class CpslCard {\n render() {\n return (\n <Host>\n <div class={{ card: true }} part=\"card-container\">\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
|
@@ -90,7 +90,7 @@ span.container {
|
|
90
90
|
height: 100%;
|
91
91
|
border-radius: var(--container-border-radius);
|
92
92
|
border: var(--container-border-width) solid;
|
93
|
-
background
|
93
|
+
background: var(--container-background-color-default);
|
94
94
|
border-color: var(--container-border-color-default);
|
95
95
|
transition: all 0.15s ease-in-out;
|
96
96
|
}
|
@@ -102,7 +102,7 @@ span.container cpsl-icon {
|
|
102
102
|
transition: all 0.15s ease-in-out;
|
103
103
|
}
|
104
104
|
span.container.checked {
|
105
|
-
background
|
105
|
+
background: var(--container-background-color-checked);
|
106
106
|
border-color: var(--container-border-color-checked);
|
107
107
|
}
|
108
108
|
span.container.checked cpsl-icon {
|