@melt-ui/svelte
Advanced tools
Comparing version 0.62.1 to 0.63.0
@@ -1,2 +0,2 @@ | ||
import { addMeltEventListener, builder, createElHelpers, derivedVisible, effect, executeCallbacks, getPortalDestination, handleFocus, isBrowser, isHTMLElement, kbd, noop, omit, overridable, removeScroll, styleToString, toWritableStores, } from '../../internal/helpers/index.js'; | ||
import { addMeltEventListener, builder, createElHelpers, derivedVisible, effect, executeCallbacks, getPortalDestination, handleFocus, isBrowser, isElement, isHTMLElement, kbd, noop, omit, overridable, removeScroll, styleToString, toWritableStores, } from '../../internal/helpers/index.js'; | ||
import { usePopper } from '../../internal/actions/index.js'; | ||
@@ -84,3 +84,6 @@ import { safeOnMount } from '../../internal/helpers/lifecycle.js'; | ||
? { | ||
handler: () => { | ||
handler: (e) => { | ||
const target = e.target; | ||
if (isElement(target) && target.id === get(ids.trigger)) | ||
return; | ||
handleClose(); | ||
@@ -87,0 +90,0 @@ }, |
@@ -9,3 +9,3 @@ /// <reference types="svelte" /> | ||
disabled: boolean | undefined; | ||
'aria-disabled': string | undefined; | ||
'aria-disabled': "true" | undefined; | ||
'data-orientation': import("./types.js").SliderOrientation; | ||
@@ -25,2 +25,3 @@ style: string | undefined; | ||
readonly 'data-melt-part': "thumb"; | ||
readonly 'data-value': number; | ||
readonly style: string; | ||
@@ -42,2 +43,3 @@ readonly tabindex: 0 | -1; | ||
'data-bounded': boolean | undefined; | ||
'data-value': number; | ||
style: string; | ||
@@ -44,0 +46,0 @@ }, string>; |
@@ -127,3 +127,4 @@ import { addEventListener, addMeltEventListener, ariaDisabledAttr, builder, createElHelpers, disabledAttr, effect, executeCallbacks, getElementByMeltId, isBrowser, isHTMLElement, kbd, omit, overridable, snapValueToStep, styleToString, toWritableStores, } from '../../internal/helpers/index.js'; | ||
} | ||
const thumbPosition = `${$position($value[index])}%`; | ||
const thumbValue = $value[index]; | ||
const thumbPosition = `${$position(thumbValue)}%`; | ||
return { | ||
@@ -133,4 +134,5 @@ role: 'slider', | ||
'aria-valuemax': $max, | ||
'aria-valuenow': $value[index], | ||
'aria-valuenow': thumbValue, | ||
'data-melt-part': 'thumb', | ||
'data-value': thumbValue, | ||
style: styleToString({ | ||
@@ -277,2 +279,3 @@ position: 'absolute', | ||
'data-bounded': bounded ? true : undefined, | ||
'data-value': tickValue, | ||
style: styleToString(style), | ||
@@ -383,3 +386,3 @@ }; | ||
value.update((prev) => { | ||
return [...prev].map(gcv); | ||
return prev.map(gcv); | ||
}); | ||
@@ -386,0 +389,0 @@ } |
{ | ||
"name": "@melt-ui/svelte", | ||
"version": "0.62.1", | ||
"version": "0.63.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "github:melt-ui/melt-ui", |
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
1013105
22909