Socket
Socket
Sign inDemoInstall

@chakra-ui/dom-utils

Package Overview
Dependencies
Maintainers
3
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/dom-utils - npm Package Compare versions

Comparing version 0.0.0-dev-20221108124603 to 0.0.0-dev-20221223180742

dist/chunk-3XANSPY5.mjs

27

dist/index.d.ts

@@ -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": "0.0.0-dev-20221108124603",
"version": "0.0.0-dev-20221223180742",
"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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc