diff --git a/packages/core/src/components.css b/packages/core/src/components.css index 43e61d6..37f9bfc 100644 --- a/packages/core/src/components.css +++ b/packages/core/src/components.css @@ -54,6 +54,7 @@ @import "./styles/components/user-card.css"; @import "./styles/components/user-chip.css"; @import "./styles/components/user-select.css"; +@import "./styles/components/virtual-list.css"; @import "./styles/components/admin-board-page.css"; @import "./styles/components/admin-board-section.css"; @import "./styles/components/admin-config-page.css"; diff --git a/packages/core/src/defs/index.ts b/packages/core/src/defs/index.ts index f4a3153..6f157f2 100644 --- a/packages/core/src/defs/index.ts +++ b/packages/core/src/defs/index.ts @@ -1,3 +1,5 @@ +import type { CalendarCell } from "../headless/calendar-grid.js"; + export type AccordionPanelValue = string | number; export type AccordionValue = | AccordionPanelValue @@ -75,7 +77,35 @@ export interface CalendarViewRange { month: number; } -export interface CalendarProps { +export interface CalendarTitleContext { + date: Date; + label: string; +} + +export interface CalendarNavigationContext extends CalendarTitleContext { + disabled: boolean; + showToday: boolean; + previous: () => void; + next: () => void; + today: () => void; +} + +export interface CalendarMonthContext { + year: number; + month: number; + label: string; + selected: boolean; +} + +export interface CalendarCustomizationProps { + viewDate?: Date | string | null; + hideOutsideDays?: boolean; + dayLabel?: (cell: CalendarCell) => string; + showTodayShortcut?: boolean | "always"; + pickerAppendTo?: "self" | "body"; +} + +export interface CalendarProps extends CalendarCustomizationProps { modelValue?: CalendarModelValue; selected?: string | null; selectionMode?: CalendarSelectionMode; @@ -84,7 +114,6 @@ export interface CalendarProps { firstDayOfWeek?: CalendarFirstDayOfWeek; days?: Record; onlySelectableWithDays?: boolean; - showTodayShortcut?: boolean; variant?: CalendarVariant; fluid?: boolean; disabled?: boolean; @@ -204,3 +233,10 @@ export interface UserSelectOption extends Record { avatar?: string | null; email?: string | null; } + +export type { + VirtualListAlignment, + VirtualListHandle, + VirtualListKey, + VirtualListProps, +} from "./virtual-list.js"; diff --git a/packages/core/src/defs/virtual-list.ts b/packages/core/src/defs/virtual-list.ts new file mode 100644 index 0000000..3efe356 --- /dev/null +++ b/packages/core/src/defs/virtual-list.ts @@ -0,0 +1,19 @@ +export type VirtualListKey = string | number; +export type VirtualListAlignment = "start" | "center" | "end" | "auto"; + +export interface VirtualListProps { + items: readonly T[]; + /** Stable, unique identity across reordering and pagination. */ + itemKey: (item: T) => VirtualListKey; + /** Positive height in pixels until the row is measured. */ + estimateSize: number | ((item: T, index: number) => number); + overscan?: number; + /** Keep these rows mounted outside the scroll window during an interaction. */ + pinnedKeys?: readonly VirtualListKey[]; +} + +export interface VirtualListHandle { + /** Jump immediately. Returns false if the key is absent or the list is unmounted. */ + scrollToKey: (key: VirtualListKey, align?: VirtualListAlignment) => boolean; + scrollToStart: () => void; +} diff --git a/packages/core/src/locale/index.ts b/packages/core/src/locale/index.ts index 49c0941..7a0b827 100644 --- a/packages/core/src/locale/index.ts +++ b/packages/core/src/locale/index.ts @@ -31,6 +31,8 @@ export interface UiMessages { prevMonth: string; nextMonth: string; prevYear: string; + chooseMonth: string; + year: string; nextYear: string; today: string; backToToday: string; @@ -78,6 +80,8 @@ export const uiMessages: Record = { prevMonth: "上个月", nextMonth: "下个月", prevYear: "上一年", + chooseMonth: "切换月份", + year: "年份", nextYear: "下一年", today: "今天", backToToday: "回到今天", @@ -121,6 +125,8 @@ export const uiMessages: Record = { prevMonth: "Previous month", nextMonth: "Next month", prevYear: "Previous year", + chooseMonth: "Choose month", + year: "Year", nextYear: "Next year", today: "Today", backToToday: "Back to today", diff --git a/packages/core/src/styles/components/calendar.css b/packages/core/src/styles/components/calendar.css index e919339..5eafad6 100644 --- a/packages/core/src/styles/components/calendar.css +++ b/packages/core/src/styles/components/calendar.css @@ -59,6 +59,7 @@ display: inline-flex; align-items: center; gap: var(--space-1); + min-width: 0; padding: var(--space-0-5) var(--space-1-5); margin-inline-start: calc(var(--space-1-5) * -1); border: 0; @@ -75,12 +76,20 @@ color var(--duration-fast) var(--ease-standard); } +.mw-calendar__month-label { + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + .mw-calendar__switcher-btn:hover:not(:disabled) { background-color: var(--fill-default); color: var(--text-accent); } .mw-calendar__switcher-chevron { + flex-shrink: 0; color: var(--text-tertiary); transition: transform var(--duration-fast) var(--ease-standard); } @@ -138,21 +147,12 @@ color: var(--text-primary); } -.mw-calendar__switcher { - position: absolute; - inset-inline: var(--space-2); - top: calc(var(--size-sm-h) + var(--space-3)); - z-index: 5; +.mw-calendar__switcher.mw-popover { display: flex; flex-direction: column; gap: var(--space-2); + width: calc(var(--size-xs-h) * 9); padding: var(--space-2-5); - border-radius: var(--radius-float); -} - -.mw-calendar--plain .mw-calendar__switcher { - inset-inline: var(--space-0); - top: calc(var(--size-sm-h) + var(--space-1)); } .mw-calendar__switcher-head { @@ -163,10 +163,12 @@ } .mw-calendar__switcher-year { - font-size: var(--type-body-sm-size); - line-height: var(--type-body-sm-line); - font-weight: var(--weight-semibold); - color: var(--text-primary); + width: calc(var(--size-xs-h) * 3); +} + +.mw-calendar__switcher-year input { + text-align: center; + font-variant-numeric: tabular-nums; } .mw-calendar__month-grid { @@ -191,17 +193,29 @@ color var(--duration-fast) var(--ease-standard); } -.mw-calendar__month-option:hover:not(.mw-calendar__month-option--active) { +.mw-calendar__month-option:hover:not([aria-pressed="true"]) { background-color: var(--fill-default); color: var(--text-primary); } -.mw-calendar__month-option--active { +.mw-calendar__month-option[aria-pressed="true"] { background-color: var(--accent); color: var(--text-on-accent); font-weight: var(--weight-semibold); } +@media (pointer: coarse) { + .mw-calendar__switcher-head .mw-calendar__nav-btn { + width: var(--hit-min); + height: var(--hit-min); + } + + .mw-calendar__switcher-year input, + .mw-calendar__month-option { + min-height: var(--hit-min); + } +} + .mw-calendar__weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); diff --git a/packages/core/src/styles/components/select.css b/packages/core/src/styles/components/select.css index 279ec3e..c098443 100644 --- a/packages/core/src/styles/components/select.css +++ b/packages/core/src/styles/components/select.css @@ -209,6 +209,7 @@ .mw-select__option { display: flex; + flex-shrink: 0; align-items: center; gap: var(--space-2); min-height: var(--size-sm-h); diff --git a/packages/core/src/styles/components/virtual-list.css b/packages/core/src/styles/components/virtual-list.css new file mode 100644 index 0000000..fcf1957 --- /dev/null +++ b/packages/core/src/styles/components/virtual-list.css @@ -0,0 +1,21 @@ +.mw-virtual-list { + min-block-size: 0; + overflow-y: auto; + overflow-anchor: none; +} + +.mw-virtual-list__content { + max-inline-size: var(--mw-virtual-list-max-width, none); + margin-inline: auto; +} + +.mw-virtual-list__items { + position: relative; +} + +.mw-virtual-list__row { + position: absolute; + inset-block-start: 0; + inset-inline: 0; + display: flow-root; +} diff --git a/packages/react/package.json b/packages/react/package.json index 13ba0f8..ebcf81e 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -502,6 +502,14 @@ "types": "./dist/components/UserSelect.d.ts", "default": "./dist/components/UserSelect.js" }, + "./components/VirtualList": { + "mango-source": { + "types": "./src/components/VirtualList.tsx", + "default": "./src/components/VirtualList.tsx" + }, + "types": "./dist/components/VirtualList.d.ts", + "default": "./dist/components/VirtualList.js" + }, "./components/accordion": { "mango-source": { "types": "./src/components/accordion-defs.ts", @@ -790,6 +798,14 @@ "types": "./dist/components/user-select.d.ts", "default": "./dist/components/user-select.js" }, + "./components/virtual-list": { + "mango-source": { + "types": "./src/components/virtual-list-defs.ts", + "default": "./src/components/virtual-list-defs.ts" + }, + "types": "./dist/components/virtual-list-defs.d.ts", + "default": "./dist/components/virtual-list-defs.js" + }, "./lib/area-transition": { "mango-source": { "types": "./src/lib/area-transition.ts", @@ -1196,6 +1212,11 @@ "import": "./dist/components/UserSelect.js", "default": "./dist/components/UserSelect.js" }, + "./components/VirtualList": { + "types": "./dist/components/VirtualList.d.ts", + "import": "./dist/components/VirtualList.js", + "default": "./dist/components/VirtualList.js" + }, "./components/accordion": { "types": "./dist/components/accordion-defs.d.ts", "import": "./dist/components/accordion-defs.js", @@ -1376,6 +1397,11 @@ "import": "./dist/components/user-select.js", "default": "./dist/components/user-select.js" }, + "./components/virtual-list": { + "types": "./dist/components/virtual-list-defs.d.ts", + "import": "./dist/components/virtual-list-defs.js", + "default": "./dist/components/virtual-list-defs.js" + }, "./lib/area-transition": { "types": "./dist/lib/area-transition.d.ts", "import": "./dist/lib/area-transition.js", @@ -1460,6 +1486,7 @@ "@radix-ui/react-tooltip": "^1.4.1", "@radix-ui/react-visually-hidden": "^1.2.13", "@tanstack/react-table": "^8.21.3", + "@tanstack/react-virtual": "3.14.26", "radix-ui": "^1.8.1" }, "peerDependencies": { diff --git a/packages/react/src/components/Calendar.component.test.tsx b/packages/react/src/components/Calendar.component.test.tsx index 1738d84..dc7c58c 100644 --- a/packages/react/src/components/Calendar.component.test.tsx +++ b/packages/react/src/components/Calendar.component.test.tsx @@ -12,6 +12,34 @@ describe("Calendar", () => { expect(Calendar.displayName).toBe("MwCalendar"); }); + it("customizes the visible month and day content independently of selection", () => { + const onToday = vi.fn(); + const onSelect = vi.fn(); + const { container, getByRole, getByText } = render( + `Entry date ${cell.isoDate}`} + renderDay={({ cell }) => `Day ${cell.day}`} + renderFooter={({ date }) => `Month ${date.getMonth() + 1}`} + showTodayShortcut="always" + onToday={onToday} + onSelect={onSelect} + />, + ); + + expect(container.querySelector('[data-date="2026-05-01"]')).toBeNull(); + expect(container.querySelector(".mw-calendar__day--other-month")).toBeNull(); + expect(getByRole("button", { name: "Entry date 2026-06-01" }).textContent).toBe("Day 1"); + expect(getByText("Month 6")).toBeTruthy(); + + fireEvent.click(getByRole("button", { name: "回到今天" })); + expect(toIsoKey(onToday.mock.calls[0]![0])).toBe(toIsoKey(new Date())); + expect(onSelect).not.toHaveBeenCalled(); + expect(getByRole("button", { name: "回到今天" })).toBeTruthy(); + }); + it("renders month days and updates value / selected on day click, including plain variant", () => { const initial = new Date(2026, 4, 10); const onValueChange = vi.fn(); @@ -155,11 +183,13 @@ describe("Calendar", () => { ".mw-calendar__month-option", ); expect(monthOptions).toHaveLength(12); + const year = container.querySelector('input[aria-label="年份"]')!; + fireEvent.change(year, { target: { value: "2021" } }); fireEvent.click(monthOptions[2]!); expect(container.querySelector(".mw-calendar__switcher")).toBeNull(); const lastView = onView.mock.calls.at(-1)?.[0]; - expect(lastView?.month).toBe(3); + expect(lastView).toMatchObject({ year: 2021, month: 3 }); }); it("supports firstDayOfWeek and range / multiple selection modes", () => { diff --git a/packages/react/src/components/Calendar.tsx b/packages/react/src/components/Calendar.tsx index 4bd731b..3ccbbbb 100644 --- a/packages/react/src/components/Calendar.tsx +++ b/packages/react/src/components/Calendar.tsx @@ -17,13 +17,18 @@ import { type CalendarCell, } from "@mango-write/ui-core/headless/calendar-grid"; import { uiMessages, useUiLocale, type UiLocaleSource } from "../locale"; +import InputNumber from "./InputNumber"; +import Popover from "./Popover"; import type { CalendarFirstDayOfWeek, CalendarHandle, CalendarModelValue, + CalendarMonthContext, + CalendarNavigationContext, CalendarOutputValue, CalendarProps, CalendarSelectionMode, + CalendarTitleContext, CalendarVariant, CalendarViewRange, } from "./calendar-defs"; @@ -33,9 +38,12 @@ export type { CalendarFirstDayOfWeek, CalendarHandle, CalendarModelValue, + CalendarMonthContext, + CalendarNavigationContext, CalendarOutputValue, CalendarProps, CalendarSelectionMode, + CalendarTitleContext, CalendarVariant, CalendarViewRange, }; @@ -86,6 +94,17 @@ export const Calendar = forwardRef( onSelect, onDateSelect, onView, + onToday, + viewDate, + hideOutsideDays, + dayLabel, + pickerAppendTo = "self", + renderTitle, + renderNavigation, + renderWeekday, + renderDay, + renderMonth, + renderFooter, selectionMode = "single", minDate = null, maxDate = null, @@ -152,7 +171,7 @@ export const Calendar = forwardRef( const todayMonth = nowRef.current.getMonth(); const todayDate = nowRef.current.getDate(); - const initialPrimary = resolvePrimaryDate( + const initialPrimary = parseCoreDateValue(viewDate) ?? resolvePrimaryDate( currentModelValue, currentSelected, hours, @@ -165,13 +184,14 @@ export const Calendar = forwardRef( const [viewMonth, setViewMonth] = useState( () => initialPrimary?.getMonth() ?? todayMonth, ); - const [pickerYear, setPickerYear] = useState( + const [pickerYear, setPickerYear] = useState( () => initialPrimary?.getFullYear() ?? todayYear, ); const [switcherOpen, setSwitcherOpen] = useState(false); + const effectivePickerYear = Math.max(100, Math.min(9999, pickerYear ?? viewYear)); useEffect(() => { - const primary = resolvePrimaryDate( + const primary = parseCoreDateValue(viewDate) ?? resolvePrimaryDate( currentModelValue, currentSelected, hours, @@ -182,26 +202,21 @@ export const Calendar = forwardRef( setViewMonth(primary.getMonth()); setPickerYear(primary.getFullYear()); } - }, [currentModelValue, currentSelected, hours, minutes]); + }, [viewDate, currentModelValue, currentSelected, hours, minutes]); const effectiveAriaLabel = ariaLabel ?? restAttrs["aria-label"]; const isCurrentMonth = viewYear === todayYear && viewMonth === todayMonth; + const calendarDate = useMemo(() => new Date(viewYear, viewMonth, 1), [viewYear, viewMonth]); const monthLabel = useMemo(() => { - const date = new Date(viewYear, viewMonth, 1); return new Intl.DateTimeFormat(resolvedLocale, { year: "numeric", month: "long", - }).format(date); - }, [viewYear, viewMonth, resolvedLocale]); - - const yearLabel = useMemo(() => { - const date = new Date(pickerYear, 0, 1); - return new Intl.DateTimeFormat(resolvedLocale, { - year: "numeric", - }).format(date); - }, [pickerYear, resolvedLocale]); + }).format(calendarDate); + }, [calendarDate, resolvedLocale]); + const titleContext = { date: calendarDate, label: monthLabel }; + const showToday = showTodayShortcut === "always" || (showTodayShortcut && !isCurrentMonth); const monthNames = useMemo( () => @@ -299,7 +314,8 @@ export const Calendar = forwardRef( setPickerYear(todayYear); setSwitcherOpen(false); emitViewRange(todayYear, todayMonth); - }, [disabled, todayYear, todayMonth, emitViewRange]); + onToday?.(new Date()); + }, [disabled, todayYear, todayMonth, emitViewRange, onToday]); const setView = useCallback((year: number, monthZeroBased: number) => { setViewYear(year); @@ -316,18 +332,17 @@ export const Calendar = forwardRef( [setView, backToToday], ); - const toggleSwitcher = () => { - if (disabled) return; - setPickerYear(viewYear); - setSwitcherOpen((prev) => !prev); + const changeSwitcherOpen = (open: boolean) => { + if (open) setPickerYear(viewYear); + setSwitcherOpen(open); }; const pickMonth = (monthIndexZeroBased: number) => { if (disabled) return; - setViewYear(pickerYear); + setViewYear(effectivePickerYear); setViewMonth(monthIndexZeroBased); setSwitcherOpen(false); - emitViewRange(pickerYear, monthIndexZeroBased); + emitViewRange(effectivePickerYear, monthIndexZeroBased); }; const commitModelOutput = (nextVal: CalendarOutputValue) => { @@ -426,116 +441,62 @@ export const Calendar = forwardRef( >
- + } > - {monthLabel} -
-
- - + {renderNavigation ? renderNavigation({ ...titleContext, disabled, showToday, previous: prevMonth, next: nextMonth, today: backToToday }) : ( + <> + {showToday && } + + + + )}
- {switcherOpen && ( -
-
- - - {yearLabel} - - -
- -
- {monthNames.map((monthName, idx) => { - const active = idx === viewMonth && pickerYear === viewYear; - return ( - - ); - })} -
-
- )} -
- {weekdayLabels.map((weekday) => ( + {weekdayLabels.map((weekday, index) => ( - {weekday} + {renderWeekday ? renderWeekday({ label: weekday, index }) : weekday} ))}
@@ -548,7 +509,9 @@ export const Calendar = forwardRef( aria-label={monthLabel} > {calendarWeeks.flatMap((week) => - week.map((cell) => ( + week.map((cell) => hideOutsideDays && cell.otherMonth ? ( +
diff --git a/playground/dev/pages/components/virtual-list.vue b/playground/dev/pages/components/virtual-list.vue new file mode 100644 index 0000000..c9730bf --- /dev/null +++ b/playground/dev/pages/components/virtual-list.vue @@ -0,0 +1,55 @@ + + + diff --git a/playground/dev/registry-data.ts b/playground/dev/registry-data.ts index 6df14b6..9e7f099 100644 --- a/playground/dev/registry-data.ts +++ b/playground/dev/registry-data.ts @@ -576,6 +576,14 @@ export const docGroups: DocGroup[] = [ en: "A table for homogeneous structured records: references, members, usage line items. The frame is a grouped card, rows split by hairlines, numeric columns align on tabular figures.", }, ), + component( + "virtual-list", + { zh: "虚拟列表", en: "VirtualList" }, + { + zh: "连续浏览长列表,按可见范围渲染可变高度的条目,支持按条目定位。", + en: "Browse long, continuous lists with variable-height rows and jump to a specific entry.", + }, + ), component( "paginator", { zh: "分页", en: "Paginator" }, diff --git a/playground/dev/usage/entries/virtual-list.ts b/playground/dev/usage/entries/virtual-list.ts new file mode 100644 index 0000000..e001d5e --- /dev/null +++ b/playground/dev/usage/entries/virtual-list.ts @@ -0,0 +1,59 @@ +import { defineComponent, h, ref, type Component } from "vue"; +import { Button, VirtualList, type VirtualListHandle } from "@mango-write/ui-vue"; +import { t } from "../../i18n"; +import { sfc } from "../codegen"; +import type { UsageEntry } from "../types"; + +const records = Array.from({ length: 1000 }, (_, i) => i + 1); +const key = (item: number) => item; +const text = { + jump: { zh: "跳到第 500 条", en: "Jump to record 500" }, + list: { zh: "记录列表", en: "Records" }, + details: { zh: "展开后仍会自动测量行高。", en: "The row is measured again after expansion." }, +}; +const rowStyle = "padding:var(--space-2);border-bottom:1px solid var(--border-subtle)"; +const viewportStyle = "height:16rem"; +const List = VirtualList as unknown as Component; + +const Demo = defineComponent({ + setup() { + const list = ref(null); + return () => h("div", { style: "width:100%" }, [ + h(Button, { label: t(text.jump), severity: "secondary", onClick: () => list.value?.scrollToKey(500) }), + h(List, { + ref: list, items: records, itemKey: key, estimateSize: 40, style: viewportStyle, "aria-label": t(text.list), + }, { + default: ({ item }: { item: number }) => h("div", { style: rowStyle }, item % 5 === 0 + ? [h("details", [h("summary", String(item)), h("p", t(text.details))])] + : String(item)), + }), + ]); + }, +}); + +export const usage: UsageEntry = { + slug: "virtual-list", + component: List, + tag: "VirtualList", + controls: [], + render: () => h(Demo), + code: () => sfc({ + ui: ["VirtualList"], + vue: [], + setup: ["const items = Array.from({ length: 1000 }, (_, i) => i + 1);"], + template: ` + +`, + }), + reactCode: () => `import { VirtualList } from "@mango-write/ui-react"; + +const items = Array.from({ length: 1000 }, (_, i) => i + 1); + +export default function Example() { + return ( + item} estimateSize={40} aria-label="Records" style={{ height: "16rem" }}> + {item =>
{item}
} +
+ ); +}`, +}; diff --git a/playground/react-preview/entries-display-overlays.tsx b/playground/react-preview/entries-display-overlays.tsx index d10f5ea..31947da 100644 --- a/playground/react-preview/entries-display-overlays.tsx +++ b/playground/react-preview/entries-display-overlays.tsx @@ -1,4 +1,4 @@ -import { useState } from "react"; +import { useRef, useState } from "react"; import { Bookmark, Check, @@ -63,6 +63,7 @@ import { Tooltip, UserCard, UserChip, + VirtualList, type AsyncSlotSkeleton, type AsyncSlotStatus, type AvatarShape, @@ -86,6 +87,7 @@ import { type UserChipSize, type UserChipVariant, type UserProfile, + type VirtualListHandle, } from "@mango-write/ui-react"; import type { ReactEntryRenderer, ReactPreviewContext } from "./types"; @@ -358,7 +360,31 @@ function AdminShellDemo({ ctx }: { ctx: ReactPreviewContext }) { ); } +const recordIds = Array.from({ length: 1000 }, (_, i) => i + 1); +const recordKey = (item: number) => item; + +function VirtualListDemo({ locale }: { locale: ReactPreviewContext["locale"] }) { + const list = useRef(null); + const zh = locale === "zh-CN"; + return ( +
+
+ ); +} + export const DISPLAY_OVERLAY_REACT_ENTRIES: Record = { + "virtual-list": ({ locale }) => , avatar: ({ values: v }) => ( =16.8' react-dom: '>=16.8' + '@tanstack/react-virtual@3.14.26': + resolution: {integrity: sha512-HUDlfsrYH6ko5xH56L62Mcl/uzT+AGVNMHFuDNqDJMdZWc1AQa2oeVKNUvZ/RWBZQ4TYtyQerFrNvLnp39h65A==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + '@tanstack/table-core@8.21.3': resolution: {integrity: sha512-ldZXEhOBb8Is7xLs01fR3YEc3DERiz5silj8tnGkFZytt1abEvl/GhUmCE0PMLaMPTa3Jk4HbKmRlHmu+gCftg==} engines: {node: '>=12'} @@ -3299,6 +3311,12 @@ snapshots: react: 19.3.1 react-dom: 19.3.1(react@19.3.1) + '@tanstack/react-virtual@3.14.26(react-dom@19.3.1(react@19.3.1))(react@19.3.1)': + dependencies: + '@tanstack/virtual-core': 3.19.11 + react: 19.3.1 + react-dom: 19.3.1(react@19.3.1) + '@tanstack/table-core@8.21.3': {} '@tanstack/virtual-core@3.19.11': {}