@paperless/core 1.54.4 → 1.55.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/build/{p-bf1ffb6a.entry.js → p-0695e7ef.entry.js} +2 -2
  3. package/dist/build/p-0695e7ef.entry.js.map +1 -0
  4. package/dist/build/{p-be4c976c.entry.js → p-2b4bdcd9.entry.js} +2 -2
  5. package/dist/build/p-2b4bdcd9.entry.js.map +1 -0
  6. package/dist/build/p-3755da14.entry.js +2 -0
  7. package/dist/build/p-3755da14.entry.js.map +1 -0
  8. package/dist/build/{p-4e9e4ce2.entry.js → p-639665b1.entry.js} +2 -2
  9. package/dist/{paperless/p-4e9e4ce2.entry.js.map → build/p-639665b1.entry.js.map} +1 -1
  10. package/dist/{paperless/p-52893b09.entry.js → build/p-95dc4bd3.entry.js} +2 -2
  11. package/dist/build/p-95dc4bd3.entry.js.map +1 -0
  12. package/dist/build/p-c3999d3e.entry.js +2 -0
  13. package/dist/build/p-c3999d3e.entry.js.map +1 -0
  14. package/dist/build/paperless.esm.js +1 -1
  15. package/dist/build/paperless.esm.js.map +1 -1
  16. package/dist/cjs/index-1fde8b14.js +4 -0
  17. package/dist/cjs/loader.cjs.js +1 -1
  18. package/dist/cjs/p-backdrop.cjs.entry.js +1 -1
  19. package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -1
  20. package/dist/cjs/p-button-group.cjs.entry.js +45 -0
  21. package/dist/cjs/p-button-group.cjs.entry.js.map +1 -0
  22. package/dist/cjs/p-button_3.cjs.entry.js +4 -2
  23. package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
  24. package/dist/cjs/p-datepicker.cjs.entry.js +8 -7
  25. package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
  26. package/dist/cjs/p-drawer-body_3.cjs.entry.js +1 -1
  27. package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -1
  28. package/dist/cjs/p-modal-body_4.cjs.entry.js +1 -1
  29. package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -1
  30. package/dist/cjs/paperless.cjs.js +1 -1
  31. package/dist/collection/collection-manifest.json +1 -0
  32. package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -1
  33. package/dist/collection/components/atoms/button/button.component.css +1 -1
  34. package/dist/collection/components/atoms/button/button.component.js +21 -1
  35. package/dist/collection/components/atoms/button/button.component.js.map +1 -1
  36. package/dist/collection/components/atoms/drawer-header/drawer-header.component.css +1 -1
  37. package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -1
  38. package/dist/collection/components/molecules/button-group/button-group.component.js +69 -0
  39. package/dist/collection/components/molecules/button-group/button-group.component.js.map +1 -0
  40. package/dist/collection/components/molecules/button-group/test/button-group.component.e2e.js +26 -0
  41. package/dist/collection/components/molecules/button-group/test/button-group.component.e2e.js.map +1 -0
  42. package/dist/collection/components/molecules/button-group/test/button-group.component.spec.js +35 -0
  43. package/dist/collection/components/molecules/button-group/test/button-group.component.spec.js.map +1 -0
  44. package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -1
  45. package/dist/collection/components/molecules/datepicker/datepicker.component.js +55 -6
  46. package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
  47. package/dist/components/backdrop.component.js +1 -1
  48. package/dist/components/backdrop.component.js.map +1 -1
  49. package/dist/components/button.component.js +6 -3
  50. package/dist/components/button.component.js.map +1 -1
  51. package/dist/components/drawer-header.component.js +1 -1
  52. package/dist/components/drawer-header.component.js.map +1 -1
  53. package/dist/components/modal-container.component.js +1 -1
  54. package/dist/components/modal-container.component.js.map +1 -1
  55. package/dist/components/p-button-group.d.ts +11 -0
  56. package/dist/components/p-button-group.js +61 -0
  57. package/dist/components/p-button-group.js.map +1 -0
  58. package/dist/components/p-datepicker.js +10 -7
  59. package/dist/components/p-datepicker.js.map +1 -1
  60. package/dist/esm/index-7b917f6b.js +4 -0
  61. package/dist/esm/loader.js +1 -1
  62. package/dist/esm/p-backdrop.entry.js +1 -1
  63. package/dist/esm/p-backdrop.entry.js.map +1 -1
  64. package/dist/esm/p-button-group.entry.js +41 -0
  65. package/dist/esm/p-button-group.entry.js.map +1 -0
  66. package/dist/esm/p-button_3.entry.js +4 -2
  67. package/dist/esm/p-button_3.entry.js.map +1 -1
  68. package/dist/esm/p-datepicker.entry.js +8 -7
  69. package/dist/esm/p-datepicker.entry.js.map +1 -1
  70. package/dist/esm/p-drawer-body_3.entry.js +1 -1
  71. package/dist/esm/p-drawer-body_3.entry.js.map +1 -1
  72. package/dist/esm/p-modal-body_4.entry.js +1 -1
  73. package/dist/esm/p-modal-body_4.entry.js.map +1 -1
  74. package/dist/esm/paperless.js +1 -1
  75. package/dist/index.html +1 -1
  76. package/dist/paperless/{p-bf1ffb6a.entry.js → p-0695e7ef.entry.js} +2 -2
  77. package/dist/paperless/p-0695e7ef.entry.js.map +1 -0
  78. package/dist/paperless/{p-be4c976c.entry.js → p-2b4bdcd9.entry.js} +2 -2
  79. package/dist/paperless/p-2b4bdcd9.entry.js.map +1 -0
  80. package/dist/paperless/p-3755da14.entry.js +2 -0
  81. package/dist/paperless/p-3755da14.entry.js.map +1 -0
  82. package/dist/paperless/{p-4e9e4ce2.entry.js → p-639665b1.entry.js} +2 -2
  83. package/dist/{build/p-4e9e4ce2.entry.js.map → paperless/p-639665b1.entry.js.map} +1 -1
  84. package/dist/{build/p-52893b09.entry.js → paperless/p-95dc4bd3.entry.js} +2 -2
  85. package/dist/paperless/p-95dc4bd3.entry.js.map +1 -0
  86. package/dist/paperless/p-c3999d3e.entry.js +2 -0
  87. package/dist/paperless/p-c3999d3e.entry.js.map +1 -0
  88. package/dist/paperless/paperless.esm.js +1 -1
  89. package/dist/paperless/paperless.esm.js.map +1 -1
  90. package/dist/sw.js +1 -1
  91. package/dist/sw.js.map +1 -1
  92. package/dist/types/components/atoms/button/button.component.d.ts +4 -0
  93. package/dist/types/components/molecules/button-group/button-group.component.d.ts +14 -0
  94. package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +9 -0
  95. package/dist/types/components.d.ts +45 -0
  96. package/hydrate/index.js +67 -14
  97. package/package.json +1 -1
  98. package/dist/build/p-52893b09.entry.js.map +0 -1
  99. package/dist/build/p-b848c222.entry.js +0 -2
  100. package/dist/build/p-b848c222.entry.js.map +0 -1
  101. package/dist/build/p-be4c976c.entry.js.map +0 -1
  102. package/dist/build/p-bf1ffb6a.entry.js.map +0 -1
  103. package/dist/paperless/p-52893b09.entry.js.map +0 -1
  104. package/dist/paperless/p-b848c222.entry.js +0 -2
  105. package/dist/paperless/p-b848c222.entry.js.map +0 -1
  106. package/dist/paperless/p-be4c976c.entry.js.map +0 -1
  107. package/dist/paperless/p-bf1ffb6a.entry.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,29 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.55.1](https://github.com/ionic-team/stencil-component-starter/compare/v1.55.0...v1.55.1) (2024-12-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **modal:** Allow overflow on mobile ([d0de0cf](https://github.com/ionic-team/stencil-component-starter/commit/d0de0cf6a540b58ca3d9426c2a2d337319d02ba2))
12
+ * **molecules/datepicker:** Pass through dropdown options ([953e7e0](https://github.com/ionic-team/stencil-component-starter/commit/953e7e09227e586155f9f7f2f429c2fc3757952b))
13
+
14
+
15
+
16
+
17
+
18
+ # [1.55.0](https://github.com/ionic-team/stencil-component-starter/compare/v1.54.4...v1.55.0) (2024-11-18)
19
+
20
+
21
+ ### Features
22
+
23
+ * **molecules:** Add button-group component ([8e3d248](https://github.com/ionic-team/stencil-component-starter/commit/8e3d248c0440069c41feee7de422402e8e8b7829))
24
+
25
+
26
+
27
+
28
+
6
29
  ## [1.54.4](https://github.com/ionic-team/stencil-component-starter/compare/v1.54.3...v1.54.4) (2024-11-15)
7
30
 
8
31
  **Note:** Version bump only for package @paperless/core
@@ -1,2 +1,2 @@
1
- import{r as t,h as o,H as r,c as a}from"./p-e4d5e7a7.js";const i=".rounded-b-none{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.p-0{padding:0!important}.px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));padding:1.5rem}:host(.variant-table-flush){padding:0!important}:host(.is-rounded){border-bottom-left-radius:0;border-bottom-right-radius:0}@media (min-width:64rem){:host(.is-rounded){border-bottom-left-radius:.75rem;border-bottom-right-radius:.75rem}}:host(.no-padding){padding:0}.static{position:static!important}.rounded{border-radius:.25rem!important}";const e=class{constructor(o){t(this,o);this.variant="default";this.rounded=false;this.padding=true}render(){return o(r,{class:`p-modal-body variant-${this.variant} ${this.rounded&&"is-rounded"} ${!this.padding&&"no-padding"}`},o("slot",null))}};e.style=i;const m=".flex{display:flex!important}.w-full{width:100%!important}.animate-slide-in-bottom{animation:slideInBottom .5s ease forwards!important}.animate-slide-out-bottom{animation:slideOutBottom .5s ease forwards!important}.flex-col{flex-direction:column!important}.rounded-b-none{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.rounded-t-xxlarge{border-top-left-radius:.75rem!important;border-top-right-radius:.75rem!important}.shadow-4{--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13)!important;--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}*{box-sizing:border-box}p-modal-container{--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13)!important;--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color)!important;animation:slideInBottom .5s ease forwards!important;border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:.75rem;border-top-right-radius:.75rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;display:flex;flex-direction:column;width:100%;z-index:600}@media (min-width:40rem){p-modal-container{width:auto}}@media (min-width:64rem){p-modal-container{animation:slideInBottomSmall .5s ease forwards!important;border-bottom-left-radius:.75rem;border-bottom-right-radius:.75rem;margin:auto}}@keyframes slideInBottom{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideOutBottom{0%{transform:translateY(0)}to{transform:translateY(100%)}}p-modal-container.closing{animation:slideOutBottom .5s ease forwards!important}@media (min-width:64rem){p-modal-container.closing{animation:slideOutBottomSmall .5s ease forwards!important}}@media (min-width:40rem){.tablet\\:w-auto{width:auto!important}}@media (min-width:64rem){@keyframes slideInBottomSmall{0%{transform:translateY(20%)}to{transform:translateY(0)}}.desktop-xs\\:animate-slide-in-bottom-small{animation:slideInBottomSmall .5s ease forwards!important}@keyframes slideOutBottomSmall{0%{transform:translateY(0)}to{transform:translateY(20%)}}.desktop-xs\\:animate-slide-out-bottom-small{animation:slideOutBottomSmall .5s ease forwards!important}}.static{position:static!important}@media (min-width:40rem){.tablet\\:w-80{width:20rem!important}.tablet\\:w-\\[33\\.5rem\\]{width:33.5rem!important}.tablet\\:w-\\[38rem\\]{width:38rem!important}.tablet\\:w-\\[47\\.5rem\\]{width:47.5rem!important}.tablet\\:w-\\[57\\.5rem\\]{width:57.5rem!important}}";const n={xs:"tablet:w-80",sm:"tablet:w-[33.5rem]",md:"tablet:w-[38rem]",lg:"tablet:w-[47.5rem]",xl:"tablet:w-[57.5rem]"};const s=class{constructor(o){t(this,o);this.size="md";this.closing=false}render(){const t=n[this.size];return o(r,{class:`p-modal-container ${this.closing&&"closing"} ${t}`},o("slot",null))}};s.style=m;const d=".flex{display:flex!important}.rounded-b-none{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.pb-6{padding-bottom:1.5rem!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-bottom-left-radius:0;border-bottom-right-radius:0;display:flex;flex-direction:column;padding-bottom:1.5rem;padding-left:1.5rem;padding-right:1.5rem}@media (min-width:64rem){:host{border-bottom-left-radius:.75rem;border-bottom-right-radius:.75rem}}.static{position:static!important}.mb-6{margin-bottom:1.5rem!important}.mt-0{margin-top:0!important}.hidden{display:none!important}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}}";const l=class{constructor(o){t(this,o)}render(){return o(r,{class:"p-modal-footer"},o("p-divider",{class:"mb-6 mt-0 hidden desktop-xs:flex"}),o("slot",null))}};l.style=d;const p=".flex{display:flex!important}.justify-between{justify-content:space-between!important}.bg-mystic{--tw-bg-opacity:1!important;background-color:rgb(247 250 252/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;--tw-text-opacity:1;align-items:center;background-color:rgb(247 250 252/var(--tw-bg-opacity));border-top-left-radius:.75rem;border-top-right-radius:.75rem;color:rgb(39 40 56/var(--tw-text-opacity));display:flex;font-size:1.25rem;font-weight:600;justify-content:space-between;line-height:1.75rem;padding:1rem}@media (min-width:64rem){:host{font-size:1.875rem;font-weight:700;line-height:2.25rem;padding:1.5rem}}@media (min-width:64rem){.desktop-xs\\:text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}}.static{position:static!important}";const b=class{constructor(o){t(this,o);this.close=a(this,"close",3);this.showClose=true}render(){return o(r,{class:"p-modal-header"},o("span",null,o("slot",null)),this.showClose&&o("p-button",{variant:"secondary",icon:"negative",iconOnly:true,onClick:t=>this.close.emit(t),size:"small"}))}};b.style=p;export{e as p_modal_body,s as p_modal_container,l as p_modal_footer,b as p_modal_header};
2
- //# sourceMappingURL=p-bf1ffb6a.entry.js.map
1
+ import{r as t,h as o,H as r,c as a}from"./p-e4d5e7a7.js";const e=".rounded-b-none{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.p-0{padding:0!important}.px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));padding:1.5rem}:host(.variant-table-flush){padding:0!important}:host(.is-rounded){border-bottom-left-radius:0;border-bottom-right-radius:0}@media (min-width:64rem){:host(.is-rounded){border-bottom-left-radius:.75rem;border-bottom-right-radius:.75rem}}:host(.no-padding){padding:0}.static{position:static!important}.rounded{border-radius:.25rem!important}";const i=class{constructor(o){t(this,o);this.variant="default";this.rounded=false;this.padding=true}render(){return o(r,{class:`p-modal-body variant-${this.variant} ${this.rounded&&"is-rounded"} ${!this.padding&&"no-padding"}`},o("slot",null))}};i.style=e;const m=".z-modal{z-index:600!important}.flex{display:flex!important}.max-h-\\[calc\\(100dvh-4rem\\)\\]{max-height:calc(100dvh - 4rem)!important}.w-full{width:100%!important}.animate-slide-in-bottom{animation:slideInBottom .5s ease forwards!important}.animate-slide-out-bottom{animation:slideOutBottom .5s ease forwards!important}.flex-col{flex-direction:column!important}.rounded-b-none{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.rounded-t-xxlarge{border-top-left-radius:.75rem!important;border-top-right-radius:.75rem!important}.shadow-4{--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13)!important;--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}*{box-sizing:border-box}p-modal-container{--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13)!important;--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color)!important;animation:slideInBottom .5s ease forwards!important;border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:.75rem;border-top-right-radius:.75rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;display:flex;flex-direction:column;max-height:calc(100dvh - 4rem);width:100%;z-index:600}@media (min-width:40rem){p-modal-container{width:auto}}@media (min-width:64rem){p-modal-container{animation:slideInBottomSmall .5s ease forwards!important;border-bottom-left-radius:.75rem;border-bottom-right-radius:.75rem;margin:auto;max-height:none}}@keyframes slideInBottom{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideOutBottom{0%{transform:translateY(0)}to{transform:translateY(100%)}}p-modal-container.closing{animation:slideOutBottom .5s ease forwards!important}@media (min-width:64rem){p-modal-container.closing{animation:slideOutBottomSmall .5s ease forwards!important}@keyframes slideInBottomSmall{0%{transform:translateY(20%)}to{transform:translateY(0)}}.desktop-xs\\:animate-slide-in-bottom-small{animation:slideInBottomSmall .5s ease forwards!important}@keyframes slideOutBottomSmall{0%{transform:translateY(0)}to{transform:translateY(20%)}}.desktop-xs\\:animate-slide-out-bottom-small{animation:slideOutBottomSmall .5s ease forwards!important}}.static{position:static!important}@media (min-width:40rem){.tablet\\:w-80{width:20rem!important}.tablet\\:w-\\[33\\.5rem\\]{width:33.5rem!important}.tablet\\:w-\\[38rem\\]{width:38rem!important}.tablet\\:w-\\[47\\.5rem\\]{width:47.5rem!important}.tablet\\:w-\\[57\\.5rem\\]{width:57.5rem!important}}";const n={xs:"tablet:w-80",sm:"tablet:w-[33.5rem]",md:"tablet:w-[38rem]",lg:"tablet:w-[47.5rem]",xl:"tablet:w-[57.5rem]"};const s=class{constructor(o){t(this,o);this.size="md";this.closing=false}render(){const t=n[this.size];return o(r,{class:`p-modal-container ${this.closing&&"closing"} ${t}`},o("slot",null))}};s.style=m;const d=".flex{display:flex!important}.rounded-b-none{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.pb-6{padding-bottom:1.5rem!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-bottom-left-radius:0;border-bottom-right-radius:0;display:flex;flex-direction:column;padding-bottom:1.5rem;padding-left:1.5rem;padding-right:1.5rem}@media (min-width:64rem){:host{border-bottom-left-radius:.75rem;border-bottom-right-radius:.75rem}}.static{position:static!important}.mb-6{margin-bottom:1.5rem!important}.mt-0{margin-top:0!important}.hidden{display:none!important}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}}";const l=class{constructor(o){t(this,o)}render(){return o(r,{class:"p-modal-footer"},o("p-divider",{class:"mb-6 mt-0 hidden desktop-xs:flex"}),o("slot",null))}};l.style=d;const p=".flex{display:flex!important}.justify-between{justify-content:space-between!important}.bg-mystic{--tw-bg-opacity:1!important;background-color:rgb(247 250 252/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;--tw-text-opacity:1;align-items:center;background-color:rgb(247 250 252/var(--tw-bg-opacity));border-top-left-radius:.75rem;border-top-right-radius:.75rem;color:rgb(39 40 56/var(--tw-text-opacity));display:flex;font-size:1.25rem;font-weight:600;justify-content:space-between;line-height:1.75rem;padding:1rem}@media (min-width:64rem){:host{font-size:1.875rem;font-weight:700;line-height:2.25rem;padding:1.5rem}}@media (min-width:64rem){.desktop-xs\\:text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}}.static{position:static!important}";const b=class{constructor(o){t(this,o);this.close=a(this,"close",3);this.showClose=true}render(){return o(r,{class:"p-modal-header"},o("span",null,o("slot",null)),this.showClose&&o("p-button",{variant:"secondary",icon:"negative",iconOnly:true,onClick:t=>this.close.emit(t),size:"small"}))}};b.style=p;export{i as p_modal_body,s as p_modal_container,l as p_modal_footer,b as p_modal_header};
2
+ //# sourceMappingURL=p-0695e7ef.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["modalBodyComponentCss","ModalBody","render","h","Host","class","this","variant","rounded","padding","modalContainerComponentCss","modalSizes","xs","sm","md","lg","xl","ModalContainer","sizeClass","size","closing","modalFooterComponentCss","ModalFooter","modalHeaderComponentCss","ModalHeader","showClose","icon","iconOnly","onClick","ev","close","emit"],"sources":["src/components/atoms/modal-body/modal-body.component.scss?tag=p-modal-body&encapsulation=shadow","src/components/atoms/modal-body/modal-body.component.tsx","src/components/atoms/modal-container/modal-container.component.scss?tag=p-modal-container","src/components/atoms/modal-container/modal-container.component.tsx","src/components/atoms/modal-footer/modal-footer.component.scss?tag=p-modal-footer&encapsulation=shadow","src/components/atoms/modal-footer/modal-footer.component.tsx","src/components/atoms/modal-header/modal-header.component.scss?tag=p-modal-header&encapsulation=shadow","src/components/atoms/modal-header/modal-header.component.tsx"],"sourcesContent":[":host {\n\t@apply bg-white;\n\t@apply px-6 py-6;\n}\n\n:host(.variant-table-flush) {\n\t@apply p-0 #{!important};\n}\n\n:host(.is-rounded) {\n\t@apply rounded-b-none desktop-xs:rounded-b-xxlarge;\n}\n\n:host(.no-padding) {\n\t@apply p-0;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-modal-body',\n\tstyleUrl: 'modal-body.component.scss',\n\tshadow: true,\n})\nexport class ModalBody {\n\t/**\n\t * The variant of the modal body\n\t */\n\t@Prop() variant: 'default' | 'table-flush' = 'default';\n\n\t/**\n\t * Wether the modal body should be rounded at the bottom\n\t */\n\t@Prop() rounded: boolean = false;\n\n\t/**\n\t * Wether the body should have padding\n\t */\n\t@Prop() padding: boolean = true;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-modal-body variant-${this.variant} ${\n\t\t\t\t\tthis.rounded && 'is-rounded'\n\t\t\t\t} ${!this.padding && 'no-padding'}`}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n","p-modal-container {\n\t@apply z-modal flex w-full flex-col tablet:w-auto;\n\t@apply rounded-b-none rounded-t-xxlarge desktop-xs:rounded-b-xxlarge;\n\n\t@apply desktop-xs:m-auto;\n\t@apply max-h-[calc(100dvh-4rem)] desktop-xs:max-h-none;\n\n\t@apply animate-slide-in-bottom desktop-xs:animate-slide-in-bottom-small #{!important};\n\n\t@apply shadow-4 #{!important};\n\n\t&.closing {\n\t\t@apply animate-slide-out-bottom desktop-xs:animate-slide-out-bottom-small #{!important};\n\t}\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n// $modal-xs: 20rem;\n// $modal-sm: 33.5rem;\n// $modal-md: 38rem;\n// $modal-lg: 47.5rem;\n// $modal-xl: 57.5rem;\n\nconst modalSizes = {\n\txs: 'tablet:w-80',\n\tsm: 'tablet:w-[33.5rem]',\n\tmd: 'tablet:w-[38rem]',\n\tlg: 'tablet:w-[47.5rem]',\n\txl: 'tablet:w-[57.5rem]',\n};\n@Component({\n\ttag: 'p-modal-container',\n\tstyleUrl: 'modal-container.component.scss',\n})\nexport class ModalContainer {\n\t/**\n\t * The size of the modal container\n\t */\n\t@Prop() size: 'sm' | 'md' | 'lg' | 'xl' = 'md';\n\n\t/**\n\t * Wether the container is closing\n\t */\n\t@Prop() closing: boolean = false;\n\n\trender() {\n\t\tconst sizeClass = modalSizes[this.size];\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-modal-container ${\n\t\t\t\t\tthis.closing && 'closing'\n\t\t\t\t} ${sizeClass}`}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n",":host {\n\t@apply bg-white;\n\t@apply flex flex-col;\n\t@apply pb-6 px-6;\n\t@apply rounded-b-none desktop-xs:rounded-b-xxlarge;\n}\n","import { Component, h, Host } from '@stencil/core';\n\n@Component({\n\ttag: 'p-modal-footer',\n\tstyleUrl: 'modal-footer.component.scss',\n\tshadow: true,\n})\nexport class ModalFooter {\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-modal-footer\">\n\t\t\t\t<p-divider class=\"mb-6 mt-0 hidden desktop-xs:flex\" />\n\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n",":host {\n\t@apply bg-mystic rounded-t-xxlarge;\n\t@apply flex justify-between items-center;\n\t@apply p-4 desktop-xs:p-6;\n\n\t@apply text-storm-dark text-xl font-semibold;\n\t@apply desktop-xs:text-3xl desktop-xs:font-bold;\n}\n","import { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-modal-header',\n\tstyleUrl: 'modal-header.component.scss',\n\tshadow: true,\n})\nexport class ModalHeader {\n\t/**\n\t * Wether to show the close button on mobile\n\t */\n\t@Prop() showClose = true;\n\n\t/**\n\t * Close click event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tclose: EventEmitter<MouseEvent>;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-modal-header\">\n\t\t\t\t<span>\n\t\t\t\t\t<slot />\n\t\t\t\t</span>\n\n\t\t\t\t{this.showClose && (\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\ticon=\"negative\"\n\t\t\t\t\t\ticonOnly={true}\n\t\t\t\t\t\tonClick={(ev) => this.close.emit(ev)}\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t></p-button>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"mappings":"yDAAA,MAAMA,EAAwB,qoB,MCOjBC,EAAS,M,sCAIwB,U,aAKlB,M,aAKA,I,CAE3B,MAAAC,GACC,OACCC,EAACC,EAAI,CACJC,MAAO,wBAAwBC,KAAKC,WACnCD,KAAKE,SAAW,iBACZF,KAAKG,SAAW,gBAErBN,EAAA,a,aC9BJ,MAAMO,EAA6B,6vFCQnC,MAAMC,EAAa,CAClBC,GAAI,cACJC,GAAI,qBACJC,GAAI,mBACJC,GAAI,qBACJC,GAAI,sB,MAMQC,EAAc,M,mCAIgB,K,aAKf,K,CAE3B,MAAAf,GACC,MAAMgB,EAAYP,EAAWL,KAAKa,MAElC,OACChB,EAACC,EAAI,CACJC,MAAO,qBACNC,KAAKc,SAAW,aACbF,KAEJf,EAAA,a,aCvCJ,MAAMkB,EAA0B,+sB,MCOnBC,EAAW,M,yBACvB,MAAApB,GACC,OACCC,EAACC,EAAI,CAACC,MAAM,kBACXF,EAAA,aAAWE,MAAM,qCAEjBF,EAAA,a,aCbJ,MAAMoB,EAA0B,49B,MCOnBC,EAAW,M,qEAIH,I,CAUpB,MAAAtB,GACC,OACCC,EAACC,EAAI,CAACC,MAAM,kBACXF,EAAA,YACCA,EAAA,cAGAG,KAAKmB,WACLtB,EAAA,YACCI,QAAQ,YACRmB,KAAK,WACLC,SAAU,KACVC,QAAUC,GAAOvB,KAAKwB,MAAMC,KAAKF,GACjCV,KAAK,U"}