@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
@@ -0,0 +1,24 @@
1
+ /* iOS theme — soft surface, restrained shadow, generous radius. Activate by
2
+ adding `bs-theme-ios` to the `.bs-root` element. */
3
+
4
+ .bs-theme-ios {
5
+ --bs-surface: #f2f2f7;
6
+ --bs-surface-border: rgba(60, 60, 67, 0.12);
7
+ --bs-shadow: 0 -1px 0 rgba(60, 60, 67, 0.16),
8
+ 0 -8px 24px rgba(0, 0, 0, 0.08);
9
+ --bs-radius: 14px;
10
+ --bs-handle-color: rgba(60, 60, 67, 0.3);
11
+ --bs-handle-width: 36px;
12
+ --bs-handle-height: 5px;
13
+ --bs-backdrop-color: rgba(0, 0, 0, 0.4);
14
+ --bs-scrim-color: rgba(28, 28, 30, 0.5);
15
+ --bs-scrim-blur: 20px;
16
+ }
17
+
18
+ [data-theme="dark"] .bs-theme-ios {
19
+ --bs-surface: #1c1c1e;
20
+ --bs-surface-border: rgba(84, 84, 88, 0.6);
21
+ --bs-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04),
22
+ 0 -8px 24px rgba(0, 0, 0, 0.6);
23
+ --bs-handle-color: rgba(255, 255, 255, 0.3);
24
+ }
@@ -0,0 +1,24 @@
1
+ /* Material 3 theme — elevated surface, M3-spec shadow, larger radius. Activate
2
+ by adding `bs-theme-material` to the `.bs-root` element. */
3
+
4
+ .bs-theme-material {
5
+ --bs-surface: #fef7ff;
6
+ --bs-surface-border: rgba(73, 69, 79, 0.12);
7
+ --bs-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12),
8
+ 0 -4px 8px 3px rgba(0, 0, 0, 0.08);
9
+ --bs-radius: 28px;
10
+ --bs-handle-color: #79747e;
11
+ --bs-handle-width: 32px;
12
+ --bs-handle-height: 4px;
13
+ --bs-backdrop-color: rgba(0, 0, 0, 0.5);
14
+ --bs-scrim-color: rgba(28, 27, 31, 0.5);
15
+ --bs-scrim-blur: 0px;
16
+ }
17
+
18
+ [data-theme="dark"] .bs-theme-material {
19
+ --bs-surface: #1d1b20;
20
+ --bs-surface-border: rgba(202, 196, 208, 0.16);
21
+ --bs-shadow: 0 -1px 3px rgba(0, 0, 0, 0.5),
22
+ 0 -4px 8px 3px rgba(0, 0, 0, 0.3);
23
+ --bs-handle-color: #cac4d0;
24
+ }
@@ -0,0 +1,24 @@
1
+ /* Vercel-style theme — minimal flat surface, sharp radius, mono handle.
2
+ Activate by adding `bs-theme-vercel` to the `.bs-root` element. */
3
+
4
+ .bs-theme-vercel {
5
+ --bs-surface: #ffffff;
6
+ --bs-surface-border: #eaeaea;
7
+ --bs-shadow: 0 -1px 0 #eaeaea,
8
+ 0 -10px 30px rgba(0, 0, 0, 0.06);
9
+ --bs-radius: 8px;
10
+ --bs-handle-color: #999999;
11
+ --bs-handle-width: 32px;
12
+ --bs-handle-height: 4px;
13
+ --bs-backdrop-color: rgba(0, 0, 0, 0.6);
14
+ --bs-scrim-color: rgba(0, 0, 0, 0.45);
15
+ --bs-scrim-blur: 8px;
16
+ }
17
+
18
+ [data-theme="dark"] .bs-theme-vercel {
19
+ --bs-surface: #000000;
20
+ --bs-surface-border: #333333;
21
+ --bs-shadow: 0 -1px 0 #333333,
22
+ 0 -10px 30px rgba(0, 0, 0, 0.7);
23
+ --bs-handle-color: #666666;
24
+ }
@@ -0,0 +1,4 @@
1
+ /** Re-aliased as `SheetMode` in `types.ts` and as `OverlayEdge` in `overlay.ts`. */
2
+ type TransformAxis = "bottom" | "top" | "left" | "right";
3
+
4
+ export type { TransformAxis as T };
@@ -0,0 +1,4 @@
1
+ /** Re-aliased as `SheetMode` in `types.ts` and as `OverlayEdge` in `overlay.ts`. */
2
+ type TransformAxis = "bottom" | "top" | "left" | "right";
3
+
4
+ export type { TransformAxis as T };