@chakra-ui/dom-utils
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -1,25 +0,4 @@ | ||
declare const hasDisplayNone: (element: HTMLElement) => boolean; | ||
declare const hasTabIndex: (element: HTMLElement) => boolean; | ||
declare const hasNegativeTabIndex: (element: HTMLElement) => boolean; | ||
declare function isDisabled(element: HTMLElement): boolean; | ||
interface FocusableElement { | ||
focus(options?: FocusOptions): void; | ||
} | ||
declare function isInputElement(element: FocusableElement): element is HTMLInputElement; | ||
declare function isActiveElement(element: FocusableElement): boolean; | ||
declare function hasFocusWithin(element: HTMLElement): boolean; | ||
declare function isHidden(element: HTMLElement): boolean; | ||
declare function isContentEditable(element: HTMLElement): boolean; | ||
declare function isFocusable(element: HTMLElement): boolean; | ||
declare function isTabbable(element?: HTMLElement | null): boolean; | ||
export { FocusableElement, hasDisplayNone, hasFocusWithin, hasNegativeTabIndex, hasTabIndex, isActiveElement, isContentEditable, isDisabled, isFocusable, isHidden, isInputElement, isTabbable } from './tabbable.js'; | ||
export { contains, getActiveElement, getEventWindow, getOwnerDocument, getOwnerWindow, isBrowser, isElement, isHTMLElement } from './dom.js'; | ||
declare function isElement(el: any): el is Element; | ||
declare function isHTMLElement(el: any): el is HTMLElement; | ||
declare function getOwnerWindow(node?: Element | null): typeof globalThis; | ||
declare function getOwnerDocument(node?: Element | null): Document; | ||
declare function getEventWindow(event: Event): Window & typeof globalThis; | ||
declare function isBrowser(): boolean; | ||
declare function getActiveElement(node?: HTMLElement): HTMLElement; | ||
declare function contains(parent: HTMLElement | null, child: HTMLElement): boolean; | ||
declare function getAllFocusable<T extends HTMLElement>(container: T): T[]; | ||
@@ -33,2 +12,2 @@ declare function getFirstFocusable<T extends HTMLElement>(container: T): T | null; | ||
export { FocusableElement, contains, getActiveElement, getAllFocusable, getAllTabbable, getEventWindow, getFirstFocusable, getFirstTabbableIn, getLastTabbableIn, getNextTabbable, getOwnerDocument, getOwnerWindow, getPreviousTabbable, hasDisplayNone, hasFocusWithin, hasNegativeTabIndex, hasTabIndex, isActiveElement, isBrowser, isContentEditable, isDisabled, isElement, isFocusable, isHTMLElement, isHidden, isInputElement, isTabbable }; | ||
export { getAllFocusable, getAllTabbable, getFirstFocusable, getFirstTabbableIn, getLastTabbableIn, getNextTabbable, getPreviousTabbable }; |
{ | ||
"name": "@chakra-ui/dom-utils", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "", | ||
@@ -11,3 +11,3 @@ "keywords": [ | ||
"license": "MIT", | ||
"main": "dist/index.cjs.js", | ||
"main": "dist/index.js", | ||
"sideEffects": false, | ||
@@ -31,9 +31,18 @@ "files": [ | ||
}, | ||
"module": "dist/index.esm.js", | ||
"clean-package": "../../../clean-package.config.json", | ||
"tsup": { | ||
"clean": true, | ||
"target": "es2019", | ||
"format": [ | ||
"cjs", | ||
"esm" | ||
] | ||
}, | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.esm.js", | ||
"require": "./dist/index.cjs.js", | ||
"types": "./dist/index.d.ts" | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
}, | ||
@@ -43,8 +52,8 @@ "./package.json": "./package.json" | ||
"scripts": { | ||
"build": "tsup src/index.ts --format=esm,cjs --dts", | ||
"build": "tsup src --dts", | ||
"dev": "pnpm build:fast -- --watch", | ||
"clean": "rimraf dist .turbo", | ||
"typecheck": "tsc --noEmit", | ||
"build:fast": "tsup src/index.ts --format=esm,cjs" | ||
"build:fast": "tsup src" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26865
14
724
1