@usecapsule/core-components 3.0.1-dev.1 → 3.0.1-dev.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. package/css/capsule-core.css +4 -4
  2. package/dist/capsule/capsule.esm.js +1 -1
  3. package/dist/capsule/capsule.esm.js.map +1 -1
  4. package/dist/capsule/p-397edab5.entry.js +2 -0
  5. package/dist/capsule/{p-73398222.entry.js → p-52d6ebee.entry.js} +2 -2
  6. package/dist/capsule/{p-39584a7b.entry.js → p-5ed5e96c.entry.js} +2 -2
  7. package/dist/capsule/{p-97c33636.js → p-6e71539d.js} +1 -1
  8. package/dist/{esm/index-97ed6ec1.js.map → capsule/p-6e71539d.js.map} +1 -1
  9. package/dist/capsule/{p-127ac658.entry.js → p-70f95c93.entry.js} +2 -2
  10. package/dist/capsule/{p-69756614.entry.js → p-86e6cba5.entry.js} +2 -2
  11. package/dist/capsule/{p-8de15b15.entry.js → p-dd596431.entry.js} +3 -3
  12. package/dist/capsule/p-dd596431.entry.js.map +1 -0
  13. package/dist/capsule/{p-fd26ce6e.entry.js → p-f9351426.entry.js} +2 -2
  14. package/dist/cjs/capsule.cjs.js +2 -2
  15. package/dist/cjs/capsule.cjs.js.map +1 -1
  16. package/dist/cjs/cpsl-alert_33.cjs.entry.js +56 -19
  17. package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +1 -1
  18. package/dist/cjs/cpsl-animation.cjs.entry.js +1 -1
  19. package/dist/cjs/cpsl-col.cjs.entry.js +1 -1
  20. package/dist/cjs/cpsl-grid.cjs.entry.js +1 -1
  21. package/dist/cjs/cpsl-info-box.cjs.entry.js +1 -1
  22. package/dist/cjs/cpsl-modal-v2.cjs.entry.js +1 -1
  23. package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
  24. package/dist/cjs/{index-5293d431.js → index-85125285.js} +1 -1
  25. package/dist/cjs/index-85125285.js.map +1 -0
  26. package/dist/cjs/loader.cjs.js +2 -2
  27. package/dist/collection/components/cpsl-popover/cpsl-popover.js +46 -5
  28. package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
  29. package/dist/collection/components/cpsl-select/cpsl-select.css +2 -0
  30. package/dist/collection/components/cpsl-select/cpsl-select.js +35 -1
  31. package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
  32. package/dist/collection/components/cpsl-select-item/cpsl-select-item.css +22 -12
  33. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
  34. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -1
  35. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +1 -1
  36. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  37. package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
  38. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  39. package/dist/collection/components/cpsl-table/cpsl-table.js +1 -1
  40. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
  41. package/dist/collection/components/cpsl-text/cpsl-text.js +1 -1
  42. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +1 -1
  43. package/dist/esm/capsule.js +3 -3
  44. package/dist/esm/capsule.js.map +1 -1
  45. package/dist/esm/cpsl-alert_33.entry.js +56 -19
  46. package/dist/esm/cpsl-alert_33.entry.js.map +1 -1
  47. package/dist/esm/cpsl-animation.entry.js +1 -1
  48. package/dist/esm/cpsl-col.entry.js +1 -1
  49. package/dist/esm/cpsl-grid.entry.js +1 -1
  50. package/dist/esm/cpsl-info-box.entry.js +1 -1
  51. package/dist/esm/cpsl-modal-v2.entry.js +1 -1
  52. package/dist/esm/cpsl-row.entry.js +1 -1
  53. package/dist/esm/{index-97ed6ec1.js → index-b9a060b3.js} +1 -1
  54. package/dist/esm/index-b9a060b3.js.map +1 -0
  55. package/dist/esm/loader.js +3 -3
  56. package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +2 -0
  57. package/dist/types/components/cpsl-select/cpsl-select.d.ts +6 -0
  58. package/dist/types/components.d.ts +16 -0
  59. package/package.json +1 -1
  60. package/dist/capsule/p-8de15b15.entry.js.map +0 -1
  61. package/dist/capsule/p-97c33636.js.map +0 -1
  62. package/dist/capsule/p-f72482c3.entry.js +0 -2
  63. package/dist/cjs/index-5293d431.js.map +0 -1
  64. /package/dist/capsule/{p-f72482c3.entry.js.map → p-397edab5.entry.js.map} +0 -0
  65. /package/dist/capsule/{p-73398222.entry.js.map → p-52d6ebee.entry.js.map} +0 -0
  66. /package/dist/capsule/{p-39584a7b.entry.js.map → p-5ed5e96c.entry.js.map} +0 -0
  67. /package/dist/capsule/{p-127ac658.entry.js.map → p-70f95c93.entry.js.map} +0 -0
  68. /package/dist/capsule/{p-69756614.entry.js.map → p-86e6cba5.entry.js.map} +0 -0
  69. /package/dist/capsule/{p-fd26ce6e.entry.js.map → p-f9351426.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{r as d,f as i,h as n,H as a}from"./p-97c33636.js";const p={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"};const l=d=>{if(d===undefined||d===""){return true}if(window.matchMedia){const i=p[d];return window.matchMedia(i).matches}return false};const r=":host{-webkit-padding-start:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;box-sizing:border-box;position:relative;flex-basis:0;flex-grow:1;width:100%;max-width:100%;min-height:1px}@media (min-width: 576px){:host{-webkit-padding-start:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px))}}";const c=r;const g=typeof window!=="undefined"?window:undefined;const s=g&&!!(g.CSS&&g.CSS.supports&&g.CSS.supports("--a: 0"));const t=["","xs","sm","md","lg","xl"];const e=class{constructor(i){d(this,i);this.offset=undefined;this.offsetXs=undefined;this.offsetSm=undefined;this.offsetMd=undefined;this.offsetLg=undefined;this.offsetXl=undefined;this.pull=undefined;this.pullXs=undefined;this.pullSm=undefined;this.pullMd=undefined;this.pullLg=undefined;this.pullXl=undefined;this.push=undefined;this.pushXs=undefined;this.pushSm=undefined;this.pushMd=undefined;this.pushLg=undefined;this.pushXl=undefined;this.size=undefined;this.sizeXs=undefined;this.sizeSm=undefined;this.sizeMd=undefined;this.sizeLg=undefined;this.sizeXl=undefined}onResize(){i(this)}getColumns(d){let i;for(const n of t){const a=l(n);const p=this[d+n.charAt(0).toUpperCase()+n.slice(1)];if(a&&p!==undefined){i=p}}return i}calculateSize(){const d=this.getColumns("size");if(!d||d===""){return}const i=d==="auto"?"auto":s?`calc(calc(${d} / var(--ion-grid-columns, 12)) * 100%)`:d/12*100+"%";return{flex:`0 0 ${i}`,width:`${i}`,"max-width":`${i}`}}calculatePosition(d,i){const n=this.getColumns(d);if(!n){return}const a=s?`calc(calc(${n} / var(--ion-grid-columns, 12)) * 100%)`:n>0&&n<12?n/12*100+"%":"auto";return{[i]:a}}calculateOffset(d){return this.calculatePosition("offset",d?"margin-right":"margin-left")}calculatePull(d){return this.calculatePosition("pull",d?"left":"right")}calculatePush(d){return this.calculatePosition("push",d?"right":"left")}render(){const d=document.dir==="rtl";return n(a,{key:"c8173c44fb66a24831c110618000da8edadbded8",style:Object.assign(Object.assign(Object.assign(Object.assign({},this.calculateOffset(d)),this.calculatePull(d)),this.calculatePush(d)),this.calculateSize())},n("slot",{key:"04fa1eb6e5d9feaa28141c55cc0cd72a5e0e39a7"}))}};e.style=c;export{e as cpsl_col};
2
- //# sourceMappingURL=p-127ac658.entry.js.map
1
+ import{r as d,f as i,h as n,H as a}from"./p-6e71539d.js";const p={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"};const l=d=>{if(d===undefined||d===""){return true}if(window.matchMedia){const i=p[d];return window.matchMedia(i).matches}return false};const r=":host{-webkit-padding-start:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;box-sizing:border-box;position:relative;flex-basis:0;flex-grow:1;width:100%;max-width:100%;min-height:1px}@media (min-width: 576px){:host{-webkit-padding-start:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px))}}";const c=r;const g=typeof window!=="undefined"?window:undefined;const s=g&&!!(g.CSS&&g.CSS.supports&&g.CSS.supports("--a: 0"));const t=["","xs","sm","md","lg","xl"];const e=class{constructor(i){d(this,i);this.offset=undefined;this.offsetXs=undefined;this.offsetSm=undefined;this.offsetMd=undefined;this.offsetLg=undefined;this.offsetXl=undefined;this.pull=undefined;this.pullXs=undefined;this.pullSm=undefined;this.pullMd=undefined;this.pullLg=undefined;this.pullXl=undefined;this.push=undefined;this.pushXs=undefined;this.pushSm=undefined;this.pushMd=undefined;this.pushLg=undefined;this.pushXl=undefined;this.size=undefined;this.sizeXs=undefined;this.sizeSm=undefined;this.sizeMd=undefined;this.sizeLg=undefined;this.sizeXl=undefined}onResize(){i(this)}getColumns(d){let i;for(const n of t){const a=l(n);const p=this[d+n.charAt(0).toUpperCase()+n.slice(1)];if(a&&p!==undefined){i=p}}return i}calculateSize(){const d=this.getColumns("size");if(!d||d===""){return}const i=d==="auto"?"auto":s?`calc(calc(${d} / var(--ion-grid-columns, 12)) * 100%)`:d/12*100+"%";return{flex:`0 0 ${i}`,width:`${i}`,"max-width":`${i}`}}calculatePosition(d,i){const n=this.getColumns(d);if(!n){return}const a=s?`calc(calc(${n} / var(--ion-grid-columns, 12)) * 100%)`:n>0&&n<12?n/12*100+"%":"auto";return{[i]:a}}calculateOffset(d){return this.calculatePosition("offset",d?"margin-right":"margin-left")}calculatePull(d){return this.calculatePosition("pull",d?"left":"right")}calculatePush(d){return this.calculatePosition("push",d?"right":"left")}render(){const d=document.dir==="rtl";return n(a,{key:"c8173c44fb66a24831c110618000da8edadbded8",style:Object.assign(Object.assign(Object.assign(Object.assign({},this.calculateOffset(d)),this.calculatePull(d)),this.calculatePush(d)),this.calculateSize())},n("slot",{key:"04fa1eb6e5d9feaa28141c55cc0cd72a5e0e39a7"}))}};e.style=c;export{e as cpsl_col};
2
+ //# sourceMappingURL=p-70f95c93.entry.js.map