@surdeddd/bottom-sheet 0.13.0 → 0.20.0

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 (66) hide show
  1. package/README.md +46 -0
  2. package/dist/{BottomSheetCore-D16lsa6g.d.ts → BottomSheetCore-Cgn8b_6A.d.ts} +36 -2
  3. package/dist/{BottomSheetCore-CsIjyq7C.d.cts → BottomSheetCore-VPJZcKcg.d.cts} +36 -2
  4. package/dist/{BottomSheetEngine-BYjAVrmd.d.cts → BottomSheetEngine-B8C2CwF9.d.cts} +1 -1
  5. package/dist/{BottomSheetEngine-YuCNugZn.d.ts → BottomSheetEngine-DwYR_ygJ.d.ts} +1 -1
  6. package/dist/core.cjs +328 -33
  7. package/dist/core.d.cts +2 -2
  8. package/dist/core.d.ts +2 -2
  9. package/dist/core.js +328 -33
  10. package/dist/debug.d.cts +1 -1
  11. package/dist/debug.d.ts +1 -1
  12. package/dist/element.cjs +404 -108
  13. package/dist/element.d.cts +2 -2
  14. package/dist/element.d.ts +2 -2
  15. package/dist/element.iife.global.js +2 -2
  16. package/dist/element.js +404 -108
  17. package/dist/features.cjs +6 -50
  18. package/dist/features.d.cts +4 -4
  19. package/dist/features.d.ts +4 -4
  20. package/dist/features.js +6 -50
  21. package/dist/index-CnfbOKx0.d.cts +9 -0
  22. package/dist/index-DcMkhXAy.d.ts +9 -0
  23. package/dist/index.cjs +335 -829
  24. package/dist/index.d.cts +44 -47
  25. package/dist/index.d.ts +44 -47
  26. package/dist/index.js +336 -816
  27. package/dist/integrations/formik.d.cts +1 -1
  28. package/dist/integrations/formik.d.ts +1 -1
  29. package/dist/integrations/react-hook-form.d.cts +1 -1
  30. package/dist/integrations/react-hook-form.d.ts +1 -1
  31. package/dist/overlay.cjs +5 -5
  32. package/dist/overlay.js +5 -5
  33. package/dist/preact.d.cts +2 -2
  34. package/dist/preact.d.ts +2 -2
  35. package/dist/qwik-lib/index.qwik.cjs +323 -83
  36. package/dist/qwik-lib/index.qwik.mjs +323 -83
  37. package/dist/qwik.cjs +342 -83
  38. package/dist/qwik.d.cts +4 -2
  39. package/dist/qwik.d.ts +4 -2
  40. package/dist/qwik.js +342 -83
  41. package/dist/react.cjs +347 -85
  42. package/dist/react.d.cts +3 -4
  43. package/dist/react.d.ts +3 -4
  44. package/dist/react.js +347 -85
  45. package/dist/solid.cjs +348 -83
  46. package/dist/solid.d.cts +37 -1
  47. package/dist/solid.d.ts +37 -1
  48. package/dist/solid.js +348 -83
  49. package/dist/solid.source.jsx +356 -83
  50. package/dist/styles.css +24 -4
  51. package/dist/svelte-core.cjs +334 -83
  52. package/dist/svelte-core.js +334 -83
  53. package/dist/svelte-src/BottomSheet.svelte +14 -0
  54. package/dist/svelte.cjs +344 -83
  55. package/dist/svelte.d.cts +2 -0
  56. package/dist/svelte.d.ts +2 -0
  57. package/dist/svelte.js +344 -83
  58. package/dist/vue.cjs +350 -83
  59. package/dist/vue.js +350 -83
  60. package/dist/webgl.cjs +673 -0
  61. package/dist/webgl.d.cts +17 -0
  62. package/dist/webgl.d.ts +17 -0
  63. package/dist/webgl.js +671 -0
  64. package/package.json +64 -40
  65. package/dist/index-DdYLOIIT.d.ts +0 -15
  66. package/dist/index-dfrzw-lI.d.cts +0 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@surdeddd/bottom-sheet",
3
- "version": "0.13.0",
3
+ "version": "0.20.0",
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",
@@ -148,6 +148,16 @@
148
148
  "default": "./dist/features.cjs"
149
149
  }
150
150
  },
151
+ "./webgl": {
152
+ "import": {
153
+ "types": "./dist/webgl.d.ts",
154
+ "default": "./dist/webgl.js"
155
+ },
156
+ "require": {
157
+ "types": "./dist/webgl.d.cts",
158
+ "default": "./dist/webgl.cjs"
159
+ }
160
+ },
151
161
  "./qwik": {
152
162
  "import": {
153
163
  "types": "./dist/qwik.d.ts",
@@ -206,37 +216,37 @@
206
216
  {
207
217
  "name": "core (engine + types)",
208
218
  "path": "dist/index.js",
209
- "limit": "24 KB",
219
+ "limit": "21.74 KB",
210
220
  "gzip": true
211
221
  },
212
222
  {
213
223
  "name": "react adapter",
214
224
  "path": "dist/react.js",
215
- "limit": "28 KB",
225
+ "limit": "29.16 KB",
216
226
  "gzip": true
217
227
  },
218
228
  {
219
229
  "name": "vue adapter",
220
230
  "path": "dist/vue.js",
221
- "limit": "23.5 KB",
231
+ "limit": "24.98 KB",
222
232
  "gzip": true
223
233
  },
224
234
  {
225
235
  "name": "svelte adapter",
226
236
  "path": "dist/svelte.js",
227
- "limit": "23.5 KB",
237
+ "limit": "24.59 KB",
228
238
  "gzip": true
229
239
  },
230
240
  {
231
241
  "name": "solid adapter",
232
242
  "path": "dist/solid.js",
233
- "limit": "22 KB",
243
+ "limit": "23.23 KB",
234
244
  "gzip": true
235
245
  },
236
246
  {
237
247
  "name": "qwik adapter",
238
248
  "path": "dist/qwik.js",
239
- "limit": "22 KB",
249
+ "limit": "23.25 KB",
240
250
  "gzip": true
241
251
  },
242
252
  {
@@ -251,37 +261,43 @@
251
261
  {
252
262
  "name": "web component (self-contained)",
253
263
  "path": "dist/element.js",
254
- "limit": "27 KB",
264
+ "limit": "28.35 KB",
255
265
  "gzip": true
256
266
  },
257
267
  {
258
268
  "name": "web component (IIFE / CDN)",
259
269
  "path": "dist/element.iife.global.js",
260
- "limit": "26.5 KB",
270
+ "limit": "27.9 KB",
261
271
  "gzip": true
262
272
  },
263
273
  {
264
274
  "name": "overlay (subpath)",
265
275
  "path": "dist/overlay.js",
266
- "limit": "7 KB",
276
+ "limit": "7.5 KB",
267
277
  "gzip": true
268
278
  },
269
279
  {
270
280
  "name": "debug overlay (subpath)",
271
281
  "path": "dist/debug.js",
272
- "limit": "3 KB",
282
+ "limit": "1.2 KB",
273
283
  "gzip": true
274
284
  },
275
285
  {
276
286
  "name": "slim core (subpath, no optional features)",
277
287
  "path": "dist/core.js",
278
- "limit": "19.5 KB",
288
+ "limit": "19.85 KB",
279
289
  "gzip": true
280
290
  },
281
291
  {
282
292
  "name": "features (subpath)",
283
293
  "path": "dist/features.js",
284
- "limit": "4 KB",
294
+ "limit": "2.6 KB",
295
+ "gzip": true
296
+ },
297
+ {
298
+ "name": "webgl renderer (subpath)",
299
+ "path": "dist/webgl.js",
300
+ "limit": "5 KB",
285
301
  "gzip": true
286
302
  }
287
303
  ],
@@ -358,43 +374,51 @@
358
374
  "optional": true
359
375
  }
360
376
  },
377
+ "overrides": {
378
+ "postcss": "^8.5.23",
379
+ "seroval": "^1.5.6",
380
+ "seroval-plugins": "^1.5.6"
381
+ },
361
382
  "devDependencies": {
362
- "@arethetypeswrong/cli": "^0.18.3",
363
- "@axe-core/playwright": "^4.11.2",
364
- "@builder.io/qwik": "^1.19.2",
383
+ "@arethetypeswrong/cli": "^0.18.5",
384
+ "@axe-core/playwright": "^4.12.1",
385
+ "@builder.io/qwik": "^1.20.0",
365
386
  "@lhci/cli": "^0.15.1",
366
- "@playwright/test": "^1.59.1",
387
+ "@playwright/test": "^1.62.1",
367
388
  "@size-limit/preset-small-lib": "^12.1.0",
368
- "@sveltejs/vite-plugin-svelte": "^4.0.4",
369
- "@types/node": "^20.11.0",
370
- "@types/react": "^18.2.0",
371
- "@types/react-dom": "^18.2.0",
372
- "@vitejs/plugin-react": "^4.2.0",
373
- "@vitejs/plugin-vue": "^5.0.0",
374
- "@vitest/coverage-v8": "^1.2.0",
389
+ "@sveltejs/vite-plugin-svelte": "^6.2.4",
390
+ "@types/node": "^20.19.43",
391
+ "@types/react": "^18.3.31",
392
+ "@types/react-dom": "^18.3.7",
393
+ "@types/three": "^0.185.1",
394
+ "@vitejs/plugin-react": "^5.2.0",
395
+ "@vitejs/plugin-vue": "^6.0.8",
396
+ "@vitest/coverage-v8": "^4.1.10",
375
397
  "esbuild-plugin-solid": "^0.6.0",
376
- "esbuild-svelte": "^0.9.4",
377
- "fast-check": "^4.7.0",
378
- "happy-dom": "^13.3.0",
398
+ "esbuild-svelte": "0.9.4",
399
+ "fast-check": "^4.9.0",
400
+ "happy-dom": "^20.11.1",
379
401
  "husky": "^9.1.7",
380
- "lit": "^3.3.2",
402
+ "lit": "^3.3.3",
403
+ "motion": "^12.43.0",
381
404
  "patch-package": "^8.0.1",
382
- "publint": "^0.3.21",
383
- "react": "^18.2.0",
384
- "react-dom": "^18.2.0",
385
- "rolldown": "^1.0.0-rc.18",
405
+ "publint": "^0.3.22",
406
+ "react": "^18.3.1",
407
+ "react-dom": "^18.3.1",
408
+ "rolldown": "^1.2.1",
386
409
  "size-limit": "^12.1.0",
387
- "solid-js": "^1.9.12",
388
- "svelte": "^5.55.5",
389
- "tsup": "^8.0.1",
410
+ "solid-js": "^1.9.14",
411
+ "svelte": "^5.56.8",
412
+ "three": "^0.185.1",
413
+ "tsup": "^8.5.1",
390
414
  "typedoc": "^0.28.20",
391
415
  "typescript": "^5.9.3",
392
416
  "unplugin-vue": "^7.2.0",
393
- "vite": "^5.0.10",
394
- "vite-plugin-solid": "^2.11.12",
395
- "vitest": "^1.6.1",
396
- "vue": "^3.4.0",
397
- "vue-tsc": "^1.8.27"
417
+ "vite": "^7.3.6",
418
+ "vite-plugin-solid": "^2.11.14",
419
+ "vitest": "^4.1.10",
420
+ "vue": "^3.5.40",
421
+ "vue-tsc": "^3.3.9"
398
422
  },
399
423
  "engines": {
400
424
  "node": ">=20"
@@ -1,15 +0,0 @@
1
- import { b as SnapPointDef, c as SheetMode } from './BottomSheetCore-D16lsa6g.js';
2
-
3
- type ResolvedSnap = {
4
- id: string;
5
- size: number;
6
- };
7
- declare const resolveSnapList: (points: SnapPointDef[], mode: SheetMode, measureFit?: () => number) => ResolvedSnap[];
8
- declare const findNearest: (size: number, resolved: ResolvedSnap[], allowed: string[], direction?: 1 | -1 | 0, bias?: number) => ResolvedSnap | null;
9
- declare const allowedRange: (resolved: ResolvedSnap[], allowed: string[]) => {
10
- min: number;
11
- max: number;
12
- };
13
- declare const findById: (id: string, resolved: ResolvedSnap[]) => ResolvedSnap | null;
14
-
15
- export { type ResolvedSnap as R, allowedRange as a, findNearest as b, findById as f, resolveSnapList as r };
@@ -1,15 +0,0 @@
1
- import { b as SnapPointDef, c as SheetMode } from './BottomSheetCore-CsIjyq7C.cjs';
2
-
3
- type ResolvedSnap = {
4
- id: string;
5
- size: number;
6
- };
7
- declare const resolveSnapList: (points: SnapPointDef[], mode: SheetMode, measureFit?: () => number) => ResolvedSnap[];
8
- declare const findNearest: (size: number, resolved: ResolvedSnap[], allowed: string[], direction?: 1 | -1 | 0, bias?: number) => ResolvedSnap | null;
9
- declare const allowedRange: (resolved: ResolvedSnap[], allowed: string[]) => {
10
- min: number;
11
- max: number;
12
- };
13
- declare const findById: (id: string, resolved: ResolvedSnap[]) => ResolvedSnap | null;
14
-
15
- export { type ResolvedSnap as R, allowedRange as a, findNearest as b, findById as f, resolveSnapList as r };