@zag-js/types 0.2.2 → 0.2.3

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.
@@ -1,44 +0,0 @@
1
- import type { JSX } from "./jsx";
2
- declare type Dict<T = any> = Record<string, T>;
3
- declare type Booleanish = boolean | "true" | "false";
4
- declare type DataAttr = {
5
- "data-selected"?: Booleanish;
6
- "data-expanded"?: Booleanish;
7
- "data-highlighted"?: Booleanish;
8
- "data-readonly"?: Booleanish;
9
- "data-indeterminate"?: Booleanish;
10
- "data-invalid"?: Booleanish;
11
- "data-hover"?: Booleanish;
12
- "data-active"?: Booleanish;
13
- "data-focus"?: Booleanish;
14
- "data-disabled"?: Booleanish;
15
- "data-open"?: Booleanish;
16
- "data-checked"?: Booleanish;
17
- "data-pressed"?: Booleanish;
18
- "data-complete"?: Booleanish;
19
- "data-empty"?: Booleanish;
20
- "data-placeholder-shown"?: Booleanish;
21
- "data-half"?: Booleanish;
22
- "data-uid"?: string;
23
- "data-name"?: string;
24
- "data-ownedby"?: string;
25
- "data-type"?: string;
26
- "data-valuetext"?: string;
27
- "data-placement"?: string;
28
- "data-controls"?: string;
29
- "data-part"?: string;
30
- "data-label"?: string;
31
- "data-state"?: string | null;
32
- "data-value"?: string | number;
33
- "data-orientation"?: "horizontal" | "vertical";
34
- "data-count"?: number;
35
- "data-index"?: number;
36
- };
37
- export declare type PropTypes = Record<"button" | "label" | "input" | "output" | "element", Dict>;
38
- export declare type NormalizeProps<T extends PropTypes> = {
39
- [K in keyof T]: (props: K extends keyof JSX.IntrinsicElements ? DataAttr & JSX.IntrinsicElements[K] : never) => T[K];
40
- } & {
41
- element(props: DataAttr & JSX.HTMLAttributes<HTMLElement>): T["element"];
42
- };
43
- export declare function createNormalizer<T extends PropTypes>(fn: (props: Dict) => Dict): NormalizeProps<T>;
44
- export {};