@surdeddd/bottom-sheet 0.12.0 → 0.14.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.
- package/README.md +85 -1
- package/dist/{BottomSheetEngine-D6oiEfZ4.d.cts → BottomSheetCore-Cp7dWy91.d.cts} +85 -5
- package/dist/{BottomSheetEngine-Dhy0X_e9.d.ts → BottomSheetCore-DJYwWOqt.d.ts} +85 -5
- package/dist/BottomSheetEngine-Lm7HIVHv.d.cts +7 -0
- package/dist/BottomSheetEngine-O5PbeKfe.d.ts +7 -0
- package/dist/core.cjs +3680 -0
- package/dist/core.d.cts +3 -0
- package/dist/core.d.ts +3 -0
- package/dist/core.js +3678 -0
- package/dist/debug.cjs +109 -0
- package/dist/debug.d.cts +22 -0
- package/dist/debug.d.ts +22 -0
- package/dist/debug.js +107 -0
- package/dist/element.cjs +1314 -829
- package/dist/element.d.cts +2 -1
- package/dist/element.d.ts +2 -1
- package/dist/element.iife.global.js +2 -2
- package/dist/element.js +1314 -829
- package/dist/features.cjs +489 -0
- package/dist/features.d.cts +13 -0
- package/dist/features.d.ts +13 -0
- package/dist/features.js +482 -0
- package/dist/index-Bb5TRmyg.d.cts +9 -0
- package/dist/index-Cl9ebCP2.d.ts +9 -0
- package/dist/index.cjs +979 -1293
- package/dist/index.d.cts +43 -55
- package/dist/index.d.ts +43 -55
- package/dist/index.js +973 -1280
- package/dist/integrations/formik.d.cts +1 -1
- package/dist/integrations/formik.d.ts +1 -1
- package/dist/integrations/react-hook-form.d.cts +1 -1
- package/dist/integrations/react-hook-form.d.ts +1 -1
- package/dist/overlay.cjs +11 -10
- package/dist/overlay.js +11 -10
- package/dist/preact.d.cts +2 -1
- package/dist/preact.d.ts +2 -1
- package/dist/qwik-lib/index.qwik.cjs +4418 -0
- package/dist/qwik-lib/index.qwik.mjs +4418 -0
- package/dist/qwik.cjs +1089 -657
- package/dist/qwik.d.cts +4 -2
- package/dist/qwik.d.ts +4 -2
- package/dist/qwik.js +1089 -657
- package/dist/react.cjs +1100 -665
- package/dist/react.d.cts +3 -3
- package/dist/react.d.ts +3 -3
- package/dist/react.js +1100 -665
- package/dist/solid.cjs +1095 -657
- package/dist/solid.d.cts +90 -4
- package/dist/solid.d.ts +90 -4
- package/dist/solid.js +1095 -657
- package/dist/solid.source.jsx +1103 -657
- package/dist/styles.css +24 -4
- package/dist/svelte-core.cjs +981 -557
- package/dist/svelte-core.js +981 -557
- package/dist/svelte-src/BottomSheet.svelte +14 -0
- package/dist/svelte.cjs +1091 -657
- package/dist/svelte.d.cts +2 -0
- package/dist/svelte.d.ts +2 -0
- package/dist/svelte.js +1091 -657
- package/dist/vue.cjs +1105 -657
- package/dist/vue.js +1105 -657
- package/dist/webgl.cjs +583 -0
- package/dist/webgl.d.cts +17 -0
- package/dist/webgl.d.ts +17 -0
- package/dist/webgl.js +581 -0
- package/package.json +88 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@surdeddd/bottom-sheet",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.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",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"main": "./dist/index.cjs",
|
|
46
46
|
"module": "./dist/index.js",
|
|
47
47
|
"types": "./dist/index.d.ts",
|
|
48
|
+
"qwik": "./dist/qwik-lib/index.qwik.mjs",
|
|
48
49
|
"exports": {
|
|
49
50
|
".": {
|
|
50
51
|
"import": {
|
|
@@ -117,6 +118,46 @@
|
|
|
117
118
|
"default": "./dist/overlay.cjs"
|
|
118
119
|
}
|
|
119
120
|
},
|
|
121
|
+
"./debug": {
|
|
122
|
+
"import": {
|
|
123
|
+
"types": "./dist/debug.d.ts",
|
|
124
|
+
"default": "./dist/debug.js"
|
|
125
|
+
},
|
|
126
|
+
"require": {
|
|
127
|
+
"types": "./dist/debug.d.cts",
|
|
128
|
+
"default": "./dist/debug.cjs"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"./core": {
|
|
132
|
+
"import": {
|
|
133
|
+
"types": "./dist/core.d.ts",
|
|
134
|
+
"default": "./dist/core.js"
|
|
135
|
+
},
|
|
136
|
+
"require": {
|
|
137
|
+
"types": "./dist/core.d.cts",
|
|
138
|
+
"default": "./dist/core.cjs"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"./features": {
|
|
142
|
+
"import": {
|
|
143
|
+
"types": "./dist/features.d.ts",
|
|
144
|
+
"default": "./dist/features.js"
|
|
145
|
+
},
|
|
146
|
+
"require": {
|
|
147
|
+
"types": "./dist/features.d.cts",
|
|
148
|
+
"default": "./dist/features.cjs"
|
|
149
|
+
}
|
|
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
|
+
},
|
|
120
161
|
"./qwik": {
|
|
121
162
|
"import": {
|
|
122
163
|
"types": "./dist/qwik.d.ts",
|
|
@@ -175,37 +216,37 @@
|
|
|
175
216
|
{
|
|
176
217
|
"name": "core (engine + types)",
|
|
177
218
|
"path": "dist/index.js",
|
|
178
|
-
"limit": "
|
|
219
|
+
"limit": "21.5 KB",
|
|
179
220
|
"gzip": true
|
|
180
221
|
},
|
|
181
222
|
{
|
|
182
223
|
"name": "react adapter",
|
|
183
224
|
"path": "dist/react.js",
|
|
184
|
-
"limit": "
|
|
225
|
+
"limit": "29 KB",
|
|
185
226
|
"gzip": true
|
|
186
227
|
},
|
|
187
228
|
{
|
|
188
229
|
"name": "vue adapter",
|
|
189
230
|
"path": "dist/vue.js",
|
|
190
|
-
"limit": "
|
|
231
|
+
"limit": "24.5 KB",
|
|
191
232
|
"gzip": true
|
|
192
233
|
},
|
|
193
234
|
{
|
|
194
235
|
"name": "svelte adapter",
|
|
195
236
|
"path": "dist/svelte.js",
|
|
196
|
-
"limit": "
|
|
237
|
+
"limit": "24.5 KB",
|
|
197
238
|
"gzip": true
|
|
198
239
|
},
|
|
199
240
|
{
|
|
200
241
|
"name": "solid adapter",
|
|
201
242
|
"path": "dist/solid.js",
|
|
202
|
-
"limit": "
|
|
243
|
+
"limit": "23 KB",
|
|
203
244
|
"gzip": true
|
|
204
245
|
},
|
|
205
246
|
{
|
|
206
247
|
"name": "qwik adapter",
|
|
207
248
|
"path": "dist/qwik.js",
|
|
208
|
-
"limit": "
|
|
249
|
+
"limit": "23 KB",
|
|
209
250
|
"gzip": true
|
|
210
251
|
},
|
|
211
252
|
{
|
|
@@ -220,19 +261,43 @@
|
|
|
220
261
|
{
|
|
221
262
|
"name": "web component (self-contained)",
|
|
222
263
|
"path": "dist/element.js",
|
|
223
|
-
"limit": "
|
|
264
|
+
"limit": "28 KB",
|
|
224
265
|
"gzip": true
|
|
225
266
|
},
|
|
226
267
|
{
|
|
227
268
|
"name": "web component (IIFE / CDN)",
|
|
228
269
|
"path": "dist/element.iife.global.js",
|
|
229
|
-
"limit": "
|
|
270
|
+
"limit": "27.5 KB",
|
|
230
271
|
"gzip": true
|
|
231
272
|
},
|
|
232
273
|
{
|
|
233
274
|
"name": "overlay (subpath)",
|
|
234
275
|
"path": "dist/overlay.js",
|
|
235
|
-
"limit": "7 KB",
|
|
276
|
+
"limit": "7.5 KB",
|
|
277
|
+
"gzip": true
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "debug overlay (subpath)",
|
|
281
|
+
"path": "dist/debug.js",
|
|
282
|
+
"limit": "1.2 KB",
|
|
283
|
+
"gzip": true
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "slim core (subpath, no optional features)",
|
|
287
|
+
"path": "dist/core.js",
|
|
288
|
+
"limit": "19.5 KB",
|
|
289
|
+
"gzip": true
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "features (subpath)",
|
|
293
|
+
"path": "dist/features.js",
|
|
294
|
+
"limit": "2.6 KB",
|
|
295
|
+
"gzip": true
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"name": "webgl renderer (subpath)",
|
|
299
|
+
"path": "dist/webgl.js",
|
|
300
|
+
"limit": "4.5 KB",
|
|
236
301
|
"gzip": true
|
|
237
302
|
}
|
|
238
303
|
],
|
|
@@ -244,7 +309,7 @@
|
|
|
244
309
|
],
|
|
245
310
|
"scripts": {
|
|
246
311
|
"prebuild": "node ./scripts/clean-dist.mjs && node ./scripts/inline-base-css.mjs",
|
|
247
|
-
"build": "tsup && tsup --config tsup.solid.config.ts && tsup --config tsup.iife.config.ts",
|
|
312
|
+
"build": "tsup && tsup --config tsup.solid.config.ts && tsup --config tsup.iife.config.ts && vite build --mode lib --config vite.qwik-lib.config.ts",
|
|
248
313
|
"postbuild": "node ./scripts/copy-d-ts-templates.mjs && node ./scripts/fix-preact-dist.mjs && node ./scripts/strip-icloud-dupes.mjs",
|
|
249
314
|
"sync:css": "node ./scripts/inline-base-css.mjs",
|
|
250
315
|
"dev": "tsup --watch",
|
|
@@ -257,6 +322,8 @@
|
|
|
257
322
|
"e2e": "playwright test --project=mobile-chrome",
|
|
258
323
|
"docs:check": "node ./scripts/docs-check.mjs",
|
|
259
324
|
"bench": "vitest bench",
|
|
325
|
+
"bench:check": "node ./scripts/bench-check.mjs",
|
|
326
|
+
"check:qwik-ssr": "node ./scripts/qwik-ssr-check.mjs",
|
|
260
327
|
"size": "size-limit",
|
|
261
328
|
"docs:api": "typedoc",
|
|
262
329
|
"lhci": "lhci autorun --config=./lighthouserc.json",
|
|
@@ -307,6 +374,11 @@
|
|
|
307
374
|
"optional": true
|
|
308
375
|
}
|
|
309
376
|
},
|
|
377
|
+
"overrides": {
|
|
378
|
+
"postcss": "^8.5.23",
|
|
379
|
+
"seroval": "^1.5.6",
|
|
380
|
+
"seroval-plugins": "^1.5.6"
|
|
381
|
+
},
|
|
310
382
|
"devDependencies": {
|
|
311
383
|
"@arethetypeswrong/cli": "^0.18.3",
|
|
312
384
|
"@axe-core/playwright": "^4.11.2",
|
|
@@ -318,6 +390,7 @@
|
|
|
318
390
|
"@types/node": "^20.11.0",
|
|
319
391
|
"@types/react": "^18.2.0",
|
|
320
392
|
"@types/react-dom": "^18.2.0",
|
|
393
|
+
"@types/three": "^0.185.1",
|
|
321
394
|
"@vitejs/plugin-react": "^4.2.0",
|
|
322
395
|
"@vitejs/plugin-vue": "^5.0.0",
|
|
323
396
|
"@vitest/coverage-v8": "^1.2.0",
|
|
@@ -327,6 +400,7 @@
|
|
|
327
400
|
"happy-dom": "^13.3.0",
|
|
328
401
|
"husky": "^9.1.7",
|
|
329
402
|
"lit": "^3.3.2",
|
|
403
|
+
"motion": "^12.42.2",
|
|
330
404
|
"patch-package": "^8.0.1",
|
|
331
405
|
"publint": "^0.3.21",
|
|
332
406
|
"react": "^18.2.0",
|
|
@@ -335,8 +409,10 @@
|
|
|
335
409
|
"size-limit": "^12.1.0",
|
|
336
410
|
"solid-js": "^1.9.12",
|
|
337
411
|
"svelte": "^5.55.5",
|
|
412
|
+
"three": "^0.185.1",
|
|
338
413
|
"tsup": "^8.0.1",
|
|
339
|
-
"
|
|
414
|
+
"typedoc": "^0.28.20",
|
|
415
|
+
"typescript": "^5.9.3",
|
|
340
416
|
"unplugin-vue": "^7.2.0",
|
|
341
417
|
"vite": "^5.0.10",
|
|
342
418
|
"vite-plugin-solid": "^2.11.12",
|