@pzerelles/headlessui-svelte 2.1.2-next.56 → 2.1.2-next.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -122,7 +122,8 @@ export function useTransition(options) {
122
122
  }
123
123
  }
124
124
  inFlight = false;
125
- flags = 0;
125
+ // keep closed state if show is false for data-closed to work correctly
126
+ flags = show ? 0 : TransitionState.Closed;
126
127
  if (!show && !hasChildren(nestingBag)) {
127
128
  visible = false;
128
129
  }
package/dist/index.d.ts CHANGED
@@ -20,7 +20,10 @@ export * from "./tabs/index.js";
20
20
  export * from "./textarea/index.js";
21
21
  export * from "./transition/index.js";
22
22
  export * from "./utils/index.js";
23
- export * from "./hooks/use-id.js";
23
+ export * from "./hooks/use-active-press.svelte.js";
24
24
  export * from "./hooks/use-disabled.js";
25
- export * from "./hooks/use-outside-click.svelte.js";
26
25
  export * from "./hooks/use-escape.svelte.js";
26
+ export * from "./hooks/use-focus-ring.svelte.js";
27
+ export * from "./hooks/use-hover.svelte.js";
28
+ export * from "./hooks/use-id.js";
29
+ export * from "./hooks/use-outside-click.svelte.js";
package/dist/index.js CHANGED
@@ -20,7 +20,10 @@ export * from "./tabs/index.js";
20
20
  export * from "./textarea/index.js";
21
21
  export * from "./transition/index.js";
22
22
  export * from "./utils/index.js";
23
- export * from "./hooks/use-id.js";
23
+ export * from "./hooks/use-active-press.svelte.js";
24
24
  export * from "./hooks/use-disabled.js";
25
- export * from "./hooks/use-outside-click.svelte.js";
26
25
  export * from "./hooks/use-escape.svelte.js";
26
+ export * from "./hooks/use-focus-ring.svelte.js";
27
+ export * from "./hooks/use-hover.svelte.js";
28
+ export * from "./hooks/use-id.js";
29
+ export * from "./hooks/use-outside-click.svelte.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pzerelles/headlessui-svelte",
3
- "version": "2.1.2-next.56",
3
+ "version": "2.1.2-next.58",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",
@@ -32,42 +32,41 @@
32
32
  "svelte": "^5.16.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@changesets/cli": "^2.28.1",
35
+ "@changesets/cli": "^2.29.4",
36
36
  "@changesets/types": "^6.1.0",
37
- "@playwright/test": "^1.51.1",
38
- "@pzerelles/heroicons-svelte": "^2.2.0",
37
+ "@playwright/test": "^1.52.0",
38
+ "@pzerelles/heroicons-svelte": "^2.2.1",
39
39
  "@sveltejs/adapter-auto": "^3.3.1",
40
- "@sveltejs/kit": "^2.20.1",
41
- "@sveltejs/package": "^2.3.10",
40
+ "@sveltejs/kit": "^2.21.0",
41
+ "@sveltejs/package": "^2.3.11",
42
42
  "@sveltejs/vite-plugin-svelte": "^5.0.3",
43
+ "@tailwindcss/vite": "^4.1.6",
43
44
  "@testing-library/jest-dom": "^6.6.3",
44
45
  "@testing-library/svelte": "^5.2.7",
45
46
  "@types/eslint": "^9.6.1",
46
- "@types/node": "^22.13.10",
47
- "autoprefixer": "^10.4.21",
48
- "eslint": "^9.22.0",
47
+ "@types/node": "^22.15.18",
48
+ "eslint": "^9.26.0",
49
49
  "eslint-config-prettier": "^9.1.0",
50
50
  "eslint-plugin-svelte": "^2.46.1",
51
- "globals": "^16.0.0",
51
+ "globals": "^16.1.0",
52
52
  "jsdom": "^25.0.1",
53
53
  "outdent": "^0.8.0",
54
- "postcss": "^8.5.3",
55
54
  "prettier": "^3.5.3",
56
55
  "prettier-plugin-svelte": "^3.3.3",
57
56
  "prettier-plugin-tailwindcss": "^0.6.11",
58
- "publint": "^0.3.9",
59
- "svelte": "^5.23.2",
60
- "svelte-check": "^4.1.5",
61
- "tailwindcss": "^3.4.17",
57
+ "publint": "^0.3.12",
58
+ "svelte": "^5.28.6",
59
+ "svelte-check": "^4.1.7",
60
+ "tailwindcss": "^4.1.6",
62
61
  "tslib": "^2.8.1",
63
- "typescript": "^5.8.2",
64
- "typescript-eslint": "^8.26.1",
65
- "vite": "^6.2.2",
66
- "vitest": "^3.0.9"
62
+ "typescript": "^5.8.3",
63
+ "typescript-eslint": "^8.32.1",
64
+ "vite": "^6.3.5",
65
+ "vitest": "^3.1.3"
67
66
  },
68
67
  "dependencies": {
69
- "@floating-ui/core": "^1.6.9",
70
- "@floating-ui/dom": "^1.6.13",
68
+ "@floating-ui/core": "^1.7.0",
69
+ "@floating-ui/dom": "^1.7.0",
71
70
  "@floating-ui/utils": "^0.2.9",
72
71
  "esm-env": "^1.2.2",
73
72
  "nanoid": "^5.1.5"