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

@react-aria/disclosure

Package Overview
Dependencies
Maintainers
2
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/disclosure - npm Package Compare versions

Comparing version 3.0.0-nightly-262cc758b-241115 to 3.0.0-nightly-326f48154-241212

2

dist/types.d.ts

@@ -24,3 +24,3 @@ import { AriaButtonProps } from "@react-types/button";

* @param state - State for the disclosure, as returned by `useDisclosureState`.
* @param ref - A ref for the disclosure content.
* @param ref - A ref for the disclosure panel.
*/

@@ -27,0 +27,0 @@ export function useDisclosure(props: AriaDisclosureProps, state: DisclosureState, ref: RefObject<Element | null>): DisclosureAria;

@@ -29,3 +29,3 @@ var $l3cx6$reactdom = require("react-dom");

let triggerId = (0, $l3cx6$reactariautils.useId)();
let contentId = (0, $l3cx6$reactariautils.useId)();
let panelId = (0, $l3cx6$reactariautils.useId)();
let isSSR = (0, $l3cx6$reactariassr.useIsSSR)();

@@ -72,3 +72,3 @@ let supportsBeforeMatch = !isSSR && 'onbeforematch' in document.body;

'aria-expanded': state.isExpanded,
'aria-controls': contentId,
'aria-controls': panelId,
onPress: (e)=>{

@@ -83,3 +83,3 @@ if (!isDisabled && e.pointerType !== 'keyboard') state.toggle();

panelProps: {
id: contentId,
id: panelId,
// This can be overridden at the panel element level.

@@ -86,0 +86,0 @@ role: 'group',

@@ -23,3 +23,3 @@ import {flushSync as $6wN6e$flushSync} from "react-dom";

let triggerId = (0, $6wN6e$useId)();
let contentId = (0, $6wN6e$useId)();
let panelId = (0, $6wN6e$useId)();
let isSSR = (0, $6wN6e$useIsSSR)();

@@ -66,3 +66,3 @@ let supportsBeforeMatch = !isSSR && 'onbeforematch' in document.body;

'aria-expanded': state.isExpanded,
'aria-controls': contentId,
'aria-controls': panelId,
onPress: (e)=>{

@@ -77,3 +77,3 @@ if (!isDisabled && e.pointerType !== 'keyboard') state.toggle();

panelProps: {
id: contentId,
id: panelId,
// This can be overridden at the panel element level.

@@ -80,0 +80,0 @@ role: 'group',

{
"name": "@react-aria/disclosure",
"version": "3.0.0-nightly-262cc758b-241115",
"version": "3.0.0-nightly-326f48154-241212",
"description": "Spectrum UI components in React",

@@ -25,21 +25,15 @@ "license": "Apache-2.0",

"dependencies": {
"@react-aria/button": "^3.0.0-nightly-262cc758b-241115",
"@react-aria/selection": "^3.0.0-nightly-262cc758b-241115",
"@react-aria/ssr": "^3.0.0-nightly-262cc758b-241115",
"@react-aria/utils": "^3.0.0-nightly-262cc758b-241115",
"@react-stately/disclosure": "3.0.0-nightly-262cc758b-241115",
"@react-stately/toggle": "^3.0.0-nightly-262cc758b-241115",
"@react-stately/tree": "^3.0.0-nightly-262cc758b-241115",
"@react-types/button": "^3.0.0-nightly-262cc758b-241115",
"@react-types/shared": "^3.0.0-nightly-262cc758b-241115",
"@react-aria/ssr": "3.0.0-nightly-326f48154-241212",
"@react-aria/utils": "3.0.0-nightly-326f48154-241212",
"@react-stately/disclosure": "3.0.0-nightly-326f48154-241212",
"@react-types/button": "3.0.0-nightly-326f48154-241212",
"@swc/helpers": "^0.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
},
"publishConfig": {
"access": "public"
},
"stableVersion": "3.0.0-alpha.1"
}
}

@@ -42,3 +42,3 @@ /*

* @param state - State for the disclosure, as returned by `useDisclosureState`.
* @param ref - A ref for the disclosure content.
* @param ref - A ref for the disclosure panel.
*/

@@ -50,3 +50,3 @@ export function useDisclosure(props: AriaDisclosureProps, state: DisclosureState, ref: RefObject<Element | null>): DisclosureAria {

let triggerId = useId();
let contentId = useId();
let panelId = useId();
let isSSR = useIsSSR();

@@ -100,3 +100,3 @@ let supportsBeforeMatch = !isSSR && 'onbeforematch' in document.body;

'aria-expanded': state.isExpanded,
'aria-controls': contentId,
'aria-controls': panelId,
onPress: (e) => {

@@ -115,3 +115,3 @@ if (!isDisabled && e.pointerType !== 'keyboard') {

panelProps: {
id: contentId,
id: panelId,
// This can be overridden at the panel element level.

@@ -118,0 +118,0 @@ role: 'group',

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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