@casinogate/ui 1.11.4 → 1.11.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.
@@ -38,7 +38,7 @@
38
38
  </script>
39
39
 
40
40
  <DataTableRoot bind:ref {table} class={cn(className, { 'cgui:h-full': isEmpty })} {...restProps}>
41
- <DataTableTable class={cn({ 'cgui:h-full': isEmpty })}>
41
+ <DataTableTable class={cn({ 'cgui:h-full cgui:flex-1': isEmpty })}>
42
42
  <DataTableHeader>
43
43
  {#each table.getHeaderGroups() as headerGroup (headerGroup.id)}
44
44
  <DataTableRow>
@@ -64,7 +64,7 @@
64
64
  return typeof val === 'boolean' ? null : val;
65
65
  })}
66
66
 
67
- <DataTableSortButton direction={dir} />
67
+ <DataTableSortButton direction={dir} disabled={isEmpty} />
68
68
  {/if}
69
69
 
70
70
  {#if restProps.resizable && header.column.getCanResize()}
@@ -96,7 +96,6 @@
96
96
  {/if}
97
97
  <DataTableRow>
98
98
  {#each row.getVisibleCells() as cell (cell.id)}
99
- {console.log(row.depth)}
100
99
  <DataTableCell {cell} depth={row.depth}>
101
100
  <FlexRender content={cell.column.columnDef.cell} context={cell.getContext()} />
102
101
  </DataTableCell>
@@ -4,6 +4,7 @@ import { Context } from 'runed';
4
4
  export const dataTableVariants = tv({
5
5
  slots: {
6
6
  root: [
7
+ 'cgui:flex cgui:flex-col',
7
8
  'cgui:scrollbar-thin cgui:scrollbar-thumb-surface-regular cgui:scrollbar-track-surface-lightest cgui:scrollbar-thumb-rounded-full cgui:scrollbar-track-rounded-full',
8
9
  'cgui:overflow-auto cgui:w-full',
9
10
  'cgui:border cgui:border-stroke-divider',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casinogate/ui",
3
- "version": "1.11.4",
3
+ "version": "1.11.5",
4
4
  "svelte": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",