@surdeddd/bottom-sheet 0.1.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 (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +377 -0
  3. package/dist/BottomSheetEngine-CvSVbo6c.d.cts +704 -0
  4. package/dist/BottomSheetEngine-DbO8rW_3.d.ts +704 -0
  5. package/dist/element.cjs +3442 -0
  6. package/dist/element.d.cts +88 -0
  7. package/dist/element.d.ts +88 -0
  8. package/dist/element.iife.global.js +3 -0
  9. package/dist/element.js +3442 -0
  10. package/dist/index.cjs +3693 -0
  11. package/dist/index.d.cts +184 -0
  12. package/dist/index.d.ts +184 -0
  13. package/dist/index.js +3669 -0
  14. package/dist/integrations/formik.cjs +27 -0
  15. package/dist/integrations/formik.d.cts +27 -0
  16. package/dist/integrations/formik.d.ts +27 -0
  17. package/dist/integrations/formik.js +25 -0
  18. package/dist/integrations/react-hook-form.cjs +28 -0
  19. package/dist/integrations/react-hook-form.d.cts +30 -0
  20. package/dist/integrations/react-hook-form.d.ts +30 -0
  21. package/dist/integrations/react-hook-form.js +26 -0
  22. package/dist/overlay.cjs +1058 -0
  23. package/dist/overlay.d.cts +282 -0
  24. package/dist/overlay.d.ts +282 -0
  25. package/dist/overlay.js +1053 -0
  26. package/dist/preact.cjs +2 -0
  27. package/dist/preact.d.cts +5 -0
  28. package/dist/preact.d.ts +5 -0
  29. package/dist/preact.js +2 -0
  30. package/dist/qwik.cjs +3046 -0
  31. package/dist/qwik.d.cts +55 -0
  32. package/dist/qwik.d.ts +55 -0
  33. package/dist/qwik.js +3044 -0
  34. package/dist/react.cjs +4162 -0
  35. package/dist/react.d.cts +301 -0
  36. package/dist/react.d.ts +301 -0
  37. package/dist/react.js +4156 -0
  38. package/dist/solid.cjs +3063 -0
  39. package/dist/solid.d.cts +66 -0
  40. package/dist/solid.d.ts +66 -0
  41. package/dist/solid.js +3061 -0
  42. package/dist/styles.css +508 -0
  43. package/dist/svelte.cjs +3200 -0
  44. package/dist/svelte.d.ts +89 -0
  45. package/dist/svelte.js +3177 -0
  46. package/dist/themes/ios.css +24 -0
  47. package/dist/themes/material.css +24 -0
  48. package/dist/themes/vercel.css +24 -0
  49. package/dist/transform-Brkf-wzo.d.cts +4 -0
  50. package/dist/transform-Brkf-wzo.d.ts +4 -0
  51. package/dist/vue.cjs +3361 -0
  52. package/dist/vue.d.ts +68 -0
  53. package/dist/vue.js +3358 -0
  54. package/package.json +288 -0
package/package.json ADDED
@@ -0,0 +1,288 @@
1
+ {
2
+ "name": "@surdeddd/bottom-sheet",
3
+ "version": "0.1.0",
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
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Surdeddd",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/Surdeddd/BottomSheet.git"
11
+ },
12
+ "homepage": "https://github.com/Surdeddd/BottomSheet#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/Surdeddd/BottomSheet/issues"
15
+ },
16
+ "keywords": [
17
+ "bottom-sheet",
18
+ "modal",
19
+ "drawer",
20
+ "headless",
21
+ "framework-agnostic",
22
+ "react",
23
+ "vue",
24
+ "svelte",
25
+ "solid-js",
26
+ "qwik",
27
+ "preact",
28
+ "lit",
29
+ "web-component",
30
+ "ssr",
31
+ "a11y",
32
+ "snap-points",
33
+ "gesture",
34
+ "pointer-events"
35
+ ],
36
+ "sideEffects": [
37
+ "./dist/styles.css",
38
+ "./dist/themes/ios.css",
39
+ "./dist/themes/material.css",
40
+ "./dist/themes/vercel.css",
41
+ "./dist/element.js",
42
+ "./dist/element.cjs",
43
+ "./dist/element.iife.global.js"
44
+ ],
45
+ "main": "./dist/index.cjs",
46
+ "module": "./dist/index.js",
47
+ "types": "./dist/index.d.ts",
48
+ "exports": {
49
+ ".": {
50
+ "types": "./dist/index.d.ts",
51
+ "import": "./dist/index.js",
52
+ "require": "./dist/index.cjs"
53
+ },
54
+ "./react": {
55
+ "types": "./dist/react.d.ts",
56
+ "import": "./dist/react.js",
57
+ "require": "./dist/react.cjs"
58
+ },
59
+ "./preact": {
60
+ "types": "./dist/preact.d.ts",
61
+ "import": "./dist/preact.js",
62
+ "require": "./dist/preact.cjs"
63
+ },
64
+ "./vue": {
65
+ "types": "./dist/vue.d.ts",
66
+ "import": "./dist/vue.js",
67
+ "require": "./dist/vue.cjs"
68
+ },
69
+ "./element": {
70
+ "types": "./dist/element.d.ts",
71
+ "import": "./dist/element.js",
72
+ "require": "./dist/element.cjs"
73
+ },
74
+ "./svelte": {
75
+ "types": "./dist/svelte.d.ts",
76
+ "import": "./dist/svelte.js",
77
+ "require": "./dist/svelte.cjs"
78
+ },
79
+ "./overlay": {
80
+ "types": "./dist/overlay.d.ts",
81
+ "import": "./dist/overlay.js",
82
+ "require": "./dist/overlay.cjs"
83
+ },
84
+ "./qwik": {
85
+ "types": "./dist/qwik.d.ts",
86
+ "import": "./dist/qwik.js",
87
+ "require": "./dist/qwik.cjs"
88
+ },
89
+ "./solid": {
90
+ "types": "./dist/solid.d.ts",
91
+ "import": "./dist/solid.js",
92
+ "require": "./dist/solid.cjs"
93
+ },
94
+ "./integrations/react-hook-form": {
95
+ "types": "./dist/integrations/react-hook-form.d.ts",
96
+ "import": "./dist/integrations/react-hook-form.js",
97
+ "require": "./dist/integrations/react-hook-form.cjs"
98
+ },
99
+ "./integrations/formik": {
100
+ "types": "./dist/integrations/formik.d.ts",
101
+ "import": "./dist/integrations/formik.js",
102
+ "require": "./dist/integrations/formik.cjs"
103
+ },
104
+ "./styles": "./dist/styles.css",
105
+ "./styles.css": "./dist/styles.css",
106
+ "./themes/ios": "./dist/themes/ios.css",
107
+ "./themes/ios.css": "./dist/themes/ios.css",
108
+ "./themes/material": "./dist/themes/material.css",
109
+ "./themes/material.css": "./dist/themes/material.css",
110
+ "./themes/vercel": "./dist/themes/vercel.css",
111
+ "./themes/vercel.css": "./dist/themes/vercel.css"
112
+ },
113
+ "workspaces": [
114
+ "examples/*"
115
+ ],
116
+ "size-limit": [
117
+ {
118
+ "name": "core (engine + types)",
119
+ "path": "dist/index.js",
120
+ "limit": "18 KB",
121
+ "gzip": true
122
+ },
123
+ {
124
+ "name": "react adapter",
125
+ "path": "dist/react.js",
126
+ "limit": "22 KB",
127
+ "gzip": true
128
+ },
129
+ {
130
+ "name": "vue adapter",
131
+ "path": "dist/vue.js",
132
+ "limit": "20 KB",
133
+ "gzip": true
134
+ },
135
+ {
136
+ "name": "svelte adapter",
137
+ "path": "dist/svelte.js",
138
+ "limit": "19 KB",
139
+ "gzip": true
140
+ },
141
+ {
142
+ "name": "solid adapter",
143
+ "path": "dist/solid.js",
144
+ "limit": "18 KB",
145
+ "gzip": true
146
+ },
147
+ {
148
+ "name": "qwik adapter",
149
+ "path": "dist/qwik.js",
150
+ "limit": "18 KB",
151
+ "gzip": true
152
+ },
153
+ {
154
+ "name": "preact adapter (re-export only)",
155
+ "path": "dist/preact.js",
156
+ "limit": "1 KB",
157
+ "gzip": true,
158
+ "ignore": [
159
+ "./react.js"
160
+ ]
161
+ },
162
+ {
163
+ "name": "web component (self-contained)",
164
+ "path": "dist/element.js",
165
+ "limit": "24 KB",
166
+ "gzip": true
167
+ },
168
+ {
169
+ "name": "web component (IIFE / CDN)",
170
+ "path": "dist/element.iife.global.js",
171
+ "limit": "19 KB",
172
+ "gzip": true
173
+ },
174
+ {
175
+ "name": "overlay (subpath)",
176
+ "path": "dist/overlay.js",
177
+ "limit": "6 KB",
178
+ "gzip": true
179
+ }
180
+ ],
181
+ "files": [
182
+ "dist",
183
+ "!dist/**/*.map",
184
+ "README.md",
185
+ "LICENSE"
186
+ ],
187
+ "scripts": {
188
+ "prebuild": "node ./scripts/clean-dist.mjs && node ./scripts/inline-base-css.mjs",
189
+ "build": "tsup && tsup --config tsup.iife.config.ts",
190
+ "postbuild": "node ./scripts/copy-d-ts-templates.mjs && node ./scripts/fix-preact-dist.mjs && node ./scripts/strip-icloud-dupes.mjs",
191
+ "sync:css": "node ./scripts/inline-base-css.mjs",
192
+ "dev": "tsup --watch",
193
+ "demo": "vite",
194
+ "demo:build": "vite build",
195
+ "demo:preview": "vite preview",
196
+ "typecheck": "tsc --noEmit",
197
+ "test": "vitest run",
198
+ "test:watch": "vitest",
199
+ "bench": "vitest bench",
200
+ "size": "size-limit",
201
+ "docs:api": "typedoc",
202
+ "lhci": "lhci autorun --config=./lighthouserc.json",
203
+ "prepublishOnly": "npm run build",
204
+ "postinstall": "node ./scripts/postinstall-patches.mjs",
205
+ "prepare": "husky"
206
+ },
207
+ "peerDependencies": {
208
+ "@builder.io/qwik": ">=1.0.0",
209
+ "formik": ">=2.0.0",
210
+ "preact": ">=10.0.0",
211
+ "preact-render-to-string": ">=6.0.0",
212
+ "react": ">=17.0.0",
213
+ "react-dom": ">=17.0.0",
214
+ "react-hook-form": ">=7.0.0",
215
+ "solid-js": ">=1.0.0",
216
+ "svelte": ">=5.0.0",
217
+ "vue": ">=3.2.0"
218
+ },
219
+ "peerDependenciesMeta": {
220
+ "@builder.io/qwik": {
221
+ "optional": true
222
+ },
223
+ "formik": {
224
+ "optional": true
225
+ },
226
+ "preact": {
227
+ "optional": true
228
+ },
229
+ "preact-render-to-string": {
230
+ "optional": true
231
+ },
232
+ "react": {
233
+ "optional": true
234
+ },
235
+ "react-dom": {
236
+ "optional": true
237
+ },
238
+ "react-hook-form": {
239
+ "optional": true
240
+ },
241
+ "vue": {
242
+ "optional": true
243
+ },
244
+ "svelte": {
245
+ "optional": true
246
+ },
247
+ "solid-js": {
248
+ "optional": true
249
+ }
250
+ },
251
+ "devDependencies": {
252
+ "@axe-core/playwright": "^4.11.2",
253
+ "@builder.io/qwik": "^1.19.2",
254
+ "@lhci/cli": "^0.15.1",
255
+ "@playwright/test": "^1.59.1",
256
+ "@size-limit/preset-small-lib": "^12.1.0",
257
+ "@sveltejs/vite-plugin-svelte": "^4.0.4",
258
+ "@types/node": "^20.11.0",
259
+ "@types/react": "^18.2.0",
260
+ "@types/react-dom": "^18.2.0",
261
+ "@vitejs/plugin-react": "^4.2.0",
262
+ "@vitejs/plugin-vue": "^5.0.0",
263
+ "@vitest/coverage-v8": "^1.2.0",
264
+ "esbuild-svelte": "^0.9.4",
265
+ "fast-check": "^4.7.0",
266
+ "happy-dom": "^13.3.0",
267
+ "husky": "^9.1.7",
268
+ "lit": "^3.3.2",
269
+ "patch-package": "^8.0.1",
270
+ "react": "^18.2.0",
271
+ "react-dom": "^18.2.0",
272
+ "rolldown": "^1.0.0-rc.18",
273
+ "size-limit": "^12.1.0",
274
+ "solid-js": "^1.9.12",
275
+ "svelte": "^5.55.5",
276
+ "tsup": "^8.0.1",
277
+ "typescript": "^5.3.3",
278
+ "unplugin-vue": "^7.2.0",
279
+ "vite": "^5.0.10",
280
+ "vite-plugin-solid": "^2.11.12",
281
+ "vitest": "^1.6.1",
282
+ "vue": "^3.4.0",
283
+ "vue-tsc": "^1.8.27"
284
+ },
285
+ "engines": {
286
+ "node": ">=18"
287
+ }
288
+ }