@kayord/ui 1.1.18 → 1.1.19

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 lang="ts">
2
2
  import * as DropdownMenu from "../../ui/dropdown-menu";
3
- import { Button } from "../../ui/button";
3
+ import { Button, buttonVariants } from "../../ui/button";
4
4
  import EllipsisVerticalIcon from "@lucide/svelte/icons/ellipsis-vertical";
5
5
  import { isActionGroup, isActionType, type ActionsType } from "./types";
6
6
  import Action from "./Action.svelte";
@@ -14,15 +14,13 @@
14
14
  </script>
15
15
 
16
16
  <DropdownMenu.Root>
17
- <DropdownMenu.Trigger>
18
- <Button {variant} {size} class={cn(className)}>
19
- {#if ActionIcon}
20
- <ActionIcon />
21
- {:else}
22
- <EllipsisVerticalIcon class="h-4 w-4" />
23
- {/if}
24
- {text}
25
- </Button>
17
+ <DropdownMenu.Trigger class={cn(buttonVariants({ variant, size }), className)}>
18
+ {#if ActionIcon}
19
+ <ActionIcon />
20
+ {:else}
21
+ <EllipsisVerticalIcon class="h-4 w-4" />
22
+ {/if}
23
+ {text}
26
24
  </DropdownMenu.Trigger>
27
25
  <DropdownMenu.Content>
28
26
  {#each actions as action}
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" generics="T">
2
2
  import * as DropdownMenu from "../../ui/dropdown-menu";
3
- import { Button } from "../../ui/button";
3
+ import { Button, buttonVariants } from "../../ui/button";
4
4
  import { Settings2Icon } from "@lucide/svelte";
5
5
  import type { Table } from "@tanstack/table-core";
6
6
 
@@ -12,10 +12,8 @@
12
12
  </script>
13
13
 
14
14
  <DropdownMenu.Root>
15
- <DropdownMenu.Trigger>
16
- <Button variant="outline" size="sm">
17
- <Settings2Icon class="mr-2 h-4 w-4" /> View
18
- </Button>
15
+ <DropdownMenu.Trigger class={buttonVariants({ variant: "outline", size: "sm" })}>
16
+ <Settings2Icon /> View
19
17
  </DropdownMenu.Trigger>
20
18
  <DropdownMenu.Content>
21
19
  <DropdownMenu.Label>Toggle columns</DropdownMenu.Label>
@@ -24,7 +24,7 @@
24
24
  bind:this={ref}
25
25
  data-slot={dataSlot}
26
26
  class={cn(
27
- "selection:bg-primary dark:bg-input/30 selection:text-primary-foreground border-input ring-offset-background placeholder:text-muted-foreground flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 pt-1.5 text-sm font-medium shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
27
+ "selection:bg-primary dark:bg-input/30 selection:text-primary-foreground border-input ring-offset-background placeholder:text-muted-foreground flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 pt-1.5 text-sm font-medium shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50",
28
28
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
29
29
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
30
30
  className
@@ -3,7 +3,7 @@
3
3
  import type { ComponentProps } from "svelte";
4
4
  import { Input } from "../input/index.js";
5
5
 
6
- let { class: className, ...props }: ComponentProps<typeof Input> = $props();
6
+ let { value = $bindable(), class: className, ...props }: ComponentProps<typeof Input> = $props();
7
7
  </script>
8
8
 
9
9
  <Input
@@ -12,5 +12,6 @@
12
12
  "flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",
13
13
  className
14
14
  )}
15
+ bind:value
15
16
  {...props}
16
17
  />
@@ -6,6 +6,6 @@ declare const InputGroupInput: import("svelte").Component<(Omit<import("svelte/e
6
6
  files?: undefined;
7
7
  })) & {
8
8
  ref?: HTMLElement | null | undefined;
9
- }, {}, "">;
9
+ }, {}, "value">;
10
10
  type InputGroupInput = ReturnType<typeof InputGroupInput>;
11
11
  export default InputGroupInput;
@@ -3,7 +3,7 @@
3
3
  import { Textarea } from "../textarea/index.js";
4
4
  import type { ComponentProps } from "svelte";
5
5
 
6
- let { class: className, ...props }: ComponentProps<typeof Textarea> = $props();
6
+ let { value = $bindable(), class: className, ...props }: ComponentProps<typeof Textarea> = $props();
7
7
  </script>
8
8
 
9
9
  <Textarea
@@ -12,5 +12,6 @@
12
12
  "flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",
13
13
  className
14
14
  )}
15
+ bind:value
15
16
  {...props}
16
17
  />
@@ -1,3 +1,3 @@
1
- declare const InputGroupTextarea: import("svelte").Component<Omit<import("../../../utils.js").WithElementRef<import("svelte/elements").HTMLTextareaAttributes>, "children">, {}, "">;
1
+ declare const InputGroupTextarea: import("svelte").Component<Omit<import("../../../utils.js").WithElementRef<import("svelte/elements").HTMLTextareaAttributes>, "children">, {}, "value">;
2
2
  type InputGroupTextarea = ReturnType<typeof InputGroupTextarea>;
3
3
  export default InputGroupTextarea;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kayord/ui",
3
3
  "private": false,
4
- "version": "1.1.18",
4
+ "version": "1.1.19",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -47,9 +47,9 @@
47
47
  "vaul-svelte": "1.0.0-next.7"
48
48
  },
49
49
  "devDependencies": {
50
- "@lucide/svelte": "^0.544.0",
50
+ "@lucide/svelte": "^0.545.0",
51
51
  "@sveltejs/adapter-auto": "^6.1.1",
52
- "@sveltejs/kit": "^2.44.0",
52
+ "@sveltejs/kit": "^2.46.4",
53
53
  "@sveltejs/package": "^2.5.4",
54
54
  "@sveltejs/vite-plugin-svelte": "^6.2.1",
55
55
  "@tailwindcss/vite": "^4.1.14",
@@ -72,8 +72,8 @@
72
72
  "prettier-plugin-svelte": "^3.4.0",
73
73
  "prettier-plugin-tailwindcss": "^0.6.14",
74
74
  "publint": "^0.3.14",
75
- "svelte": "5.39.9",
76
- "svelte-check": "^4.3.2",
75
+ "svelte": "5.39.11",
76
+ "svelte-check": "^4.3.3",
77
77
  "sveltekit-superforms": "^2.27.2",
78
78
  "tailwindcss": "^4.1.14",
79
79
  "tslib": "^2.8.1",