@kayord/ui 3.0.4 → 3.0.6

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.
@@ -39,7 +39,7 @@
39
39
  aria-hidden="true"
40
40
  >
41
41
  {monthItems.find((item) => item.value === value)?.label || selectedMonthItem.label}
42
- <ChevronDownIcon class="size-4" />
42
+ <ChevronDownIcon class={cn("size-4", className)} />
43
43
  </span>
44
44
  {/snippet}
45
45
  </CalendarPrimitive.MonthSelect>
@@ -16,7 +16,7 @@
16
16
  </script>
17
17
 
18
18
  {#snippet Fallback()}
19
- <ChevronRightIcon class="size-4" />
19
+ <ChevronRightIcon class={cn("size-4", className)} />
20
20
  {/snippet}
21
21
 
22
22
  <CalendarPrimitive.NextButton
@@ -16,7 +16,7 @@
16
16
  </script>
17
17
 
18
18
  {#snippet Fallback()}
19
- <ChevronLeftIcon class="size-4" />
19
+ <ChevronLeftIcon class={cn("size-4", className)} />
20
20
  {/snippet}
21
21
 
22
22
  <CalendarPrimitive.PrevButton
@@ -38,7 +38,7 @@
38
38
  aria-hidden="true"
39
39
  >
40
40
  {yearItems.find((item) => item.value === value)?.label || selectedYearItem.label}
41
- <ChevronDownIcon class="size-4" />
41
+ <ChevronDownIcon class={cn("size-4", className)} />
42
42
  </span>
43
43
  {/snippet}
44
44
  </CalendarPrimitive.YearSelect>
@@ -82,7 +82,7 @@ get along, so we shut typescript up by casting `value` to `never`.
82
82
  <Calendar.Grid>
83
83
  <Calendar.GridHead>
84
84
  <Calendar.GridRow class="select-none">
85
- {#each weekdays as weekday (weekday)}
85
+ {#each weekdays as weekday, i (i)}
86
86
  <Calendar.HeadCell>
87
87
  {weekday.slice(0, 2)}
88
88
  </Calendar.HeadCell>
@@ -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
- bind:value
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 { WithElementRef } from "../../../utils.js";
3
+ import { cn, type WithElementRef } from "../../../utils.js";
4
4
 
5
- let { ref = $bindable(null), children, ...restProps }: WithElementRef<HTMLOptionAttributes> = $props();
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ children,
9
+ ...restProps
10
+ }: WithElementRef<HTMLOptionAttributes> = $props();
6
11
  </script>
7
12
 
8
- <option bind:this={ref} data-slot="native-select-option" {...restProps}>
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 { WithElementRef } from "../../../utils.js";
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;
@@ -14,7 +14,7 @@
14
14
 
15
15
  {#snippet Fallback()}
16
16
  <span>Next</span>
17
- <ChevronRightIcon class="size-4" />
17
+ <ChevronRightIcon class={cn("size-4", className)} />
18
18
  {/snippet}
19
19
 
20
20
  <PaginationPrimitive.NextButton
@@ -13,7 +13,7 @@
13
13
  </script>
14
14
 
15
15
  {#snippet Fallback()}
16
- <ChevronLeftIcon class="size-4" />
16
+ <ChevronLeftIcon class={cn("size-4", className)} />
17
17
  <span>Previous</span>
18
18
  {/snippet}
19
19
 
@@ -35,7 +35,7 @@
35
35
  aria-hidden="true"
36
36
  >
37
37
  {monthItems.find((item) => item.value === value)?.label || selectedMonthItem.label}
38
- <ChevronDownIcon class="size-4" />
38
+ <ChevronDownIcon class={cn("size-4", className)} />
39
39
  </span>
40
40
  {/snippet}
41
41
  </RangeCalendarPrimitive.MonthSelect>
@@ -16,7 +16,7 @@
16
16
  </script>
17
17
 
18
18
  {#snippet Fallback()}
19
- <ChevronRightIcon class="size-4" />
19
+ <ChevronRightIcon class={cn("size-4", className)} />
20
20
  {/snippet}
21
21
 
22
22
  <RangeCalendarPrimitive.NextButton
@@ -16,7 +16,7 @@
16
16
  </script>
17
17
 
18
18
  {#snippet Fallback()}
19
- <ChevronLeftIcon class="size-4" />
19
+ <ChevronLeftIcon class={cn("size-4", className)} />
20
20
  {/snippet}
21
21
 
22
22
  <RangeCalendarPrimitive.PrevButton
@@ -34,7 +34,7 @@
34
34
  aria-hidden="true"
35
35
  >
36
36
  {yearItems.find((item) => item.value === value)?.label || selectedYearItem.label}
37
- <ChevronDownIcon class="size-4" />
37
+ <ChevronDownIcon class={cn("size-4", className)} />
38
38
  </span>
39
39
  {/snippet}
40
40
  </RangeCalendarPrimitive.YearSelect>
@@ -79,7 +79,7 @@
79
79
  <RangeCalendar.Grid>
80
80
  <RangeCalendar.GridHead>
81
81
  <RangeCalendar.GridRow class="select-none">
82
- {#each weekdays as weekday (weekday)}
82
+ {#each weekdays as weekday, i (i)}
83
83
  <RangeCalendar.HeadCell>
84
84
  {weekday.slice(0, 2)}
85
85
  </RangeCalendar.HeadCell>
@@ -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
- <TooltipProvider>
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",
4
+ "version": "3.0.6",
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.17.2",
108
+ "bits-ui": "2.18.1",
109
109
  "clsx": "^2.1.1",
110
110
  "tailwind-merge": "^3.5.0",
111
111
  "tailwind-variants": "^3.2.2"
112
112
  },
113
113
  "devDependencies": {
114
- "@eslint/compat": "^2.0.4",
114
+ "@eslint/compat": "^2.0.5",
115
115
  "@eslint/js": "^10.0.1",
116
- "@internationalized/date": "^3.12.0",
117
- "@lucide/svelte": "^1.7.0",
116
+ "@internationalized/date": "^3.12.1",
117
+ "@lucide/svelte": "^1.14.0",
118
118
  "@sveltejs/adapter-auto": "^7.0.1",
119
- "@sveltejs/kit": "^2.56.1",
119
+ "@sveltejs/kit": "^2.59.1",
120
120
  "@sveltejs/package": "^2.5.7",
121
- "@sveltejs/vite-plugin-svelte": "^7.0.0",
122
- "@tailwindcss/vite": "^4.2.2",
121
+ "@sveltejs/vite-plugin-svelte": "7.0.0",
122
+ "@tailwindcss/vite": "^4.2.4",
123
123
  "@types/d3-scale": "^4.0.9",
124
124
  "@types/d3-shape": "^3.1.8",
125
- "@vitest/browser": "^4.1.3",
126
- "@vitest/browser-playwright": "^4.1.3",
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.2.0",
130
+ "eslint": "^10.3.0",
131
131
  "eslint-config-prettier": "^10.1.8",
132
- "eslint-plugin-svelte": "^3.17.0",
132
+ "eslint-plugin-svelte": "^3.17.1",
133
133
  "formsnap": "^2.0.1",
134
- "globals": "^17.4.0",
135
- "layerchart": "2.0.0-next.40",
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.1",
138
+ "prettier": "^3.8.3",
139
139
  "prettier-plugin-svelte": "^3.5.1",
140
- "prettier-plugin-tailwindcss": "^0.7.2",
141
- "publint": "^0.3.18",
140
+ "prettier-plugin-tailwindcss": "^0.8.0",
141
+ "publint": "^0.3.19",
142
142
  "runed": "^0.37.1",
143
- "svelte": "5.55.1",
144
- "svelte-check": "^4.4.6",
145
- "svelte-sonner": "^1.1.0",
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.2.2",
147
+ "tailwindcss": "^4.2.4",
148
148
  "tslib": "^2.8.1",
149
149
  "tw-animate-css": "1.4.0",
150
- "typescript": "^6.0.2",
151
- "typescript-eslint": "^8.58.0",
150
+ "typescript": "^6.0.3",
151
+ "typescript-eslint": "^8.59.2",
152
152
  "vaul-svelte": "1.0.0-next.7",
153
- "vite": "^8.0.7",
154
- "vitest": "^4.1.3",
155
- "vitest-browser-svelte": "^2.1.0",
156
- "zod": "4.3.6"
153
+ "vite": "^8.0.10",
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",