@pzerelles/headlessui-svelte 2.1.2-next.40 → 2.1.2-next.42

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.
@@ -329,6 +329,7 @@
329
329
  "aria-multiselectable": data.mode === ValueMode.Multi ? true : undefined,
330
330
  "aria-labelledby": labelledby,
331
331
  "aria-orientation": data.orientation,
332
+ onkeydown: handleKeyDown,
332
333
  role: "listbox",
333
334
  // When the `Listbox` is closed, it should not be focusable. This allows us
334
335
  // to skip focusing the `ListboxOptions` when pressing the tab key on an
@@ -45,6 +45,7 @@
45
45
  disabled: theirDisabled = false,
46
46
  invalid = false,
47
47
  autofocus = false,
48
+ value = $bindable(),
48
49
  ...theirProps
49
50
  }: SelectProps = $props()
50
51
 
@@ -100,4 +101,12 @@
100
101
  } satisfies SelectRenderPropArg)
101
102
  </script>
102
103
 
103
- <ElementOrComponent {ourProps} {theirProps} {slot} defaultTag={DEFAULT_SELECT_TAG} name="Select" bind:element />
104
+ <ElementOrComponent
105
+ {ourProps}
106
+ {theirProps}
107
+ {slot}
108
+ defaultTag={DEFAULT_SELECT_TAG}
109
+ name="Select"
110
+ bind:element
111
+ bind:value
112
+ />
@@ -16,6 +16,6 @@ export type SelectOwnProps = {
16
16
  autofocus?: boolean;
17
17
  };
18
18
  export type SelectProps = Props<typeof DEFAULT_SELECT_TAG, SelectRenderPropArg, SelectOwnProps>;
19
- declare const Select: import("svelte").Component<SelectProps, {}, "element">;
19
+ declare const Select: import("svelte").Component<SelectProps, {}, "element" | "value">;
20
20
  type Select = ReturnType<typeof Select>;
21
21
  export default Select;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pzerelles/headlessui-svelte",
3
- "version": "2.1.2-next.40",
3
+ "version": "2.1.2-next.42",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
@@ -16,20 +16,20 @@
16
16
  "svelte": "^5.0.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@changesets/cli": "^2.27.11",
19
+ "@changesets/cli": "^2.27.12",
20
20
  "@changesets/types": "^6.0.0",
21
- "@playwright/test": "^1.49.1",
21
+ "@playwright/test": "^1.50.0",
22
22
  "@pzerelles/heroicons-svelte": "^2.1.5",
23
23
  "@sveltejs/adapter-auto": "^3.3.1",
24
- "@sveltejs/kit": "^2.15.3",
25
- "@sveltejs/package": "^2.3.7",
24
+ "@sveltejs/kit": "^2.16.1",
25
+ "@sveltejs/package": "^2.3.9",
26
26
  "@sveltejs/vite-plugin-svelte": "^4.0.4",
27
27
  "@testing-library/jest-dom": "^6.6.3",
28
28
  "@testing-library/svelte": "^5.2.6",
29
29
  "@types/eslint": "^9.6.1",
30
- "@types/node": "^20.17.13",
30
+ "@types/node": "^20.17.16",
31
31
  "autoprefixer": "^10.4.20",
32
- "eslint": "^9.18.0",
32
+ "eslint": "^9.19.0",
33
33
  "eslint-config-prettier": "^9.1.0",
34
34
  "eslint-plugin-svelte": "^2.46.1",
35
35
  "globals": "^15.14.0",
@@ -38,15 +38,15 @@
38
38
  "postcss": "^8.5.1",
39
39
  "prettier": "^3.4.2",
40
40
  "prettier-plugin-svelte": "^3.3.3",
41
- "prettier-plugin-tailwindcss": "^0.6.9",
41
+ "prettier-plugin-tailwindcss": "^0.6.11",
42
42
  "publint": "^0.3.2",
43
- "svelte": "^5.18.0",
43
+ "svelte": "^5.19.6",
44
44
  "svelte-check": "^4.1.4",
45
45
  "tailwindcss": "^3.4.17",
46
46
  "tslib": "^2.8.1",
47
47
  "typescript": "^5.7.3",
48
- "typescript-eslint": "^8.20.0",
49
- "vite": "^5.4.11",
48
+ "typescript-eslint": "^8.22.0",
49
+ "vite": "^5.4.14",
50
50
  "vitest": "^2.1.8"
51
51
  },
52
52
  "dependencies": {