bits-ui 0.9.6 → 0.9.7

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.
@@ -1,6 +1,6 @@
1
1
  <script>import { melt } from "@melt-ui/svelte";
2
2
  import { setCtx, getAttrs } from "../ctx.js";
3
- export let kind = "single";
3
+ export let type = "single";
4
4
  export let disabled = void 0;
5
5
  export let loop = void 0;
6
6
  export let value = void 0;
@@ -13,7 +13,7 @@ const {
13
13
  updateOption
14
14
  } = setCtx({
15
15
  disabled,
16
- type: kind,
16
+ type,
17
17
  defaultValue: value,
18
18
  loop,
19
19
  orientation,
@@ -37,7 +37,7 @@ $:
37
37
  $:
38
38
  updateOption("loop", loop);
39
39
  $:
40
- updateOption("type", kind);
40
+ updateOption("type", type);
41
41
  $:
42
42
  updateOption("orientation", orientation);
43
43
  $:
@@ -2,10 +2,10 @@ import type { CreateToggleGroupProps } from "@melt-ui/svelte";
2
2
  import type { AsChild, Expand, HTMLDivAttributes, OmitValue, OnChangeFn } from "../../internal/index.js";
3
3
  import type { HTMLButtonAttributes } from "svelte/elements";
4
4
  import type { CustomEventHandler } from "../../index.js";
5
- type Props<T extends "single" | "multiple"> = Expand<OmitValue<CreateToggleGroupProps> & {
5
+ type Props<T extends "single" | "multiple"> = Expand<OmitValue<CreateToggleGroupProps<T>> & {
6
6
  value?: CreateToggleGroupProps<T>["defaultValue"];
7
7
  onValueChange?: OnChangeFn<CreateToggleGroupProps<T>["defaultValue"]>;
8
- kind?: T;
8
+ type?: T;
9
9
  }> & AsChild & HTMLDivAttributes;
10
10
  type ItemProps = {
11
11
  value: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "exports": {