@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.d.mts
CHANGED
|
@@ -256,7 +256,7 @@ declare function TabList({ children, style, className, activeTab, tabId }: TabLi
|
|
|
256
256
|
declare function TabGroupComponent({ children, style, className, list, activeTab, onTabChange, }: TabGroupProps): react_jsx_runtime.JSX.Element;
|
|
257
257
|
|
|
258
258
|
interface RepeaterProps<T> {
|
|
259
|
-
|
|
259
|
+
data: T[];
|
|
260
260
|
count?: number;
|
|
261
261
|
render: (item: T, index: number, array: T[]) => React__default.ReactNode;
|
|
262
262
|
emptyFallback?: React__default.ReactNode;
|
|
@@ -265,7 +265,7 @@ interface RepeaterProps<T> {
|
|
|
265
265
|
loading?: boolean;
|
|
266
266
|
loadingText?: string;
|
|
267
267
|
}
|
|
268
|
-
declare function Repeater<T>({
|
|
268
|
+
declare function Repeater<T>({ data, count, render, emptyFallback, wrapper, className, loading, loadingText, }: RepeaterProps<T>): react_jsx_runtime.JSX.Element;
|
|
269
269
|
declare const _default$2: typeof Repeater;
|
|
270
270
|
|
|
271
271
|
declare const ButtonWrapper: ({ className, style, textContent, loadingText, loading, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -326,7 +326,7 @@ interface Option {
|
|
|
326
326
|
value: string;
|
|
327
327
|
}
|
|
328
328
|
interface MultiSelectProps {
|
|
329
|
-
value: string[];
|
|
329
|
+
value: string[] | undefined;
|
|
330
330
|
onChange: (value: string[], name: string) => void;
|
|
331
331
|
data: Option[];
|
|
332
332
|
placeholder?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -256,7 +256,7 @@ declare function TabList({ children, style, className, activeTab, tabId }: TabLi
|
|
|
256
256
|
declare function TabGroupComponent({ children, style, className, list, activeTab, onTabChange, }: TabGroupProps): react_jsx_runtime.JSX.Element;
|
|
257
257
|
|
|
258
258
|
interface RepeaterProps<T> {
|
|
259
|
-
|
|
259
|
+
data: T[];
|
|
260
260
|
count?: number;
|
|
261
261
|
render: (item: T, index: number, array: T[]) => React__default.ReactNode;
|
|
262
262
|
emptyFallback?: React__default.ReactNode;
|
|
@@ -265,7 +265,7 @@ interface RepeaterProps<T> {
|
|
|
265
265
|
loading?: boolean;
|
|
266
266
|
loadingText?: string;
|
|
267
267
|
}
|
|
268
|
-
declare function Repeater<T>({
|
|
268
|
+
declare function Repeater<T>({ data, count, render, emptyFallback, wrapper, className, loading, loadingText, }: RepeaterProps<T>): react_jsx_runtime.JSX.Element;
|
|
269
269
|
declare const _default$2: typeof Repeater;
|
|
270
270
|
|
|
271
271
|
declare const ButtonWrapper: ({ className, style, textContent, loadingText, loading, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -326,7 +326,7 @@ interface Option {
|
|
|
326
326
|
value: string;
|
|
327
327
|
}
|
|
328
328
|
interface MultiSelectProps {
|
|
329
|
-
value: string[];
|
|
329
|
+
value: string[] | undefined;
|
|
330
330
|
onChange: (value: string[], name: string) => void;
|
|
331
331
|
data: Option[];
|
|
332
332
|
placeholder?: string;
|
package/dist/index.js
CHANGED
|
@@ -325,7 +325,7 @@ function TabGroupComponent({
|
|
|
325
325
|
var import_react4 = __toESM(require("react"));
|
|
326
326
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
327
327
|
function Repeater({
|
|
328
|
-
|
|
328
|
+
data = [],
|
|
329
329
|
count,
|
|
330
330
|
render,
|
|
331
331
|
emptyFallback = null,
|
|
@@ -335,8 +335,8 @@ function Repeater({
|
|
|
335
335
|
loadingText = "Loading..."
|
|
336
336
|
}) {
|
|
337
337
|
const list = import_react4.default.useMemo(
|
|
338
|
-
() => typeof count === "number" ?
|
|
339
|
-
[
|
|
338
|
+
() => typeof count === "number" ? data.slice(0, count) : data,
|
|
339
|
+
[data, count]
|
|
340
340
|
);
|
|
341
341
|
if (loading) {
|
|
342
342
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className, children: loadingText });
|