bits-ui 1.0.0-next.13 → 1.0.0-next.14
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/dist/shared/attributes.d.ts +16 -16
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { HTMLAnchorAttributes, HTMLAttributes, HTMLButtonAttributes, HTMLImgAttributes, HTMLInputAttributes, HTMLLabelAttributes, HTMLLiAttributes, HTMLTableAttributes, HTMLTdAttributes, HTMLThAttributes, SVGAttributes } from "svelte/elements";
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
2
|
+
export type BitsDivAttributes = HTMLAttributes<HTMLDivElement>;
|
|
3
|
+
export type BitsSpanAttributes = HTMLAttributes<HTMLSpanElement>;
|
|
4
|
+
export type BitsHeadingAttributes = HTMLAttributes<HTMLHeadingElement>;
|
|
5
|
+
export type BitsUListAttributes = HTMLAttributes<HTMLUListElement>;
|
|
6
|
+
export type BitsElementAttributes = HTMLAttributes<HTMLElement>;
|
|
7
|
+
export type BitsTableSectionAttributes = HTMLAttributes<HTMLTableSectionElement>;
|
|
8
|
+
export type BitsTableRowAttributes = HTMLAttributes<HTMLTableRowElement>;
|
|
9
9
|
export type BitsSVGElementAttributes = SVGAttributes<SVGElement>;
|
|
10
10
|
/**
|
|
11
11
|
* We override the `id` prop type to not allow it to be `null`. We rely on the
|
|
@@ -17,22 +17,22 @@ type BitsPrimitive<T> = Omit<T, "style" | "id" | "children"> & {
|
|
|
17
17
|
id?: string;
|
|
18
18
|
};
|
|
19
19
|
export type BitsPrimitiveButtonAttributes = BitsPrimitive<HTMLButtonAttributes>;
|
|
20
|
-
export type BitsPrimitiveDivAttributes = BitsPrimitive<
|
|
20
|
+
export type BitsPrimitiveDivAttributes = BitsPrimitive<BitsDivAttributes>;
|
|
21
21
|
export type BitsPrimitiveInputAttributes = BitsPrimitive<HTMLInputAttributes>;
|
|
22
|
-
export type BitsPrimitiveSpanAttributes = BitsPrimitive<
|
|
22
|
+
export type BitsPrimitiveSpanAttributes = BitsPrimitive<BitsSpanAttributes>;
|
|
23
23
|
export type BitsPrimitiveImgAttributes = BitsPrimitive<HTMLImgAttributes>;
|
|
24
|
-
export type BitsPrimitiveHeadingAttributes = BitsPrimitive<
|
|
24
|
+
export type BitsPrimitiveHeadingAttributes = BitsPrimitive<BitsHeadingAttributes>;
|
|
25
25
|
export type BitsPrimitiveLabelAttributes = BitsPrimitive<HTMLLabelAttributes>;
|
|
26
26
|
export type BitsPrimitiveSVGAttributes = BitsPrimitive<BitsSVGElementAttributes>;
|
|
27
27
|
export type BitsPrimitiveAnchorAttributes = BitsPrimitive<HTMLAnchorAttributes>;
|
|
28
28
|
export type BitsPrimitiveLiAttributes = BitsPrimitive<HTMLLiAttributes>;
|
|
29
|
-
export type BitsPrimitiveElementAttributes = BitsPrimitive<
|
|
30
|
-
export type BitsPrimitiveUListAttributes = BitsPrimitive<
|
|
29
|
+
export type BitsPrimitiveElementAttributes = BitsPrimitive<BitsElementAttributes>;
|
|
30
|
+
export type BitsPrimitiveUListAttributes = BitsPrimitive<BitsUListAttributes>;
|
|
31
31
|
export type BitsPrimitiveTdAttributes = BitsPrimitive<HTMLTdAttributes>;
|
|
32
32
|
export type BitsPrimitiveThAttributes = BitsPrimitive<HTMLThAttributes>;
|
|
33
33
|
export type BitsPrimitiveTableAttributes = BitsPrimitive<HTMLTableAttributes>;
|
|
34
|
-
export type BitsPrimitiveTbodyAttributes = BitsPrimitive<
|
|
35
|
-
export type BitsPrimitiveTrAttributes = BitsPrimitive<
|
|
36
|
-
export type BitsPrimitiveTheadAttributes = BitsPrimitive<
|
|
37
|
-
export type BitsPrimitiveHeaderAttributes = BitsPrimitive<
|
|
34
|
+
export type BitsPrimitiveTbodyAttributes = BitsPrimitive<BitsTableSectionAttributes>;
|
|
35
|
+
export type BitsPrimitiveTrAttributes = BitsPrimitive<BitsTableRowAttributes>;
|
|
36
|
+
export type BitsPrimitiveTheadAttributes = BitsPrimitive<BitsTableSectionAttributes>;
|
|
37
|
+
export type BitsPrimitiveHeaderAttributes = BitsPrimitive<BitsElementAttributes>;
|
|
38
38
|
export {};
|