@zag-js/collapsible
Advanced tools
Comparing version 0.0.0-dev-20240223160309 to 0.0.0-dev-20240225083948
@@ -207,3 +207,3 @@ "use strict"; | ||
const animationName = (0, import_dom_query3.getComputedStyle)(contentEl).animationName; | ||
const hasNoAnimation = animationName === "none" || animationName === ""; | ||
const hasNoAnimation = !animationName || animationName === "none"; | ||
if (hasNoAnimation) { | ||
@@ -210,0 +210,0 @@ send({ type: "ANIMATION.END" }); |
{ | ||
"name": "@zag-js/collapsible", | ||
"version": "0.0.0-dev-20240223160309", | ||
"version": "0.0.0-dev-20240225083948", | ||
"description": "Core logic for the collapsible widget implemented as a state machine", | ||
@@ -31,7 +31,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/anatomy": "0.0.0-dev-20240223160309", | ||
"@zag-js/core": "0.0.0-dev-20240223160309", | ||
"@zag-js/dom-query": "0.0.0-dev-20240223160309", | ||
"@zag-js/utils": "0.0.0-dev-20240223160309", | ||
"@zag-js/types": "0.0.0-dev-20240223160309" | ||
"@zag-js/anatomy": "0.0.0-dev-20240225083948", | ||
"@zag-js/core": "0.0.0-dev-20240225083948", | ||
"@zag-js/dom-query": "0.0.0-dev-20240225083948", | ||
"@zag-js/utils": "0.0.0-dev-20240225083948", | ||
"@zag-js/types": "0.0.0-dev-20240225083948" | ||
}, | ||
@@ -38,0 +38,0 @@ "devDependencies": { |
@@ -115,4 +115,3 @@ import { createMachine, ref } from "@zag-js/core" | ||
const animationName = getComputedStyle(contentEl).animationName | ||
const hasNoAnimation = animationName === "none" || animationName === "" | ||
const hasNoAnimation = !animationName || animationName === "none" | ||
if (hasNoAnimation) { | ||
@@ -119,0 +118,0 @@ send({ type: "ANIMATION.END" }) |
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
66310
+ Added@zag-js/anatomy@0.0.0-dev-20240225083948(transitive)
+ Added@zag-js/core@0.0.0-dev-20240225083948(transitive)
+ Added@zag-js/dom-query@0.0.0-dev-20240225083948(transitive)
+ Added@zag-js/store@0.0.0-dev-20240225083948(transitive)
+ Added@zag-js/types@0.0.0-dev-20240225083948(transitive)
+ Added@zag-js/utils@0.0.0-dev-20240225083948(transitive)
- Removed@zag-js/anatomy@0.0.0-dev-20240223160309(transitive)
- Removed@zag-js/core@0.0.0-dev-20240223160309(transitive)
- Removed@zag-js/dom-query@0.0.0-dev-20240223160309(transitive)
- Removed@zag-js/store@0.0.0-dev-20240223160309(transitive)
- Removed@zag-js/types@0.0.0-dev-20240223160309(transitive)
- Removed@zag-js/utils@0.0.0-dev-20240223160309(transitive)