@glasshome/ui 0.2.0 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glasshome/ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "SolidJS component library for GlassHome, built on Kobalte",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -417,3 +417,35 @@
417
417
  backdrop-filter: none !important;
418
418
  -webkit-backdrop-filter: none !important;
419
419
  }
420
+
421
+ /* BottomSheet animations */
422
+ @keyframes bs-slide-up {
423
+ from { transform: translate3d(0, 100%, 0); }
424
+ to { transform: translate3d(0, 0, 0); }
425
+ }
426
+ @keyframes bs-slide-down {
427
+ from { transform: translate3d(0, 0, 0); }
428
+ to { transform: translate3d(0, 100%, 0); }
429
+ }
430
+ .bs-content {
431
+ transform: translate3d(0, 100%, 0);
432
+ bottom: var(--bs-keyboard-offset, 0);
433
+ }
434
+ .bs-content[data-keyboard-open] {
435
+ max-height: calc(85dvh - var(--bs-keyboard-offset, 0px));
436
+ }
437
+ .bs-content[data-state="opening"] {
438
+ animation: bs-slide-up 500ms cubic-bezier(0.32, 0.72, 0, 1) forwards;
439
+ }
440
+ .bs-content[data-state="open"],
441
+ .bs-content[data-state="pressing"],
442
+ .bs-content[data-state="dragging"],
443
+ .bs-content[data-state="snapping"] {
444
+ transform: translate3d(0, 0, 0);
445
+ }
446
+ .bs-content[data-state="closing"] {
447
+ animation: bs-slide-down 500ms cubic-bezier(0.32, 0.72, 0, 1) forwards;
448
+ }
449
+ .bs-content[data-reduced-motion] {
450
+ animation-duration: 0ms !important;
451
+ }