@react-aria/toolbar
Advanced tools
Comparing version 3.0.0-nightly-0ddbe6f95-241021 to 3.0.0-nightly-10a43de88-241127
@@ -22,4 +22,4 @@ import { AriaLabelingProps, Orientation, RefObject } from "@react-types/shared"; | ||
*/ | ||
export function useToolbar(props: AriaToolbarProps, ref: RefObject<HTMLDivElement | null>): ToolbarAria; | ||
export function useToolbar(props: AriaToolbarProps, ref: RefObject<HTMLElement | null>): ToolbarAria; | ||
//# sourceMappingURL=types.d.ts.map |
var $37ePF$reactariafocus = require("@react-aria/focus"); | ||
var $37ePF$reactariautils = require("@react-aria/utils"); | ||
var $37ePF$react = require("react"); | ||
var $37ePF$reactariautils = require("@react-aria/utils"); | ||
var $37ePF$reactariai18n = require("@react-aria/i18n"); | ||
@@ -82,2 +82,5 @@ | ||
toolbarProps: { | ||
...(0, $37ePF$reactariautils.filterDOMProps)(props, { | ||
labelable: true | ||
}), | ||
role: !isInToolbar ? 'toolbar' : 'group', | ||
@@ -84,0 +87,0 @@ 'aria-orientation': orientation, |
import {createFocusManager as $k3LOe$createFocusManager} from "@react-aria/focus"; | ||
import {useLayoutEffect as $k3LOe$useLayoutEffect, filterDOMProps as $k3LOe$filterDOMProps} from "@react-aria/utils"; | ||
import {useState as $k3LOe$useState, useRef as $k3LOe$useRef} from "react"; | ||
import {useLayoutEffect as $k3LOe$useLayoutEffect} from "@react-aria/utils"; | ||
import {useLocale as $k3LOe$useLocale} from "@react-aria/i18n"; | ||
@@ -76,2 +76,5 @@ | ||
toolbarProps: { | ||
...(0, $k3LOe$filterDOMProps)(props, { | ||
labelable: true | ||
}), | ||
role: !isInToolbar ? 'toolbar' : 'group', | ||
@@ -78,0 +81,0 @@ 'aria-orientation': orientation, |
{ | ||
"name": "@react-aria/toolbar", | ||
"version": "3.0.0-nightly-0ddbe6f95-241021", | ||
"version": "3.0.0-nightly-10a43de88-241127", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,10 +25,10 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/focus": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"@react-aria/i18n": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"@react-aria/utils": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"@react-types/shared": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"@react-aria/focus": "^3.0.0-nightly-10a43de88-241127", | ||
"@react-aria/i18n": "^3.0.0-nightly-10a43de88-241127", | ||
"@react-aria/utils": "^3.0.0-nightly-10a43de88-241127", | ||
"@react-types/shared": "^3.0.0-nightly-10a43de88-241127", | ||
"@swc/helpers": "^0.5.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^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" | ||
}, | ||
@@ -38,3 +38,3 @@ "publishConfig": { | ||
}, | ||
"stableVersion": "3.0.0-beta.10" | ||
"stableVersion": "3.0.0-beta.11" | ||
} |
@@ -15,4 +15,4 @@ /* | ||
import {createFocusManager} from '@react-aria/focus'; | ||
import {filterDOMProps, useLayoutEffect} from '@react-aria/utils'; | ||
import {HTMLAttributes, KeyboardEventHandler, useRef, useState} from 'react'; | ||
import {useLayoutEffect} from '@react-aria/utils'; | ||
import {useLocale} from '@react-aria/i18n'; | ||
@@ -41,3 +41,3 @@ | ||
*/ | ||
export function useToolbar(props: AriaToolbarProps, ref: RefObject<HTMLDivElement | null>): ToolbarAria { | ||
export function useToolbar(props: AriaToolbarProps, ref: RefObject<HTMLElement | null>): ToolbarAria { | ||
const { | ||
@@ -123,2 +123,3 @@ 'aria-label': ariaLabel, | ||
toolbarProps: { | ||
...filterDOMProps(props, {labelable: true}), | ||
role: !isInToolbar ? 'toolbar' : 'group', | ||
@@ -125,0 +126,0 @@ 'aria-orientation': orientation, |
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
Sorry, the diff of this file is not supported yet
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
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
42476
474