@invopop/popui 0.1.89 → 0.1.90

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.
@@ -82,8 +82,8 @@
82
82
  children
83
83
  }: DataTableProps<TData> = $props()
84
84
 
85
- const enableSelection = !disableSelection
86
- const enablePagination = !disablePagination
85
+ const enableSelection = $derived(!disableSelection)
86
+ const enablePagination = $derived(!disablePagination)
87
87
 
88
88
  let rowSelection = $state<RowSelectionState>({})
89
89
  let columnVisibility = $state<VisibilityState>(untrack(() => initialColumnVisibility))
@@ -383,7 +383,7 @@
383
383
  <Table.Root>
384
384
  <Table.Header>
385
385
  {#each table.getHeaderGroups() as headerGroup (`${headerGroup.id}-${tableRenderKey}`)}
386
- <Table.Row class="hover:!bg-transparent">
386
+ <Table.Row class="hover:bg-transparent!">
387
387
  {#each headerGroup.headers as header, index (header.id)}
388
388
  <DataTableHeaderCell
389
389
  {header}
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { createBubbler } from 'svelte/legacy'
3
- import { cn, type WithElementRef } from '../utils.js'
3
+ import { cn, type WithElementRef } from '../utils'
4
4
  import type { HTMLTdAttributes } from 'svelte/elements'
5
5
 
6
6
  const bubble = createBubbler()
@@ -16,7 +16,7 @@
16
16
  bind:this={ref}
17
17
  data-slot="table-cell"
18
18
  class={cn(
19
- 'py-[9px] [&:has([role=menu])]:py-0 [&:has([data-uuid-copy])]:py-0 pl-3 pr-3 align-middle text-foreground font-normal text-base [&:has([role=menu])]:pl-1 [&:has([role=menu])]:bg-white [&:has([type=checkbox])]:bg-white',
19
+ 'py-2.25 [&:has([role=menu])]:py-0 [&:has([data-uuid-copy])]:py-0 pl-3 pr-3 align-middle text-foreground font-normal text-base [&:has([role=menu])]:pl-1 [&:has([role=menu])]:bg-background [&:has([type=checkbox])]:bg-background',
20
20
  className
21
21
  )}
22
22
  {...restProps}
@@ -1,4 +1,4 @@
1
- import { type WithElementRef } from '../utils.js';
1
+ import { type WithElementRef } from '../utils';
2
2
  import type { HTMLTdAttributes } from 'svelte/elements';
3
3
  declare const TableCell: import("svelte").Component<WithElementRef<HTMLTdAttributes>, {}, "ref">;
4
4
  type TableCell = ReturnType<typeof TableCell>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@invopop/popui",
3
3
  "license": "MIT",
4
- "version": "0.1.89",
4
+ "version": "0.1.90",
5
5
  "repository": {
6
6
  "url": "https://github.com/invopop/popui"
7
7
  },