@r2digisolutions/ui 0.34.7 → 0.34.9

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.
@@ -8,6 +8,7 @@
8
8
  import DataTableToolbar from './components/DataTableToolbar.svelte';
9
9
  import DataTableFooter from './components/DataTableFooter.svelte';
10
10
  import ContextMenu from './components/ContextMenu.svelte';
11
+ import { portal } from '../DataTable/utils/portal.js';
11
12
 
12
13
  interface CellContext<T> {
13
14
  row: T;
@@ -592,16 +593,19 @@
592
593
  </div>
593
594
  <!-- ✅ HOST fuera del overflow-auto (ya no lo recorta) -->
594
595
  {#if contextOpen}
595
- <div
596
- bind:this={contextPopover}
597
- data-context-host="true"
598
- class="pointer-events-auto fixed z-[999999] max-h-[calc(100vh-24px)] max-w-xs min-w-[190px] overflow-auto rounded-2xl border border-neutral-200/80 bg-neutral-50/95 p-1.5 text-xs text-neutral-900 shadow-[0_18px_50px_rgba(15,23,42,0.45)] backdrop-blur-2xl dark:border-neutral-700/80 dark:bg-neutral-900/95 dark:text-neutral-50"
599
- style={`left:${contextRender.left}px; top:${contextRender.top}px;`}
600
- >
601
- {#if contextRow && actions.length}
602
- <ContextMenu {actions} row={contextRow} onClose={closeContext} />
603
- {:else}
604
- <div class="flex flex-col gap-2">No hay acciones disponibles</div>
605
- {/if}
606
- </div>
596
+ {#key contextRow}
597
+ <div
598
+ bind:this={contextPopover}
599
+ use:portal
600
+ data-context-host="true"
601
+ class="pointer-events-auto fixed z-[999999] max-h-[calc(100vh-24px)] max-w-xs min-w-[190px] overflow-auto rounded-2xl border border-neutral-200/80 bg-neutral-50/95 p-1.5 text-xs text-neutral-900 shadow-[0_18px_50px_rgba(15,23,42,0.45)] backdrop-blur-2xl dark:border-neutral-700/80 dark:bg-neutral-900/95 dark:text-neutral-50"
602
+ style={`left:${contextRender.left}px; top:${contextRender.top}px;`}
603
+ >
604
+ {#if contextRow && actions.length}
605
+ <ContextMenu {actions} row={contextRow} onClose={closeContext} />
606
+ {:else}
607
+ <div class="flex flex-col gap-2">No hay acciones disponibles</div>
608
+ {/if}
609
+ </div>
610
+ {/key}
607
611
  {/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2digisolutions/ui",
3
- "version": "0.34.7",
3
+ "version": "0.34.9",
4
4
  "private": false,
5
5
  "packageManager": "bun@1.3.9",
6
6
  "publishConfig": {
@@ -59,7 +59,7 @@
59
59
  "@storybook/sveltekit": "10.2.8",
60
60
  "@storybook/test": "8.6.15",
61
61
  "@sveltejs/adapter-static": "3.0.10",
62
- "@sveltejs/kit": "2.52.0",
62
+ "@sveltejs/kit": "2.50.0",
63
63
  "@sveltejs/package": "2.5.7",
64
64
  "@sveltejs/vite-plugin-svelte": "6.2.4",
65
65
  "@tailwindcss/postcss": "4.1.18",
@@ -77,7 +77,7 @@
77
77
  "prettier-plugin-tailwindcss": "0.7.2",
78
78
  "publint": "0.3.17",
79
79
  "storybook": "10.2.8",
80
- "svelte": "5.51.2",
80
+ "svelte": "5.50.0",
81
81
  "svelte-check": "4.4.0",
82
82
  "tailwindcss": "4.1.18",
83
83
  "typescript": "5.9.3",