@pzerelles/headlessui-svelte 2.1.2-next.46 → 2.1.2-next.48

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.
@@ -41,9 +41,7 @@
41
41
  // If we have any of the enter/leave classes
42
42
  Boolean(props.enter || props.enterFrom || props.enterTo || props.leave || props.leaveFrom || props.leaveTo) ||
43
43
  // If the `as` prop is not a Fragment
44
- !props.asChild ||
45
- // If we have a single child, then we can forward the ref directly
46
- props.children !== undefined
44
+ !props.asChild
47
45
  )
48
46
  }
49
47
  </script>
@@ -118,7 +116,7 @@
118
116
  if (!requiresRef) return
119
117
 
120
118
  if (_state === TreeStates.Visible && container.current === null) {
121
- throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")
119
+ throw new Error("Did you forget to passthrough the actual DOM node as `element`?")
122
120
  }
123
121
  })
124
122
 
@@ -7,7 +7,7 @@ declare class __sveltets_Render<TFeature extends RenderFeatures, TSlot extends R
7
7
  children?: import("svelte").Snippet<[TSlot & {
8
8
  props?: Record<string, any>;
9
9
  }]> | undefined;
10
- class?: string | ((bag: TSlot) => string) | null | undefined;
10
+ class?: import("svelte/elements.js").ClassValue | ((bag: TSlot) => string) | null | undefined;
11
11
  } & Expand<((TFeature extends RenderFeatures.Static ? {
12
12
  static?: boolean;
13
13
  } : {}) extends infer T ? T extends (TFeature extends RenderFeatures.Static ? {
@@ -1,5 +1,5 @@
1
1
  import type { Snippet } from "svelte";
2
- import type { SvelteHTMLElements } from "svelte/elements";
2
+ import type { ClassValue, SvelteHTMLElements } from "svelte/elements";
3
3
  export type Expand<T> = T extends infer O ? {
4
4
  [K in keyof O]: O[K];
5
5
  } : never;
@@ -8,7 +8,7 @@ export type Props<TTag extends string | Record<string, any>, TSlot extends Recor
8
8
  children?: Snippet<[TSlot & {
9
9
  props?: Record<string, any>;
10
10
  }]>;
11
- class?: string | null | ((bag: TSlot) => string);
11
+ class?: ClassValue | null | ((bag: TSlot) => string);
12
12
  } & Overrides;
13
13
  export type PropsAsChild<TSlot extends Record<string, any> = {}, Overrides = {}> = {
14
14
  children?: Snippet<[TSlot & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pzerelles/headlessui-svelte",
3
- "version": "2.1.2-next.46",
3
+ "version": "2.1.2-next.48",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",
@@ -29,15 +29,15 @@
29
29
  "!dist/**/*.spec.*"
30
30
  ],
31
31
  "peerDependencies": {
32
- "svelte": "^5.0.0"
32
+ "svelte": "^5.16.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@changesets/cli": "^2.28.1",
36
36
  "@changesets/types": "^6.1.0",
37
- "@playwright/test": "^1.51.0",
37
+ "@playwright/test": "^1.51.1",
38
38
  "@pzerelles/heroicons-svelte": "^2.2.0",
39
39
  "@sveltejs/adapter-auto": "^3.3.1",
40
- "@sveltejs/kit": "^2.19.0",
40
+ "@sveltejs/kit": "^2.20.1",
41
41
  "@sveltejs/package": "^2.3.10",
42
42
  "@sveltejs/vite-plugin-svelte": "^5.0.3",
43
43
  "@testing-library/jest-dom": "^6.6.3",
@@ -56,22 +56,21 @@
56
56
  "prettier-plugin-svelte": "^3.3.3",
57
57
  "prettier-plugin-tailwindcss": "^0.6.11",
58
58
  "publint": "^0.3.9",
59
- "svelte": "^5.23.0",
59
+ "svelte": "^5.23.2",
60
60
  "svelte-check": "^4.1.5",
61
61
  "tailwindcss": "^3.4.17",
62
62
  "tslib": "^2.8.1",
63
63
  "typescript": "^5.8.2",
64
64
  "typescript-eslint": "^8.26.1",
65
- "vite": "^6.2.1",
66
- "vitest": "^3.0.8"
65
+ "vite": "^6.2.2",
66
+ "vitest": "^3.0.9"
67
67
  },
68
68
  "dependencies": {
69
69
  "@floating-ui/core": "^1.6.9",
70
70
  "@floating-ui/dom": "^1.6.13",
71
71
  "@floating-ui/utils": "^0.2.9",
72
- "clsx": "^2.1.1",
73
72
  "esm-env": "^1.2.2",
74
- "nanoid": "^5.1.3"
73
+ "nanoid": "^5.1.5"
75
74
  },
76
75
  "svelte": "./dist/index.js",
77
76
  "types": "./dist/index.d.ts",