@algorithm-shift/design-system 1.2.75 → 1.2.77

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
@@ -133,6 +133,7 @@ interface StagesProps extends ElementProps {
133
133
  isShowBtn?: boolean;
134
134
  buttonText?: string;
135
135
  onStageChange?: (stageId: string) => void;
136
+ currentStage?: string;
136
137
  }
137
138
 
138
139
  type ButtonProps = ElementProps & React.ComponentProps<"button"> & {
@@ -239,6 +240,17 @@ declare function TabList({ children, style, className, activeTab, tabId }: TabLi
239
240
 
240
241
  declare function TabGroupComponent({ children, style, className, list, activeTab, onTabChange, }: TabGroupProps): react_jsx_runtime.JSX.Element;
241
242
 
243
+ interface RepeaterProps<T> {
244
+ items: T[];
245
+ count?: number;
246
+ render: (item: T, index: number, array: T[]) => React__default.ReactNode;
247
+ emptyFallback?: React__default.ReactNode;
248
+ wrapper?: (children: React__default.ReactNode) => React__default.ReactNode;
249
+ className?: string;
250
+ }
251
+ declare function Repeater<T>({ items, count, render, emptyFallback, wrapper, className, }: RepeaterProps<T>): react_jsx_runtime.JSX.Element | null;
252
+ declare const _default$2: typeof Repeater;
253
+
242
254
  declare const ButtonWrapper: ({ className, style, textContent, loadingText, loading, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
243
255
 
244
256
  declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
@@ -305,6 +317,8 @@ interface MultiSelectProps {
305
317
  searchable?: boolean;
306
318
  className?: string;
307
319
  errorMessage?: string;
320
+ dataKey?: string;
321
+ dataLabel?: string;
308
322
  }
309
323
  declare const MultiSelect: React$1.FC<MultiSelectProps>;
310
324
 
@@ -339,15 +353,18 @@ interface ExtendedTableProps extends TableProps {
339
353
  onCellClick?: (props: CellClickProps) => void;
340
354
  sort_by?: string;
341
355
  sort_order?: string;
356
+ onCellClick?: (props: CellClickProps) => void;
357
+ onDeleteRow?: (props: CellClickProps) => void;
358
+ enableDelete?: boolean;
342
359
  }
343
360
 
344
- declare const Table: ({ columns, data, rowActions, className, style, pagination, paginationMode, itemsPerPage, onPageChange, onSortChange, onFilterChange, onGlobalSearch, page, loading, totalRecords, globalSearch, ...props }: ExtendedTableProps) => react_jsx_runtime.JSX.Element;
361
+ declare const Table: ({ columns, data, rowActions, className, style, pagination, paginationMode, itemsPerPage, onPageChange, onSortChange, onFilterChange, onGlobalSearch, page, loading, totalRecords, globalSearch, onCellClick, enableDelete, onDeleteRow, ...props }: ExtendedTableProps) => react_jsx_runtime.JSX.Element;
345
362
 
346
363
  declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVisiblePages, perPage, }: CustomPaginationProps) => react_jsx_runtime.JSX.Element;
347
364
 
348
365
  declare const Tabs: ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuilder }: TabsProps) => react_jsx_runtime.JSX.Element;
349
366
 
350
- declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style, onStageChange }: StagesProps) => react_jsx_runtime.JSX.Element;
367
+ declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style, onStageChange, currentStage }: StagesProps) => react_jsx_runtime.JSX.Element;
351
368
 
352
369
  declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
353
370
 
@@ -375,4 +392,4 @@ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Ele
375
392
  declare function cn(...inputs: ClassValue[]): string;
376
393
  declare function getInitials(name: string): string;
377
394
 
378
- export { Accordion, AccordionGroup, _default$1 as BarChart, Breadcrumb, ButtonWrapper as Button, SplitButton as ButtonGroup, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailInput as Email, EmailComposer, FileInput, Flex as FlexLayout, Grid as GridLayout, Icon, ImageControl as Image, Modal, MultiCheckbox, MultiSelect, Navbar, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, _default as PieChart, RadioInput as RadioGroup, RichText, SearchInput as Search, Shape, Slot, Spacer, StagesComponent as Stages, SwitchToggle, TabGroupComponent as TabGroup, TabList, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Toaster, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
395
+ export { Accordion, AccordionGroup, _default$1 as BarChart, Breadcrumb, ButtonWrapper as Button, SplitButton as ButtonGroup, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailInput as Email, EmailComposer, FileInput, Flex as FlexLayout, Grid as GridLayout, Icon, ImageControl as Image, Modal, MultiCheckbox, MultiSelect, Navbar, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, _default as PieChart, RadioInput as RadioGroup, _default$2 as Repeater, RichText, SearchInput as Search, Shape, Slot, Spacer, StagesComponent as Stages, SwitchToggle, TabGroupComponent as TabGroup, TabList, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Toaster, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
package/dist/index.d.ts CHANGED
@@ -133,6 +133,7 @@ interface StagesProps extends ElementProps {
133
133
  isShowBtn?: boolean;
134
134
  buttonText?: string;
135
135
  onStageChange?: (stageId: string) => void;
136
+ currentStage?: string;
136
137
  }
137
138
 
138
139
  type ButtonProps = ElementProps & React.ComponentProps<"button"> & {
@@ -239,6 +240,17 @@ declare function TabList({ children, style, className, activeTab, tabId }: TabLi
239
240
 
240
241
  declare function TabGroupComponent({ children, style, className, list, activeTab, onTabChange, }: TabGroupProps): react_jsx_runtime.JSX.Element;
241
242
 
243
+ interface RepeaterProps<T> {
244
+ items: T[];
245
+ count?: number;
246
+ render: (item: T, index: number, array: T[]) => React__default.ReactNode;
247
+ emptyFallback?: React__default.ReactNode;
248
+ wrapper?: (children: React__default.ReactNode) => React__default.ReactNode;
249
+ className?: string;
250
+ }
251
+ declare function Repeater<T>({ items, count, render, emptyFallback, wrapper, className, }: RepeaterProps<T>): react_jsx_runtime.JSX.Element | null;
252
+ declare const _default$2: typeof Repeater;
253
+
242
254
  declare const ButtonWrapper: ({ className, style, textContent, loadingText, loading, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
243
255
 
244
256
  declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
@@ -305,6 +317,8 @@ interface MultiSelectProps {
305
317
  searchable?: boolean;
306
318
  className?: string;
307
319
  errorMessage?: string;
320
+ dataKey?: string;
321
+ dataLabel?: string;
308
322
  }
309
323
  declare const MultiSelect: React$1.FC<MultiSelectProps>;
310
324
 
@@ -339,15 +353,18 @@ interface ExtendedTableProps extends TableProps {
339
353
  onCellClick?: (props: CellClickProps) => void;
340
354
  sort_by?: string;
341
355
  sort_order?: string;
356
+ onCellClick?: (props: CellClickProps) => void;
357
+ onDeleteRow?: (props: CellClickProps) => void;
358
+ enableDelete?: boolean;
342
359
  }
343
360
 
344
- declare const Table: ({ columns, data, rowActions, className, style, pagination, paginationMode, itemsPerPage, onPageChange, onSortChange, onFilterChange, onGlobalSearch, page, loading, totalRecords, globalSearch, ...props }: ExtendedTableProps) => react_jsx_runtime.JSX.Element;
361
+ declare const Table: ({ columns, data, rowActions, className, style, pagination, paginationMode, itemsPerPage, onPageChange, onSortChange, onFilterChange, onGlobalSearch, page, loading, totalRecords, globalSearch, onCellClick, enableDelete, onDeleteRow, ...props }: ExtendedTableProps) => react_jsx_runtime.JSX.Element;
345
362
 
346
363
  declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVisiblePages, perPage, }: CustomPaginationProps) => react_jsx_runtime.JSX.Element;
347
364
 
348
365
  declare const Tabs: ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuilder }: TabsProps) => react_jsx_runtime.JSX.Element;
349
366
 
350
- declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style, onStageChange }: StagesProps) => react_jsx_runtime.JSX.Element;
367
+ declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style, onStageChange, currentStage }: StagesProps) => react_jsx_runtime.JSX.Element;
351
368
 
352
369
  declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
353
370
 
@@ -375,4 +392,4 @@ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Ele
375
392
  declare function cn(...inputs: ClassValue[]): string;
376
393
  declare function getInitials(name: string): string;
377
394
 
378
- export { Accordion, AccordionGroup, _default$1 as BarChart, Breadcrumb, ButtonWrapper as Button, SplitButton as ButtonGroup, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailInput as Email, EmailComposer, FileInput, Flex as FlexLayout, Grid as GridLayout, Icon, ImageControl as Image, Modal, MultiCheckbox, MultiSelect, Navbar, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, _default as PieChart, RadioInput as RadioGroup, RichText, SearchInput as Search, Shape, Slot, Spacer, StagesComponent as Stages, SwitchToggle, TabGroupComponent as TabGroup, TabList, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Toaster, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
395
+ export { Accordion, AccordionGroup, _default$1 as BarChart, Breadcrumb, ButtonWrapper as Button, SplitButton as ButtonGroup, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailInput as Email, EmailComposer, FileInput, Flex as FlexLayout, Grid as GridLayout, Icon, ImageControl as Image, Modal, MultiCheckbox, MultiSelect, Navbar, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, _default as PieChart, RadioInput as RadioGroup, _default$2 as Repeater, RichText, SearchInput as Search, Shape, Slot, Spacer, StagesComponent as Stages, SwitchToggle, TabGroupComponent as TabGroup, TabList, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Toaster, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };