@zag-js/types 0.3.4 → 0.5.0
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/index.d.ts +2 -1
- package/dist/prop-types.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,8 +9,9 @@ type MaybeElement<T extends HTMLElement = HTMLElement> = T | null;
|
|
|
9
9
|
type DirectionProperty = {
|
|
10
10
|
/**
|
|
11
11
|
* The document's text/writing direction.
|
|
12
|
+
* @default "ltr"
|
|
12
13
|
*/
|
|
13
|
-
dir?:
|
|
14
|
+
dir?: "ltr" | "rtl";
|
|
14
15
|
};
|
|
15
16
|
type CommonProperties = {
|
|
16
17
|
/**
|
package/dist/prop-types.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ type DataAttr = {
|
|
|
39
39
|
} & {
|
|
40
40
|
[key in `data-${string}`]?: string | number | Booleanish;
|
|
41
41
|
};
|
|
42
|
-
type PropTypes = Record<"button" | "label" | "input" | "output" | "element" | "select" | "style",
|
|
42
|
+
type PropTypes<T = Dict> = Record<"button" | "label" | "input" | "output" | "element" | "select" | "style", T>;
|
|
43
43
|
type NormalizeProps<T extends PropTypes> = {
|
|
44
44
|
[K in keyof T]: (props: K extends keyof JSX.IntrinsicElements ? DataAttr & JSX.IntrinsicElements[K] : never) => T[K];
|
|
45
45
|
} & {
|