@zag-js/types 2.0.0-next.1 → 2.0.0-next.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.
package/dist/index.d.mts CHANGED
@@ -7,7 +7,7 @@ type RequiredBy<T, K extends keyof T> = Partial<Omit<T, K>> & Required<Pick<T, K
7
7
  type Nullable<T> = T | null;
8
8
  type NonNullable<T> = T extends null | undefined ? never : T;
9
9
  type Required<T> = {
10
- [P in keyof T]-?: NonNullable<T[P]>;
10
+ [P in keyof T]-?: Exclude<T[P], undefined>;
11
11
  };
12
12
  type Direction = "ltr" | "rtl";
13
13
  type Orientation = "horizontal" | "vertical";
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ type RequiredBy<T, K extends keyof T> = Partial<Omit<T, K>> & Required<Pick<T, K
7
7
  type Nullable<T> = T | null;
8
8
  type NonNullable<T> = T extends null | undefined ? never : T;
9
9
  type Required<T> = {
10
- [P in keyof T]-?: NonNullable<T[P]>;
10
+ [P in keyof T]-?: Exclude<T[P], undefined>;
11
11
  };
12
12
  type Direction = "ltr" | "rtl";
13
13
  type Orientation = "horizontal" | "vertical";
package/dist/jsx.d.mts CHANGED
@@ -516,7 +516,7 @@ declare namespace JSX {
516
516
  /** Defines the human readable text alternative of aria-valuenow for a range widget. */
517
517
  "aria-valuetext"?: string | undefined;
518
518
  }
519
- type AriaRole = "alert" | "alertdialog" | "application" | "article" | "banner" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "dialog" | "directory" | "document" | "feed" | "figure" | "form" | "grid" | "gridcell" | "group" | "heading" | "img" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "none" | "note" | "option" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | (string & {});
519
+ type AriaRole = "alert" | "alertdialog" | "application" | "article" | "banner" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "dialog" | "directory" | "document" | "feed" | "figure" | "form" | "grid" | "gridcell" | "group" | "heading" | "img" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "meter" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "none" | "note" | "option" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | (string & {});
520
520
  export interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
521
521
  defaultChecked?: boolean | undefined;
522
522
  defaultValue?: string | number | ReadonlyArray<string> | undefined;
@@ -530,6 +530,7 @@ declare namespace JSX {
530
530
  draggable?: Booleanish | undefined;
531
531
  hidden?: boolean | undefined;
532
532
  id?: string | undefined;
533
+ inert?: boolean | undefined;
533
534
  lang?: string | undefined;
534
535
  placeholder?: string | undefined;
535
536
  slot?: string | undefined;
package/dist/jsx.d.ts CHANGED
@@ -516,7 +516,7 @@ declare namespace JSX {
516
516
  /** Defines the human readable text alternative of aria-valuenow for a range widget. */
517
517
  "aria-valuetext"?: string | undefined;
518
518
  }
519
- type AriaRole = "alert" | "alertdialog" | "application" | "article" | "banner" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "dialog" | "directory" | "document" | "feed" | "figure" | "form" | "grid" | "gridcell" | "group" | "heading" | "img" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "none" | "note" | "option" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | (string & {});
519
+ type AriaRole = "alert" | "alertdialog" | "application" | "article" | "banner" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "dialog" | "directory" | "document" | "feed" | "figure" | "form" | "grid" | "gridcell" | "group" | "heading" | "img" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "meter" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "none" | "note" | "option" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | (string & {});
520
520
  export interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
521
521
  defaultChecked?: boolean | undefined;
522
522
  defaultValue?: string | number | ReadonlyArray<string> | undefined;
@@ -530,6 +530,7 @@ declare namespace JSX {
530
530
  draggable?: Booleanish | undefined;
531
531
  hidden?: boolean | undefined;
532
532
  id?: string | undefined;
533
+ inert?: boolean | undefined;
533
534
  lang?: string | undefined;
534
535
  placeholder?: string | undefined;
535
536
  slot?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/types",
3
- "version": "2.0.0-next.1",
3
+ "version": "2.0.0-next.3",
4
4
  "keywords": [
5
5
  "js",
6
6
  "utils",
@@ -49,7 +49,7 @@
49
49
  "scripts": {
50
50
  "build": "tsup",
51
51
  "test": "vitest --passWithNoTests",
52
- "lint": "eslint src",
52
+ "lint": "oxlint src",
53
53
  "typecheck": "tsc --noEmit"
54
54
  }
55
55
  }