@glasshome/ui 0.2.3 → 0.2.6

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.
@@ -3001,6 +3001,6 @@ function Go(...e) {
3001
3001
  return Ro(Ne(e));
3002
3002
  }
3003
3003
  export {
3004
- Go as a,
3005
- Ne as c
3004
+ Ne as a,
3005
+ Go as c
3006
3006
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glasshome/ui",
3
- "version": "0.2.3",
3
+ "version": "0.2.6",
4
4
  "description": "SolidJS component library for GlassHome, built on Kobalte",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -313,59 +313,6 @@
313
313
  animation: widget-slot-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
314
314
  }
315
315
 
316
- /* Geometric Background Animations */
317
- @keyframes geometric-entrance {
318
- from {
319
- opacity: 0;
320
- transform: translate(var(--entrance-x, 0px), var(--entrance-y, 0px)) scale(0.8)
321
- rotate(var(--entrance-rotate, 0deg));
322
- }
323
- to {
324
- opacity: 1;
325
- transform: translate(0, 0) scale(1) rotate(var(--final-rotate, 0deg));
326
- }
327
- }
328
-
329
- @keyframes geometric-float {
330
- 0% {
331
- transform: translate(0, 0) scale(1) rotate(var(--base-rotate, 0deg));
332
- }
333
- 25% {
334
- transform: translate(-10px, 12px) scale(1.025) rotate(calc(var(--base-rotate, 0deg) + 6deg));
335
- }
336
- 50% {
337
- transform: translate(11px, -8px) scale(0.98) rotate(calc(var(--base-rotate, 0deg) - 5deg));
338
- }
339
- 75% {
340
- transform: translate(-7px, 10px) scale(1.02) rotate(calc(var(--base-rotate, 0deg) + 7deg));
341
- }
342
- 100% {
343
- transform: translate(0, 0) scale(1) rotate(var(--base-rotate, 0deg));
344
- }
345
- }
346
-
347
- .geometric-shape-entrance {
348
- animation: geometric-entrance 3s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
349
- animation-delay: var(--entrance-delay, 0s);
350
- opacity: 0;
351
- }
352
-
353
- .geometric-shape-float {
354
- animation: geometric-float var(--float-duration, 18s) ease-in-out infinite;
355
- will-change: transform;
356
- }
357
-
358
- @media (prefers-reduced-motion: reduce) {
359
- .geometric-shape-entrance {
360
- animation: none;
361
- opacity: 1;
362
- transform: translate(0, 0) scale(1) rotate(var(--final-rotate, 0deg));
363
- }
364
- .geometric-shape-float {
365
- animation: none;
366
- }
367
- }
368
-
369
316
  /* Area title transition animations only */
370
317
  ::view-transition-old(area-title),
371
318
  ::view-transition-new(area-title) {
@@ -418,6 +365,21 @@
418
365
  -webkit-backdrop-filter: none !important;
419
366
  }
420
367
 
368
+ /* Accessibility: minimize animations/transitions when reduce-motion is active */
369
+ .reduce-motion,
370
+ .reduce-motion * {
371
+ animation-duration: 0.01ms !important;
372
+ animation-iteration-count: 1 !important;
373
+ transition-duration: 0.01ms !important;
374
+ scroll-behavior: auto !important;
375
+ }
376
+
377
+ /* Inline SVG background houses: position lives in keyframes, restore static spot. */
378
+ .reduce-motion .house-shape {
379
+ animation: none !important;
380
+ transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
381
+ }
382
+
421
383
  /* BottomSheet animations */
422
384
  @keyframes bs-slide-up {
423
385
  from { transform: translate3d(0, 100%, 0); }
@@ -1,17 +0,0 @@
1
- import { type Component, type ParentComponent } from "solid-js";
2
- declare const ElegantShape: Component<{
3
- class?: string;
4
- delay?: number;
5
- width?: number;
6
- height?: number;
7
- rotate?: number;
8
- blur?: number;
9
- colorVar?: string;
10
- opacityStart?: number;
11
- opacityEnd?: number;
12
- strokeOpacity?: number;
13
- }>;
14
- declare const GeometricBackground: ParentComponent<{
15
- class?: string;
16
- }>;
17
- export { ElegantShape, GeometricBackground };