@surdeddd/bottom-sheet 0.20.1 → 0.20.2

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.
package/dist/vue.js CHANGED
@@ -838,23 +838,25 @@ var ScrimController = class {
838
838
  if (!progressChanged && this.backdropOpacitySentinel.value !== -1 && this.screenOpacitySentinel.value !== -1) {
839
839
  return;
840
840
  }
841
- if (this.backdrop && this.isTopSheet()) {
841
+ if (this.backdrop) {
842
842
  const [s, e] = this.backdropRange;
843
843
  const range = Math.max(e - s, RANGE_DIVISION_EPSILON);
844
844
  const backdropOpacity = Math.min(
845
845
  Math.max((progress - s) / range, 0),
846
846
  1
847
847
  );
848
- if (this.backdropOpacitySentinel.shouldWrite(
849
- backdropOpacity,
850
- OPACITY_WRITE_EPSILON
851
- )) {
852
- this.backdrop.style.opacity = String(backdropOpacity);
853
- }
854
- const nextPointer = backdropOpacity > POINTER_EVENTS_OPACITY_THRESHOLD ? "auto" : "none";
855
- if (nextPointer !== this.lastBackdropPointer) {
856
- this.backdrop.style.pointerEvents = nextPointer;
857
- this.lastBackdropPointer = nextPointer;
848
+ if (this.isTopSheet() || backdropOpacity === 0) {
849
+ if (this.backdropOpacitySentinel.shouldWrite(
850
+ backdropOpacity,
851
+ OPACITY_WRITE_EPSILON
852
+ )) {
853
+ this.backdrop.style.opacity = String(backdropOpacity);
854
+ }
855
+ const nextPointer = backdropOpacity > POINTER_EVENTS_OPACITY_THRESHOLD ? "auto" : "none";
856
+ if (nextPointer !== this.lastBackdropPointer) {
857
+ this.backdrop.style.pointerEvents = nextPointer;
858
+ this.lastBackdropPointer = nextPointer;
859
+ }
858
860
  }
859
861
  }
860
862
  if (this.screenComponent && this.scrimMode !== "off") {
@@ -4994,7 +4996,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
4994
4996
  /* KEYED_FRAGMENT */
4995
4997
  ))], 8, ["to", "disabled"]);
4996
4998
  }
4997
- var BottomSheet_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/Users/maksimkravcov/Projects/Personal/BottomSheet/src/vue/BottomSheet.vue"]]);
4999
+ var BottomSheet_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/BottomSheet/BottomSheet/src/vue/BottomSheet.vue"]]);
4998
5000
 
4999
5001
  export { BottomSheet_default as BottomSheet, useBottomSheet };
5000
5002
  //# sourceMappingURL=vue.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@surdeddd/bottom-sheet",
3
- "version": "0.20.1",
3
+ "version": "0.20.2",
4
4
  "description": "Universal, headless bottom sheet — framework-agnostic core with React, Vue 3, Svelte, Solid, Qwik, Preact, Lit and Custom Element adapters. Pointer Events, snap points, momentum, a11y, SSR-safe.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -200,14 +200,38 @@
200
200
  }
201
201
  },
202
202
  "./package.json": "./package.json",
203
- "./styles": "./dist/styles.css",
204
- "./styles.css": "./dist/styles.css",
205
- "./themes/ios": "./dist/themes/ios.css",
206
- "./themes/ios.css": "./dist/themes/ios.css",
207
- "./themes/material": "./dist/themes/material.css",
208
- "./themes/material.css": "./dist/themes/material.css",
209
- "./themes/vercel": "./dist/themes/vercel.css",
210
- "./themes/vercel.css": "./dist/themes/vercel.css"
203
+ "./styles": {
204
+ "types": "./dist/styles.d.ts",
205
+ "default": "./dist/styles.css"
206
+ },
207
+ "./styles.css": {
208
+ "types": "./dist/styles.d.ts",
209
+ "default": "./dist/styles.css"
210
+ },
211
+ "./themes/ios": {
212
+ "types": "./dist/themes/ios.d.ts",
213
+ "default": "./dist/themes/ios.css"
214
+ },
215
+ "./themes/ios.css": {
216
+ "types": "./dist/themes/ios.d.ts",
217
+ "default": "./dist/themes/ios.css"
218
+ },
219
+ "./themes/material": {
220
+ "types": "./dist/themes/material.d.ts",
221
+ "default": "./dist/themes/material.css"
222
+ },
223
+ "./themes/material.css": {
224
+ "types": "./dist/themes/material.d.ts",
225
+ "default": "./dist/themes/material.css"
226
+ },
227
+ "./themes/vercel": {
228
+ "types": "./dist/themes/vercel.d.ts",
229
+ "default": "./dist/themes/vercel.css"
230
+ },
231
+ "./themes/vercel.css": {
232
+ "types": "./dist/themes/vercel.d.ts",
233
+ "default": "./dist/themes/vercel.css"
234
+ }
211
235
  },
212
236
  "workspaces": [
213
237
  "examples/*"
@@ -385,7 +409,7 @@
385
409
  "@builder.io/qwik": "^1.20.0",
386
410
  "@lhci/cli": "^0.15.1",
387
411
  "@playwright/test": "^1.62.1",
388
- "@size-limit/preset-small-lib": "^12.1.0",
412
+ "@size-limit/preset-small-lib": "^13.0.3",
389
413
  "@sveltejs/vite-plugin-svelte": "^6.2.4",
390
414
  "@types/node": "^20.19.43",
391
415
  "@types/react": "^18.3.31",
@@ -400,13 +424,13 @@
400
424
  "happy-dom": "^20.11.1",
401
425
  "husky": "^9.1.7",
402
426
  "lit": "^3.3.3",
403
- "motion": "^12.43.0",
427
+ "motion": "^13.1.0",
404
428
  "patch-package": "^8.0.1",
405
429
  "publint": "^0.3.22",
406
430
  "react": "^18.3.1",
407
431
  "react-dom": "^18.3.1",
408
432
  "rolldown": "^1.2.1",
409
- "size-limit": "^12.1.0",
433
+ "size-limit": "^13.0.3",
410
434
  "solid-js": "^1.9.14",
411
435
  "svelte": "^5.56.8",
412
436
  "three": "^0.185.1",