@fuf-stack/megapixels 1.0.1 → 2.0.0-next.1

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.
Files changed (32) hide show
  1. package/README.md +3 -1
  2. package/dist/DataTable/index.d.mts +1 -1
  3. package/dist/DataTable/index.mjs +1 -1
  4. package/dist/{DataTable-CRSjenVg.mjs → DataTable-C7xhLtzy.mjs} +577 -442
  5. package/dist/DataTable-C7xhLtzy.mjs.map +1 -0
  6. package/dist/Filter/index.d.mts +1 -1
  7. package/dist/Filter/index.mjs +1 -1
  8. package/dist/{Filter-BTmKbroE.mjs → Filter-CAx3DWjI.mjs} +136 -83
  9. package/dist/Filter-CAx3DWjI.mjs.map +1 -0
  10. package/dist/Notification/index.d.mts +1 -1
  11. package/dist/Notification/index.mjs +1 -1
  12. package/dist/{Notification-bHSDnmsA.mjs → Notification-DrpqGoyn.mjs} +4 -4
  13. package/dist/{Notification-bHSDnmsA.mjs.map → Notification-DrpqGoyn.mjs.map} +1 -1
  14. package/dist/VirtualList/index.d.mts +1 -1
  15. package/dist/VirtualList/index.mjs +1 -1
  16. package/dist/VirtualList-Cz---_Jm.mjs +188 -0
  17. package/dist/VirtualList-Cz---_Jm.mjs.map +1 -0
  18. package/dist/{index-C20kbsap.d.mts → index-B8MLX5QP.d.mts} +80 -63
  19. package/dist/{index-C20kbsap.d.mts.map → index-B8MLX5QP.d.mts.map} +1 -1
  20. package/dist/{index-QjwjR0tT.d.mts → index-BYi0H0wJ.d.mts} +2 -2
  21. package/dist/{index-QjwjR0tT.d.mts.map → index-BYi0H0wJ.d.mts.map} +1 -1
  22. package/dist/{index-CNLdZuF-.d.mts → index-Bhg-2LmV.d.mts} +281 -202
  23. package/dist/{index-CNLdZuF-.d.mts.map → index-Bhg-2LmV.d.mts.map} +1 -1
  24. package/dist/{index-BxhYTX-_.d.mts → index-xNVpv6cI.d.mts} +29 -12
  25. package/dist/{index-BxhYTX-_.d.mts.map → index-xNVpv6cI.d.mts.map} +1 -1
  26. package/dist/index.d.mts +4 -4
  27. package/dist/index.mjs +4 -4
  28. package/package.json +9 -9
  29. package/dist/DataTable-CRSjenVg.mjs.map +0 -1
  30. package/dist/Filter-BTmKbroE.mjs.map +0 -1
  31. package/dist/VirtualList-C7T47V_m.mjs +0 -152
  32. package/dist/VirtualList-C7T47V_m.mjs.map +0 -1
@@ -0,0 +1,188 @@
1
+ import { t as useInfiniteVirtualizer } from "./useInfiniteVirtualizer-CHBE4y7W.mjs";
2
+ import { useStyling } from "@fuf-stack/pixels/StylingProvider";
3
+ import { tv } from "@fuf-stack/pixel-utils";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { ScrollShadow } from "@fuf-stack/pixels/ScrollShadow";
6
+ // src/VirtualList/subcomponents/VirtualListRow.tsx
7
+ /** Positioned list row for loaded content, reserved space or load-more actions */
8
+ const VirtualListRow = ({ className: classNames, infiniteScroll = void 0, item, loadingMoreContent = void 0, measureElement = void 0, renderItem, retry, retryContent = void 0, virtualItem }) => {
9
+ if (item.kind === "placeholder") return /* @__PURE__ */ jsx("li", {
10
+ ref: measureElement,
11
+ className: classNames.placeholderItem,
12
+ "data-index": virtualItem.index,
13
+ "data-slot": "placeholder-item",
14
+ style: {
15
+ alignItems: "center",
16
+ display: "flex",
17
+ height: `${virtualItem.size}px`,
18
+ position: "absolute",
19
+ transform: `translateY(${virtualItem.start}px)`,
20
+ width: "100%"
21
+ },
22
+ children: /* @__PURE__ */ jsx("span", { className: "block h-3 w-2/3 animate-pulse rounded bg-default-300/50 dark:bg-default-300/20" })
23
+ });
24
+ if (item.kind === "load-more") return /* @__PURE__ */ jsx("li", {
25
+ ref: measureElement,
26
+ className: classNames.loadingMoreCell,
27
+ "data-index": virtualItem.index,
28
+ "data-slot": "loading-more-cell",
29
+ style: {
30
+ position: "absolute",
31
+ transform: `translateY(${virtualItem.start}px)`,
32
+ width: "100%"
33
+ },
34
+ children: infiniteScroll?.loadMoreError ? /* @__PURE__ */ jsx("button", {
35
+ onClick: retry,
36
+ type: "button",
37
+ children: infiniteScroll.retryContent ?? retryContent
38
+ }) : loadingMoreContent
39
+ });
40
+ if (item.kind === "item") return /* @__PURE__ */ jsx("li", {
41
+ ref: measureElement,
42
+ className: classNames.item,
43
+ "data-index": virtualItem.index,
44
+ "data-slot": "item",
45
+ style: {
46
+ position: "absolute",
47
+ transform: `translateY(${virtualItem.start}px)`,
48
+ width: "100%"
49
+ },
50
+ children: renderItem(item.value, item.index)
51
+ });
52
+ return null;
53
+ };
54
+ // src/VirtualList/subcomponents/VirtualListControl.tsx
55
+ /** Virtualized item modelling, loading decisions and scroll presentation */
56
+ const VirtualListControl = ({ className: classNames, data, infiniteScroll = void 0, loadingMoreContent = "Loading more...", renderItem, retryContent = "Load next page", testId = void 0, virtualization }) => {
57
+ const baseItems = data.map((item, index) => {
58
+ return {
59
+ index,
60
+ key: `item-${index}`,
61
+ kind: "item",
62
+ value: item
63
+ };
64
+ });
65
+ if (infiniteScroll?.scrollbarMode === "total-count") {
66
+ const placeholderCount = Math.max(infiniteScroll.pageInfo.totalCount - data.length, 0);
67
+ for (let placeholderOffset = 0; placeholderOffset < placeholderCount; placeholderOffset += 1) baseItems.push({
68
+ index: data.length + placeholderOffset,
69
+ key: `placeholder-${data.length + placeholderOffset}`,
70
+ kind: "placeholder"
71
+ });
72
+ }
73
+ if (infiniteScroll && (infiniteScroll.pageInfo.hasNextPage || infiniteScroll.isFetchingNextPage || infiniteScroll.loadMoreError)) baseItems.push({
74
+ index: -1,
75
+ key: "load-more",
76
+ kind: "load-more"
77
+ });
78
+ const loadedItemCount = data.length;
79
+ const { measureElement, retry, scrollElementRef, totalSize, virtualItems } = useInfiniteVirtualizer({
80
+ count: baseItems.length,
81
+ dynamicRowHeight: virtualization.dynamicRowHeight ?? Boolean(infiniteScroll),
82
+ estimateSize: () => {
83
+ return virtualization.estimateRowHeight ?? 45;
84
+ },
85
+ hasNextPage: infiniteScroll?.pageInfo.hasNextPage,
86
+ isFetchingNextPage: infiniteScroll?.isFetchingNextPage,
87
+ loadedCount: loadedItemCount,
88
+ loadMoreError: infiniteScroll?.loadMoreError,
89
+ loadMoreThreshold: infiniteScroll?.loadMoreThreshold,
90
+ onLoadMore: infiniteScroll ? () => {
91
+ infiniteScroll.onLoadMore({
92
+ cursor: infiniteScroll.pageInfo.endCursor,
93
+ direction: "forward"
94
+ });
95
+ } : void 0,
96
+ overscan: virtualization.overscan,
97
+ shouldLoadMore: ({ loadMoreThreshold, virtualItems: activeItems }) => {
98
+ if (!infiniteScroll) return false;
99
+ const kindsInRange = new Set(activeItems.map((item) => {
100
+ return baseItems[item.index]?.kind;
101
+ }));
102
+ if (kindsInRange.has("placeholder") || kindsInRange.has("load-more")) return true;
103
+ return (activeItems[activeItems.length - 1]?.index ?? 0) >= Math.max(loadedItemCount - loadMoreThreshold - 1, 0);
104
+ }
105
+ });
106
+ return /* @__PURE__ */ jsx("div", {
107
+ className: classNames.base,
108
+ "data-component": "virtual-list",
109
+ "data-slot": "base",
110
+ "data-testid": testId,
111
+ children: /* @__PURE__ */ jsx("div", {
112
+ className: classNames.scrollFrame,
113
+ "data-slot": "scroll-frame",
114
+ children: /* @__PURE__ */ jsx(ScrollShadow, {
115
+ ref: scrollElementRef,
116
+ className: classNames.scrollShadow ? `${classNames.scrollContainer} ${classNames.scrollShadow}` : classNames.scrollContainer,
117
+ dataSlot: "scroll-container",
118
+ size: virtualization.scrollShadowSize ?? 40,
119
+ style: { maxHeight: virtualization.maxHeight },
120
+ visibility: infiniteScroll?.loadMoreError ? "none" : "auto",
121
+ children: /* @__PURE__ */ jsx("ul", {
122
+ className: classNames.list,
123
+ "data-slot": "list",
124
+ style: { height: `${totalSize}px` },
125
+ children: virtualItems.map((virtualItem) => {
126
+ const item = baseItems[virtualItem.index];
127
+ if (!item) return null;
128
+ return /* @__PURE__ */ jsx(VirtualListRow, {
129
+ className: classNames,
130
+ infiniteScroll,
131
+ item,
132
+ loadingMoreContent,
133
+ measureElement,
134
+ renderItem,
135
+ retry,
136
+ retryContent,
137
+ virtualItem
138
+ }, item.key);
139
+ })
140
+ })
141
+ })
142
+ })
143
+ });
144
+ };
145
+ // src/VirtualList/virtualListVariants.ts
146
+ /** Styling slots for VirtualList */
147
+ const virtualListVariants = tv({ slots: {
148
+ /** Root wrapper for the entire component */
149
+ base: "w-full max-w-2xl",
150
+ /** Rendered item row for loaded data */
151
+ item: "box-border border-b border-divider bg-content1 p-3 text-foreground",
152
+ /** Positioned list container that owns virtual row placement */
153
+ list: "relative m-0 list-none p-0",
154
+ /** Footer row for loading/retry actions in infinite mode */
155
+ loadingMoreCell: "py-3 text-center text-default-500",
156
+ /** Skeleton-like placeholder for unloaded rows in total-count mode */
157
+ placeholderItem: "box-border border-b border-divider bg-content1 px-3",
158
+ /** Scrollable viewport used as the virtualizer scroll element */
159
+ scrollContainer: "w-full min-w-80 overflow-x-hidden overflow-y-auto",
160
+ /** Visual frame around the masked scroll area (stays fully opaque) */
161
+ scrollFrame: "rounded-md border border-divider bg-content1",
162
+ /** Optional styling slot for ScrollShadow wrapper behavior */
163
+ scrollShadow: ""
164
+ } });
165
+ // src/VirtualList/VirtualList.tsx
166
+ /**
167
+ * Virtualized list for browsing large or incrementally loaded datasets
168
+ *
169
+ * Renders items within the scroll viewport with support for variable item heights
170
+ * and optional cursor-based loading
171
+ *
172
+ * Infinite scrolling can size the scrollbar to loaded items or the total result
173
+ * count, using placeholders for items that have not loaded yet
174
+ */
175
+ const VirtualList = ({ className = void 0, ...props }) => {
176
+ const styling = useStyling();
177
+ const variants = styling.resolve(virtualListVariants);
178
+ const classNames = styling.variantsToClassNames(variants, className, "base");
179
+ return /* @__PURE__ */ jsx(VirtualListControl, {
180
+ ...props,
181
+ className: classNames
182
+ });
183
+ };
184
+ // src/VirtualList/index.ts
185
+ var VirtualList_default = VirtualList;
186
+ export { VirtualList as n, virtualListVariants as r, VirtualList_default as t };
187
+
188
+ //# sourceMappingURL=VirtualList-Cz---_Jm.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VirtualList-Cz---_Jm.mjs","names":[],"sources":["../src/VirtualList/subcomponents/VirtualListRow.tsx","../src/VirtualList/subcomponents/VirtualListControl.tsx","../src/VirtualList/virtualListVariants.ts","../src/VirtualList/VirtualList.tsx","../src/VirtualList/index.ts"],"sourcesContent":["import type { VirtualItem } from '@tanstack/react-virtual';\nimport type { VirtualListProps } from '../VirtualList';\nimport type { VirtualListClassNames } from '../virtualListVariants';\n\n/** Loaded item, reserved placeholder or trailing load-more row */\nexport type VirtualListItem<TData> =\n | { index: number; key: string; kind: 'item'; value: TData }\n | { index: number; key: string; kind: 'load-more' | 'placeholder' };\n\ninterface VirtualListRowProps<TData> extends Pick<\n VirtualListProps<TData>,\n 'infiniteScroll' | 'loadingMoreContent' | 'renderItem' | 'retryContent'\n> {\n /** Resolved CSS class names */\n className: VirtualListClassNames;\n /** Item represented by this virtual position */\n item: VirtualListItem<TData>;\n /** Registers the rendered row for height measurement */\n measureElement?: (node: HTMLElement | null) => void;\n /** Retries the failed page request */\n retry: () => void;\n /** Virtual row position and measured size */\n virtualItem: VirtualItem;\n}\n\n/** Positioned list row for loaded content, reserved space or load-more actions */\nconst VirtualListRow = <TData,>({\n className: classNames,\n infiniteScroll = undefined,\n item,\n loadingMoreContent = undefined,\n measureElement = undefined,\n renderItem,\n retry,\n retryContent = undefined,\n virtualItem,\n}: VirtualListRowProps<TData>) => {\n if (item.kind === 'placeholder') {\n // reserved space for rows we have not loaded yet (total-count mode)\n return (\n <li\n ref={measureElement}\n className={classNames.placeholderItem}\n data-index={virtualItem.index}\n data-slot=\"placeholder-item\"\n style={{\n alignItems: 'center',\n display: 'flex',\n height: `${virtualItem.size}px`,\n position: 'absolute',\n transform: `translateY(${virtualItem.start}px)`,\n width: '100%',\n }}\n >\n <span className=\"block h-3 w-2/3 animate-pulse rounded bg-default-300/50 dark:bg-default-300/20\" />\n </li>\n );\n }\n\n if (item.kind === 'load-more') {\n // infinite-scroll sentinel row: loading indicator or retry action\n return (\n <li\n ref={measureElement}\n className={classNames.loadingMoreCell}\n data-index={virtualItem.index}\n data-slot=\"loading-more-cell\"\n style={{\n position: 'absolute',\n transform: `translateY(${virtualItem.start}px)`,\n width: '100%',\n }}\n >\n {infiniteScroll?.loadMoreError ? (\n <button onClick={retry} type=\"button\">\n {infiniteScroll.retryContent ?? retryContent}\n </button>\n ) : (\n loadingMoreContent\n )}\n </li>\n );\n }\n\n if (item.kind === 'item') {\n return (\n // standard loaded item row\n <li\n ref={measureElement}\n className={classNames.item}\n data-index={virtualItem.index}\n data-slot=\"item\"\n style={{\n position: 'absolute',\n transform: `translateY(${virtualItem.start}px)`,\n width: '100%',\n }}\n >\n {renderItem(item.value, item.index)}\n </li>\n );\n }\n\n return null;\n};\n\nexport default VirtualListRow;\n","import type { VirtualListProps } from '../VirtualList';\nimport type { VirtualListClassNames } from '../virtualListVariants';\nimport type { VirtualListItem } from './VirtualListRow';\n\nimport { ScrollShadow } from '@fuf-stack/pixels/ScrollShadow';\n\nimport { useInfiniteVirtualizer } from '../../hooks/useInfiniteVirtualizer';\nimport VirtualListRow from './VirtualListRow';\n\ninterface VirtualListControlProps<TData> extends Omit<\n VirtualListProps<TData>,\n 'className'\n> {\n /** Resolved CSS classes for the component slots */\n className: VirtualListClassNames;\n}\n\n/** Virtualized item modelling, loading decisions and scroll presentation */\nconst VirtualListControl = <TData,>({\n className: classNames,\n data,\n infiniteScroll = undefined,\n loadingMoreContent = 'Loading more...',\n renderItem,\n retryContent = 'Load next page',\n testId = undefined,\n virtualization,\n}: VirtualListControlProps<TData>) => {\n // start with currently loaded data items\n const baseItems: VirtualListItem<TData>[] = data.map((item, index) => {\n return {\n index,\n key: `item-${index}`,\n kind: 'item',\n value: item,\n };\n });\n\n if (infiniteScroll?.scrollbarMode === 'total-count') {\n // reserve full scrollbar height by adding placeholders for unloaded rows\n const placeholderCount = Math.max(\n infiniteScroll.pageInfo.totalCount - data.length,\n 0,\n );\n for (\n let placeholderOffset = 0;\n placeholderOffset < placeholderCount;\n placeholderOffset += 1\n ) {\n baseItems.push({\n index: data.length + placeholderOffset,\n key: `placeholder-${data.length + placeholderOffset}`,\n kind: 'placeholder',\n });\n }\n }\n\n if (\n infiniteScroll &&\n (infiniteScroll.pageInfo.hasNextPage ||\n infiniteScroll.isFetchingNextPage ||\n infiniteScroll.loadMoreError)\n ) {\n // add a trailing sentinel row for loading/retry behavior\n baseItems.push({\n index: -1,\n key: 'load-more',\n kind: 'load-more',\n });\n }\n\n const loadedItemCount = data.length;\n\n // shared virtualizer handles windowing + load-more triggering, this component\n // only maps its virtual items to list markup\n const { measureElement, retry, scrollElementRef, totalSize, virtualItems } =\n useInfiniteVirtualizer({\n count: baseItems.length,\n dynamicRowHeight:\n virtualization.dynamicRowHeight ?? Boolean(infiniteScroll),\n estimateSize: () => {\n return virtualization.estimateRowHeight ?? 45;\n },\n hasNextPage: infiniteScroll?.pageInfo.hasNextPage,\n isFetchingNextPage: infiniteScroll?.isFetchingNextPage,\n loadedCount: loadedItemCount,\n loadMoreError: infiniteScroll?.loadMoreError,\n loadMoreThreshold: infiniteScroll?.loadMoreThreshold,\n onLoadMore: infiniteScroll\n ? () => {\n infiniteScroll.onLoadMore({\n cursor: infiniteScroll.pageInfo.endCursor,\n direction: 'forward',\n });\n }\n : undefined,\n overscan: virtualization.overscan,\n // decide when to request the next page from the parent\n shouldLoadMore: ({ loadMoreThreshold, virtualItems: activeItems }) => {\n if (!infiniteScroll) {\n return false;\n }\n\n // if placeholders or the load-more row are visible, fetch immediately\n const kindsInRange = new Set(\n activeItems.map((item) => {\n return baseItems[item.index]?.kind;\n }),\n );\n if (kindsInRange.has('placeholder') || kindsInRange.has('load-more')) {\n return true;\n }\n\n // otherwise prefetch shortly before the loaded tail enters viewport\n const lastVirtualIndex =\n activeItems[activeItems.length - 1]?.index ?? 0;\n const boundary = Math.max(loadedItemCount - loadMoreThreshold - 1, 0);\n return lastVirtualIndex >= boundary;\n },\n });\n\n return (\n <div\n className={classNames.base}\n data-component=\"virtual-list\"\n data-slot=\"base\"\n data-testid={testId}\n >\n <div className={classNames.scrollFrame} data-slot=\"scroll-frame\">\n <ScrollShadow\n ref={scrollElementRef}\n className={\n classNames.scrollShadow\n ? `${classNames.scrollContainer} ${classNames.scrollShadow}`\n : classNames.scrollContainer\n }\n // show scroll shadow when there is no page load more error\n dataSlot=\"scroll-container\"\n size={virtualization.scrollShadowSize ?? 40}\n style={{ maxHeight: virtualization.maxHeight }}\n // show scroll shadow when there is no page load more error\n visibility={infiniteScroll?.loadMoreError ? 'none' : 'auto'}\n >\n <ul\n className={classNames.list}\n data-slot=\"list\"\n // total virtual height (loaded rows + optional placeholders/sentinel)\n style={{ height: `${totalSize}px` }}\n >\n {virtualItems.map((virtualItem) => {\n const item = baseItems[virtualItem.index];\n if (!item) {\n return null;\n }\n\n return (\n <VirtualListRow\n key={item.key}\n className={classNames}\n infiniteScroll={infiniteScroll}\n item={item}\n loadingMoreContent={loadingMoreContent}\n measureElement={measureElement}\n renderItem={renderItem}\n retry={retry}\n retryContent={retryContent}\n virtualItem={virtualItem}\n />\n );\n })}\n </ul>\n </ScrollShadow>\n </div>\n </div>\n );\n};\n\nexport default VirtualListControl;\n","import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\n\nimport { tv } from '@fuf-stack/pixel-utils';\n\n/** Styling slots for VirtualList */\nexport const virtualListVariants = tv({\n slots: {\n /** Root wrapper for the entire component */\n base: 'w-full max-w-2xl',\n /** Rendered item row for loaded data */\n item: 'box-border border-b border-divider bg-content1 p-3 text-foreground',\n /** Positioned list container that owns virtual row placement */\n list: 'relative m-0 list-none p-0',\n /** Footer row for loading/retry actions in infinite mode */\n loadingMoreCell: 'py-3 text-center text-default-500',\n /** Skeleton-like placeholder for unloaded rows in total-count mode */\n placeholderItem: 'box-border border-b border-divider bg-content1 px-3',\n /** Scrollable viewport used as the virtualizer scroll element */\n scrollContainer: 'w-full min-w-80 overflow-x-hidden overflow-y-auto',\n /** Visual frame around the masked scroll area (stays fully opaque) */\n scrollFrame: 'rounded-md border border-divider bg-content1',\n /** Optional styling slot for ScrollShadow wrapper behavior */\n scrollShadow: '',\n },\n});\n\nexport type VariantProps = TVProps<typeof virtualListVariants>;\n\nexport type ClassName = TVClassName<typeof virtualListVariants>;\n\nexport type VirtualListClassNames = Record<\n keyof ReturnType<typeof virtualListVariants>,\n string\n>;\n\nexport default virtualListVariants;\n","import type { ReactNode } from 'react';\nimport type {\n DataTableInfiniteScrollFeature,\n DataTableVirtualizationFeature,\n} from '../DataTable';\nimport type { ClassName } from './virtualListVariants';\n\nimport { useStyling } from '@fuf-stack/pixels/StylingProvider';\n\nimport VirtualListControl from './subcomponents/VirtualListControl';\nimport { virtualListVariants } from './virtualListVariants';\n\nexport { virtualListVariants } from './virtualListVariants';\n\nexport interface VirtualListProps<TData> {\n /** Slot-based class overrides generated from `virtualListVariants`. */\n className?: ClassName;\n /** Currently loaded items to render. */\n data: TData[];\n /** Optional cursor-based infinite-scroll configuration. */\n infiniteScroll?: DataTableInfiniteScrollFeature;\n /** Content rendered in the load-more row while fetching. */\n loadingMoreContent?: ReactNode;\n /** Renderer for each loaded item. */\n renderItem: (item: TData, index: number) => ReactNode;\n /** Fallback retry label when load-more has failed. */\n retryContent?: ReactNode;\n /** Optional `data-testid` prefix. */\n testId?: string;\n /** Virtualizer viewport and measurement options. */\n virtualization: DataTableVirtualizationFeature;\n}\n\n/**\n * Virtualized list for browsing large or incrementally loaded datasets\n *\n * Renders items within the scroll viewport with support for variable item heights\n * and optional cursor-based loading\n *\n * Infinite scrolling can size the scrollbar to loaded items or the total result\n * count, using placeholders for items that have not loaded yet\n */\nconst VirtualList = <TData,>({\n className = undefined,\n ...props\n}: VirtualListProps<TData>) => {\n const styling = useStyling();\n\n // classNames from slots\n const variants = styling.resolve(virtualListVariants);\n const classNames = styling.variantsToClassNames(variants, className, 'base');\n\n return <VirtualListControl {...props} className={classNames} />;\n};\n\nexport default VirtualList;\n","import VirtualList from './VirtualList';\n\nexport { virtualListVariants } from './virtualListVariants';\nexport type { VirtualListProps } from './VirtualList';\n\nexport { VirtualList };\nexport default VirtualList;\n"],"mappings":";;;;;;;AA0BA,MAAM,kBAA0B,EAC9B,WAAW,YACX,iBAAiB,KAAA,GACjB,MACA,qBAAqB,KAAA,GACrB,iBAAiB,KAAA,GACjB,YACA,OACA,eAAe,KAAA,GACf,kBACgC;CAChC,IAAI,KAAK,SAAS,eAEhB,OACE,oBAAC,MAAD;EACE,KAAK;EACL,WAAW,WAAW;EACtB,cAAY,YAAY;EACxB,aAAU;EACV,OAAO;GACL,YAAY;GACZ,SAAS;GACT,QAAQ,GAAG,YAAY,KAAK;GAC5B,UAAU;GACV,WAAW,cAAc,YAAY,MAAM;GAC3C,OAAO;EACT;EAEA,UAAA,oBAAC,QAAD,EAAM,WAAU,iFAAkF,CAAA;CAChG,CAAA;CAIR,IAAI,KAAK,SAAS,aAEhB,OACE,oBAAC,MAAD;EACE,KAAK;EACL,WAAW,WAAW;EACtB,cAAY,YAAY;EACxB,aAAU;EACV,OAAO;GACL,UAAU;GACV,WAAW,cAAc,YAAY,MAAM;GAC3C,OAAO;EACT;EAEC,UAAA,gBAAgB,gBACf,oBAAC,UAAD;GAAQ,SAAS;GAAO,MAAK;GAC1B,UAAA,eAAe,gBAAgB;EAC1B,CAAA,IAER;CAEA,CAAA;CAIR,IAAI,KAAK,SAAS,QAChB,OAEE,oBAAC,MAAD;EACE,KAAK;EACL,WAAW,WAAW;EACtB,cAAY,YAAY;EACxB,aAAU;EACV,OAAO;GACL,UAAU;GACV,WAAW,cAAc,YAAY,MAAM;GAC3C,OAAO;EACT;EAEC,UAAA,WAAW,KAAK,OAAO,KAAK,KAAK;CAChC,CAAA;CAIR,OAAO;AACT;;;ACtFA,MAAM,sBAA8B,EAClC,WAAW,YACX,MACA,iBAAiB,KAAA,GACjB,qBAAqB,mBACrB,YACA,eAAe,kBACf,SAAS,KAAA,GACT,qBACoC;CAEpC,MA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