@usecapsule/core-components 3.0.1 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/css/capsule-core.css +93 -24
- 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-02072c68.entry.js +2 -0
- package/dist/capsule/p-02072c68.entry.js.map +1 -0
- package/dist/capsule/p-1474c545.entry.js +29 -0
- package/dist/capsule/p-1474c545.entry.js.map +1 -0
- package/dist/capsule/p-2c16694d.entry.js +2 -0
- package/dist/capsule/p-41088cd4.entry.js +2 -0
- package/dist/capsule/{p-fcead80b.entry.js.map → p-41088cd4.entry.js.map} +1 -1
- package/dist/capsule/{p-fa078837.entry.js → p-6dcaee48.entry.js} +2 -2
- package/dist/capsule/p-7dde3172.js +3 -0
- package/dist/capsule/p-7dde3172.js.map +1 -0
- package/dist/capsule/{p-d28b96ba.entry.js → p-a6aaf3f4.entry.js} +2 -2
- package/dist/capsule/{p-0d0a0037.entry.js → p-b976b6f0.entry.js} +2 -2
- package/dist/capsule/p-f2393be6.js +2 -0
- package/dist/capsule/p-f2393be6.js.map +1 -0
- package/dist/cjs/capsule.cjs.js +2 -2
- 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} +662 -87
- package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-animation.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-col.cjs.entry.js +1 -1
- 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-5733071e.js → index-528f7428.js} +86 -3
- package/dist/cjs/index-528f7428.js.map +1 -0
- package/dist/cjs/index.cjs.js +116 -107
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- 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/farcaster-brand.svg +10 -0
- package/dist/collection/assets/icons/farcaster.svg +10 -0
- package/dist/collection/assets/icons/image.svg +3 -0
- package/dist/collection/assets/icons/index.js +9 -1
- package/dist/collection/assets/icons/index.js.map +1 -1
- 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 +5 -0
- package/dist/collection/components/cpsl-alert/cpsl-alert.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-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-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-code-input/cpsl-code-input.css +1 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.css +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 +211 -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.css +4 -0
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js.map +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 +409 -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 +40 -60
- package/dist/collection/components/cpsl-table/cpsl-table.js +40 -58
- 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/interface.js.map +1 -1
- package/dist/collection/utils/theme/generateBorderRadii.js +40 -39
- 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/collection/utils/theme/generateTheme.js +2 -2
- package/dist/collection/utils/theme/generateTheme.js.map +1 -1
- package/dist/collection/utils/theme/utils.js +1 -0
- package/dist/collection/utils/theme/utils.js.map +1 -1
- package/dist/esm/capsule.js +3 -3
- 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} +659 -88
- package/dist/esm/cpsl-alert_33.entry.js.map +1 -0
- package/dist/esm/cpsl-animation.entry.js +1 -1
- package/dist/esm/cpsl-col.entry.js +1 -1
- 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-8fe9f35e.js → index-b188f201.js} +86 -4
- package/dist/esm/index-b188f201.js.map +1 -0
- package/dist/esm/index.js +116 -107
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/assets/icons/index.d.ts +8 -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 +38 -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 +8 -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/interface.d.ts +68 -1
- package/dist/types/utils/theme/generateBorderRadii.d.ts +1 -1
- package/dist/types/utils/theme/generateTheme.d.ts +1 -1
- package/dist/types/utils/theme/utils.d.ts +4 -1
- package/package.json +2 -2
- package/dist/capsule/p-107e1ff5.entry.js +0 -29
- package/dist/capsule/p-107e1ff5.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-fcead80b.entry.js +0 -2
- package/dist/cjs/cpsl-alert_29.cjs.entry.js.map +0 -1
- 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.map +0 -1
- package/dist/types/components/cpsl-table/table-interface.d.ts +0 -19
- /package/dist/capsule/{p-ad14a817.entry.js.map → p-2c16694d.entry.js.map} +0 -0
- /package/dist/capsule/{p-fa078837.entry.js.map → p-6dcaee48.entry.js.map} +0 -0
- /package/dist/capsule/{p-d28b96ba.entry.js.map → p-a6aaf3f4.entry.js.map} +0 -0
- /package/dist/capsule/{p-0d0a0037.entry.js.map → p-b976b6f0.entry.js.map} +0 -0
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-528f7428.js');
|
6
6
|
const _commonjsHelpers = require('./_commonjsHelpers-b3309d7b.js');
|
7
7
|
|
8
8
|
var lottie$1 = {exports: {}};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-528f7428.js');
|
6
6
|
|
7
7
|
const cpslGridCss = ":host{-webkit-padding-start:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;display:block;flex:1}@media (min-width: 576px){:host{-webkit-padding-start:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px))}}:host(.grid-fixed){width:var(--cpsl-grid-width-xs, var(--cpsl-grid-width, 100%));max-width:100%}@media (min-width: 576px){:host(.grid-fixed){width:var(--cpsl-grid-width-sm, var(--cpsl-grid-width, 540px))}}@media (min-width: 768px){:host(.grid-fixed){width:var(--cpsl-grid-width-md, var(--cpsl-grid-width, 720px))}}@media (min-width: 992px){:host(.grid-fixed){width:var(--cpsl-grid-width-lg, var(--cpsl-grid-width, 960px))}}@media (min-width: 1200px){:host(.grid-fixed){width:var(--cpsl-grid-width-xl, var(--cpsl-grid-width, 1140px))}}:host(.cpsl-no-padding){--cpsl-grid-column-padding:0;--cpsl-grid-column-padding-xs:0;--cpsl-grid-column-padding-sm:0;--cpsl-grid-column-padding-md:0;--cpsl-grid-column-padding-lg:0;--cpsl-grid-column-padding-xl:0}";
|
8
8
|
const CpslGridStyle0 = cpslGridCss;
|
@@ -13,9 +13,9 @@ const CpslGrid = class {
|
|
13
13
|
this.fixed = false;
|
14
14
|
}
|
15
15
|
render() {
|
16
|
-
return (index.h(index.Host, { key: '
|
16
|
+
return (index.h(index.Host, { key: '1596fe7c785ab672325dde24686ec73f3acd1dc1', class: {
|
17
17
|
'grid-fixed': this.fixed,
|
18
|
-
} }, index.h("slot", { key: '
|
18
|
+
} }, index.h("slot", { key: 'a45bcf373f26f5b41484daec4bd6f39f8af1bd6f' })));
|
19
19
|
}
|
20
20
|
};
|
21
21
|
CpslGrid.style = CpslGridStyle0;
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-528f7428.js');
|
6
6
|
|
7
|
-
const cpslInfoBoxCss = ":host{--box-border-radius:var(--cpsl-border-radius-info-box);--box-padding-top:16px;--box-padding-bottom:16px;--box-padding-start:16px;--box-padding-end:16px;--box-border-width:1px}.info-box-container{border-radius:var(--input-border-radius);-webkit-padding-start:var(--box-padding-start);padding-inline-start:var(--box-padding-start);-webkit-padding-end:var(--box-padding-end);padding-inline-end:var(--box-padding-end);padding-top:var(--box-padding-top);padding-bottom:var(--box-padding-bottom);display:flex;background
|
7
|
+
const cpslInfoBoxCss = ":host{--box-border-radius:var(--cpsl-border-radius-info-box);--box-padding-top:16px;--box-padding-bottom:16px;--box-padding-start:16px;--box-padding-end:16px;--box-border-width:1px}.info-box-container{border-radius:var(--input-border-radius);-webkit-padding-start:var(--box-padding-start);padding-inline-start:var(--box-padding-start);-webkit-padding-end:var(--box-padding-end);padding-inline-end:var(--box-padding-end);padding-top:var(--box-padding-top);padding-bottom:var(--box-padding-bottom);display:flex;background:var(--cpsl-color-background-secondary);border:var(--box-border-width) solid var(--cpsl-color-input-border-placeholder);border-radius:var(--box-border-radius)}";
|
8
8
|
const CpslInfoBoxStyle0 = cpslInfoBoxCss;
|
9
9
|
|
10
10
|
const CpslInfoBox = class {
|
@@ -12,7 +12,7 @@ const CpslInfoBox = class {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
13
13
|
}
|
14
14
|
render() {
|
15
|
-
return (index.h(index.Host, { key: '
|
15
|
+
return (index.h(index.Host, { key: '60852c54e233d29363761d07715aab5b7d86e4b0' }, index.h("div", { key: '970d11a996e58604455833c5a31a9ae26abadb95', class: "info-box-container" }, index.h("slot", { key: '4f2f3a5da31d262544f848b06498af7da5b2cbd1' }))));
|
16
16
|
}
|
17
17
|
};
|
18
18
|
CpslInfoBox.style = CpslInfoBoxStyle0;
|
@@ -1 +1 @@
|
|
1
|
-
{"file":"cpsl-info-box.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,cAAc,GAAG,
|
1
|
+
{"file":"cpsl-info-box.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,cAAc,GAAG,wqBAAwqB,CAAC;AAChsB,0BAAe,cAAc;;MCMhB,WAAW;;;;IACtB,MAAM;QACJ,QACEA,QAACC,UAAI,uDACHD,kEAAK,KAAK,EAAC,oBAAoB,IAC7BA,oEAAa,CACT,CACD,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/cpsl-info-box/cpsl-info-box.scss?tag=cpsl-info-box&encapsulation=shadow","src/components/cpsl-info-box/cpsl-info-box.tsx"],"sourcesContent":["@import '../../themes/capsule.globals';\n\n:host {\n --box-border-radius: var(--cpsl-border-radius-info-box);\n --box-padding-top: 16px;\n --box-padding-bottom: 16px;\n --box-padding-start: 16px;\n --box-padding-end: 16px;\n --box-border-width: 1px;\n}\n\n.info-box-container {\n @include border-radius(var(--input-border-radius));\n @include padding(var(--box-padding-top), var(--box-padding-end), var(--box-padding-bottom), var(--box-padding-start));\n\n display: flex;\n background: var(--cpsl-color-background-secondary);\n border: var(--box-border-width) solid var(--cpsl-color-input-border-placeholder);\n border-radius: var(--box-border-radius);\n}\n","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'cpsl-info-box',\n styleUrl: 'cpsl-info-box.scss',\n shadow: true,\n})\nexport class CpslInfoBox {\n render() {\n return (\n <Host>\n <div class=\"info-box-container\">\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
const index = require('./index-528f7428.js');
|
6
|
+
|
7
|
+
const cpslModalV2Css = ":host{display:none;position:absolute;top:0;left:0;width:100vw;height:100vh;justify-content:center;align-items:center;z-index:10005}:host .card{z-index:10005;opacity:0;position:relative;transition:all}:host(.no-overlay){position:relative;top:unset;left:unset;width:100%;height:auto}:host(.open) .card{opacity:1}:host(.elevated) .card{--card-border-width:0px}:host(.elevated) .card::part(card-container){box-shadow:0px 8px 16px 0px rgba(0, 0, 0, 0.12)}";
|
8
|
+
const CpslModalV2Style0 = cpslModalV2Css;
|
9
|
+
|
10
|
+
const CpslModalV2 = class {
|
11
|
+
constructor(hostRef) {
|
12
|
+
index.registerInstance(this, hostRef);
|
13
|
+
this.cpslModalEntering = index.createEvent(this, "cpslModalEntering", 7);
|
14
|
+
this.cpslModalEntered = index.createEvent(this, "cpslModalEntered", 7);
|
15
|
+
this.cpslModalExiting = index.createEvent(this, "cpslModalExiting", 7);
|
16
|
+
this.cpslModalExited = index.createEvent(this, "cpslModalExited", 7);
|
17
|
+
this.enterTransitionDuration = 0.15;
|
18
|
+
this.exitTransitionDuration = 0.15;
|
19
|
+
this.elevated = undefined;
|
20
|
+
this.noOverlay = undefined;
|
21
|
+
this.open = undefined;
|
22
|
+
this.zIndexOverride = undefined;
|
23
|
+
}
|
24
|
+
toggleHeight() {
|
25
|
+
if (!this.open) {
|
26
|
+
this.cpslModalExiting.emit();
|
27
|
+
setTimeout(() => {
|
28
|
+
this.el.style.display = 'none';
|
29
|
+
this.cpslModalExited.emit();
|
30
|
+
}, this.exitTransitionDuration * 1000);
|
31
|
+
}
|
32
|
+
else {
|
33
|
+
this.cpslModalEntering.emit();
|
34
|
+
this.el.style.display = 'flex';
|
35
|
+
setTimeout(() => {
|
36
|
+
this.cpslModalEntered.emit();
|
37
|
+
}, this.enterTransitionDuration * 1000);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
componentDidLoad() {
|
41
|
+
this.toggleHeight();
|
42
|
+
}
|
43
|
+
render() {
|
44
|
+
return (index.h(index.Host, { key: 'ecdfd932091801f470beb579793ba8faaddd1858', class: { 'open': this.open, 'elevated': this.elevated, 'no-overlay': this.noOverlay } }, !this.noOverlay && (index.h("cpsl-overlay", { zIndexOverride: Boolean(this.zIndexOverride) ? this.zIndexOverride : undefined, id: "overlay", open: this.open, enterTransitionDuration: this.enterTransitionDuration, exitTransitionDuration: this.exitTransitionDuration })), index.h("cpsl-card", { key: '9c0d1dc565ed8d178f56e02d3e53cc6f979d66b5', class: "card", style: { transitionDuration: this.open ? `${this.exitTransitionDuration}s` : `${this.enterTransitionDuration}s` } }, index.h("slot", { key: 'be77c75323488daed7b254daeca431835f96f081' }))));
|
45
|
+
}
|
46
|
+
get el() { return index.getElement(this); }
|
47
|
+
static get watchers() { return {
|
48
|
+
"open": ["toggleHeight"]
|
49
|
+
}; }
|
50
|
+
};
|
51
|
+
CpslModalV2.style = CpslModalV2Style0;
|
52
|
+
|
53
|
+
exports.cpsl_modal_v2 = CpslModalV2;
|
54
|
+
|
55
|
+
//# sourceMappingURL=cpsl-modal-v2.cjs.entry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"cpsl-modal-v2.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,cAAc,GAAG,ocAAoc,CAAC;AAC5d,0BAAe,cAAc;;MCMhB,WAAW;;;;;;;uCAOqB,IAAI;sCAML,IAAI;;;;;;IA2C9C,YAAY;QACV,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACd,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC;YAE7B,UAAU,CAAC;gBACT,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;gBAC/B,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC;aAC7B,EAAE,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,CAAC;SACxC;aAAM;YACL,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC;YAC9B,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;YAC/B,UAAU,CAAC;gBACT,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC;aAC9B,EAAE,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAC;SACzC;KACF;IAED,gBAAgB;QACd,IAAI,CAAC,YAAY,EAAE,CAAC;KACrB;IAED,MAAM;QACJ,QACEA,QAACC,UAAI,qDAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,YAAY,EAAE,IAAI,CAAC,SAAS,EAAE,IACxF,CAAC,IAAI,CAAC,SAAS,KACdD,0BACE,cAAc,EAAE,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,cAAc,GAAG,SAAS,EAC9E,EAAE,EAAC,SAAS,EACZ,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,uBAAuB,EAAE,IAAI,CAAC,uBAAuB,EACrD,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,GACnD,CACH,EACDA,wEAAW,KAAK,EAAC,MAAM,EAAC,KAAK,EAAE,EAAE,kBAAkB,EAAE,IAAI,CAAC,IAAI,GAAG,GAAG,IAAI,CAAC,sBAAsB,GAAG,GAAG,GAAG,IAAI,CAAC,uBAAuB,GAAG,EAAE,IACvIA,oEAAa,CACH,CACP,EACP;KACH;;;;;;;;;;","names":["h","Host"],"sources":["src/components/cpsl-modal-v2/cpsl-modal-v2.scss?tag=cpsl-modal-v2&encapsulation=shadow","src/components/cpsl-modal-v2/cpsl-modal-v2.tsx"],"sourcesContent":["@use 'sass:map';\n@import '../../themes/capsule.globals';\n\n:host {\n display: none;\n\n position: absolute;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n justify-content: center;\n align-items: center;\n\n z-index: map.get($z-indices, 'modal');\n\n & .card {\n z-index: map.get($z-indices, 'modal');\n opacity: 0;\n\n position: relative;\n\n transition: all;\n }\n}\n\n:host(.no-overlay) {\n position: relative;\n top: unset;\n left: unset;\n width: 100%;\n height: auto;\n}\n\n:host(.open) {\n & .card {\n opacity: 1;\n }\n}\n\n:host(.elevated) {\n & .card {\n --card-border-width: 0px;\n\n &::part(card-container) {\n box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.12);\n }\n }\n}\n","import { Component, Host, Prop, Watch, Element, Event, h, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'cpsl-modal-v2',\n styleUrl: 'cpsl-modal-v2.scss',\n shadow: true,\n})\nexport class CpslModalV2 {\n @Element() el!: HTMLCpslModalV2Element;\n\n /**\n * Duration in seconds of the modal entering.\n * Default is .15.\n */\n @Prop() enterTransitionDuration?: number = 0.15;\n\n /**\n * Duration in seconds of the modal exiting.\n * Default is .15.\n */\n @Prop() exitTransitionDuration?: number = 0.15;\n\n /**\n * Whether or not to show the modal with a box shadow.\n */\n @Prop() elevated: boolean;\n\n /**\n * Whether or not to show the overlay.\n */\n @Prop() noOverlay: boolean;\n\n /**\n * Whether or not to show the modal.\n */\n @Prop() open: boolean;\n\n /**\n * Override z-index.\n */\n @Prop() zIndexOverride?: number;\n\n /**\n * Emitted when enter animation starts.\n */\n @Event() cpslModalEntering!: EventEmitter<null>;\n\n /**\n * Emitted when enter animation finishes.\n */\n @Event() cpslModalEntered!: EventEmitter<null>;\n\n /**\n * Emitted when exit animation starts.\n */\n @Event() cpslModalExiting!: EventEmitter<null>;\n\n /**\n * Emitted when exit animation finishes.\n */\n @Event() cpslModalExited!: EventEmitter<null>;\n\n @Watch('open')\n toggleHeight() {\n if (!this.open) {\n this.cpslModalExiting.emit();\n // Animate out before setting display to none\n setTimeout(() => {\n this.el.style.display = 'none';\n this.cpslModalExited.emit();\n }, this.exitTransitionDuration * 1000);\n } else {\n this.cpslModalEntering.emit();\n this.el.style.display = 'flex';\n setTimeout(() => {\n this.cpslModalEntered.emit();\n }, this.enterTransitionDuration * 1000);\n }\n }\n\n componentDidLoad() {\n this.toggleHeight();\n }\n\n render() {\n return (\n <Host class={{ 'open': this.open, 'elevated': this.elevated, 'no-overlay': this.noOverlay }}>\n {!this.noOverlay && (\n <cpsl-overlay\n zIndexOverride={Boolean(this.zIndexOverride) ? this.zIndexOverride : undefined}\n id=\"overlay\"\n open={this.open}\n enterTransitionDuration={this.enterTransitionDuration}\n exitTransitionDuration={this.exitTransitionDuration}\n />\n )}\n <cpsl-card class=\"card\" style={{ transitionDuration: this.open ? `${this.exitTransitionDuration}s` : `${this.enterTransitionDuration}s` }}>\n <slot></slot>\n </cpsl-card>\n </Host>\n );\n }\n}\n"],"version":3}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-528f7428.js');
|
6
6
|
|
7
7
|
const cpslRowCss = ":host{display:flex;flex-wrap:wrap}";
|
8
8
|
const CpslRowStyle0 = cpslRowCss;
|
@@ -12,7 +12,7 @@ const CpslRow = class {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
13
13
|
}
|
14
14
|
render() {
|
15
|
-
return (index.h(index.Host, { key: '
|
15
|
+
return (index.h(index.Host, { key: '7f72521f5a00092d54fb143c73334dfdc8d5daf7' }, index.h("slot", { key: 'a23bda8f3a3178b61e409f73e6004586f8b26509' })));
|
16
16
|
}
|
17
17
|
};
|
18
18
|
CpslRow.style = CpslRowStyle0;
|
@@ -151,6 +151,10 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
151
151
|
}
|
152
152
|
}
|
153
153
|
}
|
154
|
+
if (typeof nodeName === 'function') {
|
155
|
+
// nodeName is a functional component
|
156
|
+
return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
|
157
|
+
}
|
154
158
|
const vnode = newVNode(nodeName, null);
|
155
159
|
vnode.$attrs$ = vnodeData;
|
156
160
|
if (vNodeChildren.length > 0) {
|
@@ -193,6 +197,59 @@ const Host = {};
|
|
193
197
|
* @returns whether it's a Host node or not
|
194
198
|
*/
|
195
199
|
const isHost = (node) => node && node.$tag$ === Host;
|
200
|
+
/**
|
201
|
+
* Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
|
202
|
+
*
|
203
|
+
* Note that these functions convert from {@link d.VNode} to
|
204
|
+
* {@link d.ChildNode} to give functional component developers a friendly
|
205
|
+
* interface.
|
206
|
+
*/
|
207
|
+
const vdomFnUtils = {
|
208
|
+
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
209
|
+
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
|
210
|
+
};
|
211
|
+
/**
|
212
|
+
* Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
|
213
|
+
* friendlier public interface (hence, 'convertToPublic').
|
214
|
+
*
|
215
|
+
* @param node the virtual DOM node to convert
|
216
|
+
* @returns a converted child node
|
217
|
+
*/
|
218
|
+
const convertToPublic = (node) => ({
|
219
|
+
vattrs: node.$attrs$,
|
220
|
+
vchildren: node.$children$,
|
221
|
+
vkey: node.$key$,
|
222
|
+
vname: node.$name$,
|
223
|
+
vtag: node.$tag$,
|
224
|
+
vtext: node.$text$,
|
225
|
+
});
|
226
|
+
/**
|
227
|
+
* Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
|
228
|
+
* order to use the resulting object in the virtual DOM. The initial object was
|
229
|
+
* likely created as part of presenting a public API, so converting it back
|
230
|
+
* involved making it 'private' again (hence, `convertToPrivate`).
|
231
|
+
*
|
232
|
+
* @param node the child node to convert
|
233
|
+
* @returns a converted virtual DOM node
|
234
|
+
*/
|
235
|
+
const convertToPrivate = (node) => {
|
236
|
+
if (typeof node.vtag === 'function') {
|
237
|
+
const vnodeData = Object.assign({}, node.vattrs);
|
238
|
+
if (node.vkey) {
|
239
|
+
vnodeData.key = node.vkey;
|
240
|
+
}
|
241
|
+
if (node.vname) {
|
242
|
+
vnodeData.name = node.vname;
|
243
|
+
}
|
244
|
+
return h(node.vtag, vnodeData, ...(node.vchildren || []));
|
245
|
+
}
|
246
|
+
const vnode = newVNode(node.vtag, node.vtext);
|
247
|
+
vnode.$attrs$ = node.vattrs;
|
248
|
+
vnode.$children$ = node.vchildren;
|
249
|
+
vnode.$key$ = node.vkey;
|
250
|
+
vnode.$name$ = node.vname;
|
251
|
+
return vnode;
|
252
|
+
};
|
196
253
|
/**
|
197
254
|
* Parse a new property value for a given property type.
|
198
255
|
*
|
@@ -405,6 +462,12 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
405
462
|
}
|
406
463
|
else if (memberName === 'key')
|
407
464
|
;
|
465
|
+
else if (memberName === 'ref') {
|
466
|
+
// minifier will clean this up
|
467
|
+
if (newValue) {
|
468
|
+
newValue(elm);
|
469
|
+
}
|
470
|
+
}
|
408
471
|
else if ((!isProp ) &&
|
409
472
|
memberName[0] === 'o' &&
|
410
473
|
memberName[1] === 'n') {
|
@@ -637,6 +700,7 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
637
700
|
const vnode = vnodes[index];
|
638
701
|
if (vnode) {
|
639
702
|
const elm = vnode.$elm$;
|
703
|
+
nullifyVNodeRefs(vnode);
|
640
704
|
if (elm) {
|
641
705
|
// remove the vnode's element from the dom
|
642
706
|
elm.remove();
|
@@ -946,6 +1010,19 @@ const patch = (oldVNode, newVNode, isInitialRender = false) => {
|
|
946
1010
|
elm.data = text;
|
947
1011
|
}
|
948
1012
|
};
|
1013
|
+
/**
|
1014
|
+
* 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
|
1015
|
+
* them with `null`. This signals that the DOM element corresponding to the VDom
|
1016
|
+
* node has been removed from the DOM.
|
1017
|
+
*
|
1018
|
+
* @param vNode a virtual DOM node
|
1019
|
+
*/
|
1020
|
+
const nullifyVNodeRefs = (vNode) => {
|
1021
|
+
{
|
1022
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
1023
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
1024
|
+
}
|
1025
|
+
};
|
949
1026
|
/**
|
950
1027
|
* The main entry point for Stencil's virtual DOM-based rendering engine
|
951
1028
|
*
|
@@ -1768,6 +1845,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1768
1845
|
// Fallback appLoad event
|
1769
1846
|
endBootstrap();
|
1770
1847
|
};
|
1848
|
+
const Fragment = (_, children) => children;
|
1771
1849
|
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
1772
1850
|
if (listeners) {
|
1773
1851
|
listeners.map(([flags, name, method]) => {
|
@@ -1892,10 +1970,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
1892
1970
|
}
|
1893
1971
|
switch(bundleId) {
|
1894
1972
|
|
1895
|
-
case 'cpsl-
|
1973
|
+
case 'cpsl-alert_33.cjs':
|
1896
1974
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
1897
1975
|
/* webpackMode: "lazy" */
|
1898
|
-
'./cpsl-
|
1976
|
+
'./cpsl-alert_33.cjs.entry.js')); }).then(processMod, consoleError);
|
1899
1977
|
case 'cpsl-animation.cjs':
|
1900
1978
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
1901
1979
|
/* webpackMode: "lazy" */
|
@@ -1912,6 +1990,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
1912
1990
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
1913
1991
|
/* webpackMode: "lazy" */
|
1914
1992
|
'./cpsl-info-box.cjs.entry.js')); }).then(processMod, consoleError);
|
1993
|
+
case 'cpsl-modal-v2.cjs':
|
1994
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
1995
|
+
/* webpackMode: "lazy" */
|
1996
|
+
'./cpsl-modal-v2.cjs.entry.js')); }).then(processMod, consoleError);
|
1915
1997
|
case 'cpsl-row.cjs':
|
1916
1998
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
1917
1999
|
/* webpackMode: "lazy" */
|
@@ -2007,6 +2089,7 @@ const flush = () => {
|
|
2007
2089
|
const nextTick = (cb) => promiseResolve().then(cb);
|
2008
2090
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
2009
2091
|
|
2092
|
+
exports.Fragment = Fragment;
|
2010
2093
|
exports.Host = Host;
|
2011
2094
|
exports.bootstrapLazy = bootstrapLazy;
|
2012
2095
|
exports.createEvent = createEvent;
|
@@ -2017,4 +2100,4 @@ exports.promiseResolve = promiseResolve;
|
|
2017
2100
|
exports.registerInstance = registerInstance;
|
2018
2101
|
exports.setNonce = setNonce;
|
2019
2102
|
|
2020
|
-
//# sourceMappingURL=index-
|
2103
|
+
//# sourceMappingURL=index-528f7428.js.map
|