@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.0.0-nightly-f90799b33-241206", | ||
"version": "3.0.0-nightly-f90f4899f-250227", | ||
"description": "Slider", | ||
@@ -25,19 +25,18 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/focus": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-aria/i18n": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-aria/interactions": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-aria/label": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-aria/utils": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-stately/slider": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-types/shared": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-types/slider": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-aria/i18n": "3.0.0-nightly-f90f4899f-250227", | ||
"@react-aria/interactions": "3.0.0-nightly-f90f4899f-250227", | ||
"@react-aria/label": "3.0.0-nightly-f90f4899f-250227", | ||
"@react-aria/utils": "3.0.0-nightly-f90f4899f-250227", | ||
"@react-stately/slider": "3.0.0-nightly-f90f4899f-250227", | ||
"@react-types/shared": "3.0.0-nightly-f90f4899f-250227", | ||
"@react-types/slider": "3.0.0-nightly-f90f4899f-250227", | ||
"@swc/helpers": "^0.5.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" | ||
"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.7.14" | ||
} | ||
} |
@@ -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
143693
-0.18%1645
-0.24%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated