@usecapsule/core-components 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. package/dist/capsule/capsule.esm.js +1 -1
  2. package/dist/capsule/capsule.esm.js.map +1 -1
  3. package/dist/capsule/index.esm.js.map +1 -1
  4. package/dist/capsule/{p-5ed5e96c.entry.js → p-02072c68.entry.js} +2 -2
  5. package/dist/capsule/{p-5ed5e96c.entry.js.map → p-02072c68.entry.js.map} +1 -1
  6. package/dist/capsule/p-1474c545.entry.js +29 -0
  7. package/dist/capsule/{p-6e900654.entry.js.map → p-1474c545.entry.js.map} +1 -1
  8. package/dist/capsule/p-2c16694d.entry.js +2 -0
  9. package/dist/capsule/{p-397edab5.entry.js.map → p-2c16694d.entry.js.map} +1 -1
  10. package/dist/capsule/{p-52d6ebee.entry.js → p-41088cd4.entry.js} +2 -2
  11. package/dist/capsule/{p-52d6ebee.entry.js.map → p-41088cd4.entry.js.map} +1 -1
  12. package/dist/capsule/{p-f9351426.entry.js → p-6dcaee48.entry.js} +2 -2
  13. package/dist/capsule/{p-f9351426.entry.js.map → p-6dcaee48.entry.js.map} +1 -1
  14. package/dist/capsule/p-7dde3172.js +3 -0
  15. package/dist/capsule/p-7dde3172.js.map +1 -0
  16. package/dist/capsule/p-a6aaf3f4.entry.js +10 -0
  17. package/dist/capsule/{p-86e6cba5.entry.js.map → p-a6aaf3f4.entry.js.map} +1 -1
  18. package/dist/capsule/{p-70f95c93.entry.js → p-b976b6f0.entry.js} +2 -2
  19. package/dist/capsule/{p-70f95c93.entry.js.map → p-b976b6f0.entry.js.map} +1 -1
  20. package/dist/cjs/capsule.cjs.js +9 -9
  21. package/dist/cjs/capsule.cjs.js.map +1 -1
  22. package/dist/cjs/cpsl-alert_33.cjs.entry.js +45 -39
  23. package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +1 -1
  24. package/dist/cjs/cpsl-animation.cjs.entry.js +2 -2
  25. package/dist/cjs/cpsl-col.cjs.entry.js +2 -2
  26. package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
  27. package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
  28. package/dist/cjs/cpsl-modal-v2.cjs.entry.js +2 -2
  29. package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -1
  30. package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
  31. package/dist/cjs/index-528f7428.js +2103 -0
  32. package/dist/cjs/index-528f7428.js.map +1 -0
  33. package/dist/cjs/loader.cjs.js +1 -1
  34. package/dist/collection/collection-manifest.json +2 -2
  35. package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
  36. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
  37. package/dist/collection/components/cpsl-animation/cpsl-animation.js +1 -1
  38. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +2 -2
  39. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -1
  40. package/dist/collection/components/cpsl-avatar/cpsl-avatar.js +1 -1
  41. package/dist/collection/components/cpsl-button/cpsl-button.js +2 -2
  42. package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +1 -1
  43. package/dist/collection/components/cpsl-card/cpsl-card.js +1 -1
  44. package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +1 -1
  45. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +2 -2
  46. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
  47. package/dist/collection/components/cpsl-col/cpsl-col.js +1 -1
  48. package/dist/collection/components/cpsl-divider/cpsl-divider.js +1 -1
  49. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +2 -2
  50. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
  51. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +1 -1
  52. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
  53. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +1 -1
  54. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
  55. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  56. package/dist/collection/components/cpsl-icon/cpsl-icon.js +1 -1
  57. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  58. package/dist/collection/components/cpsl-input/cpsl-input.js +1 -1
  59. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  60. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +1 -1
  61. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -1
  62. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +1 -1
  63. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
  64. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
  65. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  66. package/dist/collection/components/cpsl-popover/cpsl-popover.js +2 -2
  67. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
  68. package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
  69. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  70. package/dist/collection/components/cpsl-select/cpsl-select.js +1 -1
  71. package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
  72. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
  73. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +1 -1
  74. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  75. package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
  76. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  77. package/dist/collection/components/cpsl-table/cpsl-table.css +1 -9
  78. package/dist/collection/components/cpsl-table/cpsl-table.js +7 -1
  79. package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
  80. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
  81. package/dist/collection/components/cpsl-text/cpsl-text.js +1 -1
  82. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +1 -1
  83. package/dist/esm/capsule.js +10 -10
  84. package/dist/esm/capsule.js.map +1 -1
  85. package/dist/esm/cpsl-alert_33.entry.js +45 -39
  86. package/dist/esm/cpsl-alert_33.entry.js.map +1 -1
  87. package/dist/esm/cpsl-animation.entry.js +2 -2
  88. package/dist/esm/cpsl-col.entry.js +2 -2
  89. package/dist/esm/cpsl-grid.entry.js +3 -3
  90. package/dist/esm/cpsl-info-box.entry.js +2 -2
  91. package/dist/esm/cpsl-modal-v2.entry.js +2 -2
  92. package/dist/esm/cpsl-modal-v2.entry.js.map +1 -1
  93. package/dist/esm/cpsl-row.entry.js +2 -2
  94. package/dist/esm/index-b188f201.js +2072 -0
  95. package/dist/esm/index-b188f201.js.map +1 -0
  96. package/dist/esm/loader.js +2 -2
  97. package/dist/esm/polyfills/core-js.js +11 -0
  98. package/dist/esm/polyfills/dom.js +79 -0
  99. package/dist/esm/polyfills/es5-html-element.js +1 -0
  100. package/dist/esm/polyfills/index.js +34 -0
  101. package/dist/esm/polyfills/system.js +6 -0
  102. package/dist/loader/cdn.js +3 -1
  103. package/dist/loader/index.cjs.js +3 -1
  104. package/dist/loader/index.es2017.js +3 -1
  105. package/dist/loader/index.js +3 -1
  106. package/dist/types/components/cpsl-table/cpsl-table.d.ts +2 -0
  107. package/dist/types/stencil-public-runtime.d.ts +8 -3
  108. package/package.json +2 -2
  109. package/dist/capsule/p-397edab5.entry.js +0 -2
  110. package/dist/capsule/p-6e71539d.js +0 -3
  111. package/dist/capsule/p-6e71539d.js.map +0 -1
  112. package/dist/capsule/p-6e900654.entry.js +0 -29
  113. package/dist/capsule/p-86e6cba5.entry.js +0 -10
  114. package/dist/cjs/index-85125285.js +0 -1414
  115. package/dist/cjs/index-85125285.js.map +0 -1
  116. package/dist/esm/index-b9a060b3.js +0 -1383
  117. package/dist/esm/index-b9a060b3.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-85125285.js');
5
+ const index = require('./index-528f7428.js');
6
6
  const _commonjsHelpers = require('./_commonjsHelpers-b3309d7b.js');
7
7
 
8
8
  var lottie$1 = {exports: {}};
@@ -20118,7 +20118,7 @@ const CpslAnimation = class {
20118
20118
  return this.el.shadowRoot.getElementById('animation-container');
20119
20119
  }
20120
20120
  render() {
20121
- return (index.h(index.Host, { key: '5fab748126f7b18a9051aa89df1b8a78ef647648' }, index.h("div", { key: 'b9cac260ee00f54a56c7cd249850a8df5e84dc3b', part: "animation-container", id: "animation-container", class: "animation-container" })));
20121
+ return (index.h(index.Host, { key: '7a121c6f09a28dcffdd54d837b75d442b27c48f0' }, index.h("div", { key: '15accd8138d211272bcdce917fbcb347f7ce4697', part: "animation-container", id: "animation-container", class: "animation-container" })));
20122
20122
  }
20123
20123
  get el() { return index.getElement(this); }
20124
20124
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-85125285.js');
5
+ const index = require('./index-528f7428.js');
6
6
 
7
7
  const SIZE_TO_MEDIA = {
8
8
  xs: '(min-width: 0px)',
@@ -115,7 +115,7 @@ const CpslCol = class {
115
115
  }
116
116
  render() {
117
117
  const isRTL = document.dir === 'rtl';
118
- return (index.h(index.Host, { key: 'c8173c44fb66a24831c110618000da8edadbded8', style: Object.assign(Object.assign(Object.assign(Object.assign({}, this.calculateOffset(isRTL)), this.calculatePull(isRTL)), this.calculatePush(isRTL)), this.calculateSize()) }, index.h("slot", { key: '04fa1eb6e5d9feaa28141c55cc0cd72a5e0e39a7' })));
118
+ return (index.h(index.Host, { key: 'e883138d5be5bfcffaa61fc3f440cfaf3c2c567d', style: Object.assign(Object.assign(Object.assign(Object.assign({}, this.calculateOffset(isRTL)), this.calculatePull(isRTL)), this.calculatePush(isRTL)), this.calculateSize()) }, index.h("slot", { key: '51c74a5a0895f34074b65441be91f02c3243ba8c' })));
119
119
  }
120
120
  };
121
121
  CpslCol.style = CpslColStyle0;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-85125285.js');
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: '76084ea41988e4fdff4a48dc400988d2aa190a56', class: {
16
+ return (index.h(index.Host, { key: '1596fe7c785ab672325dde24686ec73f3acd1dc1', class: {
17
17
  'grid-fixed': this.fixed,
18
- } }, index.h("slot", { key: '1eb8c755910397d58a2165238a1428769623ef6b' })));
18
+ } }, index.h("slot", { key: 'a45bcf373f26f5b41484daec4bd6f39f8af1bd6f' })));
19
19
  }
20
20
  };
21
21
  CpslGrid.style = CpslGridStyle0;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-85125285.js');
5
+ const index = require('./index-528f7428.js');
6
6
 
7
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;
@@ -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: '15b85f109d7e5371f6fa35f38dc35f86a061c46c' }, index.h("div", { key: '39eae7146dfa17771e1d68045255c9b0db5d0a0c', class: "info-box-container" }, index.h("slot", { key: '008e3552b563dd2f3b6d10bc7afe59b0f2a2ba3a' }))));
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;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-85125285.js');
5
+ const index = require('./index-528f7428.js');
6
6
 
7
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
8
  const CpslModalV2Style0 = cpslModalV2Css;
@@ -41,7 +41,7 @@ const CpslModalV2 = class {
41
41
  this.toggleHeight();
42
42
  }
43
43
  render() {
44
- return (index.h(index.Host, { key: '916ab0ce5ec3ce2a33103e67773b5420dd44241d', class: { 'open': this.open, 'elevated': this.elevated, 'no-overlay': this.noOverlay } }, !this.noOverlay && (index.h("cpsl-overlay", { key: 'de5a3d5d1784fb4b2e07530ba0edcecc4c4c0e04', zIndexOverride: Boolean(this.zIndexOverride) ? this.zIndexOverride : undefined, id: "overlay", open: this.open, enterTransitionDuration: this.enterTransitionDuration, exitTransitionDuration: this.exitTransitionDuration })), index.h("cpsl-card", { key: '8cbdc7a258583092b89c52e1167fb4094a4cc5b3', class: "card", style: { transitionDuration: this.open ? `${this.exitTransitionDuration}s` : `${this.enterTransitionDuration}s` } }, index.h("slot", { key: '5382dc704ac6fdb1f159139bac1bddd544749b32' }))));
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
45
  }
46
46
  get el() { return index.getElement(this); }
47
47
  static get watchers() { return {
@@ -1 +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,2EACE,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}
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-85125285.js');
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: 'a227664834127c3580926c34abdc7aacdbd9ffd6' }, index.h("slot", { key: '61010658365df7a30f0e3b05f45436da5acf6720' })));
15
+ return (index.h(index.Host, { key: '7f72521f5a00092d54fb143c73334dfdc8d5daf7' }, index.h("slot", { key: 'a23bda8f3a3178b61e409f73e6004586f8b26509' })));
16
16
  }
17
17
  };
18
18
  CpslRow.style = CpslRowStyle0;