@glasshome/ui 1.1.0 → 1.1.1

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": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "SolidJS component library for GlassHome, built on Kobalte",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/glasshome/ui#readme",
@@ -7,6 +7,7 @@
7
7
  * Slides go in the default slot as <CarouselItem>-shaped elements, or pass
8
8
  * `count` to have dots rendered for you.
9
9
  */
10
+ import type { HTMLAttributes } from "astro/types";
10
11
  import {
11
12
  CAROUSEL_DOTS,
12
13
  CAROUSEL_VIEWPORT,
@@ -16,14 +17,16 @@ import {
16
17
  } from "../lib/carousel-classes";
17
18
  import { cn } from "../lib/utils";
18
19
 
19
- interface Props {
20
+ // Extends div attributes because everything not destructured below is spread
21
+ // onto the root; without it a caller's style/role/aria-* is a type error while
22
+ // still working at runtime.
23
+ interface Props extends HTMLAttributes<"div"> {
20
24
  transition?: CarouselTransition;
21
25
  /** Advance every N ms. Skipped under prefers-reduced-motion. */
22
26
  autoplay?: number;
23
27
  loop?: boolean;
24
28
  /** Slide count; when set, dots are rendered. */
25
29
  count?: number;
26
- class?: string;
27
30
  }
28
31
 
29
32
  const {