@algorithm-shift/design-system 1.2.952 → 1.2.953
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.
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -230,7 +230,7 @@ function TabGroupComponent({
|
|
|
230
230
|
import React3 from "react";
|
|
231
231
|
import { Fragment as Fragment2, jsx as jsx10 } from "react/jsx-runtime";
|
|
232
232
|
function Repeater({
|
|
233
|
-
|
|
233
|
+
data = [],
|
|
234
234
|
count,
|
|
235
235
|
render,
|
|
236
236
|
emptyFallback = null,
|
|
@@ -240,8 +240,8 @@ function Repeater({
|
|
|
240
240
|
loadingText = "Loading..."
|
|
241
241
|
}) {
|
|
242
242
|
const list = React3.useMemo(
|
|
243
|
-
() => typeof count === "number" ?
|
|
244
|
-
[
|
|
243
|
+
() => typeof count === "number" ? data.slice(0, count) : data,
|
|
244
|
+
[data, count]
|
|
245
245
|
);
|
|
246
246
|
if (loading) {
|
|
247
247
|
return /* @__PURE__ */ jsx10("div", { className, children: loadingText });
|