Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yamada-ui/use-disclosure

Package Overview
Dependencies
Maintainers
1
Versions
566
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yamada-ui/use-disclosure - npm Package Compare versions

Comparing version 0.0.0-dev-20231019162858 to 0.0.0-dev-20231024081046

18

dist/index.d.ts

@@ -1,17 +0,13 @@

import { Primitive } from '@yamada-ui/utils';
type Args = Array<any> | object | Primitive;
type ChainFunction<T extends Args = any> = (...args: T extends Array<any> ? T : T[]) => void | Promise<void>;
type UseDisclosureProps<T extends Args = any> = {
type UseDisclosureProps<T extends (...args: any[]) => any = () => void> = {
isOpen?: boolean;
defaultIsOpen?: boolean;
onOpen?: ChainFunction<T>;
onClose?: ChainFunction<T>;
onOpen?: T;
onClose?: T;
timing?: 'before' | 'after';
};
declare const useDisclosure: <T extends Args = any>(props?: UseDisclosureProps<T>) => {
declare const useDisclosure: <T extends (...args: any[]) => any = () => void>(props?: UseDisclosureProps<T>) => {
isOpen: boolean;
onOpen: ChainFunction<T>;
onClose: ChainFunction<T>;
onToggle: ChainFunction<T>;
onOpen: T;
onClose: T;
onToggle: T;
};

@@ -18,0 +14,0 @@ type UseDisclosureReturn = ReturnType<typeof useDisclosure>;

{
"name": "@yamada-ui/use-disclosure",
"version": "0.0.0-dev-20231019162858",
"version": "0.0.0-dev-20231024081046",
"description": "Yamada UI useDisclosure custom hook",

@@ -27,3 +27,3 @@ "keywords": [

"dependencies": {
"@yamada-ui/utils": "0.0.0-dev-20231019162858"
"@yamada-ui/utils": "0.3.2"
},

@@ -30,0 +30,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

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