@kayord/ui 0.12.22 → 0.12.23

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.
@@ -27,6 +27,7 @@
27
27
  enableVisibility?: boolean;
28
28
  enableFullscreen?: boolean;
29
29
  class?: string;
30
+ headerClass?: string;
30
31
  disableUISorting?: boolean;
31
32
  }
32
33
 
@@ -44,6 +45,7 @@
44
45
  enableVisibility = false,
45
46
  enableFullscreen = false,
46
47
  class: className,
48
+ headerClass,
47
49
  disableUISorting = false,
48
50
  }: Props<T> = $props();
49
51
 
@@ -65,6 +67,7 @@
65
67
  onCheckedChange: () => r.row.toggleSelected(),
66
68
  }),
67
69
  enableResizing: false,
70
+ enableSorting: false,
68
71
  };
69
72
  columns.unshift(rowSelectionColumn);
70
73
  }
@@ -73,10 +76,11 @@
73
76
  <div
74
77
  class={cn(
75
78
  "w-full",
76
- tableStore.isFullscreen ? "absolute left-0 top-0 z-10 h-screen bg-background transition-all" : "w-full"
79
+ tableStore.isFullscreen ? "absolute left-0 top-0 z-10 h-screen bg-background transition-all" : "w-full",
80
+ className
77
81
  )}
78
82
  >
79
- <div class={cn(className)}>
83
+ <div class={cn(headerClass)}>
80
84
  {#if header}
81
85
  {@render header()}
82
86
  {:else}
@@ -15,6 +15,7 @@ declare class __sveltets_Render<T> {
15
15
  enableVisibility?: boolean;
16
16
  enableFullscreen?: boolean;
17
17
  class?: string;
18
+ headerClass?: string;
18
19
  disableUISorting?: boolean;
19
20
  };
20
21
  events(): {};
@@ -12,4 +12,4 @@
12
12
  let { checked, class: className, ...rest }: Props = $props();
13
13
  </script>
14
14
 
15
- <Checkbox bind:checked class={cn(className)} {...rest} />
15
+ <Checkbox bind:checked class={cn("rounded-[5px]", className)} {...rest} />
@@ -21,7 +21,7 @@
21
21
  {#if !header.isPlaceholder}
22
22
  <div class="flex items-center gap-1">
23
23
  <FlexRender content={header.column.columnDef.header} context={header.getContext()} />
24
- {#if isSortingEnabled}
24
+ {#if isSortingEnabled && header.column.getCanSort()}
25
25
  <button onclick={header.column.getToggleSortingHandler()}>
26
26
  {#if header.column.getIsSorted() == "asc"}
27
27
  <ArrowDownIcon class="size-4" />
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kayord/ui",
3
3
  "private": false,
4
- "version": "0.12.22",
4
+ "version": "0.12.23",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",