@capgo/capacitor-sheets 8.0.6 → 8.0.7

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 (34) hide show
  1. package/dist/angular/index.js +26 -17
  2. package/dist/angular/index.js.map +1 -1
  3. package/dist/angular/index.mjs +26 -17
  4. package/dist/angular/index.mjs.map +1 -1
  5. package/dist/{chunk-LAUTMWR7.mjs → chunk-HC63VDD5.mjs} +12 -18
  6. package/dist/{chunk-LAUTMWR7.mjs.map → chunk-HC63VDD5.mjs.map} +1 -1
  7. package/dist/{chunk-EYNTXD52.mjs → chunk-KKL5P5OQ.mjs} +17 -2
  8. package/dist/{chunk-EYNTXD52.mjs.map → chunk-KKL5P5OQ.mjs.map} +1 -1
  9. package/dist/{components-BH36ITEV.mjs → components-B6E2A52J.mjs} +3 -3
  10. package/dist/index.d.mts +4 -1
  11. package/dist/index.d.ts +4 -1
  12. package/dist/index.js +26 -17
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.mjs +4 -4
  15. package/dist/react/index.js +26 -17
  16. package/dist/react/index.js.map +1 -1
  17. package/dist/react/index.mjs +26 -17
  18. package/dist/react/index.mjs.map +1 -1
  19. package/dist/solid/index.js +26 -17
  20. package/dist/solid/index.js.map +1 -1
  21. package/dist/solid/index.mjs +26 -17
  22. package/dist/solid/index.mjs.map +1 -1
  23. package/dist/{styles-ZKNWSPZR.mjs → styles-7RPEV7K2.mjs} +2 -2
  24. package/dist/svelte/index.js +26 -17
  25. package/dist/svelte/index.js.map +1 -1
  26. package/dist/svelte/index.mjs +26 -17
  27. package/dist/svelte/index.mjs.map +1 -1
  28. package/dist/vue/index.js +26 -17
  29. package/dist/vue/index.js.map +1 -1
  30. package/dist/vue/index.mjs +26 -17
  31. package/dist/vue/index.mjs.map +1 -1
  32. package/package.json +1 -1
  33. /package/dist/{components-BH36ITEV.mjs.map → components-B6E2A52J.mjs.map} +0 -0
  34. /package/dist/{styles-ZKNWSPZR.mjs.map → styles-7RPEV7K2.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -24,17 +24,17 @@ import {
24
24
  applySheetOptions,
25
25
  getSheetFromElement,
26
26
  updateThemeColor
27
- } from "./chunk-EYNTXD52.mjs";
27
+ } from "./chunk-KKL5P5OQ.mjs";
28
28
  import {
29
29
  CSS,
30
30
  injectCapSheetStyles
31
- } from "./chunk-LAUTMWR7.mjs";
31
+ } from "./chunk-HC63VDD5.mjs";
32
32
 
33
33
  // src/index.ts
34
34
  function initCapSheets() {
35
- import("./components-BH36ITEV.mjs");
35
+ import("./components-B6E2A52J.mjs");
36
36
  if (typeof document !== "undefined") {
37
- import("./styles-ZKNWSPZR.mjs").then(({ injectCapSheetStyles: injectCapSheetStyles2 }) => injectCapSheetStyles2(document));
37
+ import("./styles-7RPEV7K2.mjs").then(({ injectCapSheetStyles: injectCapSheetStyles2 }) => injectCapSheetStyles2(document));
38
38
  }
39
39
  }
40
40
  export {
@@ -233,7 +233,7 @@ cap-sheet-content {
233
233
  color: CanvasText;
234
234
  background: var(--cap-sheet-surface);
235
235
  border-radius: var(--cap-sheet-radius) var(--cap-sheet-radius) 0 0;
236
- box-shadow: var(--cap-sheet-shadow);
236
+ box-shadow: var(--cap-sheet-shadow), var(--cap-sheet-edge-bleed-shadow, 0 0 0 0 transparent);
237
237
  overflow: auto;
238
238
  overscroll-behavior: contain;
239
239
  pointer-events: auto;
@@ -267,30 +267,24 @@ cap-sheet-view[content-placement="center"] cap-sheet-content {
267
267
  }
268
268
 
269
269
  cap-sheet-bleeding-background {
270
- position: absolute;
271
- inset: 0;
272
- z-index: -1;
273
- display: block;
274
- background: var(--cap-sheet-surface);
275
- border-radius: inherit;
276
- pointer-events: none;
270
+ display: none;
277
271
  }
278
272
 
279
- cap-sheet-view[content-placement="bottom"] cap-sheet-bleeding-background,
280
- cap-sheet-view:not([content-placement]) cap-sheet-bleeding-background {
281
- inset-block-end: -8em;
273
+ cap-sheet-view[content-placement="bottom"] cap-sheet-content[data-cap-sheet-bleeds],
274
+ cap-sheet-view:not([content-placement]) cap-sheet-content[data-cap-sheet-bleeds] {
275
+ --cap-sheet-edge-bleed-shadow: 0 8em 0 0 var(--cap-sheet-surface);
282
276
  }
283
277
 
284
- cap-sheet-view[content-placement="top"] cap-sheet-bleeding-background {
285
- inset-block-start: -8em;
278
+ cap-sheet-view[content-placement="top"] cap-sheet-content[data-cap-sheet-bleeds] {
279
+ --cap-sheet-edge-bleed-shadow: 0 -8em 0 0 var(--cap-sheet-surface);
286
280
  }
287
281
 
288
- cap-sheet-view[content-placement="left"] cap-sheet-bleeding-background {
289
- inset-inline-start: -8em;
282
+ cap-sheet-view[content-placement="left"] cap-sheet-content[data-cap-sheet-bleeds] {
283
+ --cap-sheet-edge-bleed-shadow: -8em 0 0 0 var(--cap-sheet-surface);
290
284
  }
291
285
 
292
- cap-sheet-view[content-placement="right"] cap-sheet-bleeding-background {
293
- inset-inline-end: -8em;
286
+ cap-sheet-view[content-placement="right"] cap-sheet-content[data-cap-sheet-bleeds] {
287
+ --cap-sheet-edge-bleed-shadow: 8em 0 0 0 var(--cap-sheet-surface);
294
288
  }
295
289
 
296
290
  cap-sheet-handle {
@@ -1821,8 +1815,23 @@ var CapSheetContent = class extends SheetPartElement {
1821
1815
  }
1822
1816
  };
1823
1817
  var CapSheetBleedingBackground = class extends HTMLElement {
1818
+ bleedingParent = null;
1824
1819
  connectedCallback() {
1825
1820
  injectCapSheetStyles(this.ownerDocument);
1821
+ this.setAttribute("aria-hidden", "true");
1822
+ this.bleedingParent = this.parentElement instanceof HTMLElement ? this.parentElement : null;
1823
+ this.updateParentBleedAttribute(this.bleedingParent);
1824
+ }
1825
+ disconnectedCallback() {
1826
+ this.updateParentBleedAttribute(this.bleedingParent);
1827
+ this.bleedingParent = null;
1828
+ }
1829
+ updateParentBleedAttribute(parent) {
1830
+ if (!parent) return;
1831
+ parent.toggleAttribute(
1832
+ "data-cap-sheet-bleeds",
1833
+ Boolean(parent.querySelector(":scope > cap-sheet-bleeding-background"))
1834
+ );
1826
1835
  }
1827
1836
  };
1828
1837
  var CapSheetTitle = class extends SheetPartElement {