@react-aria/slider
Advanced tools
Comparing version
var $28db8d634be2fa58$exports = require("./utils.main.js"); | ||
var $cqSUd$reactariautils = require("@react-aria/utils"); | ||
var $cqSUd$react = require("react"); | ||
var $cqSUd$reactariafocus = require("@react-aria/focus"); | ||
var $cqSUd$reactariainteractions = require("@react-aria/interactions"); | ||
@@ -21,3 +20,2 @@ var $cqSUd$reactarialabel = require("@react-aria/label"); | ||
function $5eb806b626475377$export$8d15029008292ae(opts, state) { | ||
@@ -107,3 +105,3 @@ let { index: index = 0, isRequired: isRequired, validationState: validationState, isInvalid: isInvalid, trackRef: trackRef, inputRef: inputRef, orientation: orientation = state.orientation, name: name } = opts; | ||
state.setThumbEditable(index, !isDisabled); | ||
const { focusableProps: focusableProps } = (0, $cqSUd$reactariafocus.useFocusable)((0, $cqSUd$reactariautils.mergeProps)(opts, { | ||
const { focusableProps: focusableProps } = (0, $cqSUd$reactariainteractions.useFocusable)((0, $cqSUd$reactariautils.mergeProps)(opts, { | ||
onFocus: ()=>state.setFocusedThumb(index), | ||
@@ -110,0 +108,0 @@ onBlur: ()=>state.setFocusedThumb(undefined) |
import {getSliderThumbId as $aa519ee6cf463259$export$68e648cbec363a18, sliderData as $aa519ee6cf463259$export$d6c8d9636a3dc49c} from "./utils.module.js"; | ||
import {useGlobalListeners as $lSlq7$useGlobalListeners, focusWithoutScrolling as $lSlq7$focusWithoutScrolling, clamp as $lSlq7$clamp, mergeProps as $lSlq7$mergeProps, useFormReset as $lSlq7$useFormReset} from "@react-aria/utils"; | ||
import {useCallback as $lSlq7$useCallback, useEffect as $lSlq7$useEffect, useRef as $lSlq7$useRef} from "react"; | ||
import {useFocusable as $lSlq7$useFocusable} from "@react-aria/focus"; | ||
import {useKeyboard as $lSlq7$useKeyboard, useMove as $lSlq7$useMove} from "@react-aria/interactions"; | ||
import {useKeyboard as $lSlq7$useKeyboard, useMove as $lSlq7$useMove, useFocusable as $lSlq7$useFocusable} from "@react-aria/interactions"; | ||
import {useLabel as $lSlq7$useLabel} from "@react-aria/label"; | ||
@@ -15,3 +14,2 @@ import {useLocale as $lSlq7$useLocale} from "@react-aria/i18n"; | ||
function $47b897dc8cdb026b$export$8d15029008292ae(opts, state) { | ||
@@ -18,0 +16,0 @@ let { index: index = 0, isRequired: isRequired, validationState: validationState, isInvalid: isInvalid, trackRef: trackRef, inputRef: inputRef, orientation: orientation = state.orientation, name: name } = opts; |
{ | ||
"name": "@react-aria/slider", | ||
"version": "3.7.15", | ||
"version": "3.7.16", | ||
"description": "Slider", | ||
@@ -25,10 +25,9 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/focus": "^3.19.1", | ||
"@react-aria/i18n": "^3.12.5", | ||
"@react-aria/interactions": "^3.23.0", | ||
"@react-aria/label": "^3.7.14", | ||
"@react-aria/utils": "^3.27.0", | ||
"@react-stately/slider": "^3.6.1", | ||
"@react-types/shared": "^3.27.0", | ||
"@react-types/slider": "^3.7.8", | ||
"@react-aria/i18n": "^3.12.6", | ||
"@react-aria/interactions": "^3.24.0", | ||
"@react-aria/label": "^3.7.15", | ||
"@react-aria/utils": "^3.28.0", | ||
"@react-stately/slider": "^3.6.2", | ||
"@react-types/shared": "^3.28.0", | ||
"@react-types/slider": "^3.7.9", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -43,3 +42,3 @@ }, | ||
}, | ||
"gitHead": "09e7f44bebdc9d89122926b2b439a0a38a2814ea" | ||
"gitHead": "4d3c72c94eea2d72eb3a0e7d56000c6ef7e39726" | ||
} |
@@ -7,4 +7,3 @@ import {AriaSliderThumbProps} from '@react-types/slider'; | ||
import {SliderState} from '@react-stately/slider'; | ||
import {useFocusable} from '@react-aria/focus'; | ||
import {useKeyboard, useMove} from '@react-aria/interactions'; | ||
import {useFocusable, useKeyboard, useMove} from '@react-aria/interactions'; | ||
import {useLabel} from '@react-aria/label'; | ||
@@ -11,0 +10,0 @@ import {useLocale} from '@react-aria/i18n'; |
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
10
-9.09%154899
-0.17%1645
-0.24%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated