@kayord/ui 3.0.5 → 3.0.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.
- package/dist/components/ui/command/command-input.svelte +6 -3
- package/dist/components/ui/field/field-label.svelte +1 -1
- package/dist/components/ui/field/field-title.svelte +1 -1
- package/dist/components/ui/native-select/native-select-option.svelte +13 -3
- package/dist/components/ui/native-select/native-select-option.svelte.d.ts +1 -1
- package/dist/components/ui/slider/slider.svelte +1 -1
- package/dist/components/ui/tooltip/tooltip.svelte +1 -4
- package/package.json +28 -28
|
@@ -17,12 +17,15 @@
|
|
|
17
17
|
class="bg-input/30 border-input/30 h-8! rounded-lg! shadow-none! *:data-[slot=input-group-addon]:pl-2!"
|
|
18
18
|
>
|
|
19
19
|
<CommandPrimitive.Input
|
|
20
|
+
{value}
|
|
20
21
|
data-slot="command-input"
|
|
21
22
|
class={cn("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", className)}
|
|
22
|
-
bind:ref
|
|
23
23
|
{...restProps}
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
>
|
|
25
|
+
{#snippet child({ props })}
|
|
26
|
+
<InputGroup.Input {...props} bind:value bind:ref />
|
|
27
|
+
{/snippet}
|
|
28
|
+
</CommandPrimitive.Input>
|
|
26
29
|
<InputGroup.Addon>
|
|
27
30
|
<SearchIcon class="size-4 shrink-0 opacity-50" />
|
|
28
31
|
</InputGroup.Addon>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
bind:ref
|
|
11
11
|
data-slot="field-label"
|
|
12
12
|
class={cn(
|
|
13
|
-
"has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5",
|
|
13
|
+
"has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 group/field-label peer/field-label flex w-fit gap-2 leading-snug leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5",
|
|
14
14
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
|
|
15
15
|
className
|
|
16
16
|
)}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
bind:this={ref}
|
|
15
15
|
data-slot="field-label"
|
|
16
16
|
class={cn(
|
|
17
|
-
"flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",
|
|
17
|
+
"flex w-fit items-center gap-2 text-sm leading-snug leading-snug font-medium group-data-[disabled=true]/field:opacity-50",
|
|
18
18
|
className
|
|
19
19
|
)}
|
|
20
20
|
{...restProps}
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { HTMLOptionAttributes } from "svelte/elements";
|
|
3
|
-
import type
|
|
3
|
+
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
4
|
|
|
5
|
-
let {
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
children,
|
|
9
|
+
...restProps
|
|
10
|
+
}: WithElementRef<HTMLOptionAttributes> = $props();
|
|
6
11
|
</script>
|
|
7
12
|
|
|
8
|
-
<option
|
|
13
|
+
<option
|
|
14
|
+
bind:this={ref}
|
|
15
|
+
data-slot="native-select-option"
|
|
16
|
+
class={cn("bg-[Canvas] text-[CanvasText]", className)}
|
|
17
|
+
{...restProps}
|
|
18
|
+
>
|
|
9
19
|
{@render children?.()}
|
|
10
20
|
</option>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLOptionAttributes } from "svelte/elements";
|
|
2
|
-
import type
|
|
2
|
+
import { type WithElementRef } from "../../../utils.js";
|
|
3
3
|
declare const NativeSelectOption: import("svelte").Component<WithElementRef<HTMLOptionAttributes>, {}, "ref">;
|
|
4
4
|
type NativeSelectOption = ReturnType<typeof NativeSelectOption>;
|
|
5
5
|
export default NativeSelectOption;
|
|
@@ -39,7 +39,7 @@ get along, so we shut typescript up by casting `value` to `never`.
|
|
|
39
39
|
class={cn("bg-primary absolute select-none data-horizontal:h-full data-vertical:w-full")}
|
|
40
40
|
/>
|
|
41
41
|
</span>
|
|
42
|
-
{#each thumbItems as thumb (thumb)}
|
|
42
|
+
{#each thumbItems as thumb (thumb.index)}
|
|
43
43
|
<SliderPrimitive.Thumb
|
|
44
44
|
data-slot="slider-thumb"
|
|
45
45
|
index={thumb.index}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Tooltip as TooltipPrimitive } from "bits-ui";
|
|
3
|
-
import TooltipProvider from "./tooltip-provider.svelte";
|
|
4
3
|
|
|
5
4
|
let { open = $bindable(false), ...restProps }: TooltipPrimitive.RootProps = $props();
|
|
6
5
|
</script>
|
|
7
6
|
|
|
8
|
-
<
|
|
9
|
-
<TooltipPrimitive.Root bind:open {...restProps} />
|
|
10
|
-
</TooltipProvider>
|
|
7
|
+
<TooltipPrimitive.Root bind:open {...restProps} />
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kayord/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.7",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/kayordDX/ui"
|
|
@@ -105,55 +105,55 @@
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"dependencies": {
|
|
108
|
-
"bits-ui": "2.
|
|
108
|
+
"bits-ui": "2.18.1",
|
|
109
109
|
"clsx": "^2.1.1",
|
|
110
|
-
"tailwind-merge": "^3.
|
|
110
|
+
"tailwind-merge": "^3.6.0",
|
|
111
111
|
"tailwind-variants": "^3.2.2"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
|
-
"@eslint/compat": "^2.0
|
|
114
|
+
"@eslint/compat": "^2.1.0",
|
|
115
115
|
"@eslint/js": "^10.0.1",
|
|
116
|
-
"@internationalized/date": "^3.12.
|
|
117
|
-
"@lucide/svelte": "^1.
|
|
116
|
+
"@internationalized/date": "^3.12.1",
|
|
117
|
+
"@lucide/svelte": "^1.14.0",
|
|
118
118
|
"@sveltejs/adapter-auto": "^7.0.1",
|
|
119
|
-
"@sveltejs/kit": "^2.
|
|
119
|
+
"@sveltejs/kit": "^2.59.1",
|
|
120
120
|
"@sveltejs/package": "^2.5.7",
|
|
121
|
-
"@sveltejs/vite-plugin-svelte": "
|
|
122
|
-
"@tailwindcss/vite": "^4.
|
|
121
|
+
"@sveltejs/vite-plugin-svelte": "7.1.2",
|
|
122
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
123
123
|
"@types/d3-scale": "^4.0.9",
|
|
124
124
|
"@types/d3-shape": "^3.1.8",
|
|
125
|
-
"@vitest/browser": "^4.1.
|
|
126
|
-
"@vitest/browser-playwright": "^4.1.
|
|
125
|
+
"@vitest/browser": "^4.1.5",
|
|
126
|
+
"@vitest/browser-playwright": "^4.1.5",
|
|
127
127
|
"d3-scale": "^4.0.2",
|
|
128
128
|
"d3-shape": "^3.2.0",
|
|
129
129
|
"embla-carousel-svelte": "^8.6.0",
|
|
130
|
-
"eslint": "^10.
|
|
130
|
+
"eslint": "^10.3.0",
|
|
131
131
|
"eslint-config-prettier": "^10.1.8",
|
|
132
|
-
"eslint-plugin-svelte": "^3.17.
|
|
132
|
+
"eslint-plugin-svelte": "^3.17.1",
|
|
133
133
|
"formsnap": "^2.0.1",
|
|
134
|
-
"globals": "^17.
|
|
135
|
-
"layerchart": "2.0.0-next.
|
|
134
|
+
"globals": "^17.6.0",
|
|
135
|
+
"layerchart": "2.0.0-next.62",
|
|
136
136
|
"mode-watcher": "^1.1.0",
|
|
137
137
|
"paneforge": "^1.0.2",
|
|
138
|
-
"prettier": "^3.8.
|
|
138
|
+
"prettier": "^3.8.3",
|
|
139
139
|
"prettier-plugin-svelte": "^3.5.1",
|
|
140
|
-
"prettier-plugin-tailwindcss": "^0.
|
|
141
|
-
"publint": "^0.3.
|
|
140
|
+
"prettier-plugin-tailwindcss": "^0.8.0",
|
|
141
|
+
"publint": "^0.3.20",
|
|
142
142
|
"runed": "^0.37.1",
|
|
143
|
-
"svelte": "5.55.
|
|
144
|
-
"svelte-check": "^4.4.
|
|
145
|
-
"svelte-sonner": "^1.1.
|
|
143
|
+
"svelte": "5.55.5",
|
|
144
|
+
"svelte-check": "^4.4.8",
|
|
145
|
+
"svelte-sonner": "^1.1.1",
|
|
146
146
|
"sveltekit-superforms": "^2.30.1",
|
|
147
|
-
"tailwindcss": "^4.
|
|
147
|
+
"tailwindcss": "^4.3.0",
|
|
148
148
|
"tslib": "^2.8.1",
|
|
149
149
|
"tw-animate-css": "1.4.0",
|
|
150
|
-
"typescript": "^6.0.
|
|
151
|
-
"typescript-eslint": "^8.
|
|
150
|
+
"typescript": "^6.0.3",
|
|
151
|
+
"typescript-eslint": "^8.59.2",
|
|
152
152
|
"vaul-svelte": "1.0.0-next.7",
|
|
153
|
-
"vite": "^8.0.
|
|
154
|
-
"vitest": "^4.1.
|
|
155
|
-
"vitest-browser-svelte": "^2.1.
|
|
156
|
-
"zod": "4.3
|
|
153
|
+
"vite": "^8.0.11",
|
|
154
|
+
"vitest": "^4.1.5",
|
|
155
|
+
"vitest-browser-svelte": "^2.1.1",
|
|
156
|
+
"zod": "4.4.3"
|
|
157
157
|
},
|
|
158
158
|
"svelte": "./dist/index.js",
|
|
159
159
|
"types": "./dist/index.d.ts",
|