@algorithm-shift/design-system 1.2.76 → 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;
@@ -341,15 +353,18 @@ interface ExtendedTableProps extends TableProps {
341
353
  onCellClick?: (props: CellClickProps) => void;
342
354
  sort_by?: string;
343
355
  sort_order?: string;
356
+ onCellClick?: (props: CellClickProps) => void;
357
+ onDeleteRow?: (props: CellClickProps) => void;
358
+ enableDelete?: boolean;
344
359
  }
345
360
 
346
- 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;
347
362
 
348
363
  declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVisiblePages, perPage, }: CustomPaginationProps) => react_jsx_runtime.JSX.Element;
349
364
 
350
365
  declare const Tabs: ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuilder }: TabsProps) => react_jsx_runtime.JSX.Element;
351
366
 
352
- 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;
353
368
 
354
369
  declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
355
370
 
@@ -377,4 +392,4 @@ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Ele
377
392
  declare function cn(...inputs: ClassValue[]): string;
378
393
  declare function getInitials(name: string): string;
379
394
 
380
- 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;
@@ -341,15 +353,18 @@ interface ExtendedTableProps extends TableProps {
341
353
  onCellClick?: (props: CellClickProps) => void;
342
354
  sort_by?: string;
343
355
  sort_order?: string;
356
+ onCellClick?: (props: CellClickProps) => void;
357
+ onDeleteRow?: (props: CellClickProps) => void;
358
+ enableDelete?: boolean;
344
359
  }
345
360
 
346
- 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;
347
362
 
348
363
  declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVisiblePages, perPage, }: CustomPaginationProps) => react_jsx_runtime.JSX.Element;
349
364
 
350
365
  declare const Tabs: ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuilder }: TabsProps) => react_jsx_runtime.JSX.Element;
351
366
 
352
- 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;
353
368
 
354
369
  declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
355
370
 
@@ -377,4 +392,4 @@ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Ele
377
392
  declare function cn(...inputs: ClassValue[]): string;
378
393
  declare function getInitials(name: string): string;
379
394
 
380
- 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 };