@algorithm-shift/design-system 1.2.951 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
3
  import React__default from 'react';
4
- import * as axios from 'axios';
4
+ import axios from 'axios';
5
5
  import { ToasterProps } from 'sonner';
6
6
  import { ClassValue } from 'clsx';
7
7
 
@@ -92,7 +92,7 @@ interface SelectDropdownInputProps extends ElementProps, InputProperties, InputS
92
92
  pageSize?: number;
93
93
  value?: string | any;
94
94
  onChange?: (value: string, name: string) => void;
95
- axiosInstance?: typeof axios.default;
95
+ axiosInstance?: typeof axios;
96
96
  }
97
97
  interface SwitchToggleInputProps extends ElementProps, InputProperties {
98
98
  value?: boolean | any;
@@ -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
- items: T[];
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>({ items, count, render, emptyFallback, wrapper, className, loading, loadingText, }: RepeaterProps<T>): react_jsx_runtime.JSX.Element;
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
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
3
  import React__default from 'react';
4
- import * as axios from 'axios';
4
+ import axios from 'axios';
5
5
  import { ToasterProps } from 'sonner';
6
6
  import { ClassValue } from 'clsx';
7
7
 
@@ -92,7 +92,7 @@ interface SelectDropdownInputProps extends ElementProps, InputProperties, InputS
92
92
  pageSize?: number;
93
93
  value?: string | any;
94
94
  onChange?: (value: string, name: string) => void;
95
- axiosInstance?: typeof axios.default;
95
+ axiosInstance?: typeof axios;
96
96
  }
97
97
  interface SwitchToggleInputProps extends ElementProps, InputProperties {
98
98
  value?: boolean | any;
@@ -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
- items: T[];
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>({ items, count, render, emptyFallback, wrapper, className, loading, loadingText, }: RepeaterProps<T>): react_jsx_runtime.JSX.Element;
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
@@ -152,7 +152,6 @@ function Modal({
152
152
  {
153
153
  className: cn(
154
154
  "bg-white dark:bg-gray-800 rounded-lg shadow-xl w-full max-h-[90vh] overflow-hidden",
155
- `bg-white dark:bg-gray-800 rounded-lg shadow-xl w-full max-h-[90vh] overflow-hidden`,
156
155
  className,
157
156
  `${sizeClasses[size]}`
158
157
  ),
@@ -326,7 +325,7 @@ function TabGroupComponent({
326
325
  var import_react4 = __toESM(require("react"));
327
326
  var import_jsx_runtime10 = require("react/jsx-runtime");
328
327
  function Repeater({
329
- items = [],
328
+ data = [],
330
329
  count,
331
330
  render,
332
331
  emptyFallback = null,
@@ -336,8 +335,8 @@ function Repeater({
336
335
  loadingText = "Loading..."
337
336
  }) {
338
337
  const list = import_react4.default.useMemo(
339
- () => typeof count === "number" ? items.slice(0, count) : items,
340
- [items, count]
338
+ () => typeof count === "number" ? data.slice(0, count) : data,
339
+ [data, count]
341
340
  );
342
341
  if (loading) {
343
342
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className, children: loadingText });