@zag-js/types 1.43.1 → 1.43.2

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.mts CHANGED
@@ -3,6 +3,9 @@ export { NormalizeProps, PropTypes, createNormalizer } from './prop-types.mjs';
3
3
  export { createProps } from './create-props.mjs';
4
4
  import 'csstype';
5
5
 
6
+ type Partial<T> = {
7
+ [K in keyof T]?: T[K] | undefined;
8
+ };
6
9
  type RequiredBy<T, K extends keyof T> = Partial<Omit<T, K>> & Required<Pick<T, K>>;
7
10
  type Nullable<T> = T | null;
8
11
  type NonNullable<T> = T extends null | undefined ? never : T;
@@ -62,4 +65,4 @@ interface Rect extends Size {
62
65
  x: number;
63
66
  }
64
67
 
65
- export { type CommonProperties, type Direction, type DirectionProperty, type EventKey, type EventKeyMap, JSX, type LocaleProperties, type MaybeElement, type MaybeFn, type NonNullable, type Nullable, type Orientation, type OrientationProperty, type Point, type Rect, type Required, type RequiredBy, type Size, type Style };
68
+ export { type CommonProperties, type Direction, type DirectionProperty, type EventKey, type EventKeyMap, JSX, type LocaleProperties, type MaybeElement, type MaybeFn, type NonNullable, type Nullable, type Orientation, type OrientationProperty, type Partial, type Point, type Rect, type Required, type RequiredBy, type Size, type Style };
package/dist/index.d.ts CHANGED
@@ -3,6 +3,9 @@ export { NormalizeProps, PropTypes, createNormalizer } from './prop-types.js';
3
3
  export { createProps } from './create-props.js';
4
4
  import 'csstype';
5
5
 
6
+ type Partial<T> = {
7
+ [K in keyof T]?: T[K] | undefined;
8
+ };
6
9
  type RequiredBy<T, K extends keyof T> = Partial<Omit<T, K>> & Required<Pick<T, K>>;
7
10
  type Nullable<T> = T | null;
8
11
  type NonNullable<T> = T extends null | undefined ? never : T;
@@ -62,4 +65,4 @@ interface Rect extends Size {
62
65
  x: number;
63
66
  }
64
67
 
65
- export { type CommonProperties, type Direction, type DirectionProperty, type EventKey, type EventKeyMap, JSX, type LocaleProperties, type MaybeElement, type MaybeFn, type NonNullable, type Nullable, type Orientation, type OrientationProperty, type Point, type Rect, type Required, type RequiredBy, type Size, type Style };
68
+ export { type CommonProperties, type Direction, type DirectionProperty, type EventKey, type EventKeyMap, JSX, type LocaleProperties, type MaybeElement, type MaybeFn, type NonNullable, type Nullable, type Orientation, type OrientationProperty, type Partial, type Point, type Rect, type Required, type RequiredBy, type Size, type Style };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/types",
3
- "version": "1.43.1",
3
+ "version": "1.43.2",
4
4
  "keywords": [
5
5
  "js",
6
6
  "utils",