@kayord/ui 2.1.4 → 2.1.5

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.
@@ -195,7 +195,7 @@
195
195
 
196
196
  <Table.Body>
197
197
  {#if isLoading && table.getRowModel().rows.length == 0}
198
- {#each { length: 5 } as loadingTemplate (loadingTemplate)}
198
+ {#each { length: 5 }, i (i)}
199
199
  <Table.Row>
200
200
  {#each table.getAllColumns() as _cell (_cell)}
201
201
  <Table.Cell>
@@ -1,5 +1,6 @@
1
- import { type RowData, type RowModel, type Table, type TableOptions } from "@tanstack/table-core";
2
- interface ShadTableOptions<TData extends RowData> extends Omit<TableOptions<TData>, "getCoreRowModel"> {
1
+ import { type RowData, type RowModel, type Table } from "@tanstack/table-core";
2
+ import type { BaseOptions } from "./types";
3
+ interface ShadTableOptions<TData extends RowData> extends BaseOptions<TData> {
3
4
  getCoreRowModel?: (table: Table<any>) => () => RowModel<any>;
4
5
  enablePaging?: boolean;
5
6
  enableVisibility?: boolean;
@@ -10,10 +10,10 @@ export function createShadTable(shadOptions) {
10
10
  return () => { };
11
11
  });
12
12
  const defaultOptions = {
13
- columns: shadOptions.columns,
14
13
  get data() {
15
14
  return shadOptions.data;
16
15
  },
16
+ columns: shadOptions.columns,
17
17
  getCoreRowModel: getCoreRowModel(),
18
18
  getPaginationRowModel: getPaginationRowModel(),
19
19
  getSortedRowModel: getSortedRowModel(),
@@ -1,4 +1,6 @@
1
+ import type { TableOptions } from "@tanstack/table-core";
1
2
  import z from "zod";
3
+ export type BaseOptions<TData> = Omit<TableOptions<TData>, "getCoreRowModel">;
2
4
  export interface CustomOptions {
3
5
  useURLSearchParams?: boolean;
4
6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kayord/ui",
3
3
  "private": false,
4
- "version": "2.1.4",
4
+ "version": "2.1.5",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -110,9 +110,9 @@
110
110
  "@eslint/compat": "^2.0.1",
111
111
  "@eslint/js": "^9.39.2",
112
112
  "@internationalized/date": "^3.10.1",
113
- "@lucide/svelte": "^0.562.0",
113
+ "@lucide/svelte": "^0.563.0",
114
114
  "@sveltejs/adapter-auto": "^7.0.0",
115
- "@sveltejs/kit": "^2.50.0",
115
+ "@sveltejs/kit": "^2.50.1",
116
116
  "@sveltejs/package": "^2.5.7",
117
117
  "@sveltejs/vite-plugin-svelte": "^6.2.4",
118
118
  "@tailwindcss/vite": "^4.1.18",
@@ -127,7 +127,7 @@
127
127
  "eslint-config-prettier": "^10.1.8",
128
128
  "eslint-plugin-svelte": "^3.14.0",
129
129
  "formsnap": "^2.0.1",
130
- "globals": "^17.0.0",
130
+ "globals": "^17.1.0",
131
131
  "layerchart": "2.0.0-next.40",
132
132
  "mode-watcher": "^1.1.0",
133
133
  "paneforge": "^1.0.2",